(self.webpackChunk=self.webpackChunk||[]).push([[4715],{40001:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},26227:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},41464:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},73331:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},15277:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},33853:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},61485:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},47472:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},87395:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(60499),it=re(59301),ve={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=ve,be=re(7657),Ie=function(he,Xe){return it.createElement(be.Z,(0,z.Z)({},he,{ref:Xe,icon:Qe}))},Te=it.forwardRef(Ie),qe=Te},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(fn,_t){"use strict";_t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(fn,_t){"use strict";_t.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var fn={},_t="5.0",re={},z=null,it=!1,ve=!1,Qe=null,be=!1,Ie=null,Te=null,qe=0;qe4?parseFloat(me):5};fn.setHTML5Codebase=function(me,Be){Te=me,Ct(me,Be)},fn.setJavaCodebase=fn.setJavaCodebaseVersion=fn.isCompiledInstalled=fn.setPreCompiledScriptPath=fn.setPreCompiledResourcePath=function(){},fn.setHTML5CodebaseVersion=function(me,Be){var Re=parseFloat(me);if(Re!==NaN&&Re<5){console.log("The GeoGebra HTML5 codebase version "+Re+" is deprecated. Using version latest instead.");return}Ie=me,fe(me,Be)},fn.getHTML5CodebaseVersion=function(){return Je},fn.getParameters=function(){return re},fn.setFontsCSSURL=function(me){zt=me},fn.setGiacJSURL=function(me){},fn.setJNLPFile=function(me){he=me},fn.setJNLPBaseDir=function(me){},fn.inject=function(){function me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",Re=re.id,Dt,Et=!1,jt=0;jt=5)return!0;var me=fn.getAppletObject();return me&&typeof me.recalculateEnvironments=="function"?(me.recalculateEnvironments(),!0):!1},fn.startAnimation=function(){var me=fn.getAppletObject();return me&&typeof me.startAnimation=="function"?(me.startAnimation(),!0):!1},fn.stopAnimation=function(){var me=fn.getAppletObject();return me&&typeof me.stopAnimation=="function"?(me.stopAnimation(),!0):!1},fn.getAppletObject=function(){var me=re.id!==void 0?re.id:"ggbApplet";return window[me]},fn.resize=function(){};var xt=function(me,Be,Re){var Dt=document.createElement("param");Dt.setAttribute("name",Be),Dt.setAttribute("value",Re),me.appendChild(Dt)},Me=function(me){return me&&me!=="false"},_e=function(me,Be,Re){pt(Je)<=4.2&&(Re=!0);var Dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Je||ggbHTML5LoadedCodebaseIsWebSimple&&!Ge)&&(Dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var jt=Be.width,Ne=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(pt(Je)<=4.4)Me(Be.showToolBar)&&(Be.height-=7),Me(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&Me(Be.showToolBar)&&(Be.width=605,jt=605);else{var Vt=100;(Me(Be.showToolBar)||Me(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),Vt=Me(Be.showMenuBar)?245:155),jt=5?(Be.appletOnLoad=function(Ot){var vt=me.querySelector(".ggb_preview");vt&&vt.parentNode.removeChild(vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Ot)},ee||te.appendChild(oe)):Et.appendChild(oe),te.appendChild(Et),ee||me.appendChild(te),setTimeout(function(){fn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Et),me.appendChild(se),Be.appletOnLoad=function(Ot){fn.resize(),ae(Ot)}}function ne(Ot,vt){vt&&typeof vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ot,vt.appletOnLoad):renderGGBElement(Ot),Ut("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vt)}function pe(Ot,vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ot,params:vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Jt){ne(Jt.article,Jt.params)}),html5AppletsToProcess=null)},pt(Je)<5&&(Ot.className+=" geogebraweb")):ne(Ot,vt)}if(Dt){scriptLoadStarted=!0;for(var Ce=0;Ce0?(yt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):_e(yt,Be,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Mt=Dt,_e(me,Be,!1);if(!window.GGBT_wsf_view)for(Ne=0;Neme/4*3&&(yt=me/4*3),ae=yt/5.8,Vt.setAttribute("src",wt),Vt.setAttribute("width",yt),Vt.setAttribute("height",ae);var te=(me-yt)/2,ee=(Be-ae)/2;Vt.style.left=te+"px",Vt.style.top=ee+"px",Et.appendChild(Vt)}}return Et.appendChild(Ne),Et},Ft=function(me){return me=me.toLowerCase(),me==="html5"||me==="screenshot"?me:"html5"},xe=["web","webSimple","web3d","tablet","tablet3d","phone"],fe=function(me,Be){if(Je=me,Be){Ct(Je,!0);return}var Re=!it;if(Re){var Dt=pt(Je);!isNaN(Dt)&&Dt<4.4&&(Re=!1)}var Et,jt;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var Ne=Je.indexOf("//");Ne>0?jt=Je:Ne===0?jt=Et+Je:jt="https://www.geogebra.org/apps/5.2.814.0/";for(var Vt in xe)if(Je.slice(xe[Vt].length*-1)===xe[Vt]||Je.slice((xe[Vt].length+1)*-1)===xe[Vt]+"/"){Ct(jt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Re&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(re.showToolBar)&&!Me(re.showMenuBar)&&!Me(re.showAlgebraInput)&&!Me(re.enableRightClick)&&(!re.appName||re.appName=="classic")?jt+="webSimple/":jt+="web3d/",Ct(jt,!1)},Ct=function(me,Be){if(me.requirejs){Xe=me;return}me.slice(-1)!=="/"&&(me+="/"),Xe=me,Be===null&&(Be=me.indexOf("http")===-1),Ee=Be,Fe="web.nocache.js",Ge=!1;var Re=Xe.split("/");Re.length>1&&(!Be&&Re[Re.length-2]==="webSimple"?(Fe="webSimple.nocache.js",Ge=!0):xe.indexOf(Re[Re.length-2])>=0&&(Fe=Re[Re.length-2]+".nocache.js")),Re=me.split("/"),Je=Re[Re.length-3],Je.substr(0,4)==="test"?Je=Je.substr(4,1)+"."+Je.substr(5,1):(Je.substr(0,3)==="war"||Je.substr(0,4)==="beta")&&(Je="5.0");var Dt=parseFloat(Je);Dt!==NaN&&Dt<5&&me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead."),fe("5.0",Be))},Ut=function(me,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(me)};re.material_id!==void 0?Lt(Pt):Pt();function Pt(){var me=_t;Ie!==null?me=Ie:parseFloat(me)<5&&(me="5.0"),fe(me,!1),Te!==null&&Ct(Te,Ee),be=!0}return fn},GGBAppletUtils=function(){"use strict";function fn(){return window.GGBT_wsf_edit!==void 0}function _t(be,Ie){Ie!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ie+","+Ie+")",be.style.webkitTransform="scale("+Ie+","+Ie+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function re(be,Ie,Te,qe,Se,he){var Xe=null;if(he!=null&&he!="")for(var Ee=be.parentNode;Ee!=null;)if((" "+Ee.className+" ").indexOf(" "+he+" ")>-1){Xe=Ee;break}else Ee=Ee.parentNode;var Mt=0,Je=0,Fe=0,Ge=0,ze=0,wt=0,Tt=0;if(Xe)Mt=Xe.offsetWidth,Je=Math.max(qe?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Mt=Math.min(window.innerWidth,document.documentElement.clientWidth),Je=Math.min(window.innerHeight,document.documentElement.clientHeight),Fe=Mt):(Mt=window.innerWidth,Je=window.innerHeight,Fe=window.innerWidth),be){var zt=be.getBoundingClientRect();zt.left>0&&zt.left<=Mt&&(Se===void 0||!Se)&&(document.dir==="rtl"?(ze=Mt-zt.width-zt.left,wt=Fe<=480?10:30):(wt=zt.left,ze=Fe<=480?10:30),Ge=wt+ze)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var St=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge=40,Tt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge=0,Tt=40)}}return be&&((Te===void 0||!Te)&&Ie>0&&Ie+Ge1&&(he=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Se=z(be,Ie,he,Te,be.scaleContainerClass);else return qe;return he&&(!be.hasOwnProperty("scale")||qe===1)?Se:Math.min(qe,Se)}function ve(be){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Te=Math.min(window.innerHeight,document.documentElement.clientHeight),qe=be.getBoundingClientRect(),Se=(Ie-qe.width)/2,he=(Te-qe.height)/2;he<0&&(he=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Se<40?be.style.left="40px":be.style.left=Se+"px",be.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?be.style.top="40px":be.style.top=he+"px",be.style.left=Se+"px")}function Qe(be,Ie){var Te=be.querySelector(".appletParameters");if(Te){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!==Te.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Te.parentElement&&/fullscreen/.test(Te.parentElement.className))return;var qe=it(Ie,be);fn()&&Te.setAttribute("data-param-scale",qe);for(var Se=null,he=0;he=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(fn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(fn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(fn){var _t=c[fn];return _t==null?null:_t},r=d,webModule.__errFn=e}function B(){function fn(be){var Ie=be.lastIndexOf(rb);Ie==-1&&(Ie=be.length);var Te=be.indexOf(sb);Te==-1&&(Te=be.length);var qe=be.lastIndexOf(tb,Math.min(Te,Ie));return qe>=O?be.substring(O,qe+P):W}function _t(be){if(!be.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=be+vb,be=fn(Ie.src)}return be}function re(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function z(){for(var be=o.getElementsByTagName(_),Ie=O;IeO?be[be.length-P].href:W}function ve(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Qe=re();return Qe==W&&(Qe=z()),Qe==W&&(Qe=it()),Qe==W&&ve()&&(Qe=fn(o.location.href)),Qe=_t(Qe),Qe}function C(fn){return fn.match(/^\//)||fn.match(/^[a-zA-Z]+:\/\//)?fn:webModule.__moduleBase+fn}function D(){var fn=[],_t=O,re=[],z=[];function it(be){var Ie=z[be](),Te=re[be];if(Ie in Te)return Ie;var qe=[];for(var Se in Te)qe[Te[Se]]=Se;throw r&&r(be,qe,Ie),null}if(__gwt_isKnownPropertyValue=function(be,Ie){return Ie in re[be]},webModule.__getPropMap=function(){var be={};for(var Ie in re)re.hasOwnProperty(Ie)&&(be[Ie]=it(Ie));return be},webModule.__computePropValue=it,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var Qe=ve.indexOf(Db);Qe!=-1&&(_t=parseInt(ve.substring(Qe+P),$),ve=ve.substring(O,Qe))}catch(be){}return webModule.__softPermutationId=_t,C(ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(fn,_t,re){"use strict";re.d(_t,{Ax:function(){return Qe},Ds:function(){return be},KI:function(){return Te},SI:function(){return ve},f1:function(){return it}});var z=re(14185);function it(qe){let Se=!0;if(qe.length>0){for(let he=0;henew Promise((Fe,Ge)=>{var ze=zt=>{try{Tt(Je.next(zt))}catch(St){Ge(St)}},wt=zt=>{try{Tt(Je.throw(zt))}catch(St){Ge(St)}},Tt=zt=>zt.done?Fe(zt.value):Promise.resolve(zt.value).then(ze,wt);Tt((Je=Je.apply(Ee,Mt)).next())}),Xe=({data:Ee,className:Mt,fullWidth:Je,style:Fe={},onClose:Ge,onOk:ze,showFullTools:wt,noAssociationId:Tt})=>{const zt=(0,z.useRef)(null),St=(0,z.useRef)(null),pt=(0,z.useRef)(null),dt=(0,z.useRef)(null),[He,Lt]=(0,z.useState)(!1),[tt,ot]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(pt.current||(pt.current=document.createElement("style"),document.head.appendChild(pt.current)),Ee!=null&&Ee.visible?(document.body.setAttribute("data-custom","y-hidden"),pt.current.innerHTML=" html { overflow-y: hidden; }",Ee!=null&&Ee.src&&xt()):(document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null)),()=>{document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null)}),[Ee==null?void 0:Ee.visible]);const xt=()=>Se(void 0,null,function*(){Lt(!0),ot("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,qe.ZJ)(Ee==null?void 0:Ee.src);zt.current.src="",zt.current.src=ue,zt.current.onload=function(){Ve()},Lt(!1),ot("")}),Me=ue=>Se(void 0,null,function*(){Lt(!0),ot("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ct=yield(0,Te.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ee.title,file:ue.dataUrl}});ct!=null&&ct.id&&!Tt?(yield(0,Te.ZP)(`/api/attachments/${Ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:ct==null?void 0:ct.id,settings:JSON.stringify(ue.state)}})).status===0&&ze():ct!=null&&ct.id&&ze(ct),Lt(!1),ot("")}),_e=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.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(ke=>{const nt=document.querySelector(ke.name);nt&&nt.setAttribute("title",ke.title)})},Ve=()=>{St.current=new Ie.hP(zt.current),St.current.targetRoot=dt.current,St.current.addEventListener("render",Me),St.current.addEventListener("beforeclose",Ge),wt&&(St.current.availableMarkerTypes=St.current.ALL_MARKER_TYPES,St.current.uiStyleSettings.redoButtonVisible=!0,St.current.uiStyleSettings.notesButtonVisible=!0,St.current.uiStyleSettings.zoomButtonVisible=!0,St.current.uiStyleSettings.zoomOutButtonVisible=!0,St.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=St.current.uiStyleSettings,St.current.show(),Ee!=null&&Ee.snapshotData&&St.current.restoreState(Ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_e()},300)};return z.createElement(z.Fragment,null,(Ee==null?void 0:Ee.visible)&&z.createElement(be.Z,{spinning:He,tip:tt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:dt,className:Qe()(it.imageDimensions,Mt,Je?it.fullWidth:""),style:Fe},z.createElement("img",{className:it.img,ref:zt}))))}},9057:function(fn,_t,re){"use strict";var z=re(59301),it=re(77019),ve=re(5269),Qe=re(31691),be=re(7939),Ie=re(35883),Te=re(74501),qe=re(48136),Se=re(59301);const he=(0,z.forwardRef)(({callback:Xe,showSaveButton:Ee,value:Mt=""},Je)=>{const Fe=(0,z.useRef)(),Ge=[{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 "}]}]}],ze=[{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}`}]}]}],wt=St=>{Fe.current.setValue(Fe.current.getValue()+" "+St.value+" ")},Tt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Se.createElement(it.Z,{className:Te.Z.lists,gutter:[10,10]},Ge.map((St,pt)=>Se.createElement(ve.Z,{flex:"110px",className:Te.Z.item},Se.createElement("div",null,Se.createElement(Ie.Z,{value:`$$${St.value}$$`}),St.name),Se.createElement("div",{className:Te.Z.children},St.children.map((dt,He)=>Se.createElement("div",{key:He},Se.createElement("h1",null,dt.name),Se.createElement(it.Z,{gutter:[10,10]},dt.data.map((Lt,tt)=>Se.createElement(ve.Z,{key:tt,onClick:()=>wt(Lt),className:Te.Z.diamond},Se.createElement(Ie.Z,{value:"`$$"+Lt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Se.createElement(it.Z,{className:Te.Z.lists,gutter:[10,10]},ze.map((St,pt)=>Se.createElement(ve.Z,{flex:"110px",className:Te.Z.item},Se.createElement("div",null,Se.createElement(Ie.Z,{value:"`$$"+St.value+"$$`"}),St.name),Se.createElement("div",{className:Te.Z.children},St.children.map((dt,He)=>Se.createElement("div",{key:He},dt.name&&Se.createElement("h1",null,dt.name),Se.createElement(it.Z,{gutter:[10,10]},dt.data.map((Lt,tt)=>Se.createElement(ve.Z,{key:tt,onClick:()=>wt(Lt),className:Te.Z.diamond},Se.createElement(Ie.Z,{value:"`$$"+Lt.value+"$$`"}))))))))))}],zt=()=>{var St=document.createElement("div");St.innerHTML=Fe.current.getValue();var pt=St.innerText;return Xe&&Xe(pt),pt};return(0,z.useImperativeHandle)(Je,()=>({getData:zt})),Se.createElement("div",{className:Te.Z.mathWrap},Se.createElement(Qe.default,{defaultActiveKey:"1",items:Tt}),Se.createElement("math-field",{locale:"zh_cn",className:Te.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Fe,style:{width:800,marginTop:30,fontSize:18}},Mt||""),Ee&&Se.createElement("div",{className:Te.Z.button},Se.createElement(be.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});_t.Z=he},90736:function(fn,_t,re){"use strict";var z=re(59301),it=re(4977),ve=re(7939),Qe=Object.defineProperty,be=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,he=(Je,Fe,Ge)=>Fe in Je?Qe(Je,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Je[Fe]=Ge,Xe=(Je,Fe)=>{for(var Ge in Fe||(Fe={}))qe.call(Fe,Ge)&&he(Je,Ge,Fe[Ge]);if(Te)for(var Ge of Te(Fe))Se.call(Fe,Ge)&&he(Je,Ge,Fe[Ge]);return Je},Ee=(Je,Fe)=>be(Je,Ie(Fe));const Mt=({img:Je,buttonProps:Fe={},styles:Ge={},customText:ze,ButtonText:wt,ButtonClick:Tt,Buttonclass:zt,ButtonTwo:St,imgStyles:pt,loading:dt=!1,className:He=""})=>z.createElement("section",{className:`tc animated fadeIn ${He}`,style:Xe({color:"#999",margin:"100px auto",visibility:dt?"hidden":"visible"},Ge)},z.createElement("img",{src:Je||it,style:Ee(Xe({},pt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},ze||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),wt&&z.createElement(ve.ZP,Xe({className:zt,onClick:Tt},Fe),wt),St&&St);_t.Z=Mt},86974:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return zt}});var z=re(59301),it={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=re(7939),Qe=re(70557),be=re(34728),Ie=re(25399),Te=re(76406),qe=re(84849),Se=re(90736),he=re(14185),Xe=re(52078),Ee=re(59301),Mt=Object.defineProperty,Je=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(St,pt,dt)=>pt in St?Mt(St,pt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):St[pt]=dt,wt=(St,pt)=>{for(var dt in pt||(pt={}))Fe.call(pt,dt)&&ze(St,dt,pt[dt]);if(Je)for(var dt of Je(pt))Ge.call(pt,dt)&&ze(St,dt,pt[dt]);return St},Tt=(St,pt,dt)=>new Promise((He,Lt)=>{var tt=Me=>{try{xt(dt.next(Me))}catch(_e){Lt(_e)}},ot=Me=>{try{xt(dt.throw(Me))}catch(_e){Lt(_e)}},xt=Me=>Me.done?He(Me.value):Promise.resolve(Me.value).then(tt,ot);xt((dt=dt.apply(St,pt)).next())}),zt=({editOffice:St="view",data:pt,issaver:dt,onSaver:He,theme:Lt,type:tt,filename:ot,monacoEditor:xt,className:Me,style:_e,close:Ve,onClose:ue,hasMask:ct,disabledDownload:ke,onImgDimensions:nt,showNodata:Ft,recordInfo:xe})=>{const[fe,Ct]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ut,Pt]=(0,z.useState)(""),[me,Be]=(0,z.useState)(),Re=window.ENV==="build"?"/react/build":"",Dt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,jt=10*(1024*1024),Ne=(0,z.useRef)();pt!=null&&pt.startsWith("/api")&&tt!=="txt"&&(pt=he.Z.API_SERVER+pt);const Vt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();ot&&xt&&(xt.filename=ot),(0,z.useEffect)(()=>{var se,ne;const pe=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");pe==null||pe.map(Ce=>{let mt=Ce.split("=");mt[0]==="_educoder_session"&&Pt(mt[1])})},[]),(0,z.useEffect)(()=>{tt==="office"&&(pt.indexOf("bigfilescdn.")>-1||pt.indexOf("bigfiles1")>-1?Be({url:pt,fileType:Vt(pt),model:pt.indexOf("model=edit")?"edit":"view"}):pt.indexOf("coze")>-1?Be({url:pt,fileType:"doc",model:"view"}):ae())},[tt,pt]);function yt(se){return Tt(this,null,function*(){se.data.type==="pdfdata"&&(He(se.data.data),window.removeEventListener("message",yt,!1)),console.log("mess---:",se.data)})}const ae=()=>Tt(void 0,null,function*(){console.log("data:",pt);let se=pt;pt.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,qe.gJ)({attachment_id:ne});pe.url=Dt+pe.url,Be(pe)}),te=()=>{if(pt.startsWith("http")||pt.startsWith("blob:")){ee();return}(0,Te.Sv)(ot||"educoder",pt,ot)},ee=()=>{xe&&(0,Xe.fc)({id:xe==null?void 0:xe.id,watch_type:1,course_id:xe==null?void 0:xe.course_id}),(0,Te.Nd)(ot||"educoder",decodeURIComponent(pt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&ue()};return Ee.createElement("div",{style:wt({},_e||{}),className:`${ct&&it.bgBlack} ${tt?it.wrp:"hide"}`},!!tt&&Ve&&Ee.createElement("div",{id:"closePop",className:it.close,ref:Ne},!!nt&&Ee.createElement(Ie.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ne.current},Ee.createElement("span",{onClick:()=>{ue(),nt()}},Ee.createElement("i",{className:"icon-yulanpizhu"}))),!ke&&window.parent===window&&Ee.createElement(Ie.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ne.current},Ee.createElement("span",{onClick:ee},Ee.createElement("i",{className:"icon-quxiaozhiding"}))),dt&&Ee.createElement(Ie.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ne.current},Ee.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",yt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ee.createElement("i",{className:"icon-baocun"}))),Ee.createElement(Ie.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ne.current},Ee.createElement("span",{className:"",onClick:()=>{ue()}},Ee.createElement("i",{className:"icon-guanbi1"})))),Ee.createElement("div",{className:`${it[Me]} ${Me} ${it.monaco} ${tt==="txt"?"show":"hide"}`},tt==="txt"&&Ee.createElement(Ee.Fragment,null,Ee.createElement(be.ZP,wt({},xt)))),tt==="audio"&&Ee.createElement("audio",{controls:!0,src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${pt}`,autoPlay:!0}),tt==="video"&&Ee.createElement(Ee.Fragment,null,(pt==null?void 0:pt.indexOf("http"))>-1?Ee.createElement("video",{controls:!0,src:`${pt}`,autoPlay:!0}):Ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${pt}`,autoPlay:!0})),tt==="office"&&me&&Ee.createElement("iframe",{src:`${Re}/office.html?key=${me.key}&url=${btoa(me.url)}&callbackUrl=${Dt+(me.callbackUrl||"")}&fileType=${me.fileType}&title=${me.title||""}&model=${St}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!ke}`}),tt==="html"&&Ee.createElement("iframe",{src:pt+"&disposition=inline"}),tt==="pdf"&&Ee.createElement("iframe",{id:"pdfiframe",src:`${Re}/js/pdf/index.html?filename=${ot||"educoder.pdf"}&url=${encodeURIComponent(pt)}&disabledDownload=${!!ke}&model=${St}`}),tt==="image"&&Ee.createElement("img",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${pt}`}),(tt==="other"||tt==="download")&&Ee.createElement(Ee.Fragment,null,Ft?Ee.createElement(Se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ee.createElement(ve.ZP,{icon:Ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:ke},"\u4E0B\u8F7D")}):Ee.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:ke},Ee.createElement(Qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),tt==="flowChart"&&Ee.createElement("div",{className:"embed"},Ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${pt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(fn,_t,re){"use strict";re.d(_t,{z:function(){return xt},Z:function(){return Me}});var z=re(59301),it=re(46214),ve=re(20047),Qe=re(64018),be=re(16471),Ie=re(14185),Te=re(76406),qe=re(15342),Se=re(44104),he=re(7939),Xe=re(1012),Ee=re(86974),Mt=re(59301),Fe=({html:_e})=>{const Ve=(0,z.useRef)(null),ue=(0,z.useRef)(null),ct=`.markdown-body p { margin: 0 0 16px 0 !important; line-height: 28px; white-space: pre-wrap; } ol, ul, li { list-style-type: none } ol, ul, dl { margin-bottom: 0px; } .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #333; overflow: hidden; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif; word-break: break-word; font-size: 16px; line-height: 1.6; white-space: normal; word-wrap: break-word; position: relative; } .markdown-body ul>li { list-style-type: disc; } .markdown-body ol>li { list-style-type: decimal; } .markdown-body a { background: transparent; } .markdown-body a:active, .markdown-body a:hover { outline: 0; } .markdown-body strong { font-weight: bold; } .markdown-body h1 { font-size: 2em; margin: 0.67em 0; } .markdown-body img { border: 0; } .markdown-body hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; } .markdown-body pre { overflow: auto; } .markdown-body code, .markdown-body kbd, .markdown-body pre { font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; font-size: 1em; } .markdown-body input { color: inherit; font: inherit; margin: 0; } .markdown-body html input[disabled] { cursor: default; } .markdown-body input { line-height: normal; } .markdown-body input[type="checkbox"] { -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } .markdown-body table { border-collapse: collapse; border-spacing: 0; } .markdown-body td, .markdown-body th { padding: 0; } .markdown-body * { -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body input { font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; } .markdown-body a { color: #4183c4; text-decoration: none; } .markdown-body a:hover, .markdown-body a:active { text-decoration: underline; } .markdown-body hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #ddd; } .markdown-body hr:before { display: table; content: ""; } .markdown-body hr:after { display: table; clear: both; content: ""; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { margin-top: 15px; margin-bottom: 15px; line-height: 1.1; } .markdown-body h1 { font-size: 30px; } .markdown-body h2 { font-size: 21px; } .markdown-body h3 { font-size: 16px; } .markdown-body h4 { font-size: 14px; } .markdown-body h5 { font-size: 12px; } .markdown-body h6 { font-size: 11px; } .markdown-body blockquote { margin: 0; } .markdown-body ul, .markdown-body ol { padding: 0; margin-top: 0; margin-bottom: 0; } ul.linenums, ol.linenums { padding: 16px 0 0 56px !important; } .markdown-body ul, .markdown-body ol { padding-left: 2em; } .markdown-body ol ol, .markdown-body ul ol { list-style-type: lower-roman; } .markdown-body ul ul ol, .markdown-body ul ol ol, .markdown-body ol ul ol, .markdown-body ol ol ol { list-style-type: lower-alpha; } .markdown-body dd { margin-left: 0; } .markdown-body code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { font: normal normal 16px octicons-anchor; line-height: 1; display: inline-block; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .markdown-body .octicon-link:before { content: '\f05c'; } .markdown-body>*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !important; } .markdown-body .anchor { position: absolute; top: 0; left: 0; display: block; padding-right: 6px; padding-left: 30px; margin-left: -30px; } .markdown-body .anchor:focus { outline: none; } .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { position: relative; margin-top: 1em; margin-bottom: 16px; font-weight: bold; line-height: 1.4; } .markdown-body h1 .octicon-link, .markdown-body h2 .octicon-link, .markdown-body h3 .octicon-link, .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { display: none; color: #000; vertical-align: middle; } .markdown-body h1:hover .anchor, .markdown-body h2:hover .anchor, .markdown-body h3:hover .anchor, .markdown-body h4:hover .anchor, .markdown-body h5:hover .anchor, .markdown-body h6:hover .anchor { padding-left: 8px; margin-left: -30px; text-decoration: none; } .markdown-body h1:hover .anchor .octicon-link, .markdown-body h2:hover .anchor .octicon-link, .markdown-body h3:hover .anchor .octicon-link, .markdown-body h4:hover .anchor .octicon-link, .markdown-body h5:hover .anchor .octicon-link, .markdown-body h6:hover .anchor .octicon-link { display: inline-block; } .markdown-body h1 { padding-bottom: 0.3em; font-size: 2.25em; line-height: 1.2; border-bottom: 1px solid #eee; } .markdown-body h1 .anchor { line-height: 1; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.75em; line-height: 1.225; border-bottom: 1px solid #eee; } .markdown-body h2 .anchor { line-height: 1; } .markdown-body h3 { font-size: 1.5em; line-height: 1.43; } .markdown-body h3 .anchor { line-height: 1.2; } .markdown-body h4 { font-size: 1.25em; } .markdown-body h4 .anchor { line-height: 1.2; } .markdown-body h5 { font-size: 1em; } .markdown-body h5 .anchor { line-height: 1.1; } .markdown-body h6 { font-size: 1em; color: #777; } .markdown-body h6 .anchor { line-height: 1.1; } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; } .markdown-body ul ul, .markdown-body ul ol, .markdown-body ol ol, .markdown-body ol ul { margin-top: 0; margin-bottom: 0; } .markdown-body li>p { margin-top: 16px; } .markdown-body dl { padding: 0; } .markdown-body dl dt { padding: 0; margin-top: 16px; font-size: 1em; font-style: italic; font-weight: bold; } .markdown-body dl dd { padding: 0 16px; margin-bottom: 16px; } .markdown-body blockquote { padding: 0 15px; color: #777; border-left: 4px solid #ddd; } .markdown-body blockquote> :first-child { margin-top: 0; } .markdown-body blockquote> :last-child { margin-bottom: 0; } .markdown-body table { display: block; width: 100%; overflow: auto; word-break: normal; word-break: keep-all; } .markdown-body table th { font-weight: bold; text-align: revert; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; border: 1px solid #ddd; } .markdown-body table tr { background-color: #fff; border-top: 1px solid #ccc; } .markdown-body table tr:nth-child(2n) { background-color: #f8f8f8; } .markdown-body img { max-width: 100%; -moz-box-sizing: border-box; box-sizing: border-box; } .markdown-body code { padding: 0; padding-top: 0.2em; padding-bottom: 0.2em; margin: 0; font-size: 85%; background-color: rgba(0, 0, 0, 0.04); border-radius: 3px; } .markdown-body code:has(.katex) { background-color: transparent; } .markdown-body code:before, .markdown-body code:after { letter-spacing: -0.2em; content: "\\00a0"; } .markdown-body pre>code { padding: 0; margin: 0; font-size: 100%; word-break: normal; white-space: pre; background: transparent; border: 0; } .markdown-body .highlight { margin-bottom: 16px; } .markdown-body .highlight pre, .markdown-body pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border-radius: 3px; } .markdown-body .highlight pre { margin-bottom: 0; word-break: normal; } .markdown-body pre { word-wrap: normal; } .markdown-body pre code { display: inline; max-width: initial; padding: 0; margin: 0; overflow: initial; line-height: inherit; word-wrap: normal; background-color: transparent; border: 0; } .markdown-body pre code:before, .markdown-body pre code:after { content: normal; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font-size: 11px; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .pl-c { color: #969896; } .markdown-body .pl-c1, .markdown-body .pl-mdh, .markdown-body .pl-mm, .markdown-body .pl-mp, .markdown-body .pl-mr, .markdown-body .pl-s1 .pl-v, .markdown-body .pl-s3, .markdown-body .pl-sc, .markdown-body .pl-sv { color: #0086b3; } .markdown-body .pl-e, .markdown-body .pl-en { color: #795da3; } .markdown-body .pl-s1 .pl-s2, .markdown-body .pl-smi, .markdown-body .pl-smp, .markdown-body .pl-stj, .markdown-body .pl-vo, .markdown-body .pl-vpf { color: #333; } .markdown-body .pl-ent { color: #63a35c; } .markdown-body .pl-k, .markdown-body .pl-s, .markdown-body .pl-st { color: #a71d5d; } .markdown-body .pl-pds, .markdown-body .pl-s1, .markdown-body .pl-s1 .pl-pse .pl-s2, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sra, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-src { color: #df5000; } .markdown-body .pl-mo, .markdown-body .pl-v { color: #1d3e81; } .markdown-body .pl-id { color: #b52a1d; } .markdown-body .pl-ii { background-color: #b52a1d; color: #f8f8f8; } .markdown-body .pl-sr .pl-cce { color: #63a35c; font-weight: bold; } .markdown-body .pl-ml { color: #693a17; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { color: #1d3e81; font-weight: bold; } .markdown-body .pl-mq { color: #008080; } .markdown-body .pl-mi { color: #333; font-style: italic; } .markdown-body .pl-mb { color: #333; font-weight: bold; } .markdown-body .pl-md, .markdown-body .pl-mdhf { background-color: #ffecec; color: #bd2c00; } .markdown-body .pl-mdht, .markdown-body .pl-mi1 { background-color: #eaffea; color: #55a532; } .markdown-body .pl-mdr { color: #795da3; font-weight: bold; } .markdown-body kbd { display: inline-block; padding: 3px 5px; font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; color: #555; vertical-align: middle; background-color: #fcfcfc; border: solid 1px #ccc; border-bottom-color: #bbb; border-radius: 3px; box-shadow: inset 0 -1px 0 #bbb; } .markdown-body .task-list-item { list-style-type: none; } .markdown-body .task-list-item+.task-list-item { margin-top: 3px; } .markdown-body .task-list-item input { float: left; margin: 0.3em 0 0.25em -1.6em; vertical-align: middle; } .markdown-body :checked+.radio-label { z-index: 1; position: relative; border-color: #4183c4; } /*! Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ .pln { color: #000 } /* plain text */ @media screen { .str { color: #080 } /* string content */ .kwd { color: #008 } /* a keyword */ .com { color: #800 } /* a comment */ .typ { color: #606 } /* a type name */ .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ .pun, .opn, .clo { color: #660 } .tag { color: #008 } /* a markup tag name */ .atn { color: #606 } /* a markup attribute name */ .atv { color: #080 } /* a markup attribute value */ .dec, .var { color: #606 } /* a declaration; a variable name */ .fun { color: red } /* a function name */ } /* Use higher contrast and text-weight for printable form. */ @media print, projection { .str { color: #060 } .kwd { color: #006; font-weight: bold } .com { color: #600; font-style: italic } .typ { color: #404; font-weight: bold } .lit { color: #044 } .pun, .opn, .clo { color: #440 } .tag { color: #006; font-weight: bold } .atn { color: #404 } .atv { color: #060 } } /* Put a border around prettyprinted code snippets. */ pre.prettyprint { padding: 2px; /* border: 1px solid #888 */ } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none } /* Alternate shading for lines */ li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee } .markdown-body p, .markdown-body blockquote, .markdown-body ul, .markdown-body ol, .markdown-body dl, .markdown-body table, .markdown-body pre { margin-top: 0; margin-bottom: 16px; }`;return(0,z.useEffect)(()=>{const ke=Ve.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=_e,ke.appendChild(ue.current);const nt=document.createElement("style");return nt.textContent=ct,ke.appendChild(nt),()=>{ke.innerHTML=""}},[]),(0,z.useEffect)(()=>{ue.current&&(ue.current.innerHTML=_e)},[_e]),Mt.createElement("div",{ref:Ve})};function Ge(_e){const Ve=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ue=new RegExp(`\\b(${Ve.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ct=/]*>/gi;return _e.replace(ue,"").replace(ct,"").trim()}var ze={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},wt=Object.defineProperty,Tt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,pt=(_e,Ve,ue)=>Ve in _e?wt(_e,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ue}):_e[Ve]=ue,dt=(_e,Ve)=>{for(var ue in Ve||(Ve={}))zt.call(Ve,ue)&&pt(_e,ue,Ve[ue]);if(Tt)for(var ue of Tt(Ve))St.call(Ve,ue)&&pt(_e,ue,Ve[ue]);return _e};const He="@\u2581\u2581@",Lt="@\u2581@",tt=/]*>/g;function ot(_e){let Ve=document.createElement("div");return Ve.innerHTML=_e,Ve.childNodes.length===0?"":Ve.childNodes[0].nodeValue}const xt=(_e,Ve)=>{_e=_e||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ct=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,nt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ve?_e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Ft,xe,fe,Ct,Ut,Pt,me)=>{const Be=xe||Ct||Pt,Re=fe||Ut||me||"?";return Ie.Z.API_SERVER+"/api/attachments/"+Be+Re+"&t="+(0,Te.Jn)(Be,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_e=_e.replace(nt,(Ft,xe,fe,Ct,Ut,Pt,me)=>{const Be=xe||Ct||Pt,Re=fe||Ut||me||"?";return Ie.Z.API_SERVER+"/attachments/download/"+Be+Re+"&t="+(0,Te.Jn)(Be,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(ue,(Ft,xe,fe,Ct,Ut,Pt,me)=>{const Be=xe||Ct||Pt,Re=fe||Ut||me||"?";return Ie.Z.API_SERVER+"/api/attachments/"+Be+Re+"&t="+(0,Te.Jn)(Be,Date.now())+(Ft.indexOf(")")>-1?")":"&")}).replace(ct,(Ft,xe,fe,Ct,Ut)=>{const Pt=xe||Ct,me=fe||Ut||"";return'"'+Ie.Z.API_SERVER+"/api/attachments/"+Pt+me+Pt+me+"&t="+(0,Te.Jn)(Pt,Date.now())}).replace(ke,(Ft,xe,fe,Ct,Ut)=>{const Pt=xe||Ct,me=fe||Ut||"";return"("+Ie.Z.API_SERVER+"/files/uploads/"+Pt+me+Pt+me+"&t="+(0,Te.Jn)(Pt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),_e)};var Me=({value:_e="",edit:Ve=!1,className:ue,showTextOnly:ct,showLines:ke,style:nt={},stylesPrev:Ft={},highlightKeywords:xe,showProgramFill:fe,isProgramFill:Ct,disabledFill:Ut=!1,programFillValue:Pt,openEditor:me=()=>{},onFillChange:Be=Et=>{},onFillBlur:Re=()=>{},onFillFocus:Dt=()=>{}})=>{let Et=Ge(String(_e||""));const jt=(0,z.useRef)(),Ne=(0,z.useRef)(),[Vt,yt]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,Xe.Z)()),ne={},pe=kt=>//i.test(kt||""),Ce=(kt,on,Kt)=>{const Le=document.createElement(kt===Lt?"input":"textarea");Le.style.width="100%",Le.style.height=kt===Lt?"40px":"151px",Le.rows=5,Le.spellcheck=!1,Le.name="edu-program-fill",Le.placeholder="\u8BF7\u8F93\u5165",Le.dataset.id=on;const st=Object.keys(ne).length;return ne[st]=Le,`${Le.outerHTML}`};function mt(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("","gs"),""),kt=kt.replace(//g,""),kt=kt.replace(//g,""),kt=kt.replace(new RegExp(".*?<\\/video>","gs"),""),kt=kt.replace(new RegExp(".*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp(".*?<\\/style>","gs"),""),kt=kt.replace(new RegExp(".*?<\\/script>","gs"),""),kt}const Oe=kt=>!ct&&pe(Et)?kt:kt.replace(/([\s\S]+?)<\/style>/gim,function(on,Kt){let Le=Kt.replace(/(\n|\r)/g,"").split("}"),st=[];return Le.map($t=>{$t!=""&&st.push(`.${se.current} ${$t}`)}),``}),Ue=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const Le=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,st=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wt=/\(\/attachments\/download\//g;Et=Et.replace(Wt,"("+Ie.Z.API_SERVER+"/attachments/download/").replace(Le,"("+Ie.Z.API_SERVER+"/api/attachments/").replace(st,'"'+Ie.Z.API_SERVER+"/api/attachments/").replace($t,'"'+Ie.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),jt.current.style.display="none"}catch(Le){}if(fe){let Le=-1;return Et=Et.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(st,$t,Wt){var De;return++Le,Ce(st,Le,(De=Pt==null?void 0:Pt[Le])==null?void 0:De.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Oe(Et||"")}
`}let kt=Oe(Et);kt=(0,ve.ZP)(kt);const on=(0,ve.ez)();Et.match(/\[TOC\]/)&&(kt=kt.replace("

[TOC]

",(0,ve.Qv)()),(0,ve.Iy)()),kt=kt.replace(/(__special_katext_id_\d+__)/g,(Le,st)=>{const{type:$t,expression:Wt}=on[st];return(0,qe.renderToString)(ot(Wt)||"",{displayMode:$t==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Kt=document.createElement("div");if(Kt.innerHTML=kt,ct)return Kt.innerText;if(xe){const Le=xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Jt(Kt,Le),Kt.innerHTML}return setTimeout(()=>sn(),500),Kt.innerHTML},[Et,xe]);(0,z.useEffect)(()=>{Yt.current&&Yt.current.querySelectorAll(["input","textarea"]).forEach(on=>{on.oninput=ft,on.onblur=Ot,on.onfocus=vt})},[ee]),(0,z.useEffect)(()=>{var kt,on,Kt,Le,st;if(Pt!=null&&Pt.length)try{const $t=Yt.current.querySelectorAll(".edu-program-fill-score"),Wt=Yt.current.querySelectorAll('[name="edu-program-fill"]');for(const[De,Ke]of Wt.entries())Ke.value=((kt=Pt==null?void 0:Pt[De])==null?void 0:kt.value)||"",((on=Pt==null?void 0:Pt[De])==null?void 0:on.type)==="warning"?Ke.className="program-fill-warning":((Kt=Pt==null?void 0:Pt[De])==null?void 0:Kt.type)==="success"?Ke.className="program-fill-success":Ke.className="";for(const[De,Ke]of $t.entries())Ke.innerHTML=(Le=Pt==null?void 0:Pt[De])!=null&&Le.score?`${(st=Pt==null?void 0:Pt[De])==null?void 0:st.score}\u5206`:"";oe(Pt)}catch($t){console.log($t,"error")}},[Pt]);const ft=kt=>{ee[kt.target.dataset.id]=ee[kt.target.dataset.id]||{},ee[kt.target.dataset.id].value=kt.target.value,oe([...ee]),Be(ee,kt.target.dataset.id)},Ot=kt=>{ee[kt.target.dataset.id]=ee[kt.target.dataset.id]||{},ee[kt.target.dataset.id].value=kt.target.value,oe([...ee]),Re(ee,kt.target.dataset.id)},vt=kt=>{ee[kt.target.dataset.id]=ee[kt.target.dataset.id]||{},ee[kt.target.dataset.id].value=kt.target.value,oe([...ee]),Dt(ee,kt.target.dataset.id)};function Jt(kt,on){return kt.childNodes.forEach(Kt=>{var Le;if(Kt.childNodes.length>0)Jt(Kt,on);else if(Kt.nodeName!=="IMG")if(Kt.innerHTML)Kt.innerHTML=(Le=Kt.innerHTML)==null?void 0:Le.replace(new RegExp(on,"gi"),'$&');else{const st=document.createElement("span");st.innerHTML=Kt.textContent.replace(new RegExp(on,"gi"),'$&'),Kt.replaceWith(st)}})}const Yt=(0,z.useRef)();ve.jb.WebkitLineClamp=ke,ke&&(nt=dt(dt({},nt),ve.jb));function Gt(kt){let on=kt.target;if(on.tagName.toUpperCase()==="A"){let Kt=on.getAttribute("href");if(Kt.indexOf("office")>-1)kt.preventDefault(),yt(Kt),te("office");else if(Kt.indexOf("application/pdf")>-1)kt.preventDefault(),yt(Kt),te("pdf");else if(Kt.indexOf("text/html")>-1)kt.preventDefault(),yt(Kt),te("html");else if(Kt.startsWith("#")){kt.preventDefault();let Le=document.getElementById(Kt.replace("#",""));Le&&Le.scrollIntoView(!0)}}}const sn=()=>{var kt;const on=(kt=Yt.current)==null?void 0:kt.querySelectorAll("video");on==null||on.forEach(Kt=>{if(Kt.oncontextmenu=()=>!1,Kt.src.indexOf(".m3u8")>-1&&!Kt.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var Le=new be.ZP;Le.loadSource(Kt.src),Le.attachMedia(Kt)}}})};(0,z.useEffect)(()=>{if(Yt.current&&Ue&&Ue.match(tt)&&window.PR.prettyPrint(),Yt.current)return Yt.current.addEventListener("click",Gt),()=>{var kt;(kt=Yt.current)==null||kt.removeEventListener("click",Gt),(0,ve.AL)(),(0,ve.Iy)()}},[Ue,Yt.current,Gt]);const nn=kt=>{kt.target.nodeName==="IMG"&&kt.target.className.indexOf("draw-flowchart")>-1?(jt.current.style.zIndex=1,jt.current.style.display="flex",jt.current.style.width=kt.target.clientWidth+"px",jt.current.style.height=kt.target.clientHeight+"px",jt.current.style.top=kt.target.offsetTop+"px",jt.current.style.left=kt.target.offsetLeft+"px",kt.target.id&&(Ne.current=kt.target.id)):jt.current.style.display="none"},dn=()=>{jt.current.style.display="none"};return(0,z.useEffect)(()=>{var kt;const on=Kt=>{Kt.preventDefault(),Kt.clipboardData.setData("text",window.getSelection().toString())};return(kt=Yt.current)==null||kt.addEventListener("copy",on),()=>{var Kt;(Kt=Yt.current)==null||Kt.removeEventListener("copy",on)}},[Yt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:dn},ct&&z.createElement("div",{ref:Yt,className:`${ze.mdBody} `},Ue),!ct&&!pe(Ue)&&z.createElement("div",{ref:Yt,style:dt({},nt),onMouseOver:nn,className:`${ue||""} ${Ut?"disabled-fill":""} markdown-body ${ze.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ue}}),!ct&&pe(Ue)&&z.createElement(Fe,{html:Ue}),z.createElement("div",{ref:jt,className:`${ze.button} ${Ve?"":ze.previewFlowChart}`},z.createElement(Se.Z,null,z.createElement(he.ZP,{onClick:()=>{Ve?me(Ne.current):(yt(Ne.current),te("flowChart"))}},Ve?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Ee.Z,{close:!0,data:Vt,type:Vt!=null&&Vt.length?ae:"",style:dt({},Ft),onClose:()=>yt("")}))}},28267:function(fn,_t,re){"use strict";re.d(_t,{h:function(){return St}});var z=re(59301),it=re(82326),ve=re(28284),Qe=re(7939),be=re(89780),Ie=re.n(be),Te=re(88319),qe=re(94896),Se=Object.defineProperty,he=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Fe=(pt,dt,He)=>dt in pt?Se(pt,dt,{enumerable:!0,configurable:!0,writable:!0,value:He}):pt[dt]=He,Ge=(pt,dt)=>{for(var He in dt||(dt={}))Mt.call(dt,He)&&Fe(pt,He,dt[He]);if(Ee)for(var He of Ee(dt))Je.call(dt,He)&&Fe(pt,He,dt[He]);return pt},ze=(pt,dt)=>he(pt,Xe(dt));const wt=it.default.Option,Tt={labelCol:{span:4},wrapperCol:{span:20}},zt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};_t.Z=({callback:pt,onCancel:dt})=>{const[He,Lt]=(0,z.useState)("python");function tt(xt){Lt(zt[xt][1])}function ot(xt){pt(xt)}return z.createElement(ve.default,ze(Ge({},Tt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ot,style:{width:500}}),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(it.default,{getPopupContainer:xt=>xt.parentNode,onChange:tt},Object.keys(zt).map(xt=>z.createElement(wt,{key:xt,value:xt},zt[xt][0])))),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(St,{mode:He})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Qe.ZP,{type:"ghost",onClick:dt},"\u53D6\u6D88")))};function St({value:pt,onChange:dt,mode:He,options:Lt={}}){const tt=(0,z.useRef)(),[ot,xt]=(0,z.useState)();return(0,z.useEffect)(()=>{if(ot){let Me=function(_e){const Ve=_e.getValue();dt&&dt(Ve)};return ot.on("change",Me),()=>{ot.off("change",Me)}}},[ot,dt]),(0,z.useEffect)(()=>{ot&&ot.setOption("mode",He)},[ot,He]),(0,z.useEffect)(()=>{ot&&(pt!==ot.getValue()||pt==="")&&setTimeout(()=>{ot.setValue(pt||"")},300)},[ot,pt]),(0,z.useEffect)(()=>{if(tt.current&&!ot){const Me=Ie().fromTextArea(tt.current,Ge({mode:He,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Lt));xt(Me)}},[tt.current,ot]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:tt}))}},39116:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return At}});var z=re(59301),it=re(44283),ve=re(89780),Qe=re.n(ve),be=re(76374),Ie=re(88319),Te=re(6313),qe=re(25717),Se=re(99498),he=re(25419),Xe=re(67549),Ee=re(35883),Mt=({value:It="",className:an,showTextOnly:tn,showLines:rn,style:Sn={}})=>{const Pn=(0,z.useMemo)(()=>"",[It]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Pn}}))},Je=Object.defineProperty,Fe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,zt=(It,an,tn)=>an in It?Je(It,an,{enumerable:!0,configurable:!0,writable:!0,value:tn}):It[an]=tn,St=(It,an)=>{for(var tn in an||(an={}))wt.call(an,tn)&&zt(It,tn,an[tn]);if(ze)for(var tn of ze(an))Tt.call(an,tn)&&zt(It,tn,an[tn]);return It},pt=(It,an)=>Fe(It,Ge(an));let dt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function He({onActionCallback:It,title:an,icon:tn,actionName:rn,className:Sn="",children:Pn}){function On(){It(rn)}return z.createElement("a",{title:an,className:Sn,onClick:On},z.createElement("i",{className:`${tn}`}),Pn)}var Lt=({watch:It,showNullButton:an,showNullProgramButton:tn,onActionCallback:rn,fullScreen:Sn,insertTemp:Pn,hidetoolBar:On,extraUse:Rn})=>{const Ln=[...dt,{title:`${It?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${It?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!On&&Ln.map((Jn,_n)=>z.createElement("li",{key:_n},Jn.actionName?z.createElement(He,pt(St({},Jn),{onActionCallback:rn})):z.createElement("span",{className:"v-line"}))),an?z.createElement("li",null,z.createElement(He,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,tn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(He,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(He,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Pn&&z.createElement("li",null,z.createElement(He,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pn}`,onActionCallback:rn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rn&&z.createElement("li",null,Rn),z.createElement("li",{className:"btn-full-screen"},z.createElement(He,{icon:`${Sn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rn})))},tt=re(88487),ot=re(28284),xt=re(37568),Me=re(7939),_e=Object.defineProperty,Ve=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Ft=(It,an,tn)=>an in It?_e(It,an,{enumerable:!0,configurable:!0,writable:!0,value:tn}):It[an]=tn,xe=(It,an)=>{for(var tn in an||(an={}))ke.call(an,tn)&&Ft(It,tn,an[tn]);if(ct)for(var tn of ct(an))nt.call(an,tn)&&Ft(It,tn,an[tn]);return It},fe=(It,an)=>Ve(It,ue(an));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var Ut=({callback:It,onCancel:an})=>{function tn(rn){It(rn)}return z.createElement(ot.default,fe(xe({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:tn,style:{width:500}}),z.createElement(ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(xt.default,null)),z.createElement(ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(xt.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Pt=re(28267),me=re(53332),Be=re(62957),Re=re(77019),Dt=re(40254),Et=re(59301),jt=({callback:It,onCancel:an})=>{const tn=document.createElement("canvas"),rn=tn.getContext("2d");tn.width=1e3,tn.height=800,rn.fillStyle="#ffffff",rn.fillRect(0,0,tn.width,tn.height);const Sn=tn.toDataURL("image/png");return Et.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(Re.Z,{style:{height:"100vh"}},Et.createElement(Dt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sn,visible:!0,title:String(Date.now())},onOk:Pn=>{It({src:Pn.url})},onClose:an})))},Ne=re(36207),Vt=re(5269),yt=re(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=re(59301),oe=(0,z.forwardRef)(({onCancel:It,editImgId:an,callback:tn},rn)=>{let Sn=(0,z.useRef)(),Pn=(0,z.useRef)(),On=(0,z.useRef)(),Rn=(0,z.useRef)(!1);const Ln=(0,z.useRef)(!1);console.log("ref:",rn);const[Jn,_n]=(0,z.useState)(0),[Nt,qt]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{_n(1)},[]),(0,z.useImperativeHandle)(rn,()=>({setHeight:qt})),te.createElement("div",{ref:Ln,className:"body-overflow-initial"},te.createElement(Ne.Z,{width:"100vw",height:Nt,footer:null,closable:!0,placement:"bottom",open:!!Jn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(In=>{tn({src:`/api/attachments/${In}`,id:In})})},title:te.createElement(Re.Z,{align:"middle"},te.createElement(Vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Vt.Z,{onClick:()=>{qt(Nt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Vt.Z,{onClick:()=>{window.saveDrawData(In=>{if(In===null){yt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}yt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),tn({src:`/api/attachments/${In}`,id:In,disabledClose:!0})})}},te.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${an||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Pn})))}),se=re(14185),ne=re(47889),pe=re(4875);const Ce=ne.ZP.Group,mt={margin:"0 8px"};var Oe=({callback:It,onCancel:an})=>{function tn(rn){It(rn)}return z.createElement(ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:tn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:mt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:mt},"\u884C\u6570"),z.createElement(ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(pe.Z,null)),z.createElement("span",{style:mt},"\u5217\u6570"),z.createElement(ot.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(pe.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:mt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(ot.default.Item,{name:"align"},z.createElement(Ce,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:an},"\u53D6\u6D88")))},Ue=re(58755),ft=re(84915),Ot=re.n(ft),Jt=(0,z.forwardRef)(({use3d:It,width:an,height:tn,callback:rn,showSaveButton:Sn},Pn)=>{const On=(0,z.useRef)(),Rn=(0,z.useRef)(),[Ln,Jn]=(0,z.useState)(!1),_n=(0,z.useRef)({id:On,appName:"graphing",width:an||1e3,height:tn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{Rn.current=new(Ot())(_n.current,!0),window.onload=function(){Rn.current.inject("applet_container")}},[]);const Nt=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return rn&&rn(qt),qt};return(0,z.useEffect)(()=>{_n.current.appName=Ln?"3D":"graphing",Rn.current.inject("applet_container")},[Ln]),(0,z.useEffect)(()=>{Jn(It)},[It]),(0,z.useImperativeHandle)(Pn,()=>({getImgData:Nt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:On}),z.createElement(Re.Z,{align:"middle"},z.createElement(Vt.Z,{flex:1},z.createElement(Ue.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ln,onChange:qt=>Jn(qt)})),z.createElement(Vt.Z,null,z.createElement(Me.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Yt=re(9057);const Gt="link",sn="upload-image",nn="add-flowchart",dn="draw-image",kt="add-flowchart",on="code-block",Kt="add-table",Le="------------",st={default:Le,left:`:${Le}`,center:`:${Le}:`,right:`${Le}:`};var $t=re(79006),Wt=re(76406);function De(){}let Ke=0;const gt=1e4,Bt="\u2581",Qt="@\u2581\u2581@",mn="@\u2581@",Dn=` **\u6A21\u677F\u6807\u9898** \u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Mn=["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 cn(It){return/^\d+$/.test(It)?`${It}px`:It}const vn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xt={[vn+"-B"]:"bold",[vn+"-I"]:"italic"},Rt={[Gt]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[dn]:"\u6DFB\u52A0\u753B\u56FE",[nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var At=({defaultValue:It="",onChange:an,width:tn="100%",height:rn=400,miniToolbar:Sn=!1,isFocus:Pn=!1,watch:On,insertTemp:Rn,mode:Ln="markdown",id:Jn="markdown-editor-id",showResizeBar:_n=!1,noStorage:Nt=!1,showNullButton:qt=!1,showNullProgramButton:In=!1,hidetoolBar:xn=!1,fullScreen:Ae=!1,onBlur:rt,onCMBeforeChange:we,onFullScreen:$e,className:Pe="",disablePaste:je=!1,disabled:ye=!1,disabledFill:et=!1,placeholder:at="",values:bt="",extraUse:lt,onAddBlank:We})=>{const[Ze,ut]=(0,z.useState)(null),[un,en]=(0,z.useState)(It),[ln,$n]=(0,z.useState)(On),[Hn,Vn]=(0,z.useState)(Ae),[Fn,kn]=(0,z.useState)(""),[Nn,Zn]=(0,z.useState)(0),[qn,Kn]=(0,z.useState)(rn),[Qn,Tn]=(0,z.useState)(!1),[nr,Gn]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),tr=(0,z.useRef)(),mr=(0,it.useDispatch)();(0,z.useEffect)(()=>{const yn=window.scrollY||window.pageYOffset;en(bt),Ze==null||Ze.setValue(bt),window.scrollTo(0,yn)},[bt]),(0,z.useEffect)(()=>{$e==null||$e(Hn)},[Hn]),(0,z.useEffect)(()=>{if(sr.current){let yn=function(Bn,zn){var cr;if(je){zn.preventDefault();return}const kr=zn.clipboardData;if(kr){const Pr=kr.types.toString(),Fr=kr.items;if(Pr==="Files"||kr.types.indexOf("Files")>-1){if(zn.preventDefault(),Ln=="stex")return;try{let Ar=Fr[1];((cr=Fr[0])==null?void 0:cr.kind)==="file"&&(Ar=Fr[0]);const Rr=Ar.getAsFile(),Vr=Rr.name.split(".").pop();(0,me.I)(Rr,Hr=>{var Kr,ti,Ei;Hr.id?((Kr=Rr==null?void 0:Rr.type)==null?void 0:Kr.indexOf("image"))>-1?pn.replaceSelection(``):((ti=Rr==null?void 0:Rr.type)==null?void 0:ti.indexOf("video"))>-1?pn.replaceSelection(``):((Ei=Rr==null?void 0:Rr.type)==null?void 0:Ei.indexOf("pdf"))>-1?pn.replaceSelection(`${Rr.name}`):Mn.includes(Vr)?pn.replaceSelection(`${Rr.name}`):pn.replaceSelection(`[${Rr.name}](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")})}catch(Ar){yt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const pn=Qe().fromTextArea(sr.current,{mode:Ln,lineNumbers:!Sn,lineWrapping:!0,value:It,autoCloseTags:!0,autoCloseBrackets:!0});return pn.on("keyup",function(Bn,zn){zn.keyCode===8&&(Bn.getValue()==""?pn.setOption("placeholder",at):pn.setOption("placeholder",null))}),pn.on("keydown",function(Bn,zn){if(zn.keyCode===8){var cr=zr(Bn);cr&&zn.preventDefault()}}),Pn&&pn.focus(),pn.on("paste",yn),ye&&pn.on("beforeChange",function(Bn,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),ut(pn),()=>{pn.off("paste",yn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(yn){console.log(yn,"---- to set md editor body height")}},[qn,ur,Hn]);(0,z.useEffect)(()=>{function yn(){let pn=new be.Z(Bn=>{for(let zn of Bn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(br(),Ze.setSize("100%","100%"),Ze.refresh())});return pn.observe(sr.current.parentElement),pn}if(Ze){const pn=yn();return()=>{var Bn,zn;(Bn=sr.current)!=null&&Bn.parentElement&&pn.unobserve((zn=sr.current)==null?void 0:zn.parentElement)}}},[Ze,br]),(0,z.useEffect)(()=>{if(Ze){let yn=[];for(const[pn,Bn]of Object.entries(Xt)){let zn={[pn]:()=>{Er(Bn)}};yn.push(zn),Ze.addKeyMap(zn)}return()=>{for(let pn of yn)Ze.removeKeyMap(pn)}}},[Ze]),(0,z.useEffect)(()=>{Ae!==Hn&&Vn(Ae)},[Ae]),(0,$t.Z)(()=>{if(!Nt&&Nn>0){let yn=new Date().getTime(),pn=window.sessionStorage.getItem(Jn);yn>=Nn+gt&&(!pn||pn!==un)&&(window.sessionStorage.setItem(Jn,un),Tn(!0))}},gt),(0,z.useEffect)(()=>{$n(On)},[Ze,On]),(0,z.useEffect)(()=>{Ze&&Pn&&Ze.focus()},[Ze,Pn]),(0,z.useEffect)(()=>{if(ln&&Ze){let yn=function(Bn){let zn=Bn.target;if(lr.current){let cr=zn.scrollTop/zn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const pn=Ze.getScrollerElement();return pn.addEventListener("scroll",yn),()=>{pn.removeEventListener("scroll",yn)}}},[Ze,ln]),(0,z.useEffect)(()=>{if(Ze&&we){let yn=function(pn,Bn){we(pn,Bn)};return Ze.on("beforeChange",yn),()=>{Ze.off("beforeChange",yn)}}},[Ze,we]),(0,z.useEffect)(()=>{if(Ze&&rt){let yn=function(){rt(Ze.getValue())};return Ze.on("blur",yn),()=>{Ze.off("blur",yn)}}},[Ze,rt]);function zr(yn,pn){var Bn=yn.getDoc(),zn=Bn.getCursor(),cr=Bn.getLine(zn.line),kr=cr.charAt(zn.ch-1),Pr=cr.lastIndexOf("@\u2581@",zn.ch),Fr=cr.lastIndexOf("@\u2581\u2581@",zn.ch),Ar=Pr>Fr?Pr:Fr,Rr=Pr>Fr?3:4;if(Qt.indexOf(kr)===-1)return null;if(console.log("change1:",pn,yn,cr,zn,Ar,Pr,Fr,kr),Ar>=0&&zn.ch-Ar<5){var Vr=Ar+Rr;return Bn.replaceRange("",{line:zn.line,ch:Ar},{line:zn.line,ch:Vr}),{line:zn.line,ch:Vr}}return null}(0,z.useEffect)(()=>{if(Ze){let yn=function(pn,Bn){const zn=pn.getValue();en(zn),Zn(new Date().getTime()),pn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),an&&(In?an(zn,wn(zn)):an(zn))};return Ze.on("change",yn),()=>{Ze.off("change",yn)}}},[Ze,an]),(0,z.useEffect)(()=>{if(Ze)if(It==null)Ze.setValue(""),en("");else{const yn=window.scrollY||window.pageYOffset;It!==Ze.getValue()&&(Ze.setValue(It),en(It),Ze.setCursor(ye?1:Ze.lineCount(),0),window.scrollTo(0,yn))}},[Ze,It]);const Er=(0,z.useCallback)(yn=>{const pn=Ze.getCursor(),Bn=Ze.getSelection();let zn=Bn.split(` `);switch(yn){case"bold":return Ze.replaceSelection("**"+Bn+"**"),Bn===""&&Ze.setCursor(pn.line,pn.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+Bn+"*"),Bn===""&&Ze.setCursor(pn.line,pn.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+Bn+"`"),Bn===""&&Ze.setCursor(pn.line,pn.ch+1),Ze.focus();case"inline-latex":return(0,Wt.Ye)(mr)?void 0:(kn("inline-latex"),Ze.focus());case"latex":return Ze.replaceSelection("```latex\n"+Bn+"\n```"),Ze.setCursor(pn.line+1,Bn.length+1),Ze.focus();case"line-break":return Ze.replaceSelection(`
`),Ze.focus();case"list-ul":return Bn===""?Ze.replaceSelection("- "+Bn):Ze.replaceSelection(zn.map(cr=>cr===""?"":`- ${cr}`).join(` `)),Ze.focus();case"list-ol":return Bn===""?Ze.replaceSelection("1. "+Bn):Ze.replaceSelection(zn.map((cr,kr)=>cr===""?"":`${kr+1}. ${cr}`).join(` `)),Ze.focus();case"add-null-ch":We==null||We();return;case"add-signal":return Bn===""&&Ze.setCursor(pn.line,pn.ch),Ze.replaceSelection(mn),Ze.focus();case"add-multiple":return Bn===""&&Ze.setCursor(pn.line,pn.ch),Ze.replaceSelection(Qt),Ze.focus();case"inster-template-1":return Bn===""&&Ze.setCursor(pn.line,pn.ch),Ze.replaceSelection(Dn),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return $n(!ln),Ze.focus();case"trigger-full-screen":return Vn(!Hn),Ze.focus();case Gt:kn(Gt);return;case on:kn(on);return;case sn:kn(sn);return;case dn:kn(dn);return;case"maths-latex":if((0,Wt.Ye)(mr))return;kn("maths-latex");return;case nn:fr.current="",sessionStorage.removeItem("file_id"),kn(nn);return;case Kt:kn(Kt);return;default:throw new Error}},[Ze,ln,Hn]),Br=(0,z.useCallback)((yn,pn)=>{var Bn,zn,cr,kr,Pr,Fr;yn!=null&&yn.disabledClose||kn("");const{src:Ar,alt:Rr,id:Vr}=yn||{};switch(Fn){case Gt:const{title:Ni,link:xi}=yn;return Ze.replaceSelection(`[${Ni}](${xi})`),Ze.focus();case on:const{language:si,content:Fi}=yn;return Ze.replaceSelection(["```"+si,Fi,"```"].join(` `)),Ze.focus();case"maths-latex":for(var Hr=atob(yn),Kr=new Uint8Array(Hr.length),ti=0;ti{wr.id?Ze.replaceSelection(`![,](/api/attachments/${wr.id}?type=${wr.content_type})`):(wr==null?void 0:wr.status)===401&&(document.location.href="/user/login")}),Ze.focus();case"inline-latex":return(0,Wt.Ye)(mr)?void 0:(Ze.replaceSelection("`$$"+yn+"$$`"),Ze.focus());case kt:return Vr?(Ze.getValue().indexOf(Ar)===-1?Ze.replaceSelection(`
${Rr||
`):document.getElementById(Vr).src=se.Z.API_SERVER+Ar+"?t="+Date.now(),Ze.focus()):void 0;case sn:case dn:const jr=pn,Ui=(cr=(zn=(Bn=jr==null?void 0:jr.name)==null?void 0:Bn.split("."))==null?void 0:zn.pop)==null?void 0:cr.call(zn);return((kr=jr==null?void 0:jr.type)==null?void 0:kr.indexOf("image"))>-1||!(jr!=null&&jr.type)?jr!=null&&jr.align||jr!=null&&jr.width?Ze.replaceSelection(`

${Rr||

`):Ze.replaceSelection(`${Rr||`):((Pr=jr==null?void 0:jr.type)==null?void 0:Pr.indexOf("video"))>-1?Ze.replaceSelection(``):((Fr=jr==null?void 0:jr.type)==null?void 0:Fr.indexOf("pdf"))>-1?Ze.replaceSelection(`${jr.name}`):Mn.includes(Ui)?Ze.replaceSelection(`${jr.name}`):Ze.replaceSelection(`[${jr.name}](${Ar})`),Ze.focus();case Kt:const{row:qr,col:xr,align:$r}=yn;let _r=` `;for(let wr=0;wr{switch(Fn){case Gt:return z.createElement(Ut,{callback:Br,onCancel:Dr});case on:return z.createElement(Pt.Z,{callback:Br,onCancel:Dr});case sn:return z.createElement(me.Z,{callback:Br,onCancel:Dr});case nn:return z.createElement(oe,{editImgId:fr.current,callback:Br,onCancel:Dr});case Kt:return z.createElement(Oe,{callback:Br,onCancel:Dr});case"maths-latex":return z.createElement(Jt,{showSaveButton:!0,callback:Br});case"inline-latex":return z.createElement(Yt.Z,{showSaveButton:!0,callback:Br});default:return null}},[Fn]);function Dr(){kn("")}(0,z.useEffect)(()=>{if(yr.current){let yn=function(Pr){cr=!0,kr=Pr.pageY},pn=function(){cr=!1},Bn=function(Pr){if(cr){let Fr=Pr.pageY-kr;Fr<0&&(Fr=0),Fr>300&&(Fr=300);let Ar=rn+Fr+"px";Kn(Ar)}},zn=yr.current,cr=!1,kr=0;return zn.addEventListener("mousedown",yn),document.addEventListener("mousemove",Bn),document.addEventListener("mouseup",pn),()=>{zn.removeEventListener("mousedown",yn),document.removeEventListener("mousemove",Bn),document.removeEventListener("mouseup",pn)}}},[Ze,yr]),(0,z.useEffect)(()=>{Kn(rn)},[rn]);const or=cn(tn),ir=cn(qn),er={width:or,height:ir},gn=(0,z.useMemo)(()=>{if(Nn){let yn=new Date(Nn),pn=yn.getHours(),Bn=yn.getMinutes(),zn=yn.getSeconds();return pn=pn<10?"0"+pn:pn,Bn=Bn<10?"0"+Bn:Bn,zn=zn<10?"0"+zn:zn,`${pn}:${Bn}:${zn}`}return 0},[Nn]),wn=yn=>{const pn=[];if(In){let Bn=-1;yn=yn.replace(/(@▁▁@|@▁@)/g,function(zn,cr,kr){pn.push({multiLine:zn!==mn})})}return pn};function Cn(){window.sessionStorage.removeItem(Jn),Tn(!1),Zn(0)}function hn(){Tn(!1),Zn(0),Ze.setValue(window.sessionStorage.getItem(Jn))}(0,z.useEffect)(()=>{Rt[Fn]&&Fn!==dn&&Fn!==nn&&setTimeout(()=>{const yn=document.getElementsByClassName("markdown-popup-form")[0],pn=window.innerWidth/2-yn.offsetWidth/2,Bn=window.innerHeight/2-yn.offsetHeight/2;Gn(pn),pr(Bn)},0)},[Fn]);const jn=yn=>{yn.preventDefault();const pn=yn.clientX-nr,Bn=yn.clientY-dr;document.body.onmousemove=zn=>{let cr=zn.clientX-pn,kr=zn.clientY-Bn;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Fr=window.innerWidth-Pr.offsetWidth,Ar=window.innerHeight-Pr.offsetHeight;cr=Math.max(0,Math.min(cr,Fr)),kr=Math.max(0,Math.min(kr,Ar)),Un(zn.clientX,zn.clientY,pn,Bn)&&(Gn(cr),pr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Un=(yn,pn,Bn,zn)=>{const cr=document.body.clientHeight,kr=document.body.clientWidth;return yn<20&&Bn>yn||yn>kr-20&&Bnpn||pn>cr-20&&zn{var pn;fr.current=yn,(pn=tr.current)==null||pn.setHeight("100vh"),setTimeout(()=>{kn("add-flowchart")},150)}})):null))),_n?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Fn===dn&&z.createElement(jt,{callback:Br,onCancel:Dr}),Fn===nn&&z.createElement(oe,{ref:tr,editImgId:fr.current,callback:Br,onCancel:Dr}),z.createElement(tt.Z,null,Rt[Fn]&&Fn!==dn&&Fn!==nn?z.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:nr,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:jn},Rt[Fn]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:Fn===nn?"1200px":null,height:Fn===nn?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return dt},I:function(){return Lt}});var z=re(28284),it=re(6767),ve=re(37568),Qe=re(44104),be=re(4875),Ie=re(47889),Te=re(7939),qe=re(23216),Se=re(59301),he=re(59301),Xe=Object.defineProperty,Ee=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(tt,ot,xt)=>ot in tt?Xe(tt,ot,{enumerable:!0,configurable:!0,writable:!0,value:xt}):tt[ot]=xt,wt=(tt,ot)=>{for(var xt in ot||(ot={}))Fe.call(ot,xt)&&ze(tt,xt,ot[xt]);if(Je)for(var xt of Je(ot))Ge.call(ot,xt)&&ze(tt,xt,ot[xt]);return tt},Tt=(tt,ot)=>Ee(tt,Mt(ot));const{useForm:zt}=z.default,St={width:280,marginRight:10},pt={labelCol:{span:5},wrapperCol:{span:19}};var dt=({callback:tt,onCancel:ot})=>{const[xt]=zt();let Me=(0,Se.useRef)();function _e(ct){Me.current.width=xt.getFieldValue("width"),Me.current.align=xt.getFieldValue("align"),tt(ct,Me.current)}function Ve(ct,ke){if(ct.status===-1){it.ZP.error(ct.message);return}xt.setFieldsValue({src:`/api/attachments/${ct.id}`,type:ke.type})}function ue(ct){let ke=ct.target.files[0];Me.current=ke,Lt(ke,Ve)}return he.createElement(z.default,Tt(wt({form:xt},pt),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ve.default,{style:St})),he.createElement(He,{onFileChange:ue}))),he.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ve.default,{style:{width:264}})),he.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(Qe.Z,null,he.createElement(z.default.Item,{name:"width",style:{margin:0}},he.createElement(be.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(Ie.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),he.createElement("aside",null,he.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Te.ZP,{type:"default",onClick:ot},"\u53D6\u6D88"))))};function He({onFileChange:tt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:tt}))}function Lt(tt,ot){if(!tt)throw new String("\u6CA1\u6709\u6587\u4EF6");let xt=new FormData;xt.append("editormd-image-file",tt),xt.append("file_param_name","editormd-image-file"),xt.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(_e){ot(JSON.parse(_e.target.responseText),tt)},!1),Me.addEventListener("error",function(_e){console.error(_e)},!1),Me.open("POST",`${qe.KI}/api/attachments.json`),Me.send(xt)}},88487:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return ve}});var z=re(59301),it=re(4676);class ve extends z.Component{constructor(be){super(be);const Ie=window.document;this.node=Ie.createElement("div"),Ie.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,it.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(fn,_t,re){"use strict";re.d(_t,{SV:function(){return jt},ZP:function(){return Et}});var z=re(59301),it=re(76374);const ve={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Qe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(` `)},{label:"System.out.println",content:["System.out.println($0)"].join(` `)},{label:"System.out.print",content:["System.out.print($0)"].join(` `)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},be={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(` `)},{label:"if",content:["if () {"," $0","}"].join(` `)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(` `)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(` `)},{label:"using namespace std",content:["using namespace std"].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Ie={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},Te={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var qe=re(53184),Se=re.n(qe),he=(Ne,Vt,yt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(yt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(yt.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((yt=yt.apply(Ne,Vt)).next())});const Xe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ee=(Ne,Vt,yt,ae)=>{const te=Vt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:yt.lineNumber,endColumn:yt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Ne.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Mt=(Ne,Vt,yt,ae)=>{Ne.languages.registerCompletionItemProvider(Vt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ee(Ne,te,ee,se),...yt.map(Ce=>({label:Ce,kind:Ne.languages.CompletionItemKind.Keyword,documentation:Ce,insertText:Ce,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Ce=>({label:Ce.label,kind:Ne.languages.CompletionItemKind.Snippet,documentation:Ce.content,insertText:ne.startsWith("#")?Ce.content.replace(/#/,""):Ce.content,insertTextRules:Ne.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Je=Ne=>{Xe.languages.forEach(Vt=>{Ne.languages.registerDocumentFormattingEditProvider(Vt,{provideDocumentFormattingEdits(yt){return he(this,null,function*(){const ae=Se()(yt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:yt.getFullModelRange(),text:ae}]})}})}),Mt(Ne,"java",Qe.keywords,Qe.quickKey),Mt(Ne,"cpp",be.keywords,be.quickKey),Mt(Ne,"c",ve.keywords,[]),Mt(Ne,"python",Ie.keywords,Ie.quickKey),Mt(Ne,"scala",Te.keywords,Te.quickKey)};const Fe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ge=Object.defineProperty,ze=(Ne,Vt,yt)=>Vt in Ne?Ge(Ne,Vt,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Ne[Vt]=yt,wt=(Ne,Vt,yt)=>ze(Ne,typeof Vt!="symbol"?Vt+"":Vt,yt);const Tt=class $s{constructor(Vt,yt,ae){this.placeholder=Vt,this.editor=yt,this.monaco=ae,yt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};wt(Tt,"ID","editor.widget.placeholderHint");var St=Tt,pt=re(96236),dt=re(6767),He=re(25399),Lt=re(78267),tt=re(33156),ot=re(56102),xt=Object.defineProperty,Me=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,ke=(Ne,Vt,yt)=>Vt in Ne?xt(Ne,Vt,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Ne[Vt]=yt,nt=(Ne,Vt)=>{for(var yt in Vt||(Vt={}))ue.call(Vt,yt)&&ke(Ne,yt,Vt[yt]);if(Ve)for(var yt of Ve(Vt))ct.call(Vt,yt)&&ke(Ne,yt,Vt[yt]);return Ne},Ft=(Ne,Vt)=>Me(Ne,_e(Vt)),xe=(Ne,Vt)=>{var yt={};for(var ae in Ne)ue.call(Ne,ae)&&Vt.indexOf(ae)<0&&(yt[ae]=Ne[ae]);if(Ne!=null&&Ve)for(var ae of Ve(Ne))Vt.indexOf(ae)<0&&ct.call(Ne,ae)&&(yt[ae]=Ne[ae]);return yt},fe=(Ne,Vt,yt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(yt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(yt.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((yt=yt.apply(Ne,Vt)).next())});function Ct(Ne){return/^\d+$/.test(Ne)?`${Ne}px`:Ne}function Ut(){}let Pt=!1;const me={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Be(Ne=[]){let Vt=Ne;if(Array.isArray(Ne)){for(let yt=0;ytfe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ne){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ne)}});var Et=Ne=>{var Vt=Ne,{width:yt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:Ce,isCopy:mt=!1,onSave:Oe,autoHeight:Ue=!1,forbidCopy:ft=!1,forbidCopyTips:Ot,onChange:vt=Ut,editorDidMount:Jt=Ut,onFocus:Yt=Ut,onBreakPoint:Gt=Ut,breakPointValue:sn=[],filename:nn="educoder.txt",errorLine:dn,errorContent:kt="",highlightLine:on,openBreakPoint:Kt=!1,placeholder:Le="",showMiniMap:st=!0}=Vt,$t=xe(Vt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Wt=(0,z.useRef)(),De=(0,z.useRef)({}),Ke=(0,z.useRef)(),gt=(0,z.useRef)(),Bt=(0,z.useRef)([]),Qt=(0,z.useRef)(!1),mn=(0,z.useRef)(),Dn=(0,z.useRef)(),Mn=(0,z.useRef)(!1),[cn,En]=(0,z.useState)(!1);function vn(){let Nt;return Wt.current&&(Nt=new it.Z(qt=>{for(let In of qt)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&De.current.instance.layout()}),Nt.observe(Wt.current)),Nt}function Xt(){dt.ZP.warning({content:decodeURIComponent(Ot||Fe),key:"monaco-editor-tip"})}const Rt=()=>{let Nt=De.current.instance;if(te!=null&&Nt&&cn){const qt=Nt.getModel();qt&&te!==qt.getValue()&&(Pt=!0,qt.setValue(te),Nt.layout(),Pt=!1)}};(0,z.useEffect)(()=>{const Nt=tt.Z.subscribe("formatDocument",qt=>{var In;let xn=De.current.instance;(In=xn==null?void 0:xn.getAction)==null||In.call(xn,"editor.action.formatDocument").run()});return window.updateMonacoValue=qt=>{vt(qt)},Nt},[]),(0,z.useEffect)(()=>{var Nt;let qt=De.current.instance;gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{Rt()},500),te&&(te!=null&&te.length)&&((Nt=qt==null?void 0:qt.updateOptions)==null||Nt.call(qt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,cn,De.current]),(0,z.useEffect)(()=>{if(dn&&De.current&&De.current.instance){let qt=De.current.instance;qt.changeViewZones(function(In){var xn=document.createElement("div");xn.style.padding="10px 20px",xn.style.width="calc(100% - 20px)",xn.className="my-error-line-wrp",xn.innerHTML=kt,In.addZone({afterLineNumber:dn||11,heightInLines:3,domNode:xn})});var Nt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};qt.addOverlayWidget(Nt),qt.revealPositionInCenter({lineNumber:20,column:1})}},[dn,De.current,cn]);const At=(Nt="",qt)=>{if(!Nt||Nt.trim()==="")return!0;const xn=De.current.instance.getModel().getLineTokens(qt);let Ae=!1;for(let rt=0;rt<2;rt++)xn.getStandardTokenType(rt)===1&&(Ae=!0);return Ae};(0,z.useEffect)(()=>{var Nt;const qt=(Nt=De.current)==null?void 0:Nt.instance;if(qt&&cn&&ft){const In=qt.onDidBlurEditorWidget(()=>{Mn.current=!1}),xn=qt.onDidFocusEditorText(()=>{Mn.current=!0});return()=>{In.dispose(),xn.dispose()}}},[De.current,cn,ft]),(0,z.useEffect)(()=>{var Nt;if((Nt=De.current)!=null&&Nt.instance&&cn&&Kt){let qt=De.current.instance,In=qt.getModel();if(!In)return;(()=>{var lt;let We=[],Ze=[];const ut=In.getAllDecorations();for(let en of ut)en.options.className==="highlighted-line"&&(We.push((lt=en==null?void 0:en.range)==null?void 0:lt.startLineNumber),Ze.push(en==null?void 0:en.id));if(on===We[0])return;In.deltaDecorations(Ze,[]);const un=In.getLineCount();on&&on<=un&&(qt.deltaDecorations([],[{range:new Re.Range(on,1,on,In.getLineMaxColumn(on)),options:{isWholeLine:!0,className:"highlighted-line"}}]),qt.revealLineInCenter(on))})();const Ae=(lt=!1)=>{var We;let Ze=[],ut=[];const un=In.getAllDecorations();for(let en of un)en.options.linesDecorationsClassName==="breakpoints-select"&&(Ze.push((We=en==null?void 0:en.range)==null?void 0:We.startLineNumber),ut.push(en==null?void 0:en.id));if(lt)return{lines:Ze,ids:ut};Gt(Ze)},rt=lt=>fe(void 0,null,function*(){let We={range:new Re.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield In.deltaDecorations([],[We]),Ae()}),we=lt=>fe(void 0,null,function*(){let We=[];const Ze=qt.getLineDecorations(lt);for(let ut of Ze)ut.options.linesDecorationsClassName==="breakpoints-select"&&We.push(ut.id);yield In.deltaDecorations(We,[]),Ae()}),$e=lt=>{let We=qt.getLineDecorations(lt);for(let Ze of We)if(Ze.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Lt.isEqual)(sn,Ae(!0).lines)){In.deltaDecorations(Ae(!0).ids,[]);const lt=sn.map(We=>({range:new Re.Range(We,1,We,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));In.deltaDecorations([],lt)}const Pe=qt.onDidChangeModelContent(lt=>{let We=qt.getPosition();if(We){let Ze=We.lineNumber;clearTimeout(Dn.current),Dn.current=setTimeout(()=>{At(In.getLineContent(Ze),Ze)?we(Ze):$e(Ze)?(we(Ze),rt(Ze)):Ae()},100)}}),je=qt.onMouseDown(lt=>{var We,Ze,ut;if(lt.target.detail&&((ut=(Ze=(We=lt.target)==null?void 0:We.element)==null?void 0:Ze.className)!=null&&ut.includes("line-numbers"))){let un=lt.target.position.lineNumber;if(At(In.getLineContent(un),un))return;$e(un)?we(un):rt(un)}}),ye=lt=>{let We={range:new Re.Range(lt,1,lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Bt.current=qt.deltaDecorations(Bt.current,[We])},et=()=>{Bt.current=qt.deltaDecorations(Bt.current,[])},at=qt.onMouseMove(lt=>{var We,Ze,ut;if(et(),lt.target.detail&&((ut=(Ze=(We=lt.target)==null?void 0:We.element)==null?void 0:Ze.className)!=null&&ut.includes("line-numbers"))){let un=lt.target.position.lineNumber;if(At(In.getLineContent(un),un))return;ye(un)}}),bt=qt.onMouseLeave(()=>{et()});return()=>{Pe.dispose(),je.dispose(),at.dispose(),bt.dispose()}}},[De.current,cn,sn,on,Kt,ee]),(0,z.useEffect)(()=>{var Nt;(Nt=De.current)!=null&&Nt.instance&&Kt&&De.current.instance.setPosition({lineNumber:0,column:0})},[on]);function It(){let Nt=De.current.instance;if(Nt){const qt=Nt.getSelection(),In=De.current.pastePos||{},xn=new Re.Range(In.startLineNumber||qt.endLineNumber,In.startColumn||qt.endColumn,In.endLineNumber||qt.endLineNumber,In.endColumn||qt.endColumn);setTimeout(()=>{Nt.executeEdits("",[{range:xn,text:""}])},300)}}function an(Nt){(window.navigator.platform.match("Mac")?Nt.metaKey:Nt.ctrlKey)&&Nt.keyCode==83&&(Nt.preventDefault(),Oe())}const tn=()=>{if(Ue&&De.current.instance){const Nt=De.current.instance.getContentHeight();Jn(Nt{if(!Mn.current)return;const{keyCode:qt,ctrlKey:In,metaKey:xn,target:Ae,type:rt}=Nt;return(rt==="paste"||(qt===67||qt===86)&&(xn||In))&&Ae.nodeName==="TEXTAREA"&&(Xt(),Nt.preventDefault()),!1};function Pn(Nt,qt){var In=window.URL||window.webkitURL||window,xn=new Blob([qt]),Ae=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ae.href=In.createObjectURL(xn),Ae.download=Nt,rn(Ae)}(0,z.useEffect)(()=>{tn()},[tn]),(0,z.useEffect)(()=>{Wt.current&&!cn&&Promise.all([re.e(8909),re.e(5977)]).then(re.bind(re,71448)).then(Nt=>{try{Re=Nt,De.current.instance=Re.editor.create(Wt.current,{value:te,language:Be(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:st||!1}},ne);const qt=De.current.instance;let Ae=[...pt.BH._menuItems].find(Pe=>Pe[0]._debugName=="EditorContext")[1],rt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],we=(Pe,je)=>{var ye,et;let at=Pe._first;do je.includes((et=(ye=at.element)==null?void 0:ye.command)==null?void 0:et.id)&&Pe._remove(at);while(at=at.next)};if(Jt(qt,Re),setTimeout(()=>{tn(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(nn||"educoder.txt",qt.getValue())}})},500),De.current.subscription=qt.onDidChangeModelContent(Pe=>{Qt.current?clearTimeout(mn.current):(tn(),vt(qt.getValue(),Pe)),mn.current=setTimeout(()=>{Qt.current=!1},500)}),window.Monaco||Je(Re,Be(ee)),ft&&(we(Ae,rt),Wt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Sn),window.removeEventListener("paste",Sn),window.addEventListener("keydown",Sn),window.addEventListener("paste",Sn)),window.Monaco=Re,Ce&&qt.onDidBlurEditorWidget(()=>{Ce(qt.getValue())}),Yt&&qt.onDidFocusEditorText(()=>{ft&&Dt(),Yt(qt.getValue())}),ft){Dt();try{qt.onDidPaste(Pe=>{const je=qt.getSelection(),ye=De.current.pastePos||{},et=new Re.Range(ye.startLineNumber||je.endLineNumber,ye.startColumn||je.endColumn,ye.endLineNumber||je.endLineNumber,ye.endColumn||je.endColumn);qt.executeEdits("",[{range:Pe.range,text:""}])})}catch(Pe){}}let $e=vn();return Le&&typeof Le=="string"&&new St(Le,qt,Re),En(!0),()=>{const Pe=De.current.instance;Pe.dispose();const je=Pe.getModel();je&&je.dispose(),De.current.subscription&&De.current.subscription.dispose(),$e.unobserve(Wt.current)}}catch(qt){}})},[]),(0,z.useEffect)(()=>{if(De.current.instance&&cn)return document.addEventListener("keydown",an,!1),()=>{document.removeEventListener("keydown",an)}},[Oe,cn]),(0,z.useEffect)(()=>{let Nt=De.current.instance;if(Nt&&cn){let qt=Be(ee);Re.editor.setModelLanguage(Nt.getModel(),qt)}},[ee,cn]),(0,z.useEffect)(()=>{De.current.instance&&cn&&Re.editor.setTheme(pe)},[pe,cn]),(0,z.useEffect)(()=>{let Nt=De.current.instance;Ke.current=se,Nt&&cn&&(Nt.updateOptions(nt({},se)),setTimeout(()=>{Nt.getModel().updateOptions(nt({},se))},200))},[JSON.stringify(se),cn]),(0,z.useEffect)(()=>{let Nt=De.current.instance;Nt&&cn&&Nt.layout()},[yt,ae,cn]);const[On,Rn]=(0,z.useState)(Ct(yt)),[Ln,Jn]=(0,z.useState)(Ct(ae)),_n=Ft(nt({},oe),{width:On,height:Ln,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:Wt,style:_n,onFocus:()=>{ft&&Dt()}},mt&&z.createElement(ot.CopyToClipboard,{text:te,onCopy:()=>dt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(He.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function jt({width:Ne="100%",height:Vt="100%",original:yt,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,ne]=(0,z.useState)(null);function pe(Ue){let ft;return oe.current&&(ft=new it.Z(Ot=>{for(let vt of Ot)(vt.target.offsetHeight>0||vt.target.offsetWidth>0)&&Ue.layout()}),ft.observe(oe.current)),ft}(0,z.useEffect)(()=>(oe.current&&Promise.all([re.e(8909),re.e(9404)]).then(re.bind(re,2550)).then(Ue=>{Re=Ue;const ft=Re.editor.createDiffEditor(oe.current,Ft(nt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(ft);let Ot=pe(ft);return()=>{ft.dispose();const vt=ft.getModel();vt&&vt.dispose(),Ot.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:Re.editor.createModel(yt,te),modified:Re.editor.createModel(ae,te)})},[yt,ae,te,se]);const Ce=Ct(Ne),mt=Ct(Vt),Oe={width:Ce,height:mt};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Oe})}},54077:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Xe}});var z={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},it=re(29787),ve=re(25399),Qe=re(89787),be=re(92310),Ie=re.n(be),Te=re(76406),qe=re(90736),Se=re(59301),Xe=({className:Ee,dataSource:Mt=[],col:Je=4,right:Fe,bottom:Ge=23,precision:ze=0,wrapWidth:wt=1200,trackEventItems:Tt,loading:zt,onRemove:St=()=>{},isCurrent:pt=!0,showProgress:dt=!1,showAlias:He=!1,category:Lt="notDisplay",hiddenClick:tt=()=>{}})=>{const ot=Math.floor((wt-(Je-1)*Fe)/Je),xt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Se.createElement(it.Z,{spinning:zt},Se.createElement("div",{className:Ie()(z.list,Ee)},!!(Mt!=null&&Mt.length)&&(Mt==null?void 0:Mt.map((Me,_e)=>{var Ve,ue,ct,ke,nt,Ft,xe;const{name:fe,id:Ct,identifier:Ut,featured:Pt,school_name:me,image_url:Be,excellent:Re,is_plan:Dt}=Me;return Se.createElement("div",{key:Ct,className:pt&&dt?z.wrapisCurrent:z.wrap,style:{width:ot,marginRight:(1+_e)%Je===0?0:Fe+ze,marginBottom:Ge}},Se.createElement("a",{className:z.li,onClick:Et=>{Et.preventDefault(),Et.stopPropagation(),Tt&&(0,Te.L9)([Tt]),(0,Te.xg)(`/paths/${Ut}`)}},Se.createElement("div",{className:z.img},Se.createElement("img",{className:z.cover,src:`${Be}`}),(Ve=Me==null?void 0:Me.subject_tags)==null?void 0:Ve.map((Et,jt)=>{var Ne,Vt;if(jt===0){const ae=(Ne=xt.find(te=>te.name==Et))==null?void 0:Ne.swclass;return Se.createElement("span",{className:`sprite ${ae} ${z.sign}`,style:{left:"-4px"}})}const yt=(Vt=xt.find(ae=>ae.name==Et))==null?void 0:Vt.ptclass;return Se.createElement("span",{className:`sprite ${yt} ${z.sign}`,style:{left:`${48+52*(jt-1)+2*jt}px`}})}),Se.createElement("div",{className:z.tagsDom},Se.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Me==null?void 0:Me.excellent)&&Se.createElement("div",{className:z.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Me==null?void 0:Me.custom_tags)==null?void 0:ue.length)>0&&(Me==null?void 0:Me.custom_tags.map((Et,jt)=>{var Ne;return Se.createElement(ve.Z,{title:Et==null?void 0:Et.tag_name,key:jt},Se.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Ne=Me==null?void 0:Me.custom_tags)==null?void 0:Ne.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Se.createElement("span",{className:"multi-llipsis1e"},Et==null?void 0:Et.tag_name)))})))),Lt=="hide"&&(Me==null?void 0:Me.studying)&&pt&&Se.createElement("div",{className:`${z.movebq} user-path-items`,onClick:Et=>{Et.stopPropagation(),St(Me)}},Se.createElement("i",{className:"iconfont icon-yichu1 font12"}),Se.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(Lt)&&pt&&Se.createElement("div",{className:`${z.hiddenbq} user-path-items`,onClick:Et=>{Et.stopPropagation(),tt(Me)}},Se.createElement("i",{className:`iconfont ${Lt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Se.createElement("span",null,Lt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Se.createElement("div",{className:z.name},Se.createElement(ve.Z,{title:He&&(Me!=null&&Me.excellent_alias_name)?Se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${fe}`,Se.createElement("br",null),Se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Me==null?void 0:Me.excellent_alias_name}`)):fe},Se.createElement("span",{className:z.e},He&&(Me==null?void 0:Me.excellent_alias_name)||fe))),pt&&dt&&((ct=Me==null?void 0:Me.progress)==null?void 0:ct.all_score)!=0&&Se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Se.createElement(Qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((ke=Me==null?void 0:Me.progress)==null?void 0:ke.my_score)/((nt=Me==null?void 0:Me.progress)==null?void 0:nt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ft=Me==null?void 0:Me.progress)==null?void 0:Ft.my_score,"/",(xe=Me==null?void 0:Me.progress)==null?void 0:xe.all_score),(!pt||!dt)&&Se.createElement(ve.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${me}`},Se.createElement("div",{className:z.unit},Se.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),me)),(!pt||!dt)&&Se.createElement("div",{className:z.tags},Se.createElement("div",null,Se.createElement(ve.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Se.createElement("span",null,Se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Se.createElement("span",null,Me.stages_count))),Se.createElement(ve.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,Me.members_count)))))))})),!Mt.length&&Se.createElement(qe.Z,null)))}},70467:function(fn,_t,re){"use strict";re.d(_t,{jL:function(){return Qe},w9:function(){return fe},QD:function(){return sn},cQ:function(){return _e.Z},op:function(){return ft},O5:function(){return vn},_b:function(){return Le},t7:function(){return ze},Gi:function(){return Re},YG:function(){return me},qp:function(){return he},vr:function(){return kt},qE:function(){return Jt},Je:function(){return zt},wb:function(){return Me},cq:function(){return yt},tp:function(){return Mt}});var z=re(59301),it={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"},Qe=({dataSource:Xt=[],img:Rt,imgWidth:At=346,title:It,sunTitle:an,bannerExtraContent:tn})=>z.createElement("div",{className:it.banner},z.createElement("div",{className:it.content},z.createElement("aside",null,z.createElement("p",null,z.createElement("b",null,It),z.createElement("span",null,an)),Xt.length>0&&z.createElement("div",{className:it.btns},Xt.map((rn,Sn)=>z.createElement("div",{key:Sn,onClick:rn.click},rn.name,rn.sign?z.createElement("span",{className:"sprite sprite-33"}):null))),tn),Rt&&z.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:At}))),be={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"},Ie=re(92310),Te=re.n(Ie),qe=re(78267),he=({dataSource:Xt=[],value:Rt,onChange:At,onTitleChange:It,className:an,title:tn,titleWidth:rn=41,style:Sn={},fontColor:Pn="#6A7283",showCount:On})=>{const[Rn,Ln]=(0,z.useState)(1),[Jn,_n]=(0,z.useState)(!1),Nt=(0,z.useRef)(null),qt=(0,z.useRef)(null);return(0,z.useEffect)(()=>{var In;Xt.length!==0&&(((In=Nt==null?void 0:Nt.current)==null?void 0:In.clientHeight)>97?Ln(1):Ln(0)),Xt.length===0&&Ln(0),_n(!1)},[Xt]),z.createElement("div",{className:Te()(be.row,an,"fadeIn","animated"),style:Sn},z.createElement("div",{onClick:(0,qe.throttle)(()=>It==null?void 0:It(),2e3),style:{width:rn,marginTop:Jn?12:4},className:`${be.title} ${It?"current":""}`},tn),z.createElement("div",{className:Jn?`${be.tagsWrap} ${be.tagsBorderWrap}`:be.tagsWrap},z.createElement("div",{className:be.bar,ref:qt,style:Rn>0?{height:Rn===1?97:"auto",overflow:Rn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},z.createElement("div",{className:be.tag,ref:Nt},Xt==null?void 0:Xt.map(In=>z.createElement("span",{onClick:()=>At(In.id),key:In.id,style:{color:Pn},className:Rt===In.id?be.active:""},z.createElement("span",{title:In.name,className:be.name},In.name),!!On&&z.createElement("span",{className:be.num},In.count))))),!!Rn&&z.createElement(z.Fragment,null,Rn===1?z.createElement("div",{onClick:()=>{var In;Ln(2),((In=Nt==null?void 0:Nt.current)==null?void 0:In.clientHeight)>245?_n(!0):_n(!1)},className:be.action},"\u5C55\u5F00",z.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):z.createElement("div",{onClick:()=>{qt.current.scrollTop=0,Ln(1),_n(!1)},className:be.action},"\u6536\u8D77",z.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Xe={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"},Mt=({dataSource:Xt=[],value:Rt,onChange:At,className:It,style:an={}})=>z.createElement("div",{style:an,className:Te()(Xe.tabs,It)},Xt.map(tn=>z.createElement("span",{onClick:()=>At(tn.id),className:Rt===tn.id?Xe.active:"",key:tn.id},tn.name))),Je={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"},Fe=re(37568),ze=({dataSource:Xt=[],value:Rt="",onChange:At,onInputChange:It=()=>{},className:an,style:tn={},placeholder:rn,allowClear:Sn=!1})=>{var Pn;const[On,Rn]=(0,z.useState)(""),[Ln,Jn]=(0,z.useState)("");(0,z.useEffect)(()=>{var qt;let In=Rt;(qt=JSON.stringify(Rt))!=null&&qt.includes("{")&&(Rn(Rt.id),In=Rt.value||"");try{Jn(decodeURIComponent(In||""))}catch(xn){Jn(decodeURIComponent(In||""))}},[Rt]);const _n=()=>{At(encodeURIComponent(Ln),On||null)},Nt=qt=>{qt!==On&&(Rn(qt),At(encodeURIComponent(Ln),qt))};return z.createElement("div",{className:Te()(Je.input,an),style:tn},!!Xt.length&&z.createElement("div",{className:Je.dropdown},z.createElement("div",{className:Je.text},(Pn=Xt.find(qt=>qt.id===On))==null?void 0:Pn.name,z.createElement("i",{className:"iconfont icon-zhankai4"}),z.createElement("b",{className:Je.b1}),z.createElement("b",{className:Je.b2})),z.createElement("div",{className:Je.menu},Xt.map((qt,In)=>z.createElement("div",{key:In,onClick:()=>Nt(qt.id)},qt.name)))),z.createElement(Fe.default,{onPressEnter:_n,value:Ln,onChange:qt=>{Jn(qt.target.value),It(encodeURIComponent(qt.target.value),On||null)},placeholder:rn,variant:"borderless",allowClear:Sn,onClear:()=>At("",On||null)}),z.createElement("i",{onClick:_n,className:"iconfont icon-sousuo9 font14 current"}))},wt={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"},zt=({value:Xt,onChange:Rt,className:At,total:It,pageSize:an,style:tn={}})=>{const rn=Xt<2,Sn=Xt>=Math.ceil(It/an);return It<=an?z.createElement(z.Fragment,null):z.createElement("div",{className:Te()(wt.quickPager,At),style:tn},z.createElement("div",{onClick:()=>{rn||Rt(Xt-1,"prev")},className:rn?wt.disabled:""},"\u4E0A\u4E00\u9875"),z.createElement("div",{onClick:()=>{Sn||Rt(Xt+1,"next")},className:Sn?wt.disabled:""},"\u4E0B\u4E00\u9875"))},St={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"},pt=re(29787),dt=re(25399),He=re(63139),Lt=re(14185),tt=re(76406),ot=re(90736),Me=({className:Xt,dataSource:Rt=[],col:At=4,right:It,bottom:an=23,precision:tn=0,wrapWidth:rn=1200,trackEventItems:Sn,loading:Pn})=>{const On=Math.floor((rn-(At-1)*It)/At);return z.createElement(pt.Z,{spinning:Pn},z.createElement("div",{className:Te()(St.list,Xt)},!!Rt.length&&Rt.map((Rn,Ln)=>{const{name:Jn,id:_n,identifier:Nt,power:qt,cover_image_id:In,pic:xn}=Rn;return z.createElement("div",{className:St.wrap,key:_n,style:{width:On,marginRight:(1+Ln)%At===0?0:It+tn,marginBottom:an}},z.createElement("a",{target:"_blank",href:`/shixuns/${Nt}/challenges`,className:St.li,onClick:Ae=>{Ae.preventDefault(),Sn&&(0,tt.L9)([Sn]),qt&&(0,tt.xg)(`/shixuns/${Nt}/challenges`)}},z.createElement("div",{className:St.img},z.createElement("img",{className:St.cover,src:`${xn}`}),Rn.is_jupyter&&z.createElement("span",{className:`sprite sprite-43 ${St.sign}`}),Rn.is_jupyter_lab&&z.createElement("span",{className:`sprite sprite-42 ${St.sign}`}),Rn.is_unity_3d&&z.createElement("span",{className:`sprite sprite-44 ${St.sign}`})),z.createElement("div",{className:St.name},z.createElement(dt.Z,{title:Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},z.createElement("span",{className:St.e},Jn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),z.createElement("div",{className:St.tags},z.createElement(dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),z.createElement("span",null,Rn.challenges_count))),!!Rn.myshixuns_count&&z.createElement(dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),z.createElement("span",null,Rn.myshixuns_count))),z.createElement(dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},z.createElement("span",null,z.createElement("span",null,Rn.level))),z.createElement("div",{className:St.rate},z.createElement(He.Z,{allowHalf:!0,disabled:!0,defaultValue:Rn.score_info}),z.createElement("span",null,"\xA0",Rn.score_info?`${Rn.score_info}\u5206`:"5\u5206")))),!qt&&z.createElement("div",{className:St.lockWrap},z.createElement("img",{src:`${Lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),z.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&z.createElement(ot.Z,null)))},_e=re(54077),Ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue=re(62957),ct=re(96599),ke="data:image/png;base64,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",nt=re(59301),Ft=(Xt,Rt,At)=>new Promise((It,an)=>{var tn=Pn=>{try{Sn(At.next(Pn))}catch(On){an(On)}},rn=Pn=>{try{Sn(At.throw(Pn))}catch(On){an(On)}},Sn=Pn=>Pn.done?It(Pn.value):Promise.resolve(Pn.value).then(tn,rn);Sn((At=At.apply(Xt,Rt)).next())}),fe=({className:Xt,dataSource:Rt=[],col:At=4,right:It,bottom:an=23,precision:tn=0,wrapWidth:rn=1200,trackEventItems:Sn,loading:Pn,category:On,hiddenClick:Rn,handleVery:Ln=()=>!0,isCurrent:Jn})=>{const[_n,Nt]=ue.default.useModal(),qt=Math.floor((rn-(At-1)*It)/At),In=xn=>Ft(void 0,null,function*(){_n.confirm({title:"\u7F6E\u9876",width:500,content:nt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",nt.createElement("span",{className:"c-blue"},"\u201C",xn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return nt.createElement(pt.Z,{spinning:Pn},Nt,nt.createElement("div",{className:Te()(Ve.list,Xt)},!!Rt.length&&Rt.map((xn,Ae)=>{const{subject_identifier:rt,id:we,identifier:$e,power:Pe}=xn,je=xn.is_public!=0&&xn.is_public;return nt.createElement("div",{className:Ve.wrap,key:we,style:{width:qt,marginRight:(1+Ae)%At===0?0:It+tn,marginBottom:an}},xn.homepage_show&&nt.createElement("div",{className:Ve.btnsTop},nt.createElement(ct.default,{color:"red"},"\u7F6E\u9876")),nt.createElement("a",{className:Ve.li,onClick:ye=>{ye.preventDefault(),Ln(xn==null?void 0:xn.first_category_url)&&(Sn&&(0,tt.L9)([Sn]),(0,tt.xg)(xn.first_category_url))}},nt.createElement("div",{className:Ve.top},nt.createElement(dt.Z,{title:xn.name},nt.createElement("div",{className:Ve.name},xn.name)),nt.createElement("img",{className:Ve.img,src:Lt.Z.IMG_SERVER+"/images/"+xn.avatar_url}),nt.createElement("div",{className:Ve.text,title:xn.creator},xn.creator),rt&&nt.createElement("div",{className:Ve.btns},nt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),nt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),je&&nt.createElement("div",{className:Ve.sign},"\u516C\u5F00"),Jn&&nt.createElement("div",{className:Ve.hidden,onClick:ye=>{ye.stopPropagation(),Rn(xn)}},nt.createElement("i",{className:`iconfont ${On=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),On=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),nt.createElement("div",{className:Ve.bottom},xn.visits>0&&nt.createElement(dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-liulanyan"}),nt.createElement("span",null,xn.visits))),xn.course_members_count>0&&nt.createElement(dt.Z,{title:"\u6210\u5458",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-chengyuan"}),xn.course_members_count)),xn.tasks_count>0&&nt.createElement(dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-zuoye"}),xn.tasks_count)),xn.is_end?nt.createElement("div",{style:{color:"#6B758B"}}):nt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!xn.is_accessible&&nt.createElement("div",{className:Ve.lockWrap},nt.createElement("img",{src:`${Lt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),nt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&nt.createElement(ot.Z,null)))},Ct={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"},Ut=re(44283),me=({dataSource:Xt=[],value:Rt,onChange:At,className:It,style:an={},tabBarExtraContent:tn})=>z.createElement("div",{className:Te()(Ct.tabs,It),style:an},z.createElement("div",{className:Ct.tabsWrap},Xt.map((rn,Sn)=>!(rn!=null&&rn.hide)&&z.createElement("aside",{className:Ct.tab,onClick:()=>{At(rn.id),rn.link&&Ut.history.push(rn.link)},key:Sn},z.createElement("div",{className:Rt===rn.id?Ct.active:""},rn.name),(rn==null?void 0:rn.resetCount)==null&&(rn==null?void 0:rn.total)!==void 0&&z.createElement("span",null,"\uFF08",rn==null?void 0:rn.total,"\uFF09"),(rn==null?void 0:rn.resetCount)!==void 0&&(rn==null?void 0:rn.total)!==void 0&&z.createElement(dt.Z,{title:(rn==null?void 0:rn.tip)!=null?rn==null?void 0:rn.tip:""},z.createElement("span",{style:{color:"#9096A3"}},"\uFF08",z.createElement("span",{style:{color:"#000"}},rn==null?void 0:rn.resetCount),"/",z.createElement("span",null,rn==null?void 0:rn.total),"\uFF09"))))),z.createElement("div",{className:Ct.tabBar},tn)),Re=({className:Xt,style:Rt={},children:At})=>z.createElement("div",{className:Te()(Xt),style:Rt},At),Dt={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"},Et=re(75727),jt=re(93041);const Ne=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var yt=({sortValue:Xt,dropValue:Rt,className:At,onSort:It,onDrop:an,dataSource:tn=Ne})=>{var rn;return z.createElement("div",{className:Te()(Dt.orderWrap,At)},z.createElement(Et.Z,{dropdownRender:()=>z.createElement(jt.default,null,tn.map((Sn,Pn)=>z.createElement(jt.default.Item,{key:Pn,onClick:()=>an(Sn.id)},Sn.name)))},z.createElement("span",{className:Dt.orderTextWrap},(rn=tn.find(Sn=>Rt===Sn.id))==null?void 0:rn.name)),z.createElement("span",{className:Dt.orderIconWrap},z.createElement("span",{className:Dt.orderAsc},z.createElement("i",{className:Xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dt.cursorPointer}`,onClick:()=>It(Xt==="asc"?"desc":"asc")})),z.createElement("span",{className:Dt.orderDesc},z.createElement("i",{className:Xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer} ${Dt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dt.cursorPointer}`,onClick:()=>It(Xt==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},te=re(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,pe=(Xt,Rt,At)=>Rt in Xt?ee(Xt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Xt[Rt]=At,Ce=(Xt,Rt)=>{for(var At in Rt||(Rt={}))se.call(Rt,At)&&pe(Xt,At,Rt[At]);if(oe)for(var At of oe(Rt))ne.call(Rt,At)&&pe(Xt,At,Rt[At]);return Xt},mt=(Xt,Rt)=>{var At={};for(var It in Xt)se.call(Xt,It)&&Rt.indexOf(It)<0&&(At[It]=Xt[It]);if(Xt!=null&&oe)for(var It of oe(Xt))Rt.indexOf(It)<0&&ne.call(Xt,It)&&(At[It]=Xt[It]);return At},Oe=(Xt,Rt,At)=>new Promise((It,an)=>{var tn=Pn=>{try{Sn(At.next(Pn))}catch(On){an(On)}},rn=Pn=>{try{Sn(At.throw(Pn))}catch(On){an(On)}},Sn=Pn=>Pn.done?It(Pn.value):Promise.resolve(Pn.value).then(tn,rn);Sn((At=At.apply(Xt,Rt)).next())}),ft=Xt=>{var Rt=Xt,{className:At,style:It,children:an,loading:tn=!1,openLoading:rn,onClick:Sn=()=>{},size:Pn="middle",shape:On="round"}=Rt,Rn=mt(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ln,Jn]=(0,z.useState)(!1);return z.createElement(te.ZP,Ce({onClick:(0,qe.throttle)(_n=>Oe(void 0,null,function*(){rn&&Jn(!0);try{yield Sn(_n)}catch(Nt){console.log("error",Nt)}rn&&Jn(!1)}),2e3,{leading:!0,trailing:!1}),className:Te()(ae.btn,ae[`${Pn}-${On}`],At),style:It,size:Pn,shape:On,loading:Ln||tn},Rn),an)},Ot={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"},Jt=({className:Xt,style:Rt,children:At=null,onClick:It,title:an})=>z.createElement("div",{className:Te()(Ot.head,Xt),style:Rt},z.createElement("span",{className:"primary-hover",onClick:It},z.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),z.createElement("b",{title:an},an),z.createElement("div",{className:Ot.node},At)),Yt={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"},sn=({confirmShow:Xt=!0,confirmTitle:Rt,confirmClick:At,cancelShow:It=!0,cancelTitle:an,cancelClick:tn,className:rn,style:Sn,confirmLoading:Pn=!1})=>z.createElement("div",{className:Te()(Yt.btns,rn),style:Sn},Xt&&z.createElement(te.ZP,{loading:Pn,onClick:At,type:"primary",className:Yt.confirm},Rt),It&&z.createElement(te.ZP,{onClick:tn,className:Yt.cancel},an)),nn={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"},kt=({className:Xt,style:Rt={},LeftContent:At,children:It,RightContent:an})=>z.createElement("div",{className:Te()(nn.fixedBottom,Xt),style:Rt},z.createElement("div",{className:nn.wrap},z.createElement("div",{className:nn.left},At),z.createElement("div",{className:nn.center},It),z.createElement("div",{className:nn.right},an))),on={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"},Le=({className:Xt,style:Rt={},dataSource:At=[]})=>z.createElement("div",{className:Te()(on.crumbs,Xt),style:Rt},At.map((It,an)=>anUt.history.push(It.path)},It.name):z.createElement("span",null,It.name),z.createElement("span",null,"\xA0",">","\xA0")):z.createElement("span",{key:an,style:{color:"#5F6368"}},It.name))),st=re(11938),$t=Object.defineProperty,Wt=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Qt=(Xt,Rt,At)=>Rt in Xt?$t(Xt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Xt[Rt]=At,mn=(Xt,Rt)=>{for(var At in Rt||(Rt={}))gt.call(Rt,At)&&Qt(Xt,At,Rt[At]);if(Ke)for(var At of Ke(Rt))Bt.call(Rt,At)&&Qt(Xt,At,Rt[At]);return Xt},Dn=(Xt,Rt)=>Wt(Xt,De(Rt)),Mn=(Xt,Rt)=>{var At={};for(var It in Xt)gt.call(Xt,It)&&Rt.indexOf(It)<0&&(At[It]=Xt[It]);if(Xt!=null&&Ke)for(var It of Ke(Xt))Rt.indexOf(It)<0&&Bt.call(Xt,It)&&(At[It]=Xt[It]);return At};const{Countdown:cn}=st.default;var vn=Xt=>{var Rt=Xt,{onChange:At}=Rt,It=Mn(Rt,["onChange"]);const[an,tn]=(0,z.useState)(null);(0,z.useEffect)(()=>{typeof an=="number"&&an>=0&&At(an)},[an]);const rn=Sn=>{const Pn=Math.floor(Sn/1e3);tn(Pn)};return z.createElement(cn,Dn(mn({},It),{onChange:rn}))}},79006:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return it}});var z=re(59301);function it(ve,Qe){const be=(0,z.useRef)();(0,z.useEffect)(()=>{be.current=ve}),(0,z.useEffect)(()=>{function Ie(){be.current()}if(Qe!==null){let Te=setInterval(Ie,Qe);return()=>clearInterval(Te)}},[Qe])}},83195:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return dt}});var z=re(59301),it=re(28284),ve=re(6767),Qe=re(62957),be=re(37568),Ie=re(94968),Te={flex_box_center:"flex_box_center___eFoM9",flex_space_between:"flex_space_between___Wg6Gr",flex_box_vertical_center:"flex_box_vertical_center___TqrrQ",flex_box_center_end:"flex_box_center_end___L9c4u",flex_box_column:"flex_box_column___SvH8v",form:"form___LQCl5",btn:"btn___l3d4K",img:"img___CeTIL"},qe=re(39967),Se=re(14185),he=re(19248),Xe=re(70467),Ee=Object.defineProperty,Mt=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,wt=(He,Lt,tt)=>Lt in He?Ee(He,Lt,{enumerable:!0,configurable:!0,writable:!0,value:tt}):He[Lt]=tt,Tt=(He,Lt)=>{for(var tt in Lt||(Lt={}))Ge.call(Lt,tt)&&wt(He,tt,Lt[tt]);if(Fe)for(var tt of Fe(Lt))ze.call(Lt,tt)&&wt(He,tt,Lt[tt]);return He},zt=(He,Lt)=>Mt(He,Je(Lt)),St=(He,Lt,tt)=>new Promise((ot,xt)=>{var Me=ue=>{try{Ve(tt.next(ue))}catch(ct){xt(ct)}},_e=ue=>{try{Ve(tt.throw(ue))}catch(ct){xt(ct)}},Ve=ue=>ue.done?ot(ue.value):Promise.resolve(ue.value).then(Me,_e);Ve((tt=tt.apply(He,Lt)).next())}),dt=({visible:He,onOk:Lt,onCancel:tt,title:ot=""})=>{var xt,Me;const[_e]=it.default.useForm(),[Ve,ue]=(0,z.useState)(!1),[ct,ke]=(0,z.useState)([]),[nt,Ft]=(0,z.useState)(!1);console.log(He,22),(0,z.useEffect)(()=>{var Re,Dt;if(He!=null&&He.id){_e.setFieldsValue(zt(Tt({},He),{attachment_id:(Re=He==null?void 0:He.attachment)==null?void 0:Re.id}));const Et=[zt(Tt({},He==null?void 0:He.attachment),{response:{id:(Dt=He==null?void 0:He.attachment)==null?void 0:Dt.id}})];ke(Et)}},[He]);const xe=()=>{_e.submit()},fe=()=>{tt()},Ct=Re=>St(void 0,null,function*(){var Dt,Et;ue(!0);const jt=zt(Tt({},Re),{attachment_id:((Et=(Dt=ct==null?void 0:ct[0])==null?void 0:Dt.response)==null?void 0:Et.id)||""});Lt(jt)}),Ut=Re=>{var Dt,Et,jt;_e.setFieldsValue({attachment_id:""}),["uploading","done","removed"].includes(Re.file.status)&&(Re.file.status==="uploading"&&Ft(!0),Re.file.status==="done"&&Ft(!1),ke(Re.fileList),_e.setFieldsValue({attachment_id:(jt=(Et=(Dt=Re.fileList)==null?void 0:Dt[0])==null?void 0:Et.response)==null?void 0:jt.id}))},Pt=Re=>{ke([])},me=Re=>Re.type==="image/jpeg"||Re.type==="image/png"?Re.size/1024/1024>2?(ve.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E2MB"),Promise.reject()):(ke([]),!0):(ve.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),Promise.reject()),Be=()=>{var Re,Dt;return z.createElement("div",{className:Te.img},z.createElement("img",{src:Se.Z.API_SERVER+"/api/attachments/"+((Dt=(Re=ct==null?void 0:ct[0])==null?void 0:Re.response)==null?void 0:Dt.id),alt:"avatar",style:{width:"100%"}}),z.createElement("div",null,z.createElement(he.Z,{onClick:()=>{ke([]),_e.setFieldsValue({attachment_id:""})},style:{fontSize:"16px",color:"red"}})))};return z.createElement(Qe.default,{title:`${He!=null&&He.id?"\u7F16\u8F91":"\u65B0\u5EFA"}${ot}`,open:He,onOk:xe,centered:!0,onCancel:fe,confirmLoading:Ve,okButtonProps:{disabled:nt},width:686,afterClose:()=>{ue(!1),ke([]),_e.resetFields()},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:qe.Z.CustomCss},z.createElement(it.default,{form:_e,colon:!1,labelCol:{span:4},wrapperCol:{span:18},onFinish:Ct,className:Te.form},z.createElement(it.default.Item,{label:`${ot}\u540D\u79F0`,name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${ot}\u540D\u79F0`},{whitespace:!0,message:`\u8BF7\u8F93\u5165${ot}\u540D\u79F0`},{max:100,message:"\u53EA\u80FD\u8F93\u516560\u4E2A\u5B57\u7B26"}]},z.createElement(be.default,{maxLength:100,placeholder:`\u8BF7\u8F93\u5165${ot}\u540D\u79F0`})),z.createElement(it.default.Item,{label:"\u4F5C\u8005",name:"author",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},z.createElement(be.default,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005"})),z.createElement(it.default.Item,{label:"\u51FA\u7248\u793E",name:"publisher",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"},{whitespace:!0,message:"\u5B9E\u8DF5\u51FA\u7248\u793E"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},z.createElement(be.default,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"})),z.createElement(it.default.Item,{label:"\u51FA\u7248\u65F6\u95F4",name:"publication_time",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"}]},z.createElement(be.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"})),z.createElement(it.default.Item,{label:"ISBN",name:"number",rules:[{required:!0,message:"\u8BF7\u8F93\u5165ISBN"},{whitespace:!0,message:"\u8BF7\u8F93\u5165ISBN"}]},z.createElement(be.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165ISBN"})),z.createElement(it.default.Item,{name:"attachment_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},z.createElement("div",{className:Te.upload},(Me=(xt=ct==null?void 0:ct[0])==null?void 0:xt.response)!=null&&Me.id?Be():z.createElement(Ie.default,{fileList:ct,action:`${Se.Z.API_SERVER}/api/attachments.json`,onChange:Re=>Ut(Re),onRemove:Re=>Pt(Re),beforeUpload:Re=>me(Re),withCredentials:!0,accept:"image/*"},z.createElement(Xe.op,{style:{borderRadius:"2px",marginLeft:4,marginTop:3}},z.createElement("i",{className:"iconfont icon-shangchuantupian2 mr5"}),"\u4E0A\u4F20\u56FE\u7247")))),z.createElement(it.default.Item,{label:"\u8D2D\u4E66\u94FE\u63A5",name:"buy_url",rules:[{type:"url",message:"\u8D2D\u4E66\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},z.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u8D2D\u4E66\u94FE\u63A5",maxLength:150})),z.createElement(it.default.Item,{label:"\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5",name:"relevance_url",rules:[{type:"url",message:"\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},z.createElement(be.default,{placeholder:"\u8BF7\u8F93\u5165\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5",maxLength:150}))))}},73918:function(fn,_t,re){"use strict";re.r(_t),re.d(_t,{default:function(){return Lt}});var z=re(59301),it=re(62957),ve=re(6767),Qe=re(25399),be=re(77019),Ie=re(49317),Te={flex_box_center:"flex_box_center___lxATc",flex_space_between:"flex_space_between___tK2pC",flex_box_vertical_center:"flex_box_vertical_center___cjSuT",flex_box_center_end:"flex_box_center_end___KwKQj",flex_box_column:"flex_box_column___EDD9l",Onerow:"Onerow___QbfBb",MultiLine:"MultiLine___Uix9V",wrap:"wrap___cwBRd",editor:"editor___arbaB",btns:"btns___HTQm5",list:"list___tBaoe",left:"left___GF5gU",right:"right___MFAP_",title:"title___piSmp"},qe=re(35883),Se=re(83195),he=re(14185),Xe=re(70467),Ee=re(39116),Mt=re(39967),Je=re(44283),Fe=re(15267),Ge=re(76406),ze=Object.defineProperty,wt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,St=(tt,ot,xt)=>ot in tt?ze(tt,ot,{enumerable:!0,configurable:!0,writable:!0,value:xt}):tt[ot]=xt,pt=(tt,ot)=>{for(var xt in ot||(ot={}))Tt.call(ot,xt)&&St(tt,xt,ot[xt]);if(wt)for(var xt of wt(ot))zt.call(ot,xt)&&St(tt,xt,ot[xt]);return tt},dt=(tt,ot,xt)=>new Promise((Me,_e)=>{var Ve=ke=>{try{ct(xt.next(ke))}catch(nt){_e(nt)}},ue=ke=>{try{ct(xt.throw(ke))}catch(nt){_e(nt)}},ct=ke=>ke.done?Me(ke.value):Promise.resolve(ke.value).then(Ve,ue);ct((xt=xt.apply(tt,ot)).next())});const He=({globalSetting:tt,dispatch:ot,virtualSpaces:xt})=>{const Me=(0,Je.useParams)(),{id:_e,virtual_spacesId:Ve}=Me,[ue,ct]=(0,z.useState)("description"),[ke,nt]=(0,z.useState)({}),[Ft,xe]=(0,z.useState)(!0),[fe,Ct]=(0,z.useState)(!1),[Ut,Pt]=(0,z.useState)(""),me=(0,z.useRef)(""),[Be,Re]=(0,z.useState)(!1),[Dt,Et]=(0,z.useState)(!1),{virtualSpacesDetails:jt}=xt,{name:Ne,attachment:Vt,author:yt,publisher:ae,number:te,publication_time:ee,material_type:oe,buy_url:se,relevance_url:ne}=ke;(0,z.useEffect)(()=>{mt()},[_e]),(0,z.useEffect)(()=>{Oe()},[ue]);const pe=[{id:"description",name:"\u7B80\u4ECB"},{id:"directory",name:"\u76EE\u5F55"},{id:"foreword",name:"\u524D\u8A00"}],Ce=vt=>(0,Fe.Ny)()||(jt==null?void 0:jt.is_creator)||(jt==null?void 0:jt.is_member)&&(jt==null?void 0:jt.user_id)===vt,mt=()=>dt(void 0,null,function*(){xe(!0);const vt=yield(0,Ie.ZP)(`/api/virtual_classrooms/${Me.virtual_spacesId}/subject_materials/${_e}.json`,{method:"get"});(vt==null?void 0:vt.status)!==-1&&nt(pt({},vt)),xe(!1)}),Oe=()=>dt(void 0,null,function*(){xe(!0);const vt=yield(0,Ie.ZP)(`/api/virtual_classrooms/${Me.virtual_spacesId}/subject_materials/${_e}/show_desc.json`,{method:"get",params:{column:ue}});(vt==null?void 0:vt.status)!==-1&&(Pt((vt==null?void 0:vt[ue])||""),me.current=(vt==null?void 0:vt[ue])||""),xe(!1)}),Ue=()=>{it.default.confirm({title:"\u63D0\u793A",okText:"\u786E\u5B9A\u5220\u9664",okButtonProps:{danger:!0},icon:!1,className:Mt.Z.CustomTipsModalCss,cancelText:"\u53D6\u6D88",content:z.createElement("div",null,z.createElement("div",null,"\u786E\u8BA4\u5220\u9664\u300A",Ne,"\u300B\u5417\uFF1F"),z.createElement("div",{className:"mt10"},"\u5220\u9664\u540E\uFF0C\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C")),onOk:()=>dt(void 0,null,function*(){const vt=yield(0,Ie.ZP)(`/api/virtual_classrooms/${Me.virtual_spacesId}/subject_materials/${_e}.json`,{method:"delete"});(vt==null?void 0:vt.status)!==-1&&(ve.ZP.success("\u64CD\u4F5C\u6210\u529F"),Je.history.push(`/${Ge.AS}/${Ve}/material?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`))})})},ft=vt=>dt(void 0,null,function*(){const Jt=yield(0,Ie.ZP)(`/api/virtual_classrooms/${Me.virtual_spacesId}/subject_materials/${_e}.json`,{method:"put",body:pt({material_type:String(oe)},vt)});(Jt==null?void 0:Jt.status)!==-1&&(mt(),Ct(!1))}),Ot=()=>dt(void 0,null,function*(){Et(!0);const vt={};vt[ue]=Ut;let Jt=yield(0,Ie.ZP)(`/api/virtual_classrooms/${Me.virtual_spacesId}/subject_materials/${_e}/update_desc.json`,{method:"put",body:vt});(Jt==null?void 0:Jt.status)!==-1&&(Oe(),Re(!1)),Et(!1)});return z.createElement("div",{className:Te.wrap},z.createElement(Xe.qE,{title:"\u6559\u6750\u8BE6\u60C5",onClick:()=>Je.history.push(`/${Ge.AS}/${Ve}/material?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},Ce(ke.user_id)&&z.createElement("div",{className:Te.btns},z.createElement("div",{onClick:()=>{Ct(pt({},ke))}},z.createElement("span",{className:"primary-hover"},z.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91")),z.createElement("div",{onClick:()=>Ue()},z.createElement("span",{className:"delete-hover"}," ",z.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14 mr5"}),"\u5220\u9664")))),z.createElement("div",{className:Te.list},z.createElement("div",{className:Te.left},z.createElement("img",{src:he.Z.API_SERVER+(Vt==null?void 0:Vt.url)})),z.createElement("div",{className:Te.right},z.createElement(Qe.Z,{title:Ne},z.createElement("div",{className:Te.title,style:{width:ne||se?550:786}},Ne)),z.createElement("aside",null,z.createElement(Qe.Z,{title:yt},z.createElement("span",null,"\u4F5C\u8005\uFF1A",yt)),z.createElement(Qe.Z,{title:ae},z.createElement("span",null,"\u51FA\u7248\u793E\uFF1A",ae))),z.createElement("aside",null,z.createElement(Qe.Z,{title:te},z.createElement("span",null,"ISBN\uFF1A",te)),z.createElement("span",null,"\u51FA\u7248\u65F6\u95F4\uFF1A",ee))),z.createElement(be.Z,{align:"middle"},ne&&z.createElement(Xe.op,{onClick:()=>window.open(ne)},"\u8FDB\u5165\u8BFE\u7A0B"),se&&z.createElement(Xe.op,{className:"ml20",type:"primary",icon:z.createElement("i",{className:"iconfont icon-goumai"}),onClick:()=>window.open(se)},"\u8D2D\u4E70\u6559\u6750"))),z.createElement(Xe.YG,{value:ue,onChange:vt=>{ct(vt)},tabBarExtraContent:Ce(ke.user_id)&&z.createElement("div",{className:Te.btns},z.createElement("div",{onClick:()=>{Re(!0)}},z.createElement("span",{className:"primary-hover"},z.createElement("i",{className:"iconfont icon-bianji7 font14 mr5"}),"\u7F16\u8F91"))),dataSource:pe}),z.createElement("div",{className:"mt20"},Be?z.createElement(z.Fragment,null,z.createElement(Ee.Z,{onChange:vt=>Pt(vt),watch:!0,defaultValue:Ut}),z.createElement(Xe.QD,{confirmTitle:"\u4FDD\u5B58",confirmLoading:Dt,confirmClick:Ot,cancelClick:()=>{Re(!1),Pt(me.current)},cancelTitle:"\u53D6\u6D88",className:"mb25"})):z.createElement(qe.Z,{className:Te.editor,value:Ut})),z.createElement(Se.Z,{visible:fe,title:oe===1?"\u4E3B\u6559\u6750":"\u5B9E\u8DF5\u6559\u6750",onCancel:()=>Ct(!1),onOk:ft}))};var Lt=(0,Je.connect)(({virtualSpaces:tt,globalSetting:ot})=>({globalSetting:ot,virtualSpaces:tt}))(He)},20047:function(fn,_t,re){"use strict";re.d(_t,{AL:function(){return St},Iy:function(){return Xe},Qv:function(){return Je},ez:function(){return zt},jb:function(){return Ee}});var z=re(32834),it=re.n(z),ve=re(11690),Qe=re.n(ve);let be=1;function Ie(tt,ot){const xt=tt.match(/^(\s+)(?:```)/);if(xt===null)return ot;const Me=xt[1];return ot.split(` `).map(_e=>{const Ve=_e.match(/^\s+/);if(Ve===null)return _e;const[ue]=Ve;return ue.length>=Me.length?_e.slice(Me.length):_e}).join(` `)}let Te=[],qe=["
    "];const Se=new(it()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){Te.length=0,qe=["
      "]}const Ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Mt(tt,ot,xt,Me){if(ot>=tt.length||tt[ot].level<=xt)return ot;var _e=tt[ot];Me.push("
    • "+_e.text+""),ot++;var Ve=[];return ot=Mt(tt,ot,_e.level,Ve),Ve.length>0&&(Me.push("
        "),Ve.forEach(function(ue){Me.push(ue)}),Me.push("
      ")),Me.push("
    • "),ot=Mt(tt,ot,xt,Me),ot}function Je(){return Mt(Te,0,0,qe),qe.push("
    "),qe.join("")}const Fe={heading(tt){const ot=he.exec(tt);if(be+=1,ot)return{type:"heading",raw:ot[0],depth:ot[1].length,text:ot[2]}},fences(tt){const ot=this.rules.block.fences.exec(tt);if(ot){const xt=ot[0];let Me=Ie(xt,ot[3]||"");const _e=ot[2]?ot[2].trim():ot[2];if(["latex","katex","math"].indexOf(_e)>=0){const Ve=wt(),ue=Me;Me=Ve,Tt[Ve]={type:"block",expression:ue}}return{type:"code",raw:xt,lang:_e,text:Me}}}},Ge=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ze=0;const wt=()=>`__special_katext_id_${ze++}__`;let Tt={};function zt(){return Tt}function St(){ze=0,Tt={}}function pt(tt){return tt=tt.replace(Ge,(ot,xt)=>{const Me=wt();return Tt[Me]={type:"inline",expression:xt},Me}),tt}const dt=Se.listitem;Se.listitem=function(tt){return dt(pt(tt))};const He=Se.paragraph;Se.paragraph=function(tt){return He(pt(tt))};const Lt=Se.tablecell;Se.tablecell=function(tt,ot){return Lt(pt(tt),ot)},Se.code=function(tt,ot,xt){const Me=(ot||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`

    ${tt}

    `:`
    ${xt?tt:(0,ve.escape)(tt,!0)}
    `:'
    '+(xt?tt:(0,ve.escape)(tt,!0))+"
    "},Se.heading=function(tt,ot,xt){let Me=this.options.headerPrefix+xt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Te.push({anchor:Me,level:ot,text:tt}),"'+tt+""},it().setOptions({silent:!0,gfm:!0,pedantic:!1}),it().use({tokenizer:Fe,renderer:Se}),_t.ZP=it()},86013:function(fn,_t,re){"use strict";var z=re(59301),it=re(19248);const ve=Qe=>{let be;return typeof Qe=="object"&&(Qe!=null&&Qe.clearIcon)?be=Qe:Qe&&(be={clearIcon:z.createElement(it.Z,null)}),be};_t.Z=ve},38406:function(fn,_t,re){"use strict";var z=re(59301),it=re(48755),ve=re(584);const Qe=be=>{const{componentName:Ie}=be,{getPrefixCls:Te}=(0,z.useContext)(it.E_),qe=Te("empty");switch(Ie){case"Table":case"List":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${qe}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};_t.Z=Qe},36207:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return mt}});var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(85899),be=re(72190),Ie=re(43403),Te=re(34280),qe=z.createContext(null),Se=z.createContext({}),he=qe,Xe=re(18642),Ee=re(60499),Mt=re(77900),Je=re(10228),Fe=re(26112),Ge=re(42244),ze=re(8654),wt=["prefixCls","className","containerRef"],Tt=function(Ue){var ft=Ue.prefixCls,Ot=Ue.className,vt=Ue.containerRef,Jt=(0,Ge.Z)(Ue,wt),Yt=z.useContext(Se),Gt=Yt.panel,sn=(0,ze.x1)(Gt,vt);return z.createElement("div",(0,Ee.Z)({className:ve()("".concat(ft,"-content"),Ot),role:"dialog",ref:sn},(0,Fe.Z)(Ue,{aria:!0}),{"aria-modal":"true"},Jt))},zt=Tt,St=re(48736);function pt(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,St.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function dt(Oe){warning(!("wrapperClassName"in Oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var He={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Lt(Oe,Ue){var ft,Ot,vt,Jt=Oe.prefixCls,Yt=Oe.open,Gt=Oe.placement,sn=Oe.inline,nn=Oe.push,dn=Oe.forceRender,kt=Oe.autoFocus,on=Oe.keyboard,Kt=Oe.classNames,Le=Oe.rootClassName,st=Oe.rootStyle,$t=Oe.zIndex,Wt=Oe.className,De=Oe.id,Ke=Oe.style,gt=Oe.motion,Bt=Oe.width,Qt=Oe.height,mn=Oe.children,Dn=Oe.mask,Mn=Oe.maskClosable,cn=Oe.maskMotion,En=Oe.maskClassName,vn=Oe.maskStyle,Xt=Oe.afterOpenChange,Rt=Oe.onClose,At=Oe.onMouseEnter,It=Oe.onMouseOver,an=Oe.onMouseLeave,tn=Oe.onClick,rn=Oe.onKeyDown,Sn=Oe.onKeyUp,Pn=Oe.styles,On=Oe.drawerRender,Rn=z.useRef(),Ln=z.useRef(),Jn=z.useRef();z.useImperativeHandle(Ue,function(){return Rn.current});var _n=function(We){var Ze=We.keyCode,ut=We.shiftKey;switch(Ze){case Je.Z.TAB:{if(Ze===Je.Z.TAB){if(!ut&&document.activeElement===Jn.current){var un;(un=Ln.current)===null||un===void 0||un.focus({preventScroll:!0})}else if(ut&&document.activeElement===Ln.current){var en;(en=Jn.current)===null||en===void 0||en.focus({preventScroll:!0})}}break}case Je.Z.ESC:{Rt&&on&&(We.stopPropagation(),Rt(We));break}}};z.useEffect(function(){if(Yt&&kt){var lt;(lt=Rn.current)===null||lt===void 0||lt.focus({preventScroll:!0})}},[Yt]);var Nt=z.useState(!1),qt=(0,be.Z)(Nt,2),In=qt[0],xn=qt[1],Ae=z.useContext(he),rt;typeof nn=="boolean"?rt=nn?{}:{distance:0}:rt=nn||{};var we=(ft=(Ot=(vt=rt)===null||vt===void 0?void 0:vt.distance)!==null&&Ot!==void 0?Ot:Ae==null?void 0:Ae.pushDistance)!==null&&ft!==void 0?ft:180,$e=z.useMemo(function(){return{pushDistance:we,push:function(){xn(!0)},pull:function(){xn(!1)}}},[we]);z.useEffect(function(){if(Yt){var lt;Ae==null||(lt=Ae.push)===null||lt===void 0||lt.call(Ae)}else{var We;Ae==null||(We=Ae.pull)===null||We===void 0||We.call(Ae)}},[Yt]),z.useEffect(function(){return function(){var lt;Ae==null||(lt=Ae.pull)===null||lt===void 0||lt.call(Ae)}},[]);var Pe=Dn&&z.createElement(Mt.default,(0,Ee.Z)({key:"mask"},cn,{visible:Yt}),function(lt,We){var Ze=lt.className,ut=lt.style;return z.createElement("div",{className:ve()("".concat(Jt,"-mask"),Ze,Kt==null?void 0:Kt.mask,En),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},ut),vn),Pn==null?void 0:Pn.mask),onClick:Mn&&Yt?Rt:void 0,ref:We})}),je=typeof gt=="function"?gt(Gt):gt,ye={};if(In&&we)switch(Gt){case"top":ye.transform="translateY(".concat(we,"px)");break;case"bottom":ye.transform="translateY(".concat(-we,"px)");break;case"left":ye.transform="translateX(".concat(we,"px)");break;default:ye.transform="translateX(".concat(-we,"px)");break}Gt==="left"||Gt==="right"?ye.width=pt(Bt):ye.height=pt(Qt);var et={onMouseEnter:At,onMouseOver:It,onMouseLeave:an,onClick:tn,onKeyDown:rn,onKeyUp:Sn},at=z.createElement(Mt.default,(0,Ee.Z)({key:"panel"},je,{visible:Yt,forceRender:dn,onVisibleChanged:function(We){Xt==null||Xt(We)},removeOnLeave:!1,leavedClassName:"".concat(Jt,"-content-wrapper-hidden")}),function(lt,We){var Ze=lt.className,ut=lt.style,un=z.createElement(zt,(0,Ee.Z)({id:De,containerRef:We,prefixCls:Jt,className:ve()(Wt,Kt==null?void 0:Kt.content),style:(0,Qe.Z)((0,Qe.Z)({},Ke),Pn==null?void 0:Pn.content)},(0,Fe.Z)(Oe,{aria:!0}),et),mn);return z.createElement("div",(0,Ee.Z)({className:ve()("".concat(Jt,"-content-wrapper"),Kt==null?void 0:Kt.wrapper,Ze),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},ye),ut),Pn==null?void 0:Pn.wrapper)},(0,Fe.Z)(Oe,{data:!0})),On?On(un):un)}),bt=(0,Qe.Z)({},st);return $t&&(bt.zIndex=$t),z.createElement(he.Provider,{value:$e},z.createElement("div",{className:ve()(Jt,"".concat(Jt,"-").concat(Gt),Le,(0,Xe.Z)((0,Xe.Z)({},"".concat(Jt,"-open"),Yt),"".concat(Jt,"-inline"),sn)),style:bt,tabIndex:-1,ref:Rn,onKeyDown:_n},Pe,z.createElement("div",{tabIndex:0,ref:Ln,style:He,"aria-hidden":"true","data-sentinel":"start"}),at,z.createElement("div",{tabIndex:0,ref:Jn,style:He,"aria-hidden":"true","data-sentinel":"end"})))}var tt=z.forwardRef(Lt),ot=tt,xt=function(Ue){var ft=Ue.open,Ot=ft===void 0?!1:ft,vt=Ue.prefixCls,Jt=vt===void 0?"rc-drawer":vt,Yt=Ue.placement,Gt=Yt===void 0?"right":Yt,sn=Ue.autoFocus,nn=sn===void 0?!0:sn,dn=Ue.keyboard,kt=dn===void 0?!0:dn,on=Ue.width,Kt=on===void 0?378:on,Le=Ue.mask,st=Le===void 0?!0:Le,$t=Ue.maskClosable,Wt=$t===void 0?!0:$t,De=Ue.getContainer,Ke=Ue.forceRender,gt=Ue.afterOpenChange,Bt=Ue.destroyOnClose,Qt=Ue.onMouseEnter,mn=Ue.onMouseOver,Dn=Ue.onMouseLeave,Mn=Ue.onClick,cn=Ue.onKeyDown,En=Ue.onKeyUp,vn=Ue.panelRef,Xt=z.useState(!1),Rt=(0,be.Z)(Xt,2),At=Rt[0],It=Rt[1],an=z.useState(!1),tn=(0,be.Z)(an,2),rn=tn[0],Sn=tn[1];(0,Te.Z)(function(){Sn(!0)},[]);var Pn=rn?Ot:!1,On=z.useRef(),Rn=z.useRef();(0,Te.Z)(function(){Pn&&(Rn.current=document.activeElement)},[Pn]);var Ln=function(In){var xn;if(It(In),gt==null||gt(In),!In&&Rn.current&&!((xn=On.current)!==null&&xn!==void 0&&xn.contains(Rn.current))){var Ae;(Ae=Rn.current)===null||Ae===void 0||Ae.focus({preventScroll:!0})}},Jn=z.useMemo(function(){return{panel:vn}},[vn]);if(!Ke&&!At&&!Pn&&Bt)return null;var _n={onMouseEnter:Qt,onMouseOver:mn,onMouseLeave:Dn,onClick:Mn,onKeyDown:cn,onKeyUp:En},Nt=(0,Qe.Z)((0,Qe.Z)({},Ue),{},{open:Pn,prefixCls:Jt,placement:Gt,autoFocus:nn,keyboard:kt,width:Kt,mask:st,maskClosable:Wt,inline:De===!1,afterOpenChange:Ln,ref:On},_n);return z.createElement(Se.Provider,{value:Jn},z.createElement(Ie.Z,{open:Pn||Ke||At,autoDestroy:!1,getContainer:De,autoLock:st&&(Pn||At)},z.createElement(ot,Nt)))},Me=xt,_e=Me,Ve=re(62487),ue=re(75030),ct=re(86641),ke=re(55743),nt=re(48755),Ft=re(91190),xe=re(78776),fe=re(458),Ut=Oe=>{var Ue,ft;const{prefixCls:Ot,title:vt,footer:Jt,extra:Yt,loading:Gt,onClose:sn,headerStyle:nn,bodyStyle:dn,footerStyle:kt,children:on,classNames:Kt,styles:Le}=Oe,st=(0,nt.dj)("drawer"),$t=z.useCallback(Bt=>z.createElement("button",{type:"button",onClick:sn,"aria-label":"Close",className:`${Ot}-close`},Bt),[sn]),[Wt,De]=(0,xe.Z)((0,xe.w)(Oe),(0,xe.w)(st),{closable:!0,closeIconRender:$t}),Ke=z.useMemo(()=>{var Bt,Qt;return!vt&&!Wt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Bt=st.styles)===null||Bt===void 0?void 0:Bt.header),nn),Le==null?void 0:Le.header),className:ve()(`${Ot}-header`,{[`${Ot}-header-close-only`]:Wt&&!vt&&!Yt},(Qt=st.classNames)===null||Qt===void 0?void 0:Qt.header,Kt==null?void 0:Kt.header)},z.createElement("div",{className:`${Ot}-header-title`},De,vt&&z.createElement("div",{className:`${Ot}-title`},vt)),Yt&&z.createElement("div",{className:`${Ot}-extra`},Yt))},[Wt,De,Yt,nn,Ot,vt]),gt=z.useMemo(()=>{var Bt,Qt;if(!Jt)return null;const mn=`${Ot}-footer`;return z.createElement("div",{className:ve()(mn,(Bt=st.classNames)===null||Bt===void 0?void 0:Bt.footer,Kt==null?void 0:Kt.footer),style:Object.assign(Object.assign(Object.assign({},(Qt=st.styles)===null||Qt===void 0?void 0:Qt.footer),kt),Le==null?void 0:Le.footer)},Jt)},[Jt,kt,Ot]);return z.createElement(z.Fragment,null,Ke,z.createElement("div",{className:ve()(`${Ot}-body`,Kt==null?void 0:Kt.body,(Ue=st.classNames)===null||Ue===void 0?void 0:Ue.body),style:Object.assign(Object.assign(Object.assign({},(ft=st.styles)===null||ft===void 0?void 0:ft.body),dn),Le==null?void 0:Le.body)},Gt?z.createElement(fe.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Ot}-body-skeleton`}):on),gt)},Pt=re(36237),me=re(63356),Be=re(16931),Re=re(51636);const Dt=Oe=>{const Ue="100%";return{left:`translateX(-${Ue})`,right:`translateX(${Ue})`,top:`translateY(-${Ue})`,bottom:`translateY(${Ue})`}[Oe]},Et=(Oe,Ue)=>({"&-enter, &-appear":Object.assign(Object.assign({},Oe),{"&-active":Ue}),"&-leave":Object.assign(Object.assign({},Ue),{"&-active":Oe})}),jt=(Oe,Ue)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ue}`}}},Et({opacity:Oe},{opacity:1})),Ne=(Oe,Ue)=>[jt(.7,Ue),Et({transform:Dt(Oe)},{transform:"none"})];var yt=Oe=>{const{componentCls:Ue,motionDurationSlow:ft}=Oe;return{[Ue]:{[`${Ue}-mask-motion`]:jt(0,ft),[`${Ue}-panel-motion`]:["left","right","top","bottom"].reduce((Ot,vt)=>Object.assign(Object.assign({},Ot),{[`&-${vt}`]:Ne(vt,ft)}),{})}}};const ae=Oe=>{const{borderRadiusSM:Ue,componentCls:ft,zIndexPopup:Ot,colorBgMask:vt,colorBgElevated:Jt,motionDurationSlow:Yt,motionDurationMid:Gt,paddingXS:sn,padding:nn,paddingLG:dn,fontSizeLG:kt,lineHeightLG:on,lineWidth:Kt,lineType:Le,colorSplit:st,marginXS:$t,colorIcon:Wt,colorIconHover:De,colorBgTextHover:Ke,colorBgTextActive:gt,colorText:Bt,fontWeightStrong:Qt,footerPaddingBlock:mn,footerPaddingInline:Dn,calc:Mn}=Oe,cn=`${ft}-content-wrapper`;return{[ft]:{position:"fixed",inset:0,zIndex:Ot,pointerEvents:"none",color:Bt,"&-pure":{position:"relative",background:Jt,display:"flex",flexDirection:"column",[`&${ft}-left`]:{boxShadow:Oe.boxShadowDrawerLeft},[`&${ft}-right`]:{boxShadow:Oe.boxShadowDrawerRight},[`&${ft}-top`]:{boxShadow:Oe.boxShadowDrawerUp},[`&${ft}-bottom`]:{boxShadow:Oe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ft}-mask`]:{position:"absolute",inset:0,zIndex:Ot,background:vt,pointerEvents:"auto"},[cn]:{position:"absolute",zIndex:Ot,maxWidth:"100vw",transition:`all ${Yt}`,"&-hidden":{display:"none"}},[`&-left > ${cn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${cn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${cn}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${cn}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${ft}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Jt,pointerEvents:"auto"},[`${ft}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Pt.unit)(nn)} ${(0,Pt.unit)(dn)}`,fontSize:kt,lineHeight:on,borderBottom:`${(0,Pt.unit)(Kt)} ${Le} ${st}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ft}-extra`]:{flex:"none"},[`${ft}-close`]:Object.assign({display:"inline-flex",width:Mn(kt).add(sn).equal(),height:Mn(kt).add(sn).equal(),borderRadius:Ue,justifyContent:"center",alignItems:"center",marginInlineEnd:$t,color:Wt,fontWeight:Qt,fontSize:kt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Gt}`,textRendering:"auto","&:hover":{color:De,backgroundColor:Ke,textDecoration:"none"},"&:active":{backgroundColor:gt}},(0,me.Qy)(Oe)),[`${ft}-title`]:{flex:1,margin:0,fontWeight:Oe.fontWeightStrong,fontSize:kt,lineHeight:on},[`${ft}-body`]:{flex:1,minWidth:0,minHeight:0,padding:dn,overflow:"auto",[`${ft}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ft}-footer`]:{flexShrink:0,padding:`${(0,Pt.unit)(mn)} ${(0,Pt.unit)(Dn)}`,borderTop:`${(0,Pt.unit)(Kt)} ${Le} ${st}`},"&-rtl":{direction:"rtl"}}}},te=Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding});var ee=(0,Be.I$)("Drawer",Oe=>{const Ue=(0,Re.mergeToken)(Oe,{});return[ae(Ue),yt(Ue)]},te),oe=function(Oe,Ue){var ft={};for(var Ot in Oe)Object.prototype.hasOwnProperty.call(Oe,Ot)&&Ue.indexOf(Ot)<0&&(ft[Ot]=Oe[Ot]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ot=Object.getOwnPropertySymbols(Oe);vt{var Ue;const{rootClassName:ft,width:Ot,height:vt,size:Jt="default",mask:Yt=!0,push:Gt=ne,open:sn,afterOpenChange:nn,onClose:dn,prefixCls:kt,getContainer:on,style:Kt,className:Le,visible:st,afterVisibleChange:$t,maskStyle:Wt,drawerStyle:De,contentWrapperStyle:Ke}=Oe,gt=oe(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Bt,getPrefixCls:Qt,direction:mn,className:Dn,style:Mn,classNames:cn,styles:En}=(0,nt.dj)("drawer"),vn=Qt("drawer",kt),[Xt,Rt,At]=ee(vn),It=on===void 0&&Bt?()=>Bt(document.body):on,an=ve()({"no-mask":!Yt,[`${vn}-rtl`]:mn==="rtl"},ft,Rt,At),tn=z.useMemo(()=>Ot!=null?Ot:Jt==="large"?736:378,[Ot,Jt]),rn=z.useMemo(()=>vt!=null?vt:Jt==="large"?736:378,[vt,Jt]),Sn={motionName:(0,ct.m)(vn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=Nt=>({motionName:(0,ct.m)(vn,`panel-motion-${Nt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),On=(0,Ft.H)(),[Rn,Ln]=(0,ue.Cn)("Drawer",gt.zIndex),{classNames:Jn={},styles:_n={}}=gt;return Xt(z.createElement(Ve.Z,{form:!0,space:!0},z.createElement(ke.Z.Provider,{value:Ln},z.createElement(_e,Object.assign({prefixCls:vn,onClose:dn,maskMotion:Sn,motion:Pn},gt,{classNames:{mask:ve()(Jn.mask,cn.mask),content:ve()(Jn.content,cn.content),wrapper:ve()(Jn.wrapper,cn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},_n.mask),Wt),En.mask),content:Object.assign(Object.assign(Object.assign({},_n.content),De),En.content),wrapper:Object.assign(Object.assign(Object.assign({},_n.wrapper),Ke),En.wrapper)},open:sn!=null?sn:st,mask:Yt,push:Gt,width:tn,height:rn,style:Object.assign(Object.assign({},Mn),Kt),className:ve()(Dn,Le),rootClassName:an,getContainer:It,afterOpenChange:nn!=null?nn:$t,panelRef:On,zIndex:Rn}),z.createElement(Ut,Object.assign({prefixCls:vn},gt,{onClose:dn}))))))},Ce=Oe=>{const{prefixCls:Ue,style:ft,className:Ot,placement:vt="right"}=Oe,Jt=oe(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Yt}=z.useContext(nt.E_),Gt=Yt("drawer",Ue),[sn,nn,dn]=ee(Gt),kt=ve()(Gt,`${Gt}-pure`,`${Gt}-${vt}`,nn,dn,Ot);return sn(z.createElement("div",{className:kt,style:ft},z.createElement(Ut,Object.assign({prefixCls:Gt},Jt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=Ce;var mt=pe},19563:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Pt}});var z=re(59301),it=re(33853),ve=re(38819),Qe=re(92310),be=re.n(Qe),Ie=re(96478),Te=re(6089),qe=re(18929),Se=re(2738),he=re(75030),Ee=me=>typeof me!="object"&&typeof me!="function"||me===null,Mt=re(52838),Je=re(45915),Fe=re(22703),Ge=re(32383),ze=re(55743),wt=re(48755),Tt=re(83397),zt=re(93041),St=re(78857),pt=re(57700),dt=re(36237),He=re(63356),Lt=re(46e3),tt=re(93873),ot=re(34925),xt=re(37645),Me=re(36305),_e=re(16931),Ve=re(51636),ct=me=>{const{componentCls:Be,menuCls:Re,colorError:Dt,colorTextLightSolid:Et}=me,jt=`${Re}-item`;return{[`${Be}, ${Be}-menu-submenu`]:{[`${Re} ${jt}`]:{[`&${jt}-danger:not(${jt}-disabled)`]:{color:Dt,"&:hover":{color:Et,backgroundColor:Dt}}}}}};const ke=me=>{const{componentCls:Be,menuCls:Re,zIndexPopup:Dt,dropdownArrowDistance:Et,sizePopupArrow:jt,antCls:Ne,iconCls:Vt,motionDurationMid:yt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=me;return[{[Be]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Dt,display:"block","&::before":{position:"absolute",insetBlock:me.calc(jt).div(2).sub(Et).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Ne}-btn`]:{[`& > ${Vt}-down, & > ${Ne}-btn-icon > ${Vt}-down`]:{fontSize:se}},[`${Be}-wrap`]:{position:"relative",[`${Ne}-btn > ${Vt}-down`]:{fontSize:se},[`${Vt}-down::before`]:{transition:`transform ${yt}`}},[`${Be}-wrap-open`]:{[`${Vt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ne}-slide-down-enter${Ne}-slide-down-enter-active${Be}-placement-bottomLeft, &${Ne}-slide-down-appear${Ne}-slide-down-appear-active${Be}-placement-bottomLeft, &${Ne}-slide-down-enter${Ne}-slide-down-enter-active${Be}-placement-bottom, &${Ne}-slide-down-appear${Ne}-slide-down-appear-active${Be}-placement-bottom, &${Ne}-slide-down-enter${Ne}-slide-down-enter-active${Be}-placement-bottomRight, &${Ne}-slide-down-appear${Ne}-slide-down-appear-active${Be}-placement-bottomRight`]:{animationName:Lt.fJ},[`&${Ne}-slide-up-enter${Ne}-slide-up-enter-active${Be}-placement-topLeft, &${Ne}-slide-up-appear${Ne}-slide-up-appear-active${Be}-placement-topLeft, &${Ne}-slide-up-enter${Ne}-slide-up-enter-active${Be}-placement-top, &${Ne}-slide-up-appear${Ne}-slide-up-appear-active${Be}-placement-top, &${Ne}-slide-up-enter${Ne}-slide-up-enter-active${Be}-placement-topRight, &${Ne}-slide-up-appear${Ne}-slide-up-appear-active${Be}-placement-topRight`]:{animationName:Lt.Qt},[`&${Ne}-slide-down-leave${Ne}-slide-down-leave-active${Be}-placement-bottomLeft, &${Ne}-slide-down-leave${Ne}-slide-down-leave-active${Be}-placement-bottom, &${Ne}-slide-down-leave${Ne}-slide-down-leave-active${Be}-placement-bottomRight`]:{animationName:Lt.Uw},[`&${Ne}-slide-up-leave${Ne}-slide-up-leave-active${Be}-placement-topLeft, &${Ne}-slide-up-leave${Ne}-slide-up-leave-active${Be}-placement-top, &${Ne}-slide-up-leave${Ne}-slide-up-leave-active${Be}-placement-topRight`]:{animationName:Lt.ly}}},(0,xt.ZP)(me,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Be} ${Re}`]:{position:"relative",margin:0},[`${Re}-submenu-popup`]:{position:"absolute",zIndex:Dt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Be}, ${Be}-menu-submenu`]:Object.assign(Object.assign({},(0,He.Wf)(me)),{[Re]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,He.Qy)(me)),{"&:empty":{padding:0,boxShadow:"none"},[`${Re}-item-group-title`]:{padding:`${(0,dt.unit)(ae)} ${(0,dt.unit)(ne)}`,color:me.colorTextDescription,transition:`all ${yt}`},[`${Re}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Re}-item-icon`]:{minWidth:te,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${Re}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${yt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Re}-item-extra`]:{paddingInlineStart:me.padding,marginInlineStart:"auto",fontSize:me.fontSizeSM,color:me.colorTextDescription}},[`${Re}-item, ${Re}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,dt.unit)(ae)} ${(0,dt.unit)(ne)}`,color:me.colorText,fontWeight:"normal",fontSize:te,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${yt}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,He.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,dt.unit)(me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${Be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${Be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Re}-item-group-list`]:{margin:`0 ${(0,dt.unit)(me.marginXS)}`,padding:0,listStyle:"none"},[`${Re}-submenu-title`]:{paddingInlineEnd:me.calc(ne).add(me.fontSizeSM).equal()},[`${Re}-submenu-vertical`]:{position:"relative"},[`${Re}-submenu${Re}-submenu-disabled ${Be}-menu-submenu-title`]:{[`&, ${Be}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${Re}-submenu-selected ${Be}-menu-submenu-title`]:{color:me.colorPrimary}})})},[(0,Lt.oN)(me,"slide-up"),(0,Lt.oN)(me,"slide-down"),(0,tt.Fm)(me,"move-up"),(0,tt.Fm)(me,"move-down"),(0,ot._y)(me,"zoom-big")]]},nt=me=>Object.assign(Object.assign({zIndexPopup:me.zIndexPopupBase+50,paddingBlock:(me.controlHeight-me.fontSize*me.lineHeight)/2},(0,xt.wZ)({contentRadius:me.borderRadiusLG,limitVerticalRadius:!0})),(0,Me.w)(me));var Ft=(0,_e.I$)("Dropdown",me=>{const{marginXXS:Be,sizePopupArrow:Re,paddingXXS:Dt,componentCls:Et}=me,jt=(0,Ve.mergeToken)(me,{menuCls:`${Et}-menu`,dropdownArrowDistance:me.calc(Re).div(2).add(Be).equal(),dropdownEdgeChildPadding:Dt});return[ke(jt),ct(jt)]},nt,{resetStyle:!1});const xe=null,fe=me=>{var Be;const{menu:Re,arrow:Dt,prefixCls:Et,children:jt,trigger:Ne,disabled:Vt,dropdownRender:yt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:Ce,mouseEnterDelay:mt=.15,mouseLeaveDelay:Oe=.1,autoAdjustOverflow:Ue=!0,placement:ft="",overlay:Ot,transitionName:vt}=me,{getPopupContainer:Jt,getPrefixCls:Yt,direction:Gt,dropdown:sn}=z.useContext(wt.E_),nn=(0,Ge.ln)("Dropdown"),dn=z.useMemo(()=>{const It=Yt();return vt!==void 0?vt:ft.includes("top")?`${It}-slide-down`:`${It}-slide-up`},[Yt,ft,vt]),kt=z.useMemo(()=>ft?ft.includes("Center")?ft.slice(0,ft.indexOf("Center")):ft:Gt==="rtl"?"bottomRight":"bottomLeft",[ft,Gt]),on=Yt("dropdown",Et),Kt=(0,Tt.Z)(on),[Le,st,$t]=Ft(on,Kt),[,Wt]=(0,pt.ZP)(),De=z.Children.only(Ee(jt)?z.createElement("span",null,jt):jt),Ke=(0,Fe.Tm)(De,{className:be()(`${on}-trigger`,{[`${on}-rtl`]:Gt==="rtl"},De.props.className),disabled:(Be=De.props.disabled)!==null&&Be!==void 0?Be:Vt}),gt=Vt?[]:Ne,Bt=!!(gt!=null&>.includes("contextMenu")),[Qt,mn]=(0,qe.Z)(!1,{value:se!=null?se:pe}),Dn=(0,Te.Z)(It=>{ne==null||ne(It,{source:"trigger"}),Ce==null||Ce(It),mn(It)}),Mn=be()(te,ee,st,$t,Kt,sn==null?void 0:sn.className,{[`${on}-rtl`]:Gt==="rtl"}),cn=(0,Mt.Z)({arrowPointAtCenter:typeof Dt=="object"&&Dt.pointAtCenter,autoAdjustOverflow:Ue,offset:Wt.marginXXS,arrowWidth:Dt?Wt.sizePopupArrow:0,borderRadius:Wt.borderRadius}),En=z.useCallback(()=>{Re!=null&&Re.selectable&&(Re!=null&&Re.multiple)||(ne==null||ne(!1,{source:"menu"}),mn(!1))},[Re==null?void 0:Re.selectable,Re==null?void 0:Re.multiple]),vn=()=>{let It;return Re!=null&&Re.items?It=z.createElement(zt.default,Object.assign({},Re)):typeof Ot=="function"?It=Ot():It=Ot,yt&&(It=yt(It)),It=z.Children.only(typeof It=="string"?z.createElement("span",null,It):It),z.createElement(St.J,{prefixCls:`${on}-menu`,rootClassName:be()($t,Kt),expandIcon:z.createElement("span",{className:`${on}-menu-submenu-arrow`},Gt==="rtl"?z.createElement(it.Z,{className:`${on}-menu-submenu-arrow-icon`}):z.createElement(ve.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:En,validator:an=>{let{mode:tn}=an}},It)},[Xt,Rt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let At=z.createElement(Ie.Z,Object.assign({alignPoint:Bt},(0,Se.Z)(me,["rootClassName"]),{mouseEnterDelay:mt,mouseLeaveDelay:Oe,visible:Qt,builtinPlacements:cn,arrow:!!Dt,overlayClassName:Mn,prefixCls:on,getPopupContainer:ae||Jt,transitionName:dn,trigger:gt,overlay:vn,placement:kt,onVisibleChange:Dn,overlayStyle:Object.assign(Object.assign(Object.assign({},sn==null?void 0:sn.style),oe),{zIndex:Xt})}),Ke);return Xt&&(At=z.createElement(ze.Z.Provider,{value:Rt},At)),Le(At)},Ct=(0,Je.Z)(fe,"align",void 0,"dropdown",me=>me),Ut=me=>z.createElement(Ct,Object.assign({},me),z.createElement("span",null));fe._InternalPanelDoNotUseOrYouWillBeFired=Ut;var Pt=fe},75727:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Je}});var z=re(19563),it=re(59301),ve=re(18785),Qe=re(92310),be=re.n(Qe),Ie=re(7939),Te=re(48755),qe=re(44104),Se=re(70045),he=function(Fe,Ge){var ze={};for(var wt in Fe)Object.prototype.hasOwnProperty.call(Fe,wt)&&Ge.indexOf(wt)<0&&(ze[wt]=Fe[wt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,wt=Object.getOwnPropertySymbols(Fe);Tt{const{getPopupContainer:Ge,getPrefixCls:ze,direction:wt}=it.useContext(Te.E_),{prefixCls:Tt,type:zt="default",danger:St,disabled:pt,loading:dt,onClick:He,htmlType:Lt,children:tt,className:ot,menu:xt,arrow:Me,autoFocus:_e,overlay:Ve,trigger:ue,align:ct,open:ke,onOpenChange:nt,placement:Ft,getPopupContainer:xe,href:fe,icon:Ct=it.createElement(ve.Z,null),title:Ut,buttonsRender:Pt=mt=>mt,mouseEnterDelay:me,mouseLeaveDelay:Be,overlayClassName:Re,overlayStyle:Dt,destroyPopupOnHide:Et,dropdownRender:jt}=Fe,Ne=he(Fe,["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"]),Vt=ze("dropdown",Tt),yt=`${Vt}-button`,ae={menu:xt,arrow:Me,autoFocus:_e,align:ct,disabled:pt,trigger:pt?[]:ue,onOpenChange:nt,getPopupContainer:xe||Ge,mouseEnterDelay:me,mouseLeaveDelay:Be,overlayClassName:Re,overlayStyle:Dt,destroyPopupOnHide:Et,dropdownRender:jt},{compactSize:te,compactItemClassnames:ee}=(0,Se.ri)(Vt,wt),oe=be()(yt,ee,ot);"overlay"in Fe&&(ae.overlay=Ve),"open"in Fe&&(ae.open=ke),"placement"in Fe?ae.placement=Ft:ae.placement=wt==="rtl"?"bottomLeft":"bottomRight";const se=it.createElement(Ie.ZP,{type:zt,danger:St,disabled:pt,loading:dt,onClick:He,htmlType:Lt,href:fe,title:Ut},tt),ne=it.createElement(Ie.ZP,{type:zt,danger:St,icon:Ct}),[pe,Ce]=Pt([se,ne]);return it.createElement(qe.Z.Compact,Object.assign({className:oe,size:te,block:!0},Ne),pe,it.createElement(z.Z,Object.assign({},ae),Ce))};Xe.__ANT_BUTTON=!0;var Ee=Xe;const Mt=z.Z;Mt.Button=Ee;var Je=Mt},584:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return zt}});var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(9017),be=re(17835),Ie=re(57700),qe=()=>{const[,St]=(0,Ie.ZP)(),[pt]=(0,Qe.Z)("Empty"),He=new be.FastColor(St.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:He,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(pt==null?void 0:pt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.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"}),z.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)"}),z.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"}),z.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"})),z.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"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,St]=(0,Ie.ZP)(),[pt]=(0,Qe.Z)("Empty"),{colorFill:dt,colorFillTertiary:He,colorFillQuaternary:Lt,colorBgContainer:tt}=St,{borderColor:ot,shadowColor:xt,contentColor:Me}=(0,z.useMemo)(()=>({borderColor:new be.FastColor(dt).onBackground(tt).toHexString(),shadowColor:new be.FastColor(He).onBackground(tt).toHexString(),contentColor:new be.FastColor(Lt).onBackground(tt).toHexString()}),[dt,He,Lt,tt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(pt==null?void 0:pt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:xt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:ot},z.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"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Me}))))},Xe=re(16931),Ee=re(51636);const Mt=St=>{const{componentCls:pt,margin:dt,marginXS:He,marginXL:Lt,fontSize:tt,lineHeight:ot}=St;return{[pt]:{marginInline:He,fontSize:tt,lineHeight:ot,textAlign:"center",[`${pt}-image`]:{height:St.emptyImgHeight,marginBottom:He,opacity:St.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${pt}-description`]:{color:St.colorTextDescription},[`${pt}-footer`]:{marginTop:dt},"&-normal":{marginBlock:Lt,color:St.colorTextDescription,[`${pt}-description`]:{color:St.colorTextDescription},[`${pt}-image`]:{height:St.emptyImgHeightMD}},"&-small":{marginBlock:He,color:St.colorTextDescription,[`${pt}-image`]:{height:St.emptyImgHeightSM}}}}};var Je=(0,Xe.I$)("Empty",St=>{const{componentCls:pt,controlHeightLG:dt,calc:He}=St,Lt=(0,Ee.mergeToken)(St,{emptyImgCls:`${pt}-img`,emptyImgHeight:He(dt).mul(2.5).equal(),emptyImgHeightMD:dt,emptyImgHeightSM:He(dt).mul(.875).equal()});return[Mt(Lt)]}),Fe=re(48755),Ge=function(St,pt){var dt={};for(var He in St)Object.prototype.hasOwnProperty.call(St,He)&&pt.indexOf(He)<0&&(dt[He]=St[He]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,He=Object.getOwnPropertySymbols(St);Lt{const{className:pt,rootClassName:dt,prefixCls:He,image:Lt=ze,description:tt,children:ot,imageStyle:xt,style:Me,classNames:_e,styles:Ve}=St,ue=Ge(St,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ct,direction:ke,className:nt,style:Ft,classNames:xe,styles:fe}=(0,Fe.dj)("empty"),Ct=ct("empty",He),[Ut,Pt,me]=Je(Ct),[Be]=(0,Qe.Z)("Empty"),Re=typeof tt!="undefined"?tt:Be==null?void 0:Be.description,Dt=typeof Re=="string"?Re:"empty";let Et=null;return typeof Lt=="string"?Et=z.createElement("img",{alt:Dt,src:Lt}):Et=Lt,Ut(z.createElement("div",Object.assign({className:ve()(Pt,me,Ct,nt,{[`${Ct}-normal`]:Lt===wt,[`${Ct}-rtl`]:ke==="rtl"},pt,dt,xe.root,_e==null?void 0:_e.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),Ft),Ve==null?void 0:Ve.root),Me)},ue),z.createElement("div",{className:ve()(`${Ct}-image`,xe.image,_e==null?void 0:_e.image),style:Object.assign(Object.assign(Object.assign({},xt),fe.image),Ve==null?void 0:Ve.image)},Et),Re&&z.createElement("div",{className:ve()(`${Ct}-description`,xe.description,_e==null?void 0:_e.description),style:Object.assign(Object.assign({},fe.description),Ve==null?void 0:Ve.description)},Re),ot&&z.createElement("div",{className:ve()(`${Ct}-footer`,xe.footer,_e==null?void 0:_e.footer),style:Object.assign(Object.assign({},fe.footer),Ve==null?void 0:Ve.footer)},ot)))};Tt.PRESENTED_IMAGE_DEFAULT=ze,Tt.PRESENTED_IMAGE_SIMPLE=wt;var zt=Tt},28284:function(fn,_t,re){"use strict";re.d(_t,{default:function(){return rt}});var z=re(56553),it=re(77654),ve=re(59301),Qe=re(92310),be=re.n(Qe),Ie=re(77900),Te=re(86641),qe=re(83397);function Se(we){const[$e,Pe]=ve.useState(we);return ve.useEffect(()=>{const je=setTimeout(()=>{Pe(we)},we.length?0:10);return()=>{clearTimeout(je)}},[we]),$e}var he=re(36237),Xe=re(63356),Ee=re(34925),Mt=re(34961),Je=re(51636),Fe=re(16931),ze=we=>{const{componentCls:$e}=we,Pe=`${$e}-show-help`,je=`${$e}-show-help-item`;return{[Pe]:{transition:`opacity ${we.motionDurationFast} ${we.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[je]:{overflow:"hidden",transition:`height ${we.motionDurationFast} ${we.motionEaseInOut}, opacity ${we.motionDurationFast} ${we.motionEaseInOut}, transform ${we.motionDurationFast} ${we.motionEaseInOut} !important`,[`&${je}-appear, &${je}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${je}-leave-active`]:{transform:"translateY(-5px)"}}}}};const wt=we=>({legend:{display:"block",width:"100%",marginBottom:we.marginLG,padding:0,color:we.colorTextDescription,fontSize:we.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,he.unit)(we.controlOutlineWidth)} ${we.controlOutline}`},output:{display:"block",paddingTop:15,color:we.colorText,fontSize:we.fontSize,lineHeight:we.lineHeight}}),Tt=(we,$e)=>{const{formItemCls:Pe}=we;return{[Pe]:{[`${Pe}-label > label`]:{height:$e},[`${Pe}-control-input`]:{minHeight:$e}}}},zt=we=>{const{componentCls:$e}=we;return{[we.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(we)),wt(we)),{[`${$e}-text`]:{display:"inline-block",paddingInlineEnd:we.paddingSM},"&-small":Object.assign({},Tt(we,we.controlHeightSM)),"&-large":Object.assign({},Tt(we,we.controlHeightLG))})}},St=we=>{const{formItemCls:$e,iconCls:Pe,rootPrefixCls:je,antCls:ye,labelRequiredMarkColor:et,labelColor:at,labelFontSize:bt,labelHeight:lt,labelColonMarginInlineStart:We,labelColonMarginInlineEnd:Ze,itemMarginBottom:ut}=we;return{[$e]:Object.assign(Object.assign({},(0,Xe.Wf)(we)),{marginBottom:ut,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${ye}-row`]:{display:"none"},"&-has-warning":{[`${$e}-split`]:{color:we.colorError}},"&-has-error":{[`${$e}-split`]:{color:we.colorWarning}},[`${$e}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:we.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:lt,color:at,fontSize:bt,[`> ${Pe}`]:{fontSize:we.fontSize,verticalAlign:"top"},[`&${$e}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:we.marginXXS,color:et,fontSize:we.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${$e}-required-mark-hidden, &${$e}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${$e}-optional`]:{display:"inline-block",marginInlineStart:we.marginXXS,color:we.colorTextDescription,[`&${$e}-required-mark-hidden`]:{display:"none"}},[`${$e}-tooltip`]:{color:we.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:we.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:We,marginInlineEnd:Ze},[`&${$e}-no-colon::after`]:{content:'"\\a0"'}}},[`${$e}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${je}-col-'"]):not([class*="' ${je}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:we.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[$e]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:we.colorTextDescription,fontSize:we.fontSize,lineHeight:we.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:we.controlHeightSM,transition:`color ${we.motionDurationMid} ${we.motionEaseOut}`},"&-explain":{"&-error":{color:we.colorError},"&-warning":{color:we.colorWarning}}},[`&-with-help ${$e}-explain`]:{height:"auto",opacity:1},[`${$e}-feedback-icon`]:{fontSize:we.fontSize,textAlign:"center",visibility:"visible",animationName:Ee.kr,animationDuration:we.motionDurationMid,animationTimingFunction:we.motionEaseOutBack,pointerEvents:"none","&-success":{color:we.colorSuccess},"&-error":{color:we.colorError},"&-warning":{color:we.colorWarning},"&-validating":{color:we.colorPrimary}}})}},pt=(we,$e)=>{const{formItemCls:Pe}=we;return{[`${$e}-horizontal`]:{[`${Pe}-label`]:{flexGrow:0},[`${Pe}-control`]:{flex:"1 1 0",minWidth:0},[`${Pe}-label[class$='-24'], ${Pe}-label[class*='-24 ']`]:{[`& + ${Pe}-control`]:{minWidth:"unset"}}}}},dt=we=>{const{componentCls:$e,formItemCls:Pe,inlineItemMarginBottom:je}=we;return{[`${$e}-inline`]:{display:"flex",flexWrap:"wrap",[Pe]:{flex:"none",marginInlineEnd:we.margin,marginBottom:je,"&-row":{flexWrap:"nowrap"},[`> ${Pe}-label, > ${Pe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Pe}-label`]:{flex:"none"},[`${$e}-text`]:{display:"inline-block"},[`${Pe}-has-feedback`]:{display:"inline-block"}}}}},He=we=>({padding:we.verticalLabelPadding,margin:we.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Lt=we=>{const{componentCls:$e,formItemCls:Pe,rootPrefixCls:je}=we;return{[`${Pe} ${Pe}-label`]:He(we),[`${$e}:not(${$e}-inline)`]:{[Pe]:{flexWrap:"wrap",[`${Pe}-label, ${Pe}-control`]:{[`&:not([class*=" ${je}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},tt=we=>{const{componentCls:$e,formItemCls:Pe,antCls:je}=we;return{[`${$e}-vertical`]:{[`${Pe}:not(${Pe}-horizontal)`]:{[`${Pe}-row`]:{flexDirection:"column"},[`${Pe}-label > label`]:{height:"auto"},[`${Pe}-control`]:{width:"100%"},[`${Pe}-label, ${je}-col-24${Pe}-label, ${je}-col-xl-24${Pe}-label`]:He(we)}},[`@media (max-width: ${(0,he.unit)(we.screenXSMax)})`]:[Lt(we),{[$e]:{[`${Pe}:not(${Pe}-horizontal)`]:{[`${je}-col-xs-24${Pe}-label`]:He(we)}}}],[`@media (max-width: ${(0,he.unit)(we.screenSMMax)})`]:{[$e]:{[`${Pe}:not(${Pe}-horizontal)`]:{[`${je}-col-sm-24${Pe}-label`]:He(we)}}},[`@media (max-width: ${(0,he.unit)(we.screenMDMax)})`]:{[$e]:{[`${Pe}:not(${Pe}-horizontal)`]:{[`${je}-col-md-24${Pe}-label`]:He(we)}}},[`@media (max-width: ${(0,he.unit)(we.screenLGMax)})`]:{[$e]:{[`${Pe}:not(${Pe}-horizontal)`]:{[`${je}-col-lg-24${Pe}-label`]:He(we)}}}}},ot=we=>{const{formItemCls:$e,antCls:Pe}=we;return{[`${$e}-vertical`]:{[`${$e}-row`]:{flexDirection:"column"},[`${$e}-label > label`]:{height:"auto"},[`${$e}-control`]:{width:"100%"}},[`${$e}-vertical ${$e}-label, ${Pe}-col-24${$e}-label, ${Pe}-col-xl-24${$e}-label`]:He(we),[`@media (max-width: ${(0,he.unit)(we.screenXSMax)})`]:[Lt(we),{[$e]:{[`${Pe}-col-xs-24${$e}-label`]:He(we)}}],[`@media (max-width: ${(0,he.unit)(we.screenSMMax)})`]:{[$e]:{[`${Pe}-col-sm-24${$e}-label`]:He(we)}},[`@media (max-width: ${(0,he.unit)(we.screenMDMax)})`]:{[$e]:{[`${Pe}-col-md-24${$e}-label`]:He(we)}},[`@media (max-width: ${(0,he.unit)(we.screenLGMax)})`]:{[$e]:{[`${Pe}-col-lg-24${$e}-label`]:He(we)}}}},xt=we=>({labelRequiredMarkColor:we.colorError,labelColor:we.colorTextHeading,labelFontSize:we.fontSize,labelHeight:we.controlHeight,labelColonMarginInlineStart:we.marginXXS/2,labelColonMarginInlineEnd:we.marginXS,itemMarginBottom:we.marginLG,verticalLabelPadding:`0 0 ${we.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Me=(we,$e)=>(0,Je.mergeToken)(we,{formItemCls:`${we.componentCls}-item`,rootPrefixCls:$e});var _e=(0,Fe.I$)("Form",(we,$e)=>{let{rootPrefixCls:Pe}=$e;const je=Me(we,Pe);return[zt(je),St(je),ze(je),pt(je,je.componentCls),pt(je,je.formItemCls),dt(je),tt(je),ot(je),(0,Mt.Z)(je),Ee.kr]},xt,{order:-1e3});const Ve=[];function ue(we,$e,Pe){let je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof we=="string"?we:`${$e}-${je}`,error:we,errorStatus:Pe}}var ke=we=>{let{help:$e,helpStatus:Pe,errors:je=Ve,warnings:ye=Ve,className:et,fieldId:at,onVisibleChanged:bt}=we;const{prefixCls:lt}=ve.useContext(z.Rk),We=`${lt}-item-explain`,Ze=(0,qe.Z)(lt),[ut,un,en]=_e(lt,Ze),ln=ve.useMemo(()=>(0,Te.Z)(lt),[lt]),$n=Se(je),Hn=Se(ye),Vn=ve.useMemo(()=>$e!=null?[ue($e,"help",Pe)]:[].concat((0,it.Z)($n.map((Nn,Zn)=>ue(Nn,"error","error",Zn))),(0,it.Z)(Hn.map((Nn,Zn)=>ue(Nn,"warning","warning",Zn)))),[$e,Pe,$n,Hn]),Fn=ve.useMemo(()=>{const Nn={};return Vn.forEach(Zn=>{let{key:qn}=Zn;Nn[qn]=(Nn[qn]||0)+1}),Vn.map((Zn,qn)=>Object.assign(Object.assign({},Zn),{key:Nn[Zn.key]>1?`${Zn.key}-fallback-${qn}`:Zn.key}))},[Vn]),kn={};return at&&(kn.id=`${at}_help`),ut(ve.createElement(Ie.default,{motionDeadline:ln.motionDeadline,motionName:`${lt}-show-help`,visible:!!Fn.length,onVisibleChanged:bt},Nn=>{const{className:Zn,style:qn}=Nn;return ve.createElement("div",Object.assign({},kn,{className:be()(We,Zn,en,Ze,et,un),style:qn}),ve.createElement(Ie.CSSMotionList,Object.assign({keys:Fn},(0,Te.Z)(lt),{motionName:`${lt}-show-help-item`,component:!1}),Kn=>{const{key:Qn,error:Tn,errorStatus:nr,className:Gn,style:dr}=Kn;return ve.createElement("div",{key:Qn,className:be()(Gn,{[`${We}-${nr}`]:nr}),style:dr},Tn)}))}))},nt=re(69180),Ft=re(48755),xe=re(2171),fe=re(31756),Ct=re(23069),Ut=re(76846),Pt=re(16722);const me=["parentNode"],Be="form_item";function Re(we){return we===void 0||we===!1?[]:Array.isArray(we)?we:[we]}function Dt(we,$e){if(!we.length)return;const Pe=we.join("_");return $e?`${$e}_${Pe}`:me.includes(Pe)?`${Be}_${Pe}`:Pe}function Et(we,$e,Pe,je,ye,et){let at=je;return et!==void 0?at=et:Pe.validating?at="validating":we.length?at="error":$e.length?at="warning":(Pe.touched||ye&&Pe.validated)&&(at="success"),at}var jt=function(we,$e){var Pe={};for(var je in we)Object.prototype.hasOwnProperty.call(we,je)&&$e.indexOf(je)<0&&(Pe[je]=we[je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,je=Object.getOwnPropertySymbols(we);yewe!=null?we:Object.assign(Object.assign({},$e),{__INTERNAL__:{itemRef:ye=>et=>{const at=Ne(ye);et?Pe.current[at]=et:delete Pe.current[at]}},scrollToField:function(ye){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:at}=et,bt=jt(et,["focus"]),lt=Vt(ye,je);lt&&((0,Pt.Z)(lt,Object.assign({scrollMode:"if-needed",block:"nearest"},bt)),at&&je.focusField(ye))},focusField:ye=>{var et,at;const bt=je.getFieldInstance(ye);typeof(bt==null?void 0:bt.focus)=="function"?bt.focus():(at=(et=Vt(ye,je))===null||et===void 0?void 0:et.focus)===null||at===void 0||at.call(et)},getFieldInstance:ye=>{const et=Ne(ye);return Pe.current[et]}}),[we,$e]);return[je]}var ae=re(98350),te=function(we,$e){var Pe={};for(var je in we)Object.prototype.hasOwnProperty.call(we,je)&&$e.indexOf(je)<0&&(Pe[je]=we[je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,je=Object.getOwnPropertySymbols(we);ye{const Pe=ve.useContext(xe.Z),{getPrefixCls:je,direction:ye,requiredMark:et,colon:at,scrollToFirstError:bt,className:lt,style:We}=(0,Ft.dj)("form"),{prefixCls:Ze,className:ut,rootClassName:un,size:en,disabled:ln=Pe,form:$n,colon:Hn,labelAlign:Vn,labelWrap:Fn,labelCol:kn,wrapperCol:Nn,hideRequiredMark:Zn,layout:qn="horizontal",scrollToFirstError:Kn,requiredMark:Qn,onFinishFailed:Tn,name:nr,style:Gn,feedbackIcons:dr,variant:pr}=we,sr=te(we,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,fe.Z)(en),yr=ve.useContext(ae.Z),lr=ve.useMemo(()=>Qn!==void 0?Qn:Zn?!1:et!==void 0?et:!0,[Zn,Qn,et]),fr=Hn!=null?Hn:at,tr=je("form",Ze),mr=(0,qe.Z)(tr),[br,zr,Er]=_e(tr,mr),Br=be()(tr,`${tr}-${qn}`,{[`${tr}-hide-required-mark`]:lr===!1,[`${tr}-rtl`]:ye==="rtl",[`${tr}-${ur}`]:ur},Er,mr,zr,lt,ut,un),[Ir]=yt($n),{__INTERNAL__:Dr}=Ir;Dr.name=nr;const or=ve.useMemo(()=>({name:nr,labelAlign:Vn,labelCol:kn,labelWrap:Fn,wrapperCol:Nn,vertical:qn==="vertical",colon:fr,requiredMark:lr,itemRef:Dr.itemRef,form:Ir,feedbackIcons:dr}),[nr,Vn,kn,Nn,qn,fr,lr,Ir,dr]),ir=ve.useRef(null);ve.useImperativeHandle($e,()=>{var wn;return Object.assign(Object.assign({},Ir),{nativeElement:(wn=ir.current)===null||wn===void 0?void 0:wn.nativeElement})});const er=(wn,Cn)=>{if(wn){let hn={block:"nearest"};typeof wn=="object"&&(hn=Object.assign(Object.assign({},hn),wn)),Ir.scrollToField(Cn,hn)}},gn=wn=>{if(Tn==null||Tn(wn),wn.errorFields.length){const Cn=wn.errorFields[0].name;if(Kn!==void 0){er(Kn,Cn);return}bt!==void 0&&er(bt,Cn)}};return br(ve.createElement(z.pg.Provider,{value:pr},ve.createElement(xe.n,{disabled:ln},ve.createElement(Ct.Z.Provider,{value:ur},ve.createElement(z.RV,{validateMessages:yr},ve.createElement(z.q3.Provider,{value:or},ve.createElement(nt.default,Object.assign({id:nr},sr,{name:nr,onFinishFailed:gn,form:Ir,ref:ir,style:Object.assign(Object.assign({},We),Gn),className:Br}))))))))};var se=ve.forwardRef(ee),ne=re(41799),pe=re(8654),Ce=re(22703),mt=re(32383),Oe=re(11592);function Ue(we){if(typeof we=="function")return we;const $e=(0,Oe.Z)(we);return $e.length<=1?$e[0]:$e}const ft=()=>{const{status:we,errors:$e=[],warnings:Pe=[]}=ve.useContext(z.aM);return{status:we,errors:$e,warnings:Pe}};ft.Context=z.aM;var Ot=ft,vt=re(16089);function Jt(we){const[$e,Pe]=ve.useState(we),je=ve.useRef(null),ye=ve.useRef([]),et=ve.useRef(!1);ve.useEffect(()=>(et.current=!1,()=>{et.current=!0,vt.Z.cancel(je.current),je.current=null}),[]);function at(bt){et.current||(je.current===null&&(ye.current=[],je.current=(0,vt.Z)(()=>{je.current=null,Pe(lt=>{let We=lt;return ye.current.forEach(Ze=>{We=Ze(We)}),We})})),ye.current.push(bt))}return[$e,at]}function Yt(){const{itemRef:we}=ve.useContext(z.q3),$e=ve.useRef({});function Pe(je,ye){const et=ye&&typeof ye=="object"&&(0,pe.C4)(ye),at=je.join("_");return($e.current.name!==at||$e.current.originRef!==et)&&($e.current.name=at,$e.current.originRef=et,$e.current.ref=(0,pe.sQ)(we(je),et)),$e.current.ref}return Pe}var Gt=re(29194),sn=re(34280),nn=re(2738),dn=re(65970),kt=re(70425),on=re(5472);const Kt=we=>{const{formItemCls:$e}=we;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${$e}-control`]:{display:"flex"}}}};var Le=(0,Fe.bk)(["Form","item-item"],(we,$e)=>{let{rootPrefixCls:Pe}=$e;const je=Me(we,Pe);return[Kt(je)]}),st=function(we,$e){var Pe={};for(var je in we)Object.prototype.hasOwnProperty.call(we,je)&&$e.indexOf(je)<0&&(Pe[je]=we[je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,je=Object.getOwnPropertySymbols(we);ye{const{prefixCls:$e,status:Pe,labelCol:je,wrapperCol:ye,children:et,errors:at,warnings:bt,_internalItemRender:lt,extra:We,help:Ze,fieldId:ut,marginBottom:un,onErrorVisibleChanged:en,label:ln}=we,$n=`${$e}-item`,Hn=ve.useContext(z.q3),Vn=ve.useMemo(()=>{let sr=Object.assign({},ye||Hn.wrapperCol||{});return ln===null&&!je&&!ye&&Hn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,kt.U2)(Hn.labelCol,lr),tr=typeof fr=="object"?fr:{},mr=(0,kt.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in tr&&!("offset"in br)&&tr.span<$t&&(sr=(0,kt.t8)(sr,[].concat(lr,["offset"]),tr.span))}),sr},[ye,Hn]),Fn=be()(`${$n}-control`,Vn.className),kn=ve.useMemo(()=>{const{labelCol:sr,wrapperCol:ur}=Hn;return st(Hn,["labelCol","wrapperCol"])},[Hn]),Nn=ve.useRef(null),[Zn,qn]=ve.useState(0);(0,sn.Z)(()=>{We&&Nn.current?qn(Nn.current.clientHeight):qn(0)},[We]);const Kn=ve.createElement("div",{className:`${$n}-control-input`},ve.createElement("div",{className:`${$n}-control-input-content`},et)),Qn=ve.useMemo(()=>({prefixCls:$e,status:Pe}),[$e,Pe]),Tn=un!==null||at.length||bt.length?ve.createElement(z.Rk.Provider,{value:Qn},ve.createElement(ke,{fieldId:ut,errors:at,warnings:bt,help:Ze,helpStatus:Pe,className:`${$n}-explain-connected`,onVisibleChanged:en})):null,nr={};ut&&(nr.id=`${ut}_extra`);const Gn=We?ve.createElement("div",Object.assign({},nr,{className:`${$n}-extra`,ref:Nn}),We):null,dr=Tn||Gn?ve.createElement("div",{className:`${$n}-additional`,style:un?{minHeight:un+Zn}:{}},Tn,Gn):null,pr=lt&<.mark==="pro_table_render"&<.render?lt.render(we,{input:Kn,errorList:Tn,extra:Gn}):ve.createElement(ve.Fragment,null,Kn,dr);return ve.createElement(z.q3.Provider,{value:kn},ve.createElement(on.Z,Object.assign({},Vn,{className:Fn}),pr),ve.createElement(Le,{prefixCls:$e}))},Ke=re(61485),gt=re(9017),Bt=re(85981),Qt=re(25399),mn=function(we,$e){var Pe={};for(var je in we)Object.prototype.hasOwnProperty.call(we,je)&&$e.indexOf(je)<0&&(Pe[je]=we[je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,je=Object.getOwnPropertySymbols(we);ye{let{prefixCls:$e,label:Pe,htmlFor:je,labelCol:ye,labelAlign:et,colon:at,required:bt,requiredMark:lt,tooltip:We,vertical:Ze}=we;var ut;const[un]=(0,gt.Z)("Form"),{labelAlign:en,labelCol:ln,labelWrap:$n,colon:Hn}=ve.useContext(z.q3);if(!Pe)return null;const Vn=ye||ln||{},Fn=et||en,kn=`${$e}-item-label`,Nn=be()(kn,Fn==="left"&&`${kn}-left`,Vn.className,{[`${kn}-wrap`]:!!$n});let Zn=Pe;const qn=at===!0||Hn!==!1&&at!==!1;qn&&!Ze&&typeof Pe=="string"&&Pe.trim()&&(Zn=Pe.replace(/[:|:]\s*$/,""));const Qn=Dn(We);if(Qn){const{icon:sr=ve.createElement(Ke.Z,null)}=Qn,ur=mn(Qn,["icon"]),yr=ve.createElement(Qt.Z,Object.assign({},ur),ve.cloneElement(sr,{className:`${$e}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Zn=ve.createElement(ve.Fragment,null,Zn,yr)}const Tn=lt==="optional",nr=typeof lt=="function",Gn=lt===!1;nr?Zn=lt(Zn,{required:!!bt}):Tn&&!bt&&(Zn=ve.createElement(ve.Fragment,null,Zn,ve.createElement("span",{className:`${$e}-item-optional`,title:""},(un==null?void 0:un.optional)||((ut=Bt.Z.Form)===null||ut===void 0?void 0:ut.optional))));let dr;Gn?dr="hidden":(Tn||nr)&&(dr="optional");const pr=be()({[`${$e}-item-required`]:bt,[`${$e}-item-required-mark-${dr}`]:dr,[`${$e}-item-no-colon`]:!qn});return ve.createElement(on.Z,Object.assign({},Vn,{className:Nn}),ve.createElement("label",{htmlFor:je,className:pr,title:typeof Pe=="string"?Pe:""},Zn))},En=re(29679),vn=re(19248),Xt=re(96512),Rt=re(58617);const At={success:En.Z,warning:Xt.Z,error:vn.Z,validating:Rt.Z};function It(we){let{children:$e,errors:Pe,warnings:je,hasFeedback:ye,validateStatus:et,prefixCls:at,meta:bt,noStyle:lt}=we;const We=`${at}-item`,{feedbackIcons:Ze}=ve.useContext(z.q3),ut=Et(Pe,je,bt,null,!!ye,et),{isFormItemInput:un,status:en,hasFeedback:ln,feedbackIcon:$n}=ve.useContext(z.aM),Hn=ve.useMemo(()=>{var Vn;let Fn;if(ye){const Nn=ye!==!0&&ye.icons||Ze,Zn=ut&&((Vn=Nn==null?void 0:Nn({status:ut,errors:Pe,warnings:je}))===null||Vn===void 0?void 0:Vn[ut]),qn=ut&&At[ut];Fn=Zn!==!1&&qn?ve.createElement("span",{className:be()(`${We}-feedback-icon`,`${We}-feedback-icon-${ut}`)},Zn||ve.createElement(qn,null)):null}const kn={status:ut||"",errors:Pe,warnings:je,hasFeedback:!!ye,feedbackIcon:Fn,isFormItemInput:!0};return lt&&(kn.status=(ut!=null?ut:en)||"",kn.isFormItemInput=un,kn.hasFeedback=!!(ye!=null?ye:ln),kn.feedbackIcon=ye!==void 0?kn.feedbackIcon:$n),kn},[ut,ye,lt,un,en]);return ve.createElement(z.aM.Provider,{value:Hn},$e)}var an=function(we,$e){var Pe={};for(var je in we)Object.prototype.hasOwnProperty.call(we,je)&&$e.indexOf(je)<0&&(Pe[je]=we[je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,je=Object.getOwnPropertySymbols(we);ye{if(Gn&&Kn.current){const tr=getComputedStyle(Kn.current);sr(parseInt(tr.marginBottom,10))}},[Gn,dr]);const ur=tr=>{tr||sr(null)},lr=function(){let tr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=tr?Qn:We.errors,br=tr?Tn:We.warnings;return Et(mr,br,We,"",!!Ze,lt)}(),fr=be()(kn,Pe,je,{[`${kn}-with-help`]:nr||Qn.length||Tn.length,[`${kn}-has-feedback`]:lr&&Ze,[`${kn}-has-success`]:lr==="success",[`${kn}-has-warning`]:lr==="warning",[`${kn}-has-error`]:lr==="error",[`${kn}-is-validating`]:lr==="validating",[`${kn}-hidden`]:ut,[`${kn}-${Vn}`]:Vn});return ve.createElement("div",{className:fr,style:ye,ref:Kn},ve.createElement(dn.Z,Object.assign({className:`${kn}-row`},(0,nn.Z)(Fn,["_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(cn,Object.assign({htmlFor:en},we,{requiredMark:Nn,required:ln!=null?ln:$n,prefixCls:$e,vertical:qn})),ve.createElement(De,Object.assign({},we,We,{errors:Qn,warnings:Tn,prefixCls:$e,status:lr,help:et,marginBottom:pr,onErrorVisibleChanged:ur}),ve.createElement(z.qI.Provider,{value:Hn},ve.createElement(It,{prefixCls:$e,meta:We,errors:We.errors,warnings:We.warnings,hasFeedback:Ze,validateStatus:lr},un)))),!!pr&&ve.createElement("div",{className:`${kn}-margin-offset`,style:{marginBottom:-pr}}))}const rn="__SPLIT__",Sn=null;function Pn(we,$e){const Pe=Object.keys(we),je=Object.keys($e);return Pe.length===je.length&&Pe.every(ye=>{const et=we[ye],at=$e[ye];return et===at||typeof et=="function"||typeof at=="function"})}const On=ve.memo(we=>{let{children:$e}=we;return $e},(we,$e)=>Pn(we.control,$e.control)&&we.update===$e.update&&we.childProps.length===$e.childProps.length&&we.childProps.every((Pe,je)=>Pe===$e.childProps[je]));function Rn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ln(we){const{name:$e,noStyle:Pe,className:je,dependencies:ye,prefixCls:et,shouldUpdate:at,rules:bt,children:lt,required:We,label:Ze,messageVariables:ut,trigger:un="onChange",validateTrigger:en,hidden:ln,help:$n,layout:Hn}=we,{getPrefixCls:Vn}=ve.useContext(Ft.E_),{name:Fn}=ve.useContext(z.q3),kn=Ue(lt),Nn=typeof kn=="function",Zn=ve.useContext(z.qI),{validateTrigger:qn}=ve.useContext(nt.FieldContext),Kn=en!==void 0?en:qn,Qn=$e!=null,Tn=Vn("form",et),nr=(0,qe.Z)(Tn),[Gn,dr,pr]=_e(Tn,nr),sr=(0,mt.ln)("Form.Item"),ur=ve.useContext(nt.ListContext),yr=ve.useRef(null),[lr,fr]=Jt({}),[tr,mr]=(0,ne.Z)(()=>Rn()),br=ir=>{const er=ur==null?void 0:ur.getKey(ir.name);if(mr(ir.destroy?Rn():ir,!0),Pe&&$n!==!1&&Zn){let gn=ir.name;if(ir.destroy)gn=yr.current||gn;else if(er!==void 0){const[wn,Cn]=er;gn=[wn].concat((0,it.Z)(Cn)),yr.current=gn}Zn(ir,gn)}},zr=(ir,er)=>{fr(gn=>{const wn=Object.assign({},gn),hn=[].concat((0,it.Z)(ir.name.slice(0,-1)),(0,it.Z)(er)).join(rn);return ir.destroy?delete wn[hn]:wn[hn]=ir,wn})},[Er,Br]=ve.useMemo(()=>{const ir=(0,it.Z)(tr.errors),er=(0,it.Z)(tr.warnings);return Object.values(lr).forEach(gn=>{ir.push.apply(ir,(0,it.Z)(gn.errors||[])),er.push.apply(er,(0,it.Z)(gn.warnings||[]))}),[ir,er]},[lr,tr.errors,tr.warnings]),Ir=Yt();function Dr(ir,er,gn){return Pe&&!ln?ve.createElement(It,{prefixCls:Tn,hasFeedback:we.hasFeedback,validateStatus:we.validateStatus,meta:tr,errors:Er,warnings:Br,noStyle:!0},ir):ve.createElement(tn,Object.assign({key:"row"},we,{className:be()(je,pr,nr,dr),prefixCls:Tn,fieldId:er,isRequired:gn,errors:Er,warnings:Br,meta:tr,onSubItemMetaChange:zr,layout:Hn}),ir)}if(!Qn&&!Nn&&!ye)return Gn(Dr(kn));let or={};return typeof Ze=="string"?or.label=Ze:$e&&(or.label=String($e)),ut&&(or=Object.assign(Object.assign({},or),ut)),Gn(ve.createElement(nt.Field,Object.assign({},we,{messageVariables:or,trigger:un,validateTrigger:Kn,onMetaChange:br}),(ir,er,gn)=>{const wn=Re($e).length&&er?er.name:[],Cn=Dt(wn,Fn),hn=We!==void 0?We:!!(bt!=null&&bt.some(yn=>{if(yn&&typeof yn=="object"&&yn.required&&!yn.warningOnly)return!0;if(typeof yn=="function"){const pn=yn(gn);return(pn==null?void 0:pn.required)&&!(pn!=null&&pn.warningOnly)}return!1})),jn=Object.assign({},ir);let Un=null;if(Array.isArray(kn)&&Qn)Un=kn;else if(!(Nn&&(!(at||ye)||Qn))){if(!(ye&&!Nn&&!Qn))if(ve.isValidElement(kn)){const yn=Object.assign(Object.assign({},kn.props),jn);if(yn.id||(yn.id=Cn),$n||Er.length>0||Br.length>0||we.extra){const zn=[];($n||Er.length>0)&&zn.push(`${Cn}_help`),we.extra&&zn.push(`${Cn}_extra`),yn["aria-describedby"]=zn.join(" ")}Er.length>0&&(yn["aria-invalid"]="true"),hn&&(yn["aria-required"]="true"),(0,pe.Yr)(kn)&&(yn.ref=Ir(wn,kn)),new Set([].concat((0,it.Z)(Re(un)),(0,it.Z)(Re(Kn)))).forEach(zn=>{yn[zn]=function(){for(var cr,kr,Pr,Fr,Ar,Rr=arguments.length,Vr=new Array(Rr),Hr=0;Hr{var{prefixCls:$e,children:Pe}=we,je=Nt(we,["prefixCls","children"]);const{getPrefixCls:ye}=ve.useContext(Ft.E_),et=ye("form",$e),at=ve.useMemo(()=>({prefixCls:et,status:"error"}),[et]);return ve.createElement(nt.List,Object.assign({},je),(bt,lt,We)=>ve.createElement(z.Rk.Provider,{value:at},Pe(bt.map(Ze=>Object.assign(Object.assign({},Ze),{fieldKey:Ze.key})),lt,{errors:We.errors,warnings:We.warnings})))};function xn(){const{form:we}=ve.useContext(z.q3);return we}const Ae=se;Ae.Item=_n,Ae.List=In,Ae.ErrorList=ke,Ae.useForm=yt,Ae.useFormInstance=xn,Ae.useWatch=nt.useWatch,Ae.Provider=z.RV,Ae.create=()=>{};var rt=Ae},4875:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Wt}});var z=re(59301),it=re(84105),ve=re(87395),Qe=re(92310),be=re.n(Qe),Ie=re(60499),Te=re(18642),qe=re(43749),Se=re(72190),he=re(42244),Xe=re(38705),Ee=re(17212);function Mt(){return typeof BigInt=="function"}function Je(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function Fe(De){var Ke=De.trim(),gt=Ke.startsWith("-");gt&&(Ke=Ke.slice(1)),Ke=Ke.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ke.startsWith(".")&&(Ke="0".concat(Ke));var Bt=Ke||"0",Qt=Bt.split("."),mn=Qt[0]||"0",Dn=Qt[1]||"0";mn==="0"&&Dn==="0"&&(gt=!1);var Mn=gt?"-":"";return{negative:gt,negativeStr:Mn,trimStr:Bt,integerStr:mn,decimalStr:Dn,fullStr:"".concat(Mn).concat(Bt)}}function Ge(De){var Ke=String(De);return!Number.isNaN(Number(Ke))&&Ke.includes("e")}function ze(De){var Ke=String(De);if(Ge(De)){var gt=Number(Ke.slice(Ke.indexOf("e-")+2)),Bt=Ke.match(/\.(\d+)/);return Bt!=null&&Bt[1]&&(gt+=Bt[1].length),gt}return Ke.includes(".")&&Tt(Ke)?Ke.length-Ke.indexOf(".")-1:0}function wt(De){var Ke=String(De);if(Ge(De)){if(De>Number.MAX_SAFE_INTEGER)return String(Mt()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":Fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),St=function(){function De(Ke){if((0,Xe.Z)(this,De),(0,Te.Z)(this,"origin",""),(0,Te.Z)(this,"number",void 0),(0,Te.Z)(this,"empty",void 0),Je(Ke)){this.empty=!0;return}this.origin=String(Ke),this.number=Number(Ke)}return(0,Ee.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new De(gt);var Bt=Number(gt);if(Number.isNaN(Bt))return this;var Qt=this.number+Bt;if(Qt>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(QtNumber.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(Qt0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":wt(this.number):this.origin}}]),De}();function pt(De){return Mt()?new zt(De):new St(De)}function dt(De,Ke,gt){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var Qt=Fe(De),mn=Qt.negativeStr,Dn=Qt.integerStr,Mn=Qt.decimalStr,cn="".concat(Ke).concat(Mn),En="".concat(mn).concat(Dn);if(gt>=0){var vn=Number(Mn[gt]);if(vn>=5&&!Bt){var Xt=pt(De).add("".concat(mn,"0.").concat("0".repeat(gt)).concat(10-vn));return dt(Xt.toString(),Ke,gt,Bt)}return gt===0?En:"".concat(En).concat(Ke).concat(Mn.padEnd(gt,"0").slice(0,gt))}return cn===".0"?En:"".concat(En).concat(cn)}var He=pt,Lt=re(36901),tt=re(34280);function ot(De,Ke){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(Bt,Qt){if(Ke[Qt])return Ke[Qt];var mn=Bt[Qt];return typeof mn=="function"?mn.bind(Bt):mn}}):De}var xt=re(8654),Me=re(48736);function _e(De,Ke){var gt=(0,z.useRef)(null);function Bt(){try{var mn=De.selectionStart,Dn=De.selectionEnd,Mn=De.value,cn=Mn.substring(0,mn),En=Mn.substring(Dn);gt.current={start:mn,end:Dn,value:Mn,beforeTxt:cn,afterTxt:En}}catch(vn){}}function Qt(){if(De&>.current&&Ke)try{var mn=De.value,Dn=gt.current,Mn=Dn.beforeTxt,cn=Dn.afterTxt,En=Dn.start,vn=mn.length;if(mn.startsWith(Mn))vn=Mn.length;else if(mn.endsWith(cn))vn=mn.length-gt.current.afterTxt.length;else{var Xt=Mn[En-1],Rt=mn.indexOf(Xt,En-1);Rt!==-1&&(vn=Rt+1)}De.setSelectionRange(vn,vn)}catch(At){(0,Me.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(At.message))}}return[Bt,Qt]}var Ve=re(49658),ue=function(){var Ke=(0,z.useState)(!1),gt=(0,Se.Z)(Ke,2),Bt=gt[0],Qt=gt[1];return(0,tt.Z)(function(){Qt((0,Ve.Z)())},[]),Bt},ct=ue,ke=re(16089),nt=200,Ft=600;function xe(De){var Ke=De.prefixCls,gt=De.upNode,Bt=De.downNode,Qt=De.upDisabled,mn=De.downDisabled,Dn=De.onStep,Mn=z.useRef(),cn=z.useRef([]),En=z.useRef();En.current=Dn;var vn=function(){clearTimeout(Mn.current)},Xt=function(Pn,On){Pn.preventDefault(),vn(),En.current(On);function Rn(){En.current(On),Mn.current=setTimeout(Rn,nt)}Mn.current=setTimeout(Rn,Ft)};z.useEffect(function(){return function(){vn(),cn.current.forEach(function(Sn){return ke.Z.cancel(Sn)})}},[]);var Rt=ct();if(Rt)return null;var At="".concat(Ke,"-handler"),It=be()(At,"".concat(At,"-up"),(0,Te.Z)({},"".concat(At,"-up-disabled"),Qt)),an=be()(At,"".concat(At,"-down"),(0,Te.Z)({},"".concat(At,"-down-disabled"),mn)),tn=function(){return cn.current.push((0,ke.Z)(vn))},rn={unselectable:"on",role:"button",onMouseUp:tn,onMouseLeave:tn};return z.createElement("div",{className:"".concat(At,"-wrap")},z.createElement("span",(0,Ie.Z)({},rn,{onMouseDown:function(Pn){Xt(Pn,!0)},"aria-label":"Increase Value","aria-disabled":Qt,className:It}),gt||z.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-up-inner")})),z.createElement("span",(0,Ie.Z)({},rn,{onMouseDown:function(Pn){Xt(Pn,!1)},"aria-label":"Decrease Value","aria-disabled":mn,className:an}),Bt||z.createElement("span",{unselectable:"on",className:"".concat(Ke,"-handler-down-inner")})))}function fe(De){var Ke=typeof De=="number"?wt(De):Fe(De).fullStr,gt=Ke.includes(".");return gt?Fe(Ke.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var Ct=re(30292),Ut=function(){var De=(0,z.useRef)(0),Ke=function(){ke.Z.cancel(De.current)};return(0,z.useEffect)(function(){return Ke},[]),function(gt){Ke(),De.current=(0,ke.Z)(function(){gt()})}},Pt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Be=function(Ke,gt){return Ke||gt.isEmpty()?gt.toString():gt.toNumber()},Re=function(Ke){var gt=He(Ke);return gt.isInvalidate()?null:gt},Dt=z.forwardRef(function(De,Ke){var gt=De.prefixCls,Bt=De.className,Qt=De.style,mn=De.min,Dn=De.max,Mn=De.step,cn=Mn===void 0?1:Mn,En=De.defaultValue,vn=De.value,Xt=De.disabled,Rt=De.readOnly,At=De.upHandler,It=De.downHandler,an=De.keyboard,tn=De.changeOnWheel,rn=tn===void 0?!1:tn,Sn=De.controls,Pn=Sn===void 0?!0:Sn,On=De.classNames,Rn=De.stringMode,Ln=De.parser,Jn=De.formatter,_n=De.precision,Nt=De.decimalSeparator,qt=De.onChange,In=De.onInput,xn=De.onPressEnter,Ae=De.onStep,rt=De.changeOnBlur,we=rt===void 0?!0:rt,$e=De.domRef,Pe=(0,he.Z)(De,Pt),je="".concat(gt,"-input"),ye=z.useRef(null),et=z.useState(!1),at=(0,Se.Z)(et,2),bt=at[0],lt=at[1],We=z.useRef(!1),Ze=z.useRef(!1),ut=z.useRef(!1),un=z.useState(function(){return He(vn!=null?vn:En)}),en=(0,Se.Z)(un,2),ln=en[0],$n=en[1];function Hn(Cn){vn===void 0&&$n(Cn)}var Vn=z.useCallback(function(Cn,hn){if(!hn)return _n>=0?_n:Math.max(ze(Cn),ze(cn))},[_n,cn]),Fn=z.useCallback(function(Cn){var hn=String(Cn);if(Ln)return Ln(hn);var jn=hn;return Nt&&(jn=jn.replace(Nt,".")),jn.replace(/[^\w.-]+/g,"")},[Ln,Nt]),kn=z.useRef(""),Nn=z.useCallback(function(Cn,hn){if(Jn)return Jn(Cn,{userTyping:hn,input:String(kn.current)});var jn=typeof Cn=="number"?wt(Cn):Cn;if(!hn){var Un=Vn(jn,hn);if(Tt(jn)&&(Nt||Un>=0)){var yn=Nt||".";jn=dt(jn,yn,Un)}}return jn},[Jn,Vn,Nt]),Zn=z.useState(function(){var Cn=En!=null?En:vn;return ln.isInvalidate()&&["string","number"].includes((0,qe.Z)(Cn))?Number.isNaN(Cn)?"":Cn:Nn(ln.toString(),!1)}),qn=(0,Se.Z)(Zn,2),Kn=qn[0],Qn=qn[1];kn.current=Kn;function Tn(Cn,hn){Qn(Nn(Cn.isInvalidate()?Cn.toString(!1):Cn.toString(!hn),hn))}var nr=z.useMemo(function(){return Re(Dn)},[Dn,_n]),Gn=z.useMemo(function(){return Re(mn)},[mn,_n]),dr=z.useMemo(function(){return!nr||!ln||ln.isInvalidate()?!1:nr.lessEquals(ln)},[nr,ln]),pr=z.useMemo(function(){return!Gn||!ln||ln.isInvalidate()?!1:ln.lessEquals(Gn)},[Gn,ln]),sr=_e(ye.current,bt),ur=(0,Se.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(hn){return nr&&!hn.lessEquals(nr)?nr:Gn&&!Gn.lessEquals(hn)?Gn:null},tr=function(hn){return!fr(hn)},mr=function(hn,jn){var Un=hn,yn=tr(Un)||Un.isEmpty();if(!Un.isEmpty()&&!jn&&(Un=fr(Un)||Un,yn=!0),!Rt&&!Xt&&yn){var pn=Un.toString(),Bn=Vn(pn,jn);return Bn>=0&&(Un=He(dt(pn,".",Bn)),tr(Un)||(Un=He(dt(pn,".",Bn,!0)))),Un.equals(ln)||(Hn(Un),qt==null||qt(Un.isEmpty()?null:Be(Rn,Un)),vn===void 0&&Tn(Un,jn)),Un}return ln},br=Ut(),zr=function Cn(hn){if(yr(),kn.current=hn,Qn(hn),!Ze.current){var jn=Fn(hn),Un=He(jn);Un.isNaN()||mr(Un,!0)}In==null||In(hn),br(function(){var yn=hn;Ln||(yn=hn.replace(/。/g,".")),yn!==hn&&Cn(yn)})},Er=function(){Ze.current=!0},Br=function(){Ze.current=!1,zr(ye.current.value)},Ir=function(hn){zr(hn.target.value)},Dr=function(hn){var jn;if(!(hn&&dr||!hn&&pr)){We.current=!1;var Un=He(ut.current?fe(cn):cn);hn||(Un=Un.negate());var yn=(ln||He(0)).add(Un.toString()),pn=mr(yn,!1);Ae==null||Ae(Be(Rn,pn),{offset:ut.current?fe(cn):cn,type:hn?"up":"down"}),(jn=ye.current)===null||jn===void 0||jn.focus()}},or=function(hn){var jn=He(Fn(Kn)),Un;jn.isNaN()?Un=mr(ln,hn):Un=mr(jn,hn),vn!==void 0?Tn(ln,!1):Un.isNaN()||Tn(Un,!1)},ir=function(){We.current=!0},er=function(hn){var jn=hn.key,Un=hn.shiftKey;We.current=!0,ut.current=Un,jn==="Enter"&&(Ze.current||(We.current=!1),or(!1),xn==null||xn(hn)),an!==!1&&!Ze.current&&["Up","ArrowUp","Down","ArrowDown"].includes(jn)&&(Dr(jn==="Up"||jn==="ArrowUp"),hn.preventDefault())},gn=function(){We.current=!1,ut.current=!1};z.useEffect(function(){if(rn&&bt){var Cn=function(Un){Dr(Un.deltaY<0),Un.preventDefault()},hn=ye.current;if(hn)return hn.addEventListener("wheel",Cn,{passive:!1}),function(){return hn.removeEventListener("wheel",Cn)}}});var wn=function(){we&&or(!1),lt(!1),We.current=!1};return(0,tt.o)(function(){ln.isInvalidate()||Tn(ln,!1)},[_n,Jn]),(0,tt.o)(function(){var Cn=He(vn);$n(Cn);var hn=He(Fn(Kn));(!Cn.equals(hn)||!We.current||Jn)&&Tn(Cn,We.current)},[vn]),(0,tt.o)(function(){Jn&&lr()},[Kn]),z.createElement("div",{ref:$e,className:be()(gt,Bt,(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(gt,"-focused"),bt),"".concat(gt,"-disabled"),Xt),"".concat(gt,"-readonly"),Rt),"".concat(gt,"-not-a-number"),ln.isNaN()),"".concat(gt,"-out-of-range"),!ln.isInvalidate()&&!tr(ln))),style:Qt,onFocus:function(){lt(!0)},onBlur:wn,onKeyDown:er,onKeyUp:gn,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:ir},Pn&&z.createElement(xe,{prefixCls:gt,upNode:At,downNode:It,upDisabled:dr,downDisabled:pr,onStep:Dr}),z.createElement("div",{className:"".concat(je,"-wrap")},z.createElement("input",(0,Ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":mn,"aria-valuemax":Dn,"aria-valuenow":ln.isInvalidate()?null:ln.toString(),step:cn},Pe,{ref:(0,xt.sQ)(ye,Ke),className:je,value:Kn,onChange:Ir,disabled:Xt,readOnly:Rt}))))}),Et=z.forwardRef(function(De,Ke){var gt=De.disabled,Bt=De.style,Qt=De.prefixCls,mn=Qt===void 0?"rc-input-number":Qt,Dn=De.value,Mn=De.prefix,cn=De.suffix,En=De.addonBefore,vn=De.addonAfter,Xt=De.className,Rt=De.classNames,At=(0,he.Z)(De,me),It=z.useRef(null),an=z.useRef(null),tn=z.useRef(null),rn=function(Pn){tn.current&&(0,Ct.nH)(tn.current,Pn)};return z.useImperativeHandle(Ke,function(){return ot(tn.current,{focus:rn,nativeElement:It.current.nativeElement||an.current})}),z.createElement(Lt.BaseInput,{className:Xt,triggerFocus:rn,prefixCls:mn,value:Dn,disabled:gt,style:Bt,prefix:Mn,suffix:cn,addonAfter:vn,addonBefore:En,classNames:Rt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:It},z.createElement(Dt,(0,Ie.Z)({prefixCls:mn,disabled:gt,ref:tn,domRef:an,className:Rt==null?void 0:Rt.input},At)))}),jt=Et,Ne=jt,Vt=re(62487),yt=re(82855),ae=re(48755),te=re(60840),ee=re(2171),oe=re(83397),se=re(31756),ne=re(56553),pe=re(24971),Ce=re(70045),mt=re(36237),Oe=re(53075),Ue=re(64910),ft=re(39082),Ot=re(63356),vt=re(56119),Jt=re(16931),Yt=re(51636),Gt=re(17835);const sn=De=>{var Ke;const gt=(Ke=De.handleVisible)!==null&&Ke!==void 0?Ke:"auto",Bt=De.controlHeightSM-De.lineWidth*2;return Object.assign(Object.assign({},(0,Ue.T)(De)),{controlWidth:90,handleWidth:Bt,handleFontSize:De.fontSize/2,handleVisible:gt,handleActiveBg:De.colorFillAlter,handleBg:De.colorBgContainer,filledHandleBg:new Gt.FastColor(De.colorFillSecondary).onBackground(De.colorBgContainer).toHexString(),handleHoverColor:De.colorPrimary,handleBorderColor:De.colorBorder,handleOpacity:gt===!0?1:0,handleVisibleWidth:gt===!0?Bt:0})},nn=(De,Ke)=>{let{componentCls:gt,borderRadiusSM:Bt,borderRadiusLG:Qt}=De;const mn=Ke==="lg"?Qt:Bt;return{[`&-${Ke}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:mn,borderEndEndRadius:mn},[`${gt}-handler-up`]:{borderStartEndRadius:mn},[`${gt}-handler-down`]:{borderEndEndRadius:mn}}}},dn=De=>{const{componentCls:Ke,lineWidth:gt,lineType:Bt,borderRadius:Qt,inputFontSizeSM:mn,inputFontSizeLG:Dn,controlHeightLG:Mn,controlHeightSM:cn,colorError:En,paddingInlineSM:vn,paddingBlockSM:Xt,paddingBlockLG:Rt,paddingInlineLG:At,colorTextDescription:It,motionDurationMid:an,handleHoverColor:tn,handleOpacity:rn,paddingInline:Sn,paddingBlock:Pn,handleBg:On,handleActiveBg:Rn,colorTextDisabled:Ln,borderRadiusSM:Jn,borderRadiusLG:_n,controlWidth:Nt,handleBorderColor:qt,filledHandleBg:In,lineHeightLG:xn,calc:Ae}=De;return[{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ot.Wf)(De)),(0,Oe.ik)(De)),{display:"inline-block",width:Nt,margin:0,padding:0,borderRadius:Qt}),(0,ft.qG)(De,{[`${Ke}-handler-wrap`]:{background:On,[`${Ke}-handler-down`]:{borderBlockStart:`${(0,mt.unit)(gt)} ${Bt} ${qt}`}}})),(0,ft.H8)(De,{[`${Ke}-handler-wrap`]:{background:In,[`${Ke}-handler-down`]:{borderBlockStart:`${(0,mt.unit)(gt)} ${Bt} ${qt}`}},"&:focus-within":{[`${Ke}-handler-wrap`]:{background:On}}})),(0,ft.vc)(De,{[`${Ke}-handler-wrap`]:{background:On,[`${Ke}-handler-down`]:{borderBlockStart:`${(0,mt.unit)(gt)} ${Bt} ${qt}`}}})),(0,ft.Mu)(De)),{"&-rtl":{direction:"rtl",[`${Ke}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dn,lineHeight:xn,borderRadius:_n,[`input${Ke}-input`]:{height:Ae(Mn).sub(Ae(gt).mul(2)).equal(),padding:`${(0,mt.unit)(Rt)} ${(0,mt.unit)(At)}`}},"&-sm":{padding:0,fontSize:mn,borderRadius:Jn,[`input${Ke}-input`]:{height:Ae(cn).sub(Ae(gt).mul(2)).equal(),padding:`${(0,mt.unit)(Xt)} ${(0,mt.unit)(vn)}`}},"&-out-of-range":{[`${Ke}-input-wrap`]:{input:{color:En}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ot.Wf)(De)),(0,Oe.s7)(De)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ke}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ke}-group-addon`]:{borderRadius:_n,fontSize:De.fontSizeLG}},"&-sm":{[`${Ke}-group-addon`]:{borderRadius:Jn}}},(0,ft.ir)(De)),(0,ft.S5)(De)),{[`&:not(${Ke}-compact-first-item):not(${Ke}-compact-last-item)${Ke}-compact-item`]:{[`${Ke}, ${Ke}-group-addon`]:{borderRadius:0}},[`&:not(${Ke}-compact-last-item)${Ke}-compact-first-item`]:{[`${Ke}, ${Ke}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ke}-compact-first-item)${Ke}-compact-last-item`]:{[`${Ke}, ${Ke}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ke}-input`]:{cursor:"not-allowed"},[Ke]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ot.Wf)(De)),{width:"100%",padding:`${(0,mt.unit)(Pn)} ${(0,mt.unit)(Sn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qt,outline:0,transition:`all ${an} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Oe.nz)(De.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ke}-handler-wrap, &-focused ${Ke}-handler-wrap`]:{width:De.handleWidth,opacity:1}})},{[Ke]:Object.assign(Object.assign(Object.assign({[`${Ke}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:De.handleVisibleWidth,opacity:rn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Qt,borderEndEndRadius:Qt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${an}`,overflow:"hidden",[`${Ke}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Ke}-handler-up-inner, ${Ke}-handler-down-inner `]:{marginInlineEnd:0,fontSize:De.handleFontSize}}},[`${Ke}-handler`]:{height:"50%",overflow:"hidden",color:It,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,mt.unit)(gt)} ${Bt} ${qt}`,transition:`all ${an} linear`,"&:active":{background:Rn},"&:hover":{height:"60%",[` ${Ke}-handler-up-inner, ${Ke}-handler-down-inner `]:{color:tn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ot.Ro)()),{color:It,transition:`all ${an} linear`,userSelect:"none"})},[`${Ke}-handler-up`]:{borderStartEndRadius:Qt},[`${Ke}-handler-down`]:{borderEndEndRadius:Qt}},nn(De,"lg")),nn(De,"sm")),{"&-disabled, &-readonly":{[`${Ke}-handler-wrap`]:{display:"none"},[`${Ke}-input`]:{color:"inherit"}},[` ${Ke}-handler-up-disabled, ${Ke}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Ke}-handler-up-disabled:hover &-handler-up-inner, ${Ke}-handler-down-disabled:hover &-handler-down-inner `]:{color:Ln}})}]},kt=De=>{const{componentCls:Ke,paddingBlock:gt,paddingInline:Bt,inputAffixPadding:Qt,controlWidth:mn,borderRadiusLG:Dn,borderRadiusSM:Mn,paddingInlineLG:cn,paddingInlineSM:En,paddingBlockLG:vn,paddingBlockSM:Xt,motionDurationMid:Rt}=De;return{[`${Ke}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ke}-input`]:{padding:`${(0,mt.unit)(gt)} 0`}},(0,Oe.ik)(De)),{position:"relative",display:"inline-flex",alignItems:"center",width:mn,padding:0,paddingInlineStart:Bt,"&-lg":{borderRadius:Dn,paddingInlineStart:cn,[`input${Ke}-input`]:{padding:`${(0,mt.unit)(vn)} 0`}},"&-sm":{borderRadius:Mn,paddingInlineStart:En,[`input${Ke}-input`]:{padding:`${(0,mt.unit)(Xt)} 0`}},[`&:not(${Ke}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ke}-disabled`]:{background:"transparent"},[`> div${Ke}`]:{width:"100%",border:"none",outline:"none",[`&${Ke}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ke}-handler-wrap`]:{zIndex:2},[Ke]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Qt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Bt,marginInlineStart:Qt,transition:`margin ${Rt}`}},[`&:hover ${Ke}-handler-wrap, &-focused ${Ke}-handler-wrap`]:{width:De.handleWidth,opacity:1},[`&:not(${Ke}-affix-wrapper-without-controls):hover ${Ke}-suffix`]:{marginInlineEnd:De.calc(De.handleWidth).add(Bt).equal()}})}};var on=(0,Jt.I$)("InputNumber",De=>{const Ke=(0,Yt.mergeToken)(De,(0,Ue.e)(De));return[dn(Ke),kt(Ke),(0,vt.c)(Ke)]},sn,{unitless:{handleOpacity:!0}}),Kt=function(De,Ke){var gt={};for(var Bt in De)Object.prototype.hasOwnProperty.call(De,Bt)&&Ke.indexOf(Bt)<0&&(gt[Bt]=De[Bt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Bt=Object.getOwnPropertySymbols(De);Qt{const{getPrefixCls:gt,direction:Bt}=z.useContext(ae.E_),Qt=z.useRef(null);z.useImperativeHandle(Ke,()=>Qt.current);const{className:mn,rootClassName:Dn,size:Mn,disabled:cn,prefixCls:En,addonBefore:vn,addonAfter:Xt,prefix:Rt,suffix:At,bordered:It,readOnly:an,status:tn,controls:rn,variant:Sn}=De,Pn=Kt(De,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),On=gt("input-number",En),Rn=(0,oe.Z)(On),[Ln,Jn,_n]=on(On,Rn),{compactSize:Nt,compactItemClassnames:qt}=(0,Ce.ri)(On,Bt);let In=z.createElement(ve.Z,{className:`${On}-handler-up-inner`}),xn=z.createElement(it.Z,{className:`${On}-handler-down-inner`});const Ae=typeof rn=="boolean"?rn:void 0;typeof rn=="object"&&(In=typeof rn.upIcon=="undefined"?In:z.createElement("span",{className:`${On}-handler-up-inner`},rn.upIcon),xn=typeof rn.downIcon=="undefined"?xn:z.createElement("span",{className:`${On}-handler-down-inner`},rn.downIcon));const{hasFeedback:rt,status:we,isFormItemInput:$e,feedbackIcon:Pe}=z.useContext(ne.aM),je=(0,yt.F)(we,tn),ye=(0,se.Z)(en=>{var ln;return(ln=Mn!=null?Mn:Nt)!==null&&ln!==void 0?ln:en}),et=z.useContext(ee.Z),at=cn!=null?cn:et,[bt,lt]=(0,pe.Z)("inputNumber",Sn,It),We=rt&&z.createElement(z.Fragment,null,Pe),Ze=be()({[`${On}-lg`]:ye==="large",[`${On}-sm`]:ye==="small",[`${On}-rtl`]:Bt==="rtl",[`${On}-in-form-item`]:$e},Jn),ut=`${On}-group`,un=z.createElement(Ne,Object.assign({ref:Qt,disabled:at,className:be()(_n,Rn,mn,Dn,qt),upHandler:In,downHandler:xn,prefixCls:On,readOnly:an,controls:Ae,prefix:Rt,suffix:We||At,addonBefore:vn&&z.createElement(Vt.Z,{form:!0,space:!0},vn),addonAfter:Xt&&z.createElement(Vt.Z,{form:!0,space:!0},Xt),classNames:{input:Ze,variant:be()({[`${On}-${bt}`]:lt},(0,yt.Z)(On,je,rt)),affixWrapper:be()({[`${On}-affix-wrapper-sm`]:ye==="small",[`${On}-affix-wrapper-lg`]:ye==="large",[`${On}-affix-wrapper-rtl`]:Bt==="rtl",[`${On}-affix-wrapper-without-controls`]:rn===!1||at},Jn),wrapper:be()({[`${ut}-rtl`]:Bt==="rtl"},Jn),groupWrapper:be()({[`${On}-group-wrapper-sm`]:ye==="small",[`${On}-group-wrapper-lg`]:ye==="large",[`${On}-group-wrapper-rtl`]:Bt==="rtl",[`${On}-group-wrapper-${bt}`]:lt},(0,yt.Z)(`${On}-group-wrapper`,je,rt),Jn)}},Pn));return Ln(un)}),st=Le,$t=De=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Le,Object.assign({},De)));st._InternalPanelDoNotUseOrYouWillBeFired=$t;var Wt=st},49397:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return St}});var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(36901),be=re(8654),Ie=re(62487),Te=re(86013),qe=re(82855),Se=re(48755),he=re(2171),Xe=re(83397),Ee=re(31756),Mt=re(56553),Je=re(24971),Fe=re(70045),Ge=re(23826),ze=re(53075);function wt(pt){return!!(pt.prefix||pt.suffix||pt.allowClear||pt.showCount)}var Tt=function(pt,dt){var He={};for(var Lt in pt)Object.prototype.hasOwnProperty.call(pt,Lt)&&dt.indexOf(Lt)<0&&(He[Lt]=pt[Lt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Lt=Object.getOwnPropertySymbols(pt);tt{const{prefixCls:He,bordered:Lt=!0,status:tt,size:ot,disabled:xt,onBlur:Me,onFocus:_e,suffix:Ve,allowClear:ue,addonAfter:ct,addonBefore:ke,className:nt,style:Ft,styles:xe,rootClassName:fe,onChange:Ct,classNames:Ut,variant:Pt}=pt,me=Tt(pt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Be,direction:Re,allowClear:Dt,autoComplete:Et,className:jt,style:Ne,classNames:Vt,styles:yt}=(0,Se.dj)("input"),ae=Be("input",He),te=(0,z.useRef)(null),ee=(0,Xe.Z)(ae),[oe,se,ne]=(0,ze.TI)(ae,fe),[pe]=(0,ze.ZP)(ae,ee),{compactSize:Ce,compactItemClassnames:mt}=(0,Fe.ri)(ae,Re),Oe=(0,Ee.Z)(Wt=>{var De;return(De=ot!=null?ot:Ce)!==null&&De!==void 0?De:Wt}),Ue=z.useContext(he.Z),ft=xt!=null?xt:Ue,{status:Ot,hasFeedback:vt,feedbackIcon:Jt}=(0,z.useContext)(Mt.aM),Yt=(0,qe.F)(Ot,tt),Gt=wt(pt)||!!vt,sn=(0,z.useRef)(Gt),nn=(0,Ge.Z)(te,!0),dn=Wt=>{nn(),Me==null||Me(Wt)},kt=Wt=>{nn(),_e==null||_e(Wt)},on=Wt=>{nn(),Ct==null||Ct(Wt)},Kt=(vt||Ve)&&z.createElement(z.Fragment,null,Ve,vt&&Jt),Le=(0,Te.Z)(ue!=null?ue:Dt),[st,$t]=(0,Je.Z)("input",Pt,Lt);return oe(pe(z.createElement(Qe.default,Object.assign({ref:(0,be.sQ)(dt,te),prefixCls:ae,autoComplete:Et},me,{disabled:ft,onBlur:dn,onFocus:kt,style:Object.assign(Object.assign({},Ne),Ft),styles:Object.assign(Object.assign({},yt),xe),suffix:Kt,allowClear:Le,className:ve()(nt,fe,ne,ee,mt,jt),onChange:on,addonBefore:ke&&z.createElement(Ie.Z,{form:!0,space:!0},ke),addonAfter:ct&&z.createElement(Ie.Z,{form:!0,space:!0},ct),classNames:Object.assign(Object.assign(Object.assign({},Ut),Vt),{input:ve()({[`${ae}-sm`]:Oe==="small",[`${ae}-lg`]:Oe==="large",[`${ae}-rtl`]:Re==="rtl"},Ut==null?void 0:Ut.input,Vt.input,se),variant:ve()({[`${ae}-${st}`]:$t},(0,qe.Z)(ae,Yt)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:Oe==="small",[`${ae}-affix-wrapper-lg`]:Oe==="large",[`${ae}-affix-wrapper-rtl`]:Re==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:Re==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:Oe==="small",[`${ae}-group-wrapper-lg`]:Oe==="large",[`${ae}-group-wrapper-rtl`]:Re==="rtl",[`${ae}-group-wrapper-${st}`]:$t},(0,qe.Z)(`${ae}-group-wrapper`,Yt,vt),se)})}))))})},79809:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return dt}});var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(22711),be=re(86013),Ie=re(82855),Te=re(48755),qe=re(2171),Se=re(83397),he=re(31756),Xe=re(56553),Ee=re(24971),Mt=re(70045),Je=re(30292),Fe=re(53075),Ge=re(16931),ze=re(51636),wt=re(64910);const Tt=He=>{const{componentCls:Lt,paddingLG:tt}=He,ot=`${Lt}-textarea`;return{[`textarea${Lt}`]:{maxWidth:"100%",height:"auto",minHeight:He.controlHeight,lineHeight:He.lineHeight,verticalAlign:"bottom",transition:`all ${He.motionDurationSlow}`,resize:"vertical",[`&${Lt}-mouse-active`]:{transition:`all ${He.motionDurationSlow}, height 0s, width 0s`}},[`${Lt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ot]:{position:"relative","&-show-count":{[`> ${Lt}`]:{height:"100%"},[`${Lt}-data-count`]:{position:"absolute",bottom:He.calc(He.fontSize).mul(He.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:He.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${Lt}, &-affix-wrapper${ot}-has-feedback ${Lt} `]:{paddingInlineEnd:tt},[`&-affix-wrapper${Lt}-affix-wrapper`]:{padding:0,[`> textarea${Lt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:He.calc(He.controlHeight).sub(He.calc(He.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Lt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Lt}-clear-icon`]:{position:"absolute",insetInlineEnd:He.paddingInline,insetBlockStart:He.paddingXS},[`${ot}-suffix`]:{position:"absolute",top:0,insetInlineEnd:He.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Lt}-affix-wrapper-sm`]:{[`${Lt}-suffix`]:{[`${Lt}-clear-icon`]:{insetInlineEnd:He.paddingInlineSM}}}}}};var zt=(0,Ge.I$)(["Input","TextArea"],He=>{const Lt=(0,ze.mergeToken)(He,(0,wt.e)(He));return[Tt(Lt)]},wt.T,{resetFont:!1}),St=function(He,Lt){var tt={};for(var ot in He)Object.prototype.hasOwnProperty.call(He,ot)&&Lt.indexOf(ot)<0&&(tt[ot]=He[ot]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,ot=Object.getOwnPropertySymbols(He);xt{var tt;const{prefixCls:ot,bordered:xt=!0,size:Me,disabled:_e,status:Ve,allowClear:ue,classNames:ct,rootClassName:ke,className:nt,style:Ft,styles:xe,variant:fe,showCount:Ct,onMouseDown:Ut,onResize:Pt}=He,me=St(He,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Be,direction:Re,allowClear:Dt,autoComplete:Et,className:jt,style:Ne,classNames:Vt,styles:yt}=(0,Te.dj)("textArea"),ae=z.useContext(qe.Z),te=_e!=null?_e:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Xe.aM),ne=(0,Ie.F)(ee,Ve),pe=z.useRef(null);z.useImperativeHandle(Lt,()=>{var $t;return{resizableTextArea:($t=pe.current)===null||$t===void 0?void 0:$t.resizableTextArea,focus:Wt=>{var De,Ke;(0,Je.nH)((Ke=(De=pe.current)===null||De===void 0?void 0:De.resizableTextArea)===null||Ke===void 0?void 0:Ke.textArea,Wt)},blur:()=>{var Wt;return(Wt=pe.current)===null||Wt===void 0?void 0:Wt.blur()}}});const Ce=Be("input",ot),mt=(0,Se.Z)(Ce),[Oe,Ue,ft]=(0,Fe.TI)(Ce,ke),[Ot]=zt(Ce,mt),{compactSize:vt,compactItemClassnames:Jt}=(0,Mt.ri)(Ce,Re),Yt=(0,he.Z)($t=>{var Wt;return(Wt=Me!=null?Me:vt)!==null&&Wt!==void 0?Wt:$t}),[Gt,sn]=(0,Ee.Z)("textArea",fe,xt),nn=(0,be.Z)(ue!=null?ue:Dt),[dn,kt]=z.useState(!1),[on,Kt]=z.useState(!1),Le=$t=>{kt(!0),Ut==null||Ut($t);const Wt=()=>{kt(!1),document.removeEventListener("mouseup",Wt)};document.addEventListener("mouseup",Wt)},st=$t=>{var Wt,De;if(Pt==null||Pt($t),dn&&typeof getComputedStyle=="function"){const Ke=(De=(Wt=pe.current)===null||Wt===void 0?void 0:Wt.nativeElement)===null||De===void 0?void 0:De.querySelector("textarea");Ke&&getComputedStyle(Ke).resize==="both"&&Kt(!0)}};return Oe(Ot(z.createElement(Qe.default,Object.assign({autoComplete:Et},me,{style:Object.assign(Object.assign({},Ne),Ft),styles:Object.assign(Object.assign({},yt),xe),disabled:te,allowClear:nn,className:ve()(ft,mt,nt,ke,Jt,jt,on&&`${Ce}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ct),Vt),{textarea:ve()({[`${Ce}-sm`]:Yt==="small",[`${Ce}-lg`]:Yt==="large"},Ue,ct==null?void 0:ct.textarea,Vt.textarea,dn&&`${Ce}-mouse-active`),variant:ve()({[`${Ce}-${Gt}`]:sn},(0,Ie.Z)(Ce,ne)),affixWrapper:ve()(`${Ce}-textarea-affix-wrapper`,{[`${Ce}-affix-wrapper-rtl`]:Re==="rtl",[`${Ce}-affix-wrapper-sm`]:Yt==="small",[`${Ce}-affix-wrapper-lg`]:Yt==="large",[`${Ce}-textarea-show-count`]:Ct||((tt=He.count)===null||tt===void 0?void 0:tt.show)},Ue)}),prefixCls:Ce,suffix:oe&&z.createElement("span",{className:`${Ce}-textarea-suffix`},se),showCount:Ct,ref:pe,onResize:st,onMouseDown:Le}))))})},23826:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return it}});var z=re(59301);function it(ve,Qe){const be=(0,z.useRef)([]),Ie=()=>{be.current.push(setTimeout(()=>{var Te,qe,Se,he;!((Te=ve.current)===null||Te===void 0)&&Te.input&&((qe=ve.current)===null||qe===void 0?void 0:qe.input.getAttribute("type"))==="password"&&(!((Se=ve.current)===null||Se===void 0)&&Se.input.hasAttribute("value"))&&((he=ve.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Qe&&Ie(),()=>be.current.forEach(Te=>{Te&&clearTimeout(Te)})),[]),Ie}},37568:function(fn,_t,re){"use strict";re.d(_t,{default:function(){return Vt}});var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(48755),be=re(56553),Ie=re(53075),qe=yt=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Qe.E_),{prefixCls:ee,className:oe}=yt,se=ae("input-group",ee),ne=ae("input"),[pe,Ce,mt]=(0,Ie.ZP)(ne),Oe=ve()(se,mt,{[`${se}-lg`]:yt.size==="large",[`${se}-sm`]:yt.size==="small",[`${se}-compact`]:yt.compact,[`${se}-rtl`]:te==="rtl"},Ce,oe),Ue=(0,z.useContext)(be.aM),ft=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return pe(z.createElement("span",{className:Oe,style:yt.style,onMouseEnter:yt.onMouseEnter,onMouseLeave:yt.onMouseLeave,onFocus:yt.onFocus,onBlur:yt.onBlur},z.createElement(be.aM.Provider,{value:ft},yt.children)))},Se=re(49397),he=re(77654),Xe=re(6089),Ee=re(26112),Mt=re(82855),Je=re(31756),Fe=re(16931),Ge=re(51636),ze=re(64910);const wt=yt=>{const{componentCls:ae,paddingXS:te}=yt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:yt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:yt.calc(yt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:yt.paddingXS}}}};var Tt=(0,Fe.I$)(["Input","OTP"],yt=>{const ae=(0,Ge.mergeToken)(yt,(0,ze.e)(yt));return[wt(ae)]},ze.T),zt=re(16089),St=function(yt,ae){var te={};for(var ee in yt)Object.prototype.hasOwnProperty.call(yt,ee)&&ae.indexOf(ee)<0&&(te[ee]=yt[ee]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(yt);oe{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=yt,pe=St(yt,["value","onChange","onActiveChange","index","mask"]),Ce=te&&typeof ne=="string"?ne:te,mt=vt=>{ee(se,vt.target.value)},Oe=z.useRef(null);z.useImperativeHandle(ae,()=>Oe.current);const Ue=()=>{(0,zt.Z)(()=>{var vt;const Jt=(vt=Oe.current)===null||vt===void 0?void 0:vt.input;document.activeElement===Jt&&Jt&&Jt.select()})},ft=vt=>{const{key:Jt,ctrlKey:Yt,metaKey:Gt}=vt;Jt==="ArrowLeft"?oe(se-1):Jt==="ArrowRight"?oe(se+1):Jt==="z"&&(Yt||Gt)&&vt.preventDefault(),Ue()},Ot=vt=>{vt.key==="Backspace"&&!te&&oe(se-1),Ue()};return z.createElement(Se.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Oe,value:Ce,onInput:mt,onFocus:Ue,onKeyDown:ft,onKeyUp:Ot,onMouseDown:Ue,onMouseUp:Ue}))}),He=function(yt,ae){var te={};for(var ee in yt)Object.prototype.hasOwnProperty.call(yt,ee)&&ae.indexOf(ee)<0&&(te[ee]=yt[ee]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(yt);oe{const{index:ae,prefixCls:te,separator:ee}=yt,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var xt=z.forwardRef((yt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:Ce,separator:mt,variant:Oe,disabled:Ue,status:ft,autoFocus:Ot,mask:vt,type:Jt,onInput:Yt,inputMode:Gt}=yt,sn=He(yt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:nn,direction:dn}=z.useContext(Qe.E_),kt=nn("otp",te),on=(0,Ee.Z)(sn,{aria:!0,data:!0,attr:!0}),[Kt,Le,st]=Tt(kt),$t=(0,Je.Z)(Rt=>oe!=null?oe:Rt),Wt=z.useContext(be.aM),De=(0,Mt.F)(Wt.status,ft),Ke=z.useMemo(()=>Object.assign(Object.assign({},Wt),{status:De,hasFeedback:!1,feedbackIcon:null}),[Wt,De]),gt=z.useRef(null),Bt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var Rt;(Rt=Bt.current[0])===null||Rt===void 0||Rt.focus()},blur:()=>{var Rt;for(let At=0;AtCe?Ce(Rt):Rt,[mn,Dn]=z.useState(()=>Lt(Qt(se||"")));z.useEffect(()=>{ne!==void 0&&Dn(Lt(ne))},[ne]);const Mn=(0,Xe.Z)(Rt=>{Dn(Rt),Yt&&Yt(Rt),pe&&Rt.length===ee&&Rt.every(At=>At)&&Rt.some((At,It)=>mn[It]!==At)&&pe(Rt.join(""))}),cn=(0,Xe.Z)((Rt,At)=>{let It=(0,he.Z)(mn);for(let tn=0;tn=0&&!It[tn];tn-=1)It.pop();const an=Qt(It.map(tn=>tn||" ").join(""));return It=Lt(an).map((tn,rn)=>tn===" "&&!It[rn]?It[rn]:tn),It}),En=(Rt,At)=>{var It;const an=cn(Rt,At),tn=Math.min(Rt+At.length,ee-1);tn!==Rt&&an[Rt]!==void 0&&((It=Bt.current[tn])===null||It===void 0||It.focus()),Mn(an)},vn=Rt=>{var At;(At=Bt.current[Rt])===null||At===void 0||At.focus()},Xt={variant:Oe,disabled:Ue,status:De,mask:vt,type:Jt,inputMode:Gt};return Kt(z.createElement("div",Object.assign({},on,{ref:gt,className:ve()(kt,{[`${kt}-sm`]:$t==="small",[`${kt}-lg`]:$t==="large",[`${kt}-rtl`]:dn==="rtl"},st,Le)}),z.createElement(be.aM.Provider,{value:Ke},Array.from({length:ee}).map((Rt,At)=>{const It=`otp-${At}`,an=mn[At]||"";return z.createElement(z.Fragment,{key:It},z.createElement(dt,Object.assign({ref:tn=>{Bt.current[At]=tn},index:At,size:$t,htmlSize:1,className:`${kt}-input`,onChange:En,value:an,onActiveChange:vn,autoFocus:At===0&&Ot},Xt)),Atyt?z.createElement(_e.Z,null):z.createElement(Me.Z,null),xe={click:"onClick",hover:"onMouseOver"};var Ct=z.forwardRef((yt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Ft}=yt,ne=z.useContext(ct.Z),pe=te!=null?te:ne,Ce=typeof oe=="object"&&oe.visible!==void 0,[mt,Oe]=(0,z.useState)(()=>Ce?oe.visible:!1),Ue=(0,z.useRef)(null);z.useEffect(()=>{Ce&&Oe(oe.visible)},[Ce,oe]);const ft=(0,ke.Z)(Ue),Ot=()=>{var $t;if(pe)return;mt&&ft();const Wt=!mt;Oe(Wt),typeof oe=="object"&&(($t=oe.onVisibleChange)===null||$t===void 0||$t.call(oe,Wt))},vt=$t=>{const Wt=xe[ee]||"",De=se(mt),Ke={[Wt]:Ot,className:`${$t}-icon`,key:"passwordIcon",onMouseDown:gt=>{gt.preventDefault()},onMouseUp:gt=>{gt.preventDefault()}};return z.cloneElement(z.isValidElement(De)?De:z.createElement("span",null,De),Ke)},{className:Jt,prefixCls:Yt,inputPrefixCls:Gt,size:sn}=yt,nn=nt(yt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:dn}=z.useContext(Qe.E_),kt=dn("input",Gt),on=dn("input-password",Yt),Kt=oe&&vt(on),Le=ve()(on,Jt,{[`${on}-${sn}`]:!!sn}),st=Object.assign(Object.assign({},(0,Ve.Z)(nn,["suffix","iconRender","visibilityToggle"])),{type:mt?"text":"password",className:Le,prefixCls:kt,suffix:Kt});return sn&&(st.size=sn),z.createElement(Se.Z,Object.assign({ref:(0,ue.sQ)(ae,Ue)},st))}),Ut=re(47472),Pt=re(22703),me=re(7939),Be=re(70045),Re=function(yt,ae){var te={};for(var ee in yt)Object.prototype.hasOwnProperty.call(yt,ee)&&ae.indexOf(ee)<0&&(te[ee]=yt[ee]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(yt);oe{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:pe=!1,addonAfter:Ce,loading:mt,disabled:Oe,onSearch:Ue,onChange:ft,onCompositionStart:Ot,onCompositionEnd:vt}=yt,Jt=Re(yt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Yt,direction:Gt}=z.useContext(Qe.E_),sn=z.useRef(!1),nn=Yt("input-search",te),dn=Yt("input",ee),{compactSize:kt}=(0,Be.ri)(nn,Gt),on=(0,Je.Z)(En=>{var vn;return(vn=se!=null?se:kt)!==null&&vn!==void 0?vn:En}),Kt=z.useRef(null),Le=En=>{En!=null&&En.target&&En.type==="click"&&Ue&&Ue(En.target.value,En,{source:"clear"}),ft==null||ft(En)},st=En=>{var vn;document.activeElement===((vn=Kt.current)===null||vn===void 0?void 0:vn.input)&&En.preventDefault()},$t=En=>{var vn,Xt;Ue&&Ue((Xt=(vn=Kt.current)===null||vn===void 0?void 0:vn.input)===null||Xt===void 0?void 0:Xt.value,En,{source:"input"})},Wt=En=>{sn.current||mt||$t(En)},De=typeof pe=="boolean"?z.createElement(Ut.Z,null):null,Ke=`${nn}-button`;let gt;const Bt=pe||{},Qt=Bt.type&&Bt.type.__ANT_BUTTON===!0;Qt||Bt.type==="button"?gt=(0,Pt.Tm)(Bt,Object.assign({onMouseDown:st,onClick:En=>{var vn,Xt;(Xt=(vn=Bt==null?void 0:Bt.props)===null||vn===void 0?void 0:vn.onClick)===null||Xt===void 0||Xt.call(vn,En),$t(En)},key:"enterButton"},Qt?{className:Ke,size:on}:{})):gt=z.createElement(me.ZP,{className:Ke,type:pe?"primary":void 0,size:on,disabled:Oe,key:"enterButton",onMouseDown:st,onClick:$t,loading:mt,icon:De},pe),Ce&&(gt=[gt,(0,Pt.Tm)(Ce,{key:"addonAfter"})]);const mn=ve()(nn,{[`${nn}-rtl`]:Gt==="rtl",[`${nn}-${on}`]:!!on,[`${nn}-with-button`]:!!pe},oe),Dn=Object.assign(Object.assign({},Jt),{className:mn,prefixCls:dn,type:"search"}),Mn=En=>{sn.current=!0,Ot==null||Ot(En)},cn=En=>{sn.current=!1,vt==null||vt(En)};return z.createElement(Se.Z,Object.assign({ref:(0,ue.sQ)(Kt,ae),onPressEnter:Wt},Dn,{size:on,onCompositionStart:Mn,onCompositionEnd:cn,addonAfter:gt,suffix:ne,onChange:Le,disabled:Oe}))}),jt=re(79809);const Ne=Se.Z;Ne.Group=qe,Ne.Search=Et,Ne.TextArea=jt.Z,Ne.Password=Ct,Ne.OTP=xt;var Vt=Ne},24303:function(fn,_t,re){"use strict";re.d(_t,{D:function(){return He},Z:function(){return ot}});var z=re(59301),it=re(60499),ve={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=ve,be=re(7657),Ie=function(Me,_e){return z.createElement(be.Z,(0,it.Z)({},Me,{ref:_e,icon:Qe}))},Te=z.forwardRef(Ie),qe=Te,Se=re(33853),he=re(38819),Xe=re(92310),Ee=re.n(Xe),Mt=re(2738),Je=re(48755),Fe=re(6989),Ge=re(36237),ze=re(48923),wt=re(16931);const Tt=xt=>{const{componentCls:Me,siderBg:_e,motionDurationMid:Ve,motionDurationSlow:ue,antCls:ct,triggerHeight:ke,triggerColor:nt,triggerBg:Ft,headerHeight:xe,zeroTriggerWidth:fe,zeroTriggerHeight:Ct,borderRadiusLG:Ut,lightSiderBg:Pt,lightTriggerColor:me,lightTriggerBg:Be,bodyBg:Re}=xt;return{[Me]:{position:"relative",minWidth:0,background:_e,transition:`all ${Ve}, background 0s`,"&-has-trigger":{paddingBottom:ke},"&-right":{order:1},[`${Me}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ct}-menu${ct}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Me}-children`]:{overflow:"hidden"},[`${Me}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ke,color:nt,lineHeight:(0,Ge.unit)(ke),textAlign:"center",background:Ft,cursor:"pointer",transition:`all ${Ve}`},[`${Me}-zero-width-trigger`]:{position:"absolute",top:xe,insetInlineEnd:xt.calc(fe).mul(-1).equal(),zIndex:1,width:fe,height:Ct,color:nt,fontSize:xt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderRadius:`0 ${(0,Ge.unit)(Ut)} ${(0,Ge.unit)(Ut)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:xt.calc(fe).mul(-1).equal(),borderRadius:`${(0,Ge.unit)(Ut)} 0 0 ${(0,Ge.unit)(Ut)}`}},"&-light":{background:Pt,[`${Me}-trigger`]:{color:me,background:Be},[`${Me}-zero-width-trigger`]:{color:me,background:Be,border:`1px solid ${Re}`,borderInlineStart:0}}}}};var zt=(0,wt.I$)(["Layout","Sider"],xt=>[Tt(xt)],ze.eh,{deprecatedTokens:ze.jn}),St=function(xt,Me){var _e={};for(var Ve in xt)Object.prototype.hasOwnProperty.call(xt,Ve)&&Me.indexOf(Ve)<0&&(_e[Ve]=xt[Ve]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ve=Object.getOwnPropertySymbols(xt);ue!Number.isNaN(Number.parseFloat(xt))&&isFinite(xt),He=z.createContext({}),Lt=(()=>{let xt=0;return function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xt+=1,`${Me}${xt}`}})();var ot=z.forwardRef((xt,Me)=>{const{prefixCls:_e,className:Ve,trigger:ue,children:ct,defaultCollapsed:ke=!1,theme:nt="dark",style:Ft={},collapsible:xe=!1,reverseArrow:fe=!1,width:Ct=200,collapsedWidth:Ut=80,zeroWidthTriggerStyle:Pt,breakpoint:me,onCollapse:Be,onBreakpoint:Re}=xt,Dt=St(xt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Et}=(0,z.useContext)(Fe.V),[jt,Ne]=(0,z.useState)("collapsed"in xt?xt.collapsed:ke),[Vt,yt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in xt&&Ne(xt.collapsed)},[xt.collapsed]);const ae=(on,Kt)=>{"collapsed"in xt||Ne(on),Be==null||Be(on,Kt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Je.E_),oe=te("layout-sider",_e),[se,ne,pe]=zt(oe),Ce=(0,z.useRef)(null);Ce.current=on=>{yt(on.matches),Re==null||Re(on.matches),jt!==on.matches&&ae(on.matches,"responsive")},(0,z.useEffect)(()=>{function on(Le){return Ce.current(Le)}let Kt;if(typeof window!="undefined"){const{matchMedia:Le}=window;if(Le&&me&&me in pt){Kt=Le(`screen and (max-width: ${pt[me]})`);try{Kt.addEventListener("change",on)}catch(st){Kt.addListener(on)}on(Kt)}}return()=>{try{Kt==null||Kt.removeEventListener("change",on)}catch(Le){Kt==null||Kt.removeListener(on)}}},[me]),(0,z.useEffect)(()=>{const on=Lt("ant-sider-");return Et.addSider(on),()=>Et.removeSider(on)},[]);const mt=()=>{ae(!jt,"clickTrigger")},Oe=(0,Mt.Z)(Dt,["collapsed"]),Ue=jt?Ut:Ct,ft=dt(Ue)?`${Ue}px`:String(Ue),Ot=parseFloat(String(Ut||0))===0?z.createElement("span",{onClick:mt,className:Ee()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${fe?"right":"left"}`),style:Pt},ue||z.createElement(qe,null)):null,vt=ee==="rtl"==!fe,Gt={expanded:vt?z.createElement(he.Z,null):z.createElement(Se.Z,null),collapsed:vt?z.createElement(Se.Z,null):z.createElement(he.Z,null)}[jt?"collapsed":"expanded"],sn=ue!==null?Ot||z.createElement("div",{className:`${oe}-trigger`,onClick:mt,style:{width:ft}},ue||Gt):null,nn=Object.assign(Object.assign({},Ft),{flex:`0 0 ${ft}`,maxWidth:ft,minWidth:ft,width:ft}),dn=Ee()(oe,`${oe}-${nt}`,{[`${oe}-collapsed`]:!!jt,[`${oe}-has-trigger`]:xe&&ue!==null&&!Ot,[`${oe}-below`]:!!Vt,[`${oe}-zero-width`]:parseFloat(ft)===0},Ve,ne,pe),kt=z.useMemo(()=>({siderCollapsed:jt}),[jt]);return se(z.createElement(He.Provider,{value:kt},z.createElement("aside",Object.assign({className:dn},Oe,{style:nn,ref:Me}),z.createElement("div",{className:`${oe}-children`},ct),xe||Vt&&Ot?sn:null)))})},6989:function(fn,_t,re){"use strict";re.d(_t,{V:function(){return it}});var z=re(59301);const it=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(fn,_t,re){"use strict";re.d(_t,{eh:function(){return Qe},jn:function(){return be}});var z=re(36237),it=re(16931);const ve=Ie=>{const{antCls:Te,componentCls:qe,colorText:Se,footerBg:he,headerHeight:Xe,headerPadding:Ee,headerColor:Mt,footerPadding:Je,fontSize:Fe,bodyBg:Ge,headerBg:ze}=Ie;return{[qe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ge,"&, *":{boxSizing:"border-box"},[`&${qe}-has-sider`]:{flexDirection:"row",[`> ${qe}, > ${qe}-content`]:{width:0}},[`${qe}-header, &${qe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${qe}-header`]:{height:Xe,padding:Ee,color:Mt,lineHeight:(0,z.unit)(Xe),background:ze,[`${Te}-menu`]:{lineHeight:"inherit"}},[`${qe}-footer`]:{padding:Je,color:Se,fontSize:Fe,background:he},[`${qe}-content`]:{flex:"auto",color:Se,minHeight:0}}},Qe=Ie=>{const{colorBgLayout:Te,controlHeight:qe,controlHeightLG:Se,colorText:he,controlHeightSM:Xe,marginXXS:Ee,colorTextLightSolid:Mt,colorBgContainer:Je}=Ie,Fe=Se*1.25;return{colorBgHeader:"#001529",colorBgBody:Te,colorBgTrigger:"#002140",bodyBg:Te,headerBg:"#001529",headerHeight:qe*2,headerPadding:`0 ${Fe}px`,headerColor:he,footerPadding:`${Xe}px ${Fe}px`,footerBg:Te,siderBg:"#001529",triggerHeight:Se+Ee*2,triggerBg:"#002140",triggerColor:Mt,zeroTriggerWidth:Se,zeroTriggerHeight:Se,lightSiderBg:Je,lightTriggerBg:Je,lightTriggerColor:he}},be=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];_t.ZP=(0,it.I$)("Layout",Ie=>[ve(Ie)],Qe,{deprecatedTokens:be})},78857:function(fn,_t,re){"use strict";re.d(_t,{J:function(){return Ie}});var z=re(59301),it=re(8654),ve=re(62487),Qe=function(Te,qe){var Se={};for(var he in Te)Object.prototype.hasOwnProperty.call(Te,he)&&qe.indexOf(he)<0&&(Se[he]=Te[he]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,he=Object.getOwnPropertySymbols(Te);Xe{const{children:Se}=Te,he=Qe(Te,["children"]),Xe=z.useContext(be),Ee=z.useMemo(()=>Object.assign(Object.assign({},Xe),he),[Xe,he.prefixCls,he.mode,he.selectable,he.rootClassName]),Mt=(0,it.t4)(Se),Je=(0,it.x1)(qe,Mt?(0,it.C4)(Se):null);return z.createElement(be.Provider,{value:Ee},z.createElement(ve.Z,{space:!0},Mt?z.cloneElement(Se,{ref:Je}):Se))});_t.Z=be},93041:function(fn,_t,re){"use strict";re.d(_t,{default:function(){return se}});var z=re(59301),it=re(28321),ve=re(24303),Qe=re(18785),be=re(92310),Ie=re.n(be),Te=re(6089),qe=re(2738),Se=re(86641),he=re(22703),Xe=re(48755),Ee=re(83397),Je=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Fe=function(ne,pe){var Ce={};for(var mt in ne)Object.prototype.hasOwnProperty.call(ne,mt)&&pe.indexOf(mt)<0&&(Ce[mt]=ne[mt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,mt=Object.getOwnPropertySymbols(ne);Oe{const{prefixCls:pe,className:Ce,dashed:mt}=ne,Oe=Fe(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ue}=z.useContext(Xe.E_),ft=Ue("menu",pe),Ot=Ie()({[`${ft}-item-divider-dashed`]:!!mt},Ce);return z.createElement(it.iz,Object.assign({className:Ot},Oe))},wt=re(11592),Tt=re(25399),St=ne=>{var pe;const{className:Ce,children:mt,icon:Oe,title:Ue,danger:ft,extra:Ot}=ne,{prefixCls:vt,firstLevel:Jt,direction:Yt,disableMenuItemTitleTooltip:Gt,inlineCollapsed:sn}=z.useContext(Je),nn=st=>{const $t=mt==null?void 0:mt[0],Wt=z.createElement("span",{className:Ie()(`${vt}-title-content`,{[`${vt}-title-content-with-extra`]:!!Ot||Ot===0})},mt);return(!Oe||z.isValidElement(mt)&&mt.type==="span")&&mt&&st&&Jt&&typeof $t=="string"?z.createElement("div",{className:`${vt}-inline-collapsed-noicon`},$t.charAt(0)):Wt},{siderCollapsed:dn}=z.useContext(ve.D);let kt=Ue;typeof Ue=="undefined"?kt=Jt?mt:"":Ue===!1&&(kt="");const on={title:kt};!dn&&!sn&&(on.title=null,on.open=!1);const Kt=(0,wt.Z)(mt).length;let Le=z.createElement(it.ck,Object.assign({},(0,qe.Z)(ne,["title","icon","danger"]),{className:Ie()({[`${vt}-item-danger`]:ft,[`${vt}-item-only-child`]:(Oe?Kt+1:Kt)===1},Ce),title:typeof Ue=="string"?Ue:void 0}),(0,he.Tm)(Oe,{className:Ie()(z.isValidElement(Oe)?(pe=Oe.props)===null||pe===void 0?void 0:pe.className:"",`${vt}-item-icon`)}),nn(sn));return Gt||(Le=z.createElement(Tt.Z,Object.assign({},on,{placement:Yt==="rtl"?"left":"right",classNames:{root:`${vt}-inline-collapsed-tooltip`}}),Le)),Le},pt=re(78857),dt=re(36237),He=re(17835),Lt=re(63356),tt=re(34961),ot=re(46e3),xt=re(34925),Me=re(16931),_e=re(51636),ue=ne=>{const{componentCls:pe,motionDurationSlow:Ce,horizontalLineHeight:mt,colorSplit:Oe,lineWidth:Ue,lineType:ft,itemPaddingInline:Ot}=ne;return{[`${pe}-horizontal`]:{lineHeight:mt,border:0,borderBottom:`${(0,dt.unit)(Ue)} ${ft} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ot},[`> ${pe}-item:hover, > ${pe}-item-active, > ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Ce}`,`background ${Ce}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},ke=ne=>{let{componentCls:pe,menuArrowOffset:Ce,calc:mt}=ne;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical, ${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,dt.unit)(mt(Ce).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,dt.unit)(Ce)})`}}}}};const nt=ne=>Object.assign({},(0,Lt.oN)(ne));var xe=(ne,pe)=>{const{componentCls:Ce,itemColor:mt,itemSelectedColor:Oe,subMenuItemSelectedColor:Ue,groupTitleColor:ft,itemBg:Ot,subMenuItemBg:vt,itemSelectedBg:Jt,activeBarHeight:Yt,activeBarWidth:Gt,activeBarBorderWidth:sn,motionDurationSlow:nn,motionEaseInOut:dn,motionEaseOut:kt,itemPaddingInline:on,motionDurationMid:Kt,itemHoverColor:Le,lineType:st,colorSplit:$t,itemDisabledColor:Wt,dangerItemColor:De,dangerItemHoverColor:Ke,dangerItemSelectedColor:gt,dangerItemActiveBg:Bt,dangerItemSelectedBg:Qt,popupBg:mn,itemHoverBg:Dn,itemActiveBg:Mn,menuSubMenuBg:cn,horizontalItemSelectedColor:En,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Xt,horizontalItemHoverBg:Rt}=ne;return{[`${Ce}-${pe}, ${Ce}-${pe} > ${Ce}`]:{color:mt,background:Ot,[`&${Ce}-root:focus-visible`]:Object.assign({},nt(ne)),[`${Ce}-item`]:{"&-group-title, &-extra":{color:ft}},[`${Ce}-submenu-selected > ${Ce}-submenu-title`]:{color:Ue},[`${Ce}-item, ${Ce}-submenu-title`]:{color:mt,[`&:not(${Ce}-item-disabled):focus-visible`]:Object.assign({},nt(ne))},[`${Ce}-item-disabled, ${Ce}-submenu-disabled`]:{color:`${Wt} !important`},[`${Ce}-item:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{[`&:hover, > ${Ce}-submenu-title:hover`]:{color:Le}},[`&:not(${Ce}-horizontal)`]:{[`${Ce}-item:not(${Ce}-item-selected)`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}},[`${Ce}-submenu-title`]:{"&:hover":{backgroundColor:Dn},"&:active":{backgroundColor:Mn}}},[`${Ce}-item-danger`]:{color:De,[`&${Ce}-item:hover`]:{[`&:not(${Ce}-item-selected):not(${Ce}-submenu-selected)`]:{color:Ke}},[`&${Ce}-item:active`]:{background:Bt}},[`${Ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ce}-item-selected`]:{color:Oe,[`&${Ce}-item-danger`]:{color:gt},"a, a:hover":{color:"inherit"}},[`& ${Ce}-item-selected`]:{backgroundColor:Jt,[`&${Ce}-item-danger`]:{backgroundColor:Qt}},[`&${Ce}-submenu > ${Ce}`]:{backgroundColor:cn},[`&${Ce}-popup > ${Ce}`]:{backgroundColor:mn},[`&${Ce}-submenu-popup > ${Ce}`]:{backgroundColor:mn},[`&${Ce}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Ce}-item, > ${Ce}-submenu`]:{top:sn,marginTop:ne.calc(sn).mul(-1).equal(),marginBottom:0,borderRadius:Xt,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${(0,dt.unit)(Yt)} solid transparent`,transition:`border-color ${nn} ${dn}`,content:'""'},"&:hover, &-active, &-open":{background:Rt,"&::after":{borderBottomWidth:Yt,borderBottomColor:En}},"&-selected":{color:En,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:Yt,borderBottomColor:En}}}}),[`&${Ce}-root`]:{[`&${Ce}-inline, &${Ce}-vertical`]:{borderInlineEnd:`${(0,dt.unit)(sn)} ${st} ${$t}`}},[`&${Ce}-inline`]:{[`${Ce}-sub${Ce}-inline`]:{background:vt},[`${Ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,dt.unit)(Gt)} solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Kt} ${kt}`,`opacity ${Kt} ${kt}`].join(","),content:'""'},[`&${Ce}-item-danger`]:{"&::after":{borderInlineEndColor:gt}}},[`${Ce}-selected, ${Ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Kt} ${dn}`,`opacity ${Kt} ${dn}`].join(",")}}}}}};const fe=ne=>{const{componentCls:pe,itemHeight:Ce,itemMarginInline:mt,padding:Oe,menuArrowSize:Ue,marginXS:ft,itemMarginBlock:Ot,itemWidth:vt,itemPaddingInline:Jt}=ne,Yt=ne.calc(Ue).add(Oe).add(ft).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Ce,lineHeight:(0,dt.unit)(Ce),paddingInline:Jt,overflow:"hidden",textOverflow:"ellipsis",marginInline:mt,marginBlock:Ot,width:vt},[`> ${pe}-item, > ${pe}-submenu > ${pe}-submenu-title`]:{height:Ce,lineHeight:(0,dt.unit)(Ce)},[`${pe}-item-group-list ${pe}-submenu-title, ${pe}-submenu-title`]:{paddingInlineEnd:Yt}}};var Ut=ne=>{const{componentCls:pe,iconCls:Ce,itemHeight:mt,colorTextLightSolid:Oe,dropdownWidth:Ue,controlHeightLG:ft,motionEaseOut:Ot,paddingXL:vt,itemMarginInline:Jt,fontSizeLG:Yt,motionDurationFast:Gt,motionDurationSlow:sn,paddingXS:nn,boxShadowSecondary:dn,collapsedWidth:kt,collapsedIconSize:on}=ne,Kt={height:mt,lineHeight:(0,dt.unit)(mt),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},fe(ne))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},fe(ne)),{boxShadow:dn})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Ue,maxHeight:`calc(100vh - ${(0,dt.unit)(ne.calc(ft).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${sn}`,`background ${sn}`,`padding ${Gt} ${Ot}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Kt,[`& ${pe}-item-group-title`]:{paddingInlineStart:vt}},[`${pe}-item`]:Kt}},{[`${pe}-inline-collapsed`]:{width:kt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Yt,textAlign:"center"}}},[`> ${pe}-item, > ${pe}-item-group > ${pe}-item-group-list > ${pe}-item, > ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title, > ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,dt.unit)(ne.calc(on).div(2).equal())} - ${(0,dt.unit)(Jt)})`,textOverflow:"clip",[` ${pe}-submenu-arrow, ${pe}-submenu-expand-icon `]:{opacity:0},[`${pe}-item-icon, ${Ce}`]:{margin:0,fontSize:on,lineHeight:(0,dt.unit)(mt),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Ce}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Lt.vS),{paddingInline:nn})}}]};const Pt=ne=>{const{componentCls:pe,motionDurationSlow:Ce,motionDurationMid:mt,motionEaseInOut:Oe,motionEaseOut:Ue,iconCls:ft,iconSize:Ot,iconMarginInlineEnd:vt}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ce}`,`background ${Ce}`,`padding calc(${Ce} + 0.1s) ${Oe}`].join(","),[`${pe}-item-icon, ${ft}`]:{minWidth:Ot,fontSize:Ot,transition:[`font-size ${mt} ${Ue}`,`margin ${Ce} ${Oe}`,`color ${Ce}`].join(","),"+ span":{marginInlineStart:vt,opacity:1,transition:[`opacity ${Ce} ${Oe}`,`margin ${Ce}`,`color ${Ce}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Lt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${ft}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},me=ne=>{const{componentCls:pe,motionDurationSlow:Ce,motionEaseInOut:mt,borderRadius:Oe,menuArrowSize:Ue,menuArrowOffset:ft}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ue,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ce} ${mt}, opacity ${Ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ue).mul(.6).equal(),height:ne.calc(Ue).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${Ce} ${mt}`,`transform ${Ce} ${mt}`,`top ${Ce} ${mt}`,`color ${Ce} ${mt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,dt.unit)(ne.calc(ft).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,dt.unit)(ft)})`}}}}},Be=ne=>{const{antCls:pe,componentCls:Ce,fontSize:mt,motionDurationSlow:Oe,motionDurationMid:Ue,motionEaseInOut:ft,paddingXS:Ot,padding:vt,colorSplit:Jt,lineWidth:Yt,zIndexPopup:Gt,borderRadiusLG:sn,subMenuItemBorderRadius:nn,menuArrowSize:dn,menuArrowOffset:kt,lineType:on,groupTitleLineHeight:Kt,groupTitleFontSize:Le}=ne;return[{"":{[Ce]:Object.assign(Object.assign({},(0,Lt.dF)()),{"&-hidden":{display:"none"}})},[`${Ce}-submenu-hidden`]:{display:"none"}},{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Lt.Wf)(ne)),(0,Lt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:mt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Oe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ce}-item`]:{flex:"none"}},[`${Ce}-item, ${Ce}-submenu, ${Ce}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${Ce}-item-group-title`]:{padding:`${(0,dt.unit)(Ot)} ${(0,dt.unit)(vt)}`,fontSize:Le,lineHeight:Kt,transition:`all ${Oe}`},[`&-horizontal ${Ce}-submenu`]:{transition:[`border-color ${Oe} ${ft}`,`background ${Oe} ${ft}`].join(",")},[`${Ce}-submenu, ${Ce}-submenu-inline`]:{transition:[`border-color ${Oe} ${ft}`,`background ${Oe} ${ft}`,`padding ${Ue} ${ft}`].join(",")},[`${Ce}-submenu ${Ce}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${ft}`,`padding ${Oe} ${ft}`].join(",")},[`${Ce}-title-content`]:{transition:`color ${Oe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ce}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${Ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Jt,borderStyle:on,borderWidth:0,borderTopWidth:Yt,marginBlock:Yt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Pt(ne)),{[`${Ce}-item-group`]:{[`${Ce}-item-group-list`]:{margin:0,padding:0,[`${Ce}-item, ${Ce}-submenu-title`]:{paddingInline:`${(0,dt.unit)(ne.calc(mt).mul(2).equal())} ${(0,dt.unit)(vt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Gt,borderRadius:sn,boxShadow:"none",transformOrigin:"0 0",[`&${Ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:sn},Pt(ne)),me(ne)),{[`${Ce}-item, ${Ce}-submenu > ${Ce}-submenu-title`]:{borderRadius:nn},[`${Ce}-submenu-title::after`]:{transition:`transform ${Oe} ${ft}`}})},"\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:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),me(ne)),{[`&-inline-collapsed ${Ce}-submenu-arrow, &-inline ${Ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,dt.unit)(kt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,dt.unit)(ne.calc(kt).mul(-1).equal())})`}},[`${Ce}-submenu-open${Ce}-submenu-inline > ${Ce}-submenu-title > ${Ce}-submenu-arrow`]:{transform:`translateY(${(0,dt.unit)(ne.calc(dn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,dt.unit)(ne.calc(kt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,dt.unit)(kt)})`}}})},{[`${pe}-layout-header`]:{[Ce]:{lineHeight:"inherit"}}}]},Re=ne=>{var pe,Ce,mt;const{colorPrimary:Oe,colorError:Ue,colorTextDisabled:ft,colorErrorBg:Ot,colorText:vt,colorTextDescription:Jt,colorBgContainer:Yt,colorFillAlter:Gt,colorFillContent:sn,lineWidth:nn,lineWidthBold:dn,controlItemBgActive:kt,colorBgTextHover:on,controlHeightLG:Kt,lineHeight:Le,colorBgElevated:st,marginXXS:$t,padding:Wt,fontSize:De,controlHeightSM:Ke,fontSizeLG:gt,colorTextLightSolid:Bt,colorErrorHover:Qt}=ne,mn=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,Dn=(Ce=ne.activeBarBorderWidth)!==null&&Ce!==void 0?Ce:nn,Mn=(mt=ne.itemMarginInline)!==null&&mt!==void 0?mt:ne.marginXXS,cn=new He.FastColor(Bt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:vt,itemColor:vt,colorItemTextHover:vt,itemHoverColor:vt,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:Jt,groupTitleColor:Jt,colorItemTextSelected:Oe,itemSelectedColor:Oe,subMenuItemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:Yt,itemBg:Yt,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:sn,itemActiveBg:kt,colorSubItemBg:Gt,subMenuItemBg:Gt,colorItemBgSelected:kt,itemSelectedBg:kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:mn,colorActiveBarHeight:dn,activeBarHeight:dn,colorActiveBarBorderSize:nn,activeBarBorderWidth:Dn,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:Ue,dangerItemColor:Ue,colorDangerItemTextHover:Ue,dangerItemHoverColor:Ue,colorDangerItemTextSelected:Ue,dangerItemSelectedColor:Ue,colorDangerItemBgActive:Ot,dangerItemActiveBg:Ot,colorDangerItemBgSelected:Ot,dangerItemSelectedBg:Ot,itemMarginInline:Mn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Kt,groupTitleLineHeight:Le,collapsedWidth:Kt*2,popupBg:st,itemMarginBlock:$t,itemPaddingInline:Wt,horizontalLineHeight:`${Kt*1.15}px`,iconSize:De,iconMarginInlineEnd:Ke-De,collapsedIconSize:gt,groupTitleFontSize:De,darkItemDisabledColor:new He.FastColor(Bt).setA(.25).toRgbString(),darkItemColor:cn,darkDangerItemColor:Ue,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Bt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:Ue,darkItemHoverBg:"transparent",darkGroupTitleColor:cn,darkItemHoverColor:Bt,darkDangerItemHoverColor:Qt,darkDangerItemSelectedColor:Bt,darkDangerItemActiveBg:Ue,itemWidth:mn?`calc(100% + ${Dn}px)`:`calc(100% - ${Mn*2}px)`}};var Dt=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Me.I$)("Menu",Oe=>{const{colorBgElevated:Ue,controlHeightLG:ft,fontSize:Ot,darkItemColor:vt,darkDangerItemColor:Jt,darkItemBg:Yt,darkSubMenuItemBg:Gt,darkItemSelectedColor:sn,darkItemSelectedBg:nn,darkDangerItemSelectedBg:dn,darkItemHoverBg:kt,darkGroupTitleColor:on,darkItemHoverColor:Kt,darkItemDisabledColor:Le,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:Wt,popupBg:De,darkPopupBg:Ke}=Oe,gt=Oe.calc(Ot).div(7).mul(5).equal(),Bt=(0,_e.mergeToken)(Oe,{menuArrowSize:gt,menuHorizontalHeight:Oe.calc(ft).mul(1.15).equal(),menuArrowOffset:Oe.calc(gt).mul(.25).equal(),menuSubMenuBg:Ue,calc:Oe.calc,popupBg:De}),Qt=(0,_e.mergeToken)(Bt,{itemColor:vt,itemHoverColor:Kt,groupTitleColor:on,itemSelectedColor:sn,subMenuItemSelectedColor:sn,itemBg:Yt,popupBg:Ke,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:nn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:kt,itemDisabledColor:Le,dangerItemColor:Jt,dangerItemHoverColor:st,dangerItemSelectedColor:$t,dangerItemActiveBg:Wt,dangerItemSelectedBg:dn,menuSubMenuBg:Gt,horizontalItemSelectedColor:sn,horizontalItemSelectedBg:nn});return[Be(Bt),ue(Bt),Ut(Bt),xe(Bt,"light"),xe(Qt,"dark"),ke(Bt),(0,tt.Z)(Bt),(0,ot.oN)(Bt,"slide-up"),(0,ot.oN)(Bt,"slide-down"),(0,xt._y)(Bt,"zoom-big")]},Re,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Ce,unitless:{groupTitleLineHeight:!0}})(ne,pe)},Et=re(75030),Ne=ne=>{var pe;const{popupClassName:Ce,icon:mt,title:Oe,theme:Ue}=ne,ft=z.useContext(Je),{prefixCls:Ot,inlineCollapsed:vt,theme:Jt}=ft,Yt=(0,it.Xl)();let Gt;if(!mt)Gt=vt&&!Yt.length&&Oe&&typeof Oe=="string"?z.createElement("div",{className:`${Ot}-inline-collapsed-noicon`},Oe.charAt(0)):z.createElement("span",{className:`${Ot}-title-content`},Oe);else{const dn=z.isValidElement(Oe)&&Oe.type==="span";Gt=z.createElement(z.Fragment,null,(0,he.Tm)(mt,{className:Ie()(z.isValidElement(mt)?(pe=mt.props)===null||pe===void 0?void 0:pe.className:"",`${Ot}-item-icon`)}),dn?Oe:z.createElement("span",{className:`${Ot}-title-content`},Oe))}const sn=z.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]),[nn]=(0,Et.Cn)("Menu");return z.createElement(Je.Provider,{value:sn},z.createElement(it.Wd,Object.assign({},(0,qe.Z)(ne,["icon"]),{title:Gt,popupClassName:Ie()(Ot,Ce,`${Ot}-${Ue||Jt}`),popupStyle:Object.assign({zIndex:nn},ne.popupStyle)})))},Vt=function(ne,pe){var Ce={};for(var mt in ne)Object.prototype.hasOwnProperty.call(ne,mt)&&pe.indexOf(mt)<0&&(Ce[mt]=ne[mt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,mt=Object.getOwnPropertySymbols(ne);Oe{var Ce;const mt=z.useContext(pt.Z),Oe=mt||{},{getPrefixCls:Ue,getPopupContainer:ft,direction:Ot,menu:vt}=z.useContext(Xe.E_),Jt=Ue(),{prefixCls:Yt,className:Gt,style:sn,theme:nn="light",expandIcon:dn,_internalDisableMenuItemTitleTooltip:kt,inlineCollapsed:on,siderCollapsed:Kt,rootClassName:Le,mode:st,selectable:$t,onClick:Wt,overflowedIndicatorPopupClassName:De}=ne,Ke=Vt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gt=(0,qe.Z)(Ke,["collapsedWidth"]);(Ce=Oe.validator)===null||Ce===void 0||Ce.call(Oe,{mode:st});const Bt=(0,Te.Z)(function(){var tn;Wt==null||Wt.apply(void 0,arguments),(tn=Oe.onClick)===null||tn===void 0||tn.call(Oe)}),Qt=Oe.mode||st,mn=$t!=null?$t:Oe.selectable,Dn=on!=null?on:Kt,Mn={horizontal:{motionName:`${Jt}-slide-up`},inline:(0,Se.Z)(Jt),other:{motionName:`${Jt}-zoom-big`}},cn=Ue("menu",Yt||Oe.prefixCls),En=(0,Ee.Z)(cn),[vn,Xt,Rt]=Dt(cn,En,!mt),At=Ie()(`${cn}-${nn}`,vt==null?void 0:vt.className,Gt),It=z.useMemo(()=>{var tn,rn;if(typeof dn=="function"||yt(dn))return dn||null;if(typeof Oe.expandIcon=="function"||yt(Oe.expandIcon))return Oe.expandIcon||null;if(typeof(vt==null?void 0:vt.expandIcon)=="function"||yt(vt==null?void 0:vt.expandIcon))return(vt==null?void 0:vt.expandIcon)||null;const Sn=(tn=dn!=null?dn:Oe==null?void 0:Oe.expandIcon)!==null&&tn!==void 0?tn:vt==null?void 0:vt.expandIcon;return(0,he.Tm)(Sn,{className:Ie()(`${cn}-submenu-expand-icon`,z.isValidElement(Sn)?(rn=Sn.props)===null||rn===void 0?void 0:rn.className:void 0)})},[dn,Oe==null?void 0:Oe.expandIcon,vt==null?void 0:vt.expandIcon,cn]),an=z.useMemo(()=>({prefixCls:cn,inlineCollapsed:Dn||!1,direction:Ot,firstLevel:!0,theme:nn,mode:Qt,disableMenuItemTitleTooltip:kt}),[cn,Dn,Ot,kt,nn]);return vn(z.createElement(pt.Z.Provider,{value:null},z.createElement(Je.Provider,{value:an},z.createElement(it.ZP,Object.assign({getPopupContainer:ft,overflowedIndicator:z.createElement(Qe.Z,null),overflowedIndicatorPopupClassName:Ie()(cn,`${cn}-${nn}`,De),mode:Qt,selectable:mn,onClick:Bt},gt,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),sn),className:At,prefixCls:cn,direction:Ot,defaultMotions:Mn,expandIcon:It,ref:pe,rootClassName:Ie()(Le,Xt,Oe.rootClassName,Rt,En),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,pe)=>{const Ce=(0,z.useRef)(null),mt=z.useContext(ve.D);return(0,z.useImperativeHandle)(pe,()=>({menu:Ce.current,focus:Oe=>{var Ue;(Ue=Ce.current)===null||Ue===void 0||Ue.focus(Oe)}})),z.createElement(ee,Object.assign({ref:Ce},ne,mt))});oe.Item=St,oe.SubMenu=Ne,oe.Divider=ze,oe.ItemGroup=it.BW;var se=oe},89787:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Kt}});var z=re(59301),it=re(17835),ve=re(29679),Qe=re(40001),be=re(19248),Ie=re(99267),Te=re(92310),qe=re.n(Te),Se=re(2738),he=re(48755),Xe=re(60499),Ee=re(85899),Mt=re(42244),Je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Fe=function(){var st=(0,z.useRef)([]),$t=(0,z.useRef)(null);return(0,z.useEffect)(function(){var Wt=Date.now(),De=!1;st.current.forEach(function(Ke){if(Ke){De=!0;var gt=Ke.style;gt.transitionDuration=".3s, .3s, .3s, .06s",$t.current&&Wt-$t.current<100&&(gt.transitionDuration="0s, 0s")}}),De&&($t.current=Date.now())}),st.current},Ge=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ze=function(st){var $t=(0,Ee.Z)((0,Ee.Z)({},Je),st),Wt=$t.className,De=$t.percent,Ke=$t.prefixCls,gt=$t.strokeColor,Bt=$t.strokeLinecap,Qt=$t.strokeWidth,mn=$t.style,Dn=$t.trailColor,Mn=$t.trailWidth,cn=$t.transition,En=(0,Mt.Z)($t,Ge);delete En.gapPosition;var vn=Array.isArray(De)?De:[De],Xt=Array.isArray(gt)?gt:[gt],Rt=Fe(),At=Qt/2,It=100-Qt/2,an="M ".concat(Bt==="round"?At:0,",").concat(At,` L `).concat(Bt==="round"?It:100,",").concat(At),tn="0 0 100 ".concat(Qt),rn=0;return z.createElement("svg",(0,Xe.Z)({className:qe()("".concat(Ke,"-line"),Wt),viewBox:tn,preserveAspectRatio:"none",style:mn},En),z.createElement("path",{className:"".concat(Ke,"-line-trail"),d:an,strokeLinecap:Bt,stroke:Dn,strokeWidth:Mn||Qt,fillOpacity:"0"}),vn.map(function(Sn,Pn){var On=1;switch(Bt){case"round":On=1-Qt/100;break;case"square":On=1-Qt/2/100;break;default:On=1;break}var Rn={strokeDasharray:"".concat(Sn*On,"px, 100px"),strokeDashoffset:"-".concat(rn,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ln=Xt[Pn]||Xt[Xt.length-1];return rn+=Sn,z.createElement("path",{key:Pn,className:"".concat(Ke,"-line-path"),d:an,strokeLinecap:Bt,stroke:Ln,strokeWidth:Qt,fillOpacity:"0",ref:function(_n){Rt[Pn]=_n},style:Rn})}))},wt=ze,Tt=re(43749),zt=re(72190),St=re(47273),pt=0,dt=(0,St.Z)();function He(){var Le;return dt?(Le=pt,pt+=1):Le="TEST_OR_SSR",Le}var Lt=function(Le){var st=z.useState(),$t=(0,zt.Z)(st,2),Wt=$t[0],De=$t[1];return z.useEffect(function(){De("rc_progress_".concat(He()))},[]),Le||Wt},tt=function(st){var $t=st.bg,Wt=st.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:$t}},Wt)};function ot(Le,st){return Object.keys(Le).map(function($t){var Wt=parseFloat($t),De="".concat(Math.floor(Wt*st),"%");return"".concat(Le[$t]," ").concat(De)})}var xt=z.forwardRef(function(Le,st){var $t=Le.prefixCls,Wt=Le.color,De=Le.gradientId,Ke=Le.radius,gt=Le.style,Bt=Le.ptg,Qt=Le.strokeLinecap,mn=Le.strokeWidth,Dn=Le.size,Mn=Le.gapDegree,cn=Wt&&(0,Tt.Z)(Wt)==="object",En=cn?"#FFF":void 0,vn=Dn/2,Xt=z.createElement("circle",{className:"".concat($t,"-circle-path"),r:Ke,cx:vn,cy:vn,stroke:En,strokeLinecap:Qt,strokeWidth:mn,opacity:Bt===0?0:1,style:gt,ref:st});if(!cn)return Xt;var Rt="".concat(De,"-conic"),At=Mn?"".concat(180+Mn/2,"deg"):"0deg",It=ot(Wt,(360-Mn)/360),an=ot(Wt,1),tn="conic-gradient(from ".concat(At,", ").concat(It.join(", "),")"),rn="linear-gradient(to ".concat(Mn?"bottom":"top",", ").concat(an.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:Rt},Xt),z.createElement("foreignObject",{x:0,y:0,width:Dn,height:Dn,mask:"url(#".concat(Rt,")")},z.createElement(tt,{bg:rn},z.createElement(tt,{bg:tn}))))}),Me=xt,_e=100,Ve=function(st,$t,Wt,De,Ke,gt,Bt,Qt,mn,Dn){var Mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=Wt/100*360*((360-gt)/360),En=gt===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],vn=(100-De)/100*$t;mn==="round"&&De!==100&&(vn+=Dn/2,vn>=$t&&(vn=$t-.01));var Xt=_e/2;return{stroke:typeof Qt=="string"?Qt:void 0,strokeDasharray:"".concat($t,"px ").concat(st),strokeDashoffset:vn+Mn,transform:"rotate(".concat(Ke+cn+En,"deg)"),transformOrigin:"".concat(Xt,"px ").concat(Xt,"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}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ct(Le){var st=Le!=null?Le:[];return Array.isArray(st)?st:[st]}var ke=function(st){var $t=(0,Ee.Z)((0,Ee.Z)({},Je),st),Wt=$t.id,De=$t.prefixCls,Ke=$t.steps,gt=$t.strokeWidth,Bt=$t.trailWidth,Qt=$t.gapDegree,mn=Qt===void 0?0:Qt,Dn=$t.gapPosition,Mn=$t.trailColor,cn=$t.strokeLinecap,En=$t.style,vn=$t.className,Xt=$t.strokeColor,Rt=$t.percent,At=(0,Mt.Z)($t,ue),It=_e/2,an=Lt(Wt),tn="".concat(an,"-gradient"),rn=It-gt/2,Sn=Math.PI*2*rn,Pn=mn>0?90+mn/2:-90,On=Sn*((360-mn)/360),Rn=(0,Tt.Z)(Ke)==="object"?Ke:{count:Ke,gap:2},Ln=Rn.count,Jn=Rn.gap,_n=ct(Rt),Nt=ct(Xt),qt=Nt.find(function(Pe){return Pe&&(0,Tt.Z)(Pe)==="object"}),In=qt&&(0,Tt.Z)(qt)==="object",xn=In?"butt":cn,Ae=Ve(Sn,On,0,100,Pn,mn,Dn,Mn,xn,gt),rt=Fe(),we=function(){var je=0;return _n.map(function(ye,et){var at=Nt[et]||Nt[Nt.length-1],bt=Ve(Sn,On,je,ye,Pn,mn,Dn,at,xn,gt);return je+=ye,z.createElement(Me,{key:et,color:at,ptg:ye,radius:rn,prefixCls:De,gradientId:tn,style:bt,strokeLinecap:xn,strokeWidth:gt,gapDegree:mn,ref:function(We){rt[et]=We},size:_e})}).reverse()},$e=function(){var je=Math.round(Ln*(_n[0]/100)),ye=100/Ln,et=0;return new Array(Ln).fill(null).map(function(at,bt){var lt=bt<=je-1?Nt[0]:Mn,We=lt&&(0,Tt.Z)(lt)==="object"?"url(#".concat(tn,")"):void 0,Ze=Ve(Sn,On,et,ye,Pn,mn,Dn,lt,"butt",gt,Jn);return et+=(On-Ze.strokeDashoffset+Jn)*100/On,z.createElement("circle",{key:bt,className:"".concat(De,"-circle-path"),r:rn,cx:It,cy:It,stroke:We,strokeWidth:gt,opacity:1,style:Ze,ref:function(un){rt[bt]=un}})})};return z.createElement("svg",(0,Xe.Z)({className:qe()("".concat(De,"-circle"),vn),viewBox:"0 0 ".concat(_e," ").concat(_e),style:En,id:Wt,role:"presentation"},At),!Ln&&z.createElement("circle",{className:"".concat(De,"-circle-trail"),r:rn,cx:It,cy:It,stroke:Mn,strokeLinecap:xn,strokeWidth:Bt||gt,style:Ae}),Ln?$e():we())},nt=ke,Ft={Line:wt,Circle:nt},xe=re(25399),fe=re(68361);function Ct(Le){return!Le||Le<0?0:Le>100?100:Le}function Ut(Le){let{success:st,successPercent:$t}=Le,Wt=$t;return st&&"progress"in st&&(Wt=st.progress),st&&"percent"in st&&(Wt=st.percent),Wt}const Pt=Le=>{let{percent:st,success:$t,successPercent:Wt}=Le;const De=Ct(Ut({success:$t,successPercent:Wt}));return[De,Ct(Ct(st)-De)]},me=Le=>{let{success:st={},strokeColor:$t}=Le;const{strokeColor:Wt}=st;return[Wt||fe.presetPrimaryColors.green,$t||null]},Be=(Le,st,$t)=>{var Wt,De,Ke,gt;let Bt=-1,Qt=-1;if(st==="step"){const mn=$t.steps,Dn=$t.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(Bt=Le==="small"?2:14,Qt=Dn!=null?Dn:8):typeof Le=="number"?[Bt,Qt]=[Le,Le]:[Bt=14,Qt=8]=Array.isArray(Le)?Le:[Le.width,Le.height],Bt*=mn}else if(st==="line"){const mn=$t==null?void 0:$t.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?Qt=mn||(Le==="small"?6:8):typeof Le=="number"?[Bt,Qt]=[Le,Le]:[Bt=-1,Qt=8]=Array.isArray(Le)?Le:[Le.width,Le.height]}else(st==="circle"||st==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[Bt,Qt]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[Bt,Qt]=[Le,Le]:Array.isArray(Le)&&(Bt=(De=(Wt=Le[0])!==null&&Wt!==void 0?Wt:Le[1])!==null&&De!==void 0?De:120,Qt=(gt=(Ke=Le[0])!==null&&Ke!==void 0?Ke:Le[1])!==null&>!==void 0?gt:120));return[Bt,Qt]},Re=3,Dt=Le=>Re/Le*100;var jt=Le=>{const{prefixCls:st,trailColor:$t=null,strokeLinecap:Wt="round",gapPosition:De,gapDegree:Ke,width:gt=120,type:Bt,children:Qt,success:mn,size:Dn=gt,steps:Mn}=Le,[cn,En]=Be(Dn,"circle");let{strokeWidth:vn}=Le;vn===void 0&&(vn=Math.max(Dt(cn),6));const Xt={width:cn,height:En,fontSize:cn*.15+6},Rt=z.useMemo(()=>{if(Ke||Ke===0)return Ke;if(Bt==="dashboard")return 75},[Ke,Bt]),At=Pt(Le),It=De||Bt==="dashboard"&&"bottom"||void 0,an=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",tn=me({success:mn,strokeColor:Le.strokeColor}),rn=qe()(`${st}-inner`,{[`${st}-circle-gradient`]:an}),Sn=z.createElement(nt,{steps:Mn,percent:Mn?At[1]:At,strokeWidth:vn,trailWidth:vn,strokeColor:Mn?tn[1]:tn,strokeLinecap:Wt,trailColor:$t,prefixCls:st,gapDegree:Rt,gapPosition:It}),Pn=cn<=20,On=z.createElement("div",{className:rn,style:Xt},Sn,!Pn&&Qt);return Pn?z.createElement(xe.Z,{title:Qt},On):On},Ne=re(36237),Vt=re(63356),yt=re(16931),ae=re(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Le=>{const st=Le?"100%":"-100%";return new Ne.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${st}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${st}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Le=>{const{componentCls:st,iconCls:$t}=Le;return{[st]:Object.assign(Object.assign({},(0,Vt.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize},[`${st}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${st}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Le.defaultColor}},[`${st}-success-bg, ${st}-bg`]:{position:"relative",background:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${st}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${st}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Le.marginXXS}},[`${st}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${st}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${st}-text-inner`]:{color:Le.colorWhite,[`&${st}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${st}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${st}-text`]:{display:"inline-block",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[$t]:{fontSize:Le.fontSize},[`&${st}-text-outer`]:{width:"max-content"},[`&${st}-text-outer${st}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Le.marginXS}},[`${st}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Ne.unit)(Le.paddingXXS)}`,[`&${st}-text-start`]:{justifyContent:"start"},[`&${st}-text-end`]:{justifyContent:"end"}},[`&${st}-status-active`]:{[`${st}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${st}-rtl${st}-status-active`]:{[`${st}-bg::before`]:{animationName:oe(!0)}},[`&${st}-status-exception`]:{[`${st}-bg`]:{backgroundColor:Le.colorError},[`${st}-text`]:{color:Le.colorError}},[`&${st}-status-exception ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Le.colorError}},[`&${st}-status-success`]:{[`${st}-bg`]:{backgroundColor:Le.colorSuccess},[`${st}-text`]:{color:Le.colorSuccess}},[`&${st}-status-success ${st}-inner:not(${st}-circle-gradient)`]:{[`${st}-circle-path`]:{stroke:Le.colorSuccess}}})}},ne=Le=>{const{componentCls:st,iconCls:$t}=Le;return{[st]:{[`${st}-circle-trail`]:{stroke:Le.remainingColor},[`&${st}-circle ${st}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${st}-circle ${st}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[$t]:{fontSize:Le.circleIconFontSize}},[`${st}-circle&-status-exception`]:{[`${st}-text`]:{color:Le.colorError}},[`${st}-circle&-status-success`]:{[`${st}-text`]:{color:Le.colorSuccess}}},[`${st}-inline-circle`]:{lineHeight:1,[`${st}-inner`]:{verticalAlign:"bottom"}}}},pe=Le=>{const{componentCls:st}=Le;return{[st]:{[`${st}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},Ce=Le=>{const{componentCls:st,iconCls:$t}=Le;return{[st]:{[`${st}-small&-line, ${st}-small&-line ${st}-text ${$t}`]:{fontSize:Le.fontSizeSM}}}},mt=Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Le.fontSize/Le.fontSizeSM}em`});var Oe=(0,yt.I$)("Progress",Le=>{const st=Le.calc(Le.marginXXS).div(2).equal(),$t=(0,ae.mergeToken)(Le,{progressStepMarginInlineEnd:st,progressStepMinWidth:st,progressActiveMotionDuration:"2.4s"});return[se($t),ne($t),pe($t),Ce($t)]},mt),Ue=function(Le,st){var $t={};for(var Wt in Le)Object.prototype.hasOwnProperty.call(Le,Wt)&&st.indexOf(Wt)<0&&($t[Wt]=Le[Wt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Wt=Object.getOwnPropertySymbols(Le);De{let st=[];return Object.keys(Le).forEach($t=>{const Wt=parseFloat($t.replace(/%/g,""));Number.isNaN(Wt)||st.push({key:Wt,value:Le[$t]})}),st=st.sort(($t,Wt)=>$t.key-Wt.key),st.map($t=>{let{key:Wt,value:De}=$t;return`${De} ${Wt}%`}).join(", ")},Ot=(Le,st)=>{const{from:$t=fe.presetPrimaryColors.blue,to:Wt=fe.presetPrimaryColors.blue,direction:De=st==="rtl"?"to left":"to right"}=Le,Ke=Ue(Le,["from","to","direction"]);if(Object.keys(Ke).length!==0){const Bt=ft(Ke),Qt=`linear-gradient(${De}, ${Bt})`;return{background:Qt,[te]:Qt}}const gt=`linear-gradient(${De}, ${$t}, ${Wt})`;return{background:gt,[te]:gt}};var Jt=Le=>{const{prefixCls:st,direction:$t,percent:Wt,size:De,strokeWidth:Ke,strokeColor:gt,strokeLinecap:Bt="round",children:Qt,trailColor:mn=null,percentPosition:Dn,success:Mn}=Le,{align:cn,type:En}=Dn,vn=gt&&typeof gt!="string"?Ot(gt,$t):{[te]:gt,background:gt},Xt=Bt==="square"||Bt==="butt"?0:void 0,Rt=De!=null?De:[-1,Ke||(De==="small"?6:8)],[At,It]=Be(Rt,"line",{strokeWidth:Ke}),an={backgroundColor:mn||void 0,borderRadius:Xt},tn=Object.assign(Object.assign({width:`${Ct(Wt)}%`,height:It,borderRadius:Xt},vn),{[ee]:Ct(Wt)/100}),rn=Ut(Le),Sn={width:`${Ct(rn)}%`,height:It,borderRadius:Xt,backgroundColor:Mn==null?void 0:Mn.strokeColor},Pn={width:At<0?"100%":At},On=z.createElement("div",{className:`${st}-inner`,style:an},z.createElement("div",{className:qe()(`${st}-bg`,`${st}-bg-${En}`),style:tn},En==="inner"&&Qt),rn!==void 0&&z.createElement("div",{className:`${st}-success-bg`,style:Sn})),Rn=En==="outer"&&cn==="start",Ln=En==="outer"&&cn==="end";return En==="outer"&&cn==="center"?z.createElement("div",{className:`${st}-layout-bottom`},On,Qt):z.createElement("div",{className:`${st}-outer`,style:Pn},Rn&&Qt,On,Ln&&Qt)},Gt=Le=>{const{size:st,steps:$t,rounding:Wt=Math.round,percent:De=0,strokeWidth:Ke=8,strokeColor:gt,trailColor:Bt=null,prefixCls:Qt,children:mn}=Le,Dn=Wt($t*(De/100)),Mn=st==="small"?2:14,cn=st!=null?st:[Mn,Ke],[En,vn]=Be(cn,"step",{steps:$t,strokeWidth:Ke}),Xt=En/$t,Rt=Array.from({length:$t});for(let At=0;At<$t;At++){const It=Array.isArray(gt)?gt[At]:gt;Rt[At]=z.createElement("div",{key:At,className:qe()(`${Qt}-steps-item`,{[`${Qt}-steps-item-active`]:At<=Dn-1}),style:{backgroundColor:At<=Dn-1?It:Bt,width:Xt,height:vn}})}return z.createElement("div",{className:`${Qt}-steps-outer`},Rt,mn)},sn=function(Le,st){var $t={};for(var Wt in Le)Object.prototype.hasOwnProperty.call(Le,Wt)&&st.indexOf(Wt)<0&&($t[Wt]=Le[Wt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Wt=Object.getOwnPropertySymbols(Le);De{const{prefixCls:$t,className:Wt,rootClassName:De,steps:Ke,strokeColor:gt,percent:Bt=0,size:Qt="default",showInfo:mn=!0,type:Dn="line",status:Mn,format:cn,style:En,percentPosition:vn={}}=Le,Xt=sn(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Rt="end",type:At="outer"}=vn,It=Array.isArray(gt)?gt[0]:gt,an=typeof gt=="string"||Array.isArray(gt)?gt:void 0,tn=z.useMemo(()=>{if(It){const we=typeof It=="string"?It:Object.values(It)[0];return new it.FastColor(we).isLight()}return!1},[gt]),rn=z.useMemo(()=>{var we,$e;const Pe=Ut(Le);return parseInt(Pe!==void 0?(we=Pe!=null?Pe:0)===null||we===void 0?void 0:we.toString():($e=Bt!=null?Bt:0)===null||$e===void 0?void 0:$e.toString(),10)},[Bt,Le.success,Le.successPercent]),Sn=z.useMemo(()=>!dn.includes(Mn)&&rn>=100?"success":Mn||"normal",[Mn,rn]),{getPrefixCls:Pn,direction:On,progress:Rn}=z.useContext(he.E_),Ln=Pn("progress",$t),[Jn,_n,Nt]=Oe(Ln),qt=Dn==="line",In=qt&&!Ke,xn=z.useMemo(()=>{if(!mn)return null;const we=Ut(Le);let $e;const Pe=cn||(ye=>`${ye}%`),je=qt&&tn&&At==="inner";return At==="inner"||cn||Sn!=="exception"&&Sn!=="success"?$e=Pe(Ct(Bt),Ct(we)):Sn==="exception"?$e=qt?z.createElement(be.Z,null):z.createElement(Ie.Z,null):Sn==="success"&&($e=qt?z.createElement(ve.Z,null):z.createElement(Qe.Z,null)),z.createElement("span",{className:qe()(`${Ln}-text`,{[`${Ln}-text-bright`]:je,[`${Ln}-text-${Rt}`]:In,[`${Ln}-text-${At}`]:In}),title:typeof $e=="string"?$e:void 0},$e)},[mn,Bt,rn,Sn,Dn,Ln,cn]);let Ae;Dn==="line"?Ae=Ke?z.createElement(Gt,Object.assign({},Le,{strokeColor:an,prefixCls:Ln,steps:typeof Ke=="object"?Ke.count:Ke}),xn):z.createElement(Jt,Object.assign({},Le,{strokeColor:It,prefixCls:Ln,direction:On,percentPosition:{align:Rt,type:At}}),xn):(Dn==="circle"||Dn==="dashboard")&&(Ae=z.createElement(jt,Object.assign({},Le,{strokeColor:It,prefixCls:Ln,progressStatus:Sn}),xn));const rt=qe()(Ln,`${Ln}-status-${Sn}`,{[`${Ln}-${Dn==="dashboard"&&"circle"||Dn}`]:Dn!=="line",[`${Ln}-inline-circle`]:Dn==="circle"&&Be(Qt,"circle")[0]<=20,[`${Ln}-line`]:In,[`${Ln}-line-align-${Rt}`]:In,[`${Ln}-line-position-${At}`]:In,[`${Ln}-steps`]:Ke,[`${Ln}-show-info`]:mn,[`${Ln}-${Qt}`]:typeof Qt=="string",[`${Ln}-rtl`]:On==="rtl"},Rn==null?void 0:Rn.className,Wt,De,_n,Nt);return Jn(z.createElement("div",Object.assign({ref:st,style:Object.assign(Object.assign({},Rn==null?void 0:Rn.style),En),className:rt,role:"progressbar","aria-valuenow":rn,"aria-valuemin":0,"aria-valuemax":100},(0,Se.Z)(Xt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ae))}),Kt=on},63139:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Pt}});var z=re(59301),it=re(60499),ve={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=ve,be=re(7657),Ie=function(Be,Re){return z.createElement(be.Z,(0,it.Z)({},Be,{ref:Re,icon:Qe}))},Te=z.forwardRef(Ie),qe=Te,Se=re(92310),he=re.n(Se),Xe=re(18642),Ee=re(72190),Mt=re(42244),Je=re(18929),Fe=re(10228),Ge=re(26112);function ze(me,Be){var Re=me.disabled,Dt=me.prefixCls,Et=me.character,jt=me.characterRender,Ne=me.index,Vt=me.count,yt=me.value,ae=me.allowHalf,te=me.focused,ee=me.onHover,oe=me.onClick,se=function(Ot){ee(Ot,Ne)},ne=function(Ot){oe(Ot,Ne)},pe=function(Ot){Ot.keyCode===Fe.Z.ENTER&&oe(Ot,Ne)},Ce=Ne+1,mt=new Set([Dt]);yt===0&&Ne===0&&te?mt.add("".concat(Dt,"-focused")):ae&&yt+.5>=Ce&&ytNe?"true":"false","aria-posinset":Ne+1,"aria-setsize":Vt,tabIndex:Re?-1:0},z.createElement("div",{className:"".concat(Dt,"-first")},Oe),z.createElement("div",{className:"".concat(Dt,"-second")},Oe)));return jt&&(Ue=jt(Ue,me)),Ue}var wt=z.forwardRef(ze);function Tt(){var me=z.useRef({});function Be(Dt){return me.current[Dt]}function Re(Dt){return function(Et){me.current[Dt]=Et}}return[Be,Re]}function zt(me){var Be=me.pageXOffset,Re="scrollLeft";if(typeof Be!="number"){var Dt=me.document;Be=Dt.documentElement[Re],typeof Be!="number"&&(Be=Dt.body[Re])}return Be}function St(me){var Be,Re,Dt=me.ownerDocument,Et=Dt.body,jt=Dt&&Dt.documentElement,Ne=me.getBoundingClientRect();return Be=Ne.left,Re=Ne.top,Be-=jt.clientLeft||Et.clientLeft||0,Re-=jt.clientTop||Et.clientTop||0,{left:Be,top:Re}}function pt(me){var Be=St(me),Re=me.ownerDocument,Dt=Re.defaultView||Re.parentWindow;return Be.left+=zt(Dt),Be.left}var dt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function He(me,Be){var Re=me.prefixCls,Dt=Re===void 0?"rc-rate":Re,Et=me.className,jt=me.defaultValue,Ne=me.value,Vt=me.count,yt=Vt===void 0?5:Vt,ae=me.allowHalf,te=ae===void 0?!1:ae,ee=me.allowClear,oe=ee===void 0?!0:ee,se=me.keyboard,ne=se===void 0?!0:se,pe=me.character,Ce=pe===void 0?"\u2605":pe,mt=me.characterRender,Oe=me.disabled,Ue=me.direction,ft=Ue===void 0?"ltr":Ue,Ot=me.tabIndex,vt=Ot===void 0?0:Ot,Jt=me.autoFocus,Yt=me.onHoverChange,Gt=me.onChange,sn=me.onFocus,nn=me.onBlur,dn=me.onKeyDown,kt=me.onMouseLeave,on=(0,Mt.Z)(me,dt),Kt=Tt(),Le=(0,Ee.Z)(Kt,2),st=Le[0],$t=Le[1],Wt=z.useRef(null),De=function(){if(!Oe){var xn;(xn=Wt.current)===null||xn===void 0||xn.focus()}};z.useImperativeHandle(Be,function(){return{focus:De,blur:function(){if(!Oe){var xn;(xn=Wt.current)===null||xn===void 0||xn.blur()}}}});var Ke=(0,Je.Z)(jt||0,{value:Ne}),gt=(0,Ee.Z)(Ke,2),Bt=gt[0],Qt=gt[1],mn=(0,Je.Z)(null),Dn=(0,Ee.Z)(mn,2),Mn=Dn[0],cn=Dn[1],En=function(xn,Ae){var rt=ft==="rtl",we=xn+1;if(te){var $e=st(xn),Pe=pt($e),je=$e.clientWidth;(rt&&Ae-Pe>je/2||!rt&&Ae-Pe0&&!rt||Ae===Fe.Z.RIGHT&&Bt>0&&rt?(vn(Bt-we),xn.preventDefault()):Ae===Fe.Z.LEFT&&Bt{const{componentCls:Be}=me;return{[`${Be}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:me.marginXS},"> div":{transition:`all ${me.motionDurationMid}, outline 0s`,"&:hover":{transform:me.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Me.unit)(me.lineWidth)} dashed ${me.starColor}`,transform:me.starHoverScale}},"&-first, &-second":{color:me.starBg,transition:`all ${me.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Be}-star-first, &-half ${Be}-star-second`]:{opacity:1},[`&-half ${Be}-star-first, &-full ${Be}-star-second`]:{color:"inherit"}}}},ke=me=>({[`&-rtl${me.componentCls}`]:{direction:"rtl"}}),nt=me=>{const{componentCls:Be}=me;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(me)),{display:"inline-block",margin:0,padding:0,color:me.starColor,fontSize:me.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Be} ${Be}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ct(me)),ke(me))}},Ft=me=>({starColor:me.yellow6,starSize:me.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:me.colorFillContent});var xe=(0,Ve.I$)("Rate",me=>{const Be=(0,ue.mergeToken)(me,{});return[nt(Be)]},Ft),fe=re(2171),Ct=function(me,Be){var Re={};for(var Dt in me)Object.prototype.hasOwnProperty.call(me,Dt)&&Be.indexOf(Dt)<0&&(Re[Dt]=me[Dt]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Dt=Object.getOwnPropertySymbols(me);Et{const{prefixCls:Re,className:Dt,rootClassName:Et,style:jt,tooltips:Ne,character:Vt=z.createElement(qe,null),disabled:yt}=me,ae=Ct(me,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Ot,vt)=>{let{index:Jt}=vt;return Ne?z.createElement(xt.Z,{title:Ne[Jt]},Ot):Ot},{getPrefixCls:ee,direction:oe,rate:se}=z.useContext(ot.E_),ne=ee("rate",Re),[pe,Ce,mt]=xe(ne),Oe=Object.assign(Object.assign({},se==null?void 0:se.style),jt),Ue=z.useContext(fe.Z),ft=yt!=null?yt:Ue;return pe(z.createElement(tt,Object.assign({ref:Be,character:Vt,characterRender:te,disabled:ft},ae,{className:he()(Dt,Et,Ce,mt,se==null?void 0:se.className),style:Oe,prefixCls:ne,direction:oe})))})},82326:function(fn,_t,re){"use strict";var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(37463),be=re(2738),Ie=re(75030),Te=re(86641),qe=re(45915),Se=re(82855),he=re(48755),Xe=re(38406),Ee=re(2171),Mt=re(83397),Je=re(31756),Fe=re(56553),Ge=re(24971),ze=re(70045),wt=re(57700),Tt=re(1722),zt=re(90376),St=re(68525),pt=re(90005),dt=function(xt,Me){var _e={};for(var Ve in xt)Object.prototype.hasOwnProperty.call(xt,Ve)&&Me.indexOf(Ve)<0&&(_e[Ve]=xt[Ve]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ve=Object.getOwnPropertySymbols(xt);ue{var _e;const{prefixCls:Ve,bordered:ue,className:ct,rootClassName:ke,getPopupContainer:nt,popupClassName:Ft,dropdownClassName:xe,listHeight:fe=256,placement:Ct,listItemHeight:Ut,size:Pt,disabled:me,notFoundContent:Be,status:Re,builtinPlacements:Dt,dropdownMatchSelectWidth:Et,popupMatchSelectWidth:jt,direction:Ne,style:Vt,allowClear:yt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=xt,pe=dt(xt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Ce,getPrefixCls:mt,renderEmpty:Oe,direction:Ue,virtual:ft,popupMatchSelectWidth:Ot,popupOverflow:vt}=z.useContext(he.E_),Jt=(0,he.dj)("select"),[,Yt]=(0,wt.ZP)(),Gt=Ut!=null?Ut:Yt==null?void 0:Yt.controlHeight,sn=mt("select",Ve),nn=mt(),dn=Ne!=null?Ne:Ue,{compactSize:kt,compactItemClassnames:on}=(0,ze.ri)(sn,dn),[Kt,Le]=(0,Ge.Z)("select",ae,ue),st=(0,Mt.Z)(sn),[$t,Wt,De]=(0,zt.Z)(sn,st),Ke=z.useMemo(()=>{const{mode:_n}=xt;if(_n!=="combobox")return _n===He?"combobox":_n},[xt.mode]),gt=Ke==="multiple"||Ke==="tags",Bt=(0,pt.Z)(xt.suffixIcon,xt.showArrow),Qt=(_e=jt!=null?jt:Et)!==null&&_e!==void 0?_e:Ot,{status:mn,hasFeedback:Dn,isFormItemInput:Mn,feedbackIcon:cn}=z.useContext(Fe.aM),En=(0,Se.F)(mn,Re);let vn;Be!==void 0?vn=Be:Ke==="combobox"?vn=null:vn=(Oe==null?void 0:Oe("Select"))||z.createElement(Xe.Z,{componentName:"Select"});const{suffixIcon:Xt,itemIcon:Rt,removeIcon:At,clearIcon:It}=(0,St.Z)(Object.assign(Object.assign({},pe),{multiple:gt,hasFeedback:Dn,feedbackIcon:cn,showSuffixIcon:Bt,prefixCls:sn,componentName:"Select"})),an=yt===!0?{clearIcon:It}:yt,tn=(0,be.Z)(pe,["suffixIcon","itemIcon"]),rn=ve()(Ft||xe,{[`${sn}-dropdown-${dn}`]:dn==="rtl"},ke,De,st,Wt),Sn=(0,Je.Z)(_n=>{var Nt;return(Nt=Pt!=null?Pt:kt)!==null&&Nt!==void 0?Nt:_n}),Pn=z.useContext(Ee.Z),On=me!=null?me:Pn,Rn=ve()({[`${sn}-lg`]:Sn==="large",[`${sn}-sm`]:Sn==="small",[`${sn}-rtl`]:dn==="rtl",[`${sn}-${Kt}`]:Le,[`${sn}-in-form-item`]:Mn},(0,Se.Z)(sn,En,Dn),on,Jt.className,ct,ke,De,st,Wt),Ln=z.useMemo(()=>Ct!==void 0?Ct:dn==="rtl"?"bottomRight":"bottomLeft",[Ct,dn]),[Jn]=(0,Ie.Cn)("SelectLike",te==null?void 0:te.zIndex);return $t(z.createElement(Qe.ZP,Object.assign({ref:Me,virtual:ft,showSearch:Jt.showSearch},tn,{style:Object.assign(Object.assign({},Jt.style),Vt),dropdownMatchSelectWidth:Qt,transitionName:(0,Te.m)(nn,"slide-up",ee),builtinPlacements:(0,Tt.Z)(Dt,vt),listHeight:fe,listItemHeight:Gt,mode:Ke,prefixCls:sn,placement:Ln,direction:dn,prefix:ne,suffixIcon:Xt,menuItemSelectedIcon:Rt,removeIcon:At,allowClear:an,notFoundContent:vn,className:Rn,getPopupContainer:nt||Ce,dropdownClassName:rn,disabled:On,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Jn}),maxCount:gt?se:void 0,tagRender:gt?oe:void 0})))},tt=z.forwardRef(Lt),ot=(0,qe.Z)(tt,"dropdownAlign");tt.SECRET_COMBOBOX_MODE_DO_NOT_USE=He,tt.Option=Qe.Wx,tt.OptGroup=Qe.Xo,tt._InternalPanelDoNotUseOrYouWillBeFired=ot,_t.default=tt},1722:function(fn,_t){"use strict";const re=it=>{const Qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Qe),{points:["br","tr"],offset:[0,-4]})}};function z(it,ve){return it||re(ve)}_t.Z=z},90376:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return Ve}});var z=re(63356),it=re(56119),ve=re(16931),Qe=re(51636),be=re(46e3),Ie=re(93873);const Te=ue=>{const{optionHeight:ct,optionFontSize:ke,optionLineHeight:nt,optionPadding:Ft}=ue;return{position:"relative",display:"block",minHeight:ct,padding:Ft,color:ue.colorText,fontWeight:"normal",fontSize:ke,lineHeight:nt,boxSizing:"border-box"}};var Se=ue=>{const{antCls:ct,componentCls:ke}=ue,nt=`${ke}-item`,Ft=`&${ct}-slide-up-enter${ct}-slide-up-enter-active`,xe=`&${ct}-slide-up-appear${ct}-slide-up-appear-active`,fe=`&${ct}-slide-up-leave${ct}-slide-up-leave-active`,Ct=`${ke}-dropdown-placement-`,Ut=`${nt}-option-selected`;return[{[`${ke}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[` ${Ft}${Ct}bottomLeft, ${xe}${Ct}bottomLeft `]:{animationName:be.fJ},[` ${Ft}${Ct}topLeft, ${xe}${Ct}topLeft, ${Ft}${Ct}topRight, ${xe}${Ct}topRight `]:{animationName:be.Qt},[`${fe}${Ct}bottomLeft`]:{animationName:be.Uw},[` ${fe}${Ct}topLeft, ${fe}${Ct}topRight `]:{animationName:be.ly},"&-hidden":{display:"none"},[nt]:Object.assign(Object.assign({},Te(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${nt}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${nt}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${nt}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${nt}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Te(ue)),{color:ue.colorTextDisabled})}),[`${Ut}:has(+ ${Ut})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ut}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,be.oN)(ue,"slide-up"),(0,be.oN)(ue,"slide-down"),(0,Ie.Fm)(ue,"move-up"),(0,Ie.Fm)(ue,"move-down")]},he=re(26743),Xe=re(36237);function Ee(ue,ct){const{componentCls:ke,inputPaddingHorizontalBase:nt,borderRadius:Ft}=ue,xe=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),fe=ct?`${ke}-${ct}`:"";return{[`${ke}-single${fe}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${ke}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(ue,!0)),{display:"flex",borderRadius:Ft,flex:"1 1 auto",[`${ke}-selection-wrap:after`]:{lineHeight:(0,Xe.unit)(xe)},[`${ke}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${ke}-selection-item, ${ke}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Xe.unit)(xe),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ke}-selection-item:empty:after`,`${ke}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${ke}-show-arrow ${ke}-selection-item, &${ke}-show-arrow ${ke}-selection-search, &${ke}-show-arrow ${ke}-selection-placeholder `]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${ke}-open ${ke}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${ke}-customize-input)`]:{[`${ke}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Xe.unit)(nt)}`,[`${ke}-selection-search-input`]:{height:xe,fontSize:ue.fontSize},"&:after":{lineHeight:(0,Xe.unit)(xe)}}},[`&${ke}-customize-input`]:{[`${ke}-selector`]:{"&:after":{display:"none"},[`${ke}-selection-search`]:{position:"static",width:"100%"},[`${ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Xe.unit)(nt)}`,"&:after":{display:"none"}}}}}}}function Mt(ue){const{componentCls:ct}=ue,ke=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ee(ue),Ee((0,Qe.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${ct}-single${ct}-sm`]:{[`&:not(${ct}-customize-input)`]:{[`${ct}-selector`]:{padding:`0 ${(0,Xe.unit)(ke)}`},[`&${ct}-show-arrow ${ct}-selection-search`]:{insetInlineEnd:ue.calc(ke).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[` &${ct}-show-arrow ${ct}-selection-item, &${ct}-show-arrow ${ct}-selection-placeholder `]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Ee((0,Qe.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const Je=ue=>{const{fontSize:ct,lineHeight:ke,lineWidth:nt,controlHeight:Ft,controlHeightSM:xe,controlHeightLG:fe,paddingXXS:Ct,controlPaddingHorizontal:Ut,zIndexPopupBase:Pt,colorText:me,fontWeightStrong:Be,controlItemBgActive:Re,controlItemBgHover:Dt,colorBgContainer:Et,colorFillSecondary:jt,colorBgContainerDisabled:Ne,colorTextDisabled:Vt,colorPrimaryHover:yt,colorPrimary:ae,controlOutline:te}=ue,ee=Ct*2,oe=nt*2,se=Math.min(Ft-ee,Ft-oe),ne=Math.min(xe-ee,xe-oe),pe=Math.min(fe-ee,fe-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ct/2),zIndexPopup:Pt+50,optionSelectedColor:me,optionSelectedFontWeight:Be,optionSelectedBg:Re,optionActiveBg:Dt,optionPadding:`${(Ft-ct*ke)/2}px ${Ut}px`,optionFontSize:ct,optionLineHeight:ke,optionHeight:Ft,selectorBg:Et,clearBg:Et,singleItemHeightLG:fe,multipleItemBg:jt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:Ne,multipleItemColorDisabled:Vt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:yt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Ct}},Fe=(ue,ct)=>{const{componentCls:ke,antCls:nt,controlOutlineWidth:Ft}=ue;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ct.borderColor}`,background:ue.selectorBg},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:ct.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:ct.activeBorderColor,boxShadow:`0 0 0 ${(0,Xe.unit)(Ft)} ${ct.activeOutlineColor}`,outline:0},[`${ke}-prefix`]:{color:ct.color}}}},Ge=(ue,ct)=>({[`&${ue.componentCls}-status-${ct.status}`]:Object.assign({},Fe(ue,ct))}),ze=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fe(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ge(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ge(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),wt=(ue,ct)=>{const{componentCls:ke,antCls:nt}=ue;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{background:ct.bg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:ct.color},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{background:ct.hoverBg},[`${ke}-focused& ${ke}-selector`]:{background:ue.selectorBg,borderColor:ct.activeBorderColor,outline:0}}}},Tt=(ue,ct)=>({[`&${ue.componentCls}-status-${ct.status}`]:Object.assign({},wt(ue,ct))}),zt=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},wt(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),Tt(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),Tt(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),St=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),pt=(ue,ct)=>{const{componentCls:ke,antCls:nt}=ue;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{borderWidth:`0 0 ${(0,Xe.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:ct.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:ct.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:ct.activeBorderColor,outline:0},[`${ke}-prefix`]:{color:ct.color}}}},dt=(ue,ct)=>({[`&${ue.componentCls}-status-${ct.status}`]:Object.assign({},pt(ue,ct))}),He=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},pt(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),dt(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),dt(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,Xe.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var tt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ze(ue)),zt(ue)),St(ue)),He(ue))});const ot=ue=>{const{componentCls:ct}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${ct}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ct}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},xt=ue=>{const{componentCls:ct}=ue;return{[`${ct}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Me=ue=>{const{antCls:ct,componentCls:ke,inputPaddingHorizontalBase:nt,iconCls:Ft}=ue;return{[ke]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ke}-customize-input) ${ke}-selector`]:Object.assign(Object.assign({},ot(ue)),xt(ue)),[`${ke}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${ct}-typography`]:{display:"inline"}}),[`${ke}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${ke}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Ft]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ke}-suffix)`]:{pointerEvents:"auto"}},[`${ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ke}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ke}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${ke}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${ke}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ke}-has-feedback`]:{[`${ke}-clear`]:{insetInlineEnd:ue.calc(nt).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},_e=ue=>{const{componentCls:ct}=ue;return[{[ct]:{[`&${ct}-in-form-item`]:{width:"100%"}}},Me(ue),Mt(ue),(0,he.ZP)(ue),Se(ue),{[`${ct}-rtl`]:{direction:"rtl"}},(0,it.c)(ue,{borderElCls:`${ct}-selector`,focusElCls:`${ct}-focused`})]};var Ve=(0,ve.I$)("Select",(ue,ct)=>{let{rootPrefixCls:ke}=ct;const nt=(0,Qe.mergeToken)(ue,{rootPrefixCls:ke,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[_e(nt),tt(nt)]},Je,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(fn,_t,re){"use strict";re.d(_t,{_z:function(){return Ie},gp:function(){return Qe}});var z=re(36237),it=re(63356),ve=re(51636);const Qe=he=>{const{multipleSelectItemHeight:Xe,paddingXXS:Ee,lineWidth:Mt,INTERNAL_FIXED_ITEM_MARGIN:Je}=he,Fe=he.max(he.calc(Ee).sub(Mt).equal(),0),Ge=he.max(he.calc(Fe).sub(Je).equal(),0);return{basePadding:Fe,containerPadding:Ge,itemHeight:(0,z.unit)(Xe),itemLineHeight:(0,z.unit)(he.calc(Xe).sub(he.calc(he.lineWidth).mul(2)).equal())}},be=he=>{const{multipleSelectItemHeight:Xe,selectHeight:Ee,lineWidth:Mt}=he;return he.calc(Ee).sub(Xe).div(2).sub(Mt).equal()},Ie=he=>{const{componentCls:Xe,iconCls:Ee,borderRadiusSM:Mt,motionDurationSlow:Je,paddingXS:Fe,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:ze,colorIcon:wt,colorIconHover:Tt,INTERNAL_FIXED_ITEM_MARGIN:zt}=he;return{[`${Xe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Xe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:zt,borderRadius:Mt,cursor:"default",transition:`font-size ${Je}, line-height ${Je}, height ${Je}`,marginInlineEnd:he.calc(zt).mul(2).equal(),paddingInlineStart:Fe,paddingInlineEnd:he.calc(Fe).div(2).equal(),[`${Xe}-disabled&`]:{color:Ge,borderColor:ze,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Fe).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,it.Ro)()),{display:"inline-flex",alignItems:"center",color:wt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Tt}})}}}},Te=(he,Xe)=>{const{componentCls:Ee,INTERNAL_FIXED_ITEM_MARGIN:Mt}=he,Je=`${Ee}-selection-overflow`,Fe=he.multipleSelectItemHeight,Ge=be(he),ze=Xe?`${Ee}-${Xe}`:"",wt=Qe(he);return{[`${Ee}-multiple${ze}`]:Object.assign(Object.assign({},Ie(he)),{[`${Ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:wt.basePadding,paddingBlock:wt.containerPadding,borderRadius:he.borderRadius,[`${Ee}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Mt)} 0`,lineHeight:(0,z.unit)(Fe),visibility:"hidden",content:'"\\a0"'}},[`${Ee}-selection-item`]:{height:wt.itemHeight,lineHeight:(0,z.unit)(wt.itemLineHeight)},[`${Ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Fe),marginBlock:Mt}},[`${Ee}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(wt.basePadding).equal()},[`${Je}-item + ${Je}-item, ${Ee}-prefix + ${Ee}-selection-wrap `]:{[`${Ee}-selection-search`]:{marginInlineStart:0},[`${Ee}-selection-placeholder`]:{insetInlineStart:0}},[`${Je}-item-suffix`]:{minHeight:wt.itemHeight,marginBlock:Mt},[`${Ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ge).equal(),"\n &-input,\n &-mirror\n ":{height:Fe,fontFamily:he.fontFamily,lineHeight:(0,z.unit)(Fe),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(wt.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function qe(he,Xe){const{componentCls:Ee}=he,Mt=Xe?`${Ee}-${Xe}`:"",Je={[`${Ee}-multiple${Mt}`]:{fontSize:he.fontSize,[`${Ee}-selector`]:{[`${Ee}-show-search&`]:{cursor:"text"}},[` &${Ee}-show-arrow ${Ee}-selector, &${Ee}-allow-clear ${Ee}-selector `]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Te(he,Xe),Je]}const Se=he=>{const{componentCls:Xe}=he,Ee=(0,ve.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),Mt=(0,ve.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[qe(he),qe(Ee,"sm"),{[`${Xe}-multiple${Xe}-sm`]:{[`${Xe}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Xe}-selection-search`]:{marginInlineStart:2}}},qe(Mt,"lg")]};_t.ZP=Se},68525:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});var z=re(59301),it=re(40001),ve=re(19248),Qe=re(99267),be=re(84105),Ie=re(58617),Te=re(47472);function qe(Se){let{suffixIcon:he,clearIcon:Xe,menuItemSelectedIcon:Ee,removeIcon:Mt,loading:Je,multiple:Fe,hasFeedback:Ge,prefixCls:ze,showSuffixIcon:wt,feedbackIcon:Tt,showArrow:zt,componentName:St}=Se;const pt=Xe!=null?Xe:z.createElement(ve.Z,null),dt=ot=>he===null&&!Ge&&!zt?null:z.createElement(z.Fragment,null,wt!==!1&&ot,Ge&&Tt);let He=null;if(he!==void 0)He=dt(he);else if(Je)He=dt(z.createElement(Ie.Z,{spin:!0}));else{const ot=`${ze}-suffix`;He=xt=>{let{open:Me,showSearch:_e}=xt;return dt(Me&&_e?z.createElement(Te.Z,{className:ot}):z.createElement(be.Z,{className:ot}))}}let Lt=null;Ee!==void 0?Lt=Ee:Fe?Lt=z.createElement(it.Z,null):Lt=null;let tt=null;return Mt!==void 0?tt=Mt:tt=z.createElement(Qe.Z,null),{clearIcon:pt,suffixIcon:He,itemIcon:Lt,removeIcon:tt}}},90005:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return z}});function z(it,ve){return ve!==void 0?ve:it!==null}},11938:function(fn,_t,re){"use strict";re.d(_t,{default:function(){return xt}});var z=re(59301),it=re(40192),ve=re(22703),Qe=re(92310),be=re.n(Qe),Ie=re(26112),Te=re(48755),qe=re(458),he=Me=>{const{value:_e,formatter:Ve,precision:ue,decimalSeparator:ct,groupSeparator:ke="",prefixCls:nt}=Me;let Ft;if(typeof Ve=="function")Ft=Ve(_e);else{const xe=String(_e),fe=xe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!fe||xe==="-")Ft=xe;else{const Ct=fe[1];let Ut=fe[2]||"0",Pt=fe[4]||"";Ut=Ut.replace(/\B(?=(\d{3})+(?!\d))/g,ke),typeof ue=="number"&&(Pt=Pt.padEnd(ue,"0").slice(0,ue>0?ue:0)),Pt&&(Pt=`${ct}${Pt}`),Ft=[z.createElement("span",{key:"int",className:`${nt}-content-value-int`},Ct,Ut),Pt&&z.createElement("span",{key:"decimal",className:`${nt}-content-value-decimal`},Pt)]}}return z.createElement("span",{className:`${nt}-content-value`},Ft)},Xe=re(63356),Ee=re(16931),Mt=re(51636);const Je=Me=>{const{componentCls:_e,marginXXS:Ve,padding:ue,colorTextDescription:ct,titleFontSize:ke,colorTextHeading:nt,contentFontSize:Ft,fontFamily:xe}=Me;return{[_e]:Object.assign(Object.assign({},(0,Xe.Wf)(Me)),{[`${_e}-title`]:{marginBottom:Ve,color:ct,fontSize:ke},[`${_e}-skeleton`]:{paddingTop:ue},[`${_e}-content`]:{color:nt,fontSize:Ft,fontFamily:xe,[`${_e}-content-value`]:{display:"inline-block",direction:"ltr"},[`${_e}-content-prefix, ${_e}-content-suffix`]:{display:"inline-block"},[`${_e}-content-prefix`]:{marginInlineEnd:Ve},[`${_e}-content-suffix`]:{marginInlineStart:Ve}}})}},Fe=Me=>{const{fontSizeHeading3:_e,fontSize:Ve}=Me;return{titleFontSize:Ve,contentFontSize:_e}};var Ge=(0,Ee.I$)("Statistic",Me=>{const _e=(0,Mt.mergeToken)(Me,{});return[Je(_e)]},Fe),ze=function(Me,_e){var Ve={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&_e.indexOf(ue)<0&&(Ve[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ue=Object.getOwnPropertySymbols(Me);ct{const{prefixCls:_e,className:Ve,rootClassName:ue,style:ct,valueStyle:ke,value:nt=0,title:Ft,valueRender:xe,prefix:fe,suffix:Ct,loading:Ut=!1,formatter:Pt,precision:me,decimalSeparator:Be=".",groupSeparator:Re=",",onMouseEnter:Dt,onMouseLeave:Et}=Me,jt=ze(Me,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Ne,direction:Vt,className:yt,style:ae}=(0,Te.dj)("statistic"),te=Ne("statistic",_e),[ee,oe,se]=Ge(te),ne=z.createElement(he,{decimalSeparator:Be,groupSeparator:Re,prefixCls:te,formatter:Pt,precision:me,value:nt}),pe=be()(te,{[`${te}-rtl`]:Vt==="rtl"},yt,Ve,ue,oe,se),Ce=(0,Ie.Z)(jt,{aria:!0,data:!0});return ee(z.createElement("div",Object.assign({},Ce,{className:pe,style:Object.assign(Object.assign({},ae),ct),onMouseEnter:Dt,onMouseLeave:Et}),Ft&&z.createElement("div",{className:`${te}-title`},Ft),z.createElement(qe.Z,{paragraph:!1,loading:Ut,className:`${te}-skeleton`},z.createElement("div",{style:ke,className:`${te}-content`},fe&&z.createElement("span",{className:`${te}-content-prefix`},fe),xe?xe(ne):ne,Ct&&z.createElement("span",{className:`${te}-content-suffix`},Ct)))))};const zt=[["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 St(Me,_e){let Ve=Me;const ue=/\[[^\]]*]/g,ct=(_e.match(ue)||[]).map(xe=>xe.slice(1,-1)),ke=_e.replace(ue,"[]"),nt=zt.reduce((xe,fe)=>{let[Ct,Ut]=fe;if(xe.includes(Ct)){const Pt=Math.floor(Ve/Ut);return Ve-=Pt*Ut,xe.replace(new RegExp(`${Ct}+`,"g"),me=>{const Be=me.length;return Pt.toString().padStart(Be,"0")})}return xe},ke);let Ft=0;return nt.replace(ue,()=>{const xe=ct[Ft];return Ft+=1,xe})}function pt(Me,_e){const{format:Ve=""}=_e,ue=new Date(Me).getTime(),ct=Date.now(),ke=Math.max(ue-ct,0);return St(ke,Ve)}var dt=function(Me,_e){var Ve={};for(var ue in Me)Object.prototype.hasOwnProperty.call(Me,ue)&&_e.indexOf(ue)<0&&(Ve[ue]=Me[ue]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ue=Object.getOwnPropertySymbols(Me);ct{const{value:_e,format:Ve="HH:mm:ss",onChange:ue,onFinish:ct}=Me,ke=dt(Me,["value","format","onChange","onFinish"]),nt=(0,it.Z)(),Ft=z.useRef(null),xe=()=>{ct==null||ct(),Ft.current&&(clearInterval(Ft.current),Ft.current=null)},fe=()=>{const Pt=Lt(_e);Pt>=Date.now()&&(Ft.current=setInterval(()=>{nt(),ue==null||ue(Pt-Date.now()),Pt(fe(),()=>{Ft.current&&(clearInterval(Ft.current),Ft.current=null)}),[_e]);const Ct=(Pt,me)=>pt(Pt,Object.assign(Object.assign({},me),{format:Ve})),Ut=Pt=>(0,ve.Tm)(Pt,{title:void 0});return z.createElement(Tt,Object.assign({},ke,{value:_e,valueRender:Ut,formatter:Ct}))};var ot=z.memo(tt);Tt.Countdown=ot;var xt=Tt},58755:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return ct}});var z=re(59301),it=re(58617),ve=re(92310),Qe=re.n(ve),be=re(60499),Ie=re(18642),Te=re(72190),qe=re(42244),Se=re(18929),he=re(10228),Xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=z.forwardRef(function(ke,nt){var Ft,xe=ke.prefixCls,fe=xe===void 0?"rc-switch":xe,Ct=ke.className,Ut=ke.checked,Pt=ke.defaultChecked,me=ke.disabled,Be=ke.loadingIcon,Re=ke.checkedChildren,Dt=ke.unCheckedChildren,Et=ke.onClick,jt=ke.onChange,Ne=ke.onKeyDown,Vt=(0,qe.Z)(ke,Xe),yt=(0,Se.Z)(!1,{value:Ut,defaultValue:Pt}),ae=(0,Te.Z)(yt,2),te=ae[0],ee=ae[1];function oe(Ce,mt){var Oe=te;return me||(Oe=Ce,ee(Oe),jt==null||jt(Oe,mt)),Oe}function se(Ce){Ce.which===he.Z.LEFT?oe(!1,Ce):Ce.which===he.Z.RIGHT&&oe(!0,Ce),Ne==null||Ne(Ce)}function ne(Ce){var mt=oe(!te,Ce);Et==null||Et(mt,Ce)}var pe=Qe()(fe,Ct,(Ft={},(0,Ie.Z)(Ft,"".concat(fe,"-checked"),te),(0,Ie.Z)(Ft,"".concat(fe,"-disabled"),me),Ft));return z.createElement("button",(0,be.Z)({},Vt,{type:"button",role:"switch","aria-checked":te,disabled:me,className:pe,ref:nt,onKeyDown:se,onClick:ne}),Be,z.createElement("span",{className:"".concat(fe,"-inner")},z.createElement("span",{className:"".concat(fe,"-inner-checked")},Re),z.createElement("span",{className:"".concat(fe,"-inner-unchecked")},Dt)))});Ee.displayName="Switch";var Mt=Ee,Je=re(12919),Fe=re(48755),Ge=re(2171),ze=re(31756),wt=re(36237),Tt=re(17835),zt=re(63356),St=re(16931),pt=re(51636);const dt=ke=>{const{componentCls:nt,trackHeightSM:Ft,trackPadding:xe,trackMinWidthSM:fe,innerMinMarginSM:Ct,innerMaxMarginSM:Ut,handleSizeSM:Pt,calc:me}=ke,Be=`${nt}-inner`,Re=(0,wt.unit)(me(Pt).add(me(xe).mul(2)).equal()),Dt=(0,wt.unit)(me(Ut).mul(2).equal());return{[nt]:{[`&${nt}-small`]:{minWidth:fe,height:Ft,lineHeight:(0,wt.unit)(Ft),[`${nt}-inner`]:{paddingInlineStart:Ut,paddingInlineEnd:Ct,[`${Be}-checked, ${Be}-unchecked`]:{minHeight:Ft},[`${Be}-checked`]:{marginInlineStart:`calc(-100% + ${Re} - ${Dt})`,marginInlineEnd:`calc(100% - ${Re} + ${Dt})`},[`${Be}-unchecked`]:{marginTop:me(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${nt}-handle`]:{width:Pt,height:Pt},[`${nt}-loading-icon`]:{top:me(me(Pt).sub(ke.switchLoadingIconSize)).div(2).equal(),fontSize:ke.switchLoadingIconSize},[`&${nt}-checked`]:{[`${nt}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:Ut,[`${Be}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Be}-unchecked`]:{marginInlineStart:`calc(100% - ${Re} + ${Dt})`,marginInlineEnd:`calc(-100% + ${Re} - ${Dt})`}},[`${nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,wt.unit)(me(Pt).add(xe).equal())})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${Be}`]:{[`${Be}-unchecked`]:{marginInlineStart:me(ke.marginXXS).div(2).equal(),marginInlineEnd:me(ke.marginXXS).mul(-1).div(2).equal()}},[`&${nt}-checked ${Be}`]:{[`${Be}-checked`]:{marginInlineStart:me(ke.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:me(ke.marginXXS).div(2).equal()}}}}}}},He=ke=>{const{componentCls:nt,handleSize:Ft,calc:xe}=ke;return{[nt]:{[`${nt}-loading-icon${ke.iconCls}`]:{position:"relative",top:xe(xe(Ft).sub(ke.fontSize)).div(2).equal(),color:ke.switchLoadingIconColor,verticalAlign:"top"},[`&${nt}-checked ${nt}-loading-icon`]:{color:ke.switchColor}}}},Lt=ke=>{const{componentCls:nt,trackPadding:Ft,handleBg:xe,handleShadow:fe,handleSize:Ct,calc:Ut}=ke,Pt=`${nt}-handle`;return{[nt]:{[Pt]:{position:"absolute",top:Ft,insetInlineStart:Ft,width:Ct,height:Ct,transition:`all ${ke.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:xe,borderRadius:Ut(Ct).div(2).equal(),boxShadow:fe,transition:`all ${ke.switchDuration} ease-in-out`,content:'""'}},[`&${nt}-checked ${Pt}`]:{insetInlineStart:`calc(100% - ${(0,wt.unit)(Ut(Ct).add(Ft).equal())})`},[`&:not(${nt}-disabled):active`]:{[`${Pt}::before`]:{insetInlineEnd:ke.switchHandleActiveInset,insetInlineStart:0},[`&${nt}-checked ${Pt}::before`]:{insetInlineEnd:0,insetInlineStart:ke.switchHandleActiveInset}}}}},tt=ke=>{const{componentCls:nt,trackHeight:Ft,trackPadding:xe,innerMinMargin:fe,innerMaxMargin:Ct,handleSize:Ut,calc:Pt}=ke,me=`${nt}-inner`,Be=(0,wt.unit)(Pt(Ut).add(Pt(xe).mul(2)).equal()),Re=(0,wt.unit)(Pt(Ct).mul(2).equal());return{[nt]:{[me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ct,paddingInlineEnd:fe,transition:`padding-inline-start ${ke.switchDuration} ease-in-out, padding-inline-end ${ke.switchDuration} ease-in-out`,[`${me}-checked, ${me}-unchecked`]:{display:"block",color:ke.colorTextLightSolid,fontSize:ke.fontSizeSM,transition:`margin-inline-start ${ke.switchDuration} ease-in-out, margin-inline-end ${ke.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ft},[`${me}-checked`]:{marginInlineStart:`calc(-100% + ${Be} - ${Re})`,marginInlineEnd:`calc(100% - ${Be} + ${Re})`},[`${me}-unchecked`]:{marginTop:Pt(Ft).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${nt}-checked ${me}`]:{paddingInlineStart:fe,paddingInlineEnd:Ct,[`${me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${me}-unchecked`]:{marginInlineStart:`calc(100% - ${Be} + ${Re})`,marginInlineEnd:`calc(-100% + ${Be} - ${Re})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${me}`]:{[`${me}-unchecked`]:{marginInlineStart:Pt(xe).mul(2).equal(),marginInlineEnd:Pt(xe).mul(-1).mul(2).equal()}},[`&${nt}-checked ${me}`]:{[`${me}-checked`]:{marginInlineStart:Pt(xe).mul(-1).mul(2).equal(),marginInlineEnd:Pt(xe).mul(2).equal()}}}}}},ot=ke=>{const{componentCls:nt,trackHeight:Ft,trackMinWidth:xe}=ke;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(ke)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:xe,height:Ft,lineHeight:(0,wt.unit)(Ft),verticalAlign:"middle",background:ke.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ke.motionDurationMid}`,userSelect:"none",[`&:hover:not(${nt}-disabled)`]:{background:ke.colorTextTertiary}}),(0,zt.Qy)(ke)),{[`&${nt}-checked`]:{background:ke.switchColor,[`&:hover:not(${nt}-disabled)`]:{background:ke.colorPrimaryHover}},[`&${nt}-loading, &${nt}-disabled`]:{cursor:"not-allowed",opacity:ke.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${nt}-rtl`]:{direction:"rtl"}})}},xt=ke=>{const{fontSize:nt,lineHeight:Ft,controlHeight:xe,colorWhite:fe}=ke,Ct=nt*Ft,Ut=xe/2,Pt=2,me=Ct-Pt*2,Be=Ut-Pt*2;return{trackHeight:Ct,trackHeightSM:Ut,trackMinWidth:me*2+Pt*4,trackMinWidthSM:Be*2+Pt*2,trackPadding:Pt,handleBg:fe,handleSize:me,handleSizeSM:Be,handleShadow:`0 2px 4px 0 ${new Tt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:me/2,innerMaxMargin:me+Pt+Pt*2,innerMinMarginSM:Be/2,innerMaxMarginSM:Be+Pt+Pt*2}};var Me=(0,St.I$)("Switch",ke=>{const nt=(0,pt.mergeToken)(ke,{switchDuration:ke.motionDurationMid,switchColor:ke.colorPrimary,switchDisabledOpacity:ke.opacityLoading,switchLoadingIconSize:ke.calc(ke.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ke.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ot(nt),tt(nt),Lt(nt),He(nt),dt(nt)]},xt),_e=function(ke,nt){var Ft={};for(var xe in ke)Object.prototype.hasOwnProperty.call(ke,xe)&&nt.indexOf(xe)<0&&(Ft[xe]=ke[xe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,xe=Object.getOwnPropertySymbols(ke);fe{const{prefixCls:Ft,size:xe,disabled:fe,loading:Ct,className:Ut,rootClassName:Pt,style:me,checked:Be,value:Re,defaultChecked:Dt,defaultValue:Et,onChange:jt}=ke,Ne=_e(ke,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Vt,yt]=(0,Se.Z)(!1,{value:Be!=null?Be:Re,defaultValue:Dt!=null?Dt:Et}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Fe.E_),oe=z.useContext(Ge.Z),se=(fe!=null?fe:oe)||Ct,ne=ae("switch",Ft),pe=z.createElement("div",{className:`${ne}-handle`},Ct&&z.createElement(it.Z,{className:`${ne}-loading-icon`})),[Ce,mt,Oe]=Me(ne),Ue=(0,ze.Z)(xe),ft=Qe()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ue==="small",[`${ne}-loading`]:Ct,[`${ne}-rtl`]:te==="rtl"},Ut,Pt,mt,Oe),Ot=Object.assign(Object.assign({},ee==null?void 0:ee.style),me),vt=function(){yt(arguments.length<=0?void 0:arguments[0]),jt==null||jt.apply(void 0,arguments)};return Ce(z.createElement(Je.Z,{component:"Switch"},z.createElement(Mt,Object.assign({},Ne,{checked:Vt,onChange:vt,prefixCls:ne,className:ft,style:Ot,disabled:se,ref:nt,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var ct=ue},96599:function(fn,_t,re){"use strict";re.d(_t,{default:function(){return Ve}});var z=re(59301),it=re(92310),ve=re.n(it),Qe=re(2738),be=re(29509),Ie=re(78776),Te=re(22703),qe=re(12919),Se=re(48755),he=re(36237),Xe=re(17835),Ee=re(63356),Mt=re(51636),Je=re(16931);const Fe=ue=>{const{paddingXXS:ct,lineWidth:ke,tagPaddingHorizontal:nt,componentCls:Ft,calc:xe}=ue,fe=xe(nt).sub(ke).equal(),Ct=xe(ct).sub(ke).equal();return{[Ft]:Object.assign(Object.assign({},(0,Ee.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:fe,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,he.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ft}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Ft}-close-icon`]:{marginInlineStart:Ct,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Ft}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ft}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:fe}}),[`${Ft}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ge=ue=>{const{lineWidth:ct,fontSizeIcon:ke,calc:nt}=ue,Ft=ue.fontSizeSM;return(0,Mt.mergeToken)(ue,{tagFontSize:Ft,tagLineHeight:(0,he.unit)(nt(ue.lineHeightSM).mul(Ft).equal()),tagIconSize:nt(ke).sub(nt(ct).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},ze=ue=>({defaultBg:new Xe.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var wt=(0,Je.I$)("Tag",ue=>{const ct=Ge(ue);return Fe(ct)},ze),Tt=function(ue,ct){var ke={};for(var nt in ue)Object.prototype.hasOwnProperty.call(ue,nt)&&ct.indexOf(nt)<0&&(ke[nt]=ue[nt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,nt=Object.getOwnPropertySymbols(ue);Ft{const{prefixCls:ke,style:nt,className:Ft,checked:xe,onChange:fe,onClick:Ct}=ue,Ut=Tt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Pt,tag:me}=z.useContext(Se.E_),Be=Vt=>{fe==null||fe(!xe),Ct==null||Ct(Vt)},Re=Pt("tag",ke),[Dt,Et,jt]=wt(Re),Ne=ve()(Re,`${Re}-checkable`,{[`${Re}-checkable-checked`]:xe},me==null?void 0:me.className,Ft,Et,jt);return Dt(z.createElement("span",Object.assign({},Ut,{ref:ct,style:Object.assign(Object.assign({},nt),me==null?void 0:me.style),className:Ne,onClick:Be})))}),pt=re(93427);const dt=ue=>(0,pt.Z)(ue,(ct,ke)=>{let{textColor:nt,lightBorderColor:Ft,lightColor:xe,darkColor:fe}=ke;return{[`${ue.componentCls}${ue.componentCls}-${ct}`]:{color:nt,background:xe,borderColor:Ft,"&-inverse":{color:ue.colorTextLightSolid,background:fe,borderColor:fe},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var He=(0,Je.bk)(["Tag","preset"],ue=>{const ct=Ge(ue);return dt(ct)},ze);function Lt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const tt=(ue,ct,ke)=>{const nt=Lt(ke);return{[`${ue.componentCls}${ue.componentCls}-${ct}`]:{color:ue[`color${ke}`],background:ue[`color${nt}Bg`],borderColor:ue[`color${nt}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ot=(0,Je.bk)(["Tag","status"],ue=>{const ct=Ge(ue);return[tt(ct,"success","Success"),tt(ct,"processing","Info"),tt(ct,"error","Error"),tt(ct,"warning","Warning")]},ze),xt=function(ue,ct){var ke={};for(var nt in ue)Object.prototype.hasOwnProperty.call(ue,nt)&&ct.indexOf(nt)<0&&(ke[nt]=ue[nt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,nt=Object.getOwnPropertySymbols(ue);Ft{const{prefixCls:ke,className:nt,rootClassName:Ft,style:xe,children:fe,icon:Ct,color:Ut,onClose:Pt,bordered:me=!0,visible:Be}=ue,Re=xt(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Dt,direction:Et,tag:jt}=z.useContext(Se.E_),[Ne,Vt]=z.useState(!0),yt=(0,Qe.Z)(Re,["closeIcon","closable"]);z.useEffect(()=>{Be!==void 0&&Vt(Be)},[Be]);const ae=(0,be.o2)(Ut),te=(0,be.yT)(Ut),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Ut&&!ee?Ut:void 0},jt==null?void 0:jt.style),xe),se=Dt("tag",ke),[ne,pe,Ce]=wt(se),mt=ve()(se,jt==null?void 0:jt.className,{[`${se}-${Ut}`]:ee,[`${se}-has-color`]:Ut&&!ee,[`${se}-hidden`]:!Ne,[`${se}-rtl`]:Et==="rtl",[`${se}-borderless`]:!me},nt,Ft,pe,Ce),Oe=Yt=>{Yt.stopPropagation(),Pt==null||Pt(Yt),!Yt.defaultPrevented&&Vt(!1)},[,Ue]=(0,Ie.Z)((0,Ie.w)(ue),(0,Ie.w)(jt),{closable:!1,closeIconRender:Yt=>{const Gt=z.createElement("span",{className:`${se}-close-icon`,onClick:Oe},Yt);return(0,Te.wm)(Yt,Gt,sn=>({onClick:nn=>{var dn;(dn=sn==null?void 0:sn.onClick)===null||dn===void 0||dn.call(sn,nn),Oe(nn)},className:ve()(sn==null?void 0:sn.className,`${se}-close-icon`)}))}}),ft=typeof Re.onClick=="function"||fe&&fe.type==="a",Ot=Ct||null,vt=Ot?z.createElement(z.Fragment,null,Ot,fe&&z.createElement("span",null,fe)):fe,Jt=z.createElement("span",Object.assign({},yt,{ref:ct,className:mt,style:oe}),vt,Ue,ae&&z.createElement(He,{key:"preset",prefixCls:se}),te&&z.createElement(ot,{key:"status",prefixCls:se}));return ne(ft?z.createElement(qe.Z,{component:"Tag"},Jt):Jt)});_e.CheckableTag=St;var Ve=_e},94968:function(fn,_t,re){"use strict";re.d(_t,{default:function(){return je}});var z=re(59301),it=re(77654),ve=re(4676),Qe=re(92310),be=re.n(Qe),Ie=re(60499),Te=re(38705),qe=re(17212),Se=re(15793),he=re(39153),Xe=re(55401),Ee=re(18642),Mt=re(85899),Je=re(42244),Fe=re(43749),Ge=re(73001),ze=re(11576),wt=re(26112),Tt=re(48736),zt=function(ye,et){if(ye&&et){var at=Array.isArray(et)?et:et.split(","),bt=ye.name||"",lt=ye.type||"",We=lt.replace(/\/.*$/,"");return at.some(function(Ze){var ut=Ze.trim();if(/^\*(\/\*)?$/.test(Ze))return!0;if(ut.charAt(0)==="."){var un=bt.toLowerCase(),en=ut.toLowerCase(),ln=[en];return(en===".jpg"||en===".jpeg")&&(ln=[".jpg",".jpeg"]),ln.some(function($n){return un.endsWith($n)})}return/\/\*$/.test(ut)?We===ut.replace(/\/.*$/,""):lt===ut?!0:/^\w+$/.test(ut)?((0,Tt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ut,"'.Skip for check.")),!0):!1})}return!0};function St(ye,et){var at="cannot ".concat(ye.method," ").concat(ye.action," ").concat(et.status,"'"),bt=new Error(at);return bt.status=et.status,bt.method=ye.method,bt.url=ye.action,bt}function pt(ye){var et=ye.responseText||ye.response;if(!et)return et;try{return JSON.parse(et)}catch(at){return et}}function dt(ye){var et=new XMLHttpRequest;ye.onProgress&&et.upload&&(et.upload.onprogress=function(We){We.total>0&&(We.percent=We.loaded/We.total*100),ye.onProgress(We)});var at=new FormData;ye.data&&Object.keys(ye.data).forEach(function(lt){var We=ye.data[lt];if(Array.isArray(We)){We.forEach(function(Ze){at.append("".concat(lt,"[]"),Ze)});return}at.append(lt,We)}),ye.file instanceof Blob?at.append(ye.filename,ye.file,ye.file.name):at.append(ye.filename,ye.file),et.onerror=function(We){ye.onError(We)},et.onload=function(){return et.status<200||et.status>=300?ye.onError(St(ye,et),pt(et)):ye.onSuccess(pt(et),et)},et.open(ye.method,ye.action,!0),ye.withCredentials&&"withCredentials"in et&&(et.withCredentials=!0);var bt=ye.headers||{};return bt["X-Requested-With"]!==null&&et.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(bt).forEach(function(lt){bt[lt]!==null&&et.setRequestHeader(lt,bt[lt])}),et.send(at),{abort:function(){et.abort()}}}var He=function(){var ye=(0,ze.Z)((0,Ge.Z)().mark(function et(at,bt){var lt,We,Ze,ut,un,en,ln,$n;return(0,Ge.Z)().wrap(function(Vn){for(;;)switch(Vn.prev=Vn.next){case 0:en=function(){return en=(0,ze.Z)((0,Ge.Z)().mark(function kn(Nn){return(0,Ge.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:return qn.abrupt("return",new Promise(function(Kn){Nn.file(function(Qn){bt(Qn)?(Nn.fullPath&&!Qn.webkitRelativePath&&(Object.defineProperties(Qn,{webkitRelativePath:{writable:!0}}),Qn.webkitRelativePath=Nn.fullPath.replace(/^\//,""),Object.defineProperties(Qn,{webkitRelativePath:{writable:!1}})),Kn(Qn)):Kn(null)})}));case 1:case"end":return qn.stop()}},kn)})),en.apply(this,arguments)},un=function(kn){return en.apply(this,arguments)},ut=function(){return ut=(0,ze.Z)((0,Ge.Z)().mark(function kn(Nn){var Zn,qn,Kn,Qn,Tn;return(0,Ge.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:Zn=Nn.createReader(),qn=[];case 2:return Gn.next=5,new Promise(function(dr){Zn.readEntries(dr,function(){return dr([])})});case 5:if(Kn=Gn.sent,Qn=Kn.length,Qn){Gn.next=9;break}return Gn.abrupt("break",12);case 9:for(Tn=0;Tn{const{componentCls:et,iconCls:at}=ye;return{[`${et}-wrapper`]:{[`${et}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ye.colorFillAlter,border:`${(0,Dt.unit)(ye.lineWidth)} dashed ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,cursor:"pointer",transition:`border-color ${ye.motionDurationSlow}`,[et]:{padding:ye.padding},[`${et}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ye.borderRadiusLG,"&:focus-visible":{outline:`${(0,Dt.unit)(ye.lineWidthFocus)} solid ${ye.colorPrimaryBorder}`}},[`${et}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${et}-disabled):hover, &-hover:not(${et}-disabled) `]:{borderColor:ye.colorPrimaryHover},[`p${et}-drag-icon`]:{marginBottom:ye.margin,[at]:{color:ye.colorPrimary,fontSize:ye.uploadThumbnailSize}},[`p${et}-text`]:{margin:`0 0 ${(0,Dt.unit)(ye.marginXXS)}`,color:ye.colorTextHeading,fontSize:ye.fontSizeLG},[`p${et}-hint`]:{color:ye.colorTextDescription,fontSize:ye.fontSize},[`&${et}-disabled`]:{[`p${et}-drag-icon ${at}, p${et}-text, p${et}-hint `]:{color:ye.colorTextDisabled}}}}}},Vt=ye=>{const{componentCls:et,iconCls:at,fontSize:bt,lineHeight:lt,calc:We}=ye,Ze=`${et}-list-item`,ut=`${Ze}-actions`,un=`${Ze}-action`;return{[`${et}-wrapper`]:{[`${et}-list`]:Object.assign(Object.assign({},(0,Pt.dF)()),{lineHeight:ye.lineHeight,[Ze]:{position:"relative",height:We(ye.lineHeight).mul(bt).equal(),marginTop:ye.marginXS,fontSize:bt,display:"flex",alignItems:"center",transition:`background-color ${ye.motionDurationSlow}`,borderRadius:ye.borderRadiusSM,"&:hover":{backgroundColor:ye.controlItemBgHover},[`${Ze}-name`]:Object.assign(Object.assign({},Pt.vS),{padding:`0 ${(0,Dt.unit)(ye.paddingXS)}`,lineHeight:lt,flex:"auto",transition:`all ${ye.motionDurationSlow}`}),[ut]:{whiteSpace:"nowrap",[un]:{opacity:0},[at]:{color:ye.actionsColor,transition:`all ${ye.motionDurationSlow}`},[` ${un}:focus-visible, &.picture ${un} `]:{opacity:1}},[`${et}-icon ${at}`]:{color:ye.colorTextDescription,fontSize:bt},[`${Ze}-progress`]:{position:"absolute",bottom:ye.calc(ye.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:We(bt).add(ye.paddingXS).equal(),fontSize:bt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ze}:hover ${un}`]:{opacity:1},[`${Ze}-error`]:{color:ye.colorError,[`${Ze}-name, ${et}-icon ${at}`]:{color:ye.colorError},[ut]:{[`${at}, ${at}:hover`]:{color:ye.colorError},[un]:{opacity:1}}},[`${et}-list-item-container`]:{transition:`opacity ${ye.motionDurationSlow}, height ${ye.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},yt=re(99495),te=ye=>{const{componentCls:et}=ye,at=new Dt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ye.calc(ye.marginXS).div(-2).equal()}}),bt=new Dt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ye.calc(ye.marginXS).div(-2).equal()}}),lt=`${et}-animate-inline`;return[{[`${et}-wrapper`]:{[`${lt}-appear, ${lt}-enter, ${lt}-leave`]:{animationDuration:ye.motionDurationSlow,animationTimingFunction:ye.motionEaseInOutCirc,animationFillMode:"forwards"},[`${lt}-appear, ${lt}-enter`]:{animationName:at},[`${lt}-leave`]:{animationName:bt}}},{[`${et}-wrapper`]:(0,yt.J$)(ye)},at,bt]},ee=re(68361);const oe=ye=>{const{componentCls:et,iconCls:at,uploadThumbnailSize:bt,uploadProgressOffset:lt,calc:We}=ye,Ze=`${et}-list`,ut=`${Ze}-item`;return{[`${et}-wrapper`]:{[` ${Ze}${Ze}-picture, ${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle `]:{[ut]:{position:"relative",height:We(bt).add(We(ye.lineWidth).mul(2)).add(We(ye.paddingXS).mul(2)).equal(),padding:ye.paddingXS,border:`${(0,Dt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,"&:hover":{background:"transparent"},[`${ut}-thumbnail`]:Object.assign(Object.assign({},Pt.vS),{width:bt,height:bt,lineHeight:(0,Dt.unit)(We(bt).add(ye.paddingSM).equal()),textAlign:"center",flex:"none",[at]:{fontSize:ye.fontSizeHeading2,color:ye.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ut}-progress`]:{bottom:lt,width:`calc(100% - ${(0,Dt.unit)(We(ye.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:We(bt).add(ye.paddingXS).equal()}},[`${ut}-error`]:{borderColor:ye.colorError,[`${ut}-thumbnail ${at}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ye.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ye.colorError}}},[`${ut}-uploading`]:{borderStyle:"dashed",[`${ut}-name`]:{marginBottom:lt}}},[`${Ze}${Ze}-picture-circle ${ut}`]:{[`&, &::before, ${ut}-thumbnail`]:{borderRadius:"50%"}}}}},se=ye=>{const{componentCls:et,iconCls:at,fontSizeLG:bt,colorTextLightSolid:lt,calc:We}=ye,Ze=`${et}-list`,ut=`${Ze}-item`,un=ye.uploadPicCardSize;return{[` ${et}-wrapper${et}-picture-card-wrapper, ${et}-wrapper${et}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,Pt.dF)()),{display:"block",[`${et}${et}-select`]:{width:un,height:un,textAlign:"center",verticalAlign:"top",backgroundColor:ye.colorFillAlter,border:`${(0,Dt.unit)(ye.lineWidth)} dashed ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,cursor:"pointer",transition:`border-color ${ye.motionDurationSlow}`,[`> ${et}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${et}-disabled):hover`]:{borderColor:ye.colorPrimary}},[`${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ye.marginXS,marginInlineEnd:ye.marginXS}},"@supports (gap: 1px)":{gap:ye.marginXS},[`${Ze}-item-container`]:{display:"inline-block",width:un,height:un,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Dt.unit)(We(ye.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Dt.unit)(We(ye.paddingXS).mul(2).equal())})`,backgroundColor:ye.colorBgMask,opacity:0,transition:`all ${ye.motionDurationSlow}`,content:'" "'}},[`${ut}:hover`]:{[`&::before, ${ut}-actions`]:{opacity:1}},[`${ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ye.motionDurationSlow}`,[` ${at}-eye, ${at}-download, ${at}-delete `]:{zIndex:10,width:bt,margin:`0 ${(0,Dt.unit)(ye.marginXXS)}`,fontSize:bt,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,color:lt,"&:hover":{color:lt},svg:{verticalAlign:"baseline"}}},[`${ut}-thumbnail, ${ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ut}-name`]:{display:"none",textAlign:"center"},[`${ut}-file + ${ut}-name`]:{position:"absolute",bottom:ye.margin,display:"block",width:`calc(100% - ${(0,Dt.unit)(We(ye.paddingXS).mul(2).equal())})`},[`${ut}-uploading`]:{[`&${ut}`]:{backgroundColor:ye.colorFillAlter},[`&::before, ${at}-eye, ${at}-download, ${at}-delete`]:{display:"none"}},[`${ut}-progress`]:{bottom:ye.marginXL,width:`calc(100% - ${(0,Dt.unit)(We(ye.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${et}-wrapper${et}-picture-circle-wrapper`]:{[`${et}${et}-select`]:{borderRadius:"50%"}}}};var pe=ye=>{const{componentCls:et}=ye;return{[`${et}-rtl`]:{direction:"rtl"}}};const Ce=ye=>{const{componentCls:et,colorTextDisabled:at}=ye;return{[`${et}-wrapper`]:Object.assign(Object.assign({},(0,Pt.Wf)(ye)),{[et]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${et}-select`]:{display:"inline-block"},[`${et}-hidden`]:{display:"none"},[`${et}-disabled`]:{color:at,cursor:"not-allowed"}})}},mt=ye=>({actionsColor:ye.colorTextDescription});var Oe=(0,Be.I$)("Upload",ye=>{const{fontSizeHeading3:et,fontHeight:at,lineWidth:bt,controlHeightLG:lt,calc:We}=ye,Ze=(0,Re.mergeToken)(ye,{uploadThumbnailSize:We(et).mul(2).equal(),uploadProgressOffset:We(We(at).div(2)).add(bt).equal(),uploadPicCardSize:We(lt).mul(2.55).equal()});return[Ce(Ze),jt(Ze),oe(Ze),se(Ze),Vt(Ze),te(Ze),pe(Ze),(0,me.Z)(Ze)]},mt),Ue={icon:function(et,at){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:at}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:et}}]}},name:"file",theme:"twotone"},ft=Ue,Ot=re(7657),vt=function(et,at){return z.createElement(Ot.Z,(0,Ie.Z)({},et,{ref:at,icon:ft}))},Jt=z.forwardRef(vt),Yt=Jt,Gt=re(58617),sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},nn=sn,dn=function(et,at){return z.createElement(Ot.Z,(0,Ie.Z)({},et,{ref:at,icon:nn}))},kt=z.forwardRef(dn),on=kt,Kt={icon:function(et,at){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:et}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:at}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:at}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:at}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:et}}]}},name:"picture",theme:"twotone"},Le=Kt,st=function(et,at){return z.createElement(Ot.Z,(0,Ie.Z)({},et,{ref:at,icon:Le}))},$t=z.forwardRef(st),Wt=$t,De=re(77900),Ke=re(2738),gt=re(40192),Bt=re(86641),Qt=re(22703),mn=re(7939);function Dn(ye){return Object.assign(Object.assign({},ye),{lastModified:ye.lastModified,lastModifiedDate:ye.lastModifiedDate,name:ye.name,size:ye.size,type:ye.type,uid:ye.uid,percent:0,originFileObj:ye})}function Mn(ye,et){const at=(0,it.Z)(et),bt=at.findIndex(lt=>{let{uid:We}=lt;return We===ye.uid});return bt===-1?at.push(ye):at[bt]=ye,at}function cn(ye,et){const at=ye.uid!==void 0?"uid":"name";return et.filter(bt=>bt[at]===ye[at])[0]}function En(ye,et){const at=ye.uid!==void 0?"uid":"name",bt=et.filter(lt=>lt[at]!==ye[at]);return bt.length===et.length?null:bt}const vn=function(){const et=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),bt=et[et.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(bt)||[""])[0]},Xt=ye=>ye.indexOf("image/")===0,Rt=ye=>{if(ye.type&&!ye.thumbUrl)return Xt(ye.type);const et=ye.thumbUrl||ye.url||"",at=vn(et);return/^data:image\//.test(et)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(at)?!0:!(/^data:/.test(et)||at)},At=200;function It(ye){return new Promise(et=>{if(!ye.type||!Xt(ye.type)){et("");return}const at=document.createElement("canvas");at.width=At,at.height=At,at.style.cssText=`position: fixed; left: 0; top: 0; width: ${At}px; height: ${At}px; z-index: 9999; display: none;`,document.body.appendChild(at);const bt=at.getContext("2d"),lt=new Image;if(lt.onload=()=>{const{width:We,height:Ze}=lt;let ut=At,un=At,en=0,ln=0;We>Ze?(un=Ze*(At/We),ln=-(un-ut)/2):(ut=We*(At/Ze),en=-(ut-un)/2),bt.drawImage(lt,en,ln,ut,un);const $n=at.toDataURL();document.body.removeChild(at),window.URL.revokeObjectURL(lt.src),et($n)},lt.crossOrigin="anonymous",ye.type.startsWith("image/svg+xml")){const We=new FileReader;We.onload=()=>{We.result&&typeof We.result=="string"&&(lt.src=We.result)},We.readAsDataURL(ye)}else if(ye.type.startsWith("image/gif")){const We=new FileReader;We.onload=()=>{We.result&&et(We.result)},We.readAsDataURL(ye)}else lt.src=window.URL.createObjectURL(ye)})}var an=re(26227),tn=re(41464),rn=re(15277),Sn=re(89787),Pn=re(25399),Rn=z.forwardRef((ye,et)=>{let{prefixCls:at,className:bt,style:lt,locale:We,listType:Ze,file:ut,items:un,progress:en,iconRender:ln,actionIconRender:$n,itemRender:Hn,isImgUrl:Vn,showPreviewIcon:Fn,showRemoveIcon:kn,showDownloadIcon:Nn,previewIcon:Zn,removeIcon:qn,downloadIcon:Kn,extra:Qn,onPreview:Tn,onDownload:nr,onClose:Gn}=ye;var dr,pr;const{status:sr}=ut,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const pn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(pn)}},[]);const tr=ln(ut);let mr=z.createElement("div",{className:`${at}-icon`},tr);if(Ze==="picture"||Ze==="picture-card"||Ze==="picture-circle")if(ur==="uploading"||!ut.thumbUrl&&!ut.url){const pn=be()(`${at}-list-item-thumbnail`,{[`${at}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:pn},tr)}else{const pn=Vn!=null&&Vn(ut)?z.createElement("img",{src:ut.thumbUrl||ut.url,alt:ut.name,className:`${at}-list-item-image`,crossOrigin:ut.crossOrigin}):tr,Bn=be()(`${at}-list-item-thumbnail`,{[`${at}-list-item-file`]:Vn&&!Vn(ut)});mr=z.createElement("a",{className:Bn,onClick:zn=>Tn(ut,zn),href:ut.url||ut.thumbUrl,target:"_blank",rel:"noopener noreferrer"},pn)}const br=be()(`${at}-list-item`,`${at}-list-item-${ur}`),zr=typeof ut.linkProps=="string"?JSON.parse(ut.linkProps):ut.linkProps,Er=(typeof kn=="function"?kn(ut):kn)?$n((typeof qn=="function"?qn(ut):qn)||z.createElement(an.Z,null),()=>Gn(ut),at,We.removeFile,!0):null,Br=(typeof Nn=="function"?Nn(ut):Nn)&&ur==="done"?$n((typeof Kn=="function"?Kn(ut):Kn)||z.createElement(tn.Z,null),()=>nr(ut),at,We.downloadFile):null,Ir=Ze!=="picture-card"&&Ze!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:be()(`${at}-list-item-actions`,{picture:Ze==="picture"})},Br,Er),Dr=typeof Qn=="function"?Qn(ut):Qn,or=Dr&&z.createElement("span",{className:`${at}-list-item-extra`},Dr),ir=be()(`${at}-list-item-name`),er=ut.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ir,title:ut.name},zr,{href:ut.url,onClick:pn=>Tn(ut,pn)}),ut.name,or):z.createElement("span",{key:"view",className:ir,onClick:pn=>Tn(ut,pn),title:ut.name},ut.name,or),gn=(typeof Fn=="function"?Fn(ut):Fn)&&(ut.url||ut.thumbUrl)?z.createElement("a",{href:ut.url||ut.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:pn=>Tn(ut,pn),title:We.previewFile},typeof Zn=="function"?Zn(ut):Zn||z.createElement(rn.Z,null)):null,wn=(Ze==="picture-card"||Ze==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${at}-list-item-actions`},gn,ur==="done"&&Br,Er),{getPrefixCls:Cn}=z.useContext(xe.E_),hn=Cn(),jn=z.createElement("div",{className:br},mr,er,Ir,wn,lr&&z.createElement(De.default,{motionName:`${hn}-fade`,visible:ur==="uploading",motionDeadline:2e3},pn=>{let{className:Bn}=pn;const zn="percent"in ut?z.createElement(Sn.Z,Object.assign({},en,{type:"line",percent:ut.percent,"aria-label":ut["aria-label"],"aria-labelledby":ut["aria-labelledby"]})):null;return z.createElement("div",{className:be()(`${at}-list-item-progress`,Bn)},zn)})),Un=ut.response&&typeof ut.response=="string"?ut.response:((dr=ut.error)===null||dr===void 0?void 0:dr.statusText)||((pr=ut.error)===null||pr===void 0?void 0:pr.message)||We.uploadError,yn=ur==="error"?z.createElement(Pn.Z,{title:Un,getPopupContainer:pn=>pn.parentNode},jn):jn;return z.createElement("div",{className:be()(`${at}-list-item-container`,bt),style:lt,ref:et},Hn?Hn(yn,ut,un,{download:nr.bind(null,ut),preview:Tn.bind(null,ut),remove:Gn.bind(null,ut)}):yn)});const Ln=(ye,et)=>{const{listType:at="text",previewFile:bt=It,onPreview:lt,onDownload:We,onRemove:Ze,locale:ut,iconRender:un,isImageUrl:en=Rt,prefixCls:ln,items:$n=[],showPreviewIcon:Hn=!0,showRemoveIcon:Vn=!0,showDownloadIcon:Fn=!1,removeIcon:kn,previewIcon:Nn,downloadIcon:Zn,extra:qn,progress:Kn={size:[-1,2],showInfo:!1},appendAction:Qn,appendActionVisible:Tn=!0,itemRender:nr,disabled:Gn}=ye,dr=(0,gt.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(at);z.useEffect(()=>{at.startsWith("picture")&&($n||[]).forEach(or=>{!(or.originFileObj instanceof File||or.originFileObj instanceof Blob)||or.thumbUrl!==void 0||(or.thumbUrl="",bt==null||bt(or.originFileObj).then(ir=>{or.thumbUrl=ir||"",dr()}))})},[at,$n,bt]),z.useEffect(()=>{sr(!0)},[]);const yr=(or,ir)=>{if(lt)return ir==null||ir.preventDefault(),lt(or)},lr=or=>{typeof We=="function"?We(or):or.url&&window.open(or.url)},fr=or=>{Ze==null||Ze(or)},tr=or=>{if(un)return un(or,at);const ir=or.status==="uploading";if(at.startsWith("picture")){const er=at==="picture"?z.createElement(Gt.Z,null):ut.uploading,gn=en!=null&&en(or)?z.createElement(Wt,null):z.createElement(Yt,null);return ir?er:gn}return ir?z.createElement(Gt.Z,null):z.createElement(on,null)},mr=(or,ir,er,gn,wn)=>{const Cn={type:"text",size:"small",title:gn,onClick:hn=>{var jn,Un;ir(),z.isValidElement(or)&&((Un=(jn=or.props).onClick)===null||Un===void 0||Un.call(jn,hn))},className:`${er}-list-item-action`};return wn&&(Cn.disabled=Gn),z.isValidElement(or)?z.createElement(mn.ZP,Object.assign({},Cn,{icon:(0,Qt.Tm)(or,Object.assign(Object.assign({},or.props),{onClick:()=>{}}))})):z.createElement(mn.ZP,Object.assign({},Cn),z.createElement("span",null,or))};z.useImperativeHandle(et,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(xe.E_),zr=br("upload",ln),Er=br(),Br=be()(`${zr}-list`,`${zr}-list-${at}`),Ir=z.useMemo(()=>(0,Ke.Z)((0,Bt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Dr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,it.Z)($n.map(or=>({key:or.uid,file:or}))),motionAppear:pr});return z.createElement("div",{className:Br},z.createElement(De.CSSMotionList,Object.assign({},Dr,{component:!1}),or=>{let{key:ir,file:er,className:gn,style:wn}=or;return z.createElement(Rn,{key:ir,locale:ut,prefixCls:zr,className:gn,style:wn,file:er,items:$n,progress:Kn,listType:at,isImgUrl:en,showPreviewIcon:Hn,showRemoveIcon:Vn,showDownloadIcon:Fn,removeIcon:kn,previewIcon:Nn,downloadIcon:Zn,extra:qn,iconRender:tr,actionIconRender:mr,itemRender:nr,onPreview:yr,onDownload:lr,onClose:fr})}),Qn&&z.createElement(De.default,Object.assign({},Dr,{visible:Tn,forceRender:!0}),or=>{let{className:ir,style:er}=or;return(0,Qt.Tm)(Qn,gn=>({className:be()(gn.className,ir),style:Object.assign(Object.assign(Object.assign({},er),{pointerEvents:ir?"none":void 0}),gn.style)}))}))};var _n=z.forwardRef(Ln),Nt=function(ye,et,at,bt){function lt(We){return We instanceof at?We:new at(function(Ze){Ze(We)})}return new(at||(at=Promise))(function(We,Ze){function ut(ln){try{en(bt.next(ln))}catch($n){Ze($n)}}function un(ln){try{en(bt.throw(ln))}catch($n){Ze($n)}}function en(ln){ln.done?We(ln.value):lt(ln.value).then(ut,un)}en((bt=bt.apply(ye,et||[])).next())})};const qt=`__LIST_IGNORE_${Date.now()}__`,In=(ye,et)=>{const{fileList:at,defaultFileList:bt,onRemove:lt,showUploadList:We=!0,listType:Ze="text",onPreview:ut,onDownload:un,onChange:en,onDrop:ln,previewFile:$n,disabled:Hn,locale:Vn,iconRender:Fn,isImageUrl:kn,progress:Nn,prefixCls:Zn,className:qn,type:Kn="select",children:Qn,style:Tn,itemRender:nr,maxCount:Gn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=ye,tr=z.useContext(fe.Z),mr=Hn!=null?Hn:tr,[br,zr]=(0,Ft.Z)(bt||[],{value:at,postState:xr=>xr!=null?xr:[]}),[Er,Br]=z.useState("drop"),Ir=z.useRef(null),Dr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(at||[]).forEach(($r,_r)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${_r}__`)})},[at]);const or=(xr,$r,_r)=>{let wr=(0,it.Z)($r),Nr=!1;Gn===1?wr=wr.slice(-1):Gn&&(Nr=wr.length>Gn,wr=wr.slice(0,Gn)),(0,ve.flushSync)(()=>{zr(wr)});const Tr={file:xr,fileList:wr};_r&&(Tr.event=_r),(!Nr||xr.status==="removed"||wr.some(ui=>ui.uid===xr.uid))&&(0,ve.flushSync)(()=>{en==null||en(Tr)})},ir=(xr,$r)=>Nt(void 0,void 0,void 0,function*(){const{beforeUpload:_r,transformFile:wr}=ye;let Nr=xr;if(_r){const Tr=yield _r(xr,$r);if(Tr===!1)return!1;if(delete xr[qt],Tr===qt)return Object.defineProperty(xr,qt,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return wr&&(Nr=yield wr(Nr)),Nr}),er=xr=>{const $r=xr.filter(Nr=>!Nr.file[qt]);if(!$r.length)return;const _r=$r.map(Nr=>Dn(Nr.file));let wr=(0,it.Z)(br);_r.forEach(Nr=>{wr=Mn(Nr,wr)}),_r.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Di}=Nr;let fi;try{fi=new File([Di],Di.name,{type:Di.type})}catch(ni){fi=new Blob([Di],{type:Di.type}),fi.name=Di.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}or(ui,wr)})},gn=(xr,$r,_r)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!cn($r,br))return;const wr=Dn($r);wr.status="done",wr.percent=100,wr.response=xr,wr.xhr=_r;const Nr=Mn(wr,br);or(wr,Nr)},wn=(xr,$r)=>{if(!cn($r,br))return;const _r=Dn($r);_r.status="uploading",_r.percent=xr.percent;const wr=Mn(_r,br);or(_r,wr,xr)},Cn=(xr,$r,_r)=>{if(!cn(_r,br))return;const wr=Dn(_r);wr.error=xr,wr.response=$r,wr.status="error";const Nr=Mn(wr,br);or(wr,Nr)},hn=xr=>{let $r;Promise.resolve(typeof lt=="function"?lt(xr):lt).then(_r=>{var wr;if(_r===!1)return;const Nr=En(xr,br);Nr&&($r=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Tr=>{const ui=$r.uid!==void 0?"uid":"name";Tr[ui]===$r[ui]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(wr=Ir.current)===null||wr===void 0||wr.abort($r),or($r,Nr))})},jn=xr=>{Br(xr.type),xr.type==="drop"&&(ln==null||ln(xr))};z.useImperativeHandle(et,()=>({onBatchStart:er,onSuccess:gn,onProgress:wn,onError:Cn,fileList:br,upload:Ir.current,nativeElement:Dr.current}));const{getPrefixCls:Un,direction:yn,upload:pn}=z.useContext(xe.E_),Bn=Un("upload",Zn),zn=Object.assign(Object.assign({onBatchStart:er,onError:Cn,onProgress:wn,onSuccess:gn},ye),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:Bn,disabled:mr,beforeUpload:ir,onChange:void 0,hasControlInside:sr});delete zn.className,delete zn.style,(!Qn||mr)&&delete zn.id;const cr=`${Bn}-wrapper`,[kr,Pr,Fr]=Oe(Bn,cr),[Ar]=(0,Ct.Z)("Upload",Ut.Z.Upload),{showRemoveIcon:Rr,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof We=="boolean"?{}:We,xi=typeof Rr=="undefined"?!mr:Rr,si=(xr,$r)=>We?z.createElement(_n,{prefixCls:Bn,listType:Ze,items:br,previewFile:$n,onPreview:ut,onDownload:un,onRemove:hn,showRemoveIcon:xi,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,iconRender:Fn,extra:Ni,locale:Object.assign(Object.assign({},Ar),Vn),isImageUrl:kn,progress:Nn,appendAction:xr,appendActionVisible:$r,itemRender:nr,disabled:mr}):xr,Fi=be()(cr,qn,fr,Pr,Fr,pn==null?void 0:pn.className,{[`${Bn}-rtl`]:yn==="rtl",[`${Bn}-picture-card-wrapper`]:Ze==="picture-card",[`${Bn}-picture-circle-wrapper`]:Ze==="picture-circle"}),jr=Object.assign(Object.assign({},pn==null?void 0:pn.style),Tn);if(Kn==="drag"){const xr=be()(Pr,Bn,`${Bn}-drag`,{[`${Bn}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${Bn}-drag-hover`]:Er==="dragover",[`${Bn}-disabled`]:mr,[`${Bn}-rtl`]:yn==="rtl"});return kr(z.createElement("span",{className:Fi,ref:Dr},z.createElement("div",{className:xr,style:jr,onDrop:jn,onDragOver:jn,onDragLeave:jn},z.createElement(nt,Object.assign({},zn,{ref:Ir,className:`${Bn}-btn`}),z.createElement("div",{className:`${Bn}-drag-container`},Qn))),si()))}const Ui=be()(Bn,`${Bn}-select`,{[`${Bn}-disabled`]:mr,[`${Bn}-hidden`]:!Qn}),qr=z.createElement("div",{className:Ui},z.createElement(nt,Object.assign({},zn,{ref:Ir})));return kr(Ze==="picture-card"||Ze==="picture-circle"?z.createElement("span",{className:Fi,ref:Dr},si(qr,!!Qn)):z.createElement("span",{className:Fi,ref:Dr},qr,si()))};var Ae=z.forwardRef(In),rt=function(ye,et){var at={};for(var bt in ye)Object.prototype.hasOwnProperty.call(ye,bt)&&et.indexOf(bt)<0&&(at[bt]=ye[bt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,bt=Object.getOwnPropertySymbols(ye);lt{var{style:at,height:bt,hasControlInside:lt=!1}=ye,We=rt(ye,["style","height","hasControlInside"]);return z.createElement(Ae,Object.assign({ref:et,hasControlInside:lt},We,{type:"drag",style:Object.assign(Object.assign({},at),{height:bt})}))});const Pe=Ae;Pe.Dragger=$e,Pe.LIST_IGNORE=qt;var je=Pe},99498:function(fn,_t,re){(function(z){z(re(89780))})(function(z){z.defineOption("placeholder","",function(qe,Se,he){var Xe=he&&he!=z.Init;if(Se&&!Xe)qe.on("blur",be),qe.on("change",Ie),qe.on("swapDoc",Ie),z.on(qe.getInputField(),"compositionupdate",qe.state.placeholderCompose=function(){Qe(qe)}),Ie(qe);else if(!Se&&Xe){qe.off("blur",be),qe.off("change",Ie),qe.off("swapDoc",Ie),z.off(qe.getInputField(),"compositionupdate",qe.state.placeholderCompose),it(qe);var Ee=qe.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}Se&&!qe.hasFocus()&&be(qe)});function it(qe){qe.state.placeholder&&(qe.state.placeholder.parentNode.removeChild(qe.state.placeholder),qe.state.placeholder=null)}function ve(qe){it(qe);var Se=qe.state.placeholder=document.createElement("pre");Se.style.cssText="height: 0; overflow: visible",Se.style.direction=qe.getOption("direction"),Se.className="CodeMirror-placeholder CodeMirror-line-like";var he=qe.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Se.appendChild(he),qe.display.lineSpace.insertBefore(Se,qe.display.lineSpace.firstChild)}function Qe(qe){setTimeout(function(){var Se=!1,he=qe.getInputField();he.nodeName=="TEXTAREA"?Se=!he.value:qe.lineCount()==1&&(Se=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Se?ve(qe):it(qe)},20)}function be(qe){Te(qe)&&ve(qe)}function Ie(qe){var Se=qe.getWrapperElement(),he=Te(qe);Se.className=Se.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ve(qe):it(qe)}function Te(qe){return qe.lineCount()===1&&qe.getLine(0)===""}})},25717:function(fn,_t,re){(function(z){z(re(89780))})(function(z){var it={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Fe,Ge,ze){ze&&ze!=z.Init&&(Fe.removeKeyMap(be),Fe.state.closeBrackets=null),Ge&&(Ie(Qe(Ge,"pairs")),Fe.state.closeBrackets=Ge,Fe.addKeyMap(be))});function Qe(Fe,Ge){return Ge=="pairs"&&typeof Fe=="string"?Fe:typeof Fe=="object"&&Fe[Ge]!=null?Fe[Ge]:it[Ge]}var be={Backspace:Se,Enter:he};function Ie(Fe){for(var Ge=0;Ge=0;Tt--){var St=wt[Tt].head;Fe.replaceRange("",ve(St.line,St.ch-1),ve(St.line,St.ch+1),"+delete")}}function he(Fe){var Ge=qe(Fe),ze=Ge&&Qe(Ge,"explode");if(!ze||Fe.getOption("disableInput"))return z.Pass;for(var wt=Fe.listSelections(),Tt=0;Tt0;return{anchor:new ve(Fe.anchor.line,Fe.anchor.ch+(Ge?-1:1)),head:new ve(Fe.head.line,Fe.head.ch+(Ge?1:-1))}}function Ee(Fe,Ge){var ze=qe(Fe);if(!ze||Fe.getOption("disableInput"))return z.Pass;var wt=Qe(ze,"pairs"),Tt=wt.indexOf(Ge);if(Tt==-1)return z.Pass;for(var zt=Qe(ze,"closeBefore"),St=Qe(ze,"triples"),pt=wt.charAt(Tt+1)==Ge,dt=Fe.listSelections(),He=Tt%2==0,Lt,tt=0;tt=0&&Fe.getRange(xt,ve(xt.line,xt.ch+3))==Ge+Ge+Ge?Me="skipThree":Me="skip";else if(pt&&xt.ch>1&&St.indexOf(Ge)>=0&&Fe.getRange(ve(xt.line,xt.ch-2),xt)==Ge+Ge){if(xt.ch>2&&/\bstring/.test(Fe.getTokenTypeAt(ve(xt.line,xt.ch-2))))return z.Pass;Me="addFour"}else if(pt){var Ve=xt.ch==0?" ":Fe.getRange(ve(xt.line,xt.ch-1),xt);if(!z.isWordChar(_e)&&Ve!=Ge&&!z.isWordChar(Ve))Me="both";else return z.Pass}else if(He&&(_e.length===0||/\s/.test(_e)||zt.indexOf(_e)>-1))Me="both";else return z.Pass;if(!Lt)Lt=Me;else if(Lt!=Me)return z.Pass}var ue=Tt%2?wt.charAt(Tt-1):Ge,ct=Tt%2?Ge:wt.charAt(Tt+1);Fe.operation(function(){if(Lt=="skip")Fe.execCommand("goCharRight");else if(Lt=="skipThree")for(var ke=0;ke<3;ke++)Fe.execCommand("goCharRight");else if(Lt=="surround"){for(var nt=Fe.getSelections(),ke=0;ke'"]=function(Mt){return Qe(Mt)}),Se.addKeyMap(Ee)}});var it=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ve=["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(Se){if(Se.getOption("disableInput"))return z.Pass;for(var he=Se.listSelections(),Xe=[],Ee=Se.getOption("autoCloseTags"),Mt=0;MtJe.ch&&(Tt=Tt.slice(0,Tt.length-Fe.end+Je.ch));var dt=Tt.toLowerCase();if(!Tt||Fe.type=="string"&&(Fe.end!=Je.ch||!/[\"\']/.test(Fe.string.charAt(Fe.string.length-1))||Fe.string.length==1)||Fe.type=="tag"&&wt.close||Fe.string.indexOf("/")==Je.ch-Fe.start-1||St&&Te(St,dt)>-1||qe(Se,Ge.mode.xmlCurrentContext&&Ge.mode.xmlCurrentContext(ze)||[],Tt,Je,!0))return z.Pass;var He=typeof Ee=="object"&&Ee.emptyTags;if(He&&Te(He,Tt)>-1){Xe[Mt]={text:"/>",newPos:z.Pos(Je.line,Je.ch+2)};continue}var Lt=pt&&Te(pt,dt)>-1;Xe[Mt]={indent:Lt,text:">"+(Lt?` `:"")+"",newPos:Lt?z.Pos(Je.line+1,0):z.Pos(Je.line,Je.ch+1)}}for(var tt=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,Mt=he.length-1;Mt>=0;Mt--){var ot=Xe[Mt];Se.replaceRange(ot.text,he[Mt].head,he[Mt].anchor,"+insert");var xt=Se.listSelections().slice(0);xt[Mt]={head:ot.newPos,anchor:ot.newPos},Se.setSelections(xt),!tt&&ot.indent&&(Se.indentLine(ot.newPos.line,null,!0),Se.indentLine(ot.newPos.line+1,null,!0))}}function be(Se,he){for(var Xe=Se.listSelections(),Ee=[],Mt=he?"/":""&&(St+=">"),Ee[Ge]=St}if(Se.replaceSelections(Ee),Xe=Se.listSelections(),!Fe)for(var Ge=0;Ge=0&&he[ze]==Xe;ze--)++Ge;Ee=Fe.to;for(var ze=1;ze=ze.max))return ze.ch=0,ze.text=ze.cm.getLine(++ze.line),!0}function he(ze){if(!(ze.line<=ze.min))return ze.text=ze.cm.getLine(--ze.line),ze.ch=ze.text.length,!0}function Xe(ze){for(;;){var wt=ze.text.indexOf(">",ze.ch);if(wt==-1){if(Se(ze))continue;return}if(!qe(ze,wt+1)){ze.ch=wt+1;continue}var Tt=ze.text.lastIndexOf("/",wt),zt=Tt>-1&&!/\S/.test(ze.text.slice(Tt+1,wt));return ze.ch=wt+1,zt?"selfClose":"regular"}}function Ee(ze){for(;;){var wt=ze.ch?ze.text.lastIndexOf("<",ze.ch-1):-1;if(wt==-1){if(he(ze))continue;return}if(!qe(ze,wt+1)){ze.ch=wt;continue}Ie.lastIndex=wt,ze.ch=wt;var Tt=Ie.exec(ze.text);if(Tt&&Tt.index==wt)return Tt}}function Mt(ze){for(;;){Ie.lastIndex=ze.ch;var wt=Ie.exec(ze.text);if(!wt){if(Se(ze))continue;return}if(!qe(ze,wt.index+1)){ze.ch=wt.index+1;continue}return ze.ch=wt.index+wt[0].length,wt}}function Je(ze){for(;;){var wt=ze.ch?ze.text.lastIndexOf(">",ze.ch-1):-1;if(wt==-1){if(he(ze))continue;return}if(!qe(ze,wt+1)){ze.ch=wt;continue}var Tt=ze.text.lastIndexOf("/",wt),zt=Tt>-1&&!/\S/.test(ze.text.slice(Tt+1,wt));return ze.ch=wt+1,zt?"selfClose":"regular"}}function Fe(ze,wt){for(var Tt=[];;){var zt=Mt(ze),St,pt=ze.line,dt=ze.ch-(zt?zt[0].length:0);if(!zt||!(St=Xe(ze)))return;if(St!="selfClose")if(zt[1]){for(var He=Tt.length-1;He>=0;--He)if(Tt[He]==zt[2]){Tt.length=He;break}if(He<0&&(!wt||wt==zt[2]))return{tag:zt[2],from:it(pt,dt),to:it(ze.line,ze.ch)}}else Tt.push(zt[2])}}function Ge(ze,wt){for(var Tt=[];;){var zt=Je(ze);if(!zt)return;if(zt=="selfClose"){Ee(ze);continue}var St=ze.line,pt=ze.ch,dt=Ee(ze);if(!dt)return;if(dt[1])Tt.push(dt[2]);else{for(var He=Tt.length-1;He>=0;--He)if(Tt[He]==dt[2]){Tt.length=He;break}if(He<0&&(!wt||wt==dt[2]))return{tag:dt[2],from:it(ze.line,ze.ch),to:it(St,pt)}}}}z.registerHelper("fold","xml",function(ze,wt){for(var Tt=new Te(ze,wt.line,0);;){var zt=Mt(Tt);if(!zt||Tt.line!=wt.line)return;var St=Xe(Tt);if(!St)return;if(!zt[1]&&St!="selfClose"){var pt=it(Tt.line,Tt.ch),dt=Fe(Tt,zt[2]);return dt&&ve(dt.from,pt)>0?{from:pt,to:dt.from}:null}}}),z.findMatchingTag=function(ze,wt,Tt){var zt=new Te(ze,wt.line,wt.ch,Tt);if(!(zt.text.indexOf(">")==-1&&zt.text.indexOf("<")==-1)){var St=Xe(zt),pt=St&&it(zt.line,zt.ch),dt=St&&Ee(zt);if(!(!St||!dt||ve(zt,wt)>0)){var He={from:it(zt.line,zt.ch),to:pt,tag:dt[2]};return St=="selfClose"?{open:He,close:null,at:"open"}:dt[1]?{open:Ge(zt,dt[2]),close:He,at:"close"}:(zt=new Te(ze,pt.line,pt.ch,Tt),{open:He,close:Fe(zt,dt[2]),at:"open"})}}},z.findEnclosingTag=function(ze,wt,Tt,zt){for(var St=new Te(ze,wt.line,wt.ch,Tt);;){var pt=Ge(St,zt);if(!pt)break;var dt=new Te(ze,wt.line,wt.ch,Tt),He=Fe(dt,pt.tag);if(He)return{open:pt,close:He}}},z.scanForClosingTag=function(ze,wt,Tt,zt){var St=new Te(ze,wt.line,wt.ch,zt?{from:0,to:zt}:null);return Fe(St,Tt)}})},89780:function(fn){(function(_t,re){fn.exports=re()})(this,function(){"use strict";var _t=navigator.userAgent,re=navigator.platform,z=/gecko\/\d/i.test(_t),it=/MSIE \d/.test(_t),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t),Qe=/Edge\/(\d+)/.exec(_t),be=it||ve||Qe,Ie=be&&(it?document.documentMode||6:+(Qe||ve)[1]),Te=!Qe&&/WebKit\//.test(_t),qe=Te&&/Qt\/\d+\.\d+/.test(_t),Se=!Qe&&/Chrome\//.test(_t),he=/Opera\//.test(_t),Xe=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_t),Mt=/PhantomJS/.test(_t),Je=!Qe&&/AppleWebKit/.test(_t)&&/Mobile\/\w+/.test(_t),Fe=/Android/.test(_t),Ge=Je||Fe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_t),ze=Je||/Mac/.test(re),wt=/\bCrOS\b/.test(_t),Tt=/win/i.test(re),zt=he&&_t.match(/Version\/(\d*\.\d*)/);zt&&(zt=Number(zt[1])),zt&&zt>=15&&(he=!1,Te=!0);var St=ze&&(qe||he&&(zt==null||zt<12.11)),pt=z||be&&Ie>=9;function dt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var He=function(a,y){var x=a.className,b=dt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Lt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function tt(a,y){return Lt(a).appendChild(y)}function ot(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie=y)return le+(y-ie);le+=ce-ie,le+=x-le%x,ie=ce+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=nt(this.onTimeout,this)};fe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},fe.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(le,y-E);if(E+=ie-b,E+=x-E%x,b=ie+1,E>=y)return b}}var Et=[""];function jt(a){for(;Et.length<=a;)Et.push(Ne(Et)+" ");return Et[a]}function Ne(a){return a[a.length-1]}function Vt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var pe=/[\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 Ce(a){return a.charCodeAt(0)>=768&&pe.test(a)}function mt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,ie=b<0?Math.ceil(E):Math.floor(E);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Ue(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ie=0;iey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",ie),E=!0)}E||b(y,x,"ltr")}var ft=null;function Ot(a,y,x){var b;ft=null;for(var E=0;Ey)return E;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=E:ft=E),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=E:ft=E)}return b!=null?b:ft}var vt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ge){return ge<=247?a.charAt(ge):1424<=ge&&ge<=1524?"R":1536<=ge&&ge<=1785?y.charAt(ge-1536):1774<=ge&&ge<=2220?"r":8192<=ge&&ge<=8203?"w":ge==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function de(ge,Ye,ht){this.level=ge,this.from=Ye,this.to=ht}return function(ge,Ye){var ht=Ye=="ltr"?"L":"R";if(ge.length==0||Ye=="ltr"&&!b.test(ge))return!1;for(var Zt=ge.length,Ht=[],bn=0;bn-1&&(b[y]=E.slice(0,ie).concat(E.slice(ie+1)))}}}function dn(a,y){var x=sn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function Le(a){a.prototype.on=function(y,x){Gt(this,y,x)},a.prototype.off=function(y,x){nn(this,y,x)}}function st(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function $t(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Wt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function De(a){st(a),$t(a)}function Ke(a){return a.target||a.srcElement}function gt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),ze&&a.ctrlKey&&y==1&&(y=3),y}var Bt=function(){if(be&&Ie<9)return!1;var a=ot("div");return"draggable"in a||"dragDrop"in a}(),Qt;function mn(a){if(Qt==null){var y=ot("span","\u200B");tt(a,ot("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Qt=y.offsetWidth<=1&&y.offsetHeight>2&&!(be&&Ie<8))}var x=Qt?ot("span","\u200B"):ot("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Dn;function Mn(a){if(Dn!=null)return Dn;var y=tt(a,document.createTextNode("A\u062EA")),x=Me(y,0,1).getBoundingClientRect(),b=Me(y,1,2).getBoundingClientRect();return Lt(a),!x||x.left==x.right?!1:Dn=b.right-x.right<3}var cn=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(` `,y);E==-1&&(E=a.length);var ie=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},En=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},vn=function(){var a=ot("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Xt=null;function Rt(a){if(Xt!=null)return Xt;var y=tt(a,ot("span","x")),x=y.getBoundingClientRect(),b=Me(y,0,1).getBoundingClientRect();return Xt=Math.abs(x.left-b.left)>1}var At={},It={};function an(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),At[a]=y}function tn(a,y){It[a]=y}function rn(a){if(typeof a=="string"&&It.hasOwnProperty(a))a=It[a];else if(a&&typeof a.name=="string"&&It.hasOwnProperty(a.name)){var y=It[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return rn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return rn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Sn(a,y){y=rn(y);var x=At[y.name];if(!x)return Sn(a,"text/plain");var b=x(a,y);if(Pn.hasOwnProperty(y.name)){var E=Pn[y.name];for(var ie in E)E.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=E[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var Pn={};function On(a,y){var x=Pn.hasOwnProperty(a)?Pn[a]:Pn[a]={};Ft(y,x)}function Rn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Ln(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Jn(a,y,x){return a.startState?a.startState(y,x):!0}var _n=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};_n.prototype.eol=function(){return this.pos>=this.string.length},_n.prototype.sol=function(){return this.pos==this.lineStart},_n.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_n.prototype.next=function(){if(this.posy},_n.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},_n.prototype.skipToEnd=function(){this.pos=this.string.length},_n.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},_n.prototype.backUp=function(a){this.pos-=a},_n.prototype.column=function(){return this.lastColumnPos0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},_n.prototype.current=function(){return this.string.slice(this.start,this.pos)},_n.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},_n.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},_n.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Nt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],ie=E.chunkSize();if(y=a.first&&yx?Pe(x,Nt(a,x).text.length):Ze(y,Nt(a,y.line).text.length)}function Ze(a,y){var x=a.ch;return x==null||x>y?Pe(a.line,y):x<0?Pe(a.line,0):a}function ut(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},en.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},en.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},en.fromSaved=function(a,y,x){return y instanceof un?new en(a,Rn(a.mode,y.state),x,y.lookAhead):new en(a,Rn(a.mode,y),x)},en.prototype.save=function(a){var y=a!==!1?Rn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new un(y,this.maxLookAhead):y};function ln(a,y,x,b){var E=[a.state.modeGen],ie={};Kn(a,y.text,a.doc.mode,x,function(ge,Ye){return E.push(ge,Ye)},ie,b);for(var le=x.state,ce=function(ge){x.baseTokens=E;var Ye=a.state.overlays[ge],ht=1,Zt=0;x.state=!0,Kn(a,y.text,Ye.mode,x,function(Ht,bn){for(var An=ht;ZtHt&&E.splice(ht,1,Ht,E[ht+1],Wn),ht+=2,Zt=Math.min(Ht,Wn)}if(bn)if(Ye.opaque)E.splice(An,ht-An,Ht,"overlay "+bn),ht=An+2;else for(;Ana.options.maxHighlightLength&&Rn(a.doc.mode,b.state),ie=ln(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Hn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new en(b,!0,y);var ie=Qn(a,y,x),le=ie>b.first&&Nt(b,ie-1).stateAfter,ce=le?en.fromSaved(b,le,ie):new en(b,Jn(b.mode),ie);return b.iter(ie,y,function(de){Vn(a,de.text,ce);var ge=ce.line;de.stateAfter=ge==y-1||ge%5==0||ge>=E.viewFrom&&gey.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Nn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Zn(a,y,x,b){var E=a.doc,ie=E.mode,le;y=We(E,y);var ce=Nt(E,y.line),de=Hn(a,y.line,x),ge=new _n(ce.text,a.options.tabSize,de),Ye;for(b&&(Ye=[]);(b||ge.posa.options.maxHighlightLength?(ce=!1,le&&Vn(a,y,b,Ye.pos),Ye.pos=y.length,ht=null):ht=qn(kn(x,Ye,b.state,Zt),ie),Zt){var Ht=Zt[0].name;Ht&&(ht="m-"+(ht?Ht+" "+ht:Ht))}if(!ce||ge!=ht){for(;dele;--ce){if(ce<=ie.first)return ie.first;var de=Nt(ie,ce-1),ge=de.stateAfter;if(ge&&(!x||ce+(ge instanceof un?ge.lookAhead:0)<=ie.modeFrontier))return ce;var Ye=xe(de.text,null,a.options.tabSize);(E==null||b>Ye)&&(E=ce-1,b=Ye)}return E}function Tn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=Nt(a,b).stateAfter;if(E&&(!(E instanceof un)||b+E.lookAhead=y:ie.to>y);(b||(b=[])).push(new sr(le,ie.from,de?null:ie.to))}}return b}function tr(a,y,x){var b;if(a)for(var E=0;E=y:ie.to>y);if(ce||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var de=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from0&&ce)for(var ar=0;ar0)){var Ye=[de,1],ht=je(ge.from,ce.from),Zt=je(ge.to,ce.to);(ht<0||!le.inclusiveLeft&&!ht)&&Ye.push({from:ge.from,to:ce.from}),(Zt>0||!le.inclusiveRight&&!Zt)&&Ye.push({from:ce.to,to:ge.to}),E.splice.apply(E,Ye),de+=Ye.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||or(b,ie.marker)<0)&&(b=ie.marker)}return b}function Cn(a,y,x,b,E){var ie=Nt(a,y),le=Gn&&ie.markedSpans;if(le)for(var ce=0;ce=0&&ht<=0||Ye<=0&&ht>=0)&&(Ye<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?je(ge.to,x)>=0:je(ge.to,x)>0)||Ye>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?je(ge.from,b)<=0:je(ge.from,b)<0)))return!0}}}function hn(a){for(var y;y=er(a);)a=y.find(-1,!0).line;return a}function jn(a){for(var y;y=gn(a);)a=y.find(1,!0).line;return a}function Un(a){for(var y,x;y=gn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function yn(a,y){var x=Nt(a,y),b=hn(x);return x==b?y:Ae(b)}function pn(a,y){if(y>a.lastLine())return y;var x=Nt(a,y),b;if(!Bn(a,x))return y;for(;b=gn(x);)x=b.find(1,!0).line;return Ae(x)+1}function Bn(a,y){var x=Gn&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Fr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Fr.prototype.lineNo=function(){return Ae(this)},Le(Fr);function Ar(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Br(a,x);var E=b?b(a):1;E!=a.height&&xn(a,E)}function Rr(a){a.parent=null,Er(a)}var Vr={},Hr={};function Kr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Hr:Vr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=xt("span",null,null,Te?"padding-right: .1px":null),b={pre:xt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var ie=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Mn(a.display.measure)&&(le=Jt(ie,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&Ae(ie);jr(ie,b,$n(a,ie,ce)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=ct(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=ct(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(mn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Te){var de=b.content.lastChild;(/\bcm-tab\b/.test(de.className)||de.querySelector&&de.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return dn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=ct(b.pre.className,b.textClass||"")),b}function Ei(a){var y=ot("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ni(a,y,x,b,E,ie,le){if(y){var ce=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,ge=!1,Ye;if(!de.test(y))a.col+=y.length,Ye=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Ye),be&&Ie<9&&(ge=!0),a.pos+=y.length;else{Ye=document.createDocumentFragment();for(var ht=0;;){de.lastIndex=ht;var Zt=de.exec(y),Ht=Zt?Zt.index-ht:y.length-ht;if(Ht){var bn=document.createTextNode(ce.slice(ht,ht+Ht));be&&Ie<9?Ye.appendChild(ot("span",[bn])):Ye.appendChild(bn),a.map.push(a.pos,a.pos+Ht,bn),a.col+=Ht,a.pos+=Ht}if(!Zt)break;ht+=Ht+1;var An=void 0;if(Zt[0]==" "){var Wn=a.cm.options.tabSize,Xn=Wn-a.col%Wn;An=Ye.appendChild(ot("span",jt(Xn),"cm-tab")),An.setAttribute("role","presentation"),An.setAttribute("cm-text"," "),a.col+=Xn}else Zt[0]=="\r"||Zt[0]==` `?(An=Ye.appendChild(ot("span",Zt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),An.setAttribute("cm-text",Zt[0]),a.col+=1):(An=a.cm.options.specialCharPlaceholder(Zt[0]),An.setAttribute("cm-text",Zt[0]),be&&Ie<9?Ye.appendChild(ot("span",[An])):Ye.appendChild(An),a.col+=1);a.map.push(a.pos,a.pos+1,An),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||E||ge||ie||le){var rr=x||"";b&&(rr+=b),E&&(rr+=E);var Yn=ot("span",[Ye],rr,ie);if(le)for(var ar in le)le.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&Yn.setAttribute(ar,le[ar]);return a.content.appendChild(Yn)}a.content.appendChild(Ye)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Ege&&ht.from<=ge));Zt++);if(ht.to>=Ye)return a(x,b,E,ie,le,ce,de);a(x,b.slice(0,ht.to-ge),E,ie,null,ce,de),ie=null,b=b.slice(ht.to-ge),ge=ht.to}}}function Fi(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function jr(a,y,x){var b=a.markedSpans,E=a.text,ie=0;if(!b){for(var le=1;lede||Lr.collapsed&&hr.to==de&&hr.from==de)){if(hr.to!=null&&hr.to!=de&&Ht>hr.to&&(Ht=hr.to,An=""),Lr.className&&(bn+=" "+Lr.className),Lr.css&&(Zt=(Zt?Zt+";":"")+Lr.css),Lr.startStyle&&hr.from==de&&(Wn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==Ht&&(ar||(ar=[])).push(Lr.endStyle,hr.to),Lr.title&&((rr||(rr={})).title=Lr.title),Lr.attributes)for(var Yr in Lr.attributes)(rr||(rr={}))[Yr]=Lr.attributes[Yr];Lr.collapsed&&(!Xn||or(Xn.marker,Lr)<0)&&(Xn=hr)}else hr.from>de&&Ht>hr.from&&(Ht=hr.from)}if(ar)for(var mi=0;mi=ce)break;for(var ji=Math.min(ce,Ht);;){if(Ye){var Li=de+Ye.length;if(!Xn){var ai=Li>ji?Ye.slice(0,ji-de):Ye;y.addToken(y,ai,ht?ht+bn:bn,Wn,de+ai.length==Ht?An:"",Zt,rr)}if(Li>=ji){Ye=Ye.slice(ji-de),de=ji;break}de=Li,Wn=""}Ye=E.slice(ie,ie=x[ge++]),ht=Kr(x[ge++],y.cm.options)}}}function Ui(a,y,x){this.line=y,this.rest=Un(y),this.size=this.rest?Ae(Ne(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Bn(a,y)}function qr(a,y,x){for(var b=[],E,ie=y;ie2&&ie.push((de.bottom+ge.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function ko(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function _a(a,y){y=hn(y);var x=Ae(y),b=a.display.externalMeasured=new Ui(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,tt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Vi(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(ie=de-ce,E=ie-1,y>=de&&(le="right")),E!=null){if(b=a[ge+2],ce==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;ge&&a[ge-2]==a[ge-3]&&a[ge-1].insertLeft;)b=a[(ge-=3)+2],le="left";if(x=="right"&&E==de-ce)for(;ge=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),ie=E.node,le=E.start,ce=E.end,de=E.collapse,ge;if(ie.nodeType==3){for(var Ye=0;Ye<4;Ye++){for(;le&&Ce(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ce0&&(de=b="right");var ht;a.options.lineWrapping&&(ht=ie.getClientRects()).length>1?ge=ht[b=="right"?ht.length-1:0]:ge=ie.getBoundingClientRect()}if(be&&Ie<9&&!le&&(!ge||!ge.left&&!ge.right)){var Zt=ie.parentNode.getClientRects()[0];Zt?ge={left:Zt.left,right:Zt.left+Qi(a.display),top:Zt.top,bottom:Zt.bottom}:ge=ba}for(var Ht=ge.top-y.rect.top,bn=ge.bottom-y.rect.top,An=(Ht+bn)/2,Wn=y.view.measure.heights,Xn=0;Xn=b.text.length?(de=b.text.length,ge="before"):de<=0&&(de=0,ge="after"),!ce)return le(ge=="before"?de-1:de,ge=="before");function Ye(bn,An,Wn){var Xn=ce[An],rr=Xn.level==1;return le(Wn?bn-1:bn,rr!=Wn)}var ht=Ot(ce,de,ge),Zt=ft,Ht=Ye(de,ht,ge=="before");return Zt!=null&&(Ht.other=Ye(de,Zt,ge!="before")),Ht}function Wr(a,y){var x=0;y=We(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=Nt(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Mr(a,y,x,b,E){var ie=Pe(a,y,x);return ie.xRel=E,b&&(ie.outside=b),ie}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Mr(b.first,0,null,-1,-1);var E=rt(b,x),ie=b.first+b.size-1;if(E>ie)return Mr(b.first+b.size-1,Nt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=Nt(b,E);;){var ce=Yi(a,le,E,y,x),de=wn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!de)return ce;var ge=de.find(1);if(ge.line==E)return ge;le=Nt(b,E=ge.line)}}function Ci(a,y,x,b){b-=Yo(y);var E=y.text.length,ie=Oe(function(le){return Vi(a,x,le-1).bottom<=b},E,0);return E=Oe(function(le){return Vi(a,x,le).top>b},ie,E),{begin:ie,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Vi(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Yi(a,y,x,b,E){E-=cr(y);var ie=uo(a,y),le=Yo(y),ce=0,de=y.text.length,ge=!0,Ye=Jt(y,a.doc.direction);if(Ye){var ht=(a.options.lineWrapping?oo:Gi)(a,y,x,ie,Ye,b,E);ge=ht.level!=1,ce=ge?ht.from:ht.to-1,de=ge?ht.to:ht.from-1}var Zt=null,Ht=null,bn=Oe(function(vr){var hr=Vi(a,ie,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Zt=vr,Ht=hr),!0):!1},ce,de),An,Wn,Xn=!1;if(Ht){var rr=b-Ht.left=ar.bottom?1:0}return bn=mt(y.text,bn,1),Mr(x,bn,Wn,Xn,b-An)}function Gi(a,y,x,b,E,ie,le){var ce=Oe(function(ht){var Zt=E[ht],Ht=Zt.level!=1;return ci(Mi(a,Pe(x,Ht?Zt.to:Zt.from,Ht?"before":"after"),"line",y,b),ie,le,!0)},0,E.length-1),de=E[ce];if(ce>0){var ge=de.level!=1,Ye=Mi(a,Pe(x,ge?de.from:de.to,ge?"after":"before"),"line",y,b);ci(Ye,ie,le,!0)&&Ye.top>le&&(de=E[ce-1])}return de}function oo(a,y,x,b,E,ie,le){var ce=Ci(a,y,b,le),de=ce.begin,ge=ce.end;/\s/.test(y.text.charAt(ge-1))&&ge--;for(var Ye=null,ht=null,Zt=0;Zt=ge||Ht.to<=de)){var bn=Ht.level!=1,An=Vi(a,b,bn?Math.min(ge,Ht.to)-1:Math.max(de,Ht.from)).right,Wn=AnWn)&&(Ye=Ht,ht=Wn)}}return Ye||(Ye=E[E.length-1]),Ye.fromge&&(Ye={from:Ye.from,to:ge,level:Ye.level}),Ye}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=ot("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(ot("br"));$i.appendChild(document.createTextNode("x"))}tt(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Lt(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ot("span","xxxxxxxxxx"),x=ot("pre",[y],"CodeMirror-line-like");tt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=ie.offsetLeft+ie.clientLeft+E,b[ce]=ie.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(Bn(a.doc,E))return 0;var ie=0;if(E.widgets)for(var le=0;le0&&(ge=Nt(a.doc,de.line).text).length==de.ch){var Ye=xe(ge,ge.length,a.options.tabSize)-ge.length;de=Pe(de.line,Math.max(0,Math.round((ie-eo(a.display).left)/Qi(a.display))-Ye))}return de}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Gn&&yn(a.doc,y)E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var ie=Ea(a,x,x+b,1);ie?(E.view=E.view.slice(ie.index),E.viewFrom=ie.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ce=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ce&&de?(E.view=E.view.slice(0,ce.index).concat(qr(a,ce.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var ge=E.externalMeasured;ge&&(x=E.lineN&&y=b.viewTo)){var ie=b.view[So(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);Ct(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),ie,le=a.display.view;if(!Gn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ce=a.display.viewFrom,de=0;de0){if(E==le.length-1)return null;ie=ce+le[E].size-y,E++}else ie=ce-y;y+=ie,x+=ie}for(;yn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||ce.to().line0?y.blinker=setInterval(function(){a.hasFocus()||Bo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Pl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(dn(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Te&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(dn(a,"blur",a,y),a.state.focused=!1,He(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ye<-.005)&&(xn(E.line,le),Ol(E.line),E.rest))for(var ht=0;hta.display.sizerWidth){var Zt=Math.ceil(ce/Qi(a.display));Zt>a.display.maxLineLength&&(a.display.maxLineLength=Zt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ol(a){if(a.widgets)for(var y=0;y=le&&(ie=rt(y,cr(Nt(y,de))-a.wrapper.clientHeight),le=de)}return{from:ie,to:Math.max(le,ie+1)}}function js(a,y){if(!kt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!Mt){var ie=ot("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ri(a.display))+`px; height: `+(y.bottom-y.top+Ri(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(E),a.display.lineSpace.removeChild(ie)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Pe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Pe(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,ce=Mi(a,y),de=!x||x==y?ce:Mi(a,x);E={left:Math.min(ce.left,de.left),top:Math.min(ce.top,de.top)-b,right:Math.max(ce.left,de.left),bottom:Math.max(ce.bottom,de.bottom)+b};var ge=Qa(a,E),Ye=a.doc.scrollTop,ht=a.doc.scrollLeft;if(ge.scrollTop!=null&&(qo(a,ge.scrollTop),Math.abs(a.doc.scrollTop-Ye)>1&&(le=!0)),ge.scrollLeft!=null&&(Eo(a,ge.scrollLeft),Math.abs(a.doc.scrollLeft-ht)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=io(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var ce=a.doc.height+_i(x),de=y.topce-b;if(y.topE+ie){var Ye=Math.min(y.top,(ge?ce:y.bottom)-ie);Ye!=E&&(le.scrollTop=Ye)}var ht=a.options.fixedGutter?0:x.gutters.offsetWidth,Zt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ht,Ht=to(a)-x.gutters.offsetWidth,bn=y.right-y.left>Ht;return bn&&(y.right=y.left+Ht),y.left<10?le.scrollLeft=0:y.leftHt+Zt-3&&(le.scrollLeft=y.right+(bn?0:10)-Ht),le}function Ja(a,y){y!=null&&(Da(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Da(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&Da(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Da(a),a.curOp.scrollToPos=y}function Da(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Dl(a,x,b,y.margin)}}function Dl(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Jo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ml(a,y,!0),z&&el(a),na(a,100))}function Ml(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+_i(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Ri(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=ot("div",[ot("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ot("div",[ot("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Gt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Gt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&Ie<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=ze&&!Ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new fe,this.disableVert=new fe},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;kl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(a),kl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function kl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Tl={native:Io,null:ta};function Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&He(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Gt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Po(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},$r(a.curOp)}function Oo(a){var y=a.curOp;y&&wr(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Ma(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Ri(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Hn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,ce=ie.text.length>a.options.maxHighlightLength?Rn(y.mode,b.state):null,de=ln(a,ie,b,!0);ce&&(b.state=ce),ie.styles=de.styles;var ge=ie.styleClasses,Ye=de.classes;Ye?ie.styleClasses=Ye:ge&&(ie.styleClasses=null);for(var ht=!le||le.length!=ie.styles.length||ge!=Ye&&(!ge||!Ye||ge.bgClass!=Ye.bgClass||ge.textClass!=Ye.textClass),Zt=0;!ht&&Ztx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Hi(a,function(){for(var ie=0;ie=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&wl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFromle&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),Gn&&(ie=yn(a.doc,ie),le=pn(a.doc,le));var ce=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,ie,le),x.viewOffset=cr(Nt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=wl(a);if(!ce&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var ge=eu(a);return de>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),de>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(ge),Lt(x.cursorDiv),Lt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Bl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+_i(a.display)-io(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var E=ea(a);Qo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Ma(a,y);if(qa(a,x)){Pa(a),Bl(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function ce(bn){var An=bn.nextSibling;return Te&&ze&&a.display.currentWheelTarget==bn?bn.style.display="none":bn.parentNode.removeChild(bn),An}for(var de=b.view,ge=b.viewFrom,Ye=0;Ye-1&&(Ht=!1),Di(a,ht,ge,x)),Ht&&(Lt(ht.lineNumber),ht.lineNumber.appendChild(document.createTextNode($e(a.options,ge)))),le=ht.node.nextSibling}ge+=ht.size}for(;le;)le=ce(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Ri(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ie=b+"px",le=0;lele.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ce||E&&de){if(E&&ze&&Te){e:for(var ge=y.target,Ye=ie.view;ge!=le;ge=ge.parentNode)for(var ht=0;ht=0&&je(a,b.to())<=0)return x}return-1};var Gr=function(a,y){this.anchor=a,this.head=y};Gr.prototype.from=function(){return bt(this.anchor,this.head)},Gr.prototype.to=function(){return at(this.anchor,this.head)},Gr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ji(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Zt,Ht){return je(Zt.from(),Ht.from())}),x=Ct(y,E);for(var ie=1;ie0:de>=0){var ge=bt(ce.from(),le.from()),Ye=at(ce.to(),le.to()),ht=ce.empty()?le.from()==le.head:ce.from()==ce.head;ie<=x&&--x,y.splice(--ie,2,new Gr(ht?Ye:ge,ht?ge:Ye))}}return new Zi(y,x)}function po(a,y){return new Zi([new Gr(a,y||a)],0)}function mo(a){return a.text?Pe(a.from.line+a.text.length-1,Ne(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(je(a,y.from)<0)return a;if(je(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Pe(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ce.line+1,bn-1),a.insert(ce.line+1,Xn)}Tr(a,"change",a,y)}function go(a,y,x){function b(E,ie,le){if(E.linked)for(var ce=0;ce1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Ne(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var ie=+new Date,le,ce;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ce=Ne(le.changes),je(y.from,y.to)==0&&je(y.from,ce.to)==0?ce.to=mo(y):le.changes.push(ll(a,y));else{var de=Ne(E.done);for((!de||!de.ranges)&&La(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=ie,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ce||dn(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,ie=b&&b.origin;x==E.lastSelOp||ie&&E.lastSelOrigin==ie&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ie||su(a,ie,Ne(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ie,E.lastSelOp=x,b&&b.clearRedo!==!1&&_l(E.undone)}function La(a,y){var x=Ne(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var E=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(Ne(ce)[ht]=ge[ht],delete ge[ht])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var ie=je(y,E)<0;ie!=je(x,E)<0?(E=y,y=x):ie!=je(y,x)<0&&(y=x)}return new Gr(E,y)}else return new Gr(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),wi(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie=y.ch:ce.to>y.ch))){if(E&&(dn(de,"beforeCursorEnter"),de.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var ht=de.find(b<0?1:-1),Zt=void 0;if((b<0?Ye:ge)&&(ht=es(a,ht,-b,ht&&ht.line==y.line?ie:null)),ht&&ht.line==y.line&&(Zt=je(ht,x))&&(b<0?Zt<0:Zt>0))return Ro(a,ht,y,b,E)}var Ht=de.find(b<0?-1:1);return(b<0?ge:Ye)&&(Ht=es(a,Ht,b,Ht.line==y.line?ie:null)),Ht?Ro(a,Ht,y,b,E):null}}return y}function Na(a,y,x,b,E){var ie=b||1,le=Ro(a,y,x,ie,E)||!E&&Ro(a,y,x,ie,!0)||Ro(a,y,x,-ie,E)||!E&&Ro(a,y,x,-ie,!0);return le||(a.cantEdit=!0,Pe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?We(a,Pe(y.line-1)):null:x>0&&y.ch==(b||Nt(a,y.line)).text.length?y.line=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&je(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,mr(a,y));var b=[];go(a,function(E,ie){!ie&&Ct(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Fa(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ie,le=a.sel,ce=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,ge=0;ge=0;--Ht){var bn=Zt(Ht);if(bn)return bn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi(Vt(a.sel.ranges,function(E){return new Gr(Pe(E.anchor.line+y,E.anchor.ch),Pe(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){ki(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.lineie&&(y={from:y.from,to:Pe(ie,Nt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=qt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,me),a.cantEdit&&Na(a,Pe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,ie=y.from,le=y.to,ce=!1,de=ie.line;a.options.lineWrapping||(de=Ae(hn(Nt(b,ie.line))),b.iter(de,le.line+1,function(Ht){if(Ht==E.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&on(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,ie.line+y.text.length,function(Ht){var bn=kr(Ht);bn>E.maxLineLength&&(E.maxLine=Ht,E.maxLineLength=bn,E.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),Tn(b,ie.line),na(a,400);var ge=y.text.length-(le.line-ie.line)-1;y.full?ki(a):ie.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,ie.line,"text"):ki(a,ie.line,le.line+1,ge);var Ye=Kt(a,"changes"),ht=Kt(a,"change");if(ht||Ye){var Zt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};ht&&Tr(a,"change",a,Zt),Ye&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Zt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var ie;b||(b=x),je(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x1||!(this.children[0]instanceof la))){var ce=[];this.collapse(ce),this.children=[new la(ce)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var le=E.lines.length%25+25,ce=le;ce10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=ge,a.display.maxLineLength=Ye,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&ki(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Tr(a,"markerCleared",a,this,b,E),y&&Oo(a),this.parent&&this.parent.clear()}},vo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=xt("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Cn(a,y.line,y,x,ie)||y.line!=x.line&&Cn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,de=a.cm,ge;if(a.iter(ce,x.line+1,function(ht){de&&ie.collapsed&&!de.options.lineWrapping&&hn(ht)==de.display.maxLine&&(ge=!0),ie.collapsed&&ce!=y.line&&xn(ht,0),lr(ht,new sr(ie,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),ie.collapsed&&a.iter(y.line,x.line+1,function(ht){Bn(a,ht)&&xn(ht,0)}),ie.clearOnEnter&&Gt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),de){if(ge&&(de.curOp.updateMaxLine=!0),ie.collapsed)ki(de,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var Ye=y.line;Ye<=x.line;Ye++)fo(de,Ye,"text");ie.atomic&&Jl(de.doc),Tr(de,"markerAdded",de,ie)}return ie}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;de--)$o(this,b[de]);ce?Yl(this,ce):this.cm&&Ao(this.cm)}),undo:pi(function(){Fa(this,"undo")}),redo:pi(function(){Fa(this,"redo")}),undoSelection:pi(function(){Fa(this,"undo",!0)}),redoSelection:pi(function(){Fa(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=We(this,a),y=We(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var ce=0;ce=de.to||de.from==null&&E!=a.line||de.from!=null&&E==y.line&&de.from>=y.ch)&&(!x||x(de.marker))&&b.push(de.marker.parent||de.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=ie,++x}),We(this,Pe(x,y))},indexFromPos:function(a){a=We(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ye=a.dataTransfer.getData("Text");if(Ye){var ht;if(y.state.draggingText&&!y.state.draggingText.copy&&(ht=y.listSelections()),Aa(y.doc,po(x,x)),ht)for(var Zt=0;Zt=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");Ao(a)})}function cl(a,y,x){var b=mt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new Pe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ie=Jt(x,y.doc.direction);if(ie){var le=E<0?Ne(ie):ie[0],ce=E<0==(le.level==1),de=ce?"after":"before",ge;if(le.level>0||y.doc.direction=="rtl"){var Ye=uo(y,x);ge=E<0?x.text.length-1:0;var ht=Vi(y,Ye,ge).top;ge=Oe(function(Zt){return Vi(y,Ye,Zt).top==ht},E<0==(le.level==1)?le.from:le.to-1,ge),de=="before"&&(ge=cl(x,ge,1))}else ge=E<0?le.to:le.from;return new Pe(b,ge,de)}}return new Pe(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=Jt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ie=Ot(E,x.ch,x.sticky),le=E[ie];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&Zt>=Ye.begin)){var Ht=ht?"before":"after";return new Pe(x.line,Zt,Ht)}}var bn=function(Xn,rr,Yn){for(var ar=function(Yr,mi){return mi?new Pe(x.line,ce(Yr,1),"before"):new Pe(x.line,Yr,"after")};Xn>=0&&Xn0==(vr.level!=1),Lr=hr?Yn.begin:ce(Yn.end,-1);if(vr.from<=Lr&&Lr0?Ye.end:ce(Ye.begin,-1);return Wn!=null&&!(b>0&&Wn==y.text.length)&&(An=bn(b>0?0:E.length-1,b,ge(Wn)),An)?An:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),me)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=Nt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new Pe(E.line,E.ch+1),a.replaceRange(ie.charAt(E.ch-1)+ie.charAt(E.ch-2),Pe(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Nt(a.doc,E.line-1).text;le&&(E=new Pe(E.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Pe(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Gr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Hi(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;ba&&je(y,this.pos)==0&&x==this.button};var ma,ga;function Au(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(kt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){Te||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=gt(a),ie=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,ie,a))&&(E==1?b?Ru(y,b,ie,a):Ke(a)==x.scroller&&st(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(pt?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,gs(ie,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=Pt}finally{a.state.suppressEdits=!1}return ce})}function Fu(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var ie=wt?x.shiftKey&&x.metaKey:x.altKey;E.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=ze?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ze?x.altKey:x.ctrlKey)),E}function Ru(a,y,x,b){be?setTimeout(nt(Il,a),0):a.curOp.focus=Ve();var E=Fu(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Bt&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(je((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(je(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,ie=!1,le=hi(a,function(ge){Te&&(E.scroller.draggable=!1),a.state.draggingText=!1,nn(E.wrapper.ownerDocument,"mouseup",le),nn(E.wrapper.ownerDocument,"mousemove",ce),nn(E.scroller,"dragstart",de),nn(E.scroller,"drop",le),ie||(st(ge),b.addNew||Ba(a.doc,x,null,null,b.extend),Te&&!Xe||be&&Ie==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ce=function(ge){ie=ie||Math.abs(y.clientX-ge.clientX)+Math.abs(y.clientY-ge.clientY)>=10},de=function(){return ie=!0};Te&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Gt(E.wrapper.ownerDocument,"mouseup",le),Gt(E.wrapper.ownerDocument,"mousemove",ce),Gt(E.scroller,"dragstart",de),Gt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Gr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Gr(Pe(y.line,0),We(a.doc,Pe(y.line+1,0)));var b=x(a,y);return new Gr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,ie=a.doc;st(y);var le,ce,de=ie.sel,ge=de.ranges;if(b.addNew&&!b.extend?(ce=ie.sel.contains(x),ce>-1?le=ge[ce]:le=new Gr(x,x)):(le=ie.sel.primary(),ce=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Gr(x,x)),x=wo(a,y,!0,!0),ce=-1;else{var Ye=Ps(a,x,b.unit);b.extend?le=sl(le,Ye.anchor,Ye.head,b.extend):le=Ye}b.addNew?ce==-1?(ce=ge.length,wi(ie,Ji(a,ge.concat([le]),ce),{scroll:!1,origin:"*mouse"})):ge.length>1&&ge[ce].empty()&&b.unit=="char"&&!b.extend?(wi(ie,Ji(a,ge.slice(0,ce).concat(ge.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),de=ie.sel):ul(ie,ce,le,Be):(ce=0,wi(ie,new Zi([le],0),Be),de=ie.sel);var ht=x;function Zt(Yn){if(je(ht,Yn)!=0)if(ht=Yn,b.unit=="rectangle"){for(var ar=[],vr=a.options.tabSize,hr=xe(Nt(ie,x.line).text,x.ch,vr),Lr=xe(Nt(ie,Yn.line).text,Yn.ch,vr),Yr=Math.min(hr,Lr),mi=Math.max(hr,Lr),Jr=Math.min(x.line,Yn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Yn.line));Jr<=ji;Jr++){var Li=Nt(ie,Jr).text,ai=Dt(Li,Yr,vr);Yr==mi?ar.push(new Gr(Pe(Jr,ai),Pe(Jr,ai))):Li.length>ai&&ar.push(new Gr(Pe(Jr,ai),Pe(Jr,Dt(Li,mi,vr))))}ar.length||ar.push(new Gr(x,x)),wi(ie,Ji(a,de.ranges.slice(0,ce).concat(ar),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Yn)}else{var Bi=le,bi=Ps(a,Yn,b.unit),di=Bi.anchor,li;je(bi.anchor,di)>0?(li=bi.head,di=bt(Bi.from(),bi.anchor)):(li=bi.anchor,di=at(Bi.to(),bi.head));var ei=de.ranges.slice(0);ei[ce]=Hu(a,new Gr(We(ie,di),li)),wi(ie,Ji(a,ei,ce),Be)}}var Ht=E.wrapper.getBoundingClientRect(),bn=0;function An(Yn){var ar=++bn,vr=wo(a,Yn,!0,b.unit=="rectangle");if(vr)if(je(vr,ht)!=0){a.curOp.focus=Ve(),Zt(vr);var hr=Oa(E,ie);(vr.line>=hr.to||vr.lineHt.bottom?20:0;Lr&&setTimeout(hi(a,function(){bn==ar&&(E.scroller.scrollTop+=Lr,An(Yn))}),50)}}function Wn(Yn){a.state.selectingText=!1,bn=1/0,Yn&&(st(Yn),E.input.focus()),nn(E.wrapper.ownerDocument,"mousemove",Xn),nn(E.wrapper.ownerDocument,"mouseup",rr),ie.history.lastSelOrigin=null}var Xn=hi(a,function(Yn){Yn.buttons===0||!gt(Yn)?Wn(Yn):An(Yn)}),rr=hi(a,Wn);a.state.selectingText=rr,Gt(E.wrapper.ownerDocument,"mousemove",Xn),Gt(E.wrapper.ownerDocument,"mouseup",rr)}function Hu(a,y){var x=y.anchor,b=y.head,E=Nt(a.doc,x.line);if(je(x,b)==0&&x.sticky==b.sticky)return y;var ie=Jt(E);if(!ie)return y;var le=Ot(ie,x.ch,x.sticky),ce=ie[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var de=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(de==0||de==ie.length)return y;var ge;if(b.line!=x.line)ge=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ye=Ot(ie,b.ch,b.sticky),ht=Ye-le||(b.ch-x.ch)*(ce.level==1?-1:1);Ye==de-1||Ye==de?ge=ht<0:ge=ht>0}var Zt=ie[de+(ge?-1:0)],Ht=ge==(Zt.level==1),bn=Ht?Zt.from:Zt.to,An=Ht?"after":"before";return x.ch==bn&&x.sticky==An?y:new Gr(new Pe(x.line,bn,An),b)}function Os(a,y,x,b){var E,ie;if(y.touches)E=y.touches[0].clientX,ie=y.touches[0].clientY;else try{E=y.clientX,ie=y.clientY}catch(Zt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&st(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(ie>ce.bottom||!Kt(a,x))return Wt(y);ie-=ce.top-le.viewOffset;for(var de=0;de=E){var Ye=rt(a.doc,ie),ht=a.display.gutterSpecs[de];return dn(a,x,a,Ye,ht.className,y),Wt(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ds(a,y){vi(a.display,y)||ju(a,y)||kt(a,y,"contextmenu")||pt||a.display.input.onContextMenu(y)}function ju(a,y){return Kt(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function Ms(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Zo={toString:function(){return"CodeMirror.Init"}},ks={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,E,ie,le){a.defaults[b]=E,ie&&(y[b]=le?function(ce,de,ge){ge!=Zo&&ie(ce,de,ge)}:ie)}a.defineOption=x,a.Init=Zo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),ki(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ie=[],le=b.doc.first;b.doc.iter(function(de){for(var ge=0;;){var Ye=de.text.indexOf(E,ge);if(Ye==-1)break;ge=Ye+E.length,ie.push(Pe(le,Ye))}le++});for(var ce=ie.length-1;ce>=0;ce--)zo(b.doc,E,ie[ce],Pe(ie[ce].line,ie[ce].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,ie){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ie!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ge?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!Tt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,E,ie){var le=$a(E),ce=ie!=Zo&&$a(ie);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ll(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Bo(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,ie=y?Gt:nn;ie(a.display.scroller,"dragstart",E.start),ie(a.display.scroller,"dragenter",E.enter),ie(a.display.scroller,"dragover",E.over),ie(a.display.scroller,"dragleave",E.leave),ie(a.display.scroller,"drop",E.drop)}}function _u(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(He(a.display.wrapper,"CodeMirror-wrap"),Pr(a)),Ka(a),ki(a),Co(a),setTimeout(function(){return No(a)},100)}function Qr(a,y){var x=this;if(!(this instanceof Qr))return new Qr(a,y);this.options=y=y?Ft(y):{},Ft(ks,y,!1);var b=y.value;typeof b=="string"?b=new Ti(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Qr.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,E,y);ie.wrapper.CodeMirror=this,Ms(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ll(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 fe,keySeq:null,specialChars:null},y.autofocus&&!Ge&&ie.input.focus(),be&&Ie<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),wu(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ge||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Bo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce20*20}Gt(y.scroller,"touchstart",function(de){if(!kt(a,de)&&!ie(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var ge=+new Date;y.activeTouch={start:ge,moved:!1,prev:ge-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),Gt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Gt(y.scroller,"touchend",function(de){var ge=y.activeTouch;if(ge&&!vi(y,de)&&ge.left!=null&&!ge.moved&&new Date-ge.start<300){var Ye=a.coordsChar(y.activeTouch,"page"),ht;!ge.prev||le(ge,ge.prev)?ht=new Gr(Ye,Ye):!ge.prev.prev||le(ge,ge.prev.prev)?ht=a.findWordAt(Ye):ht=new Gr(Pe(Ye.line,0),We(a.doc,Pe(Ye.line+1,0))),a.setSelection(ht.anchor,ht.head),a.focus(),st(de)}E()}),Gt(y.scroller,"touchcancel",E),Gt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),dn(a,"scroll",a))}),Gt(y.scroller,"mousewheel",function(de){return $l(a,de)}),Gt(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),Gt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){kt(a,de)||De(de)},over:function(de){kt(a,de)||(Cu(a,de),De(de))},start:function(de){return xu(a,de)},drop:hi(a,bu),leave:function(de){kt(a,de)||fs(a)}};var ce=y.input.getField();Gt(ce,"keyup",function(de){return Ss.call(a,de)}),Gt(ce,"keydown",hi(a,ws)),Gt(ce,"keypress",hi(a,Es)),Gt(ce,"focus",function(de){return Ya(a,de)}),Gt(ce,"blur",function(de){return Bo(a,de)})}var gl=[];Qr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,ie;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ie=Hn(a,y).state:x="prev");var le=a.options.tabSize,ce=Nt(E,y),de=xe(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var ge=ce.text.match(/^\s*/)[0],Ye;if(!b&&!/\S/.test(ce.text))Ye=0,x="not";else if(x=="smart"&&(Ye=E.mode.indent(ie,ce.text.slice(ge.length),ce.text),Ye==Pt||Ye>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ye=xe(Nt(E,y-1).text,null,le):Ye=0:x=="add"?Ye=de+a.options.indentUnit:x=="subtract"?Ye=de-a.options.indentUnit:typeof x=="number"&&(Ye=de+x),Ye=Math.max(0,Ye);var ht="",Zt=0;if(a.options.indentWithTabs)for(var Ht=Math.floor(Ye/le);Ht;--Ht)Zt+=le,ht+=" ";if(Ztle,de=cn(y),ge=null;if(ce&&b.ranges.length>1)if(qi&&qi.text.join(` `)==y){if(b.ranges.length%qi.text.length==0){ge=[];for(var Ye=0;Ye=0;Zt--){var Ht=b.ranges[Zt],bn=Ht.from(),An=Ht.to();Ht.empty()&&(x&&x>0?bn=Pe(bn.line,bn.ch-x):a.state.overwrite&&!ce?An=Pe(An.line,Math.min(Nt(ie,An.line).text.length,An.ch+Ne(de).length)):ce&&qi&&qi.lineWise&&qi.text.join(` `)==de.join(` `)&&(bn=An=Pe(bn.line,0)));var Wn={from:bn,to:An,text:ge?ge[Zt%ge.length]:de,origin:E||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Wn),Tr(a,"inputRead",a,Wn)}y&&!ce&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ht),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Hi(y,function(){return vl(y,x,0,null,"paste")}),!0}function Ls(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var ie=a.getModeAt(E.head),le=!1;if(ie.electricChars){for(var ce=0;ce-1){le=va(a,E.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(Nt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Tr(a,"electricInput",a,E.head.line)}}}function Bs(a){for(var y=[],x=[],b=0;bie&&(va(this,ce.head.line,b,!0),ie=ce.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ce.from(),ge=ce.to(),Ye=Math.max(ie,de.line);ie=Math.min(this.lastLine(),ge.line-(ge.ch?0:1))+1;for(var ht=Ye;ht0&&ul(this.doc,le,new Gr(de,Zt[le].to()),me)}}}),getTokenAt:function(b,E){return Zn(this,b,E)},getLineTokens:function(b,E){return Zn(this,Pe(b),E,!0)},getTokenTypeAt:function(b){b=We(this.doc,b);var E=$n(this,Nt(this.doc,b.line)),ie=0,le=(E.length-1)/2,ce=b.ch,de;if(ce==0)de=E[2];else for(;;){var ge=ie+le>>1;if((ge?E[ge*2-1]:0)>=ce)le=ge;else if(E[ge*2+1]de&&(b=de,le=!0),ce=Nt(this.doc,b)}else ce=b;return To(this,ce,{top:0,left:0},E||"page",ie||le).top+(le?this.doc.height-cr(ce):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ie,le,ce){var de=this.display;b=Mi(this,We(this.doc,b));var ge=b.bottom,Ye=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")ge=b.top;else if(le=="above"||le=="near"){var ht=Math.max(de.wrapper.clientHeight,this.doc.height),Zt=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>ht)&&b.top>E.offsetHeight?ge=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=ht&&(ge=b.bottom),Ye+E.offsetWidth>Zt&&(Ye=Zt-E.offsetWidth)}E.style.top=ge+"px",E.style.left=E.style.right="",ce=="right"?(Ye=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ce=="left"?Ye=0:ce=="middle"&&(Ye=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ye+"px"),ie&&Zs(this,{left:Ye,top:ge,right:Ye+E.offsetWidth,bottom:ge+E.offsetHeight})},triggerOnKeyDown:Pi(ws),triggerOnKeyPress:Pi(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:Pi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Pi(function(b){Ls(this,b)}),findPosH:function(b,E,ie,le){var ce=1;E<0&&(ce=-1,E=-E);for(var de=We(this.doc,b),ge=0;ge0&&Ye(ie.charAt(le-1));)--le;for(;ce.5||this.options.lineWrapping)&&Ka(this),dn(this,"refresh",this)}),swapDoc:Pi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Le(a),a.registerHelper=function(b,E,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ie},a.registerGlobalHelper=function(b,E,ie,le){a.registerHelper(b,E,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,E){var ie=y,le=x,ce=Nt(a,y.line),de=E&&a.direction=="rtl"?-x:x;function ge(){var rr=y.line+de;return rr=a.first+a.size?!1:(y=new Pe(rr,y.ch,y.sticky),ce=Nt(a,rr))}function Ye(rr){var Yn;if(b=="codepoint"){var ar=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(ar)?Yn=null:Yn=new Pe(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(ar>=55296&&ar<56320?2:1))),-x)}else E?Yn=Ou(a.cm,ce,y,x):Yn=dl(ce,y,x);if(Yn==null)if(!rr&&ge())y=fl(E,a.cm,ce,y.line,de);else return!1;else y=Yn;return!0}if(b=="char"||b=="codepoint")Ye();else if(b=="column")Ye(!0);else if(b=="word"||b=="group")for(var ht=null,Zt=b=="group",Ht=a.cm&&a.cm.getHelper(y,"wordChars"),bn=!0;!(x<0&&!Ye(!bn));bn=!1){var An=ce.text.charAt(y.ch)||` `,Wn=se(An,Ht)?"w":Zt&&An==` `?"n":!Zt||/\s/.test(An)?null:"p";if(Zt&&!bn&&!Wn&&(Wn="s"),ht&&ht!=Wn){x<0&&(x=1,Ye(),y.sticky="after");break}if(Wn&&(ht=Wn),x>0&&!Ye(!bn))break}var Xn=Na(a,y,ie,le,!0);return ye(ie,Xn)&&(Xn.hitSide=!0),Xn}function Fs(a,y,x,b){var E=a.doc,ie=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ce-.5*zi(a.display),3);le=(x>0?y.bottom:y.top)+x*de}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ge;ge=yi(a,ie,le),!!ge.outside;){if(x<0?le<=0:le>=E.height){ge.hitSide=!0;break}le+=x*5}return ge}var Ur=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ur.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;As(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(ce){for(var de=ce.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}Gt(E,"paste",function(ce){!ie(ce)||kt(b,ce)||Ts(ce,b)||Ie<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),Gt(E,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),Gt(E,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),Gt(E,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Gt(E,"touchstart",function(){return x.forceCompositionEnd()}),Gt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!ie(ce)||kt(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Bs(b);ja({lineWise:!0,text:de.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,me),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var ge=qi.text.join(` `);if(ce.clipboardData.setData("Text",ge),ce.clipboardData.getData("Text")==ge){ce.preventDefault();return}}var Ye=Ns(),ht=Ye.firstChild;b.display.lineSpace.insertBefore(Ye,b.display.lineSpace.firstChild),ht.value=qi.text.join(` `);var Zt=document.activeElement;ke(ht),setTimeout(function(){b.display.lineSpace.removeChild(Ye),Zt.focus(),Zt==E&&x.showPrimarySelection()},50)}}Gt(E,"copy",le),Gt(E,"cut",le)},Ur.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ur.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ur.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ur.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ur.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line=y.display.viewFrom&&Rs(y,b)||{node:ce[0].measure.map[2],offset:0},ge=E.linea.firstLine()&&(b=Pe(b.line-1,Nt(a.doc,b.line-1).length)),E.ch==Nt(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var ie,le,ce;b.line==y.viewFrom||(ie=So(a,b.line))==0?(le=Ae(y.view[0].line),ce=y.view[0].node):(le=Ae(y.view[ie].line),ce=y.view[ie-1].node.nextSibling);var de=So(a,E.line),ge,Ye;if(de==y.view.length-1?(ge=y.viewTo-1,Ye=y.lineDiv.lastChild):(ge=Ae(y.view[de+1].line)-1,Ye=y.view[de+1].node.previousSibling),!ce)return!1;for(var ht=a.doc.splitLines(Ku(a,ce,Ye,le,ge)),Zt=qt(a.doc,Pe(le,0),Pe(ge,Nt(a.doc,ge).text.length));ht.length>1&&Zt.length>1;)if(Ne(ht)==Ne(Zt))ht.pop(),Zt.pop(),ge--;else if(ht[0]==Zt[0])ht.shift(),Zt.shift(),le++;else break;for(var Ht=0,bn=0,An=ht[0],Wn=Zt[0],Xn=Math.min(An.length,Wn.length);Htb.ch&&rr.charCodeAt(rr.length-bn-1)==Yn.charCodeAt(Yn.length-bn-1);)Ht--,bn++;ht[ht.length-1]=rr.slice(0,rr.length-bn).replace(/^\u200b+/,""),ht[0]=ht[0].slice(Ht).replace(/\u200b+$/,"");var vr=Pe(le,Ht),hr=Pe(ge,Zt.length?Ne(Zt).length-bn:0);if(ht.length>1||ht[0]||je(vr,hr))return zo(a.doc,ht,vr,hr,"+input"),!0},Ur.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ur.prototype.reset=function(){this.forceCompositionEnd()},Ur.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ur.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Ur.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return ki(a.cm)})},Ur.prototype.setUneditable=function(a){a.contentEditable="false"},Ur.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ur.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ur.prototype.onContextMenu=function(){},Ur.prototype.resetPosition=function(){},Ur.prototype.needsContentAttribute=!0;function Rs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=Nt(a.doc,y.line),E=ko(x,b,y.line),ie=Jt(b,a.doc.direction),le="left";if(ie){var ce=Ot(ie,y.ch);le=ce%2?"right":"left"}var de=xa(E.map,y.ch,le);return de.offset=de.collapse=="right"?de.end:de.start,de}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var ie="",le=!1,ce=a.doc.lineSeparator(),de=!1;function ge(Ht){return function(bn){return bn.id==Ht}}function Ye(){le&&(ie+=ce,de&&(ie+=ce),le=de=!1)}function ht(Ht){Ht&&(Ye(),ie+=Ht)}function Zt(Ht){if(Ht.nodeType==1){var bn=Ht.getAttribute("cm-text");if(bn){ht(bn);return}var An=Ht.getAttribute("cm-marker"),Wn;if(An){var Xn=a.findMarks(Pe(b,0),Pe(E+1,0),ge(+An));Xn.length&&(Wn=Xn[0].find(0))&&ht(qt(a.doc,Wn.from,Wn.to).join(ce));return}if(Ht.getAttribute("contenteditable")=="false")return;var rr=/^(pre|div|p|li|table|br)$/i.test(Ht.nodeName);if(!/^br$/i.test(Ht.nodeName)&&Ht.textContent.length==0)return;rr&&Ye();for(var Yn=0;Yn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Gt(E,"paste",function(le){kt(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!kt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=Bs(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,me):(x.prevInput="",E.value=ce.text.join(` `),ke(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Gt(E,"cut",ie),Gt(E,"copy",ie),Gt(a.scroller,"paste",function(le){if(!(vi(a,le)||kt(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,E.dispatchEvent(ce)}}),Gt(a.lineSpace,"selectstart",function(le){vi(a,le)||st(le)}),Gt(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Gt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Mi(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-ie.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;tt(x.cursorDiv,a.cursors),tt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&ke(this.textarea),be&&Ie>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",be&&Ie>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ge||Ve()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||En(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(be&&Ie>=9&&this.hasSelection===E||ze&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=E.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,E.length);le1e3||E.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){be&&Ie>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=wo(x,a),le=b.scroller.scrollTop;if(!ie||he)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(ie)==-1&&hi(x,wi)(x.doc,po(ie),me);var de=E.style.cssText,ge=y.wrapper.style.cssText,Ye=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ye.top-5)+"px; left: "+(a.clientX-Ye.left-5)+`px; z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ht;Te&&(ht=window.scrollY),b.input.focus(),Te&&window.scrollTo(null,ht),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ht,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Zt(){if(E.selectionStart!=null){var An=x.somethingSelected(),Wn="\u200B"+(An?E.value:"");E.value="\u21DA",E.value=Wn,y.prevInput=An?"":"\u200B",E.selectionStart=1,E.selectionEnd=Wn.length,b.selForContextMenu=x.doc.sel}}function Ht(){if(y.contextMenuPending==Ht&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ge,E.style.cssText=de,be&&Ie<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!be||be&&Ie<9)&&Zt();var An=0,Wn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):An++<10?b.detectingSelectAll=setTimeout(Wn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Wn,200)}}if(be&&Ie>=9&&Zt(),pt){De(a);var bn=function(){nn(window,"mouseup",bn),setTimeout(Ht,20)};Gt(window,"mouseup",bn)}else setTimeout(Ht,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Ft(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Ve();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var E;if(a.form&&(Gt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;E=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=E,ie.submit(),ie.submit=le}}catch(de){}}y.finishInit=function(de){de.save=b,de.getTextArea=function(){return a},de.toTextArea=function(){de.toTextArea=isNaN,b(),a.parentNode.removeChild(de.getWrapperElement()),a.style.display="",a.form&&(nn(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ce=Qr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ce}function Qu(a){a.off=nn,a.on=Gt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=cn,a.countColumn=xe,a.findColumn=Dt,a.isWordChar=oe,a.Pass=Pt,a.signal=dn,a.Line=Fr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Pe,a.cmpPos=je,a.modes=At,a.mimeModes=It,a.resolveMode=rn,a.getMode=Sn,a.modeExtensions=Pn,a.extendMode=On,a.copyState=Rn,a.startState=Jn,a.innerMode=Ln,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Pu,a.StringStream=_n,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=st,a.e_stopPropagation=$t,a.e_stop=De,a.addClass=ue,a.contains=_e,a.rmClass=He,a.keyNames=yo}Wu(Qr),Gu(Qr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&Ct(Ju,Za)<0&&(Qr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return Le(Ti),Qr.inputStyles={textarea:oi,contenteditable:Ur},Qr.defineMode=function(a){!Qr.defaults.mode&&a!="null"&&(Qr.defaults.mode=a),an.apply(this,arguments)},Qr.defineMIME=tn,Qr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Qr.defineMIME("text/plain","null"),Qr.defineExtension=function(a,y){Qr.prototype[a]=y},Qr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Qr.fromTextArea=Yu,Qu(Qr),Qr.version="5.58.2",Qr})},25419:function(fn,_t,re){(function(z){z(re(89780),re(15525),re(98101))})(function(z){"use strict";z.defineMode("markdown",function(it,ve){var Qe=z.getMode(it,"text/html"),be=Qe.name=="null";function Ie(xe){if(z.findModeByName){var fe=z.findModeByName(xe);fe&&(xe=fe.mime||fe.mimes[0])}var Ct=z.getMode(it,xe);return Ct.name=="null"?null:Ct}ve.highlightFormatting===void 0&&(ve.highlightFormatting=!1),ve.maxBlockquoteDepth===void 0&&(ve.maxBlockquoteDepth=0),ve.taskLists===void 0&&(ve.taskLists=!1),ve.strikethrough===void 0&&(ve.strikethrough=!1),ve.emoji===void 0&&(ve.emoji=!1),ve.fencedCodeBlockHighlighting===void 0&&(ve.fencedCodeBlockHighlighting=!0),ve.fencedCodeBlockDefaultMode===void 0&&(ve.fencedCodeBlockDefaultMode="text/plain"),ve.xml===void 0&&(ve.xml=!0),ve.tokenTypeOverrides===void 0&&(ve.tokenTypeOverrides={});var Te={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 qe in Te)Te.hasOwnProperty(qe)&&ve.tokenTypeOverrides[qe]&&(Te[qe]=ve.tokenTypeOverrides[qe]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,Ee=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Mt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Je=/^[^#!\[\]*_\\<>` "'(~:]+/,Fe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ge=/^\s*\[[^\]]+?\]:.*$/,ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,wt=" ";function Tt(xe,fe,Ct){return fe.f=fe.inline=Ct,Ct(xe,fe)}function zt(xe,fe,Ct){return fe.f=fe.block=Ct,Ct(xe,fe)}function St(xe){return!xe||!/\S/.test(xe.string)}function pt(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==He){var fe=be;if(!fe){var Ct=z.innerMode(Qe,xe.htmlState);fe=Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText}fe&&(xe.f=xt,xe.block=dt,xe.htmlState=null)}return xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,xe.prevLine=xe.thisLine,xe.thisLine={stream:null},null}function dt(xe,fe){var Ct=xe.column()===fe.indentation,Ut=St(fe.prevLine.stream),Pt=fe.indentedCode,me=fe.prevLine.hr,Be=fe.list!==!1,Re=(fe.listStack[fe.listStack.length-1]||0)+3;fe.indentedCode=!1;var Dt=fe.indentation;if(fe.indentationDiff===null&&(fe.indentationDiff=fe.indentation,Be)){for(fe.list=null;Dt=4&&(Pt||fe.prevLine.fencedCodeEnd||fe.prevLine.header||Ut))return xe.skipToEnd(),fe.indentedCode=!0,Te.code;if(xe.eatSpace())return null;if(Ct&&fe.indentation<=Re&&(Ne=xe.match(Ee))&&Ne[1].length<=6)return fe.quote=0,fe.header=Ne[1].length,fe.thisLine.header=!0,ve.highlightFormatting&&(fe.formatting="header"),fe.f=fe.inline,tt(fe);if(fe.indentation<=Re&&xe.eat(">"))return fe.quote=Ct?1:fe.quote+1,ve.highlightFormatting&&(fe.formatting="quote"),xe.eatSpace(),tt(fe);if(!jt&&!fe.setext&&Ct&&fe.indentation<=Re&&(Ne=xe.match(he))){var Vt=Ne[1]?"ol":"ul";return fe.indentation=Dt+xe.current().length,fe.list=!0,fe.quote=0,fe.listStack.push(fe.indentation),fe.em=!1,fe.strong=!1,fe.code=!1,fe.strikethrough=!1,ve.taskLists&&xe.match(Xe,!1)&&(fe.taskList=!0),fe.f=fe.inline,ve.highlightFormatting&&(fe.formatting=["list","list-"+Vt]),tt(fe)}else{if(Ct&&fe.indentation<=Re&&(Ne=xe.match(Fe,!0)))return fe.quote=0,fe.fencedEndRE=new RegExp(Ne[1]+"+ *$"),fe.localMode=ve.fencedCodeBlockHighlighting&&Ie(Ne[2]||ve.fencedCodeBlockDefaultMode),fe.localMode&&(fe.localState=z.startState(fe.localMode)),fe.f=fe.block=Lt,ve.highlightFormatting&&(fe.formatting="code-block"),fe.code=-1,tt(fe);if(fe.setext||(!Et||!Be)&&!fe.quote&&fe.list===!1&&!fe.code&&!jt&&!Ge.test(xe.string)&&(Ne=xe.lookAhead(1))&&(Ne=Ne.match(Mt)))return fe.setext?(fe.header=fe.setext,fe.setext=0,xe.skipToEnd(),ve.highlightFormatting&&(fe.formatting="header")):(fe.header=Ne[0].charAt(0)=="="?1:2,fe.setext=fe.header),fe.thisLine.header=!0,fe.f=fe.inline,tt(fe);if(jt)return xe.skipToEnd(),fe.hr=!0,fe.thisLine.hr=!0,Te.hr;if(xe.peek()==="[")return Tt(xe,fe,ct)}return Tt(xe,fe,fe.inline)}function He(xe,fe){var Ct=Qe.token(xe,fe.htmlState);if(!be){var Ut=z.innerMode(Qe,fe.htmlState);(Ut.mode.name=="xml"&&Ut.state.tagStart===null&&!Ut.state.context&&Ut.state.tokenize.isInText||fe.md_inside&&xe.current().indexOf(">")>-1)&&(fe.f=xt,fe.block=dt,fe.htmlState=null)}return Ct}function Lt(xe,fe){var Ct=fe.listStack[fe.listStack.length-1]||0,Ut=fe.indentation=xe.quote?fe.push(Te.formatting+"-"+xe.formatting[Ct]+"-"+xe.quote):fe.push("error"))}if(xe.taskOpen)return fe.push("meta"),fe.length?fe.join(" "):null;if(xe.taskClosed)return fe.push("property"),fe.length?fe.join(" "):null;if(xe.linkHref?fe.push(Te.linkHref,"url"):(xe.strong&&fe.push(Te.strong),xe.em&&fe.push(Te.em),xe.strikethrough&&fe.push(Te.strikethrough),xe.emoji&&fe.push(Te.emoji),xe.linkText&&fe.push(Te.linkText),xe.code&&fe.push(Te.code),xe.image&&fe.push(Te.image),xe.imageAltText&&fe.push(Te.imageAltText,"link"),xe.imageMarker&&fe.push(Te.imageMarker)),xe.header&&fe.push(Te.header,Te.header+"-"+xe.header),xe.quote&&(fe.push(Te.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=xe.quote?fe.push(Te.quote+"-"+xe.quote):fe.push(Te.quote+"-"+ve.maxBlockquoteDepth)),xe.list!==!1){var Ut=(xe.listStack.length-1)%3;Ut?Ut===1?fe.push(Te.list2):fe.push(Te.list3):fe.push(Te.list1)}return xe.trailingSpaceNewLine?fe.push("trailing-space-new-line"):xe.trailingSpace&&fe.push("trailing-space-"+(xe.trailingSpace%2?"a":"b")),fe.length?fe.join(" "):null}function ot(xe,fe){if(xe.match(Je,!0))return tt(fe)}function xt(xe,fe){var Ct=fe.text(xe,fe);if(typeof Ct!="undefined")return Ct;if(fe.list)return fe.list=null,tt(fe);if(fe.taskList){var Ut=xe.match(Xe,!0)[1]===" ";return Ut?fe.taskOpen=!0:fe.taskClosed=!0,ve.highlightFormatting&&(fe.formatting="task"),fe.taskList=!1,tt(fe)}if(fe.taskOpen=!1,fe.taskClosed=!1,fe.header&&xe.match(/^#+$/,!0))return ve.highlightFormatting&&(fe.formatting="header"),tt(fe);var Pt=xe.next();if(fe.linkTitle){fe.linkTitle=!1;var me=Pt;Pt==="("&&(me=")"),me=(me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Be="^\\s*(?:[^"+me+"\\\\]+|\\\\\\\\|\\\\.)"+me;if(xe.match(new RegExp(Be),!0))return Te.linkHref}if(Pt==="`"){var Re=fe.formatting;ve.highlightFormatting&&(fe.formatting="code"),xe.eatWhile("`");var Dt=xe.current().length;if(fe.code==0&&(!fe.quote||Dt==1))return fe.code=Dt,tt(fe);if(Dt==fe.code){var Et=tt(fe);return fe.code=0,Et}else return fe.formatting=Re,tt(fe)}else if(fe.code)return tt(fe);if(Pt==="\\"&&(xe.next(),ve.highlightFormatting)){var jt=tt(fe),Ne=Te.formatting+"-escape";return jt?jt+" "+Ne:Ne}if(Pt==="!"&&xe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return fe.imageMarker=!0,fe.image=!0,ve.highlightFormatting&&(fe.formatting="image"),tt(fe);if(Pt==="["&&fe.imageMarker&&xe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return fe.imageMarker=!1,fe.imageAltText=!0,ve.highlightFormatting&&(fe.formatting="image"),tt(fe);if(Pt==="]"&&fe.imageAltText){ve.highlightFormatting&&(fe.formatting="image");var jt=tt(fe);return fe.imageAltText=!1,fe.image=!1,fe.inline=fe.f=_e,jt}if(Pt==="["&&!fe.image)return fe.linkText&&xe.match(/^.*?\]/)||(fe.linkText=!0,ve.highlightFormatting&&(fe.formatting="link")),tt(fe);if(Pt==="]"&&fe.linkText){ve.highlightFormatting&&(fe.formatting="link");var jt=tt(fe);return fe.linkText=!1,fe.inline=fe.f=xe.match(/\(.*?\)| ?\[.*?\]/,!1)?_e:xt,jt}if(Pt==="<"&&xe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Me,ve.highlightFormatting&&(fe.formatting="link");var jt=tt(fe);return jt?jt+=" ":jt="",jt+Te.linkInline}if(Pt==="<"&&xe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=Me,ve.highlightFormatting&&(fe.formatting="link");var jt=tt(fe);return jt?jt+=" ":jt="",jt+Te.linkEmail}if(ve.xml&&Pt==="<"&&xe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Vt=xe.string.indexOf(">",xe.pos);if(Vt!=-1){var yt=xe.string.substring(xe.start,Vt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(yt)&&(fe.md_inside=!0)}return xe.backUp(1),fe.htmlState=z.startState(Qe),zt(xe,fe,He)}if(ve.xml&&Pt==="<"&&xe.match(/^\/\w*?>/))return fe.md_inside=!1,"tag";if(Pt==="*"||Pt==="_"){for(var ae=1,te=xe.pos==1?" ":xe.string.charAt(xe.pos-2);ae<3&&xe.eat(Pt);)ae++;var ee=xe.peek()||" ",oe=!/\s/.test(ee)&&(!ze.test(ee)||/\s/.test(te)||ze.test(te)),se=!/\s/.test(te)&&(!ze.test(te)||/\s/.test(ee)||ze.test(ee)),ne=null,pe=null;if(ae%2&&(!fe.em&&oe&&(Pt==="*"||!se||ze.test(te))?ne=!0:fe.em==Pt&&se&&(Pt==="*"||!oe||ze.test(ee))&&(ne=!1)),ae>1&&(!fe.strong&&oe&&(Pt==="*"||!se||ze.test(te))?pe=!0:fe.strong==Pt&&se&&(Pt==="*"||!oe||ze.test(ee))&&(pe=!1)),pe!=null||ne!=null){ve.highlightFormatting&&(fe.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(fe.em=Pt),pe===!0&&(fe.strong=Pt);var Et=tt(fe);return ne===!1&&(fe.em=!1),pe===!1&&(fe.strong=!1),Et}}else if(Pt===" "&&(xe.eat("*")||xe.eat("_"))){if(xe.peek()===" ")return tt(fe);xe.backUp(1)}if(ve.strikethrough){if(Pt==="~"&&xe.eatWhile(Pt)){if(fe.strikethrough){ve.highlightFormatting&&(fe.formatting="strikethrough");var Et=tt(fe);return fe.strikethrough=!1,Et}else if(xe.match(/^[^\s]/,!1))return fe.strikethrough=!0,ve.highlightFormatting&&(fe.formatting="strikethrough"),tt(fe)}else if(Pt===" "&&xe.match(/^~~/,!0)){if(xe.peek()===" ")return tt(fe);xe.backUp(2)}}if(ve.emoji&&Pt===":"&&xe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){fe.emoji=!0,ve.highlightFormatting&&(fe.formatting="emoji");var Ce=tt(fe);return fe.emoji=!1,Ce}return Pt===" "&&(xe.match(/^ +$/,!1)?fe.trailingSpace++:fe.trailingSpace&&(fe.trailingSpaceNewLine=!0)),tt(fe)}function Me(xe,fe){var Ct=xe.next();if(Ct===">"){fe.f=fe.inline=xt,ve.highlightFormatting&&(fe.formatting="link");var Ut=tt(fe);return Ut?Ut+=" ":Ut="",Ut+Te.linkInline}return xe.match(/^[^>]+/,!0),Te.linkInline}function _e(xe,fe){if(xe.eatSpace())return null;var Ct=xe.next();return Ct==="("||Ct==="["?(fe.f=fe.inline=ue(Ct==="("?")":"]"),ve.highlightFormatting&&(fe.formatting="link-string"),fe.linkHref=!0,tt(fe)):"error"}var Ve={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(xe){return function(fe,Ct){var Ut=fe.next();if(Ut===xe){Ct.f=Ct.inline=xt,ve.highlightFormatting&&(Ct.formatting="link-string");var Pt=tt(Ct);return Ct.linkHref=!1,Pt}return fe.match(Ve[xe]),Ct.linkHref=!0,tt(Ct)}}function ct(xe,fe){return xe.match(/^([^\]\\]|\\.)*\]:/,!1)?(fe.f=ke,xe.next(),ve.highlightFormatting&&(fe.formatting="link"),fe.linkText=!0,tt(fe)):Tt(xe,fe,xt)}function ke(xe,fe){if(xe.match(/^\]:/,!0)){fe.f=fe.inline=nt,ve.highlightFormatting&&(fe.formatting="link");var Ct=tt(fe);return fe.linkText=!1,Ct}return xe.match(/^([^\]\\]|\\.)+/,!0),Te.linkText}function nt(xe,fe){return xe.eatSpace()?null:(xe.match(/^[^\s]+/,!0),xe.peek()===void 0?fe.linkTitle=!0:xe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),fe.f=fe.inline=xt,Te.linkHref+" url")}var Ft={startState:function(){return{f:dt,prevLine:{stream:null},thisLine:{stream:null},block:dt,htmlState:null,indentation:0,inline:xt,text:ot,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&&z.copyState(Qe,xe.htmlState),indentation:xe.indentation,localMode:xe.localMode,localState:xe.localMode?z.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,fe){if(fe.formatting=!1,xe!=fe.thisLine.stream){if(fe.header=0,fe.hr=!1,xe.match(/^\s*$/,!0))return pt(fe),null;if(fe.prevLine=fe.thisLine,fe.thisLine={stream:xe},fe.taskList=!1,fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,!fe.localState&&(fe.f=fe.block,fe.f!=He)){var Ct=xe.match(/^\s*/,!0)[0].replace(/\t/g,wt).length;if(fe.indentation=Ct,fe.indentationDiff=null,Ct>0)return null}}return fe.f(xe,fe)},innerMode:function(xe){return xe.block==He?{state:xe.htmlState,mode:Qe}:xe.localState?{state:xe.localState,mode:xe.localMode}:{state:xe,mode:Ft}},indent:function(xe,fe,Ct){return xe.block==He&&Qe.indent?Qe.indent(xe.htmlState,fe,Ct):xe.localState&&xe.localMode.indent?xe.localMode.indent(xe.localState,fe,Ct):z.Pass},blankLine:pt,getType:tt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ft},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(fn,_t,re){(function(z){z(re(89780))})(function(z){"use strict";z.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 it=0;it-1&&Qe.substring(Te+1,Qe.length);if(qe)return z.findModeByExtension(qe)},z.findModeByName=function(Qe){Qe=Qe.toLowerCase();for(var be=0;be0?Je.cmdState[Je.cmdState.length-1]:null}function Ie(Je){var Fe=Je.cmdState.pop();Fe&&Fe.closeBracket()}function Te(Je){for(var Fe=Je.cmdState,Ge=Fe.length-1;Ge>=0;Ge--){var ze=Fe[Ge];if(ze.name!="DEFAULT")return ze}return{styleIdentifier:function(){return null}}}function qe(Je,Fe,Ge){return function(){this.name=Je,this.bracketNo=0,this.style=Fe,this.styles=Ge,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=qe("importmodule","tag",["string","builtin"]),Se.documentclass=qe("documentclass","tag",["","atom"]),Se.usepackage=qe("usepackage","tag",["atom"]),Se.begin=qe("begin","tag",["atom"]),Se.end=qe("end","tag",["atom"]),Se.label=qe("label","tag",["atom"]),Se.ref=qe("ref","tag",["atom"]),Se.eqref=qe("eqref","tag",["atom"]),Se.cite=qe("cite","tag",["atom"]),Se.bibitem=qe("bibitem","tag",["atom"]),Se.Bibitem=qe("Bibitem","tag",["atom"]),Se.RBibitem=qe("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Je,Fe){Je.f=Fe}function Xe(Je,Fe){var Ge;if(Je.match(/^\\[a-zA-Z@]+/)){var ze=Je.current().slice(1);return Ge=Se.hasOwnProperty(ze)?Se[ze]:Se.DEFAULT,Ge=new Ge,Qe(Fe,Ge),he(Fe,Mt),Ge.style}if(Je.match(/^\\[$&%#{}_]/)||Je.match(/^\\[,;!\/\\]/))return"tag";if(Je.match("\\["))return he(Fe,function(Tt,zt){return Ee(Tt,zt,"\\]")}),"keyword";if(Je.match("\\("))return he(Fe,function(Tt,zt){return Ee(Tt,zt,"\\)")}),"keyword";if(Je.match("$$"))return he(Fe,function(Tt,zt){return Ee(Tt,zt,"$$")}),"keyword";if(Je.match("$"))return he(Fe,function(Tt,zt){return Ee(Tt,zt,"$")}),"keyword";var wt=Je.next();if(wt=="%")return Je.skipToEnd(),"comment";if(wt=="}"||wt=="]"){if(Ge=be(Fe),Ge)Ge.closeBracket(wt),he(Fe,Mt);else return"error";return"bracket"}else return wt=="{"||wt=="["?(Ge=Se.DEFAULT,Ge=new Ge,Qe(Fe,Ge),"bracket"):/\d/.test(wt)?(Je.eatWhile(/[\w.%]/),"atom"):(Je.eatWhile(/[\w\-_]/),Ge=Te(Fe),Ge.name=="begin"&&(Ge.argument=Je.current()),Ge.styleIdentifier())}function Ee(Je,Fe,Ge){if(Je.eatSpace())return null;if(Ge&&Je.match(Ge))return he(Fe,Xe),"keyword";if(Je.match(/^\\[a-zA-Z@]+/))return"tag";if(Je.match(/^[a-zA-Z]+/))return"variable-2";if(Je.match(/^\\[$&%#{}_]/)||Je.match(/^\\[,;!\/]/)||Je.match(/^[\^_&]/))return"tag";if(Je.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Je.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ze=Je.next();return ze=="{"||ze=="}"||ze=="["||ze=="]"||ze=="("||ze==")"?"bracket":ze=="%"?(Je.skipToEnd(),"comment"):"error"}function Mt(Je,Fe){var Ge=Je.peek(),ze;return Ge=="{"||Ge=="["?(ze=be(Fe),ze.openBracket(Ge),Je.eat(Ge),he(Fe,Xe),"bracket"):/[ \t\r]/.test(Ge)?(Je.eat(Ge),null):(he(Fe,Xe),Ie(Fe),Xe(Je,Fe))}return{startState:function(){var Je=ve.inMathMode?function(Fe,Ge){return Ee(Fe,Ge)}:Xe;return{cmdState:[],f:Je}},copyState:function(Je){return{cmdState:Je.cmdState.slice(),f:Je.f}},token:function(Je,Fe){return Fe.f(Je,Fe)},blankLine:function(Je){Je.f=Xe,Je.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(fn,_t,re){(function(z){z(re(89780))})(function(z){"use strict";var it={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},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Qe,be){var Ie=Qe.indentUnit,Te={},qe=be.htmlMode?it:ve;for(var Se in qe)Te[Se]=qe[Se];for(var Se in be)Te[Se]=be[Se];var he,Xe;function Ee(Me,_e){function Ve(ke){return _e.tokenize=ke,ke(Me,_e)}var ue=Me.next();if(ue=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?Ve(Fe("atom","]]>")):null:Me.match("--")?Ve(Fe("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),Ve(Ge(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),_e.tokenize=Fe("meta","?>"),"meta"):(he=Me.eat("/")?"closeTag":"openTag",_e.tokenize=Mt,"tag bracket");if(ue=="&"){var ct;return Me.eat("#")?Me.eat("x")?ct=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):ct=Me.eatWhile(/[\d]/)&&Me.eat(";"):ct=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),ct?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}Ee.isInText=!0;function Mt(Me,_e){var Ve=Me.next();if(Ve==">"||Ve=="/"&&Me.eat(">"))return _e.tokenize=Ee,he=Ve==">"?"endTag":"selfcloseTag","tag bracket";if(Ve=="=")return he="equals",null;if(Ve=="<"){_e.tokenize=Ee,_e.state=zt,_e.tagName=_e.tagStart=null;var ue=_e.tokenize(Me,_e);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Ve)?(_e.tokenize=Je(Ve),_e.stringStartCol=Me.column(),_e.tokenize(Me,_e)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Je(Me){var _e=function(Ve,ue){for(;!Ve.eol();)if(Ve.next()==Me){ue.tokenize=Mt;break}return"string"};return _e.isInAttribute=!0,_e}function Fe(Me,_e){return function(Ve,ue){for(;!Ve.eol();){if(Ve.match(_e)){ue.tokenize=Ee;break}Ve.next()}return Me}}function Ge(Me){return function(_e,Ve){for(var ue;(ue=_e.next())!=null;){if(ue=="<")return Ve.tokenize=Ge(Me+1),Ve.tokenize(_e,Ve);if(ue==">")if(Me==1){Ve.tokenize=Ee;break}else return Ve.tokenize=Ge(Me-1),Ve.tokenize(_e,Ve)}return"meta"}}function ze(Me,_e,Ve){this.prev=Me.context,this.tagName=_e,this.indent=Me.indented,this.startOfLine=Ve,(Te.doNotIndent.hasOwnProperty(_e)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function wt(Me){Me.context&&(Me.context=Me.context.prev)}function Tt(Me,_e){for(var Ve;;){if(!Me.context||(Ve=Me.context.tagName,!Te.contextGrabbers.hasOwnProperty(Ve)||!Te.contextGrabbers[Ve].hasOwnProperty(_e)))return;wt(Me)}}function zt(Me,_e,Ve){return Me=="openTag"?(Ve.tagStart=_e.column(),St):Me=="closeTag"?pt:zt}function St(Me,_e,Ve){return Me=="word"?(Ve.tagName=_e.current(),Xe="tag",Lt):Te.allowMissingTagName&&Me=="endTag"?(Xe="tag bracket",Lt(Me,_e,Ve)):(Xe="error",St)}function pt(Me,_e,Ve){if(Me=="word"){var ue=_e.current();return Ve.context&&Ve.context.tagName!=ue&&Te.implicitlyClosed.hasOwnProperty(Ve.context.tagName)&&wt(Ve),Ve.context&&Ve.context.tagName==ue||Te.matchClosing===!1?(Xe="tag",dt):(Xe="tag error",He)}else return Te.allowMissingTagName&&Me=="endTag"?(Xe="tag bracket",dt(Me,_e,Ve)):(Xe="error",He)}function dt(Me,_e,Ve){return Me!="endTag"?(Xe="error",dt):(wt(Ve),zt)}function He(Me,_e,Ve){return Xe="error",dt(Me,_e,Ve)}function Lt(Me,_e,Ve){if(Me=="word")return Xe="attribute",tt;if(Me=="endTag"||Me=="selfcloseTag"){var ue=Ve.tagName,ct=Ve.tagStart;return Ve.tagName=Ve.tagStart=null,Me=="selfcloseTag"||Te.autoSelfClosers.hasOwnProperty(ue)?Tt(Ve,ue):(Tt(Ve,ue),Ve.context=new ze(Ve,ue,ct==Ve.indented)),zt}return Xe="error",Lt}function tt(Me,_e,Ve){return Me=="equals"?ot:(Te.allowMissing||(Xe="error"),Lt(Me,_e,Ve))}function ot(Me,_e,Ve){return Me=="string"?xt:Me=="word"&&Te.allowUnquoted?(Xe="string",Lt):(Xe="error",Lt(Me,_e,Ve))}function xt(Me,_e,Ve){return Me=="string"?xt:Lt(Me,_e,Ve)}return{startState:function(Me){var _e={tokenize:Ee,state:zt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(_e.baseIndent=Me),_e},token:function(Me,_e){if(!_e.tagName&&Me.sol()&&(_e.indented=Me.indentation()),Me.eatSpace())return null;he=null;var Ve=_e.tokenize(Me,_e);return(Ve||he)&&Ve!="comment"&&(Xe=null,_e.state=_e.state(he||Ve,Me,_e),Xe&&(Ve=Xe=="error"?Ve+" error":Xe)),Ve},indent:function(Me,_e,Ve){var ue=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+Ie;if(ue&&ue.noIndent)return z.Pass;if(Me.tokenize!=Mt&&Me.tokenize!=Ee)return Ve?Ve.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Te.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+Ie*(Te.multilineTagIndentFactor||1);if(Te.alignCDATA&&/$/,blockCommentStart:"",configuration:Te.htmlMode?"html":"xml",helperType:Te.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==ot&&(Me.state=Lt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var _e=[],Ve=Me.context;Ve;Ve=Ve.prev)Ve.tagName&&_e.push(Ve.tagName);return _e.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(fn,_t,re){"use strict";re.d(_t,{hP:function(){return yt}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function it(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ve(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function pe(Oe){try{mt(oe.next(Oe))}catch(Ue){ne(Ue)}}function Ce(Oe){try{mt(oe.throw(Oe))}catch(Ue){ne(Ue)}}function mt(Oe){var Ue;Oe.done?se(Oe.value):(Ue=Oe.value,Ue instanceof ee?Ue:new ee(function(ft){ft(Ue)})).then(pe,Ce)}mt((oe=oe.apply(ae,te||[])).next())})}function Qe(ae,te){var ee,oe,se,ne,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:Ce(0),throw:Ce(1),return:Ce(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ce(mt){return function(Oe){return function(Ue){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&Ue[0]?oe.return:Ue[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ue[1])).done)return se;switch(oe=0,se&&(Ue=[2&Ue[0],se.value]),Ue[0]){case 0:case 1:se=Ue;break;case 4:return pe.label++,{value:Ue[1],done:!1};case 5:pe.label++,oe=Ue[1],Ue=[0];continue;case 7:Ue=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||Ue[0]!==6&&Ue[0]!==2)){pe=0;continue}if(Ue[0]===3&&(!se||Ue[1]>se[0]&&Ue[1]',"select"),this.addActionButton(oe,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'',"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(ne){var pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",ne.typeName),pe.innerHTML=ne.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,ne)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'',"render"),this.addActionButton(se,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Je=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px; padding: `+ee+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var pe;ne.uiStyleSettings=se.uiStyleSettings;var Ce=document.createElement("div");Ce.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),Ce.innerHTML=ne.icon,Ce.title=ne.title,Ce.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(Ce),se.buttonRow.appendChild(Ce)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,pe){var Ce,mt;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((Ce=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ce!==void 0?Ce:ee.toolboxActiveButtonStyleColorsClass.name):""+((mt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&mt!==void 0?mt:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Fe=function(ae,te){this.title=ae,this.icon=te},Ge=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'')||this;return pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=ee.getColorBox(se);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=ne-2+"px",pe.style.height=ne-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(ne+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var Ce=document.createElement("div");return Ce.style.display="inline-block",Ce.style.width=ne-2+"px",Ce.style.height=ne-2+"px",Ce.style.backgroundColor=ee,Ce.style.borderRadius=ne/2+"px",ee==="transparent"&&(Ce.style.fill=this.uiStyleSettings.toolboxAccentColor,Ce.innerHTML=` `),pe.appendChild(Ce),pe},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Fe),ze=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),wt=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),Tt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ie.createGroup(),this.visual.appendChild(Ie.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ie.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),zt=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),St=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Ie.createTransform()),ne.setupControlBox(),ne}return it(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Ie.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,pe=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),pe>=0?(this.top=ne,this.height=pe):(this.top=ne+pe,this.height=-pe),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Ie.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Ie.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ie.createGroup();var ee=Ie.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Ie.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=Ie.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 wt,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Tt;return ee.visual.transform.baseVal.appendItem(Ie.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,Ce=this.height+this.CB_DISTANCE-ee/2,mt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,mt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,mt,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Ce),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ce),this.positionGrip(this.controlGrips.bottomRight.visual,mt,Ce),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:zt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:zt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(zt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(zt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(ze),pt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ie.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ie.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ie.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ie.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ie.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(St),dt=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",ne.appendChild(pe);var Ce=document.createElement("div");Ce.style.minHeight="20px",Ce.style.flexGrow="2",Ce.style.display="flex",Ce.style.alignItems="center";var mt=document.createElement("hr");mt.style.minWidth="20px",mt.style.border="0px",mt.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,mt.style.flexGrow="2",Ce.appendChild(mt),ne.appendChild(Ce),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Fe),He=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'')||this;return pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var Ce=` `;pe.innerHTML=Ce,ne.appendChild(pe),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Fe),Lt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='',te}(pt),tt=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"},ot=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ie.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new Tt;return ee.visual.transform.baseVal.appendItem(Ie.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(ze),xt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.selectorLine=Ie.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ie.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ie.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ie.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ie.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='',te}(ot),Me=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'')||this;return pe.fonts=[],pe.fontBoxes=[],pe.fonts=oe,pe.currentFont=se,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var Ce=document.createElement("div");Ce.style.whiteSpace="nowrap",Ce.style.overflow="hidden",Ce.style.textOverflow="ellipsis",Ce.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(Ce),ne.appendChild(pe),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Fe),_e=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ge("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.bgRectangle=Ie.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ie.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ie.createTransform()),this.textElement.transform.baseVal.appendItem(Ie.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Ie.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:se,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ie.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*ee,y:se.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Ie.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Ie.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='',te}(St),Ve=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ge("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.drawingImage=Ie.createImage(),this.visual.appendChild(this.drawingImage);var ee=Ie.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Ie.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ie.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],pe=oe[2],Ce=oe[3],mt=!1,Oe=0;Oe0&&(mt=!0,OeCe&&(Ce=Oe),Ue>pe&&(pe=Ue));if(mt){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(Ce-ne)/this.pixelRatio;var ft=document.createElement("canvas");ft.width=pe-se,ft.height=Ce-ne,ft.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,Ce-ne),0,0),this.drawingImgUrl=ft.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Ie.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ie.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='',te}(St),ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(Ce){var mt="both";switch(Ce){case 0:mt="both";break;case 1:mt="start";break;case 2:mt="end";break;case 3:mt="none"}var Oe=document.createElement("div");if(Oe.style.display="flex",Oe.style.flexGrow="2",Oe.style.alignItems="center",Oe.style.justifyContent="space-between",Oe.style.padding="5px",Oe.style.borderWidth="2px",Oe.style.borderStyle="solid",Oe.style.borderColor=mt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){ee.setCurrentType(mt,Oe)}),oe.appendChild(Oe),mt==="both"||mt==="start"){var Ue=document.createElement("div");Ue.style.display="flex",Ue.style.alignItems="center",Ue.style.minHeight="20px",Ue.innerHTML=` `,Ue.style.marginLeft="5px",Oe.appendChild(Ue)}var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.style.flexGrow="2";var Ot=document.createElement("hr");if(Ot.style.minWidth="20px",Ot.style.border="0px",Ot.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Ot.style.flexGrow="2",ft.appendChild(Ot),Oe.appendChild(ft),mt==="both"||mt==="end"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.innerHTML=` `,vt.style.marginRight="5px",Oe.appendChild(vt)}ne.typeBoxes.push(Oe)},ne=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Fe),ct=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+se/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Ie.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ie.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ie.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ie.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ie.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ie.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='',te}(xt),ke=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ge("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return it(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='',te}(pt),nt=function(ae){function te(ee,oe,se,ne){var pe=ae.call(this,ee,ne||'')||this;return pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=100*se+"%",ne.appendChild(pe),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Fe),Ft=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ge("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new nt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ie.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='',te}(ke),xe='',fe='',Ct=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ge("Text color",se.defaultColorSet,ne.color,xe),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ge("Fill color",se.defaultColorSet,ne.bgColor,fe),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Tt,ne.tipGrip.visual.transform.baseVal.appendItem(Ie.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Ie.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ie.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Ie.setAttributes(this.bgRectangle,[["fill",ee]]),Ie.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=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?ne.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='',te}(xt),me=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return it(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='',te}(Ut),Be=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Re=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ge("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.selectorCurve=Ie.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ie.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ie.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ie.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ie.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ie.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ie.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='',te}(ot),Dt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ge("Line color",be(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ge("Fill color",be(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Me("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ge("Text color",se.defaultColorSet,ne.textColor,xe),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Ie.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ie.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ie.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=Ie.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ie.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')"]]),Ie.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Ie.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Ie.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ie.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Ie.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Ie.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Ie.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Ie.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='',te}(St),Et=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),jt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return it(te,ae),te}(Et),Ne=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,ee,se)||this;return ne.marker=oe,ne}return it(te,ae),te}(Et),Vt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),yt=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new tt,this._isOpen=!1,this.undoRedoManager=new Be,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 Vt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Lt,Ve,ct,_e,me,Ut,Ft,Ct,Pt,ke,xt,Re,Dt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Lt,Ve,ct,_e,Ut,Ft,Ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Lt,Ve,ct,_e,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Te.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Et(te))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return Qe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new qe).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var ne=new Et(ee,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Et(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Mt(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(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Ne(te,te._currentMarker,!0);se(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Ne(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var Ce=new Ne(te,void 0,!0);pe(Ce),Ce.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var Ce=se.markers[pe];se.setCurrentMarker(se.markers[pe]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(mt){return mt(new Ne(te,Ce))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Te.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Et(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new Et(te))}))},ae.instanceCounter=0,ae}()},6551:function(fn,_t,re){"use strict";re.d(_t,{ZP:function(){return Te}});var z=re(72190),it=re(59301),ve=re(47273),Qe=0,be=(0,ve.Z)();function Ie(){var qe;return be?(qe=Qe,Qe+=1):qe="TEST_OR_SSR",qe}function Te(qe){var Se=it.useState(),he=(0,z.Z)(Se,2),Xe=he[0],Ee=he[1];return it.useEffect(function(){Ee("rc_select_".concat(Ie()))},[]),qe||Xe}},37463:function(fn,_t,re){"use strict";re.d(_t,{Ac:function(){return kt},Xo:function(){return Kt},Wx:function(){return st},ZP:function(){return xn},lk:function(){return zt}});var z=re(60499),it=re(77654),ve=re(18642),Qe=re(85899),be=re(72190),Ie=re(42244),Te=re(43749),qe=re(18929),Se=re(48736),he=re(59301),Xe=re(92310),Ee=re.n(Xe),Mt=re(34280),Je=re(49658),Fe=re(8654),Ge=function(rt){var we=rt.className,$e=rt.customizeIcon,Pe=rt.customizeIconProps,je=rt.children,ye=rt.onMouseDown,et=rt.onClick,at=typeof $e=="function"?$e(Pe):$e;return he.createElement("span",{className:we,onMouseDown:function(lt){lt.preventDefault(),ye==null||ye(lt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:et,"aria-hidden":!0},at!==void 0?at:he.createElement("span",{className:Ee()(we.split(/\s+/).map(function(bt){return"".concat(bt,"-icon")}))},je))},ze=Ge,wt=function(rt,we,$e,Pe,je){var ye=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,et=arguments.length>6?arguments[6]:void 0,at=arguments.length>7?arguments[7]:void 0,bt=he.useMemo(function(){if((0,Te.Z)(Pe)==="object")return Pe.clearIcon;if(je)return je},[Pe,je]),lt=he.useMemo(function(){return!!(!ye&&Pe&&($e.length||et)&&!(at==="combobox"&&et===""))},[Pe,ye,$e.length,et,at]);return{allowClear:lt,clearIcon:he.createElement(ze,{className:"".concat(rt,"-clear"),onMouseDown:we,customizeIcon:bt},"\xD7")}},Tt=he.createContext(null);function zt(){return he.useContext(Tt)}function St(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,rt=he.useState(!1),we=(0,be.Z)(rt,2),$e=we[0],Pe=we[1],je=he.useRef(null),ye=function(){window.clearTimeout(je.current)};he.useEffect(function(){return ye},[]);var et=function(bt,lt){ye(),je.current=window.setTimeout(function(){Pe(bt),lt&<()},Ae)};return[$e,et,ye]}function pt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,rt=he.useRef(null),we=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(we.current)}},[]);function $e(Pe){(Pe||rt.current===null)&&(rt.current=Pe),window.clearTimeout(we.current),we.current=window.setTimeout(function(){rt.current=null},Ae)}return[function(){return rt.current},$e]}function dt(Ae,rt,we,$e){var Pe=he.useRef(null);Pe.current={open:rt,triggerOpen:we,customizedTrigger:$e},he.useEffect(function(){function je(ye){var et;if(!((et=Pe.current)!==null&&et!==void 0&&et.customizedTrigger)){var at=ye.target;at.shadowRoot&&ye.composed&&(at=ye.composedPath()[0]||at),Pe.current.open&&Ae().filter(function(bt){return bt}).every(function(bt){return!bt.contains(at)&&bt!==at})&&Pe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",je),function(){return window.removeEventListener("mousedown",je)}},[])}var He=re(10228);function Lt(Ae){return Ae&&![He.Z.ESC,He.Z.SHIFT,He.Z.BACKSPACE,He.Z.TAB,He.Z.WIN_KEY,He.Z.ALT,He.Z.META,He.Z.WIN_KEY_RIGHT,He.Z.CTRL,He.Z.SEMICOLON,He.Z.EQUALS,He.Z.CAPS_LOCK,He.Z.CONTEXT_MENU,He.Z.F1,He.Z.F2,He.Z.F3,He.Z.F4,He.Z.F5,He.Z.F6,He.Z.F7,He.Z.F8,He.Z.F9,He.Z.F10,He.Z.F11,He.Z.F12].includes(Ae)}var tt=re(26112),ot=re(83836);function xt(Ae,rt,we){var $e=(0,Qe.Z)((0,Qe.Z)({},Ae),we?rt:{});return Object.keys(rt).forEach(function(Pe){var je=rt[Pe];typeof je=="function"&&($e[Pe]=function(){for(var ye,et=arguments.length,at=new Array(et),bt=0;btVn&&(Bn="".concat(zn.slice(0,Vn),"..."))}var cr=function(Pr){Pr&&Pr.stopPropagation(),qn(hn)};return typeof Nn=="function"?or(yn,Bn,jn,pn,cr):Dr(hn,Bn,jn,pn,cr)},er=function(hn){if(!Pe.length)return null;var jn=typeof kn=="function"?kn(hn):kn;return typeof Nn=="function"?or(void 0,jn,!1,!1,void 0,!0):Dr({title:jn},jn,!1)},gn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},he.createElement(ct,{ref:at,open:je,prefixCls:$e,id:we,inputElement:null,disabled:lt,autoFocus:ut,autoComplete:un,editable:Ir,activeDescendantId:en,value:Br,onKeyDown:Tn,onMouseDown:nr,onChange:Kn,onPaste:Qn,onCompositionStart:Gn,onCompositionEnd:dr,onBlur:pr,tabIndex:ln,attrs:(0,tt.Z)(rt,!0)}),he.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),wn=he.createElement(ot.Z,{prefixCls:"".concat(Er,"-overflow"),data:Pe,renderItem:ir,renderRest:er,suffix:gn,itemKey:me,maxCount:Hn});return he.createElement("span",{className:"".concat(Er,"-wrap")},wn,!Pe.length&&!Br&&he.createElement("span",{className:"".concat(Er,"-placeholder")},bt))},Dt=Re,Et=function(rt){var we=rt.inputElement,$e=rt.prefixCls,Pe=rt.id,je=rt.inputRef,ye=rt.disabled,et=rt.autoFocus,at=rt.autoComplete,bt=rt.activeDescendantId,lt=rt.mode,We=rt.open,Ze=rt.values,ut=rt.placeholder,un=rt.tabIndex,en=rt.showSearch,ln=rt.searchValue,$n=rt.activeValue,Hn=rt.maxLength,Vn=rt.onInputKeyDown,Fn=rt.onInputMouseDown,kn=rt.onInputChange,Nn=rt.onInputPaste,Zn=rt.onInputCompositionStart,qn=rt.onInputCompositionEnd,Kn=rt.onInputBlur,Qn=rt.title,Tn=he.useState(!1),nr=(0,be.Z)(Tn,2),Gn=nr[0],dr=nr[1],pr=lt==="combobox",sr=pr||en,ur=Ze[0],yr=ln||"";pr&&$n&&!Gn&&(yr=$n),he.useEffect(function(){pr&&dr(!1)},[pr,$n]);var lr=lt!=="combobox"&&!We&&!en?!1:!!yr,fr=Qn===void 0?Ut(ur):Qn,tr=he.useMemo(function(){return ur?null:he.createElement("span",{className:"".concat($e,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},ut)},[ur,lr,ut,$e]);return he.createElement("span",{className:"".concat($e,"-selection-wrap")},he.createElement("span",{className:"".concat($e,"-selection-search")},he.createElement(ct,{ref:je,prefixCls:$e,id:Pe,open:We,inputElement:we,disabled:ye,autoFocus:et,autoComplete:at,editable:sr,activeDescendantId:bt,value:yr,onKeyDown:Vn,onMouseDown:Fn,onChange:function(br){dr(!0),kn(br)},onPaste:Nn,onCompositionStart:Zn,onCompositionEnd:qn,onBlur:Kn,tabIndex:un,attrs:(0,tt.Z)(rt,!0),maxLength:pr?Hn:void 0})),!pr&&ur?he.createElement("span",{className:"".concat($e,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,tr)},jt=Et,Ne=function(rt,we){var $e=(0,he.useRef)(null),Pe=(0,he.useRef)(!1),je=rt.prefixCls,ye=rt.open,et=rt.mode,at=rt.showSearch,bt=rt.tokenWithEnter,lt=rt.disabled,We=rt.prefix,Ze=rt.autoClearSearchValue,ut=rt.onSearch,un=rt.onSearchSubmit,en=rt.onToggleOpen,ln=rt.onInputKeyDown,$n=rt.onInputBlur,Hn=rt.domRef;he.useImperativeHandle(we,function(){return{focus:function(fr){$e.current.focus(fr)},blur:function(){$e.current.blur()}}});var Vn=pt(0),Fn=(0,be.Z)(Vn,2),kn=Fn[0],Nn=Fn[1],Zn=function(fr){var tr=fr.which,mr=$e.current instanceof HTMLTextAreaElement;!mr&&ye&&(tr===He.Z.UP||tr===He.Z.DOWN)&&fr.preventDefault(),ln&&ln(fr),tr===He.Z.ENTER&&et==="tags"&&!Pe.current&&!ye&&(un==null||un(fr.target.value)),!(mr&&!ye&&~[He.Z.UP,He.Z.DOWN,He.Z.LEFT,He.Z.RIGHT].indexOf(tr))&&Lt(tr)&&en(!0)},qn=function(){Nn(!0)},Kn=(0,he.useRef)(null),Qn=function(fr){ut(fr,!0,Pe.current)!==!1&&en(!0)},Tn=function(){Pe.current=!0},nr=function(fr){Pe.current=!1,et!=="combobox"&&Qn(fr.target.value)},Gn=function(fr){var tr=fr.target.value;if(bt&&Kn.current&&/[\r\n]/.test(Kn.current)){var mr=Kn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");tr=tr.replace(mr,Kn.current)}Kn.current=null,Qn(tr)},dr=function(fr){var tr=fr.clipboardData,mr=tr==null?void 0:tr.getData("text");Kn.current=mr||""},pr=function(fr){var tr=fr.target;if(tr!==$e.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){$e.current.focus()}):$e.current.focus()}},sr=function(fr){var tr=kn();fr.target!==$e.current&&!tr&&!(et==="combobox"&<)&&fr.preventDefault(),(et!=="combobox"&&(!at||!tr)||!ye)&&(ye&&Ze!==!1&&ut("",!0,!1),en())},ur={inputRef:$e,onInputKeyDown:Zn,onInputMouseDown:qn,onInputChange:Gn,onInputPaste:dr,onInputCompositionStart:Tn,onInputCompositionEnd:nr,onInputBlur:$n},yr=et==="multiple"||et==="tags"?he.createElement(Dt,(0,z.Z)({},rt,ur)):he.createElement(jt,(0,z.Z)({},rt,ur));return he.createElement("div",{ref:Hn,className:"".concat(je,"-selector"),onClick:pr,onMouseDown:sr},We&&he.createElement("div",{className:"".concat(je,"-prefix")},We),yr)},Vt=he.forwardRef(Ne),yt=Vt,ae=re(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(rt){var we=rt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:we,adjustY:1},htmlRegion:"scroll"}}},oe=function(rt,we){var $e=rt.prefixCls,Pe=rt.disabled,je=rt.visible,ye=rt.children,et=rt.popupElement,at=rt.animation,bt=rt.transitionName,lt=rt.dropdownStyle,We=rt.dropdownClassName,Ze=rt.direction,ut=Ze===void 0?"ltr":Ze,un=rt.placement,en=rt.builtinPlacements,ln=rt.dropdownMatchSelectWidth,$n=rt.dropdownRender,Hn=rt.dropdownAlign,Vn=rt.getPopupContainer,Fn=rt.empty,kn=rt.getTriggerDOMNode,Nn=rt.onPopupVisibleChange,Zn=rt.onPopupMouseEnter,qn=(0,Ie.Z)(rt,te),Kn="".concat($e,"-dropdown"),Qn=et;$n&&(Qn=$n(et));var Tn=he.useMemo(function(){return en||ee(ln)},[en,ln]),nr=at?"".concat(Kn,"-").concat(at):bt,Gn=typeof ln=="number",dr=he.useMemo(function(){return Gn?null:ln===!1?"minWidth":"width"},[ln,Gn]),pr=lt;Gn&&(pr=(0,Qe.Z)((0,Qe.Z)({},pr),{},{width:ln}));var sr=he.useRef(null);return he.useImperativeHandle(we,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),he.createElement(ae.Z,(0,z.Z)({},qn,{showAction:Nn?["click"]:[],hideAction:Nn?["click"]:[],popupPlacement:un||(ut==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Tn,prefixCls:Kn,popupTransitionName:nr,popup:he.createElement("div",{onMouseEnter:Zn},Qn),ref:sr,stretch:dr,popupAlign:Hn,popupVisible:je,getPopupContainer:Vn,popupClassName:Ee()(We,(0,ve.Z)({},"".concat(Kn,"-empty"),Fn)),popupStyle:pr,getTriggerDOMNode:kn,onPopupVisibleChange:Nn}),ye)},se=he.forwardRef(oe),ne=se,pe=re(48745);function Ce(Ae,rt){var we=Ae.key,$e;return"value"in Ae&&($e=Ae.value),we!=null?we:$e!==void 0?$e:"rc-index-key-".concat(rt)}function mt(Ae){return typeof Ae!="undefined"&&!Number.isNaN(Ae)}function Oe(Ae,rt){var we=Ae||{},$e=we.label,Pe=we.value,je=we.options,ye=we.groupLabel,et=$e||(rt?"children":"label");return{label:et,value:Pe||"value",options:je||"options",groupLabel:ye||et}}function Ue(Ae){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},we=rt.fieldNames,$e=rt.childrenAsData,Pe=[],je=Oe(we,!1),ye=je.label,et=je.value,at=je.options,bt=je.groupLabel;function lt(We,Ze){Array.isArray(We)&&We.forEach(function(ut){if(Ze||!(at in ut)){var un=ut[et];Pe.push({key:Ce(ut,Pe.length),groupOption:Ze,data:ut,label:ut[ye],value:un})}else{var en=ut[bt];en===void 0&&$e&&(en=ut.label),Pe.push({key:Ce(ut,Pe.length),group:!0,data:ut,label:en}),lt(ut[at],!0)}})}return lt(Ae,!1),Pe}function ft(Ae){var rt=(0,Qe.Z)({},Ae);return"props"in rt||Object.defineProperty(rt,"props",{get:function(){return(0,Se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),rt}}),rt}var Ot=function(rt,we,$e){if(!we||!we.length)return null;var Pe=!1,je=function et(at,bt){var lt=(0,pe.Z)(bt),We=lt[0],Ze=lt.slice(1);if(!We)return[at];var ut=at.split(We);return Pe=Pe||ut.length>1,ut.reduce(function(un,en){return[].concat((0,it.Z)(un),(0,it.Z)(et(en,Ze)))},[]).filter(Boolean)},ye=je(rt,we);return Pe?typeof $e!="undefined"?ye.slice(0,$e):ye:null},vt=he.createContext(null),Jt=vt;function Yt(Ae){var rt=Ae.visible,we=Ae.values;if(!rt)return null;var $e=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(we.slice(0,$e).map(function(Pe){var je=Pe.label,ye=Pe.value;return["number","string"].includes((0,Te.Z)(je))?je:ye}).join(", ")),we.length>$e?", ...":null)}var Gt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],sn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],nn=function(rt){return rt==="tags"||rt==="multiple"},dn=he.forwardRef(function(Ae,rt){var we,$e=Ae.id,Pe=Ae.prefixCls,je=Ae.className,ye=Ae.showSearch,et=Ae.tagRender,at=Ae.direction,bt=Ae.omitDomProps,lt=Ae.displayValues,We=Ae.onDisplayValuesChange,Ze=Ae.emptyOptions,ut=Ae.notFoundContent,un=ut===void 0?"Not Found":ut,en=Ae.onClear,ln=Ae.mode,$n=Ae.disabled,Hn=Ae.loading,Vn=Ae.getInputElement,Fn=Ae.getRawInputElement,kn=Ae.open,Nn=Ae.defaultOpen,Zn=Ae.onDropdownVisibleChange,qn=Ae.activeValue,Kn=Ae.onActiveValueChange,Qn=Ae.activeDescendantId,Tn=Ae.searchValue,nr=Ae.autoClearSearchValue,Gn=Ae.onSearch,dr=Ae.onSearchSplit,pr=Ae.tokenSeparators,sr=Ae.allowClear,ur=Ae.prefix,yr=Ae.suffixIcon,lr=Ae.clearIcon,fr=Ae.OptionList,tr=Ae.animation,mr=Ae.transitionName,br=Ae.dropdownStyle,zr=Ae.dropdownClassName,Er=Ae.dropdownMatchSelectWidth,Br=Ae.dropdownRender,Ir=Ae.dropdownAlign,Dr=Ae.placement,or=Ae.builtinPlacements,ir=Ae.getPopupContainer,er=Ae.showAction,gn=er===void 0?[]:er,wn=Ae.onFocus,Cn=Ae.onBlur,hn=Ae.onKeyUp,jn=Ae.onKeyDown,Un=Ae.onMouseDown,yn=(0,Ie.Z)(Ae,Gt),pn=nn(ln),Bn=(ye!==void 0?ye:pn)||ln==="combobox",zn=(0,Qe.Z)({},yn);sn.forEach(function(Wr){delete zn[Wr]}),bt==null||bt.forEach(function(Wr){delete zn[Wr]});var cr=he.useState(!1),kr=(0,be.Z)(cr,2),Pr=kr[0],Fr=kr[1];he.useEffect(function(){Fr((0,Je.Z)())},[]);var Ar=he.useRef(null),Rr=he.useRef(null),Vr=he.useRef(null),Hr=he.useRef(null),Kr=he.useRef(null),ti=he.useRef(!1),Ei=St(),Ni=(0,be.Z)(Ei,3),xi=Ni[0],si=Ni[1],Fi=Ni[2];he.useImperativeHandle(rt,function(){var Wr,Mr;return{focus:(Wr=Hr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Mr=Hr.current)===null||Mr===void 0?void 0:Mr.blur,scrollTo:function(Ci){var ii;return(ii=Kr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Ar.current||Rr.current}});var jr=he.useMemo(function(){var Wr;if(ln!=="combobox")return Tn;var Mr=(Wr=lt[0])===null||Wr===void 0?void 0:Wr.value;return typeof Mr=="string"||typeof Mr=="number"?String(Mr):""},[Tn,ln,lt]),Ui=ln==="combobox"&&typeof Vn=="function"&&Vn()||null,qr=typeof Fn=="function"&&Fn(),xr=(0,Fe.x1)(Rr,qr==null||(we=qr.props)===null||we===void 0?void 0:we.ref),$r=he.useState(!1),_r=(0,be.Z)($r,2),wr=_r[0],Nr=_r[1];(0,Mt.Z)(function(){Nr(!0)},[]);var Tr=(0,qe.Z)(!1,{defaultValue:Nn,value:kn}),ui=(0,be.Z)(Tr,2),Di=ui[0],fi=ui[1],ni=wr?Di:!1,xo=!un&&Ze;($n||xo&&ni&&ln==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=he.useCallback(function(Wr){var Mr=Wr!==void 0?Wr:!ni;$n||(fi(Mr),ni!==Mr&&(Zn==null||Zn(Mr)))},[$n,ni,fi,Zn]),Or=he.useMemo(function(){return(pr||[]).some(function(Wr){return[` `,`\r `].includes(Wr)})},[pr]),Cr=he.useContext(Jt)||{},Sr=Cr.maxCount,Zr=Cr.rawValues,Xr=function(Mr,yi,Ci){if(!(pn&&mt(Sr)&&(Zr==null?void 0:Zr.size)>=Sr)){var ii=!0,ci=Mr;Kn==null||Kn(null);var Yi=Ot(Mr,pr,mt(Sr)?Sr-Zr.size:void 0),Gi=Ci?null:Yi;return ln!=="combobox"&&Gi&&(ci="",dr==null||dr(Gi),gr(!1),ii=!1),Gn&&jr!==ci&&Gn(ci,{source:yi?"typing":"effect"}),ii}},Ki=function(Mr){!Mr||!Mr.trim()||Gn(Mr,{source:"submit"})};he.useEffect(function(){!ni&&!pn&&ln!=="combobox"&&Xr("",!1,!1)},[ni]),he.useEffect(function(){Di&&$n&&fi(!1),$n&&!ti.current&&si(!1)},[$n]);var Ii=pt(),vi=(0,be.Z)(Ii,2),ri=vi[0],_i=vi[1],eo=he.useRef(!1),Ri=function(Mr){var yi=ri(),Ci=Mr.key,ii=Ci==="Enter";if(ii&&(ln!=="combobox"&&Mr.preventDefault(),ni||gr(!0)),_i(!!jr),Ci==="Backspace"&&!yi&&pn&&!jr&<.length){for(var ci=(0,it.Z)(lt),Yi=null,Gi=ci.length-1;Gi>=0;Gi-=1){var oo=ci[Gi];if(!oo.disabled){ci.splice(Gi,1),Yi=oo;break}}Yi&&We(ci,{type:"remove",values:[Yi]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Qi=1;Qi<$i;Qi++)zi[Qi-1]=arguments[Qi];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Kr.current)===null||co===void 0||co.onKeyDown.apply(co,[Mr].concat(zi))}jn==null||jn.apply(void 0,[Mr].concat(zi))},to=function(Mr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii1?Yi-1:0),oo=1;oo=un},[et,un,Fn==null?void 0:Fn.size]),pr=function(gn){gn.preventDefault()},sr=function(gn){var wn;(wn=Gn.current)===null||wn===void 0||wn.scrollTo(typeof gn=="number"?{index:gn}:gn)},ur=he.useCallback(function(er){return at==="combobox"?!1:Fn.has(er)},[at,(0,it.Z)(Fn).toString(),Fn.size]),yr=function(gn){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Cn=nr.length,hn=0;hn1&&arguments[1]!==void 0?arguments[1]:!1;mr(gn);var Cn={source:wn?"keyboard":"mouse"},hn=nr[gn];if(!hn){ln(null,-1,Cn);return}ln(hn.value,gn,Cn)};(0,he.useEffect)(function(){br($n!==!1?yr(0):-1)},[nr.length,bt]);var zr=he.useCallback(function(er){return at==="combobox"?String(er).toLowerCase()===bt.toLowerCase():Fn.has(er)},[at,bt,(0,it.Z)(Fn).toString(),Fn.size]);(0,he.useEffect)(function(){var er=setTimeout(function(){if(!et&&ye&&Fn.size===1){var wn=Array.from(Fn)[0],Cn=nr.findIndex(function(hn){var jn=hn.data;return bt?String(jn.value).startsWith(bt):jn.value===wn});Cn!==-1&&(br(Cn),sr(Cn))}});if(ye){var gn;(gn=Gn.current)===null||gn===void 0||gn.scrollTo(void 0)}return function(){return clearTimeout(er)}},[ye,bt]);var Er=function(gn){gn!==void 0&&Hn(gn,{selected:!Fn.has(gn)}),et||lt(!1)};if(he.useImperativeHandle(we,function(){return{onKeyDown:function(gn){var wn=gn.which,Cn=gn.ctrlKey;switch(wn){case He.Z.N:case He.Z.P:case He.Z.UP:case He.Z.DOWN:{var hn=0;if(wn===He.Z.UP?hn=-1:wn===He.Z.DOWN?hn=1:Ke()&&Cn&&(wn===He.Z.N?hn=1:wn===He.Z.P&&(hn=-1)),hn!==0){var jn=yr(tr+hn,hn);sr(jn),br(jn,!0)}break}case He.Z.TAB:case He.Z.ENTER:{var Un,yn=nr[tr];yn&&!(yn!=null&&(Un=yn.data)!==null&&Un!==void 0&&Un.disabled)&&!dr?Er(yn.value):Er(void 0),ye&&gn.preventDefault();break}case He.Z.ESC:lt(!1),ye&&gn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gn){sr(gn)}}}),nr.length===0)return he.createElement("div",{role:"listbox",id:"".concat(je,"_list"),className:"".concat(Tn,"-empty"),onMouseDown:pr},We);var Br=Object.keys(kn).map(function(er){return kn[er]}),Ir=function(gn){return gn.label};function Dr(er,gn){var wn=er.group;return{role:wn?"presentation":"option",id:"".concat(je,"_list_").concat(gn)}}var or=function(gn){var wn=nr[gn];if(!wn)return null;var Cn=wn.data||{},hn=Cn.value,jn=wn.group,Un=(0,tt.Z)(Cn,!0),yn=Ir(wn);return wn?he.createElement("div",(0,z.Z)({"aria-label":typeof yn=="string"&&!jn?yn:null},Un,{key:gn},Dr(wn,gn),{"aria-selected":zr(hn)}),hn):null},ir={role:"listbox",id:"".concat(je,"_list")};return he.createElement(he.Fragment,null,Nn&&he.createElement("div",(0,z.Z)({},ir,{style:{height:0,width:0,overflow:"hidden"}}),or(tr-1),or(tr),or(tr+1)),he.createElement(De.Z,{itemKey:"key",ref:Gn,data:nr,height:qn,itemHeight:Kn,fullHeight:!1,onMouseDown:pr,onScroll:Ze,virtual:Nn,direction:Zn,innerProps:Nn?null:ir},function(er,gn){var wn=er.group,Cn=er.groupOption,hn=er.data,jn=er.label,Un=er.value,yn=hn.key;if(wn){var pn,Bn=(pn=hn.title)!==null&&pn!==void 0?pn:Bt(jn)?jn.toString():void 0;return he.createElement("div",{className:Ee()(Tn,"".concat(Tn,"-group"),hn.className),title:Bn},jn!==void 0?jn:yn)}var zn=hn.disabled,cr=hn.title,kr=hn.children,Pr=hn.style,Fr=hn.className,Ar=(0,Ie.Z)(hn,gt),Rr=(0,Wt.Z)(Ar,Br),Vr=ur(Un),Hr=zn||!Vr&&dr,Kr="".concat(Tn,"-option"),ti=Ee()(Tn,Kr,Fr,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Kr,"-grouped"),Cn),"".concat(Kr,"-active"),tr===gn&&!Hr),"".concat(Kr,"-disabled"),Hr),"".concat(Kr,"-selected"),Vr)),Ei=Ir(er),Ni=!Vn||typeof Vn=="function"||Vr,xi=typeof Ei=="number"?Ei:Ei||Un,si=Bt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),he.createElement("div",(0,z.Z)({},(0,tt.Z)(Rr),Nn?{}:Dr(er,gn),{"aria-selected":zr(Un),className:ti,title:si,onMouseMove:function(){tr===gn||Hr||br(gn)},onClick:function(){Hr||Er(Un)},style:Pr}),he.createElement("div",{className:"".concat(Kr,"-content")},typeof Qn=="function"?Qn(er,{index:gn}):xi),he.isValidElement(Vn)||Vr,Ni&&he.createElement(ze,{className:"".concat(Tn,"-option-state"),customizeIcon:Vn,customizeIconProps:{value:Un,disabled:Hr,isSelected:Vr}},Vr?"\u2713":null))}))},mn=he.forwardRef(Qt),Dn=mn,Mn=function(Ae,rt){var we=he.useRef({values:new Map,options:new Map}),$e=he.useMemo(function(){var je=we.current,ye=je.values,et=je.options,at=Ae.map(function(We){if(We.label===void 0){var Ze;return(0,Qe.Z)((0,Qe.Z)({},We),{},{label:(Ze=ye.get(We.value))===null||Ze===void 0?void 0:Ze.label})}return We}),bt=new Map,lt=new Map;return at.forEach(function(We){bt.set(We.value,We),lt.set(We.value,rt.get(We.value)||et.get(We.value))}),we.current.values=bt,we.current.options=lt,at},[Ae,rt]),Pe=he.useCallback(function(je){return rt.get(je)||we.current.options.get(je)},[rt]);return[$e,Pe]};function cn(Ae,rt){return ke(Ae).join("").toUpperCase().includes(rt)}var En=function(Ae,rt,we,$e,Pe){return he.useMemo(function(){if(!we||$e===!1)return Ae;var je=rt.options,ye=rt.label,et=rt.value,at=[],bt=typeof $e=="function",lt=we.toUpperCase(),We=bt?$e:function(ut,un){return Pe?cn(un[Pe],lt):un[je]?cn(un[ye!=="children"?ye:"label"],lt):cn(un[et],lt)},Ze=bt?function(ut){return ft(ut)}:function(ut){return ut};return Ae.forEach(function(ut){if(ut[je]){var un=We(we,Ze(ut));if(un)at.push(ut);else{var en=ut[je].filter(function(ln){return We(we,Ze(ln))});en.length&&at.push((0,Qe.Z)((0,Qe.Z)({},ut),{},(0,ve.Z)({},je,en)))}return}We(we,Ze(ut))&&at.push(ut)}),at},[Ae,$e,Pe,we,rt])},vn=re(6551),Xt=re(11592),Rt=["children","value"],At=["children"];function It(Ae){var rt=Ae,we=rt.key,$e=rt.props,Pe=$e.children,je=$e.value,ye=(0,Ie.Z)($e,Rt);return(0,Qe.Z)({key:we,value:je!==void 0?je:we,children:Pe},ye)}function an(Ae){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xt.Z)(Ae).map(function(we,$e){if(!he.isValidElement(we)||!we.type)return null;var Pe=we,je=Pe.type.isSelectOptGroup,ye=Pe.key,et=Pe.props,at=et.children,bt=(0,Ie.Z)(et,At);return rt||!je?It(we):(0,Qe.Z)((0,Qe.Z)({key:"__RC_SELECT_GRP__".concat(ye===null?$e:ye,"__"),label:ye},bt),{},{options:an(at)})}).filter(function(we){return we})}var tn=function(rt,we,$e,Pe,je){return he.useMemo(function(){var ye=rt,et=!rt;et&&(ye=an(we));var at=new Map,bt=new Map,lt=function(ut,un,en){en&&typeof en=="string"&&ut.set(un[en],un)},We=function Ze(ut){for(var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=0;en1&&arguments[1]!==void 0?arguments[1]:!1,ye=0;ye0?gr(Sr.options):Sr.options}):Sr})},Ni=he.useMemo(function(){return Hn?Ei(ti):ti},[ti,Hn,ir]),xi=he.useMemo(function(){return Ue(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Or){var Cr=jn(Or);if(Bn(Cr),fr&&(Cr.length!==Pr.length||Cr.some(function(Xr,Ki){var Ii;return((Ii=Pr[Ki])===null||Ii===void 0?void 0:Ii.value)!==(Xr==null?void 0:Xr.value)}))){var Sr=lr?Cr:Cr.map(function(Xr){return Xr.value}),Zr=Cr.map(function(Xr){return ft(Fr(Xr.value))});fr(zr?Sr:Sr[0],zr?Zr:Zr[0])}},Fi=he.useState(null),jr=(0,be.Z)(Fi,2),Ui=jr[0],qr=jr[1],xr=he.useState(0),$r=(0,be.Z)(xr,2),_r=$r[0],wr=$r[1],Nr=qn!==void 0?qn:$e!=="combobox",Tr=he.useCallback(function(gr,Or){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Sr=Cr.source,Zr=Sr===void 0?"keyboard":Sr;wr(Or),ye&&$e==="combobox"&&gr!==null&&Zr==="keyboard"&&qr(String(gr))},[ye,$e]),ui=function(Or,Cr,Sr){var Zr=function(){var io,Xi=Fr(Or);return[lr?{label:Xi==null?void 0:Xi[Ir.label],value:Or,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Or}:Or,ft(Xi)]};if(Cr&&ut){var Xr=Zr(),Ki=(0,be.Z)(Xr,2),Ii=Ki[0],vi=Ki[1];ut(Ii,vi)}else if(!Cr&&un&&Sr!=="clear"){var ri=Zr(),_i=(0,be.Z)(ri,2),eo=_i[0],Ri=_i[1];un(eo,Ri)}},Di=Sn(function(gr,Or){var Cr,Sr=zr?Or.selected:!0;Sr?Cr=zr?[].concat((0,it.Z)(Pr),[gr]):[gr]:Cr=Pr.filter(function(Zr){return Zr.value!==gr}),si(Cr),ui(gr,Sr),$e==="combobox"?qr(""):(!nn||Ze)&&(er(""),qr(""))}),fi=function(Or,Cr){si(Or);var Sr=Cr.type,Zr=Cr.values;(Sr==="remove"||Sr==="clear")&&Zr.forEach(function(Xr){ui(Xr.value,!1,Sr)})},ni=function(Or,Cr){if(er(Or),qr(null),Cr.source==="submit"){var Sr=(Or||"").trim();if(Sr){var Zr=Array.from(new Set([].concat((0,it.Z)(Rr),[Sr])));si(Zr),ui(Sr,!0),er("")}return}Cr.source!=="blur"&&($e==="combobox"&&si(Or),lt==null||lt(Or))},xo=function(Or){var Cr=Or;$e!=="tags"&&(Cr=Or.map(function(Zr){var Xr=Cn.get(Zr);return Xr==null?void 0:Xr.value}).filter(function(Zr){return Zr!==void 0}));var Sr=Array.from(new Set([].concat((0,it.Z)(Rr),(0,it.Z)(Cr))));si(Sr),Sr.forEach(function(Zr){ui(Zr,!0)})},so=he.useMemo(function(){var gr=Qn!==!1&&ln!==!1;return(0,Qe.Z)((0,Qe.Z)({},gn),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Di,menuItemSelectedIcon:Kn,rawValues:Rr,fieldNames:Ir,virtual:gr,direction:Tn,listHeight:Gn,listItemHeight:pr,childrenAsData:Er,maxCount:tr,optionRender:Nn})},[tr,gn,xi,Tr,Nr,Di,Kn,Rr,Ir,Qn,ln,Tn,Gn,pr,Er,Nn]);return he.createElement(Jt.Provider,{value:so},he.createElement(kt,(0,z.Z)({},mr,{id:br,prefixCls:je,ref:rt,omitDomProps:Jn,mode:$e,displayValues:Ar,onDisplayValuesChange:fi,direction:Tn,searchValue:ir,onSearch:ni,autoClearSearchValue:Ze,onSearchSplit:xo,dropdownMatchSelectWidth:ln,OptionList:Dn,emptyOptions:!xi.length,activeValue:Ui,activeDescendantId:"".concat(br,"_list_").concat(_r)})))}),qt=Nt;qt.Option=st,qt.OptGroup=Kt;var In=qt,xn=In},22711:function(fn,_t,re){"use strict";re.r(_t),re.d(_t,{ResizableTextArea:function(){return Me},default:function(){return ct}});var z=re(60499),it=re(18642),ve=re(85899),Qe=re(77654),be=re(72190),Ie=re(42244),Te=re(92310),qe=re.n(Te),Se=re(36901),he=re(66003),Xe=re(30292),Ee=re(18929),Mt=re(59301),Je=re(43749),Fe=re(29301),Ge=re(34280),ze=re(16089),wt=` 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; `,Tt=["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"],zt={},St;function pt(ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=ke.getAttribute("id")||ke.getAttribute("data-reactid")||ke.getAttribute("name");if(nt&&zt[Ft])return zt[Ft];var xe=window.getComputedStyle(ke),fe=xe.getPropertyValue("box-sizing")||xe.getPropertyValue("-moz-box-sizing")||xe.getPropertyValue("-webkit-box-sizing"),Ct=parseFloat(xe.getPropertyValue("padding-bottom"))+parseFloat(xe.getPropertyValue("padding-top")),Ut=parseFloat(xe.getPropertyValue("border-bottom-width"))+parseFloat(xe.getPropertyValue("border-top-width")),Pt=Tt.map(function(Be){return"".concat(Be,":").concat(xe.getPropertyValue(Be))}).join(";"),me={sizingStyle:Pt,paddingSize:Ct,borderSize:Ut,boxSizing:fe};return nt&&Ft&&(zt[Ft]=me),me}function dt(ke){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;St||(St=document.createElement("textarea"),St.setAttribute("tab-index","-1"),St.setAttribute("aria-hidden","true"),St.setAttribute("name","hiddenTextarea"),document.body.appendChild(St)),ke.getAttribute("wrap")?St.setAttribute("wrap",ke.getAttribute("wrap")):St.removeAttribute("wrap");var fe=pt(ke,nt),Ct=fe.paddingSize,Ut=fe.borderSize,Pt=fe.boxSizing,me=fe.sizingStyle;St.setAttribute("style","".concat(me,";").concat(wt)),St.value=ke.value||ke.placeholder||"";var Be=void 0,Re=void 0,Dt,Et=St.scrollHeight;if(Pt==="border-box"?Et+=Ut:Pt==="content-box"&&(Et-=Ct),Ft!==null||xe!==null){St.value=" ";var jt=St.scrollHeight-Ct;Ft!==null&&(Be=jt*Ft,Pt==="border-box"&&(Be=Be+Ct+Ut),Et=Math.max(Be,Et)),xe!==null&&(Re=jt*xe,Pt==="border-box"&&(Re=Re+Ct+Ut),Dt=Et>Re?"":"hidden",Et=Math.min(Re,Et))}var Ne={height:Et,overflowY:Dt,resize:"none"};return Be&&(Ne.minHeight=Be),Re&&(Ne.maxHeight=Re),Ne}var He=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Lt=0,tt=1,ot=2,xt=Mt.forwardRef(function(ke,nt){var Ft=ke,xe=Ft.prefixCls,fe=Ft.defaultValue,Ct=Ft.value,Ut=Ft.autoSize,Pt=Ft.onResize,me=Ft.className,Be=Ft.style,Re=Ft.disabled,Dt=Ft.onChange,Et=Ft.onInternalAutoSize,jt=(0,Ie.Z)(Ft,He),Ne=(0,Ee.Z)(fe,{value:Ct,postState:function(st){return st!=null?st:""}}),Vt=(0,be.Z)(Ne,2),yt=Vt[0],ae=Vt[1],te=function(st){ae(st.target.value),Dt==null||Dt(st)},ee=Mt.useRef();Mt.useImperativeHandle(nt,function(){return{textArea:ee.current}});var oe=Mt.useMemo(function(){return Ut&&(0,Je.Z)(Ut)==="object"?[Ut.minRows,Ut.maxRows]:[]},[Ut]),se=(0,be.Z)(oe,2),ne=se[0],pe=se[1],Ce=!!Ut,mt=function(){try{if(document.activeElement===ee.current){var st=ee.current,$t=st.selectionStart,Wt=st.selectionEnd,De=st.scrollTop;ee.current.setSelectionRange($t,Wt),ee.current.scrollTop=De}}catch(Ke){}},Oe=Mt.useState(ot),Ue=(0,be.Z)(Oe,2),ft=Ue[0],Ot=Ue[1],vt=Mt.useState(),Jt=(0,be.Z)(vt,2),Yt=Jt[0],Gt=Jt[1],sn=function(){Ot(Lt)};(0,Ge.Z)(function(){Ce&&sn()},[Ct,ne,pe,Ce]),(0,Ge.Z)(function(){if(ft===Lt)Ot(tt);else if(ft===tt){var Le=dt(ee.current,!1,ne,pe);Ot(ot),Gt(Le)}else mt()},[ft]);var nn=Mt.useRef(),dn=function(){ze.Z.cancel(nn.current)},kt=function(st){ft===ot&&(Pt==null||Pt(st),Ut&&(dn(),nn.current=(0,ze.Z)(function(){sn()})))};Mt.useEffect(function(){return dn},[]);var on=Ce?Yt:null,Kt=(0,ve.Z)((0,ve.Z)({},Be),on);return(ft===Lt||ft===tt)&&(Kt.overflowY="hidden",Kt.overflowX="hidden"),Mt.createElement(Fe.Z,{onResize:kt,disabled:!(Ut||Pt)},Mt.createElement("textarea",(0,z.Z)({},jt,{ref:ee,style:Kt,className:qe()(xe,me,(0,it.Z)({},"".concat(xe,"-disabled"),Re)),disabled:Re,value:yt,onChange:te})))}),Me=xt,_e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ve=Mt.forwardRef(function(ke,nt){var Ft,xe=ke.defaultValue,fe=ke.value,Ct=ke.onFocus,Ut=ke.onBlur,Pt=ke.onChange,me=ke.allowClear,Be=ke.maxLength,Re=ke.onCompositionStart,Dt=ke.onCompositionEnd,Et=ke.suffix,jt=ke.prefixCls,Ne=jt===void 0?"rc-textarea":jt,Vt=ke.showCount,yt=ke.count,ae=ke.className,te=ke.style,ee=ke.disabled,oe=ke.hidden,se=ke.classNames,ne=ke.styles,pe=ke.onResize,Ce=ke.onClear,mt=ke.onPressEnter,Oe=ke.readOnly,Ue=ke.autoSize,ft=ke.onKeyDown,Ot=(0,Ie.Z)(ke,_e),vt=(0,Ee.Z)(xe,{value:fe,defaultValue:xe}),Jt=(0,be.Z)(vt,2),Yt=Jt[0],Gt=Jt[1],sn=Yt==null?"":String(Yt),nn=Mt.useState(!1),dn=(0,be.Z)(nn,2),kt=dn[0],on=dn[1],Kt=Mt.useRef(!1),Le=Mt.useState(null),st=(0,be.Z)(Le,2),$t=st[0],Wt=st[1],De=(0,Mt.useRef)(null),Ke=(0,Mt.useRef)(null),gt=function(){var qt;return(qt=Ke.current)===null||qt===void 0?void 0:qt.textArea},Bt=function(){gt().focus()};(0,Mt.useImperativeHandle)(nt,function(){var Nt;return{resizableTextArea:Ke.current,focus:Bt,blur:function(){gt().blur()},nativeElement:((Nt=De.current)===null||Nt===void 0?void 0:Nt.nativeElement)||gt()}}),(0,Mt.useEffect)(function(){on(function(Nt){return!ee&&Nt})},[ee]);var Qt=Mt.useState(null),mn=(0,be.Z)(Qt,2),Dn=mn[0],Mn=mn[1];Mt.useEffect(function(){if(Dn){var Nt;(Nt=gt()).setSelectionRange.apply(Nt,(0,Qe.Z)(Dn))}},[Dn]);var cn=(0,he.Z)(yt,Vt),En=(Ft=cn.max)!==null&&Ft!==void 0?Ft:Be,vn=Number(En)>0,Xt=cn.strategy(sn),Rt=!!En&&Xt>En,At=function(qt,In){var xn=In;!Kt.current&&cn.exceedFormatter&&cn.max&&cn.strategy(In)>cn.max&&(xn=cn.exceedFormatter(In,{max:cn.max}),In!==xn&&Mn([gt().selectionStart||0,gt().selectionEnd||0])),Gt(xn),(0,Xe.rJ)(qt.currentTarget,qt,Pt,xn)},It=function(qt){Kt.current=!0,Re==null||Re(qt)},an=function(qt){Kt.current=!1,At(qt,qt.currentTarget.value),Dt==null||Dt(qt)},tn=function(qt){At(qt,qt.target.value)},rn=function(qt){qt.key==="Enter"&&mt&&mt(qt),ft==null||ft(qt)},Sn=function(qt){on(!0),Ct==null||Ct(qt)},Pn=function(qt){on(!1),Ut==null||Ut(qt)},On=function(qt){Gt(""),Bt(),(0,Xe.rJ)(gt(),qt,Pt)},Rn=Et,Ln;cn.show&&(cn.showFormatter?Ln=cn.showFormatter({value:sn,count:Xt,maxLength:En}):Ln="".concat(Xt).concat(vn?" / ".concat(En):""),Rn=Mt.createElement(Mt.Fragment,null,Rn,Mt.createElement("span",{className:qe()("".concat(Ne,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Ln)));var Jn=function(qt){var In;pe==null||pe(qt),(In=gt())!==null&&In!==void 0&&In.style.height&&Wt(!0)},_n=!Ue&&!Vt&&!me;return Mt.createElement(Se.BaseInput,{ref:De,value:sn,allowClear:me,handleReset:On,suffix:Rn,prefixCls:Ne,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:qe()(se==null?void 0:se.affixWrapper,(0,it.Z)((0,it.Z)({},"".concat(Ne,"-show-count"),Vt),"".concat(Ne,"-textarea-allow-clear"),me))}),disabled:ee,focused:kt,className:qe()(ae,Rt&&"".concat(Ne,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),$t&&!_n?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ln=="string"?Ln:void 0}},hidden:oe,readOnly:Oe,onClear:Ce},Mt.createElement(Me,(0,z.Z)({},Ot,{autoSize:Ue,maxLength:Be,onKeyDown:rn,onChange:tn,onFocus:Sn,onBlur:Pn,onCompositionStart:It,onCompositionEnd:an,className:qe()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Ne,onResize:Jn,ref:Ke,readOnly:Oe})))}),ue=Ve,ct=ue},48911:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return yt}});var z=re(60499),it=re(43749),ve=re(85899),Qe=re(18642),be=re(72190),Ie=re(42244),Te=re(92310),qe=re.n(Te),Se=re(29301),he=re(70425),Xe=re(34280),Ee=re(59301),Mt=re(4676),Je=Ee.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,Ce=ae.onInnerResize,mt=ae.innerProps,Oe=ae.rtl,Ue=ae.extra,ft={},Ot={display:"flex",flexDirection:"column"};return oe!==void 0&&(ft={height:ee,position:"relative",overflow:"hidden"},Ot=(0,ve.Z)((0,ve.Z)({},Ot),{},(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({transform:"translateY(".concat(oe,"px)")},Oe?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:ft},Ee.createElement(Se.Z,{onResize:function(Jt){var Yt=Jt.offsetHeight;Yt&&Ce&&Ce()}},Ee.createElement("div",(0,z.Z)({style:Ot,className:qe()((0,Qe.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},mt),ne,Ue)))});Je.displayName="Filler";var Fe=Je;function Ge(ae){var te=ae.children,ee=ae.setRef,oe=Ee.useCallback(function(se){ee(se)},[]);return Ee.cloneElement(te,{ref:oe})}function ze(ae,te,ee,oe,se,ne,pe,Ce){var mt=Ce.getKey;return ae.slice(te,ee+1).map(function(Oe,Ue){var ft=te+Ue,Ot=pe(Oe,ft,{style:{width:oe},offsetX:se}),vt=mt(Oe);return Ee.createElement(Ge,{key:vt,setRef:function(Yt){return ne(Oe,Yt)}},Ot)})}function wt(ae,te,ee,oe){var se=ee-ae,ne=te-ee,pe=Math.min(se,ne)*2;if(oe<=pe){var Ce=Math.floor(oe/2);return oe%2?ee+Ce+1:ee-Ce}return se>ne?ee-(oe-ne):ee+(oe-se)}function Tt(ae,te,ee){var oe=ae.length,se=te.length,ne,pe;if(oe===0&&se===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,ft=mt?Oe<0&&Ce.current.left||Oe>0&&Ce.current.right:Oe<0&&Ce.current.top||Oe>0&&Ce.current.bottom;return Ue&&ft?(clearTimeout(ne.current),se.current=!1):(!ft||se.current)&&pe(),!se.current&&ft}};function Lt(ae,te,ee,oe,se,ne,pe){var Ce=(0,Ee.useRef)(0),mt=(0,Ee.useRef)(null),Oe=(0,Ee.useRef)(null),Ue=(0,Ee.useRef)(!1),ft=He(te,ee,oe,se);function Ot(nn,dn){if(St.Z.cancel(mt.current),!ft(!1,dn)){var kt=nn;if(!kt._virtualHandled)kt._virtualHandled=!0;else return;Ce.current+=dn,Oe.current=dn,dt||kt.preventDefault(),mt.current=(0,St.Z)(function(){var on=Ue.current?10:1;pe(Ce.current*on,!1),Ce.current=0})}}function vt(nn,dn){pe(dn,!0),dt||nn.preventDefault()}var Jt=(0,Ee.useRef)(null),Yt=(0,Ee.useRef)(null);function Gt(nn){if(ae){St.Z.cancel(Yt.current),Yt.current=(0,St.Z)(function(){Jt.current=null},2);var dn=nn.deltaX,kt=nn.deltaY,on=nn.shiftKey,Kt=dn,Le=kt;(Jt.current==="sx"||!Jt.current&&on&&kt&&!dn)&&(Kt=kt,Le=0,Jt.current="sx");var st=Math.abs(Kt),$t=Math.abs(Le);Jt.current===null&&(Jt.current=ne&&st>$t?"x":"y"),Jt.current==="y"?Ot(nn,Le):vt(nn,Kt)}}function sn(nn){ae&&(Ue.current=nn.detail===Oe.current)}return[Gt,sn]}function tt(ae,te,ee,oe){var se=Ee.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,be.Z)(se,2),pe=ne[0],Ce=ne[1],mt=function(Ue){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue,Ot=pe.get(Ue),vt=pe.get(ft);if(Ot===void 0||vt===void 0)for(var Jt=ae.length,Yt=Ce.length;Yt0&&arguments[0]!==void 0?arguments[0]:!1;Ue();var Jt=function(){var sn=!1;Ce.current.forEach(function(nn,dn){if(nn&&nn.offsetParent){var kt=nn.offsetHeight,on=getComputedStyle(nn),Kt=on.marginTop,Le=on.marginBottom,st=Ve(Kt),$t=Ve(Le),Wt=kt+st+$t;mt.current.get(dn)!==Wt&&(mt.current.set(dn,Wt),sn=!0)}}),sn&&pe(function(nn){return nn+1})};if(vt)Jt();else{Oe.current+=1;var Yt=Oe.current;Promise.resolve().then(function(){Yt===Oe.current&&Jt()})}}function Ot(vt,Jt){var Yt=ae(vt),Gt=Ce.current.get(Yt);Jt?(Ce.current.set(Yt,Jt),ft()):Ce.current.delete(Yt),!Gt!=!Jt&&(Jt?te==null||te(vt):ee==null||ee(vt))}return(0,Ee.useEffect)(function(){return Ue},[]),[Ot,ft,mt.current,ne]}var ct=14/15;function ke(ae,te,ee){var oe=(0,Ee.useRef)(!1),se=(0,Ee.useRef)(0),ne=(0,Ee.useRef)(0),pe=(0,Ee.useRef)(null),Ce=(0,Ee.useRef)(null),mt,Oe=function(vt){if(oe.current){var Jt=Math.ceil(vt.touches[0].pageX),Yt=Math.ceil(vt.touches[0].pageY),Gt=se.current-Jt,sn=ne.current-Yt,nn=Math.abs(Gt)>Math.abs(sn);nn?se.current=Jt:ne.current=Yt;var dn=ee(nn,nn?Gt:sn,!1,vt);dn&&vt.preventDefault(),clearInterval(Ce.current),dn&&(Ce.current=setInterval(function(){nn?Gt*=ct:sn*=ct;var kt=Math.floor(nn?Gt:sn);(!ee(nn,kt,!0)||Math.abs(kt)<=.1)&&clearInterval(Ce.current)},16))}},Ue=function(){oe.current=!1,mt()},ft=function(vt){mt(),vt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(vt.touches[0].pageX),ne.current=Math.ceil(vt.touches[0].pageY),pe.current=vt.target,pe.current.addEventListener("touchmove",Oe,{passive:!1}),pe.current.addEventListener("touchend",Ue,{passive:!0}))};mt=function(){pe.current&&(pe.current.removeEventListener("touchmove",Oe),pe.current.removeEventListener("touchend",Ue))},(0,Xe.Z)(function(){return ae&&te.current.addEventListener("touchstart",ft,{passive:!0}),function(){var Ot;(Ot=te.current)===null||Ot===void 0||Ot.removeEventListener("touchstart",ft),mt(),clearInterval(Ce.current)}},[ae])}function nt(ae){return Math.floor(Math.pow(ae,.5))}function Ft(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function xe(ae,te,ee){Ee.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,pe,Ce=function(){St.Z.cancel(ne)},mt=function Ot(){Ce(),ne=(0,St.Z)(function(){ee(pe),Ot()})},Oe=function(){se=!1,Ce()},Ue=function(vt){if(!(vt.target.draggable||vt.button!==0)){var Jt=vt;Jt._virtualHandled||(Jt._virtualHandled=!0,se=!0)}},ft=function(vt){if(se){var Jt=Ft(vt,!1),Yt=oe.getBoundingClientRect(),Gt=Yt.top,sn=Yt.bottom;if(Jt<=Gt){var nn=Gt-Jt;pe=-nt(nn),mt()}else if(Jt>=sn){var dn=Jt-sn;pe=nt(dn),mt()}else Ce()}};return oe.addEventListener("mousedown",Ue),oe.ownerDocument.addEventListener("mouseup",Oe),oe.ownerDocument.addEventListener("mousemove",ft),oe.ownerDocument.addEventListener("dragend",Oe),function(){oe.removeEventListener("mousedown",Ue),oe.ownerDocument.removeEventListener("mouseup",Oe),oe.ownerDocument.removeEventListener("mousemove",ft),oe.ownerDocument.removeEventListener("dragend",Oe),Ce()}}},[ae])}var fe=10;function Ct(ae,te,ee,oe,se,ne,pe,Ce){var mt=Ee.useRef(),Oe=Ee.useState(null),Ue=(0,be.Z)(Oe,2),ft=Ue[0],Ot=Ue[1];return(0,Xe.Z)(function(){if(ft&&ft.times=0;Bt-=1){var Qt=se(te[Bt]),mn=ee.get(Qt);if(mn===void 0){nn=!0;break}if(gt-=mn,gt<=0)break}switch(on){case"top":kt=Le-Gt;break;case"bottom":kt=st-sn+Gt;break;default:{var Dn=ae.current.scrollTop,Mn=Dn+sn;LeMn&&(dn="bottom")}}kt!==null&&pe(kt),kt!==ft.lastTop&&(nn=!0)}nn&&Ot((0,ve.Z)((0,ve.Z)({},ft),{},{times:ft.times+1,targetAlign:dn,lastTop:kt}))}},[ft,ae.current]),function(vt){if(vt==null){Ce();return}if(St.Z.cancel(mt.current),typeof vt=="number")pe(vt);else if(vt&&(0,it.Z)(vt)==="object"){var Jt,Yt=vt.align;"index"in vt?Jt=vt.index:Jt=te.findIndex(function(nn){return se(nn)===vt.key});var Gt=vt.offset,sn=Gt===void 0?0:Gt;Ot({times:0,index:Jt,offset:sn,originAlign:Yt})}}}var Ut=Ee.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,Ce=ae.onStopMove,mt=ae.onScroll,Oe=ae.horizontal,Ue=ae.spinSize,ft=ae.containerSize,Ot=ae.style,vt=ae.thumbStyle,Jt=ae.showScrollBar,Yt=Ee.useState(!1),Gt=(0,be.Z)(Yt,2),sn=Gt[0],nn=Gt[1],dn=Ee.useState(null),kt=(0,be.Z)(dn,2),on=kt[0],Kt=kt[1],Le=Ee.useState(null),st=(0,be.Z)(Le,2),$t=st[0],Wt=st[1],De=!oe,Ke=Ee.useRef(),gt=Ee.useRef(),Bt=Ee.useState(Jt),Qt=(0,be.Z)(Bt,2),mn=Qt[0],Dn=Qt[1],Mn=Ee.useRef(),cn=function(){Jt===!0||Jt===!1||(clearTimeout(Mn.current),Dn(!0),Mn.current=setTimeout(function(){Dn(!1)},3e3))},En=ne-ft||0,vn=ft-Ue||0,Xt=Ee.useMemo(function(){if(se===0||En===0)return 0;var On=se/En;return On*vn},[se,En,vn]),Rt=function(Rn){Rn.stopPropagation(),Rn.preventDefault()},At=Ee.useRef({top:Xt,dragging:sn,pageY:on,startTop:$t});At.current={top:Xt,dragging:sn,pageY:on,startTop:$t};var It=function(Rn){nn(!0),Kt(Ft(Rn,Oe)),Wt(At.current.top),pe(),Rn.stopPropagation(),Rn.preventDefault()};Ee.useEffect(function(){var On=function(_n){_n.preventDefault()},Rn=Ke.current,Ln=gt.current;return Rn.addEventListener("touchstart",On,{passive:!1}),Ln.addEventListener("touchstart",It,{passive:!1}),function(){Rn.removeEventListener("touchstart",On),Ln.removeEventListener("touchstart",It)}},[]);var an=Ee.useRef();an.current=En;var tn=Ee.useRef();tn.current=vn,Ee.useEffect(function(){if(sn){var On,Rn=function(_n){var Nt=At.current,qt=Nt.dragging,In=Nt.pageY,xn=Nt.startTop;St.Z.cancel(On);var Ae=Ke.current.getBoundingClientRect(),rt=ft/(Oe?Ae.width:Ae.height);if(qt){var we=(Ft(_n,Oe)-In)*rt,$e=xn;!De&&Oe?$e-=we:$e+=we;var Pe=an.current,je=tn.current,ye=je?$e/je:0,et=Math.ceil(ye*Pe);et=Math.max(et,0),et=Math.min(et,Pe),On=(0,St.Z)(function(){mt(et,Oe)})}},Ln=function(){nn(!1),Ce()};return window.addEventListener("mousemove",Rn,{passive:!0}),window.addEventListener("touchmove",Rn,{passive:!0}),window.addEventListener("mouseup",Ln,{passive:!0}),window.addEventListener("touchend",Ln,{passive:!0}),function(){window.removeEventListener("mousemove",Rn),window.removeEventListener("touchmove",Rn),window.removeEventListener("mouseup",Ln),window.removeEventListener("touchend",Ln),St.Z.cancel(On)}}},[sn]),Ee.useEffect(function(){return cn(),function(){clearTimeout(Mn.current)}},[se]),Ee.useImperativeHandle(te,function(){return{delayHidden:cn}});var rn="".concat(ee,"-scrollbar"),Sn={position:"absolute",visibility:mn?null:"hidden"},Pn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Oe?(Object.assign(Sn,{height:8,left:0,right:0,bottom:0}),Object.assign(Pn,(0,Qe.Z)({height:"100%",width:Ue},De?"left":"right",Xt))):(Object.assign(Sn,(0,Qe.Z)({width:8,top:0,bottom:0},De?"right":"left",0)),Object.assign(Pn,{width:"100%",height:Ue,top:Xt})),Ee.createElement("div",{ref:Ke,className:qe()(rn,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(rn,"-horizontal"),Oe),"".concat(rn,"-vertical"),!Oe),"".concat(rn,"-visible"),mn)),style:(0,ve.Z)((0,ve.Z)({},Sn),Ot),onMouseDown:Rt,onMouseMove:cn},Ee.createElement("div",{ref:gt,className:qe()("".concat(rn,"-thumb"),(0,Qe.Z)({},"".concat(rn,"-thumb-moving"),sn)),style:(0,ve.Z)((0,ve.Z)({},Pn),vt),onMouseDown:It}))}),Pt=Ut,me=20;function Be(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,me),Math.floor(ee)}var Re=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Dt=[],Et={overflowY:"auto",overflowAnchor:"none"};function jt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,pe=ae.itemHeight,Ce=ae.fullHeight,mt=Ce===void 0?!0:Ce,Oe=ae.style,Ue=ae.data,ft=ae.children,Ot=ae.itemKey,vt=ae.virtual,Jt=ae.direction,Yt=ae.scrollWidth,Gt=ae.component,sn=Gt===void 0?"div":Gt,nn=ae.onScroll,dn=ae.onVirtualScroll,kt=ae.onVisibleChange,on=ae.innerProps,Kt=ae.extraRender,Le=ae.styles,st=ae.showScrollBar,$t=st===void 0?"optional":st,Wt=(0,Ie.Z)(ae,Re),De=Ee.useCallback(function(gn){return typeof Ot=="function"?Ot(gn):gn==null?void 0:gn[Ot]},[Ot]),Ke=ue(De,null,null),gt=(0,be.Z)(Ke,4),Bt=gt[0],Qt=gt[1],mn=gt[2],Dn=gt[3],Mn=!!(vt!==!1&&ne&&pe),cn=Ee.useMemo(function(){return Object.values(mn.maps).reduce(function(gn,wn){return gn+wn},0)},[mn.id,mn.maps]),En=Mn&&Ue&&(Math.max(pe*Ue.length,cn)>ne||!!Yt),vn=Jt==="rtl",Xt=qe()(oe,(0,Qe.Z)({},"".concat(oe,"-rtl"),vn),se),Rt=Ue||Dt,At=(0,Ee.useRef)(),It=(0,Ee.useRef)(),an=(0,Ee.useRef)(),tn=(0,Ee.useState)(0),rn=(0,be.Z)(tn,2),Sn=rn[0],Pn=rn[1],On=(0,Ee.useState)(0),Rn=(0,be.Z)(On,2),Ln=Rn[0],Jn=Rn[1],_n=(0,Ee.useState)(!1),Nt=(0,be.Z)(_n,2),qt=Nt[0],In=Nt[1],xn=function(){In(!0)},Ae=function(){In(!1)},rt={getKey:De};function we(gn){Pn(function(wn){var Cn;typeof gn=="function"?Cn=gn(wn):Cn=gn;var hn=qn(Cn);return At.current.scrollTop=hn,hn})}var $e=(0,Ee.useRef)({start:0,end:Rt.length}),Pe=(0,Ee.useRef)(),je=zt(Rt,De),ye=(0,be.Z)(je,1),et=ye[0];Pe.current=et;var at=Ee.useMemo(function(){if(!Mn)return{scrollHeight:void 0,start:0,end:Rt.length-1,offset:void 0};if(!En){var gn;return{scrollHeight:((gn=It.current)===null||gn===void 0?void 0:gn.offsetHeight)||0,start:0,end:Rt.length-1,offset:void 0}}for(var wn=0,Cn,hn,jn,Un=Rt.length,yn=0;yn=Sn&&Cn===void 0&&(Cn=yn,hn=wn),cr>Sn+ne&&jn===void 0&&(jn=yn),wn=cr}return Cn===void 0&&(Cn=0,hn=0,jn=Math.ceil(ne/pe)),jn===void 0&&(jn=Rt.length-1),jn=Math.min(jn+1,Rt.length-1),{scrollHeight:wn,start:Cn,end:jn,offset:hn}},[En,Mn,Sn,Rt,Dn,ne]),bt=at.scrollHeight,lt=at.start,We=at.end,Ze=at.offset;$e.current.start=lt,$e.current.end=We,Ee.useLayoutEffect(function(){var gn=mn.getRecord();if(gn.size===1){var wn=Array.from(gn.keys())[0],Cn=gn.get(wn),hn=Rt[lt];if(hn&&Cn===void 0){var jn=De(hn);if(jn===wn){var Un=mn.get(wn),yn=Un-pe;we(function(pn){return pn+yn})}}}mn.resetRecord()},[bt]);var ut=Ee.useState({width:0,height:ne}),un=(0,be.Z)(ut,2),en=un[0],ln=un[1],$n=function(wn){ln({width:wn.offsetWidth,height:wn.offsetHeight})},Hn=(0,Ee.useRef)(),Vn=(0,Ee.useRef)(),Fn=Ee.useMemo(function(){return Be(en.width,Yt)},[en.width,Yt]),kn=Ee.useMemo(function(){return Be(en.height,bt)},[en.height,bt]),Nn=bt-ne,Zn=(0,Ee.useRef)(Nn);Zn.current=Nn;function qn(gn){var wn=gn;return Number.isNaN(Zn.current)||(wn=Math.min(wn,Zn.current)),wn=Math.max(wn,0),wn}var Kn=Sn<=0,Qn=Sn>=Nn,Tn=Ln<=0,nr=Ln>=Yt,Gn=He(Kn,Qn,Tn,nr),dr=function(){return{x:vn?-Ln:Ln,y:Sn}},pr=(0,Ee.useRef)(dr()),sr=(0,he.zX)(function(gn){if(dn){var wn=(0,ve.Z)((0,ve.Z)({},dr()),gn);(pr.current.x!==wn.x||pr.current.y!==wn.y)&&(dn(wn),pr.current=wn)}});function ur(gn,wn){var Cn=gn;wn?((0,Mt.flushSync)(function(){Jn(Cn)}),sr()):we(Cn)}function yr(gn){var wn=gn.currentTarget.scrollTop;wn!==Sn&&we(wn),nn==null||nn(gn),sr()}var lr=function(wn){var Cn=wn,hn=Yt?Yt-en.width:0;return Cn=Math.max(Cn,0),Cn=Math.min(Cn,hn),Cn},fr=(0,he.zX)(function(gn,wn){wn?((0,Mt.flushSync)(function(){Jn(function(Cn){var hn=Cn+(vn?-gn:gn);return lr(hn)})}),sr()):we(function(Cn){var hn=Cn+gn;return hn})}),tr=Lt(Mn,Kn,Qn,Tn,nr,!!Yt,fr),mr=(0,be.Z)(tr,2),br=mr[0],zr=mr[1];ke(Mn,At,function(gn,wn,Cn,hn){var jn=hn;return Gn(gn,wn,Cn)?!1:!jn||!jn._virtualHandled?(jn&&(jn._virtualHandled=!0),br({preventDefault:function(){},deltaX:gn?wn:0,deltaY:gn?0:wn}),!0):!1}),xe(En,At,function(gn){we(function(wn){return wn+gn})}),(0,Xe.Z)(function(){function gn(Cn){var hn=Kn&&Cn.detail<0,jn=Qn&&Cn.detail>0;Mn&&!hn&&!jn&&Cn.preventDefault()}var wn=At.current;return wn.addEventListener("wheel",br,{passive:!1}),wn.addEventListener("DOMMouseScroll",zr,{passive:!0}),wn.addEventListener("MozMousePixelScroll",gn,{passive:!1}),function(){wn.removeEventListener("wheel",br),wn.removeEventListener("DOMMouseScroll",zr),wn.removeEventListener("MozMousePixelScroll",gn)}},[Mn,Kn,Qn]),(0,Xe.Z)(function(){if(Yt){var gn=lr(Ln);Jn(gn),sr({x:gn})}},[en.width,Yt]);var Er=function(){var wn,Cn;(wn=Hn.current)===null||wn===void 0||wn.delayHidden(),(Cn=Vn.current)===null||Cn===void 0||Cn.delayHidden()},Br=Ct(At,Rt,mn,pe,De,function(){return Qt(!0)},we,Er);Ee.useImperativeHandle(te,function(){return{nativeElement:an.current,getScrollInfo:dr,scrollTo:function(wn){function Cn(hn){return hn&&(0,it.Z)(hn)==="object"&&("left"in hn||"top"in hn)}Cn(wn)?(wn.left!==void 0&&Jn(lr(wn.left)),Br(wn.top)):Br(wn)}}}),(0,Xe.Z)(function(){if(kt){var gn=Rt.slice(lt,We+1);kt(gn,Rt)}},[lt,We,Rt]);var Ir=tt(Rt,De,mn,pe),Dr=Kt==null?void 0:Kt({start:lt,end:We,virtual:En,offsetX:Ln,offsetY:Ze,rtl:vn,getSize:Ir}),or=ze(Rt,lt,We,Yt,Ln,Bt,ft,rt),ir=null;ne&&(ir=(0,ve.Z)((0,Qe.Z)({},mt?"height":"maxHeight",ne),Et),Mn&&(ir.overflowY="hidden",Yt&&(ir.overflowX="hidden"),qt&&(ir.pointerEvents="none")));var er={};return vn&&(er.dir="rtl"),Ee.createElement("div",(0,z.Z)({ref:an,style:(0,ve.Z)((0,ve.Z)({},Oe),{},{position:"relative"}),className:Xt},er,Wt),Ee.createElement(Se.Z,{onResize:$n},Ee.createElement(sn,{className:"".concat(oe,"-holder"),style:ir,ref:At,onScroll:yr,onMouseEnter:Er},Ee.createElement(Fe,{prefixCls:oe,height:bt,offsetX:Ln,offsetY:Ze,scrollWidth:Yt,onInnerResize:Qt,ref:It,innerProps:on,rtl:vn,extra:Dr},or))),En&&bt>ne&&Ee.createElement(Pt,{ref:Hn,prefixCls:oe,scrollOffset:Sn,scrollRange:bt,rtl:vn,onScroll:ur,onStartMove:xn,onStopMove:Ae,spinSize:kn,containerSize:en.height,style:Le==null?void 0:Le.verticalScrollBar,thumbStyle:Le==null?void 0:Le.verticalScrollBarThumb,showScrollBar:$t}),En&&Yt>en.width&&Ee.createElement(Pt,{ref:Vn,prefixCls:oe,scrollOffset:Ln,scrollRange:Yt,rtl:vn,onScroll:ur,onStartMove:xn,onStopMove:Ae,spinSize:Fn,containerSize:en.width,horizontal:!0,style:Le==null?void 0:Le.horizontalScrollBar,thumbStyle:Le==null?void 0:Le.horizontalScrollBarThumb,showScrollBar:$t}))}var Ne=Ee.forwardRef(jt);Ne.displayName="List";var Vt=Ne,yt=Vt},4977:function(fn){"use strict";fn.exports="data:image/png;base64,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"},16722:function(fn,_t,re){"use strict";re.d(_t,{Z:function(){return qe}});const z=Se=>typeof Se=="object"&&Se!=null&&Se.nodeType===1,it=(Se,he)=>(!he||Se!=="hidden")&&Se!=="visible"&&Se!=="clip",ve=(Se,he)=>{if(Se.clientHeight{const Mt=(Je=>{if(!Je.ownerDocument||!Je.ownerDocument.defaultView)return null;try{return Je.ownerDocument.defaultView.frameElement}catch(Fe){return null}})(Ee);return!!Mt&&(Mt.clientHeightJehe||Je>Se&&Fe=he&&Ge>=Xe?Je-Se-Ee:Fe>he&&GeXe?Fe-he+Mt:0,be=Se=>{const he=Se.parentElement;return he==null?Se.getRootNode().host||null:he},Ie=(Se,he)=>{var Xe,Ee,Mt,Je;if(typeof document=="undefined")return[];const{scrollMode:Fe,block:Ge,inline:ze,boundary:wt,skipOverflowHiddenElements:Tt}=he,zt=typeof wt=="function"?wt:Pt=>Pt!==wt;if(!z(Se))throw new TypeError("Invalid target");const St=document.scrollingElement||document.documentElement,pt=[];let dt=Se;for(;z(dt)&&zt(dt);){if(dt=be(dt),dt===St){pt.push(dt);break}dt!=null&&dt===document.body&&ve(dt)&&!ve(document.documentElement)||dt!=null&&ve(dt,Tt)&&pt.push(dt)}const He=(Ee=(Xe=window.visualViewport)==null?void 0:Xe.width)!=null?Ee:innerWidth,Lt=(Je=(Mt=window.visualViewport)==null?void 0:Mt.height)!=null?Je:innerHeight,{scrollX:tt,scrollY:ot}=window,{height:xt,width:Me,top:_e,right:Ve,bottom:ue,left:ct}=Se.getBoundingClientRect(),{top:ke,right:nt,bottom:Ft,left:xe}=(Pt=>{const me=window.getComputedStyle(Pt);return{top:parseFloat(me.scrollMarginTop)||0,right:parseFloat(me.scrollMarginRight)||0,bottom:parseFloat(me.scrollMarginBottom)||0,left:parseFloat(me.scrollMarginLeft)||0}})(Se);let fe=Ge==="start"||Ge==="nearest"?_e-ke:Ge==="end"?ue+Ft:_e+xt/2-ke+Ft,Ct=ze==="center"?ct+Me/2-xe+nt:ze==="end"?Ve+nt:ct-xe;const Ut=[];for(let Pt=0;Pt=0&&ct>=0&&ue<=Lt&&Ve<=He&&(me===St&&!ve(me)||_e>=Dt&&ue<=jt&&ct>=Ne&&Ve<=Et))return Ut;const Vt=getComputedStyle(me),yt=parseInt(Vt.borderLeftWidth,10),ae=parseInt(Vt.borderTopWidth,10),te=parseInt(Vt.borderRightWidth,10),ee=parseInt(Vt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in me?me.offsetWidth-me.clientWidth-yt-te:0,pe="offsetHeight"in me?me.offsetHeight-me.clientHeight-ae-ee:0,Ce="offsetWidth"in me?me.offsetWidth===0?0:Re/me.offsetWidth:0,mt="offsetHeight"in me?me.offsetHeight===0?0:Be/me.offsetHeight:0;if(St===me)oe=Ge==="start"?fe:Ge==="end"?fe-Lt:Ge==="nearest"?Qe(ot,ot+Lt,Lt,ae,ee,ot+fe,ot+fe+xt,xt):fe-Lt/2,se=ze==="start"?Ct:ze==="center"?Ct-He/2:ze==="end"?Ct-He:Qe(tt,tt+He,He,yt,te,tt+Ct,tt+Ct+Me,Me),oe=Math.max(0,oe+ot),se=Math.max(0,se+tt);else{oe=Ge==="start"?fe-Dt-ae:Ge==="end"?fe-jt+ee+pe:Ge==="nearest"?Qe(Dt,jt,Be,ae,ee+pe,fe,fe+xt,xt):fe-(Dt+Be/2)+pe/2,se=ze==="start"?Ct-Ne-yt:ze==="center"?Ct-(Ne+Re/2)+ne/2:ze==="end"?Ct-Et+te+ne:Qe(Ne,Et,Re,yt,te+ne,Ct,Ct+Me,Me);const{scrollLeft:Oe,scrollTop:Ue}=me;oe=mt===0?0:Math.max(0,Math.min(Ue+oe/mt,me.scrollHeight-Be/mt+pe)),se=Ce===0?0:Math.max(0,Math.min(Oe+se/Ce,me.scrollWidth-Re/Ce+ne)),fe+=Ue-oe,Ct+=Oe-se}Ut.push({el:me,top:oe,left:se})}return Ut},Te=Se=>Se===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Se)?Se:{block:"start",inline:"nearest"};function qe(Se,he){if(!Se.isConnected||!(Mt=>{let Je=Mt;for(;Je&&Je.parentNode;){if(Je.parentNode===document)return!0;Je=Je.parentNode instanceof ShadowRoot?Je.parentNode.host:Je.parentNode}return!1})(Se))return;const Xe=(Mt=>{const Je=window.getComputedStyle(Mt);return{top:parseFloat(Je.scrollMarginTop)||0,right:parseFloat(Je.scrollMarginRight)||0,bottom:parseFloat(Je.scrollMarginBottom)||0,left:parseFloat(Je.scrollMarginLeft)||0}})(Se);if((Mt=>typeof Mt=="object"&&typeof Mt.behavior=="function")(he))return he.behavior(Ie(Se,he));const Ee=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:Mt,top:Je,left:Fe}of Ie(Se,Te(he))){const Ge=Je-Xe.top+Xe.bottom,ze=Fe-Xe.left+Xe.right;Mt.scroll({top:Ge,left:ze,behavior:Ee})}}}}]);