!(function(){var Pl=Math.pow;var gc=(sn,nn,se)=>new Promise((oe,He)=>{var Ne=Le=>{try{ve(se.next(Le))}catch(De){He(De)}},qe=Le=>{try{ve(se.throw(Le))}catch(De){He(De)}},ve=Le=>Le.done?oe(Le.value):Promise.resolve(Le.value).then(Ne,qe);ve((se=se.apply(sn,nn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[22906],{18299:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},84249:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},42922:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},90674:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},25877:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},63237:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},99569:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},22751:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},38308:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},17663:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},91034:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},72395:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},53978:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return De}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(me,Te){return He.createElement(ve.Z,(0,oe.Z)({},me,{ref:Te,icon:qe}))},De=He.forwardRef(Le)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(sn,nn){"use strict";nn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},61016: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 sn={},nn="5.0",se={},oe=null,He=!1,Ne=!1,qe=null,ve=!1,Le=null,De=null,xe=0;xe4?parseFloat(tt):5};sn.setHTML5Codebase=function(tt,ut){De=tt,Mt(tt,ut)},sn.setJavaCodebase=sn.setJavaCodebaseVersion=sn.isCompiledInstalled=sn.setPreCompiledScriptPath=sn.setPreCompiledResourcePath=function(){},sn.setHTML5CodebaseVersion=function(tt,ut){var Zt=parseFloat(tt);if(Zt!==NaN&&Zt<5){console.log("The GeoGebra HTML5 codebase version "+Zt+" is deprecated. Using version latest instead.");return}Le=tt,we(tt,ut)},sn.getHTML5CodebaseVersion=function(){return dt},sn.getParameters=function(){return se},sn.setFontsCSSURL=function(tt){Qe=tt},sn.setGiacJSURL=function(tt){},sn.setJNLPFile=function(tt){Te=tt},sn.setJNLPBaseDir=function(tt){},sn.inject=function(){function tt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ut="auto",Zt=se.id,Wn,wn=!1,Qt=0;Qt=5)return!0;var tt=sn.getAppletObject();return tt&&typeof tt.recalculateEnvironments=="function"?(tt.recalculateEnvironments(),!0):!1},sn.startAnimation=function(){var tt=sn.getAppletObject();return tt&&typeof tt.startAnimation=="function"?(tt.startAnimation(),!0):!1},sn.stopAnimation=function(){var tt=sn.getAppletObject();return tt&&typeof tt.stopAnimation=="function"?(tt.stopAnimation(),!0):!1},sn.getAppletObject=function(){var tt=se.id!==void 0?se.id:"ggbApplet";return window[tt]},sn.resize=function(){};var Lt=function(tt,ut,Zt){var Wn=document.createElement("param");Wn.setAttribute("name",ut),Wn.setAttribute("value",Zt),tt.appendChild(Wn)},Je=function(tt){return tt&&tt!=="false"},Ut=function(tt,ut,Zt){Se(dt)<=4.2&&(Zt=!0);var Wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==dt||ggbHTML5LoadedCodebaseIsWebSimple&&!$e)&&(Wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var wn=document.createElement("div");wn.classList.add("appletParameters","notranslate");var Qt=ut.width,en=ut.height;if(ut.disableAutoScale=ut.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ut.disableAutoScale,ut.width!==void 0)if(Se(dt)<=4.4)Je(ut.showToolBar)&&(ut.height-=7),Je(ut.showAlgebraInput)&&(ut.height-=37),ut.width<605&&Je(ut.showToolBar)&&(ut.width=605,Qt=605);else{var Dn=100;(Je(ut.showToolBar)||Je(ut.showMenuBar))&&(ut.hasOwnProperty("customToolBar")&&(ut.customToolbar=ut.customToolBar),Dn=Je(ut.showMenuBar)?245:155),Qt=5?(ut.appletOnLoad=function(Gt){var $n=tt.querySelector(".ggb_preview");$n&&$n.parentNode.removeChild($n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(fe),window.GGBT_wsf_view&&$(window).trigger("resize"),Be(Gt)},ce||fe.appendChild(he)):wn.appendChild(he),fe.appendChild(wn),ce||tt.appendChild(fe),setTimeout(function(){sn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(wn),tt.appendChild(de),ut.appletOnLoad=function(Gt){sn.resize(),Be(Gt)}}function le(Gt,$n){$n&&typeof $n.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Gt,$n.appletOnLoad):renderGGBElement(Gt),cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",$n)}function Ee(Gt,$n){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Gt,params:$n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(mr){le(mr.article,mr.params)}),html5AppletsToProcess=null)},Se(dt)<5&&(Gt.className+=" geogebraweb")):le(Gt,$n)}if(Wn){scriptLoadStarted=!0;for(var Ze=0;Ze0?(vn.remove(),fe.attr("id","fullscreencontent").show(),jQuery(Be).append(fe),window.dispatchEvent(new Event("resize"))):Ut(vn,ut,!1),window.GGBT_wsf_view.launchFullScreen(Be)}else Et=Wn,Ut(tt,ut,!1);if(!window.GGBT_wsf_view)for(en=0;entt/4*3&&(vn=tt/4*3),Be=vn/5.8,Dn.setAttribute("src",ft),Dn.setAttribute("width",vn),Dn.setAttribute("height",Be);var fe=(tt-vn)/2,ce=(ut-Be)/2;Dn.style.left=fe+"px",Dn.style.top=ce+"px",wn.appendChild(Dn)}}return wn.appendChild(en),wn},Yn=function(tt){return tt=tt.toLowerCase(),tt==="html5"||tt==="screenshot"?tt:"html5"},Xe=["web","webSimple","web3d","tablet","tablet3d","phone"],we=function(tt,ut){if(dt=tt,ut){Mt(dt,!0);return}var Zt=!He;if(Zt){var Wn=Se(dt);!isNaN(Wn)&&Wn<4.4&&(Zt=!1)}var wn,Qt;window.location.protocol.substr(0,4)==="http"?wn=window.location.protocol:wn="http:";var en=dt.indexOf("//");en>0?Qt=dt:en===0?Qt=wn+dt:Qt="https://www.geogebra.org/apps/5.2.814.0/";for(var Dn in Xe)if(dt.slice(Xe[Dn].length*-1)===Xe[Dn]||dt.slice((Xe[Dn].length+1)*-1)===Xe[Dn]+"/"){Mt(Qt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Zt&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!Je(se.showToolBar)&&!Je(se.showMenuBar)&&!Je(se.showAlgebraInput)&&!Je(se.enableRightClick)&&(!se.appName||se.appName=="classic")?Qt+="webSimple/":Qt+="web3d/",Mt(Qt,!1)},Mt=function(tt,ut){if(tt.requirejs){rt=tt;return}tt.slice(-1)!=="/"&&(tt+="/"),rt=tt,ut===null&&(ut=tt.indexOf("http")===-1),Ie=ut,ct="web.nocache.js",$e=!1;var Zt=rt.split("/");Zt.length>1&&(!ut&&Zt[Zt.length-2]==="webSimple"?(ct="webSimple.nocache.js",$e=!0):Xe.indexOf(Zt[Zt.length-2])>=0&&(ct=Zt[Zt.length-2]+".nocache.js")),Zt=tt.split("/"),dt=Zt[Zt.length-3],dt.substr(0,4)==="test"?dt=dt.substr(4,1)+"."+dt.substr(5,1):(dt.substr(0,3)==="war"||dt.substr(0,4)==="beta")&&(dt="5.0");var Wn=parseFloat(dt);Wn!==NaN&&Wn<5&&tt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Wn+" is deprecated. Using version latest instead."),we("5.0",ut))},cn=function(tt,ut){window.console&&window.console.log&&(!ut||typeof ut.showLogging=="undefined"||ut.showLogging&&ut.showLogging!=="false")&&console.log(tt)};se.material_id!==void 0?Ue(Kt):Kt();function Kt(){var tt=nn;Le!==null?tt=Le:parseFloat(tt)<5&&(tt="5.0"),we(tt,!1),De!==null&&Mt(De,Ie),ve=!0}return sn},GGBAppletUtils=function(){"use strict";function sn(){return window.GGBT_wsf_edit!==void 0}function nn(ve,Le){Le!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+Le+","+Le+")",ve.style.webkitTransform="scale("+Le+","+Le+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function se(ve,Le,De,xe,me,Te){var rt=null;if(Te!=null&&Te!="")for(var Ie=ve.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+Te+" ")>-1){rt=Ie;break}else Ie=Ie.parentNode;var Et=0,dt=0,ct=0,$e=0,Ae=0,ft=0,Yt=0;if(rt)Et=rt.offsetWidth,dt=Math.max(xe?rt.offsetWidth:0,rt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Et=Math.min(window.innerWidth,document.documentElement.clientWidth),dt=Math.min(window.innerHeight,document.documentElement.clientHeight),ct=Et):(Et=window.innerWidth,dt=window.innerHeight,ct=window.innerWidth),ve){var Qe=ve.getBoundingClientRect();Qe.left>0&&Qe.left<=Et&&(me===void 0||!me)&&(document.dir==="rtl"?(Ae=Et-Qe.width-Qe.left,ft=ct<=480?10:30):(ft=Qe.left,Ae=ct<=480?10:30),$e=ft+Ae)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var it=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?($e=40,Yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&($e=0,Yt=40)}}return ve&&((De===void 0||!De)&&Le>0&&Le+$e1&&(Te=!0)),Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))me=oe(ve,Le,Te,De,ve.scaleContainerClass);else return xe;return Te&&(!ve.hasOwnProperty("scale")||xe===1)?me:Math.min(xe,me)}function Ne(ve){var Le=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),xe=ve.getBoundingClientRect(),me=(Le-xe.width)/2,Te=(De-xe.height)/2;Te<0&&(Te=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?ve.style.left="40px":ve.style.left=me+"px",ve.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ve.style.top="40px":ve.style.top=Te+"px",ve.style.left=me+"px")}function qe(ve,Le){var De=ve.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var xe=He(Le,ve);sn()&&De.setAttribute("data-param-scale",xe);for(var me=null,Te=0;Te=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(sn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(sn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(sn){var nn=c[sn];return nn==null?null:nn},r=d,webModule.__errFn=e}function B(){function sn(ve){var Le=ve.lastIndexOf(rb);Le==-1&&(Le=ve.length);var De=ve.indexOf(sb);De==-1&&(De=ve.length);var xe=ve.lastIndexOf(tb,Math.min(De,Le));return xe>=O?ve.substring(O,xe+P):W}function nn(ve){if(!ve.match(/^\w+:\/\//)){var Le=o.createElement(ub);Le.src=ve+vb,ve=sn(Le.src)}return ve}function se(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function oe(){for(var ve=o.getElementsByTagName(_),Le=O;LeO?ve[ve.length-P].href:W}function Ne(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var qe=se();return qe==W&&(qe=oe()),qe==W&&(qe=He()),qe==W&&Ne()&&(qe=sn(o.location.href)),qe=nn(qe),qe}function C(sn){return sn.match(/^\//)||sn.match(/^[a-zA-Z]+:\/\//)?sn:webModule.__moduleBase+sn}function D(){var sn=[],nn=O,se=[],oe=[];function He(ve){var Le=oe[ve](),De=se[ve];if(Le in De)return Le;var xe=[];for(var me in De)xe[De[me]]=me;throw r&&r(ve,xe,Le),null}if(__gwt_isKnownPropertyValue=function(ve,Le){return Le in se[ve]},webModule.__getPropMap=function(){var ve={};for(var Le in se)se.hasOwnProperty(Le)&&(ve[Le]=He(Le));return ve},webModule.__computePropValue=He,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ne;try{Ne=Cb;var qe=Ne.indexOf(Db);qe!=-1&&(nn=parseInt(Ne.substring(qe+P),$),Ne=Ne.substring(O,qe))}catch(ve){}return webModule.__softPermutationId=nn,C(Ne+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(sn,nn,se){"use strict";se.d(nn,{Ax:function(){return qe},Ds:function(){return ve},KI:function(){return De},SI:function(){return Ne},f1:function(){return He}});var oe=se(11320);function He(xe){let me=!0;if(xe.length>0){for(let Te=0;Tenew Promise((ct,$e)=>{var Ae=Qe=>{try{Yt(dt.next(Qe))}catch(it){$e(it)}},ft=Qe=>{try{Yt(dt.throw(Qe))}catch(it){$e(it)}},Yt=Qe=>Qe.done?ct(Qe.value):Promise.resolve(Qe.value).then(Ae,ft);Yt((dt=dt.apply(Ie,Et)).next())}),rt=({data:Ie,className:Et,fullWidth:dt,style:ct={},onClose:$e,onOk:Ae,showFullTools:ft,noAssociationId:Yt})=>{const Qe=(0,oe.useRef)(null),it=(0,oe.useRef)(null),Se=(0,oe.useRef)(null),Ce=(0,oe.useRef)(null),[Ve,Ue]=(0,oe.useState)(!1),[wt,gt]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>{Se.current||(Se.current=document.createElement("style"),document.head.appendChild(Se.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),Se.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&Lt()):(document.body.removeAttribute("data-custom"),Se.current&&(document.head.removeChild(Se.current),Se.current=null))},[Ie==null?void 0:Ie.visible]);const Lt=()=>me(void 0,null,function*(){Ue(!0),gt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const $t=yield(0,xe.ZJ)(Ie==null?void 0:Ie.src);Qe.current.src="",Qe.current.src=$t,Qe.current.onload=function(){pn()},Ue(!1),gt("")}),Je=()=>{document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",$e()},Ut=$t=>me(void 0,null,function*(){Ue(!0),gt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Pn=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:$t.dataUrl}});Pn!=null&&Pn.id&&!Yt?(yield(0,De.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Pn==null?void 0:Pn.id,settings:JSON.stringify($t.state)}})).status===0&&Ae():Pn!=null&&Pn.id&&Ae(Pn),document.body.removeAttribute("data-custom"),Se.current.innerHTML=" ",Ue(!1),gt("")}),It=()=>{const $t=document.querySelector('a[href="https://markerjs.com/"]');$t&&$t.parentNode&&($t.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(Kn=>{const Yn=document.querySelector(Kn.name);Yn&&Yn.setAttribute("title",Kn.title)})},pn=()=>{it.current=new Le.hP(Qe.current),it.current.targetRoot=Ce.current,it.current.addEventListener("render",Ut),it.current.addEventListener("beforeclose",Je),ft&&(it.current.availableMarkerTypes=it.current.ALL_MARKER_TYPES,it.current.uiStyleSettings.redoButtonVisible=!0,it.current.uiStyleSettings.notesButtonVisible=!0,it.current.uiStyleSettings.zoomButtonVisible=!0,it.current.uiStyleSettings.zoomOutButtonVisible=!0,it.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=it.current.uiStyleSettings,it.current.show(),Ie!=null&&Ie.snapshotData&&it.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),It()},300)};return oe.createElement(oe.Fragment,null,(Ie==null?void 0:Ie.visible)&&oe.createElement(ve.Z,{spinning:Ve,tip:wt,style:{position:"absolute"}},oe.createElement("div",{ref:Ce,className:qe()(He.imageDimensions,Et,dt?He.fullWidth:""),style:ct},oe.createElement("img",{className:He.img,ref:Qe}))))}},36527:function(sn,nn,se){"use strict";var oe=se(67294),He=se(71230),Ne=se(15746),qe=se(66368),ve=se(71577),Le=se(35598),De=se(71736),xe=se(84279),me=se(67294);const Te=(0,oe.forwardRef)(({callback:rt,showSaveButton:Ie,value:Et=""},dt)=>{const ct=(0,oe.useRef)(),$e=[{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 "}]}]}],Ae=[{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}`}]}]}],ft=it=>{ct.current.setValue(ct.current.getValue()+" "+it.value+" ")},Yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(He.Z,{className:De.Z.lists,gutter:[10,10]},$e.map((it,Se)=>me.createElement(Ne.Z,{flex:"110px",className:De.Z.item},me.createElement("div",null,me.createElement(Le.Z,{value:`$$${it.value}$$`}),it.name),me.createElement("div",{className:De.Z.children},it.children.map((Ce,Ve)=>me.createElement("div",{key:Ve},me.createElement("h1",null,Ce.name),me.createElement(He.Z,{gutter:[10,10]},Ce.data.map((Ue,wt)=>me.createElement(Ne.Z,{key:wt,onClick:()=>ft(Ue),className:De.Z.diamond},me.createElement(Le.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(He.Z,{className:De.Z.lists,gutter:[10,10]},Ae.map((it,Se)=>me.createElement(Ne.Z,{flex:"110px",className:De.Z.item},me.createElement("div",null,me.createElement(Le.Z,{value:"`$$"+it.value+"$$`"}),it.name),me.createElement("div",{className:De.Z.children},it.children.map((Ce,Ve)=>me.createElement("div",{key:Ve},Ce.name&&me.createElement("h1",null,Ce.name),me.createElement(He.Z,{gutter:[10,10]},Ce.data.map((Ue,wt)=>me.createElement(Ne.Z,{key:wt,onClick:()=>ft(Ue),className:De.Z.diamond},me.createElement(Le.Z,{value:"`$$"+Ue.value+"$$`"}))))))))))}],Qe=()=>{var it=document.createElement("div");it.innerHTML=ct.current.getValue();var Se=it.innerText;return rt&&rt(Se),Se};return(0,oe.useImperativeHandle)(dt,()=>({getData:Qe})),me.createElement("div",{className:De.Z.mathWrap},me.createElement(qe.default,{defaultActiveKey:"1",items:Yt}),me.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ct,style:{width:800,marginTop:30,fontSize:18}},Et||""),Ie&&me.createElement("div",{className:De.Z.button},me.createElement(ve.ZP,{size:"large",onClick:Qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});nn.Z=Te},57444:function(sn,nn,se){"use strict";se.d(nn,{h:function(){return it}});var oe=se(67294),He=se(11713),Ne=se(22150),qe=se(71577),ve=se(4631),Le=se.n(ve),De=se(71749),xe=se(30483),me=Object.defineProperty,Te=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ct=(Se,Ce,Ve)=>Ce in Se?me(Se,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Se[Ce]=Ve,$e=(Se,Ce)=>{for(var Ve in Ce||(Ce={}))Et.call(Ce,Ve)&&ct(Se,Ve,Ce[Ve]);if(Ie)for(var Ve of Ie(Ce))dt.call(Ce,Ve)&&ct(Se,Ve,Ce[Ve]);return Se},Ae=(Se,Ce)=>Te(Se,rt(Ce));const ft=He.default.Option,Yt={labelCol:{span:4},wrapperCol:{span:20}},Qe={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"]};nn.Z=({callback:Se,onCancel:Ce})=>{const[Ve,Ue]=(0,oe.useState)("python");function wt(Lt){Ue(Qe[Lt][1])}function gt(Lt){Se(Lt)}return oe.createElement(Ne.default,Ae($e({},Yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:gt,style:{width:500}}),oe.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(He.default,{getPopupContainer:Lt=>Lt.parentNode,onChange:wt},Object.keys(Qe).map(Lt=>oe.createElement(ft,{key:Lt,value:Lt},Qe[Lt][0])))),oe.createElement(Ne.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(it,{mode:Ve})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(qe.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function it({value:Se,onChange:Ce,mode:Ve,options:Ue={}}){const wt=(0,oe.useRef)(),[gt,Lt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(gt){let Je=function(Ut){const It=Ut.getValue();Ce&&Ce(It)};return gt.on("change",Je),()=>{gt.off("change",Je)}}},[gt,Ce]),(0,oe.useEffect)(()=>{gt&>.setOption("mode",Ve)},[gt,Ve]),(0,oe.useEffect)(()=>{gt&&(Se!==gt.getValue()||Se==="")&&setTimeout(()=>{gt.setValue(Se||"")},300)},[gt,Se]),(0,oe.useEffect)(()=>{if(wt.current&&!gt){const Je=Le().fromTextArea(wt.current,$e({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ue));Lt(Je)}},[wt.current,gt]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:wt}))}},91304:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return wr}});var oe=se(67294),He=se(4631),Ne=se.n(He),qe=se(91033),ve=se(71749),Le=se(57341),De=se(82801),xe=se(88386),me=se(49047),Te=se(80785),rt=se(35598),Ie=({value:_n="",className:Ye,showTextOnly:mt,showLines:Ht,style:qt={}})=>{const _e=(0,oe.useMemo)(()=>"",[_n]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:_e}}))},Et=se(67294),dt=Object.defineProperty,ct=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Qe=(_n,Ye,mt)=>Ye in _n?dt(_n,Ye,{enumerable:!0,configurable:!0,writable:!0,value:mt}):_n[Ye]=mt,it=(_n,Ye)=>{for(var mt in Ye||(Ye={}))ft.call(Ye,mt)&&Qe(_n,mt,Ye[mt]);if(Ae)for(var mt of Ae(Ye))Yt.call(Ye,mt)&&Qe(_n,mt,Ye[mt]);return _n},Se=(_n,Ye)=>ct(_n,$e(Ye));let Ce=[{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\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",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 Ve({onActionCallback:_n,title:Ye,icon:mt,actionName:Ht,className:qt="",children:_e}){function xt(){_n(Ht)}return Et.createElement("a",{title:Ye,className:qt,onClick:xt},Et.createElement("i",{className:`${mt}`}),_e)}var Ue=({watch:_n,showNullButton:Ye,showNullProgramButton:mt,onActionCallback:Ht,fullScreen:qt,insertTemp:_e,hidetoolBar:xt,extraUse:Vt})=>{const Pt=[...Ce,{title:`${_n?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${_n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Et.createElement("ul",{className:"markdown-toolbar-container"},!xt&&Pt.map((tn,an)=>Et.createElement("li",{key:an},tn.actionName?Et.createElement(Ve,Se(it({},tn),{onActionCallback:Ht})):Et.createElement("span",{className:"v-line"}))),Ye?Et.createElement("li",null,Et.createElement(Ve,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ht},Et.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mt?Et.createElement(Et.Fragment,null,Et.createElement("li",null,Et.createElement(Ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ht},Et.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Et.createElement("li",null,Et.createElement(Ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ht},Et.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,_e&&Et.createElement("li",null,Et.createElement(Ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${_e}`,onActionCallback:Ht},Et.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Vt&&Et.createElement("li",null,Vt),Et.createElement("li",{className:"btn-full-screen"},Et.createElement(Ve,{icon:`${qt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:qt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ht})))},wt=se(76621),gt=se(22150),Lt=se(69677),Je=se(71577),Ut=Object.defineProperty,It=Object.defineProperties,pn=Object.getOwnPropertyDescriptors,$t=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Yn=(_n,Ye,mt)=>Ye in _n?Ut(_n,Ye,{enumerable:!0,configurable:!0,writable:!0,value:mt}):_n[Ye]=mt,Xe=(_n,Ye)=>{for(var mt in Ye||(Ye={}))Pn.call(Ye,mt)&&Yn(_n,mt,Ye[mt]);if($t)for(var mt of $t(Ye))Kn.call(Ye,mt)&&Yn(_n,mt,Ye[mt]);return _n},we=(_n,Ye)=>It(_n,pn(Ye));const Mt={labelCol:{span:4},wrapperCol:{span:20}};var cn=({callback:_n,onCancel:Ye})=>{function mt(Ht){_n(Ht)}return oe.createElement(gt.default,we(Xe({},Mt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mt,style:{width:500}}),oe.createElement(gt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(Lt.default,null)),oe.createElement(gt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(Lt.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Je.ZP,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))},Kt=se(57444),tt=se(70859),ut=se(14446),Zt=se(71230),Wn=se(63205),wn=se(67294),Qt=({callback:_n,onCancel:Ye})=>{const mt=document.createElement("canvas"),Ht=mt.getContext("2d");mt.width=1e3,mt.height=800,Ht.fillStyle="#ffffff",Ht.fillRect(0,0,mt.width,mt.height);const qt=mt.toDataURL("image/png");return wn.createElement(ut.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},wn.createElement(Zt.Z,{style:{height:"100vh"}},wn.createElement(Wn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:qt,visible:!0,title:String(Date.now())},onOk:_e=>{_n({src:_e.url})},onClose:Ye})))},en=se(72565),Dn=se(15746),vn=se(2453),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=se(67294),he=(0,oe.forwardRef)(({onCancel:_n,editImgId:Ye,callback:mt},Ht)=>{let qt=(0,oe.useRef)(),_e=(0,oe.useRef)(),xt=(0,oe.useRef)(),Vt=(0,oe.useRef)(!1);const Pt=(0,oe.useRef)(!1);console.log("ref:",Ht);const[tn,an]=(0,oe.useState)(0),[Rn,Or]=(0,oe.useState)("100vh");return(0,oe.useEffect)(()=>{an(1);try{indexedDB.databases().then(dr=>{dr.forEach(ar=>indexedDB.deleteDatabase(ar.name))})}catch(dr){}},[]),(0,oe.useImperativeHandle)(Ht,()=>({setHeight:Or})),fe.createElement("div",{ref:Pt,className:"body-overflow-initial"},fe.createElement(en.Z,{width:"100vw",height:Rn,footer:null,closable:!0,placement:"bottom",open:!!tn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Be.drawerWrap}`,onClose:()=>{window.saveDrawData(dr=>{mt({src:`/api/attachments/${dr}`,id:dr})})},title:fe.createElement(Zt.Z,{align:"middle"},fe.createElement(Dn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Dn.Z,{onClick:()=>{Or(Rn==="60px"?"100vh":"60px")}},fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),fe.createElement(Dn.Z,{onClick:()=>{window.saveDrawData(dr=>{if(dr===null){vn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}vn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mt({src:`/api/attachments/${dr}`,id:dr,disabledClose:!0})})}},fe.createElement(Je.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},fe.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Ye||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:_e})))}),de=se(11320),le=se(78045),Ee=se(31795);const Ze=le.ZP.Group,vt={margin:"0 8px"};var Nt=({callback:_n,onCancel:Ye})=>{function mt(Ht){_n(Ht)}return oe.createElement(gt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mt},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:vt},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:vt},"\u884C\u6570"),oe.createElement(gt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Ee.Z,null)),oe.createElement("span",{style:vt},"\u5217\u6570"),oe.createElement(gt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Ee.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:vt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(gt.default.Item,{name:"align"},oe.createElement(Ze,null,oe.createElement(le.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(le.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(le.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(le.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Je.ZP,{type:"ghost",onClick:Ye},"\u53D6\u6D88")))},Ft=se(47897),zt=se(61016),Gt=se.n(zt),mr=(0,oe.forwardRef)(({use3d:_n,width:Ye,height:mt,callback:Ht,showSaveButton:qt},_e)=>{const xt=(0,oe.useRef)(),Vt=(0,oe.useRef)(),[Pt,tn]=(0,oe.useState)(!1),an=(0,oe.useRef)({id:xt,appName:"graphing",width:Ye||1e3,height:mt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{Vt.current=new(Gt())(an.current,!0),window.onload=function(){Vt.current.inject("applet_container")}},[]);const Rn=()=>{var Or=window.ggbApplet.getPNGBase64(1,!0,72);return Ht&&Ht(Or),Or};return(0,oe.useEffect)(()=>{an.current.appName=Pt?"3D":"graphing",Vt.current.inject("applet_container")},[Pt]),(0,oe.useEffect)(()=>{tn(_n)},[_n]),(0,oe.useImperativeHandle)(_e,()=>({getImgData:Rn})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:xt}),oe.createElement(Zt.Z,{align:"middle"},oe.createElement(Dn.Z,{flex:1},oe.createElement(Ft.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Pt,onChange:Or=>tn(Or)})),oe.createElement(Dn.Z,null,oe.createElement(Je.ZP,{size:"large",onClick:Rn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),_t=se(36527),bn=se(25934);const ur="link",Tr="upload-image",lt="add-flowchart",Jt="draw-image",Hn="add-flowchart",er="code-block",nr="add-table",Er="------------",Pr={default:Er,left:`:${Er}`,center:`:${Er}:`,right:`${Er}:`};var Ir=se(99914),zr=(_n,Ye,mt)=>new Promise((Ht,qt)=>{var _e=Pt=>{try{Vt(mt.next(Pt))}catch(tn){qt(tn)}},xt=Pt=>{try{Vt(mt.throw(Pt))}catch(tn){qt(tn)}},Vt=Pt=>Pt.done?Ht(Pt.value):Promise.resolve(Pt.value).then(_e,xt);Vt((mt=mt.apply(_n,Ye)).next())});function Wr(){}let gr=0;const Nr=1e4,Bi="\u2581",Ai="@\u2581\u2581@",Fi="@\u2581@",$r=` **\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`,Ct=["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 dn(_n){return/^\d+$/.test(_n)?`${_n}px`:_n}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},rr={[ur]:"\u6DFB\u52A0\u94FE\u63A5",[er]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Tr]:"\u6DFB\u52A0\u56FE\u7247",[Jt]:"\u6DFB\u52A0\u753B\u56FE",[lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[nr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var wr=({defaultValue:_n="",onChange:Ye,width:mt="100%",height:Ht=400,miniToolbar:qt=!1,isFocus:_e=!1,watch:xt,insertTemp:Vt,mode:Pt="markdown",id:tn="markdown-editor-id",showResizeBar:an=!1,noStorage:Rn=!1,showNullButton:Or=!1,showNullProgramButton:dr=!1,hidetoolBar:ar=!1,fullScreen:xr=!1,onBlur:Sr,onCMBeforeChange:bt,onFullScreen:ht,className:Dt="",disablePaste:Sn=!1,disabled:Vn=!1,disabledFill:Cn=!1,placeholder:yn="",values:Ln="",extraUse:Un,onAddBlank:Cr})=>{const[un,ni]=(0,oe.useState)(null),[Qr,Hi]=(0,oe.useState)(_n),[ki,vi]=(0,oe.useState)(xt),[qi,bi]=(0,oe.useState)(xr),[di,Wi]=(0,oe.useState)(""),[Qi,ai]=(0,oe.useState)(0),[xi,Zi]=(0,oe.useState)(Ht),[ca,na]=(0,oe.useState)(!1),oi=(0,oe.useRef)((0,bn.Z)()),Ot=(0,oe.useRef)(!1),At=(0,oe.useRef)(),[on,Mn]=(0,oe.useState)(0),[jn,Mr]=(0,oe.useState)(0),_r=(0,oe.useRef)(),Jr=(0,oe.useRef)(),ti=(0,oe.useRef)(),Yr=(0,oe.useRef)(),si=(0,oe.useRef)(),wi=(0,oe.useRef)(),Hr=()=>zr(void 0,null,function*(){var Tn;const kn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:oi.current}});(Tn=kn==null?void 0:kn.attachments)!=null&&Tn.length&&(console.log("cm:",un,_r),kn.attachments.map(Fn=>{Fn.content_type.indexOf("image")>-1?un.replaceSelection(`![,](/api/attachments/${Fn.id}?type=${Fn.content_type})`):Fn.content_type.indexOf("video")>-1?un.replaceSelection(``):Fn.content_type.indexOf("pdf")>-1?un.replaceSelection(`${Fn.name}`):un.replaceSelection(`[${Fn.name}](${de.Z.API_SERVER}/api/attachments/${Fn.id}?type=${Fn.content_type})`)}))});(0,oe.useEffect)(()=>{const Tn=window.scrollY||window.pageYOffset;Hi(Ln),un==null||un.setValue(Ln),window.scrollTo(0,Tn)},[Ln]),(0,oe.useEffect)(()=>{ht==null||ht(qi)},[qi]),(0,oe.useEffect)(()=>{if(_r.current){let Tn=function(Fn,Qn){var Ar;if(Sn){Qn.preventDefault();return}const or=Qn.clipboardData;if(or){const ir=or.types.toString(),pr=or.items;if(ir==="Files"||or.types.indexOf("Files")>-1){if(Qn.preventDefault(),Pt=="stex")return;try{let fr=pr[1];((Ar=pr[0])==null?void 0:Ar.kind)==="file"&&(fr=pr[0]);const Br=fr.getAsFile(),Re=Br.name.split(".").pop();(0,tt.I)(Br,je=>{var Rt,yt,rn;je.id?((Rt=Br==null?void 0:Br.type)==null?void 0:Rt.indexOf("image"))>-1?kn.replaceSelection(``):((yt=Br==null?void 0:Br.type)==null?void 0:yt.indexOf("video"))>-1?kn.replaceSelection(``):((rn=Br==null?void 0:Br.type)==null?void 0:rn.indexOf("pdf"))>-1?kn.replaceSelection(`${Br.name}`):Ct.includes(Re)?kn.replaceSelection(`${Br.name}`):kn.replaceSelection(`[${Br.name}](/api/attachments/${je.id}?type=${je.content_type})`):(je==null?void 0:je.status)===401&&(vn.ZP.warning((je==null?void 0:je.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(fr){vn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const kn=Ne().fromTextArea(_r.current,{mode:Pt,lineNumbers:!qt,lineWrapping:!0,value:_n,autoCloseTags:!dr,autoCloseBrackets:!0});return kn.on("keyup",function(Fn,Qn){Qn.keyCode===8&&(Fn.getValue()==""?kn.setOption("placeholder",yn):kn.setOption("placeholder",null))}),kn.on("keydown",function(Fn,Qn){if(Qn.keyCode===8){var Ar=Ii(Fn);Ar&&Qn.preventDefault()}}),_e&&kn.focus(),kn.on("paste",Tn),kn.on("dragleave",function(Fn,Qn){Jr.current.classList.remove("mouse-hover-md")}),Vn&&kn.on("beforeChange",function(Fn,Qn){(Qn.origin==="paste"||Qn.origin==="+input")&&Qn.cancel()}),ni(kn),()=>{kn.off("paste",Tn)}}},[]);const gi=(0,oe.useCallback)(()=>{if(Jr.current)try{}catch(Tn){console.log(Tn,"---- to set md editor body height")}},[xi,Jr,qi]);(0,oe.useEffect)(()=>{function Tn(){let kn=new qe.Z(Fn=>{for(let Qn of Fn)(Qn.target.offsetHeight>0||Qn.target.offsetWidth>0)&&(gi(),un.setSize("100%","100%"),un.refresh())});return kn.observe(_r.current.parentElement),kn}if(un){const kn=Tn();return()=>{var Fn,Qn;(Fn=_r.current)!=null&&Fn.parentElement&&kn.unobserve((Qn=_r.current)==null?void 0:Qn.parentElement)}}},[un,gi]),(0,oe.useEffect)(()=>{if(un){let Tn=[];for(const[kn,Fn]of Object.entries(Jn)){let Qn={[kn]:()=>{Si(Fn)}};Tn.push(Qn),un.addKeyMap(Qn)}return At.current=setInterval(()=>{Ot.current&&Hr()},4e3),()=>{clearInterval(At.current);for(let kn of Tn)un.removeKeyMap(kn)}}},[un]),(0,oe.useEffect)(()=>{xr!==qi&&bi(xr)},[xr]),(0,Ir.Z)(()=>{if(!Rn&&Qi>0){let Tn=new Date().getTime(),kn=window.sessionStorage.getItem(tn);Tn>=Qi+Nr&&(!kn||kn!==Qr)&&(window.sessionStorage.setItem(tn,Qr),na(!0))}},Nr),(0,oe.useEffect)(()=>{vi(xt)},[un,xt]),(0,oe.useEffect)(()=>{un&&_e&&un.focus()},[un,_e]),(0,oe.useEffect)(()=>{if(ki&&un){let Tn=function(Fn){let Qn=Fn.target;if(Yr.current){let Ar=Qn.scrollTop/Qn.scrollHeight;Yr.current.scrollTop=Yr.current.scrollHeight*Ar}};const kn=un.getScrollerElement();return kn.addEventListener("scroll",Tn),()=>{kn.removeEventListener("scroll",Tn)}}},[un,ki]),(0,oe.useEffect)(()=>{if(un&&bt){let Tn=function(kn,Fn){bt(kn,Fn)};return un.on("beforeChange",Tn),()=>{un.off("beforeChange",Tn)}}},[un,bt]),(0,oe.useEffect)(()=>{if(un&&Sr){let Tn=function(){Sr(un.getValue())};return un.on("blur",Tn),()=>{un.off("blur",Tn)}}},[un,Sr]);function Ii(Tn,kn){var Fn=Tn.getDoc(),Qn=Fn.getCursor(),Ar=Fn.getLine(Qn.line),or=Ar.charAt(Qn.ch-1),ir=Ar.lastIndexOf("@\u2581@",Qn.ch),pr=Ar.lastIndexOf("@\u2581\u2581@",Qn.ch),fr=ir>pr?ir:pr,Br=ir>pr?3:4;if(Ai.indexOf(or)===-1)return null;if(console.log("change1:",kn,Tn,Ar,Qn,fr,ir,pr,or),fr>=0&&Qn.ch-fr<5){var Re=fr+Br;return Fn.replaceRange("",{line:Qn.line,ch:fr},{line:Qn.line,ch:Re}),{line:Qn.line,ch:Re}}return null}(0,oe.useEffect)(()=>{if(un){let Tn=function(kn,Fn){const Qn=kn.getValue();Hi(Qn),ai(new Date().getTime()),kn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ye&&(dr?Ye(Qn,hn(Qn)):Ye(Qn))};return un.on("change",Tn),()=>{un.off("change",Tn)}}},[un,Ye]),(0,oe.useEffect)(()=>{if(un)if(_n==null)un.setValue(""),Hi("");else{const Tn=window.scrollY||window.pageYOffset;_n!==un.getValue()&&(un.setValue(_n),Hi(_n),un.setCursor(Vn?1:un.lineCount(),0),window.scrollTo(0,Tn))}},[un,_n]);const Si=(0,oe.useCallback)(Tn=>{const kn=un.getCursor(),Fn=un.getSelection();let Qn=Fn.split(` `);switch(Tn){case"bold":return un.replaceSelection("**"+Fn+"**"),Fn===""&&un.setCursor(kn.line,kn.ch+2),un.focus();case"italic":return un.replaceSelection("*"+Fn+"*"),Fn===""&&un.setCursor(kn.line,kn.ch+1),un.focus();case"code":return un.replaceSelection("`"+Fn+"`"),Fn===""&&un.setCursor(kn.line,kn.ch+1),un.focus();case"inline-latex":return Wi("inline-latex"),un.focus();case"latex":return un.replaceSelection("```latex\n"+Fn+"\n```"),un.setCursor(kn.line+1,Fn.length+1),un.focus();case"line-break":return un.replaceSelection(`
`),un.focus();case"list-ul":return Fn===""?un.replaceSelection("- "+Fn):un.replaceSelection(Qn.map(Ar=>Ar===""?"":`- ${Ar}`).join(` `)),un.focus();case"list-ol":return Fn===""?un.replaceSelection("1. "+Fn):un.replaceSelection(Qn.map((Ar,or)=>Ar===""?"":`${or+1}. ${Ar}`).join(` `)),un.focus();case"add-null-ch":Cr==null||Cr();return;case"add-signal":return Fn===""&&un.setCursor(kn.line,kn.ch),un.replaceSelection(Fi),un.focus();case"add-multiple":return Fn===""&&un.setCursor(kn.line,kn.ch),un.replaceSelection(Ai),un.focus();case"inster-template-1":return Fn===""&&un.setCursor(kn.line,kn.ch),un.replaceSelection($r),un.focus();case"eraser":return un.setValue(""),un.focus();case"trigger-watch":return vi(!ki),un.focus();case"trigger-full-screen":return bi(!qi),un.focus();case ur:Wi(ur);return;case er:Wi(er);return;case Tr:Wi(Tr);return;case Jt:Wi(Jt);return;case"maths-latex":Wi("maths-latex");return;case lt:si.current="",sessionStorage.removeItem("file_id"),Wi(lt);return;case nr:Wi(nr);return;default:throw new Error}},[un,ki,qi]),Pe=(0,oe.useCallback)((Tn,kn)=>{var Fn,Qn,Ar,or,ir,pr;Wi("");const{src:fr,alt:Br,id:Re}=Tn||{};switch(di){case ur:const{title:En,link:et}=Tn;return un.replaceSelection(`[${En}](${et})`),un.focus();case er:const{language:at,content:ot}=Tn;return un.replaceSelection(["```"+at,ot,"```"].join(` `)),un.focus();case"maths-latex":for(var je=atob(Tn),Rt=new Uint8Array(je.length),yt=0;yt{yr.id?un.replaceSelection(`![,](/api/attachments/${yr.id}?type=${yr.content_type})`):(yr==null?void 0:yr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":un.replaceSelection("`$$"+Tn+"$$`");break;case Hn:if(!Re)return;un.focus(),un.getValue().indexOf(fr)===-1?un.replaceSelection(`
${Br||
`):document.getElementById(Re).src=de.Z.API_SERVER+fr+"?t="+Date.now();try{setTimeout(()=>{Sr(un.getValue())},100)}catch(yr){}break;case Tr:case Jt:const St=kn,ln=(Ar=(Qn=(Fn=St==null?void 0:St.name)==null?void 0:Fn.split("."))==null?void 0:Qn.pop)==null?void 0:Ar.call(Qn);return((or=St==null?void 0:St.type)==null?void 0:or.indexOf("image"))>-1||!(St!=null&&St.type)?St!=null&&St.align||St!=null&&St.width?un.replaceSelection(`

${Br||

`):un.replaceSelection(`${Br||`):((ir=St==null?void 0:St.type)==null?void 0:ir.indexOf("video"))>-1?un.replaceSelection(``):((pr=St==null?void 0:St.type)==null?void 0:pr.indexOf("pdf"))>-1?un.replaceSelection(`${St.name}`):Ct.includes(ln)?un.replaceSelection(`${St.name}`):un.replaceSelection(`[${St.name}](${fr})`),un.focus();case nr:const{row:gn,col:Xt,align:fn}=Tn;let Zn=` `;for(let yr=0;yr{switch(di){case ur:return oe.createElement(cn,{callback:Pe,onCancel:Ke});case er:return oe.createElement(Kt.Z,{callback:Pe,onCancel:Ke});case Tr:return oe.createElement(tt.Z,{callback:Pe,onCancel:Ke});case lt:return oe.createElement(he,{editImgId:si.current,callback:Pe,onCancel:Ke});case nr:return oe.createElement(Nt,{callback:Pe,onCancel:Ke});case"maths-latex":return oe.createElement(mr,{showSaveButton:!0,callback:Pe});case"inline-latex":return oe.createElement(_t.Z,{showSaveButton:!0,callback:Pe});default:return null}},[di]);function Ke(){Wi("")}(0,oe.useEffect)(()=>{if(ti.current){let Tn=function(ir){Ar=!0,or=ir.pageY},kn=function(){Ar=!1},Fn=function(ir){if(Ar){let pr=ir.pageY-or;pr<0&&(pr=0),pr>300&&(pr=300);let fr=Ht+pr+"px";Zi(fr)}},Qn=ti.current,Ar=!1,or=0;return Qn.addEventListener("mousedown",Tn),document.addEventListener("mousemove",Fn),document.addEventListener("mouseup",kn),()=>{Qn.removeEventListener("mousedown",Tn),document.removeEventListener("mousemove",Fn),document.removeEventListener("mouseup",kn)}}},[un,ti]),(0,oe.useEffect)(()=>{Zi(Ht)},[Ht]);const Ge=dn(mt),st=dn(xi),pt={width:Ge,height:st},Tt=(0,oe.useMemo)(()=>{if(Qi){let Tn=new Date(Qi),kn=Tn.getHours(),Fn=Tn.getMinutes(),Qn=Tn.getSeconds();return kn=kn<10?"0"+kn:kn,Fn=Fn<10?"0"+Fn:Fn,Qn=Qn<10?"0"+Qn:Qn,`${kn}:${Fn}:${Qn}`}return 0},[Qi]),hn=Tn=>{const kn=[];if(dr){let Fn=-1;Tn=Tn.replace(/(@▁▁@|@▁@)/g,function(Qn,Ar,or){kn.push({multiLine:Qn!==Fi})})}return kn};function xn(){window.sessionStorage.removeItem(tn),na(!1),ai(0)}function lr(){na(!1),ai(0),un.setValue(window.sessionStorage.getItem(tn))}(0,oe.useEffect)(()=>{rr[di]&&di!==Jt&&di!==lt&&setTimeout(()=>{const Tn=document.getElementsByClassName("markdown-popup-form")[0],kn=window.innerWidth/2-Tn.offsetWidth/2,Fn=window.innerHeight/2-Tn.offsetHeight/2;Mn(kn),Mr(Fn)},0)},[di]);const Lr=Tn=>{Tn.preventDefault();const kn=Tn.clientX-on,Fn=Tn.clientY-jn;document.body.onmousemove=Qn=>{let Ar=Qn.clientX-kn,or=Qn.clientY-Fn;const ir=document.getElementsByClassName("markdown-popup-form")[0],pr=window.innerWidth-ir.offsetWidth,fr=window.innerHeight-ir.offsetHeight;Ar=Math.max(0,Math.min(Ar,pr)),or=Math.max(0,Math.min(or,fr)),tr(Qn.clientX,Qn.clientY,kn,Fn)&&(Mn(Ar),Mr(or))},document.body.onmouseup=function(){document.body.onmousemove=null}},tr=(Tn,kn,Fn,Qn)=>{const Ar=document.body.clientHeight,or=document.body.clientWidth;return Tn<20&&Fn>Tn||Tn>or-20&&Fnkn||kn>Ar-20&&Qn{var kn;si.current=Tn,(kn=wi.current)==null||kn.setHeight("100vh"),setTimeout(()=>{Wi("add-flowchart")},150)}})):null))),an?oe.createElement("a",{ref:ti,className:"editor-resize"}):null,di===Jt&&oe.createElement(Qt,{callback:Pe,onCancel:Ke}),di===lt&&oe.createElement(he,{ref:wi,editImgId:si.current,callback:Pe,onCancel:Ke}),oe.createElement(wt.Z,null,rr[di]&&di!==Jt&&di!==lt?oe.createElement(ut.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:on,top:jn},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:Lr},rr[di]),open:!0,onCancel:Ke,footer:null,destroyOnClose:!0,width:di===lt?"1200px":null,height:di===lt?"80vh":null,className:"markdown-popup-form"},We):null))}},70859:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Ve},I:function(){return wt}});var oe=se(22150),He=se(2453),Ne=se(69677),qe=se(93421),ve=se(31795),Le=se(78045),De=se(71577),xe=se(15476),me=se(67294),Te=se(52262),rt=se(67294),Ie=Object.defineProperty,Et=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ft=(gt,Lt,Je)=>Lt in gt?Ie(gt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Je}):gt[Lt]=Je,Yt=(gt,Lt)=>{for(var Je in Lt||(Lt={}))$e.call(Lt,Je)&&ft(gt,Je,Lt[Je]);if(ct)for(var Je of ct(Lt))Ae.call(Lt,Je)&&ft(gt,Je,Lt[Je]);return gt},Qe=(gt,Lt)=>Et(gt,dt(Lt));const{useForm:it}=oe.default,Se={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var Ve=({callback:gt,onCancel:Lt})=>{const[Je]=it();let Ut=(0,me.useRef)();function It(Pn){Ut.current.width=Je.getFieldValue("width"),Ut.current.align=Je.getFieldValue("align"),gt(Pn,Ut.current)}function pn(Pn,Kn){if(Pn.status===-1){He.ZP.error(Pn.message);return}Je.setFieldsValue({src:`/api/attachments/${Pn.id}`,type:Kn.type})}function $t(Pn){let Kn=Pn.target.files[0];Ut.current=Kn,wt(Kn,pn)}return rt.createElement(oe.default,Qe(Yt({form:Je},Ce),{className:"upload-image-panel",onFinish:It,style:{width:470,overflow:"hidden"}}),rt.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},rt.createElement("div",{className:"flex-container"},rt.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},rt.createElement(Ne.default,{style:Se})),rt.createElement(Ue,{onFileChange:$t}))),rt.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},rt.createElement(Ne.default,{style:{width:264}})),rt.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},rt.createElement(qe.Z,null,rt.createElement(oe.default.Item,{name:"width",style:{margin:0}},rt.createElement(ve.Z,{style:{width:264}})),rt.createElement("span",{className:"ml8"},"%"))),rt.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},rt.createElement(Le.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"}]})),rt.createElement("aside",null,rt.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},rt.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),rt.createElement(De.ZP,{type:"default",onClick:Lt},"\u53D6\u6D88"))))};function Ue({onFileChange:gt}){return rt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",rt.createElement("input",{type:"file",onChange:gt}))}function wt(gt,Lt){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw He.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Je=new FormData;Je.append("editormd-image-file",gt),Je.append("file_param_name","editormd-image-file"),Je.append("byxhr","true");var Ut=new window.XMLHttpRequest;Ut.withCredentials=!0,Ut.addEventListener("load",function(It){Lt(JSON.parse(It.target.responseText),gt)},!1),Ut.addEventListener("error",function(It){console.error(It)},!1),Ut.open("POST",`${xe.KI}/api/attachments.json`),Ut.send(Je)}},76621:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Ne}});var oe=se(67294),He=se(73935);class Ne extends oe.Component{constructor(ve){super(ve);const Le=window.document;this.node=Le.createElement("div"),Le.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,He.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(sn,nn,se){"use strict";se.d(nn,{i:function(){return Ce},Z:function(){return Ue}});var oe={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"},He=se(57953),Ne=se(83062),qe=se(38703),ve=se(94184),Le=se.n(ve),De=se(28706),xe=se(26194),me=se(52262),Te=se(79005),rt=se(20345),Ie=se(77882),Et=se(31081),dt=se(75309),ct=se(71979),$e=se(47558),Ae=se(60345),ft=se(66832),Yt=se(96593),Qe=se(19664),it=se(91833),Se=se(67294);const Ce=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Te,swimg:rt},{name:"101\u8BA1\u5212",ptimg:Ie,swimg:Et},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:dt,swimg:ct},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:$e,swimg:Ae},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:ft,swimg:Yt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Qe,swimg:it}];var Ue=({className:wt,dataSource:gt=[],col:Lt=4,right:Je,bottom:Ut=23,precision:It=0,wrapWidth:pn=1200,trackEventItems:$t,loading:Pn,onRemove:Kn=()=>{},isCurrent:Yn=!0,showAlias:Xe=!1,showProgress:we=!1})=>{const Mt=Math.floor((pn-(Lt-1)*Je)/Lt),cn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Kt=>(window.ENV==="build"&&(Kt.ptimg=`/react/build${Kt.ptimg}`,Kt.swimg=`/react/build${Kt.swimg}`),Kt));return Se.createElement(He.Z,{spinning:Pn},Se.createElement("div",{className:Le()(oe.list,wt)},!!(gt!=null&>.length)&&(gt==null?void 0:gt.map((Kt,tt)=>{var ut,Zt,Wn,wn,Qt,en;const{name:Dn,id:vn,identifier:Be,featured:fe,school_name:ce,image_url:he,excellent:de,is_plan:le}=Kt;return Se.createElement("div",{key:vn,className:Yn&&we?oe.wrapisCurrent:oe.wrap,style:{width:Mt,marginRight:(1+tt)%Lt===0?0:Je+It,marginBottom:Ut}},Se.createElement("a",{className:oe.li,onClick:Ee=>{Ee.preventDefault(),Ee.stopPropagation(),$t&&(0,De.L9)([$t]),(0,De.xg)(`/paths/${Be}`)}},Se.createElement("div",{className:oe.img},Se.createElement("img",{className:oe.cover,src:`${he}`}),Yn&&(0,me.bg)()&&(Kt==null?void 0:Kt.studying)&&Se.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:Ee=>{Ee.stopPropagation(),Kn(Kt)}},Se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ut=Kt==null?void 0:Kt.subject_tags)==null?void 0:ut.map((Ee,Ze)=>{var vt,Nt;if(Ze===0){const zt=(vt=cn.find(Gt=>Gt.name==Ee))==null?void 0:vt.swimg;return Se.createElement("img",{className:oe.sign,src:zt,style:{left:"-4px"}})}const Ft=(Nt=cn.find(zt=>zt.name==Ee))==null?void 0:Nt.ptimg;return Se.createElement("img",{className:oe.sign,src:Ft,style:{left:`${48+52*(Ze-1)+2*Ze}px`}})}),Se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Kt==null?void 0:Kt.excellent)&&Se.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Se.createElement("div",{className:oe.name},Se.createElement(Ne.Z,{title:Xe&&(Kt!=null&&Kt.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Dn}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Kt==null?void 0:Kt.excellent_alias_name}`)):Dn},Se.createElement("span",{className:oe.e},Xe&&(Kt==null?void 0:Kt.excellent_alias_name)||Dn))),Yn&&we&&((Zt=Kt==null?void 0:Kt.progress)==null?void 0:Zt.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Wn=Kt==null?void 0:Kt.progress)==null?void 0:Wn.my_score)/((wn=Kt==null?void 0:Kt.progress)==null?void 0:wn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Qt=Kt==null?void 0:Kt.progress)==null?void 0:Qt.my_score,"/",(en=Kt==null?void 0:Kt.progress)==null?void 0:en.all_score),(!Yn||!we)&&Se.createElement("div",{className:oe.tags},Se.createElement("div",null,Se.createElement(Ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,Kt.stages_count))),Se.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Se.createElement("span",null,Kt.members_count)))))))})),!gt.length&&Se.createElement(xe.Z,null)))}},78311:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Le}});var oe=se(67294),He={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"},Ne=se(94184),qe=se.n(Ne),Le=({dataSource:De=[],value:xe,onChange:me,className:Te,style:rt={}})=>oe.createElement("div",{style:rt,className:qe()(He.tabs,Te)},De.map(Ie=>oe.createElement("span",{onClick:()=>me(Ie.id),className:xe===Ie.id?He.active:"",key:Ie.id},Ie.name)))},64743:function(sn,nn,se){"use strict";se.d(nn,{jL:function(){return ve},w9:function(){return Nn},vv:function(){return qt},dN:function(){return _n},QD:function(){return At},cQ:function(){return le.Z},vg:function(){return Fi},Oz:function(){return zr},op:function(){return xi},O5:function(){return pt},_b:function(){return Jr},t7:function(){return Lt},tT:function(){return It},Gi:function(){return Sr},YG:function(){return Pt},Ed:function(){return ar},kT:function(){return Rn},qp:function(){return Ae},Um:function(){return Ce},K3:function(){return Qe},vr:function(){return jn},qE:function(){return na},Je:function(){return Pn},wb:function(){return wn},rC:function(){return de},lB:function(){return Dn},cq:function(){return Cn},kO:function(){return Cr},tp:function(){return Ve.Z},Si:function(){return xn},k8:function(){return En},Du:function(){return Ar}});var oe=se(67294),He={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"},Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINty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ziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",ve=({dataSource:et=[],img:at,imgWidth:ot=346,title:St,sunTitle:ln,bannerExtraContent:gn})=>oe.createElement("div",{className:He.banner},oe.createElement("div",{className:He.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,St),oe.createElement("span",null,ln)),et.length>0&&oe.createElement("div",{className:He.btns},et.map((Xt,fn)=>oe.createElement("div",{key:fn,onClick:Xt.click},Xt.name,Xt.sign?oe.createElement("img",{src:Ne,width:39}):null))),gn),at&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:at,width:ot}))),Le={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"},De=se(94184),xe=se.n(De),me=se(96486),Te=Object.defineProperty,rt=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,dt=(et,at,ot)=>at in et?Te(et,at,{enumerable:!0,configurable:!0,writable:!0,value:ot}):et[at]=ot,ct=(et,at)=>{for(var ot in at||(at={}))Ie.call(at,ot)&&dt(et,ot,at[ot]);if(rt)for(var ot of rt(at))Et.call(at,ot)&&dt(et,ot,at[ot]);return et},Ae=({dataSource:et=[],value:at,onChange:ot,onTitleChange:St,className:ln,title:gn,titleWidth:Xt=41,style:fn={},fontColor:Zn="#6A7283",showCount:yr,classNameActive:Gn,styleItem:Bn={}})=>{const[qn,vr]=(0,oe.useState)(0),[Rr,hr]=(0,oe.useState)(!1),Xn=(0,oe.useRef)(null),Kr=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var Ur;et.length!==0&&(((Ur=Xn==null?void 0:Xn.current)==null?void 0:Ur.clientHeight)>97?vr(1):vr(0)),et.length===0&&vr(0),hr(!1)},[et]),oe.createElement("div",{className:xe()(Le.row,ln),style:fn},oe.createElement("div",{onClick:(0,me.throttle)(()=>St==null?void 0:St(),2e3),style:{width:Xt,marginTop:Rr?12:4},className:`${Le.title} ${St?"current":""}`},gn),oe.createElement("div",{className:Rr?`${Le.tagsWrap} ${Le.tagsBorderWrap}`:Le.tagsWrap},oe.createElement("div",{className:Le.bar,ref:Kr,style:qn>0?{height:qn===1?97:"auto",overflow:qn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Le.tag,ref:Xn},et==null?void 0:et.map(Ur=>oe.createElement("span",{onClick:()=>ot(Ur.id),key:Ur.id,style:ct(ct({color:Zn},Bn),(Ur==null?void 0:Ur.style)||{}),className:at===Ur.id?xe()(Gn||Le.active,Ur.classNameActive):""},oe.createElement("span",{title:Ur.name,className:Le.name},Ur.name),!!yr&&oe.createElement("span",{className:Le.num},Ur.count))))),!!qn&&oe.createElement(oe.Fragment,null,qn===1?oe.createElement("div",{onClick:()=>{var Ur;vr(2),((Ur=Xn==null?void 0:Xn.current)==null?void 0:Ur.clientHeight)>245?hr(!0):hr(!1)},className:Le.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{Kr.current.scrollTop=0,vr(1),hr(!1)},className:Le.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ft={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},Qe=({dataSource:et=[],value:at,onChange:ot,onTitleChange:St,className:ln,title:gn,titleWidth:Xt=41,style:fn={},fontColor:Zn="#6A7283",showCount:yr,expand:Gn=!0})=>{const[Bn,qn]=(0,oe.useState)(0),[vr,Rr]=(0,oe.useState)(!1),hr=(0,oe.useRef)(null),Xn=(0,oe.useRef)(null),[Kr,Ur]=(0,oe.useState)(Gn);return oe.createElement("div",{className:xe()(ft.row,ln),style:fn},oe.createElement("div",{className:"flex item-center justify-between"},oe.createElement("div",{onClick:(0,me.throttle)(()=>St==null?void 0:St(),2e3),style:{width:Xt,marginTop:vr?12:4},className:`${ft.title} ${St?"current":""}`},gn),oe.createElement("i",{className:`iconfont ${Kr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Kr?8:10},onClick:()=>Ur(!Kr)})),Kr&&oe.createElement("div",{className:vr?`${ft.tagsWrap} ${ft.tagsBorderWrap}`:ft.tagsWrap},oe.createElement("div",{className:ft.fenge}),oe.createElement("div",{className:ft.bar,ref:Xn},oe.createElement("div",{className:ft.tag,ref:hr},et==null?void 0:et.map(fi=>oe.createElement("span",{onClick:()=>ot(fi.id),key:fi.id,style:{color:Zn},className:at===fi.id?ft.active:""},oe.createElement("span",{title:fi.name,className:ft.name},fi.name),!!yr&&oe.createElement("span",{className:ft.num},fi.count)))))))},it={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},Ce=({dataSource:et=[],value:at,onChange:ot,onTitleChange:St,className:ln,title:gn,titleWidth:Xt=41,style:fn={},fontColor:Zn="#fff",showCount:yr,expand:Gn=!0})=>{const[Bn,qn]=(0,oe.useState)(0),[vr,Rr]=(0,oe.useState)(!1),hr=(0,oe.useRef)(null),Xn=(0,oe.useRef)(null),[Kr,Ur]=(0,oe.useState)(Gn);return oe.createElement("div",{className:xe()(it.row,ln),style:fn},oe.createElement("div",{className:"flex item-center justify-between"},oe.createElement("div",{onClick:(0,me.throttle)(()=>St==null?void 0:St(),2e3),style:{width:Xt},className:`${it.title} ${St?"current":""}`},gn),oe.createElement("i",{className:`iconfont ${Kr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Kr?"#00DDC7":"#037F74",fontSize:Kr?10:12},onClick:()=>Ur(!Kr)})),Kr&&oe.createElement("div",{className:vr?`${it.tagsWrap} ${it.tagsBorderWrap}`:it.tagsWrap},oe.createElement("div",{className:it.bar,ref:Xn},oe.createElement("div",{className:it.tag,ref:hr},et==null?void 0:et.map(fi=>oe.createElement("span",{onClick:()=>ot(fi.id),key:fi.id,style:{color:Zn},className:at===fi.id?it.active:""},oe.createElement("span",{title:fi.name,className:it.name},fi.name),!!yr&&oe.createElement("span",{className:it.num},fi.count)))))))},Ve=se(78311),Ue={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"},wt=se(69677),Lt=({dataSource:et=[],value:at="",onChange:ot,onInputChange:St=()=>{},className:ln,style:gn={},placeholder:Xt,allowClear:fn=!1})=>{var Zn;const[yr,Gn]=(0,oe.useState)(""),[Bn,qn]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var hr;let Xn=at;(hr=JSON.stringify(at))!=null&&hr.includes("{")&&(Gn(at.id),Xn=at.value||"");try{qn(decodeURIComponent(Xn||""))}catch(Kr){qn(decodeURIComponent(Xn||""))}},[at]);const vr=()=>{ot(encodeURIComponent(Bn),yr||null)},Rr=hr=>{hr!==yr&&(Gn(hr),ot(encodeURIComponent(Bn),hr))};return oe.createElement("div",{className:xe()(Ue.input,ln),style:gn},!!et.length&&oe.createElement("div",{className:Ue.dropdown},oe.createElement("div",{className:Ue.text},(Zn=et.find(hr=>hr.id===yr))==null?void 0:Zn.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:Ue.b1}),oe.createElement("b",{className:Ue.b2})),oe.createElement("div",{className:Ue.menu},et.map((hr,Xn)=>oe.createElement("div",{key:Xn,onClick:()=>Rr(hr.id)},hr.name)))),oe.createElement(wt.default,{onPressEnter:vr,value:Bn,onChange:hr=>{qn(hr.target.value),St(encodeURIComponent(hr.target.value),yr||null)},bordered:!1,placeholder:Xt}),oe.createElement("i",{onClick:vr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Je={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},It=({dataSource:et=[],value:at="",onChange:ot,onInputChange:St=()=>{},className:ln,style:gn={},placeholder:Xt,allowClear:fn=!1})=>{var Zn;const[yr,Gn]=(0,oe.useState)(""),[Bn,qn]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var hr;let Xn=at;(hr=JSON.stringify(at))!=null&&hr.includes("{")&&(Gn(at.id),Xn=at.value||"");try{qn(decodeURIComponent(Xn||""))}catch(Kr){qn(decodeURIComponent(Xn||""))}},[at]);const vr=()=>{ot(encodeURIComponent(Bn),yr||null)},Rr=hr=>{hr!==yr&&(Gn(hr),ot(encodeURIComponent(Bn),hr))};return oe.createElement("div",{className:xe()(Je.input,ln),style:gn},!!et.length&&oe.createElement("div",{className:Je.dropdown},oe.createElement("div",{className:Je.text},(Zn=et.find(hr=>hr.id===yr))==null?void 0:Zn.name,oe.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),oe.createElement("div",{className:Je.menu},et.map((hr,Xn)=>oe.createElement("div",{key:Xn,onClick:()=>Rr(hr.id)},hr.name)))),oe.createElement(wt.default,{onPressEnter:vr,value:Bn,onChange:hr=>{qn(hr.target.value),St(encodeURIComponent(hr.target.value),yr||null)},bordered:!1,placeholder:Xt}),oe.createElement("i",{onClick:vr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},pn={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"},Pn=({value:et,onChange:at,className:ot,total:St,pageSize:ln,style:gn={}})=>{const Xt=et<2,fn=et>=Math.ceil(St/ln);return St<=ln?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:xe()(pn.quickPager,ot),style:gn},oe.createElement("div",{onClick:()=>{Xt||at(et-1,"prev")},className:Xt?pn.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{fn||at(et+1,"next")},className:fn?pn.disabled:""},"\u4E0B\u4E00\u9875"))},Kn={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"},Yn=se(57953),Xe=se(83062),we=se(12604),Mt=se(11320),cn=se(28706),Kt=se(96908),tt=se(57177),ut=se(81378),Zt=se(26194),wn=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,trackEventItems:fn,loading:Zn})=>{const yr=Math.floor((Xt-(ot-1)*St)/ot);return oe.createElement(Yn.Z,{spinning:Zn},oe.createElement("div",{className:xe()(Kn.list,et)},!!at.length&&at.map((Gn,Bn)=>{const{name:qn,id:vr,identifier:Rr,power:hr,cover_image_id:Xn,pic:Kr}=Gn;return oe.createElement("div",{className:Kn.wrap,key:vr,style:{width:yr,marginRight:(1+Bn)%ot===0?0:St+gn,marginBottom:ln}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Rr}/challenges`,className:Kn.li,onClick:Ur=>{Ur.preventDefault(),fn&&(0,cn.L9)([fn]),hr&&(0,cn.xg)(`/shixuns/${Rr}/challenges`)}},oe.createElement("div",{className:Kn.img},oe.createElement("img",{className:Kn.cover,src:`${Kr}`}),Gn.is_jupyter&&oe.createElement("img",{className:Kn.sign,src:Kt}),Gn.is_jupyter_lab&&oe.createElement("img",{className:Kn.sign,src:tt}),Gn.is_unity_3d&&oe.createElement("img",{className:Kn.sign,src:ut})),oe.createElement("div",{className:Kn.name},oe.createElement(Xe.Z,{title:qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Kn.e},qn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Kn.tags},oe.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,Gn.challenges_count))),!!Gn.myshixuns_count&&oe.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,Gn.myshixuns_count))),oe.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,Gn.level))),oe.createElement("div",{className:Kn.rate},oe.createElement(we.Z,{allowHalf:!0,disabled:!0,defaultValue:Gn.score_info}),oe.createElement("span",null,"\xA0",Gn.score_info?`${Gn.score_info}\u5206`:"5\u5206")))),!hr&&oe.createElement("div",{className:Kn.lockWrap},oe.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!at.length&&oe.createElement(Zt.Z,null)))},Qt={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Dn=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,wrapClassName:fn,trackEventItems:Zn,loading:yr})=>{const Gn=Math.floor((Xt-(ot-1)*St)/ot);return oe.createElement(Yn.Z,{spinning:yr},oe.createElement("div",{className:xe()(Qt.list,et)},!!at.length&&at.map((Bn,qn)=>{const{name:vr,id:Rr,identifier:hr,power:Xn,cover_image_id:Kr,pic:Ur}=Bn;return oe.createElement("div",{className:xe()(Qt.wrap,fn),key:Rr,style:{width:Gn,marginRight:(1+qn)%ot===0?0:St+gn,marginBottom:ln}},oe.createElement("a",{target:"_blank",href:`/shixuns/${hr}/challenges`,className:Qt.li,onClick:fi=>{fi.preventDefault(),Zn&&(0,cn.L9)([Zn]),Xn&&(0,cn.xg)(`/shixuns/${hr}/challenges`)}},oe.createElement("img",{src:se(79633),className:Qt.titleBg}),oe.createElement("div",{className:Qt.name},oe.createElement(Xe.Z,{title:vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Qt.e},vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},oe.createElement("div",{className:Qt.img},oe.createElement("img",{className:Qt.cover,src:Kr?`${Mt.Z.API_SERVER}/api/attachments/${Kr}`:`${Mt.Z.IMG_SERVER+Ur}`}),Bn.is_jupyter&&oe.createElement("div",{className:Qt.bq},"Jupyter"),Bn.is_jupyter_lab&&oe.createElement("div",{className:Qt.bq},"JupyterLab"),Bn.is_unity_3d&&oe.createElement("div",{className:Qt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),oe.createElement("div",{className:"mt20 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:Qt.text},"\u5B66\u4E60\u4EBA\u6570"),oe.createElement("span",{className:Qt.value},Bn.myshixuns_count)),oe.createElement("div",null,oe.createElement("span",{className:Qt.text},"\u56F0\u96BE\u7B49\u7EA7"),oe.createElement("span",{className:Qt.value},Bn.level))),oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:Qt.text},"\u5173\u5361\u6570"),oe.createElement("span",{className:Qt.value},Bn.challenges_count)),oe.createElement("div",{className:Qt.rate},oe.createElement(we.Z,{allowHalf:!0,disabled:!0,defaultValue:Bn.score_info}),oe.createElement("span",{className:Qt.value,style:{color:"#FF9C00"}},"\xA0",Bn.score_info?`${Bn.score_info}\u5206`:"5\u5206"))))),!Xn&&oe.createElement("div",{className:Qt.lockWrap},oe.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!at.length&&oe.createElement(Zt.Z,null)))},vn={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3g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fFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",de=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,trackEventItems:fn,loading:Zn,wrapClassName:yr,imgClassName:Gn})=>{const Bn=Math.floor((Xt-(ot-1)*St)/ot);return oe.createElement(Yn.Z,{spinning:Zn},oe.createElement("div",{className:xe()(vn.list,et)},!!at.length&&at.map((qn,vr)=>{const{name:Rr,id:hr,identifier:Xn,power:Kr,cover_image_id:Ur,pic:fi}=qn;return oe.createElement("div",{className:xe()(vn.wrap,yr),key:hr,style:{width:Bn,marginRight:(1+vr)%ot===0?0:St+gn,marginBottom:ln}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Xn}/challenges`,className:vn.li,onClick:Ci=>{Ci.preventDefault(),fn&&(0,cn.L9)([fn]),Kr&&(0,cn.xg)(`/shixuns/${Xn}/challenges`)}},oe.createElement("div",{className:xe()(vn.img,Gn)},oe.createElement("img",{className:vn.cover,src:Ur?`${Mt.Z.API_SERVER}/api/attachments/${Ur}`:`${Mt.Z.IMG_SERVER+fi}`}),qn.is_jupyter&&oe.createElement("img",{className:vn.sign,src:Be}),qn.is_jupyter_lab&&oe.createElement("img",{className:vn.sign,src:fe}),qn.is_unity_3d&&oe.createElement("img",{className:vn.sign,src:ce})),oe.createElement("div",{className:vn.name},oe.createElement(Xe.Z,{title:Rr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:vn.e},Rr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:vn.tags},oe.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,qn.challenges_count))),!!qn.myshixuns_count&&oe.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,qn.myshixuns_count))),oe.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,qn.level))),oe.createElement("div",{className:vn.rate},oe.createElement(we.Z,{allowHalf:!0,disabled:!0,defaultValue:qn.score_info}),oe.createElement("span",null,"\xA0",qn.score_info?`${qn.score_info}\u5206`:"5\u5206")))),!Kr&&oe.createElement("div",{className:vn.lockWrap},oe.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!at.length&&oe.createElement(Zt.Z,null)))},le=se(5476),Ee={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ze=se(79005),vt=se(20345),Nt=se(77882),Ft=se(31081),zt=se(75309),Gt=se(71979),$n=se(47558),mr=se(60345),_t=se(66832),bn=se(96593),ur=se(19664),Tr=se(91833),lt=Object.defineProperty,Jt=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,nr=(et,at,ot)=>at in et?lt(et,at,{enumerable:!0,configurable:!0,writable:!0,value:ot}):et[at]=ot,Er=(et,at)=>{for(var ot in at||(at={}))Hn.call(at,ot)&&nr(et,ot,at[ot]);if(Jt)for(var ot of Jt(at))er.call(at,ot)&&nr(et,ot,at[ot]);return et};const Pr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ze,swimg:vt},{name:"101\u8BA1\u5212",ptimg:Nt,swimg:Ft},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:zt,swimg:Gt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:$n,swimg:mr},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:_t,swimg:bn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ur,swimg:Tr}];var zr=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,trackEventItems:fn,loading:Zn,wrapClassName:yr,imgClassName:Gn,isArrow:Bn=!1,imgStyle:qn={}})=>{const vr=Math.floor((Xt-(ot-1)*St)/ot),[Rr,hr]=(0,oe.useState)(),[Xn,Kr]=(0,oe.useState)(),Ur=Ci=>hr(Ci),fi=()=>hr(-1);return oe.createElement(Yn.Z,{spinning:Zn},oe.createElement("div",{className:xe()(Ee.list,et)},!!(at!=null&&at.length)&&(at==null?void 0:at.map((Ci,Di)=>{var $i;const{name:ea,id:yi,identifier:Ri,featured:ii,school_name:ci,image_url:Ei,excellent:Xi,is_plan:Pa}=Ci;return oe.createElement("div",{key:yi,className:xe()(Ee.wrap,yr),style:{width:vr,marginRight:(1+Di)%ot===0?0:St+gn,marginBottom:ln}},oe.createElement("a",{target:"_blank",href:`/paths/${Ri}`,className:Ee.li,onClick:wa=>{wa.preventDefault(),fn&&(0,cn.L9)([fn]),(0,cn.xg)(`/paths/${Ri}`)}},oe.createElement("img",{src:se(39057),className:Ee.titleBg}),oe.createElement("div",{className:Ee.name},oe.createElement(Xe.Z,{title:ea},oe.createElement("span",{className:Ee.e,style:{color:Bn&&Rr===Di?"#145DFF":"#000000"},onMouseEnter:()=>{Ur(Di)},onMouseLeave:fi},ea))),oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},oe.createElement("div",{className:xe()(Ee.img,Gn)},oe.createElement("img",{className:Ee.cover,style:Er({},qn),src:`${Mt.Z.IMG_SERVER+Ei}`}),($i=Ci==null?void 0:Ci.subject_tags)==null?void 0:$i.map((wa,ua)=>{var ra,ta;if(ua===0){const Sa=(ra=Pr.find(Ni=>Ni.name==wa))==null?void 0:ra.swimg;return oe.createElement("img",{className:Ee.sign,src:Sa,style:{left:"-4px"}})}const Ti=(ta=Pr.find(Sa=>Sa.name==wa))==null?void 0:ta.ptimg;return oe.createElement("img",{className:Ee.sign,src:Ti,style:{left:`${48+52*(ua-1)+2*ua}px`}})}),oe.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Ci==null?void 0:Ci.excellent)&&oe.createElement("div",{className:Ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:Ee.text},"\u7AE0\u8282\u6570"),oe.createElement("span",{className:Ee.value},Ci.stages_count)),oe.createElement("div",null,oe.createElement("span",{className:Ee.text},"\u5B66\u4E60\u4EBA\u6570"),oe.createElement("span",{className:Ee.value},Ci.members_count))))))})),!at.length&&oe.createElement(Zt.Z,null)))},Wr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},gr=se(52262),Nr=se(67294);const Bi=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ze,swimg:vt},{name:"101\u8BA1\u5212",ptimg:Nt,swimg:Ft},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:zt,swimg:Gt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:$n,swimg:mr},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:_t,swimg:bn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ur,swimg:Tr}];var Fi=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,trackEventItems:fn,loading:Zn,onRemove:yr=()=>{},isCurrent:Gn=!0,showAlias:Bn=!1,wrapClassName:qn,imgClassName:vr})=>{const Rr=Math.floor((Xt-(ot-1)*St)/ot),hr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Xn=>(window.ENV==="build"&&(Xn.ptimg=`/react/build${Xn.ptimg}`,Xn.swimg=`/react/build${Xn.swimg}`),Xn));return Nr.createElement(Yn.Z,{spinning:Zn},Nr.createElement("div",{className:xe()(Wr.list,et)},!!(at!=null&&at.length)&&(at==null?void 0:at.map((Xn,Kr)=>{var Ur;const{name:fi,id:Ci,identifier:Di,featured:$i,school_name:ea,image_url:yi,excellent:Ri,is_plan:ii}=Xn;return Nr.createElement("div",{key:Ci,className:xe()(Wr.wrap,qn),style:{width:Rr,marginRight:(1+Kr)%ot===0?0:St+gn,marginBottom:ln}},Nr.createElement("a",{className:Wr.li,onClick:ci=>{ci.preventDefault(),ci.stopPropagation(),fn&&(0,cn.L9)([fn]),(0,cn.xg)(`/paths/${Di}`)}},Nr.createElement("div",{className:xe()(Wr.img,vr)},Nr.createElement("img",{className:Wr.cover,src:`${Mt.Z.IMG_SERVER+yi}`}),Gn&&(0,gr.bg)()&&(Xn==null?void 0:Xn.studying)&&Nr.createElement("div",{className:`${Wr.movebq} user-path-items`,onClick:ci=>{ci.stopPropagation(),yr(Xn)}},Nr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Nr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ur=Xn==null?void 0:Xn.subject_tags)==null?void 0:Ur.map((ci,Ei)=>{var Xi,Pa;if(Ei===0){const ua=(Xi=hr.find(ra=>ra.name==ci))==null?void 0:Xi.swimg;return Nr.createElement("img",{className:Wr.sign,src:ua,style:{left:"-4px"}})}const wa=(Pa=hr.find(ua=>ua.name==ci))==null?void 0:Pa.ptimg;return Nr.createElement("img",{className:Wr.sign,src:wa,style:{left:`${48+52*(Ei-1)+2*Ei}px`}})}),Nr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Xn==null?void 0:Xn.excellent)&&Nr.createElement("div",{className:Wr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Nr.createElement("div",{className:Wr.name},Nr.createElement(Xe.Z,{title:Bn&&(Xn!=null&&Xn.excellent_alias_name)?Nr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fi}`,Nr.createElement("br",null),Nr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Xn==null?void 0:Xn.excellent_alias_name}`)):fi},Nr.createElement("span",{className:Wr.e},Bn&&(Xn==null?void 0:Xn.excellent_alias_name)||fi))),Nr.createElement("div",{className:Wr.tags},Nr.createElement("div",null,Nr.createElement(Xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Nr.createElement("span",null,Nr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Nr.createElement("span",null,Xn.stages_count))),Nr.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Nr.createElement("span",null,Nr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Nr.createElement("span",null,Xn.members_count)))))))})),!at.length&&Nr.createElement(Zt.Z,null)))},$r={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMc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idth:Xt=1200,trackEventItems:fn,loading:Zn})=>{const yr=Math.floor((Xt-(ot-1)*St)/ot);return dn.createElement(Yn.Z,{spinning:Zn},dn.createElement("div",{className:xe()($r.list,et)},!!at.length&&at.map((Gn,Bn)=>{const{subject_identifier:qn,id:vr,identifier:Rr,power:hr}=Gn,Xn=Gn.is_public!=0&&Gn.is_public;return dn.createElement("div",{className:$r.wrap,key:vr,style:{width:yr,marginRight:(1+Bn)%ot===0?0:St+gn,marginBottom:ln}},dn.createElement("a",{className:$r.li,onClick:Kr=>{Kr.preventDefault(),fn&&(0,cn.L9)([fn]),(0,cn.xg)(Gn.first_category_url)}},dn.createElement("div",{className:$r.top},dn.createElement(Xe.Z,{title:Gn.name},dn.createElement("div",{className:$r.name},Gn.name)),dn.createElement("img",{className:$r.img,src:Mt.Z.IMG_SERVER+"/images/"+Gn.avatar_url}),dn.createElement("div",{className:$r.text,title:Gn.creator},Gn.creator),qn&&dn.createElement("div",{className:$r.btns},dn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),dn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Xn&&dn.createElement("div",{className:$r.sign},"\u516C\u5F00")),dn.createElement("div",{className:$r.bottom},Gn.visits>0&&dn.createElement(Xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},dn.createElement("span",null,dn.createElement("i",{className:"iconfont icon-liulanyan"}),dn.createElement("span",null,Gn.visits))),Gn.course_members_count>0&&dn.createElement(Xe.Z,{title:"\u6210\u5458",placement:"bottom"},dn.createElement("span",null,dn.createElement("i",{className:"iconfont icon-chengyuan"}),Gn.course_members_count)),Gn.tasks_count>0&&dn.createElement(Xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},dn.createElement("span",null,dn.createElement("i",{className:"iconfont icon-zuoye"}),Gn.tasks_count)),Gn.is_end?dn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):dn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gn.is_accessible&&dn.createElement("div",{className:$r.lockWrap},dn.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),dn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!at.length&&dn.createElement(Zt.Z,null)))},Jn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},rr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFM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8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",_n=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,wrapClassName:fn,trackEventItems:Zn,loading:yr})=>{const Gn=Math.floor((Xt-(ot-1)*St)/ot);return oe.createElement(Yn.Z,{spinning:yr},oe.createElement("div",{className:xe()(Jn.list,et)},!!at.length&&at.map((Bn,qn)=>{const{subject_identifier:vr,id:Rr,identifier:hr,power:Xn}=Bn,Kr=Bn.is_public!=0&&Bn.is_public;return oe.createElement("div",{className:xe()(`${Jn.wrap} ${Bn.is_accessible?"":Jn.warpStyle}`,fn),key:Rr,style:{width:Gn,marginRight:(1+qn)%ot===0?0:St+gn,marginBottom:ln}},oe.createElement("a",{className:Jn.li,onClick:Ur=>{Ur.preventDefault(),Zn&&(0,cn.L9)([Zn]),(0,cn.xg)(Bn.first_category_url)}},oe.createElement("div",{className:Jn.creator},oe.createElement("img",{className:Jn.img,src:Mt.Z.IMG_SERVER+"/images/"+Bn.avatar_url}),oe.createElement("div",{className:Jn.text,title:Bn.creator},Bn.creator)),oe.createElement("div",{className:Jn.top},oe.createElement(Xe.Z,{title:Bn.name},oe.createElement("div",{className:Jn.name},Bn.name)),Kr&&oe.createElement("div",{className:Jn.sign},"\u516C\u5F00")),oe.createElement("div",{className:Jn.middle},oe.createElement("div",{className:Jn.row,style:{marginBottom:6}},oe.createElement("div",null,oe.createElement("span",{className:Jn.text},"\u8BBF\u95EE\u91CF"),oe.createElement("span",{className:Jn.value},(Bn==null?void 0:Bn.visits)||0)),oe.createElement("div",null,oe.createElement("span",{className:Jn.text},"\u6210\u5458"),oe.createElement("span",{className:Jn.value},(Bn==null?void 0:Bn.course_members_count)||0))),oe.createElement("div",{className:Jn.row},oe.createElement("div",null,oe.createElement("span",{className:Jn.text,style:{width:42}},"\u4F5C",oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),oe.createElement("span",{className:Jn.value},(Bn==null?void 0:Bn.tasks_count)||0)),oe.createElement("div",null,oe.createElement("span",{className:Jn.text},"\u72B6\u6001"),Bn.is_end?oe.createElement("span",{className:Jn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):oe.createElement("span",{className:Jn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),vr&&oe.createElement("div",{className:Jn.btns},oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Bn.is_accessible&&oe.createElement("div",{className:Jn.lockWrap},oe.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!at.length&&oe.createElement(Zt.Z,null)))},Ye={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A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ZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",qt=({className:et,dataSource:at=[],col:ot=4,right:St,bottom:ln=23,precision:gn=0,wrapWidth:Xt=1200,wrapClassName:fn,trackEventItems:Zn,loading:yr})=>{const Gn=Math.floor((Xt-(ot-1)*St)/ot);return oe.createElement(Yn.Z,{spinning:yr},oe.createElement("div",{className:xe()(Ye.list,et)},!!at.length&&at.map((Bn,qn)=>{const{subject_identifier:vr,id:Rr,identifier:hr,power:Xn}=Bn,Kr=Bn.is_public!=0&&Bn.is_public;return oe.createElement("div",{className:xe()(`${Ye.wrap} ${Bn.is_accessible?"":Ye.warpStyle}`,fn),key:Rr,style:{width:Gn,marginRight:(1+qn)%ot===0?0:St+gn,marginBottom:ln}},oe.createElement("a",{className:Ye.li,onClick:Ur=>{Ur.preventDefault(),Zn&&(0,cn.L9)([Zn]),(0,cn.xg)(Bn.first_category_url)}},oe.createElement("div",{className:Ye.creator},oe.createElement("img",{className:Ye.img,src:Mt.Z.IMG_SERVER+"/images/"+Bn.avatar_url}),oe.createElement("div",{className:Ye.text,title:Bn.creator},Bn.creator)),oe.createElement("div",{className:Ye.top},oe.createElement(Xe.Z,{title:Bn.name},oe.createElement("div",{className:Ye.name},Bn.name)),Kr&&oe.createElement("div",{className:Ye.sign})),oe.createElement("div",{className:Ye.middle},oe.createElement("div",{className:Ye.row,style:{marginBottom:6}},oe.createElement("div",null,oe.createElement("span",{className:Ye.text},"\u8BBF\u95EE\u91CF"),oe.createElement("span",{className:Ye.value},(Bn==null?void 0:Bn.visits)||0)),oe.createElement("div",null,oe.createElement("span",{className:Ye.text},"\u6210\u5458"),oe.createElement("span",{className:Ye.value},(Bn==null?void 0:Bn.course_members_count)||0))),oe.createElement("div",{className:Ye.row},oe.createElement("div",null,oe.createElement("span",{className:Ye.text,style:{width:42}},"\u4F5C",oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),oe.createElement("span",{className:Ye.value},(Bn==null?void 0:Bn.tasks_count)||0)),oe.createElement("div",null,oe.createElement("span",{className:Ye.text},"\u72B6\u6001"),Bn.is_end?oe.createElement("span",{className:Ye.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):oe.createElement("span",{className:Ye.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),vr&&oe.createElement("div",{className:Ye.btns},oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Bn.is_accessible&&oe.createElement("div",{className:Ye.lockWrap},oe.createElement("img",{src:`${Mt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!at.length&&oe.createElement(Zt.Z,null)))},_e={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"},xt=se(35973),Pt=({dataSource:et=[],value:at,onChange:ot,className:St,style:ln={},tabBarExtraContent:gn})=>oe.createElement("div",{className:xe()(_e.tabs,St),style:ln},oe.createElement("div",{className:_e.tabsWrap},et.map((Xt,fn)=>oe.createElement("aside",{className:_e.tab,onClick:()=>{ot(Xt.id),Xt.link&&xt.history.push(Xt.link)},key:fn},oe.createElement("div",{className:at===Xt.id?_e.active:""},Xt.name),(Xt==null?void 0:Xt.resetCount)==null&&(Xt==null?void 0:Xt.total)!==void 0&&oe.createElement("span",null,"\uFF08",Xt==null?void 0:Xt.total,"\uFF09"),(Xt==null?void 0:Xt.resetCount)!==void 0&&(Xt==null?void 0:Xt.total)!==void 0&&oe.createElement(Xe.Z,{title:(Xt==null?void 0:Xt.tip)!=null?Xt==null?void 0:Xt.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},Xt==null?void 0:Xt.resetCount),"/",oe.createElement("span",null,Xt==null?void 0:Xt.total),"\uFF09"))))),oe.createElement("div",{className:_e.tabBar},gn)),tn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Rn=({dataSource:et=[],value:at,onChange:ot,className:St,style:ln={},tabBarExtraContent:gn})=>oe.createElement("div",{className:xe()(tn.tabs,St),style:ln},oe.createElement("div",{className:tn.tabsWrap},et.map((Xt,fn)=>oe.createElement("aside",{className:tn.tab,onClick:()=>{ot(Xt.id),Xt.link&&xt.history.push(Xt.link)},key:fn},oe.createElement("div",{className:at===Xt.id?tn.active:""},Xt.name),(Xt==null?void 0:Xt.resetCount)==null&&(Xt==null?void 0:Xt.total)!==void 0&&oe.createElement("span",null,"\uFF08",Xt==null?void 0:Xt.total,"\uFF09"),(Xt==null?void 0:Xt.resetCount)!==void 0&&(Xt==null?void 0:Xt.total)!==void 0&&oe.createElement(Xe.Z,{title:(Xt==null?void 0:Xt.tip)!=null?Xt==null?void 0:Xt.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},Xt==null?void 0:Xt.resetCount),"/",oe.createElement("span",null,Xt==null?void 0:Xt.total),"\uFF09"))))),oe.createElement("div",{className:tn.tabBar},gn)),Or={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},ar=({dataSource:et=[],value:at,onChange:ot,className:St,style:ln={},tabBarExtraContent:gn})=>oe.createElement("div",{className:xe()(Or.tabs,St),style:ln},oe.createElement("div",{className:Or.tabsWrap},et.map((Xt,fn)=>oe.createElement("aside",{className:`${Or.tab} ${at===Xt.id?Or.active:""}`,onClick:()=>{ot(Xt.id),Xt.link&&xt.history.push(Xt.link)},key:fn},oe.createElement("div",null,Xt.name),(Xt==null?void 0:Xt.resetCount)==null&&(Xt==null?void 0:Xt.total)!==void 0&&oe.createElement("span",null,"\uFF08",Xt==null?void 0:Xt.total,"\uFF09"),(Xt==null?void 0:Xt.resetCount)!==void 0&&(Xt==null?void 0:Xt.total)!==void 0&&oe.createElement(Xe.Z,{title:(Xt==null?void 0:Xt.tip)!=null?Xt==null?void 0:Xt.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},Xt==null?void 0:Xt.resetCount),"/",oe.createElement("span",null,Xt==null?void 0:Xt.total),"\uFF09"))))),oe.createElement("div",{className:Or.tabBar},gn)),Sr=({className:et,style:at={},children:ot})=>oe.createElement("div",{className:xe()(et),style:at},ot),bt={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"},ht=se(85418),Dt=se(68508);const Sn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Cn=({sortValue:et,dropValue:at,className:ot,onSort:St,onDrop:ln,dataSource:gn=Sn})=>{var Xt;return oe.createElement("div",{className:xe()(bt.orderWrap,ot)},oe.createElement(ht.Z,{dropdownRender:()=>oe.createElement(Dt.default,null,gn.map((fn,Zn)=>oe.createElement(Dt.default.Item,{key:Zn,onClick:()=>ln(fn.id)},fn.name)))},oe.createElement("span",{className:bt.orderTextWrap},(Xt=gn.find(fn=>at===fn.id))==null?void 0:Xt.name)),oe.createElement("span",{className:bt.orderIconWrap},oe.createElement("span",{className:bt.orderAsc},oe.createElement("i",{className:et==="asc"?`iconfont icon-sanjiaoxing-up font12 ${bt.cursorPointer} ${bt.active}`:`iconfont icon-sanjiaoxing-up font12 ${bt.cursorPointer}`,onClick:()=>St(et==="asc"?"desc":"asc")})),oe.createElement("span",{className:bt.orderDesc},oe.createElement("i",{className:et==="desc"?`iconfont icon-sanjiaoxing-down font12 ${bt.cursorPointer} ${bt.active}`:`iconfont icon-sanjiaoxing-down font12 ${bt.cursorPointer}`,onClick:()=>St(et==="asc"?"desc":"asc")}))))},yn={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const Ln=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Cr=({sortValue:et,dropValue:at,className:ot,onSort:St,onDrop:ln,dataSource:gn=Ln})=>{var Xt;return oe.createElement("div",{className:xe()(yn.orderWrap,ot)},oe.createElement(ht.Z,{dropdownRender:()=>oe.createElement(Dt.default,null,gn.map((fn,Zn)=>oe.createElement(Dt.default.Item,{key:Zn,onClick:()=>ln(fn.id)},fn.name)))},oe.createElement("span",{className:yn.orderTextWrap},(Xt=gn.find(fn=>at===fn.id))==null?void 0:Xt.name)),oe.createElement("span",{className:yn.orderIconWrap},oe.createElement("span",{className:yn.orderAsc},oe.createElement("i",{className:et==="asc"?`iconfont icon-sanjiaoxing-up font12 ${yn.cursorPointer} ${yn.active}`:`iconfont icon-sanjiaoxing-up font12 ${yn.cursorPointer}`,onClick:()=>St(et==="asc"?"desc":"asc")})),oe.createElement("span",{className:yn.orderDesc},oe.createElement("i",{className:et==="desc"?`iconfont icon-sanjiaoxing-down font12 ${yn.cursorPointer} ${yn.active}`:`iconfont icon-sanjiaoxing-down font12 ${yn.cursorPointer}`,onClick:()=>St(et==="asc"?"desc":"asc")}))))},un={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",ThemeOne:"ThemeOne___iCQio"},ni=se(71577),Qr=se(52810),Hi=Object.defineProperty,ki=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,bi=(et,at,ot)=>at in et?Hi(et,at,{enumerable:!0,configurable:!0,writable:!0,value:ot}):et[at]=ot,di=(et,at)=>{for(var ot in at||(at={}))vi.call(at,ot)&&bi(et,ot,at[ot]);if(ki)for(var ot of ki(at))qi.call(at,ot)&&bi(et,ot,at[ot]);return et},Wi=(et,at)=>{var ot={};for(var St in et)vi.call(et,St)&&at.indexOf(St)<0&&(ot[St]=et[St]);if(et!=null&&ki)for(var St of ki(et))at.indexOf(St)<0&&qi.call(et,St)&&(ot[St]=et[St]);return ot},Qi=(et,at,ot)=>new Promise((St,ln)=>{var gn=Zn=>{try{fn(ot.next(Zn))}catch(yr){ln(yr)}},Xt=Zn=>{try{fn(ot.throw(Zn))}catch(yr){ln(yr)}},fn=Zn=>Zn.done?St(Zn.value):Promise.resolve(Zn.value).then(gn,Xt);fn((ot=ot.apply(et,at)).next())}),xi=et=>{var at=et,{className:ot,style:St,children:ln,loading:gn=!1,openLoading:Xt,onClick:fn=()=>{},size:Zn="middle",shape:yr="round",theme:Gn}=at,Bn=Wi(at,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[qn,vr]=(0,oe.useState)(!1),Rr=(0,oe.useMemo)(()=>{switch(Gn){case Qr.Fy.THEMEONE:return un.ThemeOne;case Qr.Fy.DEFAULT:default:return un.btn}},[Gn]);return oe.createElement(ni.ZP,di({onClick:(0,me.throttle)(hr=>Qi(void 0,null,function*(){Xt&&vr(!0);try{yield fn(hr)}catch(Xn){console.log("error",Xn)}Xt&&vr(!1)}),2e3,{leading:!0,trailing:!1}),className:xe()(Rr,un[`${Zn}-${yr}`],ot),style:St,size:Zn,shape:yr,loading:qn||gn},Bn),ln)},Zi={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"},na=({className:et,style:at,children:ot=null,onClick:St,title:ln})=>oe.createElement("div",{className:xe()(Zi.head,et),style:at},oe.createElement("span",{className:"primary-hover",onClick:St},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:ln},ln),oe.createElement("div",{className:Zi.node},ot)),oi={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"},At=({confirmShow:et=!0,confirmTitle:at,confirmClick:ot,cancelShow:St=!0,cancelTitle:ln,cancelClick:gn,className:Xt,style:fn,confirmLoading:Zn=!1})=>oe.createElement("div",{className:xe()(oi.btns,Xt),style:fn},et&&oe.createElement(ni.ZP,{loading:Zn,onClick:ot,type:"primary",className:oi.confirm},at),St&&oe.createElement(ni.ZP,{onClick:gn,className:oi.cancel},ln)),on={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"},jn=({className:et,style:at={},LeftContent:ot,children:St,RightContent:ln})=>oe.createElement("div",{className:xe()(on.fixedBottom,et),style:at},oe.createElement("div",{className:on.wrap},oe.createElement("div",{className:on.left},ot),oe.createElement("div",{className:on.center},St),oe.createElement("div",{className:on.right},ln))),Mr={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"},Jr=({className:et,style:at={},dataSource:ot=[]})=>oe.createElement("div",{className:xe()(Mr.crumbs,et),style:at},ot.map((St,ln)=>lnxt.history.push(St.path)},St.name):oe.createElement("span",null,St.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:ln,style:{color:"#5F6368"}},St.name))),ti=se(55054),Yr=Object.defineProperty,si=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,Hr=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Ii=Object.prototype.propertyIsEnumerable,Si=(et,at,ot)=>at in et?Yr(et,at,{enumerable:!0,configurable:!0,writable:!0,value:ot}):et[at]=ot,Pe=(et,at)=>{for(var ot in at||(at={}))gi.call(at,ot)&&Si(et,ot,at[ot]);if(Hr)for(var ot of Hr(at))Ii.call(at,ot)&&Si(et,ot,at[ot]);return et},We=(et,at)=>si(et,wi(at)),Ke=(et,at)=>{var ot={};for(var St in et)gi.call(et,St)&&at.indexOf(St)<0&&(ot[St]=et[St]);if(et!=null&&Hr)for(var St of Hr(et))at.indexOf(St)<0&&Ii.call(et,St)&&(ot[St]=et[St]);return ot};const{Countdown:Ge}=ti.default;var pt=et=>{var at=et,{onChange:ot}=at,St=Ke(at,["onChange"]);const[ln,gn]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof ln=="number"&&ln>=0&&ot(ln)},[ln]);const Xt=fn=>{const Zn=Math.floor(fn/1e3);gn(Zn)};return oe.createElement(Ge,We(Pe({},St),{onChange:Xt}))},Tt={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},xn=({DataProps:et,className:at,style:ot={}})=>{var St;return oe.createElement("div",{className:xe()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Tt.ClassRoomItem,at),style:ot,onClick:()=>{(0,cn.xg)(et==null?void 0:et.first_category_url)}},oe.createElement("div",{className:"flex flex-col item-center"},oe.createElement("img",{src:`${(St=Mt.Z)==null?void 0:St.IMG_SERVER}/images/${et==null?void 0:et.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(et==null?void 0:et.subject_identifier)&&oe.createElement("div",{className:"mt-40px"},oe.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),oe.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},oe.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(et!=null&&et.is_public)&&oe.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),oe.createElement("span",{className:xe()("text-16px font-medium",Tt.TitleDom)},et==null?void 0:et.name)),oe.createElement("div",{className:"c-grey-333 font-medium"},et==null?void 0:et.creator),oe.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",et==null?void 0:et.course_members_count),oe.createElement("div",{className:"c-grey-333 flex item-center justify-between"},oe.createElement("div",null,"\u4F5C\u4E1A\uFF1A",et==null?void 0:et.tasks_count),et!=null&&et.is_end?oe.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):oe.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},lr=Object.defineProperty,Lr=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,kn=(et,at,ot)=>at in et?lr(et,at,{enumerable:!0,configurable:!0,writable:!0,value:ot}):et[at]=ot,Fn=(et,at)=>{for(var ot in at||(at={}))tr.call(at,ot)&&kn(et,ot,at[ot]);if(Lr)for(var ot of Lr(at))Tn.call(at,ot)&&kn(et,ot,at[ot]);return et},Ar=({DataProps:et=[],selectValue:at,onChange:ot,className:St,style:ln={},extra:gn,classNameItem:Xt,styleItem:fn={},barHidden:Zn})=>{const[yr,Gn]=(0,oe.useState)();return(0,oe.useEffect)(()=>{Gn(Array.isArray(at)?at:[at])},[at]),oe.createElement("div",{className:xe()("flex px-20px py-10px gap-40px",St),style:Fn({borderBottom:"1px solid #D3F0FF"},ln)},et==null?void 0:et.map(Bn=>oe.createElement("div",{key:Bn==null?void 0:Bn.id,className:xe()("flex item-center justify-center current c-grey-333 text-16 relative",Xt,Bn==null?void 0:Bn.className),style:Fn(Fn({color:yr!=null&&yr.includes(Bn==null?void 0:Bn.id)?"#1890FF":"",minWidth:88},fn),(Bn==null?void 0:Bn.style)||{}),onClick:qn=>{ot==null||ot({domEvent:qn,item:Bn}),Bn!=null&&Bn.link&&xt.history.push(Bn==null?void 0:Bn.link)}},Bn==null?void 0:Bn.name,!Zn&&(yr==null?void 0:yr.includes(Bn==null?void 0:Bn.id))&&oe.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),oe.createElement("div",{className:"ml-auto"},gn))},or=Object.defineProperty,ir=Object.defineProperties,pr=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,Br=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,je=(et,at,ot)=>at in et?or(et,at,{enumerable:!0,configurable:!0,writable:!0,value:ot}):et[at]=ot,Rt=(et,at)=>{for(var ot in at||(at={}))Br.call(at,ot)&&je(et,ot,at[ot]);if(fr)for(var ot of fr(at))Re.call(at,ot)&&je(et,ot,at[ot]);return et},yt=(et,at)=>ir(et,pr(at)),En=({value:et,onChange:at,onInputChange:ot,className:St,style:ln={},InputProps:gn})=>{const[Xt,fn]=(0,oe.useState)(et);return oe.createElement("div",{className:xe()("flex item-center rounded-full px-10px py-2px",St),style:Rt({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ln)},oe.createElement(wt.default,yt(Rt({bordered:!1},gn),{onChange:Zn=>{fn(Zn.target.value),ot==null||ot(encodeURIComponent(Zn.target.value))},onPressEnter:Zn=>{at==null||at({domEvent:Zn,item:{value:Xt}})}})),oe.createElement("img",{className:"h-22px current",src:se(25365),height:22,onClick:Zn=>{at==null||at({domEvent:Zn,item:{value:Xt}})}}))}},99914:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return He}});var oe=se(67294);function He(Ne,qe){const ve=(0,oe.useRef)();(0,oe.useEffect)(()=>{ve.current=Ne}),(0,oe.useEffect)(()=>{function Le(){ve.current()}if(qe!==null){let De=setInterval(Le,qe);return()=>clearInterval(De)}},[qe])}},9916:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Yt}});var oe=se(67294),He=se(35973),Ne=se(69677),qe=se(22150),ve=se(14446),Le=se(2453),De=se(59810),xe=se(71577),me=se(11320),Te=se(55351),rt={flexRow:"flexRow___JBN3B",flexColumn:"flexColumn___zXgFj",formWrap:"formWrap___aNgan",upload:"upload___yGdLQ",color0152d9:"color0152d9___zzEpS",colorCCC:"colorCCC___k4Dxq",footerWrap:"footerWrap___WrUZd",qrCode:"qrCode___GPwSg",a1:"a1___R6etl",code:"code___fCL_L",group:"group___n7tgy",groupNumber:"groupNumber___tw7hA",a2:"a2___GGjDE"},Ie=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,ct=(Qe,it)=>{var Se={};for(var Ce in Qe)Et.call(Qe,Ce)&&it.indexOf(Ce)<0&&(Se[Ce]=Qe[Ce]);if(Qe!=null&&Ie)for(var Ce of Ie(Qe))it.indexOf(Ce)<0&&dt.call(Qe,Ce)&&(Se[Ce]=Qe[Ce]);return Se},$e=(Qe,it,Se)=>new Promise((Ce,Ve)=>{var Ue=Lt=>{try{gt(Se.next(Lt))}catch(Je){Ve(Je)}},wt=Lt=>{try{gt(Se.throw(Lt))}catch(Je){Ve(Je)}},gt=Lt=>Lt.done?Ce(Lt.value):Promise.resolve(Lt.value).then(Ue,wt);gt((Se=Se.apply(Qe,it)).next())});const Ae=Ne.default.TextArea,ft=Qe=>{var it=Qe,{newShixuns:Se,globalSetting:Ce,loading:Ve,dispatch:Ue}=it,wt=ct(it,["newShixuns","globalSetting","loading","dispatch"]);const[gt]=qe.default.useForm(),[Lt,Je]=(0,oe.useState)([]),Ut=Kn=>{["uploading","done","removed"].includes(Kn.file.status)&&Je(Kn.fileList)},It=Kn=>{var Yn;if(!Kn.percent||Kn.percent==100){const Xe=(Yn=Kn.response)==null?void 0:Yn.id;return ve.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>$e(void 0,null,function*(){(yield Ue({type:"newShixuns/deleteAttachment",payload:{id:Xe}}))&&Je(Lt.filter(Mt=>{var cn;return((cn=Mt.response)==null?void 0:cn.id)!==Xe}))})}),!1}},pn=Kn=>Lt.length?!1:Kn.size/1024/1024>50?(Le.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0,$t=Kn=>$e(void 0,null,function*(){var Yn,Xe;const{language:we,env:Mt,mode:cn,code:Kt}=Kn||{},tt=yield Ue({type:"newShixuns/applyShixunMirror",payload:{language:we,runtime:Mt,run_method:cn,attachment_id:(Xe=(Yn=Lt==null?void 0:Lt[0])==null?void 0:Yn.response)==null?void 0:Xe.id}});Ue({type:"newShixuns/setActionTabs",payload:{}}),tt&&Le.ZP.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002")}),Pn=()=>{gt.resetFields(),Je([])};return oe.createElement(ve.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Se.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:Pn},oe.createElement("section",{className:rt.qrCode},oe.createElement("aside",{className:rt.a1},oe.createElement("div",{className:rt.code},oe.createElement("img",{width:120,height:120,src:Te,alt:"\u4E8C\u7EF4\u7801"})),oe.createElement("div",{className:rt.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),oe.createElement("div",{className:rt.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),oe.createElement("aside",{className:rt.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",oe.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),oe.createElement(qe.default,{className:rt.formWrap,form:gt,labelCol:{span:4},wrapperCol:{span:20},onFinish:$t},oe.createElement(qe.default.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},oe.createElement(Ae,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),oe.createElement(qe.default.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},oe.createElement(Ae,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),oe.createElement(qe.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},oe.createElement(Ae,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),oe.createElement(qe.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},oe.createElement("div",{className:rt.upload},oe.createElement(De.default,{fileList:Lt,action:`${me.Z.API_SERVER}/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a`,onChange:Ut,onRemove:It,beforeUpload:pn,withCredentials:!0},oe.createElement("span",{className:`${rt.color0152d9} current`},"\u4E0A\u4F20\u9644\u4EF6"),oe.createElement("span",{className:`${rt.colorCCC} ml10`},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),oe.createElement("div",{className:rt.footerWrap},oe.createElement(qe.default.Item,null,oe.createElement(xe.ZP,{className:"mr5",size:"middle",onClick:()=>{Ue({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),oe.createElement(xe.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Ve["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};var Yt=(0,He.connect)(({newShixuns:Qe,loading:it,globalSetting:Se})=>({newShixuns:Qe,globalSetting:Se,loading:it.effects}))(ft)},57838:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return He}});var oe=se(67294);function He(){const[,Ne]=oe.useReducer(qe=>qe+1,0);return Ne}},9708:function(sn,nn,se){"use strict";se.d(nn,{F:function(){return ve},Z:function(){return qe}});var oe=se(94184),He=se.n(oe);const Ne=null;function qe(Le,De,xe){return He()({[`${Le}-status-success`]:De==="success",[`${Le}-status-warning`]:De==="warning",[`${Le}-status-error`]:De==="error",[`${Le}-status-validating`]:De==="validating",[`${Le}-has-feedback`]:xe})}const ve=(Le,De)=>De||Le},88258:function(sn,nn,se){"use strict";var oe=se(67294),He=se(53124),Ne=se(32983);const qe=ve=>{const{componentName:Le}=ve,{getPrefixCls:De}=(0,oe.useContext)(He.E_),xe=De("empty");switch(Le){case"Table":case"List":return oe.createElement(Ne.Z,{image:Ne.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Ne.Z,{image:Ne.Z.PRESENTED_IMAGE_SIMPLE,className:`${xe}-small`});default:return oe.createElement(Ne.Z,null)}};nn.Z=qe},72565:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return oi}});var oe=se(94184),He=se.n(oe),Ne=se(1413),qe=se(97685),ve=se(67294),Le=se(73935);function De(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var xe={};function me(Ot,At){}function Te(Ot,At){}function rt(){xe={}}function Ie(Ot,At,on){!At&&!xe[on]&&(Ot(!1,on),xe[on]=!0)}function Et(Ot,At){Ie(me,Ot,At)}function dt(Ot,At){Ie(Te,Ot,At)}var ct=null,$e=se(71002),Ae=se(18459);function ft(Ot,At,on){var Mn=ve.useRef({});return(!("value"in Mn.current)||on(Mn.current.condition,At))&&(Mn.current.value=Ot(),Mn.current.condition=At),Mn.current.value}function Yt(Ot,At){typeof Ot=="function"?Ot(At):(0,$e.Z)(Ot)==="object"&&Ot&&"current"in Ot&&(Ot.current=At)}function Qe(){for(var Ot=arguments.length,At=new Array(Ot),on=0;on0&&arguments[0]!==void 0?arguments[0]:{},At=Ot.mark;return At?At.startsWith("data-")?At:"data-".concat(At):$t}function Yn(Ot){if(Ot.attachTo)return Ot.attachTo;var At=document.querySelector("head");return At||document.body}function Xe(Ot){return Ot==="queue"?"prependQueue":Ot?"prepend":"append"}function we(Ot){return Array.from((Pn.get(Ot)||Ot).children).filter(function(At){return At.tagName==="STYLE"})}function Mt(Ot){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!De())return null;var on=At.csp,Mn=At.prepend,jn=document.createElement("style");jn.setAttribute(pn,Xe(Mn)),on!=null&&on.nonce&&(jn.nonce=on==null?void 0:on.nonce),jn.innerHTML=Ot;var Mr=Yn(At),_r=Mr.firstChild;if(Mn){if(Mn==="queue"){var Jr=we(Mr).filter(function(ti){return["prepend","prependQueue"].includes(ti.getAttribute(pn))});if(Jr.length)return Mr.insertBefore(jn,Jr[Jr.length-1].nextSibling),jn}Mr.insertBefore(jn,_r)}else Mr.appendChild(jn);return jn}function cn(Ot){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},on=Yn(At);return we(on).find(function(Mn){return Mn.getAttribute(Kn(At))===Ot})}function Kt(Ot){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},on=cn(Ot,At);if(on){var Mn=Yn(At);Mn.removeChild(on)}}function tt(Ot,At){var on=Pn.get(Ot);if(!on||!It(document,on)){var Mn=Mt("",At),jn=Mn.parentNode;Pn.set(Ot,jn),Ot.removeChild(Mn)}}function ut(){Pn.clear()}function Zt(Ot,At){var on=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Mn=Yn(on);tt(Mn,on);var jn=cn(At,on);if(jn){var Mr,_r;if((Mr=on.csp)!==null&&Mr!==void 0&&Mr.nonce&&jn.nonce!==((_r=on.csp)===null||_r===void 0?void 0:_r.nonce)){var Jr;jn.nonce=(Jr=on.csp)===null||Jr===void 0?void 0:Jr.nonce}return jn.innerHTML!==Ot&&(jn.innerHTML=Ot),jn}var ti=Mt(Ot,on);return ti.setAttribute(Kn(on),At),ti}var Wn;function wn(Ot){if(typeof document=="undefined")return 0;if(Ot||Wn===void 0){var At=document.createElement("div");At.style.width="100%",At.style.height="200px";var on=document.createElement("div"),Mn=on.style;Mn.position="absolute",Mn.top="0",Mn.left="0",Mn.pointerEvents="none",Mn.visibility="hidden",Mn.width="200px",Mn.height="150px",Mn.overflow="hidden",on.appendChild(At),document.body.appendChild(on);var jn=At.offsetWidth;on.style.overflow="scroll";var Mr=At.offsetWidth;jn===Mr&&(Mr=on.clientWidth),document.body.removeChild(on),Wn=jn-Mr}return Wn}function Qt(Ot){var At=Ot.match(/^(.*)px$/),on=Number(At==null?void 0:At[1]);return Number.isNaN(on)?wn():on}function en(Ot){if(typeof document=="undefined"||!Ot||!(Ot instanceof Element))return{width:0,height:0};var At=getComputedStyle(Ot,"::-webkit-scrollbar"),on=At.width,Mn=At.height;return{width:Qt(on),height:Qt(Mn)}}function Dn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var vn="rc-util-locker-".concat(Date.now()),Be=0;function fe(Ot){var At=!!Ot,on=ve.useState(function(){return Be+=1,"".concat(vn,"_").concat(Be)}),Mn=(0,qe.Z)(on,1),jn=Mn[0];gt(function(){if(At){var Mr=en(document.body).width,_r=Dn();Zt(` html body { overflow-y: hidden; `.concat(_r?"width: calc(100% - ".concat(Mr,"px);"):"",` }`),jn)}else Kt(jn);return function(){Kt(jn)}},[At,jn])}var ce=!1;function he(Ot){return typeof Ot=="boolean"&&(ce=Ot),ce}var de=function(At){return At===!1?!1:!De()||!At?null:typeof At=="string"?document.querySelector(At):typeof At=="function"?At():At},le=ve.forwardRef(function(Ot,At){var on=Ot.open,Mn=Ot.autoLock,jn=Ot.getContainer,Mr=Ot.debug,_r=Ot.autoDestroy,Jr=_r===void 0?!0:_r,ti=Ot.children,Yr=ve.useState(on),si=(0,qe.Z)(Yr,2),wi=si[0],Hr=si[1],gi=wi||on;ve.useEffect(function(){(Jr||on)&&Hr(on)},[on,Jr]);var Ii=ve.useState(function(){return de(jn)}),Si=(0,qe.Z)(Ii,2),Pe=Si[0],We=Si[1];ve.useEffect(function(){var Tn=de(jn);We(Tn!=null?Tn:null)});var Ke=Ut(gi&&!Pe,Mr),Ge=(0,qe.Z)(Ke,2),st=Ge[0],pt=Ge[1],Tt=Pe!=null?Pe:st;fe(Mn&&on&&De()&&(Tt===st||Tt===document.body));var hn=null;if(ti&&Se(ti)&&At){var xn=ti;hn=xn.ref}var lr=it(hn,At);if(!gi||!De()||Pe===void 0)return null;var Lr=Tt===!1||he(),tr=ti;return At&&(tr=ve.cloneElement(ti,{ref:lr})),ve.createElement(Ve.Provider,{value:pt},Lr?tr:(0,Le.createPortal)(tr,Tt))}),Ee=le,Ze=Ee;function vt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Nt=vt()?ve.useLayoutEffect:ve.useEffect,Ft=function(At,on){var Mn=ve.useRef(!0);Nt(function(){return At(Mn.current)},on),Nt(function(){return Mn.current=!1,function(){Mn.current=!0}},[])},zt=function(At,on){Ft(function(Mn){if(!Mn)return At()},on)},Gt=Ft,$n=ve.createContext(null),mr=ve.createContext({}),_t=$n,bn=se(4942),ur=se(87462),Tr=se(62874),lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(At){var on=At.keyCode;if(At.altKey&&!At.ctrlKey||At.metaKey||on>=lt.F1&&on<=lt.F12)return!1;switch(on){case lt.ALT:case lt.CAPS_LOCK:case lt.CONTEXT_MENU:case lt.CTRL:case lt.DOWN:case lt.END:case lt.ESC:case lt.HOME:case lt.INSERT:case lt.LEFT:case lt.MAC_FF_META:case lt.META:case lt.NUMLOCK:case lt.NUM_CENTER:case lt.PAGE_DOWN:case lt.PAGE_UP:case lt.PAUSE:case lt.PRINT_SCREEN:case lt.RIGHT:case lt.SHIFT:case lt.UP:case lt.WIN_KEY:case lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(At){if(At>=lt.ZERO&&At<=lt.NINE||At>=lt.NUM_ZERO&&At<=lt.NUM_MULTIPLY||At>=lt.A&&At<=lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&At===0)return!0;switch(At){case lt.SPACE:case lt.QUESTION_MARK:case lt.NUM_PLUS:case lt.NUM_MINUS:case lt.NUM_PERIOD:case lt.NUM_DIVISION:case lt.SEMICOLON:case lt.DASH:case lt.EQUALS:case lt.COMMA:case lt.PERIOD:case lt.SLASH:case lt.APOSTROPHE:case lt.SINGLE_QUOTE:case lt.OPEN_SQUARE_BRACKET:case lt.BACKSLASH:case lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Jt=lt,Hn=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,er=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,nr="".concat(Hn," ").concat(er).split(/[\s\n]+/),Er="aria-",Pr="data-";function Ir(Ot,At){return Ot.indexOf(At)===0}function zr(Ot){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on;At===!1?on={aria:!0,data:!0,attr:!0}:At===!0?on={aria:!0}:on=(0,Ne.Z)({},At);var Mn={};return Object.keys(Ot).forEach(function(jn){(on.aria&&(jn==="role"||Ir(jn,Er))||on.data&&Ir(jn,Pr)||on.attr&&nr.includes(jn))&&(Mn[jn]=Ot[jn])}),Mn}function Wr(Ot){var At=React.useRef();At.current=Ot;var on=React.useCallback(function(){for(var Mn,jn=arguments.length,Mr=new Array(jn),_r=0;_r3&&arguments[3]!==void 0?arguments[3]:!1;return At.length&&Mn&&on===void 0&&!get(Ot,At.slice(0,-1))?Ot:Jn(Ot,At,on,Mn)}function wr(Ot){return _typeof(Ot)==="object"&&Ot!==null&&Object.getPrototypeOf(Ot)===Object.prototype}function _n(Ot){return Array.isArray(Ot)?[]:{}}var Ye=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function mt(){for(var Ot=arguments.length,At=new Array(Ot),on=0;on{const{prefixCls:At,title:on,footer:Mn,extra:jn,closeIcon:Mr,closable:_r,onClose:Jr,headerStyle:ti,drawerStyle:Yr,bodyStyle:si,footerStyle:wi,children:Hr}=Ot,gi=ve.useCallback(Ke=>ve.createElement("button",{type:"button",onClick:Jr,"aria-label":"Close",className:`${At}-close`},Ke),[Jr]),[Ii,Si]=(0,un.Z)(_r,Mr,gi,void 0,!0),Pe=ve.useMemo(()=>!on&&!Ii?null:ve.createElement("div",{style:ti,className:He()(`${At}-header`,{[`${At}-header-close-only`]:Ii&&!on&&!jn})},ve.createElement("div",{className:`${At}-header-title`},Si,on&&ve.createElement("div",{className:`${At}-title`},on)),jn&&ve.createElement("div",{className:`${At}-extra`},jn)),[Ii,Si,jn,ti,At,on]),We=ve.useMemo(()=>{if(!Mn)return null;const Ke=`${At}-footer`;return ve.createElement("div",{className:Ke,style:wi},Mn)},[Mn,wi,At]);return ve.createElement("div",{className:`${At}-wrapper-body`,style:Yr},Pe,ve.createElement("div",{className:`${At}-body`,style:si},Hr),We)},Hi=se(4173),ki=se(67968),vi=se(45503),bi=Ot=>{const{componentCls:At,motionDurationSlow:on}=Ot,Mn={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${on}`}}};return{[At]:{[`${At}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${on}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${At}-panel-motion`]:{"&-left":[Mn,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Mn,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Mn,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Mn,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const di=Ot=>{const{componentCls:At,zIndexPopup:on,colorBgMask:Mn,colorBgElevated:jn,motionDurationSlow:Mr,motionDurationMid:_r,padding:Jr,paddingLG:ti,fontSizeLG:Yr,lineHeightLG:si,lineWidth:wi,lineType:Hr,colorSplit:gi,marginSM:Ii,colorIcon:Si,colorIconHover:Pe,colorText:We,fontWeightStrong:Ke,footerPaddingBlock:Ge,footerPaddingInline:st}=Ot,pt=`${At}-content-wrapper`;return{[At]:{position:"fixed",inset:0,zIndex:on,pointerEvents:"none","&-pure":{position:"relative",background:jn,[`&${At}-left`]:{boxShadow:Ot.boxShadowDrawerLeft},[`&${At}-right`]:{boxShadow:Ot.boxShadowDrawerRight},[`&${At}-top`]:{boxShadow:Ot.boxShadowDrawerUp},[`&${At}-bottom`]:{boxShadow:Ot.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${At}-mask`]:{position:"absolute",inset:0,zIndex:on,background:Mn,pointerEvents:"auto"},[pt]:{position:"absolute",zIndex:on,maxWidth:"100vw",transition:`all ${Mr}`,"&-hidden":{display:"none"}},[`&-left > ${pt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ot.boxShadowDrawerLeft},[`&-right > ${pt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ot.boxShadowDrawerRight},[`&-top > ${pt}`]:{top:0,insetInline:0,boxShadow:Ot.boxShadowDrawerUp},[`&-bottom > ${pt}`]:{bottom:0,insetInline:0,boxShadow:Ot.boxShadowDrawerDown},[`${At}-content`]:{width:"100%",height:"100%",overflow:"auto",background:jn,pointerEvents:"auto"},[`${At}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${At}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Jr}px ${ti}px`,fontSize:Yr,lineHeight:si,borderBottom:`${wi}px ${Hr} ${gi}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${At}-extra`]:{flex:"none"},[`${At}-close`]:{display:"inline-block",marginInlineEnd:Ii,color:Si,fontWeight:Ke,fontSize:Yr,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${_r}`,textRendering:"auto","&:focus, &:hover":{color:Pe,textDecoration:"none"}},[`${At}-title`]:{flex:1,margin:0,color:We,fontWeight:Ot.fontWeightStrong,fontSize:Yr,lineHeight:si},[`${At}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ti,overflow:"auto"},[`${At}-footer`]:{flexShrink:0,padding:`${Ge}px ${st}px`,borderTop:`${wi}px ${Hr} ${gi}`},"&-rtl":{direction:"rtl"}}}};var Wi=(0,ki.Z)("Drawer",Ot=>{const At=(0,vi.TS)(Ot,{});return[di(At),bi(At)]},Ot=>({zIndexPopup:Ot.zIndexPopupBase,footerPaddingBlock:Ot.paddingXS,footerPaddingInline:Ot.padding})),Qi=se(16569),ai=function(Ot,At){var on={};for(var Mn in Ot)Object.prototype.hasOwnProperty.call(Ot,Mn)&&At.indexOf(Mn)<0&&(on[Mn]=Ot[Mn]);if(Ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jn=0,Mn=Object.getOwnPropertySymbols(Ot);jn{var At;const{rootClassName:on,width:Mn,height:jn,size:Mr="default",mask:_r=!0,push:Jr=Zi,open:ti,afterOpenChange:Yr,onClose:si,prefixCls:wi,getContainer:Hr,style:gi,className:Ii,visible:Si,afterVisibleChange:Pe}=Ot,We=ai(Ot,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ke,getPrefixCls:Ge,direction:st,drawer:pt}=ve.useContext(Un.E_),Tt=Ge("drawer",wi),[hn,xn]=Wi(Tt),lr=Hr===void 0&&Ke?()=>Ke(document.body):Hr,Lr=He()({"no-mask":!_r,[`${Tt}-rtl`]:st==="rtl"},on,xn),tr=ve.useMemo(()=>Mn!=null?Mn:Mr==="large"?736:378,[Mn,Mr]),Tn=ve.useMemo(()=>jn!=null?jn:Mr==="large"?736:378,[jn,Mr]),kn={motionName:(0,Ln.m)(Tt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Fn=Ar=>({motionName:(0,Ln.m)(Tt,`panel-motion-${Ar}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Qn=(0,Qi.H)();return hn(ve.createElement(Hi.BR,null,ve.createElement(Cr.Ux,{status:!0,override:!0},ve.createElement(yn,Object.assign({prefixCls:Tt,onClose:si,maskMotion:kn,motion:Fn},We,{open:ti!=null?ti:Si,mask:_r,push:Jr,width:tr,height:Tn,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),gi),className:He()(pt==null?void 0:pt.className,Ii),rootClassName:Lr,getContainer:lr,afterOpenChange:Yr!=null?Yr:Pe,panelRef:Qn}),ve.createElement(Qr,Object.assign({prefixCls:Tt},We,{onClose:si}))))))},na=Ot=>{const{prefixCls:At,style:on,className:Mn,placement:jn="right"}=Ot,Mr=ai(Ot,["prefixCls","style","className","placement"]),{getPrefixCls:_r}=ve.useContext(Un.E_),Jr=_r("drawer",At),[ti,Yr]=Wi(Jr),si=He()(Jr,`${Jr}-pure`,`${Jr}-${jn}`,Yr,Mn);return ti(ve.createElement("div",{className:si,style:on},ve.createElement(Qr,Object.assign({prefixCls:Jr},Mr))))};ca._InternalPanelDoNotUseOrYouWillBeFired=na;var oi=ca},35874:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return de}});var oe=se(67294),He=se(91034),Ne=se(94184),qe=se.n(Ne),ve=se(87462),Le=se(4942),De=se(97685),xe=se(45987),me=se(62709),Te=se(71002),rt=se(12060);function Ie(le,Ee,Ze){var vt=React.useRef({});return(!("value"in vt.current)||Ze(vt.current.condition,Ee))&&(vt.current.value=le(),vt.current.condition=Ee),vt.current.value}function Et(le,Ee){typeof le=="function"?le(Ee):(0,Te.Z)(le)==="object"&&le&&"current"in le&&(le.current=Ee)}function dt(){for(var le=arguments.length,Ee=new Array(le),Ze=0;Ze=Ae.F1&&Ze<=Ae.F12)return!1;switch(Ze){case Ae.ALT:case Ae.CAPS_LOCK:case Ae.CONTEXT_MENU:case Ae.CTRL:case Ae.DOWN:case Ae.END:case Ae.ESC:case Ae.HOME:case Ae.INSERT:case Ae.LEFT:case Ae.MAC_FF_META:case Ae.META:case Ae.NUMLOCK:case Ae.NUM_CENTER:case Ae.PAGE_DOWN:case Ae.PAGE_UP:case Ae.PAUSE:case Ae.PRINT_SCREEN:case Ae.RIGHT:case Ae.SHIFT:case Ae.UP:case Ae.WIN_KEY:case Ae.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ee){if(Ee>=Ae.ZERO&&Ee<=Ae.NINE||Ee>=Ae.NUM_ZERO&&Ee<=Ae.NUM_MULTIPLY||Ee>=Ae.A&&Ee<=Ae.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ee===0)return!0;switch(Ee){case Ae.SPACE:case Ae.QUESTION_MARK:case Ae.NUM_PLUS:case Ae.NUM_MINUS:case Ae.NUM_PERIOD:case Ae.NUM_DIVISION:case Ae.SEMICOLON:case Ae.DASH:case Ae.EQUALS:case Ae.COMMA:case Ae.PERIOD:case Ae.SLASH:case Ae.APOSTROPHE:case Ae.SINGLE_QUOTE:case Ae.OPEN_SQUARE_BRACKET:case Ae.BACKSLASH:case Ae.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ft=Ae,Yt=function(Ee){return+setTimeout(Ee,16)},Qe=function(Ee){return clearTimeout(Ee)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Yt=function(Ee){return window.requestAnimationFrame(Ee)},Qe=function(Ee){return window.cancelAnimationFrame(Ee)});var it=0,Se=new Map;function Ce(le){Se.delete(le)}var Ve=function(Ee){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;it+=1;var vt=it;function Nt(Ft){if(Ft===0)Ce(vt),Ee();else{var zt=Yt(function(){Nt(Ft-1)});Se.set(vt,zt)}}return Nt(Ze),vt};Ve.cancel=function(le){var Ee=Se.get(le);return Ce(Ee),Qe(Ee)};var Ue=Ve,wt=ft.ESC,gt=ft.TAB;function Lt(le){var Ee=le.visible,Ze=le.triggerRef,vt=le.onVisibleChange,Nt=le.autoFocus,Ft=le.overlayRef,zt=oe.useRef(!1),Gt=function(){if(Ee){var bn,ur;(bn=Ze.current)===null||bn===void 0||(ur=bn.focus)===null||ur===void 0||ur.call(bn),vt==null||vt(!1)}},$n=function(){var bn;return(bn=Ft.current)!==null&&bn!==void 0&&bn.focus?(Ft.current.focus(),zt.current=!0,!0):!1},mr=function(bn){switch(bn.keyCode){case wt:Gt();break;case gt:{var ur=!1;zt.current||(ur=$n()),ur?bn.preventDefault():Gt();break}}};oe.useEffect(function(){return Ee?(window.addEventListener("keydown",mr),Nt&&Ue($n,3),function(){window.removeEventListener("keydown",mr),zt.current=!1}):function(){zt.current=!1}},[Ee])}var Je=(0,oe.forwardRef)(function(le,Ee){var Ze=le.overlay,vt=le.arrow,Nt=le.prefixCls,Ft=(0,oe.useMemo)(function(){var Gt;return typeof Ze=="function"?Gt=Ze():Gt=Ze,Gt},[Ze]),zt=dt(Ee,Ft==null?void 0:Ft.ref);return oe.createElement(oe.Fragment,null,vt&&oe.createElement("div",{className:"".concat(Nt,"-arrow")}),oe.cloneElement(Ft,{ref:$e(Ft)?zt:void 0}))}),Ut=Je,It={adjustX:1,adjustY:1},pn=[0,0],$t={topLeft:{points:["bl","tl"],overflow:It,offset:[0,-4],targetOffset:pn},top:{points:["bc","tc"],overflow:It,offset:[0,-4],targetOffset:pn},topRight:{points:["br","tr"],overflow:It,offset:[0,-4],targetOffset:pn},bottomLeft:{points:["tl","bl"],overflow:It,offset:[0,4],targetOffset:pn},bottom:{points:["tc","bc"],overflow:It,offset:[0,4],targetOffset:pn},bottomRight:{points:["tr","br"],overflow:It,offset:[0,4],targetOffset:pn}},Pn=$t,Kn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Yn(le,Ee){var Ze,vt=le.arrow,Nt=vt===void 0?!1:vt,Ft=le.prefixCls,zt=Ft===void 0?"rc-dropdown":Ft,Gt=le.transitionName,$n=le.animation,mr=le.align,_t=le.placement,bn=_t===void 0?"bottomLeft":_t,ur=le.placements,Tr=ur===void 0?Pn:ur,lt=le.getPopupContainer,Jt=le.showAction,Hn=le.hideAction,er=le.overlayClassName,nr=le.overlayStyle,Er=le.visible,Pr=le.trigger,Ir=Pr===void 0?["hover"]:Pr,zr=le.autoFocus,Wr=le.overlay,gr=le.children,Nr=le.onVisibleChange,Bi=(0,xe.Z)(le,Kn),Ai=oe.useState(),Fi=(0,De.Z)(Ai,2),$r=Fi[0],Ct=Fi[1],dn="visible"in le?Er:$r,On=oe.useRef(null),Nn=oe.useRef(null),Jn=oe.useRef(null);oe.useImperativeHandle(Ee,function(){return On.current});var rr=function(Vt){Ct(Vt),Nr==null||Nr(Vt)};Lt({visible:dn,triggerRef:Jn,onVisibleChange:rr,autoFocus:zr,overlayRef:Nn});var wr=function(Vt){var Pt=le.onOverlayClick;Ct(!1),Pt&&Pt(Vt)},_n=function(){return oe.createElement(Ut,{ref:Nn,overlay:Wr,prefixCls:zt,arrow:Nt})},Ye=function(){return typeof Wr=="function"?_n:_n()},mt=function(){var Vt=le.minOverlayWidthMatchTrigger,Pt=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?Vt:!Pt},Ht=function(){var Vt=le.openClassName;return Vt!==void 0?Vt:"".concat(zt,"-open")},qt=oe.cloneElement(gr,{className:qe()((Ze=gr.props)===null||Ze===void 0?void 0:Ze.className,dn&&Ht()),ref:$e(gr)?dt(Jn,gr.ref):void 0}),_e=Hn;return!_e&&Ir.indexOf("contextMenu")!==-1&&(_e=["click"]),oe.createElement(me.Z,(0,ve.Z)({builtinPlacements:Tr},Bi,{prefixCls:zt,ref:On,popupClassName:qe()(er,(0,Le.Z)({},"".concat(zt,"-show-arrow"),Nt)),popupStyle:nr,action:Ir,showAction:Jt,hideAction:_e,popupPlacement:bn,popupAlign:mr,popupTransitionName:Gt,popupAnimation:$n,popupVisible:dn,stretch:mt()?"minWidth":"",popup:Ye(),onPopupVisibleChange:rr,onPopupClick:wr,getPopupContainer:lt}),qt)}var Xe=oe.forwardRef(Yn),we=Xe,Mt=se(60276),cn=se(5663),Kt=se(10366),tt=se(80636),ut=se(8745),Zt=se(96159),Wn=se(53124),wn=se(68508),Qt=se(76529),en=se(29691),Dn=se(66748);const vn=null,Be=le=>{const{menu:Ee,arrow:Ze,prefixCls:vt,children:Nt,trigger:Ft,disabled:zt,dropdownRender:Gt,getPopupContainer:$n,overlayClassName:mr,rootClassName:_t,open:bn,onOpenChange:ur,visible:Tr,onVisibleChange:lt,mouseEnterDelay:Jt=.15,mouseLeaveDelay:Hn=.1,autoAdjustOverflow:er=!0,placement:nr="",overlay:Er,transitionName:Pr}=le,{getPopupContainer:Ir,getPrefixCls:zr,direction:Wr}=oe.useContext(Wn.E_),gr=oe.useMemo(()=>{const qt=zr();return Pr!==void 0?Pr:nr.includes("top")?`${qt}-slide-down`:`${qt}-slide-up`},[zr,nr,Pr]),Nr=oe.useMemo(()=>nr?nr.includes("Center")?nr.slice(0,nr.indexOf("Center")):nr:Wr==="rtl"?"bottomRight":"bottomLeft",[nr,Wr]),Bi=zr("dropdown",vt),[Ai,Fi]=(0,Dn.Z)(Bi),[,$r]=(0,en.Z)(),Ct=oe.Children.only(Nt),dn=(0,Zt.Tm)(Ct,{className:qe()(`${Bi}-trigger`,{[`${Bi}-rtl`]:Wr==="rtl"},Ct.props.className),disabled:zt}),On=zt?[]:Ft;let Nn;On&&On.includes("contextMenu")&&(Nn=!0);const[Jn,rr]=(0,cn.Z)(!1,{value:bn!=null?bn:Tr}),wr=(0,Mt.useEvent)(qt=>{ur==null||ur(qt),lt==null||lt(qt),rr(qt)}),_n=qe()(mr,_t,Fi,{[`${Bi}-rtl`]:Wr==="rtl"}),Ye=(0,tt.Z)({arrowPointAtCenter:typeof Ze=="object"&&Ze.pointAtCenter,autoAdjustOverflow:er,offset:$r.marginXXS,arrowWidth:Ze?$r.sizePopupArrow:0,borderRadius:$r.borderRadius}),mt=oe.useCallback(()=>{rr(!1)},[]),Ht=()=>{let qt;return Ee!=null&&Ee.items?qt=oe.createElement(wn.default,Object.assign({},Ee)):typeof Er=="function"?qt=Er():qt=Er,Gt&&(qt=Gt(qt)),qt=oe.Children.only(typeof qt=="string"?oe.createElement("span",null,qt):qt),oe.createElement(Qt.J,{prefixCls:`${Bi}-menu`,expandIcon:oe.createElement("span",{className:`${Bi}-menu-submenu-arrow`},oe.createElement(He.Z,{className:`${Bi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:_e=>{let{mode:xt}=_e}},qt)};return Ai(oe.createElement(we,Object.assign({alignPoint:Nn},(0,Kt.Z)(le,["rootClassName"]),{mouseEnterDelay:Jt,mouseLeaveDelay:Hn,visible:Jn,builtinPlacements:Ye,arrow:!!Ze,overlayClassName:_n,prefixCls:Bi,getPopupContainer:$n||Ir,transitionName:gr,trigger:On,overlay:Ht,placement:Nr,onVisibleChange:wr}),dn))};function fe(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,ut.Z)(Be,"dropdown",le=>le,fe),he=le=>oe.createElement(ce,Object.assign({},le),oe.createElement("span",null));Be._InternalPanelDoNotUseOrYouWillBeFired=he;var de=Be},85418:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return ct}});var oe=se(35874),He=se(94184),Ne=se.n(He),qe=se(67294),ve=se(25877),Le=se(71577),De=se(53124),xe=se(93421),me=se(4173),Te=se(66748),rt=function($e,Ae){var ft={};for(var Yt in $e)Object.prototype.hasOwnProperty.call($e,Yt)&&Ae.indexOf(Yt)<0&&(ft[Yt]=$e[Yt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Yt=Object.getOwnPropertySymbols($e);Qe{const{getPopupContainer:Ae,getPrefixCls:ft,direction:Yt}=qe.useContext(De.E_),{prefixCls:Qe,type:it="default",danger:Se,disabled:Ce,loading:Ve,onClick:Ue,htmlType:wt,children:gt,className:Lt,menu:Je,arrow:Ut,autoFocus:It,overlay:pn,trigger:$t,align:Pn,open:Kn,onOpenChange:Yn,placement:Xe,getPopupContainer:we,href:Mt,icon:cn=qe.createElement(ve.Z,null),title:Kt,buttonsRender:tt=zt=>zt,mouseEnterDelay:ut,mouseLeaveDelay:Zt,overlayClassName:Wn,overlayStyle:wn,destroyPopupOnHide:Qt,dropdownRender:en}=$e,Dn=rt($e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),vn=ft("dropdown",Qe),Be=`${vn}-button`,[fe,ce]=(0,Te.Z)(vn),he={menu:Je,arrow:Ut,autoFocus:It,align:Pn,disabled:Ce,trigger:Ce?[]:$t,onOpenChange:Yn,getPopupContainer:we||Ae,mouseEnterDelay:ut,mouseLeaveDelay:Zt,overlayClassName:Wn,overlayStyle:wn,destroyPopupOnHide:Qt,dropdownRender:en},{compactSize:de,compactItemClassnames:le}=(0,me.ri)(vn,Yt),Ee=Ne()(Be,le,Lt,ce);"overlay"in $e&&(he.overlay=pn),"open"in $e&&(he.open=Kn),"placement"in $e?he.placement=Xe:he.placement=Yt==="rtl"?"bottomLeft":"bottomRight";const Ze=qe.createElement(Le.ZP,{type:it,danger:Se,disabled:Ce,loading:Ve,onClick:Ue,htmlType:wt,href:Mt,title:Kt},gt),vt=qe.createElement(Le.ZP,{type:it,danger:Se,icon:cn}),[Nt,Ft]=tt([Ze,vt]);return fe(qe.createElement(xe.Z.Compact,Object.assign({className:Ee,size:de,block:!0},Dn),Nt,qe.createElement(oe.Z,Object.assign({},he),Ft)))};Ie.__ANT_BUTTON=!0;var Et=Ie;const dt=oe.Z;dt.Button=Et;var ct=dt},66748:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return rt}});var oe=se(14747),He=se(67771),Ne=se(33297),qe=se(50438),ve=se(97414),Le=se(67968),De=se(45503),me=Ie=>{const{componentCls:Et,menuCls:dt,colorError:ct,colorTextLightSolid:$e}=Ie,Ae=`${dt}-item`;return{[`${Et}, ${Et}-menu-submenu`]:{[`${dt} ${Ae}`]:{[`&${Ae}-danger:not(${Ae}-disabled)`]:{color:ct,"&:hover":{color:$e,backgroundColor:ct}}}}}};const Te=Ie=>{const{componentCls:Et,menuCls:dt,zIndexPopup:ct,dropdownArrowDistance:$e,sizePopupArrow:Ae,antCls:ft,iconCls:Yt,motionDurationMid:Qe,dropdownPaddingVertical:it,fontSize:Se,dropdownEdgeChildPadding:Ce,colorTextDisabled:Ve,fontSizeIcon:Ue,controlPaddingHorizontal:wt,colorBgElevated:gt}=Ie;return[{[Et]:Object.assign(Object.assign({},(0,oe.Wf)(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ct,display:"block","&::before":{position:"absolute",insetBlock:-$e+Ae/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${ft}-btn`]:{[`& > ${Yt}-down, & > ${ft}-btn-icon > ${Yt}-down`]:{fontSize:Ue}},[`${Et}-wrap`]:{position:"relative",[`${ft}-btn > ${Yt}-down`]:{fontSize:Ue},[`${Yt}-down::before`]:{transition:`transform ${Qe}`}},[`${Et}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ft}-slide-down-enter${ft}-slide-down-enter-active${Et}-placement-bottomLeft, &${ft}-slide-down-appear${ft}-slide-down-appear-active${Et}-placement-bottomLeft, &${ft}-slide-down-enter${ft}-slide-down-enter-active${Et}-placement-bottom, &${ft}-slide-down-appear${ft}-slide-down-appear-active${Et}-placement-bottom, &${ft}-slide-down-enter${ft}-slide-down-enter-active${Et}-placement-bottomRight, &${ft}-slide-down-appear${ft}-slide-down-appear-active${Et}-placement-bottomRight`]:{animationName:He.fJ},[`&${ft}-slide-up-enter${ft}-slide-up-enter-active${Et}-placement-topLeft, &${ft}-slide-up-appear${ft}-slide-up-appear-active${Et}-placement-topLeft, &${ft}-slide-up-enter${ft}-slide-up-enter-active${Et}-placement-top, &${ft}-slide-up-appear${ft}-slide-up-appear-active${Et}-placement-top, &${ft}-slide-up-enter${ft}-slide-up-enter-active${Et}-placement-topRight, &${ft}-slide-up-appear${ft}-slide-up-appear-active${Et}-placement-topRight`]:{animationName:He.Qt},[`&${ft}-slide-down-leave${ft}-slide-down-leave-active${Et}-placement-bottomLeft, &${ft}-slide-down-leave${ft}-slide-down-leave-active${Et}-placement-bottom, &${ft}-slide-down-leave${ft}-slide-down-leave-active${Et}-placement-bottomRight`]:{animationName:He.Uw},[`&${ft}-slide-up-leave${ft}-slide-up-leave-active${Et}-placement-topLeft, &${ft}-slide-up-leave${ft}-slide-up-leave-active${Et}-placement-top, &${ft}-slide-up-leave${ft}-slide-up-leave-active${Et}-placement-topRight`]:{animationName:He.ly}})},(0,ve.ZP)(Ie,{colorBg:gt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Et} ${dt}`]:{position:"relative",margin:0},[`${dt}-submenu-popup`]:{position:"absolute",zIndex:ct,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Et}, ${Et}-menu-submenu`]:{[dt]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:gt,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,oe.Qy)(Ie)),{[`${dt}-item-group-title`]:{padding:`${it}px ${wt}px`,color:Ie.colorTextDescription,transition:`all ${Qe}`},[`${dt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${dt}-item-icon`]:{minWidth:Se,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${dt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${Qe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${dt}-item, ${dt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${it}px ${wt}px`,color:Ie.colorText,fontWeight:"normal",fontSize:Se,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${Qe}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,oe.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:Ve,cursor:"not-allowed","&:hover":{color:Ve,backgroundColor:gt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${Et}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${Et}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:Ue,fontStyle:"normal"}}}),[`${dt}-item-group-list`]:{margin:`0 ${Ie.marginXS}px`,padding:0,listStyle:"none"},[`${dt}-submenu-title`]:{paddingInlineEnd:wt+Ie.fontSizeSM},[`${dt}-submenu-vertical`]:{position:"relative"},[`${dt}-submenu${dt}-submenu-disabled ${Et}-menu-submenu-title`]:{[`&, ${Et}-menu-submenu-arrow-icon`]:{color:Ve,backgroundColor:gt,cursor:"not-allowed"}},[`${dt}-submenu-selected ${Et}-menu-submenu-title`]:{color:Ie.colorPrimary}})}},[(0,He.oN)(Ie,"slide-up"),(0,He.oN)(Ie,"slide-down"),(0,Ne.Fm)(Ie,"move-up"),(0,Ne.Fm)(Ie,"move-down"),(0,qe._y)(Ie,"zoom-big")]]};var rt=(0,Le.Z)("Dropdown",(Ie,Et)=>{let{rootPrefixCls:dt}=Et;const{marginXXS:ct,sizePopupArrow:$e,controlHeight:Ae,fontSize:ft,lineHeight:Yt,paddingXXS:Qe,componentCls:it,borderRadiusLG:Se}=Ie,Ce=(Ae-ft*Yt)/2,{dropdownArrowOffset:Ve}=(0,ve.fS)({contentRadius:Se}),Ue=(0,De.TS)(Ie,{menuCls:`${it}-menu`,rootPrefixCls:dt,dropdownArrowDistance:$e/2+ct,dropdownArrowOffset:Ve,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:Qe});return[Te(Ue),me(Ue)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase+50}))},32983:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Qe}});var oe=se(94184),He=se.n(oe),Ne=se(67294),qe=se(53124),ve=se(10110),Le=se(84780),De=se(29691),me=()=>{const[,it]=(0,De.Z)(),Ce=new Le.C(it.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Ne.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Ne.createElement("g",{fill:"none",fillRule:"evenodd"},Ne.createElement("g",{transform:"translate(24 31.67)"},Ne.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Ne.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"}),Ne.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)"}),Ne.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"}),Ne.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"})),Ne.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"}),Ne.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Ne.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Ne.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rt=()=>{const[,it]=(0,De.Z)(),{colorFill:Se,colorFillTertiary:Ce,colorFillQuaternary:Ve,colorBgContainer:Ue}=it,{borderColor:wt,shadowColor:gt,contentColor:Lt}=(0,Ne.useMemo)(()=>({borderColor:new Le.C(Se).onBackground(Ue).toHexShortString(),shadowColor:new Le.C(Ce).onBackground(Ue).toHexShortString(),contentColor:new Le.C(Ve).onBackground(Ue).toHexShortString()}),[Se,Ce,Ve,Ue]);return Ne.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Ne.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Ne.createElement("ellipse",{fill:gt,cx:"32",cy:"33",rx:"32",ry:"7"}),Ne.createElement("g",{fillRule:"nonzero",stroke:wt},Ne.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"}),Ne.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:Lt}))))},Ie=se(67968),Et=se(45503);const dt=it=>{const{componentCls:Se,margin:Ce,marginXS:Ve,marginXL:Ue,fontSize:wt,lineHeight:gt}=it;return{[Se]:{marginInline:Ve,fontSize:wt,lineHeight:gt,textAlign:"center",[`${Se}-image`]:{height:it.emptyImgHeight,marginBottom:Ve,opacity:it.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Se}-description`]:{color:it.colorText},[`${Se}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:Ue,color:it.colorTextDisabled,[`${Se}-description`]:{color:it.colorTextDisabled},[`${Se}-image`]:{height:it.emptyImgHeightMD}},"&-small":{marginBlock:Ve,color:it.colorTextDisabled,[`${Se}-image`]:{height:it.emptyImgHeightSM}}}}};var ct=(0,Ie.Z)("Empty",it=>{const{componentCls:Se,controlHeightLG:Ce}=it,Ve=(0,Et.TS)(it,{emptyImgCls:`${Se}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[dt(Ve)]}),$e=function(it,Se){var Ce={};for(var Ve in it)Object.prototype.hasOwnProperty.call(it,Ve)&&Se.indexOf(Ve)<0&&(Ce[Ve]=it[Ve]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ve=Object.getOwnPropertySymbols(it);Ue{var{className:Se,rootClassName:Ce,prefixCls:Ve,image:Ue=Ae,description:wt,children:gt,imageStyle:Lt,style:Je}=it,Ut=$e(it,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:It,direction:pn,empty:$t}=Ne.useContext(qe.E_),Pn=It("empty",Ve),[Kn,Yn]=ct(Pn),[Xe]=(0,ve.Z)("Empty"),we=typeof wt!="undefined"?wt:Xe==null?void 0:Xe.description,Mt=typeof we=="string"?we:"empty";let cn=null;return typeof Ue=="string"?cn=Ne.createElement("img",{alt:Mt,src:Ue}):cn=Ue,Kn(Ne.createElement("div",Object.assign({className:He()(Yn,Pn,$t==null?void 0:$t.className,{[`${Pn}-normal`]:Ue===ft,[`${Pn}-rtl`]:pn==="rtl"},Se,Ce),style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Je)},Ut),Ne.createElement("div",{className:`${Pn}-image`,style:Lt},cn),we&&Ne.createElement("div",{className:`${Pn}-description`},we),gt&&Ne.createElement("div",{className:`${Pn}-footer`},gt)))};Yt.PRESENTED_IMAGE_DEFAULT=Ae,Yt.PRESENTED_IMAGE_SIMPLE=ft;var Qe=Yt},22150:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return qt}});var oe=se(74902),He=se(94184),Ne=se.n(He),qe=se(38379),ve=se(67294),Le=se(33603),De=se(65223);function xe(_e){const[xt,Vt]=ve.useState(_e);return ve.useEffect(()=>{const Pt=setTimeout(()=>{Vt(_e)},_e.length?0:10);return()=>{clearTimeout(Pt)}},[_e]),xt}var me=se(14747),Te=se(50438),rt=se(33507),Ie=se(45503),Et=se(67968),ct=_e=>{const{componentCls:xt}=_e,Vt=`${xt}-show-help`,Pt=`${xt}-show-help-item`;return{[Vt]:{transition:`opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Pt]:{overflow:"hidden",transition:`height ${_e.motionDurationSlow} ${_e.motionEaseInOut}, opacity ${_e.motionDurationSlow} ${_e.motionEaseInOut}, transform ${_e.motionDurationSlow} ${_e.motionEaseInOut} !important`,[`&${Pt}-appear, &${Pt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Pt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const $e=_e=>({legend:{display:"block",width:"100%",marginBottom:_e.marginLG,padding:0,color:_e.colorTextDescription,fontSize:_e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},label:{fontSize:_e.fontSize},'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 ${_e.controlOutlineWidth}px ${_e.controlOutline}`},output:{display:"block",paddingTop:15,color:_e.colorText,fontSize:_e.fontSize,lineHeight:_e.lineHeight}}),Ae=(_e,xt)=>{const{formItemCls:Vt}=_e;return{[Vt]:{[`${Vt}-label > label`]:{height:xt},[`${Vt}-control-input`]:{minHeight:xt}}}},ft=_e=>{const{componentCls:xt}=_e;return{[_e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(_e)),$e(_e)),{[`${xt}-text`]:{display:"inline-block",paddingInlineEnd:_e.paddingSM},"&-small":Object.assign({},Ae(_e,_e.controlHeightSM)),"&-large":Object.assign({},Ae(_e,_e.controlHeightLG))})}},Yt=_e=>{const{formItemCls:xt,iconCls:Vt,componentCls:Pt,rootPrefixCls:tn,labelRequiredMarkColor:an,labelColor:Rn,labelFontSize:Or,labelHeight:dr,labelColonMarginInlineStart:ar,labelColonMarginInlineEnd:xr,itemMarginBottom:Sr}=_e;return{[xt]:Object.assign(Object.assign({},(0,me.Wf)(_e)),{marginBottom:Sr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${tn}-row`]:{display:"none"},"&-has-warning":{[`${xt}-split`]:{color:_e.colorError}},"&-has-error":{[`${xt}-split`]:{color:_e.colorWarning}},[`${xt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${_e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:dr,color:Rn,fontSize:Or,[`> ${Vt}`]:{fontSize:_e.fontSize,verticalAlign:"top"},[`&${xt}-required:not(${xt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:_e.marginXXS,color:an,fontSize:_e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Pt}-hide-required-mark &`]:{display:"none"}},[`${xt}-optional`]:{display:"inline-block",marginInlineStart:_e.marginXXS,color:_e.colorTextDescription,[`${Pt}-hide-required-mark &`]:{display:"none"}},[`${xt}-tooltip`]:{color:_e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:_e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ar,marginInlineEnd:xr},[`&${xt}-no-colon::after`]:{content:'"\\a0"'}}},[`${xt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${tn}-col-'"]):not([class*="' ${tn}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:_e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[xt]:{"&-explain, &-extra":{clear:"both",color:_e.colorTextDescription,fontSize:_e.fontSize,lineHeight:_e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:_e.controlHeightSM,transition:`color ${_e.motionDurationMid} ${_e.motionEaseOut}`},"&-explain":{"&-error":{color:_e.colorError},"&-warning":{color:_e.colorWarning}}},[`&-with-help ${xt}-explain`]:{height:"auto",opacity:1},[`${xt}-feedback-icon`]:{fontSize:_e.fontSize,textAlign:"center",visibility:"visible",animationName:Te.kr,animationDuration:_e.motionDurationMid,animationTimingFunction:_e.motionEaseOutBack,pointerEvents:"none","&-success":{color:_e.colorSuccess},"&-error":{color:_e.colorError},"&-warning":{color:_e.colorWarning},"&-validating":{color:_e.colorPrimary}}})}},Qe=_e=>{const{componentCls:xt,formItemCls:Vt}=_e;return{[`${xt}-horizontal`]:{[`${Vt}-label`]:{flexGrow:0},[`${Vt}-control`]:{flex:"1 1 0",minWidth:0},[`${Vt}-label[class$='-24'], ${Vt}-label[class*='-24 ']`]:{[`& + ${Vt}-control`]:{minWidth:"unset"}}}}},it=_e=>{const{componentCls:xt,formItemCls:Vt}=_e;return{[`${xt}-inline`]:{display:"flex",flexWrap:"wrap",[Vt]:{flex:"none",marginInlineEnd:_e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Vt}-label, > ${Vt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Vt}-label`]:{flex:"none"},[`${xt}-text`]:{display:"inline-block"},[`${Vt}-has-feedback`]:{display:"inline-block"}}}}},Se=_e=>({padding:_e.verticalLabelPadding,margin:_e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=_e=>{const{componentCls:xt,formItemCls:Vt,rootPrefixCls:Pt}=_e;return{[`${Vt} ${Vt}-label`]:Se(_e),[xt]:{[Vt]:{flexWrap:"wrap",[`${Vt}-label, ${Vt}-control`]:{[`&:not([class*=" ${Pt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ve=_e=>{const{componentCls:xt,formItemCls:Vt,rootPrefixCls:Pt}=_e;return{[`${xt}-vertical`]:{[Vt]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${xt}-item-control`]:{width:"100%"}}},[`${xt}-vertical ${Vt}-label, .${Pt}-col-24${Vt}-label, .${Pt}-col-xl-24${Vt}-label`]:Se(_e),[`@media (max-width: ${_e.screenXSMax}px)`]:[Ce(_e),{[xt]:{[`.${Pt}-col-xs-24${Vt}-label`]:Se(_e)}}],[`@media (max-width: ${_e.screenSMMax}px)`]:{[xt]:{[`.${Pt}-col-sm-24${Vt}-label`]:Se(_e)}},[`@media (max-width: ${_e.screenMDMax}px)`]:{[xt]:{[`.${Pt}-col-md-24${Vt}-label`]:Se(_e)}},[`@media (max-width: ${_e.screenLGMax}px)`]:{[xt]:{[`.${Pt}-col-lg-24${Vt}-label`]:Se(_e)}}}},Ue=(_e,xt)=>(0,Ie.TS)(_e,{formItemCls:`${_e.componentCls}-item`,rootPrefixCls:xt});var wt=(0,Et.Z)("Form",(_e,xt)=>{let{rootPrefixCls:Vt}=xt;const Pt=Ue(_e,Vt);return[ft(Pt),Yt(Pt),ct(Pt),Qe(Pt),it(Pt),Ve(Pt),(0,rt.Z)(Pt),Te.kr]},_e=>({labelRequiredMarkColor:_e.colorError,labelColor:_e.colorTextHeading,labelFontSize:_e.fontSize,labelHeight:_e.controlHeight,labelColonMarginInlineStart:_e.marginXXS/2,labelColonMarginInlineEnd:_e.marginXS,itemMarginBottom:_e.marginLG,verticalLabelPadding:`0 0 ${_e.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const gt=[];function Lt(_e,xt,Vt){let Pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof _e=="string"?_e:`${xt}-${Pt}`,error:_e,errorStatus:Vt}}var Ut=_e=>{let{help:xt,helpStatus:Vt,errors:Pt=gt,warnings:tn=gt,className:an,fieldId:Rn,onVisibleChanged:Or}=_e;const{prefixCls:dr}=ve.useContext(De.Rk),ar=`${dr}-item-explain`,[,xr]=wt(dr),Sr=(0,ve.useMemo)(()=>(0,Le.Z)(dr),[dr]),bt=xe(Pt),ht=xe(tn),Dt=ve.useMemo(()=>xt!=null?[Lt(xt,"help",Vt)]:[].concat((0,oe.Z)(bt.map((Vn,Cn)=>Lt(Vn,"error","error",Cn))),(0,oe.Z)(ht.map((Vn,Cn)=>Lt(Vn,"warning","warning",Cn)))),[xt,Vt,bt,ht]),Sn={};return Rn&&(Sn.id=`${Rn}_help`),ve.createElement(qe.default,{motionDeadline:Sr.motionDeadline,motionName:`${dr}-show-help`,visible:!!Dt.length,onVisibleChanged:Or},Vn=>{const{className:Cn,style:yn}=Vn;return ve.createElement("div",Object.assign({},Sn,{className:Ne()(ar,Cn,an,xr),style:yn,role:"alert"}),ve.createElement(qe.CSSMotionList,Object.assign({keys:Dt},(0,Le.Z)(dr),{motionName:`${dr}-show-help-item`,component:!1}),Ln=>{const{key:Un,error:Cr,errorStatus:un,className:ni,style:Qr}=Ln;return ve.createElement("div",{key:Un,className:Ne()(ni,{[`${ar}-${un}`]:un}),style:Qr},Cr)}))})},It=se(46660),pn=se(53124),$t=se(98866),Pn=se(97647),Kn=se(98675),Yn=se(17423);const Xe=["parentNode"],we="form_item";function Mt(_e){return _e===void 0||_e===!1?[]:Array.isArray(_e)?_e:[_e]}function cn(_e,xt){if(!_e.length)return;const Vt=_e.join("_");return xt?`${xt}_${Vt}`:Xe.includes(Vt)?`${we}_${Vt}`:Vt}function Kt(_e,xt,Vt,Pt,tn,an){let Rn=Pt;return an!==void 0?Rn=an:Vt.validating?Rn="validating":_e.length?Rn="error":xt.length?Rn="warning":(Vt.touched||tn&&Vt.validated)&&(Rn="success"),Rn}function tt(_e){return Mt(_e).join("_")}function ut(_e){const[xt]=(0,It.useForm)(),Vt=ve.useRef({}),Pt=ve.useMemo(()=>_e!=null?_e:Object.assign(Object.assign({},xt),{__INTERNAL__:{itemRef:tn=>an=>{const Rn=tt(tn);an?Vt.current[Rn]=an:delete Vt.current[Rn]}},scrollToField:function(tn){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Rn=Mt(tn),Or=cn(Rn,Pt.__INTERNAL__.name),dr=Or?document.getElementById(Or):null;dr&&(0,Yn.Z)(dr,Object.assign({scrollMode:"if-needed",block:"nearest"},an))},getFieldInstance:tn=>{const an=tt(tn);return Vt.current[an]}}),[_e,xt]);return[Pt]}var Zt=se(37920),Wn=function(_e,xt){var Vt={};for(var Pt in _e)Object.prototype.hasOwnProperty.call(_e,Pt)&&xt.indexOf(Pt)<0&&(Vt[Pt]=_e[Pt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Pt=Object.getOwnPropertySymbols(_e);tn{const Vt=ve.useContext($t.Z),{getPrefixCls:Pt,direction:tn,form:an}=ve.useContext(pn.E_),{prefixCls:Rn,className:Or,rootClassName:dr,size:ar,disabled:xr=Vt,form:Sr,colon:bt,labelAlign:ht,labelWrap:Dt,labelCol:Sn,wrapperCol:Vn,hideRequiredMark:Cn,layout:yn="horizontal",scrollToFirstError:Ln,requiredMark:Un,onFinishFailed:Cr,name:un,style:ni,feedbackIcons:Qr}=_e,Hi=Wn(_e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ki=(0,Kn.Z)(ar),vi=ve.useContext(Zt.Z),qi=(0,ve.useMemo)(()=>Un!==void 0?Un:an&&an.requiredMark!==void 0?an.requiredMark:!Cn,[Cn,Un,an]),bi=bt!=null?bt:an==null?void 0:an.colon,di=Pt("form",Rn),[Wi,Qi]=wt(di),ai=Ne()(di,`${di}-${yn}`,{[`${di}-hide-required-mark`]:qi===!1,[`${di}-rtl`]:tn==="rtl",[`${di}-${ki}`]:ki},Qi,an==null?void 0:an.className,Or,dr),[xi]=ut(Sr),{__INTERNAL__:Zi}=xi;Zi.name=un;const ca=(0,ve.useMemo)(()=>({name:un,labelAlign:ht,labelCol:Sn,labelWrap:Dt,wrapperCol:Vn,vertical:yn==="vertical",colon:bi,requiredMark:qi,itemRef:Zi.itemRef,form:xi,feedbackIcons:Qr}),[un,ht,Sn,Vn,yn,bi,qi,xi,Qr]);ve.useImperativeHandle(xt,()=>xi);const na=(Ot,At)=>{if(Ot){let on={block:"nearest"};typeof Ot=="object"&&(on=Ot),xi.scrollToField(At,on)}},oi=Ot=>{if(Cr==null||Cr(Ot),Ot.errorFields.length){const At=Ot.errorFields[0].name;if(Ln!==void 0){na(Ln,At);return}an&&an.scrollToFirstError!==void 0&&na(an.scrollToFirstError,At)}};return Wi(ve.createElement($t.n,{disabled:xr},ve.createElement(Pn.q,{size:ki},ve.createElement(De.RV,Object.assign({},{validateMessages:vi}),ve.createElement(De.q3.Provider,{value:ca},ve.createElement(It.default,Object.assign({id:un},Hi,{name:un,onFinishFailed:oi,form:xi,style:Object.assign(Object.assign({},an==null?void 0:an.style),ni),className:ai})))))))};var en=ve.forwardRef(wn),Dn=se(9475),vn=se(17799),Be=se(96159),fe=se(37419);function ce(_e){if(typeof _e=="function")return _e;const xt=(0,fe.Z)(_e);return xt.length<=1?xt[0]:xt}const he=()=>{const{status:_e,errors:xt=[],warnings:Vt=[]}=(0,ve.useContext)(De.aM);return{status:_e,errors:xt,warnings:Vt}};he.Context=De.aM;var de=he,le=se(96523);function Ee(_e){const[xt,Vt]=ve.useState(_e),Pt=(0,ve.useRef)(null),tn=(0,ve.useRef)([]),an=(0,ve.useRef)(!1);ve.useEffect(()=>(an.current=!1,()=>{an.current=!0,le.Z.cancel(Pt.current),Pt.current=null}),[]);function Rn(Or){an.current||(Pt.current===null&&(tn.current=[],Pt.current=(0,le.Z)(()=>{Pt.current=null,Vt(dr=>{let ar=dr;return tn.current.forEach(xr=>{ar=xr(ar)}),ar})})),tn.current.push(Or))}return[xt,Rn]}function Ze(){const{itemRef:_e}=ve.useContext(De.q3),xt=ve.useRef({});function Vt(Pt,tn){const an=tn&&typeof tn=="object"&&tn.ref,Rn=Pt.join("_");return(xt.current.name!==Rn||xt.current.originRef!==an)&&(xt.current.name=Rn,xt.current.originRef=an,xt.current.ref=(0,vn.sQ)(_e(Pt),an)),xt.current.ref}return Vt}var vt=se(48130),Nt=se(14075),Ft=se(10366),zt=se(92820),Gt=se(21584);const $n=_e=>{const{formItemCls:xt}=_e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${xt}-control`]:{display:"flex"}}}};var mr=(0,Et.b)(["Form","item-item"],(_e,xt)=>{let{rootPrefixCls:Vt}=xt;const Pt=Ue(_e,Vt);return[$n(Pt)]}),bn=_e=>{const{prefixCls:xt,status:Vt,wrapperCol:Pt,children:tn,errors:an,warnings:Rn,_internalItemRender:Or,extra:dr,help:ar,fieldId:xr,marginBottom:Sr,onErrorVisibleChanged:bt}=_e,ht=`${xt}-item`,Dt=ve.useContext(De.q3),Sn=Pt||Dt.wrapperCol||{},Vn=Ne()(`${ht}-control`,Sn.className),Cn=ve.useMemo(()=>Object.assign({},Dt),[Dt]);delete Cn.labelCol,delete Cn.wrapperCol;const yn=ve.createElement("div",{className:`${ht}-control-input`},ve.createElement("div",{className:`${ht}-control-input-content`},tn)),Ln=ve.useMemo(()=>({prefixCls:xt,status:Vt}),[xt,Vt]),Un=Sr!==null||an.length||Rn.length?ve.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ve.createElement(De.Rk.Provider,{value:Ln},ve.createElement(Ut,{fieldId:xr,errors:an,warnings:Rn,help:ar,helpStatus:Vt,className:`${ht}-explain-connected`,onVisibleChanged:bt})),!!Sr&&ve.createElement("div",{style:{width:0,height:Sr}})):null,Cr={};xr&&(Cr.id=`${xr}_extra`);const un=dr?ve.createElement("div",Object.assign({},Cr,{className:`${ht}-extra`}),dr):null,ni=Or&&Or.mark==="pro_table_render"&&Or.render?Or.render(_e,{input:yn,errorList:Un,extra:un}):ve.createElement(ve.Fragment,null,yn,Un,un);return ve.createElement(De.q3.Provider,{value:Cn},ve.createElement(Gt.Z,Object.assign({},Sn,{className:Vn}),ni),ve.createElement(mr,{prefixCls:xt}))},ur=se(17663),Tr=se(24457),lt=se(10110),Jt=se(83062),Hn=function(_e,xt){var Vt={};for(var Pt in _e)Object.prototype.hasOwnProperty.call(_e,Pt)&&xt.indexOf(Pt)<0&&(Vt[Pt]=_e[Pt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Pt=Object.getOwnPropertySymbols(_e);tn{let{prefixCls:xt,label:Vt,htmlFor:Pt,labelCol:tn,labelAlign:an,colon:Rn,required:Or,requiredMark:dr,tooltip:ar}=_e;var xr;const[Sr]=(0,lt.Z)("Form"),{vertical:bt,labelAlign:ht,labelCol:Dt,labelWrap:Sn,colon:Vn}=ve.useContext(De.q3);if(!Vt)return null;const Cn=tn||Dt||{},yn=an||ht,Ln=`${xt}-item-label`,Un=Ne()(Ln,yn==="left"&&`${Ln}-left`,Cn.className,{[`${Ln}-wrap`]:!!Sn});let Cr=Vt;const un=Rn===!0||Vn!==!1&&Rn!==!1;un&&!bt&&typeof Vt=="string"&&Vt.trim()!==""&&(Cr=Vt.replace(/[:|:]\s*$/,""));const Qr=er(ar);if(Qr){const{icon:qi=ve.createElement(ur.Z,null)}=Qr,bi=Hn(Qr,["icon"]),di=ve.createElement(Jt.Z,Object.assign({},bi),ve.cloneElement(qi,{className:`${xt}-item-tooltip`,title:""}));Cr=ve.createElement(ve.Fragment,null,Cr,di)}const Hi=dr==="optional",ki=typeof dr=="function";ki?Cr=dr(Cr,{required:!!Or}):Hi&&!Or&&(Cr=ve.createElement(ve.Fragment,null,Cr,ve.createElement("span",{className:`${xt}-item-optional`,title:""},(Sr==null?void 0:Sr.optional)||((xr=Tr.Z.Form)===null||xr===void 0?void 0:xr.optional))));const vi=Ne()({[`${xt}-item-required`]:Or,[`${xt}-item-required-mark-optional`]:Hi||ki,[`${xt}-item-no-colon`]:!un});return ve.createElement(Gt.Z,Object.assign({},Cn,{className:Un}),ve.createElement("label",{htmlFor:Pt,className:vi,title:typeof Vt=="string"?Vt:""},Cr))},Pr=se(87725),Ir=se(16646),zr=se(87995),Wr=se(3407);const gr={success:Pr.Z,warning:zr.Z,error:Ir.Z,validating:Wr.Z};function Nr(_e){let{children:xt,errors:Vt,warnings:Pt,hasFeedback:tn,validateStatus:an,prefixCls:Rn,meta:Or,noStyle:dr}=_e;const ar=`${Rn}-item`,{feedbackIcons:xr}=ve.useContext(De.q3),Sr=Kt(Vt,Pt,Or,null,!!tn,an),{isFormItemInput:bt,status:ht}=ve.useContext(De.aM),Dt=ve.useMemo(()=>{var Sn;let Vn;if(tn){const Ln=tn!==!0&&tn.icons||xr,Un=Sr&&((Sn=Ln==null?void 0:Ln({status:Sr,errors:Vt,warnings:Pt}))===null||Sn===void 0?void 0:Sn[Sr]),Cr=Sr&&gr[Sr];Vn=Un!==!1&&Cr?ve.createElement("span",{className:Ne()(`${ar}-feedback-icon`,`${ar}-feedback-icon-${Sr}`)},Un||ve.createElement(Cr,null)):null}let Cn=!0,yn=Sr||"";return dr&&(Cn=bt,yn=(Sr!=null?Sr:ht)||""),{status:yn,errors:Vt,warnings:Pt,hasFeedback:!!tn,feedbackIcon:Vn,isFormItemInput:Cn}},[Sr,tn,dr,bt,ht]);return ve.createElement(De.aM.Provider,{value:Dt},xt)}var Bi=function(_e,xt){var Vt={};for(var Pt in _e)Object.prototype.hasOwnProperty.call(_e,Pt)&&xt.indexOf(Pt)<0&&(Vt[Pt]=_e[Pt]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Pt=Object.getOwnPropertySymbols(_e);tn{if(Qr&&Un.current){const Qi=getComputedStyle(Un.current);vi(parseInt(Qi.marginBottom,10))}},[Qr,Hi]);const qi=Qi=>{Qi||vi(null)},di=function(){let Qi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ai=Qi?Cr:ar.errors,xi=Qi?un:ar.warnings;return Kt(ai,xi,ar,"",!!xr,dr)}(),Wi=Ne()(yn,Vt,Pt,{[`${yn}-with-help`]:ni||Cr.length||un.length,[`${yn}-has-feedback`]:di&&xr,[`${yn}-has-success`]:di==="success",[`${yn}-has-warning`]:di==="warning",[`${yn}-has-error`]:di==="error",[`${yn}-is-validating`]:di==="validating",[`${yn}-hidden`]:Sr});return ve.createElement("div",{className:Wi,style:tn,ref:Un},ve.createElement(zt.Z,Object.assign({className:`${yn}-row`},(0,Ft.Z)(Cn,["_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"])),ve.createElement(Er,Object.assign({htmlFor:ht},_e,{requiredMark:Ln,required:Dt!=null?Dt:Sn,prefixCls:xt})),ve.createElement(bn,Object.assign({},_e,ar,{errors:Cr,warnings:un,prefixCls:xt,status:di,help:an,marginBottom:ki,onErrorVisibleChanged:qi}),ve.createElement(De.qI.Provider,{value:Vn},ve.createElement(Nr,{prefixCls:xt,meta:ar,errors:ar.errors,warnings:ar.warnings,hasFeedback:xr,validateStatus:di},bt)))),!!ki&&ve.createElement("div",{className:`${yn}-margin-offset`,style:{marginBottom:-ki}}))}const Fi="__SPLIT__",$r=null,Ct=ve.memo(_e=>{let{children:xt}=_e;return xt},(_e,xt)=>_e.value===xt.value&&_e.update===xt.update&&_e.childProps.length===xt.childProps.length&&_e.childProps.every((Vt,Pt)=>Vt===xt.childProps[Pt]));function dn(_e){return _e!=null}function On(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(_e){const{name:xt,noStyle:Vt,className:Pt,dependencies:tn,prefixCls:an,shouldUpdate:Rn,rules:Or,children:dr,required:ar,label:xr,messageVariables:Sr,trigger:bt="onChange",validateTrigger:ht,hidden:Dt,help:Sn}=_e,{getPrefixCls:Vn}=ve.useContext(pn.E_),{name:Cn}=ve.useContext(De.q3),yn=ce(dr),Ln=typeof yn=="function",Un=ve.useContext(De.qI),{validateTrigger:Cr}=ve.useContext(It.FieldContext),un=ht!==void 0?ht:Cr,ni=dn(xt),Qr=Vn("form",an),[Hi,ki]=wt(Qr),vi=ve.useContext(It.ListContext),qi=ve.useRef(),[bi,di]=Ee({}),[Wi,Qi]=(0,Dn.Z)(()=>On()),ai=At=>{const on=vi==null?void 0:vi.getKey(At.name);if(Qi(At.destroy?On():At,!0),Vt&&Sn!==!1&&Un){let Mn=At.name;if(At.destroy)Mn=qi.current||Mn;else if(on!==void 0){const[jn,Mr]=on;Mn=[jn].concat((0,oe.Z)(Mr)),qi.current=Mn}Un(At,Mn)}},xi=(At,on)=>{di(Mn=>{const jn=Object.assign({},Mn),_r=[].concat((0,oe.Z)(At.name.slice(0,-1)),(0,oe.Z)(on)).join(Fi);return At.destroy?delete jn[_r]:jn[_r]=At,jn})},[Zi,ca]=ve.useMemo(()=>{const At=(0,oe.Z)(Wi.errors),on=(0,oe.Z)(Wi.warnings);return Object.values(bi).forEach(Mn=>{At.push.apply(At,(0,oe.Z)(Mn.errors||[])),on.push.apply(on,(0,oe.Z)(Mn.warnings||[]))}),[At,on]},[bi,Wi.errors,Wi.warnings]),na=Ze();function oi(At,on,Mn){return Vt&&!Dt?ve.createElement(Nr,{prefixCls:Qr,hasFeedback:_e.hasFeedback,validateStatus:_e.validateStatus,meta:Wi,errors:Zi,warnings:ca,noStyle:!0},At):ve.createElement(Ai,Object.assign({key:"row"},_e,{className:Ne()(Pt,ki),prefixCls:Qr,fieldId:on,isRequired:Mn,errors:Zi,warnings:ca,meta:Wi,onSubItemMetaChange:xi}),At)}if(!ni&&!Ln&&!tn)return Hi(oi(yn));let Ot={};return typeof xr=="string"?Ot.label=xr:xt&&(Ot.label=String(xt)),Sr&&(Ot=Object.assign(Object.assign({},Ot),Sr)),Hi(ve.createElement(It.Field,Object.assign({},_e,{messageVariables:Ot,trigger:bt,validateTrigger:un,onMetaChange:ai}),(At,on,Mn)=>{const jn=Mt(xt).length&&on?on.name:[],Mr=cn(jn,Cn),_r=ar!==void 0?ar:!!(Or&&Or.some(Yr=>{if(Yr&&typeof Yr=="object"&&Yr.required&&!Yr.warningOnly)return!0;if(typeof Yr=="function"){const si=Yr(Mn);return si&&si.required&&!si.warningOnly}return!1})),Jr=Object.assign({},At);let ti=null;if(Array.isArray(yn)&&ni)ti=yn;else if(!(Ln&&(!(Rn||tn)||ni))){if(!(tn&&!Ln&&!ni))if((0,Be.l$)(yn)){const Yr=Object.assign(Object.assign({},yn.props),Jr);if(Yr.id||(Yr.id=Mr),Sn||Zi.length>0||ca.length>0||_e.extra){const Hr=[];(Sn||Zi.length>0)&&Hr.push(`${Mr}_help`),_e.extra&&Hr.push(`${Mr}_extra`),Yr["aria-describedby"]=Hr.join(" ")}Zi.length>0&&(Yr["aria-invalid"]="true"),_r&&(Yr["aria-required"]="true"),(0,vn.Yr)(yn)&&(Yr.ref=na(jn,yn)),new Set([].concat((0,oe.Z)(Mt(bt)),(0,oe.Z)(Mt(un)))).forEach(Hr=>{Yr[Hr]=function(){for(var gi,Ii,Si,Pe,We,Ke=arguments.length,Ge=new Array(Ke),st=0;st{var{prefixCls:xt,children:Vt}=_e,Pt=wr(_e,["prefixCls","children"]);const{getPrefixCls:tn}=ve.useContext(pn.E_),an=tn("form",xt),Rn=ve.useMemo(()=>({prefixCls:an,status:"error"}),[an]);return ve.createElement(It.List,Object.assign({},Pt),(Or,dr,ar)=>ve.createElement(De.Rk.Provider,{value:Rn},Vt(Or.map(xr=>Object.assign(Object.assign({},xr),{fieldKey:xr.key})),dr,{errors:ar.errors,warnings:ar.warnings})))};function mt(){const{form:_e}=(0,ve.useContext)(De.q3);return _e}const Ht=en;Ht.Item=rr,Ht.List=Ye,Ht.ErrorList=Ut,Ht.useForm=ut,Ht.useFormInstance=mt,Ht.useWatch=It.useWatch,Ht.Provider=De.RV,Ht.create=()=>{};var qt=Ht},31795:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return _n}});var oe=se(42922),He=se(53978),Ne=se(94184),qe=se.n(Ne),ve=se(87462),Le=se(4942),De=se(71002),xe=se(97685),me=se(45987),Te=se(15671),rt=se(43144);function Ie(){return typeof BigInt=="function"}function Et(Ye){return!Ye&&Ye!==0&&!Number.isNaN(Ye)||!String(Ye).trim()}function dt(Ye){var mt=Ye.trim(),Ht=mt.startsWith("-");Ht&&(mt=mt.slice(1)),mt=mt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),mt.startsWith(".")&&(mt="0".concat(mt));var qt=mt||"0",_e=qt.split("."),xt=_e[0]||"0",Vt=_e[1]||"0";xt==="0"&&Vt==="0"&&(Ht=!1);var Pt=Ht?"-":"";return{negative:Ht,negativeStr:Pt,trimStr:qt,integerStr:xt,decimalStr:Vt,fullStr:"".concat(Pt).concat(qt)}}function ct(Ye){var mt=String(Ye);return!Number.isNaN(Number(mt))&&mt.includes("e")}function $e(Ye){var mt=String(Ye);if(ct(Ye)){var Ht=Number(mt.slice(mt.indexOf("e-")+2)),qt=mt.match(/\.(\d+)/);return qt!=null&&qt[1]&&(Ht+=qt[1].length),Ht}return mt.includes(".")&&ft(mt)?mt.length-mt.indexOf(".")-1:0}function Ae(Ye){var mt=String(Ye);if(ct(Ye)){if(Ye>Number.MAX_SAFE_INTEGER)return String(Ie()?BigInt(Ye).toString():Number.MAX_SAFE_INTEGER);if(Ye0&&arguments[0]!==void 0?arguments[0]:!0;return Ht?this.isInvalidate()?"":dt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ye}(),Qe=function(){function Ye(mt){if((0,Te.Z)(this,Ye),(0,Le.Z)(this,"origin",""),(0,Le.Z)(this,"number",void 0),(0,Le.Z)(this,"empty",void 0),Et(mt)){this.empty=!0;return}this.origin=String(mt),this.number=Number(mt)}return(0,rt.Z)(Ye,[{key:"negate",value:function(){return new Ye(-this.toNumber())}},{key:"add",value:function(Ht){if(this.isInvalidate())return new Ye(Ht);var qt=Number(Ht);if(Number.isNaN(qt))return this;var _e=this.number+qt;if(_e>Number.MAX_SAFE_INTEGER)return new Ye(Number.MAX_SAFE_INTEGER);if(_eNumber.MAX_SAFE_INTEGER)return new Ye(Number.MAX_SAFE_INTEGER);if(_e0&&arguments[0]!==void 0?arguments[0]:!0;return Ht?this.isInvalidate()?"":Ae(this.number):this.origin}}]),Ye}();function it(Ye){return Ie()?new Yt(Ye):new Qe(Ye)}function Se(Ye,mt,Ht){var qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ye==="")return"";var _e=dt(Ye),xt=_e.negativeStr,Vt=_e.integerStr,Pt=_e.decimalStr,tn="".concat(mt).concat(Pt),an="".concat(xt).concat(Vt);if(Ht>=0){var Rn=Number(Pt[Ht]);if(Rn>=5&&!qt){var Or=it(Ye).add("".concat(xt,"0.").concat("0".repeat(Ht)).concat(10-Rn));return Se(Or.toString(),mt,Ht,qt)}return Ht===0?an:"".concat(an).concat(mt).concat(Pt.padEnd(Ht,"0").slice(0,Ht))}return tn===".0"?an:"".concat(an).concat(tn)}var Ce=it,Ve=se(67656),Ue=se(67294);function wt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var gt=wt()?Ue.useLayoutEffect:Ue.useEffect,Lt=function(mt,Ht){var qt=Ue.useRef(!0);gt(function(){return mt(qt.current)},Ht),gt(function(){return qt.current=!1,function(){qt.current=!0}},[])},Je=function(mt,Ht){Lt(function(qt){if(!qt)return mt()},Ht)},Ut=Lt,It=se(27183);function pn(Ye,mt,Ht){var qt=React.useRef({});return(!("value"in qt.current)||Ht(qt.current.condition,mt))&&(qt.current.value=Ye(),qt.current.condition=mt),qt.current.value}function $t(Ye,mt){typeof Ye=="function"?Ye(mt):(0,De.Z)(Ye)==="object"&&Ye&&"current"in Ye&&(Ye.current=mt)}function Pn(){for(var Ye=arguments.length,mt=new Array(Ye),Ht=0;Ht1&&arguments[1]!==void 0?arguments[1]:1;he+=1;var qt=he;function _e(xt){if(xt===0)le(qt),mt();else{var Vt=fe(function(){_e(xt-1)});de.set(qt,Vt)}}return _e(Ht),qt};Ee.cancel=function(Ye){var mt=de.get(Ye);return le(mt),ce(mt)};var Ze=Ee,vt=200,Nt=600;function Ft(Ye){var mt=Ye.prefixCls,Ht=Ye.upNode,qt=Ye.downNode,_e=Ye.upDisabled,xt=Ye.downDisabled,Vt=Ye.onStep,Pt=Ue.useRef(),tn=Ue.useRef([]),an=Ue.useRef();an.current=Vt;var Rn=function(){clearTimeout(Pt.current)},Or=function(Sn,Vn){Sn.preventDefault(),Rn(),an.current(Vn);function Cn(){an.current(Vn),Pt.current=setTimeout(Cn,vt)}Pt.current=setTimeout(Cn,Nt)};Ue.useEffect(function(){return function(){Rn(),tn.current.forEach(function(Dt){return Ze.cancel(Dt)})}},[]);var dr=Be();if(dr)return null;var ar="".concat(mt,"-handler"),xr=qe()(ar,"".concat(ar,"-up"),(0,Le.Z)({},"".concat(ar,"-up-disabled"),_e)),Sr=qe()(ar,"".concat(ar,"-down"),(0,Le.Z)({},"".concat(ar,"-down-disabled"),xt)),bt=function(){return tn.current.push(Ze(Rn))},ht={unselectable:"on",role:"button",onMouseUp:bt,onMouseLeave:bt};return Ue.createElement("div",{className:"".concat(ar,"-wrap")},Ue.createElement("span",(0,ve.Z)({},ht,{onMouseDown:function(Sn){Or(Sn,!0)},"aria-label":"Increase Value","aria-disabled":_e,className:xr}),Ht||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-up-inner")})),Ue.createElement("span",(0,ve.Z)({},ht,{onMouseDown:function(Sn){Or(Sn,!1)},"aria-label":"Decrease Value","aria-disabled":xt,className:Sr}),qt||Ue.createElement("span",{unselectable:"on",className:"".concat(mt,"-handler-down-inner")})))}function zt(Ye){var mt=typeof Ye=="number"?Ae(Ye):dt(Ye).fullStr,Ht=mt.includes(".");return Ht?dt(mt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ye+"0"}var Gt=se(87887),$n=function(){var Ye=(0,Ue.useRef)(0),mt=function(){Ze.cancel(Ye.current)};return(0,Ue.useEffect)(function(){return mt},[]),function(Ht){mt(),Ye.current=Ze(function(){Ht()})}},mr=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],_t=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],bn=function(mt,Ht){return mt||Ht.isEmpty()?Ht.toString():Ht.toNumber()},ur=function(mt){var Ht=Ce(mt);return Ht.isInvalidate()?null:Ht},Tr=Ue.forwardRef(function(Ye,mt){var Ht,qt=Ye.prefixCls,_e=qt===void 0?"rc-input-number":qt,xt=Ye.className,Vt=Ye.style,Pt=Ye.min,tn=Ye.max,an=Ye.step,Rn=an===void 0?1:an,Or=Ye.defaultValue,dr=Ye.value,ar=Ye.disabled,xr=Ye.readOnly,Sr=Ye.upHandler,bt=Ye.downHandler,ht=Ye.keyboard,Dt=Ye.controls,Sn=Dt===void 0?!0:Dt,Vn=Ye.classNames,Cn=Ye.stringMode,yn=Ye.parser,Ln=Ye.formatter,Un=Ye.precision,Cr=Ye.decimalSeparator,un=Ye.onChange,ni=Ye.onInput,Qr=Ye.onPressEnter,Hi=Ye.onStep,ki=(0,me.Z)(Ye,mr),vi="".concat(_e,"-input"),qi=Ue.useRef(null),bi=Ue.useState(!1),di=(0,xe.Z)(bi,2),Wi=di[0],Qi=di[1],ai=Ue.useRef(!1),xi=Ue.useRef(!1),Zi=Ue.useRef(!1),ca=Ue.useState(function(){return Ce(dr!=null?dr:Or)}),na=(0,xe.Z)(ca,2),oi=na[0],Ot=na[1];function At(or){dr===void 0&&Ot(or)}var on=Ue.useCallback(function(or,ir){if(!ir)return Un>=0?Un:Math.max($e(or),$e(Rn))},[Un,Rn]),Mn=Ue.useCallback(function(or){var ir=String(or);if(yn)return yn(ir);var pr=ir;return Cr&&(pr=pr.replace(Cr,".")),pr.replace(/[^\w.-]+/g,"")},[yn,Cr]),jn=Ue.useRef(""),Mr=Ue.useCallback(function(or,ir){if(Ln)return Ln(or,{userTyping:ir,input:String(jn.current)});var pr=typeof or=="number"?Ae(or):or;if(!ir){var fr=on(pr,ir);if(ft(pr)&&(Cr||fr>=0)){var Br=Cr||".";pr=Se(pr,Br,fr)}}return pr},[Ln,on,Cr]),_r=Ue.useState(function(){var or=Or!=null?Or:dr;return oi.isInvalidate()&&["string","number"].includes((0,De.Z)(or))?Number.isNaN(or)?"":or:Mr(oi.toString(),!1)}),Jr=(0,xe.Z)(_r,2),ti=Jr[0],Yr=Jr[1];jn.current=ti;function si(or,ir){Yr(Mr(or.isInvalidate()?or.toString(!1):or.toString(!ir),ir))}var wi=Ue.useMemo(function(){return ur(tn)},[tn,Un]),Hr=Ue.useMemo(function(){return ur(Pt)},[Pt,Un]),gi=Ue.useMemo(function(){return!wi||!oi||oi.isInvalidate()?!1:wi.lessEquals(oi)},[wi,oi]),Ii=Ue.useMemo(function(){return!Hr||!oi||oi.isInvalidate()?!1:oi.lessEquals(Hr)},[Hr,oi]),Si=en(qi.current,Wi),Pe=(0,xe.Z)(Si,2),We=Pe[0],Ke=Pe[1],Ge=function(ir){return wi&&!ir.lessEquals(wi)?wi:Hr&&!Hr.lessEquals(ir)?Hr:null},st=function(ir){return!Ge(ir)},pt=function(ir,pr){var fr=ir,Br=st(fr)||fr.isEmpty();if(!fr.isEmpty()&&!pr&&(fr=Ge(fr)||fr,Br=!0),!xr&&!ar&&Br){var Re=fr.toString(),je=on(Re,pr);return je>=0&&(fr=Ce(Se(Re,".",je)),st(fr)||(fr=Ce(Se(Re,".",je,!0)))),fr.equals(oi)||(At(fr),un==null||un(fr.isEmpty()?null:bn(Cn,fr)),dr===void 0&&si(fr,pr)),fr}return oi},Tt=$n(),hn=function or(ir){if(We(),jn.current=ir,Yr(ir),!xi.current){var pr=Mn(ir),fr=Ce(pr);fr.isNaN()||pt(fr,!0)}ni==null||ni(ir),Tt(function(){var Br=ir;yn||(Br=ir.replace(/。/g,".")),Br!==ir&&or(Br)})},xn=function(){xi.current=!0},lr=function(){xi.current=!1,hn(qi.current.value)},Lr=function(ir){hn(ir.target.value)},tr=function(ir){var pr;if(!(ir&&gi||!ir&&Ii)){ai.current=!1;var fr=Ce(Zi.current?zt(Rn):Rn);ir||(fr=fr.negate());var Br=(oi||Ce(0)).add(fr.toString()),Re=pt(Br,!1);Hi==null||Hi(bn(Cn,Re),{offset:Zi.current?zt(Rn):Rn,type:ir?"up":"down"}),(pr=qi.current)===null||pr===void 0||pr.focus()}},Tn=function(ir){var pr=Ce(Mn(ti)),fr=pr;pr.isNaN()?fr=pt(oi,ir):fr=pt(pr,ir),dr!==void 0?si(oi,!1):fr.isNaN()||si(fr,!1)},kn=function(){ai.current=!0},Fn=function(ir){var pr=ir.key,fr=ir.shiftKey;ai.current=!0,Zi.current=fr,pr==="Enter"&&(xi.current||(ai.current=!1),Tn(!1),Qr==null||Qr(ir)),ht!==!1&&!xi.current&&["Up","ArrowUp","Down","ArrowDown"].includes(pr)&&(tr(pr==="Up"||pr==="ArrowUp"),ir.preventDefault())},Qn=function(){ai.current=!1,Zi.current=!1},Ar=function(){Tn(!1),Qi(!1),ai.current=!1};return Je(function(){oi.isInvalidate()||si(oi,!1)},[Un]),Je(function(){var or=Ce(dr);Ot(or);var ir=Ce(Mn(ti));(!or.equals(ir)||!ai.current||Ln)&&si(or,ai.current)},[dr]),Je(function(){Ln&&Ke()},[ti]),Ue.createElement("div",{className:qe()(_e,Vn==null?void 0:Vn.input,xt,(Ht={},(0,Le.Z)(Ht,"".concat(_e,"-focused"),Wi),(0,Le.Z)(Ht,"".concat(_e,"-disabled"),ar),(0,Le.Z)(Ht,"".concat(_e,"-readonly"),xr),(0,Le.Z)(Ht,"".concat(_e,"-not-a-number"),oi.isNaN()),(0,Le.Z)(Ht,"".concat(_e,"-out-of-range"),!oi.isInvalidate()&&!st(oi)),Ht)),style:Vt,onFocus:function(){Qi(!0)},onBlur:Ar,onKeyDown:Fn,onKeyUp:Qn,onCompositionStart:xn,onCompositionEnd:lr,onBeforeInput:kn},Sn&&Ue.createElement(Ft,{prefixCls:_e,upNode:Sr,downNode:bt,upDisabled:gi,downDisabled:Ii,onStep:tr}),Ue.createElement("div",{className:"".concat(vi,"-wrap")},Ue.createElement("input",(0,ve.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Pt,"aria-valuemax":tn,"aria-valuenow":oi.isInvalidate()?null:oi.toString(),step:Rn},ki,{ref:Pn(qi,mt),className:vi,value:ti,onChange:Lr,disabled:ar,readOnly:xr}))))}),lt=Ue.forwardRef(function(Ye,mt){var Ht=Ye.disabled,qt=Ye.style,_e=Ye.prefixCls,xt=Ye.value,Vt=Ye.prefix,Pt=Ye.suffix,tn=Ye.addonBefore,an=Ye.addonAfter,Rn=Ye.classes,Or=Ye.className,dr=Ye.classNames,ar=(0,me.Z)(Ye,_t),xr=Ue.useRef(null),Sr=function(ht){xr.current&&(0,Gt.nH)(xr.current,ht)};return Ue.createElement(Ve.BaseInput,{inputElement:Ue.createElement(Tr,(0,ve.Z)({prefixCls:_e,disabled:Ht,classNames:dr,ref:Pn(xr,mt)},ar)),className:Or,triggerFocus:Sr,prefixCls:_e,value:xt,disabled:Ht,style:qt,prefix:Vt,suffix:Pt,addonAfter:an,addonBefore:tn,classes:Rn,classNames:dr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});lt.displayName="InputNumber";var Jt=lt,Hn=Jt,er=se(9708),nr=se(53124),Er=se(46735),Pr=se(98866),Ir=se(98675),zr=se(65223),Wr=se(4173),gr=se(47673),Nr=se(14747),Bi=se(80110),Ai=se(67968),Fi=se(45503);const $r=(Ye,mt)=>{let{componentCls:Ht,borderRadiusSM:qt,borderRadiusLG:_e}=Ye;const xt=mt==="lg"?_e:qt;return{[`&-${mt}`]:{[`${Ht}-handler-wrap`]:{borderStartEndRadius:xt,borderEndEndRadius:xt},[`${Ht}-handler-up`]:{borderStartEndRadius:xt},[`${Ht}-handler-down`]:{borderEndEndRadius:xt}}}},Ct=Ye=>{const{componentCls:mt,lineWidth:Ht,lineType:qt,colorBorder:_e,borderRadius:xt,fontSizeLG:Vt,controlHeightLG:Pt,controlHeightSM:tn,colorError:an,paddingInlineSM:Rn,colorTextDescription:Or,motionDurationMid:dr,handleHoverColor:ar,paddingInline:xr,paddingBlock:Sr,handleBg:bt,handleActiveBg:ht,colorTextDisabled:Dt,borderRadiusSM:Sn,borderRadiusLG:Vn,controlWidth:Cn,handleVisible:yn,handleBorderColor:Ln}=Ye;return[{[mt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nr.Wf)(Ye)),(0,gr.ik)(Ye)),(0,gr.bi)(Ye,mt)),{display:"inline-block",width:Cn,margin:0,padding:0,border:`${Ht}px ${qt} ${_e}`,borderRadius:xt,"&-rtl":{direction:"rtl",[`${mt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Vt,borderRadius:Vn,[`input${mt}-input`]:{height:Pt-2*Ht}},"&-sm":{padding:0,borderRadius:Sn,[`input${mt}-input`]:{height:tn-2*Ht,padding:`0 ${Rn}px`}},"&:hover":Object.assign({},(0,gr.pU)(Ye)),"&-focused":Object.assign({},(0,gr.M1)(Ye)),"&-out-of-range":{[`${mt}-input-wrap`]:{input:{color:an}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Nr.Wf)(Ye)),(0,gr.s7)(Ye)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${mt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${mt}-group-addon`]:{borderRadius:Vn,fontSize:Ye.fontSizeLG}},"&-sm":{[`${mt}-group-addon`]:{borderRadius:Sn}},[`${mt}-wrapper-disabled > ${mt}-group-addon`]:Object.assign({},(0,gr.Xy)(Ye))}}),[`&-disabled ${mt}-input`]:{cursor:"not-allowed"},[mt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nr.Wf)(Ye)),{width:"100%",padding:`${Sr}px ${xr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:xt,outline:0,transition:`all ${dr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,gr.nz)(Ye.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[mt]:Object.assign(Object.assign(Object.assign({[`&:hover ${mt}-handler-wrap, &-focused ${mt}-handler-wrap`]:{opacity:1},[`${mt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ye.handleWidth,height:"100%",background:bt,borderStartStartRadius:0,borderStartEndRadius:xt,borderEndEndRadius:xt,borderEndStartRadius:0,opacity:yn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${dr} linear ${dr}`,[`${mt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Ye.handleFontSize}}},[`${mt}-handler`]:{height:"50%",overflow:"hidden",color:Or,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Ht}px ${qt} ${Ln}`,transition:`all ${dr} linear`,"&:active":{background:ht},"&:hover":{height:"60%",[` ${mt}-handler-up-inner, ${mt}-handler-down-inner `]:{color:ar}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Nr.Ro)()),{color:Or,transition:`all ${dr} linear`,userSelect:"none"})},[`${mt}-handler-up`]:{borderStartEndRadius:xt},[`${mt}-handler-down`]:{borderBlockStart:`${Ht}px ${qt} ${Ln}`,borderEndEndRadius:xt}},$r(Ye,"lg")),$r(Ye,"sm")),{"&-disabled, &-readonly":{[`${mt}-handler-wrap`]:{display:"none"},[`${mt}-input`]:{color:"inherit"}},[` ${mt}-handler-up-disabled, ${mt}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${mt}-handler-up-disabled:hover &-handler-up-inner, ${mt}-handler-down-disabled:hover &-handler-down-inner `]:{color:Dt}})},{[`${mt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${mt}-handler-down`]:{borderBlockStartWidth:0}}}]},dn=Ye=>{const{componentCls:mt,paddingBlock:Ht,paddingInline:qt,inputAffixPadding:_e,controlWidth:xt,borderRadiusLG:Vt,borderRadiusSM:Pt}=Ye;return{[`${mt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,gr.ik)(Ye)),(0,gr.bi)(Ye,`${mt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:xt,padding:0,paddingInlineStart:qt,"&-lg":{borderRadius:Vt},"&-sm":{borderRadius:Pt},[`&:not(${mt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,gr.pU)(Ye)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${mt}-disabled`]:{background:"transparent"},[`> div${mt}`]:{width:"100%",border:"none",outline:"none",[`&${mt}-focused`]:{boxShadow:"none !important"}},[`input${mt}-input`]:{padding:`${Ht}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${mt}-handler-wrap`]:{zIndex:2},[mt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:_e},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:qt,marginInlineStart:_e}}})}};var On=(0,Ai.Z)("InputNumber",Ye=>{const mt=(0,Fi.TS)(Ye,(0,gr.e5)(Ye));return[Ct(mt),dn(mt),(0,Bi.c)(mt)]},Ye=>Object.assign(Object.assign({},(0,gr.TM)(Ye)),{controlWidth:90,handleWidth:Ye.controlHeightSM-Ye.lineWidth*2,handleFontSize:Ye.fontSize/2,handleVisible:"auto",handleActiveBg:Ye.colorFillAlter,handleBg:Ye.colorBgContainer,handleHoverColor:Ye.colorPrimary,handleBorderColor:Ye.colorBorder})),Nn=function(Ye,mt){var Ht={};for(var qt in Ye)Object.prototype.hasOwnProperty.call(Ye,qt)&&mt.indexOf(qt)<0&&(Ht[qt]=Ye[qt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,qt=Object.getOwnPropertySymbols(Ye);_e{const{getPrefixCls:Ht,direction:qt}=Ue.useContext(nr.E_),_e=Ue.useRef(null);Ue.useImperativeHandle(mt,()=>_e.current);const{className:xt,rootClassName:Vt,size:Pt,disabled:tn,prefixCls:an,addonBefore:Rn,addonAfter:Or,prefix:dr,bordered:ar=!0,readOnly:xr,status:Sr,controls:bt}=Ye,ht=Nn(Ye,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Dt=Ht("input-number",an),[Sn,Vn]=On(Dt),{compactSize:Cn,compactItemClassnames:yn}=(0,Wr.ri)(Dt,qt);let Ln=Ue.createElement(He.Z,{className:`${Dt}-handler-up-inner`}),Un=Ue.createElement(oe.Z,{className:`${Dt}-handler-down-inner`});const Cr=typeof bt=="boolean"?bt:void 0;typeof bt=="object"&&(Ln=typeof bt.upIcon=="undefined"?Ln:Ue.createElement("span",{className:`${Dt}-handler-up-inner`},bt.upIcon),Un=typeof bt.downIcon=="undefined"?Un:Ue.createElement("span",{className:`${Dt}-handler-down-inner`},bt.downIcon));const{hasFeedback:un,status:ni,isFormItemInput:Qr,feedbackIcon:Hi}=Ue.useContext(zr.aM),ki=(0,er.F)(ni,Sr),vi=(0,Ir.Z)(ai=>{var xi;return(xi=Pt!=null?Pt:Cn)!==null&&xi!==void 0?xi:ai}),qi=Ue.useContext(Pr.Z),bi=tn!=null?tn:qi,di=qe()({[`${Dt}-lg`]:vi==="large",[`${Dt}-sm`]:vi==="small",[`${Dt}-rtl`]:qt==="rtl",[`${Dt}-borderless`]:!ar,[`${Dt}-in-form-item`]:Qr},(0,er.Z)(Dt,ki),yn,Vn),Wi=`${Dt}-group`,Qi=Ue.createElement(Hn,Object.assign({ref:_e,disabled:bi,className:qe()(xt,Vt),upHandler:Ln,downHandler:Un,prefixCls:Dt,readOnly:xr,controls:Cr,prefix:dr,suffix:un&&Hi,addonAfter:Or&&Ue.createElement(Wr.BR,null,Ue.createElement(zr.Ux,{override:!0,status:!0},Or)),addonBefore:Rn&&Ue.createElement(Wr.BR,null,Ue.createElement(zr.Ux,{override:!0,status:!0},Rn)),classNames:{input:di},classes:{affixWrapper:qe()((0,er.Z)(`${Dt}-affix-wrapper`,ki,un),{[`${Dt}-affix-wrapper-sm`]:vi==="small",[`${Dt}-affix-wrapper-lg`]:vi==="large",[`${Dt}-affix-wrapper-rtl`]:qt==="rtl",[`${Dt}-affix-wrapper-borderless`]:!ar},Vn),wrapper:qe()({[`${Wi}-rtl`]:qt==="rtl",[`${Dt}-wrapper-disabled`]:bi},Vn),group:qe()({[`${Dt}-group-wrapper-sm`]:vi==="small",[`${Dt}-group-wrapper-lg`]:vi==="large",[`${Dt}-group-wrapper-rtl`]:qt==="rtl"},(0,er.Z)(`${Dt}-group-wrapper`,ki,un),Vn)}},ht));return Sn(Qi)}),rr=Jn,wr=Ye=>Ue.createElement(Er.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ue.createElement(Jn,Object.assign({},Ye)));rr._InternalPanelDoNotUseOrYouWillBeFired=wr;var _n=rr},82586:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Yt},n:function(){return Ae}});var oe=se(16646),He=se(94184),Ne=se.n(He),qe=se(67656),ve=se(17799),Le=se(67294),De=se(9708),xe=se(53124),me=se(98866),Te=se(98675),rt=se(65223),Ie=se(4173),Et=se(72922),dt=se(47673);function ct(Qe){return!!(Qe.prefix||Qe.suffix||Qe.allowClear)}var $e=function(Qe,it){var Se={};for(var Ce in Qe)Object.prototype.hasOwnProperty.call(Qe,Ce)&&it.indexOf(Ce)<0&&(Se[Ce]=Qe[Ce]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ce=Object.getOwnPropertySymbols(Qe);Ve{var Se;const{prefixCls:Ce,bordered:Ve=!0,status:Ue,size:wt,disabled:gt,onBlur:Lt,onFocus:Je,suffix:Ut,allowClear:It,addonAfter:pn,addonBefore:$t,className:Pn,style:Kn,styles:Yn,rootClassName:Xe,onChange:we,classNames:Mt}=Qe,cn=$e(Qe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Kt,direction:tt,input:ut}=Le.useContext(xe.E_),Zt=Kt("input",Ce),Wn=(0,Le.useRef)(null),[wn,Qt]=(0,dt.ZP)(Zt),{compactSize:en,compactItemClassnames:Dn}=(0,Ie.ri)(Zt,tt),vn=(0,Te.Z)(mr=>{var _t;return(_t=wt!=null?wt:en)!==null&&_t!==void 0?_t:mr}),Be=Le.useContext(me.Z),fe=gt!=null?gt:Be,{status:ce,hasFeedback:he,feedbackIcon:de}=(0,Le.useContext)(rt.aM),le=(0,De.F)(ce,Ue),Ee=ct(Qe)||!!he,Ze=(0,Le.useRef)(Ee);(0,Le.useEffect)(()=>{var mr;Ee&&Ze.current,Ze.current=Ee},[Ee]);const vt=(0,Et.Z)(Wn,!0),Nt=mr=>{vt(),Lt==null||Lt(mr)},Ft=mr=>{vt(),Je==null||Je(mr)},zt=mr=>{vt(),we==null||we(mr)},Gt=(he||Ut)&&Le.createElement(Le.Fragment,null,Ut,he&&de);let $n;return typeof It=="object"&&(It!=null&&It.clearIcon)?$n=It:It&&($n={clearIcon:Le.createElement(oe.Z,null)}),wn(Le.createElement(qe.default,Object.assign({ref:(0,ve.sQ)(it,Wn),prefixCls:Zt,autoComplete:ut==null?void 0:ut.autoComplete},cn,{disabled:fe,onBlur:Nt,onFocus:Ft,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Kn),styles:Object.assign(Object.assign({},ut==null?void 0:ut.styles),Yn),suffix:Gt,allowClear:$n,className:Ne()(Pn,Xe,Dn,ut==null?void 0:ut.className),onChange:zt,addonAfter:pn&&Le.createElement(Ie.BR,null,Le.createElement(rt.Ux,{override:!0,status:!0},pn)),addonBefore:$t&&Le.createElement(Ie.BR,null,Le.createElement(rt.Ux,{override:!0,status:!0},$t)),classNames:Object.assign(Object.assign(Object.assign({},Mt),ut==null?void 0:ut.classNames),{input:Ne()({[`${Zt}-sm`]:vn==="small",[`${Zt}-lg`]:vn==="large",[`${Zt}-rtl`]:tt==="rtl",[`${Zt}-borderless`]:!Ve},!Ee&&(0,De.Z)(Zt,le),Mt==null?void 0:Mt.input,(Se=ut==null?void 0:ut.classNames)===null||Se===void 0?void 0:Se.input,Qt)}),classes:{affixWrapper:Ne()({[`${Zt}-affix-wrapper-sm`]:vn==="small",[`${Zt}-affix-wrapper-lg`]:vn==="large",[`${Zt}-affix-wrapper-rtl`]:tt==="rtl",[`${Zt}-affix-wrapper-borderless`]:!Ve},(0,De.Z)(`${Zt}-affix-wrapper`,le,he),Qt),wrapper:Ne()({[`${Zt}-group-rtl`]:tt==="rtl"},Qt),group:Ne()({[`${Zt}-group-wrapper-sm`]:vn==="small",[`${Zt}-group-wrapper-lg`]:vn==="large",[`${Zt}-group-wrapper-rtl`]:tt==="rtl",[`${Zt}-group-wrapper-disabled`]:fe},(0,De.Z)(`${Zt}-group-wrapper`,le,he),Qt)}})))})},96330:function(sn,nn,se){"use strict";var oe=se(16646),He=se(94184),Ne=se.n(He),qe=se(64701),ve=se(67294),Le=se(9708),De=se(53124),xe=se(98866),me=se(98675),Te=se(65223),rt=se(82586),Ie=se(47673),Et=function(ct,$e){var Ae={};for(var ft in ct)Object.prototype.hasOwnProperty.call(ct,ft)&&$e.indexOf(ft)<0&&(Ae[ft]=ct[ft]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,ft=Object.getOwnPropertySymbols(ct);Yt{const{prefixCls:Ae,bordered:ft=!0,size:Yt,disabled:Qe,status:it,allowClear:Se,showCount:Ce,classNames:Ve,rootClassName:Ue,className:wt}=ct,gt=Et(ct,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Lt,direction:Je}=ve.useContext(De.E_),Ut=(0,me.Z)(Yt),It=ve.useContext(xe.Z),pn=Qe!=null?Qe:It,{status:$t,hasFeedback:Pn,feedbackIcon:Kn}=ve.useContext(Te.aM),Yn=(0,Le.F)($t,it),Xe=ve.useRef(null);ve.useImperativeHandle($e,()=>{var tt;return{resizableTextArea:(tt=Xe.current)===null||tt===void 0?void 0:tt.resizableTextArea,focus:ut=>{var Zt,Wn;(0,rt.n)((Wn=(Zt=Xe.current)===null||Zt===void 0?void 0:Zt.resizableTextArea)===null||Wn===void 0?void 0:Wn.textArea,ut)},blur:()=>{var ut;return(ut=Xe.current)===null||ut===void 0?void 0:ut.blur()}}});const we=Lt("input",Ae);let Mt;typeof Se=="object"&&(Se!=null&&Se.clearIcon)?Mt=Se:Se&&(Mt={clearIcon:ve.createElement(oe.Z,null)});const[cn,Kt]=(0,Ie.ZP)(we);return cn(ve.createElement(qe.default,Object.assign({},gt,{disabled:pn,allowClear:Mt,className:Ne()(wt,Ue),classes:{affixWrapper:Ne()(`${we}-textarea-affix-wrapper`,{[`${we}-affix-wrapper-rtl`]:Je==="rtl",[`${we}-affix-wrapper-borderless`]:!ft,[`${we}-affix-wrapper-sm`]:Ut==="small",[`${we}-affix-wrapper-lg`]:Ut==="large",[`${we}-textarea-show-count`]:Ce},(0,Le.Z)(`${we}-affix-wrapper`,Yn),Kt)},classNames:Object.assign(Object.assign({},Ve),{textarea:Ne()({[`${we}-borderless`]:!ft,[`${we}-sm`]:Ut==="small",[`${we}-lg`]:Ut==="large"},(0,Le.Z)(we,Yn),Kt,Ve==null?void 0:Ve.textarea)}),prefixCls:we,suffix:Pn&&ve.createElement("span",{className:`${we}-textarea-suffix`},Kn),showCount:Ce,ref:Xe})))});nn.Z=dt},72922:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return He}});var oe=se(67294);function He(Ne,qe){const ve=(0,oe.useRef)([]),Le=()=>{ve.current.push(setTimeout(()=>{var De,xe,me,Te;!((De=Ne.current)===null||De===void 0)&&De.input&&((xe=Ne.current)===null||xe===void 0?void 0:xe.input.getAttribute("type"))==="password"&&(!((me=Ne.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((Te=Ne.current)===null||Te===void 0||Te.input.removeAttribute("value"))}))};return(0,oe.useEffect)(()=>(qe&&Le(),()=>ve.current.forEach(De=>{De&&clearTimeout(De)})),[]),Le}},69677:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return Ut}});var oe=se(94184),He=se.n(oe),Ne=se(67294),qe=se(53124),ve=se(65223),Le=se(47673),xe=It=>{const{getPrefixCls:pn,direction:$t}=(0,Ne.useContext)(qe.E_),{prefixCls:Pn,className:Kn}=It,Yn=pn("input-group",Pn),Xe=pn("input"),[we,Mt]=(0,Le.ZP)(Xe),cn=He()(Yn,{[`${Yn}-lg`]:It.size==="large",[`${Yn}-sm`]:It.size==="small",[`${Yn}-compact`]:It.compact,[`${Yn}-rtl`]:$t==="rtl"},Mt,Kn),Kt=(0,Ne.useContext)(ve.aM),tt=(0,Ne.useMemo)(()=>Object.assign(Object.assign({},Kt),{isFormItemInput:!1}),[Kt]);return we(Ne.createElement("span",{className:cn,style:It.style,onMouseEnter:It.onMouseEnter,onMouseLeave:It.onMouseLeave,onFocus:It.onFocus,onBlur:It.onBlur},Ne.createElement(ve.aM.Provider,{value:tt},It.children)))},me=se(82586),Te=se(63237),rt=se(99569),Ie=se(10366),Et=se(17799),dt=se(72922),ct=function(It,pn){var $t={};for(var Pn in It)Object.prototype.hasOwnProperty.call(It,Pn)&&pn.indexOf(Pn)<0&&($t[Pn]=It[Pn]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kn=0,Pn=Object.getOwnPropertySymbols(It);KnIt?Ne.createElement(rt.Z,null):Ne.createElement(Te.Z,null),Ae={click:"onClick",hover:"onMouseOver"};var Yt=Ne.forwardRef((It,pn)=>{const{visibilityToggle:$t=!0}=It,Pn=typeof $t=="object"&&$t.visible!==void 0,[Kn,Yn]=(0,Ne.useState)(()=>Pn?$t.visible:!1),Xe=(0,Ne.useRef)(null);Ne.useEffect(()=>{Pn&&Yn($t.visible)},[Pn,$t]);const we=(0,dt.Z)(Xe),Mt=()=>{const{disabled:fe}=It;fe||(Kn&&we(),Yn(ce=>{var he;const de=!ce;return typeof $t=="object"&&((he=$t.onVisibleChange)===null||he===void 0||he.call($t,de)),de}))},cn=fe=>{const{action:ce="click",iconRender:he=$e}=It,de=Ae[ce]||"",le=he(Kn),Ee={[de]:Mt,className:`${fe}-icon`,key:"passwordIcon",onMouseDown:Ze=>{Ze.preventDefault()},onMouseUp:Ze=>{Ze.preventDefault()}};return Ne.cloneElement(Ne.isValidElement(le)?le:Ne.createElement("span",null,le),Ee)},{className:Kt,prefixCls:tt,inputPrefixCls:ut,size:Zt}=It,Wn=ct(It,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:wn}=Ne.useContext(qe.E_),Qt=wn("input",ut),en=wn("input-password",tt),Dn=$t&&cn(en),vn=He()(en,Kt,{[`${en}-${Zt}`]:!!Zt}),Be=Object.assign(Object.assign({},(0,Ie.Z)(Wn,["suffix","iconRender","visibilityToggle"])),{type:Kn?"text":"password",className:vn,prefixCls:Qt,suffix:Dn});return Zt&&(Be.size=Zt),Ne.createElement(me.Z,Object.assign({ref:(0,Et.sQ)(pn,Xe)},Be))}),Qe=se(72395),it=se(96159),Se=se(71577),Ce=se(98675),Ve=se(4173),Ue=function(It,pn){var $t={};for(var Pn in It)Object.prototype.hasOwnProperty.call(It,Pn)&&pn.indexOf(Pn)<0&&($t[Pn]=It[Pn]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kn=0,Pn=Object.getOwnPropertySymbols(It);Kn{const{prefixCls:$t,inputPrefixCls:Pn,className:Kn,size:Yn,suffix:Xe,enterButton:we=!1,addonAfter:Mt,loading:cn,disabled:Kt,onSearch:tt,onChange:ut,onCompositionStart:Zt,onCompositionEnd:Wn}=It,wn=Ue(It,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Qt,direction:en}=Ne.useContext(qe.E_),Dn=Ne.useRef(!1),vn=Qt("input-search",$t),Be=Qt("input",Pn),{compactSize:fe}=(0,Ve.ri)(vn,en),ce=(0,Ce.Z)(bn=>{var ur;return(ur=Yn!=null?Yn:fe)!==null&&ur!==void 0?ur:bn}),he=Ne.useRef(null),de=bn=>{bn&&bn.target&&bn.type==="click"&&tt&&tt(bn.target.value,bn,{source:"clear"}),ut&&ut(bn)},le=bn=>{var ur;document.activeElement===((ur=he.current)===null||ur===void 0?void 0:ur.input)&&bn.preventDefault()},Ee=bn=>{var ur,Tr;tt&&tt((Tr=(ur=he.current)===null||ur===void 0?void 0:ur.input)===null||Tr===void 0?void 0:Tr.value,bn,{source:"input"})},Ze=bn=>{Dn.current||cn||Ee(bn)},vt=typeof we=="boolean"?Ne.createElement(Qe.Z,null):null,Nt=`${vn}-button`;let Ft;const zt=we||{},Gt=zt.type&&zt.type.__ANT_BUTTON===!0;Gt||zt.type==="button"?Ft=(0,it.Tm)(zt,Object.assign({onMouseDown:le,onClick:bn=>{var ur,Tr;(Tr=(ur=zt==null?void 0:zt.props)===null||ur===void 0?void 0:ur.onClick)===null||Tr===void 0||Tr.call(ur,bn),Ee(bn)},key:"enterButton"},Gt?{className:Nt,size:ce}:{})):Ft=Ne.createElement(Se.ZP,{className:Nt,type:we?"primary":void 0,size:ce,disabled:Kt,key:"enterButton",onMouseDown:le,onClick:Ee,loading:cn,icon:vt},we),Mt&&(Ft=[Ft,(0,it.Tm)(Mt,{key:"addonAfter"})]);const $n=He()(vn,{[`${vn}-rtl`]:en==="rtl",[`${vn}-${ce}`]:!!ce,[`${vn}-with-button`]:!!we},Kn),mr=bn=>{Dn.current=!0,Zt==null||Zt(bn)},_t=bn=>{Dn.current=!1,Wn==null||Wn(bn)};return Ne.createElement(me.Z,Object.assign({ref:(0,Et.sQ)(he,pn),onPressEnter:Ze},wn,{size:ce,onCompositionStart:mr,onCompositionEnd:_t,prefixCls:Be,addonAfter:Ft,suffix:Xe,onChange:de,className:$n,disabled:Kt}))}),Lt=se(96330);const Je=me.Z;Je.Group=xe,Je.Search=gt,Je.TextArea=Lt.Z,Je.Password=Yt;var Ut=Je},47673:function(sn,nn,se){"use strict";se.d(nn,{M1:function(){return De},TM:function(){return it},Xy:function(){return xe},bi:function(){return rt},e5:function(){return Qe},ik:function(){return Ie},nz:function(){return ve},pU:function(){return Le},s7:function(){return Et},x0:function(){return Te}});var oe=se(14747),He=se(80110),Ne=se(45503),qe=se(67968);const ve=Se=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Se,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Le=Se=>({borderColor:Se.hoverBorderColor}),De=Se=>({borderColor:Se.activeBorderColor,boxShadow:Se.activeShadow,outline:0}),xe=Se=>({color:Se.colorTextDisabled,backgroundColor:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Le((0,Ne.TS)(Se,{hoverBorderColor:Se.colorBorder})))}),me=Se=>{const{paddingBlockLG:Ce,fontSizeLG:Ve,lineHeightLG:Ue,borderRadiusLG:wt,paddingInlineLG:gt}=Se;return{padding:`${Ce}px ${gt}px`,fontSize:Ve,lineHeight:Ue,borderRadius:wt}},Te=Se=>({padding:`${Se.paddingBlockSM}px ${Se.paddingInlineSM}px`,borderRadius:Se.borderRadiusSM}),rt=(Se,Ce)=>{const{componentCls:Ve,colorError:Ue,colorWarning:wt,errorActiveShadow:gt,warningActiveShadow:Lt,colorErrorBorderHover:Je,colorWarningBorderHover:Ut}=Se;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:Ue,"&:hover":{borderColor:Je},"&:focus, &-focused":Object.assign({},De((0,Ne.TS)(Se,{activeBorderColor:Ue,activeShadow:gt}))),[`${Ve}-prefix, ${Ve}-suffix`]:{color:Ue}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:wt,"&:hover":{borderColor:Ut},"&:focus, &-focused":Object.assign({},De((0,Ne.TS)(Se,{activeBorderColor:wt,activeShadow:Lt}))),[`${Ve}-prefix, ${Ve}-suffix`]:{color:wt}}}},Ie=Se=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Se.paddingBlock}px ${Se.paddingInline}px`,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight,backgroundColor:Se.colorBgContainer,backgroundImage:"none",borderWidth:Se.lineWidth,borderStyle:Se.lineType,borderColor:Se.colorBorder,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationMid}`},ve(Se.colorTextPlaceholder)),{"&:hover":Object.assign({},Le(Se)),"&:focus, &-focused":Object.assign({},De(Se)),"&-disabled, &[disabled]":Object.assign({},xe(Se)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Se.controlHeight,lineHeight:Se.lineHeight,verticalAlign:"bottom",transition:`all ${Se.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(Se)),"&-sm":Object.assign({},Te(Se)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Et=Se=>{const{componentCls:Ce,antCls:Ve}=Se;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Se.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ce}, &-lg > ${Ce}-group-addon`]:Object.assign({},me(Se)),[`&-sm ${Ce}, &-sm > ${Ce}-group-addon`]:Object.assign({},Te(Se)),[`&-lg ${Ve}-select-single ${Ve}-select-selector`]:{height:Se.controlHeightLG},[`&-sm ${Ve}-select-single ${Ve}-select-selector`]:{height:Se.controlHeightSM},[`> ${Ce}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ce}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Se.paddingInline}px`,color:Se.colorText,fontWeight:"normal",fontSize:Se.fontSize,textAlign:"center",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationSlow}`,lineHeight:1,[`${Ve}-select`]:{margin:`-${Se.paddingBlock+1}px -${Se.paddingInline}px`,[`&${Ve}-select-single:not(${Ve}-select-customize-input)`]:{[`${Ve}-select-selector`]:{backgroundColor:"inherit",border:`${Se.lineWidth}px ${Se.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ve}-select-selector`]:{color:Se.colorPrimary}}},[`${Ve}-cascader-picker`]:{margin:`-9px -${Se.paddingInline}px`,backgroundColor:"transparent",[`${Ve}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ce}-search-with-button &`]:{zIndex:0}}},[`> ${Ce}:first-child, ${Ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ve}-select ${Ve}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}-affix-wrapper`]:{[`&:not(:first-child) ${Ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}:last-child, ${Ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ve}-select ${Ve}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ce}-search &`]:{borderStartStartRadius:Se.borderRadius,borderEndStartRadius:Se.borderRadius}},[`&:not(:first-child), ${Ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,oe.dF)()),{[`${Ce}-group-addon, ${Ce}-group-wrap, > ${Ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Se.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${Ce}-affix-wrapper, & > ${Ce}-number-affix-wrapper, & > ${Ve}-picker-range `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Se.lineWidth,borderInlineEndWidth:Se.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${Ve}-select > ${Ve}-select-selector, & > ${Ve}-select-auto-complete ${Ce}, & > ${Ve}-cascader-picker ${Ce}, & > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:Se.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ve}-select-focused`]:{zIndex:1},[`& > ${Ve}-select > ${Ve}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${Ve}-select:first-child > ${Ve}-select-selector, & > ${Ve}-select-auto-complete:first-child ${Ce}, & > ${Ve}-cascader-picker:first-child ${Ce}`]:{borderStartStartRadius:Se.borderRadius,borderEndStartRadius:Se.borderRadius},[`& > *:last-child, & > ${Ve}-select:last-child > ${Ve}-select-selector, & > ${Ve}-cascader-picker:last-child ${Ce}, & > ${Ve}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:Se.lineWidth,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius},[`& > ${Ve}-select-auto-complete ${Ce}`]:{verticalAlign:"top"},[`${Ce}-group-wrapper + ${Ce}-group-wrapper`]:{marginInlineStart:-Se.lineWidth,[`${Ce}-affix-wrapper`]:{borderRadius:0}},[`${Ce}-group-wrapper:not(:last-child)`]:{[`&${Ce}-search > ${Ce}-group`]:{[`& > ${Ce}-group-addon > ${Ce}-search-button`]:{borderRadius:0},[`& > ${Ce}`]:{borderStartStartRadius:Se.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se.borderRadius}}}})}},dt=Se=>{const{componentCls:Ce,controlHeightSM:Ve,lineWidth:Ue}=Se,gt=(Ve-Ue*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Se)),Ie(Se)),rt(Se,Ce)),{'&[type="color"]':{height:Se.controlHeight,[`&${Ce}-lg`]:{height:Se.controlHeightLG},[`&${Ce}-sm`]:{height:Ve,paddingTop:gt,paddingBottom:gt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ct=Se=>{const{componentCls:Ce}=Se;return{[`${Ce}-clear-icon`]:{margin:0,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Se.motionDurationSlow}`,"&:hover":{color:Se.colorTextTertiary},"&:active":{color:Se.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Se.inputAffixPadding}px`}}}},$e=Se=>{const{componentCls:Ce,inputAffixPadding:Ve,colorTextDescription:Ue,motionDurationSlow:wt,colorIcon:gt,colorIconHover:Lt,iconCls:Je}=Se;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ie(Se)),{display:"inline-flex",[`&:not(${Ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Le(Se)),{zIndex:1,[`${Ce}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ce}[disabled]`]:{background:"transparent"}},[`> input${Ce}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ce}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Se.paddingXS}},"&-show-count-suffix":{color:Ue},"&-show-count-has-suffix":{marginInlineEnd:Se.paddingXXS},"&-prefix":{marginInlineEnd:Ve},"&-suffix":{marginInlineStart:Ve}}}),ct(Se)),{[`${Je}${Ce}-password-icon`]:{color:gt,cursor:"pointer",transition:`all ${wt}`,"&:hover":{color:Lt}}}),rt(Se,`${Ce}-affix-wrapper`))}},Ae=Se=>{const{componentCls:Ce,colorError:Ve,colorWarning:Ue,borderRadiusLG:wt,borderRadiusSM:gt}=Se;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Se)),Et(Se)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ce}-group-addon`]:{borderRadius:wt,fontSize:Se.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:gt}},"&-status-error":{[`${Ce}-group-addon`]:{color:Ve,borderColor:Ve}},"&-status-warning":{[`${Ce}-group-addon`]:{color:Ue,borderColor:Ue}},"&-disabled":{[`${Ce}-group-addon`]:Object.assign({},xe(Se))},[`&:not(${Ce}-compact-first-item):not(${Ce}-compact-last-item)${Ce}-compact-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderRadius:0}},[`&:not(${Ce}-compact-last-item)${Ce}-compact-first-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ce}-compact-first-item)${Ce}-compact-last-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},ft=Se=>{const{componentCls:Ce,antCls:Ve}=Se,Ue=`${Ce}-search`;return{[Ue]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:Se.colorPrimaryHover,[`+ ${Ce}-group-addon ${Ue}-button:not(${Ve}-btn-primary)`]:{borderInlineStartColor:Se.colorPrimaryHover}}},[`${Ce}-affix-wrapper`]:{borderRadius:0},[`${Ce}-lg`]:{lineHeight:Se.lineHeightLG-2e-4},[`> ${Ce}-group`]:{[`> ${Ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ue}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Se.borderRadius,borderEndEndRadius:Se.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ue}-button:not(${Ve}-btn-primary)`]:{color:Se.colorTextDescription,"&:hover":{color:Se.colorPrimaryHover},"&:active":{color:Se.colorPrimaryActive},[`&${Ve}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ue}-button`]:{height:Se.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ue}-button`]:{height:Se.controlHeightLG},[`&-small ${Ue}-button`]:{height:Se.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ce}-compact-item`]:{[`&:not(${Ce}-compact-last-item)`]:{[`${Ce}-group-addon`]:{[`${Ce}-search-button`]:{marginInlineEnd:-Se.lineWidth,borderRadius:0}}},[`&:not(${Ce}-compact-first-item)`]:{[`${Ce},${Ce}-affix-wrapper`]:{borderRadius:0}},[`> ${Ce}-group-addon ${Ce}-search-button, > ${Ce}, ${Ce}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ce}-affix-wrapper-focused`]:{zIndex:2}}}}},Yt=Se=>{const{componentCls:Ce,paddingLG:Ve}=Se,Ue=`${Ce}-textarea`;return{[Ue]:{position:"relative","&-show-count":{[`> ${Ce}`]:{height:"100%"},[`${Ce}-data-count`]:{position:"absolute",bottom:-Se.fontSize*Se.lineHeight,insetInlineEnd:0,color:Se.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ce}`]:{paddingInlineEnd:Ve}},[`&-affix-wrapper${Ue}-has-feedback`]:{[`${Ce}`]:{paddingInlineEnd:Ve}},[`&-affix-wrapper${Ce}-affix-wrapper`]:{padding:0,[`> textarea${Ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ce}-clear-icon`]:{position:"absolute",insetInlineEnd:Se.paddingXS,insetBlockStart:Se.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Se.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function Qe(Se){return(0,Ne.TS)(Se,{inputAffixPadding:Se.paddingXXS})}const it=Se=>{const{controlHeight:Ce,fontSize:Ve,lineHeight:Ue,lineWidth:wt,controlHeightSM:gt,controlHeightLG:Lt,fontSizeLG:Je,lineHeightLG:Ut,paddingSM:It,controlPaddingHorizontalSM:pn,controlPaddingHorizontal:$t,colorFillAlter:Pn,colorPrimaryHover:Kn,controlOutlineWidth:Yn,controlOutline:Xe,colorErrorOutline:we,colorWarningOutline:Mt}=Se;return{paddingBlock:Math.max(Math.round((Ce-Ve*Ue)/2*10)/10-wt,3),paddingBlockSM:Math.max(Math.round((gt-Ve*Ue)/2*10)/10-wt,0),paddingBlockLG:Math.ceil((Lt-Je*Ut)/2*10)/10-wt,paddingInline:It-wt,paddingInlineSM:pn-wt,paddingInlineLG:$t-wt,addonBg:Pn,activeBorderColor:Kn,hoverBorderColor:Kn,activeShadow:`0 0 0 ${Yn}px ${Xe}`,errorActiveShadow:`0 0 0 ${Yn}px ${we}`,warningActiveShadow:`0 0 0 ${Yn}px ${Mt}`}};nn.ZP=(0,qe.Z)("Input",Se=>{const Ce=(0,Ne.TS)(Se,Qe(Se));return[dt(Ce),Yt(Ce),$e(Ce),Ae(Ce),ft(Ce),(0,He.c)(Ce)]},it)},71322:function(sn,nn,se){"use strict";se.d(nn,{D:function(){return Yt},Z:function(){return Se}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(Ve,Ue){return He.createElement(ve.Z,(0,oe.Z)({},Ve,{ref:Ue,icon:qe}))},De=He.forwardRef(Le),xe=se(22751),me=se(91034),Te=se(94184),rt=se.n(Te),Ie=se(10366),dt=Ce=>!isNaN(parseFloat(Ce))&&isFinite(Ce),ct=se(53124),$e=se(84321),Ae=function(Ce,Ve){var Ue={};for(var wt in Ce)Object.prototype.hasOwnProperty.call(Ce,wt)&&Ve.indexOf(wt)<0&&(Ue[wt]=Ce[wt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,wt=Object.getOwnPropertySymbols(Ce);gt{let Ce=0;return function(){let Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ce+=1,`${Ve}${Ce}`}})();var Se=He.forwardRef((Ce,Ve)=>{const{prefixCls:Ue,className:wt,trigger:gt,children:Lt,defaultCollapsed:Je=!1,theme:Ut="dark",style:It={},collapsible:pn=!1,reverseArrow:$t=!1,width:Pn=200,collapsedWidth:Kn=80,zeroWidthTriggerStyle:Yn,breakpoint:Xe,onCollapse:we,onBreakpoint:Mt}=Ce,cn=Ae(Ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Kt}=(0,He.useContext)($e.Gs),[tt,ut]=(0,He.useState)("collapsed"in Ce?Ce.collapsed:Je),[Zt,Wn]=(0,He.useState)(!1);(0,He.useEffect)(()=>{"collapsed"in Ce&&ut(Ce.collapsed)},[Ce.collapsed]);const wn=(fe,ce)=>{"collapsed"in Ce||ut(fe),we==null||we(fe,ce)},Qt=(0,He.useRef)();Qt.current=fe=>{Wn(fe.matches),Mt==null||Mt(fe.matches),tt!==fe.matches&&wn(fe.matches,"responsive")},(0,He.useEffect)(()=>{function fe(he){return Qt.current(he)}let ce;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&Xe&&Xe in ft){ce=he(`(max-width: ${ft[Xe]})`);try{ce.addEventListener("change",fe)}catch(de){ce.addListener(fe)}fe(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",fe)}catch(he){ce==null||ce.removeListener(fe)}}},[Xe]),(0,He.useEffect)(()=>{const fe=Qe("ant-sider-");return Kt.addSider(fe),()=>Kt.removeSider(fe)},[]);const en=()=>{wn(!tt,"clickTrigger")},{getPrefixCls:Dn}=(0,He.useContext)(ct.E_),vn=()=>{const fe=Dn("layout-sider",Ue),ce=(0,Ie.Z)(cn,["collapsed"]),he=tt?Kn:Pn,de=dt(he)?`${he}px`:String(he),le=parseFloat(String(Kn||0))===0?He.createElement("span",{onClick:en,className:rt()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${$t?"right":"left"}`),style:Yn},gt||He.createElement(De,null)):null,vt={expanded:$t?He.createElement(me.Z,null):He.createElement(xe.Z,null),collapsed:$t?He.createElement(xe.Z,null):He.createElement(me.Z,null)}[tt?"collapsed":"expanded"],Nt=gt!==null?le||He.createElement("div",{className:`${fe}-trigger`,onClick:en,style:{width:de}},gt||vt):null,Ft=Object.assign(Object.assign({},It),{flex:`0 0 ${de}`,maxWidth:de,minWidth:de,width:de}),zt=rt()(fe,`${fe}-${Ut}`,{[`${fe}-collapsed`]:!!tt,[`${fe}-has-trigger`]:pn&>!==null&&!le,[`${fe}-below`]:!!Zt,[`${fe}-zero-width`]:parseFloat(de)===0},wt);return He.createElement("aside",Object.assign({className:zt},ce,{style:Ft,ref:Ve}),He.createElement("div",{className:`${fe}-children`},Lt),pn||Zt&&le?Nt:null)},Be=He.useMemo(()=>({siderCollapsed:tt}),[tt]);return He.createElement(Yt.Provider,{value:Be},vn())})},84321:function(sn,nn,se){"use strict";se.d(nn,{VY:function(){return Qe},$_:function(){return Yt},h4:function(){return ft},Gs:function(){return Et},ZP:function(){return it}});var oe=se(74902),He=se(94184),Ne=se.n(He),qe=se(10366),ve=se(67294),Le=se(53124),De=se(67968),me=Se=>{const{componentCls:Ce,bodyBg:Ve,lightSiderBg:Ue,lightTriggerBg:wt,lightTriggerColor:gt}=Se;return{[`${Ce}-sider-light`]:{background:Ue,[`${Ce}-sider-trigger`]:{color:gt,background:wt},[`${Ce}-sider-zero-width-trigger`]:{color:gt,background:wt,border:`1px solid ${Ve}`,borderInlineStart:0}}}};const Te=Se=>{const{antCls:Ce,componentCls:Ve,colorText:Ue,triggerColor:wt,footerBg:gt,triggerBg:Lt,headerHeight:Je,headerPadding:Ut,headerColor:It,footerPadding:pn,triggerHeight:$t,zeroTriggerHeight:Pn,zeroTriggerWidth:Kn,motionDurationMid:Yn,motionDurationSlow:Xe,fontSize:we,borderRadius:Mt,bodyBg:cn,headerBg:Kt,siderBg:tt}=Se;return{[Ve]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:cn,"&, *":{boxSizing:"border-box"},[`&${Ve}-has-sider`]:{flexDirection:"row",[`> ${Ve}, > ${Ve}-content`]:{width:0}},[`${Ve}-header, &${Ve}-footer`]:{flex:"0 0 auto"},[`${Ve}-sider`]:{position:"relative",minWidth:0,background:tt,transition:`all ${Yn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:$t},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:$t,color:wt,lineHeight:`${$t}px`,textAlign:"center",background:Lt,cursor:"pointer",transition:`all ${Yn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Je,insetInlineEnd:-Kn,zIndex:1,width:Kn,height:Pn,color:wt,fontSize:Se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:tt,borderStartStartRadius:0,borderStartEndRadius:Mt,borderEndEndRadius:Mt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Xe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Xe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Kn,borderStartStartRadius:Mt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Mt}}}}},me(Se)),{"&-rtl":{direction:"rtl"}}),[`${Ve}-header`]:{height:Je,padding:Ut,color:It,lineHeight:`${Je}px`,background:Kt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Ve}-footer`]:{padding:pn,color:Ue,fontSize:we,background:gt},[`${Ve}-content`]:{flex:"auto",minHeight:0}}};var rt=(0,De.Z)("Layout",Se=>[Te(Se)],Se=>{const{colorBgLayout:Ce,controlHeight:Ve,controlHeightLG:Ue,colorText:wt,controlHeightSM:gt,marginXXS:Lt,colorTextLightSolid:Je,colorBgContainer:Ut}=Se,It=Ue*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Ve*2,headerPadding:`0 ${It}px`,headerColor:wt,footerPadding:`${gt}px ${It}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:Ue+Lt*2,triggerBg:"#002140",triggerColor:Je,zeroTriggerWidth:Ue,zeroTriggerHeight:Ue,lightSiderBg:Ut,lightTriggerBg:Ut,lightTriggerColor:wt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(Se,Ce){var Ve={};for(var Ue in Se)Object.prototype.hasOwnProperty.call(Se,Ue)&&Ce.indexOf(Ue)<0&&(Ve[Ue]=Se[Ue]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Ue=Object.getOwnPropertySymbols(Se);wtnull,removeSider:()=>null}});function dt(Se){let{suffixCls:Ce,tagName:Ve,displayName:Ue}=Se;return wt=>ve.forwardRef((Lt,Je)=>ve.createElement(wt,Object.assign({ref:Je,suffixCls:Ce,tagName:Ve},Lt)))}const ct=ve.forwardRef((Se,Ce)=>{const{prefixCls:Ve,suffixCls:Ue,className:wt,tagName:gt}=Se,Lt=Ie(Se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Je}=ve.useContext(Le.E_),Ut=Je("layout",Ve),[It,pn]=rt(Ut),$t=Ue?`${Ut}-${Ue}`:Ut;return It(ve.createElement(gt,Object.assign({className:Ne()(Ve||$t,wt,pn),ref:Ce},Lt)))}),$e=ve.forwardRef((Se,Ce)=>{const{direction:Ve}=ve.useContext(Le.E_),[Ue,wt]=ve.useState([]),{prefixCls:gt,className:Lt,rootClassName:Je,children:Ut,hasSider:It,tagName:pn,style:$t}=Se,Pn=Ie(Se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Kn=(0,qe.Z)(Pn,["suffixCls"]),{getPrefixCls:Yn,layout:Xe}=ve.useContext(Le.E_),we=Yn("layout",gt),[Mt,cn]=rt(we),Kt=Ne()(we,{[`${we}-has-sider`]:typeof It=="boolean"?It:Ue.length>0,[`${we}-rtl`]:Ve==="rtl"},Xe==null?void 0:Xe.className,Lt,Je,cn),tt=ve.useMemo(()=>({siderHook:{addSider:ut=>{wt(Zt=>[].concat((0,oe.Z)(Zt),[ut]))},removeSider:ut=>{wt(Zt=>Zt.filter(Wn=>Wn!==ut))}}}),[]);return Mt(ve.createElement(Et.Provider,{value:tt},ve.createElement(pn,Object.assign({ref:Ce,className:Kt,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),$t)},Kn),Ut)))}),Ae=dt({tagName:"div",displayName:"Layout"})($e),ft=dt({suffixCls:"header",tagName:"header",displayName:"Header"})(ct),Yt=dt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ct),Qe=dt({suffixCls:"content",tagName:"main",displayName:"Content"})(ct);var it=Ae},76529:function(sn,nn,se){"use strict";se.d(nn,{J:function(){return Le}});var oe=se(67294),He=se(4173),Ne=se(60276),qe=function(De,xe){var me={};for(var Te in De)Object.prototype.hasOwnProperty.call(De,Te)&&xe.indexOf(Te)<0&&(me[Te]=De[Te]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Te=Object.getOwnPropertySymbols(De);rt{const{children:me}=De,Te=qe(De,["children"]),rt=oe.useContext(ve),Ie=oe.useMemo(()=>Object.assign(Object.assign({},rt),Te),[rt,Te.prefixCls,Te.mode,Te.selectable]);return oe.createElement(ve.Provider,{value:Ie},oe.createElement(He.BR,null,(0,Ne.supportNodeRef)(me)?oe.cloneElement(me,{ref:xe}):me))});nn.Z=ve},68508:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return fe}});var oe=se(78595),He=se(67294),Ne=se(71322),qe=se(94184),ve=se.n(qe),Le=se(53124),De=function(ce,he){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(ce);Ee{const{prefixCls:he,className:de,dashed:le}=ce,Ee=De(ce,["prefixCls","className","dashed"]),{getPrefixCls:Ze}=He.useContext(Le.E_),vt=Ze("menu",he),Nt=ve()({[`${vt}-item-divider-dashed`]:!!le},de);return He.createElement(oe.iz,Object.assign({className:Nt},Ee))},Te=se(37419),rt=se(10366),Ie=se(83062),Et=se(96159),ct=(0,He.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ae=ce=>{var he;const{className:de,children:le,icon:Ee,title:Ze,danger:vt}=ce,{prefixCls:Nt,firstLevel:Ft,direction:zt,disableMenuItemTitleTooltip:Gt,inlineCollapsed:$n}=He.useContext(ct),mr=Jt=>{const Hn=He.createElement("span",{className:`${Nt}-title-content`},le);return(!Ee||(0,Et.l$)(le)&&le.type==="span")&&le&&Jt&&Ft&&typeof le=="string"?He.createElement("div",{className:`${Nt}-inline-collapsed-noicon`},le.charAt(0)):Hn},{siderCollapsed:_t}=He.useContext(Ne.D);let bn=Ze;typeof Ze=="undefined"?bn=Ft?le:"":Ze===!1&&(bn="");const ur={title:bn};!_t&&!$n&&(ur.title=null,ur.open=!1);const Tr=(0,Te.Z)(le).length;let lt=He.createElement(oe.ck,Object.assign({},(0,rt.Z)(ce,["title","icon","danger"]),{className:ve()({[`${Nt}-item-danger`]:vt,[`${Nt}-item-only-child`]:(Ee?Tr+1:Tr)===1},de),title:typeof Ze=="string"?Ze:void 0}),(0,Et.Tm)(Ee,{className:ve()((0,Et.l$)(Ee)?(he=Ee.props)===null||he===void 0?void 0:he.className:"",`${Nt}-item-icon`)}),mr($n));return Gt||(lt=He.createElement(Ie.Z,Object.assign({},ur,{placement:zt==="rtl"?"left":"right",overlayClassName:`${Nt}-inline-collapsed-tooltip`}),lt)),lt},Yt=ce=>{var he;const{popupClassName:de,icon:le,title:Ee,theme:Ze}=ce,vt=He.useContext(ct),{prefixCls:Nt,inlineCollapsed:Ft,theme:zt}=vt,Gt=(0,oe.Xl)();let $n;if(!le)$n=Ft&&!Gt.length&&Ee&&typeof Ee=="string"?He.createElement("div",{className:`${Nt}-inline-collapsed-noicon`},Ee.charAt(0)):He.createElement("span",{className:`${Nt}-title-content`},Ee);else{const _t=(0,Et.l$)(Ee)&&Ee.type==="span";$n=He.createElement(He.Fragment,null,(0,Et.Tm)(le,{className:ve()((0,Et.l$)(le)?(he=le.props)===null||he===void 0?void 0:he.className:"",`${Nt}-item-icon`)}),_t?Ee:He.createElement("span",{className:`${Nt}-title-content`},Ee))}const mr=He.useMemo(()=>Object.assign(Object.assign({},vt),{firstLevel:!1}),[vt]);return He.createElement(ct.Provider,{value:mr},He.createElement(oe.Wd,Object.assign({},(0,rt.Z)(ce,["icon"]),{title:$n,popupClassName:ve()(Nt,de,`${Nt}-${Ze||zt}`)})))},Qe=se(25877),it=se(60276),Se=se(33603),Ce=se(76529),Ve=function(ce,he){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(ce);Ee{if(he&&typeof he=="object"){const le=he,{label:Ee,children:Ze,key:vt,type:Nt}=le,Ft=Ve(le,["label","children","key","type"]),zt=vt!=null?vt:`tmp-${de}`;return Ze||Nt==="group"?Nt==="group"?He.createElement(oe.BW,Object.assign({key:zt},Ft,{title:Ee}),Ue(Ze)):He.createElement(Yt,Object.assign({key:zt},Ft,{title:Ee}),Ue(Ze)):Nt==="divider"?He.createElement(me,Object.assign({key:zt},Ft)):He.createElement(Ae,Object.assign({key:zt},Ft),Ee)}return null}).filter(he=>he)}function wt(ce){return He.useMemo(()=>ce&&Ue(ce),[ce])}var gt=se(84780),Lt=se(14747),Je=se(33507),Ut=se(67771),It=se(50438),pn=se(67968),$t=se(45503),Kn=ce=>{const{componentCls:he,motionDurationSlow:de,horizontalLineHeight:le,colorSplit:Ee,lineWidth:Ze,lineType:vt,itemPaddingInline:Nt}=ce;return{[`${he}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${Ze}px ${vt} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Nt},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${de}`,`background ${de}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Xe=ce=>{let{componentCls:he,menuArrowOffset:de}=ce;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${de})`},"&::after":{transform:`rotate(45deg) translateY(${de})`}}}}};const we=ce=>Object.assign({},(0,Lt.oN)(ce));var cn=(ce,he)=>{const{componentCls:de,itemColor:le,itemSelectedColor:Ee,groupTitleColor:Ze,itemBg:vt,subMenuItemBg:Nt,itemSelectedBg:Ft,activeBarHeight:zt,activeBarWidth:Gt,activeBarBorderWidth:$n,motionDurationSlow:mr,motionEaseInOut:_t,motionEaseOut:bn,itemPaddingInline:ur,motionDurationMid:Tr,itemHoverColor:lt,lineType:Jt,colorSplit:Hn,itemDisabledColor:er,dangerItemColor:nr,dangerItemHoverColor:Er,dangerItemSelectedColor:Pr,dangerItemActiveBg:Ir,dangerItemSelectedBg:zr,itemHoverBg:Wr,itemActiveBg:gr,menuSubMenuBg:Nr,horizontalItemSelectedColor:Bi,horizontalItemSelectedBg:Ai,horizontalItemBorderRadius:Fi,horizontalItemHoverBg:$r,popupBg:Ct}=ce;return{[`${de}-${he}, ${de}-${he} > ${de}`]:{color:le,background:vt,[`&${de}-root:focus-visible`]:Object.assign({},we(ce)),[`${de}-item-group-title`]:{color:Ze},[`${de}-submenu-selected`]:{[`> ${de}-submenu-title`]:{color:Ee}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{color:`${er} !important`},[`${de}-item:not(${de}-item-selected):not(${de}-submenu-selected)`]:{[`&:hover, > ${de}-submenu-title:hover`]:{color:lt}},[`&:not(${de}-horizontal)`]:{[`${de}-item:not(${de}-item-selected)`]:{"&:hover":{backgroundColor:Wr},"&:active":{backgroundColor:gr}},[`${de}-submenu-title`]:{"&:hover":{backgroundColor:Wr},"&:active":{backgroundColor:gr}}},[`${de}-item-danger`]:{color:nr,[`&${de}-item:hover`]:{[`&:not(${de}-item-selected):not(${de}-submenu-selected)`]:{color:Er}},[`&${de}-item:active`]:{background:Ir}},[`${de}-item a`]:{"&, &:hover":{color:"inherit"}},[`${de}-item-selected`]:{color:Ee,[`&${de}-item-danger`]:{color:Pr},"a, a:hover":{color:"inherit"}},[`& ${de}-item-selected`]:{backgroundColor:Ft,[`&${de}-item-danger`]:{backgroundColor:zr}},[`${de}-item, ${de}-submenu-title`]:{[`&:not(${de}-item-disabled):focus-visible`]:Object.assign({},we(ce))},[`&${de}-submenu > ${de}`]:{backgroundColor:Nr},[`&${de}-popup > ${de}`]:{backgroundColor:Ct},[`&${de}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${de}-item, > ${de}-submenu`]:{top:$n,marginTop:-$n,marginBottom:0,borderRadius:Fi,"&::after":{position:"absolute",insetInline:ur,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${mr} ${_t}`,content:'""'},"&:hover, &-active, &-open":{background:$r,"&::after":{borderBottomWidth:zt,borderBottomColor:Bi}},"&-selected":{color:Bi,backgroundColor:Ai,"&:hover":{backgroundColor:Ai},"&::after":{borderBottomWidth:zt,borderBottomColor:Bi}}}}),[`&${de}-root`]:{[`&${de}-inline, &${de}-vertical`]:{borderInlineEnd:`${$n}px ${Jt} ${Hn}`}},[`&${de}-inline`]:{[`${de}-sub${de}-inline`]:{background:Nt},[`${de}-item, ${de}-submenu-title`]:$n&&Gt?{width:`calc(100% + ${$n}px)`}:{},[`${de}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Gt}px solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Tr} ${bn}`,`opacity ${Tr} ${bn}`].join(","),content:'""'},[`&${de}-item-danger`]:{"&::after":{borderInlineEndColor:Pr}}},[`${de}-selected, ${de}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Tr} ${_t}`,`opacity ${Tr} ${_t}`].join(",")}}}}}};const Kt=ce=>{const{componentCls:he,itemHeight:de,itemMarginInline:le,padding:Ee,menuArrowSize:Ze,marginXS:vt,itemMarginBlock:Nt}=ce,Ft=Ee+Ze+vt;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:de,lineHeight:`${de}px`,paddingInline:Ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:Nt,width:`calc(100% - ${le*2}px)`},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:de,lineHeight:`${de}px`},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Ft}}};var ut=ce=>{const{componentCls:he,iconCls:de,itemHeight:le,colorTextLightSolid:Ee,dropdownWidth:Ze,controlHeightLG:vt,motionDurationMid:Nt,motionEaseOut:Ft,paddingXL:zt,itemMarginInline:Gt,fontSizeLG:$n,motionDurationSlow:mr,paddingXS:_t,boxShadowSecondary:bn,collapsedWidth:ur,collapsedIconSize:Tr}=ce,lt={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},Kt(ce))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},Kt(ce)),{boxShadow:bn})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ze,maxHeight:`calc(100vh - ${vt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mr}`,`background ${mr}`,`padding ${Nt} ${Ft}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:lt,[`& ${he}-item-group-title`]:{paddingInlineStart:zt}},[`${he}-item`]:lt}},{[`${he}-inline-collapsed`]:{width:ur,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:$n,textAlign:"center"}}},[`> ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title, > ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${$n/2}px - ${Gt}px)`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${de}`]:{margin:0,fontSize:Tr,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${de}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${de}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Lt.vS),{paddingInline:_t})}}]};const Zt=ce=>{const{componentCls:he,motionDurationSlow:de,motionDurationMid:le,motionEaseInOut:Ee,motionEaseOut:Ze,iconCls:vt,iconSize:Nt,iconMarginInlineEnd:Ft}=ce;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${de}`,`background ${de}`,`padding ${de} ${Ee}`].join(","),[`${he}-item-icon, ${vt}`]:{minWidth:Nt,fontSize:Nt,transition:[`font-size ${le} ${Ze}`,`margin ${de} ${Ee}`,`color ${de}`].join(","),"+ span":{marginInlineStart:Ft,opacity:1,transition:[`opacity ${de} ${Ee}`,`margin ${de}`,`color ${de}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Lt.Ro)()),[`&${he}-item-only-child`]:{[`> ${vt}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Wn=ce=>{const{componentCls:he,motionDurationSlow:de,motionEaseInOut:le,borderRadius:Ee,menuArrowSize:Ze,menuArrowOffset:vt}=ce;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:Ze,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${de} ${le}, opacity ${de}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ze*.6,height:Ze*.15,backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${de} ${le}`,`transform ${de} ${le}`,`top ${de} ${le}`,`color ${de} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${vt})`},"&::after":{transform:`rotate(-45deg) translateY(${vt})`}}}}},wn=ce=>{const{antCls:he,componentCls:de,fontSize:le,motionDurationSlow:Ee,motionDurationMid:Ze,motionEaseInOut:vt,paddingXS:Nt,padding:Ft,colorSplit:zt,lineWidth:Gt,zIndexPopup:$n,borderRadiusLG:mr,subMenuItemBorderRadius:_t,menuArrowSize:bn,menuArrowOffset:ur,lineType:Tr,menuPanelMaskInset:lt,groupTitleLineHeight:Jt,groupTitleFontSize:Hn}=ce;return[{"":{[`${de}`]:Object.assign(Object.assign({},(0,Lt.dF)()),{"&-hidden":{display:"none"}})},[`${de}-submenu-hidden`]:{display:"none"}},{[de]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(ce)),(0,Lt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${de}-item`]:{flex:"none"}},[`${de}-item, ${de}-submenu, ${de}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${de}-item-group-title`]:{padding:`${Nt}px ${Ft}px`,fontSize:Hn,lineHeight:Jt,transition:`all ${Ee}`},[`&-horizontal ${de}-submenu`]:{transition:[`border-color ${Ee} ${vt}`,`background ${Ee} ${vt}`].join(",")},[`${de}-submenu, ${de}-submenu-inline`]:{transition:[`border-color ${Ee} ${vt}`,`background ${Ee} ${vt}`,`padding ${Ze} ${vt}`].join(",")},[`${de}-submenu ${de}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${vt}`,`padding ${Ee} ${vt}`].join(",")},[`${de}-title-content`]:{transition:`color ${Ee}`},[`${de}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${de}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:Tr,borderWidth:0,borderTopWidth:Gt,marginBlock:Gt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Zt(ce)),{[`${de}-item-group`]:{[`${de}-item-group-list`]:{margin:0,padding:0,[`${de}-item, ${de}-submenu-title`]:{paddingInline:`${le*2}px ${Ft}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$n,borderRadius:mr,boxShadow:"none",transformOrigin:"0 0",[`&${de}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${lt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:lt},"\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:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${de}`]:Object.assign(Object.assign(Object.assign({borderRadius:mr},Zt(ce)),Wn(ce)),{[`${de}-item, ${de}-submenu > ${de}-submenu-title`]:{borderRadius:_t},[`${de}-submenu-title::after`]:{transition:`transform ${Ee} ${vt}`}})}}),Wn(ce)),{[`&-inline-collapsed ${de}-submenu-arrow, &-inline ${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ur})`},"&::after":{transform:`rotate(45deg) translateX(-${ur})`}},[`${de}-submenu-open${de}-submenu-inline > ${de}-submenu-title > ${de}-submenu-arrow`]:{transform:`translateY(-${bn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ur})`},"&::before":{transform:`rotate(45deg) translateX(${ur})`}}})},{[`${he}-layout-header`]:{[de]:{lineHeight:"inherit"}}}]};var Qt=(ce,he)=>(0,pn.Z)("Menu",le=>{if(he===!1)return[];const{colorBgElevated:Ee,colorPrimary:Ze,colorTextLightSolid:vt,controlHeightLG:Nt,fontSize:Ft,darkItemColor:zt,darkDangerItemColor:Gt,darkItemBg:$n,darkSubMenuItemBg:mr,darkItemSelectedColor:_t,darkItemSelectedBg:bn,darkDangerItemSelectedBg:ur,darkItemHoverBg:Tr,darkGroupTitleColor:lt,darkItemHoverColor:Jt,darkItemDisabledColor:Hn,darkDangerItemHoverColor:er,darkDangerItemSelectedColor:nr,darkDangerItemActiveBg:Er}=le,Pr=Ft/7*5,Ir=(0,$t.TS)(le,{menuArrowSize:Pr,menuHorizontalHeight:Nt*1.15,menuArrowOffset:`${Pr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ee}),zr=(0,$t.TS)(Ir,{itemColor:zt,itemHoverColor:Jt,groupTitleColor:lt,itemSelectedColor:_t,itemBg:$n,popupBg:$n,subMenuItemBg:mr,itemActiveBg:"transparent",itemSelectedBg:bn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tr,itemDisabledColor:Hn,dangerItemColor:Gt,dangerItemHoverColor:er,dangerItemSelectedColor:nr,dangerItemActiveBg:Er,dangerItemSelectedBg:ur,menuSubMenuBg:mr,horizontalItemSelectedColor:vt,horizontalItemSelectedBg:Ze});return[wn(Ir),Kn(Ir),ut(Ir),cn(Ir,"light"),cn(zr,"dark"),Xe(Ir),(0,Je.Z)(Ir),(0,Ut.oN)(Ir,"slide-up"),(0,Ut.oN)(Ir,"slide-down"),(0,It._y)(Ir,"zoom-big")]},le=>{const{colorPrimary:Ee,colorError:Ze,colorTextDisabled:vt,colorErrorBg:Nt,colorText:Ft,colorTextDescription:zt,colorBgContainer:Gt,colorFillAlter:$n,colorFillContent:mr,lineWidth:_t,lineWidthBold:bn,controlItemBgActive:ur,colorBgTextHover:Tr,controlHeightLG:lt,lineHeight:Jt,colorBgElevated:Hn,marginXXS:er,padding:nr,fontSize:Er,controlHeightSM:Pr,fontSizeLG:Ir,colorTextLightSolid:zr,colorErrorHover:Wr}=le,gr=new gt.C(zr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Ft,itemColor:Ft,colorItemTextHover:Ft,itemHoverColor:Ft,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Ee,itemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:Gt,itemBg:Gt,colorItemBgHover:Tr,itemHoverBg:Tr,colorItemBgActive:mr,itemActiveBg:ur,colorSubItemBg:$n,subMenuItemBg:$n,colorItemBgSelected:ur,itemSelectedBg:ur,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:bn,activeBarHeight:bn,colorActiveBarBorderSize:_t,activeBarBorderWidth:_t,colorItemTextDisabled:vt,itemDisabledColor:vt,colorDangerItemText:Ze,dangerItemColor:Ze,colorDangerItemTextHover:Ze,dangerItemHoverColor:Ze,colorDangerItemTextSelected:Ze,dangerItemSelectedColor:Ze,colorDangerItemBgActive:Nt,dangerItemActiveBg:Nt,colorDangerItemBgSelected:Nt,dangerItemSelectedBg:Nt,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:lt,groupTitleLineHeight:Jt,collapsedWidth:lt*2,popupBg:Hn,itemMarginBlock:er,itemPaddingInline:nr,horizontalLineHeight:`${lt*1.15}px`,iconSize:Er,iconMarginInlineEnd:Pr-Er,collapsedIconSize:Ir,groupTitleFontSize:Er,darkItemDisabledColor:new gt.C(zr).setAlpha(.25).toRgbString(),darkItemColor:gr,darkDangerItemColor:Ze,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zr,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:Ze,darkItemHoverBg:"transparent",darkGroupTitleColor:gr,darkItemHoverColor:zr,darkDangerItemHoverColor:Wr,darkDangerItemSelectedColor:zr,darkDangerItemActiveBg:Ze}},{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"]]})(ce),en=function(ce,he){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&he.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(ce);Ee{var de,le;const Ee=He.useContext(Ce.Z),Ze=Ee||{},{getPrefixCls:vt,getPopupContainer:Nt,direction:Ft,menu:zt}=He.useContext(Le.E_),Gt=vt(),{prefixCls:$n,className:mr,style:_t,theme:bn="light",expandIcon:ur,_internalDisableMenuItemTitleTooltip:Tr,inlineCollapsed:lt,siderCollapsed:Jt,items:Hn,children:er,rootClassName:nr,mode:Er,selectable:Pr,onClick:Ir,overflowedIndicatorPopupClassName:zr}=ce,Wr=en(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gr=(0,rt.Z)(Wr,["collapsedWidth"]),Nr=wt(Hn)||er;(de=Ze.validator)===null||de===void 0||de.call(Ze,{mode:Er});const Bi=(0,it.useEvent)(function(){var _n;Ir==null||Ir.apply(void 0,arguments),(_n=Ze.onClick)===null||_n===void 0||_n.call(Ze)}),Ai=Ze.mode||Er,Fi=Pr!=null?Pr:Ze.selectable,$r=He.useMemo(()=>Jt!==void 0?Jt:lt,[lt,Jt]),Ct={horizontal:{motionName:`${Gt}-slide-up`},inline:(0,Se.Z)(Gt),other:{motionName:`${Gt}-zoom-big`}},dn=vt("menu",$n||Ze.prefixCls),[On,Nn]=Qt(dn,!Ee),Jn=ve()(`${dn}-${bn}`,zt==null?void 0:zt.className,mr);let rr;if(typeof ur=="function")rr=ur;else if(ur===null||ur===!1)rr=null;else if(Ze.expandIcon===null||Ze.expandIcon===!1)rr=null;else{const _n=ur!=null?ur:Ze.expandIcon;rr=(0,Et.Tm)(_n,{className:ve()(`${dn}-submenu-expand-icon`,(0,Et.l$)(_n)?(le=_n.props)===null||le===void 0?void 0:le.className:"")})}const wr=He.useMemo(()=>({prefixCls:dn,inlineCollapsed:$r||!1,direction:Ft,firstLevel:!0,theme:bn,mode:Ai,disableMenuItemTitleTooltip:Tr}),[dn,$r,Ft,Tr,bn]);return On(He.createElement(Ce.Z.Provider,{value:null},He.createElement(ct.Provider,{value:wr},He.createElement(oe.ZP,Object.assign({getPopupContainer:Nt,overflowedIndicator:He.createElement(Qe.Z,null),overflowedIndicatorPopupClassName:ve()(dn,`${dn}-${bn}`,zr),mode:Ai,selectable:Fi,onClick:Bi},gr,{inlineCollapsed:$r,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),_t),className:Jn,prefixCls:dn,direction:Ft,defaultMotions:Ct,expandIcon:rr,ref:he,rootClassName:ve()(nr,Nn)}),Nr))))});const Be=(0,He.forwardRef)((ce,he)=>{const de=(0,He.useRef)(null),le=He.useContext(Ne.D);return(0,He.useImperativeHandle)(he,()=>({menu:de.current,focus:Ee=>{var Ze;(Ze=de.current)===null||Ze===void 0||Ze.focus(Ee)}})),He.createElement(vn,Object.assign({ref:de},ce,le))});Be.Item=Ae,Be.SubMenu=Yt,Be.Divider=me,Be.ItemGroup=oe.BW;var fe=Be},38703:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Tr}});var oe=se(67294),He=se(87725),Ne=se(18299),qe=se(16646),ve=se(73475),Le=se(94184),De=se.n(Le),xe=se(10366),me=se(53124),Te=se(87462),rt=se(1413),Ie=se(45987),Et={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},dt=function(){var Jt=(0,oe.useRef)([]),Hn=(0,oe.useRef)(null);return(0,oe.useEffect)(function(){var er=Date.now(),nr=!1;Jt.current.forEach(function(Er){if(Er){nr=!0;var Pr=Er.style;Pr.transitionDuration=".3s, .3s, .3s, .06s",Hn.current&&er-Hn.current<100&&(Pr.transitionDuration="0s, 0s")}}),nr&&(Hn.current=Date.now())}),Jt.current},ct=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],$e=function(Jt){var Hn=(0,rt.Z)((0,rt.Z)({},Et),Jt),er=Hn.className,nr=Hn.percent,Er=Hn.prefixCls,Pr=Hn.strokeColor,Ir=Hn.strokeLinecap,zr=Hn.strokeWidth,Wr=Hn.style,gr=Hn.trailColor,Nr=Hn.trailWidth,Bi=Hn.transition,Ai=(0,Ie.Z)(Hn,ct);delete Ai.gapPosition;var Fi=Array.isArray(nr)?nr:[nr],$r=Array.isArray(Pr)?Pr:[Pr],Ct=dt(),dn=zr/2,On=100-zr/2,Nn="M ".concat(Ir==="round"?dn:0,",").concat(dn,` L `).concat(Ir==="round"?On:100,",").concat(dn),Jn="0 0 100 ".concat(zr),rr=0;return oe.createElement("svg",(0,Te.Z)({className:De()("".concat(Er,"-line"),er),viewBox:Jn,preserveAspectRatio:"none",style:Wr},Ai),oe.createElement("path",{className:"".concat(Er,"-line-trail"),d:Nn,strokeLinecap:Ir,stroke:gr,strokeWidth:Nr||zr,fillOpacity:"0"}),Fi.map(function(wr,_n){var Ye=1;switch(Ir){case"round":Ye=1-zr/100;break;case"square":Ye=1-zr/2/100;break;default:Ye=1;break}var mt={strokeDasharray:"".concat(wr*Ye,"px, 100px"),strokeDashoffset:"-".concat(rr,"px"),transition:Bi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ht=$r[_n]||$r[$r.length-1];return rr+=wr,oe.createElement("path",{key:_n,className:"".concat(Er,"-line-path"),d:Nn,strokeLinecap:Ir,stroke:Ht,strokeWidth:zr,fillOpacity:"0",ref:function(_e){Ct[_n]=_e},style:mt})}))},Ae=$e,ft=se(71002),Yt=se(97685),Qe=se(98924),it=0,Se=(0,Qe.Z)();function Ce(){var lt;return Se?(lt=it,it+=1):lt="TEST_OR_SSR",lt}var Ve=function(lt){var Jt=oe.useState(),Hn=(0,Yt.Z)(Jt,2),er=Hn[0],nr=Hn[1];return oe.useEffect(function(){nr("rc_progress_".concat(Ce()))},[]),lt||er},Ue=function(Jt){var Hn=Jt.bg,er=Jt.children;return oe.createElement("div",{style:{width:"100%",height:"100%",background:Hn}},er)};function wt(lt,Jt){return Object.keys(lt).map(function(Hn){var er=parseFloat(Hn),nr="".concat(Math.floor(er*Jt),"%");return"".concat(lt[Hn]," ").concat(nr)})}var gt=oe.forwardRef(function(lt,Jt){var Hn=lt.prefixCls,er=lt.color,nr=lt.gradientId,Er=lt.radius,Pr=lt.style,Ir=lt.ptg,zr=lt.strokeLinecap,Wr=lt.strokeWidth,gr=lt.size,Nr=lt.gapDegree,Bi=er&&(0,ft.Z)(er)==="object",Ai=Bi?"#FFF":void 0,Fi=gr/2,$r=oe.createElement("circle",{className:"".concat(Hn,"-circle-path"),r:Er,cx:Fi,cy:Fi,stroke:Ai,strokeLinecap:zr,strokeWidth:Wr,opacity:Ir===0?0:1,style:Pr,ref:Jt});if(!Bi)return $r;var Ct="".concat(nr,"-conic"),dn=Nr?"".concat(180+Nr/2,"deg"):"0deg",On=wt(er,(360-Nr)/360),Nn=wt(er,1),Jn="conic-gradient(from ".concat(dn,", ").concat(On.join(", "),")"),rr="linear-gradient(to ".concat(Nr?"bottom":"top",", ").concat(Nn.join(", "),")");return oe.createElement(oe.Fragment,null,oe.createElement("mask",{id:Ct},$r),oe.createElement("foreignObject",{x:0,y:0,width:gr,height:gr,mask:"url(#".concat(Ct,")")},oe.createElement(Ue,{bg:rr},oe.createElement(Ue,{bg:Jn}))))}),Lt=gt,Je=100,Ut=function(Jt,Hn,er,nr,Er,Pr,Ir,zr,Wr,gr){var Nr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Bi=er/100*360*((360-Pr)/360),Ai=Pr===0?0:{bottom:0,top:180,left:90,right:-90}[Ir],Fi=(100-nr)/100*Hn;Wr==="round"&&nr!==100&&(Fi+=gr/2,Fi>=Hn&&(Fi=Hn-.01));var $r=Je/2;return{stroke:typeof zr=="string"?zr:void 0,strokeDasharray:"".concat(Hn,"px ").concat(Jt),strokeDashoffset:Fi+Nr,transform:"rotate(".concat(Er+Bi+Ai,"deg)"),transformOrigin:"".concat($r,"px ").concat($r,"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}},It=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pn(lt){var Jt=lt!=null?lt:[];return Array.isArray(Jt)?Jt:[Jt]}var $t=function(Jt){var Hn=(0,rt.Z)((0,rt.Z)({},Et),Jt),er=Hn.id,nr=Hn.prefixCls,Er=Hn.steps,Pr=Hn.strokeWidth,Ir=Hn.trailWidth,zr=Hn.gapDegree,Wr=zr===void 0?0:zr,gr=Hn.gapPosition,Nr=Hn.trailColor,Bi=Hn.strokeLinecap,Ai=Hn.style,Fi=Hn.className,$r=Hn.strokeColor,Ct=Hn.percent,dn=(0,Ie.Z)(Hn,It),On=Je/2,Nn=Ve(er),Jn="".concat(Nn,"-gradient"),rr=On-Pr/2,wr=Math.PI*2*rr,_n=Wr>0?90+Wr/2:-90,Ye=wr*((360-Wr)/360),mt=(0,ft.Z)(Er)==="object"?Er:{count:Er,space:2},Ht=mt.count,qt=mt.space,_e=pn(Ct),xt=pn($r),Vt=xt.find(function(ar){return ar&&(0,ft.Z)(ar)==="object"}),Pt=Vt&&(0,ft.Z)(Vt)==="object",tn=Pt?"butt":Bi,an=Ut(wr,Ye,0,100,_n,Wr,gr,Nr,tn,Pr),Rn=dt(),Or=function(){var xr=0;return _e.map(function(Sr,bt){var ht=xt[bt]||xt[xt.length-1],Dt=Ut(wr,Ye,xr,Sr,_n,Wr,gr,ht,tn,Pr);return xr+=Sr,oe.createElement(Lt,{key:bt,color:ht,ptg:Sr,radius:rr,prefixCls:nr,gradientId:Jn,style:Dt,strokeLinecap:tn,strokeWidth:Pr,gapDegree:Wr,ref:function(Vn){Rn[bt]=Vn},size:Je})}).reverse()},dr=function(){var xr=Math.round(Ht*(_e[0]/100)),Sr=100/Ht,bt=0;return new Array(Ht).fill(null).map(function(ht,Dt){var Sn=Dt<=xr-1?xt[0]:Nr,Vn=Sn&&(0,ft.Z)(Sn)==="object"?"url(#".concat(Jn,")"):void 0,Cn=Ut(wr,Ye,bt,Sr,_n,Wr,gr,Sn,"butt",Pr,qt);return bt+=(Ye-Cn.strokeDashoffset+qt)*100/Ye,oe.createElement("circle",{key:Dt,className:"".concat(nr,"-circle-path"),r:rr,cx:On,cy:On,stroke:Vn,strokeWidth:Pr,opacity:1,style:Cn,ref:function(Ln){Rn[Dt]=Ln}})})};return oe.createElement("svg",(0,Te.Z)({className:De()("".concat(nr,"-circle"),Fi),viewBox:"0 0 ".concat(Je," ").concat(Je),style:Ai,id:er,role:"presentation"},dn),!Ht&&oe.createElement("circle",{className:"".concat(nr,"-circle-trail"),r:rr,cx:On,cy:On,stroke:Nr,strokeLinecap:tn,strokeWidth:Ir||Pr,style:an}),Ht?dr():Or())},Pn=$t,Kn={Line:Ae,Circle:Pn},Yn=se(83062),Xe=se(16397);function we(lt){return!lt||lt<0?0:lt>100?100:lt}function Mt(lt){let{success:Jt,successPercent:Hn}=lt,er=Hn;return Jt&&"progress"in Jt&&(er=Jt.progress),Jt&&"percent"in Jt&&(er=Jt.percent),er}const cn=lt=>{let{percent:Jt,success:Hn,successPercent:er}=lt;const nr=we(Mt({success:Hn,successPercent:er}));return[nr,we(we(Jt)-nr)]},Kt=lt=>{let{success:Jt={},strokeColor:Hn}=lt;const{strokeColor:er}=Jt;return[er||Xe.presetPrimaryColors.green,Hn||null]},tt=(lt,Jt,Hn)=>{var er,nr,Er,Pr;let Ir=-1,zr=-1;if(Jt==="step"){const Wr=Hn.steps,gr=Hn.strokeWidth;typeof lt=="string"||typeof lt=="undefined"?(Ir=lt==="small"?2:14,zr=gr!=null?gr:8):typeof lt=="number"?[Ir,zr]=[lt,lt]:[Ir=14,zr=8]=lt,Ir*=Wr}else if(Jt==="line"){const Wr=Hn==null?void 0:Hn.strokeWidth;typeof lt=="string"||typeof lt=="undefined"?zr=Wr||(lt==="small"?6:8):typeof lt=="number"?[Ir,zr]=[lt,lt]:[Ir=-1,zr=8]=lt}else(Jt==="circle"||Jt==="dashboard")&&(typeof lt=="string"||typeof lt=="undefined"?[Ir,zr]=lt==="small"?[60,60]:[120,120]:typeof lt=="number"?[Ir,zr]=[lt,lt]:(Ir=(nr=(er=lt[0])!==null&&er!==void 0?er:lt[1])!==null&&nr!==void 0?nr:120,zr=(Pr=(Er=lt[0])!==null&&Er!==void 0?Er:lt[1])!==null&&Pr!==void 0?Pr:120));return[Ir,zr]},ut=3,Zt=lt=>ut/lt*100;var wn=lt=>{const{prefixCls:Jt,trailColor:Hn=null,strokeLinecap:er="round",gapPosition:nr,gapDegree:Er,width:Pr=120,type:Ir,children:zr,success:Wr,size:gr=Pr}=lt,[Nr,Bi]=tt(gr,"circle");let{strokeWidth:Ai}=lt;Ai===void 0&&(Ai=Math.max(Zt(Nr),6));const Fi={width:Nr,height:Bi,fontSize:Nr*.15+6},$r=oe.useMemo(()=>{if(Er||Er===0)return Er;if(Ir==="dashboard")return 75},[Er,Ir]),Ct=nr||Ir==="dashboard"&&"bottom"||void 0,dn=Object.prototype.toString.call(lt.strokeColor)==="[object Object]",On=Kt({success:Wr,strokeColor:lt.strokeColor}),Nn=De()(`${Jt}-inner`,{[`${Jt}-circle-gradient`]:dn}),Jn=oe.createElement(Pn,{percent:cn(lt),strokeWidth:Ai,trailWidth:Ai,strokeColor:On,strokeLinecap:er,trailColor:Hn,prefixCls:Jt,gapDegree:$r,gapPosition:Ct});return oe.createElement("div",{className:Nn,style:Fi},Nr<=20?oe.createElement(Yn.Z,{title:zr},oe.createElement("span",null,Jn)):oe.createElement(oe.Fragment,null,Jn,zr))},Qt=function(lt,Jt){var Hn={};for(var er in lt)Object.prototype.hasOwnProperty.call(lt,er)&&Jt.indexOf(er)<0&&(Hn[er]=lt[er]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,er=Object.getOwnPropertySymbols(lt);nr{let Jt=[];return Object.keys(lt).forEach(Hn=>{const er=parseFloat(Hn.replace(/%/g,""));isNaN(er)||Jt.push({key:er,value:lt[Hn]})}),Jt=Jt.sort((Hn,er)=>Hn.key-er.key),Jt.map(Hn=>{let{key:er,value:nr}=Hn;return`${nr} ${er}%`}).join(", ")},Dn=(lt,Jt)=>{const{from:Hn=Xe.presetPrimaryColors.blue,to:er=Xe.presetPrimaryColors.blue,direction:nr=Jt==="rtl"?"to left":"to right"}=lt,Er=Qt(lt,["from","to","direction"]);if(Object.keys(Er).length!==0){const Pr=en(Er);return{backgroundImage:`linear-gradient(${nr}, ${Pr})`}}return{backgroundImage:`linear-gradient(${nr}, ${Hn}, ${er})`}};var Be=lt=>{const{prefixCls:Jt,direction:Hn,percent:er,size:nr,strokeWidth:Er,strokeColor:Pr,strokeLinecap:Ir="round",children:zr,trailColor:Wr=null,success:gr}=lt,Nr=Pr&&typeof Pr!="string"?Dn(Pr,Hn):{backgroundColor:Pr},Bi=Ir==="square"||Ir==="butt"?0:void 0,Ai={backgroundColor:Wr||void 0,borderRadius:Bi},Fi=nr!=null?nr:[-1,Er||(nr==="small"?6:8)],[$r,Ct]=tt(Fi,"line",{strokeWidth:Er}),dn=Object.assign({width:`${we(er)}%`,height:Ct,borderRadius:Bi},Nr),On=Mt(lt),Nn={width:`${we(On)}%`,height:Ct,borderRadius:Bi,backgroundColor:gr==null?void 0:gr.strokeColor},Jn={width:$r<0?"100%":$r,height:Ct};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${Jt}-outer`,style:Jn},oe.createElement("div",{className:`${Jt}-inner`,style:Ai},oe.createElement("div",{className:`${Jt}-bg`,style:dn}),On!==void 0?oe.createElement("div",{className:`${Jt}-success-bg`,style:Nn}):null)),zr)},ce=lt=>{const{size:Jt,steps:Hn,percent:er=0,strokeWidth:nr=8,strokeColor:Er,trailColor:Pr=null,prefixCls:Ir,children:zr}=lt,Wr=Math.round(Hn*(er/100)),gr=Jt==="small"?2:14,Nr=Jt!=null?Jt:[gr,nr],[Bi,Ai]=tt(Nr,"step",{steps:Hn,strokeWidth:nr}),Fi=Bi/Hn,$r=new Array(Hn);for(let Ct=0;Ct{const Jt=lt?"100%":"-100%";return new he.Keyframes(`antProgress${lt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Jt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Jt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},vt=lt=>{const{componentCls:Jt,iconCls:Hn}=lt;return{[Jt]:Object.assign(Object.assign({},(0,de.Wf)(lt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:lt.fontSize,marginInlineEnd:lt.marginXS,marginBottom:lt.marginXS},[`${Jt}-outer`]:{display:"inline-block",width:"100%"},[`&${Jt}-show-info`]:{[`${Jt}-outer`]:{marginInlineEnd:`calc(-2em - ${lt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${lt.paddingXS}px)`}},[`${Jt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:lt.remainingColor,borderRadius:lt.lineBorderRadius},[`${Jt}-inner:not(${Jt}-circle-gradient)`]:{[`${Jt}-circle-path`]:{stroke:lt.defaultColor}},[`${Jt}-success-bg, ${Jt}-bg`]:{position:"relative",backgroundColor:lt.defaultColor,borderRadius:lt.lineBorderRadius,transition:`all ${lt.motionDurationSlow} ${lt.motionEaseInOutCirc}`},[`${Jt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:lt.colorSuccess},[`${Jt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:lt.marginXS,color:lt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Hn]:{fontSize:lt.fontSize}},[`&${Jt}-status-active`]:{[`${Jt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:lt.colorBgContainer,borderRadius:lt.lineBorderRadius,opacity:0,animationName:Ze(),animationDuration:lt.progressActiveMotionDuration,animationTimingFunction:lt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Jt}-rtl${Jt}-status-active`]:{[`${Jt}-bg::before`]:{animationName:Ze(!0)}},[`&${Jt}-status-exception`]:{[`${Jt}-bg`]:{backgroundColor:lt.colorError},[`${Jt}-text`]:{color:lt.colorError}},[`&${Jt}-status-exception ${Jt}-inner:not(${Jt}-circle-gradient)`]:{[`${Jt}-circle-path`]:{stroke:lt.colorError}},[`&${Jt}-status-success`]:{[`${Jt}-bg`]:{backgroundColor:lt.colorSuccess},[`${Jt}-text`]:{color:lt.colorSuccess}},[`&${Jt}-status-success ${Jt}-inner:not(${Jt}-circle-gradient)`]:{[`${Jt}-circle-path`]:{stroke:lt.colorSuccess}}})}},Nt=lt=>{const{componentCls:Jt,iconCls:Hn}=lt;return{[Jt]:{[`${Jt}-circle-trail`]:{stroke:lt.remainingColor},[`&${Jt}-circle ${Jt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Jt}-circle ${Jt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:lt.circleTextColor,fontSize:lt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Hn]:{fontSize:`${lt.fontSize/lt.fontSizeSM}em`}},[`${Jt}-circle&-status-exception`]:{[`${Jt}-text`]:{color:lt.colorError}},[`${Jt}-circle&-status-success`]:{[`${Jt}-text`]:{color:lt.colorSuccess}}},[`${Jt}-inline-circle`]:{lineHeight:1,[`${Jt}-inner`]:{verticalAlign:"bottom"}}}},Ft=lt=>{const{componentCls:Jt}=lt;return{[Jt]:{[`${Jt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:lt.progressStepMinWidth,marginInlineEnd:lt.progressStepMarginInlineEnd,backgroundColor:lt.remainingColor,transition:`all ${lt.motionDurationSlow}`,"&-active":{backgroundColor:lt.defaultColor}}}}}},zt=lt=>{const{componentCls:Jt,iconCls:Hn}=lt;return{[Jt]:{[`${Jt}-small&-line, ${Jt}-small&-line ${Jt}-text ${Hn}`]:{fontSize:lt.fontSizeSM}}}};var Gt=(0,le.Z)("Progress",lt=>{const Jt=lt.marginXXS/2,Hn=(0,Ee.TS)(lt,{progressStepMarginInlineEnd:Jt,progressStepMinWidth:Jt,progressActiveMotionDuration:"2.4s"});return[vt(Hn),Nt(Hn),Ft(Hn),zt(Hn)]},lt=>({circleTextColor:lt.colorText,defaultColor:lt.colorInfo,remainingColor:lt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),$n=function(lt,Jt){var Hn={};for(var er in lt)Object.prototype.hasOwnProperty.call(lt,er)&&Jt.indexOf(er)<0&&(Hn[er]=lt[er]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,er=Object.getOwnPropertySymbols(lt);nr{const{prefixCls:Hn,className:er,rootClassName:nr,steps:Er,strokeColor:Pr,percent:Ir=0,size:zr="default",showInfo:Wr=!0,type:gr="line",status:Nr,format:Bi,style:Ai}=lt,Fi=$n(lt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),$r=oe.useMemo(()=>{var _e,xt;const Vt=Mt(lt);return parseInt(Vt!==void 0?(_e=Vt!=null?Vt:0)===null||_e===void 0?void 0:_e.toString():(xt=Ir!=null?Ir:0)===null||xt===void 0?void 0:xt.toString(),10)},[Ir,lt.success,lt.successPercent]),Ct=oe.useMemo(()=>!_t.includes(Nr)&&$r>=100?"success":Nr||"normal",[Nr,$r]),{getPrefixCls:dn,direction:On,progress:Nn}=oe.useContext(me.E_),Jn=dn("progress",Hn),[rr,wr]=Gt(Jn),_n=oe.useMemo(()=>{if(!Wr)return null;const _e=Mt(lt);let xt;const Vt=Bi||(tn=>`${tn}%`),Pt=gr==="line";return Bi||Ct!=="exception"&&Ct!=="success"?xt=Vt(we(Ir),we(_e)):Ct==="exception"?xt=Pt?oe.createElement(qe.Z,null):oe.createElement(ve.Z,null):Ct==="success"&&(xt=Pt?oe.createElement(He.Z,null):oe.createElement(Ne.Z,null)),oe.createElement("span",{className:`${Jn}-text`,title:typeof xt=="string"?xt:void 0},xt)},[Wr,Ir,$r,Ct,gr,Jn,Bi]),Ye=Array.isArray(Pr)?Pr[0]:Pr,mt=typeof Pr=="string"||Array.isArray(Pr)?Pr:void 0;let Ht;gr==="line"?Ht=Er?oe.createElement(ce,Object.assign({},lt,{strokeColor:mt,prefixCls:Jn,steps:Er}),_n):oe.createElement(Be,Object.assign({},lt,{strokeColor:Ye,prefixCls:Jn,direction:On}),_n):(gr==="circle"||gr==="dashboard")&&(Ht=oe.createElement(wn,Object.assign({},lt,{strokeColor:Ye,prefixCls:Jn,progressStatus:Ct}),_n));const qt=De()(Jn,`${Jn}-status-${Ct}`,`${Jn}-${gr==="dashboard"&&"circle"||Er&&"steps"||gr}`,{[`${Jn}-inline-circle`]:gr==="circle"&&tt(zr,"circle")[0]<=20,[`${Jn}-show-info`]:Wr,[`${Jn}-${zr}`]:typeof zr=="string",[`${Jn}-rtl`]:On==="rtl"},Nn==null?void 0:Nn.className,er,nr,wr);return rr(oe.createElement("div",Object.assign({ref:Jt,style:Object.assign(Object.assign({},Nn==null?void 0:Nn.style),Ai),className:qt,role:"progressbar","aria-valuenow":$r},(0,xe.Z)(Fi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ht))}),Tr=ur},78045:function(sn,nn,se){"use strict";se.d(nn,{ZP:function(){return Xe}});var oe=se(94184),He=se.n(oe),Ne=se(5663),qe=se(1337),ve=se(67294),Le=se(53124),De=se(98675);const xe=ve.createContext(null),me=xe.Provider;var Te=xe;const rt=ve.createContext(null),Ie=rt.Provider;var Et=se(95860),dt=se(17799),ct=se(98866),$e=se(65223),Ae=se(14747),ft=se(67968),Yt=se(45503);const Qe=we=>{const{componentCls:Mt,antCls:cn}=we,Kt=`${Mt}-group`;return{[Kt]:Object.assign(Object.assign({},(0,Ae.Wf)(we)),{display:"inline-block",fontSize:0,[`&${Kt}-rtl`]:{direction:"rtl"},[`${cn}-badge ${cn}-badge-count`]:{zIndex:1},[`> ${cn}-badge:not(:first-child) > ${cn}-button-wrapper`]:{borderInlineStart:"none"}})}},it=we=>{const{componentCls:Mt,wrapperMarginInlineEnd:cn,colorPrimary:Kt,radioSize:tt,motionDurationSlow:ut,motionDurationMid:Zt,motionEaseInOutCirc:Wn,colorBgContainer:wn,colorBorder:Qt,lineWidth:en,dotSize:Dn,colorBgContainerDisabled:vn,colorTextDisabled:Be,paddingXS:fe,dotColorDisabled:ce,lineType:he,radioDotDisabledSize:de,wireframe:le,colorWhite:Ee}=we,Ze=`${Mt}-inner`;return{[`${Mt}-wrapper`]:Object.assign(Object.assign({},(0,Ae.Wf)(we)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:cn,cursor:"pointer",[`&${Mt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:we.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Mt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${en}px ${he} ${Kt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Mt]:Object.assign(Object.assign({},(0,Ae.Wf)(we)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Mt}-wrapper:hover &, &:hover ${Ze}`]:{borderColor:Kt},[`${Mt}-input:focus-visible + ${Ze}`]:Object.assign({},(0,Ae.oN)(we)),[`${Mt}:hover::after, ${Mt}-wrapper:hover &::after`]:{visibility:"visible"},[`${Mt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:tt,height:tt,marginBlockStart:tt/-2,marginInlineStart:tt/-2,backgroundColor:le?Kt:Ee,borderBlockStart:0,borderInlineStart:0,borderRadius:tt,transform:"scale(0)",opacity:0,transition:`all ${ut} ${Wn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:tt,height:tt,backgroundColor:wn,borderColor:Qt,borderStyle:"solid",borderWidth:en,borderRadius:"50%",transition:`all ${Zt}`},[`${Mt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Mt}-checked`]:{[Ze]:{borderColor:Kt,backgroundColor:le?wn:Kt,"&::after":{transform:`scale(${Dn/tt})`,opacity:1,transition:`all ${ut} ${Wn}`}}},[`${Mt}-disabled`]:{cursor:"not-allowed",[Ze]:{backgroundColor:vn,borderColor:Qt,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${Mt}-input`]:{cursor:"not-allowed"},[`${Mt}-disabled + span`]:{color:Be,cursor:"not-allowed"},[`&${Mt}-checked`]:{[Ze]:{"&::after":{transform:`scale(${de/tt})`}}}},[`span${Mt} + *`]:{paddingInlineStart:fe,paddingInlineEnd:fe}})}},Se=we=>{const{buttonColor:Mt,controlHeight:cn,componentCls:Kt,lineWidth:tt,lineType:ut,colorBorder:Zt,motionDurationSlow:Wn,motionDurationMid:wn,buttonPaddingInline:Qt,fontSize:en,buttonBg:Dn,fontSizeLG:vn,controlHeightLG:Be,controlHeightSM:fe,paddingXS:ce,borderRadius:he,borderRadiusSM:de,borderRadiusLG:le,buttonCheckedBg:Ee,buttonSolidCheckedColor:Ze,colorTextDisabled:vt,colorBgContainerDisabled:Nt,buttonCheckedBgDisabled:Ft,buttonCheckedColorDisabled:zt,colorPrimary:Gt,colorPrimaryHover:$n,colorPrimaryActive:mr,buttonSolidCheckedBg:_t,buttonSolidCheckedHoverBg:bn,buttonSolidCheckedActiveBg:ur}=we;return{[`${Kt}-button-wrapper`]:{position:"relative",display:"inline-block",height:cn,margin:0,paddingInline:Qt,paddingBlock:0,color:Mt,fontSize:en,lineHeight:`${cn-tt*2}px`,background:Dn,border:`${tt}px ${ut} ${Zt}`,borderBlockStartWidth:tt+.02,borderInlineStartWidth:0,borderInlineEndWidth:tt,cursor:"pointer",transition:[`color ${wn}`,`background ${wn}`,`box-shadow ${wn}`].join(","),a:{color:Mt},[`> ${Kt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-tt,insetInlineStart:-tt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:tt,paddingInline:0,backgroundColor:Zt,transition:`background-color ${Wn}`,content:'""'}},"&:first-child":{borderInlineStart:`${tt}px ${ut} ${Zt}`,borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he},"&:first-child:last-child":{borderRadius:he},[`${Kt}-group-large &`]:{height:Be,fontSize:vn,lineHeight:`${Be-tt*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${Kt}-group-small &`]:{height:fe,paddingInline:ce-tt,paddingBlock:0,lineHeight:`${fe-tt*2}px`,"&:first-child":{borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de}},"&:hover":{position:"relative",color:Gt},"&:has(:focus-visible)":Object.assign({},(0,Ae.oN)(we)),[`${Kt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Kt}-button-wrapper-disabled)`]:{zIndex:1,color:Gt,background:Ee,borderColor:Gt,"&::before":{backgroundColor:Gt},"&:first-child":{borderColor:Gt},"&:hover":{color:$n,borderColor:$n,"&::before":{backgroundColor:$n}},"&:active":{color:mr,borderColor:mr,"&::before":{backgroundColor:mr}}},[`${Kt}-group-solid &-checked:not(${Kt}-button-wrapper-disabled)`]:{color:Ze,background:_t,borderColor:_t,"&:hover":{color:Ze,background:bn,borderColor:bn},"&:active":{color:Ze,background:ur,borderColor:ur}},"&-disabled":{color:vt,backgroundColor:Nt,borderColor:Zt,cursor:"not-allowed","&:first-child, &:hover":{color:vt,backgroundColor:Nt,borderColor:Zt}},[`&-disabled${Kt}-button-wrapper-checked`]:{color:zt,backgroundColor:Ft,borderColor:Zt,boxShadow:"none"}}}},Ce=we=>we-4*2;var Ve=(0,ft.Z)("Radio",we=>{const{controlOutline:Mt,controlOutlineWidth:cn,radioSize:Kt}=we,tt=`0 0 0 ${cn}px ${Mt}`,ut=tt,Zt=Ce(Kt),Wn=(0,Yt.TS)(we,{radioDotDisabledSize:Zt,radioFocusShadow:tt,radioButtonFocusShadow:ut});return[Qe(Wn),it(Wn),Se(Wn)]},we=>{const{wireframe:Mt,padding:cn,marginXS:Kt,lineWidth:tt,fontSizeLG:ut,colorText:Zt,colorBgContainer:Wn,colorTextDisabled:wn,controlItemBgActiveDisabled:Qt,colorTextLightSolid:en,colorPrimary:Dn,colorPrimaryHover:vn,colorPrimaryActive:Be}=we,fe=4,ce=ut,he=Mt?Ce(ce):ce-(fe+tt)*2;return{radioSize:ce,dotSize:he,dotColorDisabled:wn,buttonSolidCheckedColor:en,buttonSolidCheckedBg:Dn,buttonSolidCheckedHoverBg:vn,buttonSolidCheckedActiveBg:Be,buttonBg:Wn,buttonCheckedBg:Wn,buttonColor:Zt,buttonCheckedBgDisabled:Qt,buttonCheckedColorDisabled:wn,buttonPaddingInline:cn-tt,wrapperMarginInlineEnd:Kt}}),Ue=se(45353),wt=se(92429),gt=function(we,Mt){var cn={};for(var Kt in we)Object.prototype.hasOwnProperty.call(we,Kt)&&Mt.indexOf(Kt)<0&&(cn[Kt]=we[Kt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Kt=Object.getOwnPropertySymbols(we);tt{var cn,Kt;const tt=ve.useContext(Te),ut=ve.useContext(rt),{getPrefixCls:Zt,direction:Wn,radio:wn}=ve.useContext(Le.E_),Qt=ve.useRef(null),en=(0,dt.sQ)(Mt,Qt),{isFormItemInput:Dn}=ve.useContext($e.aM),vn=mr=>{var _t,bn;(_t=we.onChange)===null||_t===void 0||_t.call(we,mr),(bn=tt==null?void 0:tt.onChange)===null||bn===void 0||bn.call(tt,mr)},{prefixCls:Be,className:fe,rootClassName:ce,children:he,style:de}=we,le=gt(we,["prefixCls","className","rootClassName","children","style"]),Ee=Zt("radio",Be),Ze=((tt==null?void 0:tt.optionType)||ut)==="button",vt=Ze?`${Ee}-button`:Ee,[Nt,Ft]=Ve(Ee),zt=Object.assign({},le),Gt=ve.useContext(ct.Z);tt&&(zt.name=tt.name,zt.onChange=vn,zt.checked=we.value===tt.value,zt.disabled=(cn=zt.disabled)!==null&&cn!==void 0?cn:tt.disabled),zt.disabled=(Kt=zt.disabled)!==null&&Kt!==void 0?Kt:Gt;const $n=He()(`${vt}-wrapper`,{[`${vt}-wrapper-checked`]:zt.checked,[`${vt}-wrapper-disabled`]:zt.disabled,[`${vt}-wrapper-rtl`]:Wn==="rtl",[`${vt}-wrapper-in-form-item`]:Dn},wn==null?void 0:wn.className,fe,ce,Ft);return Nt(ve.createElement(Ue.Z,{component:"Radio",disabled:zt.disabled},ve.createElement("label",{className:$n,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),de),onMouseEnter:we.onMouseEnter,onMouseLeave:we.onMouseLeave},ve.createElement(Et.Z,Object.assign({},zt,{className:He()(zt.className,!Ze&&wt.A),type:"radio",prefixCls:vt,ref:en})),he!==void 0?ve.createElement("span",null,he):null)))};var Ut=ve.forwardRef(Lt);const It=ve.forwardRef((we,Mt)=>{const{getPrefixCls:cn,direction:Kt}=ve.useContext(Le.E_),[tt,ut]=(0,Ne.Z)(we.defaultValue,{value:we.value}),Zt=_t=>{const bn=tt,ur=_t.target.value;"value"in we||ut(ur);const{onChange:Tr}=we;Tr&&ur!==bn&&Tr(_t)},{prefixCls:Wn,className:wn,rootClassName:Qt,options:en,buttonStyle:Dn="outline",disabled:vn,children:Be,size:fe,style:ce,id:he,onMouseEnter:de,onMouseLeave:le,onFocus:Ee,onBlur:Ze}=we,vt=cn("radio",Wn),Nt=`${vt}-group`,[Ft,zt]=Ve(vt);let Gt=Be;en&&en.length>0&&(Gt=en.map(_t=>typeof _t=="string"||typeof _t=="number"?ve.createElement(Ut,{key:_t.toString(),prefixCls:vt,disabled:vn,value:_t,checked:tt===_t},_t):ve.createElement(Ut,{key:`radio-group-value-options-${_t.value}`,prefixCls:vt,disabled:_t.disabled||vn,value:_t.value,checked:tt===_t.value,title:_t.title,style:_t.style},_t.label)));const $n=(0,De.Z)(fe),mr=He()(Nt,`${Nt}-${Dn}`,{[`${Nt}-${$n}`]:$n,[`${Nt}-rtl`]:Kt==="rtl"},wn,Qt,zt);return Ft(ve.createElement("div",Object.assign({},(0,qe.Z)(we,{aria:!0,data:!0}),{className:mr,style:ce,onMouseEnter:de,onMouseLeave:le,onFocus:Ee,onBlur:Ze,id:he,ref:Mt}),ve.createElement(me,{value:{onChange:Zt,value:tt,disabled:we.disabled,name:we.name,optionType:we.optionType}},Gt)))});var pn=ve.memo(It),$t=function(we,Mt){var cn={};for(var Kt in we)Object.prototype.hasOwnProperty.call(we,Kt)&&Mt.indexOf(Kt)<0&&(cn[Kt]=we[Kt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Kt=Object.getOwnPropertySymbols(we);tt{const{getPrefixCls:cn}=ve.useContext(Le.E_),{prefixCls:Kt}=we,tt=$t(we,["prefixCls"]),ut=cn("radio",Kt);return ve.createElement(Ie,{value:"button"},ve.createElement(Ut,Object.assign({prefixCls:ut},tt,{type:"radio",ref:Mt})))};var Kn=ve.forwardRef(Pn);const Yn=Ut;Yn.Button=Kn,Yn.Group=pn,Yn.__ANT_RADIO=!0;var Xe=Yn},12604:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Xe}});var oe=se(87462),He=se(67294),Ne={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"},qe=Ne,ve=se(84089),Le=function(Mt,cn){return He.createElement(ve.Z,(0,oe.Z)({},Mt,{ref:cn,icon:qe}))},De=He.forwardRef(Le),xe=se(94184),me=se.n(xe),Te=se(4942),rt=se(97685),Ie=se(45987),Et=se(21770),dt=se(15105),ct=se(64217);function $e(we,Mt){var cn=we.disabled,Kt=we.prefixCls,tt=we.character,ut=we.characterRender,Zt=we.index,Wn=we.count,wn=we.value,Qt=we.allowHalf,en=we.focused,Dn=we.onHover,vn=we.onClick,Be=function(vt){Dn(vt,Zt)},fe=function(vt){vn(vt,Zt)},ce=function(vt){vt.keyCode===dt.Z.ENTER&&vn(vt,Zt)},he=Zt+1,de=new Set([Kt]);wn===0&&Zt===0&&en?de.add("".concat(Kt,"-focused")):Qt&&wn+.5>=he&&wnZt?"true":"false","aria-posinset":Zt+1,"aria-setsize":Wn,tabIndex:cn?-1:0},He.createElement("div",{className:"".concat(Kt,"-first")},le),He.createElement("div",{className:"".concat(Kt,"-second")},le)));return ut&&(Ee=ut(Ee,we)),Ee}var Ae=He.forwardRef($e);function ft(){var we=He.useRef({});function Mt(Kt){return we.current[Kt]}function cn(Kt){return function(tt){we.current[Kt]=tt}}return[Mt,cn]}function Yt(we){var Mt=we.pageXOffset,cn="scrollLeft";if(typeof Mt!="number"){var Kt=we.document;Mt=Kt.documentElement[cn],typeof Mt!="number"&&(Mt=Kt.body[cn])}return Mt}function Qe(we){var Mt,cn,Kt=we.ownerDocument,tt=Kt.body,ut=Kt&&Kt.documentElement,Zt=we.getBoundingClientRect();return Mt=Zt.left,cn=Zt.top,Mt-=ut.clientLeft||tt.clientLeft||0,cn-=ut.clientTop||tt.clientTop||0,{left:Mt,top:cn}}function it(we){var Mt=Qe(we),cn=we.ownerDocument,Kt=cn.defaultView||cn.parentWindow;return Mt.left+=Yt(Kt),Mt.left}var Se=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ce(we,Mt){var cn,Kt=we.prefixCls,tt=Kt===void 0?"rc-rate":Kt,ut=we.className,Zt=we.defaultValue,Wn=we.value,wn=we.count,Qt=wn===void 0?5:wn,en=we.allowHalf,Dn=en===void 0?!1:en,vn=we.allowClear,Be=vn===void 0?!0:vn,fe=we.character,ce=fe===void 0?"\u2605":fe,he=we.characterRender,de=we.disabled,le=we.direction,Ee=le===void 0?"ltr":le,Ze=we.tabIndex,vt=Ze===void 0?0:Ze,Nt=we.autoFocus,Ft=we.onHoverChange,zt=we.onChange,Gt=we.onFocus,$n=we.onBlur,mr=we.onKeyDown,_t=we.onMouseLeave,bn=(0,Ie.Z)(we,Se),ur=ft(),Tr=(0,rt.Z)(ur,2),lt=Tr[0],Jt=Tr[1],Hn=He.useRef(null),er=function(){if(!de){var Pt;(Pt=Hn.current)===null||Pt===void 0||Pt.focus()}};He.useImperativeHandle(Mt,function(){return{focus:er,blur:function(){if(!de){var Pt;(Pt=Hn.current)===null||Pt===void 0||Pt.blur()}}}});var nr=(0,Et.Z)(Zt||0,{value:Wn}),Er=(0,rt.Z)(nr,2),Pr=Er[0],Ir=Er[1],zr=(0,Et.Z)(null),Wr=(0,rt.Z)(zr,2),gr=Wr[0],Nr=Wr[1],Bi=function(Pt,tn){var an=Ee==="rtl",Rn=Pt+1;if(Dn){var Or=lt(Pt),dr=it(Or),ar=Or.clientWidth;(an&&tn-dr>ar/2||!an&&tn-dr0&&!an||tn===dt.Z.RIGHT&&Rn>0&&an?(Dn?Rn-=.5:Rn-=1,Ai(Rn),Pt.preventDefault()):tn===dt.Z.LEFT&&Rn{const{componentCls:Mt}=we;return{[`${Mt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:we.marginXS},"> div":{transition:`all ${we.motionDurationMid}, outline 0s`,"&:hover":{transform:we.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${we.lineWidth}px dashed ${we.starColor}`,transform:we.starHoverScale}},"&-first, &-second":{color:we.starBg,transition:`all ${we.motionDurationMid}`,userSelect:"none",[we.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Mt}-star-first, &-half ${Mt}-star-second`]:{opacity:1},[`&-half ${Mt}-star-first, &-full ${Mt}-star-second`]:{color:"inherit"}}}},pn=we=>({[`&-rtl${we.componentCls}`]:{direction:"rtl"}}),$t=we=>{const{componentCls:Mt}=we;return{[Mt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(we)),{display:"inline-block",margin:0,padding:0,color:we.starColor,fontSize:we.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Mt} ${Mt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),It(we)),{[`+ ${Mt}-text`]:{display:"inline-block",marginInlineStart:we.marginXS,fontSize:we.fontSize}}),pn(we))}};var Pn=(0,Je.Z)("Rate",we=>{const Mt=(0,Ut.TS)(we,{});return[$t(Mt)]},we=>({starColor:we.yellow6,starSize:we.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:we.colorFillContent})),Kn=function(we,Mt){var cn={};for(var Kt in we)Object.prototype.hasOwnProperty.call(we,Kt)&&Mt.indexOf(Kt)<0&&(cn[Kt]=we[Kt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Kt=Object.getOwnPropertySymbols(we);tt{const{prefixCls:cn,className:Kt,rootClassName:tt,style:ut,tooltips:Zt,character:Wn=He.createElement(De,null)}=we,wn=Kn(we,["prefixCls","className","rootClassName","style","tooltips","character"]),Qt=(de,le)=>{let{index:Ee}=le;return Zt?He.createElement(gt.Z,{title:Zt[Ee]},de):de},{getPrefixCls:en,direction:Dn,rate:vn}=He.useContext(wt.E_),Be=en("rate",cn),[fe,ce]=Pn(Be),he=Object.assign(Object.assign({},vn==null?void 0:vn.style),ut);return fe(He.createElement(Ue,Object.assign({ref:Mt,character:Wn,characterRender:Qt},wn,{className:me()(Kt,tt,ce,vn==null?void 0:vn.className),style:he,prefixCls:Be,direction:Dn})))})},11713:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return Br}});var oe=se(94184),He=se.n(oe),Ne=se(87462),qe=se(74902),ve=se(4942),Le=se(1413),De=se(97685),xe=se(45987),me=se(71002),Te=se(67294);function rt(Re){var je=Te.useRef();je.current=Re;var Rt=Te.useCallback(function(){for(var yt,rn=arguments.length,En=new Array(rn),et=0;et=Lt.F1&&Rt<=Lt.F12)return!1;switch(Rt){case Lt.ALT:case Lt.CAPS_LOCK:case Lt.CONTEXT_MENU:case Lt.CTRL:case Lt.DOWN:case Lt.END:case Lt.ESC:case Lt.HOME:case Lt.INSERT:case Lt.LEFT:case Lt.MAC_FF_META:case Lt.META:case Lt.NUMLOCK:case Lt.NUM_CENTER:case Lt.PAGE_DOWN:case Lt.PAGE_UP:case Lt.PAUSE:case Lt.PRINT_SCREEN:case Lt.RIGHT:case Lt.SHIFT:case Lt.UP:case Lt.WIN_KEY:case Lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(je){if(je>=Lt.ZERO&&je<=Lt.NINE||je>=Lt.NUM_ZERO&&je<=Lt.NUM_MULTIPLY||je>=Lt.A&&je<=Lt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&je===0)return!0;switch(je){case Lt.SPACE:case Lt.QUESTION_MARK:case Lt.NUM_PLUS:case Lt.NUM_MINUS:case Lt.NUM_PERIOD:case Lt.NUM_DIVISION:case Lt.SEMICOLON:case Lt.DASH:case Lt.EQUALS:case Lt.COMMA:case Lt.PERIOD:case Lt.SLASH:case Lt.APOSTROPHE:case Lt.SINGLE_QUOTE:case Lt.OPEN_SQUARE_BRACKET:case Lt.BACKSLASH:case Lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Je=Lt,Ut=se(47655);function It(Re,je,Rt){var yt=Te.useRef({});return(!("value"in yt.current)||Rt(yt.current.condition,je))&&(yt.current.value=Re(),yt.current.condition=je),yt.current.value}function pn(Re,je){typeof Re=="function"?Re(je):(0,me.Z)(Re)==="object"&&Re&&"current"in Re&&(Re.current=je)}function $t(){for(var Re=arguments.length,je=new Array(Re),Rt=0;Rt5&&arguments[5]!==void 0?arguments[5]:!1,et=arguments.length>6?arguments[6]:void 0,at=arguments.length>7?arguments[7]:void 0,ot=Te.useMemo(function(){if((0,me.Z)(yt)==="object")return yt.clearIcon;if(rn)return rn},[yt,rn]),St=Te.useMemo(function(){return!!(!En&&yt&&(Rt.length||et)&&!(at==="combobox"&&et===""))},[yt,En,Rt.length,et,at]);return{allowClear:St,clearIcon:Te.createElement(Xe,{className:"".concat(Re,"-clear"),onMouseDown:je,customizeIcon:ot},"\xD7")}}var Mt=Te.createContext(null);function cn(){return Te.useContext(Mt)}function Kt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,je=Te.useState(!1),Rt=(0,De.Z)(je,2),yt=Rt[0],rn=Rt[1],En=Te.useRef(null),et=function(){window.clearTimeout(En.current)};Te.useEffect(function(){return et},[]);var at=function(St,ln){et(),En.current=window.setTimeout(function(){rn(St),ln&&ln()},Re)};return[yt,at,et]}function tt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,je=Te.useRef(null),Rt=Te.useRef(null);Te.useEffect(function(){return function(){window.clearTimeout(Rt.current)}},[]);function yt(rn){(rn||je.current===null)&&(je.current=rn),window.clearTimeout(Rt.current),Rt.current=window.setTimeout(function(){je.current=null},Re)}return[function(){return je.current},yt]}function ut(Re,je,Rt,yt){var rn=Te.useRef(null);rn.current={open:je,triggerOpen:Rt,customizedTrigger:yt},Te.useEffect(function(){function En(et){var at;if(!((at=rn.current)!==null&&at!==void 0&&at.customizedTrigger)){var ot=et.target;ot.shadowRoot&&et.composed&&(ot=et.composedPath()[0]||ot),rn.current.open&&Re().filter(function(St){return St}).every(function(St){return!St.contains(ot)&&St!==ot})&&rn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",En),function(){return window.removeEventListener("mousedown",En)}},[])}var Zt=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Wn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,wn="".concat(Zt," ").concat(Wn).split(/[\s\n]+/),Qt="aria-",en="data-";function Dn(Re,je){return Re.indexOf(je)===0}function vn(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rt;je===!1?Rt={aria:!0,data:!0,attr:!0}:je===!0?Rt={aria:!0}:Rt=(0,Le.Z)({},je);var yt={};return Object.keys(Re).forEach(function(rn){(Rt.aria&&(rn==="role"||Dn(rn,Qt))||Rt.data&&Dn(rn,en)||Rt.attr&&wn.includes(rn))&&(yt[rn]=Re[rn])}),yt}var Be=se(48555),fe=se(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],he=void 0;function de(Re,je){var Rt=Re.prefixCls,yt=Re.invalidate,rn=Re.item,En=Re.renderItem,et=Re.responsive,at=Re.responsiveDisabled,ot=Re.registerSize,St=Re.itemKey,ln=Re.className,gn=Re.style,Xt=Re.children,fn=Re.display,Zn=Re.order,yr=Re.component,Gn=yr===void 0?"div":yr,Bn=(0,xe.Z)(Re,ce),qn=et&&!fn;function vr(Ur){ot(St,Ur)}Te.useEffect(function(){return function(){vr(null)}},[]);var Rr=En&&rn!==he?En(rn):Xt,hr;yt||(hr={opacity:qn?0:1,height:qn?0:he,overflowY:qn?"hidden":he,order:et?Zn:he,pointerEvents:qn?"none":he,position:qn?"absolute":he});var Xn={};qn&&(Xn["aria-hidden"]=!0);var Kr=Te.createElement(Gn,(0,Ne.Z)({className:He()(!yt&&Rt,ln),style:(0,Le.Z)((0,Le.Z)({},hr),gn)},Xn,Bn,{ref:je}),Rr);return et&&(Kr=Te.createElement(Be.Z,{onResize:function(fi){var Ci=fi.offsetWidth;vr(Ci)},disabled:at},Kr)),Kr}var le=Te.forwardRef(de);le.displayName="Item";var Ee=le,Ze=se(77527),vt=se(73935),Nt=se(96523);function Ft(Re){if(typeof MessageChannel=="undefined")(0,Nt.Z)(Re);else{var je=new MessageChannel;je.port1.onmessage=function(){return Re()},je.port2.postMessage(void 0)}}function zt(){var Re=Te.useRef(null),je=function(yt){Re.current||(Re.current=[],Ft(function(){(0,vt.unstable_batchedUpdates)(function(){Re.current.forEach(function(rn){rn()}),Re.current=null})})),Re.current.push(yt)};return je}function Gt(Re,je){var Rt=Te.useState(je),yt=(0,De.Z)(Rt,2),rn=yt[0],En=yt[1],et=(0,Ze.Z)(function(at){Re(function(){En(at)})});return[rn,et]}var $n=Te.createContext(null),mr=["component"],_t=["className"],bn=["className"],ur=function(je,Rt){var yt=Te.useContext($n);if(!yt){var rn=je.component,En=rn===void 0?"div":rn,et=(0,xe.Z)(je,mr);return Te.createElement(En,(0,Ne.Z)({},et,{ref:Rt}))}var at=yt.className,ot=(0,xe.Z)(yt,_t),St=je.className,ln=(0,xe.Z)(je,bn);return Te.createElement($n.Provider,{value:null},Te.createElement(Ee,(0,Ne.Z)({ref:Rt,className:He()(at,St)},ot,ln)))},Tr=Te.forwardRef(ur);Tr.displayName="RawItem";var lt=Tr,Jt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Hn="responsive",er="invalidate";function nr(Re){return"+ ".concat(Re.length," ...")}function Er(Re,je){var Rt=Re.prefixCls,yt=Rt===void 0?"rc-overflow":Rt,rn=Re.data,En=rn===void 0?[]:rn,et=Re.renderItem,at=Re.renderRawItem,ot=Re.itemKey,St=Re.itemWidth,ln=St===void 0?10:St,gn=Re.ssr,Xt=Re.style,fn=Re.className,Zn=Re.maxCount,yr=Re.renderRest,Gn=Re.renderRawRest,Bn=Re.suffix,qn=Re.component,vr=qn===void 0?"div":qn,Rr=Re.itemComponent,hr=Re.onVisibleChange,Xn=(0,xe.Z)(Re,Jt),Kr=gn==="full",Ur=zt(),fi=Gt(Ur,null),Ci=(0,De.Z)(fi,2),Di=Ci[0],$i=Ci[1],ea=Di||0,yi=Gt(Ur,new Map),Ri=(0,De.Z)(yi,2),ii=Ri[0],ci=Ri[1],Ei=Gt(Ur,0),Xi=(0,De.Z)(Ei,2),Pa=Xi[0],wa=Xi[1],ua=Gt(Ur,0),ra=(0,De.Z)(ua,2),ta=ra[0],Ti=ra[1],Sa=Gt(Ur,0),Ni=(0,De.Z)(Sa,2),li=Ni[0],Ui=Ni[1],da=(0,Te.useState)(null),Ji=(0,De.Z)(da,2),oa=Ji[0],Mi=Ji[1],ma=(0,Te.useState)(null),Ca=(0,De.Z)(ma,2),ha=Ca[0],Ea=Ca[1],La=Te.useMemo(function(){return ha===null&&Kr?Number.MAX_SAFE_INTEGER:ha||0},[ha,Di]),Ua=(0,Te.useState)(!1),pa=(0,De.Z)(Ua,2),Ba=pa[0],qa=pa[1],Xa="".concat(yt,"-item"),so=Math.max(Pa,ta),Ha=Zn===Hn,Aa=En.length&&Ha,zi=Zn===er,Gi=Aa||typeof Zn=="number"&&En.length>Zn,fa=(0,Te.useMemo)(function(){var sa=En;return Aa?Di===null&&Kr?sa=En:sa=En.slice(0,Math.min(En.length,ea/ln)):typeof Zn=="number"&&(sa=En.slice(0,Zn)),sa},[En,ln,Di,Zn,Aa]),Ma=(0,Te.useMemo)(function(){return Aa?En.slice(La+1):En.slice(fa.length)},[En,fa,Aa,La]),Ka=(0,Te.useCallback)(function(sa,Gr){var Pi;return typeof ot=="function"?ot(sa):(Pi=ot&&(sa==null?void 0:sa[ot]))!==null&&Pi!==void 0?Pi:Gr},[ot]),io=(0,Te.useCallback)(et||function(sa){return sa},[et]);function ho(sa,Gr,Pi){ha===sa&&(Gr===void 0||Gr===oa)||(Ea(sa),Pi||(qa(saea){ho(Oi-1,sa-Ki-li+ta);break}}Bn&&ia(0)+li>ea&&Mi(null)}},[ea,ii,ta,li,Ka,fa]);var _i=Ba&&!!Ma.length,Oa={};oa!==null&&Aa&&(Oa={position:"absolute",left:oa,top:0});var Da={prefixCls:Xa,responsive:Aa,component:Rr,invalidate:zi},co=at?function(sa,Gr){var Pi=Ka(sa,Gr);return Te.createElement($n.Provider,{key:Pi,value:(0,Le.Z)((0,Le.Z)({},Da),{},{order:Gr,item:sa,itemKey:Pi,registerSize:No,display:Gr<=La})},at(sa,Gr))}:function(sa,Gr){var Pi=Ka(sa,Gr);return Te.createElement(Ee,(0,Ne.Z)({},Da,{order:Gr,key:Pi,item:sa,renderItem:io,itemKey:Pi,registerSize:No,display:Gr<=La}))},ao,hs={order:_i?La:Number.MAX_SAFE_INTEGER,className:"".concat(Xa,"-rest"),registerSize:lo,display:_i};if(Gn)Gn&&(ao=Te.createElement($n.Provider,{value:(0,Le.Z)((0,Le.Z)({},Da),hs)},Gn(Ma)));else{var $o=yr||nr;ao=Te.createElement(Ee,(0,Ne.Z)({},Da,hs),typeof $o=="function"?$o(Ma):$o)}var ps=Te.createElement(vr,(0,Ne.Z)({className:He()(!zi&&yt,fn),style:Xt,ref:je},Xn),fa.map(co),Gi?ao:null,Bn&&Te.createElement(Ee,(0,Ne.Z)({},Da,{responsive:Ha,responsiveDisabled:!Aa,order:La,className:"".concat(Xa,"-suffix"),registerSize:Bo,display:!0,style:Oa}),Bn));return Ha&&(ps=Te.createElement(Be.Z,{onResize:Io,disabled:!Aa},ps)),ps}var Pr=Te.forwardRef(Er);Pr.displayName="Overflow",Pr.Item=lt,Pr.RESPONSIVE=Hn,Pr.INVALIDATE=er;var Ir=Pr,zr=Ir,Wr=function(je,Rt){var yt,rn,En=je.prefixCls,et=je.id,at=je.inputElement,ot=je.disabled,St=je.tabIndex,ln=je.autoFocus,gn=je.autoComplete,Xt=je.editable,fn=je.activeDescendantId,Zn=je.value,yr=je.maxLength,Gn=je.onKeyDown,Bn=je.onMouseDown,qn=je.onChange,vr=je.onPaste,Rr=je.onCompositionStart,hr=je.onCompositionEnd,Xn=je.open,Kr=je.attrs,Ur=at||Te.createElement("input",null),fi=Ur,Ci=fi.ref,Di=fi.props,$i=Di.onKeyDown,ea=Di.onChange,yi=Di.onMouseDown,Ri=Di.onCompositionStart,ii=Di.onCompositionEnd,ci=Di.style;return"maxLength"in Ur.props,Ur=Te.cloneElement(Ur,(0,Le.Z)((0,Le.Z)((0,Le.Z)({type:"search"},Di),{},{id:et,ref:$t(Rt,Ci),disabled:ot,tabIndex:St,autoComplete:gn||"off",autoFocus:ln,className:He()("".concat(En,"-selection-search-input"),(yt=Ur)===null||yt===void 0||(rn=yt.props)===null||rn===void 0?void 0:rn.className),role:"combobox","aria-label":"Search","aria-expanded":Xn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(et,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(et,"_list"),"aria-activedescendant":Xn?fn:void 0},Kr),{},{value:Xt?Zn:"",maxLength:yr,readOnly:!Xt,unselectable:Xt?null:"on",style:(0,Le.Z)((0,Le.Z)({},ci),{},{opacity:Xt?null:0}),onKeyDown:function(Xi){Gn(Xi),$i&&$i(Xi)},onMouseDown:function(Xi){Bn(Xi),yi&&yi(Xi)},onChange:function(Xi){qn(Xi),ea&&ea(Xi)},onCompositionStart:function(Xi){Rr(Xi),Ri&&Ri(Xi)},onCompositionEnd:function(Xi){hr(Xi),ii&&ii(Xi)},onPaste:vr})),Ur},gr=Te.forwardRef(Wr);gr.displayName="Input";var Nr=gr;function Bi(Re){return Array.isArray(Re)?Re:Re!==void 0?[Re]:[]}var Ai=typeof window!="undefined"&&window.document&&window.document.documentElement,Fi=Ai;function $r(Re){return Re!=null}function Ct(Re){return!Re&&Re!==0}function dn(Re){return["string","number"].includes((0,me.Z)(Re))}function On(Re){var je=void 0;return Re&&(dn(Re.title)?je=Re.title.toString():dn(Re.label)&&(je=Re.label.toString())),je}function Nn(Re,je){Fi?Te.useLayoutEffect(Re,je):Te.useEffect(Re,je)}function Jn(Re){var je;return(je=Re.key)!==null&&je!==void 0?je:Re.value}var rr=function(je){je.preventDefault(),je.stopPropagation()},wr=function(je){var Rt=je.id,yt=je.prefixCls,rn=je.values,En=je.open,et=je.searchValue,at=je.autoClearSearchValue,ot=je.inputRef,St=je.placeholder,ln=je.disabled,gn=je.mode,Xt=je.showSearch,fn=je.autoFocus,Zn=je.autoComplete,yr=je.activeDescendantId,Gn=je.tabIndex,Bn=je.removeIcon,qn=je.maxTagCount,vr=je.maxTagTextLength,Rr=je.maxTagPlaceholder,hr=Rr===void 0?function(Mi){return"+ ".concat(Mi.length," ...")}:Rr,Xn=je.tagRender,Kr=je.onToggleOpen,Ur=je.onRemove,fi=je.onInputChange,Ci=je.onInputPaste,Di=je.onInputKeyDown,$i=je.onInputMouseDown,ea=je.onInputCompositionStart,yi=je.onInputCompositionEnd,Ri=Te.useRef(null),ii=(0,Te.useState)(0),ci=(0,De.Z)(ii,2),Ei=ci[0],Xi=ci[1],Pa=(0,Te.useState)(!1),wa=(0,De.Z)(Pa,2),ua=wa[0],ra=wa[1],ta="".concat(yt,"-selection"),Ti=En||gn==="multiple"&&at===!1||gn==="tags"?et:"",Sa=gn==="tags"||gn==="multiple"&&at===!1||Xt&&(En||ua);Nn(function(){Xi(Ri.current.scrollWidth)},[Ti]);function Ni(Mi,ma,Ca,ha,Ea){return Te.createElement("span",{className:He()("".concat(ta,"-item"),(0,ve.Z)({},"".concat(ta,"-item-disabled"),Ca)),title:On(Mi)},Te.createElement("span",{className:"".concat(ta,"-item-content")},ma),ha&&Te.createElement(Xe,{className:"".concat(ta,"-item-remove"),onMouseDown:rr,onClick:Ea,customizeIcon:Bn},"\xD7"))}function li(Mi,ma,Ca,ha,Ea){var La=function(pa){rr(pa),Kr(!En)};return Te.createElement("span",{onMouseDown:La},Xn({label:ma,value:Mi,disabled:Ca,closable:ha,onClose:Ea}))}function Ui(Mi){var ma=Mi.disabled,Ca=Mi.label,ha=Mi.value,Ea=!ln&&!ma,La=Ca;if(typeof vr=="number"&&(typeof Ca=="string"||typeof Ca=="number")){var Ua=String(La);Ua.length>vr&&(La="".concat(Ua.slice(0,vr),"..."))}var pa=function(qa){qa&&qa.stopPropagation(),Ur(Mi)};return typeof Xn=="function"?li(ha,La,ma,Ea,pa):Ni(Mi,La,ma,Ea,pa)}function da(Mi){var ma=typeof hr=="function"?hr(Mi):hr;return Ni({title:ma},ma,!1)}var Ji=Te.createElement("div",{className:"".concat(ta,"-search"),style:{width:Ei},onFocus:function(){ra(!0)},onBlur:function(){ra(!1)}},Te.createElement(Nr,{ref:ot,open:En,prefixCls:yt,id:Rt,inputElement:null,disabled:ln,autoFocus:fn,autoComplete:Zn,editable:Sa,activeDescendantId:yr,value:Ti,onKeyDown:Di,onMouseDown:$i,onChange:fi,onPaste:Ci,onCompositionStart:ea,onCompositionEnd:yi,tabIndex:Gn,attrs:vn(je,!0)}),Te.createElement("span",{ref:Ri,className:"".concat(ta,"-search-mirror"),"aria-hidden":!0},Ti,"\xA0")),oa=Te.createElement(zr,{prefixCls:"".concat(ta,"-overflow"),data:rn,renderItem:Ui,renderRest:da,suffix:Ji,itemKey:Jn,maxCount:qn});return Te.createElement(Te.Fragment,null,oa,!rn.length&&!Ti&&Te.createElement("span",{className:"".concat(ta,"-placeholder")},St))},_n=wr,Ye=function(je){var Rt=je.inputElement,yt=je.prefixCls,rn=je.id,En=je.inputRef,et=je.disabled,at=je.autoFocus,ot=je.autoComplete,St=je.activeDescendantId,ln=je.mode,gn=je.open,Xt=je.values,fn=je.placeholder,Zn=je.tabIndex,yr=je.showSearch,Gn=je.searchValue,Bn=je.activeValue,qn=je.maxLength,vr=je.onInputKeyDown,Rr=je.onInputMouseDown,hr=je.onInputChange,Xn=je.onInputPaste,Kr=je.onInputCompositionStart,Ur=je.onInputCompositionEnd,fi=je.title,Ci=Te.useState(!1),Di=(0,De.Z)(Ci,2),$i=Di[0],ea=Di[1],yi=ln==="combobox",Ri=yi||yr,ii=Xt[0],ci=Gn||"";yi&&Bn&&!$i&&(ci=Bn),Te.useEffect(function(){yi&&ea(!1)},[yi,Bn]);var Ei=ln!=="combobox"&&!gn&&!yr?!1:!!ci,Xi=fi===void 0?On(ii):fi,Pa=function(){if(ii)return null;var ua=Ei?{visibility:"hidden"}:void 0;return Te.createElement("span",{className:"".concat(yt,"-selection-placeholder"),style:ua},fn)};return Te.createElement(Te.Fragment,null,Te.createElement("span",{className:"".concat(yt,"-selection-search")},Te.createElement(Nr,{ref:En,prefixCls:yt,id:rn,open:gn,inputElement:Rt,disabled:et,autoFocus:at,autoComplete:ot,editable:Ri,activeDescendantId:St,value:ci,onKeyDown:vr,onMouseDown:Rr,onChange:function(ua){ea(!0),hr(ua)},onPaste:Xn,onCompositionStart:Kr,onCompositionEnd:Ur,tabIndex:Zn,attrs:vn(je,!0),maxLength:yi?qn:void 0})),!yi&&ii?Te.createElement("span",{className:"".concat(yt,"-selection-item"),title:Xi,style:Ei?{visibility:"hidden"}:void 0},ii.label):null,Pa())},mt=Ye;function Ht(Re){return![Je.ESC,Je.SHIFT,Je.BACKSPACE,Je.TAB,Je.WIN_KEY,Je.ALT,Je.META,Je.WIN_KEY_RIGHT,Je.CTRL,Je.SEMICOLON,Je.EQUALS,Je.CAPS_LOCK,Je.CONTEXT_MENU,Je.F1,Je.F2,Je.F3,Je.F4,Je.F5,Je.F6,Je.F7,Je.F8,Je.F9,Je.F10,Je.F11,Je.F12].includes(Re)}var qt=function(je,Rt){var yt=(0,Te.useRef)(null),rn=(0,Te.useRef)(!1),En=je.prefixCls,et=je.open,at=je.mode,ot=je.showSearch,St=je.tokenWithEnter,ln=je.autoClearSearchValue,gn=je.onSearch,Xt=je.onSearchSubmit,fn=je.onToggleOpen,Zn=je.onInputKeyDown,yr=je.domRef;Te.useImperativeHandle(Rt,function(){return{focus:function(){yt.current.focus()},blur:function(){yt.current.blur()}}});var Gn=tt(0),Bn=(0,De.Z)(Gn,2),qn=Bn[0],vr=Bn[1],Rr=function(ci){var Ei=ci.which;(Ei===Je.UP||Ei===Je.DOWN)&&ci.preventDefault(),Zn&&Zn(ci),Ei===Je.ENTER&&at==="tags"&&!rn.current&&!et&&(Xt==null||Xt(ci.target.value)),Ht(Ei)&&fn(!0)},hr=function(){vr(!0)},Xn=(0,Te.useRef)(null),Kr=function(ci){gn(ci,!0,rn.current)!==!1&&fn(!0)},Ur=function(){rn.current=!0},fi=function(ci){rn.current=!1,at!=="combobox"&&Kr(ci.target.value)},Ci=function(ci){var Ei=ci.target.value;if(St&&Xn.current&&/[\r\n]/.test(Xn.current)){var Xi=Xn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ei=Ei.replace(Xi,Xn.current)}Xn.current=null,Kr(Ei)},Di=function(ci){var Ei=ci.clipboardData,Xi=Ei.getData("text");Xn.current=Xi},$i=function(ci){var Ei=ci.target;if(Ei!==yt.current){var Xi=document.body.style.msTouchAction!==void 0;Xi?setTimeout(function(){yt.current.focus()}):yt.current.focus()}},ea=function(ci){var Ei=qn();ci.target!==yt.current&&!Ei&&at!=="combobox"&&ci.preventDefault(),(at!=="combobox"&&(!ot||!Ei)||!et)&&(et&&ln!==!1&&gn("",!0,!1),fn())},yi={inputRef:yt,onInputKeyDown:Rr,onInputMouseDown:hr,onInputChange:Ci,onInputPaste:Di,onInputCompositionStart:Ur,onInputCompositionEnd:fi},Ri=at==="multiple"||at==="tags"?Te.createElement(_n,(0,Ne.Z)({},je,yi)):Te.createElement(mt,(0,Ne.Z)({},je,yi));return Te.createElement("div",{ref:yr,className:"".concat(En,"-selector"),onClick:$i,onMouseDown:ea},Ri)},_e=Te.forwardRef(qt);_e.displayName="Selector";var xt=_e,Vt=se(62709),Pt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],tn=function(je){var Rt=je===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"}}},an=function(je,Rt){var yt=je.prefixCls,rn=je.disabled,En=je.visible,et=je.children,at=je.popupElement,ot=je.animation,St=je.transitionName,ln=je.dropdownStyle,gn=je.dropdownClassName,Xt=je.direction,fn=Xt===void 0?"ltr":Xt,Zn=je.placement,yr=je.builtinPlacements,Gn=je.dropdownMatchSelectWidth,Bn=je.dropdownRender,qn=je.dropdownAlign,vr=je.getPopupContainer,Rr=je.empty,hr=je.getTriggerDOMNode,Xn=je.onPopupVisibleChange,Kr=je.onPopupMouseEnter,Ur=(0,xe.Z)(je,Pt),fi="".concat(yt,"-dropdown"),Ci=at;Bn&&(Ci=Bn(at));var Di=Te.useMemo(function(){return yr||tn(Gn)},[yr,Gn]),$i=ot?"".concat(fi,"-").concat(ot):St,ea=typeof Gn=="number",yi=Te.useMemo(function(){return ea?null:Gn===!1?"minWidth":"width"},[Gn,ea]),Ri=ln;ea&&(Ri=(0,Le.Z)((0,Le.Z)({},Ri),{},{width:Gn}));var ii=Te.useRef(null);return Te.useImperativeHandle(Rt,function(){return{getPopupElement:function(){return ii.current}}}),Te.createElement(Vt.Z,(0,Ne.Z)({},Ur,{showAction:Xn?["click"]:[],hideAction:Xn?["click"]:[],popupPlacement:Zn||(fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Di,prefixCls:fi,popupTransitionName:$i,popup:Te.createElement("div",{ref:ii,onMouseEnter:Kr},Ci),stretch:yi,popupAlign:qn,popupVisible:En,getPopupContainer:vr,popupClassName:He()(gn,(0,ve.Z)({},"".concat(fi,"-empty"),Rr)),popupStyle:Ri,getTriggerDOMNode:hr,onPopupVisibleChange:Xn}),et)},Rn=Te.forwardRef(an);Rn.displayName="SelectTrigger";var Or=Rn,dr=se(84506);function ar(Re,je){var Rt=Re.key,yt;return"value"in Re&&(yt=Re.value),Rt!=null?Rt:yt!==void 0?yt:"rc-index-key-".concat(je)}function xr(Re,je){var Rt=Re||{},yt=Rt.label,rn=Rt.value,En=Rt.options,et=Rt.groupLabel,at=yt||(je?"children":"label");return{label:at,value:rn||"value",options:En||"options",groupLabel:et||at}}function Sr(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=je.fieldNames,yt=je.childrenAsData,rn=[],En=xr(Rt,!1),et=En.label,at=En.value,ot=En.options,St=En.groupLabel;function ln(gn,Xt){gn.forEach(function(fn){if(Xt||!(ot in fn)){var Zn=fn[at];rn.push({key:ar(fn,rn.length),groupOption:Xt,data:fn,label:fn[et],value:Zn})}else{var yr=fn[St];yr===void 0&&yt&&(yr=fn.label),rn.push({key:ar(fn,rn.length),group:!0,data:fn,label:yr}),ln(fn[ot],!0)}})}return ln(Re,!1),rn}function bt(Re){var je=(0,Le.Z)({},Re);return"props"in je||Object.defineProperty(je,"props",{get:function(){return wt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),je}}),je}function ht(Re,je){if(!je||!je.length)return null;var Rt=!1;function yt(En,et){var at=(0,dr.Z)(et),ot=at[0],St=at.slice(1);if(!ot)return[En];var ln=En.split(ot);return Rt=Rt||ln.length>1,ln.reduce(function(gn,Xt){return[].concat((0,qe.Z)(gn),(0,qe.Z)(yt(Xt,St)))},[]).filter(function(gn){return gn})}var rn=yt(Re,je);return Rt?rn:null}var Dt=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Sn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Vn(Re){return Re==="tags"||Re==="multiple"}var Cn=Te.forwardRef(function(Re,je){var Rt,yt,rn=Re.id,En=Re.prefixCls,et=Re.className,at=Re.showSearch,ot=Re.tagRender,St=Re.direction,ln=Re.omitDomProps,gn=Re.displayValues,Xt=Re.onDisplayValuesChange,fn=Re.emptyOptions,Zn=Re.notFoundContent,yr=Zn===void 0?"Not Found":Zn,Gn=Re.onClear,Bn=Re.mode,qn=Re.disabled,vr=Re.loading,Rr=Re.getInputElement,hr=Re.getRawInputElement,Xn=Re.open,Kr=Re.defaultOpen,Ur=Re.onDropdownVisibleChange,fi=Re.activeValue,Ci=Re.onActiveValueChange,Di=Re.activeDescendantId,$i=Re.searchValue,ea=Re.autoClearSearchValue,yi=Re.onSearch,Ri=Re.onSearchSplit,ii=Re.tokenSeparators,ci=Re.allowClear,Ei=Re.suffixIcon,Xi=Re.clearIcon,Pa=Re.OptionList,wa=Re.animation,ua=Re.transitionName,ra=Re.dropdownStyle,ta=Re.dropdownClassName,Ti=Re.dropdownMatchSelectWidth,Sa=Re.dropdownRender,Ni=Re.dropdownAlign,li=Re.placement,Ui=Re.builtinPlacements,da=Re.getPopupContainer,Ji=Re.showAction,oa=Ji===void 0?[]:Ji,Mi=Re.onFocus,ma=Re.onBlur,Ca=Re.onKeyUp,ha=Re.onKeyDown,Ea=Re.onMouseDown,La=(0,xe.Z)(Re,Dt),Ua=Vn(Bn),pa=(at!==void 0?at:Ua)||Bn==="combobox",Ba=(0,Le.Z)({},La);Sn.forEach(function(Na){delete Ba[Na]}),ln==null||ln.forEach(function(Na){delete Ba[Na]});var qa=Te.useState(!1),Xa=(0,De.Z)(qa,2),so=Xa[0],Ha=Xa[1];Te.useEffect(function(){Ha(gt())},[]);var Aa=Te.useRef(null),zi=Te.useRef(null),Gi=Te.useRef(null),fa=Te.useRef(null),Ma=Te.useRef(null),Ka=Kt(),io=(0,De.Z)(Ka,3),ho=io[0],Io=io[1],No=io[2];Te.useImperativeHandle(je,function(){var Na,ga;return{focus:(Na=fa.current)===null||Na===void 0?void 0:Na.focus,blur:(ga=fa.current)===null||ga===void 0?void 0:ga.blur,scrollTo:function(es){var va;return(va=Ma.current)===null||va===void 0?void 0:va.scrollTo(es)}}});var lo=Te.useMemo(function(){var Na;if(Bn!=="combobox")return $i;var ga=(Na=gn[0])===null||Na===void 0?void 0:Na.value;return typeof ga=="string"||typeof ga=="number"?String(ga):""},[$i,Bn,gn]),Bo=Bn==="combobox"&&typeof Rr=="function"&&Rr()||null,ia=typeof hr=="function"&&hr(),_i=Pn(zi,ia==null||(Rt=ia.props)===null||Rt===void 0?void 0:Rt.ref),Oa=Te.useState(!1),Da=(0,De.Z)(Oa,2),co=Da[0],ao=Da[1];dt(function(){ao(!0)},[]);var hs=ft(!1,{defaultValue:Kr,value:Xn}),$o=(0,De.Z)(hs,2),ps=$o[0],sa=$o[1],Gr=co?ps:!1,Pi=!yr&&fn;(qn||Pi&&Gr&&Bn==="combobox")&&(Gr=!1);var Oi=Pi?!1:Gr,Ki=Te.useCallback(function(Na){var ga=Na!==void 0?Na:!Gr;qn||(sa(ga),Gr!==ga&&(Ur==null||Ur(ga)))},[qn,Gr,sa,Ur]),ja=Te.useMemo(function(){return(ii||[]).some(function(Na){return[` `,`\r `].includes(Na)})},[ii]),Ga=function(ga,jo,es){var va=!0,Wa=ga;Ci==null||Ci(null);var Fa=es?null:ht(ga,ii);return Bn!=="combobox"&&Fa&&(Wa="",Ri==null||Ri(Fa),Ki(!1),va=!1),yi&&lo!==Wa&&yi(Wa,{source:jo?"typing":"effect"}),va},Ho=function(ga){!ga||!ga.trim()||yi(ga,{source:"submit"})};Te.useEffect(function(){!Gr&&!Ua&&Bn!=="combobox"&&Ga("",!1,!1)},[Gr]),Te.useEffect(function(){ps&&qn&&sa(!1),qn&&Io(!1)},[qn]);var Zo=tt(),ls=(0,De.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(ga){var jo=ya(),es=ga.which;if(es===Je.ENTER&&(Bn!=="combobox"&&ga.preventDefault(),Gr||Ki(!0)),Ro(!!lo),es===Je.BACKSPACE&&!jo&&Ua&&!lo&&gn.length){for(var va=(0,qe.Z)(gn),Wa=null,Fa=va.length-1;Fa>=0;Fa-=1){var po=va[Fa];if(!po.disabled){va.splice(Fa,1),Wa=po;break}}Wa&&Xt(va,{type:"remove",values:[Wa]})}for(var is=arguments.length,js=new Array(is>1?is-1:0),gs=1;gs1?jo-1:0),va=1;va1?Fa-1:0),is=1;is1&&arguments[1]!==void 0?arguments[1]:{},Rt=[];return Te.Children.forEach(Re,function(yt){yt==null&&!je.keepEmpty||(Array.isArray(yt)?Rt=Rt.concat(ki(yt)):(0,Ut.isFragment)(yt)&&yt.props?Rt=Rt.concat(ki(yt.props.children,je)):Rt.push(yt))}),Rt}var vi=["children","value"],qi=["children"];function bi(Re){var je=Re,Rt=je.key,yt=je.props,rn=yt.children,En=yt.value,et=(0,xe.Z)(yt,vi);return(0,Le.Z)({key:Rt,value:En!==void 0?En:Rt,children:rn},et)}function di(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ki(Re).map(function(Rt,yt){if(!Te.isValidElement(Rt)||!Rt.type)return null;var rn=Rt,En=rn.type.isSelectOptGroup,et=rn.key,at=rn.props,ot=at.children,St=(0,xe.Z)(at,qi);return je||!En?bi(Rt):(0,Le.Z)((0,Le.Z)({key:"__RC_SELECT_GRP__".concat(et===null?yt:et,"__"),label:et},St),{},{options:di(ot)})}).filter(function(Rt){return Rt})}function Wi(Re,je,Rt,yt,rn){return Te.useMemo(function(){var En=Re,et=!Re;et&&(En=di(je));var at=new Map,ot=new Map,St=function(Xt,fn,Zn){Zn&&typeof Zn=="string"&&Xt.set(fn[Zn],fn)};function ln(gn){for(var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fn=0;fn1&&arguments[1]!==void 0?arguments[1]:1,da=Ci.length,Ji=0;Ji1&&arguments[1]!==void 0?arguments[1]:!1;Ei(li);var da={source:Ui?"keyboard":"mouse"},Ji=Ci[li];if(!Ji){yr(null,-1,da);return}yr(Ji.value,li,da)};(0,Te.useEffect)(function(){Xi(Gn!==!1?yi(0):-1)},[Ci.length,St]);var Pa=Te.useCallback(function(Ni){return vr.has(Ni)&&ot!=="combobox"},[ot,(0,qe.Z)(vr).toString(),vr.size]);(0,Te.useEffect)(function(){var Ni=setTimeout(function(){if(!at&&et&&vr.size===1){var Ui=Array.from(vr)[0],da=Ci.findIndex(function(Ji){var oa=Ji.data;return oa.value===Ui});da!==-1&&(Xi(da),ea(da))}});if(et){var li;(li=Di.current)===null||li===void 0||li.scrollTo(void 0)}return function(){return clearTimeout(Ni)}},[et,St,Zn.length]);var wa=function(li){li!==void 0&&Bn(li,{selected:!vr.has(li)}),at||ln(!1)};if(Te.useImperativeHandle(Rt,function(){return{onKeyDown:function(li){var Ui=li.which,da=li.ctrlKey;switch(Ui){case Je.N:case Je.P:case Je.UP:case Je.DOWN:{var Ji=0;if(Ui===Je.UP?Ji=-1:Ui===Je.DOWN?Ji=1:on()&&da&&(Ui===Je.N?Ji=1:Ui===Je.P&&(Ji=-1)),Ji!==0){var oa=yi(ci+Ji,Ji);ea(oa),Xi(oa,!0)}break}case Je.ENTER:{var Mi=Ci[ci];Mi&&!Mi.data.disabled?wa(Mi.value):wa(void 0),et&&li.preventDefault();break}case Je.ESC:ln(!1),et&&li.stopPropagation()}},onKeyUp:function(){},scrollTo:function(li){ea(li)}}}),Ci.length===0)return Te.createElement("div",{role:"listbox",id:"".concat(En,"_list"),className:"".concat(fi,"-empty"),onMouseDown:$i},gn);var ua=Object.keys(Rr).map(function(Ni){return Rr[Ni]}),ra=function(li){return li.label};function ta(Ni,li){var Ui=Ni.group;return{role:Ui?"presentation":"option",id:"".concat(En,"_list_").concat(li)}}var Ti=function(li){var Ui=Ci[li];if(!Ui)return null;var da=Ui.data||{},Ji=da.value,oa=Ui.group,Mi=vn(da,!0),ma=ra(Ui);return Ui?Te.createElement("div",(0,Ne.Z)({"aria-label":typeof ma=="string"&&!oa?ma:null},Mi,{key:li},ta(Ui,li),{"aria-selected":Pa(Ji)}),Ji):null},Sa={role:"listbox",id:"".concat(En,"_list")};return Te.createElement(Te.Fragment,null,hr&&Te.createElement("div",(0,Ne.Z)({},Sa,{style:{height:0,width:0,overflow:"hidden"}}),Ti(ci-1),Ti(ci),Ti(ci+1)),Te.createElement(oi.Z,{itemKey:"key",ref:Di,data:Ci,height:Kr,itemHeight:Ur,fullHeight:!1,onMouseDown:$i,onScroll:Xt,virtual:hr,direction:Xn,innerProps:hr?null:Sa},function(Ni,li){var Ui,da=Ni.group,Ji=Ni.groupOption,oa=Ni.data,Mi=Ni.label,ma=Ni.value,Ca=oa.key;if(da){var ha,Ea=(ha=oa.title)!==null&&ha!==void 0?ha:jn(Mi)?Mi.toString():void 0;return Te.createElement("div",{className:He()(fi,"".concat(fi,"-group")),title:Ea},Mi!==void 0?Mi:Ca)}var La=oa.disabled,Ua=oa.title,pa=oa.children,Ba=oa.style,qa=oa.className,Xa=(0,xe.Z)(oa,Mn),so=na(Xa,ua),Ha=Pa(ma),Aa="".concat(fi,"-option"),zi=He()(fi,Aa,qa,(Ui={},(0,ve.Z)(Ui,"".concat(Aa,"-grouped"),Ji),(0,ve.Z)(Ui,"".concat(Aa,"-active"),ci===li&&!La),(0,ve.Z)(Ui,"".concat(Aa,"-disabled"),La),(0,ve.Z)(Ui,"".concat(Aa,"-selected"),Ha),Ui)),Gi=ra(Ni),fa=!qn||typeof qn=="function"||Ha,Ma=typeof Gi=="number"?Gi:Gi||ma,Ka=jn(Ma)?Ma.toString():void 0;return Ua!==void 0&&(Ka=Ua),Te.createElement("div",(0,Ne.Z)({},vn(so),hr?{}:ta(Ni,li),{"aria-selected":Ha,className:zi,title:Ka,onMouseMove:function(){ci===li||La||Xi(li)},onClick:function(){La||wa(ma)},style:Ba}),Te.createElement("div",{className:"".concat(Aa,"-content")},Ma),Te.isValidElement(qn)||Ha,fa&&Te.createElement(Xe,{className:"".concat(fi,"-option-state"),customizeIcon:qn,customizeIconProps:{isSelected:Ha}},Ha?"\u2713":null))}))},_r=Te.forwardRef(Mr);_r.displayName="OptionList";var Jr=_r;function ti(Re){var je=Re.mode,Rt=Re.options,yt=Re.children,rn=Re.backfill,En=Re.allowClear,et=Re.placeholder,at=Re.getInputElement,ot=Re.showSearch,St=Re.onSearch,ln=Re.defaultOpen,gn=Re.autoFocus,Xt=Re.labelInValue,fn=Re.value,Zn=Re.inputValue,yr=Re.optionLabelProp,Gn=isMultiple(je),Bn=ot!==void 0?ot:Gn||je==="combobox",qn=Rt||convertChildrenToData(yt);if(warning(je!=="tags"||qn.every(function(Xn){return!Xn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),je==="tags"||je==="combobox"){var vr=qn.some(function(Xn){return Xn.options?Xn.options.some(function(Kr){return typeof("value"in Kr?Kr.value:Kr.key)=="number"}):typeof("value"in Xn?Xn.value:Xn.key)=="number"});warning(!vr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(je!=="combobox"||!yr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(je==="combobox"||!rn,"`backfill` only works with `combobox` mode."),warning(je==="combobox"||!at,"`getInputElement` only work with `combobox` mode."),noteOnce(je!=="combobox"||!at||!En||!et,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),St&&!Bn&&je!=="combobox"&&je!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!ln||gn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fn!=null){var Rr=toArray(fn);warning(!Xt||Rr.every(function(Xn){return _typeof(Xn)==="object"&&("key"in Xn||"value"in Xn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Gn||Array.isArray(fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(yt){var hr=null;toNodeArray(yt).some(function(Xn){if(!React.isValidElement(Xn)||!Xn.type)return!1;var Kr=Xn,Ur=Kr.type;if(Ur.isSelectOption)return!1;if(Ur.isSelectOptGroup){var fi=toNodeArray(Xn.props.children).every(function(Ci){return!React.isValidElement(Ci)||!Xn.type||Ci.type.isSelectOption?!0:(hr=Ci.type,!1)});return!fi}return hr=Ur,!0}),hr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(hr.displayName||hr.name||hr,"`.")),warning(Zn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Yr(Re,je){if(Re){var Rt=function yt(rn){for(var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et=0;et2&&arguments[2]!==void 0?arguments[2]:{},Ki=Oi.source,ja=Ki===void 0?"keyboard":Ki;_i(Pi),et&&yt==="combobox"&&Gr!==null&&ja==="keyboard"&&No(String(Gr))},[et,yt]),co=function(Pi,Oi,Ki){var ja=function(){var ms,Wo=qa(Pi);return[ci?{label:Wo==null?void 0:Wo[ta.label],value:Pi,key:(ms=Wo==null?void 0:Wo.key)!==null&&ms!==void 0?ms:Pi}:Pi,bt(Wo)]};if(Oi&&fn){var Ga=ja(),Ho=(0,De.Z)(Ga,2),Zo=Ho[0],ls=Ho[1];fn(Zo,ls)}else if(!Oi&&Zn&&Ki!=="clear"){var ya=ja(),Ro=(0,De.Z)(ya,2),cs=Ro[0],ul=Ro[1];Zn(cs,ul)}},ao=Qi(function(Gr,Pi){var Oi,Ki=wa?Pi.selected:!0;Ki?Oi=wa?[].concat((0,qe.Z)(Ba),[Gr]):[Gr]:Oi=Ba.filter(function(ja){return ja.value!==Gr}),Ka(Oi),co(Gr,Ki),yt==="combobox"?No(""):(!Vn||Xt)&&(li(""),No(""))}),hs=function(Pi,Oi){Ka(Pi);var Ki=Oi.type,ja=Oi.values;(Ki==="remove"||Ki==="clear")&&ja.forEach(function(Ga){co(Ga.value,!1,Ki)})},$o=function(Pi,Oi){if(li(Pi),No(null),Oi.source==="submit"){var Ki=(Pi||"").trim();if(Ki){var ja=Array.from(new Set([].concat((0,qe.Z)(so),[Ki])));Ka(ja),co(Ki,!0),li("")}return}Oi.source!=="blur"&&(yt==="combobox"&&Ka(Pi),ln==null||ln(Pi))},ps=function(Pi){var Oi=Pi;yt!=="tags"&&(Oi=Pi.map(function(ja){var Ga=Ji.get(ja);return Ga==null?void 0:Ga.value}).filter(function(ja){return ja!==void 0}));var Ki=Array.from(new Set([].concat((0,qe.Z)(so),(0,qe.Z)(Oi))));Ka(Ki),Ki.forEach(function(ja){co(ja,!0)})},sa=Te.useMemo(function(){var Gr=fi!==!1&&Gn!==!1;return(0,Le.Z)((0,Le.Z)({},Ui),{},{flattenOptions:Ma,onActiveValue:Da,defaultActiveFirstOption:Oa,onSelect:ao,menuItemSelectedIcon:Ur,rawValues:so,fieldNames:ta,virtual:Gr,direction:Ci,listHeight:$i,listItemHeight:yi,childrenAsData:ua})},[Ui,Ma,Da,Oa,ao,Ur,so,ta,fi,Gn,$i,yi,ua]);return Te.createElement(At.Provider,{value:sa},Te.createElement(yn,(0,Ne.Z)({},Xi,{id:Pa,prefixCls:En,ref:je,omitDomProps:Hr,mode:yt,displayValues:Xa,onDisplayValuesChange:hs,direction:Ci,searchValue:Ni,onSearch:$o,autoClearSearchValue:Xt,onSearchSplit:ps,dropdownMatchSelectWidth:Gn,OptionList:Jr,emptyOptions:!Ma.length,activeValue:Io,activeDescendantId:"".concat(Pa,"_list_").concat(ia)})))}),Si=Ii;Si.Option=ca,Si.OptGroup=xi;var Pe=Si,We=Pe,Ke=se(10366),Ge=se(8745),st=se(33603),pt=se(9708),Tt=se(53124),hn=se(98866),xn=se(88258),lr=se(98675),Lr=se(65223),tr=se(4173),Tn=se(87244),kn=se(13458),Fn=se(78642),Qn=se(46163),Ar=function(Re,je){var Rt={};for(var yt in Re)Object.prototype.hasOwnProperty.call(Re,yt)&&je.indexOf(yt)<0&&(Rt[yt]=Re[yt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rn=0,yt=Object.getOwnPropertySymbols(Re);rn{var Rt,{prefixCls:yt,bordered:rn=!0,className:En,rootClassName:et,getPopupContainer:at,popupClassName:ot,dropdownClassName:St,listHeight:ln=256,placement:gn,listItemHeight:Xt=24,size:fn,disabled:Zn,notFoundContent:yr,status:Gn,builtinPlacements:Bn,dropdownMatchSelectWidth:qn,popupMatchSelectWidth:vr,direction:Rr,style:hr,allowClear:Xn}=Re,Kr=Ar(Re,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Ur,getPrefixCls:fi,renderEmpty:Ci,direction:Di,virtual:$i,popupMatchSelectWidth:ea,popupOverflow:yi,select:Ri}=Te.useContext(Tt.E_),ii=fi("select",yt),ci=fi(),Ei=Rr!=null?Rr:Di,{compactSize:Xi,compactItemClassnames:Pa}=(0,tr.ri)(ii,Ei),[wa,ua]=(0,Tn.Z)(ii),ra=Te.useMemo(()=>{const{mode:Aa}=Kr;if(Aa!=="combobox")return Aa===or?"combobox":Aa},[Kr.mode]),ta=ra==="multiple"||ra==="tags",Ti=(0,Fn.Z)(Kr.suffixIcon,Kr.showArrow),Sa=(Rt=vr!=null?vr:qn)!==null&&Rt!==void 0?Rt:ea,{status:Ni,hasFeedback:li,isFormItemInput:Ui,feedbackIcon:da}=Te.useContext(Lr.aM),Ji=(0,pt.F)(Ni,Gn);let oa;yr!==void 0?oa=yr:ra==="combobox"?oa=null:oa=(Ci==null?void 0:Ci("Select"))||Te.createElement(xn.Z,{componentName:"Select"});const{suffixIcon:Mi,itemIcon:ma,removeIcon:Ca,clearIcon:ha}=(0,Qn.Z)(Object.assign(Object.assign({},Kr),{multiple:ta,hasFeedback:li,feedbackIcon:da,showSuffixIcon:Ti,prefixCls:ii,showArrow:Kr.showArrow,componentName:"Select"})),Ea=Xn===!0?{clearIcon:ha}:Xn,La=(0,Ke.Z)(Kr,["suffixIcon","itemIcon"]),Ua=He()(ot||St,{[`${ii}-dropdown-${Ei}`]:Ei==="rtl"},et,ua),pa=(0,lr.Z)(Aa=>{var zi;return(zi=fn!=null?fn:Xi)!==null&&zi!==void 0?zi:Aa}),Ba=Te.useContext(hn.Z),qa=Zn!=null?Zn:Ba,Xa=He()({[`${ii}-lg`]:pa==="large",[`${ii}-sm`]:pa==="small",[`${ii}-rtl`]:Ei==="rtl",[`${ii}-borderless`]:!rn,[`${ii}-in-form-item`]:Ui},(0,pt.Z)(ii,Ji,li),Pa,Ri==null?void 0:Ri.className,En,et,ua),so=Te.useMemo(()=>gn!==void 0?gn:Ei==="rtl"?"bottomRight":"bottomLeft",[gn,Ei]),Ha=(0,kn.Z)(Bn,yi);return wa(Te.createElement(We,Object.assign({ref:je,virtual:$i,showSearch:Ri==null?void 0:Ri.showSearch},La,{style:Object.assign(Object.assign({},Ri==null?void 0:Ri.style),hr),dropdownMatchSelectWidth:Sa,builtinPlacements:Ha,transitionName:(0,st.m)(ci,"slide-up",Kr.transitionName),listHeight:ln,listItemHeight:Xt,mode:ra,prefixCls:ii,placement:so,direction:Ei,suffixIcon:Mi,menuItemSelectedIcon:ma,removeIcon:Ca,allowClear:Ea,notFoundContent:oa,className:Xa,getPopupContainer:at||Ur,dropdownClassName:Ua,disabled:qa})))},pr=Te.forwardRef(ir),fr=(0,Ge.Z)(pr);pr.SECRET_COMBOBOX_MODE_DO_NOT_USE=or,pr.Option=ca,pr.OptGroup=xi,pr._InternalPanelDoNotUseOrYouWillBeFired=fr;var Br=pr},87244:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Se}});var oe=se(14747),He=se(80110),Ne=se(45503),qe=se(67968),ve=se(67771),Le=se(33297);const De=Ce=>{const{optionHeight:Ve,optionFontSize:Ue,optionLineHeight:wt,optionPadding:gt}=Ce;return{position:"relative",display:"block",minHeight:Ve,padding:gt,color:Ce.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:wt,boxSizing:"border-box"}};var me=Ce=>{const{antCls:Ve,componentCls:Ue}=Ce,wt=`${Ue}-item`,gt=`&${Ve}-slide-up-enter${Ve}-slide-up-enter-active`,Lt=`&${Ve}-slide-up-appear${Ve}-slide-up-appear-active`,Je=`&${Ve}-slide-up-leave${Ve}-slide-up-leave-active`,Ut=`${Ue}-dropdown-placement-`;return[{[`${Ue}-dropdown`]:Object.assign(Object.assign({},(0,oe.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[` ${gt}${Ut}bottomLeft, ${Lt}${Ut}bottomLeft `]:{animationName:ve.fJ},[` ${gt}${Ut}topLeft, ${Lt}${Ut}topLeft, ${gt}${Ut}topRight, ${Lt}${Ut}topRight `]:{animationName:ve.Qt},[`${Je}${Ut}bottomLeft`]:{animationName:ve.Uw},[` ${Je}${Ut}topLeft, ${Je}${Ut}topRight `]:{animationName:ve.ly},"&-hidden":{display:"none"},[`${wt}`]:Object.assign(Object.assign({},De(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${wt}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${wt}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${wt}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${wt}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ve.oN)(Ce,"slide-up"),(0,ve.oN)(Ce,"slide-down"),(0,Le.Fm)(Ce,"move-up"),(0,Le.Fm)(Ce,"move-down")]};const Te=2,rt=Ce=>{let{controlHeightSM:Ve,controlHeight:Ue,lineWidth:wt}=Ce;const gt=(Ue-Ve)/2-wt,Lt=Math.ceil(gt/2);return[gt,Lt]};function Ie(Ce,Ve){const{componentCls:Ue,iconCls:wt}=Ce,gt=`${Ue}-selection-overflow`,Lt=Ce.multipleSelectItemHeight,[Je]=rt(Ce),Ut=Ve?`${Ue}-${Ve}`:"";return{[`${Ue}-multiple${Ut}`]:{fontSize:Ce.fontSize,[gt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ue}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Je-Te}px ${Te*2}px`,borderRadius:Ce.borderRadius,[`${Ue}-show-search&`]:{cursor:"text"},[`${Ue}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Te}px 0`,lineHeight:`${Lt}px`,visibility:"hidden",content:'"\\a0"'}},[` &${Ue}-show-arrow ${Ue}-selector, &${Ue}-allow-clear ${Ue}-selector `]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${Ue}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Lt,marginTop:Te,marginBottom:Te,lineHeight:`${Lt-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Te*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${Ue}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,oe.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${wt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${gt}-item + ${gt}-item`]:{[`${Ue}-selection-search`]:{marginInlineStart:0}},[`${Ue}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-Je,"\n &-input,\n &-mirror\n ":{height:Lt,fontFamily:Ce.fontFamily,lineHeight:`${Lt}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ue}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var dt=Ce=>{const{componentCls:Ve}=Ce,Ue=(0,Ne.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),wt=(0,Ne.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,gt]=rt(Ce);return[Ie(Ce),Ie(Ue,"sm"),{[`${Ve}-multiple${Ve}-sm`]:{[`${Ve}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Ve}-selection-search`]:{marginInlineStart:gt}}},Ie(wt,"lg")]};function ct(Ce,Ve){const{componentCls:Ue,inputPaddingHorizontalBase:wt,borderRadius:gt}=Ce,Lt=Ce.controlHeight-Ce.lineWidth*2,Je=Math.ceil(Ce.fontSize*1.25),Ut=Ve?`${Ue}-${Ve}`:"";return{[`${Ue}-single${Ut}`]:{fontSize:Ce.fontSize,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,oe.Wf)(Ce)),{display:"flex",borderRadius:gt,[`${Ue}-selection-search`]:{position:"absolute",top:0,insetInlineStart:wt,insetInlineEnd:wt,bottom:0,"&-input":{width:"100%"}},[` ${Ue}-selection-item, ${Ue}-selection-placeholder `]:{padding:0,lineHeight:`${Lt}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Lt}px`}},[`${Ue}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:after`,`${Ue}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Ue}-show-arrow ${Ue}-selection-item, &${Ue}-show-arrow ${Ue}-selection-placeholder `]:{paddingInlineEnd:Je},[`&${Ue}-open ${Ue}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${wt}px`,[`${Ue}-selection-search-input`]:{height:Lt},"&:after":{lineHeight:`${Lt}px`}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${wt}px`,"&:after":{display:"none"}}}}}}}function $e(Ce){const{componentCls:Ve}=Ce,Ue=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[ct(Ce),ct((0,Ne.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Ve}-single${Ve}-sm`]:{[`&:not(${Ve}-customize-input)`]:{[`${Ve}-selection-search`]:{insetInlineStart:Ue,insetInlineEnd:Ue},[`${Ve}-selector`]:{padding:`0 ${Ue}px`},[`&${Ve}-show-arrow ${Ve}-selection-search`]:{insetInlineEnd:Ue+Ce.fontSize*1.5},[` &${Ve}-show-arrow ${Ve}-selection-item, &${Ve}-show-arrow ${Ve}-selection-placeholder `]:{paddingInlineEnd:Ce.fontSize*1.5}}}},ct((0,Ne.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const Ae=Ce=>{const{componentCls:Ve,selectorBg:Ue}=Ce;return{position:"relative",backgroundColor:Ue,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ve}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ve}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Ve}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},ft=function(Ce,Ve){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:wt,borderHoverColor:gt,outlineColor:Lt,antCls:Je}=Ve,Ut=Ue?{[`${wt}-selector`]:{borderColor:gt}}:{};return{[Ce]:{[`&:not(${wt}-disabled):not(${wt}-customize-input):not(${Je}-pagination-size-changer)`]:Object.assign(Object.assign({},Ut),{[`${wt}-focused& ${wt}-selector`]:{borderColor:gt,boxShadow:`0 0 0 ${Ve.controlOutlineWidth}px ${Lt}`,outline:0},[`&:hover ${wt}-selector`]:{borderColor:gt}})}}},Yt=Ce=>{const{componentCls:Ve}=Ce;return{[`${Ve}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Qe=Ce=>{const{componentCls:Ve,inputPaddingHorizontalBase:Ue,iconCls:wt}=Ce;return{[Ve]:Object.assign(Object.assign({},(0,oe.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ve}-customize-input) ${Ve}-selector`]:Object.assign(Object.assign({},Ae(Ce)),Yt(Ce)),[`${Ve}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},oe.vS),[`${Ve}-selection-placeholder`]:Object.assign(Object.assign({},oe.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Ve}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[wt]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ve}-suffix)`]:{pointerEvents:"auto"}},[`${Ve}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ve}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ue,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${Ve}-clear`]:{opacity:1}}}),[`${Ve}-has-feedback`]:{[`${Ve}-clear`]:{insetInlineEnd:Ue+Ce.fontSize+Ce.paddingXS}}}},it=Ce=>{const{componentCls:Ve}=Ce;return[{[Ve]:{[`&-borderless ${Ve}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ve}-in-form-item`]:{width:"100%"}}},Qe(Ce),$e(Ce),dt(Ce),me(Ce),{[`${Ve}-rtl`]:{direction:"rtl"}},ft(Ve,(0,Ne.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),ft(`${Ve}-status-error`,(0,Ne.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),ft(`${Ve}-status-warning`,(0,Ne.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,He.c)(Ce,{borderElCls:`${Ve}-selector`,focusElCls:`${Ve}-focused`})]};var Se=(0,qe.Z)("Select",(Ce,Ve)=>{let{rootPrefixCls:Ue}=Ve;const wt=(0,Ne.TS)(Ce,{rootPrefixCls:Ue,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[it(wt)]},Ce=>{const{fontSize:Ve,lineHeight:Ue,controlHeight:wt,controlPaddingHorizontal:gt,zIndexPopupBase:Lt,colorText:Je,fontWeightStrong:Ut,controlItemBgActive:It,controlItemBgHover:pn,colorBgContainer:$t,colorFillSecondary:Pn,controlHeightLG:Kn,controlHeightSM:Yn,colorBgContainerDisabled:Xe,colorTextDisabled:we}=Ce;return{zIndexPopup:Lt+50,optionSelectedColor:Je,optionSelectedFontWeight:Ut,optionSelectedBg:It,optionActiveBg:pn,optionPadding:`${(wt-Ve*Ue)/2}px ${gt}px`,optionFontSize:Ve,optionLineHeight:Ue,optionHeight:wt,selectorBg:$t,clearBg:$t,singleItemHeightLG:Kn,multipleItemBg:Pn,multipleItemBorderColor:"transparent",multipleItemHeight:Yn,multipleItemHeightLG:wt,multipleSelectorBgDisabled:Xe,multipleItemColorDisabled:we,multipleItemBorderColorDisabled:"transparent"}})},13458:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return He}});const oe=Ne=>{const ve={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ne==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ve),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ve),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ve),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ve),{points:["br","tr"],offset:[0,-4]})}};function He(Ne,qe){return Ne||oe(qe)}},78642:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return oe}});function oe(He,Ne){return Ne!==void 0?Ne:He!==null}},46163:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return xe}});var oe=se(18299),He=se(16646),Ne=se(73475),qe=se(42922),ve=se(3407),Le=se(72395),De=se(67294);function xe(me){let{suffixIcon:Te,clearIcon:rt,menuItemSelectedIcon:Ie,removeIcon:Et,loading:dt,multiple:ct,hasFeedback:$e,prefixCls:Ae,showSuffixIcon:ft,feedbackIcon:Yt,showArrow:Qe,componentName:it}=me;const Se=rt!=null?rt:De.createElement(He.Z,null),Ce=gt=>Te===null&&!$e&&!Qe?null:De.createElement(De.Fragment,null,ft!==!1&>,$e&&Yt);let Ve=null;if(Te!==void 0)Ve=Ce(Te);else if(dt)Ve=Ce(De.createElement(ve.Z,{spin:!0}));else{const gt=`${Ae}-suffix`;Ve=Lt=>{let{open:Je,showSearch:Ut}=Lt;return Ce(Je&&Ut?De.createElement(Le.Z,{className:gt}):De.createElement(qe.Z,{className:gt}))}}let Ue=null;Ie!==void 0?Ue=Ie:ct?Ue=De.createElement(oe.Z,null):Ue=null;let wt=null;return Et!==void 0?wt=Et:wt=De.createElement(Ne.Z,null),{clearIcon:Se,suffixIcon:Ve,itemIcon:Ue,removeIcon:wt}}},46303:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return ce}});var oe=se(94184),He=se.n(oe),Ne=se(67294),qe=se(53124),ve=se(10366),De=he=>{const{prefixCls:de,className:le,style:Ee,size:Ze,shape:vt}=he,Nt=He()({[`${de}-lg`]:Ze==="large",[`${de}-sm`]:Ze==="small"}),Ft=He()({[`${de}-circle`]:vt==="circle",[`${de}-square`]:vt==="square",[`${de}-round`]:vt==="round"}),zt=Ne.useMemo(()=>typeof Ze=="number"?{width:Ze,height:Ze,lineHeight:`${Ze}px`}:{},[Ze]);return Ne.createElement("span",{className:He()(de,Nt,Ft,le),style:Object.assign(Object.assign({},zt),Ee)})},xe=se(34367),me=se(67968),Te=se(45503);const rt=new xe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ie=he=>({height:he,lineHeight:`${he}px`}),Et=he=>Object.assign({width:he},Ie(he)),dt=he=>({background:he.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:rt,animationDuration:he.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ct=he=>Object.assign({width:he*5,minWidth:he*5},Ie(he)),$e=he=>{const{skeletonAvatarCls:de,gradientFromColor:le,controlHeight:Ee,controlHeightLG:Ze,controlHeightSM:vt}=he;return{[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},Et(Ee)),[`${de}${de}-circle`]:{borderRadius:"50%"},[`${de}${de}-lg`]:Object.assign({},Et(Ze)),[`${de}${de}-sm`]:Object.assign({},Et(vt))}},Ae=he=>{const{controlHeight:de,borderRadiusSM:le,skeletonInputCls:Ee,controlHeightLG:Ze,controlHeightSM:vt,gradientFromColor:Nt}=he;return{[`${Ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt,borderRadius:le},ct(de)),[`${Ee}-lg`]:Object.assign({},ct(Ze)),[`${Ee}-sm`]:Object.assign({},ct(vt))}},ft=he=>Object.assign({width:he},Ie(he)),Yt=he=>{const{skeletonImageCls:de,imageSizeBase:le,gradientFromColor:Ee,borderRadiusSM:Ze}=he;return{[`${de}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ee,borderRadius:Ze},ft(le*2)),{[`${de}-path`]:{fill:"#bfbfbf"},[`${de}-svg`]:Object.assign(Object.assign({},ft(le)),{maxWidth:le*4,maxHeight:le*4}),[`${de}-svg${de}-svg-circle`]:{borderRadius:"50%"}}),[`${de}${de}-circle`]:{borderRadius:"50%"}}},Qe=(he,de,le)=>{const{skeletonButtonCls:Ee}=he;return{[`${le}${Ee}-circle`]:{width:de,minWidth:de,borderRadius:"50%"},[`${le}${Ee}-round`]:{borderRadius:de}}},it=he=>Object.assign({width:he*2,minWidth:he*2},Ie(he)),Se=he=>{const{borderRadiusSM:de,skeletonButtonCls:le,controlHeight:Ee,controlHeightLG:Ze,controlHeightSM:vt,gradientFromColor:Nt}=he;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Nt,borderRadius:de,width:Ee*2,minWidth:Ee*2},it(Ee))},Qe(he,Ee,le)),{[`${le}-lg`]:Object.assign({},it(Ze))}),Qe(he,Ze,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},it(vt))}),Qe(he,vt,`${le}-sm`))},Ce=he=>{const{componentCls:de,skeletonAvatarCls:le,skeletonTitleCls:Ee,skeletonParagraphCls:Ze,skeletonButtonCls:vt,skeletonInputCls:Nt,skeletonImageCls:Ft,controlHeight:zt,controlHeightLG:Gt,controlHeightSM:$n,gradientFromColor:mr,padding:_t,marginSM:bn,borderRadius:ur,titleHeight:Tr,blockRadius:lt,paragraphLiHeight:Jt,controlHeightXS:Hn,paragraphMarginTop:er}=he;return{[`${de}`]:{display:"table",width:"100%",[`${de}-header`]:{display:"table-cell",paddingInlineEnd:_t,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:mr},Et(zt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},Et(Gt)),[`${le}-sm`]:Object.assign({},Et($n))},[`${de}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ee}`]:{width:"100%",height:Tr,background:mr,borderRadius:lt,[`+ ${Ze}`]:{marginBlockStart:$n}},[`${Ze}`]:{padding:0,"> li":{width:"100%",height:Jt,listStyle:"none",background:mr,borderRadius:lt,"+ li":{marginBlockStart:Hn}}},[`${Ze}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${de}-content`]:{[`${Ee}, ${Ze} > li`]:{borderRadius:ur}}},[`${de}-with-avatar ${de}-content`]:{[`${Ee}`]:{marginBlockStart:bn,[`+ ${Ze}`]:{marginBlockStart:er}}},[`${de}${de}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Se(he)),$e(he)),Ae(he)),Yt(he)),[`${de}${de}-block`]:{width:"100%",[`${vt}`]:{width:"100%"},[`${Nt}`]:{width:"100%"}},[`${de}${de}-active`]:{[` ${Ee}, ${Ze} > li, ${le}, ${vt}, ${Nt}, ${Ft} `]:Object.assign({},dt(he))}}};var Ve=(0,me.Z)("Skeleton",he=>{const{componentCls:de}=he,le=(0,Te.TS)(he,{skeletonAvatarCls:`${de}-avatar`,skeletonTitleCls:`${de}-title`,skeletonParagraphCls:`${de}-paragraph`,skeletonButtonCls:`${de}-button`,skeletonInputCls:`${de}-input`,skeletonImageCls:`${de}-image`,imageSizeBase:he.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${he.gradientFromColor} 25%, ${he.gradientToColor} 37%, ${he.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(le)]},he=>{const{colorFillContent:de,colorFill:le}=he,Ee=de,Ze=le;return{color:Ee,colorGradientEnd:Ze,gradientFromColor:Ee,gradientToColor:Ze,titleHeight:he.controlHeight/2,blockRadius:he.borderRadiusSM,paragraphMarginTop:he.marginLG+he.marginXXS,paragraphLiHeight:he.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wt=he=>{const{prefixCls:de,className:le,rootClassName:Ee,active:Ze,shape:vt="circle",size:Nt="default"}=he,{getPrefixCls:Ft}=Ne.useContext(qe.E_),zt=Ft("skeleton",de),[Gt,$n]=Ve(zt),mr=(0,ve.Z)(he,["prefixCls","className"]),_t=He()(zt,`${zt}-element`,{[`${zt}-active`]:Ze},le,Ee,$n);return Gt(Ne.createElement("div",{className:_t},Ne.createElement(De,Object.assign({prefixCls:`${zt}-avatar`,shape:vt,size:Nt},mr))))},Lt=he=>{const{prefixCls:de,className:le,rootClassName:Ee,active:Ze,block:vt=!1,size:Nt="default"}=he,{getPrefixCls:Ft}=Ne.useContext(qe.E_),zt=Ft("skeleton",de),[Gt,$n]=Ve(zt),mr=(0,ve.Z)(he,["prefixCls"]),_t=He()(zt,`${zt}-element`,{[`${zt}-active`]:Ze,[`${zt}-block`]:vt},le,Ee,$n);return Gt(Ne.createElement("div",{className:_t},Ne.createElement(De,Object.assign({prefixCls:`${zt}-button`,size:Nt},mr))))};const Je="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var It=he=>{const{prefixCls:de,className:le,rootClassName:Ee,style:Ze,active:vt}=he,{getPrefixCls:Nt}=Ne.useContext(qe.E_),Ft=Nt("skeleton",de),[zt,Gt]=Ve(Ft),$n=He()(Ft,`${Ft}-element`,{[`${Ft}-active`]:vt},le,Ee,Gt);return zt(Ne.createElement("div",{className:$n},Ne.createElement("div",{className:He()(`${Ft}-image`,le),style:Ze},Ne.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Ft}-image-svg`},Ne.createElement("path",{d:Je,className:`${Ft}-image-path`})))))},$t=he=>{const{prefixCls:de,className:le,rootClassName:Ee,active:Ze,block:vt,size:Nt="default"}=he,{getPrefixCls:Ft}=Ne.useContext(qe.E_),zt=Ft("skeleton",de),[Gt,$n]=Ve(zt),mr=(0,ve.Z)(he,["prefixCls"]),_t=He()(zt,`${zt}-element`,{[`${zt}-active`]:Ze,[`${zt}-block`]:vt},le,Ee,$n);return Gt(Ne.createElement("div",{className:_t},Ne.createElement(De,Object.assign({prefixCls:`${zt}-input`,size:Nt},mr))))},Pn=se(87462),Kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Yn=Kn,Xe=se(84089),we=function(de,le){return Ne.createElement(Xe.Z,(0,Pn.Z)({},de,{ref:le,icon:Yn}))},Mt=Ne.forwardRef(we),Kt=he=>{const{prefixCls:de,className:le,rootClassName:Ee,style:Ze,active:vt,children:Nt}=he,{getPrefixCls:Ft}=Ne.useContext(qe.E_),zt=Ft("skeleton",de),[Gt,$n]=Ve(zt),mr=He()(zt,`${zt}-element`,{[`${zt}-active`]:vt},$n,le,Ee),_t=Nt!=null?Nt:Ne.createElement(Mt,null);return Gt(Ne.createElement("div",{className:mr},Ne.createElement("div",{className:He()(`${zt}-image`,le),style:Ze},_t)))},tt=se(74902),Zt=he=>{const de=Ft=>{const{width:zt,rows:Gt=2}=he;if(Array.isArray(zt))return zt[Ft];if(Gt-1===Ft)return zt},{prefixCls:le,className:Ee,style:Ze,rows:vt}=he,Nt=(0,tt.Z)(Array(vt)).map((Ft,zt)=>Ne.createElement("li",{key:zt,style:{width:de(zt)}}));return Ne.createElement("ul",{className:He()(le,Ee),style:Ze},Nt)},wn=he=>{let{prefixCls:de,className:le,width:Ee,style:Ze}=he;return Ne.createElement("h3",{className:He()(de,le),style:Object.assign({width:Ee},Ze)})};function Qt(he){return he&&typeof he=="object"?he:{}}function en(he,de){return he&&!de?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Dn(he,de){return!he&&de?{width:"38%"}:he&&de?{width:"50%"}:{}}function vn(he,de){const le={};return(!he||!de)&&(le.width="61%"),!he&&de?le.rows=3:le.rows=2,le}const Be=he=>{const{prefixCls:de,loading:le,className:Ee,rootClassName:Ze,style:vt,children:Nt,avatar:Ft=!1,title:zt=!0,paragraph:Gt=!0,active:$n,round:mr}=he,{getPrefixCls:_t,direction:bn,skeleton:ur}=Ne.useContext(qe.E_),Tr=_t("skeleton",de),[lt,Jt]=Ve(Tr);if(le||!("loading"in he)){const Hn=!!Ft,er=!!zt,nr=!!Gt;let Er;if(Hn){const zr=Object.assign(Object.assign({prefixCls:`${Tr}-avatar`},en(er,nr)),Qt(Ft));Er=Ne.createElement("div",{className:`${Tr}-header`},Ne.createElement(De,Object.assign({},zr)))}let Pr;if(er||nr){let zr;if(er){const gr=Object.assign(Object.assign({prefixCls:`${Tr}-title`},Dn(Hn,nr)),Qt(zt));zr=Ne.createElement(wn,Object.assign({},gr))}let Wr;if(nr){const gr=Object.assign(Object.assign({prefixCls:`${Tr}-paragraph`},vn(Hn,er)),Qt(Gt));Wr=Ne.createElement(Zt,Object.assign({},gr))}Pr=Ne.createElement("div",{className:`${Tr}-content`},zr,Wr)}const Ir=He()(Tr,{[`${Tr}-with-avatar`]:Hn,[`${Tr}-active`]:$n,[`${Tr}-rtl`]:bn==="rtl",[`${Tr}-round`]:mr},ur==null?void 0:ur.className,Ee,Ze,Jt);return lt(Ne.createElement("div",{className:Ir,style:Object.assign(Object.assign({},ur==null?void 0:ur.style),vt)},Er,Pr))}return typeof Nt!="undefined"?Nt:null};Be.Button=Lt,Be.Avatar=wt,Be.Input=$t,Be.Image=It,Be.Node=Kt;var fe=Be,ce=fe},55054:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return Ve}});var oe=se(67294),He=se(57838),Ne=se(96159),qe=se(94184),ve=se.n(qe),Le=se(53124),De=se(46303),me=Ue=>{const{value:wt,formatter:gt,precision:Lt,decimalSeparator:Je,groupSeparator:Ut="",prefixCls:It}=Ue;let pn;if(typeof gt=="function")pn=gt(wt);else{const $t=String(wt),Pn=$t.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Pn||$t==="-")pn=$t;else{const Kn=Pn[1];let Yn=Pn[2]||"0",Xe=Pn[4]||"";Yn=Yn.replace(/\B(?=(\d{3})+(?!\d))/g,Ut),typeof Lt=="number"&&(Xe=Xe.padEnd(Lt,"0").slice(0,Lt>0?Lt:0)),Xe&&(Xe=`${Je}${Xe}`),pn=[oe.createElement("span",{key:"int",className:`${It}-content-value-int`},Kn,Yn),Xe&&oe.createElement("span",{key:"decimal",className:`${It}-content-value-decimal`},Xe)]}}return oe.createElement("span",{className:`${It}-content-value`},pn)},Te=se(14747),rt=se(67968),Ie=se(45503);const Et=Ue=>{const{componentCls:wt,marginXXS:gt,padding:Lt,colorTextDescription:Je,titleFontSize:Ut,colorTextHeading:It,contentFontSize:pn,fontFamily:$t}=Ue;return{[`${wt}`]:Object.assign(Object.assign({},(0,Te.Wf)(Ue)),{[`${wt}-title`]:{marginBottom:gt,color:Je,fontSize:Ut},[`${wt}-skeleton`]:{paddingTop:Lt},[`${wt}-content`]:{color:It,fontSize:pn,fontFamily:$t,[`${wt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${wt}-content-prefix, ${wt}-content-suffix`]:{display:"inline-block"},[`${wt}-content-prefix`]:{marginInlineEnd:gt},[`${wt}-content-suffix`]:{marginInlineStart:gt}}})}};var dt=(0,rt.Z)("Statistic",Ue=>{const wt=(0,Ie.TS)(Ue,{});return[Et(wt)]},Ue=>{const{fontSizeHeading3:wt,fontSize:gt}=Ue;return{titleFontSize:gt,contentFontSize:wt}}),$e=Ue=>{const{prefixCls:wt,className:gt,rootClassName:Lt,style:Je,valueStyle:Ut,value:It=0,title:pn,valueRender:$t,prefix:Pn,suffix:Kn,loading:Yn=!1,onMouseEnter:Xe,onMouseLeave:we,decimalSeparator:Mt=".",groupSeparator:cn=","}=Ue,{getPrefixCls:Kt,direction:tt,statistic:ut}=oe.useContext(Le.E_),Zt=Kt("statistic",wt),[Wn,wn]=dt(Zt),Qt=oe.createElement(me,Object.assign({decimalSeparator:Mt,groupSeparator:cn,prefixCls:Zt},Ue,{value:It})),en=ve()(Zt,{[`${Zt}-rtl`]:tt==="rtl"},ut==null?void 0:ut.className,gt,Lt,wn);return Wn(oe.createElement("div",{className:en,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Je),onMouseEnter:Xe,onMouseLeave:we},pn&&oe.createElement("div",{className:`${Zt}-title`},pn),oe.createElement(De.Z,{paragraph:!1,loading:Yn,className:`${Zt}-skeleton`},oe.createElement("div",{style:Ut,className:`${Zt}-content`},Pn&&oe.createElement("span",{className:`${Zt}-content-prefix`},Pn),$t?$t(Qt):Qt,Kn&&oe.createElement("span",{className:`${Zt}-content-suffix`},Kn)))))};const Ae=[["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 ft(Ue,wt){let gt=Ue;const Lt=/\[[^\]]*]/g,Je=(wt.match(Lt)||[]).map($t=>$t.slice(1,-1)),Ut=wt.replace(Lt,"[]"),It=Ae.reduce(($t,Pn)=>{let[Kn,Yn]=Pn;if($t.includes(Kn)){const Xe=Math.floor(gt/Yn);return gt-=Xe*Yn,$t.replace(new RegExp(`${Kn}+`,"g"),we=>{const Mt=we.length;return Xe.toString().padStart(Mt,"0")})}return $t},Ut);let pn=0;return It.replace(Lt,()=>{const $t=Je[pn];return pn+=1,$t})}function Yt(Ue,wt){const{format:gt=""}=wt,Lt=new Date(Ue).getTime(),Je=Date.now(),Ut=Math.max(Lt-Je,0);return ft(Ut,gt)}const Qe=1e3/30;function it(Ue){return new Date(Ue).getTime()}const Se=Ue=>{const{value:wt,format:gt="HH:mm:ss",onChange:Lt,onFinish:Je}=Ue,Ut=(0,He.Z)(),It=oe.useRef(null),pn=()=>{Je==null||Je(),It.current&&(clearInterval(It.current),It.current=null)},$t=()=>{const Yn=it(wt);Yn>=Date.now()&&(It.current=setInterval(()=>{Ut(),Lt==null||Lt(Yn-Date.now()),Yn($t(),()=>{It.current&&(clearInterval(It.current),It.current=null)}),[wt]);const Pn=(Yn,Xe)=>Yt(Yn,Object.assign(Object.assign({},Xe),{format:gt})),Kn=Yn=>(0,Ne.Tm)(Yn,{title:void 0});return oe.createElement($e,Object.assign({},Ue,{valueRender:Kn,formatter:Pn}))};var Ce=oe.memo(Se);$e.Countdown=Ce;var Ve=$e},33507:function(sn,nn){"use strict";const se=oe=>({[oe.componentCls]:{[`${oe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut}, opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}},[`${oe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut}, opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}}});nn.Z=se},33297:function(sn,nn,se){"use strict";se.d(nn,{Fm:function(){return Ie}});var oe=se(34367),He=se(93590);const Ne=new oe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qe=new oe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ve=new oe.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Le=new oe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),De=new oe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xe=new oe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),me=new oe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Te=new oe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),rt={"move-up":{inKeyframes:me,outKeyframes:Te},"move-down":{inKeyframes:Ne,outKeyframes:qe},"move-left":{inKeyframes:ve,outKeyframes:Le},"move-right":{inKeyframes:De,outKeyframes:xe}},Ie=(Et,dt)=>{const{antCls:ct}=Et,$e=`${ct}-${dt}`,{inKeyframes:Ae,outKeyframes:ft}=rt[dt];return[(0,He.R)($e,Ae,ft,Et.motionDurationMid),{[` ${$e}-enter, ${$e}-appear `]:{opacity:0,animationTimingFunction:Et.motionEaseOutCirc},[`${$e}-leave`]:{animationTimingFunction:Et.motionEaseInOutCirc}}]}},67771:function(sn,nn,se){"use strict";se.d(nn,{Qt:function(){return ve},Uw:function(){return qe},fJ:function(){return Ne},ly:function(){return Le},oN:function(){return Ie}});var oe=se(34367),He=se(93590);const Ne=new oe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),qe=new oe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ve=new oe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Le=new oe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),De=new oe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),xe=new oe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new oe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Te=new oe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),rt={"slide-up":{inKeyframes:Ne,outKeyframes:qe},"slide-down":{inKeyframes:ve,outKeyframes:Le},"slide-left":{inKeyframes:De,outKeyframes:xe},"slide-right":{inKeyframes:me,outKeyframes:Te}},Ie=(Et,dt)=>{const{antCls:ct}=Et,$e=`${ct}-${dt}`,{inKeyframes:Ae,outKeyframes:ft}=rt[dt];return[(0,He.R)($e,Ae,ft,Et.motionDurationMid),{[` ${$e}-enter, ${$e}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Et.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${$e}-leave`]:{animationTimingFunction:Et.motionEaseInQuint}}]}},47897:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return he}});var oe=se(3407),He=se(94184),Ne=se.n(He);function qe(){return qe=Object.assign?Object.assign.bind():function(de){for(var le=1;lede.length)&&(le=de.length);for(var Ee=0,Ze=new Array(le);Ee=0)&&(Ee[vt]=de[vt]);return Ee}function $e(de,le){if(de==null)return{};var Ee=ct(de,le),Ze,vt;if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(de);for(vt=0;vt=0)&&Object.prototype.propertyIsEnumerable.call(de,Ze)&&(Ee[Ze]=de[Ze])}return Ee}var Ae=se(67294);function ft(de){if(Array.isArray(de))return de}function Yt(de,le){var Ee=de==null?null:typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(Ee!=null){var Ze,vt,Nt,Ft,zt=[],Gt=!0,$n=!1;try{if(Nt=(Ee=Ee.call(de)).next,le===0){if(Object(Ee)!==Ee)return;Gt=!1}else for(;!(Gt=(Ze=Nt.call(Ee)).done)&&(zt.push(Ze.value),zt.length!==le);Gt=!0);}catch(mr){$n=!0,vt=mr}finally{try{if(!Gt&&Ee.return!=null&&(Ft=Ee.return(),Object(Ft)!==Ft))return}finally{if($n)throw vt}}return zt}}function Qe(de,le){(le==null||le>de.length)&&(le=de.length);for(var Ee=0,Ze=new Array(le);Ee=$t.F1&&Ee<=$t.F12)return!1;switch(Ee){case $t.ALT:case $t.CAPS_LOCK:case $t.CONTEXT_MENU:case $t.CTRL:case $t.DOWN:case $t.END:case $t.ESC:case $t.HOME:case $t.INSERT:case $t.LEFT:case $t.MAC_FF_META:case $t.META:case $t.NUMLOCK:case $t.NUM_CENTER:case $t.PAGE_DOWN:case $t.PAGE_UP:case $t.PAUSE:case $t.PRINT_SCREEN:case $t.RIGHT:case $t.SHIFT:case $t.UP:case $t.WIN_KEY:case $t.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=$t.ZERO&&le<=$t.NINE||le>=$t.NUM_ZERO&&le<=$t.NUM_MULTIPLY||le>=$t.A&&le<=$t.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case $t.SPACE:case $t.QUESTION_MARK:case $t.NUM_PLUS:case $t.NUM_MINUS:case $t.NUM_PERIOD:case $t.NUM_DIVISION:case $t.SEMICOLON:case $t.DASH:case $t.EQUALS:case $t.COMMA:case $t.PERIOD:case $t.SLASH:case $t.APOSTROPHE:case $t.SINGLE_QUOTE:case $t.OPEN_SQUARE_BRACKET:case $t.BACKSLASH:case $t.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Pn=$t,Kn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Yn=Ae.forwardRef(function(de,le){var Ee,Ze=de.prefixCls,vt=Ze===void 0?"rc-switch":Ze,Nt=de.className,Ft=de.checked,zt=de.defaultChecked,Gt=de.disabled,$n=de.loadingIcon,mr=de.checkedChildren,_t=de.unCheckedChildren,bn=de.onClick,ur=de.onChange,Tr=de.onKeyDown,lt=$e(de,Kn),Jt=pn(!1,{value:Ft,defaultValue:zt}),Hn=dt(Jt,2),er=Hn[0],nr=Hn[1];function Er(Wr,gr){var Nr=er;return Gt||(Nr=Wr,nr(Nr),ur==null||ur(Nr,gr)),Nr}function Pr(Wr){Wr.which===Pn.LEFT?Er(!1,Wr):Wr.which===Pn.RIGHT&&Er(!0,Wr),Tr==null||Tr(Wr)}function Ir(Wr){var gr=Er(!er,Wr);bn==null||bn(gr,Wr)}var zr=Ne()(vt,Nt,(Ee={},xe(Ee,"".concat(vt,"-checked"),er),xe(Ee,"".concat(vt,"-disabled"),Gt),Ee));return Ae.createElement("button",qe({},lt,{type:"button",role:"switch","aria-checked":er,disabled:Gt,className:zr,ref:le,onKeyDown:Pr,onClick:Ir}),$n,Ae.createElement("span",{className:"".concat(vt,"-inner")},Ae.createElement("span",{className:"".concat(vt,"-inner-checked")},mr),Ae.createElement("span",{className:"".concat(vt,"-inner-unchecked")},_t)))});Yn.displayName="Switch";var Xe=Yn,we=se(45353),Mt=se(53124),cn=se(98866),Kt=se(98675),tt=se(84780),ut=se(14747),Zt=se(67968),Wn=se(45503);const wn=de=>{const{componentCls:le,trackHeightSM:Ee,trackPadding:Ze,trackMinWidthSM:vt,innerMinMarginSM:Nt,innerMaxMarginSM:Ft,handleSizeSM:zt}=de,Gt=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:vt,height:Ee,lineHeight:`${Ee}px`,[`${le}-inner`]:{paddingInlineStart:Ft,paddingInlineEnd:Nt,[`${Gt}-checked`]:{marginInlineStart:`calc(-100% + ${zt+Ze*2}px - ${Ft*2}px)`,marginInlineEnd:`calc(100% - ${zt+Ze*2}px + ${Ft*2}px)`},[`${Gt}-unchecked`]:{marginTop:-Ee,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:zt,height:zt},[`${le}-loading-icon`]:{top:(zt-de.switchLoadingIconSize)/2,fontSize:de.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:Nt,paddingInlineEnd:Ft,[`${Gt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Gt}-unchecked`]:{marginInlineStart:`calc(100% - ${zt+Ze*2}px + ${Ft*2}px)`,marginInlineEnd:`calc(-100% + ${zt+Ze*2}px - ${Ft*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${zt+Ze}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${Gt}`]:{[`${Gt}-unchecked`]:{marginInlineStart:de.marginXXS/2,marginInlineEnd:-de.marginXXS/2}},[`&${le}-checked ${Gt}`]:{[`${Gt}-checked`]:{marginInlineStart:-de.marginXXS/2,marginInlineEnd:de.marginXXS/2}}}}}}},Qt=de=>{const{componentCls:le,handleSize:Ee}=de;return{[le]:{[`${le}-loading-icon${de.iconCls}`]:{position:"relative",top:(Ee-de.fontSize)/2,color:de.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:de.switchColor}}}},en=de=>{const{componentCls:le,motion:Ee,trackPadding:Ze,handleBg:vt,handleShadow:Nt,handleSize:Ft}=de,zt=`${le}-handle`;return{[le]:{[zt]:{position:"absolute",top:Ze,insetInlineStart:Ze,width:Ft,height:Ft,transition:`all ${de.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:vt,borderRadius:Ft/2,boxShadow:Nt,transition:`all ${de.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${zt}`]:{insetInlineStart:`calc(100% - ${Ft+Ze}px)`},[`&:not(${le}-disabled):active`]:Ee?{[`${zt}::before`]:{insetInlineEnd:de.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${zt}::before`]:{insetInlineEnd:0,insetInlineStart:de.switchHandleActiveInset}}:{}}}},Dn=de=>{const{componentCls:le,trackHeight:Ee,trackPadding:Ze,innerMinMargin:vt,innerMaxMargin:Nt,handleSize:Ft}=de,zt=`${le}-inner`;return{[le]:{[zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Nt,paddingInlineEnd:vt,transition:`padding-inline-start ${de.switchDuration} ease-in-out, padding-inline-end ${de.switchDuration} ease-in-out`,[`${zt}-checked, ${zt}-unchecked`]:{display:"block",color:de.colorTextLightSolid,fontSize:de.fontSizeSM,transition:`margin-inline-start ${de.switchDuration} ease-in-out, margin-inline-end ${de.switchDuration} ease-in-out`,pointerEvents:"none"},[`${zt}-checked`]:{marginInlineStart:`calc(-100% + ${Ft+Ze*2}px - ${Nt*2}px)`,marginInlineEnd:`calc(100% - ${Ft+Ze*2}px + ${Nt*2}px)`},[`${zt}-unchecked`]:{marginTop:-Ee,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${zt}`]:{paddingInlineStart:vt,paddingInlineEnd:Nt,[`${zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${zt}-unchecked`]:{marginInlineStart:`calc(100% - ${Ft+Ze*2}px + ${Nt*2}px)`,marginInlineEnd:`calc(-100% + ${Ft+Ze*2}px - ${Nt*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${zt}`]:{[`${zt}-unchecked`]:{marginInlineStart:Ze*2,marginInlineEnd:-Ze*2}},[`&${le}-checked ${zt}`]:{[`${zt}-checked`]:{marginInlineStart:-Ze*2,marginInlineEnd:Ze*2}}}}}},vn=de=>{const{componentCls:le,trackHeight:Ee,trackMinWidth:Ze}=de;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(de)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ze,height:Ee,lineHeight:`${Ee}px`,verticalAlign:"middle",background:de.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${de.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:de.colorTextTertiary}}),(0,ut.Qy)(de)),{[`&${le}-checked`]:{background:de.switchColor,[`&:hover:not(${le}-disabled)`]:{background:de.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:de.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var Be=(0,Zt.Z)("Switch",de=>{const le=(0,Wn.TS)(de,{switchDuration:de.motionDurationMid,switchColor:de.colorPrimary,switchDisabledOpacity:de.opacityLoading,switchLoadingIconSize:de.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${de.opacityLoading})`,switchHandleActiveInset:"-30%"});return[vn(le),Dn(le),en(le),Qt(le),wn(le)]},de=>{const{fontSize:le,lineHeight:Ee,controlHeight:Ze,colorWhite:vt}=de,Nt=le*Ee,Ft=Ze/2,zt=2,Gt=Nt-zt*2,$n=Ft-zt*2;return{trackHeight:Nt,trackHeightSM:Ft,trackMinWidth:Gt*2+zt*4,trackMinWidthSM:$n*2+zt*2,trackPadding:zt,handleBg:vt,handleSize:Gt,handleSizeSM:$n,handleShadow:`0 2px 4px 0 ${new tt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Gt/2,innerMaxMargin:Gt+zt+zt*2,innerMinMarginSM:$n/2,innerMaxMarginSM:$n+zt+zt*2}}),fe=function(de,le){var Ee={};for(var Ze in de)Object.prototype.hasOwnProperty.call(de,Ze)&&le.indexOf(Ze)<0&&(Ee[Ze]=de[Ze]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ze=Object.getOwnPropertySymbols(de);vt{const{prefixCls:Ee,size:Ze,disabled:vt,loading:Nt,className:Ft,rootClassName:zt,style:Gt}=de,$n=fe(de,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:mr,direction:_t,switch:bn}=Ae.useContext(Mt.E_),ur=Ae.useContext(cn.Z),Tr=(vt!=null?vt:ur)||Nt,lt=mr("switch",Ee),Jt=Ae.createElement("div",{className:`${lt}-handle`},Nt&&Ae.createElement(oe.Z,{className:`${lt}-loading-icon`})),[Hn,er]=Be(lt),nr=(0,Kt.Z)(Ze),Er=Ne()(bn==null?void 0:bn.className,{[`${lt}-small`]:nr==="small",[`${lt}-loading`]:Nt,[`${lt}-rtl`]:_t==="rtl"},Ft,zt,er),Pr=Object.assign(Object.assign({},bn==null?void 0:bn.style),Gt);return Hn(Ae.createElement(we.Z,{component:"Switch"},Ae.createElement(Xe,Object.assign({},$n,{prefixCls:lt,className:Er,style:Pr,disabled:Tr,ref:le,loadingIcon:Jt}))))});ce.__ANT_SWITCH=!0;var he=ce},66368:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return Si}});var oe=se(73475),He=se(25877),Ne=se(38308),qe=se(94184),ve=se.n(qe),Le=se(87462),De=se(4942),xe=se(1413),me=se(97685),Te=se(71002),rt=se(45987),Ie=se(67294),Et=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Pe=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Pe)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Pe==null?void 0:Pe.substr(0,4))};function dt(Pe){var We=Ie.useRef();We.current=Pe;var Ke=Ie.useCallback(function(){for(var Ge,st=arguments.length,pt=new Array(st),Tt=0;Ttot?(et=rn,Re.current="x"):(et=En,Re.current="y"),We(-et,-et)&&yt.preventDefault()}var Rt=(0,Ie.useRef)(null);Rt.current={onTouchStart:pr,onTouchMove:fr,onTouchEnd:Br,onWheel:je},Ie.useEffect(function(){function yt(at){Rt.current.onTouchStart(at)}function rn(at){Rt.current.onTouchMove(at)}function En(at){Rt.current.onTouchEnd(at)}function et(at){Rt.current.onWheel(at)}return document.addEventListener("touchmove",rn,{passive:!1}),document.addEventListener("touchend",En,{passive:!1}),Pe.current.addEventListener("touchstart",yt,{passive:!1}),Pe.current.addEventListener("wheel",et),function(){document.removeEventListener("touchmove",rn),document.removeEventListener("touchend",En)}},[])}function Wn(Pe){var We=(0,Ie.useState)(0),Ke=(0,me.Z)(We,2),Ge=Ke[0],st=Ke[1],pt=(0,Ie.useRef)(0),Tt=(0,Ie.useRef)();return Tt.current=Pe,ft(function(){var hn;(hn=Tt.current)===null||hn===void 0||hn.call(Tt)},[Ge]),function(){pt.current===Ge&&(pt.current+=1,st(pt.current))}}function wn(Pe){var We=(0,Ie.useRef)([]),Ke=(0,Ie.useState)({}),Ge=(0,me.Z)(Ke,2),st=Ge[1],pt=(0,Ie.useRef)(typeof Pe=="function"?Pe():Pe),Tt=Wn(function(){var xn=pt.current;We.current.forEach(function(lr){xn=lr(xn)}),We.current=[],pt.current=xn,st({})});function hn(xn){We.current.push(xn),Tt()}return[pt.current,hn]}var Qt={width:0,height:0,left:0,top:0,right:0};function en(Pe,We,Ke,Ge,st,pt,Tt){var hn=Tt.tabs,xn=Tt.tabPosition,lr=Tt.rtl,Lr,tr,Tn;return["top","bottom"].includes(xn)?(Lr="width",tr=lr?"right":"left",Tn=Math.abs(Ke)):(Lr="height",tr="top",Tn=-Ke),(0,Ie.useMemo)(function(){if(!hn.length)return[0,0];for(var kn=hn.length,Fn=kn,Qn=0;QnTn+We){Fn=Qn-1;break}}for(var or=0,ir=kn-1;ir>=0;ir-=1){var pr=Pe.get(hn[ir].key)||Qt;if(pr[tr]=Fn?[0,0]:[or,Fn]},[Pe,We,Ge,st,pt,Tn,xn,hn.map(function(kn){return kn.key}).join("_"),lr])}function Dn(Pe){var We;return Pe instanceof Map?(We={},Pe.forEach(function(Ke,Ge){We[Ge]=Ke})):We=Pe,JSON.stringify(We)}var vn="TABS_DQ";function Be(Pe){return String(Pe).replace(/"/g,vn)}function fe(Pe,We,Ke,Ge){return!(!Ke||Ge||Pe===!1||Pe===void 0&&(We===!1||We===null))}function ce(Pe,We){var Ke=Pe.prefixCls,Ge=Pe.editable,st=Pe.locale,pt=Pe.style;return!Ge||Ge.showAdd===!1?null:Ie.createElement("button",{ref:We,type:"button",className:"".concat(Ke,"-nav-add"),style:pt,"aria-label":(st==null?void 0:st.addAriaLabel)||"Add tab",onClick:function(hn){Ge.onEdit("add",{event:hn})}},Ge.addIcon||"+")}var he=Ie.forwardRef(ce),de=Ie.forwardRef(function(Pe,We){var Ke=Pe.position,Ge=Pe.prefixCls,st=Pe.extra;if(!st)return null;var pt,Tt={};return(0,Te.Z)(st)==="object"&&!Ie.isValidElement(st)?Tt=st:Tt.right=st,Ke==="right"&&(pt=Tt.right),Ke==="left"&&(pt=Tt.left),pt?Ie.createElement("div",{className:"".concat(Ge,"-extra-content"),ref:We},pt):null}),le=de,Ee=se(62709);function Ze(Pe,We,Ke){var Ge=React.useRef({});return(!("value"in Ge.current)||Ke(Ge.current.condition,We))&&(Ge.current.value=Pe(),Ge.current.condition=We),Ge.current.value}function vt(Pe,We){typeof Pe=="function"?Pe(We):(0,Te.Z)(Pe)==="object"&&Pe&&"current"in Pe&&(Pe.current=We)}function Nt(){for(var Pe=arguments.length,We=new Array(Pe),Ke=0;Ke=Gt.F1&&Ke<=Gt.F12)return!1;switch(Ke){case Gt.ALT:case Gt.CAPS_LOCK:case Gt.CONTEXT_MENU:case Gt.CTRL:case Gt.DOWN:case Gt.END:case Gt.ESC:case Gt.HOME:case Gt.INSERT:case Gt.LEFT:case Gt.MAC_FF_META:case Gt.META:case Gt.NUMLOCK:case Gt.NUM_CENTER:case Gt.PAGE_DOWN:case Gt.PAGE_UP:case Gt.PAUSE:case Gt.PRINT_SCREEN:case Gt.RIGHT:case Gt.SHIFT:case Gt.UP:case Gt.WIN_KEY:case Gt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Gt.ZERO&&We<=Gt.NINE||We>=Gt.NUM_ZERO&&We<=Gt.NUM_MULTIPLY||We>=Gt.A&&We<=Gt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Gt.SPACE:case Gt.QUESTION_MARK:case Gt.NUM_PLUS:case Gt.NUM_MINUS:case Gt.NUM_PERIOD:case Gt.NUM_DIVISION:case Gt.SEMICOLON:case Gt.DASH:case Gt.EQUALS:case Gt.COMMA:case Gt.PERIOD:case Gt.SLASH:case Gt.APOSTROPHE:case Gt.SINGLE_QUOTE:case Gt.OPEN_SQUARE_BRACKET:case Gt.BACKSLASH:case Gt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},$n=Gt,mr=function(We){return+setTimeout(We,16)},_t=function(We){return clearTimeout(We)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(mr=function(We){return window.requestAnimationFrame(We)},_t=function(We){return window.cancelAnimationFrame(We)});var bn=0,ur=new Map;function Tr(Pe){ur.delete(Pe)}var lt=function(We){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;bn+=1;var Ge=bn;function st(pt){if(pt===0)Tr(Ge),We();else{var Tt=mr(function(){st(pt-1)});ur.set(Ge,Tt)}}return st(Ke),Ge};lt.cancel=function(Pe){var We=ur.get(Pe);return Tr(We),_t(We)};var Jt=lt,Hn=$n.ESC,er=$n.TAB;function nr(Pe){var We=Pe.visible,Ke=Pe.triggerRef,Ge=Pe.onVisibleChange,st=Pe.autoFocus,pt=Pe.overlayRef,Tt=Ie.useRef(!1),hn=function(){if(We){var tr,Tn;(tr=Ke.current)===null||tr===void 0||(Tn=tr.focus)===null||Tn===void 0||Tn.call(tr),Ge==null||Ge(!1)}},xn=function(){var tr;return(tr=pt.current)!==null&&tr!==void 0&&tr.focus?(pt.current.focus(),Tt.current=!0,!0):!1},lr=function(tr){switch(tr.keyCode){case Hn:hn();break;case er:{var Tn=!1;Tt.current||(Tn=xn()),Tn?tr.preventDefault():hn();break}}};Ie.useEffect(function(){return We?(window.addEventListener("keydown",lr),st&&Jt(xn,3),function(){window.removeEventListener("keydown",lr),Tt.current=!1}):function(){Tt.current=!1}},[We])}var Er=(0,Ie.forwardRef)(function(Pe,We){var Ke=Pe.overlay,Ge=Pe.arrow,st=Pe.prefixCls,pt=(0,Ie.useMemo)(function(){var hn;return typeof Ke=="function"?hn=Ke():hn=Ke,hn},[Ke]),Tt=Nt(We,pt==null?void 0:pt.ref);return Ie.createElement(Ie.Fragment,null,Ge&&Ie.createElement("div",{className:"".concat(st,"-arrow")}),Ie.cloneElement(pt,{ref:zt(pt)?Tt:void 0}))}),Pr=Er,Ir={adjustX:1,adjustY:1},zr=[0,0],Wr={topLeft:{points:["bl","tl"],overflow:Ir,offset:[0,-4],targetOffset:zr},top:{points:["bc","tc"],overflow:Ir,offset:[0,-4],targetOffset:zr},topRight:{points:["br","tr"],overflow:Ir,offset:[0,-4],targetOffset:zr},bottomLeft:{points:["tl","bl"],overflow:Ir,offset:[0,4],targetOffset:zr},bottom:{points:["tc","bc"],overflow:Ir,offset:[0,4],targetOffset:zr},bottomRight:{points:["tr","br"],overflow:Ir,offset:[0,4],targetOffset:zr}},gr=Wr,Nr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Bi(Pe,We){var Ke,Ge=Pe.arrow,st=Ge===void 0?!1:Ge,pt=Pe.prefixCls,Tt=pt===void 0?"rc-dropdown":pt,hn=Pe.transitionName,xn=Pe.animation,lr=Pe.align,Lr=Pe.placement,tr=Lr===void 0?"bottomLeft":Lr,Tn=Pe.placements,kn=Tn===void 0?gr:Tn,Fn=Pe.getPopupContainer,Qn=Pe.showAction,Ar=Pe.hideAction,or=Pe.overlayClassName,ir=Pe.overlayStyle,pr=Pe.visible,fr=Pe.trigger,Br=fr===void 0?["hover"]:fr,Re=Pe.autoFocus,je=Pe.overlay,Rt=Pe.children,yt=Pe.onVisibleChange,rn=(0,rt.Z)(Pe,Nr),En=Ie.useState(),et=(0,me.Z)(En,2),at=et[0],ot=et[1],St="visible"in Pe?pr:at,ln=Ie.useRef(null),gn=Ie.useRef(null),Xt=Ie.useRef(null);Ie.useImperativeHandle(We,function(){return ln.current});var fn=function(Xn){ot(Xn),yt==null||yt(Xn)};nr({visible:St,triggerRef:Xt,onVisibleChange:fn,autoFocus:Re,overlayRef:gn});var Zn=function(Xn){var Kr=Pe.onOverlayClick;ot(!1),Kr&&Kr(Xn)},yr=function(){return Ie.createElement(Pr,{ref:gn,overlay:je,prefixCls:Tt,arrow:st})},Gn=function(){return typeof je=="function"?yr:yr()},Bn=function(){var Xn=Pe.minOverlayWidthMatchTrigger,Kr=Pe.alignPoint;return"minOverlayWidthMatchTrigger"in Pe?Xn:!Kr},qn=function(){var Xn=Pe.openClassName;return Xn!==void 0?Xn:"".concat(Tt,"-open")},vr=Ie.cloneElement(Rt,{className:ve()((Ke=Rt.props)===null||Ke===void 0?void 0:Ke.className,St&&qn()),ref:zt(Rt)?Nt(Xt,Rt.ref):void 0}),Rr=Ar;return!Rr&&Br.indexOf("contextMenu")!==-1&&(Rr=["click"]),Ie.createElement(Ee.Z,(0,Le.Z)({builtinPlacements:kn},rn,{prefixCls:Tt,ref:ln,popupClassName:ve()(or,(0,De.Z)({},"".concat(Tt,"-show-arrow"),st)),popupStyle:ir,action:Br,showAction:Qn,hideAction:Rr,popupPlacement:tr,popupAlign:lr,popupTransitionName:hn,popupAnimation:xn,popupVisible:St,stretch:Bn()?"minWidth":"",popup:Gn(),onPopupVisibleChange:fn,onPopupClick:Zn,getPopupContainer:Fn}),vr)}var Ai=Ie.forwardRef(Bi),Fi=Ai,$r=se(78595),Ct={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(We){var Ke=We.keyCode;if(We.altKey&&!We.ctrlKey||We.metaKey||Ke>=Ct.F1&&Ke<=Ct.F12)return!1;switch(Ke){case Ct.ALT:case Ct.CAPS_LOCK:case Ct.CONTEXT_MENU:case Ct.CTRL:case Ct.DOWN:case Ct.END:case Ct.ESC:case Ct.HOME:case Ct.INSERT:case Ct.LEFT:case Ct.MAC_FF_META:case Ct.META:case Ct.NUMLOCK:case Ct.NUM_CENTER:case Ct.PAGE_DOWN:case Ct.PAGE_UP:case Ct.PAUSE:case Ct.PRINT_SCREEN:case Ct.RIGHT:case Ct.SHIFT:case Ct.UP:case Ct.WIN_KEY:case Ct.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(We){if(We>=Ct.ZERO&&We<=Ct.NINE||We>=Ct.NUM_ZERO&&We<=Ct.NUM_MULTIPLY||We>=Ct.A&&We<=Ct.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&We===0)return!0;switch(We){case Ct.SPACE:case Ct.QUESTION_MARK:case Ct.NUM_PLUS:case Ct.NUM_MINUS:case Ct.NUM_PERIOD:case Ct.NUM_DIVISION:case Ct.SEMICOLON:case Ct.DASH:case Ct.EQUALS:case Ct.COMMA:case Ct.PERIOD:case Ct.SLASH:case Ct.APOSTROPHE:case Ct.SINGLE_QUOTE:case Ct.OPEN_SQUARE_BRACKET:case Ct.BACKSLASH:case Ct.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},dn=Ct;function On(Pe,We){var Ke=Pe.prefixCls,Ge=Pe.id,st=Pe.tabs,pt=Pe.locale,Tt=Pe.mobile,hn=Pe.moreIcon,xn=hn===void 0?"More":hn,lr=Pe.moreTransitionName,Lr=Pe.style,tr=Pe.className,Tn=Pe.editable,kn=Pe.tabBarGutter,Fn=Pe.rtl,Qn=Pe.removeAriaLabel,Ar=Pe.onTabClick,or=Pe.getPopupContainer,ir=Pe.popupClassName,pr=(0,Ie.useState)(!1),fr=(0,me.Z)(pr,2),Br=fr[0],Re=fr[1],je=(0,Ie.useState)(null),Rt=(0,me.Z)(je,2),yt=Rt[0],rn=Rt[1],En="".concat(Ge,"-more-popup"),et="".concat(Ke,"-dropdown"),at=yt!==null?"".concat(En,"-").concat(yt):null,ot=pt==null?void 0:pt.dropdownAriaLabel;function St(Gn,Bn){Gn.preventDefault(),Gn.stopPropagation(),Tn.onEdit("remove",{key:Bn,event:Gn})}var ln=Ie.createElement($r.ZP,{onClick:function(Bn){var qn=Bn.key,vr=Bn.domEvent;Ar(qn,vr),Re(!1)},prefixCls:"".concat(et,"-menu"),id:En,tabIndex:-1,role:"listbox","aria-activedescendant":at,selectedKeys:[yt],"aria-label":ot!==void 0?ot:"expanded dropdown"},st.map(function(Gn){var Bn=Gn.closable,qn=Gn.disabled,vr=Gn.closeIcon,Rr=Gn.key,hr=Gn.label,Xn=fe(Bn,vr,Tn,qn);return Ie.createElement($r.sN,{key:Rr,id:"".concat(En,"-").concat(Rr),role:"option","aria-controls":Ge&&"".concat(Ge,"-panel-").concat(Rr),disabled:qn},Ie.createElement("span",null,hr),Xn&&Ie.createElement("button",{type:"button","aria-label":Qn||"remove",tabIndex:0,className:"".concat(et,"-menu-item-remove"),onClick:function(Ur){Ur.stopPropagation(),St(Ur,Rr)}},vr||Tn.removeIcon||"\xD7"))}));function gn(Gn){for(var Bn=st.filter(function(Xn){return!Xn.disabled}),qn=Bn.findIndex(function(Xn){return Xn.key===yt})||0,vr=Bn.length,Rr=0;Rr1&&arguments[1]!==void 0?arguments[1]:1;Ye+=1;var Ge=Ye;function st(pt){if(pt===0)Ht(Ge),We();else{var Tt=wr(function(){st(pt-1)});mt.set(Ge,Tt)}}return st(Ke),Ge};qt.cancel=function(Pe){var We=mt.get(Pe);return Ht(We),_n(We)};var _e=qt,xt=function(We){var Ke=We.activeTabOffset,Ge=We.horizontal,st=We.rtl,pt=We.indicatorSize,Tt=(0,Ie.useState)(),hn=(0,me.Z)(Tt,2),xn=hn[0],lr=hn[1],Lr=(0,Ie.useRef)(),tr=function(Fn){return typeof pt=="function"?pt(Fn):typeof pt=="number"?pt:Fn};function Tn(){_e.cancel(Lr.current)}return(0,Ie.useEffect)(function(){var kn={};return Ke&&(Ge?(st?(kn.right=Ke.right+Ke.width/2,kn.transform="translateX(50%)"):(kn.left=Ke.left+Ke.width/2,kn.transform="translateX(-50%)"),kn.width=tr(Ke.width)):(kn.top=Ke.top+Ke.height/2,kn.transform="translateY(-50%)",kn.height=tr(Ke.height))),Tn(),Lr.current=_e(function(){lr(kn)}),Tn},[Ke,Ge,st,pt]),{style:xn}},Vt=xt,Pt=function(We){var Ke=We.current||{},Ge=Ke.offsetWidth,st=Ge===void 0?0:Ge,pt=Ke.offsetHeight,Tt=pt===void 0?0:pt;return[st,Tt]},tn=function(We,Ke){return We[Ke?0:1]};function an(Pe,We){var Ke,Ge=Ie.useContext(Ve),st=Ge.prefixCls,pt=Ge.tabs,Tt=Pe.className,hn=Pe.style,xn=Pe.id,lr=Pe.animated,Lr=Pe.activeKey,tr=Pe.rtl,Tn=Pe.extra,kn=Pe.editable,Fn=Pe.locale,Qn=Pe.tabPosition,Ar=Pe.tabBarGutter,or=Pe.children,ir=Pe.onTabClick,pr=Pe.onTabScroll,fr=Pe.indicatorSize,Br=(0,Ie.useRef)(),Re=(0,Ie.useRef)(),je=(0,Ie.useRef)(),Rt=(0,Ie.useRef)(),yt=(0,Ie.useRef)(),rn=(0,Ie.useRef)(),En=(0,Ie.useRef)(),et=Qn==="top"||Qn==="bottom",at=Mt(0,function(ia,_i){et&&pr&&pr({direction:ia>_i?"left":"right"})}),ot=(0,me.Z)(at,2),St=ot[0],ln=ot[1],gn=Mt(0,function(ia,_i){!et&&pr&&pr({direction:ia>_i?"top":"bottom"})}),Xt=(0,me.Z)(gn,2),fn=Xt[0],Zn=Xt[1],yr=(0,Ie.useState)([0,0]),Gn=(0,me.Z)(yr,2),Bn=Gn[0],qn=Gn[1],vr=(0,Ie.useState)([0,0]),Rr=(0,me.Z)(vr,2),hr=Rr[0],Xn=Rr[1],Kr=(0,Ie.useState)([0,0]),Ur=(0,me.Z)(Kr,2),fi=Ur[0],Ci=Ur[1],Di=(0,Ie.useState)([0,0]),$i=(0,me.Z)(Di,2),ea=$i[0],yi=$i[1],Ri=wn(new Map),ii=(0,me.Z)(Ri,2),ci=ii[0],Ei=ii[1],Xi=we(pt,ci,hr[0]),Pa=tn(Bn,et),wa=tn(hr,et),ua=tn(fi,et),ra=tn(ea,et),ta=Pali?li:ia}var da=(0,Ie.useRef)(),Ji=(0,Ie.useState)(),oa=(0,me.Z)(Ji,2),Mi=oa[0],ma=oa[1];function Ca(){ma(Date.now())}function ha(){window.clearTimeout(da.current)}Zt(Rt,function(ia,_i){function Oa(Da,co){Da(function(ao){var hs=Ui(ao+co);return hs})}return ta?(et?Oa(ln,ia):Oa(Zn,_i),ha(),Ca(),!0):!1}),(0,Ie.useEffect)(function(){return ha(),Mi&&(da.current=window.setTimeout(function(){ma(0)},100)),ha},[Mi]);var Ea=en(Xi,Ti,et?St:fn,wa,ua,ra,(0,xe.Z)((0,xe.Z)({},Pe),{},{tabs:pt})),La=(0,me.Z)(Ea,2),Ua=La[0],pa=La[1],Ba=dt(function(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lr,_i=Xi.get(ia)||{width:0,height:0,left:0,right:0,top:0};if(et){var Oa=St;tr?_i.rightSt+Ti&&(Oa=_i.right+_i.width-Ti):_i.left<-St?Oa=-_i.left:_i.left+_i.width>-St+Ti&&(Oa=-(_i.left+_i.width-Ti)),Zn(0),ln(Ui(Oa))}else{var Da=fn;_i.top<-fn?Da=-_i.top:_i.top+_i.height>-fn+Ti&&(Da=-(_i.top+_i.height-Ti)),ln(0),Zn(Ui(Da))}}),qa={};Qn==="top"||Qn==="bottom"?qa[tr?"marginRight":"marginLeft"]=Ar:qa.marginTop=Ar;var Xa=pt.map(function(ia,_i){var Oa=ia.key;return Ie.createElement(rr,{id:xn,prefixCls:st,key:Oa,tab:ia,style:_i===0?void 0:qa,closable:ia.closable,editable:kn,active:Oa===Lr,renderWrapper:or,removeAriaLabel:Fn==null?void 0:Fn.removeAriaLabel,onClick:function(co){ir(Oa,co)},onFocus:function(){Ba(Oa),Ca(),Rt.current&&(tr||(Rt.current.scrollLeft=0),Rt.current.scrollTop=0)}})}),so=function(){return Ei(function(){var _i=new Map;return pt.forEach(function(Oa){var Da,co=Oa.key,ao=(Da=yt.current)===null||Da===void 0?void 0:Da.querySelector('[data-node-key="'.concat(Be(co),'"]'));ao&&_i.set(co,{width:ao.offsetWidth,height:ao.offsetHeight,left:ao.offsetLeft,top:ao.offsetTop})}),_i})};(0,Ie.useEffect)(function(){so()},[pt.map(function(ia){return ia.key}).join("_")]);var Ha=Wn(function(){var ia=Pt(Br),_i=Pt(Re),Oa=Pt(je);qn([ia[0]-_i[0]-Oa[0],ia[1]-_i[1]-Oa[1]]);var Da=Pt(En);Ci(Da);var co=Pt(rn);yi(co);var ao=Pt(yt);Xn([ao[0]-Da[0],ao[1]-Da[1]]),so()}),Aa=pt.slice(0,Ua),zi=pt.slice(pa+1),Gi=[].concat((0,Je.Z)(Aa),(0,Je.Z)(zi)),fa=Xi.get(Lr),Ma=Vt({activeTabOffset:fa,horizontal:et,rtl:tr,indicatorSize:fr}),Ka=Ma.style;(0,Ie.useEffect)(function(){Ba()},[Lr,Ni,li,Dn(fa),Dn(Xi),et]),(0,Ie.useEffect)(function(){Ha()},[tr]);var io=!!Gi.length,ho="".concat(st,"-nav-wrap"),Io,No,lo,Bo;return et?tr?(No=St>0,Io=St!==li):(Io=St<0,No=St!==Ni):(lo=fn<0,Bo=fn!==Ni),Ie.createElement(Ut.Z,{onResize:Ha},Ie.createElement("div",{ref:Kn(We,Br),role:"tablist",className:ve()("".concat(st,"-nav"),Tt),style:hn,onKeyDown:function(){Ca()}},Ie.createElement(le,{ref:Re,position:"left",extra:Tn,prefixCls:st}),Ie.createElement(Ut.Z,{onResize:Ha},Ie.createElement("div",{className:ve()(ho,(Ke={},(0,De.Z)(Ke,"".concat(ho,"-ping-left"),Io),(0,De.Z)(Ke,"".concat(ho,"-ping-right"),No),(0,De.Z)(Ke,"".concat(ho,"-ping-top"),lo),(0,De.Z)(Ke,"".concat(ho,"-ping-bottom"),Bo),Ke)),ref:Rt},Ie.createElement(Ut.Z,{onResize:Ha},Ie.createElement("div",{ref:yt,className:"".concat(st,"-nav-list"),style:{transform:"translate(".concat(St,"px, ").concat(fn,"px)"),transition:Mi?"none":void 0}},Xa,Ie.createElement(he,{ref:En,prefixCls:st,locale:Fn,editable:kn,style:(0,xe.Z)((0,xe.Z)({},Xa.length===0?void 0:qa),{},{visibility:io?"hidden":null})}),Ie.createElement("div",{className:ve()("".concat(st,"-ink-bar"),(0,De.Z)({},"".concat(st,"-ink-bar-animated"),lr.inkBar)),style:Ka}))))),Ie.createElement(Nn,(0,Le.Z)({},Pe,{removeAriaLabel:Fn==null?void 0:Fn.removeAriaLabel,ref:rn,prefixCls:st,tabs:Gi,className:!io&&Sa,tabMoving:!!Mi})),Ie.createElement(le,{ref:je,position:"right",extra:Tn,prefixCls:st})))}var Rn=Ie.forwardRef(an),Or=["renderTabBar"],dr=["label","key"];function ar(Pe){var We=Pe.renderTabBar,Ke=(0,rt.Z)(Pe,Or),Ge=Ie.useContext(Ve),st=Ge.tabs;if(We){var pt=(0,xe.Z)((0,xe.Z)({},Ke),{},{panes:st.map(function(Tt){var hn=Tt.label,xn=Tt.key,lr=(0,rt.Z)(Tt,dr);return Ie.createElement(wt,(0,Le.Z)({tab:hn,key:xn,tabKey:xn},lr))})});return We(pt,Rn)}return Ie.createElement(Rn,Ke)}var xr={},Sr=[],bt=function(We){Sr.push(We)};function ht(Pe,We){if(0)var Ke}function Dt(Pe,We){if(0)var Ke}function Sn(){xr={}}function Vn(Pe,We,Ke){!We&&!xr[Ke]&&(Pe(!1,Ke),xr[Ke]=!0)}function Cn(Pe,We){Vn(ht,Pe,We)}function yn(Pe,We){Vn(Dt,Pe,We)}Cn.preMessage=bt,Cn.resetWarned=Sn,Cn.noteOnce=yn;var Ln=null;function Un(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},We;return Pe===!1?We={inkBar:!1,tabPane:!1}:Pe===!0?We={inkBar:!0,tabPane:!1}:We=(0,xe.Z)({inkBar:!0},(0,Te.Z)(Pe)==="object"?Pe:{}),We.tabPaneMotion&&We.tabPane===void 0&&(We.tabPane=!0),!We.tabPaneMotion&&We.tabPane&&(We.tabPane=!1),We}var Cr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],un=0;function ni(Pe,We){var Ke,Ge=Pe.id,st=Pe.prefixCls,pt=st===void 0?"rc-tabs":st,Tt=Pe.className,hn=Pe.items,xn=Pe.direction,lr=Pe.activeKey,Lr=Pe.defaultActiveKey,tr=Pe.editable,Tn=Pe.animated,kn=Pe.tabPosition,Fn=kn===void 0?"top":kn,Qn=Pe.tabBarGutter,Ar=Pe.tabBarStyle,or=Pe.tabBarExtraContent,ir=Pe.locale,pr=Pe.moreIcon,fr=Pe.moreTransitionName,Br=Pe.destroyInactiveTabPane,Re=Pe.renderTabBar,je=Pe.onChange,Rt=Pe.onTabClick,yt=Pe.onTabScroll,rn=Pe.getPopupContainer,En=Pe.popupClassName,et=Pe.indicatorSize,at=(0,rt.Z)(Pe,Cr),ot=Ie.useMemo(function(){return(hn||[]).filter(function(yi){return yi&&(0,Te.Z)(yi)==="object"&&"key"in yi})},[hn]),St=xn==="rtl",ln=Un(Tn),gn=(0,Ie.useState)(!1),Xt=(0,me.Z)(gn,2),fn=Xt[0],Zn=Xt[1];(0,Ie.useEffect)(function(){Zn(Et())},[]);var yr=Se(function(){var yi;return(yi=ot[0])===null||yi===void 0?void 0:yi.key},{value:lr,defaultValue:Lr}),Gn=(0,me.Z)(yr,2),Bn=Gn[0],qn=Gn[1],vr=(0,Ie.useState)(function(){return ot.findIndex(function(yi){return yi.key===Bn})}),Rr=(0,me.Z)(vr,2),hr=Rr[0],Xn=Rr[1];(0,Ie.useEffect)(function(){var yi=ot.findIndex(function(ii){return ii.key===Bn});if(yi===-1){var Ri;yi=Math.max(0,Math.min(hr,ot.length-1)),qn((Ri=ot[yi])===null||Ri===void 0?void 0:Ri.key)}Xn(yi)},[ot.map(function(yi){return yi.key}).join("_"),Bn,hr]);var Kr=Se(null,{value:Ge}),Ur=(0,me.Z)(Kr,2),fi=Ur[0],Ci=Ur[1];(0,Ie.useEffect)(function(){Ge||(Ci("rc-tabs-".concat(un)),un+=1)},[]);function Di(yi,Ri){Rt==null||Rt(yi,Ri);var ii=yi!==Bn;qn(yi),ii&&(je==null||je(yi))}var $i={id:fi,activeKey:Bn,animated:ln,tabPosition:Fn,rtl:St,mobile:fn},ea=(0,xe.Z)((0,xe.Z)({},$i),{},{editable:tr,locale:ir,moreIcon:pr,moreTransitionName:fr,tabBarGutter:Qn,onTabClick:Di,onTabScroll:yt,extra:or,style:Ar,panes:null,getPopupContainer:rn,popupClassName:En,indicatorSize:et});return Ie.createElement(Ve.Provider,{value:{tabs:ot,prefixCls:pt}},Ie.createElement("div",(0,Le.Z)({ref:We,id:Ge,className:ve()(pt,"".concat(pt,"-").concat(Fn),(Ke={},(0,De.Z)(Ke,"".concat(pt,"-mobile"),fn),(0,De.Z)(Ke,"".concat(pt,"-editable"),tr),(0,De.Z)(Ke,"".concat(pt,"-rtl"),St),Ke),Tt)},at),Ie.createElement(ar,(0,Le.Z)({},ea,{renderTabBar:Re})),Ie.createElement(Lt,(0,Le.Z)({destroyInactiveTabPane:Br},$i,{animated:ln}))))}var Qr=Ie.forwardRef(ni),Hi=Qr,ki=Hi,vi=se(53124),qi=se(98675),di=()=>null,Wi=se(33603);const Qi={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ai(Pe){let We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ke;return We===!1?Ke={inkBar:!1,tabPane:!1}:We===!0?Ke={inkBar:!0,tabPane:!0}:Ke=Object.assign({inkBar:!0},typeof We=="object"?We:{}),Ke.tabPane&&(Ke.tabPaneMotion=Object.assign(Object.assign({},Qi),{motionName:(0,Wi.m)(Pe,"switch")})),Ke}var xi=se(37419),Zi=function(Pe,We){var Ke={};for(var Ge in Pe)Object.prototype.hasOwnProperty.call(Pe,Ge)&&We.indexOf(Ge)<0&&(Ke[Ge]=Pe[Ge]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ge=Object.getOwnPropertySymbols(Pe);stWe)}function na(Pe,We){if(Pe)return Pe;const Ke=(0,xi.Z)(We).map(Ge=>{if(Ie.isValidElement(Ge)){const{key:st,props:pt}=Ge,Tt=pt||{},{tab:hn}=Tt,xn=Zi(Tt,["tab"]);return Object.assign(Object.assign({key:String(st)},xn),{label:hn})}return null});return ca(Ke)}var oi=se(14747),Ot=se(67968),At=se(45503),on=se(67771),jn=Pe=>{const{componentCls:We,motionDurationSlow:Ke}=Pe;return[{[We]:{[`${We}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ke}`}}}}},[(0,on.oN)(Pe,"slide-up"),(0,on.oN)(Pe,"slide-down")]]};const Mr=Pe=>{const{componentCls:We,tabsCardPadding:Ke,cardBg:Ge,cardGutter:st,colorBorderSecondary:pt,itemSelectedColor:Tt}=Pe;return{[`${We}-card`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab`]:{margin:0,padding:Ke,background:Ge,border:`${Pe.lineWidth}px ${Pe.lineType} ${pt}`,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOut}`},[`${We}-tab-active`]:{color:Tt,background:Pe.colorBgContainer},[`${We}-ink-bar`]:{visibility:"hidden"}},[`&${We}-top, &${We}-bottom`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab + ${We}-tab`]:{marginLeft:{_skip_check_:!0,value:`${st}px`}}}},[`&${We}-top`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab`]:{borderRadius:`${Pe.borderRadiusLG}px ${Pe.borderRadiusLG}px 0 0`},[`${We}-tab-active`]:{borderBottomColor:Pe.colorBgContainer}}},[`&${We}-bottom`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab`]:{borderRadius:`0 0 ${Pe.borderRadiusLG}px ${Pe.borderRadiusLG}px`},[`${We}-tab-active`]:{borderTopColor:Pe.colorBgContainer}}},[`&${We}-left, &${We}-right`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab + ${We}-tab`]:{marginTop:`${st}px`}}},[`&${We}-left`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Pe.borderRadiusLG}px 0 0 ${Pe.borderRadiusLG}px`}},[`${We}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Pe.colorBgContainer}}}},[`&${We}-right`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Pe.borderRadiusLG}px ${Pe.borderRadiusLG}px 0`}},[`${We}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Pe.colorBgContainer}}}}}}},_r=Pe=>{const{componentCls:We,itemHoverColor:Ke,dropdownEdgeChildVerticalPadding:Ge}=Pe;return{[`${We}-dropdown`]:Object.assign(Object.assign({},(0,oi.Wf)(Pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Pe.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${We}-dropdown-menu`]:{maxHeight:Pe.tabsDropdownHeight,margin:0,padding:`${Ge}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Pe.colorBgContainer,backgroundClip:"padding-box",borderRadius:Pe.borderRadiusLG,outline:"none",boxShadow:Pe.boxShadowSecondary,"&-item":Object.assign(Object.assign({},oi.vS),{display:"flex",alignItems:"center",minWidth:Pe.tabsDropdownWidth,margin:0,padding:`${Pe.paddingXXS}px ${Pe.paddingSM}px`,color:Pe.colorText,fontWeight:"normal",fontSize:Pe.fontSize,lineHeight:Pe.lineHeight,cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Pe.marginSM},color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ke}},"&:hover":{background:Pe.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Pe.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Jr=Pe=>{const{componentCls:We,margin:Ke,colorBorderSecondary:Ge,horizontalMargin:st,verticalItemPadding:pt,verticalItemMargin:Tt}=Pe;return{[`${We}-top, ${We}-bottom`]:{flexDirection:"column",[`> ${We}-nav, > div > ${We}-nav`]:{margin:st,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Pe.lineWidth}px ${Pe.lineType} ${Ge}`,content:"''"},[`${We}-ink-bar`]:{height:Pe.lineWidthBold,"&-animated":{transition:`width ${Pe.motionDurationSlow}, left ${Pe.motionDurationSlow}, right ${Pe.motionDurationSlow}`}},[`${We}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Pe.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowTabsOverflowRight},[`&${We}-nav-wrap-ping-left::before`]:{opacity:1},[`&${We}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${We}-top`]:{[`> ${We}-nav, > div > ${We}-nav`]:{"&::before":{bottom:0},[`${We}-ink-bar`]:{bottom:0}}},[`${We}-bottom`]:{[`> ${We}-nav, > div > ${We}-nav`]:{order:1,marginTop:`${Ke}px`,marginBottom:0,"&::before":{top:0},[`${We}-ink-bar`]:{top:0}},[`> ${We}-content-holder, > div > ${We}-content-holder`]:{order:0}},[`${We}-left, ${We}-right`]:{[`> ${We}-nav, > div > ${We}-nav`]:{flexDirection:"column",minWidth:Pe.controlHeight*1.25,[`${We}-tab`]:{padding:pt,textAlign:"center"},[`${We}-tab + ${We}-tab`]:{margin:Tt},[`${We}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Pe.controlHeight},"&::before":{top:0,boxShadow:Pe.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Pe.boxShadowTabsOverflowBottom},[`&${We}-nav-wrap-ping-top::before`]:{opacity:1},[`&${We}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${We}-ink-bar`]:{width:Pe.lineWidthBold,"&-animated":{transition:`height ${Pe.motionDurationSlow}, top ${Pe.motionDurationSlow}`}},[`${We}-nav-list, ${We}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${We}-left`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${We}-content-holder, > div > ${We}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Pe.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`},[`> ${We}-content > ${We}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Pe.paddingLG}}}},[`${We}-right`]:{[`> ${We}-nav, > div > ${We}-nav`]:{order:1,[`${We}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${We}-content-holder, > div > ${We}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Pe.lineWidth},borderRight:{_skip_check_:!0,value:`${Pe.lineWidth}px ${Pe.lineType} ${Pe.colorBorder}`},[`> ${We}-content > ${We}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Pe.paddingLG}}}}}},ti=Pe=>{const{componentCls:We,cardPaddingSM:Ke,cardPaddingLG:Ge,horizontalItemPaddingSM:st,horizontalItemPaddingLG:pt}=Pe;return{[We]:{"&-small":{[`> ${We}-nav`]:{[`${We}-tab`]:{padding:st,fontSize:Pe.titleFontSizeSM}}},"&-large":{[`> ${We}-nav`]:{[`${We}-tab`]:{padding:pt,fontSize:Pe.titleFontSizeLG}}}},[`${We}-card`]:{[`&${We}-small`]:{[`> ${We}-nav`]:{[`${We}-tab`]:{padding:Ke}},[`&${We}-bottom`]:{[`> ${We}-nav ${We}-tab`]:{borderRadius:`0 0 ${Pe.borderRadius}px ${Pe.borderRadius}px`}},[`&${We}-top`]:{[`> ${We}-nav ${We}-tab`]:{borderRadius:`${Pe.borderRadius}px ${Pe.borderRadius}px 0 0`}},[`&${We}-right`]:{[`> ${We}-nav ${We}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Pe.borderRadius}px ${Pe.borderRadius}px 0`}}},[`&${We}-left`]:{[`> ${We}-nav ${We}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Pe.borderRadius}px 0 0 ${Pe.borderRadius}px`}}}},[`&${We}-large`]:{[`> ${We}-nav`]:{[`${We}-tab`]:{padding:Ge}}}}}},Yr=Pe=>{const{componentCls:We,itemActiveColor:Ke,itemHoverColor:Ge,iconCls:st,tabsHorizontalItemMargin:pt,horizontalItemPadding:Tt,itemSelectedColor:hn,itemColor:xn}=Pe,lr=`${We}-tab`;return{[lr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Tt,fontSize:Pe.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:xn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ke}},(0,oi.Qy)(Pe)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Pe.marginXXS},marginLeft:{_skip_check_:!0,value:Pe.marginXS},color:Pe.colorTextDescription,fontSize:Pe.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,"&:hover":{color:Pe.colorTextHeading}},"&:hover":{color:Ge},[`&${lr}-active ${lr}-btn`]:{color:hn,textShadow:Pe.tabsActiveTextShadow},[`&${lr}-disabled`]:{color:Pe.colorTextDisabled,cursor:"not-allowed"},[`&${lr}-disabled ${lr}-btn, &${lr}-disabled ${We}-remove`]:{"&:focus, &:active":{color:Pe.colorTextDisabled}},[`& ${lr}-remove ${st}`]:{margin:0},[st]:{marginRight:{_skip_check_:!0,value:Pe.marginSM}}},[`${lr} + ${lr}`]:{margin:{_skip_check_:!0,value:pt}}}},si=Pe=>{const{componentCls:We,tabsHorizontalItemMarginRTL:Ke,iconCls:Ge,cardGutter:st}=Pe;return{[`${We}-rtl`]:{direction:"rtl",[`${We}-nav`]:{[`${We}-tab`]:{margin:{_skip_check_:!0,value:Ke},[`${We}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ge]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Pe.marginSM}px`}},[`${We}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Pe.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Pe.marginXXS}px`},[Ge]:{margin:0}}}},[`&${We}-left`]:{[`> ${We}-nav`]:{order:1},[`> ${We}-content-holder`]:{order:0}},[`&${We}-right`]:{[`> ${We}-nav`]:{order:0},[`> ${We}-content-holder`]:{order:1}},[`&${We}-card${We}-top, &${We}-card${We}-bottom`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-tab + ${We}-tab`]:{marginRight:{_skip_check_:!0,value:st},marginLeft:{_skip_check_:!0,value:0}}}}},[`${We}-dropdown-rtl`]:{direction:"rtl"},[`${We}-menu-item`]:{[`${We}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},wi=Pe=>{const{componentCls:We,tabsCardPadding:Ke,cardHeight:Ge,cardGutter:st,itemHoverColor:pt,itemActiveColor:Tt,colorBorderSecondary:hn}=Pe;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oi.Wf)(Pe)),{display:"flex",[`> ${We}-nav, > div > ${We}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${We}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${Pe.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${We}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Pe.motionDurationSlow}`},[`${We}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${We}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${We}-nav-more`]:{position:"relative",padding:Ke,background:"transparent",border:0,color:Pe.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Pe.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${We}-nav-add`]:Object.assign({minWidth:Ge,marginLeft:{_skip_check_:!0,value:st},padding:`0 ${Pe.paddingXS}px`,background:"transparent",border:`${Pe.lineWidth}px ${Pe.lineType} ${hn}`,borderRadius:`${Pe.borderRadiusLG}px ${Pe.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Pe.colorText,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOut}`,"&:hover":{color:pt},"&:active, &:focus:not(:focus-visible)":{color:Tt}},(0,oi.Qy)(Pe))},[`${We}-extra-content`]:{flex:"none"},[`${We}-ink-bar`]:{position:"absolute",background:Pe.inkBarColor,pointerEvents:"none"}}),Yr(Pe)),{[`${We}-content`]:{position:"relative",width:"100%"},[`${We}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${We}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${We}-centered`]:{[`> ${We}-nav, > div > ${We}-nav`]:{[`${We}-nav-wrap`]:{[`&:not([class*='${We}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Hr=(0,Ot.Z)("Tabs",Pe=>{const We=(0,At.TS)(Pe,{tabsCardPadding:Pe.cardPadding||`${(Pe.cardHeight-Math.round(Pe.fontSize*Pe.lineHeight))/2-Pe.lineWidth}px ${Pe.padding}px`,dropdownEdgeChildVerticalPadding:Pe.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Pe.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Pe.horizontalItemGutter}px`});return[ti(We),si(We),Jr(We),_r(We),Mr(We),wi(We),jn(We)]},Pe=>{const We=Pe.controlHeightLG;return{zIndexPopup:Pe.zIndexPopupBase+50,cardBg:Pe.colorFillAlter,cardHeight:We,cardPadding:"",cardPaddingSM:`${Pe.paddingXXS*1.5}px ${Pe.padding}px`,cardPaddingLG:`${Pe.paddingXS}px ${Pe.padding}px ${Pe.paddingXXS*1.5}px`,titleFontSize:Pe.fontSize,titleFontSizeLG:Pe.fontSizeLG,titleFontSizeSM:Pe.fontSize,inkBarColor:Pe.colorPrimary,horizontalMargin:`0 0 ${Pe.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Pe.paddingSM}px 0`,horizontalItemPaddingSM:`${Pe.paddingXS}px 0`,horizontalItemPaddingLG:`${Pe.padding}px 0`,verticalItemPadding:`${Pe.paddingXS}px ${Pe.paddingLG}px`,verticalItemMargin:`${Pe.margin}px 0 0 0`,itemColor:Pe.colorText,itemSelectedColor:Pe.colorPrimary,itemHoverColor:Pe.colorPrimaryHover,itemActiveColor:Pe.colorPrimaryActive,cardGutter:Pe.marginXXS/2}}),gi=function(Pe,We){var Ke={};for(var Ge in Pe)Object.prototype.hasOwnProperty.call(Pe,Ge)&&We.indexOf(Ge)<0&&(Ke[Ge]=Pe[Ge]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ge=Object.getOwnPropertySymbols(Pe);st{const{type:We,className:Ke,rootClassName:Ge,size:st,onEdit:pt,hideAdd:Tt,centered:hn,addIcon:xn,popupClassName:lr,children:Lr,items:tr,animated:Tn,style:kn,indicatorSize:Fn}=Pe,Qn=gi(Pe,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Ar,moreIcon:or=Ie.createElement(He.Z,null)}=Qn,{direction:ir,tabs:pr,getPrefixCls:fr,getPopupContainer:Br}=Ie.useContext(vi.E_),Re=fr("tabs",Ar),[je,Rt]=Hr(Re);let yt;We==="editable-card"&&(yt={onEdit:(St,ln)=>{let{key:gn,event:Xt}=ln;pt==null||pt(St==="add"?Xt:gn,St)},removeIcon:Ie.createElement(oe.Z,null),addIcon:xn||Ie.createElement(Ne.Z,null),showAdd:Tt!==!0});const rn=fr(),En=na(tr,Lr),et=ai(Re,Tn),at=(0,qi.Z)(st),ot=Object.assign(Object.assign({},pr==null?void 0:pr.style),kn);return je(Ie.createElement(ki,Object.assign({direction:ir,getPopupContainer:Br,moreTransitionName:`${rn}-slide-up`},Qn,{items:En,className:ve()({[`${Re}-${at}`]:at,[`${Re}-card`]:["card","editable-card"].includes(We),[`${Re}-editable-card`]:We==="editable-card",[`${Re}-centered`]:hn},pr==null?void 0:pr.className,Ke,Ge,Rt),popupClassName:ve()(lr,Rt),style:ot,editable:yt,moreIcon:or,prefixCls:Re,animated:et,indicatorSize:Fn!=null?Fn:pr==null?void 0:pr.indicatorSize})))};Ii.TabPane=di;var Si=Ii},59810:function(sn,nn,se){"use strict";se.d(nn,{default:function(){return Sr}});var oe=se(67294),He=se(74902),Ne=se(94184),qe=se.n(Ne),ve=se(87462),Le=se(15671),De=se(43144),xe=se(60136),me=se(51630),Te=se(4942),rt=se(45987),Ie=se(74165),Et=se(71002),dt=se(15861),ct=se(64217);function $e(bt,ht){var Dt="cannot ".concat(bt.method," ").concat(bt.action," ").concat(ht.status,"'"),Sn=new Error(Dt);return Sn.status=ht.status,Sn.method=bt.method,Sn.url=bt.action,Sn}function Ae(bt){var ht=bt.responseText||bt.response;if(!ht)return ht;try{return JSON.parse(ht)}catch(Dt){return ht}}function ft(bt){var ht=new XMLHttpRequest;bt.onProgress&&ht.upload&&(ht.upload.onprogress=function(Cn){Cn.total>0&&(Cn.percent=Cn.loaded/Cn.total*100),bt.onProgress(Cn)});var Dt=new FormData;bt.data&&Object.keys(bt.data).forEach(function(Vn){var Cn=bt.data[Vn];if(Array.isArray(Cn)){Cn.forEach(function(yn){Dt.append("".concat(Vn,"[]"),yn)});return}Dt.append(Vn,Cn)}),bt.file instanceof Blob?Dt.append(bt.filename,bt.file,bt.file.name):Dt.append(bt.filename,bt.file),ht.onerror=function(Cn){bt.onError(Cn)},ht.onload=function(){return ht.status<200||ht.status>=300?bt.onError($e(bt,ht),Ae(ht)):bt.onSuccess(Ae(ht),ht)},ht.open(bt.method,bt.action,!0),bt.withCredentials&&"withCredentials"in ht&&(ht.withCredentials=!0);var Sn=bt.headers||{};return Sn["X-Requested-With"]!==null&&ht.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Sn).forEach(function(Vn){Sn[Vn]!==null&&ht.setRequestHeader(Vn,Sn[Vn])}),ht.send(Dt),{abort:function(){ht.abort()}}}var Yt=+new Date,Qe=0;function it(){return"rc-upload-".concat(Yt,"-").concat(++Qe)}var Se=se(80334),Ce=function(bt,ht){if(bt&&ht){var Dt=Array.isArray(ht)?ht:ht.split(","),Sn=bt.name||"",Vn=bt.type||"",Cn=Vn.replace(/\/.*$/,"");return Dt.some(function(yn){var Ln=yn.trim();if(/^\*(\/\*)?$/.test(yn))return!0;if(Ln.charAt(0)==="."){var Un=Sn.toLowerCase(),Cr=Ln.toLowerCase(),un=[Cr];return(Cr===".jpg"||Cr===".jpeg")&&(un=[".jpg",".jpeg"]),un.some(function(ni){return Un.endsWith(ni)})}return/\/\*$/.test(Ln)?Cn===Ln.replace(/\/.*$/,""):Vn===Ln?!0:/^\w+$/.test(Ln)?((0,Se.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ln,"'.Skip for check.")),!0):!1})}return!0};function Ve(bt,ht){var Dt=bt.createReader(),Sn=[];function Vn(){Dt.readEntries(function(Cn){var yn=Array.prototype.slice.apply(Cn);Sn=Sn.concat(yn);var Ln=!yn.length;Ln?ht(Sn):Vn()})}Vn()}var Ue=function(ht,Dt,Sn){var Vn=function Cn(yn,Ln){yn&&(yn.path=Ln||"",yn.isFile?yn.file(function(Un){Sn(Un)&&(yn.fullPath&&!Un.webkitRelativePath&&(Object.defineProperties(Un,{webkitRelativePath:{writable:!0}}),Un.webkitRelativePath=yn.fullPath.replace(/^\//,""),Object.defineProperties(Un,{webkitRelativePath:{writable:!1}})),Dt([Un]))}):yn.isDirectory&&Ve(yn,function(Un){Un.forEach(function(Cr){Cn(Cr,"".concat(Ln).concat(yn.name,"/"))})}))};ht.forEach(function(Cn){Vn(Cn.webkitGetAsEntry())})},wt=Ue,gt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Lt=function(bt){(0,xe.Z)(Dt,bt);var ht=(0,me.Z)(Dt);function Dt(){var Sn;(0,Le.Z)(this,Dt);for(var Vn=arguments.length,Cn=new Array(Vn),yn=0;yn{let{uid:Cn}=Vn;return Cn===bt.uid});return Sn===-1?Dt.push(bt):Dt[Sn]=bt,Dt}function Ft(bt,ht){const Dt=bt.uid!==void 0?"uid":"name";return ht.filter(Sn=>Sn[Dt]===bt[Dt])[0]}function zt(bt,ht){const Dt=bt.uid!==void 0?"uid":"name",Sn=ht.filter(Vn=>Vn[Dt]!==bt[Dt]);return Sn.length===ht.length?null:Sn}const Gt=function(){const ht=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Sn=ht[ht.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Sn)||[""])[0]},$n=bt=>bt.indexOf("image/")===0,mr=bt=>{if(bt.type&&!bt.thumbUrl)return $n(bt.type);const ht=bt.thumbUrl||bt.url||"",Dt=Gt(ht);return/^data:image\//.test(ht)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Dt)?!0:!(/^data:/.test(ht)||Dt)},_t=200;function bn(bt){return new Promise(ht=>{if(!bt.type||!$n(bt.type)){ht("");return}const Dt=document.createElement("canvas");Dt.width=_t,Dt.height=_t,Dt.style.cssText=`position: fixed; left: 0; top: 0; width: ${_t}px; height: ${_t}px; z-index: 9999; display: none;`,document.body.appendChild(Dt);const Sn=Dt.getContext("2d"),Vn=new Image;if(Vn.onload=()=>{const{width:Cn,height:yn}=Vn;let Ln=_t,Un=_t,Cr=0,un=0;Cn>yn?(Un=yn*(_t/Cn),un=-(Un-Ln)/2):(Ln=Cn*(_t/yn),Cr=-(Ln-Un)/2),Sn.drawImage(Vn,Cr,un,Ln,Un);const ni=Dt.toDataURL();document.body.removeChild(Dt),window.URL.revokeObjectURL(Vn.src),ht(ni)},Vn.crossOrigin="anonymous",bt.type.startsWith("image/svg+xml")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&(Vn.src=Cn.result)},Cn.readAsDataURL(bt)}else if(bt.type.startsWith("image/gif")){const Cn=new FileReader;Cn.onload=()=>{Cn.result&&ht(Cn.result)},Cn.readAsDataURL(bt)}else Vn.src=window.URL.createObjectURL(bt)})}var ur=se(84249),Tr=se(90674),lt=se(99569),Jt=se(38703),Hn=se(83062),nr=oe.forwardRef((bt,ht)=>{let{prefixCls:Dt,className:Sn,style:Vn,locale:Cn,listType:yn,file:Ln,items:Un,progress:Cr,iconRender:un,actionIconRender:ni,itemRender:Qr,isImgUrl:Hi,showPreviewIcon:ki,showRemoveIcon:vi,showDownloadIcon:qi,previewIcon:bi,removeIcon:di,downloadIcon:Wi,onPreview:Qi,onDownload:ai,onClose:xi}=bt;var Zi,ca;const{status:na}=Ln,[oi,Ot]=oe.useState(na);oe.useEffect(()=>{na!=="removed"&&Ot(na)},[na]);const[At,on]=oe.useState(!1);oe.useEffect(()=>{const st=setTimeout(()=>{on(!0)},300);return()=>{clearTimeout(st)}},[]);const Mn=un(Ln);let jn=oe.createElement("div",{className:`${Dt}-icon`},Mn);if(yn==="picture"||yn==="picture-card"||yn==="picture-circle")if(oi==="uploading"||!Ln.thumbUrl&&!Ln.url){const st=qe()(`${Dt}-list-item-thumbnail`,{[`${Dt}-list-item-file`]:oi!=="uploading"});jn=oe.createElement("div",{className:st},Mn)}else{const st=Hi!=null&&Hi(Ln)?oe.createElement("img",{src:Ln.thumbUrl||Ln.url,alt:Ln.name,className:`${Dt}-list-item-image`,crossOrigin:Ln.crossOrigin}):Mn,pt=qe()(`${Dt}-list-item-thumbnail`,{[`${Dt}-list-item-file`]:Hi&&!Hi(Ln)});jn=oe.createElement("a",{className:pt,onClick:Tt=>Qi(Ln,Tt),href:Ln.url||Ln.thumbUrl,target:"_blank",rel:"noopener noreferrer"},st)}const Mr=qe()(`${Dt}-list-item`,`${Dt}-list-item-${oi}`),_r=typeof Ln.linkProps=="string"?JSON.parse(Ln.linkProps):Ln.linkProps,Jr=vi?ni((typeof di=="function"?di(Ln):di)||oe.createElement(ur.Z,null),()=>xi(Ln),Dt,Cn.removeFile):null,ti=qi&&oi==="done"?ni((typeof Wi=="function"?Wi(Ln):Wi)||oe.createElement(Tr.Z,null),()=>ai(Ln),Dt,Cn.downloadFile):null,Yr=yn!=="picture-card"&&yn!=="picture-circle"&&oe.createElement("span",{key:"download-delete",className:qe()(`${Dt}-list-item-actions`,{picture:yn==="picture"})},ti,Jr),si=qe()(`${Dt}-list-item-name`),wi=Ln.url?[oe.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:si,title:Ln.name},_r,{href:Ln.url,onClick:st=>Qi(Ln,st)}),Ln.name),Yr]:[oe.createElement("span",{key:"view",className:si,onClick:st=>Qi(Ln,st),title:Ln.name},Ln.name),Yr],Hr={pointerEvents:"none",opacity:.5},gi=ki?oe.createElement("a",{href:Ln.url||Ln.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ln.url||Ln.thumbUrl?void 0:Hr,onClick:st=>Qi(Ln,st),title:Cn.previewFile},typeof bi=="function"?bi(Ln):bi||oe.createElement(lt.Z,null)):null,Ii=(yn==="picture-card"||yn==="picture-circle")&&oi!=="uploading"&&oe.createElement("span",{className:`${Dt}-list-item-actions`},gi,oi==="done"&&ti,Jr),{getPrefixCls:Si}=oe.useContext(Yn.E_),Pe=Si(),We=oe.createElement("div",{className:Mr},jn,wi,Ii,At&&oe.createElement(he.default,{motionName:`${Pe}-fade`,visible:oi==="uploading",motionDeadline:2e3},st=>{let{className:pt}=st;const Tt="percent"in Ln?oe.createElement(Jt.Z,Object.assign({},Cr,{type:"line",percent:Ln.percent,"aria-label":Ln["aria-label"],"aria-labelledby":Ln["aria-labelledby"]})):null;return oe.createElement("div",{className:qe()(`${Dt}-list-item-progress`,pt)},Tt)})),Ke=Ln.response&&typeof Ln.response=="string"?Ln.response:((Zi=Ln.error)===null||Zi===void 0?void 0:Zi.statusText)||((ca=Ln.error)===null||ca===void 0?void 0:ca.message)||Cn.uploadError,Ge=oi==="error"?oe.createElement(Hn.Z,{title:Ke,getPopupContainer:st=>st.parentNode},We):We;return oe.createElement("div",{className:qe()(`${Dt}-list-item-container`,Sn),style:Vn,ref:ht},Qr?Qr(Ge,Ln,Un,{download:ai.bind(null,Ln),preview:Qi.bind(null,Ln),remove:xi.bind(null,Ln)}):Ge)});const Er=(bt,ht)=>{const{listType:Dt="text",previewFile:Sn=bn,onPreview:Vn,onDownload:Cn,onRemove:yn,locale:Ln,iconRender:Un,isImageUrl:Cr=mr,prefixCls:un,items:ni=[],showPreviewIcon:Qr=!0,showRemoveIcon:Hi=!0,showDownloadIcon:ki=!1,removeIcon:vi,previewIcon:qi,downloadIcon:bi,progress:di={size:[-1,2],showInfo:!1},appendAction:Wi,appendActionVisible:Qi=!0,itemRender:ai,disabled:xi}=bt,Zi=(0,de.Z)(),[ca,na]=oe.useState(!1);oe.useEffect(()=>{Dt!=="picture"&&Dt!=="picture-card"&&Dt!=="picture-circle"||(ni||[]).forEach(Hr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Hr.originFileObj instanceof File||Hr.originFileObj instanceof Blob)||Hr.thumbUrl!==void 0||(Hr.thumbUrl="",Sn&&Sn(Hr.originFileObj).then(gi=>{Hr.thumbUrl=gi||"",Zi()}))})},[Dt,ni,Sn]),oe.useEffect(()=>{na(!0)},[]);const oi=(Hr,gi)=>{if(Vn)return gi==null||gi.preventDefault(),Vn(Hr)},Ot=Hr=>{typeof Cn=="function"?Cn(Hr):Hr.url&&window.open(Hr.url)},At=Hr=>{yn==null||yn(Hr)},on=Hr=>{if(Un)return Un(Hr,Dt);const gi=Hr.status==="uploading",Ii=Cr&&Cr(Hr)?oe.createElement(ce,null):oe.createElement(Zt,null);let Si=gi?oe.createElement(Wn.Z,null):oe.createElement(Dn,null);return Dt==="picture"?Si=gi?oe.createElement(Wn.Z,null):Ii:(Dt==="picture-card"||Dt==="picture-circle")&&(Si=gi?Ln.uploading:Ii),Si},Mn=(Hr,gi,Ii,Si)=>{const Pe={type:"text",size:"small",title:Si,onClick:We=>{gi(),(0,Ee.l$)(Hr)&&Hr.props.onClick&&Hr.props.onClick(We)},className:`${Ii}-list-item-action`,disabled:xi};if((0,Ee.l$)(Hr)){const We=(0,Ee.Tm)(Hr,Object.assign(Object.assign({},Hr.props),{onClick:()=>{}}));return oe.createElement(Ze.ZP,Object.assign({},Pe,{icon:We}))}return oe.createElement(Ze.ZP,Object.assign({},Pe),oe.createElement("span",null,Hr))};oe.useImperativeHandle(ht,()=>({handlePreview:oi,handleDownload:Ot}));const{getPrefixCls:jn}=oe.useContext(Yn.E_),Mr=jn("upload",un),_r=jn(),Jr=qe()(`${Mr}-list`,`${Mr}-list-${Dt}`),ti=(0,He.Z)(ni.map(Hr=>({key:Hr.uid,file:Hr})));let si={motionDeadline:2e3,motionName:`${Mr}-${Dt==="picture-card"||Dt==="picture-circle"?"animate-inline":"animate"}`,keys:ti,motionAppear:ca};const wi=oe.useMemo(()=>{const Hr=Object.assign({},(0,le.Z)(_r));return delete Hr.onAppearEnd,delete Hr.onEnterEnd,delete Hr.onLeaveEnd,Hr},[_r]);return Dt!=="picture-card"&&Dt!=="picture-circle"&&(si=Object.assign(Object.assign({},wi),si)),oe.createElement("div",{className:Jr},oe.createElement(he.CSSMotionList,Object.assign({},si,{component:!1}),Hr=>{let{key:gi,file:Ii,className:Si,style:Pe}=Hr;return oe.createElement(nr,{key:gi,locale:Ln,prefixCls:Mr,className:Si,style:Pe,file:Ii,items:ni,progress:di,listType:Dt,isImgUrl:Cr,showPreviewIcon:Qr,showRemoveIcon:Hi,showDownloadIcon:ki,removeIcon:vi,previewIcon:qi,downloadIcon:bi,iconRender:on,actionIconRender:Mn,itemRender:ai,onPreview:oi,onDownload:Ot,onClose:At})}),Wi&&oe.createElement(he.default,Object.assign({},si,{visible:Qi,forceRender:!0}),Hr=>{let{className:gi,style:Ii}=Hr;return(0,Ee.Tm)(Wi,Si=>({className:qe()(Si.className,gi),style:Object.assign(Object.assign(Object.assign({},Ii),{pointerEvents:gi?"none":void 0}),Si.style)}))}))};var Ir=oe.forwardRef(Er),zr=se(14747),Wr=se(33507),gr=se(67968),Nr=se(45503),Ai=bt=>{const{componentCls:ht,iconCls:Dt}=bt;return{[`${ht}-wrapper`]:{[`${ht}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:bt.colorFillAlter,border:`${bt.lineWidth}px dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[ht]:{padding:`${bt.padding}px 0`},[`${ht}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ht}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ht}-disabled):hover`]:{borderColor:bt.colorPrimaryHover},[`p${ht}-drag-icon`]:{marginBottom:bt.margin,[Dt]:{color:bt.colorPrimary,fontSize:bt.uploadThumbnailSize}},[`p${ht}-text`]:{margin:`0 0 ${bt.marginXXS}px`,color:bt.colorTextHeading,fontSize:bt.fontSizeLG},[`p${ht}-hint`]:{color:bt.colorTextDescription,fontSize:bt.fontSize},[`&${ht}-disabled`]:{cursor:"not-allowed",[`p${ht}-drag-icon ${Dt}, p${ht}-text, p${ht}-hint `]:{color:bt.colorTextDisabled}}}}}},$r=bt=>{const{componentCls:ht,antCls:Dt,iconCls:Sn,fontSize:Vn,lineHeight:Cn}=bt,yn=`${ht}-list-item`,Ln=`${yn}-actions`,Un=`${yn}-action`,Cr=Math.round(Vn*Cn);return{[`${ht}-wrapper`]:{[`${ht}-list`]:Object.assign(Object.assign({},(0,zr.dF)()),{lineHeight:bt.lineHeight,[yn]:{position:"relative",height:bt.lineHeight*Vn,marginTop:bt.marginXS,fontSize:Vn,display:"flex",alignItems:"center",transition:`background-color ${bt.motionDurationSlow}`,"&:hover":{backgroundColor:bt.controlItemBgHover},[`${yn}-name`]:Object.assign(Object.assign({},zr.vS),{padding:`0 ${bt.paddingXS}px`,lineHeight:Cn,flex:"auto",transition:`all ${bt.motionDurationSlow}`}),[Ln]:{[Un]:{opacity:0},[`${Un}${Dt}-btn-sm`]:{height:Cr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${Un}:focus-visible, &.picture ${Un} `]:{opacity:1},[Sn]:{color:bt.actionsColor,transition:`all ${bt.motionDurationSlow}`},[`&:hover ${Sn}`]:{color:bt.colorText}},[`${ht}-icon ${Sn}`]:{color:bt.colorTextDescription,fontSize:Vn},[`${yn}-progress`]:{position:"absolute",bottom:-bt.uploadProgressOffset,width:"100%",paddingInlineStart:Vn+bt.paddingXS,fontSize:Vn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${yn}:hover ${Un}`]:{opacity:1,color:bt.colorText},[`${yn}-error`]:{color:bt.colorError,[`${yn}-name, ${ht}-icon ${Sn}`]:{color:bt.colorError},[Ln]:{[`${Sn}, ${Sn}:hover`]:{color:bt.colorError},[Un]:{opacity:1}}},[`${ht}-list-item-container`]:{transition:`opacity ${bt.motionDurationSlow}, height ${bt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ct=se(34367),dn=se(16932);const On=new Ct.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Nn=new Ct.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var rr=bt=>{const{componentCls:ht}=bt,Dt=`${ht}-animate-inline`;return[{[`${ht}-wrapper`]:{[`${Dt}-appear, ${Dt}-enter, ${Dt}-leave`]:{animationDuration:bt.motionDurationSlow,animationTimingFunction:bt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Dt}-appear, ${Dt}-enter`]:{animationName:On},[`${Dt}-leave`]:{animationName:Nn}}},{[`${ht}-wrapper`]:(0,dn.J$)(bt)},On,Nn]},wr=se(16397),_n=se(84780);const Ye=bt=>{const{componentCls:ht,iconCls:Dt,uploadThumbnailSize:Sn,uploadProgressOffset:Vn}=bt,Cn=`${ht}-list`,yn=`${Cn}-item`;return{[`${ht}-wrapper`]:{[` ${Cn}${Cn}-picture, ${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle `]:{[yn]:{position:"relative",height:Sn+bt.lineWidth*2+bt.paddingXS*2,padding:bt.paddingXS,border:`${bt.lineWidth}px ${bt.lineType} ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,"&:hover":{background:"transparent"},[`${yn}-thumbnail`]:Object.assign(Object.assign({},zr.vS),{width:Sn,height:Sn,lineHeight:`${Sn+bt.paddingSM}px`,textAlign:"center",flex:"none",[Dt]:{fontSize:bt.fontSizeHeading2,color:bt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${yn}-progress`]:{bottom:Vn,width:`calc(100% - ${bt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Sn+bt.paddingXS}},[`${yn}-error`]:{borderColor:bt.colorError,[`${yn}-thumbnail ${Dt}`]:{[`svg path[fill='${wr.blue[0]}']`]:{fill:bt.colorErrorBg},[`svg path[fill='${wr.blue.primary}']`]:{fill:bt.colorError}}},[`${yn}-uploading`]:{borderStyle:"dashed",[`${yn}-name`]:{marginBottom:Vn}}},[`${Cn}${Cn}-picture-circle ${yn}`]:{[`&, &::before, ${yn}-thumbnail`]:{borderRadius:"50%"}}}}},mt=bt=>{const{componentCls:ht,iconCls:Dt,fontSizeLG:Sn,colorTextLightSolid:Vn}=bt,Cn=`${ht}-list`,yn=`${Cn}-item`,Ln=bt.uploadPicCardSize;return{[` ${ht}-wrapper${ht}-picture-card-wrapper, ${ht}-wrapper${ht}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,zr.dF)()),{display:"inline-block",width:"100%",[`${ht}${ht}-select`]:{width:Ln,height:Ln,marginInlineEnd:bt.marginXS,marginBottom:bt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:bt.colorFillAlter,border:`${bt.lineWidth}px dashed ${bt.colorBorder}`,borderRadius:bt.borderRadiusLG,cursor:"pointer",transition:`border-color ${bt.motionDurationSlow}`,[`> ${ht}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ht}-disabled):hover`]:{borderColor:bt.colorPrimary}},[`${Cn}${Cn}-picture-card, ${Cn}${Cn}-picture-circle`]:{[`${Cn}-item-container`]:{display:"inline-block",width:Ln,height:Ln,marginBlock:`0 ${bt.marginXS}px`,marginInline:`0 ${bt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[yn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${bt.paddingXS*2}px)`,height:`calc(100% - ${bt.paddingXS*2}px)`,backgroundColor:bt.colorBgMask,opacity:0,transition:`all ${bt.motionDurationSlow}`,content:'" "'}},[`${yn}:hover`]:{[`&::before, ${yn}-actions`]:{opacity:1}},[`${yn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${bt.motionDurationSlow}`,[`${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{zIndex:10,width:Sn,margin:`0 ${bt.marginXXS}px`,fontSize:Sn,cursor:"pointer",transition:`all ${bt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${yn}-actions, ${yn}-actions:hover`]:{[`${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{color:new _n.C(Vn).setAlpha(.65).toRgbString(),"&:hover":{color:Vn}}},[`${yn}-thumbnail, ${yn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${yn}-name`]:{display:"none",textAlign:"center"},[`${yn}-file + ${yn}-name`]:{position:"absolute",bottom:bt.margin,display:"block",width:`calc(100% - ${bt.paddingXS*2}px)`},[`${yn}-uploading`]:{[`&${yn}`]:{backgroundColor:bt.colorFillAlter},[`&::before, ${Dt}-eye, ${Dt}-download, ${Dt}-delete`]:{display:"none"}},[`${yn}-progress`]:{bottom:bt.marginXL,width:`calc(100% - ${bt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ht}-wrapper${ht}-picture-circle-wrapper`]:{[`${ht}${ht}-select`]:{borderRadius:"50%"}}}};var qt=bt=>{const{componentCls:ht}=bt;return{[`${ht}-rtl`]:{direction:"rtl"}}};const _e=bt=>{const{componentCls:ht,colorTextDisabled:Dt}=bt;return{[`${ht}-wrapper`]:Object.assign(Object.assign({},(0,zr.Wf)(bt)),{[ht]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ht}-select`]:{display:"inline-block"},[`${ht}-disabled`]:{color:Dt,cursor:"not-allowed"}})}};var xt=(0,gr.Z)("Upload",bt=>{const{fontSizeHeading3:ht,fontSize:Dt,lineHeight:Sn,lineWidth:Vn,controlHeightLG:Cn}=bt,yn=Math.round(Dt*Sn),Ln=(0,Nr.TS)(bt,{uploadThumbnailSize:ht*2,uploadProgressOffset:yn/2+Vn,uploadPicCardSize:Cn*2.55});return[_e(Ln),Ai(Ln),Ye(Ln),mt(Ln),$r(Ln),rr(Ln),qt(Ln),(0,Wr.Z)(Ln)]},bt=>({actionsColor:bt.colorTextDescription})),Vt=function(bt,ht,Dt,Sn){function Vn(Cn){return Cn instanceof Dt?Cn:new Dt(function(yn){yn(Cn)})}return new(Dt||(Dt=Promise))(function(Cn,yn){function Ln(un){try{Cr(Sn.next(un))}catch(ni){yn(ni)}}function Un(un){try{Cr(Sn.throw(un))}catch(ni){yn(ni)}}function Cr(un){un.done?Cn(un.value):Vn(un.value).then(Ln,Un)}Cr((Sn=Sn.apply(bt,ht||[])).next())})};const Pt=`__LIST_IGNORE_${Date.now()}__`,tn=(bt,ht)=>{const{fileList:Dt,defaultFileList:Sn,onRemove:Vn,showUploadList:Cn=!0,listType:yn="text",onPreview:Ln,onDownload:Un,onChange:Cr,onDrop:un,previewFile:ni,disabled:Qr,locale:Hi,iconRender:ki,isImageUrl:vi,progress:qi,prefixCls:bi,className:di,type:Wi="select",children:Qi,style:ai,itemRender:xi,maxCount:Zi,data:ca={},multiple:na=!1,action:oi="",accept:Ot="",supportServerRender:At=!0,rootClassName:on}=bt,Mn=oe.useContext(Xe.Z),jn=Qr!=null?Qr:Mn,[Mr,_r]=(0,Pn.Z)(Sn||[],{value:Dt,postState:Re=>Re!=null?Re:[]}),[Jr,ti]=oe.useState("drop"),Yr=oe.useRef(null);oe.useMemo(()=>{const Re=Date.now();(Dt||[]).forEach((je,Rt)=>{!je.uid&&!Object.isFrozen(je)&&(je.uid=`__AUTO__${Re}_${Rt}__`)})},[Dt]);const si=(Re,je,Rt)=>{let yt=(0,He.Z)(je),rn=!1;Zi===1?yt=yt.slice(-1):Zi&&(rn=yt.length>Zi,yt=yt.slice(0,Zi)),(0,Kn.flushSync)(()=>{_r(yt)});const En={file:Re,fileList:yt};Rt&&(En.event=Rt),(!rn||yt.some(et=>et.uid===Re.uid))&&(0,Kn.flushSync)(()=>{Cr==null||Cr(En)})},wi=(Re,je)=>Vt(void 0,void 0,void 0,function*(){const{beforeUpload:Rt,transformFile:yt}=bt;let rn=Re;if(Rt){const En=yield Rt(Re,je);if(En===!1)return!1;if(delete Re[Pt],En===Pt)return Object.defineProperty(Re,Pt,{value:!0,configurable:!0}),!1;typeof En=="object"&&En&&(rn=En)}return yt&&(rn=yield yt(rn)),rn}),Hr=Re=>{const je=Re.filter(rn=>!rn.file[Pt]);if(!je.length)return;const Rt=je.map(rn=>vt(rn.file));let yt=(0,He.Z)(Mr);Rt.forEach(rn=>{yt=Nt(rn,yt)}),Rt.forEach((rn,En)=>{let et=rn;if(je[En].parsedFile)rn.status="uploading";else{const{originFileObj:at}=rn;let ot;try{ot=new File([at],at.name,{type:at.type})}catch(St){ot=new Blob([at],{type:at.type}),ot.name=at.name,ot.lastModifiedDate=new Date,ot.lastModified=new Date().getTime()}ot.uid=rn.uid,et=ot}si(et,yt)})},gi=(Re,je,Rt)=>{try{typeof Re=="string"&&(Re=JSON.parse(Re))}catch(En){}if(!Ft(je,Mr))return;const yt=vt(je);yt.status="done",yt.percent=100,yt.response=Re,yt.xhr=Rt;const rn=Nt(yt,Mr);si(yt,rn)},Ii=(Re,je)=>{if(!Ft(je,Mr))return;const Rt=vt(je);Rt.status="uploading",Rt.percent=Re.percent;const yt=Nt(Rt,Mr);si(Rt,yt,Re)},Si=(Re,je,Rt)=>{if(!Ft(Rt,Mr))return;const yt=vt(Rt);yt.error=Re,yt.response=je,yt.status="error";const rn=Nt(yt,Mr);si(yt,rn)},Pe=Re=>{let je;Promise.resolve(typeof Vn=="function"?Vn(Re):Vn).then(Rt=>{var yt;if(Rt===!1)return;const rn=zt(Re,Mr);rn&&(je=Object.assign(Object.assign({},Re),{status:"removed"}),Mr==null||Mr.forEach(En=>{const et=je.uid!==void 0?"uid":"name";En[et]===je[et]&&!Object.isFrozen(En)&&(En.status="removed")}),(yt=Yr.current)===null||yt===void 0||yt.abort(je),si(je,rn))})},We=Re=>{ti(Re.type),Re.type==="drop"&&(un==null||un(Re))};oe.useImperativeHandle(ht,()=>({onBatchStart:Hr,onSuccess:gi,onProgress:Ii,onError:Si,fileList:Mr,upload:Yr.current}));const{getPrefixCls:Ke,direction:Ge,upload:st}=oe.useContext(Yn.E_),pt=Ke("upload",bi),Tt=Object.assign(Object.assign({onBatchStart:Hr,onError:Si,onProgress:Ii,onSuccess:gi},bt),{data:ca,multiple:na,action:oi,accept:Ot,supportServerRender:At,prefixCls:pt,disabled:jn,beforeUpload:wi,onChange:void 0});delete Tt.className,delete Tt.style,(!Qi||jn)&&delete Tt.id;const[hn,xn]=xt(pt),[lr]=(0,we.Z)("Upload",Mt.Z.Upload),{showRemoveIcon:Lr,showPreviewIcon:tr,showDownloadIcon:Tn,removeIcon:kn,previewIcon:Fn,downloadIcon:Qn}=typeof Cn=="boolean"?{}:Cn,Ar=(Re,je)=>Cn?oe.createElement(Ir,{prefixCls:pt,listType:yn,items:Mr,previewFile:ni,onPreview:Ln,onDownload:Un,onRemove:Pe,showRemoveIcon:!jn&&Lr,showPreviewIcon:tr,showDownloadIcon:Tn,removeIcon:kn,previewIcon:Fn,downloadIcon:Qn,iconRender:ki,locale:Object.assign(Object.assign({},lr),Hi),isImageUrl:vi,progress:qi,appendAction:Re,appendActionVisible:je,itemRender:xi,disabled:jn}):Re,or=qe()(`${pt}-wrapper`,di,on,xn,st==null?void 0:st.className,{[`${pt}-rtl`]:Ge==="rtl",[`${pt}-picture-card-wrapper`]:yn==="picture-card",[`${pt}-picture-circle-wrapper`]:yn==="picture-circle"}),ir=Object.assign(Object.assign({},st==null?void 0:st.style),ai);if(Wi==="drag"){const Re=qe()(xn,pt,`${pt}-drag`,{[`${pt}-drag-uploading`]:Mr.some(je=>je.status==="uploading"),[`${pt}-drag-hover`]:Jr==="dragover",[`${pt}-disabled`]:jn,[`${pt}-rtl`]:Ge==="rtl"});return hn(oe.createElement("span",{className:or},oe.createElement("div",{className:Re,style:ir,onDrop:We,onDragOver:We,onDragLeave:We},oe.createElement($t,Object.assign({},Tt,{ref:Yr,className:`${pt}-btn`}),oe.createElement("div",{className:`${pt}-drag-container`},Qi))),Ar()))}const pr=qe()(pt,`${pt}-select`,{[`${pt}-disabled`]:jn}),Br=(Re=>oe.createElement("div",{className:pr,style:Re},oe.createElement($t,Object.assign({},Tt,{ref:Yr}))))(Qi?void 0:{display:"none"});return hn(yn==="picture-card"||yn==="picture-circle"?oe.createElement("span",{className:or},Ar(Br,!!Qi)):oe.createElement("span",{className:or},Br,Ar()))};var Rn=oe.forwardRef(tn),Or=function(bt,ht){var Dt={};for(var Sn in bt)Object.prototype.hasOwnProperty.call(bt,Sn)&&ht.indexOf(Sn)<0&&(Dt[Sn]=bt[Sn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,Sn=Object.getOwnPropertySymbols(bt);Vn{var{style:Dt,height:Sn}=bt,Vn=Or(bt,["style","height"]);return oe.createElement(Rn,Object.assign({ref:ht},Vn,{type:"drag",style:Object.assign(Object.assign({},Dt),{height:Sn})}))});const xr=Rn;xr.Dragger=ar,xr.LIST_IGNORE=Pt;var Sr=xr},72665:function(sn,nn){"use strict";var se;var oe=typeof Symbol=="function"&&Symbol.for,He=oe?Symbol.for("react.element"):60103,Ne=oe?Symbol.for("react.portal"):60106,qe=oe?Symbol.for("react.fragment"):60107,ve=oe?Symbol.for("react.strict_mode"):60108,Le=oe?Symbol.for("react.profiler"):60114,De=oe?Symbol.for("react.provider"):60109,xe=oe?Symbol.for("react.context"):60110,me=oe?Symbol.for("react.async_mode"):60111,Te=oe?Symbol.for("react.concurrent_mode"):60111,rt=oe?Symbol.for("react.forward_ref"):60112,Ie=oe?Symbol.for("react.suspense"):60113,Et=oe?Symbol.for("react.suspense_list"):60120,dt=oe?Symbol.for("react.memo"):60115,ct=oe?Symbol.for("react.lazy"):60116,$e=oe?Symbol.for("react.block"):60121,Ae=oe?Symbol.for("react.fundamental"):60117,ft=oe?Symbol.for("react.responder"):60118,Yt=oe?Symbol.for("react.scope"):60119;function Qe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case He:switch(Se=Se.type,Se){case me:case Te:case qe:case Le:case ve:case Ie:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case rt:case ct:case dt:case De:return Se;default:return Ce}}case Ne:return Ce}}}function it(Se){return Qe(Se)===Te}se=me,se=Te,se=xe,se=De,se=He,se=rt,se=qe,se=ct,se=dt,se=Ne,se=Le,se=ve,se=Ie,se=function(Se){return it(Se)||Qe(Se)===me},se=it,se=function(Se){return Qe(Se)===xe},se=function(Se){return Qe(Se)===De},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===He},se=function(Se){return Qe(Se)===rt},se=function(Se){return Qe(Se)===qe},se=function(Se){return Qe(Se)===ct},nn.isMemo=function(Se){return Qe(Se)===dt},se=function(Se){return Qe(Se)===Ne},se=function(Se){return Qe(Se)===Le},se=function(Se){return Qe(Se)===ve},se=function(Se){return Qe(Se)===Ie},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Te||Se===Le||Se===ve||Se===Ie||Se===Et||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===dt||Se.$$typeof===De||Se.$$typeof===xe||Se.$$typeof===rt||Se.$$typeof===Ae||Se.$$typeof===ft||Se.$$typeof===Yt||Se.$$typeof===$e)},se=Qe},12060:function(sn,nn,se){"use strict";sn.exports=se(72665)},41771:function(sn,nn){"use strict";var se;var oe=typeof Symbol=="function"&&Symbol.for,He=oe?Symbol.for("react.element"):60103,Ne=oe?Symbol.for("react.portal"):60106,qe=oe?Symbol.for("react.fragment"):60107,ve=oe?Symbol.for("react.strict_mode"):60108,Le=oe?Symbol.for("react.profiler"):60114,De=oe?Symbol.for("react.provider"):60109,xe=oe?Symbol.for("react.context"):60110,me=oe?Symbol.for("react.async_mode"):60111,Te=oe?Symbol.for("react.concurrent_mode"):60111,rt=oe?Symbol.for("react.forward_ref"):60112,Ie=oe?Symbol.for("react.suspense"):60113,Et=oe?Symbol.for("react.suspense_list"):60120,dt=oe?Symbol.for("react.memo"):60115,ct=oe?Symbol.for("react.lazy"):60116,$e=oe?Symbol.for("react.block"):60121,Ae=oe?Symbol.for("react.fundamental"):60117,ft=oe?Symbol.for("react.responder"):60118,Yt=oe?Symbol.for("react.scope"):60119;function Qe(Se){if(typeof Se=="object"&&Se!==null){var Ce=Se.$$typeof;switch(Ce){case He:switch(Se=Se.type,Se){case me:case Te:case qe:case Le:case ve:case Ie:return Se;default:switch(Se=Se&&Se.$$typeof,Se){case xe:case rt:case ct:case dt:case De:return Se;default:return Ce}}case Ne:return Ce}}}function it(Se){return Qe(Se)===Te}se=me,se=Te,se=xe,se=De,se=He,se=rt,se=qe,se=ct,se=dt,se=Ne,se=Le,se=ve,se=Ie,se=function(Se){return it(Se)||Qe(Se)===me},se=it,se=function(Se){return Qe(Se)===xe},se=function(Se){return Qe(Se)===De},se=function(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===He},se=function(Se){return Qe(Se)===rt},nn.isFragment=function(Se){return Qe(Se)===qe},se=function(Se){return Qe(Se)===ct},se=function(Se){return Qe(Se)===dt},se=function(Se){return Qe(Se)===Ne},se=function(Se){return Qe(Se)===Le},se=function(Se){return Qe(Se)===ve},se=function(Se){return Qe(Se)===Ie},se=function(Se){return typeof Se=="string"||typeof Se=="function"||Se===qe||Se===Te||Se===Le||Se===ve||Se===Ie||Se===Et||typeof Se=="object"&&Se!==null&&(Se.$$typeof===ct||Se.$$typeof===dt||Se.$$typeof===De||Se.$$typeof===xe||Se.$$typeof===rt||Se.$$typeof===Ae||Se.$$typeof===ft||Se.$$typeof===Yt||Se.$$typeof===$e)},se=Qe},47655:function(sn,nn,se){"use strict";sn.exports=se(41771)},64701:function(sn,nn,se){"use strict";se.r(nn),se.d(nn,{ResizableTextArea:function(){return cn},default:function(){return wn}});var oe=se(87462),He=se(1413),Ne=se(4942),qe=se(71002),ve=se(97685),Le=se(45987),De=se(74902),xe=se(94184),me=se.n(xe),Te=se(67656),rt=se(87887),Ie=se(67294);function Et(Qt){var en=Ie.useRef();en.current=Qt;var Dn=Ie.useCallback(function(){for(var vn,Be=arguments.length,fe=new Array(Be),ce=0;ce1&&arguments[1]!==void 0?arguments[1]:1;Ve+=1;var vn=Ve;function Be(fe){if(fe===0)wt(vn),en();else{var ce=Se(function(){Be(fe-1)});Ue.set(vn,ce)}}return Be(Dn),vn};gt.cancel=function(Qt){var en=Ue.get(Qt);return wt(en),Ce(en)};var Lt=gt,Je=` 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; `,Ut=["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"],It={},pn;function $t(Qt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dn=Qt.getAttribute("id")||Qt.getAttribute("data-reactid")||Qt.getAttribute("name");if(en&&It[Dn])return It[Dn];var vn=window.getComputedStyle(Qt),Be=vn.getPropertyValue("box-sizing")||vn.getPropertyValue("-moz-box-sizing")||vn.getPropertyValue("-webkit-box-sizing"),fe=parseFloat(vn.getPropertyValue("padding-bottom"))+parseFloat(vn.getPropertyValue("padding-top")),ce=parseFloat(vn.getPropertyValue("border-bottom-width"))+parseFloat(vn.getPropertyValue("border-top-width")),he=Ut.map(function(le){return"".concat(le,":").concat(vn.getPropertyValue(le))}).join(";"),de={sizingStyle:he,paddingSize:fe,borderSize:ce,boxSizing:Be};return en&&Dn&&(It[Dn]=de),de}function Pn(Qt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pn||(pn=document.createElement("textarea"),pn.setAttribute("tab-index","-1"),pn.setAttribute("aria-hidden","true"),document.body.appendChild(pn)),Qt.getAttribute("wrap")?pn.setAttribute("wrap",Qt.getAttribute("wrap")):pn.removeAttribute("wrap");var Be=$t(Qt,en),fe=Be.paddingSize,ce=Be.borderSize,he=Be.boxSizing,de=Be.sizingStyle;pn.setAttribute("style","".concat(de,";").concat(Je)),pn.value=Qt.value||Qt.placeholder||"";var le=void 0,Ee=void 0,Ze,vt=pn.scrollHeight;if(he==="border-box"?vt+=ce:he==="content-box"&&(vt-=fe),Dn!==null||vn!==null){pn.value=" ";var Nt=pn.scrollHeight-fe;Dn!==null&&(le=Nt*Dn,he==="border-box"&&(le=le+fe+ce),vt=Math.max(le,vt)),vn!==null&&(Ee=Nt*vn,he==="border-box"&&(Ee=Ee+fe+ce),Ze=vt>Ee?"":"hidden",vt=Math.min(Ee,vt))}var Ft={height:vt,overflowY:Ze,resize:"none"};return le&&(Ft.minHeight=le),Ee&&(Ft.maxHeight=Ee),Ft}var Kn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Yn=0,Xe=1,we=2,Mt=Ie.forwardRef(function(Qt,en){var Dn=Qt,vn=Dn.prefixCls,Be=Dn.onPressEnter,fe=Dn.defaultValue,ce=Dn.value,he=Dn.autoSize,de=Dn.onResize,le=Dn.className,Ee=Dn.style,Ze=Dn.disabled,vt=Dn.onChange,Nt=Dn.onInternalAutoSize,Ft=(0,Le.Z)(Dn,Kn),zt=Qe(fe,{value:ce,postState:function(Nn){return Nn!=null?Nn:""}}),Gt=(0,ve.Z)(zt,2),$n=Gt[0],mr=Gt[1],_t=function(Nn){mr(Nn.target.value),vt==null||vt(Nn)},bn=Ie.useRef();Ie.useImperativeHandle(en,function(){return{textArea:bn.current}});var ur=Ie.useMemo(function(){return he&&(0,qe.Z)(he)==="object"?[he.minRows,he.maxRows]:[]},[he]),Tr=(0,ve.Z)(ur,2),lt=Tr[0],Jt=Tr[1],Hn=!!he,er=function(){try{if(document.activeElement===bn.current){var Nn=bn.current,Jn=Nn.selectionStart,rr=Nn.selectionEnd,wr=Nn.scrollTop;bn.current.setSelectionRange(Jn,rr),bn.current.scrollTop=wr}}catch(_n){}},nr=Ie.useState(we),Er=(0,ve.Z)(nr,2),Pr=Er[0],Ir=Er[1],zr=Ie.useState(),Wr=(0,ve.Z)(zr,2),gr=Wr[0],Nr=Wr[1],Bi=function(){Ir(Yn)};$e(function(){Hn&&Bi()},[ce,lt,Jt,Hn]),$e(function(){if(Pr===Yn)Ir(Xe);else if(Pr===Xe){var On=Pn(bn.current,!1,lt,Jt);Ir(we),Nr(On)}else er()},[Pr]);var Ai=Ie.useRef(),Fi=function(){Lt.cancel(Ai.current)},$r=function(Nn){Pr===we&&(de==null||de(Nn),he&&(Fi(),Ai.current=Lt(function(){Bi()})))};Ie.useEffect(function(){return Fi},[]);var Ct=Hn?gr:null,dn=(0,He.Z)((0,He.Z)({},Ee),Ct);return(Pr===Yn||Pr===Xe)&&(dn.overflowY="hidden",dn.overflowX="hidden"),Ie.createElement(it.Z,{onResize:$r,disabled:!(he||de)},Ie.createElement("textarea",(0,oe.Z)({},Ft,{ref:bn,style:dn,className:me()(vn,le,(0,Ne.Z)({},"".concat(vn,"-disabled"),Ze)),disabled:Ze,value:$n,onChange:_t})))}),cn=Mt,Kt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function tt(Qt,en){return(0,De.Z)(Qt||"").slice(0,en).join("")}function ut(Qt,en,Dn,vn){var Be=Dn;return Qt?Be=tt(Dn,vn):(0,De.Z)(en||"").lengthvn&&(Be=en),Be}var Zt=Ie.forwardRef(function(Qt,en){var Dn,vn=Qt.defaultValue,Be=Qt.value,fe=Qt.onFocus,ce=Qt.onBlur,he=Qt.onChange,de=Qt.allowClear,le=Qt.maxLength,Ee=Qt.onCompositionStart,Ze=Qt.onCompositionEnd,vt=Qt.suffix,Nt=Qt.prefixCls,Ft=Nt===void 0?"rc-textarea":Nt,zt=Qt.classes,Gt=Qt.showCount,$n=Qt.className,mr=Qt.style,_t=Qt.disabled,bn=Qt.hidden,ur=Qt.classNames,Tr=Qt.styles,lt=Qt.onResize,Jt=(0,Le.Z)(Qt,Kt),Hn=Qe(vn,{value:Be,defaultValue:vn}),er=(0,ve.Z)(Hn,2),nr=er[0],Er=er[1],Pr=(0,Ie.useRef)(null),Ir=Ie.useState(!1),zr=(0,ve.Z)(Ir,2),Wr=zr[0],gr=zr[1],Nr=Ie.useState(!1),Bi=(0,ve.Z)(Nr,2),Ai=Bi[0],Fi=Bi[1],$r=Ie.useRef(),Ct=Ie.useRef(0),dn=Ie.useState(null),On=(0,ve.Z)(dn,2),Nn=On[0],Jn=On[1],rr=function(){var xr;(xr=Pr.current)===null||xr===void 0||xr.textArea.focus()};(0,Ie.useImperativeHandle)(en,function(){return{resizableTextArea:Pr.current,focus:rr,blur:function(){var xr;(xr=Pr.current)===null||xr===void 0||xr.textArea.blur()}}}),(0,Ie.useEffect)(function(){gr(function(ar){return!_t&&ar})},[_t]);var wr=Number(le)>0,_n=function(xr){Fi(!0),$r.current=nr,Ct.current=xr.currentTarget.selectionStart,Ee==null||Ee(xr)},Ye=function(xr){Fi(!1);var Sr=xr.currentTarget.value;if(wr){var bt,ht=Ct.current>=le+1||Ct.current===((bt=$r.current)===null||bt===void 0?void 0:bt.length);Sr=ut(ht,$r.current,Sr,le)}Sr!==nr&&(Er(Sr),(0,rt.rJ)(xr.currentTarget,xr,he,Sr)),Ze==null||Ze(xr)},mt=function(xr){var Sr=xr.target.value;if(!Ai&&wr){var bt=xr.target.selectionStart>=le+1||xr.target.selectionStart===Sr.length||!xr.target.selectionStart;Sr=ut(bt,nr,Sr,le)}Er(Sr),(0,rt.rJ)(xr.currentTarget,xr,he,Sr)},Ht=function(xr){var Sr=Jt.onPressEnter,bt=Jt.onKeyDown;xr.key==="Enter"&&Sr&&Sr(xr),bt==null||bt(xr)},qt=function(xr){gr(!0),fe==null||fe(xr)},_e=function(xr){gr(!1),ce==null||ce(xr)},xt=function(xr){var Sr;Er(""),rr(),(0,rt.rJ)((Sr=Pr.current)===null||Sr===void 0?void 0:Sr.textArea,xr,he)},Vt=(0,rt.D7)(nr);!Ai&&wr&&Be==null&&(Vt=tt(Vt,le));var Pt=vt,tn;if(Gt){var an=(0,De.Z)(Vt).length;(0,qe.Z)(Gt)==="object"?tn=Gt.formatter({value:Vt,count:an,maxLength:le}):tn="".concat(an).concat(wr?" / ".concat(le):""),Pt=Ie.createElement(Ie.Fragment,null,Pt,Ie.createElement("span",{className:me()("".concat(Ft,"-data-count"),ur==null?void 0:ur.count),style:Tr==null?void 0:Tr.count},tn))}var Rn=function(xr){var Sr;lt==null||lt(xr),(Sr=Pr.current)!==null&&Sr!==void 0&&Sr.textArea.style.height&&Jn(!0)},Or=!Jt.autoSize&&!Gt&&!de,dr=Ie.createElement(Te.BaseInput,{value:Vt,allowClear:de,handleReset:xt,suffix:Pt,prefixCls:Ft,classes:{affixWrapper:me()(zt==null?void 0:zt.affixWrapper,(Dn={},(0,Ne.Z)(Dn,"".concat(Ft,"-show-count"),Gt),(0,Ne.Z)(Dn,"".concat(Ft,"-textarea-allow-clear"),de),Dn))},disabled:_t,focused:Wr,className:$n,style:(0,He.Z)((0,He.Z)({},mr),Nn&&!Or?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof tn=="string"?tn:void 0}},hidden:bn,inputElement:Ie.createElement(cn,(0,oe.Z)({},Jt,{onKeyDown:Ht,onChange:mt,onFocus:qt,onBlur:_e,onCompositionStart:_n,onCompositionEnd:Ye,className:ur==null?void 0:ur.textarea,style:(0,He.Z)((0,He.Z)({},Tr==null?void 0:Tr.textarea),{},{resize:mr==null?void 0:mr.resize}),disabled:_t,prefixCls:Ft,onResize:Rn,ref:Pr}))});return dr}),Wn=Zt,wn=Wn},1337:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return xe}});var oe=se(1413),He=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Ne=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,qe="".concat(He," ").concat(Ne).split(/[\s\n]+/),ve="aria-",Le="data-";function De(me,Te){return me.indexOf(Te)===0}function xe(me){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt;Te===!1?rt={aria:!0,data:!0,attr:!0}:Te===!0?rt={aria:!0}:rt=(0,oe.Z)({},Te);var Ie={};return Object.keys(me).forEach(function(Et){(rt.aria&&(Et==="role"||De(Et,ve))||rt.data&&De(Et,Le)||rt.attr&&qe.includes(Et))&&(Ie[Et]=me[Et])}),Ie}},88386:function(sn,nn,se){(function(oe){oe(se(4631))})(function(oe){oe.defineOption("placeholder","",function(xe,me,Te){var rt=Te&&Te!=oe.Init;if(me&&!rt)xe.on("blur",ve),xe.on("change",Le),xe.on("swapDoc",Le),oe.on(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose=function(){qe(xe)}),Le(xe);else if(!me&&rt){xe.off("blur",ve),xe.off("change",Le),xe.off("swapDoc",Le),oe.off(xe.getInputField(),"compositionupdate",xe.state.placeholderCompose),He(xe);var Ie=xe.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}me&&!xe.hasFocus()&&ve(xe)});function He(xe){xe.state.placeholder&&(xe.state.placeholder.parentNode.removeChild(xe.state.placeholder),xe.state.placeholder=null)}function Ne(xe){He(xe);var me=xe.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=xe.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var Te=xe.getOption("placeholder");typeof Te=="string"&&(Te=document.createTextNode(Te)),me.appendChild(Te),xe.display.lineSpace.insertBefore(me,xe.display.lineSpace.firstChild)}function qe(xe){setTimeout(function(){var me=!1,Te=xe.getInputField();Te.nodeName=="TEXTAREA"?me=!Te.value:xe.lineCount()==1&&(me=!/[^\u200b]/.test(Te.querySelector(".CodeMirror-line").textContent)),me?Ne(xe):He(xe)},20)}function ve(xe){De(xe)&&Ne(xe)}function Le(xe){var me=xe.getWrapperElement(),Te=De(xe);me.className=me.className.replace(" CodeMirror-empty","")+(Te?" CodeMirror-empty":""),Te?Ne(xe):He(xe)}function De(xe){return xe.lineCount()===1&&xe.getLine(0)===""}})},82801:function(sn,nn,se){(function(oe){oe(se(4631))})(function(oe){var He={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Ne=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(ct,$e,Ae){Ae&&Ae!=oe.Init&&(ct.removeKeyMap(ve),ct.state.closeBrackets=null),$e&&(Le(qe($e,"pairs")),ct.state.closeBrackets=$e,ct.addKeyMap(ve))});function qe(ct,$e){return $e=="pairs"&&typeof ct=="string"?ct:typeof ct=="object"&&ct[$e]!=null?ct[$e]:He[$e]}var ve={Backspace:me,Enter:Te};function Le(ct){for(var $e=0;$e=0;Yt--){var it=ft[Yt].head;ct.replaceRange("",Ne(it.line,it.ch-1),Ne(it.line,it.ch+1),"+delete")}}function Te(ct){var $e=xe(ct),Ae=$e&&qe($e,"explode");if(!Ae||ct.getOption("disableInput"))return oe.Pass;for(var ft=ct.listSelections(),Yt=0;Yt0;return{anchor:new Ne(ct.anchor.line,ct.anchor.ch+($e?-1:1)),head:new Ne(ct.head.line,ct.head.ch+($e?1:-1))}}function Ie(ct,$e){var Ae=xe(ct);if(!Ae||ct.getOption("disableInput"))return oe.Pass;var ft=qe(Ae,"pairs"),Yt=ft.indexOf($e);if(Yt==-1)return oe.Pass;for(var Qe=qe(Ae,"closeBefore"),it=qe(Ae,"triples"),Se=ft.charAt(Yt+1)==$e,Ce=ct.listSelections(),Ve=Yt%2==0,Ue,wt=0;wt=0&&ct.getRange(Lt,Ne(Lt.line,Lt.ch+3))==$e+$e+$e?Je="skipThree":Je="skip";else if(Se&&Lt.ch>1&&it.indexOf($e)>=0&&ct.getRange(Ne(Lt.line,Lt.ch-2),Lt)==$e+$e){if(Lt.ch>2&&/\bstring/.test(ct.getTokenTypeAt(Ne(Lt.line,Lt.ch-2))))return oe.Pass;Je="addFour"}else if(Se){var It=Lt.ch==0?" ":ct.getRange(Ne(Lt.line,Lt.ch-1),Lt);if(!oe.isWordChar(Ut)&&It!=$e&&!oe.isWordChar(It))Je="both";else return oe.Pass}else if(Ve&&(Ut.length===0||/\s/.test(Ut)||Qe.indexOf(Ut)>-1))Je="both";else return oe.Pass;if(!Ue)Ue=Je;else if(Ue!=Je)return oe.Pass}var pn=Yt%2?ft.charAt(Yt-1):$e,$t=Yt%2?$e:ft.charAt(Yt+1);ct.operation(function(){if(Ue=="skip")ct.execCommand("goCharRight");else if(Ue=="skipThree")for(var Pn=0;Pn<3;Pn++)ct.execCommand("goCharRight");else if(Ue=="surround"){for(var Kn=ct.getSelections(),Pn=0;Pn'"]=function(Et){return qe(Et)}),me.addKeyMap(Ie)}});var He=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ne=["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 qe(me){if(me.getOption("disableInput"))return oe.Pass;for(var Te=me.listSelections(),rt=[],Ie=me.getOption("autoCloseTags"),Et=0;Etdt.ch&&(Yt=Yt.slice(0,Yt.length-ct.end+dt.ch));var Ce=Yt.toLowerCase();if(!Yt||ct.type=="string"&&(ct.end!=dt.ch||!/[\"\']/.test(ct.string.charAt(ct.string.length-1))||ct.string.length==1)||ct.type=="tag"&&ft.close||ct.string.indexOf("/")==dt.ch-ct.start-1||it&&De(it,Ce)>-1||xe(me,$e.mode.xmlCurrentContext&&$e.mode.xmlCurrentContext(Ae)||[],Yt,dt,!0))return oe.Pass;var Ve=typeof Ie=="object"&&Ie.emptyTags;if(Ve&&De(Ve,Yt)>-1){rt[Et]={text:"/>",newPos:oe.Pos(dt.line,dt.ch+2)};continue}var Ue=Se&&De(Se,Ce)>-1;rt[Et]={indent:Ue,text:">"+(Ue?` `:"")+"",newPos:Ue?oe.Pos(dt.line+1,0):oe.Pos(dt.line,dt.ch+1)}}for(var wt=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,Et=Te.length-1;Et>=0;Et--){var gt=rt[Et];me.replaceRange(gt.text,Te[Et].head,Te[Et].anchor,"+insert");var Lt=me.listSelections().slice(0);Lt[Et]={head:gt.newPos,anchor:gt.newPos},me.setSelections(Lt),!wt&>.indent&&(me.indentLine(gt.newPos.line,null,!0),me.indentLine(gt.newPos.line+1,null,!0))}}function ve(me,Te){for(var rt=me.listSelections(),Ie=[],Et=Te?"/":""&&(it+=">"),Ie[$e]=it}if(me.replaceSelections(Ie),rt=me.listSelections(),!ct)for(var $e=0;$e=0&&Te[Ae]==rt;Ae--)++$e;Ie=ct.to;for(var Ae=1;Ae<$e;Ae++){var ft=oe.scanForClosingTag(me,Ie,null,dt);if(!ft||ft.tag!=rt)return!1;Ie=ft.to}return!0}})},4786:function(sn,nn,se){(function(oe){oe(se(4631))})(function(oe){"use strict";var He=oe.Pos;function Ne(Ae,ft){return Ae.line-ft.line||Ae.ch-ft.ch}var qe="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",ve=qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Le=new RegExp("<(/?)(["+qe+"]["+ve+"]*)","g");function De(Ae,ft,Yt,Qe){this.line=ft,this.ch=Yt,this.cm=Ae,this.text=Ae.getLine(ft),this.min=Qe?Math.max(Qe.from,Ae.firstLine()):Ae.firstLine(),this.max=Qe?Math.min(Qe.to-1,Ae.lastLine()):Ae.lastLine()}function xe(Ae,ft){var Yt=Ae.cm.getTokenTypeAt(He(Ae.line,ft));return Yt&&/\btag\b/.test(Yt)}function me(Ae){if(!(Ae.line>=Ae.max))return Ae.ch=0,Ae.text=Ae.cm.getLine(++Ae.line),!0}function Te(Ae){if(!(Ae.line<=Ae.min))return Ae.text=Ae.cm.getLine(--Ae.line),Ae.ch=Ae.text.length,!0}function rt(Ae){for(;;){var ft=Ae.text.indexOf(">",Ae.ch);if(ft==-1){if(me(Ae))continue;return}if(!xe(Ae,ft+1)){Ae.ch=ft+1;continue}var Yt=Ae.text.lastIndexOf("/",ft),Qe=Yt>-1&&!/\S/.test(Ae.text.slice(Yt+1,ft));return Ae.ch=ft+1,Qe?"selfClose":"regular"}}function Ie(Ae){for(;;){var ft=Ae.ch?Ae.text.lastIndexOf("<",Ae.ch-1):-1;if(ft==-1){if(Te(Ae))continue;return}if(!xe(Ae,ft+1)){Ae.ch=ft;continue}Le.lastIndex=ft,Ae.ch=ft;var Yt=Le.exec(Ae.text);if(Yt&&Yt.index==ft)return Yt}}function Et(Ae){for(;;){Le.lastIndex=Ae.ch;var ft=Le.exec(Ae.text);if(!ft){if(me(Ae))continue;return}if(!xe(Ae,ft.index+1)){Ae.ch=ft.index+1;continue}return Ae.ch=ft.index+ft[0].length,ft}}function dt(Ae){for(;;){var ft=Ae.ch?Ae.text.lastIndexOf(">",Ae.ch-1):-1;if(ft==-1){if(Te(Ae))continue;return}if(!xe(Ae,ft+1)){Ae.ch=ft;continue}var Yt=Ae.text.lastIndexOf("/",ft),Qe=Yt>-1&&!/\S/.test(Ae.text.slice(Yt+1,ft));return Ae.ch=ft+1,Qe?"selfClose":"regular"}}function ct(Ae,ft){for(var Yt=[];;){var Qe=Et(Ae),it,Se=Ae.line,Ce=Ae.ch-(Qe?Qe[0].length:0);if(!Qe||!(it=rt(Ae)))return;if(it!="selfClose")if(Qe[1]){for(var Ve=Yt.length-1;Ve>=0;--Ve)if(Yt[Ve]==Qe[2]){Yt.length=Ve;break}if(Ve<0&&(!ft||ft==Qe[2]))return{tag:Qe[2],from:He(Se,Ce),to:He(Ae.line,Ae.ch)}}else Yt.push(Qe[2])}}function $e(Ae,ft){for(var Yt=[];;){var Qe=dt(Ae);if(!Qe)return;if(Qe=="selfClose"){Ie(Ae);continue}var it=Ae.line,Se=Ae.ch,Ce=Ie(Ae);if(!Ce)return;if(Ce[1])Yt.push(Ce[2]);else{for(var Ve=Yt.length-1;Ve>=0;--Ve)if(Yt[Ve]==Ce[2]){Yt.length=Ve;break}if(Ve<0&&(!ft||ft==Ce[2]))return{tag:Ce[2],from:He(Ae.line,Ae.ch),to:He(it,Se)}}}}oe.registerHelper("fold","xml",function(Ae,ft){for(var Yt=new De(Ae,ft.line,0);;){var Qe=Et(Yt);if(!Qe||Yt.line!=ft.line)return;var it=rt(Yt);if(!it)return;if(!Qe[1]&&it!="selfClose"){var Se=He(Yt.line,Yt.ch),Ce=ct(Yt,Qe[2]);return Ce&&Ne(Ce.from,Se)>0?{from:Se,to:Ce.from}:null}}}),oe.findMatchingTag=function(Ae,ft,Yt){var Qe=new De(Ae,ft.line,ft.ch,Yt);if(!(Qe.text.indexOf(">")==-1&&Qe.text.indexOf("<")==-1)){var it=rt(Qe),Se=it&&He(Qe.line,Qe.ch),Ce=it&&Ie(Qe);if(!(!it||!Ce||Ne(Qe,ft)>0)){var Ve={from:He(Qe.line,Qe.ch),to:Se,tag:Ce[2]};return it=="selfClose"?{open:Ve,close:null,at:"open"}:Ce[1]?{open:$e(Qe,Ce[2]),close:Ve,at:"close"}:(Qe=new De(Ae,Se.line,Se.ch,Yt),{open:Ve,close:ct(Qe,Ce[2]),at:"open"})}}},oe.findEnclosingTag=function(Ae,ft,Yt,Qe){for(var it=new De(Ae,ft.line,ft.ch,Yt);;){var Se=$e(it,Qe);if(!Se)break;var Ce=new De(Ae,ft.line,ft.ch,Yt),Ve=ct(Ce,Se.tag);if(Ve)return{open:Se,close:Ve}}},oe.scanForClosingTag=function(Ae,ft,Yt,Qe){var it=new De(Ae,ft.line,ft.ch,Qe?{from:0,to:Qe}:null);return ct(it,Yt)}})},4631:function(sn){(function(nn,se){sn.exports=se()})(this,function(){"use strict";var nn=navigator.userAgent,se=navigator.platform,oe=/gecko\/\d/i.test(nn),He=/MSIE \d/.test(nn),Ne=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(nn),qe=/Edge\/(\d+)/.exec(nn),ve=He||Ne||qe,Le=ve&&(He?document.documentMode||6:+(qe||Ne)[1]),De=!qe&&/WebKit\//.test(nn),xe=De&&/Qt\/\d+\.\d+/.test(nn),me=!qe&&/Chrome\//.test(nn),Te=/Opera\//.test(nn),rt=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(nn),Et=/PhantomJS/.test(nn),dt=!qe&&/AppleWebKit/.test(nn)&&/Mobile\/\w+/.test(nn),ct=/Android/.test(nn),$e=dt||ct||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(nn),Ae=dt||/Mac/.test(se),ft=/\bCrOS\b/.test(nn),Yt=/win/i.test(se),Qe=Te&&nn.match(/Version\/(\d*\.\d*)/);Qe&&(Qe=Number(Qe[1])),Qe&&Qe>=15&&(Te=!1,De=!0);var it=Ae&&(xe||Te&&(Qe==null||Qe<12.11)),Se=oe||ve&&Le>=9;function Ce(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ve=function(x,z){var ne=x.className,te=Ce(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ue(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function wt(x,z){return Ue(x).appendChild(z)}function gt(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var ue=0;ue=z)return ye+(z-ue);ye+=ke-ue,ye+=ne-ye%ne,ue=ke+1}}var we=function(){this.id=null,this.f=null,this.time=0,this.handler=Kn(this.onTimeout,this)};we.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},we.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne=z)return te+Math.min(ye,z-ie);if(ie+=ue-te,ie+=ne-ie%ne,te=ue+1,ie>=z)return te}}var wn=[""];function Qt(x){for(;wn.length<=x;)wn.push(en(wn)+" ");return wn[x]}function en(x){return x[x.length-1]}function Dn(x,z){for(var ne=[],te=0;te"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function de(x,z){return z?z.source.indexOf("\\w")>-1&&he(x)?!0:z.test(x):he(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Ee=/[\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 Ze(x){return x.charCodeAt(0)>=768&&Ee.test(x)}function vt(x,z,ne){for(;(ne<0?z>0:zne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,ue=te<0?Math.ceil(ie):Math.floor(ie);if(ue==z)return x(ue)?z:ne;x(ue)?ne=ue:z=ue+te}}function Ft(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,ue=0;uez||z==ne&&ye.to==z)&&(te(Math.max(ye.from,z),Math.min(ye.to,ne),ye.level==1?"rtl":"ltr",ue),ie=!0)}ie||te(z,ne,"ltr")}var zt=null;function Gt(x,z,ne){var te;zt=null;for(var ie=0;iez)return ie;ue.to==z&&(ue.from!=ue.to&&ne=="before"?te=ie:zt=ie),ue.from==z&&(ue.from!=ue.to&&ne!="before"?te=ie:zt=ie)}return te!=null?te:zt}var $n=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(Fe){return Fe<=247?x.charAt(Fe):1424<=Fe&&Fe<=1524?"R":1536<=Fe&&Fe<=1785?z.charAt(Fe-1536):1774<=Fe&&Fe<=2220?"r":8192<=Fe&&Fe<=8203?"w":Fe==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,ue=/[LRr]/,ye=/[Lb1n]/,ke=/[1n]/;function Oe(Fe,kt,jt){this.level=Fe,this.from=kt,this.to=jt}return function(Fe,kt){var jt=kt=="ltr"?"L":"R";if(Fe.length==0||kt=="ltr"&&!te.test(Fe))return!1;for(var An=Fe.length,mn=[],cr=0;cr-1&&(te[z]=ie.slice(0,ue).concat(ie.slice(ue+1)))}}}function lt(x,z){var ne=ur(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie0}function nr(x){x.prototype.on=function(z,ne){bn(this,z,ne)},x.prototype.off=function(z,ne){Tr(this,z,ne)}}function Er(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Pr(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Ir(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function zr(x){Er(x),Pr(x)}function Wr(x){return x.target||x.srcElement}function gr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),Ae&&x.ctrlKey&&z==1&&(z=3),z}var Nr=function(){if(ve&&Le<9)return!1;var x=gt("div");return"draggable"in x||"dragDrop"in x}(),Bi;function Ai(x){if(Bi==null){var z=gt("span","\u200B");wt(x,gt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Bi=z.offsetWidth<=1&&z.offsetHeight>2&&!(ve&&Le<8))}var ne=Bi?gt("span","\u200B"):gt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Fi;function $r(x){if(Fi!=null)return Fi;var z=wt(x,document.createTextNode("A\u062EA")),ne=Je(z,0,1).getBoundingClientRect(),te=Je(z,1,2).getBoundingClientRect();return Ue(x),!ne||ne.left==ne.right?!1:Fi=te.right-ne.right<3}var Ct=` b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(` `,z);ie==-1&&(ie=x.length);var ue=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),ye=ue.indexOf("\r");ye!=-1?(ne.push(ue.slice(0,ye)),z+=ye+1):(ne.push(ue),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},dn=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},On=function(){var x=gt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),Nn=null;function Jn(x){if(Nn!=null)return Nn;var z=wt(x,gt("span","x")),ne=z.getBoundingClientRect(),te=Je(z,0,1).getBoundingClientRect();return Nn=Math.abs(ne.left-te.left)>1}var rr={},wr={};function _n(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),rr[x]=z}function Ye(x,z){wr[x]=z}function mt(x){if(typeof x=="string"&&wr.hasOwnProperty(x))x=wr[x];else if(x&&typeof x.name=="string"&&wr.hasOwnProperty(x.name)){var z=wr[x.name];typeof z=="string"&&(z={name:z}),x=fe(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return mt("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return mt("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Ht(x,z){z=mt(z);var ne=rr[z.name];if(!ne)return Ht(x,"text/plain");var te=ne(x,z);if(qt.hasOwnProperty(z.name)){var ie=qt[z.name];for(var ue in ie)ie.hasOwnProperty(ue)&&(te.hasOwnProperty(ue)&&(te["_"+ue]=te[ue]),te[ue]=ie[ue])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ye in z.modeProps)te[ye]=z.modeProps[ye];return te}var qt={};function _e(x,z){var ne=qt.hasOwnProperty(x)?qt[x]:qt[x]={};Yn(z,ne)}function xt(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function Vt(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Pt(x,z,ne){return x.startState?x.startState(z,ne):!0}var tn=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};tn.prototype.eol=function(){return this.pos>=this.string.length},tn.prototype.sol=function(){return this.pos==this.lineStart},tn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tn.prototype.next=function(){if(this.posz},tn.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},tn.prototype.skipToEnd=function(){this.pos=this.string.length},tn.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},tn.prototype.backUp=function(x){this.pos-=x},tn.prototype.column=function(){return this.lastColumnPos0?null:(ue&&z!==!1&&(this.pos+=ue[0].length),ue)}},tn.prototype.current=function(){return this.string.slice(this.start,this.pos)},tn.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},tn.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},tn.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function an(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],ue=ie.chunkSize();if(z=x.first&&zne?ht(ne,an(x,ne).text.length):Cr(z,an(x,z.line).text.length)}function Cr(x,z){var ne=x.ch;return ne==null||ne>z?ht(x.line,z):ne<0?ht(x.line,0):x}function un(x,z){for(var ne=[],te=0;tethis.maxLookAhead&&(this.maxLookAhead=x),z},Qr.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(x,z,ne){return z instanceof ni?new Qr(x,xt(x.mode,z.state),ne,z.lookAhead):new Qr(x,xt(x.mode,z),ne)},Qr.prototype.save=function(x){var z=x!==!1?xt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ni(z,this.maxLookAhead):z};function Hi(x,z,ne,te){var ie=[x.state.modeGen],ue={};xi(x,z.text,x.doc.mode,ne,function(Fe,kt){return ie.push(Fe,kt)},ue,te);for(var ye=ne.state,ke=function(Fe){ne.baseTokens=ie;var kt=x.state.overlays[Fe],jt=1,An=0;ne.state=!0,xi(x,z.text,kt.mode,ne,function(mn,cr){for(var Dr=jt;Anmn&&ie.splice(jt,1,mn,ie[jt+1],Xr),jt+=2,An=Math.min(mn,Xr)}if(cr)if(kt.opaque)ie.splice(Dr,jt-Dr,mn,"overlay "+cr),jt=Dr+2;else for(;Drx.options.maxHighlightLength&&xt(x.doc.mode,te.state),ue=Hi(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=ue.styles,ue.classes?z.styleClasses=ue.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function vi(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new Qr(te,!0,z);var ue=Zi(x,z,ne),ye=ue>te.first&&an(te,ue-1).stateAfter,ke=ye?Qr.fromSaved(te,ye,ue):new Qr(te,Pt(te.mode),ue);return te.iter(ue,z,function(Oe){qi(x,Oe.text,ke);var Fe=ke.line;Oe.stateAfter=Fe==z-1||Fe%5==0||Fe>=ie.viewFrom&&Fez.start)return ue}throw new Error("Mode "+x.name+" failed to advance stream.")}var Wi=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Qi(x,z,ne,te){var ie=x.doc,ue=ie.mode,ye;z=Un(ie,z);var ke=an(ie,z.line),Oe=vi(x,z.line,ne),Fe=new tn(ke.text,x.options.tabSize,Oe),kt;for(te&&(kt=[]);(te||Fe.posx.options.maxHighlightLength?(ke=!1,ye&&qi(x,z,te,kt.pos),kt.pos=z.length,jt=null):jt=ai(di(ne,kt,te.state,An),ue),An){var mn=An[0].name;mn&&(jt="m-"+(jt?mn+" "+jt:mn))}if(!ke||Fe!=jt){for(;Oeye;--ke){if(ke<=ue.first)return ue.first;var Oe=an(ue,ke-1),Fe=Oe.stateAfter;if(Fe&&(!ne||ke+(Fe instanceof ni?Fe.lookAhead:0)<=ue.modeFrontier))return ke;var kt=Xe(Oe.text,null,x.options.tabSize);(ie==null||te>kt)&&(ie=ke-1,te=kt)}return ie}function ca(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontierne;te--){var ie=an(x,te).stateAfter;if(ie&&(!(ie instanceof ni)||te+ie.lookAhead=z:ue.to>z);(te||(te=[])).push(new on(ye,ue.from,Oe?null:ue.to))}}return te}function Jr(x,z,ne){var te;if(x)for(var ie=0;ie=z:ue.to>z);if(ke||ue.from==z&&ye.type=="bookmark"&&(!ne||ue.marker.insertLeft)){var Oe=ue.from==null||(ye.inclusiveLeft?ue.from<=z:ue.from0&&ke)for(var hi=0;hi0)){var kt=[Oe,1],jt=Dt(Fe.from,ke.from),An=Dt(Fe.to,ke.to);(jt<0||!ye.inclusiveLeft&&!jt)&&kt.push({from:Fe.from,to:ke.from}),(An>0||!ye.inclusiveRight&&!An)&&kt.push({from:ke.to,to:Fe.to}),ie.splice.apply(ie,kt),Oe+=kt.length-3}}return ie}function wi(x){var z=x.markedSpans;if(z){for(var ne=0;nez)&&(!te||Si(te,ue.marker)<0)&&(te=ue.marker)}return te}function st(x,z,ne,te,ie){var ue=an(x,z),ye=oi&&ue.markedSpans;if(ye)for(var ke=0;ke=0&&jt<=0||kt<=0&&jt>=0)&&(kt<=0&&(Oe.marker.inclusiveRight&&ie.inclusiveLeft?Dt(Fe.to,ne)>=0:Dt(Fe.to,ne)>0)||kt>=0&&(Oe.marker.inclusiveRight&&ie.inclusiveLeft?Dt(Fe.from,te)<=0:Dt(Fe.from,te)<0)))return!0}}}function pt(x){for(var z;z=We(x);)x=z.find(-1,!0).line;return x}function Tt(x){for(var z;z=Ke(x);)x=z.find(1,!0).line;return x}function hn(x){for(var z,ne;z=Ke(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function xn(x,z){var ne=an(x,z),te=pt(ne);return ne==te?z:ar(te)}function lr(x,z){if(z>x.lastLine())return z;var ne=an(x,z),te;if(!Lr(x,ne))return z;for(;te=Ke(ne);)ne=te.find(1,!0).line;return ar(ne)+1}function Lr(x,z){var ne=oi&&z.markedSpans;if(ne){for(var te=void 0,ie=0;iez.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var Qn=function(x,z,ne){this.text=x,Hr(this,z),this.height=ne?ne(this):1};Qn.prototype.lineNo=function(){return ar(this)},nr(Qn);function Ar(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),wi(x),Hr(x,ne);var ie=te?te(x):1;ie!=x.height&&dr(x,ie)}function or(x){x.parent=null,wi(x)}var ir={},pr={};function fr(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?pr:ir;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Br(x,z){var ne=Lt("span",null,null,De?"padding-right: .1px":null),te={pre:Lt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var ue=ie?z.rest[ie-1]:z.line,ye=void 0;te.pos=0,te.addToken=je,$r(x.display.measure)&&(ye=mr(ue,x.doc.direction))&&(te.addToken=yt(te.addToken,ye)),te.map=[];var ke=z!=x.display.externalMeasured&&ar(ue);En(ue,te,ki(x,ue,ke)),ue.styleClasses&&(ue.styleClasses.bgClass&&(te.bgClass=$t(ue.styleClasses.bgClass,te.bgClass||"")),ue.styleClasses.textClass&&(te.textClass=$t(ue.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(Ai(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(De){var Oe=te.content.lastChild;(/\bcm-tab\b/.test(Oe.className)||Oe.querySelector&&Oe.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return lt(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=$t(te.pre.className,te.textClass||"")),te}function Re(x){var z=gt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function je(x,z,ne,te,ie,ue,ye){if(z){var ke=x.splitSpaces?Rt(z,x.trailingSpace):z,Oe=x.cm.state.specialChars,Fe=!1,kt;if(!Oe.test(z))x.col+=z.length,kt=document.createTextNode(ke),x.map.push(x.pos,x.pos+z.length,kt),ve&&Le<9&&(Fe=!0),x.pos+=z.length;else{kt=document.createDocumentFragment();for(var jt=0;;){Oe.lastIndex=jt;var An=Oe.exec(z),mn=An?An.index-jt:z.length-jt;if(mn){var cr=document.createTextNode(ke.slice(jt,jt+mn));ve&&Le<9?kt.appendChild(gt("span",[cr])):kt.appendChild(cr),x.map.push(x.pos,x.pos+mn,cr),x.col+=mn,x.pos+=mn}if(!An)break;jt+=mn+1;var Dr=void 0;if(An[0]==" "){var Xr=x.cm.options.tabSize,ri=Xr-x.col%Xr;Dr=kt.appendChild(gt("span",Qt(ri),"cm-tab")),Dr.setAttribute("role","presentation"),Dr.setAttribute("cm-text"," "),x.col+=ri}else An[0]=="\r"||An[0]==` `?(Dr=kt.appendChild(gt("span",An[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Dr.setAttribute("cm-text",An[0]),x.col+=1):(Dr=x.cm.options.specialCharPlaceholder(An[0]),Dr.setAttribute("cm-text",An[0]),ve&&Le<9?kt.appendChild(gt("span",[Dr])):kt.appendChild(Dr),x.col+=1);x.map.push(x.pos,x.pos+1,Dr),x.pos++}}if(x.trailingSpace=ke.charCodeAt(z.length-1)==32,ne||te||ie||Fe||ue||ye){var ui=ne||"";te&&(ui+=te),ie&&(ui+=ie);var ei=gt("span",[kt],ui,ue);if(ye)for(var hi in ye)ye.hasOwnProperty(hi)&&hi!="style"&&hi!="class"&&ei.setAttribute(hi,ye[hi]);return x.content.appendChild(ei)}x.content.appendChild(kt)}}function Rt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ieFe&&jt.from<=Fe));An++);if(jt.to>=kt)return x(ne,te,ie,ue,ye,ke,Oe);x(ne,te.slice(0,jt.to-Fe),ie,ue,null,ke,Oe),ue=null,te=te.slice(jt.to-Fe),Fe=jt.to}}}function rn(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function En(x,z,ne){var te=x.markedSpans,ie=x.text,ue=0;if(!te){for(var ye=1;yeOe||xa.collapsed&&Yi.to==Oe&&Yi.from==Oe)){if(Yi.to!=null&&Yi.to!=Oe&&mn>Yi.to&&(mn=Yi.to,Dr=""),xa.className&&(cr+=" "+xa.className),xa.css&&(An=(An?An+";":"")+xa.css),xa.startStyle&&Yi.from==Oe&&(Xr+=" "+xa.startStyle),xa.endStyle&&Yi.to==mn&&(hi||(hi=[])).push(xa.endStyle,Yi.to),xa.title&&((ui||(ui={})).title=xa.title),xa.attributes)for(var to in xa.attributes)(ui||(ui={}))[to]=xa.attributes[to];xa.collapsed&&(!ri||Si(ri.marker,xa)<0)&&(ri=Yi)}else Yi.from>Oe&&mn>Yi.from&&(mn=Yi.from)}if(hi)for(var _o=0;_o=ke)break;for(var us=Math.min(ke,mn);;){if(kt){var ds=Oe+kt.length;if(!ri){var Po=ds>us?kt.slice(0,us-Oe):kt;z.addToken(z,Po,jt?jt+cr:cr,Xr,Oe+Po.length==mn?Dr:"",An,ui)}if(ds>=us){kt=kt.slice(us-Oe),Oe=us;break}Oe=ds,Xr=""}kt=ie.slice(ue,ue=ne[Fe++]),jt=fr(ne[Fe++],z.cm.options)}}}function et(x,z,ne){this.line=z,this.rest=hn(z),this.size=this.rest?ar(en(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=Lr(x,z)}function at(x,z,ne){for(var te=[],ie,ue=z;ue2&&ue.push((Oe.bottom+Fe.top)/2-ne.top)}}ue.push(ne.bottom-ne.top)}}function Pa(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;tene)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function wa(x,z){z=pt(z);var ne=ar(z),te=x.display.externalMeasured=new et(x.doc,z,ne);te.lineN=ne;var ie=te.built=Br(x,te);return te.text=ie.pre,wt(x.display.lineMeasure,ie.pre),te}function ua(x,z,ne,te){return Ti(x,ta(x,z),ne,te)}function ra(x,z){if(z>=x.display.viewFrom&&z=ne.lineN&&zz)&&(ue=Oe-ke,ie=ue-1,z>=Oe&&(ye="right")),ie!=null){if(te=x[Fe+2],ke==Oe&&ne==(te.insertLeft?"left":"right")&&(ye=ne),ne=="left"&&ie==0)for(;Fe&&x[Fe-2]==x[Fe-3]&&x[Fe-1].insertLeft;)te=x[(Fe-=3)+2],ye="left";if(ne=="right"&&ie==Oe-ke)for(;Fe=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function Ui(x,z,ne,te){var ie=Ni(z.map,ne,te),ue=ie.node,ye=ie.start,ke=ie.end,Oe=ie.collapse,Fe;if(ue.nodeType==3){for(var kt=0;kt<4;kt++){for(;ye&&Ze(z.line.text.charAt(ie.coverStart+ye));)--ye;for(;ie.coverStart+ke0&&(Oe=te="right");var jt;x.options.lineWrapping&&(jt=ue.getClientRects()).length>1?Fe=jt[te=="right"?jt.length-1:0]:Fe=ue.getBoundingClientRect()}if(ve&&Le<9&&!ye&&(!Fe||!Fe.left&&!Fe.right)){var An=ue.parentNode.getClientRects()[0];An?Fe={left:An.left,right:An.left+io(x.display),top:An.top,bottom:An.bottom}:Fe=Sa}for(var mn=Fe.top-z.rect.top,cr=Fe.bottom-z.rect.top,Dr=(mn+cr)/2,Xr=z.view.measure.heights,ri=0;ri=te.text.length?(Oe=te.text.length,Fe="before"):Oe<=0&&(Oe=0,Fe="after"),!ke)return ye(Fe=="before"?Oe-1:Oe,Fe=="before");function kt(cr,Dr,Xr){var ri=ke[Dr],ui=ri.level==1;return ye(Xr?cr-1:cr,ui!=Xr)}var jt=Gt(ke,Oe,Fe),An=zt,mn=kt(Oe,jt,Fe=="before");return An!=null&&(mn.other=kt(Oe,An,Fe!="before")),mn}function Ba(x,z){var ne=0;z=Un(x.doc,z),x.options.lineWrapping||(ne=io(x.display)*z.ch);var te=an(x.doc,z.line),ie=Tn(te)+ea(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function qa(x,z,ne,te,ie){var ue=ht(x,z,ne);return ue.xRel=ie,te&&(ue.outside=te),ue}function Xa(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return qa(te.first,0,null,-1,-1);var ie=xr(te,ne),ue=te.first+te.size-1;if(ie>ue)return qa(te.first+te.size-1,an(te,ue).text.length,null,1,1);z<0&&(z=0);for(var ye=an(te,ie);;){var ke=zi(x,ye,ie,z,ne),Oe=Ge(ye,ke.ch+(ke.xRel>0||ke.outside>0?1:0));if(!Oe)return ke;var Fe=Oe.find(1);if(Fe.line==ie)return Fe;ye=an(te,ie=Fe.line)}}function so(x,z,ne,te){te-=ha(z);var ie=z.text.length,ue=Nt(function(ye){return Ti(x,ne,ye-1).bottom<=te},ie,0);return ie=Nt(function(ye){return Ti(x,ne,ye).top>te},ue,ie),{begin:ue,end:ie}}function Ha(x,z,ne,te){ne||(ne=ta(x,z));var ie=Ea(x,z,Ti(x,ne,te),"line").top;return so(x,z,ne,ie)}function Aa(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function zi(x,z,ne,te,ie){ie-=Tn(z);var ue=ta(x,z),ye=ha(z),ke=0,Oe=z.text.length,Fe=!0,kt=mr(z,x.doc.direction);if(kt){var jt=(x.options.lineWrapping?fa:Gi)(x,z,ne,ue,kt,te,ie);Fe=jt.level!=1,ke=Fe?jt.from:jt.to-1,Oe=Fe?jt.to:jt.from-1}var An=null,mn=null,cr=Nt(function(Vi){var Yi=Ti(x,ue,Vi);return Yi.top+=ye,Yi.bottom+=ye,Aa(Yi,te,ie,!1)?(Yi.top<=ie&&Yi.left<=te&&(An=Vi,mn=Yi),!0):!1},ke,Oe),Dr,Xr,ri=!1;if(mn){var ui=te-mn.left=hi.bottom?1:0}return cr=vt(z.text,cr,1),qa(ne,cr,Xr,ri,te-Dr)}function Gi(x,z,ne,te,ie,ue,ye){var ke=Nt(function(jt){var An=ie[jt],mn=An.level!=1;return Aa(pa(x,ht(ne,mn?An.to:An.from,mn?"before":"after"),"line",z,te),ue,ye,!0)},0,ie.length-1),Oe=ie[ke];if(ke>0){var Fe=Oe.level!=1,kt=pa(x,ht(ne,Fe?Oe.from:Oe.to,Fe?"after":"before"),"line",z,te);Aa(kt,ue,ye,!0)&&kt.top>ye&&(Oe=ie[ke-1])}return Oe}function fa(x,z,ne,te,ie,ue,ye){var ke=so(x,z,te,ye),Oe=ke.begin,Fe=ke.end;/\s/.test(z.text.charAt(Fe-1))&&Fe--;for(var kt=null,jt=null,An=0;An=Fe||mn.to<=Oe)){var cr=mn.level!=1,Dr=Ti(x,te,cr?Math.min(Fe,mn.to)-1:Math.max(Oe,mn.from)).right,Xr=DrXr)&&(kt=mn,jt=Xr)}}return kt||(kt=ie[ie.length-1]),kt.fromFe&&(kt={from:kt.from,to:Fe,level:kt.level}),kt}var Ma;function Ka(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(Ma==null){Ma=gt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Ma.appendChild(document.createTextNode("x")),Ma.appendChild(gt("br"));Ma.appendChild(document.createTextNode("x"))}wt(x.measure,Ma);var ne=Ma.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ue(x.measure),ne||1}function io(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=gt("span","xxxxxxxxxx"),ne=gt("pre",[z],"CodeMirror-line-like");wt(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function ho(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,ue=z.gutters.firstChild,ye=0;ue;ue=ue.nextSibling,++ye){var ke=x.display.gutterSpecs[ye].className;ne[ke]=ue.offsetLeft+ue.clientLeft+ie,te[ke]=ue.clientWidth}return{fixedPos:Io(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Io(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function No(x){var z=Ka(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/io(x.display)-3);return function(ie){if(Lr(x.doc,ie))return 0;var ue=0;if(ie.widgets)for(var ye=0;ye0&&(Fe=an(x.doc,Oe.line).text).length==Oe.ch){var kt=Xe(Fe,Fe.length,x.options.tabSize)-Fe.length;Oe=ht(Oe.line,Math.max(0,Math.round((ue-Ri(x.display).left)/io(x.display))-kt))}return Oe}function ia(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;tez)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)oi&&xn(x.doc,z)ie.viewFrom?Da(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Da(x);else if(z<=ie.viewFrom){var ue=co(x,ne,ne+te,1);ue?(ie.view=ie.view.slice(ue.index),ie.viewFrom=ue.lineN,ie.viewTo+=te):Da(x)}else if(ne>=ie.viewTo){var ye=co(x,z,z,-1);ye?(ie.view=ie.view.slice(0,ye.index),ie.viewTo=ye.lineN):Da(x)}else{var ke=co(x,z,z,-1),Oe=co(x,ne,ne+te,1);ke&&Oe?(ie.view=ie.view.slice(0,ke.index).concat(at(x,ke.lineN,Oe.lineN)).concat(ie.view.slice(Oe.index)),ie.viewTo+=te):Da(x)}var Fe=ie.externalMeasured;Fe&&(ne=ie.lineN&&z=te.viewTo)){var ue=te.view[ia(x,z)];if(ue.node!=null){var ye=ue.changes||(ue.changes=[]);Mt(ye,ne)==-1&&ye.push(ne)}}}function Da(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function co(x,z,ne,te){var ie=ia(x,z),ue,ye=x.display.view;if(!oi||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var ke=x.display.viewFrom,Oe=0;Oe0){if(ie==ye.length-1)return null;ue=ke+ye[ie].size-z,ie++}else ue=ke-z;z+=ue,ne+=ue}for(;xn(x.doc,ne)!=ne;){if(ie==(te<0?0:ye.length-1))return null;ne+=te*ye[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function ao(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=at(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=at(x,z,te.viewFrom).concat(te.view):te.viewFromne&&(te.view=te.view.slice(0,ia(x,ne)))),te.viewTo=ne}function hs(x){for(var z=x.display.view,ne=0,te=0;te=x.display.viewTo||ke.to().line0?z.blinker=setInterval(function(){x.hasFocus()||Ho(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Ki(x){x.state.focused||(x.display.input.focus(),Ga(x))}function ja(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,Ho(x))},100)}function Ga(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(lt(x,"focus",x,z),x.state.focused=!0,pn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),De&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Oi(x))}function Ho(x,z){x.state.delayingBlurEvent||(x.state.focused&&(lt(x,"blur",x,z),x.state.focused=!1,Ve(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Zo(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te.005||kt<-.005)&&(dr(ie.line,ye),ls(ie.line),ie.rest))for(var jt=0;jtx.display.sizerWidth){var An=Math.ceil(ke/io(x.display));An>x.display.maxLineLength&&(x.display.maxLineLength=An,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function ls(x){if(x.widgets)for(var z=0;z=ye&&(ue=xr(z,Tn(an(z,Oe))-x.wrapper.clientHeight),ye=Oe)}return{from:ue,to:Math.max(ye,ue+1)}}function Ro(x,z){if(!Jt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!Et){var ue=gt("div","\u200B",null,`position: absolute; top: `+(z.top-ne.viewOffset-ea(x.display))+`px; height: `+(z.bottom-z.top+ii(x)+ne.barHeight)+`px; left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(ue),ue.scrollIntoView(ie),x.display.lineSpace.removeChild(ue)}}}function cs(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?ht(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?ht(z.line,z.ch+1,"before"):z);for(var ue=0;ue<5;ue++){var ye=!1,ke=pa(x,z),Oe=!ne||ne==z?ke:pa(x,ne);ie={left:Math.min(ke.left,Oe.left),top:Math.min(ke.top,Oe.top)-te,right:Math.max(ke.left,Oe.left),bottom:Math.max(ke.bottom,Oe.bottom)+te};var Fe=Bs(x,ie),kt=x.doc.scrollTop,jt=x.doc.scrollLeft;if(Fe.scrollTop!=null&&(Ia(x,Fe.scrollTop),Math.abs(x.doc.scrollTop-kt)>1&&(ye=!0)),Fe.scrollLeft!=null&&(go(x,Fe.scrollLeft),Math.abs(x.doc.scrollLeft-jt)>1&&(ye=!0)),!ye)break}return ie}function ul(x,z){var ne=Bs(x,z);ne.scrollTop!=null&&Ia(x,ne.scrollTop),ne.scrollLeft!=null&&go(x,ne.scrollLeft)}function Bs(x,z){var ne=x.display,te=Ka(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,ue=Ei(x),ye={};z.bottom-z.top>ue&&(z.bottom=z.top+ue);var ke=x.doc.height+yi(ne),Oe=z.topke-te;if(z.topie+ue){var kt=Math.min(z.top,(Fe?ke:z.bottom)-ue);kt!=ie&&(ye.scrollTop=kt)}var jt=x.options.fixedGutter?0:ne.gutters.offsetWidth,An=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-jt,mn=ci(x)-ne.gutters.offsetWidth,cr=z.right-z.left>mn;return cr&&(z.right=z.left+mn),z.left<10?ye.scrollLeft=0:z.leftmn+An-3&&(ye.scrollLeft=z.right+(cr?0:10)-mn),ye}function ms(x,z){z!=null&&(Js(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function Wo(x){Js(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function Ds(x,z,ne){(z!=null||ne!=null)&&Js(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Ts(x,z){Js(x),x.curOp.scrollToPos=z}function Js(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Ba(x,z.from),te=Ba(x,z.to);oo(x,ne,te,z.margin)}}function oo(x,z,ne,te){var ie=Bs(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});Ds(x,ie.scrollLeft,ie.scrollTop)}function Ia(x,z){Math.abs(x.doc.scrollTop-z)<2||(oe||Jc(x,{top:z}),Ya(x,z,!0),oe&&Jc(x),is(x,100))}function Ya(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function go(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Uu(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function yo(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+yi(x.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:x.options.fixedGutter?ne:0,docHeight:te,scrollHeight:te+ii(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ko=function(x,z,ne){this.cm=ne;var te=this.vert=gt("div",[gt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=gt("div",[gt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),bn(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),bn(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&Le<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var ue=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+ue)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Ko.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var x=Ae&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new we,this.disableVert=new we},Ko.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),ue=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);ue!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ko.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function xs(x,z){z||(z=yo(x));var ne=x.display.barWidth,te=x.display.barHeight;Yl(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&Zo(x),Yl(x,yo(x)),ne=x.display.barWidth,te=x.display.barHeight}function Yl(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var Ql={native:Ko,null:wo};function vc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ve(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Ql[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),bn(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?go(x,z):Ia(x,z)},x),x.display.scrollbars.addClass&&pn(x.display.wrapper,x.display.scrollbars.addClass)}var Yc=0;function Ks(x){x.curOp={cm:x,viewChanged:!1,startHeight:x.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:++Yc},St(x.curOp)}function Ps(x){var z=x.curOp;z&&gn(z,function(ne){for(var te=0;te=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new gs(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Na(x){x.updatedDisplay=x.mustUpdate&&Qc(x.cm,x.update)}function ga(x){var z=x.cm,ne=z.display;x.updatedDisplay&&Zo(z),x.barMeasure=yo(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=ua(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+ii(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-ci(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function jo(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=vi(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(ue){if(te.line>=x.display.viewFrom){var ye=ue.styles,ke=ue.text.length>x.options.maxHighlightLength?xt(z.mode,te.state):null,Oe=Hi(x,ue,te,!0);ke&&(te.state=ke),ue.styles=Oe.styles;var Fe=ue.styleClasses,kt=Oe.classes;kt?ue.styleClasses=kt:Fe&&(ue.styleClasses=null);for(var jt=!ye||ye.length!=ue.styles.length||Fe!=kt&&(!Fe||!kt||Fe.bgClass!=kt.bgClass||Fe.textClass!=kt.textClass),An=0;!jt&&Anne)return is(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&va(x,function(){for(var ue=0;ue=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&hs(x)==0)return!1;bc(x)&&(Da(x),z.dims=ho(x));var ie=te.first+te.size,ue=Math.max(z.visible.from-x.options.viewportMargin,te.first),ye=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFromye&&ne.viewTo-ye<20&&(ye=Math.min(ie,ne.viewTo)),oi&&(ue=xn(x.doc,ue),ye=lr(x.doc,ye));var ke=ue!=ne.viewFrom||ye!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ao(x,ue,ye),ne.viewOffset=Tn(an(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var Oe=hs(x);if(!ke&&Oe==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var Fe=Vd(x);return Oe>4&&(ne.lineDiv.style.display="none"),Gd(x,ne.updateLineNumbers,z.dims),Oe>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Ud(Fe),Ue(ne.cursorDiv),Ue(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,ke&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,is(x,400)),ne.updateLineNumbers=null,!0}function Vu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==ci(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+yi(x.display)-Ei(x),ne.top)}),z.visible=ya(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=ya(x.display,x.doc,ne));if(!Qc(x,z))break;Zo(x);var ie=yo(x);$o(x),xs(x,ie),$c(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Jc(x,z){var ne=new gs(x,z);if(Qc(x,ne)){Zo(x),Vu(x,ne);var te=yo(x);$o(x),xs(x,te),$c(x,te),ne.finish()}}function Gd(x,z,ne){var te=x.display,ie=x.options.lineNumbers,ue=te.lineDiv,ye=ue.firstChild;function ke(cr){var Dr=cr.nextSibling;return De&&Ae&&x.display.currentWheelTarget==cr?cr.style.display="none":cr.parentNode.removeChild(cr),Dr}for(var Oe=te.view,Fe=te.viewFrom,kt=0;kt-1&&(mn=!1),yr(x,jt,Fe,ne)),mn&&(Ue(jt.lineNumber),jt.lineNumber.appendChild(document.createTextNode(bt(x.options,Fe)))),ye=jt.node.nextSibling}Fe+=jt.size}for(;ye;)ye=ke(ye)}function qc(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function $c(x,z){x.display.sizer.style.minHeight=z.docHeight+"px",x.display.heightForcer.style.top=z.docHeight+"px",x.display.gutters.style.height=z.docHeight+x.display.barHeight+ii(x)+"px"}function Uu(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Io(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,ue=te+"px",ye=0;yeye.clientWidth,Oe=ye.scrollHeight>ye.clientHeight;if(te&&ke||ie&&Oe){if(ie&&Ae&&De){e:for(var Fe=z.target,kt=ue.view;Fe!=ye;Fe=Fe.parentNode)for(var jt=0;jt=0&&Dt(x,te.to())<=0)return ne}return-1};var Va=function(x,z){this.anchor=x,this.head=z};Va.prototype.from=function(){return yn(this.anchor,this.head)},Va.prototype.to=function(){return Cn(this.anchor,this.head)},Va.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ms(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(An,mn){return Dt(An.from(),mn.from())}),ne=Mt(z,ie);for(var ue=1;ue0:Oe>=0){var Fe=yn(ke.from(),ye.from()),kt=Cn(ke.to(),ye.to()),jt=ke.empty()?ye.from()==ye.head:ke.from()==ke.head;ue<=ne&&--ne,z.splice(--ue,2,new Va(jt?kt:Fe,jt?Fe:kt))}}return new vs(z,ne)}function Os(x,z){return new vs([new Va(x,z||x)],0)}function qs(x){return x.text?ht(x.from.line+x.text.length-1,en(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Qu(x,z){if(Dt(x,z.from)<0)return x;if(Dt(x,z.to)<=0)return qs(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=qs(z).ch-z.to.ch),ht(ne,te)}function tu(x,z){for(var ne=[],te=0;te1&&x.remove(ke.line+1,cr-1),x.insert(ke.line+1,ri)}fn(x,"change",x,z)}function $s(x,z,ne){function te(ie,ue,ye){if(ie.linked)for(var ke=0;ke1&&!x.done[x.done.length-2].ranges)return x.done.pop(),en(x.done)}function Ec(x,z,ne,te){var ie=x.history;ie.undone.length=0;var ue=+new Date,ye,ke;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>ue-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ye=su(ie,ie.lastOp==te)))ke=en(ye.changes),Dt(z.from,z.to)==0&&Dt(z.from,ke.to)==0?ke.to=qs(z):ye.changes.push(ou(x,z));else{var Oe=en(ie.done);for((!Oe||!Oe.ranges)&&Mc(x.sel,ie.done),ye={changes:[ou(x,z)],generation:ie.generation},ie.done.push(ye);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=ue,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,ke||lt(x,"historyAdded")}function lu(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function cu(x,z,ne,te){var ie=x.history,ue=te&&te.origin;ne==ie.lastSelOp||ue&&ie.lastSelOrigin==ue&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==ue||lu(x,ue,en(ie.done),z))?ie.done[ie.done.length-1]=z:Mc(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=ue,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&qu(ie.undone)}function Mc(x,z){var ne=en(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function uu(x,z,ne,te){var ie=z["spans_"+x.id],ue=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ye){ye.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[ue]=ye.markedSpans),++ue})}function du(x){if(!x)return null;for(var z,ne=0;ne-1&&(en(ke)[jt]=Fe[jt],delete Fe[jt])}}return te}function fu(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var ue=Dt(z,ie)<0;ue!=Dt(ne,ie)<0?(ie=z,z=ne):ue!=Dt(z,ne)<0&&(z=ne)}return new Va(ie,z)}else return new Va(ne||z,z)}function Fl(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Do(x,new vs([fu(x.sel.primary(),z,ne,ie)],0),te)}function pi(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),ue=0;ue=z.ch:ke.to>z.ch))){if(ie&&(lt(Oe,"beforeCursorEnter"),Oe.explicitlyCleared))if(ue.markedSpans){--ye;continue}else break;if(!Oe.atomic)continue;if(ne){var jt=Oe.find(te<0?1:-1),An=void 0;if((te<0?kt:Fe)&&(jt=el(x,jt,-te,jt&&jt.line==z.line?ue:null)),jt&&jt.line==z.line&&(An=Dt(jt,ne))&&(te<0?An<0:An>0))return os(x,jt,z,te,ie)}var mn=Oe.find(te<0?-1:1);return(te<0?Fe:kt)&&(mn=el(x,mn,te,mn.line==z.line?ue:null)),mn?os(x,mn,z,te,ie):null}}return z}function hu(x,z,ne,te,ie){var ue=te||1,ye=os(x,z,ne,ue,ie)||!ie&&os(x,z,ne,ue,!0)||os(x,z,ne,-ue,ie)||!ie&&os(x,z,ne,-ue,!0);return ye||(x.cantEdit=!0,ht(x.first,0))}function el(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Un(x,ht(z.line-1)):null:ne>0&&z.ch==(te||an(x,z.line)).text.length?z.line=0;--ie)nd(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else nd(x,z)}}function nd(x,z){if(!(z.text.length==1&&z.text[0]==""&&Dt(z.from,z.to)==0)){var ne=tu(x,z);Ec(x,z,ne,x.cm?x.cm.curOp.id:NaN),Hl(x,z,ne,ti(x,z));var te=[];$s(x,function(ie,ue){!ue&&Mt(te,ie.history)==-1&&(kc(ie.history,z),te.push(ie.history)),Hl(ie,z,null,ti(ie,z))})}}function tl(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,ue,ye=x.sel,ke=z=="undo"?ie.done:ie.undone,Oe=z=="undo"?ie.undone:ie.done,Fe=0;Fe=0;--mn){var cr=An(mn);if(cr)return cr.v}}}}function mu(x,z){if(z!=0&&(x.first+=z,x.sel=new vs(Dn(x.sel.ranges,function(ie){return new Va(ht(ie.anchor.line+z,ie.anchor.ch),ht(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){_i(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;tex.lastLine())){if(z.from.lineue&&(z={from:z.from,to:ht(ue,an(x,ue).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Rn(x,z.from,z.to),ne||(ne=tu(x,z)),x.cm?$d(x.cm,z,te):iu(x,z,te),Ac(x,ne,tt),x.cantEdit&&hu(x,ht(x.firstLine(),0))&&(x.cantEdit=!1)}}function $d(x,z,ne){var te=x.doc,ie=x.display,ue=z.from,ye=z.to,ke=!1,Oe=ue.line;x.options.lineWrapping||(Oe=ar(pt(an(te,ue.line))),te.iter(Oe,ye.line+1,function(mn){if(mn==ie.maxLine)return ke=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Hn(x),iu(te,z,ne,No(x)),x.options.lineWrapping||(te.iter(Oe,ue.line+z.text.length,function(mn){var cr=kn(mn);cr>ie.maxLineLength&&(ie.maxLine=mn,ie.maxLineLength=cr,ie.maxLineChanged=!0,ke=!1)}),ke&&(x.curOp.updateMaxLine=!0)),ca(te,ue.line),is(x,400);var Fe=z.text.length-(ye.line-ue.line)-1;z.full?_i(x):ue.line==ye.line&&z.text.length==1&&!Ju(x.doc,z)?Oa(x,ue.line,"text"):_i(x,ue.line,ye.line+1,Fe);var kt=er(x,"changes"),jt=er(x,"change");if(jt||kt){var An={from:ue,to:ye,text:z.text,removed:z.removed,origin:z.origin};jt&&fn(x,"change",x,An),kt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(An)}x.display.selForContextMenu=null}function ec(x,z,ne,te,ie){var ue;te||(te=ne),Dt(te,ne)<0&&(ue=[te,ne],ne=ue[0],te=ue[1]),typeof z=="string"&&(z=x.splitLines(z)),dl(x,{from:ne,to:te,text:z,origin:ie})}function ef(x,z,ne,te){ne1||!(this.children[0]instanceof fl))){var ke=[];this.collapse(ke),this.children=[new fl(ke)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z50){for(var ye=ie.lines.length%25+25,ke=ye;ke10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;tex.display.maxLineLength&&(x.display.maxLine=Fe,x.display.maxLineLength=kt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&_i(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&qd(x.doc)),x&&fn(x,"markerCleared",x,this,te,ie),z&&Ps(x),this.parent&&this.parent.clear()}},hl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie0||ye==0&&ue.clearWhenEmpty!==!1)return ue;if(ue.replacedWith&&(ue.collapsed=!0,ue.widgetNode=Lt("span",[ue.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||ue.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(ue.widgetNode.insertLeft=!0)),ue.collapsed){if(st(x,z.line,z,ne,ue)||z.line!=ne.line&&st(x,ne.line,z,ne,ue))throw new Error("Inserting collapsed marker partially overlapping an existing one");At()}ue.addToHistory&&Ec(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var ke=z.line,Oe=x.cm,Fe;if(x.iter(ke,ne.line+1,function(jt){Oe&&ue.collapsed&&!Oe.options.lineWrapping&&pt(jt)==Oe.display.maxLine&&(Fe=!0),ue.collapsed&&ke!=z.line&&dr(jt,0),Mr(jt,new on(ue,ke==z.line?z.ch:null,ke==ne.line?ne.ch:null)),++ke}),ue.collapsed&&x.iter(z.line,ne.line+1,function(jt){Lr(x,jt)&&dr(jt,0)}),ue.clearOnEnter&&bn(ue,"beforeCursorEnter",function(){return ue.clear()}),ue.readOnly&&(Ot(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),ue.collapsed&&(ue.id=++af,ue.atomic=!0),Oe){if(Fe&&(Oe.curOp.updateMaxLine=!0),ue.collapsed)_i(Oe,z.line,ne.line+1);else if(ue.className||ue.startStyle||ue.endStyle||ue.css||ue.attributes||ue.title)for(var kt=z.line;kt<=ne.line;kt++)Oa(Oe,kt,"text");ue.atomic&&qd(Oe.doc),fn(Oe,"markerAdded",Oe,ue)}return ue}var ba=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne=0;Oe--)dl(this,te[Oe]);ke?as(this,ke):this.cm&&Wo(this.cm)}),undo:po(function(){tl(this,"undo")}),redo:po(function(){tl(this,"redo")}),undoSelection:po(function(){tl(this,"undo",!0)}),redoSelection:po(function(){tl(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=Un(this,x),z=Un(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(ue){var ye=ue.markedSpans;if(ye)for(var ke=0;ke=Oe.to||Oe.from==null&&ie!=x.line||Oe.from!=null&&ie==z.line&&Oe.from>=z.ch)&&(!ne||ne(Oe.marker))&&te.push(Oe.marker.parent||Oe.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;tex)return z=x,!0;x-=ue,++ne}),Un(this,ht(ne,z))},indexFromPos:function(x){x=Un(this,x);var z=x.ch;if(x.linez&&(z=x.from),x.to!=null&&x.to-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var kt=x.dataTransfer.getData("Text");if(kt){var jt;if(z.state.draggingText&&!z.state.draggingText.copy&&(jt=z.listSelections()),Ac(z.doc,Os(ne,ne)),jt)for(var An=0;An=0;ke--)ec(x.doc,"",te[ke].from,te[ke].to,"+delete");Wo(x)})}function Uo(x,z,ne){var te=vt(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function _s(x,z,ne){var te=Uo(x,z.ch,ne);return te==null?null:new ht(z.line,te,ne<0?"after":"before")}function Kl(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var ue=mr(ne,z.doc.direction);if(ue){var ye=ie<0?en(ue):ue[0],ke=ie<0==(ye.level==1),Oe=ke?"after":"before",Fe;if(ye.level>0||z.doc.direction=="rtl"){var kt=ta(z,ne);Fe=ie<0?ne.text.length-1:0;var jt=Ti(z,kt,Fe).top;Fe=Nt(function(An){return Ti(z,kt,An).top==jt},ie<0==(ye.level==1)?ye.from:ye.to-1,Fe),Oe=="before"&&(Fe=Uo(ne,Fe,1))}else Fe=ie<0?ye.to:ye.from;return new ht(te,Fe,Oe)}}return new ht(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Zs(x,z,ne,te){var ie=mr(z,x.doc.direction);if(!ie)return _s(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var ue=Gt(ie,ne.ch,ne.sticky),ye=ie[ue];if(x.doc.direction=="ltr"&&ye.level%2==0&&(te>0?ye.to>ne.ch:ye.from=ye.from&&An>=kt.begin)){var mn=jt?"before":"after";return new ht(ne.line,An,mn)}}var cr=function(ri,ui,ei){for(var hi=function(to,_o){return _o?new ht(ne.line,ke(to,1),"before"):new ht(ne.line,to,"after")};ri>=0&&ri0==(Vi.level!=1),xa=Yi?ei.begin:ke(ei.end,-1);if(Vi.from<=xa&&xa0?kt.end:ke(kt.begin,-1);return Xr!=null&&!(te>0&&Xr==z.text.length)&&(Dr=cr(te>0?0:ie.length-1,te,Fe(Xr)),Dr)?Dr:null}var ac={selectAll:td,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),tt)},killLine:function(x){return As(x,function(z){if(z.empty()){var ne=an(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line0)ie=new ht(ie.line,ie.ch+1),x.replaceRange(ue.charAt(ie.ch-1)+ue.charAt(ie.ch-2),ht(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var ye=an(x.doc,ie.line-1).text;ye&&(ie=new ht(ie.line,1),x.replaceRange(ue.charAt(0)+x.doc.lineSeparator()+ye.charAt(ye.length-1),ht(ie.line-1,ye.length-1),ie,"+transpose"))}}ne.push(new Va(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return va(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;tex&&Dt(z,this.pos)==0&&ne==this.button};var al,Oc;function ih(x,z){var ne=+new Date;return Oc&&Oc.compare(ne,x,z)?(al=Oc=null,"triple"):al&&al.compare(ne,x,z)?(Oc=new ud(ne,x,z),al=null,"double"):(al=new ud(ne,x,z),Oc=null,"single")}function Go(x){var z=this,ne=z.display;if(!(Jt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,$i(ne,x)){De||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!ts(z,x)){var te=Bo(z,x),ie=gr(x),ue=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&gl(z,ie,te,ue,x))&&(ie==1?te?wu(z,te,ue,x):Wr(x)==ne.scroller&&Er(x):ie==2?(te&&Fl(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Se?z.display.input.onContextMenu(x):ja(z)))}}}function gl(x,z,ne,te,ie){var ue="Click";return te=="double"?ue="Double"+ue:te=="triple"&&(ue="Triple"+ue),ue=(z==1?"Left":z==2?"Middle":"Right")+ue,oc(x,ml(ue,ie),ie,function(ye){if(typeof ye=="string"&&(ye=ac[ye]),!ye)return!1;var ke=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ke=ye(x,ne)!=Kt}finally{x.state.suppressEdits=!1}return ke})}function xu(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var ue=ft?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=ue?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=Ae?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(Ae?ne.altKey:ne.ctrlKey)),ie}function wu(x,z,ne,te){ve?setTimeout(Kn(Ki,x),0):x.curOp.focus=It();var ie=xu(x,ne,te),ue=x.doc.sel,ye;x.options.dragDrop&&Nr&&!x.isReadOnly()&&ne=="single"&&(ye=ue.contains(z))>-1&&(Dt((ye=ue.ranges[ye]).from(),z)<0||z.xRel>0)&&(Dt(ye.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):dd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,ue=!1,ye=Wa(x,function(Fe){De&&(ie.scroller.draggable=!1),x.state.draggingText=!1,Tr(ie.wrapper.ownerDocument,"mouseup",ye),Tr(ie.wrapper.ownerDocument,"mousemove",ke),Tr(ie.scroller,"dragstart",Oe),Tr(ie.scroller,"drop",ye),ue||(Er(Fe),te.addNew||Fl(x.doc,ne,null,null,te.extend),De&&!rt||ve&&Le==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),ke=function(Fe){ue=ue||Math.abs(z.clientX-Fe.clientX)+Math.abs(z.clientY-Fe.clientY)>=10},Oe=function(){return ue=!0};De&&(ie.scroller.draggable=!0),x.state.draggingText=ye,ye.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),bn(ie.wrapper.ownerDocument,"mouseup",ye),bn(ie.wrapper.ownerDocument,"mousemove",ke),bn(ie.scroller,"dragstart",Oe),bn(ie.scroller,"drop",ye),ja(x),setTimeout(function(){return ie.input.focus()},20)}function df(x,z,ne){if(ne=="char")return new Va(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Va(ht(z.line,0),Un(x.doc,ht(z.line+1,0)));var te=ne(x,z);return new Va(te.from,te.to)}function dd(x,z,ne,te){var ie=x.display,ue=x.doc;Er(z);var ye,ke,Oe=ue.sel,Fe=Oe.ranges;if(te.addNew&&!te.extend?(ke=ue.sel.contains(ne),ke>-1?ye=Fe[ke]:ye=new Va(ne,ne)):(ye=ue.sel.primary(),ke=ue.sel.primIndex),te.unit=="rectangle")te.addNew||(ye=new Va(ne,ne)),ne=Bo(x,z,!0,!0),ke=-1;else{var kt=df(x,ne,te.unit);te.extend?ye=fu(ye,kt.anchor,kt.head,te.extend):ye=kt}te.addNew?ke==-1?(ke=Fe.length,Do(ue,Ms(x,Fe.concat([ye]),ke),{scroll:!1,origin:"*mouse"})):Fe.length>1&&Fe[ke].empty()&&te.unit=="char"&&!te.extend?(Do(ue,Ms(x,Fe.slice(0,ke).concat(Fe.slice(ke+1)),0),{scroll:!1,origin:"*mouse"}),Oe=ue.sel):ws(ue,ke,ye,ut):(ke=0,Do(ue,new vs([ye],0),ut),Oe=ue.sel);var jt=ne;function An(ei){if(Dt(jt,ei)!=0)if(jt=ei,te.unit=="rectangle"){for(var hi=[],Vi=x.options.tabSize,Yi=Xe(an(ue,ne.line).text,ne.ch,Vi),xa=Xe(an(ue,ei.line).text,ei.ch,Vi),to=Math.min(Yi,xa),_o=Math.max(Yi,xa),bo=Math.min(ne.line,ei.line),us=Math.min(x.lastLine(),Math.max(ne.line,ei.line));bo<=us;bo++){var ds=an(ue,bo).text,Po=Wn(ds,to,Vi);to==_o?hi.push(new Va(ht(bo,Po),ht(bo,Po))):ds.length>Po&&hi.push(new Va(ht(bo,Po),ht(bo,Wn(ds,_o,Vi))))}hi.length||hi.push(new Va(ne,ne)),Do(ue,Ms(x,Oe.ranges.slice(0,ke).concat(hi),ke),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ei)}else{var fs=ye,la=df(x,ei,te.unit),So=fs.anchor,xo;Dt(la.anchor,So)>0?(xo=la.head,So=yn(fs.from(),la.anchor)):(xo=la.anchor,So=Cn(fs.to(),la.head));var Co=Oe.ranges.slice(0);Co[ke]=ff(x,new Va(Un(ue,So),xo)),Do(ue,Ms(x,Co,ke),ut)}}var mn=ie.wrapper.getBoundingClientRect(),cr=0;function Dr(ei){var hi=++cr,Vi=Bo(x,ei,!0,te.unit=="rectangle");if(Vi)if(Dt(Vi,jt)!=0){x.curOp.focus=It(),An(Vi);var Yi=ya(ie,ue);(Vi.line>=Yi.to||Vi.linemn.bottom?20:0;xa&&setTimeout(Wa(x,function(){cr==hi&&(ie.scroller.scrollTop+=xa,Dr(ei))}),50)}}function Xr(ei){x.state.selectingText=!1,cr=1/0,ei&&(Er(ei),ie.input.focus()),Tr(ie.wrapper.ownerDocument,"mousemove",ri),Tr(ie.wrapper.ownerDocument,"mouseup",ui),ue.history.lastSelOrigin=null}var ri=Wa(x,function(ei){ei.buttons===0||!gr(ei)?Xr(ei):Dr(ei)}),ui=Wa(x,Xr);x.state.selectingText=ui,bn(ie.wrapper.ownerDocument,"mousemove",ri),bn(ie.wrapper.ownerDocument,"mouseup",ui)}function ff(x,z){var ne=z.anchor,te=z.head,ie=an(x.doc,ne.line);if(Dt(ne,te)==0&&ne.sticky==te.sticky)return z;var ue=mr(ie);if(!ue)return z;var ye=Gt(ue,ne.ch,ne.sticky),ke=ue[ye];if(ke.from!=ne.ch&&ke.to!=ne.ch)return z;var Oe=ye+(ke.from==ne.ch==(ke.level!=1)?0:1);if(Oe==0||Oe==ue.length)return z;var Fe;if(te.line!=ne.line)Fe=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var kt=Gt(ue,te.ch,te.sticky),jt=kt-ye||(te.ch-ne.ch)*(ke.level==1?-1:1);kt==Oe-1||kt==Oe?Fe=jt<0:Fe=jt>0}var An=ue[Oe+(Fe?-1:0)],mn=Fe==(An.level==1),cr=mn?An.from:An.to,Dr=mn?"after":"before";return ne.ch==cr&&ne.sticky==Dr?z:new Va(new ht(ne.line,cr,Dr),te)}function Ic(x,z,ne,te){var ie,ue;if(z.touches)ie=z.touches[0].clientX,ue=z.touches[0].clientY;else try{ie=z.clientX,ue=z.clientY}catch(An){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Er(z);var ye=x.display,ke=ye.lineDiv.getBoundingClientRect();if(ue>ke.bottom||!er(x,ne))return Ir(z);ue-=ke.top-ye.viewOffset;for(var Oe=0;Oe=ie){var kt=xr(x.doc,ue),jt=x.display.gutterSpecs[Oe];return lt(x,ne,x,kt,jt.className,z),Ir(z)}}}function ts(x,z){return Ic(x,z,"gutterClick",!0)}function vl(x,z){$i(x.display,z)||hf(x,z)||Jt(x,z,"contextmenu")||Se||x.display.input.onContextMenu(z)}function hf(x,z){return er(x,"gutterContextMenu")?Ic(x,z,"gutterContextMenu",!1):!1}function fd(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Mi(x)}var yl={toString:function(){return"CodeMirror.Init"}},pf={},Su={};function oh(x){var z=x.optionHandlers;function ne(te,ie,ue,ye){x.defaults[te]=ie,ue&&(z[te]=ye?function(ke,Oe,Fe){Fe!=yl&&ue(ke,Oe,Fe)}:ue)}x.defineOption=ne,x.Init=yl,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,ru(te)},!0),ne("indentUnit",2,ru,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Nl(te),Mi(te),_i(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var ue=[],ye=te.doc.first;te.doc.iter(function(Oe){for(var Fe=0;;){var kt=Oe.text.indexOf(ie,Fe);if(kt==-1)break;Fe=kt+ie.length,ue.push(ht(ye,kt))}ye++});for(var ke=ue.length-1;ke>=0;ke--)ec(te.doc,ie,ue[ke],ht(ue[ke].line,ue[ke].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,ue){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),ue!=yl&&te.refresh()}),ne("specialCharPlaceholder",Re,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",$e?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!Yt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){fd(te),$l(te)},!0),ne("keyMap","default",function(te,ie,ue){var ye=ss(ie),ke=ue!=yl&&ss(ue);ke&&ke.detach&&ke.detach(te,ye),ye.attach&&ye.attach(te,ke||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,mf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=eu(ie,te.options.lineNumbers),$l(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?Io(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return xs(te)},!0),ne("scrollbarStyle","native",function(te){vc(te),xs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=eu(te.options.gutters,ie),$l(te)},!0),ne("firstLineNumber",1,$l,!0),ne("lineNumberFormatter",function(te){return te},$l,!0),ne("showCursorWhenSelecting",!1,$o,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(Ho(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,$o,!0),ne("singleCursorHeightPerLine",!0,$o,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Nl,!0),ne("addModeClass",!1,Nl,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Nl,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=yl;if(!z!=!te){var ie=x.display.dragFunctions,ue=z?bn:Tr;ue(x.display.scroller,"dragstart",ie.start),ue(x.display.scroller,"dragenter",ie.enter),ue(x.display.scroller,"dragover",ie.over),ue(x.display.scroller,"dragleave",ie.leave),ue(x.display.scroller,"drop",ie.drop)}}function mf(x){x.options.lineWrapping?(pn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ve(x.display.wrapper,"CodeMirror-wrap"),Fn(x)),lo(x),_i(x),Mi(x),setTimeout(function(){return xs(x)},100)}function aa(x,z){var ne=this;if(!(this instanceof aa))return new aa(x,z);this.options=z=z?Yn(z):{},Yn(pf,z,!1);var te=z.value;typeof te=="string"?te=new Mo(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new aa.inputStyles[z.inputStyle](this),ue=this.display=new Xd(x,te,ie,z);ue.wrapper.CodeMirror=this,fd(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vc(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 we,keySeq:null,specialChars:null},z.autofocus&&!$e&&ue.input.focus(),ve&&Le<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),ad(),Ks(this),this.curOp.forceUpdate=!0,wc(this,te),z.autofocus&&!$e||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Ga(ne)},20):Ho(this);for(var ye in Su)Su.hasOwnProperty(ye)&&Su[ye](this,z[ye],yl);bc(this),z.finishInit&&z.finishInit(this);for(var ke=0;ke20*20}bn(z.scroller,"touchstart",function(Oe){if(!Jt(x,Oe)&&!ue(Oe)&&!ts(x,Oe)){z.input.ensurePolled(),clearTimeout(ne);var Fe=+new Date;z.activeTouch={start:Fe,moved:!1,prev:Fe-te.end<=300?te:null},Oe.touches.length==1&&(z.activeTouch.left=Oe.touches[0].pageX,z.activeTouch.top=Oe.touches[0].pageY)}}),bn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),bn(z.scroller,"touchend",function(Oe){var Fe=z.activeTouch;if(Fe&&!$i(z,Oe)&&Fe.left!=null&&!Fe.moved&&new Date-Fe.start<300){var kt=x.coordsChar(z.activeTouch,"page"),jt;!Fe.prev||ye(Fe,Fe.prev)?jt=new Va(kt,kt):!Fe.prev.prev||ye(Fe,Fe.prev.prev)?jt=x.findWordAt(kt):jt=new Va(ht(kt.line,0),Un(x.doc,ht(kt.line+1,0))),x.setSelection(jt.anchor,jt.head),x.focus(),Er(Oe)}ie()}),bn(z.scroller,"touchcancel",ie),bn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ia(x,z.scroller.scrollTop),go(x,z.scroller.scrollLeft,!0),lt(x,"scroll",x))}),bn(z.scroller,"mousewheel",function(Oe){return Yu(x,Oe)}),bn(z.scroller,"DOMMouseScroll",function(Oe){return Yu(x,Oe)}),bn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Oe){Jt(x,Oe)||zr(Oe)},over:function(Oe){Jt(x,Oe)||(id(x,Oe),zr(Oe))},start:function(Oe){return th(x,Oe)},drop:Wa(x,eh),leave:function(Oe){Jt(x,Oe)||rc(x)}};var ke=z.input.getField();bn(ke,"keyup",function(Oe){return cf.call(x,Oe)}),bn(ke,"keydown",Wa(x,Pc)),bn(ke,"keypress",Wa(x,uf)),bn(ke,"focus",function(Oe){return Ga(x,Oe)}),bn(ke,"blur",function(Oe){return Ho(x,Oe)})}var hd=[];aa.defineInitHook=function(x){return hd.push(x)};function Ns(x,z,ne,te){var ie=x.doc,ue;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?ue=vi(x,z).state:ne="prev");var ye=x.options.tabSize,ke=an(ie,z),Oe=Xe(ke.text,null,ye);ke.stateAfter&&(ke.stateAfter=null);var Fe=ke.text.match(/^\s*/)[0],kt;if(!te&&!/\S/.test(ke.text))kt=0,ne="not";else if(ne=="smart"&&(kt=ie.mode.indent(ue,ke.text.slice(Fe.length),ke.text),kt==Kt||kt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?kt=Xe(an(ie,z-1).text,null,ye):kt=0:ne=="add"?kt=Oe+x.options.indentUnit:ne=="subtract"?kt=Oe-x.options.indentUnit:typeof ne=="number"&&(kt=Oe+ne),kt=Math.max(0,kt);var jt="",An=0;if(x.options.indentWithTabs)for(var mn=Math.floor(kt/ye);mn;--mn)An+=ye,jt+=" ";if(Anye,Oe=Ct(z),Fe=null;if(ke&&te.ranges.length>1)if(Rs&&Rs.text.join(` `)==z){if(te.ranges.length%Rs.text.length==0){Fe=[];for(var kt=0;kt=0;An--){var mn=te.ranges[An],cr=mn.from(),Dr=mn.to();mn.empty()&&(ne&&ne>0?cr=ht(cr.line,cr.ch-ne):x.state.overwrite&&!ke?Dr=ht(Dr.line,Math.min(an(ue,Dr.line).text.length,Dr.ch+en(Oe).length)):ke&&Rs&&Rs.lineWise&&Rs.text.join(` `)==Oe.join(` `)&&(cr=Dr=ht(cr.line,0)));var Xr={from:cr,to:Dr,text:Fe?Fe[An%Fe.length]:Oe,origin:ie||(ke?"paste":x.state.cutIncoming>ye?"cut":"+input")};dl(x.doc,Xr),fn(x,"inputRead",x,Xr)}z&&!ke&&gd(x,z),Wo(x),x.curOp.updateInput<2&&(x.curOp.updateInput=jt),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function md(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&va(z,function(){return pd(z,ne,0,null,"paste")}),!0}function gd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var ue=x.getModeAt(ie.head),ye=!1;if(ue.electricChars){for(var ke=0;ke-1){ye=Ns(x,ie.head.line,"smart");break}}else ue.electricInput&&ue.electricInput.test(an(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(ye=Ns(x,ie.head.line,"smart"));ye&&fn(x,"electricInput",x,ie.head.line)}}}function lc(x){for(var z=[],ne=[],te=0;teue&&(Ns(this,ke.head.line,te,!0),ue=ke.head.line,ye==this.doc.sel.primIndex&&Wo(this));else{var Oe=ke.from(),Fe=ke.to(),kt=Math.max(ue,Oe.line);ue=Math.min(this.lastLine(),Fe.line-(Fe.ch?0:1))+1;for(var jt=kt;jt0&&ws(this.doc,ye,new Va(Oe,An[ye].to()),tt)}}}),getTokenAt:function(te,ie){return Qi(this,te,ie)},getLineTokens:function(te,ie){return Qi(this,ht(te),ie,!0)},getTokenTypeAt:function(te){te=Un(this.doc,te);var ie=ki(this,an(this.doc,te.line)),ue=0,ye=(ie.length-1)/2,ke=te.ch,Oe;if(ke==0)Oe=ie[2];else for(;;){var Fe=ue+ye>>1;if((Fe?ie[Fe*2-1]:0)>=ke)ye=Fe;else if(ie[Fe*2+1]Oe&&(te=Oe,ye=!0),ke=an(this.doc,te)}else ke=te;return Ea(this,ke,{top:0,left:0},ie||"page",ue||ye).top+(ye?this.doc.height-Tn(ke):0)},defaultTextHeight:function(){return Ka(this.display)},defaultCharWidth:function(){return io(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,ue,ye,ke){var Oe=this.display;te=pa(this,Un(this.doc,te));var Fe=te.bottom,kt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),Oe.sizer.appendChild(ie),ye=="over")Fe=te.top;else if(ye=="above"||ye=="near"){var jt=Math.max(Oe.wrapper.clientHeight,this.doc.height),An=Math.max(Oe.sizer.clientWidth,Oe.lineSpace.clientWidth);(ye=="above"||te.bottom+ie.offsetHeight>jt)&&te.top>ie.offsetHeight?Fe=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=jt&&(Fe=te.bottom),kt+ie.offsetWidth>An&&(kt=An-ie.offsetWidth)}ie.style.top=Fe+"px",ie.style.left=ie.style.right="",ke=="right"?(kt=Oe.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(ke=="left"?kt=0:ke=="middle"&&(kt=(Oe.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=kt+"px"),ue&&ul(this,{left:kt,top:Fe,right:kt+ie.offsetWidth,bottom:Fe+ie.offsetHeight})},triggerOnKeyDown:Fa(Pc),triggerOnKeyPress:Fa(uf),triggerOnKeyUp:cf,triggerOnMouseDown:Fa(Go),execCommand:function(te){if(ac.hasOwnProperty(te))return ac[te].call(null,this)},triggerElectric:Fa(function(te){gd(this,te)}),findPosH:function(te,ie,ue,ye){var ke=1;ie<0&&(ke=-1,ie=-ie);for(var Oe=Un(this.doc,te),Fe=0;Fe0&&kt(ue.charAt(ye-1));)--ye;for(;ke.5||this.options.lineWrapping)&&lo(this),lt(this,"refresh",this)}),swapDoc:Fa(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),wc(this,te),Mi(this),this.display.input.reset(),Ds(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},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}},nr(x),x.registerHelper=function(te,ie,ue){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=ue},x.registerGlobalHelper=function(te,ie,ue,ye){x.registerHelper(te,ie,ye),ne[te]._global.push({pred:ue,val:ye})}}function Cu(x,z,ne,te,ie){var ue=z,ye=ne,ke=an(x,z.line),Oe=ie&&x.direction=="rtl"?-ne:ne;function Fe(){var ui=z.line+Oe;return ui=x.first+x.size?!1:(z=new ht(ui,z.ch,z.sticky),ke=an(x,ui))}function kt(ui){var ei;if(te=="codepoint"){var hi=ke.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(hi)?ei=null:ei=new ht(z.line,Math.max(0,Math.min(ke.text.length,z.ch+ne*(hi>=55296&&hi<56320?2:1))),-ne)}else ie?ei=Zs(x.cm,ke,z,ne):ei=_s(ke,z,ne);if(ei==null)if(!ui&&Fe())z=Kl(ie,x.cm,ke,z.line,Oe);else return!1;else z=ei;return!0}if(te=="char"||te=="codepoint")kt();else if(te=="column")kt(!0);else if(te=="word"||te=="group")for(var jt=null,An=te=="group",mn=x.cm&&x.cm.getHelper(z,"wordChars"),cr=!0;!(ne<0&&!kt(!cr));cr=!1){var Dr=ke.text.charAt(z.ch)||` `,Xr=de(Dr,mn)?"w":An&&Dr==` `?"n":!An||/\s/.test(Dr)?null:"p";if(An&&!cr&&!Xr&&(Xr="s"),jt&&jt!=Xr){ne<0&&(ne=1,kt(),z.sticky="after");break}if(Xr&&(jt=Xr),ne>0&&!kt(!cr))break}var ri=hu(x,z,ue,ye,!0);return Sn(ue,ri)&&(ri.hitSide=!0),ri}function vf(x,z,ne,te){var ie=x.doc,ue=z.left,ye;if(te=="page"){var ke=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Oe=Math.max(ke-.5*Ka(x.display),3);ye=(ne>0?z.bottom:z.top)+ne*Oe}else te=="line"&&(ye=ne>0?z.bottom+3:z.top-3);for(var Fe;Fe=Xa(x,ue,ye),!!Fe.outside;){if(ne<0?ye<=0:ye>=ie.height){Fe.hitSide=!0;break}ye+=ne*5}return Fe}var Qa=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new we,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qa.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;gf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function ue(ke){for(var Oe=ke.target;Oe;Oe=Oe.parentNode){if(Oe==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Oe.className))break}return!1}bn(ie,"paste",function(ke){!ue(ke)||Jt(te,ke)||md(ke,te)||Le<=11&&setTimeout(Wa(te,function(){return z.updateFromDOM()}),20)}),bn(ie,"compositionstart",function(ke){z.composing={data:ke.data,done:!1}}),bn(ie,"compositionupdate",function(ke){z.composing||(z.composing={data:ke.data,done:!1})}),bn(ie,"compositionend",function(ke){z.composing&&(ke.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),bn(ie,"touchstart",function(){return ne.forceCompositionEnd()}),bn(ie,"input",function(){z.composing||z.readFromDOMSoon()});function ye(ke){if(!(!ue(ke)||Jt(te,ke))){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()}),ke.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Oe=lc(te);bl({lineWise:!0,text:Oe.text}),ke.type=="cut"&&te.operation(function(){te.setSelections(Oe.ranges,0,tt),te.replaceSelection("",null,"cut")})}else return;if(ke.clipboardData){ke.clipboardData.clearData();var Fe=Rs.text.join(` `);if(ke.clipboardData.setData("Text",Fe),ke.clipboardData.getData("Text")==Fe){ke.preventDefault();return}}var kt=vd(),jt=kt.firstChild;te.display.lineSpace.insertBefore(kt,te.display.lineSpace.firstChild),jt.value=Rs.text.join(` `);var An=document.activeElement;Pn(jt),setTimeout(function(){te.display.lineSpace.removeChild(kt),An.focus(),An==ie&&ne.showPrimarySelection()},50)}}bn(ie,"copy",ye),bn(ie,"cut",ye)},Qa.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},Qa.prototype.prepareSelection=function(){var x=ps(this.cm,!1);return x.focus=document.activeElement==this.div,x},Qa.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},Qa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qa.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line=z.display.viewFrom&&yf(z,te)||{node:ke[0].measure.map[2],offset:0},Fe=ie.linex.firstLine()&&(te=ht(te.line-1,an(x.doc,te.line-1).length)),ie.ch==an(x.doc,ie.line).text.length&&ie.linez.viewTo-1)return!1;var ue,ye,ke;te.line==z.viewFrom||(ue=ia(x,te.line))==0?(ye=ar(z.view[0].line),ke=z.view[0].node):(ye=ar(z.view[ue].line),ke=z.view[ue-1].node.nextSibling);var Oe=ia(x,ie.line),Fe,kt;if(Oe==z.view.length-1?(Fe=z.viewTo-1,kt=z.lineDiv.lastChild):(Fe=ar(z.view[Oe+1].line)-1,kt=z.view[Oe+1].node.previousSibling),!ke)return!1;for(var jt=x.doc.splitLines(uh(x,ke,kt,ye,Fe)),An=Rn(x.doc,ht(ye,0),ht(Fe,an(x.doc,Fe).text.length));jt.length>1&&An.length>1;)if(en(jt)==en(An))jt.pop(),An.pop(),Fe--;else if(jt[0]==An[0])jt.shift(),An.shift(),ye++;else break;for(var mn=0,cr=0,Dr=jt[0],Xr=An[0],ri=Math.min(Dr.length,Xr.length);mnte.ch&&ui.charCodeAt(ui.length-cr-1)==ei.charCodeAt(ei.length-cr-1);)mn--,cr++;jt[jt.length-1]=ui.slice(0,ui.length-cr).replace(/^\u200b+/,""),jt[0]=jt[0].slice(mn).replace(/\u200b+$/,"");var Vi=ht(ye,mn),Yi=ht(Fe,An.length?en(An).length-cr:0);if(jt.length>1||jt[0]||Dt(Vi,Yi))return ec(x.doc,jt,Vi,Yi,"+input"),!0},Qa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qa.prototype.reset=function(){this.forceCompositionEnd()},Qa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qa.prototype.readFromDOMSoon=function(){var x=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(x.readDOMTimeout=null,x.composing)if(x.composing.done)x.composing=null;else return;x.updateFromDOM()},80))},Qa.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&va(this.cm,function(){return _i(x.cm)})},Qa.prototype.setUneditable=function(x){x.contentEditable="false"},Qa.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Wa(this.cm,pd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},Qa.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},Qa.prototype.onContextMenu=function(){},Qa.prototype.resetPosition=function(){},Qa.prototype.needsContentAttribute=!0;function yf(x,z){var ne=ra(x,z.line);if(!ne||ne.hidden)return null;var te=an(x.doc,z.line),ie=Pa(ne,te,z.line),ue=mr(te,x.doc.direction),ye="left";if(ue){var ke=Gt(ue,z.ch);ye=ke%2?"right":"left"}var Oe=Ni(ie.map,z.ch,ye);return Oe.offset=Oe.collapse=="right"?Oe.end:Oe.start,Oe}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function cc(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var ue="",ye=!1,ke=x.doc.lineSeparator(),Oe=!1;function Fe(mn){return function(cr){return cr.id==mn}}function kt(){ye&&(ue+=ke,Oe&&(ue+=ke),ye=Oe=!1)}function jt(mn){mn&&(kt(),ue+=mn)}function An(mn){if(mn.nodeType==1){var cr=mn.getAttribute("cm-text");if(cr){jt(cr);return}var Dr=mn.getAttribute("cm-marker"),Xr;if(Dr){var ri=x.findMarks(ht(te,0),ht(ie+1,0),Fe(+Dr));ri.length&&(Xr=ri[0].find(0))&&jt(Rn(x.doc,Xr.from,Xr.to).join(ke));return}if(mn.getAttribute("contenteditable")=="false")return;var ui=/^(pre|div|p|li|table|br)$/i.test(mn.nodeName);if(!/^br$/i.test(mn.nodeName)&&mn.textContent.length==0)return;ui&&kt();for(var ei=0;ei=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),bn(ie,"paste",function(ye){Jt(te,ye)||md(ye,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function ue(ye){if(!Jt(te,ye)){if(te.somethingSelected())bl({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var ke=lc(te);bl({lineWise:!0,text:ke.text}),ye.type=="cut"?te.setSelections(ke.ranges,null,tt):(ne.prevInput="",ie.value=ke.text.join(` `),Pn(ie))}else return;ye.type=="cut"&&(te.state.cutIncoming=+new Date)}}bn(ie,"cut",ue),bn(ie,"copy",ue),bn(x.scroller,"paste",function(ye){if(!($i(x,ye)||Jt(te,ye))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var ke=new Event("paste");ke.clipboardData=ye.clipboardData,ie.dispatchEvent(ke)}}),bn(x.lineSpace,"selectstart",function(ye){$i(x,ye)||Er(ye)}),bn(ie,"compositionstart",function(){var ye=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ye,range:te.markText(ye,te.getCursor("to"),{className:"CodeMirror-composing"})}}),bn(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},eo.prototype.createField=function(x){this.wrapper=vd(),this.textarea=this.wrapper.firstChild},eo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},eo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=ps(x);if(x.options.moveInputWithCursor){var ie=pa(x,ne.sel.primary().head,"div"),ue=z.wrapper.getBoundingClientRect(),ye=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+ye.top-ue.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+ye.left-ue.left))}return te},eo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;wt(ne.cursorDiv,x.cursors),wt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},eo.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Pn(this.textarea),ve&&Le>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ve&&Le>=9&&(this.hasSelection=null))}},eo.prototype.getField=function(){return this.textarea},eo.prototype.supportsTouch=function(){return!1},eo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!$e||It()!=this.textarea))try{this.textarea.focus()}catch(x){}},eo.prototype.blur=function(){this.textarea.blur()},eo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},eo.prototype.receivedFocus=function(){this.slowPoll()},eo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},eo.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},eo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||dn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(ve&&Le>=9&&this.hasSelection===ie||Ae&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var ue=ie.charCodeAt(0);if(ue==8203&&!te&&(te="\u200B"),ue==8666)return this.reset(),this.cm.execCommand("undo")}for(var ye=0,ke=Math.min(te.length,ie.length);ye1e3||ie.indexOf(` `)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},eo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},eo.prototype.onKeyPress=function(){ve&&Le>=9&&(this.hasSelection=null),this.fastPoll()},eo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var ue=Bo(ne,x),ye=te.scroller.scrollTop;if(!ue||Te)return;var ke=ne.options.resetSelectionOnContextMenu;ke&&ne.doc.sel.contains(ue)==-1&&Wa(ne,Do)(ne.doc,Os(ue),tt);var Oe=ie.style.cssText,Fe=z.wrapper.style.cssText,kt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(x.clientY-kt.top-5)+"px; left: "+(x.clientX-kt.left-5)+`px; z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var jt;De&&(jt=window.scrollY),te.input.focus(),De&&window.scrollTo(null,jt),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=mn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function An(){if(ie.selectionStart!=null){var Dr=ne.somethingSelected(),Xr="\u200B"+(Dr?ie.value:"");ie.value="\u21DA",ie.value=Xr,z.prevInput=Dr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Xr.length,te.selForContextMenu=ne.doc.sel}}function mn(){if(z.contextMenuPending==mn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=Fe,ie.style.cssText=Oe,ve&&Le<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ye),ie.selectionStart!=null)){(!ve||ve&&Le<9)&&An();var Dr=0,Xr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?Wa(ne,td)(ne):Dr++<10?te.detectingSelectAll=setTimeout(Xr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Xr,200)}}if(ve&&Le>=9&&An(),Se){zr(x);var cr=function(){Tr(window,"mouseup",cr),setTimeout(mn,20)};bn(window,"mouseup",cr)}else setTimeout(mn,50)},eo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},eo.prototype.setUneditable=function(){},eo.prototype.needsContentAttribute=!1;function jl(x,z){if(z=z?Yn(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=It();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=ke.getValue()}var ie;if(x.form&&(bn(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var ue=x.form;ie=ue.submit;try{var ye=ue.submit=function(){te(),ue.submit=ie,ue.submit(),ue.submit=ye}}catch(Oe){}}z.finishInit=function(Oe){Oe.save=te,Oe.getTextArea=function(){return x},Oe.toTextArea=function(){Oe.toTextArea=isNaN,te(),x.parentNode.removeChild(Oe.getWrapperElement()),x.style.display="",x.form&&(Tr(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var ke=aa(function(Oe){return x.parentNode.insertBefore(Oe,x.nextSibling)},z);return ke}function uc(x){x.off=Tr,x.on=bn,x.wheelEventPixels=Xu,x.Doc=Mo,x.splitLines=Ct,x.countColumn=Xe,x.findColumn=Wn,x.isWordChar=he,x.Pass=Kt,x.signal=lt,x.Line=Qn,x.changeEnd=qs,x.scrollbarModel=Ql,x.Pos=ht,x.cmpPos=Dt,x.modes=rr,x.mimeModes=wr,x.resolveMode=mt,x.getMode=Ht,x.modeExtensions=qt,x.extendMode=_e,x.copyState=xt,x.startState=Pt,x.innerMode=Vt,x.commands=ac,x.keyMap=$a,x.keyName=Wl,x.isModifierKey=Tc,x.lookupKey=rl,x.normalizeKeyMap=od,x.StringStream=tn,x.SharedTextMarker=ba,x.TextMarker=hl,x.LineWidget=nc,x.e_preventDefault=Er,x.e_stopPropagation=Pr,x.e_stop=zr,x.addClass=pn,x.contains=Ut,x.rmClass=Ve,x.keyNames=Is}oh(aa),yd(aa);var ol="iter insert remove copy getEditor constructor".split(" ");for(var ks in Mo.prototype)Mo.prototype.hasOwnProperty(ks)&&Mt(ol,ks)<0&&(aa.prototype[ks]=function(x){return function(){return x.apply(this.doc,arguments)}}(Mo.prototype[ks]));return nr(Mo),aa.inputStyles={textarea:eo,contenteditable:Qa},aa.defineMode=function(x){!aa.defaults.mode&&x!="null"&&(aa.defaults.mode=x),_n.apply(this,arguments)},aa.defineMIME=Ye,aa.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),aa.defineMIME("text/plain","null"),aa.defineExtension=function(x,z){aa.prototype[x]=z},aa.defineDocExtension=function(x,z){Mo.prototype[x]=z},aa.fromTextArea=jl,uc(aa),aa.version="5.58.2",aa})},49047:function(sn,nn,se){(function(oe){oe(se(4631),se(29589),se(52539))})(function(oe){"use strict";oe.defineMode("markdown",function(He,Ne){var qe=oe.getMode(He,"text/html"),ve=qe.name=="null";function Le(Xe){if(oe.findModeByName){var we=oe.findModeByName(Xe);we&&(Xe=we.mime||we.mimes[0])}var Mt=oe.getMode(He,Xe);return Mt.name=="null"?null:Mt}Ne.highlightFormatting===void 0&&(Ne.highlightFormatting=!1),Ne.maxBlockquoteDepth===void 0&&(Ne.maxBlockquoteDepth=0),Ne.taskLists===void 0&&(Ne.taskLists=!1),Ne.strikethrough===void 0&&(Ne.strikethrough=!1),Ne.emoji===void 0&&(Ne.emoji=!1),Ne.fencedCodeBlockHighlighting===void 0&&(Ne.fencedCodeBlockHighlighting=!0),Ne.fencedCodeBlockDefaultMode===void 0&&(Ne.fencedCodeBlockDefaultMode="text/plain"),Ne.xml===void 0&&(Ne.xml=!0),Ne.tokenTypeOverrides===void 0&&(Ne.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 xe in De)De.hasOwnProperty(xe)&&Ne.tokenTypeOverrides[xe]&&(De[xe]=Ne.tokenTypeOverrides[xe]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,Te=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,rt=/^\[(x| )\](?=\s)/i,Ie=Ne.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Et=/^ {0,3}(?:\={1,}|-{2,})\s*$/,dt=/^[^#!\[\]*_\\<>` "'(~:]+/,ct=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,$e=/^\s*\[[^\]]+?\]:.*$/,Ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ft=" ";function Yt(Xe,we,Mt){return we.f=we.inline=Mt,Mt(Xe,we)}function Qe(Xe,we,Mt){return we.f=we.block=Mt,Mt(Xe,we)}function it(Xe){return!Xe||!/\S/.test(Xe.string)}function Se(Xe){if(Xe.linkTitle=!1,Xe.linkHref=!1,Xe.linkText=!1,Xe.em=!1,Xe.strong=!1,Xe.strikethrough=!1,Xe.quote=0,Xe.indentedCode=!1,Xe.f==Ve){var we=ve;if(!we){var Mt=oe.innerMode(qe,Xe.htmlState);we=Mt.mode.name=="xml"&&Mt.state.tagStart===null&&!Mt.state.context&&Mt.state.tokenize.isInText}we&&(Xe.f=Lt,Xe.block=Ce,Xe.htmlState=null)}return Xe.trailingSpace=0,Xe.trailingSpaceNewLine=!1,Xe.prevLine=Xe.thisLine,Xe.thisLine={stream:null},null}function Ce(Xe,we){var Mt=Xe.column()===we.indentation,cn=it(we.prevLine.stream),Kt=we.indentedCode,tt=we.prevLine.hr,ut=we.list!==!1,Zt=(we.listStack[we.listStack.length-1]||0)+3;we.indentedCode=!1;var Wn=we.indentation;if(we.indentationDiff===null&&(we.indentationDiff=we.indentation,ut)){for(we.list=null;Wn=4&&(Kt||we.prevLine.fencedCodeEnd||we.prevLine.header||cn))return Xe.skipToEnd(),we.indentedCode=!0,De.code;if(Xe.eatSpace())return null;if(Mt&&we.indentation<=Zt&&(en=Xe.match(Ie))&&en[1].length<=6)return we.quote=0,we.header=en[1].length,we.thisLine.header=!0,Ne.highlightFormatting&&(we.formatting="header"),we.f=we.inline,wt(we);if(we.indentation<=Zt&&Xe.eat(">"))return we.quote=Mt?1:we.quote+1,Ne.highlightFormatting&&(we.formatting="quote"),Xe.eatSpace(),wt(we);if(!Qt&&!we.setext&&Mt&&we.indentation<=Zt&&(en=Xe.match(Te))){var Dn=en[1]?"ol":"ul";return we.indentation=Wn+Xe.current().length,we.list=!0,we.quote=0,we.listStack.push(we.indentation),we.em=!1,we.strong=!1,we.code=!1,we.strikethrough=!1,Ne.taskLists&&Xe.match(rt,!1)&&(we.taskList=!0),we.f=we.inline,Ne.highlightFormatting&&(we.formatting=["list","list-"+Dn]),wt(we)}else{if(Mt&&we.indentation<=Zt&&(en=Xe.match(ct,!0)))return we.quote=0,we.fencedEndRE=new RegExp(en[1]+"+ *$"),we.localMode=Ne.fencedCodeBlockHighlighting&&Le(en[2]||Ne.fencedCodeBlockDefaultMode),we.localMode&&(we.localState=oe.startState(we.localMode)),we.f=we.block=Ue,Ne.highlightFormatting&&(we.formatting="code-block"),we.code=-1,wt(we);if(we.setext||(!wn||!ut)&&!we.quote&&we.list===!1&&!we.code&&!Qt&&!$e.test(Xe.string)&&(en=Xe.lookAhead(1))&&(en=en.match(Et)))return we.setext?(we.header=we.setext,we.setext=0,Xe.skipToEnd(),Ne.highlightFormatting&&(we.formatting="header")):(we.header=en[0].charAt(0)=="="?1:2,we.setext=we.header),we.thisLine.header=!0,we.f=we.inline,wt(we);if(Qt)return Xe.skipToEnd(),we.hr=!0,we.thisLine.hr=!0,De.hr;if(Xe.peek()==="[")return Yt(Xe,we,$t)}return Yt(Xe,we,we.inline)}function Ve(Xe,we){var Mt=qe.token(Xe,we.htmlState);if(!ve){var cn=oe.innerMode(qe,we.htmlState);(cn.mode.name=="xml"&&cn.state.tagStart===null&&!cn.state.context&&cn.state.tokenize.isInText||we.md_inside&&Xe.current().indexOf(">")>-1)&&(we.f=Lt,we.block=Ce,we.htmlState=null)}return Mt}function Ue(Xe,we){var Mt=we.listStack[we.listStack.length-1]||0,cn=we.indentation=Xe.quote?we.push(De.formatting+"-"+Xe.formatting[Mt]+"-"+Xe.quote):we.push("error"))}if(Xe.taskOpen)return we.push("meta"),we.length?we.join(" "):null;if(Xe.taskClosed)return we.push("property"),we.length?we.join(" "):null;if(Xe.linkHref?we.push(De.linkHref,"url"):(Xe.strong&&we.push(De.strong),Xe.em&&we.push(De.em),Xe.strikethrough&&we.push(De.strikethrough),Xe.emoji&&we.push(De.emoji),Xe.linkText&&we.push(De.linkText),Xe.code&&we.push(De.code),Xe.image&&we.push(De.image),Xe.imageAltText&&we.push(De.imageAltText,"link"),Xe.imageMarker&&we.push(De.imageMarker)),Xe.header&&we.push(De.header,De.header+"-"+Xe.header),Xe.quote&&(we.push(De.quote),!Ne.maxBlockquoteDepth||Ne.maxBlockquoteDepth>=Xe.quote?we.push(De.quote+"-"+Xe.quote):we.push(De.quote+"-"+Ne.maxBlockquoteDepth)),Xe.list!==!1){var cn=(Xe.listStack.length-1)%3;cn?cn===1?we.push(De.list2):we.push(De.list3):we.push(De.list1)}return Xe.trailingSpaceNewLine?we.push("trailing-space-new-line"):Xe.trailingSpace&&we.push("trailing-space-"+(Xe.trailingSpace%2?"a":"b")),we.length?we.join(" "):null}function gt(Xe,we){if(Xe.match(dt,!0))return wt(we)}function Lt(Xe,we){var Mt=we.text(Xe,we);if(typeof Mt!="undefined")return Mt;if(we.list)return we.list=null,wt(we);if(we.taskList){var cn=Xe.match(rt,!0)[1]===" ";return cn?we.taskOpen=!0:we.taskClosed=!0,Ne.highlightFormatting&&(we.formatting="task"),we.taskList=!1,wt(we)}if(we.taskOpen=!1,we.taskClosed=!1,we.header&&Xe.match(/^#+$/,!0))return Ne.highlightFormatting&&(we.formatting="header"),wt(we);var Kt=Xe.next();if(we.linkTitle){we.linkTitle=!1;var tt=Kt;Kt==="("&&(tt=")"),tt=(tt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ut="^\\s*(?:[^"+tt+"\\\\]+|\\\\\\\\|\\\\.)"+tt;if(Xe.match(new RegExp(ut),!0))return De.linkHref}if(Kt==="`"){var Zt=we.formatting;Ne.highlightFormatting&&(we.formatting="code"),Xe.eatWhile("`");var Wn=Xe.current().length;if(we.code==0&&(!we.quote||Wn==1))return we.code=Wn,wt(we);if(Wn==we.code){var wn=wt(we);return we.code=0,wn}else return we.formatting=Zt,wt(we)}else if(we.code)return wt(we);if(Kt==="\\"&&(Xe.next(),Ne.highlightFormatting)){var Qt=wt(we),en=De.formatting+"-escape";return Qt?Qt+" "+en:en}if(Kt==="!"&&Xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return we.imageMarker=!0,we.image=!0,Ne.highlightFormatting&&(we.formatting="image"),wt(we);if(Kt==="["&&we.imageMarker&&Xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return we.imageMarker=!1,we.imageAltText=!0,Ne.highlightFormatting&&(we.formatting="image"),wt(we);if(Kt==="]"&&we.imageAltText){Ne.highlightFormatting&&(we.formatting="image");var Qt=wt(we);return we.imageAltText=!1,we.image=!1,we.inline=we.f=Ut,Qt}if(Kt==="["&&!we.image)return we.linkText&&Xe.match(/^.*?\]/)||(we.linkText=!0,Ne.highlightFormatting&&(we.formatting="link")),wt(we);if(Kt==="]"&&we.linkText){Ne.highlightFormatting&&(we.formatting="link");var Qt=wt(we);return we.linkText=!1,we.inline=we.f=Xe.match(/\(.*?\)| ?\[.*?\]/,!1)?Ut:Lt,Qt}if(Kt==="<"&&Xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){we.f=we.inline=Je,Ne.highlightFormatting&&(we.formatting="link");var Qt=wt(we);return Qt?Qt+=" ":Qt="",Qt+De.linkInline}if(Kt==="<"&&Xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){we.f=we.inline=Je,Ne.highlightFormatting&&(we.formatting="link");var Qt=wt(we);return Qt?Qt+=" ":Qt="",Qt+De.linkEmail}if(Ne.xml&&Kt==="<"&&Xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Dn=Xe.string.indexOf(">",Xe.pos);if(Dn!=-1){var vn=Xe.string.substring(Xe.start,Dn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(vn)&&(we.md_inside=!0)}return Xe.backUp(1),we.htmlState=oe.startState(qe),Qe(Xe,we,Ve)}if(Ne.xml&&Kt==="<"&&Xe.match(/^\/\w*?>/))return we.md_inside=!1,"tag";if(Kt==="*"||Kt==="_"){for(var Be=1,fe=Xe.pos==1?" ":Xe.string.charAt(Xe.pos-2);Be<3&&Xe.eat(Kt);)Be++;var ce=Xe.peek()||" ",he=!/\s/.test(ce)&&(!Ae.test(ce)||/\s/.test(fe)||Ae.test(fe)),de=!/\s/.test(fe)&&(!Ae.test(fe)||/\s/.test(ce)||Ae.test(ce)),le=null,Ee=null;if(Be%2&&(!we.em&&he&&(Kt==="*"||!de||Ae.test(fe))?le=!0:we.em==Kt&&de&&(Kt==="*"||!he||Ae.test(ce))&&(le=!1)),Be>1&&(!we.strong&&he&&(Kt==="*"||!de||Ae.test(fe))?Ee=!0:we.strong==Kt&&de&&(Kt==="*"||!he||Ae.test(ce))&&(Ee=!1)),Ee!=null||le!=null){Ne.highlightFormatting&&(we.formatting=le==null?"strong":Ee==null?"em":"strong em"),le===!0&&(we.em=Kt),Ee===!0&&(we.strong=Kt);var wn=wt(we);return le===!1&&(we.em=!1),Ee===!1&&(we.strong=!1),wn}}else if(Kt===" "&&(Xe.eat("*")||Xe.eat("_"))){if(Xe.peek()===" ")return wt(we);Xe.backUp(1)}if(Ne.strikethrough){if(Kt==="~"&&Xe.eatWhile(Kt)){if(we.strikethrough){Ne.highlightFormatting&&(we.formatting="strikethrough");var wn=wt(we);return we.strikethrough=!1,wn}else if(Xe.match(/^[^\s]/,!1))return we.strikethrough=!0,Ne.highlightFormatting&&(we.formatting="strikethrough"),wt(we)}else if(Kt===" "&&Xe.match(/^~~/,!0)){if(Xe.peek()===" ")return wt(we);Xe.backUp(2)}}if(Ne.emoji&&Kt===":"&&Xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){we.emoji=!0,Ne.highlightFormatting&&(we.formatting="emoji");var Ze=wt(we);return we.emoji=!1,Ze}return Kt===" "&&(Xe.match(/^ +$/,!1)?we.trailingSpace++:we.trailingSpace&&(we.trailingSpaceNewLine=!0)),wt(we)}function Je(Xe,we){var Mt=Xe.next();if(Mt===">"){we.f=we.inline=Lt,Ne.highlightFormatting&&(we.formatting="link");var cn=wt(we);return cn?cn+=" ":cn="",cn+De.linkInline}return Xe.match(/^[^>]+/,!0),De.linkInline}function Ut(Xe,we){if(Xe.eatSpace())return null;var Mt=Xe.next();return Mt==="("||Mt==="["?(we.f=we.inline=pn(Mt==="("?")":"]"),Ne.highlightFormatting&&(we.formatting="link-string"),we.linkHref=!0,wt(we)):"error"}var It={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pn(Xe){return function(we,Mt){var cn=we.next();if(cn===Xe){Mt.f=Mt.inline=Lt,Ne.highlightFormatting&&(Mt.formatting="link-string");var Kt=wt(Mt);return Mt.linkHref=!1,Kt}return we.match(It[Xe]),Mt.linkHref=!0,wt(Mt)}}function $t(Xe,we){return Xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(we.f=Pn,Xe.next(),Ne.highlightFormatting&&(we.formatting="link"),we.linkText=!0,wt(we)):Yt(Xe,we,Lt)}function Pn(Xe,we){if(Xe.match(/^\]:/,!0)){we.f=we.inline=Kn,Ne.highlightFormatting&&(we.formatting="link");var Mt=wt(we);return we.linkText=!1,Mt}return Xe.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Kn(Xe,we){return Xe.eatSpace()?null:(Xe.match(/^[^\s]+/,!0),Xe.peek()===void 0?we.linkTitle=!0:Xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),we.f=we.inline=Lt,De.linkHref+" url")}var Yn={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:Lt,text:gt,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(Xe){return{f:Xe.f,prevLine:Xe.prevLine,thisLine:Xe.thisLine,block:Xe.block,htmlState:Xe.htmlState&&oe.copyState(qe,Xe.htmlState),indentation:Xe.indentation,localMode:Xe.localMode,localState:Xe.localMode?oe.copyState(Xe.localMode,Xe.localState):null,inline:Xe.inline,text:Xe.text,formatting:!1,linkText:Xe.linkText,linkTitle:Xe.linkTitle,linkHref:Xe.linkHref,code:Xe.code,em:Xe.em,strong:Xe.strong,strikethrough:Xe.strikethrough,emoji:Xe.emoji,header:Xe.header,setext:Xe.setext,hr:Xe.hr,taskList:Xe.taskList,list:Xe.list,listStack:Xe.listStack.slice(0),quote:Xe.quote,indentedCode:Xe.indentedCode,trailingSpace:Xe.trailingSpace,trailingSpaceNewLine:Xe.trailingSpaceNewLine,md_inside:Xe.md_inside,fencedEndRE:Xe.fencedEndRE}},token:function(Xe,we){if(we.formatting=!1,Xe!=we.thisLine.stream){if(we.header=0,we.hr=!1,Xe.match(/^\s*$/,!0))return Se(we),null;if(we.prevLine=we.thisLine,we.thisLine={stream:Xe},we.taskList=!1,we.trailingSpace=0,we.trailingSpaceNewLine=!1,!we.localState&&(we.f=we.block,we.f!=Ve)){var Mt=Xe.match(/^\s*/,!0)[0].replace(/\t/g,ft).length;if(we.indentation=Mt,we.indentationDiff=null,Mt>0)return null}}return we.f(Xe,we)},innerMode:function(Xe){return Xe.block==Ve?{state:Xe.htmlState,mode:qe}:Xe.localState?{state:Xe.localState,mode:Xe.localMode}:{state:Xe,mode:Yn}},indent:function(Xe,we,Mt){return Xe.block==Ve&&qe.indent?qe.indent(Xe.htmlState,we,Mt):Xe.localState&&Xe.localMode.indent?Xe.localMode.indent(Xe.localState,we,Mt):oe.Pass},blankLine:Se,getType:wt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Yn},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},52539:function(sn,nn,se){(function(oe){oe(se(4631))})(function(oe){"use strict";oe.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 He=0;He-1&&qe.substring(De+1,qe.length);if(xe)return oe.findModeByExtension(xe)},oe.findModeByName=function(qe){qe=qe.toLowerCase();for(var ve=0;ve0?dt.cmdState[dt.cmdState.length-1]:null}function Le(dt){var ct=dt.cmdState.pop();ct&&ct.closeBracket()}function De(dt){for(var ct=dt.cmdState,$e=ct.length-1;$e>=0;$e--){var Ae=ct[$e];if(Ae.name!="DEFAULT")return Ae}return{styleIdentifier:function(){return null}}}function xe(dt,ct,$e){return function(){this.name=dt,this.bracketNo=0,this.style=ct,this.styles=$e,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=xe("importmodule","tag",["string","builtin"]),me.documentclass=xe("documentclass","tag",["","atom"]),me.usepackage=xe("usepackage","tag",["atom"]),me.begin=xe("begin","tag",["atom"]),me.end=xe("end","tag",["atom"]),me.label=xe("label","tag",["atom"]),me.ref=xe("ref","tag",["atom"]),me.eqref=xe("eqref","tag",["atom"]),me.cite=xe("cite","tag",["atom"]),me.bibitem=xe("bibitem","tag",["atom"]),me.Bibitem=xe("Bibitem","tag",["atom"]),me.RBibitem=xe("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Te(dt,ct){dt.f=ct}function rt(dt,ct){var $e;if(dt.match(/^\\[a-zA-Z@]+/)){var Ae=dt.current().slice(1);return $e=me.hasOwnProperty(Ae)?me[Ae]:me.DEFAULT,$e=new $e,qe(ct,$e),Te(ct,Et),$e.style}if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/\\]/))return"tag";if(dt.match("\\["))return Te(ct,function(Yt,Qe){return Ie(Yt,Qe,"\\]")}),"keyword";if(dt.match("\\("))return Te(ct,function(Yt,Qe){return Ie(Yt,Qe,"\\)")}),"keyword";if(dt.match("$$"))return Te(ct,function(Yt,Qe){return Ie(Yt,Qe,"$$")}),"keyword";if(dt.match("$"))return Te(ct,function(Yt,Qe){return Ie(Yt,Qe,"$")}),"keyword";var ft=dt.next();if(ft=="%")return dt.skipToEnd(),"comment";if(ft=="}"||ft=="]"){if($e=ve(ct),$e)$e.closeBracket(ft),Te(ct,Et);else return"error";return"bracket"}else return ft=="{"||ft=="["?($e=me.DEFAULT,$e=new $e,qe(ct,$e),"bracket"):/\d/.test(ft)?(dt.eatWhile(/[\w.%]/),"atom"):(dt.eatWhile(/[\w\-_]/),$e=De(ct),$e.name=="begin"&&($e.argument=dt.current()),$e.styleIdentifier())}function Ie(dt,ct,$e){if(dt.eatSpace())return null;if($e&&dt.match($e))return Te(ct,rt),"keyword";if(dt.match(/^\\[a-zA-Z@]+/))return"tag";if(dt.match(/^[a-zA-Z]+/))return"variable-2";if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/]/)||dt.match(/^[\^_&]/))return"tag";if(dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ae=dt.next();return Ae=="{"||Ae=="}"||Ae=="["||Ae=="]"||Ae=="("||Ae==")"?"bracket":Ae=="%"?(dt.skipToEnd(),"comment"):"error"}function Et(dt,ct){var $e=dt.peek(),Ae;return $e=="{"||$e=="["?(Ae=ve(ct),Ae.openBracket($e),dt.eat($e),Te(ct,rt),"bracket"):/[ \t\r]/.test($e)?(dt.eat($e),null):(Te(ct,rt),Le(ct),rt(dt,ct))}return{startState:function(){var dt=Ne.inMathMode?function(ct,$e){return Ie(ct,$e)}:rt;return{cmdState:[],f:dt}},copyState:function(dt){return{cmdState:dt.cmdState.slice(),f:dt.f}},token:function(dt,ct){return ct.f(dt,ct)},blankLine:function(dt){dt.f=rt,dt.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},29589:function(sn,nn,se){(function(oe){oe(se(4631))})(function(oe){"use strict";var He={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},Ne={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(qe,ve){var Le=qe.indentUnit,De={},xe=ve.htmlMode?He:Ne;for(var me in xe)De[me]=xe[me];for(var me in ve)De[me]=ve[me];var Te,rt;function Ie(Je,Ut){function It(Pn){return Ut.tokenize=Pn,Pn(Je,Ut)}var pn=Je.next();if(pn=="<")return Je.eat("!")?Je.eat("[")?Je.match("CDATA[")?It(ct("atom","]]>")):null:Je.match("--")?It(ct("comment","-->")):Je.match("DOCTYPE",!0,!0)?(Je.eatWhile(/[\w\._\-]/),It($e(1))):null:Je.eat("?")?(Je.eatWhile(/[\w\._\-]/),Ut.tokenize=ct("meta","?>"),"meta"):(Te=Je.eat("/")?"closeTag":"openTag",Ut.tokenize=Et,"tag bracket");if(pn=="&"){var $t;return Je.eat("#")?Je.eat("x")?$t=Je.eatWhile(/[a-fA-F\d]/)&&Je.eat(";"):$t=Je.eatWhile(/[\d]/)&&Je.eat(";"):$t=Je.eatWhile(/[\w\.\-:]/)&&Je.eat(";"),$t?"atom":"error"}else return Je.eatWhile(/[^&<]/),null}Ie.isInText=!0;function Et(Je,Ut){var It=Je.next();if(It==">"||It=="/"&&Je.eat(">"))return Ut.tokenize=Ie,Te=It==">"?"endTag":"selfcloseTag","tag bracket";if(It=="=")return Te="equals",null;if(It=="<"){Ut.tokenize=Ie,Ut.state=Qe,Ut.tagName=Ut.tagStart=null;var pn=Ut.tokenize(Je,Ut);return pn?pn+" tag error":"tag error"}else return/[\'\"]/.test(It)?(Ut.tokenize=dt(It),Ut.stringStartCol=Je.column(),Ut.tokenize(Je,Ut)):(Je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function dt(Je){var Ut=function(It,pn){for(;!It.eol();)if(It.next()==Je){pn.tokenize=Et;break}return"string"};return Ut.isInAttribute=!0,Ut}function ct(Je,Ut){return function(It,pn){for(;!It.eol();){if(It.match(Ut)){pn.tokenize=Ie;break}It.next()}return Je}}function $e(Je){return function(Ut,It){for(var pn;(pn=Ut.next())!=null;){if(pn=="<")return It.tokenize=$e(Je+1),It.tokenize(Ut,It);if(pn==">")if(Je==1){It.tokenize=Ie;break}else return It.tokenize=$e(Je-1),It.tokenize(Ut,It)}return"meta"}}function Ae(Je,Ut,It){this.prev=Je.context,this.tagName=Ut,this.indent=Je.indented,this.startOfLine=It,(De.doNotIndent.hasOwnProperty(Ut)||Je.context&&Je.context.noIndent)&&(this.noIndent=!0)}function ft(Je){Je.context&&(Je.context=Je.context.prev)}function Yt(Je,Ut){for(var It;;){if(!Je.context||(It=Je.context.tagName,!De.contextGrabbers.hasOwnProperty(It)||!De.contextGrabbers[It].hasOwnProperty(Ut)))return;ft(Je)}}function Qe(Je,Ut,It){return Je=="openTag"?(It.tagStart=Ut.column(),it):Je=="closeTag"?Se:Qe}function it(Je,Ut,It){return Je=="word"?(It.tagName=Ut.current(),rt="tag",Ue):De.allowMissingTagName&&Je=="endTag"?(rt="tag bracket",Ue(Je,Ut,It)):(rt="error",it)}function Se(Je,Ut,It){if(Je=="word"){var pn=Ut.current();return It.context&&It.context.tagName!=pn&&De.implicitlyClosed.hasOwnProperty(It.context.tagName)&&ft(It),It.context&&It.context.tagName==pn||De.matchClosing===!1?(rt="tag",Ce):(rt="tag error",Ve)}else return De.allowMissingTagName&&Je=="endTag"?(rt="tag bracket",Ce(Je,Ut,It)):(rt="error",Ve)}function Ce(Je,Ut,It){return Je!="endTag"?(rt="error",Ce):(ft(It),Qe)}function Ve(Je,Ut,It){return rt="error",Ce(Je,Ut,It)}function Ue(Je,Ut,It){if(Je=="word")return rt="attribute",wt;if(Je=="endTag"||Je=="selfcloseTag"){var pn=It.tagName,$t=It.tagStart;return It.tagName=It.tagStart=null,Je=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(pn)?Yt(It,pn):(Yt(It,pn),It.context=new Ae(It,pn,$t==It.indented)),Qe}return rt="error",Ue}function wt(Je,Ut,It){return Je=="equals"?gt:(De.allowMissing||(rt="error"),Ue(Je,Ut,It))}function gt(Je,Ut,It){return Je=="string"?Lt:Je=="word"&&De.allowUnquoted?(rt="string",Ue):(rt="error",Ue(Je,Ut,It))}function Lt(Je,Ut,It){return Je=="string"?Lt:Ue(Je,Ut,It)}return{startState:function(Je){var Ut={tokenize:Ie,state:Qe,indented:Je||0,tagName:null,tagStart:null,context:null};return Je!=null&&(Ut.baseIndent=Je),Ut},token:function(Je,Ut){if(!Ut.tagName&&Je.sol()&&(Ut.indented=Je.indentation()),Je.eatSpace())return null;Te=null;var It=Ut.tokenize(Je,Ut);return(It||Te)&&It!="comment"&&(rt=null,Ut.state=Ut.state(Te||It,Je,Ut),rt&&(It=rt=="error"?It+" error":rt)),It},indent:function(Je,Ut,It){var pn=Je.context;if(Je.tokenize.isInAttribute)return Je.tagStart==Je.indented?Je.stringStartCol+1:Je.indented+Le;if(pn&&pn.noIndent)return oe.Pass;if(Je.tokenize!=Et&&Je.tokenize!=Ie)return It?It.match(/^(\s*)/)[0].length:0;if(Je.tagName)return De.multilineTagIndentPastTag!==!1?Je.tagStart+Je.tagName.length+2:Je.tagStart+Le*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/$/,blockCommentStart:"",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(Je){Je.state==gt&&(Je.state=Ue)},xmlCurrentTag:function(Je){return Je.tagName?{name:Je.tagName,close:Je.type=="closeTag"}:null},xmlCurrentContext:function(Je){for(var Ut=[],It=Je.context;It;It=It.prev)It.tagName&&Ut.push(It.tagName);return Ut.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(sn,nn,se){"use strict";se.d(nn,{hP:function(){return vn}});var oe=function(Be,fe){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,he){ce.__proto__=he}||function(ce,he){for(var de in he)Object.prototype.hasOwnProperty.call(he,de)&&(ce[de]=he[de])})(Be,fe)};function He(Be,fe){function ce(){this.constructor=Be}oe(Be,fe),Be.prototype=fe===null?Object.create(fe):(ce.prototype=fe.prototype,new ce)}function Ne(Be,fe,ce,he){return new(ce||(ce=Promise))(function(de,le){function Ee(Nt){try{vt(he.next(Nt))}catch(Ft){le(Ft)}}function Ze(Nt){try{vt(he.throw(Nt))}catch(Ft){le(Ft)}}function vt(Nt){var Ft;Nt.done?de(Nt.value):(Ft=Nt.value,Ft instanceof ce?Ft:new ce(function(zt){zt(Ft)})).then(Ee,Ze)}vt((he=he.apply(Be,fe||[])).next())})}function qe(Be,fe){var ce,he,de,le,Ee={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return le={next:Ze(0),throw:Ze(1),return:Ze(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Ze(vt){return function(Nt){return function(Ft){if(ce)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(ce=1,he&&(de=2&Ft[0]?he.return:Ft[0]?he.throw||((de=he.return)&&de.call(he),0):he.next)&&!(de=de.call(he,Ft[1])).done)return de;switch(he=0,de&&(Ft=[2&Ft[0],de.value]),Ft[0]){case 0:case 1:de=Ft;break;case 4:return Ee.label++,{value:Ft[1],done:!1};case 5:Ee.label++,he=Ft[1],Ft=[0];continue;case 7:Ft=Ee.ops.pop(),Ee.trys.pop();continue;default:if(de=Ee.trys,!((de=de.length>0&&de[de.length-1])||Ft[0]!==6&&Ft[0]!==2)){Ee=0;continue}if(Ft[0]===3&&(!de||Ft[1]>de[0]&&Ft[1]',"select"),this.addActionButton(he,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(he,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(he,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(he,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(he,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(he,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(he,'',"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(le){var Ee=document.createElement("div");Ee.className=""+ce.toolbarButtonStyleClass.name,Ee.setAttribute("data-type-name",le.typeName),Ee.innerHTML=le.icon,Ee.addEventListener("click",function(){ce.markerToolbarButtonClicked(Ee,le)}),ce.buttons.push(Ee),ce.markerButtons.push(Ee)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'',"render"),this.addActionButton(de,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Be.prototype.addButtonClickListener=function(fe){this.buttonClickListeners.push(fe)},Be.prototype.removeButtonClickListener=function(fe){this.buttonClickListeners.indexOf(fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(fe),1)},Be.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Be.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce0&&this.buttonClickListeners.forEach(function(he){return he("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},Be.prototype.actionToolbarButtonClicked=function(fe,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(he){return he("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Be.prototype.setActiveButton=function(fe){this.resetButtonStyles(),fe.className=fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Be.prototype.setActiveMarkerButton=function(fe){var ce=this.markerButtons.find(function(he){return he.getAttribute("data-type-name")===fe});ce&&this.setActiveButton(ce)},Be.prototype.setCurrentMarker=function(fe){var ce=this;this.currentMarker=fe,this.buttons.filter(function(he){return/delete|notes/.test(he.getAttribute("data-action"))}).forEach(function(he){ce.currentMarker===void 0?(he.style.fillOpacity="0.4",he.style.pointerEvents="none"):(he.style.fillOpacity="1",he.style.pointerEvents="all")})},Be}(),dt=function(){function Be(fe,ce,he,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=fe,this.displayMode=ce,this.uiStyleSettings=he,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Be.prototype.addStyles=function(){var fe;this.toolboxStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-panel-row_colors",` background-color: `+((fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&fe!==void 0?fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px; padding: `+ce+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new rt("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new rt("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},Be.prototype.show=function(fe){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Be.prototype.setPanelButtons=function(fe){var ce,he,de=this;this.panels=fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((he=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&he!==void 0?he:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Ee;le.uiStyleSettings=de.uiStyleSettings;var Ze=document.createElement("div");Ze.className=de.toolboxButtonStyleClass.name+" "+((Ee=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ee!==void 0?Ee:de.toolboxButtonStyleColorsClass.name),Ze.innerHTML=le.icon,Ze.title=le.title,Ze.addEventListener("click",function(){de.panelButtonClick(le)}),de.panelButtons.push(Ze),de.buttonRow.appendChild(Ze)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Be.prototype.panelButtonClick=function(fe){var ce=this,he=-1;if(fe!==this.activePanel){he=this.panels.indexOf(fe),this.panelRow.innerHTML="";var de=fe.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),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=fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Ee){var Ze,vt;le.className=ce.toolboxButtonStyleClass.name+" "+(Ee===he?""+((Ze=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ze!==void 0?Ze:ce.toolboxActiveButtonStyleColorsClass.name):""+((vt=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:ce.toolboxButtonStyleColorsClass.name))})},Be}(),ct=function(Be,fe){this.title=Be,this.icon=fe},$e=function(Be){function fe(ce,he,de,le){var Ee=Be.call(this,ce,le||'')||this;return Ee.colors=[],Ee.addTransparent=!1,Ee.colorBoxes=[],Ee.colors=he,Ee.currentColor=de,Ee.setCurrentColor=Ee.setCurrentColor.bind(Ee),Ee.getColorBox=Ee.getColorBox.bind(Ee),Ee}return He(fe,Be),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.whiteSpace="nowrap",this.colors.forEach(function(de){var le=ce.getColorBox(de);he.appendChild(le),ce.colorBoxes.push(le)}),he},fe.prototype.getColorBox=function(ce){var he=this,de=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-de,Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.boxSizing="content-box",Ee.style.width=le-2+"px",Ee.style.height=le-2+"px",Ee.style.padding="1px",Ee.style.marginRight="2px",Ee.style.marginBottom="2px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderRadius=(le+2)/2+"px",Ee.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){he.setCurrentColor(ce,Ee)});var Ze=document.createElement("div");return Ze.style.display="inline-block",Ze.style.width=le-2+"px",Ze.style.height=le-2+"px",Ze.style.backgroundColor=ce,Ze.style.borderRadius=le/2+"px",ce==="transparent"&&(Ze.style.fill=this.uiStyleSettings.toolboxAccentColor,Ze.innerHTML=` `),Ee.appendChild(Ze),Ee},fe.prototype.setCurrentColor=function(ce,he){var de=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},fe}(ct),Ae=function(){function Be(fe,ce,he){this._state="new",this._isSelected=!1,this._container=fe,this._overlayContainer=ce,this.globalSettings=he,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Be.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Be.prototype.ownsTarget=function(fe){return!1},Object.defineProperty(Be.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Be.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Be.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Be.prototype.pointerDown=function(fe,ce){},Be.prototype.dblClick=function(fe,ce){},Be.prototype.manipulate=function(fe){},Be.prototype.pointerUp=function(fe){this.stateChanged()},Be.prototype.dispose=function(){},Be.prototype.addMarkerVisualToContainer=function(fe){this.container.childNodes.length>0?this.container.insertBefore(fe,this.container.childNodes[0]):this.container.appendChild(fe)},Be.prototype.getState=function(){return{typeName:Be.typeName,state:this.state,notes:this.notes}},Be.prototype.restoreState=function(fe){this._state=fe.state,this.notes=fe.notes},Be.prototype.scale=function(fe,ce){},Be.prototype.colorChanged=function(fe){this.onColorChanged&&this.onColorChanged(fe),this.stateChanged()},Be.prototype.fillColorChanged=function(fe){this.onFillColorChanged&&this.onFillColorChanged(fe),this.stateChanged()},Be.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(fe)&&this.onStateChanged(this)}},Be.typeName="MarkerBase",Be}(),ft=function(){function Be(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Be.prototype.findGripByVisual=function(fe){return this.topLeft.ownsTarget(fe)?this.topLeft:this.topCenter.ownsTarget(fe)?this.topCenter:this.topRight.ownsTarget(fe)?this.topRight:this.centerLeft.ownsTarget(fe)?this.centerLeft:this.centerRight.ownsTarget(fe)?this.centerRight:this.bottomLeft.ownsTarget(fe)?this.bottomLeft:this.bottomCenter.ownsTarget(fe)?this.bottomCenter:this.bottomRight.ownsTarget(fe)?this.bottomRight:void 0},Be}(),Yt=function(){function Be(){this.GRIP_SIZE=10,this.visual=Le.createGroup(),this.visual.appendChild(Le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Be.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},Be}(),Qe=function(){function Be(){}return Be.toITransformMatrix=function(fe){return{a:fe.a,b:fe.b,c:fe.c,d:fe.d,e:fe.e,f:fe.f}},Be.toSVGMatrix=function(fe,ce){return fe.a=ce.a,fe.b=ce.b,fe.c=ce.c,fe.d=ce.d,fe.e=ce.e,fe.f=ce.f,fe},Be}(),it=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Le.createTransform()),le.setupControlBox(),le}return He(fe,Be),Object.defineProperty(fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var he=Le.createTransform();this._visual.transform.baseVal.appendItem(he)},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ce){return!!Be.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(ce);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(he),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(he)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},fe.prototype.pointerUp=function(ce){var he=this.state;Be.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},fe.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},fe.prototype.manipulate=function(ce){var he=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(he.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(he.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(he):this.state==="rotate"&&this.rotate(ce)},fe.prototype.resize=function(ce){var he=this.manipulationStartLeft,de=this.manipulationStartWidth,le=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:he=this.manipulationStartLeft+ce.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-he;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+ce.y-this.manipulationStartY}de>=0?(this.left=he,this.width=de):(this.left=he+de,this.width=-de),Ee>=0?(this.top=le,this.height=Ee):(this.top=le+Ee,this.height=-Ee),this.setSize()},fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},fe.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var he=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*he,this.applyRotation()}},fe.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},fe.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM(),de=Le.createPoint(ce.x,ce.y);return{x:(de=de.matrixTransform(he)).x,y:de.y}},fe.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var he=this.container.getCTM();he=he.inverse();var de=Le.createPoint(ce.x,ce.y);return{x:(de=de.matrixTransform(he)).x,y:de.y}},fe.prototype.select=function(){Be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){Be.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=Le.createGroup();var ce=Le.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=Le.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=Le.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 ft,this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,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()},fe.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()},fe.prototype.createGrip=function(){var ce=new Yt;return ce.visual.transform.baseVal.appendItem(Le.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,he=-ce/2,de=he,le=(this.width+this.CB_DISTANCE)/2-ce/2,Ee=(this.height+this.CB_DISTANCE)/2-ce/2,Ze=this.height+this.CB_DISTANCE-ce/2,vt=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,he,de),this.positionGrip(this.controlGrips.topCenter.visual,le,de),this.positionGrip(this.controlGrips.topRight.visual,vt,de),this.positionGrip(this.controlGrips.centerLeft.visual,he,Ee),this.positionGrip(this.controlGrips.centerRight.visual,vt,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,he,Ze),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Ze),this.positionGrip(this.controlGrips.bottomRight.visual,vt,Ze),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,de-3*this.CB_DISTANCE)},fe.prototype.positionGrip=function(ce,he,de){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,de),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},fe.prototype.showControlBox=function(){this.controlBox.style.display=""},fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Qe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Qe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Be.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){Be.prototype.restoreState.call(this,ce);var he=ce;this.left=he.left,this.top=he.top,this.width=he.width,this.height=he.height,this.rotationAngle=he.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Qe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,he.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Qe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,he.containerTransformMatrix))},fe.prototype.scale=function(ce,he){Be.prototype.scale.call(this,ce,he);var de=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:de.x*ce,y:de.y*he});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*he,this.adjustControlBox()},fe}(Ae),Se=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!(!Be.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},fe.prototype.createVisual=function(){this.visual=Le.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)},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Be.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Be.prototype.resize.call(this,ce),this.setSize()},fe.prototype.setSize=function(){Be.prototype.setSize.call(this),Le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){Be.prototype.pointerUp.call(this,ce),this.setSize()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Be.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.opacity=he.opacity,this.createVisual(),Be.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Be.prototype.scale.call(this,ce,he),this.setSize()},fe.title="Rectangle marker",fe}(it),Ce=function(Be){function fe(ce,he,de,le){var Ee=Be.call(this,ce,le||'')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=he,Ee.currentWidth=de,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return He(fe,Be),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.widths.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.innerText=de.toString(),Ee.style.marginRight="5px",le.appendChild(Ee);var Ze=document.createElement("div");Ze.style.minHeight="20px",Ze.style.flexGrow="2",Ze.style.display="flex",Ze.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=de+"px solid "+ce.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",Ze.appendChild(vt),le.appendChild(Ze),ce.widthBoxes.push(le)}),he},fe.prototype.setCurrentWidth=function(ce,he){var de=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},fe}(ct),Ve=function(Be){function fe(ce,he,de,le){var Ee=Be.call(this,ce,le||'')||this;return Ee.styles=[],Ee.styleBoxes=[],Ee.styles=he,Ee.currentStyle=de,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return He(fe,Be),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",this.styles.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=de===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var Ze=` `;Ee.innerHTML=Ze,le.appendChild(Ee),ce.styleBoxes.push(le)}),he},fe.prototype.setCurrentStyle=function(ce,he){var de=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},fe}(ct),Ue=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new $e("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return He(fe,Be),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Be.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="FrameMarker",fe.title="Frame marker",fe.icon='',fe}(Se),wt=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"},gt=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!!Be.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.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(he)?this.activeGrip=this.grip1:this.grip2.ownsTarget(he)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},fe.prototype.pointerUp=function(ce){var he=this.state;Be.prototype.pointerUp.call(this,ce),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(ce),this._state="select",he==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},fe.prototype.adjustVisual=function(){},fe.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},fe.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},fe.prototype.select=function(){Be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){Be.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=Le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){this.positionGrips()},fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},fe.prototype.createGrip=function(){var ce=new Yt;return ce.visual.transform.baseVal.appendItem(Le.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},fe.prototype.positionGrip=function(ce,he,de){var le=ce.transform.baseVal.getItem(0);le.setTranslate(he,de),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Be.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){Be.prototype.restoreState.call(this,ce);var he=ce;this.x1=he.x1,this.y1=he.y1,this.x2=he.x2,this.y2=he.y2},fe.prototype.scale=function(ce,he){Be.prototype.scale.call(this,ce,he),this.x1=this.x1*ce,this.y1=this.y1*he,this.x2=this.x2*ce,this.y2=this.y2*he,this.adjustVisual(),this.adjustControlBox()},fe}(Ae),Lt=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new $e("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!(!Be.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},fe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.selectorLine=Le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Le.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)},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},fe.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()),Le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Be.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Be.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.createVisual(),this.adjustVisual()},fe.typeName="LineMarker",fe.title="Line marker",fe.icon='',fe}(gt),Je=function(Be){function fe(ce,he,de,le){var Ee=Be.call(this,ce,le||'')||this;return Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=he,Ee.currentFont=de,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return He(fe,Be),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.overflow="hidden",he.style.flexGrow="2",this.fonts.forEach(function(de){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=de===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=de,Ee.style.overflow="hidden";var Ze=document.createElement("div");Ze.style.whiteSpace="nowrap",Ze.style.overflow="hidden",Ze.style.textOverflow="ellipsis",Ze.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Ze),le.appendChild(Ee),ce.fontBoxes.push(le)}),he},fe.prototype.setCurrentFont=function(ce,he){var de=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},fe}(ct),Ut=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=de.defaultColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new $e("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Je("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){if(Be.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var he=!1;return this.textElement.childNodes.forEach(function(de){de===ce&&(he=!0)}),he},fe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.bgRectangle=Le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Le.createTransform()),this.textElement.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.renderText=function(){var ce=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(he){ce.textElement.appendChild(Le.createTSpan(he.trim()===""?" ":he.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},fe.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),he=1;if(ce.width>0&&ce.height>0){var de=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;he=Math.min(de,le)}return he},fe.prototype.getTextPosition=function(ce){var he=this.textElement.getBBox(),de=0,le=0;return he.width>0&&he.height>0&&(de=(this.width-he.width*ce)/2,le=this.height/2-he.height*ce/2),{x:de,y:le}},fe.prototype.sizeText=function(){var ce=this.textElement.getBBox(),he=this.getTextScale(),de=this.getTextPosition(he);de.y-=ce.y*he,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+he+", "+he+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(he,he))},fe.prototype.manipulate=function(ce){Be.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){Be.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},fe.prototype.setSize=function(){Be.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},fe.prototype.pointerUp=function(ce){var he=this.state;he==="creating"&&(this._suppressMarkerCreateEvent=!0),Be.prototype.pointerUp.call(this,ce),this.setSize(),(he==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var he=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&he>.9;)he-=.1,ce.textEditor.style.fontSize=Math.max(he,.9)+"em"}),this.textEditor.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(he){if(he.clipboardData){var de=he.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(de)),he.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),he=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),le={x:de.width*ce,y:de.height*ce};he.x-=le.x/2,he.y-=le.y/2,this.textEditor.style.top=he.y+"px",this.textEditor.style.left=he.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-he.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},fe.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},fe.prototype.select=function(){Be.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Be.prototype.deselect.call(this)},fe.prototype.dblClick=function(ce,he){Be.prototype.dblClick.call(this,ce,he),this.showTextEditor()},fe.prototype.setColor=function(ce){this.textElement&&Le.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},fe.prototype.setFont=function(ce){this.textElement&&Le.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Be.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.color=he.color,this.fontFamily=he.fontFamily,this.padding=he.padding,this.text=he.text,this.createVisual(),Be.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Be.prototype.scale.call(this,ce,he),this.setSize(),this.sizeText(),this.positionTextEditor()},fe.typeName="TextMarker",fe.title="Text marker",fe.icon='',fe}(it),It=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=de.defaultColor,le.lineWidth=de.defaultStrokeWidth,le.pixelRatio=de.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new $e("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!(!Be.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},fe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.drawingImage=Le.createImage(),this.visual.appendChild(this.drawingImage);var ce=Le.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,he){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(ce.x,ce.y),this.drawing=!0):Be.prototype.pointerDown.call(this,ce,he)},fe.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):Be.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Be.prototype.resize.call(this,ce),Le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Be.prototype.pointerUp.call(this,ce)},fe.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)},fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Be.prototype.select.call(this)},fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Be.prototype.deselect.call(this)},fe.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),he=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=he[0],le=he[1],Ee=he[2],Ze=he[3],vt=!1,Nt=0;Nt0&&(vt=!0,NtZe&&(Ze=Nt),Ft>Ee&&(Ee=Ft));if(vt){this.left=de/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Ee-de)/this.pixelRatio,this.height=(Ze-le)/this.pixelRatio;var zt=document.createElement("canvas");zt.width=Ee-de,zt.height=Ze-le,zt.getContext("2d").putImageData(this.canvasContext.getImageData(de,le,Ee-de,Ze-le),0,0),this.drawingImgUrl=zt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},fe.prototype.setDrawingImage=function(){Le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},fe.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},fe.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},Be.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){this.createVisual(),Be.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},fe.prototype.scale=function(ce,he){Be.prototype.scale.call(this,ce,he),this.setDrawingImage()},fe.typeName="FreehandMarker",fe.title="Freehand marker",fe.icon='',fe}(it),pn=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,de||'')||this;return le.typeBoxes=[],le.currentType=he,le.setCurrentType=le.setCurrentType.bind(le),le}return He(fe,Be),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2";for(var de=function(Ze){var vt="both";switch(Ze){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="none"}var Nt=document.createElement("div");if(Nt.style.display="flex",Nt.style.flexGrow="2",Nt.style.alignItems="center",Nt.style.justifyContent="space-between",Nt.style.padding="5px",Nt.style.borderWidth="2px",Nt.style.borderStyle="solid",Nt.style.borderColor=vt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",Nt.addEventListener("click",function(){ce.setCurrentType(vt,Nt)}),he.appendChild(Nt),vt==="both"||vt==="start"){var Ft=document.createElement("div");Ft.style.display="flex",Ft.style.alignItems="center",Ft.style.minHeight="20px",Ft.innerHTML=` `,Ft.style.marginLeft="5px",Nt.appendChild(Ft)}var zt=document.createElement("div");zt.style.display="flex",zt.style.alignItems="center",zt.style.minHeight="20px",zt.style.flexGrow="2";var Gt=document.createElement("hr");if(Gt.style.minWidth="20px",Gt.style.border="0px",Gt.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Gt.style.flexGrow="2",zt.appendChild(Gt),Nt.appendChild(zt),vt==="both"||vt==="end"){var $n=document.createElement("div");$n.style.display="flex",$n.style.alignItems="center",$n.style.minHeight="20px",$n.innerHTML=` `,$n.style.marginRight="5px",Nt.appendChild($n)}le.typeBoxes.push(Nt)},le=this,Ee=0;Ee<4;Ee++)de(Ee);return he},fe.prototype.setCurrentType=function(ce,he){var de=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},fe}(ct),$t=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new pn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!(!Be.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},fe.prototype.getArrowPoints=function(ce,he){var de=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-de/2+","+(he+le/2)+" "+ce+","+(he-le/2)+" "+(ce+de/2)+","+(he+le/2)},fe.prototype.createTips=function(){this.arrow1=Le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Le.createTransform()),this.visual.appendChild(this.arrow2)},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(Be.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",Le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var he=this.arrow1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(he,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},fe.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},Be.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Be.prototype.restoreState.call(this,ce);var he=ce;this.arrowType=he.arrowType,this.createTips(),this.adjustVisual()},fe.typeName="ArrowMarker",fe.title="Arrow marker",fe.icon='',fe}(Lt),Pn=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.fillColor=de.defaultFillColor,le.strokeWidth=0,le.fillPanel=new $e("Color",de.defaultColorSet,de.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return He(fe,Be),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Be.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="CoverMarker",fe.title="Cover marker",fe.icon='',fe}(Se),Kn=function(Be){function fe(ce,he,de,le){var Ee=Be.call(this,ce,le||'')||this;return Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=he,Ee.currentOpacity=de,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return He(fe,Be),fe.prototype.getUi=function(){var ce=this,he=document.createElement("div");return he.style.display="flex",he.style.overflow="hidden",he.style.flexGrow="2",he.style.justifyContent="space-between",this.opacities.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(de,le)}),he.appendChild(le);var Ee=document.createElement("div");Ee.innerText=100*de+"%",le.appendChild(Ee),ce.opacityBoxes.push(le)}),he},fe.prototype.setCurrentOpacity=function(ce,he){var de=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===he?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},fe}(ct),Yn=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=de.defaultHighlightColor,le.strokeWidth=0,le.opacity=de.defaultHighlightOpacity,le.fillPanel=new $e("Color",de.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Kn("Opacity",de.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return He(fe,Be),fe.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Be.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="HighlightMarker",fe.title="Highlight marker",fe.icon='',fe}(Pn),Xe='',we='',Mt=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=de.defaultStrokeColor,le.bgColor=de.defaultFillColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new $e("Text color",de.defaultColorSet,le.color,Xe),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new $e("Fill color",de.defaultColorSet,le.bgColor,we),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Je("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Yt,le.tipGrip.visual.transform.baseVal.appendItem(Le.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return Be.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},fe.prototype.createTip=function(){Le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},fe.prototype.pointerDown=function(ce,he){this.state==="new"&&Be.prototype.pointerDown.call(this,ce,he),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(he)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Be.prototype.pointerDown.call(this,ce,he)},fe.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Be.prototype.pointerUp.call(this,ce);else{var he=this.state==="creating";Be.prototype.pointerUp.call(this,ce),this.setTipPoints(he),this.positionTip()}},fe.prototype.manipulate=function(ce){if(this.tipMoving){var he=this.unrotatePoint(ce);this.tipPosition={x:he.x-this.manipulationStartLeft,y:he.y-this.manipulationStartTop},this.positionTip()}else Be.prototype.manipulate.call(this,ce)},fe.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(Le.setAttributes(this.bgRectangle,[["fill",ce]]),Le.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},fe.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},fe.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var he=Math.min(this.height/2,15),de=this.height/5;ce&&(this.tipPosition={x:he+de/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?le.1)){var ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),he=this.tip1.transform.baseVal.getItem(0);he.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(he,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Be.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Be.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},fe.typeName="MeasurementMarker",fe.title="Measurement marker",fe.icon='',fe}(Lt),tt=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.strokePanel.colors=de.defaultColorSet,le.fillColor="transparent",le}return He(fe,Be),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Be.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="EllipseFrameMarker",fe.title="Ellipse frame marker",fe.icon='',fe}(cn),ut=function(){function Be(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Be.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Be.prototype.addUndoStep=function(fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(fe)||(this.undoStack.push(fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(fe)&&this.redoStack.splice(0,this.redoStack.length))},Be.prototype.replaceLastUndoStep=function(fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=fe)},Be.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Be.prototype.undo=function(){if(this.undoStack.length>1){var fe=this.undoStack.pop();return fe!==void 0&&this.redoStack.push(fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Be.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Be}(),Zt=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new $e("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!(!Be.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},fe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.selectorCurve=Le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Le.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)},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(he)&&(this.activeGrip=this.curveGrip,this._state="resize")},fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setupControlBox=function(){Be.prototype.setupControlBox.call(this),this.curveControlLine1=Le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Le.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)},fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Be.prototype.addControlGrips.call(this)},fe.prototype.positionGrips=function(){Be.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/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()))},fe.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),Be.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),Be.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},fe.prototype.scale=function(ce,he){this.curveX=this.curveX*ce,this.curveY=this.curveY*he,Be.prototype.scale.call(this,ce,he)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Be.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Be.prototype.restoreState.call(this,ce);var he=ce;this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.curveX=he.curveX,this.curveY=he.curveY,this.createVisual(),this.adjustVisual()},fe.typeName="CurveMarker",fe.title="Curve marker",fe.icon='',fe}(gt),Wn=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,he,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.fillColor=de.defaultFillColor,le.textColor=de.defaultStrokeColor,le.fontFamily=de.defaultFontFamily,le.fontSize=de.defaultCaptionFontSize,le.captionText=de.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new $e("Line color",ve(de.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new $e("Fill color",ve(de.defaultColorSet,["transparent"]),le.fillColor,we),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Ce("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ve("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Je("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new $e("Text color",de.defaultColorSet,le.textColor,Xe),le.textColorPanel.onColorChanged=le.setTextColor,le}return He(fe,Be),fe.prototype.ownsTarget=function(ce){return!(!Be.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},fe.prototype.createVisual=function(){this.visual=Le.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Le.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Le.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=Le.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()},fe.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},fe.prototype.pointerDown=function(ce,he){Be.prototype.pointerDown.call(this,ce,he),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Be.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){Be.prototype.resize.call(this,ce),this.setSize()},fe.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Le.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')"]]),Le.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')"]])},fe.prototype.showTextEditor=function(){var ce=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(he){he.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(he){he.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(he){he.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},fe.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"))},fe.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},fe.prototype.setFont=function(ce){this.captionElement&&Le.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},fe.prototype.setTextColor=function(ce){this.captionElement&&Le.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},fe.prototype.setSize=function(){Be.prototype.setSize.call(this),Le.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},fe.prototype.pointerUp=function(ce){Be.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.dblClick=function(ce,he){Be.prototype.dblClick.call(this,ce,he),this.showTextEditor()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&Le.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&Le.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&Le.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&Le.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=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},Be.prototype.getState.call(this));return ce.typeName=this.typeName,ce},fe.prototype.restoreState=function(ce){var he=ce;this.fillColor=he.fillColor,this.strokeColor=he.strokeColor,this.strokeWidth=he.strokeWidth,this.strokeDasharray=he.strokeDasharray,this.textColor=he.textColor,this.fontFamily=he.fontFamily,this.captionText=he.captionText,this.fontSize=he.fontSize,this.createVisual(),Be.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,he){Be.prototype.scale.call(this,ce,he),this.setSize()},fe.typeName="CaptionFrameMarker",fe.title="Caption frame marker",fe.icon='',fe}(it),wn=function(){function Be(fe,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=fe,this.cancelable=ce}return Object.defineProperty(Be.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Be.prototype.preventDefault=function(){this._defaultPrevented=!0},Be}(),Qt=function(Be){function fe(ce,he,de){var le=Be.call(this,ce,!1)||this;return le.dataUrl=he,le.state=de,le}return He(fe,Be),fe}(wn),en=function(Be){function fe(ce,he,de){de===void 0&&(de=!1);var le=Be.call(this,ce,de)||this;return le.marker=he,le}return He(fe,Be),fe}(wn),Dn=function(){function Be(){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 Be.prototype.addEventListener=function(fe,ce){this[fe].push(ce)},Be.prototype.removeEventListener=function(fe,ce){var he=this[fe].indexOf(ce);he>-1&&this[fe].splice(he,1)},Be}(),vn=function(){function Be(fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new wt,this._isOpen=!1,this.undoRedoManager=new ut,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 Dn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Be.instanceCounter++,this.styles=new Te(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=fe,this.targetRoot=document.body,this.width=fe.clientWidth,this.height=fe.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(Be.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ue,It,$t,Ut,tt,cn,Yn,Mt,Kt,Pn,Lt,Zt,Wn]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ue,It,$t,Ut,cn,Yn,Mt]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ue,It,$t,Ut,Yn]},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(fe){var ce=this;this._availableMarkerTypes.splice(0),fe.forEach(function(he){if(typeof he=="string"){var de=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===he});de!==void 0&&ce._availableMarkerTypes.push(de)}else ce._availableMarkerTypes.push(he)})},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Be.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(fe){this._zoomLevel=fe,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(Be.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Be.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},Be.prototype.show=function(){var fe=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new wn(fe))})},Be.prototype.render=function(){return Ne(this,void 0,void 0,function(){var fe;return qe(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(fe=new xe).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.markersOnly=this.renderMarkersOnly,fe.width=this.renderWidth,fe.height=this.renderHeight,[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},Be.prototype.close=function(fe){var ce=this;if(fe===void 0&&(fe=!1),this.isOpen){var he=!1;fe||this.eventListeners.beforeclose.forEach(function(de){var le=new wn(ce,!0);de(le),le.defaultPrevented&&(he=!0)}),he||(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(de){return de(new wn(ce))}),this.detachEvents(),this._isOpen=!1)}},Be.prototype.addMarkersToToolbar=function(){for(var fe,ce=[],he=0;hethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*fe:this.editorCanvas.clientWidth,he=ce',fe.title="Powered by marker.js",fe.style.display="grid",fe.style.alignItems="center",fe.style.justifyItems="center",fe.style.padding="3px",fe.style.width="20px",fe.style.height="20px",this.logoUI.appendChild(fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Be.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")},Be.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"},Be.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Be.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 fe=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=fe+"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 Et(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-1&&this.markers.splice(this.markers.indexOf(fe),1),fe.dispose()},Be.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())},Be.prototype.toolbarButtonClicked=function(fe,ce){if(fe==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(fe==="action")switch(ce){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()}},Be.prototype.deleteSelectedMarker=function(){var fe=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var le=new en(fe,fe._currentMarker,!0);de(le),le.defaultPrevented&&(ce=!0)}),!ce){var he=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(de){return de(new en(fe,he))})}}},Be.prototype.clear=function(){var fe=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Ze=new en(fe,void 0,!0);Ee(Ze),Ze.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var he=function(Ee){var Ze=de.markers[Ee];de.setCurrentMarker(de.markers[Ee]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(vt){return vt(new en(fe,Ze))})},de=this,le=this.markers.length-1;le>=0;le--)he(le);this.addUndoStep()}},Object.defineProperty(Be.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Be.prototype.showNotesEditor=function(){var fe;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=(fe=this._currentMarker.notes)!==null&&fe!==void 0?fe:"",this.overlayContainer.appendChild(this.notesArea))},Be.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)},Be.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Be.prototype.addUndoStep=function(){var fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),he=this.undoRedoManager.getLastUndoStep();if(!he||he.width===ce.width&&he.height===ce.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),de1&&this.panTo({x:fe.clientX,y:fe.clientY}))},Be.prototype.onPointerUp=function(fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(fe.clientX,fe.clientY)),this.isDragging=!1,this.addUndoStep()},Be.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Be.prototype.onKeyUp=function(fe){this._currentMarker===void 0||this.notesArea!==void 0||fe.key!=="Delete"&&fe.key!=="Backspace"||this.deleteSelectedMarker()},Be.prototype.clientToLocalCoordinates=function(fe,ce){var he=this.markerImage.getBoundingClientRect();return{x:(fe-he.left)/this.zoomLevel,y:(ce-he.top)/this.zoomLevel}},Be.prototype.onWindowResize=function(){this.positionUI()},Be.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"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()},Be.prototype.addLicenseKey=function(fe){De.addKey(fe)},Be.prototype.addEventListener=function(fe,ce){this.eventListeners.addEventListener(fe,ce)},Be.prototype.removeEventListener=function(fe,ce){this.eventListeners.removeEventListener(fe,ce)},Be.prototype.renderState=function(fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Be.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Be.prototype.focus=function(){var fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new wn(fe))}))},Be.prototype.blur=function(){var fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new wn(fe))}))},Be.instanceCounter=0,Be}()},95860:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return Qe}});var oe=se(87462),He=se(1413),Ne=se(4942),qe=se(97685),ve=se(45987),Le=se(94184),De=se.n(Le),xe=se(67294);function me(it){var Se=xe.useRef();Se.current=it;var Ce=xe.useCallback(function(){for(var Ve,Ue=arguments.length,wt=new Array(Ue),gt=0;gt0;if(Pn||Kn){var Ft=(0,xe.D7)(Zt),zt=(0,rt.Z)(Ft).length,Gt=(0,qe.Z)(Kn)==="object"?Kn.formatter({value:Ft,count:zt,maxLength:$t}):"".concat(zt).concat(Nt?" / ".concat($t):"");return De.createElement(De.Fragment,null,!!Kn&&De.createElement("span",{className:Le()("".concat(Je,"-show-count-suffix"),(0,Ne.Z)({},"".concat(Je,"-show-count-has-suffix"),!!Pn),Mt==null?void 0:Mt.count),style:(0,He.Z)({},cn==null?void 0:cn.count)},Gt),Pn)}return null};return De.createElement(Te,(0,oe.Z)({},Kt,{prefixCls:Je,className:pn,inputElement:Ee(),handleReset:le,value:(0,xe.D7)(Zt),focused:en,triggerFocus:Be,suffix:Ze(),disabled:Ut,classes:we,classNames:Mt,styles:cn}))}),ft=Ae,Yt=ft},87887:function(sn,nn,se){"use strict";se.d(nn,{D7:function(){return ve},He:function(){return oe},X3:function(){return He},nH:function(){return qe},rJ:function(){return Ne}});function oe(Le){return!!(Le.addonBefore||Le.addonAfter)}function He(Le){return!!(Le.prefix||Le.suffix||Le.allowClear)}function Ne(Le,De,xe,me){if(xe){var Te=De;if(De.type==="click"){var rt=Le.cloneNode(!0);Te=Object.create(De,{target:{value:rt},currentTarget:{value:rt}}),rt.value="",xe(Te);return}if(me!==void 0){Te=Object.create(De,{target:{value:Le},currentTarget:{value:Le}}),Le.value=me,xe(Te);return}xe(Te)}}function qe(Le,De){if(Le){Le.focus(De);var xe=De||{},me=xe.cursor;if(me){var Te=Le.value.length;switch(me){case"start":Le.setSelectionRange(0,0);break;case"end":Le.setSelectionRange(Te,Te);break;default:Le.setSelectionRange(0,Te)}}}}function ve(Le){return typeof Le=="undefined"||Le===null?"":String(Le)}},78595:function(sn,nn,se){"use strict";se.d(nn,{iz:function(){return ti},ck:function(){return Cr},BW:function(){return Jr},sN:function(){return Cr},Wd:function(){return on},ZP:function(){return We},Xl:function(){return Gt}});var oe=se(87462),He=se(4942),Ne=se(1413),qe=se(74902),ve=se(97685),Le=se(45987),De=se(94184),xe=se.n(De),me=se(67294),Te=se(48555);function rt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ie=rt()?me.useLayoutEffect:me.useEffect,Et=function(Ge,st){var pt=me.useRef(!0);Ie(function(){return Ge(pt.current)},st),Ie(function(){return pt.current=!1,function(){pt.current=!0}},[])},dt=function(Ge,st){Et(function(pt){if(!pt)return Ge()},st)},ct=Et,$e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ae=void 0;function ft(Ke,Ge){var st=Ke.prefixCls,pt=Ke.invalidate,Tt=Ke.item,hn=Ke.renderItem,xn=Ke.responsive,lr=Ke.responsiveDisabled,Lr=Ke.registerSize,tr=Ke.itemKey,Tn=Ke.className,kn=Ke.style,Fn=Ke.children,Qn=Ke.display,Ar=Ke.order,or=Ke.component,ir=or===void 0?"div":or,pr=(0,Le.Z)(Ke,$e),fr=xn&&!Qn;function Br(rn){Lr(tr,rn)}me.useEffect(function(){return function(){Br(null)}},[]);var Re=hn&&Tt!==Ae?hn(Tt):Fn,je;pt||(je={opacity:fr?0:1,height:fr?0:Ae,overflowY:fr?"hidden":Ae,order:xn?Ar:Ae,pointerEvents:fr?"none":Ae,position:fr?"absolute":Ae});var Rt={};fr&&(Rt["aria-hidden"]=!0);var yt=me.createElement(ir,(0,oe.Z)({className:xe()(!pt&&st,Tn),style:(0,Ne.Z)((0,Ne.Z)({},je),kn)},Rt,pr,{ref:Ge}),Re);return xn&&(yt=me.createElement(Te.Z,{onResize:function(En){var et=En.offsetWidth;Br(et)},disabled:lr},yt)),yt}var Yt=me.forwardRef(ft);Yt.displayName="Item";var Qe=Yt;function it(Ke){var Ge=me.useRef();Ge.current=Ke;var st=me.useCallback(function(){for(var pt,Tt=arguments.length,hn=new Array(Tt),xn=0;xn1&&arguments[1]!==void 0?arguments[1]:1;Ue+=1;var pt=Ue;function Tt(hn){if(hn===0)gt(pt),Ge();else{var xn=Ce(function(){Tt(hn-1)});wt.set(pt,xn)}}return Tt(st),pt};Lt.cancel=function(Ke){var Ge=wt.get(Ke);return gt(Ge),Ve(Ge)};var Je=Lt;function Ut(Ke){if(typeof MessageChannel=="undefined")Je(Ke);else{var Ge=new MessageChannel;Ge.port1.onmessage=function(){return Ke()},Ge.port2.postMessage(void 0)}}function It(){var Ke=me.useRef(null),Ge=function(pt){Ke.current||(Ke.current=[],Ut(function(){(0,Se.unstable_batchedUpdates)(function(){Ke.current.forEach(function(Tt){Tt()}),Ke.current=null})})),Ke.current.push(pt)};return Ge}function pn(Ke,Ge){var st=me.useState(Ge),pt=(0,ve.Z)(st,2),Tt=pt[0],hn=pt[1],xn=it(function(lr){Ke(function(){hn(lr)})});return[Tt,xn]}var $t=me.createContext(null),Pn=["component"],Kn=["className"],Yn=["className"],Xe=function(Ge,st){var pt=me.useContext($t);if(!pt){var Tt=Ge.component,hn=Tt===void 0?"div":Tt,xn=(0,Le.Z)(Ge,Pn);return me.createElement(hn,(0,oe.Z)({},xn,{ref:st}))}var lr=pt.className,Lr=(0,Le.Z)(pt,Kn),tr=Ge.className,Tn=(0,Le.Z)(Ge,Yn);return me.createElement($t.Provider,{value:null},me.createElement(Qe,(0,oe.Z)({ref:st,className:xe()(lr,tr)},Lr,Tn)))},we=me.forwardRef(Xe);we.displayName="RawItem";var Mt=we,cn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Kt="responsive",tt="invalidate";function ut(Ke){return"+ ".concat(Ke.length," ...")}function Zt(Ke,Ge){var st=Ke.prefixCls,pt=st===void 0?"rc-overflow":st,Tt=Ke.data,hn=Tt===void 0?[]:Tt,xn=Ke.renderItem,lr=Ke.renderRawItem,Lr=Ke.itemKey,tr=Ke.itemWidth,Tn=tr===void 0?10:tr,kn=Ke.ssr,Fn=Ke.style,Qn=Ke.className,Ar=Ke.maxCount,or=Ke.renderRest,ir=Ke.renderRawRest,pr=Ke.suffix,fr=Ke.component,Br=fr===void 0?"div":fr,Re=Ke.itemComponent,je=Ke.onVisibleChange,Rt=(0,Le.Z)(Ke,cn),yt=kn==="full",rn=It(),En=pn(rn,null),et=(0,ve.Z)(En,2),at=et[0],ot=et[1],St=at||0,ln=pn(rn,new Map),gn=(0,ve.Z)(ln,2),Xt=gn[0],fn=gn[1],Zn=pn(rn,0),yr=(0,ve.Z)(Zn,2),Gn=yr[0],Bn=yr[1],qn=pn(rn,0),vr=(0,ve.Z)(qn,2),Rr=vr[0],hr=vr[1],Xn=pn(rn,0),Kr=(0,ve.Z)(Xn,2),Ur=Kr[0],fi=Kr[1],Ci=(0,me.useState)(null),Di=(0,ve.Z)(Ci,2),$i=Di[0],ea=Di[1],yi=(0,me.useState)(null),Ri=(0,ve.Z)(yi,2),ii=Ri[0],ci=Ri[1],Ei=me.useMemo(function(){return ii===null&&yt?Number.MAX_SAFE_INTEGER:ii||0},[ii,at]),Xi=(0,me.useState)(!1),Pa=(0,ve.Z)(Xi,2),wa=Pa[0],ua=Pa[1],ra="".concat(pt,"-item"),ta=Math.max(Gn,Rr),Ti=Ar===Kt,Sa=hn.length&&Ti,Ni=Ar===tt,li=Sa||typeof Ar=="number"&&hn.length>Ar,Ui=(0,me.useMemo)(function(){var zi=hn;return Sa?at===null&&yt?zi=hn:zi=hn.slice(0,Math.min(hn.length,St/Tn)):typeof Ar=="number"&&(zi=hn.slice(0,Ar)),zi},[hn,Tn,at,Ar,Sa]),da=(0,me.useMemo)(function(){return Sa?hn.slice(Ei+1):hn.slice(Ui.length)},[hn,Ui,Sa,Ei]),Ji=(0,me.useCallback)(function(zi,Gi){var fa;return typeof Lr=="function"?Lr(zi):(fa=Lr&&(zi==null?void 0:zi[Lr]))!==null&&fa!==void 0?fa:Gi},[Lr]),oa=(0,me.useCallback)(xn||function(zi){return zi},[xn]);function Mi(zi,Gi,fa){ii===zi&&(Gi===void 0||Gi===$i)||(ci(zi),fa||(ua(ziSt){Mi(Ma-1,zi-Ka-Ur+Rr);break}}pr&&La(0)+Ur>St&&ea(null)}},[St,Xt,Rr,Ur,Ji,Ui]);var Ua=wa&&!!da.length,pa={};$i!==null&&Sa&&(pa={position:"absolute",left:$i,top:0});var Ba={prefixCls:ra,responsive:Sa,component:Re,invalidate:Ni},qa=lr?function(zi,Gi){var fa=Ji(zi,Gi);return me.createElement($t.Provider,{key:fa,value:(0,Ne.Z)((0,Ne.Z)({},Ba),{},{order:Gi,item:zi,itemKey:fa,registerSize:Ca,display:Gi<=Ei})},lr(zi,Gi))}:function(zi,Gi){var fa=Ji(zi,Gi);return me.createElement(Qe,(0,oe.Z)({},Ba,{order:Gi,key:fa,item:zi,renderItem:oa,itemKey:fa,registerSize:Ca,display:Gi<=Ei}))},Xa,so={order:Ua?Ei:Number.MAX_SAFE_INTEGER,className:"".concat(ra,"-rest"),registerSize:ha,display:Ua};if(ir)ir&&(Xa=me.createElement($t.Provider,{value:(0,Ne.Z)((0,Ne.Z)({},Ba),so)},ir(da)));else{var Ha=or||ut;Xa=me.createElement(Qe,(0,oe.Z)({},Ba,so),typeof Ha=="function"?Ha(da):Ha)}var Aa=me.createElement(Br,(0,oe.Z)({className:xe()(!Ni&&pt,Qn),style:Fn,ref:Ge},Rt),Ui.map(qa),li?Xa:null,pr&&me.createElement(Qe,(0,oe.Z)({},Ba,{responsive:Ti,responsiveDisabled:!Sa,order:Ei,className:"".concat(ra,"-suffix"),registerSize:Ea,display:!0,style:pa}),pr));return Ti&&(Aa=me.createElement(Te.Z,{onResize:ma,disabled:!Sa},Aa)),Aa}var Wn=me.forwardRef(Zt);Wn.displayName="Overflow",Wn.Item=Mt,Wn.RESPONSIVE=Kt,Wn.INVALIDATE=tt;var wn=Wn,Qt=wn,en=se(21770),Dn=se(80334),vn=se(91881),Be=me.createContext(null);function fe(Ke,Ge){return Ke===void 0?null:"".concat(Ke,"-").concat(Ge)}function ce(Ke){var Ge=me.useContext(Be);return fe(Ge,Ke)}var he=se(56982),de=["children","locked"],le=me.createContext(null);function Ee(Ke,Ge){var st=(0,Ne.Z)({},Ke);return Object.keys(Ge).forEach(function(pt){var Tt=Ge[pt];Tt!==void 0&&(st[pt]=Tt)}),st}function Ze(Ke){var Ge=Ke.children,st=Ke.locked,pt=(0,Le.Z)(Ke,de),Tt=me.useContext(le),hn=(0,he.Z)(function(){return Ee(Tt,pt)},[Tt,pt],function(xn,lr){return!st&&(xn[0]!==lr[0]||!(0,vn.Z)(xn[1],lr[1],!0))});return me.createElement(le.Provider,{value:hn},Ge)}var vt=[],Nt=me.createContext(null);function Ft(){return me.useContext(Nt)}var zt=me.createContext(vt);function Gt(Ke){var Ge=me.useContext(zt);return me.useMemo(function(){return Ke!==void 0?[].concat((0,qe.Z)(Ge),[Ke]):Ge},[Ge,Ke])}var $n=me.createContext(null),mr=me.createContext({}),_t=mr,bn=se(15105),ur=se(75164),Tr=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var Ge=Ke.getBBox(),st=Ge.width,pt=Ge.height;if(st||pt)return!0}if(Ke.getBoundingClientRect){var Tt=Ke.getBoundingClientRect(),hn=Tt.width,xn=Tt.height;if(hn||xn)return!0}}return!1};function lt(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Tr(Ke)){var st=Ke.nodeName.toLowerCase(),pt=["input","select","textarea","button"].includes(st)||Ke.isContentEditable||st==="a"&&!!Ke.getAttribute("href"),Tt=Ke.getAttribute("tabindex"),hn=Number(Tt),xn=null;return Tt&&!Number.isNaN(hn)?xn=hn:pt&&xn===null&&(xn=0),pt&&Ke.disabled&&(xn=null),xn!==null&&(xn>=0||Ge&&xn<0)}return!1}function Jt(Ke){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=(0,qe.Z)(Ke.querySelectorAll("*")).filter(function(pt){return lt(pt,Ge)});return lt(Ke,Ge)&&st.unshift(Ke),st}var Hn=null;function er(){Hn=document.activeElement}function nr(){Hn=null}function Er(){if(Hn)try{Hn.focus()}catch(Ke){}}function Pr(Ke,Ge){if(Ge.keyCode===9){var st=Jt(Ke),pt=st[Ge.shiftKey?0:st.length-1],Tt=pt===document.activeElement||Ke===document.activeElement;if(Tt){var hn=st[Ge.shiftKey?st.length-1:0];hn.focus(),Ge.preventDefault()}}}var Ir=bn.Z.LEFT,zr=bn.Z.RIGHT,Wr=bn.Z.UP,gr=bn.Z.DOWN,Nr=bn.Z.ENTER,Bi=bn.Z.ESC,Ai=bn.Z.HOME,Fi=bn.Z.END,$r=[Wr,gr,Ir,zr];function Ct(Ke,Ge,st,pt){var Tt,hn,xn,lr,Lr="prev",tr="next",Tn="children",kn="parent";if(Ke==="inline"&&pt===Nr)return{inlineTrigger:!0};var Fn=(Tt={},(0,He.Z)(Tt,Wr,Lr),(0,He.Z)(Tt,gr,tr),Tt),Qn=(hn={},(0,He.Z)(hn,Ir,st?tr:Lr),(0,He.Z)(hn,zr,st?Lr:tr),(0,He.Z)(hn,gr,Tn),(0,He.Z)(hn,Nr,Tn),hn),Ar=(xn={},(0,He.Z)(xn,Wr,Lr),(0,He.Z)(xn,gr,tr),(0,He.Z)(xn,Nr,Tn),(0,He.Z)(xn,Bi,kn),(0,He.Z)(xn,Ir,st?Tn:kn),(0,He.Z)(xn,zr,st?kn:Tn),xn),or={inline:Fn,horizontal:Qn,vertical:Ar,inlineSub:Fn,horizontalSub:Ar,verticalSub:Ar},ir=(lr=or["".concat(Ke).concat(Ge?"":"Sub")])===null||lr===void 0?void 0:lr[pt];switch(ir){case Lr:return{offset:-1,sibling:!0};case tr:return{offset:1,sibling:!0};case kn:return{offset:-1,sibling:!1};case Tn:return{offset:1,sibling:!1};default:return null}}function dn(Ke){for(var Ge=Ke;Ge;){if(Ge.getAttribute("data-menu-list"))return Ge;Ge=Ge.parentElement}return null}function On(Ke,Ge){for(var st=Ke||document.activeElement;st;){if(Ge.has(st))return st;st=st.parentElement}return null}function Nn(Ke,Ge){var st=Jt(Ke,!0);return st.filter(function(pt){return Ge.has(pt)})}function Jn(Ke,Ge,st){var pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ke)return null;var Tt=Nn(Ke,Ge),hn=Tt.length,xn=Tt.findIndex(function(lr){return st===lr});return pt<0?xn===-1?xn=hn-1:xn-=1:pt>0&&(xn+=1),xn=(xn+hn)%hn,Tt[xn]}function rr(Ke,Ge,st,pt,Tt,hn,xn,lr,Lr,tr){var Tn=me.useRef(),kn=me.useRef();kn.current=Ge;var Fn=function(){ur.Z.cancel(Tn.current)};return me.useEffect(function(){return function(){Fn()}},[]),function(Qn){var Ar=Qn.which;if([].concat($r,[Nr,Bi,Ai,Fi]).includes(Ar)){var or,ir,pr,fr=function(){or=new Set,ir=new Map,pr=new Map;var gn=hn();return gn.forEach(function(Xt){var fn=document.querySelector("[data-menu-id='".concat(fe(pt,Xt),"']"));fn&&(or.add(fn),pr.set(fn,Xt),ir.set(Xt,fn))}),or};fr();var Br=ir.get(Ge),Re=On(Br,or),je=pr.get(Re),Rt=Ct(Ke,xn(je,!0).length===1,st,Ar);if(!Rt&&Ar!==Ai&&Ar!==Fi)return;($r.includes(Ar)||[Ai,Fi].includes(Ar))&&Qn.preventDefault();var yt=function(gn){if(gn){var Xt=gn,fn=gn.querySelector("a");fn!=null&&fn.getAttribute("href")&&(Xt=fn);var Zn=pr.get(gn);lr(Zn),Fn(),Tn.current=(0,ur.Z)(function(){kn.current===Zn&&Xt.focus()})}};if([Ai,Fi].includes(Ar)||Rt.sibling||!Re){var rn;!Re||Ke==="inline"?rn=Tt.current:rn=dn(Re);var En,et=Nn(rn,or);Ar===Ai?En=et[0]:Ar===Fi?En=et[et.length-1]:En=Jn(rn,or,Re,Rt.offset),yt(En)}else if(Rt.inlineTrigger)Lr(je);else if(Rt.offset>0)Lr(je,!0),Fn(),Tn.current=(0,ur.Z)(function(){fr();var ln=Re.getAttribute("aria-controls"),gn=document.getElementById(ln),Xt=Jn(gn,or);yt(Xt)},5);else if(Rt.offset<0){var at=xn(je,!0),ot=at[at.length-2],St=ir.get(ot);Lr(ot,!1),yt(St)}}tr==null||tr(Qn)}}function wr(Ke){Promise.resolve().then(Ke)}var _n="__RC_UTIL_PATH_SPLIT__",Ye=function(Ge){return Ge.join(_n)},mt=function(Ge){return Ge.split(_n)},Ht="rc-menu-more";function qt(){var Ke=me.useState({}),Ge=(0,ve.Z)(Ke,2),st=Ge[1],pt=(0,me.useRef)(new Map),Tt=(0,me.useRef)(new Map),hn=me.useState([]),xn=(0,ve.Z)(hn,2),lr=xn[0],Lr=xn[1],tr=(0,me.useRef)(0),Tn=(0,me.useRef)(!1),kn=function(){Tn.current||st({})},Fn=(0,me.useCallback)(function(Br,Re){var je=Ye(Re);Tt.current.set(je,Br),pt.current.set(Br,je),tr.current+=1;var Rt=tr.current;wr(function(){Rt===tr.current&&kn()})},[]),Qn=(0,me.useCallback)(function(Br,Re){var je=Ye(Re);Tt.current.delete(je),pt.current.delete(Br)},[]),Ar=(0,me.useCallback)(function(Br){Lr(Br)},[]),or=(0,me.useCallback)(function(Br,Re){var je=pt.current.get(Br)||"",Rt=mt(je);return Re&&lr.includes(Rt[0])&&Rt.unshift(Ht),Rt},[lr]),ir=(0,me.useCallback)(function(Br,Re){return Br.some(function(je){var Rt=or(je,!0);return Rt.includes(Re)})},[or]),pr=function(){var Re=(0,qe.Z)(pt.current.keys());return lr.length&&Re.push(Ht),Re},fr=(0,me.useCallback)(function(Br){var Re="".concat(pt.current.get(Br)).concat(_n),je=new Set;return(0,qe.Z)(Tt.current.keys()).forEach(function(Rt){Rt.startsWith(Re)&&je.add(Tt.current.get(Rt))}),je},[]);return me.useEffect(function(){return function(){Tn.current=!0}},[]),{registerPath:Fn,unregisterPath:Qn,refreshOverflowKeys:Ar,isSubPathKey:ir,getKeyPath:or,getKeys:pr,getSubPathKeys:fr}}function _e(Ke){var Ge=me.useRef(Ke);Ge.current=Ke;var st=me.useCallback(function(){for(var pt,Tt=arguments.length,hn=new Array(Tt),xn=0;xn1&&(fr.motionAppear=!1);var Br=fr.onVisibleChanged;return fr.onVisibleChanged=function(Re){return!Fn.current&&!Re&&ir(!0),Br==null?void 0:Br(Re)},or?null:me.createElement(Ze,{mode:hn,locked:!Fn.current},me.createElement(ca.Z,(0,oe.Z)({visible:pr},fr,{forceRender:Lr,removeOnLeave:!1,leavedClassName:"".concat(lr,"-hidden")}),function(Re){var je=Re.className,Rt=Re.style;return me.createElement(Hi,{id:Ge,className:je,style:Rt},Tt)}))}var oi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ot=["active"],At=function(Ge){var st,pt=Ge.style,Tt=Ge.className,hn=Ge.title,xn=Ge.eventKey,lr=Ge.warnKey,Lr=Ge.disabled,tr=Ge.internalPopupClose,Tn=Ge.children,kn=Ge.itemIcon,Fn=Ge.expandIcon,Qn=Ge.popupClassName,Ar=Ge.popupOffset,or=Ge.popupStyle,ir=Ge.onClick,pr=Ge.onMouseEnter,fr=Ge.onMouseLeave,Br=Ge.onTitleClick,Re=Ge.onTitleMouseEnter,je=Ge.onTitleMouseLeave,Rt=(0,Le.Z)(Ge,oi),yt=ce(xn),rn=me.useContext(le),En=rn.prefixCls,et=rn.mode,at=rn.openKeys,ot=rn.disabled,St=rn.overflowDisabled,ln=rn.activeKey,gn=rn.selectedKeys,Xt=rn.itemIcon,fn=rn.expandIcon,Zn=rn.onItemClick,yr=rn.onOpenChange,Gn=rn.onActive,Bn=me.useContext(_t),qn=Bn._internalRenderSubMenuItem,vr=me.useContext($n),Rr=vr.isSubPathKey,hr=Gt(),Xn="".concat(En,"-submenu"),Kr=ot||Lr,Ur=me.useRef(),fi=me.useRef(),Ci=kn!=null?kn:Xt,Di=Fn!=null?Fn:fn,$i=at.includes(xn),ea=!St&&$i,yi=Rr(gn,xn),Ri=xr(xn,Kr,Re,je),ii=Ri.active,ci=(0,Le.Z)(Ri,Ot),Ei=me.useState(!1),Xi=(0,ve.Z)(Ei,2),Pa=Xi[0],wa=Xi[1],ua=function(Ea){Kr||wa(Ea)},ra=function(Ea){ua(!0),pr==null||pr({key:xn,domEvent:Ea})},ta=function(Ea){ua(!1),fr==null||fr({key:xn,domEvent:Ea})},Ti=me.useMemo(function(){return ii||(et!=="inline"?Pa||Rr([ln],xn):!1)},[et,ii,ln,Pa,xn,Rr]),Sa=Sr(hr.length),Ni=function(Ea){Kr||(Br==null||Br({key:xn,domEvent:Ea}),et==="inline"&&yr(xn,!$i))},li=_e(function(ha){ir==null||ir(Dt(ha)),Zn(ha)}),Ui=function(Ea){et!=="inline"&&yr(xn,Ea)},da=function(){Gn(xn)},Ji=yt&&"".concat(yt,"-popup"),oa=me.createElement("div",(0,oe.Z)({role:"menuitem",style:Sa,className:"".concat(Xn,"-title"),tabIndex:Kr?null:-1,ref:Ur,title:typeof hn=="string"?hn:null,"data-menu-id":St&&yt?null:yt,"aria-expanded":ea,"aria-haspopup":!0,"aria-controls":Ji,"aria-disabled":Kr,onClick:Ni,onFocus:da},ci),hn,me.createElement(bt,{icon:et!=="horizontal"?Di:void 0,props:(0,Ne.Z)((0,Ne.Z)({},Ge),{},{isOpen:ea,isSubMenu:!0})},me.createElement("i",{className:"".concat(Xn,"-arrow")}))),Mi=me.useRef(et);if(et!=="inline"&&hr.length>1?Mi.current="vertical":Mi.current=et,!St){var ma=Mi.current;oa=me.createElement(Zi,{mode:ma,prefixCls:Xn,visible:!tr&&ea&&et!=="inline",popupClassName:Qn,popupOffset:Ar,popupStyle:or,popup:me.createElement(Ze,{mode:ma==="horizontal"?"vertical":ma},me.createElement(Hi,{id:Ji,ref:fi},Tn)),disabled:Kr,onVisibleChange:Ui},oa)}var Ca=me.createElement(Qt.Item,(0,oe.Z)({role:"none"},Rt,{component:"li",style:pt,className:xe()(Xn,"".concat(Xn,"-").concat(et),Tt,(st={},(0,He.Z)(st,"".concat(Xn,"-open"),ea),(0,He.Z)(st,"".concat(Xn,"-active"),Ti),(0,He.Z)(st,"".concat(Xn,"-selected"),yi),(0,He.Z)(st,"".concat(Xn,"-disabled"),Kr),st)),onMouseEnter:ra,onMouseLeave:ta}),oa,!St&&me.createElement(na,{id:Ji,open:ea,keyPath:hr},Tn));return qn&&(Ca=qn(Ca,Ge,{selected:yi,active:Ti,open:ea,disabled:Kr})),me.createElement(Ze,{onItemClick:li,mode:et==="horizontal"?"vertical":et,itemIcon:Ci,expandIcon:Di},Ca)};function on(Ke){var Ge=Ke.eventKey,st=Ke.children,pt=Gt(Ge),Tt=vi(st,pt),hn=Ft();me.useEffect(function(){if(hn)return hn.registerPath(Ge,pt),function(){hn.unregisterPath(Ge,pt)}},[pt]);var xn;return hn?xn=Tt:xn=me.createElement(At,Ke,Tt),me.createElement(zt.Provider,{value:pt},xn)}var Mn=se(71002),jn=["className","title","eventKey","children"],Mr=["children"],_r=function(Ge){var st=Ge.className,pt=Ge.title,Tt=Ge.eventKey,hn=Ge.children,xn=(0,Le.Z)(Ge,jn),lr=me.useContext(le),Lr=lr.prefixCls,tr="".concat(Lr,"-item-group");return me.createElement("li",(0,oe.Z)({role:"presentation"},xn,{onClick:function(kn){return kn.stopPropagation()},className:xe()(tr,st)}),me.createElement("div",{role:"presentation",className:"".concat(tr,"-title"),title:typeof pt=="string"?pt:void 0},pt),me.createElement("ul",{role:"group",className:"".concat(tr,"-list")},hn))};function Jr(Ke){var Ge=Ke.children,st=(0,Le.Z)(Ke,Mr),pt=Gt(st.eventKey),Tt=vi(Ge,pt),hn=Ft();return hn?Tt:me.createElement(_r,(0,dr.Z)(st,["warnKey"]),Tt)}function ti(Ke){var Ge=Ke.className,st=Ke.style,pt=me.useContext(le),Tt=pt.prefixCls,hn=Ft();return hn?null:me.createElement("li",{role:"separator",className:xe()("".concat(Tt,"-item-divider"),Ge),style:st})}var Yr=["label","children","key","type"];function si(Ke){return(Ke||[]).map(function(Ge,st){if(Ge&&(0,Mn.Z)(Ge)==="object"){var pt=Ge,Tt=pt.label,hn=pt.children,xn=pt.key,lr=pt.type,Lr=(0,Le.Z)(pt,Yr),tr=xn!=null?xn:"tmp-".concat(st);return hn||lr==="group"?lr==="group"?me.createElement(Jr,(0,oe.Z)({key:tr},Lr,{title:Tt}),si(hn)):me.createElement(on,(0,oe.Z)({key:tr},Lr,{title:Tt}),si(hn)):lr==="divider"?me.createElement(ti,(0,oe.Z)({key:tr},Lr)):me.createElement(Cr,(0,oe.Z)({key:tr},Lr),Tt)}return null}).filter(function(Ge){return Ge})}function wi(Ke,Ge,st){var pt=Ke;return Ge&&(pt=si(Ge)),vi(pt,st)}var Hr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],gi=[],Ii=me.forwardRef(function(Ke,Ge){var st,pt,Tt=Ke,hn=Tt.prefixCls,xn=hn===void 0?"rc-menu":hn,lr=Tt.rootClassName,Lr=Tt.style,tr=Tt.className,Tn=Tt.tabIndex,kn=Tn===void 0?0:Tn,Fn=Tt.items,Qn=Tt.children,Ar=Tt.direction,or=Tt.id,ir=Tt.mode,pr=ir===void 0?"vertical":ir,fr=Tt.inlineCollapsed,Br=Tt.disabled,Re=Tt.disabledOverflow,je=Tt.subMenuOpenDelay,Rt=je===void 0?.1:je,yt=Tt.subMenuCloseDelay,rn=yt===void 0?.1:yt,En=Tt.forceSubMenuRender,et=Tt.defaultOpenKeys,at=Tt.openKeys,ot=Tt.activeKey,St=Tt.defaultActiveFirst,ln=Tt.selectable,gn=ln===void 0?!0:ln,Xt=Tt.multiple,fn=Xt===void 0?!1:Xt,Zn=Tt.defaultSelectedKeys,yr=Tt.selectedKeys,Gn=Tt.onSelect,Bn=Tt.onDeselect,qn=Tt.inlineIndent,vr=qn===void 0?24:qn,Rr=Tt.motion,hr=Tt.defaultMotions,Xn=Tt.triggerSubMenuAction,Kr=Xn===void 0?"hover":Xn,Ur=Tt.builtinPlacements,fi=Tt.itemIcon,Ci=Tt.expandIcon,Di=Tt.overflowedIndicator,$i=Di===void 0?"...":Di,ea=Tt.overflowedIndicatorPopupClassName,yi=Tt.getPopupContainer,Ri=Tt.onClick,ii=Tt.onOpenChange,ci=Tt.onKeyDown,Ei=Tt.openAnimation,Xi=Tt.openTransitionName,Pa=Tt._internalRenderMenuItem,wa=Tt._internalRenderSubMenuItem,ua=(0,Le.Z)(Tt,Hr),ra=me.useMemo(function(){return wi(Qn,Fn,gi)},[Qn,Fn]),ta=me.useState(!1),Ti=(0,ve.Z)(ta,2),Sa=Ti[0],Ni=Ti[1],li=me.useRef(),Ui=Pt(or),da=Ar==="rtl",Ji=(0,en.Z)(et,{value:at,postState:function(Ia){return Ia||gi}}),oa=(0,ve.Z)(Ji,2),Mi=oa[0],ma=oa[1],Ca=function(Ia){var Ya=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function go(){ma(Ia),ii==null||ii(Ia)}Ya?(0,Se.flushSync)(go):go()},ha=me.useState(Mi),Ea=(0,ve.Z)(ha,2),La=Ea[0],Ua=Ea[1],pa=me.useRef(!1),Ba=me.useMemo(function(){return(pr==="inline"||pr==="vertical")&&fr?["vertical",fr]:[pr,!1]},[pr,fr]),qa=(0,ve.Z)(Ba,2),Xa=qa[0],so=qa[1],Ha=Xa==="inline",Aa=me.useState(Xa),zi=(0,ve.Z)(Aa,2),Gi=zi[0],fa=zi[1],Ma=me.useState(so),Ka=(0,ve.Z)(Ma,2),io=Ka[0],ho=Ka[1];me.useEffect(function(){fa(Xa),ho(so),pa.current&&(Ha?ma(La):Ca(gi))},[Xa,so]);var Io=me.useState(0),No=(0,ve.Z)(Io,2),lo=No[0],Bo=No[1],ia=lo>=ra.length-1||Gi!=="horizontal"||Re;me.useEffect(function(){Ha&&Ua(Mi)},[Mi]),me.useEffect(function(){return pa.current=!0,function(){pa.current=!1}},[]);var _i=qt(),Oa=_i.registerPath,Da=_i.unregisterPath,co=_i.refreshOverflowKeys,ao=_i.isSubPathKey,hs=_i.getKeyPath,$o=_i.getKeys,ps=_i.getSubPathKeys,sa=me.useMemo(function(){return{registerPath:Oa,unregisterPath:Da}},[Oa,Da]),Gr=me.useMemo(function(){return{isSubPathKey:ao}},[ao]);me.useEffect(function(){co(ia?gi:ra.slice(lo+1).map(function(oo){return oo.key}))},[lo,ia]);var Pi=(0,en.Z)(ot||St&&((st=ra[0])===null||st===void 0?void 0:st.key),{value:ot}),Oi=(0,ve.Z)(Pi,2),Ki=Oi[0],ja=Oi[1],Ga=_e(function(oo){ja(oo)}),Ho=_e(function(){ja(void 0)});(0,me.useImperativeHandle)(Ge,function(){return{list:li.current,focus:function(Ia){var Ya,go=Ki!=null?Ki:(Ya=ra.find(function(xs){return!xs.props.disabled}))===null||Ya===void 0?void 0:Ya.key;if(go){var yo,Ko,wo;(yo=li.current)===null||yo===void 0||(Ko=yo.querySelector("li[data-menu-id='".concat(fe(Ui,go),"']")))===null||Ko===void 0||(wo=Ko.focus)===null||wo===void 0||wo.call(Ko,Ia)}}}});var Zo=(0,en.Z)(Zn||[],{value:yr,postState:function(Ia){return Array.isArray(Ia)?Ia:Ia==null?gi:[Ia]}}),ls=(0,ve.Z)(Zo,2),ya=ls[0],Ro=ls[1],cs=function(Ia){if(gn){var Ya=Ia.key,go=ya.includes(Ya),yo;fn?go?yo=ya.filter(function(wo){return wo!==Ya}):yo=[].concat((0,qe.Z)(ya),[Ya]):yo=[Ya],Ro(yo);var Ko=(0,Ne.Z)((0,Ne.Z)({},Ia),{},{selectedKeys:yo});go?Bn==null||Bn(Ko):Gn==null||Gn(Ko)}!fn&&Mi.length&&Gi!=="inline"&&Ca(gi)},ul=_e(function(oo){Ri==null||Ri(Dt(oo)),cs(oo)}),Bs=_e(function(oo,Ia){var Ya=Mi.filter(function(yo){return yo!==oo});if(Ia)Ya.push(oo);else if(Gi!=="inline"){var go=ps(oo);Ya=Ya.filter(function(yo){return!go.has(yo)})}(0,vn.Z)(Mi,Ya,!0)||Ca(Ya,!0)}),ms=function(Ia,Ya){var go=Ya!=null?Ya:!Mi.includes(Ia);Bs(Ia,go)},Wo=rr(Gi,Ki,da,Ui,li,$o,hs,ja,ms,ci);me.useEffect(function(){Ni(!0)},[]);var Ds=me.useMemo(function(){return{_internalRenderMenuItem:Pa,_internalRenderSubMenuItem:wa}},[Pa,wa]),Ts=Gi!=="horizontal"||Re?ra:ra.map(function(oo,Ia){return me.createElement(Ze,{key:oo.key,overflowDisabled:Ia>lo},oo)}),Js=me.createElement(Qt,(0,oe.Z)({id:or,ref:li,prefixCls:"".concat(xn,"-overflow"),component:"ul",itemComponent:Cr,className:xe()(xn,"".concat(xn,"-root"),"".concat(xn,"-").concat(Gi),tr,(pt={},(0,He.Z)(pt,"".concat(xn,"-inline-collapsed"),io),(0,He.Z)(pt,"".concat(xn,"-rtl"),da),pt),lr),dir:Ar,style:Lr,role:"menu",tabIndex:kn,data:Ts,renderRawItem:function(Ia){return Ia},renderRawRest:function(Ia){var Ya=Ia.length,go=Ya?ra.slice(-Ya):null;return me.createElement(on,{eventKey:Ht,title:$i,disabled:ia,internalPopupClose:Ya===0,popupClassName:ea},go)},maxCount:Gi!=="horizontal"||Re?Qt.INVALIDATE:Qt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ia){Bo(Ia)},onKeyDown:Wo},ua));return me.createElement(_t.Provider,{value:Ds},me.createElement(Be.Provider,{value:Ui},me.createElement(Ze,{prefixCls:xn,rootClassName:lr,mode:Gi,openKeys:Mi,rtl:da,disabled:Br,motion:Sa?Rr:null,defaultMotions:Sa?hr:null,activeKey:Ki,onActive:Ga,onInactive:Ho,selectedKeys:ya,inlineIndent:vr,subMenuOpenDelay:Rt,subMenuCloseDelay:rn,forceSubMenuRender:En,builtinPlacements:Ur,triggerSubMenuAction:Kr,getPopupContainer:yi,itemIcon:fi,expandIcon:Ci,onItemClick:ul,onOpenChange:Bs},me.createElement($n.Provider,{value:Gr},Js),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(Nt.Provider,{value:sa},ra)))))}),Si=Ii,Pe=Si;Pe.Item=Cr,Pe.SubMenu=on,Pe.ItemGroup=Jr,Pe.Divider=ti;var We=Pe},66680:function(sn,nn,se){"use strict";se.d(nn,{Z:function(){return He}});var oe=se(67294);function He(Ne){var qe=oe.useRef();qe.current=Ne;var ve=oe.useCallback(function(){for(var Le,De=arguments.length,xe=new Array(De),me=0;me2&&arguments[2]!==void 0?arguments[2]:!1,De=new Set;function xe(me,Te){var rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ie=De.has(me);if((0,He.ZP)(!Ie,"Warning: There may be circular references"),Ie)return!1;if(me===Te)return!0;if(Le&&rt>1)return!1;De.add(me);var Et=rt+1;if(Array.isArray(me)){if(!Array.isArray(Te)||me.length!==Te.length)return!1;for(var dt=0;dt