(self.webpackChunk=self.webpackChunk||[]).push([[8517],{40001:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},26227:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},41464:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},73331:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},15277:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},33853:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},61485:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},47472:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},87395:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(60499),lt=ie(59301),ge={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=ge,xe=ie(7657),Ee=function(fe,et){return lt.createElement(xe.Z,(0,z.Z)({},fe,{ref:et,icon:Qe}))},De=lt.forwardRef(Ee),Be=De},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(ln,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},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 ln={},Zt="5.0",ie={},z=null,lt=!1,ge=!1,Qe=null,xe=!1,Ee=null,De=null,Be=0;Be4?parseFloat(Me):5};ln.setHTML5Codebase=function(Me,Ke){De=Me,it(Me,Ke)},ln.setJavaCodebase=ln.setJavaCodebaseVersion=ln.isCompiledInstalled=ln.setPreCompiledScriptPath=ln.setPreCompiledResourcePath=function(){},ln.setHTML5CodebaseVersion=function(Me,Ke){var qe=parseFloat(Me);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}Ee=Me,ce(Me,Ke)},ln.getHTML5CodebaseVersion=function(){return ut},ln.getParameters=function(){return ie},ln.setFontsCSSURL=function(Me){Nt=Me},ln.setGiacJSURL=function(Me){},ln.setJNLPFile=function(Me){fe=Me},ln.setJNLPBaseDir=function(Me){},ln.inject=function(){function Me(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ke="auto",qe=ie.id,Jt,Rt=!1,Vt=0;Vt=5)return!0;var Me=ln.getAppletObject();return Me&&typeof Me.recalculateEnvironments=="function"?(Me.recalculateEnvironments(),!0):!1},ln.startAnimation=function(){var Me=ln.getAppletObject();return Me&&typeof Me.startAnimation=="function"?(Me.startAnimation(),!0):!1},ln.stopAnimation=function(){var Me=ln.getAppletObject();return Me&&typeof Me.stopAnimation=="function"?(Me.stopAnimation(),!0):!1},ln.getAppletObject=function(){var Me=ie.id!==void 0?ie.id:"ggbApplet";return window[Me]},ln.resize=function(){};var xt=function(Me,Ke,qe){var Jt=document.createElement("param");Jt.setAttribute("name",Ke),Jt.setAttribute("value",qe),Me.appendChild(Jt)},Te=function(Me){return Me&&Me!=="false"},_e=function(Me,Ke,qe){vt(ut)<=4.2&&(qe=!0);var Jt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ut||ggbHTML5LoadedCodebaseIsWebSimple&&!Ze)&&(Jt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Rt=document.createElement("div");Rt.classList.add("appletParameters","notranslate");var Vt=Ke.width,ze=Ke.height;if(Ke.disableAutoScale=Ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ke.disableAutoScale,Ke.width!==void 0)if(vt(ut)<=4.4)Te(Ke.showToolBar)&&(Ke.height-=7),Te(Ke.showAlgebraInput)&&(Ke.height-=37),Ke.width<605&&Te(Ke.showToolBar)&&(Ke.width=605,Vt=605);else{var Wt=100;(Te(Ke.showToolBar)||Te(Ke.showMenuBar))&&(Ke.hasOwnProperty("customToolBar")&&(Ke.customToolbar=Ke.customToolBar),Wt=Te(Ke.showMenuBar)?245:155),Vt=5?(Ke.appletOnLoad=function(It){var bt=Me.querySelector(".ggb_preview");bt&&bt.parentNode.removeChild(bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(It)},ee||te.appendChild(oe)):Rt.appendChild(oe),te.appendChild(Rt),ee||Me.appendChild(te),setTimeout(function(){ln.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Rt),Me.appendChild(se),Ke.appletOnLoad=function(It){ln.resize(),ae(It)}}function ne(It,bt){bt&&typeof bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,bt.appletOnLoad):renderGGBElement(It),$t("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bt)}function he(It,bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ut){ne(Ut.article,Ut.params)}),html5AppletsToProcess=null)},vt(ut)<5&&(It.className+=" geogebraweb")):ne(It,bt)}if(Jt){scriptLoadStarted=!0;for(var be=0;be0?(dt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):_e(dt,Ke,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Ot=Jt,_e(Me,Ke,!1);if(!window.GGBT_wsf_view)for(ze=0;zeMe/4*3&&(dt=Me/4*3),ae=dt/5.8,Wt.setAttribute("src",St),Wt.setAttribute("width",dt),Wt.setAttribute("height",ae);var te=(Me-dt)/2,ee=(Ke-ae)/2;Wt.style.left=te+"px",Wt.style.top=ee+"px",Rt.appendChild(Wt)}}return Rt.appendChild(ze),Rt},Pt=function(Me){return Me=Me.toLowerCase(),Me==="html5"||Me==="screenshot"?Me:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(Me,Ke){if(ut=Me,Ke){it(ut,!0);return}var qe=!lt;if(qe){var Jt=vt(ut);!isNaN(Jt)&&Jt<4.4&&(qe=!1)}var Rt,Vt;window.location.protocol.substr(0,4)==="http"?Rt=window.location.protocol:Rt="http:";var ze=ut.indexOf("//");ze>0?Vt=ut:ze===0?Vt=Rt+ut:Vt="https://www.geogebra.org/apps/5.2.814.0/";for(var Wt in ve)if(ut.slice(ve[Wt].length*-1)===ve[Wt]||ut.slice((ve[Wt].length+1)*-1)===ve[Wt]+"/"){it(Vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Te(ie.showToolBar)&&!Te(ie.showMenuBar)&&!Te(ie.showAlgebraInput)&&!Te(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?Vt+="webSimple/":Vt+="web3d/",it(Vt,!1)},it=function(Me,Ke){if(Me.requirejs){et=Me;return}Me.slice(-1)!=="/"&&(Me+="/"),et=Me,Ke===null&&(Ke=Me.indexOf("http")===-1),we=Ke,Ge="web.nocache.js",Ze=!1;var qe=et.split("/");qe.length>1&&(!Ke&&qe[qe.length-2]==="webSimple"?(Ge="webSimple.nocache.js",Ze=!0):ve.indexOf(qe[qe.length-2])>=0&&(Ge=qe[qe.length-2]+".nocache.js")),qe=Me.split("/"),ut=qe[qe.length-3],ut.substr(0,4)==="test"?ut=ut.substr(4,1)+"."+ut.substr(5,1):(ut.substr(0,3)==="war"||ut.substr(0,4)==="beta")&&(ut="5.0");var Jt=parseFloat(ut);Jt!==NaN&&Jt<5&&Me.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Jt+" is deprecated. Using version latest instead."),ce("5.0",Ke))},$t=function(Me,Ke){window.console&&window.console.log&&(!Ke||typeof Ke.showLogging=="undefined"||Ke.showLogging&&Ke.showLogging!=="false")&&console.log(Me)};ie.material_id!==void 0?Bt(wt):wt();function wt(){var Me=Zt;Ee!==null?Me=Ee:parseFloat(Me)<5&&(Me="5.0"),ce(Me,!1),De!==null&&it(De,we),xe=!0}return ln},GGBAppletUtils=function(){"use strict";function ln(){return window.GGBT_wsf_edit!==void 0}function Zt(xe,Ee){Ee!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Ee+","+Ee+")",xe.style.webkitTransform="scale("+Ee+","+Ee+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ie(xe,Ee,De,Be,Pe,fe){var et=null;if(fe!=null&&fe!="")for(var we=xe.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+fe+" ")>-1){et=we;break}else we=we.parentNode;var Ot=0,ut=0,Ge=0,Ze=0,je=0,St=0,kt=0;if(et)Ot=et.offsetWidth,ut=Math.max(Be?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ot=Math.min(window.innerWidth,document.documentElement.clientWidth),ut=Math.min(window.innerHeight,document.documentElement.clientHeight),Ge=Ot):(Ot=window.innerWidth,ut=window.innerHeight,Ge=window.innerWidth),xe){var Nt=xe.getBoundingClientRect();Nt.left>0&&Nt.left<=Ot&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(je=Ot-Nt.width-Nt.left,St=Ge<=480?10:30):(St=Nt.left,je=Ge<=480?10:30),Ze=St+je)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Et=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ze=40,kt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ze=0,kt=40)}}return xe&&((De===void 0||!De)&&Ee>0&&Ee+Ze1&&(fe=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Pe=z(xe,Ee,fe,De,xe.scaleContainerClass);else return Be;return fe&&(!xe.hasOwnProperty("scale")||Be===1)?Pe:Math.min(Be,Pe)}function ge(xe){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),Be=xe.getBoundingClientRect(),Pe=(Ee-Be.width)/2,fe=(De-Be.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?xe.style.left="40px":xe.style.left=Pe+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=Pe+"px")}function Qe(xe,Ee){var De=xe.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var Be=lt(Ee,xe);ln()&&De.setAttribute("data-param-scale",Be);for(var Pe=null,fe=0;fe=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(ln){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ln){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ln){var Zt=c[ln];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function ln(xe){var Ee=xe.lastIndexOf(rb);Ee==-1&&(Ee=xe.length);var De=xe.indexOf(sb);De==-1&&(De=xe.length);var Be=xe.lastIndexOf(tb,Math.min(De,Ee));return Be>=O?xe.substring(O,Be+P):W}function Zt(xe){if(!xe.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=xe+vb,xe=ln(Ee.src)}return xe}function ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function z(){for(var xe=o.getElementsByTagName(_),Ee=O;EeO?xe[xe.length-P].href:W}function ge(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Qe=ie();return Qe==W&&(Qe=z()),Qe==W&&(Qe=lt()),Qe==W&&ge()&&(Qe=ln(o.location.href)),Qe=Zt(Qe),Qe}function C(ln){return ln.match(/^\//)||ln.match(/^[a-zA-Z]+:\/\//)?ln:webModule.__moduleBase+ln}function D(){var ln=[],Zt=O,ie=[],z=[];function lt(xe){var Ee=z[xe](),De=ie[xe];if(Ee in De)return Ee;var Be=[];for(var Pe in De)Be[De[Pe]]=Pe;throw r&&r(xe,Be,Ee),null}if(__gwt_isKnownPropertyValue=function(xe,Ee){return Ee in ie[xe]},webModule.__getPropMap=function(){var xe={};for(var Ee in ie)ie.hasOwnProperty(Ee)&&(xe[Ee]=lt(Ee));return xe},webModule.__computePropValue=lt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Qe=ge.indexOf(Db);Qe!=-1&&(Zt=parseInt(ge.substring(Qe+P),$),ge=ge.substring(O,Qe))}catch(xe){}return webModule.__softPermutationId=Zt,C(ge+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(ln,Zt,ie){"use strict";ie.d(Zt,{Ax:function(){return Qe},Ds:function(){return xe},KI:function(){return De},SI:function(){return ge},f1:function(){return lt}});var z=ie(14185);function lt(Be){let Pe=!0;if(Be.length>0){for(let fe=0;fenew Promise((Ge,Ze)=>{var je=Nt=>{try{kt(ut.next(Nt))}catch(Et){Ze(Et)}},St=Nt=>{try{kt(ut.throw(Nt))}catch(Et){Ze(Et)}},kt=Nt=>Nt.done?Ge(Nt.value):Promise.resolve(Nt.value).then(je,St);kt((ut=ut.apply(we,Ot)).next())}),et=({data:we,className:Ot,fullWidth:ut,style:Ge={},onClose:Ze,onOk:je,showFullTools:St,noAssociationId:kt})=>{const Nt=(0,z.useRef)(null),Et=(0,z.useRef)(null),vt=(0,z.useRef)(null),yt=(0,z.useRef)(null),[Ye,Bt]=(0,z.useState)(!1),[gt,tt]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(vt.current||(vt.current=document.createElement("style"),document.head.appendChild(vt.current)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),vt.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&xt()):(document.body.removeAttribute("data-custom"),vt.current&&(document.head.removeChild(vt.current),vt.current=null)),()=>{document.body.removeAttribute("data-custom"),vt.current&&(document.head.removeChild(vt.current),vt.current=null)}),[we==null?void 0:we.visible]);const xt=()=>Pe(void 0,null,function*(){Bt(!0),tt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Be.ZJ)(we==null?void 0:we.src);Nt.current.src="",Nt.current.src=pe,Nt.current.onload=function(){Je()},Bt(!1),tt("")}),Te=pe=>Pe(void 0,null,function*(){Bt(!0),tt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Lt=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:we.title,file:pe.dataUrl}});Lt!=null&&Lt.id&&!kt?(yield(0,De.ZP)(`/api/attachments/${we.id}/add_subitem.json`,{method:"post",body:{subitem_id:Lt==null?void 0:Lt.id,settings:JSON.stringify(pe.state)}})).status===0&&je():Lt!=null&&Lt.id&&je(Lt),Bt(!1),tt("")}),_e=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Le=>{const Ae=document.querySelector(Le.name);Ae&&Ae.setAttribute("title",Le.title)})},Je=()=>{Et.current=new Ee.hP(Nt.current),Et.current.targetRoot=yt.current,Et.current.addEventListener("render",Te),Et.current.addEventListener("beforeclose",Ze),St&&(Et.current.availableMarkerTypes=Et.current.ALL_MARKER_TYPES,Et.current.uiStyleSettings.redoButtonVisible=!0,Et.current.uiStyleSettings.notesButtonVisible=!0,Et.current.uiStyleSettings.zoomButtonVisible=!0,Et.current.uiStyleSettings.zoomOutButtonVisible=!0,Et.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Et.current.uiStyleSettings,Et.current.show(),we!=null&&we.snapshotData&&Et.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),_e()},300)};return z.createElement(z.Fragment,null,(we==null?void 0:we.visible)&&z.createElement(xe.Z,{spinning:Ye,tip:gt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:yt,className:Qe()(lt.imageDimensions,Ot,ut?lt.fullWidth:""),style:Ge},z.createElement("img",{className:lt.img,ref:Nt}))))}},9057:function(ln,Zt,ie){"use strict";var z=ie(59301),lt=ie(77019),ge=ie(5269),Qe=ie(31691),xe=ie(7939),Ee=ie(35883),De=ie(74501),Be=ie(48136),Pe=ie(59301);const fe=(0,z.forwardRef)(({callback:et,showSaveButton:we,value:Ot=""},ut)=>{const Ge=(0,z.useRef)(),Ze=[{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 "}]}]}],je=[{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}`}]}]}],St=Et=>{Ge.current.setValue(Ge.current.getValue()+" "+Et.value+" ")},kt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(lt.Z,{className:De.Z.lists,gutter:[10,10]},Ze.map((Et,vt)=>Pe.createElement(ge.Z,{flex:"110px",className:De.Z.item},Pe.createElement("div",null,Pe.createElement(Ee.Z,{value:`$$${Et.value}$$`}),Et.name),Pe.createElement("div",{className:De.Z.children},Et.children.map((yt,Ye)=>Pe.createElement("div",{key:Ye},Pe.createElement("h1",null,yt.name),Pe.createElement(lt.Z,{gutter:[10,10]},yt.data.map((Bt,gt)=>Pe.createElement(ge.Z,{key:gt,onClick:()=>St(Bt),className:De.Z.diamond},Pe.createElement(Ee.Z,{value:"`$$"+Bt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(lt.Z,{className:De.Z.lists,gutter:[10,10]},je.map((Et,vt)=>Pe.createElement(ge.Z,{flex:"110px",className:De.Z.item},Pe.createElement("div",null,Pe.createElement(Ee.Z,{value:"`$$"+Et.value+"$$`"}),Et.name),Pe.createElement("div",{className:De.Z.children},Et.children.map((yt,Ye)=>Pe.createElement("div",{key:Ye},yt.name&&Pe.createElement("h1",null,yt.name),Pe.createElement(lt.Z,{gutter:[10,10]},yt.data.map((Bt,gt)=>Pe.createElement(ge.Z,{key:gt,onClick:()=>St(Bt),className:De.Z.diamond},Pe.createElement(Ee.Z,{value:"`$$"+Bt.value+"$$`"}))))))))))}],Nt=()=>{var Et=document.createElement("div");Et.innerHTML=Ge.current.getValue();var vt=Et.innerText;return et&&et(vt),vt};return(0,z.useImperativeHandle)(ut,()=>({getData:Nt})),Pe.createElement("div",{className:De.Z.mathWrap},Pe.createElement(Qe.default,{defaultActiveKey:"1",items:kt}),Pe.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ge,style:{width:800,marginTop:30,fontSize:18}},Ot||""),we&&Pe.createElement("div",{className:De.Z.button},Pe.createElement(xe.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=fe},90736:function(ln,Zt,ie){"use strict";var z=ie(59301),lt=ie(4977),ge=ie(7939),Qe=Object.defineProperty,xe=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,fe=(ut,Ge,Ze)=>Ge in ut?Qe(ut,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ut[Ge]=Ze,et=(ut,Ge)=>{for(var Ze in Ge||(Ge={}))Be.call(Ge,Ze)&&fe(ut,Ze,Ge[Ze]);if(De)for(var Ze of De(Ge))Pe.call(Ge,Ze)&&fe(ut,Ze,Ge[Ze]);return ut},we=(ut,Ge)=>xe(ut,Ee(Ge));const Ot=({img:ut,buttonProps:Ge={},styles:Ze={},customText:je,ButtonText:St,ButtonClick:kt,Buttonclass:Nt,ButtonTwo:Et,imgStyles:vt,loading:yt=!1,className:Ye=""})=>z.createElement("section",{className:`tc animated fadeIn ${Ye}`,style:et({color:"#999",margin:"100px auto",visibility:yt?"hidden":"visible"},Ze)},z.createElement("img",{src:ut||lt,style:we(et({},vt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},je||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),St&&z.createElement(ge.ZP,et({className:Nt,onClick:kt},Ge),St),Et&&Et);Zt.Z=Ot},86974:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Nt}});var z=ie(59301),lt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=ie(7939),Qe=ie(70557),xe=ie(34728),Ee=ie(25399),De=ie(76406),Be=ie(84849),Pe=ie(90736),fe=ie(14185),et=ie(52078),we=ie(59301),Ot=Object.defineProperty,ut=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,je=(Et,vt,yt)=>vt in Et?Ot(Et,vt,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Et[vt]=yt,St=(Et,vt)=>{for(var yt in vt||(vt={}))Ge.call(vt,yt)&&je(Et,yt,vt[yt]);if(ut)for(var yt of ut(vt))Ze.call(vt,yt)&&je(Et,yt,vt[yt]);return Et},kt=(Et,vt,yt)=>new Promise((Ye,Bt)=>{var gt=Te=>{try{xt(yt.next(Te))}catch(_e){Bt(_e)}},tt=Te=>{try{xt(yt.throw(Te))}catch(_e){Bt(_e)}},xt=Te=>Te.done?Ye(Te.value):Promise.resolve(Te.value).then(gt,tt);xt((yt=yt.apply(Et,vt)).next())}),Nt=({editOffice:Et="view",data:vt,issaver:yt,onSaver:Ye,theme:Bt,type:gt,filename:tt,monacoEditor:xt,className:Te,style:_e,close:Je,onClose:pe,hasMask:Lt,disabledDownload:Le,onImgDimensions:Ae,showNodata:Pt,recordInfo:ve})=>{const[ce,it]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[$t,wt]=(0,z.useState)(""),[Me,Ke]=(0,z.useState)(),qe=window.ENV==="build"?"/react/build":"",Jt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Vt=10*(1024*1024),ze=(0,z.useRef)();vt!=null&&vt.startsWith("/api")&>!=="txt"&&(vt=fe.Z.API_SERVER+vt);const Wt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();tt&&xt&&(xt.filename=tt),(0,z.useEffect)(()=>{var se,ne;const he=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");he==null||he.map(be=>{let ht=be.split("=");ht[0]==="_educoder_session"&&wt(ht[1])})},[]),(0,z.useEffect)(()=>{gt==="office"&&(vt.indexOf("bigfilescdn.")>-1||vt.indexOf("bigfiles1")>-1?Ke({url:vt,fileType:Wt(vt),model:vt.indexOf("model=edit")?"edit":"view"}):vt.indexOf("coze")>-1?Ke({url:vt,fileType:"doc",model:"view"}):ae())},[gt,vt]);function dt(se){return kt(this,null,function*(){se.data.type==="pdfdata"&&(Ye(se.data.data),window.removeEventListener("message",dt,!1)),console.log("mess---:",se.data)})}const ae=()=>kt(void 0,null,function*(){console.log("data:",vt);let se=vt;vt.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const he=yield(0,Be.gJ)({attachment_id:ne});he.url=Jt+he.url,Ke(he)}),te=()=>{if(vt.startsWith("http")||vt.startsWith("blob:")){ee();return}(0,De.Sv)(tt||"educoder",vt,tt)},ee=()=>{ve&&(0,et.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,De.Nd)(tt||"educoder",decodeURIComponent(vt))};(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"&&pe()};return we.createElement("div",{style:St({},_e||{}),className:`${Lt&<.bgBlack} ${gt?lt.wrp:"hide"}`},!!gt&&Je&&we.createElement("div",{id:"closePop",className:lt.close,ref:ze},!!Ae&&we.createElement(Ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ze.current},we.createElement("span",{onClick:()=>{pe(),Ae()}},we.createElement("i",{className:"icon-yulanpizhu"}))),!Le&&window.parent===window&&we.createElement(Ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ze.current},we.createElement("span",{onClick:ee},we.createElement("i",{className:"icon-quxiaozhiding"}))),yt&&we.createElement(Ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ze.current},we.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",dt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},we.createElement("i",{className:"icon-baocun"}))),we.createElement(Ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ze.current},we.createElement("span",{className:"",onClick:()=>{pe()}},we.createElement("i",{className:"icon-guanbi1"})))),we.createElement("div",{className:`${lt[Te]} ${Te} ${lt.monaco} ${gt==="txt"?"show":"hide"}`},gt==="txt"&&we.createElement(we.Fragment,null,we.createElement(xe.ZP,St({},xt)))),gt==="audio"&&we.createElement("audio",{controls:!0,src:`${(vt==null?void 0:vt.indexOf("http://"))>-1||(vt==null?void 0:vt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${vt}`,autoPlay:!0}),gt==="video"&&we.createElement(we.Fragment,null,(vt==null?void 0:vt.indexOf("http"))>-1?we.createElement("video",{controls:!0,src:`${vt}`,autoPlay:!0}):we.createElement("video",{controls:!0,src:`data:video/mp4;base64,${vt}`,autoPlay:!0})),gt==="office"&&Me&&we.createElement("iframe",{src:`${qe}/office.html?key=${Me.key}&url=${btoa(Me.url)}&callbackUrl=${Jt+(Me.callbackUrl||"")}&fileType=${Me.fileType}&title=${Me.title||""}&model=${Et}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Le}`}),gt==="html"&&we.createElement("iframe",{src:vt+"&disposition=inline"}),gt==="pdf"&&we.createElement("iframe",{id:"pdfiframe",src:`${qe}/js/pdf/index.html?filename=${tt||"educoder.pdf"}&url=${encodeURIComponent(vt)}&disabledDownload=${!!Le}&model=${Et}`}),gt==="image"&&we.createElement("img",{src:`${(vt==null?void 0:vt.indexOf("http://"))>-1||(vt==null?void 0:vt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${vt}`}),(gt==="other"||gt==="download")&&we.createElement(we.Fragment,null,Pt?we.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:we.createElement(ge.ZP,{icon:we.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Le},"\u4E0B\u8F7D")}):we.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:Le},we.createElement(Qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),gt==="flowChart"&&we.createElement("div",{className:"embed"},we.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${vt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(ln,Zt,ie){"use strict";ie.d(Zt,{z:function(){return xt},Z:function(){return Te}});var z=ie(59301),lt=ie(46214),ge=ie(20047),Qe=ie(64018),xe=ie(16471),Ee=ie(14185),De=ie(76406),Be=ie(15342),Pe=ie(44104),fe=ie(7939),et=ie(1012),we=ie(86974),Ot=ie(59301),Ge=({html:_e})=>{const Je=(0,z.useRef)(null),pe=(0,z.useRef)(null),Lt=`.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 Le=Je.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=_e,Le.appendChild(pe.current);const Ae=document.createElement("style");return Ae.textContent=Lt,Le.appendChild(Ae),()=>{Le.innerHTML=""}},[]),(0,z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=_e)},[_e]),Ot.createElement("div",{ref:Je})};function Ze(_e){const Je=["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"],pe=new RegExp(`\\b(${Je.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Lt=/]*>/gi;return _e.replace(pe,"").replace(Lt,"").trim()}var je={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},St=Object.defineProperty,kt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,vt=(_e,Je,pe)=>Je in _e?St(_e,Je,{enumerable:!0,configurable:!0,writable:!0,value:pe}):_e[Je]=pe,yt=(_e,Je)=>{for(var pe in Je||(Je={}))Nt.call(Je,pe)&&vt(_e,pe,Je[pe]);if(kt)for(var pe of kt(Je))Et.call(Je,pe)&&vt(_e,pe,Je[pe]);return _e};const Ye="@\u2581\u2581@",Bt="@\u2581@",gt=/]*>/g;function tt(_e){let Je=document.createElement("div");return Je.innerHTML=_e,Je.childNodes.length===0?"":Je.childNodes[0].nodeValue}const xt=(_e,Je)=>{_e=_e||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Lt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Le=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ae=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Je?_e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(Pt,ve,ce,it,$t,wt,Me)=>{const Ke=ve||it||wt,qe=ce||$t||Me||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Ke+qe+"&t="+(0,De.Jn)(Ke,Date.now())+(Pt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_e=_e.replace(Ae,(Pt,ve,ce,it,$t,wt,Me)=>{const Ke=ve||it||wt,qe=ce||$t||Me||"?";return Ee.Z.API_SERVER+"/attachments/download/"+Ke+qe+"&t="+(0,De.Jn)(Ke,Date.now())+(Pt.indexOf(")")>-1?")":"&")}).replace(pe,(Pt,ve,ce,it,$t,wt,Me)=>{const Ke=ve||it||wt,qe=ce||$t||Me||"?";return Ee.Z.API_SERVER+"/api/attachments/"+Ke+qe+"&t="+(0,De.Jn)(Ke,Date.now())+(Pt.indexOf(")")>-1?")":"&")}).replace(Lt,(Pt,ve,ce,it,$t)=>{const wt=ve||it,Me=ce||$t||"";return'"'+Ee.Z.API_SERVER+"/api/attachments/"+wt+Me+wt+Me+"&t="+(0,De.Jn)(wt,Date.now())}).replace(Le,(Pt,ve,ce,it,$t)=>{const wt=ve||it,Me=ce||$t||"";return"("+Ee.Z.API_SERVER+"/files/uploads/"+wt+Me+wt+Me+"&t="+(0,De.Jn)(wt,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 Te=({value:_e="",edit:Je=!1,className:pe,showTextOnly:Lt,showLines:Le,style:Ae={},stylesPrev:Pt={},highlightKeywords:ve,showProgramFill:ce,isProgramFill:it,disabledFill:$t=!1,programFillValue:wt,openEditor:Me=()=>{},onFillChange:Ke=Rt=>{},onFillBlur:qe=()=>{},onFillFocus:Jt=()=>{}})=>{let Rt=Ze(String(_e||""));const Vt=(0,z.useRef)(),ze=(0,z.useRef)(),[Wt,dt]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,et.Z)()),ne={},he=Ct=>//i.test(Ct||""),be=(Ct,_t,Ht)=>{const ke=document.createElement(Ct===Bt?"input":"textarea");ke.style.width="100%",ke.style.height=Ct===Bt?"40px":"151px",ke.rows=5,ke.spellcheck=!1,ke.name="edu-program-fill",ke.placeholder="\u8BF7\u8F93\u5165",ke.dataset.id=_t;const at=Object.keys(ne).length;return ne[at]=ke,`${ke.outerHTML}`};function ht(Ct){return Ct=Ct.replace(/!\[.*?\]\(.*?\)/g,""),Ct=Ct.replace(/\[.*?\]\(.*?\)/g,""),Ct=Ct.replace(new RegExp("","gs"),""),Ct=Ct.replace(//g,""),Ct=Ct.replace(//g,""),Ct=Ct.replace(new RegExp(".*?<\\/video>","gs"),""),Ct=Ct.replace(new RegExp(".*?<\\/audio>","gs"),""),Ct=Ct.replace(new RegExp(".*?<\\/style>","gs"),""),Ct=Ct.replace(new RegExp(".*?<\\/script>","gs"),""),Ct}const Oe=Ct=>!Lt&&he(Rt)?Ct:Ct.replace(/([\s\S]+?)<\/style>/gim,function(_t,Ht){let ke=Ht.replace(/(\n|\r)/g,"").split("}"),at=[];return ke.map(Mt=>{Mt!=""&&at.push(`.${se.current} ${Mt}`)}),``}),We=(0,z.useMemo)(()=>{(0,ge.Iy)();try{const ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,at=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Mt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,zt=/\(\/attachments\/download\//g;Rt=Rt.replace(zt,"("+Ee.Z.API_SERVER+"/attachments/download/").replace(ke,"("+Ee.Z.API_SERVER+"/api/attachments/").replace(at,'"'+Ee.Z.API_SERVER+"/api/attachments/").replace(Mt,'"'+Ee.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,` `),Vt.current.style.display="none"}catch(ke){}if(ce){let ke=-1;return Rt=Rt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(at,Mt,zt){var Ie;return++ke,be(at,ke,(Ie=wt==null?void 0:wt[ke])==null?void 0:Ie.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Oe(Rt||"")}
`}let Ct=Oe(Rt);Ct=(0,ge.ZP)(Ct);const _t=(0,ge.ez)();Rt.match(/\[TOC\]/)&&(Ct=Ct.replace("

[TOC]

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

${Fr||

`):He.replaceSelection(`${Fr||`):((Or=jr==null?void 0:jr.type)==null?void 0:Or.indexOf("video"))>-1?He.replaceSelection(``):((Rr=jr==null?void 0:jr.type)==null?void 0:Rr.indexOf("pdf"))>-1?He.replaceSelection(`${jr.name}`):Cn.includes(Ki)?He.replaceSelection(`${jr.name}`):He.replaceSelection(`[${jr.name}](${Ar})`),He.focus();case Ht:const{row:qr,col:xr,align:$r}=dn;let Gr=` `;for(let Sr=0;Sr{switch(Mn){case jt:return z.createElement($t,{callback:Br,onCancel:Mr});case _t:return z.createElement(wt.Z,{callback:Br,onCancel:Mr});case cn:return z.createElement(Me.Z,{callback:Br,onCancel:Mr});case en:return z.createElement(oe,{editImgId:fr.current,callback:Br,onCancel:Mr});case Ht:return z.createElement(Oe,{callback:Br,onCancel:Mr});case"maths-latex":return z.createElement(Ut,{showSaveButton:!0,callback:Br});case"inline-latex":return z.createElement(Kt.Z,{showSaveButton:!0,callback:Br});default:return null}},[Mn]);function Mr(){xn("")}(0,z.useEffect)(()=>{if(yr.current){let dn=function(Or){cr=!0,kr=Or.pageY},nn=function(){cr=!1},En=function(Or){if(cr){let Rr=Or.pageY-kr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Ar=kn+Rr+"px";Vn(Ar)}},Tn=yr.current,cr=!1,kr=0;return Tn.addEventListener("mousedown",dn),document.addEventListener("mousemove",En),document.addEventListener("mouseup",nn),()=>{Tn.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",nn)}}},[He,yr]),(0,z.useEffect)(()=>{Vn(kn)},[kn]);const ir=on(mn),rr=on(_n),Jn={width:ir,height:rr},an=(0,z.useMemo)(()=>{if(On){let dn=new Date(On),nn=dn.getHours(),En=dn.getMinutes(),Tn=dn.getSeconds();return nn=nn<10?"0"+nn:nn,En=En<10?"0"+En:En,Tn=Tn<10?"0"+Tn:Tn,`${nn}:${En}:${Tn}`}return 0},[On]),pn=dn=>{const nn=[];if(zn){let En=-1;dn=dn.replace(/(@▁▁@|@▁@)/g,function(Tn,cr,kr){nn.push({multiLine:Tn!==un})})}return nn};function hn(){window.sessionStorage.removeItem(ar),wn(!1),Fn(0)}function tn(){wn(!1),Fn(0),He.setValue(window.sessionStorage.getItem(ar))}(0,z.useEffect)(()=>{bn[Mn]&&Mn!==sn&&Mn!==en&&setTimeout(()=>{const dn=document.getElementsByClassName("markdown-popup-form")[0],nn=window.innerWidth/2-dn.offsetWidth/2,En=window.innerHeight/2-dn.offsetHeight/2;Wn(nn),pr(En)},0)},[Mn]);const Bn=dn=>{dn.preventDefault();const nn=dn.clientX-er,En=dn.clientY-dr;document.body.onmousemove=Tn=>{let cr=Tn.clientX-nn,kr=Tn.clientY-En;const Or=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Or.offsetWidth,Ar=window.innerHeight-Or.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),kr=Math.max(0,Math.min(kr,Ar)),Gn(Tn.clientX,Tn.clientY,nn,En)&&(Wn(cr),pr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gn=(dn,nn,En,Tn)=>{const cr=document.body.clientHeight,kr=document.body.clientWidth;return dn<20&&En>dn||dn>kr-20&&Ennn||nn>cr-20&&Tn{var nn;fr.current=dn,(nn=Qn.current)==null||nn.setHeight("100vh"),setTimeout(()=>{xn("add-flowchart")},150)}})):null))),qn?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Mn===sn&&z.createElement(Vt,{callback:Br,onCancel:Mr}),Mn===en&&z.createElement(oe,{ref:Qn,editImgId:fr.current,callback:Br,onCancel:Mr}),z.createElement(gt.Z,null,bn[Mn]&&Mn!==sn&&Mn!==en?z.createElement(Ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Bn},bn[Mn]),open:!0,onCancel:Mr,footer:null,destroyOnClose:!0,width:Mn===en?"1200px":null,height:Mn===en?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return yt},I:function(){return Bt}});var z=ie(28284),lt=ie(6767),ge=ie(37568),Qe=ie(44104),xe=ie(4875),Ee=ie(47889),De=ie(7939),Be=ie(23216),Pe=ie(59301),fe=ie(59301),et=Object.defineProperty,we=Object.defineProperties,Ot=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,je=(gt,tt,xt)=>tt in gt?et(gt,tt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):gt[tt]=xt,St=(gt,tt)=>{for(var xt in tt||(tt={}))Ge.call(tt,xt)&&je(gt,xt,tt[xt]);if(ut)for(var xt of ut(tt))Ze.call(tt,xt)&&je(gt,xt,tt[xt]);return gt},kt=(gt,tt)=>we(gt,Ot(tt));const{useForm:Nt}=z.default,Et={width:280,marginRight:10},vt={labelCol:{span:5},wrapperCol:{span:19}};var yt=({callback:gt,onCancel:tt})=>{const[xt]=Nt();let Te=(0,Pe.useRef)();function _e(Lt){Te.current.width=xt.getFieldValue("width"),Te.current.align=xt.getFieldValue("align"),gt(Lt,Te.current)}function Je(Lt,Le){if(Lt.status===-1){lt.ZP.error(Lt.message);return}xt.setFieldsValue({src:`/api/attachments/${Lt.id}`,type:Le.type})}function pe(Lt){let Le=Lt.target.files[0];Te.current=Le,Bt(Le,Je)}return fe.createElement(z.default,kt(St({form:xt},vt),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ge.default,{style:Et})),fe.createElement(Ye,{onFileChange:pe}))),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ge.default,{style:{width:264}})),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(Qe.Z,null,fe.createElement(z.default.Item,{name:"width",style:{margin:0}},fe.createElement(xe.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(Ee.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"}]})),fe.createElement("aside",null,fe.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(De.ZP,{type:"default",onClick:tt},"\u53D6\u6D88"))))};function Ye({onFileChange:gt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:gt}))}function Bt(gt,tt){if(!gt)throw new String("\u6CA1\u6709\u6587\u4EF6");let xt=new FormData;xt.append("editormd-image-file",gt),xt.append("file_param_name","editormd-image-file"),xt.append("byxhr","true");var Te=new window.XMLHttpRequest;Te.withCredentials=!0,Te.addEventListener("load",function(_e){tt(JSON.parse(_e.target.responseText),gt)},!1),Te.addEventListener("error",function(_e){console.error(_e)},!1),Te.open("POST",`${Be.KI}/api/attachments.json`),Te.send(xt)}},88487:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ge}});var z=ie(59301),lt=ie(4676);class ge extends z.Component{constructor(xe){super(xe);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,lt.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(ln,Zt,ie){"use strict";ie.d(Zt,{SV:function(){return Vt},ZP:function(){return Rt}});var z=ie(59301),lt=ie(76374);const ge={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"]},xe={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(` `)}]},Ee={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},De={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Be=ie(53184),Pe=ie.n(Be),fe=(ze,Wt,dt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(dt.next(ne))}catch(he){te(he)}},oe=ne=>{try{se(dt.throw(ne))}catch(he){te(he)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((dt=dt.apply(ze,Wt)).next())});const et={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"]}},we=(ze,Wt,dt,ae)=>{const te=Wt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:dt.lineNumber,endColumn:dt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:ze.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},Ot=(ze,Wt,dt,ae)=>{ze.languages.registerCompletionItemProvider(Wt,{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:[...we(ze,te,ee,se),...dt.map(be=>({label:be,kind:ze.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(be=>({label:be.label,kind:ze.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:ne.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:ze.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var ut=ze=>{et.languages.forEach(Wt=>{ze.languages.registerDocumentFormattingEditProvider(Wt,{provideDocumentFormattingEdits(dt){return fe(this,null,function*(){const ae=Pe()(dt.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:dt.getFullModelRange(),text:ae}]})}})}),Ot(ze,"java",Qe.keywords,Qe.quickKey),Ot(ze,"cpp",xe.keywords,xe.quickKey),Ot(ze,"c",ge.keywords,[]),Ot(ze,"python",Ee.keywords,Ee.quickKey),Ot(ze,"scala",De.keywords,De.quickKey)};const Ge="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ze=Object.defineProperty,je=(ze,Wt,dt)=>Wt in ze?Ze(ze,Wt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ze[Wt]=dt,St=(ze,Wt,dt)=>je(ze,typeof Wt!="symbol"?Wt+"":Wt,dt);const kt=class $s{constructor(Wt,dt,ae){this.placeholder=Wt,this.editor=dt,this.monaco=ae,dt.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)}};St(kt,"ID","editor.widget.placeholderHint");var Et=kt,vt=ie(96236),yt=ie(6767),Ye=ie(25399),Bt=ie(78267),gt=ie(33156),tt=ie(56102),xt=Object.defineProperty,Te=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Le=(ze,Wt,dt)=>Wt in ze?xt(ze,Wt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ze[Wt]=dt,Ae=(ze,Wt)=>{for(var dt in Wt||(Wt={}))pe.call(Wt,dt)&&Le(ze,dt,Wt[dt]);if(Je)for(var dt of Je(Wt))Lt.call(Wt,dt)&&Le(ze,dt,Wt[dt]);return ze},Pt=(ze,Wt)=>Te(ze,_e(Wt)),ve=(ze,Wt)=>{var dt={};for(var ae in ze)pe.call(ze,ae)&&Wt.indexOf(ae)<0&&(dt[ae]=ze[ae]);if(ze!=null&&Je)for(var ae of Je(ze))Wt.indexOf(ae)<0&&Lt.call(ze,ae)&&(dt[ae]=ze[ae]);return dt},ce=(ze,Wt,dt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(dt.next(ne))}catch(he){te(he)}},oe=ne=>{try{se(dt.throw(ne))}catch(he){te(he)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((dt=dt.apply(ze,Wt)).next())});function it(ze){return/^\d+$/.test(ze)?`${ze}px`:ze}function $t(){}let wt=!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 Ke(ze=[]){let Wt=ze;if(Array.isArray(ze)){for(let dt=0;dtce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ze){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ze)}});var Rt=ze=>{var Wt=ze,{width:dt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:he="vs-dark",onEditBlur:be,isCopy:ht=!1,onSave:Oe,autoHeight:We=!1,forbidCopy:ft=!1,forbidCopyTips:It,onChange:bt=$t,editorDidMount:Ut=$t,onFocus:Kt=$t,onBreakPoint:jt=$t,breakPointValue:cn=[],filename:en="educoder.txt",errorLine:sn,errorContent:Ct="",highlightLine:_t,openBreakPoint:Ht=!1,placeholder:ke="",showMiniMap:at=!0}=Wt,Mt=ve(Wt,["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 zt=(0,z.useRef)(),Ie=(0,z.useRef)({}),Xe=(0,z.useRef)(),pt=(0,z.useRef)(),Dt=(0,z.useRef)([]),Gt=(0,z.useRef)(!1),un=(0,z.useRef)(),Sn=(0,z.useRef)(),Cn=(0,z.useRef)(!1),[on,yn]=(0,z.useState)(!1);function gn(){let At;return zt.current&&(At=new lt.Z(rn=>{for(let zn of rn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&Ie.current.instance.layout()}),At.observe(zt.current)),At}function $n(){yt.ZP.warning({content:decodeURIComponent(It||Ge),key:"monaco-editor-tip"})}const bn=()=>{let At=Ie.current.instance;if(te!=null&&At&&on){const rn=At.getModel();rn&&te!==rn.getValue()&&(wt=!0,rn.setValue(te),At.layout(),wt=!1)}};(0,z.useEffect)(()=>{const At=gt.Z.subscribe("formatDocument",rn=>{var zn;let nr=Ie.current.instance;(zn=nr==null?void 0:nr.getAction)==null||zn.call(nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=rn=>{bt(rn)},At},[]),(0,z.useEffect)(()=>{var At;let rn=Ie.current.instance;pt.current&&clearTimeout(pt.current),pt.current=setTimeout(()=>{bn()},500),te&&(te!=null&&te.length)&&((At=rn==null?void 0:rn.updateOptions)==null||At.call(rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,on,Ie.current]),(0,z.useEffect)(()=>{if(sn&&Ie.current&&Ie.current.instance){let rn=Ie.current.instance;rn.changeViewZones(function(zn){var nr=document.createElement("div");nr.style.padding="10px 20px",nr.style.width="calc(100% - 20px)",nr.className="my-error-line-wrp",nr.innerHTML=Ct,zn.addZone({afterLineNumber:sn||11,heightInLines:3,domNode:nr})});var At={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}};rn.addOverlayWidget(At),rn.revealPositionInCenter({lineNumber:20,column:1})}},[sn,Ie.current,on]);const vn=(At="",rn)=>{if(!At||At.trim()==="")return!0;const nr=Ie.current.instance.getModel().getLineTokens(rn);let Re=!1;for(let st=0;st<2;st++)nr.getStandardTokenType(st)===1&&(Re=!0);return Re};(0,z.useEffect)(()=>{var At;const rn=(At=Ie.current)==null?void 0:At.instance;if(rn&&on&&ft){const zn=rn.onDidBlurEditorWidget(()=>{Cn.current=!1}),nr=rn.onDidFocusEditorText(()=>{Cn.current=!0});return()=>{zn.dispose(),nr.dispose()}}},[Ie.current,on,ft]),(0,z.useEffect)(()=>{var At;if((At=Ie.current)!=null&&At.instance&&on&&Ht){let rn=Ie.current.instance,zn=rn.getModel();if(!zn)return;(()=>{var rt;let $e=[],He=[];const ot=zn.getAllDecorations();for(let Xt of ot)Xt.options.className==="highlighted-line"&&($e.push((rt=Xt==null?void 0:Xt.range)==null?void 0:rt.startLineNumber),He.push(Xt==null?void 0:Xt.id));if(_t===$e[0])return;zn.deltaDecorations(He,[]);const qt=zn.getLineCount();_t&&_t<=qt&&(rn.deltaDecorations([],[{range:new qe.Range(_t,1,_t,zn.getLineMaxColumn(_t)),options:{isWholeLine:!0,className:"highlighted-line"}}]),rn.revealLineInCenter(_t))})();const Re=(rt=!1)=>{var $e;let He=[],ot=[];const qt=zn.getAllDecorations();for(let Xt of qt)Xt.options.linesDecorationsClassName==="breakpoints-select"&&(He.push(($e=Xt==null?void 0:Xt.range)==null?void 0:$e.startLineNumber),ot.push(Xt==null?void 0:Xt.id));if(rt)return{lines:He,ids:ot};jt(He)},st=rt=>ce(void 0,null,function*(){let $e={range:new qe.Range(rt,1,rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield zn.deltaDecorations([],[$e]),Re()}),Ce=rt=>ce(void 0,null,function*(){let $e=[];const He=rn.getLineDecorations(rt);for(let ot of He)ot.options.linesDecorationsClassName==="breakpoints-select"&&$e.push(ot.id);yield zn.deltaDecorations($e,[]),Re()}),Ne=rt=>{let $e=rn.getLineDecorations(rt);for(let He of $e)if(He.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Bt.isEqual)(cn,Re(!0).lines)){zn.deltaDecorations(Re(!0).ids,[]);const rt=cn.map($e=>({range:new qe.Range($e,1,$e,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));zn.deltaDecorations([],rt)}const Se=rn.onDidChangeModelContent(rt=>{let $e=rn.getPosition();if($e){let He=$e.lineNumber;clearTimeout(Sn.current),Sn.current=setTimeout(()=>{vn(zn.getLineContent(He),He)?Ce(He):Ne(He)?(Ce(He),st(He)):Re()},100)}}),Fe=rn.onMouseDown(rt=>{var $e,He,ot;if(rt.target.detail&&((ot=(He=($e=rt.target)==null?void 0:$e.element)==null?void 0:He.className)!=null&&ot.includes("line-numbers"))){let qt=rt.target.position.lineNumber;if(vn(zn.getLineContent(qt),qt))return;Ne(qt)?Ce(qt):st(qt)}}),ye=rt=>{let $e={range:new qe.Range(rt,1,rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Dt.current=rn.deltaDecorations(Dt.current,[$e])},Ue=()=>{Dt.current=rn.deltaDecorations(Dt.current,[])},nt=rn.onMouseMove(rt=>{var $e,He,ot;if(Ue(),rt.target.detail&&((ot=(He=($e=rt.target)==null?void 0:$e.element)==null?void 0:He.className)!=null&&ot.includes("line-numbers"))){let qt=rt.target.position.lineNumber;if(vn(zn.getLineContent(qt),qt))return;ye(qt)}}),mt=rn.onMouseLeave(()=>{Ue()});return()=>{Se.dispose(),Fe.dispose(),nt.dispose(),mt.dispose()}}},[Ie.current,on,cn,_t,Ht,ee]),(0,z.useEffect)(()=>{var At;(At=Ie.current)!=null&&At.instance&&Ht&&Ie.current.instance.setPosition({lineNumber:0,column:0})},[_t]);function Yt(){let At=Ie.current.instance;if(At){const rn=At.getSelection(),zn=Ie.current.pastePos||{},nr=new qe.Range(zn.startLineNumber||rn.endLineNumber,zn.startColumn||rn.endColumn,zn.endLineNumber||rn.endLineNumber,zn.endColumn||rn.endColumn);setTimeout(()=>{At.executeEdits("",[{range:nr,text:""}])},300)}}function Pn(At){(window.navigator.platform.match("Mac")?At.metaKey:At.ctrlKey)&&At.keyCode==83&&(At.preventDefault(),Oe())}const mn=()=>{if(We&&Ie.current.instance){const At=Ie.current.instance.getContentHeight();ar(At{if(!Cn.current)return;const{keyCode:rn,ctrlKey:zn,metaKey:nr,target:Re,type:st}=At;return(st==="paste"||(rn===67||rn===86)&&(nr||zn))&&Re.nodeName==="TEXTAREA"&&($n(),At.preventDefault()),!1};function Zn(At,rn){var zn=window.URL||window.webkitURL||window,nr=new Blob([rn]),Re=document.createElementNS("http://www.w3.org/1999/xhtml","a");Re.href=zn.createObjectURL(nr),Re.download=At,kn(Re)}(0,z.useEffect)(()=>{mn()},[mn]),(0,z.useEffect)(()=>{zt.current&&!on&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(At=>{try{qe=At,Ie.current.instance=qe.editor.create(zt.current,{value:te,language:Ke(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:at||!1}},ne);const rn=Ie.current.instance;let Re=[...vt.BH._menuItems].find(Se=>Se[0]._debugName=="EditorContext")[1],st=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ce=(Se,Fe)=>{var ye,Ue;let nt=Se._first;do Fe.includes((Ue=(ye=nt.element)==null?void 0:ye.command)==null?void 0:Ue.id)&&Se._remove(nt);while(nt=nt.next)};if(Ut(rn,qe),setTimeout(()=>{mn(),Ie.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zn(en||"educoder.txt",rn.getValue())}})},500),Ie.current.subscription=rn.onDidChangeModelContent(Se=>{Gt.current?clearTimeout(un.current):(mn(),bt(rn.getValue(),Se)),un.current=setTimeout(()=>{Gt.current=!1},500)}),window.Monaco||ut(qe,Ke(ee)),ft&&(Ce(Re,st),zt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",jn),window.removeEventListener("paste",jn),window.addEventListener("keydown",jn),window.addEventListener("paste",jn)),window.Monaco=qe,be&&rn.onDidBlurEditorWidget(()=>{be(rn.getValue())}),Kt&&rn.onDidFocusEditorText(()=>{ft&&Jt(),Kt(rn.getValue())}),ft){Jt();try{rn.onDidPaste(Se=>{const Fe=rn.getSelection(),ye=Ie.current.pastePos||{},Ue=new qe.Range(ye.startLineNumber||Fe.endLineNumber,ye.startColumn||Fe.endColumn,ye.endLineNumber||Fe.endLineNumber,ye.endColumn||Fe.endColumn);rn.executeEdits("",[{range:Se.range,text:""}])})}catch(Se){}}let Ne=gn();return ke&&typeof ke=="string"&&new Et(ke,rn,qe),yn(!0),()=>{const Se=Ie.current.instance;Se.dispose();const Fe=Se.getModel();Fe&&Fe.dispose(),Ie.current.subscription&&Ie.current.subscription.dispose(),Ne.unobserve(zt.current)}}catch(rn){}})},[]),(0,z.useEffect)(()=>{if(Ie.current.instance&&on)return document.addEventListener("keydown",Pn,!1),()=>{document.removeEventListener("keydown",Pn)}},[Oe,on]),(0,z.useEffect)(()=>{let At=Ie.current.instance;if(At&&on){let rn=Ke(ee);qe.editor.setModelLanguage(At.getModel(),rn)}},[ee,on]),(0,z.useEffect)(()=>{Ie.current.instance&&on&&qe.editor.setTheme(he)},[he,on]),(0,z.useEffect)(()=>{let At=Ie.current.instance;Xe.current=se,At&&on&&(At.updateOptions(Ae({},se)),setTimeout(()=>{At.getModel().updateOptions(Ae({},se))},200))},[JSON.stringify(se),on]),(0,z.useEffect)(()=>{let At=Ie.current.instance;At&&on&&At.layout()},[dt,ae,on]);const[An,Yn]=(0,z.useState)(it(dt)),[Nn,ar]=(0,z.useState)(it(ae)),qn=Pt(Ae({},oe),{width:An,height:Nn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:zt,style:qn,onFocus:()=>{ft&&Jt()}},ht&&z.createElement(tt.CopyToClipboard,{text:te,onCopy:()=>yt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Ye.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 Vt({width:ze="100%",height:Wt="100%",original:dt,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,ne]=(0,z.useState)(null);function he(We){let ft;return oe.current&&(ft=new lt.Z(It=>{for(let bt of It)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&We.layout()}),ft.observe(oe.current)),ft}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(We=>{qe=We;const ft=qe.editor.createDiffEditor(oe.current,Pt(Ae({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(ft);let It=he(ft);return()=>{ft.dispose();const bt=ft.getModel();bt&&bt.dispose(),It.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:qe.editor.createModel(dt,te),modified:qe.editor.createModel(ae,te)})},[dt,ae,te,se]);const be=it(ze),ht=it(Wt),Oe={width:be,height:ht};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Oe})}},79006:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return lt}});var z=ie(59301);function lt(ge,Qe){const xe=(0,z.useRef)();(0,z.useEffect)(()=>{xe.current=ge}),(0,z.useEffect)(()=>{function Ee(){xe.current()}if(Qe!==null){let De=setInterval(Ee,Qe);return()=>clearInterval(De)}},[Qe])}},68046:function(ln,Zt,ie){"use strict";ie.r(Zt),ie.d(Zt,{default:function(){return xt}});var z=ie(59301),lt=ie(44283),ge=ie(28284),Qe=ie(6767),xe=ie(91882),Ee=ie(37568),De=ie(94968),Be=ie(77019),Pe=ie(5269),fe=ie(4875),et=ie(62673),we=ie(7939),Ot=ie(39116),ut=ie(9657),Ge=ie(14185),Ze={bg:"bg___iB8eB",flexRow:"flexRow___rWsOs",flexJustifyCenter:"flexJustifyCenter___GenLk",flexAlignEnd:"flexAlignEnd___AMfei",flexAlignCenter:"flexAlignCenter___rQos5",flexColumn:"flexColumn___fJhyT",formWrap:"formWrap___pNpQ9",titleWrap:"titleWrap____VSL0",fieldWrap:"fieldWrap___ACUG9",mdWrap:"mdWrap___xFqQa",backgroundFa:"backgroundFa___MuFzN",button:"button___tzh3S"},je=Object.defineProperty,St=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,yt=(Te,_e,Je)=>_e in Te?je(Te,_e,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Te[_e]=Je,Ye=(Te,_e)=>{for(var Je in _e||(_e={}))Et.call(_e,Je)&&yt(Te,Je,_e[Je]);if(Nt)for(var Je of Nt(_e))vt.call(_e,Je)&&yt(Te,Je,_e[Je]);return Te},Bt=(Te,_e)=>St(Te,kt(_e)),gt=(Te,_e,Je)=>new Promise((pe,Lt)=>{var Le=ve=>{try{Pt(Je.next(ve))}catch(ce){Lt(ce)}},Ae=ve=>{try{Pt(Je.throw(ve))}catch(ce){Lt(ce)}},Pt=ve=>ve.done?pe(ve.value):Promise.resolve(ve.value).then(Le,Ae);Pt((Je=Je.apply(Te,_e)).next())});const tt=({shixunHomeworks:Te,newCourse:_e,globalSetting:Je,loading:pe,dispatch:Lt})=>{var Le;const Ae=(0,lt.useParams)(),[Pt]=ge.default.useForm(),[ve,ce]=(0,z.useState)({}),[it,$t]=(0,z.useState)(!1),[wt,Me]=(0,z.useState)([]),[Ke,qe]=(0,z.useState)([]),{commonHomeWorkEditDefaultData:Jt}=Te,Rt={name:"file",multiple:!0,action:Ge.Z.API_SERVER+"/api/attachments.json",defaultFileList:wt,onChange(dt){const{status:ae}=dt.file;ae==="done"?Qe.ZP.success(`${dt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):ae==="error"&&Qe.ZP.error(`${dt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,z.useEffect)(()=>{ze()},[Ae.topicId]);const Vt=dt=>dt==null?void 0:dt.map(ae=>({uid:ae.id,response:{id:ae.id},name:ae.title,status:"done",url:ae.url})),ze=()=>gt(void 0,null,function*(){const dt=yield Lt({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:Ae.topicId}});dt&&(Pt.setFieldsValue({name:dt.name}),Pt.setFieldsValue({description:dt.description}),Pt.setFieldsValue(Ye({},dt)),ce(Ye({},dt)),Me([...Vt(dt.attachments)]),qe([...Vt(dt.reference_attachments)]),$t(!0))}),Wt=dt=>gt(void 0,null,function*(){var ae,te;const ee=Ye({},dt);ee.attachment_ids&&(ee.attachment_ids=(ae=ee==null?void 0:ee.attachment_ids.fileList)==null?void 0:ae.map(se=>se.response.id)),ee.reference_attachment_ids&&(ee.reference_attachment_ids=(te=ee==null?void 0:ee.reference_attachment_ids.fileList)==null?void 0:te.map(se=>se.response.id)),(yield(0,ut.yT)(Bt(Ye(Ye({id:Ae.topicId},Ae),ee),{type:3})))&<.history.push(`/users/${Ae.username}/topics/${Ae.topicId}/${Ae.topictype}/group/detail`)});return z.createElement("section",{className:Ze.bg},z.createElement("section",{className:"animated fadeIn"},z.createElement("aside",{className:"mt10"},z.createElement(xe.Z,{separator:">"},z.createElement(xe.Z.Item,null,z.createElement(lt.Link,{to:`/users/${Ae.username}/${Ae.topictype==="personal"?"topics":"topicbank"}/${Ae.topictype}`},Ae.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),z.createElement(xe.Z.Item,null,z.createElement(lt.Link,{to:`/users/${Ae.username}/topics/${Ae.topicId}/${Ae.topictype}/group/detail`},"\u8BE6\u60C5")),z.createElement(xe.Z.Item,null,"\u7F16\u8F91")))),z.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u666E\u901A\u4F5C\u4E1A"),z.createElement(ge.default,{form:Pt,className:Ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ce(Ye({},Pt.getFieldsValue()))},onFinish:Wt},z.createElement("div",{className:Ze.fieldWrap},z.createElement(ge.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},z.createElement(Ee.default,{maxLength:60,suffix:`${((Le=ve.name)==null?void 0:Le.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),z.createElement("div",{className:Ze.mdWrap},z.createElement(ge.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},z.createElement(Ot.Z,{watch:!0,defaultValue:Jt.description})),z.createElement("div",null,z.createElement(ge.default.Item,{name:"attachment_ids"},it&&z.createElement(De.default,Ye({defaultFileList:wt},Rt),z.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09"))),z.createElement(Be.Z,{gutter:[20,20]},z.createElement(Pe.Z,{flex:"230px"},z.createElement(ge.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},z.createElement(fe.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),z.createElement(Pe.Z,{flex:"230px"},z.createElement(ge.default.Item,{name:"max_num",label:z.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},z.createElement(fe.Z,{style:{width:200},max:10,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),z.createElement(Pe.Z,null,z.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),z.createElement(Be.Z,null,z.createElement(Pe.Z,null,z.createElement(ge.default.Item,{name:"base_on_project",valuePropName:"checked"},z.createElement(et.default,{value:1,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),z.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),z.createElement("div",{className:Ze.mdWrap},z.createElement(ge.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},z.createElement(Ot.Z,{defaultValue:Jt.reference_answer,watch:!0})),z.createElement("div",null,z.createElement(ge.default.Item,{name:"reference_attachment_ids"},it&&z.createElement(De.default,Bt(Ye({},Rt),{defaultFileList:Ke}),z.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),z.createElement("div",{className:Ze.backgroundFa},z.createElement("div",{className:"pt40 mb30"},z.createElement(ge.default.Item,null,z.createElement(we.ZP,{size:"middle",type:"primary",className:`${Ze.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),z.createElement(we.ZP,{size:"middle",type:"primary",ghost:!0,className:Ze.button,onClick:()=>lt.history.push(`/users/${Ae.username}/topics/${Ae.topicId}/${Ae.topictype}/group/detail`)},"\u53D6\u6D88"))))))};var xt=(0,lt.connect)(({shixunHomeworks:Te,newCourse:_e,loading:Je,globalSetting:pe})=>({shixunHomeworks:Te,newCourse:_e,globalSetting:pe,loading:Je.effects}))(tt)},20047:function(ln,Zt,ie){"use strict";ie.d(Zt,{AL:function(){return Et},Iy:function(){return et},Qv:function(){return ut},ez:function(){return Nt},jb:function(){return we}});var z=ie(32834),lt=ie.n(z),ge=ie(11690),Qe=ie.n(ge);let xe=1;function Ee(gt,tt){const xt=gt.match(/^(\s+)(?:```)/);if(xt===null)return tt;const Te=xt[1];return tt.split(` `).map(_e=>{const Je=_e.match(/^\s+/);if(Je===null)return _e;const[pe]=Je;return pe.length>=Te.length?_e.slice(Te.length):_e}).join(` `)}let De=[],Be=["
    "];const Pe=new(lt()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function et(){De.length=0,Be=["
      "]}const we={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ot(gt,tt,xt,Te){if(tt>=gt.length||gt[tt].level<=xt)return tt;var _e=gt[tt];Te.push("
    • "+_e.text+""),tt++;var Je=[];return tt=Ot(gt,tt,_e.level,Je),Je.length>0&&(Te.push("
        "),Je.forEach(function(pe){Te.push(pe)}),Te.push("
      ")),Te.push("
    • "),tt=Ot(gt,tt,xt,Te),tt}function ut(){return Ot(De,0,0,Be),Be.push("
    "),Be.join("")}const Ge={heading(gt){const tt=fe.exec(gt);if(xe+=1,tt)return{type:"heading",raw:tt[0],depth:tt[1].length,text:tt[2]}},fences(gt){const tt=this.rules.block.fences.exec(gt);if(tt){const xt=tt[0];let Te=Ee(xt,tt[3]||"");const _e=tt[2]?tt[2].trim():tt[2];if(["latex","katex","math"].indexOf(_e)>=0){const Je=St(),pe=Te;Te=Je,kt[Je]={type:"block",expression:pe}}return{type:"code",raw:xt,lang:_e,text:Te}}}},Ze=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let je=0;const St=()=>`__special_katext_id_${je++}__`;let kt={};function Nt(){return kt}function Et(){je=0,kt={}}function vt(gt){return gt=gt.replace(Ze,(tt,xt)=>{const Te=St();return kt[Te]={type:"inline",expression:xt},Te}),gt}const yt=Pe.listitem;Pe.listitem=function(gt){return yt(vt(gt))};const Ye=Pe.paragraph;Pe.paragraph=function(gt){return Ye(vt(gt))};const Bt=Pe.tablecell;Pe.tablecell=function(gt,tt){return Bt(vt(gt),tt)},Pe.code=function(gt,tt,xt){const Te=(tt||"").match(/\S*/)[0];return Te?["latex","katex","math"].indexOf(Te)>=0?`

    ${gt}

    `:`
    ${xt?gt:(0,ge.escape)(gt,!0)}
    `:'
    '+(xt?gt:(0,ge.escape)(gt,!0))+"
    "},Pe.heading=function(gt,tt,xt){let Te=this.options.headerPrefix+xt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return De.push({anchor:Te,level:tt,text:gt}),"'+gt+""},lt().setOptions({silent:!0,gfm:!0,pedantic:!1}),lt().use({tokenizer:Ge,renderer:Pe}),Zt.ZP=lt()},86013:function(ln,Zt,ie){"use strict";var z=ie(59301),lt=ie(19248);const ge=Qe=>{let xe;return typeof Qe=="object"&&(Qe!=null&&Qe.clearIcon)?xe=Qe:Qe&&(xe={clearIcon:z.createElement(lt.Z,null)}),xe};Zt.Z=ge},91882:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Le}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(11592),xe=ie(26112),Ee=ie(22703),De=ie(48755),Be=ie(84105),Pe=ie(19563);const fe=Ae=>{let{children:Pt}=Ae;const{getPrefixCls:ve}=z.useContext(De.E_),ce=ve("breadcrumb");return z.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},Pt===""?Pt:Pt||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var et=fe,we=function(Ae,Pt){var ve={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&Pt.indexOf(ce)<0&&(ve[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ae);itPt[it]||ce)}function ut(Ae,Pt,ve,ce){if(ve==null)return null;const{className:it,onClick:$t}=Pt,wt=we(Pt,["className","onClick"]),Me=Object.assign(Object.assign({},(0,xe.Z)(wt,{data:!0,aria:!0})),{onClick:$t});return ce!==void 0?z.createElement("a",Object.assign({},Me,{className:ge()(`${Ae}-link`,it),href:ce}),ve):z.createElement("span",Object.assign({},Me,{className:ge()(`${Ae}-link`,it)}),ve)}function Ge(Ae,Pt){return(ce,it,$t,wt,Me)=>{if(Pt)return Pt(ce,it,$t,wt);const Ke=Ot(ce,it);return ut(Ae,ce,Ke,Me)}}var Ze=function(Ae,Pt){var ve={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&Pt.indexOf(ce)<0&&(ve[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ae);it{const{prefixCls:Pt,separator:ve="/",children:ce,menu:it,overlay:$t,dropdownProps:wt,href:Me}=Ae,qe=(Jt=>{if(it||$t){const Rt=Object.assign({},wt);if(it){const Vt=it||{},{items:ze}=Vt,Wt=Ze(Vt,["items"]);Rt.menu=Object.assign(Object.assign({},Wt),{items:ze==null?void 0:ze.map((dt,ae)=>{var{key:te,title:ee,label:oe,path:se}=dt,ne=Ze(dt,["key","title","label","path"]);let he=oe!=null?oe:ee;return se&&(he=z.createElement("a",{href:`${Me}${se}`},he)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:he})})})}else $t&&(Rt.overlay=$t);return z.createElement(Pe.Z,Object.assign({placement:"bottom"},Rt),z.createElement("span",{className:`${Pt}-overlay-link`},Jt,z.createElement(Be.Z,null)))}return Jt})(ce);return qe!=null?z.createElement(z.Fragment,null,z.createElement("li",null,qe),ve&&z.createElement(et,null,ve)):null},St=Ae=>{const{prefixCls:Pt,children:ve,href:ce}=Ae,it=Ze(Ae,["prefixCls","children","href"]),{getPrefixCls:$t}=z.useContext(De.E_),wt=$t("breadcrumb",Pt);return z.createElement(je,Object.assign({},it,{prefixCls:wt}),ut(wt,it,ve,ce))};St.__ANT_BREADCRUMB_ITEM=!0;var kt=St,Nt=ie(36237),Et=ie(63356),vt=ie(16931),yt=ie(51636);const Ye=Ae=>{const{componentCls:Pt,iconCls:ve,calc:ce}=Ae;return{[Pt]:Object.assign(Object.assign({},(0,Et.Wf)(Ae)),{color:Ae.itemColor,fontSize:Ae.fontSize,[ve]:{fontSize:Ae.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ae.linkColor,transition:`color ${Ae.motionDurationMid}`,padding:`0 ${(0,Nt.unit)(Ae.paddingXXS)}`,borderRadius:Ae.borderRadiusSM,height:Ae.fontHeight,display:"inline-block",marginInline:ce(Ae.marginXXS).mul(-1).equal(),"&:hover":{color:Ae.linkHoverColor,backgroundColor:Ae.colorBgTextHover}},(0,Et.Qy)(Ae)),"li:last-child":{color:Ae.lastItemColor},[`${Pt}-separator`]:{marginInline:Ae.separatorMargin,color:Ae.separatorColor},[`${Pt}-link`]:{[` > ${ve} + span, > ${ve} + a `]:{marginInlineStart:Ae.marginXXS}},[`${Pt}-overlay-link`]:{borderRadius:Ae.borderRadiusSM,height:Ae.fontHeight,display:"inline-block",padding:`0 ${(0,Nt.unit)(Ae.paddingXXS)}`,marginInline:ce(Ae.marginXXS).mul(-1).equal(),[`> ${ve}`]:{marginInlineStart:Ae.marginXXS,fontSize:Ae.fontSizeIcon},"&:hover":{color:Ae.linkHoverColor,backgroundColor:Ae.colorBgTextHover,a:{color:Ae.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ae.componentCls}-rtl`]:{direction:"rtl"}})}},Bt=Ae=>({itemColor:Ae.colorTextDescription,lastItemColor:Ae.colorText,iconFontSize:Ae.fontSize,linkColor:Ae.colorTextDescription,linkHoverColor:Ae.colorText,separatorColor:Ae.colorTextDescription,separatorMargin:Ae.marginXS});var gt=(0,vt.I$)("Breadcrumb",Ae=>{const Pt=(0,yt.mergeToken)(Ae,{});return Ye(Pt)},Bt),tt=function(Ae,Pt){var ve={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&Pt.indexOf(ce)<0&&(ve[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ae);it{var{breadcrumbName:wt}=$t,Me=tt($t,["breadcrumbName"]);return Object.assign(Object.assign({},Me),{title:wt})})}),it}function Te(Ae,Pt){return(0,z.useMemo)(()=>Ae||(Pt?Pt.map(xt):null),[Ae,Pt])}var _e=function(Ae,Pt){var ve={};for(var ce in Ae)Object.prototype.hasOwnProperty.call(Ae,ce)&&Pt.indexOf(ce)<0&&(ve[ce]=Ae[ce]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,ce=Object.getOwnPropertySymbols(Ae);it{if(Pt===void 0)return Pt;let ve=(Pt||"").replace(/^\//,"");return Object.keys(Ae).forEach(ce=>{ve=ve.replace(`:${ce}`,Ae[ce])}),ve},pe=Ae=>{const{prefixCls:Pt,separator:ve="/",style:ce,className:it,rootClassName:$t,routes:wt,items:Me,children:Ke,itemRender:qe,params:Jt={}}=Ae,Rt=_e(Ae,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Vt,direction:ze,breadcrumb:Wt}=z.useContext(De.E_);let dt;const ae=Vt("breadcrumb",Pt),[te,ee,oe]=gt(ae),se=Te(Me,wt),ne=Ge(ae,qe);if(se&&se.length>0){const ht=[],Oe=Me||wt;dt=se.map((We,ft)=>{const{path:It,key:bt,type:Ut,menu:Kt,overlay:jt,onClick:cn,className:en,separator:sn,dropdownProps:Ct}=We,_t=Je(Jt,It);_t!==void 0&&ht.push(_t);const Ht=bt!=null?bt:ft;if(Ut==="separator")return z.createElement(et,{key:Ht},sn);const ke={},at=ft===se.length-1;Kt?ke.menu=Kt:jt&&(ke.overlay=jt);let{href:Mt}=We;return ht.length&&_t!==void 0&&(Mt=`#/${ht.join("/")}`),z.createElement(je,Object.assign({key:Ht},ke,(0,xe.Z)(We,{data:!0,aria:!0}),{className:en,dropdownProps:Ct,href:Mt,separator:at?"":ve,onClick:cn,prefixCls:ae}),ne(We,Jt,Oe,ht,Mt))})}else if(Ke){const ht=(0,Qe.Z)(Ke).length;dt=(0,Qe.Z)(Ke).map((Oe,We)=>{if(!Oe)return Oe;const ft=We===ht-1;return(0,Ee.Tm)(Oe,{separator:ft?"":ve,key:We})})}const he=ge()(ae,Wt==null?void 0:Wt.className,{[`${ae}-rtl`]:ze==="rtl"},it,$t,ee,oe),be=Object.assign(Object.assign({},Wt==null?void 0:Wt.style),ce);return te(z.createElement("nav",Object.assign({className:he,style:be},Rt),z.createElement("ol",null,dt)))};pe.Item=kt,pe.Separator=et;var Lt=pe,Le=Lt},62673:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return gt}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(16632),xe=ie(8654),Ee=ie(12919),De=ie(63872),Be=ie(48755),Pe=ie(2171),fe=ie(83397),et=ie(56553),Ot=z.createContext(null),ut=ie(36170),Ge=ie(74632),Ze=function(tt,xt){var Te={};for(var _e in tt)Object.prototype.hasOwnProperty.call(tt,_e)&&xt.indexOf(_e)<0&&(Te[_e]=tt[_e]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,_e=Object.getOwnPropertySymbols(tt);Je<_e.length;Je++)xt.indexOf(_e[Je])<0&&Object.prototype.propertyIsEnumerable.call(tt,_e[Je])&&(Te[_e[Je]]=tt[_e[Je]]);return Te};const je=(tt,xt)=>{var Te;const{prefixCls:_e,className:Je,rootClassName:pe,children:Lt,indeterminate:Le=!1,style:Ae,onMouseEnter:Pt,onMouseLeave:ve,skipGroup:ce=!1,disabled:it}=tt,$t=Ze(tt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:wt,direction:Me,checkbox:Ke}=z.useContext(Be.E_),qe=z.useContext(Ot),{isFormItemInput:Jt}=z.useContext(et.aM),Rt=z.useContext(Pe.Z),Vt=(Te=(qe==null?void 0:qe.disabled)||it)!==null&&Te!==void 0?Te:Rt,ze=z.useRef($t.value),Wt=z.useRef(null),dt=(0,xe.sQ)(xt,Wt);z.useEffect(()=>{qe==null||qe.registerValue($t.value)},[]),z.useEffect(()=>{if(!ce)return $t.value!==ze.current&&(qe==null||qe.cancelValue(ze.current),qe==null||qe.registerValue($t.value),ze.current=$t.value),()=>qe==null?void 0:qe.cancelValue($t.value)},[$t.value]),z.useEffect(()=>{var We;!((We=Wt.current)===null||We===void 0)&&We.input&&(Wt.current.input.indeterminate=Le)},[Le]);const ae=wt("checkbox",_e),te=(0,fe.Z)(ae),[ee,oe,se]=(0,ut.ZP)(ae,te),ne=Object.assign({},$t);qe&&!ce&&(ne.onChange=function(){$t.onChange&&$t.onChange.apply($t,arguments),qe.toggleOption&&qe.toggleOption({label:Lt,value:$t.value})},ne.name=qe.name,ne.checked=qe.value.includes($t.value));const he=ge()(`${ae}-wrapper`,{[`${ae}-rtl`]:Me==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Vt,[`${ae}-wrapper-in-form-item`]:Jt},Ke==null?void 0:Ke.className,Je,pe,se,te,oe),be=ge()({[`${ae}-indeterminate`]:Le},De.A,oe),[ht,Oe]=(0,Ge.Z)(ne.onClick);return ee(z.createElement(Ee.Z,{component:"Checkbox",disabled:Vt},z.createElement("label",{className:he,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Ae),onMouseEnter:Pt,onMouseLeave:ve,onClick:ht},z.createElement(Qe.Z,Object.assign({},ne,{onClick:Oe,prefixCls:ae,className:be,disabled:Vt,ref:dt})),Lt!==void 0&&z.createElement("span",{className:`${ae}-label`},Lt))))};var kt=z.forwardRef(je),Nt=ie(77654),Et=ie(2738),vt=function(tt,xt){var Te={};for(var _e in tt)Object.prototype.hasOwnProperty.call(tt,_e)&&xt.indexOf(_e)<0&&(Te[_e]=tt[_e]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,_e=Object.getOwnPropertySymbols(tt);Je<_e.length;Je++)xt.indexOf(_e[Je])<0&&Object.prototype.propertyIsEnumerable.call(tt,_e[Je])&&(Te[_e[Je]]=tt[_e[Je]]);return Te},Ye=z.forwardRef((tt,xt)=>{const{defaultValue:Te,children:_e,options:Je=[],prefixCls:pe,className:Lt,rootClassName:Le,style:Ae,onChange:Pt}=tt,ve=vt(tt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:it}=z.useContext(Be.E_),[$t,wt]=z.useState(ve.value||Te||[]),[Me,Ke]=z.useState([]);z.useEffect(()=>{"value"in ve&&wt(ve.value||[])},[ve.value]);const qe=z.useMemo(()=>Je.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[Je]),Jt=be=>{Ke(ht=>ht.filter(Oe=>Oe!==be))},Rt=be=>{Ke(ht=>[].concat((0,Nt.Z)(ht),[be]))},Vt=be=>{const ht=$t.indexOf(be.value),Oe=(0,Nt.Z)($t);ht===-1?Oe.push(be.value):Oe.splice(ht,1),"value"in ve||wt(Oe),Pt==null||Pt(Oe.filter(We=>Me.includes(We)).sort((We,ft)=>{const It=qe.findIndex(Ut=>Ut.value===We),bt=qe.findIndex(Ut=>Ut.value===ft);return It-bt}))},ze=ce("checkbox",pe),Wt=`${ze}-group`,dt=(0,fe.Z)(ze),[ae,te,ee]=(0,ut.ZP)(ze,dt),oe=(0,Et.Z)(ve,["value","disabled"]),se=Je.length?qe.map(be=>z.createElement(kt,{prefixCls:ze,key:be.value.toString(),disabled:"disabled"in be?be.disabled:ve.disabled,value:be.value,checked:$t.includes(be.value),onChange:be.onChange,className:`${Wt}-item`,style:be.style,title:be.title,id:be.id,required:be.required},be.label)):_e,ne={toggleOption:Vt,value:$t,disabled:ve.disabled,name:ve.name,registerValue:Rt,cancelValue:Jt},he=ge()(Wt,{[`${Wt}-rtl`]:it==="rtl"},Lt,Le,ee,dt,te);return ae(z.createElement("div",Object.assign({className:he,style:Ae},oe,{ref:xt}),z.createElement(Ot.Provider,{value:ne},se)))});const Bt=kt;Bt.Group=Ye,Bt.__ANT_CHECKBOX=!0;var gt=Bt},36170:function(ln,Zt,ie){"use strict";ie.d(Zt,{C2:function(){return Ee}});var z=ie(36237),lt=ie(63356),ge=ie(51636),Qe=ie(16931);const xe=De=>{const{checkboxCls:Be}=De,Pe=`${Be}-wrapper`;return[{[`${Be}-group`]:Object.assign(Object.assign({},(0,lt.Wf)(De)),{display:"inline-flex",flexWrap:"wrap",columnGap:De.marginXS,[`> ${De.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,lt.Wf)(De)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Be]:Object.assign(Object.assign({},(0,lt.Wf)(De)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:De.borderRadiusSM,alignSelf:"center",[`${Be}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Be}-inner`]:Object.assign({},(0,lt.oN)(De))},[`${Be}-inner`]:{boxSizing:"border-box",display:"block",width:De.checkboxSize,height:De.checkboxSize,direction:"ltr",backgroundColor:De.colorBgContainer,border:`${(0,z.unit)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,borderRadius:De.borderRadiusSM,borderCollapse:"separate",transition:`all ${De.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:De.calc(De.checkboxSize).div(14).mul(5).equal(),height:De.calc(De.checkboxSize).div(14).mul(8).equal(),border:`${(0,z.unit)(De.lineWidthBold)} solid ${De.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${De.motionDurationFast} ${De.motionEaseInBack}, opacity ${De.motionDurationFast}`}},"& + span":{paddingInlineStart:De.paddingXS,paddingInlineEnd:De.paddingXS}})},{[` ${Pe}:not(${Pe}-disabled), ${Be}:not(${Be}-disabled) `]:{[`&:hover ${Be}-inner`]:{borderColor:De.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${Be}-checked:not(${Be}-disabled) ${Be}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Be}-checked:not(${Be}-disabled):after`]:{borderColor:De.colorPrimaryHover}}},{[`${Be}-checked`]:{[`${Be}-inner`]:{backgroundColor:De.colorPrimary,borderColor:De.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${De.motionDurationMid} ${De.motionEaseOutBack} ${De.motionDurationFast}`}}},[` ${Pe}-checked:not(${Pe}-disabled), ${Be}-checked:not(${Be}-disabled) `]:{[`&:hover ${Be}-inner`]:{backgroundColor:De.colorPrimaryHover,borderColor:"transparent"}}},{[Be]:{"&-indeterminate":{[`${Be}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:De.calc(De.fontSizeLG).div(2).equal(),height:De.calc(De.fontSizeLG).div(2).equal(),backgroundColor:De.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Be}-inner`]:{backgroundColor:`${De.colorBgContainer} !important`,borderColor:`${De.colorPrimary} !important`}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${Be}-disabled`]:{[`&, ${Be}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Be}-inner`]:{background:De.colorBgContainerDisabled,borderColor:De.colorBorder,"&:after":{borderColor:De.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:De.colorTextDisabled},[`&${Be}-indeterminate ${Be}-inner::after`]:{background:De.colorTextDisabled}}}]};function Ee(De,Be){const Pe=(0,ge.mergeToken)(Be,{checkboxCls:`.${De}`,checkboxSize:Be.controlInteractiveSize});return[xe(Pe)]}Zt.ZP=(0,Qe.I$)("Checkbox",(De,Be)=>{let{prefixCls:Pe}=Be;return[Ee(Pe,De)]})},38406:function(ln,Zt,ie){"use strict";var z=ie(59301),lt=ie(48755),ge=ie(584);const Qe=xe=>{const{componentName:Ee}=xe,{getPrefixCls:De}=(0,z.useContext)(lt.E_),Be=De("empty");switch(Ee){case"Table":case"List":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${Be}-small`});case"Table.filter":return null;default:return z.createElement(ge.Z,null)}};Zt.Z=Qe},36207:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return ht}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(85899),xe=ie(72190),Ee=ie(43403),De=ie(34280),Be=z.createContext(null),Pe=z.createContext({}),fe=Be,et=ie(18642),we=ie(60499),Ot=ie(77900),ut=ie(10228),Ge=ie(26112),Ze=ie(42244),je=ie(8654),St=["prefixCls","className","containerRef"],kt=function(We){var ft=We.prefixCls,It=We.className,bt=We.containerRef,Ut=(0,Ze.Z)(We,St),Kt=z.useContext(Pe),jt=Kt.panel,cn=(0,je.x1)(jt,bt);return z.createElement("div",(0,we.Z)({className:ge()("".concat(ft,"-content"),It),role:"dialog",ref:cn},(0,Ge.Z)(We,{aria:!0}),{"aria-modal":"true"},Ut))},Nt=kt,Et=ie(48736);function vt(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,Et.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function yt(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 Ye={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Bt(Oe,We){var ft,It,bt,Ut=Oe.prefixCls,Kt=Oe.open,jt=Oe.placement,cn=Oe.inline,en=Oe.push,sn=Oe.forceRender,Ct=Oe.autoFocus,_t=Oe.keyboard,Ht=Oe.classNames,ke=Oe.rootClassName,at=Oe.rootStyle,Mt=Oe.zIndex,zt=Oe.className,Ie=Oe.id,Xe=Oe.style,pt=Oe.motion,Dt=Oe.width,Gt=Oe.height,un=Oe.children,Sn=Oe.mask,Cn=Oe.maskClosable,on=Oe.maskMotion,yn=Oe.maskClassName,gn=Oe.maskStyle,$n=Oe.afterOpenChange,bn=Oe.onClose,vn=Oe.onMouseEnter,Yt=Oe.onMouseOver,Pn=Oe.onMouseLeave,mn=Oe.onClick,kn=Oe.onKeyDown,jn=Oe.onKeyUp,Zn=Oe.styles,An=Oe.drawerRender,Yn=z.useRef(),Nn=z.useRef(),ar=z.useRef();z.useImperativeHandle(We,function(){return Yn.current});var qn=function($e){var He=$e.keyCode,ot=$e.shiftKey;switch(He){case ut.Z.TAB:{if(He===ut.Z.TAB){if(!ot&&document.activeElement===ar.current){var qt;(qt=Nn.current)===null||qt===void 0||qt.focus({preventScroll:!0})}else if(ot&&document.activeElement===Nn.current){var Xt;(Xt=ar.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}}break}case ut.Z.ESC:{bn&&_t&&($e.stopPropagation(),bn($e));break}}};z.useEffect(function(){if(Kt&&Ct){var rt;(rt=Yn.current)===null||rt===void 0||rt.focus({preventScroll:!0})}},[Kt]);var At=z.useState(!1),rn=(0,xe.Z)(At,2),zn=rn[0],nr=rn[1],Re=z.useContext(fe),st;typeof en=="boolean"?st=en?{}:{distance:0}:st=en||{};var Ce=(ft=(It=(bt=st)===null||bt===void 0?void 0:bt.distance)!==null&&It!==void 0?It:Re==null?void 0:Re.pushDistance)!==null&&ft!==void 0?ft:180,Ne=z.useMemo(function(){return{pushDistance:Ce,push:function(){nr(!0)},pull:function(){nr(!1)}}},[Ce]);z.useEffect(function(){if(Kt){var rt;Re==null||(rt=Re.push)===null||rt===void 0||rt.call(Re)}else{var $e;Re==null||($e=Re.pull)===null||$e===void 0||$e.call(Re)}},[Kt]),z.useEffect(function(){return function(){var rt;Re==null||(rt=Re.pull)===null||rt===void 0||rt.call(Re)}},[]);var Se=Sn&&z.createElement(Ot.default,(0,we.Z)({key:"mask"},on,{visible:Kt}),function(rt,$e){var He=rt.className,ot=rt.style;return z.createElement("div",{className:ge()("".concat(Ut,"-mask"),He,Ht==null?void 0:Ht.mask,yn),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},ot),gn),Zn==null?void 0:Zn.mask),onClick:Cn&&Kt?bn:void 0,ref:$e})}),Fe=typeof pt=="function"?pt(jt):pt,ye={};if(zn&&Ce)switch(jt){case"top":ye.transform="translateY(".concat(Ce,"px)");break;case"bottom":ye.transform="translateY(".concat(-Ce,"px)");break;case"left":ye.transform="translateX(".concat(Ce,"px)");break;default:ye.transform="translateX(".concat(-Ce,"px)");break}jt==="left"||jt==="right"?ye.width=vt(Dt):ye.height=vt(Gt);var Ue={onMouseEnter:vn,onMouseOver:Yt,onMouseLeave:Pn,onClick:mn,onKeyDown:kn,onKeyUp:jn},nt=z.createElement(Ot.default,(0,we.Z)({key:"panel"},Fe,{visible:Kt,forceRender:sn,onVisibleChanged:function($e){$n==null||$n($e)},removeOnLeave:!1,leavedClassName:"".concat(Ut,"-content-wrapper-hidden")}),function(rt,$e){var He=rt.className,ot=rt.style,qt=z.createElement(Nt,(0,we.Z)({id:Ie,containerRef:$e,prefixCls:Ut,className:ge()(zt,Ht==null?void 0:Ht.content),style:(0,Qe.Z)((0,Qe.Z)({},Xe),Zn==null?void 0:Zn.content)},(0,Ge.Z)(Oe,{aria:!0}),Ue),un);return z.createElement("div",(0,we.Z)({className:ge()("".concat(Ut,"-content-wrapper"),Ht==null?void 0:Ht.wrapper,He),style:(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},ye),ot),Zn==null?void 0:Zn.wrapper)},(0,Ge.Z)(Oe,{data:!0})),An?An(qt):qt)}),mt=(0,Qe.Z)({},at);return Mt&&(mt.zIndex=Mt),z.createElement(fe.Provider,{value:Ne},z.createElement("div",{className:ge()(Ut,"".concat(Ut,"-").concat(jt),ke,(0,et.Z)((0,et.Z)({},"".concat(Ut,"-open"),Kt),"".concat(Ut,"-inline"),cn)),style:mt,tabIndex:-1,ref:Yn,onKeyDown:qn},Se,z.createElement("div",{tabIndex:0,ref:Nn,style:Ye,"aria-hidden":"true","data-sentinel":"start"}),nt,z.createElement("div",{tabIndex:0,ref:ar,style:Ye,"aria-hidden":"true","data-sentinel":"end"})))}var gt=z.forwardRef(Bt),tt=gt,xt=function(We){var ft=We.open,It=ft===void 0?!1:ft,bt=We.prefixCls,Ut=bt===void 0?"rc-drawer":bt,Kt=We.placement,jt=Kt===void 0?"right":Kt,cn=We.autoFocus,en=cn===void 0?!0:cn,sn=We.keyboard,Ct=sn===void 0?!0:sn,_t=We.width,Ht=_t===void 0?378:_t,ke=We.mask,at=ke===void 0?!0:ke,Mt=We.maskClosable,zt=Mt===void 0?!0:Mt,Ie=We.getContainer,Xe=We.forceRender,pt=We.afterOpenChange,Dt=We.destroyOnClose,Gt=We.onMouseEnter,un=We.onMouseOver,Sn=We.onMouseLeave,Cn=We.onClick,on=We.onKeyDown,yn=We.onKeyUp,gn=We.panelRef,$n=z.useState(!1),bn=(0,xe.Z)($n,2),vn=bn[0],Yt=bn[1],Pn=z.useState(!1),mn=(0,xe.Z)(Pn,2),kn=mn[0],jn=mn[1];(0,De.Z)(function(){jn(!0)},[]);var Zn=kn?It:!1,An=z.useRef(),Yn=z.useRef();(0,De.Z)(function(){Zn&&(Yn.current=document.activeElement)},[Zn]);var Nn=function(zn){var nr;if(Yt(zn),pt==null||pt(zn),!zn&&Yn.current&&!((nr=An.current)!==null&&nr!==void 0&&nr.contains(Yn.current))){var Re;(Re=Yn.current)===null||Re===void 0||Re.focus({preventScroll:!0})}},ar=z.useMemo(function(){return{panel:gn}},[gn]);if(!Xe&&!vn&&!Zn&&Dt)return null;var qn={onMouseEnter:Gt,onMouseOver:un,onMouseLeave:Sn,onClick:Cn,onKeyDown:on,onKeyUp:yn},At=(0,Qe.Z)((0,Qe.Z)({},We),{},{open:Zn,prefixCls:Ut,placement:jt,autoFocus:en,keyboard:Ct,width:Ht,mask:at,maskClosable:zt,inline:Ie===!1,afterOpenChange:Nn,ref:An},qn);return z.createElement(Pe.Provider,{value:ar},z.createElement(Ee.Z,{open:Zn||Xe||vn,autoDestroy:!1,getContainer:Ie,autoLock:at&&(Zn||vn)},z.createElement(tt,At)))},Te=xt,_e=Te,Je=ie(62487),pe=ie(75030),Lt=ie(86641),Le=ie(55743),Ae=ie(48755),Pt=ie(91190),ve=ie(78776),ce=ie(458),$t=Oe=>{var We,ft;const{prefixCls:It,title:bt,footer:Ut,extra:Kt,loading:jt,onClose:cn,headerStyle:en,bodyStyle:sn,footerStyle:Ct,children:_t,classNames:Ht,styles:ke}=Oe,at=(0,Ae.dj)("drawer"),Mt=z.useCallback(Dt=>z.createElement("button",{type:"button",onClick:cn,"aria-label":"Close",className:`${It}-close`},Dt),[cn]),[zt,Ie]=(0,ve.Z)((0,ve.w)(Oe),(0,ve.w)(at),{closable:!0,closeIconRender:Mt}),Xe=z.useMemo(()=>{var Dt,Gt;return!bt&&!zt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Dt=at.styles)===null||Dt===void 0?void 0:Dt.header),en),ke==null?void 0:ke.header),className:ge()(`${It}-header`,{[`${It}-header-close-only`]:zt&&!bt&&!Kt},(Gt=at.classNames)===null||Gt===void 0?void 0:Gt.header,Ht==null?void 0:Ht.header)},z.createElement("div",{className:`${It}-header-title`},Ie,bt&&z.createElement("div",{className:`${It}-title`},bt)),Kt&&z.createElement("div",{className:`${It}-extra`},Kt))},[zt,Ie,Kt,en,It,bt]),pt=z.useMemo(()=>{var Dt,Gt;if(!Ut)return null;const un=`${It}-footer`;return z.createElement("div",{className:ge()(un,(Dt=at.classNames)===null||Dt===void 0?void 0:Dt.footer,Ht==null?void 0:Ht.footer),style:Object.assign(Object.assign(Object.assign({},(Gt=at.styles)===null||Gt===void 0?void 0:Gt.footer),Ct),ke==null?void 0:ke.footer)},Ut)},[Ut,Ct,It]);return z.createElement(z.Fragment,null,Xe,z.createElement("div",{className:ge()(`${It}-body`,Ht==null?void 0:Ht.body,(We=at.classNames)===null||We===void 0?void 0:We.body),style:Object.assign(Object.assign(Object.assign({},(ft=at.styles)===null||ft===void 0?void 0:ft.body),sn),ke==null?void 0:ke.body)},jt?z.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${It}-body-skeleton`}):_t),pt)},wt=ie(36237),Me=ie(63356),Ke=ie(16931),qe=ie(51636);const Jt=Oe=>{const We="100%";return{left:`translateX(-${We})`,right:`translateX(${We})`,top:`translateY(-${We})`,bottom:`translateY(${We})`}[Oe]},Rt=(Oe,We)=>({"&-enter, &-appear":Object.assign(Object.assign({},Oe),{"&-active":We}),"&-leave":Object.assign(Object.assign({},We),{"&-active":Oe})}),Vt=(Oe,We)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${We}`}}},Rt({opacity:Oe},{opacity:1})),ze=(Oe,We)=>[Vt(.7,We),Rt({transform:Jt(Oe)},{transform:"none"})];var dt=Oe=>{const{componentCls:We,motionDurationSlow:ft}=Oe;return{[We]:{[`${We}-mask-motion`]:Vt(0,ft),[`${We}-panel-motion`]:["left","right","top","bottom"].reduce((It,bt)=>Object.assign(Object.assign({},It),{[`&-${bt}`]:ze(bt,ft)}),{})}}};const ae=Oe=>{const{borderRadiusSM:We,componentCls:ft,zIndexPopup:It,colorBgMask:bt,colorBgElevated:Ut,motionDurationSlow:Kt,motionDurationMid:jt,paddingXS:cn,padding:en,paddingLG:sn,fontSizeLG:Ct,lineHeightLG:_t,lineWidth:Ht,lineType:ke,colorSplit:at,marginXS:Mt,colorIcon:zt,colorIconHover:Ie,colorBgTextHover:Xe,colorBgTextActive:pt,colorText:Dt,fontWeightStrong:Gt,footerPaddingBlock:un,footerPaddingInline:Sn,calc:Cn}=Oe,on=`${ft}-content-wrapper`;return{[ft]:{position:"fixed",inset:0,zIndex:It,pointerEvents:"none",color:Dt,"&-pure":{position:"relative",background:Ut,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:It,background:bt,pointerEvents:"auto"},[on]:{position:"absolute",zIndex:It,maxWidth:"100vw",transition:`all ${Kt}`,"&-hidden":{display:"none"}},[`&-left > ${on}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${on}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${on}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${on}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${ft}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ut,pointerEvents:"auto"},[`${ft}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,wt.unit)(en)} ${(0,wt.unit)(sn)}`,fontSize:Ct,lineHeight:_t,borderBottom:`${(0,wt.unit)(Ht)} ${ke} ${at}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ft}-extra`]:{flex:"none"},[`${ft}-close`]:Object.assign({display:"inline-flex",width:Cn(Ct).add(cn).equal(),height:Cn(Ct).add(cn).equal(),borderRadius:We,justifyContent:"center",alignItems:"center",marginInlineEnd:Mt,color:zt,fontWeight:Gt,fontSize:Ct,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${jt}`,textRendering:"auto","&:hover":{color:Ie,backgroundColor:Xe,textDecoration:"none"},"&:active":{backgroundColor:pt}},(0,Me.Qy)(Oe)),[`${ft}-title`]:{flex:1,margin:0,fontWeight:Oe.fontWeightStrong,fontSize:Ct,lineHeight:_t},[`${ft}-body`]:{flex:1,minWidth:0,minHeight:0,padding:sn,overflow:"auto",[`${ft}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ft}-footer`]:{flexShrink:0,padding:`${(0,wt.unit)(un)} ${(0,wt.unit)(Sn)}`,borderTop:`${(0,wt.unit)(Ht)} ${ke} ${at}`},"&-rtl":{direction:"rtl"}}}},te=Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding});var ee=(0,Ke.I$)("Drawer",Oe=>{const We=(0,qe.mergeToken)(Oe,{});return[ae(We),dt(We)]},te),oe=function(Oe,We){var ft={};for(var It in Oe)Object.prototype.hasOwnProperty.call(Oe,It)&&We.indexOf(It)<0&&(ft[It]=Oe[It]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,It=Object.getOwnPropertySymbols(Oe);bt{var We;const{rootClassName:ft,width:It,height:bt,size:Ut="default",mask:Kt=!0,push:jt=ne,open:cn,afterOpenChange:en,onClose:sn,prefixCls:Ct,getContainer:_t,style:Ht,className:ke,visible:at,afterVisibleChange:Mt,maskStyle:zt,drawerStyle:Ie,contentWrapperStyle:Xe}=Oe,pt=oe(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Dt,getPrefixCls:Gt,direction:un,className:Sn,style:Cn,classNames:on,styles:yn}=(0,Ae.dj)("drawer"),gn=Gt("drawer",Ct),[$n,bn,vn]=ee(gn),Yt=_t===void 0&&Dt?()=>Dt(document.body):_t,Pn=ge()({"no-mask":!Kt,[`${gn}-rtl`]:un==="rtl"},ft,bn,vn),mn=z.useMemo(()=>It!=null?It:Ut==="large"?736:378,[It,Ut]),kn=z.useMemo(()=>bt!=null?bt:Ut==="large"?736:378,[bt,Ut]),jn={motionName:(0,Lt.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Zn=At=>({motionName:(0,Lt.m)(gn,`panel-motion-${At}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),An=(0,Pt.H)(),[Yn,Nn]=(0,pe.Cn)("Drawer",pt.zIndex),{classNames:ar={},styles:qn={}}=pt;return $n(z.createElement(Je.Z,{form:!0,space:!0},z.createElement(Le.Z.Provider,{value:Nn},z.createElement(_e,Object.assign({prefixCls:gn,onClose:sn,maskMotion:jn,motion:Zn},pt,{classNames:{mask:ge()(ar.mask,on.mask),content:ge()(ar.content,on.content),wrapper:ge()(ar.wrapper,on.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},qn.mask),zt),yn.mask),content:Object.assign(Object.assign(Object.assign({},qn.content),Ie),yn.content),wrapper:Object.assign(Object.assign(Object.assign({},qn.wrapper),Xe),yn.wrapper)},open:cn!=null?cn:at,mask:Kt,push:jt,width:mn,height:kn,style:Object.assign(Object.assign({},Cn),Ht),className:ge()(Sn,ke),rootClassName:Pn,getContainer:Yt,afterOpenChange:en!=null?en:Mt,panelRef:An,zIndex:Yn}),z.createElement($t,Object.assign({prefixCls:gn},pt,{onClose:sn}))))))},be=Oe=>{const{prefixCls:We,style:ft,className:It,placement:bt="right"}=Oe,Ut=oe(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Kt}=z.useContext(Ae.E_),jt=Kt("drawer",We),[cn,en,sn]=ee(jt),Ct=ge()(jt,`${jt}-pure`,`${jt}-${bt}`,en,sn,It);return cn(z.createElement("div",{className:Ct,style:ft},z.createElement($t,Object.assign({prefixCls:jt},Ut))))};he._InternalPanelDoNotUseOrYouWillBeFired=be;var ht=he},19563:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return wt}});var z=ie(59301),lt=ie(33853),ge=ie(38819),Qe=ie(92310),xe=ie.n(Qe),Ee=ie(96478),De=ie(6089),Be=ie(18929),Pe=ie(2738),fe=ie(75030),we=Me=>typeof Me!="object"&&typeof Me!="function"||Me===null,Ot=ie(52838),ut=ie(45915),Ge=ie(22703),Ze=ie(32383),je=ie(55743),St=ie(48755),kt=ie(83397),Nt=ie(93041),Et=ie(78857),vt=ie(57700),yt=ie(36237),Ye=ie(63356),Bt=ie(46e3),gt=ie(93873),tt=ie(34925),xt=ie(37645),Te=ie(36305),_e=ie(16931),Je=ie(51636),Lt=Me=>{const{componentCls:Ke,menuCls:qe,colorError:Jt,colorTextLightSolid:Rt}=Me,Vt=`${qe}-item`;return{[`${Ke}, ${Ke}-menu-submenu`]:{[`${qe} ${Vt}`]:{[`&${Vt}-danger:not(${Vt}-disabled)`]:{color:Jt,"&:hover":{color:Rt,backgroundColor:Jt}}}}}};const Le=Me=>{const{componentCls:Ke,menuCls:qe,zIndexPopup:Jt,dropdownArrowDistance:Rt,sizePopupArrow:Vt,antCls:ze,iconCls:Wt,motionDurationMid:dt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:he}=Me;return[{[Ke]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Jt,display:"block","&::before":{position:"absolute",insetBlock:Me.calc(Vt).div(2).sub(Rt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ze}-btn`]:{[`& > ${Wt}-down, & > ${ze}-btn-icon > ${Wt}-down`]:{fontSize:se}},[`${Ke}-wrap`]:{position:"relative",[`${ze}-btn > ${Wt}-down`]:{fontSize:se},[`${Wt}-down::before`]:{transition:`transform ${dt}`}},[`${Ke}-wrap-open`]:{[`${Wt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ze}-slide-down-enter${ze}-slide-down-enter-active${Ke}-placement-bottomLeft, &${ze}-slide-down-appear${ze}-slide-down-appear-active${Ke}-placement-bottomLeft, &${ze}-slide-down-enter${ze}-slide-down-enter-active${Ke}-placement-bottom, &${ze}-slide-down-appear${ze}-slide-down-appear-active${Ke}-placement-bottom, &${ze}-slide-down-enter${ze}-slide-down-enter-active${Ke}-placement-bottomRight, &${ze}-slide-down-appear${ze}-slide-down-appear-active${Ke}-placement-bottomRight`]:{animationName:Bt.fJ},[`&${ze}-slide-up-enter${ze}-slide-up-enter-active${Ke}-placement-topLeft, &${ze}-slide-up-appear${ze}-slide-up-appear-active${Ke}-placement-topLeft, &${ze}-slide-up-enter${ze}-slide-up-enter-active${Ke}-placement-top, &${ze}-slide-up-appear${ze}-slide-up-appear-active${Ke}-placement-top, &${ze}-slide-up-enter${ze}-slide-up-enter-active${Ke}-placement-topRight, &${ze}-slide-up-appear${ze}-slide-up-appear-active${Ke}-placement-topRight`]:{animationName:Bt.Qt},[`&${ze}-slide-down-leave${ze}-slide-down-leave-active${Ke}-placement-bottomLeft, &${ze}-slide-down-leave${ze}-slide-down-leave-active${Ke}-placement-bottom, &${ze}-slide-down-leave${ze}-slide-down-leave-active${Ke}-placement-bottomRight`]:{animationName:Bt.Uw},[`&${ze}-slide-up-leave${ze}-slide-up-leave-active${Ke}-placement-topLeft, &${ze}-slide-up-leave${ze}-slide-up-leave-active${Ke}-placement-top, &${ze}-slide-up-leave${ze}-slide-up-leave-active${Ke}-placement-topRight`]:{animationName:Bt.ly}}},(0,xt.ZP)(Me,he,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ke} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:Jt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ke}, ${Ke}-menu-submenu`]:Object.assign(Object.assign({},(0,Ye.Wf)(Me)),{[qe]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary},(0,Ye.Qy)(Me)),{"&:empty":{padding:0,boxShadow:"none"},[`${qe}-item-group-title`]:{padding:`${(0,yt.unit)(ae)} ${(0,yt.unit)(ne)}`,color:Me.colorTextDescription,transition:`all ${dt}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:te,marginInlineEnd:Me.marginXS,fontSize:Me.fontSizeSM},[`${qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${qe}-item-extra`]:{paddingInlineStart:Me.padding,marginInlineStart:"auto",fontSize:Me.fontSizeSM,color:Me.colorTextDescription}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,yt.unit)(ae)} ${(0,yt.unit)(ne)}`,color:Me.colorText,fontWeight:"normal",fontSize:te,lineHeight:Me.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Me.borderRadiusSM,"&:hover, &-active":{backgroundColor:Me.controlItemBgHover}},(0,Ye.Qy)(Me)),{"&-selected":{color:Me.colorPrimary,backgroundColor:Me.controlItemBgActive,"&:hover, &-active":{backgroundColor:Me.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,yt.unit)(Me.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Me.colorSplit},[`${Ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,[`${Ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Me.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${(0,yt.unit)(Me.marginXS)}`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:Me.calc(ne).add(Me.fontSizeSM).equal()},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${Ke}-menu-submenu-title`]:{[`&, ${Ke}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:he,cursor:"not-allowed"}},[`${qe}-submenu-selected ${Ke}-menu-submenu-title`]:{color:Me.colorPrimary}})})},[(0,Bt.oN)(Me,"slide-up"),(0,Bt.oN)(Me,"slide-down"),(0,gt.Fm)(Me,"move-up"),(0,gt.Fm)(Me,"move-down"),(0,tt._y)(Me,"zoom-big")]]},Ae=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,Te.w)(Me));var Pt=(0,_e.I$)("Dropdown",Me=>{const{marginXXS:Ke,sizePopupArrow:qe,paddingXXS:Jt,componentCls:Rt}=Me,Vt=(0,Je.mergeToken)(Me,{menuCls:`${Rt}-menu`,dropdownArrowDistance:Me.calc(qe).div(2).add(Ke).equal(),dropdownEdgeChildPadding:Jt});return[Le(Vt),Lt(Vt)]},Ae,{resetStyle:!1});const ve=null,ce=Me=>{var Ke;const{menu:qe,arrow:Jt,prefixCls:Rt,children:Vt,trigger:ze,disabled:Wt,dropdownRender:dt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:he,onVisibleChange:be,mouseEnterDelay:ht=.15,mouseLeaveDelay:Oe=.1,autoAdjustOverflow:We=!0,placement:ft="",overlay:It,transitionName:bt}=Me,{getPopupContainer:Ut,getPrefixCls:Kt,direction:jt,dropdown:cn}=z.useContext(St.E_),en=(0,Ze.ln)("Dropdown"),sn=z.useMemo(()=>{const Yt=Kt();return bt!==void 0?bt:ft.includes("top")?`${Yt}-slide-down`:`${Yt}-slide-up`},[Kt,ft,bt]),Ct=z.useMemo(()=>ft?ft.includes("Center")?ft.slice(0,ft.indexOf("Center")):ft:jt==="rtl"?"bottomRight":"bottomLeft",[ft,jt]),_t=Kt("dropdown",Rt),Ht=(0,kt.Z)(_t),[ke,at,Mt]=Pt(_t,Ht),[,zt]=(0,vt.ZP)(),Ie=z.Children.only(we(Vt)?z.createElement("span",null,Vt):Vt),Xe=(0,Ge.Tm)(Ie,{className:xe()(`${_t}-trigger`,{[`${_t}-rtl`]:jt==="rtl"},Ie.props.className),disabled:(Ke=Ie.props.disabled)!==null&&Ke!==void 0?Ke:Wt}),pt=Wt?[]:ze,Dt=!!(pt!=null&&pt.includes("contextMenu")),[Gt,un]=(0,Be.Z)(!1,{value:se!=null?se:he}),Sn=(0,De.Z)(Yt=>{ne==null||ne(Yt,{source:"trigger"}),be==null||be(Yt),un(Yt)}),Cn=xe()(te,ee,at,Mt,Ht,cn==null?void 0:cn.className,{[`${_t}-rtl`]:jt==="rtl"}),on=(0,Ot.Z)({arrowPointAtCenter:typeof Jt=="object"&&Jt.pointAtCenter,autoAdjustOverflow:We,offset:zt.marginXXS,arrowWidth:Jt?zt.sizePopupArrow:0,borderRadius:zt.borderRadius}),yn=z.useCallback(()=>{qe!=null&&qe.selectable&&(qe!=null&&qe.multiple)||(ne==null||ne(!1,{source:"menu"}),un(!1))},[qe==null?void 0:qe.selectable,qe==null?void 0:qe.multiple]),gn=()=>{let Yt;return qe!=null&&qe.items?Yt=z.createElement(Nt.default,Object.assign({},qe)):typeof It=="function"?Yt=It():Yt=It,dt&&(Yt=dt(Yt)),Yt=z.Children.only(typeof Yt=="string"?z.createElement("span",null,Yt):Yt),z.createElement(Et.J,{prefixCls:`${_t}-menu`,rootClassName:xe()(Mt,Ht),expandIcon:z.createElement("span",{className:`${_t}-menu-submenu-arrow`},jt==="rtl"?z.createElement(lt.Z,{className:`${_t}-menu-submenu-arrow-icon`}):z.createElement(ge.Z,{className:`${_t}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yn,validator:Pn=>{let{mode:mn}=Pn}},Yt)},[$n,bn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let vn=z.createElement(Ee.Z,Object.assign({alignPoint:Dt},(0,Pe.Z)(Me,["rootClassName"]),{mouseEnterDelay:ht,mouseLeaveDelay:Oe,visible:Gt,builtinPlacements:on,arrow:!!Jt,overlayClassName:Cn,prefixCls:_t,getPopupContainer:ae||Ut,transitionName:sn,trigger:pt,overlay:gn,placement:Ct,onVisibleChange:Sn,overlayStyle:Object.assign(Object.assign(Object.assign({},cn==null?void 0:cn.style),oe),{zIndex:$n})}),Xe);return $n&&(vn=z.createElement(je.Z.Provider,{value:bn},vn)),ke(vn)},it=(0,ut.Z)(ce,"align",void 0,"dropdown",Me=>Me),$t=Me=>z.createElement(it,Object.assign({},Me),z.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=$t;var wt=ce},584:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Nt}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(9017),xe=ie(17835),Ee=ie(57700),Be=()=>{const[,Et]=(0,Ee.ZP)(),[vt]=(0,Qe.Z)("Empty"),Ye=new xe.FastColor(Et.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Ye,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(vt==null?void 0:vt.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"}))))},fe=()=>{const[,Et]=(0,Ee.ZP)(),[vt]=(0,Qe.Z)("Empty"),{colorFill:yt,colorFillTertiary:Ye,colorFillQuaternary:Bt,colorBgContainer:gt}=Et,{borderColor:tt,shadowColor:xt,contentColor:Te}=(0,z.useMemo)(()=>({borderColor:new xe.FastColor(yt).onBackground(gt).toHexString(),shadowColor:new xe.FastColor(Ye).onBackground(gt).toHexString(),contentColor:new xe.FastColor(Bt).onBackground(gt).toHexString()}),[yt,Ye,Bt,gt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(vt==null?void 0:vt.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:tt},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:Te}))))},et=ie(16931),we=ie(51636);const Ot=Et=>{const{componentCls:vt,margin:yt,marginXS:Ye,marginXL:Bt,fontSize:gt,lineHeight:tt}=Et;return{[vt]:{marginInline:Ye,fontSize:gt,lineHeight:tt,textAlign:"center",[`${vt}-image`]:{height:Et.emptyImgHeight,marginBottom:Ye,opacity:Et.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${vt}-description`]:{color:Et.colorTextDescription},[`${vt}-footer`]:{marginTop:yt},"&-normal":{marginBlock:Bt,color:Et.colorTextDescription,[`${vt}-description`]:{color:Et.colorTextDescription},[`${vt}-image`]:{height:Et.emptyImgHeightMD}},"&-small":{marginBlock:Ye,color:Et.colorTextDescription,[`${vt}-image`]:{height:Et.emptyImgHeightSM}}}}};var ut=(0,et.I$)("Empty",Et=>{const{componentCls:vt,controlHeightLG:yt,calc:Ye}=Et,Bt=(0,we.mergeToken)(Et,{emptyImgCls:`${vt}-img`,emptyImgHeight:Ye(yt).mul(2.5).equal(),emptyImgHeightMD:yt,emptyImgHeightSM:Ye(yt).mul(.875).equal()});return[Ot(Bt)]}),Ge=ie(48755),Ze=function(Et,vt){var yt={};for(var Ye in Et)Object.prototype.hasOwnProperty.call(Et,Ye)&&vt.indexOf(Ye)<0&&(yt[Ye]=Et[Ye]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ye=Object.getOwnPropertySymbols(Et);Bt{const{className:vt,rootClassName:yt,prefixCls:Ye,image:Bt=je,description:gt,children:tt,imageStyle:xt,style:Te,classNames:_e,styles:Je}=Et,pe=Ze(Et,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Lt,direction:Le,className:Ae,style:Pt,classNames:ve,styles:ce}=(0,Ge.dj)("empty"),it=Lt("empty",Ye),[$t,wt,Me]=ut(it),[Ke]=(0,Qe.Z)("Empty"),qe=typeof gt!="undefined"?gt:Ke==null?void 0:Ke.description,Jt=typeof qe=="string"?qe:"empty";let Rt=null;return typeof Bt=="string"?Rt=z.createElement("img",{alt:Jt,src:Bt}):Rt=Bt,$t(z.createElement("div",Object.assign({className:ge()(wt,Me,it,Ae,{[`${it}-normal`]:Bt===St,[`${it}-rtl`]:Le==="rtl"},vt,yt,ve.root,_e==null?void 0:_e.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),Pt),Je==null?void 0:Je.root),Te)},pe),z.createElement("div",{className:ge()(`${it}-image`,ve.image,_e==null?void 0:_e.image),style:Object.assign(Object.assign(Object.assign({},xt),ce.image),Je==null?void 0:Je.image)},Rt),qe&&z.createElement("div",{className:ge()(`${it}-description`,ve.description,_e==null?void 0:_e.description),style:Object.assign(Object.assign({},ce.description),Je==null?void 0:Je.description)},qe),tt&&z.createElement("div",{className:ge()(`${it}-footer`,ve.footer,_e==null?void 0:_e.footer),style:Object.assign(Object.assign({},ce.footer),Je==null?void 0:Je.footer)},tt)))};kt.PRESENTED_IMAGE_DEFAULT=je,kt.PRESENTED_IMAGE_SIMPLE=St;var Nt=kt},28284:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return st}});var z=ie(56553),lt=ie(77654),ge=ie(59301),Qe=ie(92310),xe=ie.n(Qe),Ee=ie(77900),De=ie(86641),Be=ie(83397);function Pe(Ce){const[Ne,Se]=ge.useState(Ce);return ge.useEffect(()=>{const Fe=setTimeout(()=>{Se(Ce)},Ce.length?0:10);return()=>{clearTimeout(Fe)}},[Ce]),Ne}var fe=ie(36237),et=ie(63356),we=ie(34925),Ot=ie(34961),ut=ie(51636),Ge=ie(16931),je=Ce=>{const{componentCls:Ne}=Ce,Se=`${Ne}-show-help`,Fe=`${Ne}-show-help-item`;return{[Se]:{transition:`opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Fe]:{overflow:"hidden",transition:`height ${Ce.motionDurationFast} ${Ce.motionEaseInOut}, opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}, transform ${Ce.motionDurationFast} ${Ce.motionEaseInOut} !important`,[`&${Fe}-appear, &${Fe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Fe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const St=Ce=>({legend:{display:"block",width:"100%",marginBottom:Ce.marginLG,padding:0,color:Ce.colorTextDescription,fontSize:Ce.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(Ce.lineWidth)} ${Ce.lineType} ${Ce.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,fe.unit)(Ce.controlOutlineWidth)} ${Ce.controlOutline}`},output:{display:"block",paddingTop:15,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight}}),kt=(Ce,Ne)=>{const{formItemCls:Se}=Ce;return{[Se]:{[`${Se}-label > label`]:{height:Ne},[`${Se}-control-input`]:{minHeight:Ne}}}},Nt=Ce=>{const{componentCls:Ne}=Ce;return{[Ce.componentCls]:Object.assign(Object.assign(Object.assign({},(0,et.Wf)(Ce)),St(Ce)),{[`${Ne}-text`]:{display:"inline-block",paddingInlineEnd:Ce.paddingSM},"&-small":Object.assign({},kt(Ce,Ce.controlHeightSM)),"&-large":Object.assign({},kt(Ce,Ce.controlHeightLG))})}},Et=Ce=>{const{formItemCls:Ne,iconCls:Se,rootPrefixCls:Fe,antCls:ye,labelRequiredMarkColor:Ue,labelColor:nt,labelFontSize:mt,labelHeight:rt,labelColonMarginInlineStart:$e,labelColonMarginInlineEnd:He,itemMarginBottom:ot}=Ce;return{[Ne]:Object.assign(Object.assign({},(0,et.Wf)(Ce)),{marginBottom:ot,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${ye}-row`]:{display:"none"},"&-has-warning":{[`${Ne}-split`]:{color:Ce.colorError}},"&-has-error":{[`${Ne}-split`]:{color:Ce.colorWarning}},[`${Ne}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ce.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:rt,color:nt,fontSize:mt,[`> ${Se}`]:{fontSize:Ce.fontSize,verticalAlign:"top"},[`&${Ne}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ce.marginXXS,color:Ue,fontSize:Ce.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ne}-required-mark-hidden, &${Ne}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ne}-optional`]:{display:"inline-block",marginInlineStart:Ce.marginXXS,color:Ce.colorTextDescription,[`&${Ne}-required-mark-hidden`]:{display:"none"}},[`${Ne}-tooltip`]:{color:Ce.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ce.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:$e,marginInlineEnd:He},[`&${Ne}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ne}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Fe}-col-'"]):not([class*="' ${Fe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ce.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ne]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ce.colorTextDescription,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ce.controlHeightSM,transition:`color ${Ce.motionDurationMid} ${Ce.motionEaseOut}`},"&-explain":{"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning}}},[`&-with-help ${Ne}-explain`]:{height:"auto",opacity:1},[`${Ne}-feedback-icon`]:{fontSize:Ce.fontSize,textAlign:"center",visibility:"visible",animationName:we.kr,animationDuration:Ce.motionDurationMid,animationTimingFunction:Ce.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ce.colorSuccess},"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning},"&-validating":{color:Ce.colorPrimary}}})}},vt=(Ce,Ne)=>{const{formItemCls:Se}=Ce;return{[`${Ne}-horizontal`]:{[`${Se}-label`]:{flexGrow:0},[`${Se}-control`]:{flex:"1 1 0",minWidth:0},[`${Se}-label[class$='-24'], ${Se}-label[class*='-24 ']`]:{[`& + ${Se}-control`]:{minWidth:"unset"}}}}},yt=Ce=>{const{componentCls:Ne,formItemCls:Se,inlineItemMarginBottom:Fe}=Ce;return{[`${Ne}-inline`]:{display:"flex",flexWrap:"wrap",[Se]:{flex:"none",marginInlineEnd:Ce.margin,marginBottom:Fe,"&-row":{flexWrap:"nowrap"},[`> ${Se}-label, > ${Se}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Se}-label`]:{flex:"none"},[`${Ne}-text`]:{display:"inline-block"},[`${Se}-has-feedback`]:{display:"inline-block"}}}}},Ye=Ce=>({padding:Ce.verticalLabelPadding,margin:Ce.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Bt=Ce=>{const{componentCls:Ne,formItemCls:Se,rootPrefixCls:Fe}=Ce;return{[`${Se} ${Se}-label`]:Ye(Ce),[`${Ne}:not(${Ne}-inline)`]:{[Se]:{flexWrap:"wrap",[`${Se}-label, ${Se}-control`]:{[`&:not([class*=" ${Fe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gt=Ce=>{const{componentCls:Ne,formItemCls:Se,antCls:Fe}=Ce;return{[`${Ne}-vertical`]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Se}-row`]:{flexDirection:"column"},[`${Se}-label > label`]:{height:"auto"},[`${Se}-control`]:{width:"100%"},[`${Se}-label, ${Fe}-col-24${Se}-label, ${Fe}-col-xl-24${Se}-label`]:Ye(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenXSMax)})`]:[Bt(Ce),{[Ne]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-xs-24${Se}-label`]:Ye(Ce)}}}],[`@media (max-width: ${(0,fe.unit)(Ce.screenSMMax)})`]:{[Ne]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-sm-24${Se}-label`]:Ye(Ce)}}},[`@media (max-width: ${(0,fe.unit)(Ce.screenMDMax)})`]:{[Ne]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-md-24${Se}-label`]:Ye(Ce)}}},[`@media (max-width: ${(0,fe.unit)(Ce.screenLGMax)})`]:{[Ne]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Fe}-col-lg-24${Se}-label`]:Ye(Ce)}}}}},tt=Ce=>{const{formItemCls:Ne,antCls:Se}=Ce;return{[`${Ne}-vertical`]:{[`${Ne}-row`]:{flexDirection:"column"},[`${Ne}-label > label`]:{height:"auto"},[`${Ne}-control`]:{width:"100%"}},[`${Ne}-vertical ${Ne}-label, ${Se}-col-24${Ne}-label, ${Se}-col-xl-24${Ne}-label`]:Ye(Ce),[`@media (max-width: ${(0,fe.unit)(Ce.screenXSMax)})`]:[Bt(Ce),{[Ne]:{[`${Se}-col-xs-24${Ne}-label`]:Ye(Ce)}}],[`@media (max-width: ${(0,fe.unit)(Ce.screenSMMax)})`]:{[Ne]:{[`${Se}-col-sm-24${Ne}-label`]:Ye(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenMDMax)})`]:{[Ne]:{[`${Se}-col-md-24${Ne}-label`]:Ye(Ce)}},[`@media (max-width: ${(0,fe.unit)(Ce.screenLGMax)})`]:{[Ne]:{[`${Se}-col-lg-24${Ne}-label`]:Ye(Ce)}}}},xt=Ce=>({labelRequiredMarkColor:Ce.colorError,labelColor:Ce.colorTextHeading,labelFontSize:Ce.fontSize,labelHeight:Ce.controlHeight,labelColonMarginInlineStart:Ce.marginXXS/2,labelColonMarginInlineEnd:Ce.marginXS,itemMarginBottom:Ce.marginLG,verticalLabelPadding:`0 0 ${Ce.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Te=(Ce,Ne)=>(0,ut.mergeToken)(Ce,{formItemCls:`${Ce.componentCls}-item`,rootPrefixCls:Ne});var _e=(0,Ge.I$)("Form",(Ce,Ne)=>{let{rootPrefixCls:Se}=Ne;const Fe=Te(Ce,Se);return[Nt(Fe),Et(Fe),je(Fe),vt(Fe,Fe.componentCls),vt(Fe,Fe.formItemCls),yt(Fe),gt(Fe),tt(Fe),(0,Ot.Z)(Fe),we.kr]},xt,{order:-1e3});const Je=[];function pe(Ce,Ne,Se){let Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ce=="string"?Ce:`${Ne}-${Fe}`,error:Ce,errorStatus:Se}}var Le=Ce=>{let{help:Ne,helpStatus:Se,errors:Fe=Je,warnings:ye=Je,className:Ue,fieldId:nt,onVisibleChanged:mt}=Ce;const{prefixCls:rt}=ge.useContext(z.Rk),$e=`${rt}-item-explain`,He=(0,Be.Z)(rt),[ot,qt,Xt]=_e(rt,He),Qt=ge.useMemo(()=>(0,De.Z)(rt),[rt]),Dn=Pe(Fe),Ln=Pe(ye),Hn=ge.useMemo(()=>Ne!=null?[pe(Ne,"help",Se)]:[].concat((0,lt.Z)(Dn.map((On,Fn)=>pe(On,"error","error",Fn))),(0,lt.Z)(Ln.map((On,Fn)=>pe(On,"warning","warning",Fn)))),[Ne,Se,Dn,Ln]),Mn=ge.useMemo(()=>{const On={};return Hn.forEach(Fn=>{let{key:_n}=Fn;On[_n]=(On[_n]||0)+1}),Hn.map((Fn,_n)=>Object.assign(Object.assign({},Fn),{key:On[Fn.key]>1?`${Fn.key}-fallback-${_n}`:Fn.key}))},[Hn]),xn={};return nt&&(xn.id=`${nt}_help`),ot(ge.createElement(Ee.default,{motionDeadline:Qt.motionDeadline,motionName:`${rt}-show-help`,visible:!!Mn.length,onVisibleChanged:mt},On=>{const{className:Fn,style:_n}=On;return ge.createElement("div",Object.assign({},xn,{className:xe()($e,Fn,Xt,He,Ue,qt),style:_n}),ge.createElement(Ee.CSSMotionList,Object.assign({keys:Mn},(0,De.Z)(rt),{motionName:`${rt}-show-help-item`,component:!1}),Vn=>{const{key:Xn,error:wn,errorStatus:er,className:Wn,style:dr}=Vn;return ge.createElement("div",{key:Xn,className:xe()(Wn,{[`${$e}-${er}`]:er}),style:dr},wn)}))}))},Ae=ie(69180),Pt=ie(48755),ve=ie(2171),ce=ie(31756),it=ie(23069),$t=ie(76846),wt=ie(16722);const Me=["parentNode"],Ke="form_item";function qe(Ce){return Ce===void 0||Ce===!1?[]:Array.isArray(Ce)?Ce:[Ce]}function Jt(Ce,Ne){if(!Ce.length)return;const Se=Ce.join("_");return Ne?`${Ne}_${Se}`:Me.includes(Se)?`${Ke}_${Se}`:Se}function Rt(Ce,Ne,Se,Fe,ye,Ue){let nt=Fe;return Ue!==void 0?nt=Ue:Se.validating?nt="validating":Ce.length?nt="error":Ne.length?nt="warning":(Se.touched||ye&&Se.validated)&&(nt="success"),nt}var Vt=function(Ce,Ne){var Se={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Ne.indexOf(Fe)<0&&(Se[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Fe=Object.getOwnPropertySymbols(Ce);yeCe!=null?Ce:Object.assign(Object.assign({},Ne),{__INTERNAL__:{itemRef:ye=>Ue=>{const nt=ze(ye);Ue?Se.current[nt]=Ue:delete Se.current[nt]}},scrollToField:function(ye){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:nt}=Ue,mt=Vt(Ue,["focus"]),rt=Wt(ye,Fe);rt&&((0,wt.Z)(rt,Object.assign({scrollMode:"if-needed",block:"nearest"},mt)),nt&&Fe.focusField(ye))},focusField:ye=>{var Ue,nt;const mt=Fe.getFieldInstance(ye);typeof(mt==null?void 0:mt.focus)=="function"?mt.focus():(nt=(Ue=Wt(ye,Fe))===null||Ue===void 0?void 0:Ue.focus)===null||nt===void 0||nt.call(Ue)},getFieldInstance:ye=>{const Ue=ze(ye);return Se.current[Ue]}}),[Ce,Ne]);return[Fe]}var ae=ie(98350),te=function(Ce,Ne){var Se={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Ne.indexOf(Fe)<0&&(Se[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Fe=Object.getOwnPropertySymbols(Ce);ye{const Se=ge.useContext(ve.Z),{getPrefixCls:Fe,direction:ye,requiredMark:Ue,colon:nt,scrollToFirstError:mt,className:rt,style:$e}=(0,Pt.dj)("form"),{prefixCls:He,className:ot,rootClassName:qt,size:Xt,disabled:Qt=Se,form:Dn,colon:Ln,labelAlign:Hn,labelWrap:Mn,labelCol:xn,wrapperCol:On,hideRequiredMark:Fn,layout:_n="horizontal",scrollToFirstError:Vn,requiredMark:Xn,onFinishFailed:wn,name:er,style:Wn,feedbackIcons:dr,variant:pr}=Ce,sr=te(Ce,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,ce.Z)(Xt),yr=ge.useContext(ae.Z),lr=ge.useMemo(()=>Xn!==void 0?Xn:Fn?!1:Ue!==void 0?Ue:!0,[Fn,Xn,Ue]),fr=Ln!=null?Ln:nt,Qn=Fe("form",He),mr=(0,Be.Z)(Qn),[br,zr,Er]=_e(Qn,mr),Br=xe()(Qn,`${Qn}-${_n}`,{[`${Qn}-hide-required-mark`]:lr===!1,[`${Qn}-rtl`]:ye==="rtl",[`${Qn}-${ur}`]:ur},Er,mr,zr,rt,ot,qt),[Ir]=dt(Dn),{__INTERNAL__:Mr}=Ir;Mr.name=er;const ir=ge.useMemo(()=>({name:er,labelAlign:Hn,labelCol:xn,labelWrap:Mn,wrapperCol:On,vertical:_n==="vertical",colon:fr,requiredMark:lr,itemRef:Mr.itemRef,form:Ir,feedbackIcons:dr}),[er,Hn,xn,On,_n,fr,lr,Ir,dr]),rr=ge.useRef(null);ge.useImperativeHandle(Ne,()=>{var pn;return Object.assign(Object.assign({},Ir),{nativeElement:(pn=rr.current)===null||pn===void 0?void 0:pn.nativeElement})});const Jn=(pn,hn)=>{if(pn){let tn={block:"nearest"};typeof pn=="object"&&(tn=Object.assign(Object.assign({},tn),pn)),Ir.scrollToField(hn,tn)}},an=pn=>{if(wn==null||wn(pn),pn.errorFields.length){const hn=pn.errorFields[0].name;if(Vn!==void 0){Jn(Vn,hn);return}mt!==void 0&&Jn(mt,hn)}};return br(ge.createElement(z.pg.Provider,{value:pr},ge.createElement(ve.n,{disabled:Qt},ge.createElement(it.Z.Provider,{value:ur},ge.createElement(z.RV,{validateMessages:yr},ge.createElement(z.q3.Provider,{value:ir},ge.createElement(Ae.default,Object.assign({id:er},sr,{name:er,onFinishFailed:an,form:Ir,ref:rr,style:Object.assign(Object.assign({},$e),Wn),className:Br}))))))))};var se=ge.forwardRef(ee),ne=ie(41799),he=ie(8654),be=ie(22703),ht=ie(32383),Oe=ie(11592);function We(Ce){if(typeof Ce=="function")return Ce;const Ne=(0,Oe.Z)(Ce);return Ne.length<=1?Ne[0]:Ne}const ft=()=>{const{status:Ce,errors:Ne=[],warnings:Se=[]}=ge.useContext(z.aM);return{status:Ce,errors:Ne,warnings:Se}};ft.Context=z.aM;var It=ft,bt=ie(16089);function Ut(Ce){const[Ne,Se]=ge.useState(Ce),Fe=ge.useRef(null),ye=ge.useRef([]),Ue=ge.useRef(!1);ge.useEffect(()=>(Ue.current=!1,()=>{Ue.current=!0,bt.Z.cancel(Fe.current),Fe.current=null}),[]);function nt(mt){Ue.current||(Fe.current===null&&(ye.current=[],Fe.current=(0,bt.Z)(()=>{Fe.current=null,Se(rt=>{let $e=rt;return ye.current.forEach(He=>{$e=He($e)}),$e})})),ye.current.push(mt))}return[Ne,nt]}function Kt(){const{itemRef:Ce}=ge.useContext(z.q3),Ne=ge.useRef({});function Se(Fe,ye){const Ue=ye&&typeof ye=="object"&&(0,he.C4)(ye),nt=Fe.join("_");return(Ne.current.name!==nt||Ne.current.originRef!==Ue)&&(Ne.current.name=nt,Ne.current.originRef=Ue,Ne.current.ref=(0,he.sQ)(Ce(Fe),Ue)),Ne.current.ref}return Se}var jt=ie(29194),cn=ie(34280),en=ie(2738),sn=ie(65970),Ct=ie(70425),_t=ie(5472);const Ht=Ce=>{const{formItemCls:Ne}=Ce;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ne}-control`]:{display:"flex"}}}};var ke=(0,Ge.bk)(["Form","item-item"],(Ce,Ne)=>{let{rootPrefixCls:Se}=Ne;const Fe=Te(Ce,Se);return[Ht(Fe)]}),at=function(Ce,Ne){var Se={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Ne.indexOf(Fe)<0&&(Se[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Fe=Object.getOwnPropertySymbols(Ce);ye{const{prefixCls:Ne,status:Se,labelCol:Fe,wrapperCol:ye,children:Ue,errors:nt,warnings:mt,_internalItemRender:rt,extra:$e,help:He,fieldId:ot,marginBottom:qt,onErrorVisibleChanged:Xt,label:Qt}=Ce,Dn=`${Ne}-item`,Ln=ge.useContext(z.q3),Hn=ge.useMemo(()=>{let sr=Object.assign({},ye||Ln.wrapperCol||{});return Qt===null&&!Fe&&!ye&&Ln.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,Ct.U2)(Ln.labelCol,lr),Qn=typeof fr=="object"?fr:{},mr=(0,Ct.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in Qn&&!("offset"in br)&&Qn.span{const{labelCol:sr,wrapperCol:ur}=Ln;return at(Ln,["labelCol","wrapperCol"])},[Ln]),On=ge.useRef(null),[Fn,_n]=ge.useState(0);(0,cn.Z)(()=>{$e&&On.current?_n(On.current.clientHeight):_n(0)},[$e]);const Vn=ge.createElement("div",{className:`${Dn}-control-input`},ge.createElement("div",{className:`${Dn}-control-input-content`},Ue)),Xn=ge.useMemo(()=>({prefixCls:Ne,status:Se}),[Ne,Se]),wn=qt!==null||nt.length||mt.length?ge.createElement(z.Rk.Provider,{value:Xn},ge.createElement(Le,{fieldId:ot,errors:nt,warnings:mt,help:He,helpStatus:Se,className:`${Dn}-explain-connected`,onVisibleChanged:Xt})):null,er={};ot&&(er.id=`${ot}_extra`);const Wn=$e?ge.createElement("div",Object.assign({},er,{className:`${Dn}-extra`,ref:On}),$e):null,dr=wn||Wn?ge.createElement("div",{className:`${Dn}-additional`,style:qt?{minHeight:qt+Fn}:{}},wn,Wn):null,pr=rt&&rt.mark==="pro_table_render"&&rt.render?rt.render(Ce,{input:Vn,errorList:wn,extra:Wn}):ge.createElement(ge.Fragment,null,Vn,dr);return ge.createElement(z.q3.Provider,{value:xn},ge.createElement(_t.Z,Object.assign({},Hn,{className:Mn}),pr),ge.createElement(ke,{prefixCls:Ne}))},Xe=ie(61485),pt=ie(9017),Dt=ie(85981),Gt=ie(25399),un=function(Ce,Ne){var Se={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Ne.indexOf(Fe)<0&&(Se[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Fe=Object.getOwnPropertySymbols(Ce);ye{let{prefixCls:Ne,label:Se,htmlFor:Fe,labelCol:ye,labelAlign:Ue,colon:nt,required:mt,requiredMark:rt,tooltip:$e,vertical:He}=Ce;var ot;const[qt]=(0,pt.Z)("Form"),{labelAlign:Xt,labelCol:Qt,labelWrap:Dn,colon:Ln}=ge.useContext(z.q3);if(!Se)return null;const Hn=ye||Qt||{},Mn=Ue||Xt,xn=`${Ne}-item-label`,On=xe()(xn,Mn==="left"&&`${xn}-left`,Hn.className,{[`${xn}-wrap`]:!!Dn});let Fn=Se;const _n=nt===!0||Ln!==!1&&nt!==!1;_n&&!He&&typeof Se=="string"&&Se.trim()&&(Fn=Se.replace(/[:|:]\s*$/,""));const Xn=Sn($e);if(Xn){const{icon:sr=ge.createElement(Xe.Z,null)}=Xn,ur=un(Xn,["icon"]),yr=ge.createElement(Gt.Z,Object.assign({},ur),ge.cloneElement(sr,{className:`${Ne}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Fn=ge.createElement(ge.Fragment,null,Fn,yr)}const wn=rt==="optional",er=typeof rt=="function",Wn=rt===!1;er?Fn=rt(Fn,{required:!!mt}):wn&&!mt&&(Fn=ge.createElement(ge.Fragment,null,Fn,ge.createElement("span",{className:`${Ne}-item-optional`,title:""},(qt==null?void 0:qt.optional)||((ot=Dt.Z.Form)===null||ot===void 0?void 0:ot.optional))));let dr;Wn?dr="hidden":(wn||er)&&(dr="optional");const pr=xe()({[`${Ne}-item-required`]:mt,[`${Ne}-item-required-mark-${dr}`]:dr,[`${Ne}-item-no-colon`]:!_n});return ge.createElement(_t.Z,Object.assign({},Hn,{className:On}),ge.createElement("label",{htmlFor:Fe,className:pr,title:typeof Se=="string"?Se:""},Fn))},yn=ie(29679),gn=ie(19248),$n=ie(96512),bn=ie(58617);const vn={success:yn.Z,warning:$n.Z,error:gn.Z,validating:bn.Z};function Yt(Ce){let{children:Ne,errors:Se,warnings:Fe,hasFeedback:ye,validateStatus:Ue,prefixCls:nt,meta:mt,noStyle:rt}=Ce;const $e=`${nt}-item`,{feedbackIcons:He}=ge.useContext(z.q3),ot=Rt(Se,Fe,mt,null,!!ye,Ue),{isFormItemInput:qt,status:Xt,hasFeedback:Qt,feedbackIcon:Dn}=ge.useContext(z.aM),Ln=ge.useMemo(()=>{var Hn;let Mn;if(ye){const On=ye!==!0&&ye.icons||He,Fn=ot&&((Hn=On==null?void 0:On({status:ot,errors:Se,warnings:Fe}))===null||Hn===void 0?void 0:Hn[ot]),_n=ot&&vn[ot];Mn=Fn!==!1&&_n?ge.createElement("span",{className:xe()(`${$e}-feedback-icon`,`${$e}-feedback-icon-${ot}`)},Fn||ge.createElement(_n,null)):null}const xn={status:ot||"",errors:Se,warnings:Fe,hasFeedback:!!ye,feedbackIcon:Mn,isFormItemInput:!0};return rt&&(xn.status=(ot!=null?ot:Xt)||"",xn.isFormItemInput=qt,xn.hasFeedback=!!(ye!=null?ye:Qt),xn.feedbackIcon=ye!==void 0?xn.feedbackIcon:Dn),xn},[ot,ye,rt,qt,Xt]);return ge.createElement(z.aM.Provider,{value:Ln},Ne)}var Pn=function(Ce,Ne){var Se={};for(var Fe in Ce)Object.prototype.hasOwnProperty.call(Ce,Fe)&&Ne.indexOf(Fe)<0&&(Se[Fe]=Ce[Fe]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Fe=Object.getOwnPropertySymbols(Ce);ye{if(Wn&&Vn.current){const Qn=getComputedStyle(Vn.current);sr(parseInt(Qn.marginBottom,10))}},[Wn,dr]);const ur=Qn=>{Qn||sr(null)},lr=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=Qn?Xn:$e.errors,br=Qn?wn:$e.warnings;return Rt(mr,br,$e,"",!!He,rt)}(),fr=xe()(xn,Se,Fe,{[`${xn}-with-help`]:er||Xn.length||wn.length,[`${xn}-has-feedback`]:lr&&He,[`${xn}-has-success`]:lr==="success",[`${xn}-has-warning`]:lr==="warning",[`${xn}-has-error`]:lr==="error",[`${xn}-is-validating`]:lr==="validating",[`${xn}-hidden`]:ot,[`${xn}-${Hn}`]:Hn});return ge.createElement("div",{className:fr,style:ye,ref:Vn},ge.createElement(sn.Z,Object.assign({className:`${xn}-row`},(0,en.Z)(Mn,["_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"])),ge.createElement(on,Object.assign({htmlFor:Xt},Ce,{requiredMark:On,required:Qt!=null?Qt:Dn,prefixCls:Ne,vertical:_n})),ge.createElement(Ie,Object.assign({},Ce,$e,{errors:Xn,warnings:wn,prefixCls:Ne,status:lr,help:Ue,marginBottom:pr,onErrorVisibleChanged:ur}),ge.createElement(z.qI.Provider,{value:Ln},ge.createElement(Yt,{prefixCls:Ne,meta:$e,errors:$e.errors,warnings:$e.warnings,hasFeedback:He,validateStatus:lr},qt)))),!!pr&&ge.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-pr}}))}const kn="__SPLIT__",jn=null;function Zn(Ce,Ne){const Se=Object.keys(Ce),Fe=Object.keys(Ne);return Se.length===Fe.length&&Se.every(ye=>{const Ue=Ce[ye],nt=Ne[ye];return Ue===nt||typeof Ue=="function"||typeof nt=="function"})}const An=ge.memo(Ce=>{let{children:Ne}=Ce;return Ne},(Ce,Ne)=>Zn(Ce.control,Ne.control)&&Ce.update===Ne.update&&Ce.childProps.length===Ne.childProps.length&&Ce.childProps.every((Se,Fe)=>Se===Ne.childProps[Fe]));function Yn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(Ce){const{name:Ne,noStyle:Se,className:Fe,dependencies:ye,prefixCls:Ue,shouldUpdate:nt,rules:mt,children:rt,required:$e,label:He,messageVariables:ot,trigger:qt="onChange",validateTrigger:Xt,hidden:Qt,help:Dn,layout:Ln}=Ce,{getPrefixCls:Hn}=ge.useContext(Pt.E_),{name:Mn}=ge.useContext(z.q3),xn=We(rt),On=typeof xn=="function",Fn=ge.useContext(z.qI),{validateTrigger:_n}=ge.useContext(Ae.FieldContext),Vn=Xt!==void 0?Xt:_n,Xn=Ne!=null,wn=Hn("form",Ue),er=(0,Be.Z)(wn),[Wn,dr,pr]=_e(wn,er),sr=(0,ht.ln)("Form.Item"),ur=ge.useContext(Ae.ListContext),yr=ge.useRef(null),[lr,fr]=Ut({}),[Qn,mr]=(0,ne.Z)(()=>Yn()),br=rr=>{const Jn=ur==null?void 0:ur.getKey(rr.name);if(mr(rr.destroy?Yn():rr,!0),Se&&Dn!==!1&&Fn){let an=rr.name;if(rr.destroy)an=yr.current||an;else if(Jn!==void 0){const[pn,hn]=Jn;an=[pn].concat((0,lt.Z)(hn)),yr.current=an}Fn(rr,an)}},zr=(rr,Jn)=>{fr(an=>{const pn=Object.assign({},an),tn=[].concat((0,lt.Z)(rr.name.slice(0,-1)),(0,lt.Z)(Jn)).join(kn);return rr.destroy?delete pn[tn]:pn[tn]=rr,pn})},[Er,Br]=ge.useMemo(()=>{const rr=(0,lt.Z)(Qn.errors),Jn=(0,lt.Z)(Qn.warnings);return Object.values(lr).forEach(an=>{rr.push.apply(rr,(0,lt.Z)(an.errors||[])),Jn.push.apply(Jn,(0,lt.Z)(an.warnings||[]))}),[rr,Jn]},[lr,Qn.errors,Qn.warnings]),Ir=Kt();function Mr(rr,Jn,an){return Se&&!Qt?ge.createElement(Yt,{prefixCls:wn,hasFeedback:Ce.hasFeedback,validateStatus:Ce.validateStatus,meta:Qn,errors:Er,warnings:Br,noStyle:!0},rr):ge.createElement(mn,Object.assign({key:"row"},Ce,{className:xe()(Fe,pr,er,dr),prefixCls:wn,fieldId:Jn,isRequired:an,errors:Er,warnings:Br,meta:Qn,onSubItemMetaChange:zr,layout:Ln}),rr)}if(!Xn&&!On&&!ye)return Wn(Mr(xn));let ir={};return typeof He=="string"?ir.label=He:Ne&&(ir.label=String(Ne)),ot&&(ir=Object.assign(Object.assign({},ir),ot)),Wn(ge.createElement(Ae.Field,Object.assign({},Ce,{messageVariables:ir,trigger:qt,validateTrigger:Vn,onMetaChange:br}),(rr,Jn,an)=>{const pn=qe(Ne).length&&Jn?Jn.name:[],hn=Jt(pn,Mn),tn=$e!==void 0?$e:!!(mt!=null&&mt.some(dn=>{if(dn&&typeof dn=="object"&&dn.required&&!dn.warningOnly)return!0;if(typeof dn=="function"){const nn=dn(an);return(nn==null?void 0:nn.required)&&!(nn!=null&&nn.warningOnly)}return!1})),Bn=Object.assign({},rr);let Gn=null;if(Array.isArray(xn)&&Xn)Gn=xn;else if(!(On&&(!(nt||ye)||Xn))){if(!(ye&&!On&&!Xn))if(ge.isValidElement(xn)){const dn=Object.assign(Object.assign({},xn.props),Bn);if(dn.id||(dn.id=hn),Dn||Er.length>0||Br.length>0||Ce.extra){const Tn=[];(Dn||Er.length>0)&&Tn.push(`${hn}_help`),Ce.extra&&Tn.push(`${hn}_extra`),dn["aria-describedby"]=Tn.join(" ")}Er.length>0&&(dn["aria-invalid"]="true"),tn&&(dn["aria-required"]="true"),(0,he.Yr)(xn)&&(dn.ref=Ir(pn,xn)),new Set([].concat((0,lt.Z)(qe(qt)),(0,lt.Z)(qe(Vn)))).forEach(Tn=>{dn[Tn]=function(){for(var cr,kr,Or,Rr,Ar,Fr=arguments.length,Vr=new Array(Fr),Hr=0;Hr{var{prefixCls:Ne,children:Se}=Ce,Fe=At(Ce,["prefixCls","children"]);const{getPrefixCls:ye}=ge.useContext(Pt.E_),Ue=ye("form",Ne),nt=ge.useMemo(()=>({prefixCls:Ue,status:"error"}),[Ue]);return ge.createElement(Ae.List,Object.assign({},Fe),(mt,rt,$e)=>ge.createElement(z.Rk.Provider,{value:nt},Se(mt.map(He=>Object.assign(Object.assign({},He),{fieldKey:He.key})),rt,{errors:$e.errors,warnings:$e.warnings})))};function nr(){const{form:Ce}=ge.useContext(z.q3);return Ce}const Re=se;Re.Item=qn,Re.List=zn,Re.ErrorList=Le,Re.useForm=dt,Re.useFormInstance=nr,Re.useWatch=Ae.useWatch,Re.Provider=z.RV,Re.create=()=>{};var st=Re},4875:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return zt}});var z=ie(59301),lt=ie(84105),ge=ie(87395),Qe=ie(92310),xe=ie.n(Qe),Ee=ie(60499),De=ie(18642),Be=ie(43749),Pe=ie(72190),fe=ie(42244),et=ie(38705),we=ie(17212);function Ot(){return typeof BigInt=="function"}function ut(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function Ge(Ie){var Xe=Ie.trim(),pt=Xe.startsWith("-");pt&&(Xe=Xe.slice(1)),Xe=Xe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Xe.startsWith(".")&&(Xe="0".concat(Xe));var Dt=Xe||"0",Gt=Dt.split("."),un=Gt[0]||"0",Sn=Gt[1]||"0";un==="0"&&Sn==="0"&&(pt=!1);var Cn=pt?"-":"";return{negative:pt,negativeStr:Cn,trimStr:Dt,integerStr:un,decimalStr:Sn,fullStr:"".concat(Cn).concat(Dt)}}function Ze(Ie){var Xe=String(Ie);return!Number.isNaN(Number(Xe))&&Xe.includes("e")}function je(Ie){var Xe=String(Ie);if(Ze(Ie)){var pt=Number(Xe.slice(Xe.indexOf("e-")+2)),Dt=Xe.match(/\.(\d+)/);return Dt!=null&&Dt[1]&&(pt+=Dt[1].length),pt}return Xe.includes(".")&&kt(Xe)?Xe.length-Xe.indexOf(".")-1:0}function St(Ie){var Xe=String(Ie);if(Ze(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(Ot()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":Ge("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),Et=function(){function Ie(Xe){if((0,et.Z)(this,Ie),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"number",void 0),(0,De.Z)(this,"empty",void 0),ut(Xe)){this.empty=!0;return}this.origin=String(Xe),this.number=Number(Xe)}return(0,we.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(pt){if(this.isInvalidate())return new Ie(pt);var Dt=Number(pt);if(Number.isNaN(Dt))return this;var Gt=this.number+Dt;if(Gt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(GtNumber.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Gt0&&arguments[0]!==void 0?arguments[0]:!0;return pt?this.isInvalidate()?"":St(this.number):this.origin}}]),Ie}();function vt(Ie){return Ot()?new Nt(Ie):new Et(Ie)}function yt(Ie,Xe,pt){var Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var Gt=Ge(Ie),un=Gt.negativeStr,Sn=Gt.integerStr,Cn=Gt.decimalStr,on="".concat(Xe).concat(Cn),yn="".concat(un).concat(Sn);if(pt>=0){var gn=Number(Cn[pt]);if(gn>=5&&!Dt){var $n=vt(Ie).add("".concat(un,"0.").concat("0".repeat(pt)).concat(10-gn));return yt($n.toString(),Xe,pt,Dt)}return pt===0?yn:"".concat(yn).concat(Xe).concat(Cn.padEnd(pt,"0").slice(0,pt))}return on===".0"?yn:"".concat(yn).concat(on)}var Ye=vt,Bt=ie(36901),gt=ie(34280);function tt(Ie,Xe){return typeof Proxy!="undefined"&&Ie?new Proxy(Ie,{get:function(Dt,Gt){if(Xe[Gt])return Xe[Gt];var un=Dt[Gt];return typeof un=="function"?un.bind(Dt):un}}):Ie}var xt=ie(8654),Te=ie(48736);function _e(Ie,Xe){var pt=(0,z.useRef)(null);function Dt(){try{var un=Ie.selectionStart,Sn=Ie.selectionEnd,Cn=Ie.value,on=Cn.substring(0,un),yn=Cn.substring(Sn);pt.current={start:un,end:Sn,value:Cn,beforeTxt:on,afterTxt:yn}}catch(gn){}}function Gt(){if(Ie&&pt.current&&Xe)try{var un=Ie.value,Sn=pt.current,Cn=Sn.beforeTxt,on=Sn.afterTxt,yn=Sn.start,gn=un.length;if(un.startsWith(Cn))gn=Cn.length;else if(un.endsWith(on))gn=un.length-pt.current.afterTxt.length;else{var $n=Cn[yn-1],bn=un.indexOf($n,yn-1);bn!==-1&&(gn=bn+1)}Ie.setSelectionRange(gn,gn)}catch(vn){(0,Te.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(vn.message))}}return[Dt,Gt]}var Je=ie(49658),pe=function(){var Xe=(0,z.useState)(!1),pt=(0,Pe.Z)(Xe,2),Dt=pt[0],Gt=pt[1];return(0,gt.Z)(function(){Gt((0,Je.Z)())},[]),Dt},Lt=pe,Le=ie(16089),Ae=200,Pt=600;function ve(Ie){var Xe=Ie.prefixCls,pt=Ie.upNode,Dt=Ie.downNode,Gt=Ie.upDisabled,un=Ie.downDisabled,Sn=Ie.onStep,Cn=z.useRef(),on=z.useRef([]),yn=z.useRef();yn.current=Sn;var gn=function(){clearTimeout(Cn.current)},$n=function(Zn,An){Zn.preventDefault(),gn(),yn.current(An);function Yn(){yn.current(An),Cn.current=setTimeout(Yn,Ae)}Cn.current=setTimeout(Yn,Pt)};z.useEffect(function(){return function(){gn(),on.current.forEach(function(jn){return Le.Z.cancel(jn)})}},[]);var bn=Lt();if(bn)return null;var vn="".concat(Xe,"-handler"),Yt=xe()(vn,"".concat(vn,"-up"),(0,De.Z)({},"".concat(vn,"-up-disabled"),Gt)),Pn=xe()(vn,"".concat(vn,"-down"),(0,De.Z)({},"".concat(vn,"-down-disabled"),un)),mn=function(){return on.current.push((0,Le.Z)(gn))},kn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return z.createElement("div",{className:"".concat(vn,"-wrap")},z.createElement("span",(0,Ee.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!0)},"aria-label":"Increase Value","aria-disabled":Gt,className:Yt}),pt||z.createElement("span",{unselectable:"on",className:"".concat(Xe,"-handler-up-inner")})),z.createElement("span",(0,Ee.Z)({},kn,{onMouseDown:function(Zn){$n(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":un,className:Pn}),Dt||z.createElement("span",{unselectable:"on",className:"".concat(Xe,"-handler-down-inner")})))}function ce(Ie){var Xe=typeof Ie=="number"?St(Ie):Ge(Ie).fullStr,pt=Xe.includes(".");return pt?Ge(Xe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var it=ie(30292),$t=function(){var Ie=(0,z.useRef)(0),Xe=function(){Le.Z.cancel(Ie.current)};return(0,z.useEffect)(function(){return Xe},[]),function(pt){Xe(),Ie.current=(0,Le.Z)(function(){pt()})}},wt=["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"],Ke=function(Xe,pt){return Xe||pt.isEmpty()?pt.toString():pt.toNumber()},qe=function(Xe){var pt=Ye(Xe);return pt.isInvalidate()?null:pt},Jt=z.forwardRef(function(Ie,Xe){var pt=Ie.prefixCls,Dt=Ie.className,Gt=Ie.style,un=Ie.min,Sn=Ie.max,Cn=Ie.step,on=Cn===void 0?1:Cn,yn=Ie.defaultValue,gn=Ie.value,$n=Ie.disabled,bn=Ie.readOnly,vn=Ie.upHandler,Yt=Ie.downHandler,Pn=Ie.keyboard,mn=Ie.changeOnWheel,kn=mn===void 0?!1:mn,jn=Ie.controls,Zn=jn===void 0?!0:jn,An=Ie.classNames,Yn=Ie.stringMode,Nn=Ie.parser,ar=Ie.formatter,qn=Ie.precision,At=Ie.decimalSeparator,rn=Ie.onChange,zn=Ie.onInput,nr=Ie.onPressEnter,Re=Ie.onStep,st=Ie.changeOnBlur,Ce=st===void 0?!0:st,Ne=Ie.domRef,Se=(0,fe.Z)(Ie,wt),Fe="".concat(pt,"-input"),ye=z.useRef(null),Ue=z.useState(!1),nt=(0,Pe.Z)(Ue,2),mt=nt[0],rt=nt[1],$e=z.useRef(!1),He=z.useRef(!1),ot=z.useRef(!1),qt=z.useState(function(){return Ye(gn!=null?gn:yn)}),Xt=(0,Pe.Z)(qt,2),Qt=Xt[0],Dn=Xt[1];function Ln(hn){gn===void 0&&Dn(hn)}var Hn=z.useCallback(function(hn,tn){if(!tn)return qn>=0?qn:Math.max(je(hn),je(on))},[qn,on]),Mn=z.useCallback(function(hn){var tn=String(hn);if(Nn)return Nn(tn);var Bn=tn;return At&&(Bn=Bn.replace(At,".")),Bn.replace(/[^\w.-]+/g,"")},[Nn,At]),xn=z.useRef(""),On=z.useCallback(function(hn,tn){if(ar)return ar(hn,{userTyping:tn,input:String(xn.current)});var Bn=typeof hn=="number"?St(hn):hn;if(!tn){var Gn=Hn(Bn,tn);if(kt(Bn)&&(At||Gn>=0)){var dn=At||".";Bn=yt(Bn,dn,Gn)}}return Bn},[ar,Hn,At]),Fn=z.useState(function(){var hn=yn!=null?yn:gn;return Qt.isInvalidate()&&["string","number"].includes((0,Be.Z)(hn))?Number.isNaN(hn)?"":hn:On(Qt.toString(),!1)}),_n=(0,Pe.Z)(Fn,2),Vn=_n[0],Xn=_n[1];xn.current=Vn;function wn(hn,tn){Xn(On(hn.isInvalidate()?hn.toString(!1):hn.toString(!tn),tn))}var er=z.useMemo(function(){return qe(Sn)},[Sn,qn]),Wn=z.useMemo(function(){return qe(un)},[un,qn]),dr=z.useMemo(function(){return!er||!Qt||Qt.isInvalidate()?!1:er.lessEquals(Qt)},[er,Qt]),pr=z.useMemo(function(){return!Wn||!Qt||Qt.isInvalidate()?!1:Qt.lessEquals(Wn)},[Wn,Qt]),sr=_e(ye.current,mt),ur=(0,Pe.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(tn){return er&&!tn.lessEquals(er)?er:Wn&&!Wn.lessEquals(tn)?Wn:null},Qn=function(tn){return!fr(tn)},mr=function(tn,Bn){var Gn=tn,dn=Qn(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Bn&&(Gn=fr(Gn)||Gn,dn=!0),!bn&&!$n&&dn){var nn=Gn.toString(),En=Hn(nn,Bn);return En>=0&&(Gn=Ye(yt(nn,".",En)),Qn(Gn)||(Gn=Ye(yt(nn,".",En,!0)))),Gn.equals(Qt)||(Ln(Gn),rn==null||rn(Gn.isEmpty()?null:Ke(Yn,Gn)),gn===void 0&&wn(Gn,Bn)),Gn}return Qt},br=$t(),zr=function hn(tn){if(yr(),xn.current=tn,Xn(tn),!He.current){var Bn=Mn(tn),Gn=Ye(Bn);Gn.isNaN()||mr(Gn,!0)}zn==null||zn(tn),br(function(){var dn=tn;Nn||(dn=tn.replace(/。/g,".")),dn!==tn&&hn(dn)})},Er=function(){He.current=!0},Br=function(){He.current=!1,zr(ye.current.value)},Ir=function(tn){zr(tn.target.value)},Mr=function(tn){var Bn;if(!(tn&&dr||!tn&&pr)){$e.current=!1;var Gn=Ye(ot.current?ce(on):on);tn||(Gn=Gn.negate());var dn=(Qt||Ye(0)).add(Gn.toString()),nn=mr(dn,!1);Re==null||Re(Ke(Yn,nn),{offset:ot.current?ce(on):on,type:tn?"up":"down"}),(Bn=ye.current)===null||Bn===void 0||Bn.focus()}},ir=function(tn){var Bn=Ye(Mn(Vn)),Gn;Bn.isNaN()?Gn=mr(Qt,tn):Gn=mr(Bn,tn),gn!==void 0?wn(Qt,!1):Gn.isNaN()||wn(Gn,!1)},rr=function(){$e.current=!0},Jn=function(tn){var Bn=tn.key,Gn=tn.shiftKey;$e.current=!0,ot.current=Gn,Bn==="Enter"&&(He.current||($e.current=!1),ir(!1),nr==null||nr(tn)),Pn!==!1&&!He.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bn)&&(Mr(Bn==="Up"||Bn==="ArrowUp"),tn.preventDefault())},an=function(){$e.current=!1,ot.current=!1};z.useEffect(function(){if(kn&&mt){var hn=function(Gn){Mr(Gn.deltaY<0),Gn.preventDefault()},tn=ye.current;if(tn)return tn.addEventListener("wheel",hn,{passive:!1}),function(){return tn.removeEventListener("wheel",hn)}}});var pn=function(){Ce&&ir(!1),rt(!1),$e.current=!1};return(0,gt.o)(function(){Qt.isInvalidate()||wn(Qt,!1)},[qn,ar]),(0,gt.o)(function(){var hn=Ye(gn);Dn(hn);var tn=Ye(Mn(Vn));(!hn.equals(tn)||!$e.current||ar)&&wn(hn,$e.current)},[gn]),(0,gt.o)(function(){ar&&lr()},[Vn]),z.createElement("div",{ref:Ne,className:xe()(pt,Dt,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(pt,"-focused"),mt),"".concat(pt,"-disabled"),$n),"".concat(pt,"-readonly"),bn),"".concat(pt,"-not-a-number"),Qt.isNaN()),"".concat(pt,"-out-of-range"),!Qt.isInvalidate()&&!Qn(Qt))),style:Gt,onFocus:function(){rt(!0)},onBlur:pn,onKeyDown:Jn,onKeyUp:an,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:rr},Zn&&z.createElement(ve,{prefixCls:pt,upNode:vn,downNode:Yt,upDisabled:dr,downDisabled:pr,onStep:Mr}),z.createElement("div",{className:"".concat(Fe,"-wrap")},z.createElement("input",(0,Ee.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":un,"aria-valuemax":Sn,"aria-valuenow":Qt.isInvalidate()?null:Qt.toString(),step:on},Se,{ref:(0,xt.sQ)(ye,Xe),className:Fe,value:Vn,onChange:Ir,disabled:$n,readOnly:bn}))))}),Rt=z.forwardRef(function(Ie,Xe){var pt=Ie.disabled,Dt=Ie.style,Gt=Ie.prefixCls,un=Gt===void 0?"rc-input-number":Gt,Sn=Ie.value,Cn=Ie.prefix,on=Ie.suffix,yn=Ie.addonBefore,gn=Ie.addonAfter,$n=Ie.className,bn=Ie.classNames,vn=(0,fe.Z)(Ie,Me),Yt=z.useRef(null),Pn=z.useRef(null),mn=z.useRef(null),kn=function(Zn){mn.current&&(0,it.nH)(mn.current,Zn)};return z.useImperativeHandle(Xe,function(){return tt(mn.current,{focus:kn,nativeElement:Yt.current.nativeElement||Pn.current})}),z.createElement(Bt.BaseInput,{className:$n,triggerFocus:kn,prefixCls:un,value:Sn,disabled:pt,style:Dt,prefix:Cn,suffix:on,addonAfter:gn,addonBefore:yn,classNames:bn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Yt},z.createElement(Jt,(0,Ee.Z)({prefixCls:un,disabled:pt,ref:mn,domRef:Pn,className:bn==null?void 0:bn.input},vn)))}),Vt=Rt,ze=Vt,Wt=ie(62487),dt=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),he=ie(24971),be=ie(70045),ht=ie(36237),Oe=ie(53075),We=ie(64910),ft=ie(39082),It=ie(63356),bt=ie(56119),Ut=ie(16931),Kt=ie(51636),jt=ie(17835);const cn=Ie=>{var Xe;const pt=(Xe=Ie.handleVisible)!==null&&Xe!==void 0?Xe:"auto",Dt=Ie.controlHeightSM-Ie.lineWidth*2;return Object.assign(Object.assign({},(0,We.T)(Ie)),{controlWidth:90,handleWidth:Dt,handleFontSize:Ie.fontSize/2,handleVisible:pt,handleActiveBg:Ie.colorFillAlter,handleBg:Ie.colorBgContainer,filledHandleBg:new jt.FastColor(Ie.colorFillSecondary).onBackground(Ie.colorBgContainer).toHexString(),handleHoverColor:Ie.colorPrimary,handleBorderColor:Ie.colorBorder,handleOpacity:pt===!0?1:0,handleVisibleWidth:pt===!0?Dt:0})},en=(Ie,Xe)=>{let{componentCls:pt,borderRadiusSM:Dt,borderRadiusLG:Gt}=Ie;const un=Xe==="lg"?Gt:Dt;return{[`&-${Xe}`]:{[`${pt}-handler-wrap`]:{borderStartEndRadius:un,borderEndEndRadius:un},[`${pt}-handler-up`]:{borderStartEndRadius:un},[`${pt}-handler-down`]:{borderEndEndRadius:un}}}},sn=Ie=>{const{componentCls:Xe,lineWidth:pt,lineType:Dt,borderRadius:Gt,inputFontSizeSM:un,inputFontSizeLG:Sn,controlHeightLG:Cn,controlHeightSM:on,colorError:yn,paddingInlineSM:gn,paddingBlockSM:$n,paddingBlockLG:bn,paddingInlineLG:vn,colorTextDescription:Yt,motionDurationMid:Pn,handleHoverColor:mn,handleOpacity:kn,paddingInline:jn,paddingBlock:Zn,handleBg:An,handleActiveBg:Yn,colorTextDisabled:Nn,borderRadiusSM:ar,borderRadiusLG:qn,controlWidth:At,handleBorderColor:rn,filledHandleBg:zn,lineHeightLG:nr,calc:Re}=Ie;return[{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ie)),(0,Oe.ik)(Ie)),{display:"inline-block",width:At,margin:0,padding:0,borderRadius:Gt}),(0,ft.qG)(Ie,{[`${Xe}-handler-wrap`]:{background:An,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(pt)} ${Dt} ${rn}`}}})),(0,ft.H8)(Ie,{[`${Xe}-handler-wrap`]:{background:zn,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(pt)} ${Dt} ${rn}`}},"&:focus-within":{[`${Xe}-handler-wrap`]:{background:An}}})),(0,ft.vc)(Ie,{[`${Xe}-handler-wrap`]:{background:An,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(pt)} ${Dt} ${rn}`}}})),(0,ft.Mu)(Ie)),{"&-rtl":{direction:"rtl",[`${Xe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Sn,lineHeight:nr,borderRadius:qn,[`input${Xe}-input`]:{height:Re(Cn).sub(Re(pt).mul(2)).equal(),padding:`${(0,ht.unit)(bn)} ${(0,ht.unit)(vn)}`}},"&-sm":{padding:0,fontSize:un,borderRadius:ar,[`input${Xe}-input`]:{height:Re(on).sub(Re(pt).mul(2)).equal(),padding:`${(0,ht.unit)($n)} ${(0,ht.unit)(gn)}`}},"&-out-of-range":{[`${Xe}-input-wrap`]:{input:{color:yn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ie)),(0,Oe.s7)(Ie)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Xe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Xe}-group-addon`]:{borderRadius:qn,fontSize:Ie.fontSizeLG}},"&-sm":{[`${Xe}-group-addon`]:{borderRadius:ar}}},(0,ft.ir)(Ie)),(0,ft.S5)(Ie)),{[`&:not(${Xe}-compact-first-item):not(${Xe}-compact-last-item)${Xe}-compact-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderRadius:0}},[`&:not(${Xe}-compact-last-item)${Xe}-compact-first-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Xe}-compact-first-item)${Xe}-compact-last-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Xe}-input`]:{cursor:"not-allowed"},[Xe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ie)),{width:"100%",padding:`${(0,ht.unit)(Zn)} ${(0,ht.unit)(jn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Gt,outline:0,transition:`all ${Pn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Oe.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Xe}-handler-wrap, &-focused ${Xe}-handler-wrap`]:{width:Ie.handleWidth,opacity:1}})},{[Xe]:Object.assign(Object.assign(Object.assign({[`${Xe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleVisibleWidth,opacity:kn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Gt,borderEndEndRadius:Gt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Pn}`,overflow:"hidden",[`${Xe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Xe}-handler-up-inner, ${Xe}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${Xe}-handler`]:{height:"50%",overflow:"hidden",color:Yt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ht.unit)(pt)} ${Dt} ${rn}`,transition:`all ${Pn} linear`,"&:active":{background:Yn},"&:hover":{height:"60%",[` ${Xe}-handler-up-inner, ${Xe}-handler-down-inner `]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,It.Ro)()),{color:Yt,transition:`all ${Pn} linear`,userSelect:"none"})},[`${Xe}-handler-up`]:{borderStartEndRadius:Gt},[`${Xe}-handler-down`]:{borderEndEndRadius:Gt}},en(Ie,"lg")),en(Ie,"sm")),{"&-disabled, &-readonly":{[`${Xe}-handler-wrap`]:{display:"none"},[`${Xe}-input`]:{color:"inherit"}},[` ${Xe}-handler-up-disabled, ${Xe}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Xe}-handler-up-disabled:hover &-handler-up-inner, ${Xe}-handler-down-disabled:hover &-handler-down-inner `]:{color:Nn}})}]},Ct=Ie=>{const{componentCls:Xe,paddingBlock:pt,paddingInline:Dt,inputAffixPadding:Gt,controlWidth:un,borderRadiusLG:Sn,borderRadiusSM:Cn,paddingInlineLG:on,paddingInlineSM:yn,paddingBlockLG:gn,paddingBlockSM:$n,motionDurationMid:bn}=Ie;return{[`${Xe}-affix-wrapper`]:Object.assign(Object.assign({[`input${Xe}-input`]:{padding:`${(0,ht.unit)(pt)} 0`}},(0,Oe.ik)(Ie)),{position:"relative",display:"inline-flex",alignItems:"center",width:un,padding:0,paddingInlineStart:Dt,"&-lg":{borderRadius:Sn,paddingInlineStart:on,[`input${Xe}-input`]:{padding:`${(0,ht.unit)(gn)} 0`}},"&-sm":{borderRadius:Cn,paddingInlineStart:yn,[`input${Xe}-input`]:{padding:`${(0,ht.unit)($n)} 0`}},[`&:not(${Xe}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Xe}-disabled`]:{background:"transparent"},[`> div${Xe}`]:{width:"100%",border:"none",outline:"none",[`&${Xe}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Xe}-handler-wrap`]:{zIndex:2},[Xe]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Gt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Dt,marginInlineStart:Gt,transition:`margin ${bn}`}},[`&:hover ${Xe}-handler-wrap, &-focused ${Xe}-handler-wrap`]:{width:Ie.handleWidth,opacity:1},[`&:not(${Xe}-affix-wrapper-without-controls):hover ${Xe}-suffix`]:{marginInlineEnd:Ie.calc(Ie.handleWidth).add(Dt).equal()}})}};var _t=(0,Ut.I$)("InputNumber",Ie=>{const Xe=(0,Kt.mergeToken)(Ie,(0,We.e)(Ie));return[sn(Xe),Ct(Xe),(0,bt.c)(Xe)]},cn,{unitless:{handleOpacity:!0}}),Ht=function(Ie,Xe){var pt={};for(var Dt in Ie)Object.prototype.hasOwnProperty.call(Ie,Dt)&&Xe.indexOf(Dt)<0&&(pt[Dt]=Ie[Dt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Dt=Object.getOwnPropertySymbols(Ie);Gt{const{getPrefixCls:pt,direction:Dt}=z.useContext(ae.E_),Gt=z.useRef(null);z.useImperativeHandle(Xe,()=>Gt.current);const{className:un,rootClassName:Sn,size:Cn,disabled:on,prefixCls:yn,addonBefore:gn,addonAfter:$n,prefix:bn,suffix:vn,bordered:Yt,readOnly:Pn,status:mn,controls:kn,variant:jn}=Ie,Zn=Ht(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),An=pt("input-number",yn),Yn=(0,oe.Z)(An),[Nn,ar,qn]=_t(An,Yn),{compactSize:At,compactItemClassnames:rn}=(0,be.ri)(An,Dt);let zn=z.createElement(ge.Z,{className:`${An}-handler-up-inner`}),nr=z.createElement(lt.Z,{className:`${An}-handler-down-inner`});const Re=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(zn=typeof kn.upIcon=="undefined"?zn:z.createElement("span",{className:`${An}-handler-up-inner`},kn.upIcon),nr=typeof kn.downIcon=="undefined"?nr:z.createElement("span",{className:`${An}-handler-down-inner`},kn.downIcon));const{hasFeedback:st,status:Ce,isFormItemInput:Ne,feedbackIcon:Se}=z.useContext(ne.aM),Fe=(0,dt.F)(Ce,mn),ye=(0,se.Z)(Xt=>{var Qt;return(Qt=Cn!=null?Cn:At)!==null&&Qt!==void 0?Qt:Xt}),Ue=z.useContext(ee.Z),nt=on!=null?on:Ue,[mt,rt]=(0,he.Z)("inputNumber",jn,Yt),$e=st&&z.createElement(z.Fragment,null,Se),He=xe()({[`${An}-lg`]:ye==="large",[`${An}-sm`]:ye==="small",[`${An}-rtl`]:Dt==="rtl",[`${An}-in-form-item`]:Ne},ar),ot=`${An}-group`,qt=z.createElement(ze,Object.assign({ref:Gt,disabled:nt,className:xe()(qn,Yn,un,Sn,rn),upHandler:zn,downHandler:nr,prefixCls:An,readOnly:Pn,controls:Re,prefix:bn,suffix:$e||vn,addonBefore:gn&&z.createElement(Wt.Z,{form:!0,space:!0},gn),addonAfter:$n&&z.createElement(Wt.Z,{form:!0,space:!0},$n),classNames:{input:He,variant:xe()({[`${An}-${mt}`]:rt},(0,dt.Z)(An,Fe,st)),affixWrapper:xe()({[`${An}-affix-wrapper-sm`]:ye==="small",[`${An}-affix-wrapper-lg`]:ye==="large",[`${An}-affix-wrapper-rtl`]:Dt==="rtl",[`${An}-affix-wrapper-without-controls`]:kn===!1||nt},ar),wrapper:xe()({[`${ot}-rtl`]:Dt==="rtl"},ar),groupWrapper:xe()({[`${An}-group-wrapper-sm`]:ye==="small",[`${An}-group-wrapper-lg`]:ye==="large",[`${An}-group-wrapper-rtl`]:Dt==="rtl",[`${An}-group-wrapper-${mt}`]:rt},(0,dt.Z)(`${An}-group-wrapper`,Fe,st),ar)}},Zn));return Nn(qt)}),at=ke,Mt=Ie=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(ke,Object.assign({},Ie)));at._InternalPanelDoNotUseOrYouWillBeFired=Mt;var zt=at},49397:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Et}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(36901),xe=ie(8654),Ee=ie(62487),De=ie(86013),Be=ie(82855),Pe=ie(48755),fe=ie(2171),et=ie(83397),we=ie(31756),Ot=ie(56553),ut=ie(24971),Ge=ie(70045),Ze=ie(23826),je=ie(53075);function St(vt){return!!(vt.prefix||vt.suffix||vt.allowClear||vt.showCount)}var kt=function(vt,yt){var Ye={};for(var Bt in vt)Object.prototype.hasOwnProperty.call(vt,Bt)&&yt.indexOf(Bt)<0&&(Ye[Bt]=vt[Bt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Bt=Object.getOwnPropertySymbols(vt);gt{const{prefixCls:Ye,bordered:Bt=!0,status:gt,size:tt,disabled:xt,onBlur:Te,onFocus:_e,suffix:Je,allowClear:pe,addonAfter:Lt,addonBefore:Le,className:Ae,style:Pt,styles:ve,rootClassName:ce,onChange:it,classNames:$t,variant:wt}=vt,Me=kt(vt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ke,direction:qe,allowClear:Jt,autoComplete:Rt,className:Vt,style:ze,classNames:Wt,styles:dt}=(0,Pe.dj)("input"),ae=Ke("input",Ye),te=(0,z.useRef)(null),ee=(0,et.Z)(ae),[oe,se,ne]=(0,je.TI)(ae,ce),[he]=(0,je.ZP)(ae,ee),{compactSize:be,compactItemClassnames:ht}=(0,Ge.ri)(ae,qe),Oe=(0,we.Z)(zt=>{var Ie;return(Ie=tt!=null?tt:be)!==null&&Ie!==void 0?Ie:zt}),We=z.useContext(fe.Z),ft=xt!=null?xt:We,{status:It,hasFeedback:bt,feedbackIcon:Ut}=(0,z.useContext)(Ot.aM),Kt=(0,Be.F)(It,gt),jt=St(vt)||!!bt,cn=(0,z.useRef)(jt),en=(0,Ze.Z)(te,!0),sn=zt=>{en(),Te==null||Te(zt)},Ct=zt=>{en(),_e==null||_e(zt)},_t=zt=>{en(),it==null||it(zt)},Ht=(bt||Je)&&z.createElement(z.Fragment,null,Je,bt&&Ut),ke=(0,De.Z)(pe!=null?pe:Jt),[at,Mt]=(0,ut.Z)("input",wt,Bt);return oe(he(z.createElement(Qe.default,Object.assign({ref:(0,xe.sQ)(yt,te),prefixCls:ae,autoComplete:Rt},Me,{disabled:ft,onBlur:sn,onFocus:Ct,style:Object.assign(Object.assign({},ze),Pt),styles:Object.assign(Object.assign({},dt),ve),suffix:Ht,allowClear:ke,className:ge()(Ae,ce,ne,ee,ht,Vt),onChange:_t,addonBefore:Le&&z.createElement(Ee.Z,{form:!0,space:!0},Le),addonAfter:Lt&&z.createElement(Ee.Z,{form:!0,space:!0},Lt),classNames:Object.assign(Object.assign(Object.assign({},$t),Wt),{input:ge()({[`${ae}-sm`]:Oe==="small",[`${ae}-lg`]:Oe==="large",[`${ae}-rtl`]:qe==="rtl"},$t==null?void 0:$t.input,Wt.input,se),variant:ge()({[`${ae}-${at}`]:Mt},(0,Be.Z)(ae,Kt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Oe==="small",[`${ae}-affix-wrapper-lg`]:Oe==="large",[`${ae}-affix-wrapper-rtl`]:qe==="rtl"},se),wrapper:ge()({[`${ae}-group-rtl`]:qe==="rtl"},se),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Oe==="small",[`${ae}-group-wrapper-lg`]:Oe==="large",[`${ae}-group-wrapper-rtl`]:qe==="rtl",[`${ae}-group-wrapper-${at}`]:Mt},(0,Be.Z)(`${ae}-group-wrapper`,Kt,bt),se)})}))))})},79809:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return yt}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(22711),xe=ie(86013),Ee=ie(82855),De=ie(48755),Be=ie(2171),Pe=ie(83397),fe=ie(31756),et=ie(56553),we=ie(24971),Ot=ie(70045),ut=ie(30292),Ge=ie(53075),Ze=ie(16931),je=ie(51636),St=ie(64910);const kt=Ye=>{const{componentCls:Bt,paddingLG:gt}=Ye,tt=`${Bt}-textarea`;return{[`textarea${Bt}`]:{maxWidth:"100%",height:"auto",minHeight:Ye.controlHeight,lineHeight:Ye.lineHeight,verticalAlign:"bottom",transition:`all ${Ye.motionDurationSlow}`,resize:"vertical",[`&${Bt}-mouse-active`]:{transition:`all ${Ye.motionDurationSlow}, height 0s, width 0s`}},[`${Bt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[tt]:{position:"relative","&-show-count":{[`> ${Bt}`]:{height:"100%"},[`${Bt}-data-count`]:{position:"absolute",bottom:Ye.calc(Ye.fontSize).mul(Ye.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ye.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${Bt}, &-affix-wrapper${tt}-has-feedback ${Bt} `]:{paddingInlineEnd:gt},[`&-affix-wrapper${Bt}-affix-wrapper`]:{padding:0,[`> textarea${Bt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ye.calc(Ye.controlHeight).sub(Ye.calc(Ye.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Bt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Bt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ye.paddingInline,insetBlockStart:Ye.paddingXS},[`${tt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ye.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Bt}-affix-wrapper-sm`]:{[`${Bt}-suffix`]:{[`${Bt}-clear-icon`]:{insetInlineEnd:Ye.paddingInlineSM}}}}}};var Nt=(0,Ze.I$)(["Input","TextArea"],Ye=>{const Bt=(0,je.mergeToken)(Ye,(0,St.e)(Ye));return[kt(Bt)]},St.T,{resetFont:!1}),Et=function(Ye,Bt){var gt={};for(var tt in Ye)Object.prototype.hasOwnProperty.call(Ye,tt)&&Bt.indexOf(tt)<0&&(gt[tt]=Ye[tt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,tt=Object.getOwnPropertySymbols(Ye);xt{var gt;const{prefixCls:tt,bordered:xt=!0,size:Te,disabled:_e,status:Je,allowClear:pe,classNames:Lt,rootClassName:Le,className:Ae,style:Pt,styles:ve,variant:ce,showCount:it,onMouseDown:$t,onResize:wt}=Ye,Me=Et(Ye,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ke,direction:qe,allowClear:Jt,autoComplete:Rt,className:Vt,style:ze,classNames:Wt,styles:dt}=(0,De.dj)("textArea"),ae=z.useContext(Be.Z),te=_e!=null?_e:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(et.aM),ne=(0,Ee.F)(ee,Je),he=z.useRef(null);z.useImperativeHandle(Bt,()=>{var Mt;return{resizableTextArea:(Mt=he.current)===null||Mt===void 0?void 0:Mt.resizableTextArea,focus:zt=>{var Ie,Xe;(0,ut.nH)((Xe=(Ie=he.current)===null||Ie===void 0?void 0:Ie.resizableTextArea)===null||Xe===void 0?void 0:Xe.textArea,zt)},blur:()=>{var zt;return(zt=he.current)===null||zt===void 0?void 0:zt.blur()}}});const be=Ke("input",tt),ht=(0,Pe.Z)(be),[Oe,We,ft]=(0,Ge.TI)(be,Le),[It]=Nt(be,ht),{compactSize:bt,compactItemClassnames:Ut}=(0,Ot.ri)(be,qe),Kt=(0,fe.Z)(Mt=>{var zt;return(zt=Te!=null?Te:bt)!==null&&zt!==void 0?zt:Mt}),[jt,cn]=(0,we.Z)("textArea",ce,xt),en=(0,xe.Z)(pe!=null?pe:Jt),[sn,Ct]=z.useState(!1),[_t,Ht]=z.useState(!1),ke=Mt=>{Ct(!0),$t==null||$t(Mt);const zt=()=>{Ct(!1),document.removeEventListener("mouseup",zt)};document.addEventListener("mouseup",zt)},at=Mt=>{var zt,Ie;if(wt==null||wt(Mt),sn&&typeof getComputedStyle=="function"){const Xe=(Ie=(zt=he.current)===null||zt===void 0?void 0:zt.nativeElement)===null||Ie===void 0?void 0:Ie.querySelector("textarea");Xe&&getComputedStyle(Xe).resize==="both"&&Ht(!0)}};return Oe(It(z.createElement(Qe.default,Object.assign({autoComplete:Rt},Me,{style:Object.assign(Object.assign({},ze),Pt),styles:Object.assign(Object.assign({},dt),ve),disabled:te,allowClear:en,className:ge()(ft,ht,Ae,Le,Ut,Vt,_t&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Lt),Wt),{textarea:ge()({[`${be}-sm`]:Kt==="small",[`${be}-lg`]:Kt==="large"},We,Lt==null?void 0:Lt.textarea,Wt.textarea,sn&&`${be}-mouse-active`),variant:ge()({[`${be}-${jt}`]:cn},(0,Ee.Z)(be,ne)),affixWrapper:ge()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:qe==="rtl",[`${be}-affix-wrapper-sm`]:Kt==="small",[`${be}-affix-wrapper-lg`]:Kt==="large",[`${be}-textarea-show-count`]:it||((gt=Ye.count)===null||gt===void 0?void 0:gt.show)},We)}),prefixCls:be,suffix:oe&&z.createElement("span",{className:`${be}-textarea-suffix`},se),showCount:it,ref:he,onResize:at,onMouseDown:ke}))))})},23826:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return lt}});var z=ie(59301);function lt(ge,Qe){const xe=(0,z.useRef)([]),Ee=()=>{xe.current.push(setTimeout(()=>{var De,Be,Pe,fe;!((De=ge.current)===null||De===void 0)&&De.input&&((Be=ge.current)===null||Be===void 0?void 0:Be.input.getAttribute("type"))==="password"&&(!((Pe=ge.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((fe=ge.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Qe&&Ee(),()=>xe.current.forEach(De=>{De&&clearTimeout(De)})),[]),Ee}},37568:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return Wt}});var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(48755),xe=ie(56553),Ee=ie(53075),Be=dt=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Qe.E_),{prefixCls:ee,className:oe}=dt,se=ae("input-group",ee),ne=ae("input"),[he,be,ht]=(0,Ee.ZP)(ne),Oe=ge()(se,ht,{[`${se}-lg`]:dt.size==="large",[`${se}-sm`]:dt.size==="small",[`${se}-compact`]:dt.compact,[`${se}-rtl`]:te==="rtl"},be,oe),We=(0,z.useContext)(xe.aM),ft=(0,z.useMemo)(()=>Object.assign(Object.assign({},We),{isFormItemInput:!1}),[We]);return he(z.createElement("span",{className:Oe,style:dt.style,onMouseEnter:dt.onMouseEnter,onMouseLeave:dt.onMouseLeave,onFocus:dt.onFocus,onBlur:dt.onBlur},z.createElement(xe.aM.Provider,{value:ft},dt.children)))},Pe=ie(49397),fe=ie(77654),et=ie(6089),we=ie(26112),Ot=ie(82855),ut=ie(31756),Ge=ie(16931),Ze=ie(51636),je=ie(64910);const St=dt=>{const{componentCls:ae,paddingXS:te}=dt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:dt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:dt.calc(dt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:dt.paddingXS}}}};var kt=(0,Ge.I$)(["Input","OTP"],dt=>{const ae=(0,Ze.mergeToken)(dt,(0,je.e)(dt));return[St(ae)]},je.T),Nt=ie(16089),Et=function(dt,ae){var te={};for(var ee in dt)Object.prototype.hasOwnProperty.call(dt,ee)&&ae.indexOf(ee)<0&&(te[ee]=dt[ee]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(dt);oe{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=dt,he=Et(dt,["value","onChange","onActiveChange","index","mask"]),be=te&&typeof ne=="string"?ne:te,ht=bt=>{ee(se,bt.target.value)},Oe=z.useRef(null);z.useImperativeHandle(ae,()=>Oe.current);const We=()=>{(0,Nt.Z)(()=>{var bt;const Ut=(bt=Oe.current)===null||bt===void 0?void 0:bt.input;document.activeElement===Ut&&Ut&&Ut.select()})},ft=bt=>{const{key:Ut,ctrlKey:Kt,metaKey:jt}=bt;Ut==="ArrowLeft"?oe(se-1):Ut==="ArrowRight"?oe(se+1):Ut==="z"&&(Kt||jt)&&bt.preventDefault(),We()},It=bt=>{bt.key==="Backspace"&&!te&&oe(se-1),We()};return z.createElement(Pe.Z,Object.assign({type:ne===!0?"password":"text"},he,{ref:Oe,value:be,onInput:ht,onFocus:We,onKeyDown:ft,onKeyUp:It,onMouseDown:We,onMouseUp:We}))}),Ye=function(dt,ae){var te={};for(var ee in dt)Object.prototype.hasOwnProperty.call(dt,ee)&&ae.indexOf(ee)<0&&(te[ee]=dt[ee]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(dt);oe{const{index:ae,prefixCls:te,separator:ee}=dt,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var xt=z.forwardRef((dt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:he,formatter:be,separator:ht,variant:Oe,disabled:We,status:ft,autoFocus:It,mask:bt,type:Ut,onInput:Kt,inputMode:jt}=dt,cn=Ye(dt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:en,direction:sn}=z.useContext(Qe.E_),Ct=en("otp",te),_t=(0,we.Z)(cn,{aria:!0,data:!0,attr:!0}),[Ht,ke,at]=kt(Ct),Mt=(0,ut.Z)(bn=>oe!=null?oe:bn),zt=z.useContext(xe.aM),Ie=(0,Ot.F)(zt.status,ft),Xe=z.useMemo(()=>Object.assign(Object.assign({},zt),{status:Ie,hasFeedback:!1,feedbackIcon:null}),[zt,Ie]),pt=z.useRef(null),Dt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var bn;(bn=Dt.current[0])===null||bn===void 0||bn.focus()},blur:()=>{var bn;for(let vn=0;vnbe?be(bn):bn,[un,Sn]=z.useState(()=>Bt(Gt(se||"")));z.useEffect(()=>{ne!==void 0&&Sn(Bt(ne))},[ne]);const Cn=(0,et.Z)(bn=>{Sn(bn),Kt&&Kt(bn),he&&bn.length===ee&&bn.every(vn=>vn)&&bn.some((vn,Yt)=>un[Yt]!==vn)&&he(bn.join(""))}),on=(0,et.Z)((bn,vn)=>{let Yt=(0,fe.Z)(un);for(let mn=0;mn=0&&!Yt[mn];mn-=1)Yt.pop();const Pn=Gt(Yt.map(mn=>mn||" ").join(""));return Yt=Bt(Pn).map((mn,kn)=>mn===" "&&!Yt[kn]?Yt[kn]:mn),Yt}),yn=(bn,vn)=>{var Yt;const Pn=on(bn,vn),mn=Math.min(bn+vn.length,ee-1);mn!==bn&&Pn[bn]!==void 0&&((Yt=Dt.current[mn])===null||Yt===void 0||Yt.focus()),Cn(Pn)},gn=bn=>{var vn;(vn=Dt.current[bn])===null||vn===void 0||vn.focus()},$n={variant:Oe,disabled:We,status:Ie,mask:bt,type:Ut,inputMode:jt};return Ht(z.createElement("div",Object.assign({},_t,{ref:pt,className:ge()(Ct,{[`${Ct}-sm`]:Mt==="small",[`${Ct}-lg`]:Mt==="large",[`${Ct}-rtl`]:sn==="rtl"},at,ke)}),z.createElement(xe.aM.Provider,{value:Xe},Array.from({length:ee}).map((bn,vn)=>{const Yt=`otp-${vn}`,Pn=un[vn]||"";return z.createElement(z.Fragment,{key:Yt},z.createElement(yt,Object.assign({ref:mn=>{Dt.current[vn]=mn},index:vn,size:Mt,htmlSize:1,className:`${Ct}-input`,onChange:yn,value:Pn,onActiveChange:gn,autoFocus:vn===0&&It},$n)),vndt?z.createElement(_e.Z,null):z.createElement(Te.Z,null),ve={click:"onClick",hover:"onMouseOver"};var it=z.forwardRef((dt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=Pt}=dt,ne=z.useContext(Lt.Z),he=te!=null?te:ne,be=typeof oe=="object"&&oe.visible!==void 0,[ht,Oe]=(0,z.useState)(()=>be?oe.visible:!1),We=(0,z.useRef)(null);z.useEffect(()=>{be&&Oe(oe.visible)},[be,oe]);const ft=(0,Le.Z)(We),It=()=>{var Mt;if(he)return;ht&&ft();const zt=!ht;Oe(zt),typeof oe=="object"&&((Mt=oe.onVisibleChange)===null||Mt===void 0||Mt.call(oe,zt))},bt=Mt=>{const zt=ve[ee]||"",Ie=se(ht),Xe={[zt]:It,className:`${Mt}-icon`,key:"passwordIcon",onMouseDown:pt=>{pt.preventDefault()},onMouseUp:pt=>{pt.preventDefault()}};return z.cloneElement(z.isValidElement(Ie)?Ie:z.createElement("span",null,Ie),Xe)},{className:Ut,prefixCls:Kt,inputPrefixCls:jt,size:cn}=dt,en=Ae(dt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:sn}=z.useContext(Qe.E_),Ct=sn("input",jt),_t=sn("input-password",Kt),Ht=oe&&bt(_t),ke=ge()(_t,Ut,{[`${_t}-${cn}`]:!!cn}),at=Object.assign(Object.assign({},(0,Je.Z)(en,["suffix","iconRender","visibilityToggle"])),{type:ht?"text":"password",className:ke,prefixCls:Ct,suffix:Ht});return cn&&(at.size=cn),z.createElement(Pe.Z,Object.assign({ref:(0,pe.sQ)(ae,We)},at))}),$t=ie(47472),wt=ie(22703),Me=ie(7939),Ke=ie(70045),qe=function(dt,ae){var te={};for(var ee in dt)Object.prototype.hasOwnProperty.call(dt,ee)&&ae.indexOf(ee)<0&&(te[ee]=dt[ee]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(dt);oe{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:he=!1,addonAfter:be,loading:ht,disabled:Oe,onSearch:We,onChange:ft,onCompositionStart:It,onCompositionEnd:bt}=dt,Ut=qe(dt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Kt,direction:jt}=z.useContext(Qe.E_),cn=z.useRef(!1),en=Kt("input-search",te),sn=Kt("input",ee),{compactSize:Ct}=(0,Ke.ri)(en,jt),_t=(0,ut.Z)(yn=>{var gn;return(gn=se!=null?se:Ct)!==null&&gn!==void 0?gn:yn}),Ht=z.useRef(null),ke=yn=>{yn!=null&&yn.target&&yn.type==="click"&&We&&We(yn.target.value,yn,{source:"clear"}),ft==null||ft(yn)},at=yn=>{var gn;document.activeElement===((gn=Ht.current)===null||gn===void 0?void 0:gn.input)&&yn.preventDefault()},Mt=yn=>{var gn,$n;We&&We(($n=(gn=Ht.current)===null||gn===void 0?void 0:gn.input)===null||$n===void 0?void 0:$n.value,yn,{source:"input"})},zt=yn=>{cn.current||ht||Mt(yn)},Ie=typeof he=="boolean"?z.createElement($t.Z,null):null,Xe=`${en}-button`;let pt;const Dt=he||{},Gt=Dt.type&&Dt.type.__ANT_BUTTON===!0;Gt||Dt.type==="button"?pt=(0,wt.Tm)(Dt,Object.assign({onMouseDown:at,onClick:yn=>{var gn,$n;($n=(gn=Dt==null?void 0:Dt.props)===null||gn===void 0?void 0:gn.onClick)===null||$n===void 0||$n.call(gn,yn),Mt(yn)},key:"enterButton"},Gt?{className:Xe,size:_t}:{})):pt=z.createElement(Me.ZP,{className:Xe,type:he?"primary":void 0,size:_t,disabled:Oe,key:"enterButton",onMouseDown:at,onClick:Mt,loading:ht,icon:Ie},he),be&&(pt=[pt,(0,wt.Tm)(be,{key:"addonAfter"})]);const un=ge()(en,{[`${en}-rtl`]:jt==="rtl",[`${en}-${_t}`]:!!_t,[`${en}-with-button`]:!!he},oe),Sn=Object.assign(Object.assign({},Ut),{className:un,prefixCls:sn,type:"search"}),Cn=yn=>{cn.current=!0,It==null||It(yn)},on=yn=>{cn.current=!1,bt==null||bt(yn)};return z.createElement(Pe.Z,Object.assign({ref:(0,pe.sQ)(Ht,ae),onPressEnter:zt},Sn,{size:_t,onCompositionStart:Cn,onCompositionEnd:on,addonAfter:pt,suffix:ne,onChange:ke,disabled:Oe}))}),Vt=ie(79809);const ze=Pe.Z;ze.Group=Be,ze.Search=Rt,ze.TextArea=Vt.Z,ze.Password=it,ze.OTP=xt;var Wt=ze},24303:function(ln,Zt,ie){"use strict";ie.d(Zt,{D:function(){return Ye},Z:function(){return tt}});var z=ie(59301),lt=ie(60499),ge={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=ge,xe=ie(7657),Ee=function(Te,_e){return z.createElement(xe.Z,(0,lt.Z)({},Te,{ref:_e,icon:Qe}))},De=z.forwardRef(Ee),Be=De,Pe=ie(33853),fe=ie(38819),et=ie(92310),we=ie.n(et),Ot=ie(2738),ut=ie(48755),Ge=ie(6989),Ze=ie(36237),je=ie(48923),St=ie(16931);const kt=xt=>{const{componentCls:Te,siderBg:_e,motionDurationMid:Je,motionDurationSlow:pe,antCls:Lt,triggerHeight:Le,triggerColor:Ae,triggerBg:Pt,headerHeight:ve,zeroTriggerWidth:ce,zeroTriggerHeight:it,borderRadiusLG:$t,lightSiderBg:wt,lightTriggerColor:Me,lightTriggerBg:Ke,bodyBg:qe}=xt;return{[Te]:{position:"relative",minWidth:0,background:_e,transition:`all ${Je}, background 0s`,"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},[`${Te}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Lt}-menu${Lt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Te}-children`]:{overflow:"hidden"},[`${Te}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Le,color:Ae,lineHeight:(0,Ze.unit)(Le),textAlign:"center",background:Pt,cursor:"pointer",transition:`all ${Je}`},[`${Te}-zero-width-trigger`]:{position:"absolute",top:ve,insetInlineEnd:xt.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:it,color:Ae,fontSize:xt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:_e,borderRadius:`0 ${(0,Ze.unit)($t)} ${(0,Ze.unit)($t)} 0`,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:xt.calc(ce).mul(-1).equal(),borderRadius:`${(0,Ze.unit)($t)} 0 0 ${(0,Ze.unit)($t)}`}},"&-light":{background:wt,[`${Te}-trigger`]:{color:Me,background:Ke},[`${Te}-zero-width-trigger`]:{color:Me,background:Ke,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var Nt=(0,St.I$)(["Layout","Sider"],xt=>[kt(xt)],je.eh,{deprecatedTokens:je.jn}),Et=function(xt,Te){var _e={};for(var Je in xt)Object.prototype.hasOwnProperty.call(xt,Je)&&Te.indexOf(Je)<0&&(_e[Je]=xt[Je]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Je=Object.getOwnPropertySymbols(xt);pe!Number.isNaN(Number.parseFloat(xt))&&isFinite(xt),Ye=z.createContext({}),Bt=(()=>{let xt=0;return function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xt+=1,`${Te}${xt}`}})();var tt=z.forwardRef((xt,Te)=>{const{prefixCls:_e,className:Je,trigger:pe,children:Lt,defaultCollapsed:Le=!1,theme:Ae="dark",style:Pt={},collapsible:ve=!1,reverseArrow:ce=!1,width:it=200,collapsedWidth:$t=80,zeroWidthTriggerStyle:wt,breakpoint:Me,onCollapse:Ke,onBreakpoint:qe}=xt,Jt=Et(xt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Rt}=(0,z.useContext)(Ge.V),[Vt,ze]=(0,z.useState)("collapsed"in xt?xt.collapsed:Le),[Wt,dt]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in xt&&ze(xt.collapsed)},[xt.collapsed]);const ae=(_t,Ht)=>{"collapsed"in xt||ze(_t),Ke==null||Ke(_t,Ht)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(ut.E_),oe=te("layout-sider",_e),[se,ne,he]=Nt(oe),be=(0,z.useRef)(null);be.current=_t=>{dt(_t.matches),qe==null||qe(_t.matches),Vt!==_t.matches&&ae(_t.matches,"responsive")},(0,z.useEffect)(()=>{function _t(ke){return be.current(ke)}let Ht;if(typeof window!="undefined"){const{matchMedia:ke}=window;if(ke&&Me&&Me in vt){Ht=ke(`screen and (max-width: ${vt[Me]})`);try{Ht.addEventListener("change",_t)}catch(at){Ht.addListener(_t)}_t(Ht)}}return()=>{try{Ht==null||Ht.removeEventListener("change",_t)}catch(ke){Ht==null||Ht.removeListener(_t)}}},[Me]),(0,z.useEffect)(()=>{const _t=Bt("ant-sider-");return Rt.addSider(_t),()=>Rt.removeSider(_t)},[]);const ht=()=>{ae(!Vt,"clickTrigger")},Oe=(0,Ot.Z)(Jt,["collapsed"]),We=Vt?$t:it,ft=yt(We)?`${We}px`:String(We),It=parseFloat(String($t||0))===0?z.createElement("span",{onClick:ht,className:we()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:wt},pe||z.createElement(Be,null)):null,bt=ee==="rtl"==!ce,jt={expanded:bt?z.createElement(fe.Z,null):z.createElement(Pe.Z,null),collapsed:bt?z.createElement(Pe.Z,null):z.createElement(fe.Z,null)}[Vt?"collapsed":"expanded"],cn=pe!==null?It||z.createElement("div",{className:`${oe}-trigger`,onClick:ht,style:{width:ft}},pe||jt):null,en=Object.assign(Object.assign({},Pt),{flex:`0 0 ${ft}`,maxWidth:ft,minWidth:ft,width:ft}),sn=we()(oe,`${oe}-${Ae}`,{[`${oe}-collapsed`]:!!Vt,[`${oe}-has-trigger`]:ve&&pe!==null&&!It,[`${oe}-below`]:!!Wt,[`${oe}-zero-width`]:parseFloat(ft)===0},Je,ne,he),Ct=z.useMemo(()=>({siderCollapsed:Vt}),[Vt]);return se(z.createElement(Ye.Provider,{value:Ct},z.createElement("aside",Object.assign({className:sn},Oe,{style:en,ref:Te}),z.createElement("div",{className:`${oe}-children`},Lt),ve||Wt&&It?cn:null)))})},6989:function(ln,Zt,ie){"use strict";ie.d(Zt,{V:function(){return lt}});var z=ie(59301);const lt=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(ln,Zt,ie){"use strict";ie.d(Zt,{eh:function(){return Qe},jn:function(){return xe}});var z=ie(36237),lt=ie(16931);const ge=Ee=>{const{antCls:De,componentCls:Be,colorText:Pe,footerBg:fe,headerHeight:et,headerPadding:we,headerColor:Ot,footerPadding:ut,fontSize:Ge,bodyBg:Ze,headerBg:je}=Ee;return{[Be]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ze,"&, *":{boxSizing:"border-box"},[`&${Be}-has-sider`]:{flexDirection:"row",[`> ${Be}, > ${Be}-content`]:{width:0}},[`${Be}-header, &${Be}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Be}-header`]:{height:et,padding:we,color:Ot,lineHeight:(0,z.unit)(et),background:je,[`${De}-menu`]:{lineHeight:"inherit"}},[`${Be}-footer`]:{padding:ut,color:Pe,fontSize:Ge,background:fe},[`${Be}-content`]:{flex:"auto",color:Pe,minHeight:0}}},Qe=Ee=>{const{colorBgLayout:De,controlHeight:Be,controlHeightLG:Pe,colorText:fe,controlHeightSM:et,marginXXS:we,colorTextLightSolid:Ot,colorBgContainer:ut}=Ee,Ge=Pe*1.25;return{colorBgHeader:"#001529",colorBgBody:De,colorBgTrigger:"#002140",bodyBg:De,headerBg:"#001529",headerHeight:Be*2,headerPadding:`0 ${Ge}px`,headerColor:fe,footerPadding:`${et}px ${Ge}px`,footerBg:De,siderBg:"#001529",triggerHeight:Pe+we*2,triggerBg:"#002140",triggerColor:Ot,zeroTriggerWidth:Pe,zeroTriggerHeight:Pe,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:fe}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Zt.ZP=(0,lt.I$)("Layout",Ee=>[ge(Ee)],Qe,{deprecatedTokens:xe})},78857:function(ln,Zt,ie){"use strict";ie.d(Zt,{J:function(){return Ee}});var z=ie(59301),lt=ie(8654),ge=ie(62487),Qe=function(De,Be){var Pe={};for(var fe in De)Object.prototype.hasOwnProperty.call(De,fe)&&Be.indexOf(fe)<0&&(Pe[fe]=De[fe]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,fe=Object.getOwnPropertySymbols(De);et{const{children:Pe}=De,fe=Qe(De,["children"]),et=z.useContext(xe),we=z.useMemo(()=>Object.assign(Object.assign({},et),fe),[et,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),Ot=(0,lt.t4)(Pe),ut=(0,lt.x1)(Be,Ot?(0,lt.C4)(Pe):null);return z.createElement(xe.Provider,{value:we},z.createElement(ge.Z,{space:!0},Ot?z.cloneElement(Pe,{ref:ut}):Pe))});Zt.Z=xe},93041:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return se}});var z=ie(59301),lt=ie(28321),ge=ie(24303),Qe=ie(18785),xe=ie(92310),Ee=ie.n(xe),De=ie(6089),Be=ie(2738),Pe=ie(86641),fe=ie(22703),et=ie(48755),we=ie(83397),ut=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ge=function(ne,he){var be={};for(var ht in ne)Object.prototype.hasOwnProperty.call(ne,ht)&&he.indexOf(ht)<0&&(be[ht]=ne[ht]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ht=Object.getOwnPropertySymbols(ne);Oe{const{prefixCls:he,className:be,dashed:ht}=ne,Oe=Ge(ne,["prefixCls","className","dashed"]),{getPrefixCls:We}=z.useContext(et.E_),ft=We("menu",he),It=Ee()({[`${ft}-item-divider-dashed`]:!!ht},be);return z.createElement(lt.iz,Object.assign({className:It},Oe))},St=ie(11592),kt=ie(25399),Et=ne=>{var he;const{className:be,children:ht,icon:Oe,title:We,danger:ft,extra:It}=ne,{prefixCls:bt,firstLevel:Ut,direction:Kt,disableMenuItemTitleTooltip:jt,inlineCollapsed:cn}=z.useContext(ut),en=at=>{const Mt=ht==null?void 0:ht[0],zt=z.createElement("span",{className:Ee()(`${bt}-title-content`,{[`${bt}-title-content-with-extra`]:!!It||It===0})},ht);return(!Oe||z.isValidElement(ht)&&ht.type==="span")&&ht&&at&&Ut&&typeof Mt=="string"?z.createElement("div",{className:`${bt}-inline-collapsed-noicon`},Mt.charAt(0)):zt},{siderCollapsed:sn}=z.useContext(ge.D);let Ct=We;typeof We=="undefined"?Ct=Ut?ht:"":We===!1&&(Ct="");const _t={title:Ct};!sn&&!cn&&(_t.title=null,_t.open=!1);const Ht=(0,St.Z)(ht).length;let ke=z.createElement(lt.ck,Object.assign({},(0,Be.Z)(ne,["title","icon","danger"]),{className:Ee()({[`${bt}-item-danger`]:ft,[`${bt}-item-only-child`]:(Oe?Ht+1:Ht)===1},be),title:typeof We=="string"?We:void 0}),(0,fe.Tm)(Oe,{className:Ee()(z.isValidElement(Oe)?(he=Oe.props)===null||he===void 0?void 0:he.className:"",`${bt}-item-icon`)}),en(cn));return jt||(ke=z.createElement(kt.Z,Object.assign({},_t,{placement:Kt==="rtl"?"left":"right",classNames:{root:`${bt}-inline-collapsed-tooltip`}}),ke)),ke},vt=ie(78857),yt=ie(36237),Ye=ie(17835),Bt=ie(63356),gt=ie(34961),tt=ie(46e3),xt=ie(34925),Te=ie(16931),_e=ie(51636),pe=ne=>{const{componentCls:he,motionDurationSlow:be,horizontalLineHeight:ht,colorSplit:Oe,lineWidth:We,lineType:ft,itemPaddingInline:It}=ne;return{[`${he}-horizontal`]:{lineHeight:ht,border:0,borderBottom:`${(0,yt.unit)(We)} ${ft} ${Oe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:It},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Le=ne=>{let{componentCls:he,menuArrowOffset:be,calc:ht}=ne;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical, ${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,yt.unit)(ht(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,yt.unit)(be)})`}}}}};const Ae=ne=>Object.assign({},(0,Bt.oN)(ne));var ve=(ne,he)=>{const{componentCls:be,itemColor:ht,itemSelectedColor:Oe,subMenuItemSelectedColor:We,groupTitleColor:ft,itemBg:It,subMenuItemBg:bt,itemSelectedBg:Ut,activeBarHeight:Kt,activeBarWidth:jt,activeBarBorderWidth:cn,motionDurationSlow:en,motionEaseInOut:sn,motionEaseOut:Ct,itemPaddingInline:_t,motionDurationMid:Ht,itemHoverColor:ke,lineType:at,colorSplit:Mt,itemDisabledColor:zt,dangerItemColor:Ie,dangerItemHoverColor:Xe,dangerItemSelectedColor:pt,dangerItemActiveBg:Dt,dangerItemSelectedBg:Gt,popupBg:un,itemHoverBg:Sn,itemActiveBg:Cn,menuSubMenuBg:on,horizontalItemSelectedColor:yn,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:$n,horizontalItemHoverBg:bn}=ne;return{[`${be}-${he}, ${be}-${he} > ${be}`]:{color:ht,background:It,[`&${be}-root:focus-visible`]:Object.assign({},Ae(ne)),[`${be}-item`]:{"&-group-title, &-extra":{color:ft}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:We},[`${be}-item, ${be}-submenu-title`]:{color:ht,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},Ae(ne))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${zt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:ke}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Cn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:Sn},"&:active":{backgroundColor:Cn}}},[`${be}-item-danger`]:{color:Ie,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:Xe}},[`&${be}-item:active`]:{background:Dt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Oe,[`&${be}-item-danger`]:{color:pt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Ut,[`&${be}-item-danger`]:{backgroundColor:Gt}},[`&${be}-submenu > ${be}`]:{backgroundColor:on},[`&${be}-popup > ${be}`]:{backgroundColor:un},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:un},[`&${be}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:cn,marginTop:ne.calc(cn).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:_t,bottom:0,borderBottom:`${(0,yt.unit)(Kt)} solid transparent`,transition:`border-color ${en} ${sn}`,content:'""'},"&:hover, &-active, &-open":{background:bn,"&::after":{borderBottomWidth:Kt,borderBottomColor:yn}},"&-selected":{color:yn,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Kt,borderBottomColor:yn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,yt.unit)(cn)} ${at} ${Mt}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:bt},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,yt.unit)(jt)} solid ${Oe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${Ct}`,`opacity ${Ht} ${Ct}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:pt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${sn}`,`opacity ${Ht} ${sn}`].join(",")}}}}}};const ce=ne=>{const{componentCls:he,itemHeight:be,itemMarginInline:ht,padding:Oe,menuArrowSize:We,marginXS:ft,itemMarginBlock:It,itemWidth:bt,itemPaddingInline:Ut}=ne,Kt=ne.calc(We).add(Oe).add(ft).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:be,lineHeight:(0,yt.unit)(be),paddingInline:Ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:ht,marginBlock:It,width:bt},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:be,lineHeight:(0,yt.unit)(be)},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Kt}}};var $t=ne=>{const{componentCls:he,iconCls:be,itemHeight:ht,colorTextLightSolid:Oe,dropdownWidth:We,controlHeightLG:ft,motionEaseOut:It,paddingXL:bt,itemMarginInline:Ut,fontSizeLG:Kt,motionDurationFast:jt,motionDurationSlow:cn,paddingXS:en,boxShadowSecondary:sn,collapsedWidth:Ct,collapsedIconSize:_t}=ne,Ht={height:ht,lineHeight:(0,yt.unit)(ht),listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},ce(ne))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},ce(ne)),{boxShadow:sn})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:We,maxHeight:`calc(100vh - ${(0,yt.unit)(ne.calc(ft).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${cn}`,`background ${cn}`,`padding ${jt} ${It}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:Ht,[`& ${he}-item-group-title`]:{paddingInlineStart:bt}},[`${he}-item`]:Ht}},{[`${he}-inline-collapsed`]:{width:Ct,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Kt,textAlign:"center"}}},[`> ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-item, > ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title, > ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,yt.unit)(ne.calc(_t).div(2).equal())} - ${(0,yt.unit)(Ut)})`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${be}`]:{margin:0,fontSize:_t,lineHeight:(0,yt.unit)(ht),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Oe}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Bt.vS),{paddingInline:en})}}]};const wt=ne=>{const{componentCls:he,motionDurationSlow:be,motionDurationMid:ht,motionEaseInOut:Oe,motionEaseOut:We,iconCls:ft,iconSize:It,iconMarginInlineEnd:bt}=ne;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Oe}`].join(","),[`${he}-item-icon, ${ft}`]:{minWidth:It,fontSize:It,transition:[`font-size ${ht} ${We}`,`margin ${be} ${Oe}`,`color ${be}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${be} ${Oe}`,`margin ${be}`,`color ${be}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Bt.Ro)()),[`&${he}-item-only-child`]:{[`> ${ft}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Me=ne=>{const{componentCls:he,motionDurationSlow:be,motionEaseInOut:ht,borderRadius:Oe,menuArrowSize:We,menuArrowOffset:ft}=ne;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:We,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${ht}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(We).mul(.6).equal(),height:ne.calc(We).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Oe,transition:[`background ${be} ${ht}`,`transform ${be} ${ht}`,`top ${be} ${ht}`,`color ${be} ${ht}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,yt.unit)(ne.calc(ft).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,yt.unit)(ft)})`}}}}},Ke=ne=>{const{antCls:he,componentCls:be,fontSize:ht,motionDurationSlow:Oe,motionDurationMid:We,motionEaseInOut:ft,paddingXS:It,padding:bt,colorSplit:Ut,lineWidth:Kt,zIndexPopup:jt,borderRadiusLG:cn,subMenuItemBorderRadius:en,menuArrowSize:sn,menuArrowOffset:Ct,lineType:_t,groupTitleLineHeight:Ht,groupTitleFontSize:ke}=ne;return[{"":{[be]:Object.assign(Object.assign({},(0,Bt.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(ne)),(0,Bt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ht,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",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,yt.unit)(It)} ${(0,yt.unit)(bt)}`,fontSize:ke,lineHeight:Ht,transition:`all ${Oe}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Oe} ${ft}`,`background ${Oe} ${ft}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Oe} ${ft}`,`background ${Oe} ${ft}`,`padding ${We} ${ft}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Oe} ${ft}`,`padding ${Oe} ${ft}`].join(",")},[`${be}-title-content`]:{transition:`color ${Oe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ut,borderStyle:_t,borderWidth:0,borderTopWidth:Kt,marginBlock:Kt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),wt(ne)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,yt.unit)(ne.calc(ht).mul(2).equal())} ${(0,yt.unit)(bt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:jt,borderRadius:cn,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:cn},wt(ne)),Me(ne)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:en},[`${be}-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 ${be}-submenu-arrow, &-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,yt.unit)(Ct)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,yt.unit)(ne.calc(Ct).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,yt.unit)(ne.calc(sn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,yt.unit)(ne.calc(Ct).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,yt.unit)(Ct)})`}}})},{[`${he}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},qe=ne=>{var he,be,ht;const{colorPrimary:Oe,colorError:We,colorTextDisabled:ft,colorErrorBg:It,colorText:bt,colorTextDescription:Ut,colorBgContainer:Kt,colorFillAlter:jt,colorFillContent:cn,lineWidth:en,lineWidthBold:sn,controlItemBgActive:Ct,colorBgTextHover:_t,controlHeightLG:Ht,lineHeight:ke,colorBgElevated:at,marginXXS:Mt,padding:zt,fontSize:Ie,controlHeightSM:Xe,fontSizeLG:pt,colorTextLightSolid:Dt,colorErrorHover:Gt}=ne,un=(he=ne.activeBarWidth)!==null&&he!==void 0?he:0,Sn=(be=ne.activeBarBorderWidth)!==null&&be!==void 0?be:en,Cn=(ht=ne.itemMarginInline)!==null&&ht!==void 0?ht:ne.marginXXS,on=new Ye.FastColor(Dt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:Oe,horizontalItemHoverColor:Oe,colorGroupTitle:Ut,groupTitleColor:Ut,colorItemTextSelected:Oe,itemSelectedColor:Oe,subMenuItemSelectedColor:Oe,colorItemTextSelectedHorizontal:Oe,horizontalItemSelectedColor:Oe,colorItemBg:Kt,itemBg:Kt,colorItemBgHover:_t,itemHoverBg:_t,colorItemBgActive:cn,itemActiveBg:Ct,colorSubItemBg:jt,subMenuItemBg:jt,colorItemBgSelected:Ct,itemSelectedBg:Ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:un,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:en,activeBarBorderWidth:Sn,colorItemTextDisabled:ft,itemDisabledColor:ft,colorDangerItemText:We,dangerItemColor:We,colorDangerItemTextHover:We,dangerItemHoverColor:We,colorDangerItemTextSelected:We,dangerItemSelectedColor:We,colorDangerItemBgActive:It,dangerItemActiveBg:It,colorDangerItemBgSelected:It,dangerItemSelectedBg:It,itemMarginInline:Cn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ht,groupTitleLineHeight:ke,collapsedWidth:Ht*2,popupBg:at,itemMarginBlock:Mt,itemPaddingInline:zt,horizontalLineHeight:`${Ht*1.15}px`,iconSize:Ie,iconMarginInlineEnd:Xe-Ie,collapsedIconSize:pt,groupTitleFontSize:Ie,darkItemDisabledColor:new Ye.FastColor(Dt).setA(.25).toRgbString(),darkItemColor:on,darkDangerItemColor:We,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Dt,darkItemSelectedBg:Oe,darkDangerItemSelectedBg:We,darkItemHoverBg:"transparent",darkGroupTitleColor:on,darkItemHoverColor:Dt,darkDangerItemHoverColor:Gt,darkDangerItemSelectedColor:Dt,darkDangerItemActiveBg:We,itemWidth:un?`calc(100% + ${Sn}px)`:`calc(100% - ${Cn*2}px)`}};var Jt=function(ne){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Te.I$)("Menu",Oe=>{const{colorBgElevated:We,controlHeightLG:ft,fontSize:It,darkItemColor:bt,darkDangerItemColor:Ut,darkItemBg:Kt,darkSubMenuItemBg:jt,darkItemSelectedColor:cn,darkItemSelectedBg:en,darkDangerItemSelectedBg:sn,darkItemHoverBg:Ct,darkGroupTitleColor:_t,darkItemHoverColor:Ht,darkItemDisabledColor:ke,darkDangerItemHoverColor:at,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:zt,popupBg:Ie,darkPopupBg:Xe}=Oe,pt=Oe.calc(It).div(7).mul(5).equal(),Dt=(0,_e.mergeToken)(Oe,{menuArrowSize:pt,menuHorizontalHeight:Oe.calc(ft).mul(1.15).equal(),menuArrowOffset:Oe.calc(pt).mul(.25).equal(),menuSubMenuBg:We,calc:Oe.calc,popupBg:Ie}),Gt=(0,_e.mergeToken)(Dt,{itemColor:bt,itemHoverColor:Ht,groupTitleColor:_t,itemSelectedColor:cn,subMenuItemSelectedColor:cn,itemBg:Kt,popupBg:Xe,subMenuItemBg:jt,itemActiveBg:"transparent",itemSelectedBg:en,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ct,itemDisabledColor:ke,dangerItemColor:Ut,dangerItemHoverColor:at,dangerItemSelectedColor:Mt,dangerItemActiveBg:zt,dangerItemSelectedBg:sn,menuSubMenuBg:jt,horizontalItemSelectedColor:cn,horizontalItemSelectedBg:en});return[Ke(Dt),pe(Dt),$t(Dt),ve(Dt,"light"),ve(Gt,"dark"),Le(Dt),(0,gt.Z)(Dt),(0,tt.oN)(Dt,"slide-up"),(0,tt.oN)(Dt,"slide-down"),(0,xt._y)(Dt,"zoom-big")]},qe,{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:be,unitless:{groupTitleLineHeight:!0}})(ne,he)},Rt=ie(75030),ze=ne=>{var he;const{popupClassName:be,icon:ht,title:Oe,theme:We}=ne,ft=z.useContext(ut),{prefixCls:It,inlineCollapsed:bt,theme:Ut}=ft,Kt=(0,lt.Xl)();let jt;if(!ht)jt=bt&&!Kt.length&&Oe&&typeof Oe=="string"?z.createElement("div",{className:`${It}-inline-collapsed-noicon`},Oe.charAt(0)):z.createElement("span",{className:`${It}-title-content`},Oe);else{const sn=z.isValidElement(Oe)&&Oe.type==="span";jt=z.createElement(z.Fragment,null,(0,fe.Tm)(ht,{className:Ee()(z.isValidElement(ht)?(he=ht.props)===null||he===void 0?void 0:he.className:"",`${It}-item-icon`)}),sn?Oe:z.createElement("span",{className:`${It}-title-content`},Oe))}const cn=z.useMemo(()=>Object.assign(Object.assign({},ft),{firstLevel:!1}),[ft]),[en]=(0,Rt.Cn)("Menu");return z.createElement(ut.Provider,{value:cn},z.createElement(lt.Wd,Object.assign({},(0,Be.Z)(ne,["icon"]),{title:jt,popupClassName:Ee()(It,be,`${It}-${We||Ut}`),popupStyle:Object.assign({zIndex:en},ne.popupStyle)})))},Wt=function(ne,he){var be={};for(var ht in ne)Object.prototype.hasOwnProperty.call(ne,ht)&&he.indexOf(ht)<0&&(be[ht]=ne[ht]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ht=Object.getOwnPropertySymbols(ne);Oe{var be;const ht=z.useContext(vt.Z),Oe=ht||{},{getPrefixCls:We,getPopupContainer:ft,direction:It,menu:bt}=z.useContext(et.E_),Ut=We(),{prefixCls:Kt,className:jt,style:cn,theme:en="light",expandIcon:sn,_internalDisableMenuItemTitleTooltip:Ct,inlineCollapsed:_t,siderCollapsed:Ht,rootClassName:ke,mode:at,selectable:Mt,onClick:zt,overflowedIndicatorPopupClassName:Ie}=ne,Xe=Wt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),pt=(0,Be.Z)(Xe,["collapsedWidth"]);(be=Oe.validator)===null||be===void 0||be.call(Oe,{mode:at});const Dt=(0,De.Z)(function(){var mn;zt==null||zt.apply(void 0,arguments),(mn=Oe.onClick)===null||mn===void 0||mn.call(Oe)}),Gt=Oe.mode||at,un=Mt!=null?Mt:Oe.selectable,Sn=_t!=null?_t:Ht,Cn={horizontal:{motionName:`${Ut}-slide-up`},inline:(0,Pe.Z)(Ut),other:{motionName:`${Ut}-zoom-big`}},on=We("menu",Kt||Oe.prefixCls),yn=(0,we.Z)(on),[gn,$n,bn]=Jt(on,yn,!ht),vn=Ee()(`${on}-${en}`,bt==null?void 0:bt.className,jt),Yt=z.useMemo(()=>{var mn,kn;if(typeof sn=="function"||dt(sn))return sn||null;if(typeof Oe.expandIcon=="function"||dt(Oe.expandIcon))return Oe.expandIcon||null;if(typeof(bt==null?void 0:bt.expandIcon)=="function"||dt(bt==null?void 0:bt.expandIcon))return(bt==null?void 0:bt.expandIcon)||null;const jn=(mn=sn!=null?sn:Oe==null?void 0:Oe.expandIcon)!==null&&mn!==void 0?mn:bt==null?void 0:bt.expandIcon;return(0,fe.Tm)(jn,{className:Ee()(`${on}-submenu-expand-icon`,z.isValidElement(jn)?(kn=jn.props)===null||kn===void 0?void 0:kn.className:void 0)})},[sn,Oe==null?void 0:Oe.expandIcon,bt==null?void 0:bt.expandIcon,on]),Pn=z.useMemo(()=>({prefixCls:on,inlineCollapsed:Sn||!1,direction:It,firstLevel:!0,theme:en,mode:Gt,disableMenuItemTitleTooltip:Ct}),[on,Sn,It,Ct,en]);return gn(z.createElement(vt.Z.Provider,{value:null},z.createElement(ut.Provider,{value:Pn},z.createElement(lt.ZP,Object.assign({getPopupContainer:ft,overflowedIndicator:z.createElement(Qe.Z,null),overflowedIndicatorPopupClassName:Ee()(on,`${on}-${en}`,Ie),mode:Gt,selectable:un,onClick:Dt},pt,{inlineCollapsed:Sn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),cn),className:vn,prefixCls:on,direction:It,defaultMotions:Cn,expandIcon:Yt,ref:he,rootClassName:Ee()(ke,$n,Oe.rootClassName,bn,yn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,he)=>{const be=(0,z.useRef)(null),ht=z.useContext(ge.D);return(0,z.useImperativeHandle)(he,()=>({menu:be.current,focus:Oe=>{var We;(We=be.current)===null||We===void 0||We.focus(Oe)}})),z.createElement(ee,Object.assign({ref:be},ne,ht))});oe.Item=Et,oe.SubMenu=ze,oe.Divider=je,oe.ItemGroup=lt.BW;var se=oe},89787:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Ht}});var z=ie(59301),lt=ie(17835),ge=ie(29679),Qe=ie(40001),xe=ie(19248),Ee=ie(99267),De=ie(92310),Be=ie.n(De),Pe=ie(2738),fe=ie(48755),et=ie(60499),we=ie(85899),Ot=ie(42244),ut={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ge=function(){var at=(0,z.useRef)([]),Mt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var zt=Date.now(),Ie=!1;at.current.forEach(function(Xe){if(Xe){Ie=!0;var pt=Xe.style;pt.transitionDuration=".3s, .3s, .3s, .06s",Mt.current&&zt-Mt.current<100&&(pt.transitionDuration="0s, 0s")}}),Ie&&(Mt.current=Date.now())}),at.current},Ze=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],je=function(at){var Mt=(0,we.Z)((0,we.Z)({},ut),at),zt=Mt.className,Ie=Mt.percent,Xe=Mt.prefixCls,pt=Mt.strokeColor,Dt=Mt.strokeLinecap,Gt=Mt.strokeWidth,un=Mt.style,Sn=Mt.trailColor,Cn=Mt.trailWidth,on=Mt.transition,yn=(0,Ot.Z)(Mt,Ze);delete yn.gapPosition;var gn=Array.isArray(Ie)?Ie:[Ie],$n=Array.isArray(pt)?pt:[pt],bn=Ge(),vn=Gt/2,Yt=100-Gt/2,Pn="M ".concat(Dt==="round"?vn:0,",").concat(vn,` L `).concat(Dt==="round"?Yt:100,",").concat(vn),mn="0 0 100 ".concat(Gt),kn=0;return z.createElement("svg",(0,et.Z)({className:Be()("".concat(Xe,"-line"),zt),viewBox:mn,preserveAspectRatio:"none",style:un},yn),z.createElement("path",{className:"".concat(Xe,"-line-trail"),d:Pn,strokeLinecap:Dt,stroke:Sn,strokeWidth:Cn||Gt,fillOpacity:"0"}),gn.map(function(jn,Zn){var An=1;switch(Dt){case"round":An=1-Gt/100;break;case"square":An=1-Gt/2/100;break;default:An=1;break}var Yn={strokeDasharray:"".concat(jn*An,"px, 100px"),strokeDashoffset:"-".concat(kn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Nn=$n[Zn]||$n[$n.length-1];return kn+=jn,z.createElement("path",{key:Zn,className:"".concat(Xe,"-line-path"),d:Pn,strokeLinecap:Dt,stroke:Nn,strokeWidth:Gt,fillOpacity:"0",ref:function(qn){bn[Zn]=qn},style:Yn})}))},St=je,kt=ie(43749),Nt=ie(72190),Et=ie(47273),vt=0,yt=(0,Et.Z)();function Ye(){var ke;return yt?(ke=vt,vt+=1):ke="TEST_OR_SSR",ke}var Bt=function(ke){var at=z.useState(),Mt=(0,Nt.Z)(at,2),zt=Mt[0],Ie=Mt[1];return z.useEffect(function(){Ie("rc_progress_".concat(Ye()))},[]),ke||zt},gt=function(at){var Mt=at.bg,zt=at.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Mt}},zt)};function tt(ke,at){return Object.keys(ke).map(function(Mt){var zt=parseFloat(Mt),Ie="".concat(Math.floor(zt*at),"%");return"".concat(ke[Mt]," ").concat(Ie)})}var xt=z.forwardRef(function(ke,at){var Mt=ke.prefixCls,zt=ke.color,Ie=ke.gradientId,Xe=ke.radius,pt=ke.style,Dt=ke.ptg,Gt=ke.strokeLinecap,un=ke.strokeWidth,Sn=ke.size,Cn=ke.gapDegree,on=zt&&(0,kt.Z)(zt)==="object",yn=on?"#FFF":void 0,gn=Sn/2,$n=z.createElement("circle",{className:"".concat(Mt,"-circle-path"),r:Xe,cx:gn,cy:gn,stroke:yn,strokeLinecap:Gt,strokeWidth:un,opacity:Dt===0?0:1,style:pt,ref:at});if(!on)return $n;var bn="".concat(Ie,"-conic"),vn=Cn?"".concat(180+Cn/2,"deg"):"0deg",Yt=tt(zt,(360-Cn)/360),Pn=tt(zt,1),mn="conic-gradient(from ".concat(vn,", ").concat(Yt.join(", "),")"),kn="linear-gradient(to ".concat(Cn?"bottom":"top",", ").concat(Pn.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:bn},$n),z.createElement("foreignObject",{x:0,y:0,width:Sn,height:Sn,mask:"url(#".concat(bn,")")},z.createElement(gt,{bg:kn},z.createElement(gt,{bg:mn}))))}),Te=xt,_e=100,Je=function(at,Mt,zt,Ie,Xe,pt,Dt,Gt,un,Sn){var Cn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=zt/100*360*((360-pt)/360),yn=pt===0?0:{bottom:0,top:180,left:90,right:-90}[Dt],gn=(100-Ie)/100*Mt;un==="round"&&Ie!==100&&(gn+=Sn/2,gn>=Mt&&(gn=Mt-.01));var $n=_e/2;return{stroke:typeof Gt=="string"?Gt:void 0,strokeDasharray:"".concat(Mt,"px ").concat(at),strokeDashoffset:gn+Cn,transform:"rotate(".concat(Xe+on+yn,"deg)"),transformOrigin:"".concat($n,"px ").concat($n,"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}},pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Lt(ke){var at=ke!=null?ke:[];return Array.isArray(at)?at:[at]}var Le=function(at){var Mt=(0,we.Z)((0,we.Z)({},ut),at),zt=Mt.id,Ie=Mt.prefixCls,Xe=Mt.steps,pt=Mt.strokeWidth,Dt=Mt.trailWidth,Gt=Mt.gapDegree,un=Gt===void 0?0:Gt,Sn=Mt.gapPosition,Cn=Mt.trailColor,on=Mt.strokeLinecap,yn=Mt.style,gn=Mt.className,$n=Mt.strokeColor,bn=Mt.percent,vn=(0,Ot.Z)(Mt,pe),Yt=_e/2,Pn=Bt(zt),mn="".concat(Pn,"-gradient"),kn=Yt-pt/2,jn=Math.PI*2*kn,Zn=un>0?90+un/2:-90,An=jn*((360-un)/360),Yn=(0,kt.Z)(Xe)==="object"?Xe:{count:Xe,gap:2},Nn=Yn.count,ar=Yn.gap,qn=Lt(bn),At=Lt($n),rn=At.find(function(Se){return Se&&(0,kt.Z)(Se)==="object"}),zn=rn&&(0,kt.Z)(rn)==="object",nr=zn?"butt":on,Re=Je(jn,An,0,100,Zn,un,Sn,Cn,nr,pt),st=Ge(),Ce=function(){var Fe=0;return qn.map(function(ye,Ue){var nt=At[Ue]||At[At.length-1],mt=Je(jn,An,Fe,ye,Zn,un,Sn,nt,nr,pt);return Fe+=ye,z.createElement(Te,{key:Ue,color:nt,ptg:ye,radius:kn,prefixCls:Ie,gradientId:mn,style:mt,strokeLinecap:nr,strokeWidth:pt,gapDegree:un,ref:function($e){st[Ue]=$e},size:_e})}).reverse()},Ne=function(){var Fe=Math.round(Nn*(qn[0]/100)),ye=100/Nn,Ue=0;return new Array(Nn).fill(null).map(function(nt,mt){var rt=mt<=Fe-1?At[0]:Cn,$e=rt&&(0,kt.Z)(rt)==="object"?"url(#".concat(mn,")"):void 0,He=Je(jn,An,Ue,ye,Zn,un,Sn,rt,"butt",pt,ar);return Ue+=(An-He.strokeDashoffset+ar)*100/An,z.createElement("circle",{key:mt,className:"".concat(Ie,"-circle-path"),r:kn,cx:Yt,cy:Yt,stroke:$e,strokeWidth:pt,opacity:1,style:He,ref:function(qt){st[mt]=qt}})})};return z.createElement("svg",(0,et.Z)({className:Be()("".concat(Ie,"-circle"),gn),viewBox:"0 0 ".concat(_e," ").concat(_e),style:yn,id:zt,role:"presentation"},vn),!Nn&&z.createElement("circle",{className:"".concat(Ie,"-circle-trail"),r:kn,cx:Yt,cy:Yt,stroke:Cn,strokeLinecap:nr,strokeWidth:Dt||pt,style:Re}),Nn?Ne():Ce())},Ae=Le,Pt={Line:St,Circle:Ae},ve=ie(25399),ce=ie(68361);function it(ke){return!ke||ke<0?0:ke>100?100:ke}function $t(ke){let{success:at,successPercent:Mt}=ke,zt=Mt;return at&&"progress"in at&&(zt=at.progress),at&&"percent"in at&&(zt=at.percent),zt}const wt=ke=>{let{percent:at,success:Mt,successPercent:zt}=ke;const Ie=it($t({success:Mt,successPercent:zt}));return[Ie,it(it(at)-Ie)]},Me=ke=>{let{success:at={},strokeColor:Mt}=ke;const{strokeColor:zt}=at;return[zt||ce.presetPrimaryColors.green,Mt||null]},Ke=(ke,at,Mt)=>{var zt,Ie,Xe,pt;let Dt=-1,Gt=-1;if(at==="step"){const un=Mt.steps,Sn=Mt.strokeWidth;typeof ke=="string"||typeof ke=="undefined"?(Dt=ke==="small"?2:14,Gt=Sn!=null?Sn:8):typeof ke=="number"?[Dt,Gt]=[ke,ke]:[Dt=14,Gt=8]=Array.isArray(ke)?ke:[ke.width,ke.height],Dt*=un}else if(at==="line"){const un=Mt==null?void 0:Mt.strokeWidth;typeof ke=="string"||typeof ke=="undefined"?Gt=un||(ke==="small"?6:8):typeof ke=="number"?[Dt,Gt]=[ke,ke]:[Dt=-1,Gt=8]=Array.isArray(ke)?ke:[ke.width,ke.height]}else(at==="circle"||at==="dashboard")&&(typeof ke=="string"||typeof ke=="undefined"?[Dt,Gt]=ke==="small"?[60,60]:[120,120]:typeof ke=="number"?[Dt,Gt]=[ke,ke]:Array.isArray(ke)&&(Dt=(Ie=(zt=ke[0])!==null&&zt!==void 0?zt:ke[1])!==null&&Ie!==void 0?Ie:120,Gt=(pt=(Xe=ke[0])!==null&&Xe!==void 0?Xe:ke[1])!==null&&pt!==void 0?pt:120));return[Dt,Gt]},qe=3,Jt=ke=>qe/ke*100;var Vt=ke=>{const{prefixCls:at,trailColor:Mt=null,strokeLinecap:zt="round",gapPosition:Ie,gapDegree:Xe,width:pt=120,type:Dt,children:Gt,success:un,size:Sn=pt,steps:Cn}=ke,[on,yn]=Ke(Sn,"circle");let{strokeWidth:gn}=ke;gn===void 0&&(gn=Math.max(Jt(on),6));const $n={width:on,height:yn,fontSize:on*.15+6},bn=z.useMemo(()=>{if(Xe||Xe===0)return Xe;if(Dt==="dashboard")return 75},[Xe,Dt]),vn=wt(ke),Yt=Ie||Dt==="dashboard"&&"bottom"||void 0,Pn=Object.prototype.toString.call(ke.strokeColor)==="[object Object]",mn=Me({success:un,strokeColor:ke.strokeColor}),kn=Be()(`${at}-inner`,{[`${at}-circle-gradient`]:Pn}),jn=z.createElement(Ae,{steps:Cn,percent:Cn?vn[1]:vn,strokeWidth:gn,trailWidth:gn,strokeColor:Cn?mn[1]:mn,strokeLinecap:zt,trailColor:Mt,prefixCls:at,gapDegree:bn,gapPosition:Yt}),Zn=on<=20,An=z.createElement("div",{className:kn,style:$n},jn,!Zn&&Gt);return Zn?z.createElement(ve.Z,{title:Gt},An):An},ze=ie(36237),Wt=ie(63356),dt=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=ke=>{const at=ke?"100%":"-100%";return new ze.Keyframes(`antProgress${ke?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${at}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${at}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=ke=>{const{componentCls:at,iconCls:Mt}=ke;return{[at]:Object.assign(Object.assign({},(0,Wt.Wf)(ke)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ke.fontSize},[`${at}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${at}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:ke.remainingColor,borderRadius:ke.lineBorderRadius},[`${at}-inner:not(${at}-circle-gradient)`]:{[`${at}-circle-path`]:{stroke:ke.defaultColor}},[`${at}-success-bg, ${at}-bg`]:{position:"relative",background:ke.defaultColor,borderRadius:ke.lineBorderRadius,transition:`all ${ke.motionDurationSlow} ${ke.motionEaseInOutCirc}`},[`${at}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${at}-text`]:{width:"max-content",marginInlineStart:0,marginTop:ke.marginXXS}},[`${at}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${at}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${at}-text-inner`]:{color:ke.colorWhite,[`&${at}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${at}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ke.colorSuccess},[`${at}-text`]:{display:"inline-block",marginInlineStart:ke.marginXS,color:ke.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Mt]:{fontSize:ke.fontSize},[`&${at}-text-outer`]:{width:"max-content"},[`&${at}-text-outer${at}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:ke.marginXS}},[`${at}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ze.unit)(ke.paddingXXS)}`,[`&${at}-text-start`]:{justifyContent:"start"},[`&${at}-text-end`]:{justifyContent:"end"}},[`&${at}-status-active`]:{[`${at}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ke.colorBgContainer,borderRadius:ke.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:ke.progressActiveMotionDuration,animationTimingFunction:ke.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${at}-rtl${at}-status-active`]:{[`${at}-bg::before`]:{animationName:oe(!0)}},[`&${at}-status-exception`]:{[`${at}-bg`]:{backgroundColor:ke.colorError},[`${at}-text`]:{color:ke.colorError}},[`&${at}-status-exception ${at}-inner:not(${at}-circle-gradient)`]:{[`${at}-circle-path`]:{stroke:ke.colorError}},[`&${at}-status-success`]:{[`${at}-bg`]:{backgroundColor:ke.colorSuccess},[`${at}-text`]:{color:ke.colorSuccess}},[`&${at}-status-success ${at}-inner:not(${at}-circle-gradient)`]:{[`${at}-circle-path`]:{stroke:ke.colorSuccess}}})}},ne=ke=>{const{componentCls:at,iconCls:Mt}=ke;return{[at]:{[`${at}-circle-trail`]:{stroke:ke.remainingColor},[`&${at}-circle ${at}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${at}-circle ${at}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ke.circleTextColor,fontSize:ke.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Mt]:{fontSize:ke.circleIconFontSize}},[`${at}-circle&-status-exception`]:{[`${at}-text`]:{color:ke.colorError}},[`${at}-circle&-status-success`]:{[`${at}-text`]:{color:ke.colorSuccess}}},[`${at}-inline-circle`]:{lineHeight:1,[`${at}-inner`]:{verticalAlign:"bottom"}}}},he=ke=>{const{componentCls:at}=ke;return{[at]:{[`${at}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ke.progressStepMinWidth,marginInlineEnd:ke.progressStepMarginInlineEnd,backgroundColor:ke.remainingColor,transition:`all ${ke.motionDurationSlow}`,"&-active":{backgroundColor:ke.defaultColor}}}}}},be=ke=>{const{componentCls:at,iconCls:Mt}=ke;return{[at]:{[`${at}-small&-line, ${at}-small&-line ${at}-text ${Mt}`]:{fontSize:ke.fontSizeSM}}}},ht=ke=>({circleTextColor:ke.colorText,defaultColor:ke.colorInfo,remainingColor:ke.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${ke.fontSize/ke.fontSizeSM}em`});var Oe=(0,dt.I$)("Progress",ke=>{const at=ke.calc(ke.marginXXS).div(2).equal(),Mt=(0,ae.mergeToken)(ke,{progressStepMarginInlineEnd:at,progressStepMinWidth:at,progressActiveMotionDuration:"2.4s"});return[se(Mt),ne(Mt),he(Mt),be(Mt)]},ht),We=function(ke,at){var Mt={};for(var zt in ke)Object.prototype.hasOwnProperty.call(ke,zt)&&at.indexOf(zt)<0&&(Mt[zt]=ke[zt]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,zt=Object.getOwnPropertySymbols(ke);Ie{let at=[];return Object.keys(ke).forEach(Mt=>{const zt=parseFloat(Mt.replace(/%/g,""));Number.isNaN(zt)||at.push({key:zt,value:ke[Mt]})}),at=at.sort((Mt,zt)=>Mt.key-zt.key),at.map(Mt=>{let{key:zt,value:Ie}=Mt;return`${Ie} ${zt}%`}).join(", ")},It=(ke,at)=>{const{from:Mt=ce.presetPrimaryColors.blue,to:zt=ce.presetPrimaryColors.blue,direction:Ie=at==="rtl"?"to left":"to right"}=ke,Xe=We(ke,["from","to","direction"]);if(Object.keys(Xe).length!==0){const Dt=ft(Xe),Gt=`linear-gradient(${Ie}, ${Dt})`;return{background:Gt,[te]:Gt}}const pt=`linear-gradient(${Ie}, ${Mt}, ${zt})`;return{background:pt,[te]:pt}};var Ut=ke=>{const{prefixCls:at,direction:Mt,percent:zt,size:Ie,strokeWidth:Xe,strokeColor:pt,strokeLinecap:Dt="round",children:Gt,trailColor:un=null,percentPosition:Sn,success:Cn}=ke,{align:on,type:yn}=Sn,gn=pt&&typeof pt!="string"?It(pt,Mt):{[te]:pt,background:pt},$n=Dt==="square"||Dt==="butt"?0:void 0,bn=Ie!=null?Ie:[-1,Xe||(Ie==="small"?6:8)],[vn,Yt]=Ke(bn,"line",{strokeWidth:Xe}),Pn={backgroundColor:un||void 0,borderRadius:$n},mn=Object.assign(Object.assign({width:`${it(zt)}%`,height:Yt,borderRadius:$n},gn),{[ee]:it(zt)/100}),kn=$t(ke),jn={width:`${it(kn)}%`,height:Yt,borderRadius:$n,backgroundColor:Cn==null?void 0:Cn.strokeColor},Zn={width:vn<0?"100%":vn},An=z.createElement("div",{className:`${at}-inner`,style:Pn},z.createElement("div",{className:Be()(`${at}-bg`,`${at}-bg-${yn}`),style:mn},yn==="inner"&&Gt),kn!==void 0&&z.createElement("div",{className:`${at}-success-bg`,style:jn})),Yn=yn==="outer"&&on==="start",Nn=yn==="outer"&&on==="end";return yn==="outer"&&on==="center"?z.createElement("div",{className:`${at}-layout-bottom`},An,Gt):z.createElement("div",{className:`${at}-outer`,style:Zn},Yn&&Gt,An,Nn&&Gt)},jt=ke=>{const{size:at,steps:Mt,rounding:zt=Math.round,percent:Ie=0,strokeWidth:Xe=8,strokeColor:pt,trailColor:Dt=null,prefixCls:Gt,children:un}=ke,Sn=zt(Mt*(Ie/100)),Cn=at==="small"?2:14,on=at!=null?at:[Cn,Xe],[yn,gn]=Ke(on,"step",{steps:Mt,strokeWidth:Xe}),$n=yn/Mt,bn=Array.from({length:Mt});for(let vn=0;vn{const{prefixCls:Mt,className:zt,rootClassName:Ie,steps:Xe,strokeColor:pt,percent:Dt=0,size:Gt="default",showInfo:un=!0,type:Sn="line",status:Cn,format:on,style:yn,percentPosition:gn={}}=ke,$n=cn(ke,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:bn="end",type:vn="outer"}=gn,Yt=Array.isArray(pt)?pt[0]:pt,Pn=typeof pt=="string"||Array.isArray(pt)?pt:void 0,mn=z.useMemo(()=>{if(Yt){const Ce=typeof Yt=="string"?Yt:Object.values(Yt)[0];return new lt.FastColor(Ce).isLight()}return!1},[pt]),kn=z.useMemo(()=>{var Ce,Ne;const Se=$t(ke);return parseInt(Se!==void 0?(Ce=Se!=null?Se:0)===null||Ce===void 0?void 0:Ce.toString():(Ne=Dt!=null?Dt:0)===null||Ne===void 0?void 0:Ne.toString(),10)},[Dt,ke.success,ke.successPercent]),jn=z.useMemo(()=>!sn.includes(Cn)&&kn>=100?"success":Cn||"normal",[Cn,kn]),{getPrefixCls:Zn,direction:An,progress:Yn}=z.useContext(fe.E_),Nn=Zn("progress",Mt),[ar,qn,At]=Oe(Nn),rn=Sn==="line",zn=rn&&!Xe,nr=z.useMemo(()=>{if(!un)return null;const Ce=$t(ke);let Ne;const Se=on||(ye=>`${ye}%`),Fe=rn&&mn&&vn==="inner";return vn==="inner"||on||jn!=="exception"&&jn!=="success"?Ne=Se(it(Dt),it(Ce)):jn==="exception"?Ne=rn?z.createElement(xe.Z,null):z.createElement(Ee.Z,null):jn==="success"&&(Ne=rn?z.createElement(ge.Z,null):z.createElement(Qe.Z,null)),z.createElement("span",{className:Be()(`${Nn}-text`,{[`${Nn}-text-bright`]:Fe,[`${Nn}-text-${bn}`]:zn,[`${Nn}-text-${vn}`]:zn}),title:typeof Ne=="string"?Ne:void 0},Ne)},[un,Dt,kn,jn,Sn,Nn,on]);let Re;Sn==="line"?Re=Xe?z.createElement(jt,Object.assign({},ke,{strokeColor:Pn,prefixCls:Nn,steps:typeof Xe=="object"?Xe.count:Xe}),nr):z.createElement(Ut,Object.assign({},ke,{strokeColor:Yt,prefixCls:Nn,direction:An,percentPosition:{align:bn,type:vn}}),nr):(Sn==="circle"||Sn==="dashboard")&&(Re=z.createElement(Vt,Object.assign({},ke,{strokeColor:Yt,prefixCls:Nn,progressStatus:jn}),nr));const st=Be()(Nn,`${Nn}-status-${jn}`,{[`${Nn}-${Sn==="dashboard"&&"circle"||Sn}`]:Sn!=="line",[`${Nn}-inline-circle`]:Sn==="circle"&&Ke(Gt,"circle")[0]<=20,[`${Nn}-line`]:zn,[`${Nn}-line-align-${bn}`]:zn,[`${Nn}-line-position-${vn}`]:zn,[`${Nn}-steps`]:Xe,[`${Nn}-show-info`]:un,[`${Nn}-${Gt}`]:typeof Gt=="string",[`${Nn}-rtl`]:An==="rtl"},Yn==null?void 0:Yn.className,zt,Ie,qn,At);return ar(z.createElement("div",Object.assign({ref:at,style:Object.assign(Object.assign({},Yn==null?void 0:Yn.style),yn),className:st,role:"progressbar","aria-valuenow":kn,"aria-valuemin":0,"aria-valuemax":100},(0,Pe.Z)($n,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Re))}),Ht=_t},82326:function(ln,Zt,ie){"use strict";var z=ie(59301),lt=ie(92310),ge=ie.n(lt),Qe=ie(37463),xe=ie(2738),Ee=ie(75030),De=ie(86641),Be=ie(45915),Pe=ie(82855),fe=ie(48755),et=ie(38406),we=ie(2171),Ot=ie(83397),ut=ie(31756),Ge=ie(56553),Ze=ie(24971),je=ie(70045),St=ie(57700),kt=ie(1722),Nt=ie(90376),Et=ie(68525),vt=ie(90005),yt=function(xt,Te){var _e={};for(var Je in xt)Object.prototype.hasOwnProperty.call(xt,Je)&&Te.indexOf(Je)<0&&(_e[Je]=xt[Je]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Je=Object.getOwnPropertySymbols(xt);pe{var _e;const{prefixCls:Je,bordered:pe,className:Lt,rootClassName:Le,getPopupContainer:Ae,popupClassName:Pt,dropdownClassName:ve,listHeight:ce=256,placement:it,listItemHeight:$t,size:wt,disabled:Me,notFoundContent:Ke,status:qe,builtinPlacements:Jt,dropdownMatchSelectWidth:Rt,popupMatchSelectWidth:Vt,direction:ze,style:Wt,allowClear:dt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=xt,he=yt(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:be,getPrefixCls:ht,renderEmpty:Oe,direction:We,virtual:ft,popupMatchSelectWidth:It,popupOverflow:bt}=z.useContext(fe.E_),Ut=(0,fe.dj)("select"),[,Kt]=(0,St.ZP)(),jt=$t!=null?$t:Kt==null?void 0:Kt.controlHeight,cn=ht("select",Je),en=ht(),sn=ze!=null?ze:We,{compactSize:Ct,compactItemClassnames:_t}=(0,je.ri)(cn,sn),[Ht,ke]=(0,Ze.Z)("select",ae,pe),at=(0,Ot.Z)(cn),[Mt,zt,Ie]=(0,Nt.Z)(cn,at),Xe=z.useMemo(()=>{const{mode:qn}=xt;if(qn!=="combobox")return qn===Ye?"combobox":qn},[xt.mode]),pt=Xe==="multiple"||Xe==="tags",Dt=(0,vt.Z)(xt.suffixIcon,xt.showArrow),Gt=(_e=Vt!=null?Vt:Rt)!==null&&_e!==void 0?_e:It,{status:un,hasFeedback:Sn,isFormItemInput:Cn,feedbackIcon:on}=z.useContext(Ge.aM),yn=(0,Pe.F)(un,qe);let gn;Ke!==void 0?gn=Ke:Xe==="combobox"?gn=null:gn=(Oe==null?void 0:Oe("Select"))||z.createElement(et.Z,{componentName:"Select"});const{suffixIcon:$n,itemIcon:bn,removeIcon:vn,clearIcon:Yt}=(0,Et.Z)(Object.assign(Object.assign({},he),{multiple:pt,hasFeedback:Sn,feedbackIcon:on,showSuffixIcon:Dt,prefixCls:cn,componentName:"Select"})),Pn=dt===!0?{clearIcon:Yt}:dt,mn=(0,xe.Z)(he,["suffixIcon","itemIcon"]),kn=ge()(Pt||ve,{[`${cn}-dropdown-${sn}`]:sn==="rtl"},Le,Ie,at,zt),jn=(0,ut.Z)(qn=>{var At;return(At=wt!=null?wt:Ct)!==null&&At!==void 0?At:qn}),Zn=z.useContext(we.Z),An=Me!=null?Me:Zn,Yn=ge()({[`${cn}-lg`]:jn==="large",[`${cn}-sm`]:jn==="small",[`${cn}-rtl`]:sn==="rtl",[`${cn}-${Ht}`]:ke,[`${cn}-in-form-item`]:Cn},(0,Pe.Z)(cn,yn,Sn),_t,Ut.className,Lt,Le,Ie,at,zt),Nn=z.useMemo(()=>it!==void 0?it:sn==="rtl"?"bottomRight":"bottomLeft",[it,sn]),[ar]=(0,Ee.Cn)("SelectLike",te==null?void 0:te.zIndex);return Mt(z.createElement(Qe.ZP,Object.assign({ref:Te,virtual:ft,showSearch:Ut.showSearch},mn,{style:Object.assign(Object.assign({},Ut.style),Wt),dropdownMatchSelectWidth:Gt,transitionName:(0,De.m)(en,"slide-up",ee),builtinPlacements:(0,kt.Z)(Jt,bt),listHeight:ce,listItemHeight:jt,mode:Xe,prefixCls:cn,placement:Nn,direction:sn,prefix:ne,suffixIcon:$n,menuItemSelectedIcon:bn,removeIcon:vn,allowClear:Pn,notFoundContent:gn,className:Yn,getPopupContainer:Ae||be,dropdownClassName:kn,disabled:An,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:ar}),maxCount:pt?se:void 0,tagRender:pt?oe:void 0})))},gt=z.forwardRef(Bt),tt=(0,Be.Z)(gt,"dropdownAlign");gt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ye,gt.Option=Qe.Wx,gt.OptGroup=Qe.Xo,gt._InternalPanelDoNotUseOrYouWillBeFired=tt,Zt.default=gt},1722:function(ln,Zt){"use strict";const ie=lt=>{const Qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:lt==="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(lt,ge){return lt||ie(ge)}Zt.Z=z},90376:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Je}});var z=ie(63356),lt=ie(56119),ge=ie(16931),Qe=ie(51636),xe=ie(46e3),Ee=ie(93873);const De=pe=>{const{optionHeight:Lt,optionFontSize:Le,optionLineHeight:Ae,optionPadding:Pt}=pe;return{position:"relative",display:"block",minHeight:Lt,padding:Pt,color:pe.colorText,fontWeight:"normal",fontSize:Le,lineHeight:Ae,boxSizing:"border-box"}};var Pe=pe=>{const{antCls:Lt,componentCls:Le}=pe,Ae=`${Le}-item`,Pt=`&${Lt}-slide-up-enter${Lt}-slide-up-enter-active`,ve=`&${Lt}-slide-up-appear${Lt}-slide-up-appear-active`,ce=`&${Lt}-slide-up-leave${Lt}-slide-up-leave-active`,it=`${Le}-dropdown-placement-`,$t=`${Ae}-option-selected`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[` ${Pt}${it}bottomLeft, ${ve}${it}bottomLeft `]:{animationName:xe.fJ},[` ${Pt}${it}topLeft, ${ve}${it}topLeft, ${Pt}${it}topRight, ${ve}${it}topRight `]:{animationName:xe.Qt},[`${ce}${it}bottomLeft`]:{animationName:xe.Uw},[` ${ce}${it}topLeft, ${ce}${it}topRight `]:{animationName:xe.ly},"&-hidden":{display:"none"},[Ae]:Object.assign(Object.assign({},De(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ae}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${Ae}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${Ae}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${Ae}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},De(pe)),{color:pe.colorTextDisabled})}),[`${$t}:has(+ ${$t})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${$t}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(pe,"slide-up"),(0,xe.oN)(pe,"slide-down"),(0,Ee.Fm)(pe,"move-up"),(0,Ee.Fm)(pe,"move-down")]},fe=ie(26743),et=ie(36237);function we(pe,Lt){const{componentCls:Le,inputPaddingHorizontalBase:Ae,borderRadius:Pt}=pe,ve=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),ce=Lt?`${Le}-${Lt}`:"";return{[`${Le}-single${ce}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${Le}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(pe,!0)),{display:"flex",borderRadius:Pt,flex:"1 1 auto",[`${Le}-selection-wrap:after`]:{lineHeight:(0,et.unit)(ve)},[`${Le}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Le}-selection-item, ${Le}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,et.unit)(ve),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:empty:after`,`${Le}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Le}-show-arrow ${Le}-selection-item, &${Le}-show-arrow ${Le}-selection-search, &${Le}-show-arrow ${Le}-selection-placeholder `]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${Le}-open ${Le}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,et.unit)(Ae)}`,[`${Le}-selection-search-input`]:{height:ve,fontSize:pe.fontSize},"&:after":{lineHeight:(0,et.unit)(ve)}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,et.unit)(Ae)}`,"&:after":{display:"none"}}}}}}}function Ot(pe){const{componentCls:Lt}=pe,Le=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[we(pe),we((0,Qe.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${Lt}-single${Lt}-sm`]:{[`&:not(${Lt}-customize-input)`]:{[`${Lt}-selector`]:{padding:`0 ${(0,et.unit)(Le)}`},[`&${Lt}-show-arrow ${Lt}-selection-search`]:{insetInlineEnd:pe.calc(Le).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[` &${Lt}-show-arrow ${Lt}-selection-item, &${Lt}-show-arrow ${Lt}-selection-placeholder `]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},we((0,Qe.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const ut=pe=>{const{fontSize:Lt,lineHeight:Le,lineWidth:Ae,controlHeight:Pt,controlHeightSM:ve,controlHeightLG:ce,paddingXXS:it,controlPaddingHorizontal:$t,zIndexPopupBase:wt,colorText:Me,fontWeightStrong:Ke,controlItemBgActive:qe,controlItemBgHover:Jt,colorBgContainer:Rt,colorFillSecondary:Vt,colorBgContainerDisabled:ze,colorTextDisabled:Wt,colorPrimaryHover:dt,colorPrimary:ae,controlOutline:te}=pe,ee=it*2,oe=Ae*2,se=Math.min(Pt-ee,Pt-oe),ne=Math.min(ve-ee,ve-oe),he=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(it/2),zIndexPopup:wt+50,optionSelectedColor:Me,optionSelectedFontWeight:Ke,optionSelectedBg:qe,optionActiveBg:Jt,optionPadding:`${(Pt-Lt*Le)/2}px ${$t}px`,optionFontSize:Lt,optionLineHeight:Le,optionHeight:Pt,selectorBg:Rt,clearBg:Rt,singleItemHeightLG:ce,multipleItemBg:Vt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:he,multipleSelectorBgDisabled:ze,multipleItemColorDisabled:Wt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:dt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:it}},Ge=(pe,Lt)=>{const{componentCls:Le,antCls:Ae,controlOutlineWidth:Pt}=pe;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} ${Lt.borderColor}`,background:pe.selectorBg},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:Lt.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:Lt.activeBorderColor,boxShadow:`0 0 0 ${(0,et.unit)(Pt)} ${Lt.activeOutlineColor}`,outline:0},[`${Le}-prefix`]:{color:Lt.color}}}},Ze=(pe,Lt)=>({[`&${pe.componentCls}-status-${Lt.status}`]:Object.assign({},Ge(pe,Lt))}),je=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ge(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),Ze(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),Ze(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),St=(pe,Lt)=>{const{componentCls:Le,antCls:Ae}=pe;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{background:Lt.bg,border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:Lt.color},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{background:Lt.hoverBg},[`${Le}-focused& ${Le}-selector`]:{background:pe.selectorBg,borderColor:Lt.activeBorderColor,outline:0}}}},kt=(pe,Lt)=>({[`&${pe.componentCls}-status-${Lt.status}`]:Object.assign({},St(pe,Lt))}),Nt=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},St(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),kt(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),kt(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),Et=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),vt=(pe,Lt)=>{const{componentCls:Le,antCls:Ae}=pe;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{borderWidth:`0 0 ${(0,et.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:Lt.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${Ae}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:Lt.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:Lt.activeBorderColor,outline:0},[`${Le}-prefix`]:{color:Lt.color}}}},yt=(pe,Lt)=>({[`&${pe.componentCls}-status-${Lt.status}`]:Object.assign({},vt(pe,Lt))}),Ye=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},vt(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),yt(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),yt(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,et.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var gt=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},je(pe)),Nt(pe)),Et(pe)),Ye(pe))});const tt=pe=>{const{componentCls:Lt}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Lt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Lt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},xt=pe=>{const{componentCls:Lt}=pe;return{[`${Lt}-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"}}}},Te=pe=>{const{antCls:Lt,componentCls:Le,inputPaddingHorizontalBase:Ae,iconCls:Pt}=pe;return{[Le]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Le}-customize-input) ${Le}-selector`]:Object.assign(Object.assign({},tt(pe)),xt(pe)),[`${Le}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${Lt}-typography`]:{display:"inline"}}),[`${Le}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Le}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[Pt]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Le}-suffix)`]:{pointerEvents:"auto"}},[`${Le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Le}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Le}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${Le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ae,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${Le}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${Le}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Le}-has-feedback`]:{[`${Le}-clear`]:{insetInlineEnd:pe.calc(Ae).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},_e=pe=>{const{componentCls:Lt}=pe;return[{[Lt]:{[`&${Lt}-in-form-item`]:{width:"100%"}}},Te(pe),Ot(pe),(0,fe.ZP)(pe),Pe(pe),{[`${Lt}-rtl`]:{direction:"rtl"}},(0,lt.c)(pe,{borderElCls:`${Lt}-selector`,focusElCls:`${Lt}-focused`})]};var Je=(0,ge.I$)("Select",(pe,Lt)=>{let{rootPrefixCls:Le}=Lt;const Ae=(0,Qe.mergeToken)(pe,{rootPrefixCls:Le,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[_e(Ae),gt(Ae)]},ut,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(ln,Zt,ie){"use strict";ie.d(Zt,{_z:function(){return Ee},gp:function(){return Qe}});var z=ie(36237),lt=ie(63356),ge=ie(51636);const Qe=fe=>{const{multipleSelectItemHeight:et,paddingXXS:we,lineWidth:Ot,INTERNAL_FIXED_ITEM_MARGIN:ut}=fe,Ge=fe.max(fe.calc(we).sub(Ot).equal(),0),Ze=fe.max(fe.calc(Ge).sub(ut).equal(),0);return{basePadding:Ge,containerPadding:Ze,itemHeight:(0,z.unit)(et),itemLineHeight:(0,z.unit)(fe.calc(et).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:et,selectHeight:we,lineWidth:Ot}=fe;return fe.calc(we).sub(et).div(2).sub(Ot).equal()},Ee=fe=>{const{componentCls:et,iconCls:we,borderRadiusSM:Ot,motionDurationSlow:ut,paddingXS:Ge,multipleItemColorDisabled:Ze,multipleItemBorderColorDisabled:je,colorIcon:St,colorIconHover:kt,INTERNAL_FIXED_ITEM_MARGIN:Nt}=fe;return{[`${et}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${et}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Nt,borderRadius:Ot,cursor:"default",transition:`font-size ${ut}, line-height ${ut}, height ${ut}`,marginInlineEnd:fe.calc(Nt).mul(2).equal(),paddingInlineStart:Ge,paddingInlineEnd:fe.calc(Ge).div(2).equal(),[`${et}-disabled&`]:{color:Ze,borderColor:je,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(Ge).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,lt.Ro)()),{display:"inline-flex",alignItems:"center",color:St,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${we}`]:{verticalAlign:"-0.2em"},"&:hover":{color:kt}})}}}},De=(fe,et)=>{const{componentCls:we,INTERNAL_FIXED_ITEM_MARGIN:Ot}=fe,ut=`${we}-selection-overflow`,Ge=fe.multipleSelectItemHeight,Ze=xe(fe),je=et?`${we}-${et}`:"",St=Qe(fe);return{[`${we}-multiple${je}`]:Object.assign(Object.assign({},Ee(fe)),{[`${we}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:St.basePadding,paddingBlock:St.containerPadding,borderRadius:fe.borderRadius,[`${we}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(Ot)} 0`,lineHeight:(0,z.unit)(Ge),visibility:"hidden",content:'"\\a0"'}},[`${we}-selection-item`]:{height:St.itemHeight,lineHeight:(0,z.unit)(St.itemLineHeight)},[`${we}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Ge),marginBlock:Ot}},[`${we}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(St.basePadding).equal()},[`${ut}-item + ${ut}-item, ${we}-prefix + ${we}-selection-wrap `]:{[`${we}-selection-search`]:{marginInlineStart:0},[`${we}-selection-placeholder`]:{insetInlineStart:0}},[`${ut}-item-suffix`]:{minHeight:St.itemHeight,marginBlock:Ot},[`${we}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ze).equal(),"\n &-input,\n &-mirror\n ":{height:Ge,fontFamily:fe.fontFamily,lineHeight:(0,z.unit)(Ge),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${we}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(St.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Be(fe,et){const{componentCls:we}=fe,Ot=et?`${we}-${et}`:"",ut={[`${we}-multiple${Ot}`]:{fontSize:fe.fontSize,[`${we}-selector`]:{[`${we}-show-search&`]:{cursor:"text"}},[` &${we}-show-arrow ${we}-selector, &${we}-allow-clear ${we}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[De(fe,et),ut]}const Pe=fe=>{const{componentCls:et}=fe,we=(0,ge.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),Ot=(0,ge.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Be(fe),Be(we,"sm"),{[`${et}-multiple${et}-sm`]:{[`${et}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${et}-selection-search`]:{marginInlineStart:2}}},Be(Ot,"lg")]};Zt.ZP=Pe},68525:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});var z=ie(59301),lt=ie(40001),ge=ie(19248),Qe=ie(99267),xe=ie(84105),Ee=ie(58617),De=ie(47472);function Be(Pe){let{suffixIcon:fe,clearIcon:et,menuItemSelectedIcon:we,removeIcon:Ot,loading:ut,multiple:Ge,hasFeedback:Ze,prefixCls:je,showSuffixIcon:St,feedbackIcon:kt,showArrow:Nt,componentName:Et}=Pe;const vt=et!=null?et:z.createElement(ge.Z,null),yt=tt=>fe===null&&!Ze&&!Nt?null:z.createElement(z.Fragment,null,St!==!1&&tt,Ze&&kt);let Ye=null;if(fe!==void 0)Ye=yt(fe);else if(ut)Ye=yt(z.createElement(Ee.Z,{spin:!0}));else{const tt=`${je}-suffix`;Ye=xt=>{let{open:Te,showSearch:_e}=xt;return yt(Te&&_e?z.createElement(De.Z,{className:tt}):z.createElement(xe.Z,{className:tt}))}}let Bt=null;we!==void 0?Bt=we:Ge?Bt=z.createElement(lt.Z,null):Bt=null;let gt=null;return Ot!==void 0?gt=Ot:gt=z.createElement(Qe.Z,null),{clearIcon:vt,suffixIcon:Ye,itemIcon:Bt,removeIcon:gt}}},90005:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return z}});function z(lt,ge){return ge!==void 0?ge:lt!==null}},58755:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Lt}});var z=ie(59301),lt=ie(58617),ge=ie(92310),Qe=ie.n(ge),xe=ie(60499),Ee=ie(18642),De=ie(72190),Be=ie(42244),Pe=ie(18929),fe=ie(10228),et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],we=z.forwardRef(function(Le,Ae){var Pt,ve=Le.prefixCls,ce=ve===void 0?"rc-switch":ve,it=Le.className,$t=Le.checked,wt=Le.defaultChecked,Me=Le.disabled,Ke=Le.loadingIcon,qe=Le.checkedChildren,Jt=Le.unCheckedChildren,Rt=Le.onClick,Vt=Le.onChange,ze=Le.onKeyDown,Wt=(0,Be.Z)(Le,et),dt=(0,Pe.Z)(!1,{value:$t,defaultValue:wt}),ae=(0,De.Z)(dt,2),te=ae[0],ee=ae[1];function oe(be,ht){var Oe=te;return Me||(Oe=be,ee(Oe),Vt==null||Vt(Oe,ht)),Oe}function se(be){be.which===fe.Z.LEFT?oe(!1,be):be.which===fe.Z.RIGHT&&oe(!0,be),ze==null||ze(be)}function ne(be){var ht=oe(!te,be);Rt==null||Rt(ht,be)}var he=Qe()(ce,it,(Pt={},(0,Ee.Z)(Pt,"".concat(ce,"-checked"),te),(0,Ee.Z)(Pt,"".concat(ce,"-disabled"),Me),Pt));return z.createElement("button",(0,xe.Z)({},Wt,{type:"button",role:"switch","aria-checked":te,disabled:Me,className:he,ref:Ae,onKeyDown:se,onClick:ne}),Ke,z.createElement("span",{className:"".concat(ce,"-inner")},z.createElement("span",{className:"".concat(ce,"-inner-checked")},qe),z.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Jt)))});we.displayName="Switch";var Ot=we,ut=ie(12919),Ge=ie(48755),Ze=ie(2171),je=ie(31756),St=ie(36237),kt=ie(17835),Nt=ie(63356),Et=ie(16931),vt=ie(51636);const yt=Le=>{const{componentCls:Ae,trackHeightSM:Pt,trackPadding:ve,trackMinWidthSM:ce,innerMinMarginSM:it,innerMaxMarginSM:$t,handleSizeSM:wt,calc:Me}=Le,Ke=`${Ae}-inner`,qe=(0,St.unit)(Me(wt).add(Me(ve).mul(2)).equal()),Jt=(0,St.unit)(Me($t).mul(2).equal());return{[Ae]:{[`&${Ae}-small`]:{minWidth:ce,height:Pt,lineHeight:(0,St.unit)(Pt),[`${Ae}-inner`]:{paddingInlineStart:$t,paddingInlineEnd:it,[`${Ke}-checked, ${Ke}-unchecked`]:{minHeight:Pt},[`${Ke}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${Jt})`,marginInlineEnd:`calc(100% - ${qe} + ${Jt})`},[`${Ke}-unchecked`]:{marginTop:Me(Pt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Ae}-handle`]:{width:wt,height:wt},[`${Ae}-loading-icon`]:{top:Me(Me(wt).sub(Le.switchLoadingIconSize)).div(2).equal(),fontSize:Le.switchLoadingIconSize},[`&${Ae}-checked`]:{[`${Ae}-inner`]:{paddingInlineStart:it,paddingInlineEnd:$t,[`${Ke}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ke}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${Jt})`,marginInlineEnd:`calc(-100% + ${qe} - ${Jt})`}},[`${Ae}-handle`]:{insetInlineStart:`calc(100% - ${(0,St.unit)(Me(wt).add(ve).equal())})`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${Ke}`]:{[`${Ke}-unchecked`]:{marginInlineStart:Me(Le.marginXXS).div(2).equal(),marginInlineEnd:Me(Le.marginXXS).mul(-1).div(2).equal()}},[`&${Ae}-checked ${Ke}`]:{[`${Ke}-checked`]:{marginInlineStart:Me(Le.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Me(Le.marginXXS).div(2).equal()}}}}}}},Ye=Le=>{const{componentCls:Ae,handleSize:Pt,calc:ve}=Le;return{[Ae]:{[`${Ae}-loading-icon${Le.iconCls}`]:{position:"relative",top:ve(ve(Pt).sub(Le.fontSize)).div(2).equal(),color:Le.switchLoadingIconColor,verticalAlign:"top"},[`&${Ae}-checked ${Ae}-loading-icon`]:{color:Le.switchColor}}}},Bt=Le=>{const{componentCls:Ae,trackPadding:Pt,handleBg:ve,handleShadow:ce,handleSize:it,calc:$t}=Le,wt=`${Ae}-handle`;return{[Ae]:{[wt]:{position:"absolute",top:Pt,insetInlineStart:Pt,width:it,height:it,transition:`all ${Le.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ve,borderRadius:$t(it).div(2).equal(),boxShadow:ce,transition:`all ${Le.switchDuration} ease-in-out`,content:'""'}},[`&${Ae}-checked ${wt}`]:{insetInlineStart:`calc(100% - ${(0,St.unit)($t(it).add(Pt).equal())})`},[`&:not(${Ae}-disabled):active`]:{[`${wt}::before`]:{insetInlineEnd:Le.switchHandleActiveInset,insetInlineStart:0},[`&${Ae}-checked ${wt}::before`]:{insetInlineEnd:0,insetInlineStart:Le.switchHandleActiveInset}}}}},gt=Le=>{const{componentCls:Ae,trackHeight:Pt,trackPadding:ve,innerMinMargin:ce,innerMaxMargin:it,handleSize:$t,calc:wt}=Le,Me=`${Ae}-inner`,Ke=(0,St.unit)(wt($t).add(wt(ve).mul(2)).equal()),qe=(0,St.unit)(wt(it).mul(2).equal());return{[Ae]:{[Me]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:it,paddingInlineEnd:ce,transition:`padding-inline-start ${Le.switchDuration} ease-in-out, padding-inline-end ${Le.switchDuration} ease-in-out`,[`${Me}-checked, ${Me}-unchecked`]:{display:"block",color:Le.colorTextLightSolid,fontSize:Le.fontSizeSM,transition:`margin-inline-start ${Le.switchDuration} ease-in-out, margin-inline-end ${Le.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Pt},[`${Me}-checked`]:{marginInlineStart:`calc(-100% + ${Ke} - ${qe})`,marginInlineEnd:`calc(100% - ${Ke} + ${qe})`},[`${Me}-unchecked`]:{marginTop:wt(Pt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Ae}-checked ${Me}`]:{paddingInlineStart:ce,paddingInlineEnd:it,[`${Me}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Me}-unchecked`]:{marginInlineStart:`calc(100% - ${Ke} + ${qe})`,marginInlineEnd:`calc(-100% + ${Ke} - ${qe})`}},[`&:not(${Ae}-disabled):active`]:{[`&:not(${Ae}-checked) ${Me}`]:{[`${Me}-unchecked`]:{marginInlineStart:wt(ve).mul(2).equal(),marginInlineEnd:wt(ve).mul(-1).mul(2).equal()}},[`&${Ae}-checked ${Me}`]:{[`${Me}-checked`]:{marginInlineStart:wt(ve).mul(-1).mul(2).equal(),marginInlineEnd:wt(ve).mul(2).equal()}}}}}},tt=Le=>{const{componentCls:Ae,trackHeight:Pt,trackMinWidth:ve}=Le;return{[Ae]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nt.Wf)(Le)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ve,height:Pt,lineHeight:(0,St.unit)(Pt),verticalAlign:"middle",background:Le.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ae}-disabled)`]:{background:Le.colorTextTertiary}}),(0,Nt.Qy)(Le)),{[`&${Ae}-checked`]:{background:Le.switchColor,[`&:hover:not(${Ae}-disabled)`]:{background:Le.colorPrimaryHover}},[`&${Ae}-loading, &${Ae}-disabled`]:{cursor:"not-allowed",opacity:Le.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ae}-rtl`]:{direction:"rtl"}})}},xt=Le=>{const{fontSize:Ae,lineHeight:Pt,controlHeight:ve,colorWhite:ce}=Le,it=Ae*Pt,$t=ve/2,wt=2,Me=it-wt*2,Ke=$t-wt*2;return{trackHeight:it,trackHeightSM:$t,trackMinWidth:Me*2+wt*4,trackMinWidthSM:Ke*2+wt*2,trackPadding:wt,handleBg:ce,handleSize:Me,handleSizeSM:Ke,handleShadow:`0 2px 4px 0 ${new kt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Me/2,innerMaxMargin:Me+wt+wt*2,innerMinMarginSM:Ke/2,innerMaxMarginSM:Ke+wt+wt*2}};var Te=(0,Et.I$)("Switch",Le=>{const Ae=(0,vt.mergeToken)(Le,{switchDuration:Le.motionDurationMid,switchColor:Le.colorPrimary,switchDisabledOpacity:Le.opacityLoading,switchLoadingIconSize:Le.calc(Le.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Le.opacityLoading})`,switchHandleActiveInset:"-30%"});return[tt(Ae),gt(Ae),Bt(Ae),Ye(Ae),yt(Ae)]},xt),_e=function(Le,Ae){var Pt={};for(var ve in Le)Object.prototype.hasOwnProperty.call(Le,ve)&&Ae.indexOf(ve)<0&&(Pt[ve]=Le[ve]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ve=Object.getOwnPropertySymbols(Le);ce{const{prefixCls:Pt,size:ve,disabled:ce,loading:it,className:$t,rootClassName:wt,style:Me,checked:Ke,value:qe,defaultChecked:Jt,defaultValue:Rt,onChange:Vt}=Le,ze=_e(Le,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Wt,dt]=(0,Pe.Z)(!1,{value:Ke!=null?Ke:qe,defaultValue:Jt!=null?Jt:Rt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Ge.E_),oe=z.useContext(Ze.Z),se=(ce!=null?ce:oe)||it,ne=ae("switch",Pt),he=z.createElement("div",{className:`${ne}-handle`},it&&z.createElement(lt.Z,{className:`${ne}-loading-icon`})),[be,ht,Oe]=Te(ne),We=(0,je.Z)(ve),ft=Qe()(ee==null?void 0:ee.className,{[`${ne}-small`]:We==="small",[`${ne}-loading`]:it,[`${ne}-rtl`]:te==="rtl"},$t,wt,ht,Oe),It=Object.assign(Object.assign({},ee==null?void 0:ee.style),Me),bt=function(){dt(arguments.length<=0?void 0:arguments[0]),Vt==null||Vt.apply(void 0,arguments)};return be(z.createElement(ut.Z,{component:"Switch"},z.createElement(Ot,Object.assign({},ze,{checked:Wt,onChange:bt,prefixCls:ne,className:ft,style:It,disabled:se,ref:Ae,loadingIcon:he}))))});pe.__ANT_SWITCH=!0;var Lt=pe},94968:function(ln,Zt,ie){"use strict";ie.d(Zt,{default:function(){return Fe}});var z=ie(59301),lt=ie(77654),ge=ie(4676),Qe=ie(92310),xe=ie.n(Qe),Ee=ie(60499),De=ie(38705),Be=ie(17212),Pe=ie(15793),fe=ie(39153),et=ie(55401),we=ie(18642),Ot=ie(85899),ut=ie(42244),Ge=ie(43749),Ze=ie(73001),je=ie(11576),St=ie(26112),kt=ie(48736),Nt=function(ye,Ue){if(ye&&Ue){var nt=Array.isArray(Ue)?Ue:Ue.split(","),mt=ye.name||"",rt=ye.type||"",$e=rt.replace(/\/.*$/,"");return nt.some(function(He){var ot=He.trim();if(/^\*(\/\*)?$/.test(He))return!0;if(ot.charAt(0)==="."){var qt=mt.toLowerCase(),Xt=ot.toLowerCase(),Qt=[Xt];return(Xt===".jpg"||Xt===".jpeg")&&(Qt=[".jpg",".jpeg"]),Qt.some(function(Dn){return qt.endsWith(Dn)})}return/\/\*$/.test(ot)?$e===ot.replace(/\/.*$/,""):rt===ot?!0:/^\w+$/.test(ot)?((0,kt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(ot,"'.Skip for check.")),!0):!1})}return!0};function Et(ye,Ue){var nt="cannot ".concat(ye.method," ").concat(ye.action," ").concat(Ue.status,"'"),mt=new Error(nt);return mt.status=Ue.status,mt.method=ye.method,mt.url=ye.action,mt}function vt(ye){var Ue=ye.responseText||ye.response;if(!Ue)return Ue;try{return JSON.parse(Ue)}catch(nt){return Ue}}function yt(ye){var Ue=new XMLHttpRequest;ye.onProgress&&Ue.upload&&(Ue.upload.onprogress=function($e){$e.total>0&&($e.percent=$e.loaded/$e.total*100),ye.onProgress($e)});var nt=new FormData;ye.data&&Object.keys(ye.data).forEach(function(rt){var $e=ye.data[rt];if(Array.isArray($e)){$e.forEach(function(He){nt.append("".concat(rt,"[]"),He)});return}nt.append(rt,$e)}),ye.file instanceof Blob?nt.append(ye.filename,ye.file,ye.file.name):nt.append(ye.filename,ye.file),Ue.onerror=function($e){ye.onError($e)},Ue.onload=function(){return Ue.status<200||Ue.status>=300?ye.onError(Et(ye,Ue),vt(Ue)):ye.onSuccess(vt(Ue),Ue)},Ue.open(ye.method,ye.action,!0),ye.withCredentials&&"withCredentials"in Ue&&(Ue.withCredentials=!0);var mt=ye.headers||{};return mt["X-Requested-With"]!==null&&Ue.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(mt).forEach(function(rt){mt[rt]!==null&&Ue.setRequestHeader(rt,mt[rt])}),Ue.send(nt),{abort:function(){Ue.abort()}}}var Ye=function(){var ye=(0,je.Z)((0,Ze.Z)().mark(function Ue(nt,mt){var rt,$e,He,ot,qt,Xt,Qt,Dn;return(0,Ze.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:Xt=function(){return Xt=(0,je.Z)((0,Ze.Z)().mark(function xn(On){return(0,Ze.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return _n.abrupt("return",new Promise(function(Vn){On.file(function(Xn){mt(Xn)?(On.fullPath&&!Xn.webkitRelativePath&&(Object.defineProperties(Xn,{webkitRelativePath:{writable:!0}}),Xn.webkitRelativePath=On.fullPath.replace(/^\//,""),Object.defineProperties(Xn,{webkitRelativePath:{writable:!1}})),Vn(Xn)):Vn(null)})}));case 1:case"end":return _n.stop()}},xn)})),Xt.apply(this,arguments)},qt=function(xn){return Xt.apply(this,arguments)},ot=function(){return ot=(0,je.Z)((0,Ze.Z)().mark(function xn(On){var Fn,_n,Vn,Xn,wn;return(0,Ze.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:Fn=On.createReader(),_n=[];case 2:return Wn.next=5,new Promise(function(dr){Fn.readEntries(dr,function(){return dr([])})});case 5:if(Vn=Wn.sent,Xn=Vn.length,Xn){Wn.next=9;break}return Wn.abrupt("break",12);case 9:for(wn=0;wn{const{componentCls:Ue,iconCls:nt}=ye;return{[`${Ue}-wrapper`]:{[`${Ue}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ye.colorFillAlter,border:`${(0,Jt.unit)(ye.lineWidth)} dashed ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,cursor:"pointer",transition:`border-color ${ye.motionDurationSlow}`,[Ue]:{padding:ye.padding},[`${Ue}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ye.borderRadiusLG,"&:focus-visible":{outline:`${(0,Jt.unit)(ye.lineWidthFocus)} solid ${ye.colorPrimaryBorder}`}},[`${Ue}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${Ue}-disabled):hover, &-hover:not(${Ue}-disabled) `]:{borderColor:ye.colorPrimaryHover},[`p${Ue}-drag-icon`]:{marginBottom:ye.margin,[nt]:{color:ye.colorPrimary,fontSize:ye.uploadThumbnailSize}},[`p${Ue}-text`]:{margin:`0 0 ${(0,Jt.unit)(ye.marginXXS)}`,color:ye.colorTextHeading,fontSize:ye.fontSizeLG},[`p${Ue}-hint`]:{color:ye.colorTextDescription,fontSize:ye.fontSize},[`&${Ue}-disabled`]:{[`p${Ue}-drag-icon ${nt}, p${Ue}-text, p${Ue}-hint `]:{color:ye.colorTextDisabled}}}}}},Wt=ye=>{const{componentCls:Ue,iconCls:nt,fontSize:mt,lineHeight:rt,calc:$e}=ye,He=`${Ue}-list-item`,ot=`${He}-actions`,qt=`${He}-action`;return{[`${Ue}-wrapper`]:{[`${Ue}-list`]:Object.assign(Object.assign({},(0,wt.dF)()),{lineHeight:ye.lineHeight,[He]:{position:"relative",height:$e(ye.lineHeight).mul(mt).equal(),marginTop:ye.marginXS,fontSize:mt,display:"flex",alignItems:"center",transition:`background-color ${ye.motionDurationSlow}`,borderRadius:ye.borderRadiusSM,"&:hover":{backgroundColor:ye.controlItemBgHover},[`${He}-name`]:Object.assign(Object.assign({},wt.vS),{padding:`0 ${(0,Jt.unit)(ye.paddingXS)}`,lineHeight:rt,flex:"auto",transition:`all ${ye.motionDurationSlow}`}),[ot]:{whiteSpace:"nowrap",[qt]:{opacity:0},[nt]:{color:ye.actionsColor,transition:`all ${ye.motionDurationSlow}`},[` ${qt}:focus-visible, &.picture ${qt} `]:{opacity:1}},[`${Ue}-icon ${nt}`]:{color:ye.colorTextDescription,fontSize:mt},[`${He}-progress`]:{position:"absolute",bottom:ye.calc(ye.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:$e(mt).add(ye.paddingXS).equal(),fontSize:mt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${He}:hover ${qt}`]:{opacity:1},[`${He}-error`]:{color:ye.colorError,[`${He}-name, ${Ue}-icon ${nt}`]:{color:ye.colorError},[ot]:{[`${nt}, ${nt}:hover`]:{color:ye.colorError},[qt]:{opacity:1}}},[`${Ue}-list-item-container`]:{transition:`opacity ${ye.motionDurationSlow}, height ${ye.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},dt=ie(99495),te=ye=>{const{componentCls:Ue}=ye,nt=new Jt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ye.calc(ye.marginXS).div(-2).equal()}}),mt=new Jt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ye.calc(ye.marginXS).div(-2).equal()}}),rt=`${Ue}-animate-inline`;return[{[`${Ue}-wrapper`]:{[`${rt}-appear, ${rt}-enter, ${rt}-leave`]:{animationDuration:ye.motionDurationSlow,animationTimingFunction:ye.motionEaseInOutCirc,animationFillMode:"forwards"},[`${rt}-appear, ${rt}-enter`]:{animationName:nt},[`${rt}-leave`]:{animationName:mt}}},{[`${Ue}-wrapper`]:(0,dt.J$)(ye)},nt,mt]},ee=ie(68361);const oe=ye=>{const{componentCls:Ue,iconCls:nt,uploadThumbnailSize:mt,uploadProgressOffset:rt,calc:$e}=ye,He=`${Ue}-list`,ot=`${He}-item`;return{[`${Ue}-wrapper`]:{[` ${He}${He}-picture, ${He}${He}-picture-card, ${He}${He}-picture-circle `]:{[ot]:{position:"relative",height:$e(mt).add($e(ye.lineWidth).mul(2)).add($e(ye.paddingXS).mul(2)).equal(),padding:ye.paddingXS,border:`${(0,Jt.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,"&:hover":{background:"transparent"},[`${ot}-thumbnail`]:Object.assign(Object.assign({},wt.vS),{width:mt,height:mt,lineHeight:(0,Jt.unit)($e(mt).add(ye.paddingSM).equal()),textAlign:"center",flex:"none",[nt]:{fontSize:ye.fontSizeHeading2,color:ye.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ot}-progress`]:{bottom:rt,width:`calc(100% - ${(0,Jt.unit)($e(ye.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:$e(mt).add(ye.paddingXS).equal()}},[`${ot}-error`]:{borderColor:ye.colorError,[`${ot}-thumbnail ${nt}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ye.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ye.colorError}}},[`${ot}-uploading`]:{borderStyle:"dashed",[`${ot}-name`]:{marginBottom:rt}}},[`${He}${He}-picture-circle ${ot}`]:{[`&, &::before, ${ot}-thumbnail`]:{borderRadius:"50%"}}}}},se=ye=>{const{componentCls:Ue,iconCls:nt,fontSizeLG:mt,colorTextLightSolid:rt,calc:$e}=ye,He=`${Ue}-list`,ot=`${He}-item`,qt=ye.uploadPicCardSize;return{[` ${Ue}-wrapper${Ue}-picture-card-wrapper, ${Ue}-wrapper${Ue}-picture-circle-wrapper `]:Object.assign(Object.assign({},(0,wt.dF)()),{display:"block",[`${Ue}${Ue}-select`]:{width:qt,height:qt,textAlign:"center",verticalAlign:"top",backgroundColor:ye.colorFillAlter,border:`${(0,Jt.unit)(ye.lineWidth)} dashed ${ye.colorBorder}`,borderRadius:ye.borderRadiusLG,cursor:"pointer",transition:`border-color ${ye.motionDurationSlow}`,[`> ${Ue}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ue}-disabled):hover`]:{borderColor:ye.colorPrimary}},[`${He}${He}-picture-card, ${He}${He}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ye.marginXS,marginInlineEnd:ye.marginXS}},"@supports (gap: 1px)":{gap:ye.marginXS},[`${He}-item-container`]:{display:"inline-block",width:qt,height:qt,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[ot]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Jt.unit)($e(ye.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Jt.unit)($e(ye.paddingXS).mul(2).equal())})`,backgroundColor:ye.colorBgMask,opacity:0,transition:`all ${ye.motionDurationSlow}`,content:'" "'}},[`${ot}:hover`]:{[`&::before, ${ot}-actions`]:{opacity:1}},[`${ot}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ye.motionDurationSlow}`,[` ${nt}-eye, ${nt}-download, ${nt}-delete `]:{zIndex:10,width:mt,margin:`0 ${(0,Jt.unit)(ye.marginXXS)}`,fontSize:mt,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,color:rt,"&:hover":{color:rt},svg:{verticalAlign:"baseline"}}},[`${ot}-thumbnail, ${ot}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ot}-name`]:{display:"none",textAlign:"center"},[`${ot}-file + ${ot}-name`]:{position:"absolute",bottom:ye.margin,display:"block",width:`calc(100% - ${(0,Jt.unit)($e(ye.paddingXS).mul(2).equal())})`},[`${ot}-uploading`]:{[`&${ot}`]:{backgroundColor:ye.colorFillAlter},[`&::before, ${nt}-eye, ${nt}-download, ${nt}-delete`]:{display:"none"}},[`${ot}-progress`]:{bottom:ye.marginXL,width:`calc(100% - ${(0,Jt.unit)($e(ye.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Ue}-wrapper${Ue}-picture-circle-wrapper`]:{[`${Ue}${Ue}-select`]:{borderRadius:"50%"}}}};var he=ye=>{const{componentCls:Ue}=ye;return{[`${Ue}-rtl`]:{direction:"rtl"}}};const be=ye=>{const{componentCls:Ue,colorTextDisabled:nt}=ye;return{[`${Ue}-wrapper`]:Object.assign(Object.assign({},(0,wt.Wf)(ye)),{[Ue]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ue}-select`]:{display:"inline-block"},[`${Ue}-hidden`]:{display:"none"},[`${Ue}-disabled`]:{color:nt,cursor:"not-allowed"}})}},ht=ye=>({actionsColor:ye.colorTextDescription});var Oe=(0,Ke.I$)("Upload",ye=>{const{fontSizeHeading3:Ue,fontHeight:nt,lineWidth:mt,controlHeightLG:rt,calc:$e}=ye,He=(0,qe.mergeToken)(ye,{uploadThumbnailSize:$e(Ue).mul(2).equal(),uploadProgressOffset:$e($e(nt).div(2)).add(mt).equal(),uploadPicCardSize:$e(rt).mul(2.55).equal()});return[be(He),Vt(He),oe(He),se(He),Wt(He),te(He),he(He),(0,Me.Z)(He)]},ht),We={icon:function(Ue,nt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:nt}},{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:Ue}}]}},name:"file",theme:"twotone"},ft=We,It=ie(7657),bt=function(Ue,nt){return z.createElement(It.Z,(0,Ee.Z)({},Ue,{ref:nt,icon:ft}))},Ut=z.forwardRef(bt),Kt=Ut,jt=ie(58617),cn={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"},en=cn,sn=function(Ue,nt){return z.createElement(It.Z,(0,Ee.Z)({},Ue,{ref:nt,icon:en}))},Ct=z.forwardRef(sn),_t=Ct,Ht={icon:function(Ue,nt){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:Ue}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:nt}},{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:nt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:nt}},{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:Ue}}]}},name:"picture",theme:"twotone"},ke=Ht,at=function(Ue,nt){return z.createElement(It.Z,(0,Ee.Z)({},Ue,{ref:nt,icon:ke}))},Mt=z.forwardRef(at),zt=Mt,Ie=ie(77900),Xe=ie(2738),pt=ie(40192),Dt=ie(86641),Gt=ie(22703),un=ie(7939);function Sn(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 Cn(ye,Ue){const nt=(0,lt.Z)(Ue),mt=nt.findIndex(rt=>{let{uid:$e}=rt;return $e===ye.uid});return mt===-1?nt.push(ye):nt[mt]=ye,nt}function on(ye,Ue){const nt=ye.uid!==void 0?"uid":"name";return Ue.filter(mt=>mt[nt]===ye[nt])[0]}function yn(ye,Ue){const nt=ye.uid!==void 0?"uid":"name",mt=Ue.filter(rt=>rt[nt]!==ye[nt]);return mt.length===Ue.length?null:mt}const gn=function(){const Ue=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),mt=Ue[Ue.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(mt)||[""])[0]},$n=ye=>ye.indexOf("image/")===0,bn=ye=>{if(ye.type&&!ye.thumbUrl)return $n(ye.type);const Ue=ye.thumbUrl||ye.url||"",nt=gn(Ue);return/^data:image\//.test(Ue)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(nt)?!0:!(/^data:/.test(Ue)||nt)},vn=200;function Yt(ye){return new Promise(Ue=>{if(!ye.type||!$n(ye.type)){Ue("");return}const nt=document.createElement("canvas");nt.width=vn,nt.height=vn,nt.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(nt);const mt=nt.getContext("2d"),rt=new Image;if(rt.onload=()=>{const{width:$e,height:He}=rt;let ot=vn,qt=vn,Xt=0,Qt=0;$e>He?(qt=He*(vn/$e),Qt=-(qt-ot)/2):(ot=$e*(vn/He),Xt=-(ot-qt)/2),mt.drawImage(rt,Xt,Qt,ot,qt);const Dn=nt.toDataURL();document.body.removeChild(nt),window.URL.revokeObjectURL(rt.src),Ue(Dn)},rt.crossOrigin="anonymous",ye.type.startsWith("image/svg+xml")){const $e=new FileReader;$e.onload=()=>{$e.result&&typeof $e.result=="string"&&(rt.src=$e.result)},$e.readAsDataURL(ye)}else if(ye.type.startsWith("image/gif")){const $e=new FileReader;$e.onload=()=>{$e.result&&Ue($e.result)},$e.readAsDataURL(ye)}else rt.src=window.URL.createObjectURL(ye)})}var Pn=ie(26227),mn=ie(41464),kn=ie(15277),jn=ie(89787),Zn=ie(25399),Yn=z.forwardRef((ye,Ue)=>{let{prefixCls:nt,className:mt,style:rt,locale:$e,listType:He,file:ot,items:qt,progress:Xt,iconRender:Qt,actionIconRender:Dn,itemRender:Ln,isImgUrl:Hn,showPreviewIcon:Mn,showRemoveIcon:xn,showDownloadIcon:On,previewIcon:Fn,removeIcon:_n,downloadIcon:Vn,extra:Xn,onPreview:wn,onDownload:er,onClose:Wn}=ye;var dr,pr;const{status:sr}=ot,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const nn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(nn)}},[]);const Qn=Qt(ot);let mr=z.createElement("div",{className:`${nt}-icon`},Qn);if(He==="picture"||He==="picture-card"||He==="picture-circle")if(ur==="uploading"||!ot.thumbUrl&&!ot.url){const nn=xe()(`${nt}-list-item-thumbnail`,{[`${nt}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:nn},Qn)}else{const nn=Hn!=null&&Hn(ot)?z.createElement("img",{src:ot.thumbUrl||ot.url,alt:ot.name,className:`${nt}-list-item-image`,crossOrigin:ot.crossOrigin}):Qn,En=xe()(`${nt}-list-item-thumbnail`,{[`${nt}-list-item-file`]:Hn&&!Hn(ot)});mr=z.createElement("a",{className:En,onClick:Tn=>wn(ot,Tn),href:ot.url||ot.thumbUrl,target:"_blank",rel:"noopener noreferrer"},nn)}const br=xe()(`${nt}-list-item`,`${nt}-list-item-${ur}`),zr=typeof ot.linkProps=="string"?JSON.parse(ot.linkProps):ot.linkProps,Er=(typeof xn=="function"?xn(ot):xn)?Dn((typeof _n=="function"?_n(ot):_n)||z.createElement(Pn.Z,null),()=>Wn(ot),nt,$e.removeFile,!0):null,Br=(typeof On=="function"?On(ot):On)&&ur==="done"?Dn((typeof Vn=="function"?Vn(ot):Vn)||z.createElement(mn.Z,null),()=>er(ot),nt,$e.downloadFile):null,Ir=He!=="picture-card"&&He!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:xe()(`${nt}-list-item-actions`,{picture:He==="picture"})},Br,Er),Mr=typeof Xn=="function"?Xn(ot):Xn,ir=Mr&&z.createElement("span",{className:`${nt}-list-item-extra`},Mr),rr=xe()(`${nt}-list-item-name`),Jn=ot.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:ot.name},zr,{href:ot.url,onClick:nn=>wn(ot,nn)}),ot.name,ir):z.createElement("span",{key:"view",className:rr,onClick:nn=>wn(ot,nn),title:ot.name},ot.name,ir),an=(typeof Mn=="function"?Mn(ot):Mn)&&(ot.url||ot.thumbUrl)?z.createElement("a",{href:ot.url||ot.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:nn=>wn(ot,nn),title:$e.previewFile},typeof Fn=="function"?Fn(ot):Fn||z.createElement(kn.Z,null)):null,pn=(He==="picture-card"||He==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${nt}-list-item-actions`},an,ur==="done"&&Br,Er),{getPrefixCls:hn}=z.useContext(ve.E_),tn=hn(),Bn=z.createElement("div",{className:br},mr,Jn,Ir,pn,lr&&z.createElement(Ie.default,{motionName:`${tn}-fade`,visible:ur==="uploading",motionDeadline:2e3},nn=>{let{className:En}=nn;const Tn="percent"in ot?z.createElement(jn.Z,Object.assign({},Xt,{type:"line",percent:ot.percent,"aria-label":ot["aria-label"],"aria-labelledby":ot["aria-labelledby"]})):null;return z.createElement("div",{className:xe()(`${nt}-list-item-progress`,En)},Tn)})),Gn=ot.response&&typeof ot.response=="string"?ot.response:((dr=ot.error)===null||dr===void 0?void 0:dr.statusText)||((pr=ot.error)===null||pr===void 0?void 0:pr.message)||$e.uploadError,dn=ur==="error"?z.createElement(Zn.Z,{title:Gn,getPopupContainer:nn=>nn.parentNode},Bn):Bn;return z.createElement("div",{className:xe()(`${nt}-list-item-container`,mt),style:rt,ref:Ue},Ln?Ln(dn,ot,qt,{download:er.bind(null,ot),preview:wn.bind(null,ot),remove:Wn.bind(null,ot)}):dn)});const Nn=(ye,Ue)=>{const{listType:nt="text",previewFile:mt=Yt,onPreview:rt,onDownload:$e,onRemove:He,locale:ot,iconRender:qt,isImageUrl:Xt=bn,prefixCls:Qt,items:Dn=[],showPreviewIcon:Ln=!0,showRemoveIcon:Hn=!0,showDownloadIcon:Mn=!1,removeIcon:xn,previewIcon:On,downloadIcon:Fn,extra:_n,progress:Vn={size:[-1,2],showInfo:!1},appendAction:Xn,appendActionVisible:wn=!0,itemRender:er,disabled:Wn}=ye,dr=(0,pt.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(nt);z.useEffect(()=>{nt.startsWith("picture")&&(Dn||[]).forEach(ir=>{!(ir.originFileObj instanceof File||ir.originFileObj instanceof Blob)||ir.thumbUrl!==void 0||(ir.thumbUrl="",mt==null||mt(ir.originFileObj).then(rr=>{ir.thumbUrl=rr||"",dr()}))})},[nt,Dn,mt]),z.useEffect(()=>{sr(!0)},[]);const yr=(ir,rr)=>{if(rt)return rr==null||rr.preventDefault(),rt(ir)},lr=ir=>{typeof $e=="function"?$e(ir):ir.url&&window.open(ir.url)},fr=ir=>{He==null||He(ir)},Qn=ir=>{if(qt)return qt(ir,nt);const rr=ir.status==="uploading";if(nt.startsWith("picture")){const Jn=nt==="picture"?z.createElement(jt.Z,null):ot.uploading,an=Xt!=null&&Xt(ir)?z.createElement(zt,null):z.createElement(Kt,null);return rr?Jn:an}return rr?z.createElement(jt.Z,null):z.createElement(_t,null)},mr=(ir,rr,Jn,an,pn)=>{const hn={type:"text",size:"small",title:an,onClick:tn=>{var Bn,Gn;rr(),z.isValidElement(ir)&&((Gn=(Bn=ir.props).onClick)===null||Gn===void 0||Gn.call(Bn,tn))},className:`${Jn}-list-item-action`};return pn&&(hn.disabled=Wn),z.isValidElement(ir)?z.createElement(un.ZP,Object.assign({},hn,{icon:(0,Gt.Tm)(ir,Object.assign(Object.assign({},ir.props),{onClick:()=>{}}))})):z.createElement(un.ZP,Object.assign({},hn),z.createElement("span",null,ir))};z.useImperativeHandle(Ue,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(ve.E_),zr=br("upload",Qt),Er=br(),Br=xe()(`${zr}-list`,`${zr}-list-${nt}`),Ir=z.useMemo(()=>(0,Xe.Z)((0,Dt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Mr=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,lt.Z)(Dn.map(ir=>({key:ir.uid,file:ir}))),motionAppear:pr});return z.createElement("div",{className:Br},z.createElement(Ie.CSSMotionList,Object.assign({},Mr,{component:!1}),ir=>{let{key:rr,file:Jn,className:an,style:pn}=ir;return z.createElement(Yn,{key:rr,locale:ot,prefixCls:zr,className:an,style:pn,file:Jn,items:Dn,progress:Vn,listType:nt,isImgUrl:Xt,showPreviewIcon:Ln,showRemoveIcon:Hn,showDownloadIcon:Mn,removeIcon:xn,previewIcon:On,downloadIcon:Fn,extra:_n,iconRender:Qn,actionIconRender:mr,itemRender:er,onPreview:yr,onDownload:lr,onClose:fr})}),Xn&&z.createElement(Ie.default,Object.assign({},Mr,{visible:wn,forceRender:!0}),ir=>{let{className:rr,style:Jn}=ir;return(0,Gt.Tm)(Xn,an=>({className:xe()(an.className,rr),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:rr?"none":void 0}),an.style)}))}))};var qn=z.forwardRef(Nn),At=function(ye,Ue,nt,mt){function rt($e){return $e instanceof nt?$e:new nt(function(He){He($e)})}return new(nt||(nt=Promise))(function($e,He){function ot(Qt){try{Xt(mt.next(Qt))}catch(Dn){He(Dn)}}function qt(Qt){try{Xt(mt.throw(Qt))}catch(Dn){He(Dn)}}function Xt(Qt){Qt.done?$e(Qt.value):rt(Qt.value).then(ot,qt)}Xt((mt=mt.apply(ye,Ue||[])).next())})};const rn=`__LIST_IGNORE_${Date.now()}__`,zn=(ye,Ue)=>{const{fileList:nt,defaultFileList:mt,onRemove:rt,showUploadList:$e=!0,listType:He="text",onPreview:ot,onDownload:qt,onChange:Xt,onDrop:Qt,previewFile:Dn,disabled:Ln,locale:Hn,iconRender:Mn,isImageUrl:xn,progress:On,prefixCls:Fn,className:_n,type:Vn="select",children:Xn,style:wn,itemRender:er,maxCount:Wn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=ye,Qn=z.useContext(ce.Z),mr=Ln!=null?Ln:Qn,[br,zr]=(0,Pt.Z)(mt||[],{value:nt,postState:xr=>xr!=null?xr:[]}),[Er,Br]=z.useState("drop"),Ir=z.useRef(null),Mr=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(nt||[]).forEach(($r,Gr)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${Gr}__`)})},[nt]);const ir=(xr,$r,Gr)=>{let Sr=(0,lt.Z)($r),Nr=!1;Wn===1?Sr=Sr.slice(-1):Wn&&(Nr=Sr.length>Wn,Sr=Sr.slice(0,Wn)),(0,ge.flushSync)(()=>{zr(Sr)});const Tr={file:xr,fileList:Sr};Gr&&(Tr.event=Gr),(!Nr||xr.status==="removed"||Sr.some(ui=>ui.uid===xr.uid))&&(0,ge.flushSync)(()=>{Xt==null||Xt(Tr)})},rr=(xr,$r)=>At(void 0,void 0,void 0,function*(){const{beforeUpload:Gr,transformFile:Sr}=ye;let Nr=xr;if(Gr){const Tr=yield Gr(xr,$r);if(Tr===!1)return!1;if(delete xr[rn],Tr===rn)return Object.defineProperty(xr,rn,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return Sr&&(Nr=yield Sr(Nr)),Nr}),Jn=xr=>{const $r=xr.filter(Nr=>!Nr.file[rn]);if(!$r.length)return;const Gr=$r.map(Nr=>Sn(Nr.file));let Sr=(0,lt.Z)(br);Gr.forEach(Nr=>{Sr=Cn(Nr,Sr)}),Gr.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Mi}=Nr;let fi;try{fi=new File([Mi],Mi.name,{type:Mi.type})}catch(ni){fi=new Blob([Mi],{type:Mi.type}),fi.name=Mi.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}ir(ui,Sr)})},an=(xr,$r,Gr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!on($r,br))return;const Sr=Sn($r);Sr.status="done",Sr.percent=100,Sr.response=xr,Sr.xhr=Gr;const Nr=Cn(Sr,br);ir(Sr,Nr)},pn=(xr,$r)=>{if(!on($r,br))return;const Gr=Sn($r);Gr.status="uploading",Gr.percent=xr.percent;const Sr=Cn(Gr,br);ir(Gr,Sr,xr)},hn=(xr,$r,Gr)=>{if(!on(Gr,br))return;const Sr=Sn(Gr);Sr.error=xr,Sr.response=$r,Sr.status="error";const Nr=Cn(Sr,br);ir(Sr,Nr)},tn=xr=>{let $r;Promise.resolve(typeof rt=="function"?rt(xr):rt).then(Gr=>{var Sr;if(Gr===!1)return;const Nr=yn(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")}),(Sr=Ir.current)===null||Sr===void 0||Sr.abort($r),ir($r,Nr))})},Bn=xr=>{Br(xr.type),xr.type==="drop"&&(Qt==null||Qt(xr))};z.useImperativeHandle(Ue,()=>({onBatchStart:Jn,onSuccess:an,onProgress:pn,onError:hn,fileList:br,upload:Ir.current,nativeElement:Mr.current}));const{getPrefixCls:Gn,direction:dn,upload:nn}=z.useContext(ve.E_),En=Gn("upload",Fn),Tn=Object.assign(Object.assign({onBatchStart:Jn,onError:hn,onProgress:pn,onSuccess:an},ye),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:En,disabled:mr,beforeUpload:rr,onChange:void 0,hasControlInside:sr});delete Tn.className,delete Tn.style,(!Xn||mr)&&delete Tn.id;const cr=`${En}-wrapper`,[kr,Or,Rr]=Oe(En,cr),[Ar]=(0,it.Z)("Upload",$t.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Xr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof $e=="boolean"?{}:$e,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,$r)=>$e?z.createElement(qn,{prefixCls:En,listType:He,items:br,previewFile:Dn,onPreview:ot,onDownload:qt,onRemove:tn,showRemoveIcon:xi,showPreviewIcon:Vr,showDownloadIcon:Hr,removeIcon:Xr,previewIcon:ti,downloadIcon:Ei,iconRender:Mn,extra:Ni,locale:Object.assign(Object.assign({},Ar),Hn),isImageUrl:xn,progress:On,appendAction:xr,appendActionVisible:$r,itemRender:er,disabled:mr}):xr,Ri=xe()(cr,_n,fr,Or,Rr,nn==null?void 0:nn.className,{[`${En}-rtl`]:dn==="rtl",[`${En}-picture-card-wrapper`]:He==="picture-card",[`${En}-picture-circle-wrapper`]:He==="picture-circle"}),jr=Object.assign(Object.assign({},nn==null?void 0:nn.style),wn);if(Vn==="drag"){const xr=xe()(Or,En,`${En}-drag`,{[`${En}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${En}-drag-hover`]:Er==="dragover",[`${En}-disabled`]:mr,[`${En}-rtl`]:dn==="rtl"});return kr(z.createElement("span",{className:Ri,ref:Mr},z.createElement("div",{className:xr,style:jr,onDrop:Bn,onDragOver:Bn,onDragLeave:Bn},z.createElement(Ae,Object.assign({},Tn,{ref:Ir,className:`${En}-btn`}),z.createElement("div",{className:`${En}-drag-container`},Xn))),si()))}const Ki=xe()(En,`${En}-select`,{[`${En}-disabled`]:mr,[`${En}-hidden`]:!Xn}),qr=z.createElement("div",{className:Ki},z.createElement(Ae,Object.assign({},Tn,{ref:Ir})));return kr(He==="picture-card"||He==="picture-circle"?z.createElement("span",{className:Ri,ref:Mr},si(qr,!!Xn)):z.createElement("span",{className:Ri,ref:Mr},qr,si()))};var Re=z.forwardRef(zn),st=function(ye,Ue){var nt={};for(var mt in ye)Object.prototype.hasOwnProperty.call(ye,mt)&&Ue.indexOf(mt)<0&&(nt[mt]=ye[mt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,mt=Object.getOwnPropertySymbols(ye);rt{var{style:nt,height:mt,hasControlInside:rt=!1}=ye,$e=st(ye,["style","height","hasControlInside"]);return z.createElement(Re,Object.assign({ref:Ue,hasControlInside:rt},$e,{type:"drag",style:Object.assign(Object.assign({},nt),{height:mt})}))});const Se=Re;Se.Dragger=Ne,Se.LIST_IGNORE=rn;var Fe=Se},99498:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Be,Pe,fe){var et=fe&&fe!=z.Init;if(Pe&&!et)Be.on("blur",xe),Be.on("change",Ee),Be.on("swapDoc",Ee),z.on(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose=function(){Qe(Be)}),Ee(Be);else if(!Pe&&et){Be.off("blur",xe),Be.off("change",Ee),Be.off("swapDoc",Ee),z.off(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose),lt(Be);var we=Be.getWrapperElement();we.className=we.className.replace(" CodeMirror-empty","")}Pe&&!Be.hasFocus()&&xe(Be)});function lt(Be){Be.state.placeholder&&(Be.state.placeholder.parentNode.removeChild(Be.state.placeholder),Be.state.placeholder=null)}function ge(Be){lt(Be);var Pe=Be.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Be.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Be.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Pe.appendChild(fe),Be.display.lineSpace.insertBefore(Pe,Be.display.lineSpace.firstChild)}function Qe(Be){setTimeout(function(){var Pe=!1,fe=Be.getInputField();fe.nodeName=="TEXTAREA"?Pe=!fe.value:Be.lineCount()==1&&(Pe=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Pe?ge(Be):lt(Be)},20)}function xe(Be){De(Be)&&ge(Be)}function Ee(Be){var Pe=Be.getWrapperElement(),fe=De(Be);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ge(Be):lt(Be)}function De(Be){return Be.lineCount()===1&&Be.getLine(0)===""}})},25717:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){var lt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Ge,Ze,je){je&&je!=z.Init&&(Ge.removeKeyMap(xe),Ge.state.closeBrackets=null),Ze&&(Ee(Qe(Ze,"pairs")),Ge.state.closeBrackets=Ze,Ge.addKeyMap(xe))});function Qe(Ge,Ze){return Ze=="pairs"&&typeof Ge=="string"?Ge:typeof Ge=="object"&&Ge[Ze]!=null?Ge[Ze]:lt[Ze]}var xe={Backspace:Pe,Enter:fe};function Ee(Ge){for(var Ze=0;Ze=0;kt--){var Et=St[kt].head;Ge.replaceRange("",ge(Et.line,Et.ch-1),ge(Et.line,Et.ch+1),"+delete")}}function fe(Ge){var Ze=Be(Ge),je=Ze&&Qe(Ze,"explode");if(!je||Ge.getOption("disableInput"))return z.Pass;for(var St=Ge.listSelections(),kt=0;kt0;return{anchor:new ge(Ge.anchor.line,Ge.anchor.ch+(Ze?-1:1)),head:new ge(Ge.head.line,Ge.head.ch+(Ze?1:-1))}}function we(Ge,Ze){var je=Be(Ge);if(!je||Ge.getOption("disableInput"))return z.Pass;var St=Qe(je,"pairs"),kt=St.indexOf(Ze);if(kt==-1)return z.Pass;for(var Nt=Qe(je,"closeBefore"),Et=Qe(je,"triples"),vt=St.charAt(kt+1)==Ze,yt=Ge.listSelections(),Ye=kt%2==0,Bt,gt=0;gt=0&&Ge.getRange(xt,ge(xt.line,xt.ch+3))==Ze+Ze+Ze?Te="skipThree":Te="skip";else if(vt&&xt.ch>1&&Et.indexOf(Ze)>=0&&Ge.getRange(ge(xt.line,xt.ch-2),xt)==Ze+Ze){if(xt.ch>2&&/\bstring/.test(Ge.getTokenTypeAt(ge(xt.line,xt.ch-2))))return z.Pass;Te="addFour"}else if(vt){var Je=xt.ch==0?" ":Ge.getRange(ge(xt.line,xt.ch-1),xt);if(!z.isWordChar(_e)&&Je!=Ze&&!z.isWordChar(Je))Te="both";else return z.Pass}else if(Ye&&(_e.length===0||/\s/.test(_e)||Nt.indexOf(_e)>-1))Te="both";else return z.Pass;if(!Bt)Bt=Te;else if(Bt!=Te)return z.Pass}var pe=kt%2?St.charAt(kt-1):Ze,Lt=kt%2?Ze:St.charAt(kt+1);Ge.operation(function(){if(Bt=="skip")Ge.execCommand("goCharRight");else if(Bt=="skipThree")for(var Le=0;Le<3;Le++)Ge.execCommand("goCharRight");else if(Bt=="surround"){for(var Ae=Ge.getSelections(),Le=0;Le'"]=function(Ot){return Qe(Ot)}),Pe.addKeyMap(we)}});var lt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["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(Pe){if(Pe.getOption("disableInput"))return z.Pass;for(var fe=Pe.listSelections(),et=[],we=Pe.getOption("autoCloseTags"),Ot=0;Otut.ch&&(kt=kt.slice(0,kt.length-Ge.end+ut.ch));var yt=kt.toLowerCase();if(!kt||Ge.type=="string"&&(Ge.end!=ut.ch||!/[\"\']/.test(Ge.string.charAt(Ge.string.length-1))||Ge.string.length==1)||Ge.type=="tag"&&St.close||Ge.string.indexOf("/")==ut.ch-Ge.start-1||Et&&De(Et,yt)>-1||Be(Pe,Ze.mode.xmlCurrentContext&&Ze.mode.xmlCurrentContext(je)||[],kt,ut,!0))return z.Pass;var Ye=typeof we=="object"&&we.emptyTags;if(Ye&&De(Ye,kt)>-1){et[Ot]={text:"/>",newPos:z.Pos(ut.line,ut.ch+2)};continue}var Bt=vt&&De(vt,yt)>-1;et[Ot]={indent:Bt,text:">"+(Bt?` `:"")+"",newPos:Bt?z.Pos(ut.line+1,0):z.Pos(ut.line,ut.ch+1)}}for(var gt=typeof we=="object"&&we.dontIndentOnAutoClose,Ot=fe.length-1;Ot>=0;Ot--){var tt=et[Ot];Pe.replaceRange(tt.text,fe[Ot].head,fe[Ot].anchor,"+insert");var xt=Pe.listSelections().slice(0);xt[Ot]={head:tt.newPos,anchor:tt.newPos},Pe.setSelections(xt),!gt&&tt.indent&&(Pe.indentLine(tt.newPos.line,null,!0),Pe.indentLine(tt.newPos.line+1,null,!0))}}function xe(Pe,fe){for(var et=Pe.listSelections(),we=[],Ot=fe?"/":""&&(Et+=">"),we[Ze]=Et}if(Pe.replaceSelections(we),et=Pe.listSelections(),!Ge)for(var Ze=0;Ze=0&&fe[je]==et;je--)++Ze;we=Ge.to;for(var je=1;je=je.max))return je.ch=0,je.text=je.cm.getLine(++je.line),!0}function fe(je){if(!(je.line<=je.min))return je.text=je.cm.getLine(--je.line),je.ch=je.text.length,!0}function et(je){for(;;){var St=je.text.indexOf(">",je.ch);if(St==-1){if(Pe(je))continue;return}if(!Be(je,St+1)){je.ch=St+1;continue}var kt=je.text.lastIndexOf("/",St),Nt=kt>-1&&!/\S/.test(je.text.slice(kt+1,St));return je.ch=St+1,Nt?"selfClose":"regular"}}function we(je){for(;;){var St=je.ch?je.text.lastIndexOf("<",je.ch-1):-1;if(St==-1){if(fe(je))continue;return}if(!Be(je,St+1)){je.ch=St;continue}Ee.lastIndex=St,je.ch=St;var kt=Ee.exec(je.text);if(kt&&kt.index==St)return kt}}function Ot(je){for(;;){Ee.lastIndex=je.ch;var St=Ee.exec(je.text);if(!St){if(Pe(je))continue;return}if(!Be(je,St.index+1)){je.ch=St.index+1;continue}return je.ch=St.index+St[0].length,St}}function ut(je){for(;;){var St=je.ch?je.text.lastIndexOf(">",je.ch-1):-1;if(St==-1){if(fe(je))continue;return}if(!Be(je,St+1)){je.ch=St;continue}var kt=je.text.lastIndexOf("/",St),Nt=kt>-1&&!/\S/.test(je.text.slice(kt+1,St));return je.ch=St+1,Nt?"selfClose":"regular"}}function Ge(je,St){for(var kt=[];;){var Nt=Ot(je),Et,vt=je.line,yt=je.ch-(Nt?Nt[0].length:0);if(!Nt||!(Et=et(je)))return;if(Et!="selfClose")if(Nt[1]){for(var Ye=kt.length-1;Ye>=0;--Ye)if(kt[Ye]==Nt[2]){kt.length=Ye;break}if(Ye<0&&(!St||St==Nt[2]))return{tag:Nt[2],from:lt(vt,yt),to:lt(je.line,je.ch)}}else kt.push(Nt[2])}}function Ze(je,St){for(var kt=[];;){var Nt=ut(je);if(!Nt)return;if(Nt=="selfClose"){we(je);continue}var Et=je.line,vt=je.ch,yt=we(je);if(!yt)return;if(yt[1])kt.push(yt[2]);else{for(var Ye=kt.length-1;Ye>=0;--Ye)if(kt[Ye]==yt[2]){kt.length=Ye;break}if(Ye<0&&(!St||St==yt[2]))return{tag:yt[2],from:lt(je.line,je.ch),to:lt(Et,vt)}}}}z.registerHelper("fold","xml",function(je,St){for(var kt=new De(je,St.line,0);;){var Nt=Ot(kt);if(!Nt||kt.line!=St.line)return;var Et=et(kt);if(!Et)return;if(!Nt[1]&&Et!="selfClose"){var vt=lt(kt.line,kt.ch),yt=Ge(kt,Nt[2]);return yt&&ge(yt.from,vt)>0?{from:vt,to:yt.from}:null}}}),z.findMatchingTag=function(je,St,kt){var Nt=new De(je,St.line,St.ch,kt);if(!(Nt.text.indexOf(">")==-1&&Nt.text.indexOf("<")==-1)){var Et=et(Nt),vt=Et&<(Nt.line,Nt.ch),yt=Et&&we(Nt);if(!(!Et||!yt||ge(Nt,St)>0)){var Ye={from:lt(Nt.line,Nt.ch),to:vt,tag:yt[2]};return Et=="selfClose"?{open:Ye,close:null,at:"open"}:yt[1]?{open:Ze(Nt,yt[2]),close:Ye,at:"close"}:(Nt=new De(je,vt.line,vt.ch,kt),{open:Ye,close:Ge(Nt,yt[2]),at:"open"})}}},z.findEnclosingTag=function(je,St,kt,Nt){for(var Et=new De(je,St.line,St.ch,kt);;){var vt=Ze(Et,Nt);if(!vt)break;var yt=new De(je,St.line,St.ch,kt),Ye=Ge(yt,vt.tag);if(Ye)return{open:vt,close:Ye}}},z.scanForClosingTag=function(je,St,kt,Nt){var Et=new De(je,St.line,St.ch,Nt?{from:0,to:Nt}:null);return Ge(Et,kt)}})},89780:function(ln){(function(Zt,ie){ln.exports=ie()})(this,function(){"use strict";var Zt=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Zt),lt=/MSIE \d/.test(Zt),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),Qe=/Edge\/(\d+)/.exec(Zt),xe=lt||ge||Qe,Ee=xe&&(lt?document.documentMode||6:+(Qe||ge)[1]),De=!Qe&&/WebKit\//.test(Zt),Be=De&&/Qt\/\d+\.\d+/.test(Zt),Pe=!Qe&&/Chrome\//.test(Zt),fe=/Opera\//.test(Zt),et=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),Ot=/PhantomJS/.test(Zt),ut=!Qe&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),Ge=/Android/.test(Zt),Ze=ut||Ge||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),je=ut||/Mac/.test(ie),St=/\bCrOS\b/.test(Zt),kt=/win/i.test(ie),Nt=fe&&Zt.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1])),Nt&&Nt>=15&&(fe=!1,De=!0);var Et=je&&(Be||fe&&(Nt==null||Nt<12.11)),vt=z||xe&&Ee>=9;function yt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ye=function(a,y){var x=a.className,b=yt(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 Bt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function gt(a,y){return Bt(a).appendChild(y)}function tt(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 re=0;re=y)return le+(y-re);le+=ue-re,le+=x-le%x,re=ue+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ae(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var Rt=[""];function Vt(a){for(;Rt.length<=a;)Rt.push(ze(Rt)+" ");return Rt[a]}function ze(a){return a[a.length-1]}function Wt(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 he=/[\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 be(a){return a.charCodeAt(0)>=768&&he.test(a)}function ht(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function We(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;rey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var ft=null;function It(a,y,x){var b;ft=null;for(var E=0;Ey)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:ft=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:ft=E)}return b!=null?b:ft}var bt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(me){return me<=247?a.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?y.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ue=/[1n]/;function de(me,Ve,ct){this.level=me,this.from=Ve,this.to=ct}return function(me,Ve){var ct=Ve=="ltr"?"L":"R";if(me.length==0||Ve=="ltr"&&!b.test(me))return!1;for(var Ft=me.length,Tt=[],fn=0;fn-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function sn(a,y){var x=cn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function ke(a){a.prototype.on=function(y,x){jt(this,y,x)},a.prototype.off=function(y,x){en(this,y,x)}}function at(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Mt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function zt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ie(a){at(a),Mt(a)}function Xe(a){return a.target||a.srcElement}function pt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),je&&a.ctrlKey&&y==1&&(y=3),y}var Dt=function(){if(xe&&Ee<9)return!1;var a=tt("div");return"draggable"in a||"dragDrop"in a}(),Gt;function un(a){if(Gt==null){var y=tt("span","\u200B");gt(a,tt("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Gt=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Ee<8))}var x=Gt?tt("span","\u200B"):tt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Sn;function Cn(a){if(Sn!=null)return Sn;var y=gt(a,document.createTextNode("A\u062EA")),x=Te(y,0,1).getBoundingClientRect(),b=Te(y,1,2).getBoundingClientRect();return Bt(a),!x||x.left==x.right?!1:Sn=b.right-x.right<3}var on=` 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 re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},yn=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},gn=function(){var a=tt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$n=null;function bn(a){if($n!=null)return $n;var y=gt(a,tt("span","x")),x=y.getBoundingClientRect(),b=Te(y,0,1).getBoundingClientRect();return $n=Math.abs(x.left-b.left)>1}var vn={},Yt={};function Pn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),vn[a]=y}function mn(a,y){Yt[a]=y}function kn(a){if(typeof a=="string"&&Yt.hasOwnProperty(a))a=Yt[a];else if(a&&typeof a.name=="string"&&Yt.hasOwnProperty(a.name)){var y=Yt[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 kn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return kn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function jn(a,y){y=kn(y);var x=vn[y.name];if(!x)return jn(a,"text/plain");var b=x(a,y);if(Zn.hasOwnProperty(y.name)){var E=Zn[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}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 Zn={};function An(a,y){var x=Zn.hasOwnProperty(a)?Zn[a]:Zn[a]={};Pt(y,x)}function Yn(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 Nn(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 ar(a,y,x){return a.startState?a.startState(y,x):!0}var qn=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};qn.prototype.eol=function(){return this.pos>=this.string.length},qn.prototype.sol=function(){return this.pos==this.lineStart},qn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qn.prototype.next=function(){if(this.posy},qn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qn.prototype.skipToEnd=function(){this.pos=this.string.length},qn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},qn.prototype.backUp=function(a){this.pos-=a},qn.prototype.column=function(){return this.lastColumnPos0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},qn.prototype.current=function(){return this.string.slice(this.start,this.pos)},qn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},qn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},qn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function At(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],re=E.chunkSize();if(y=a.first&&yx?Se(x,At(a,x).text.length):He(y,At(a,y.line).text.length)}function He(a,y){var x=a.ch;return x==null||x>y?Se(a.line,y):x<0?Se(a.line,0):a}function ot(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},Xt.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}},Xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xt.fromSaved=function(a,y,x){return y instanceof qt?new Xt(a,Yn(a.mode,y.state),x,y.lookAhead):new Xt(a,Yn(a.mode,y),x)},Xt.prototype.save=function(a){var y=a!==!1?Yn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new qt(y,this.maxLookAhead):y};function Qt(a,y,x,b){var E=[a.state.modeGen],re={};Vn(a,y.text,a.doc.mode,x,function(me,Ve){return E.push(me,Ve)},re,b);for(var le=x.state,ue=function(me){x.baseTokens=E;var Ve=a.state.overlays[me],ct=1,Ft=0;x.state=!0,Vn(a,y.text,Ve.mode,x,function(Tt,fn){for(var In=ct;FtTt&&E.splice(ct,1,Tt,E[ct+1],Rn),ct+=2,Ft=Math.min(Tt,Rn)}if(fn)if(Ve.opaque)E.splice(In,ct-In,Tt,"overlay "+fn),ct=In+2;else for(;Ina.options.maxHighlightLength&&Yn(a.doc.mode,b.state),re=Qt(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.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 Ln(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new Xt(b,!0,y);var re=Xn(a,y,x),le=re>b.first&&At(b,re-1).stateAfter,ue=le?Xt.fromSaved(b,le,re):new Xt(b,ar(b.mode),re);return b.iter(re,y,function(de){Hn(a,de.text,ue);var me=ue.line;de.stateAfter=me==y-1||me%5==0||me>=E.viewFrom&&mey.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var On=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Fn(a,y,x,b){var E=a.doc,re=E.mode,le;y=$e(E,y);var ue=At(E,y.line),de=Ln(a,y.line,x),me=new qn(ue.text,a.options.tabSize,de),Ve;for(b&&(Ve=[]);(b||me.posa.options.maxHighlightLength?(ue=!1,le&&Hn(a,y,b,Ve.pos),Ve.pos=y.length,ct=null):ct=_n(xn(x,Ve,b.state,Ft),re),Ft){var Tt=Ft[0].name;Tt&&(ct="m-"+(ct?Tt+" "+ct:Tt))}if(!ue||me!=ct){for(;dele;--ue){if(ue<=re.first)return re.first;var de=At(re,ue-1),me=de.stateAfter;if(me&&(!x||ue+(me instanceof qt?me.lookAhead:0)<=re.modeFrontier))return ue;var Ve=ve(de.text,null,a.options.tabSize);(E==null||b>Ve)&&(E=ue-1,b=Ve)}return E}function wn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=At(a,b).stateAfter;if(E&&(!(E instanceof qt)||b+E.lookAhead=y:re.to>y);(b||(b=[])).push(new sr(le,re.from,de?null:re.to))}}return b}function Qn(a,y,x){var b;if(a)for(var E=0;E=y:re.to>y);if(ue||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var de=re.from==null||(le.inclusiveLeft?re.from<=y:re.from0&&ue)for(var or=0;or0)){var Ve=[de,1],ct=Fe(me.from,ue.from),Ft=Fe(me.to,ue.to);(ct<0||!le.inclusiveLeft&&!ct)&&Ve.push({from:me.from,to:ue.from}),(Ft>0||!le.inclusiveRight&&!Ft)&&Ve.push({from:ue.to,to:me.to}),E.splice.apply(E,Ve),de+=Ve.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||ir(b,re.marker)<0)&&(b=re.marker)}return b}function hn(a,y,x,b,E){var re=At(a,y),le=Wn&&re.markedSpans;if(le)for(var ue=0;ue=0&&ct<=0||Ve<=0&&ct>=0)&&(Ve<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Fe(me.to,x)>=0:Fe(me.to,x)>0)||Ve>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Fe(me.from,b)<=0:Fe(me.from,b)<0)))return!0}}}function tn(a){for(var y;y=Jn(a);)a=y.find(-1,!0).line;return a}function Bn(a){for(var y;y=an(a);)a=y.find(1,!0).line;return a}function Gn(a){for(var y,x;y=an(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function dn(a,y){var x=At(a,y),b=tn(x);return x==b?y:Re(b)}function nn(a,y){if(y>a.lastLine())return y;var x=At(a,y),b;if(!En(a,x))return y;for(;b=an(x);)x=b.find(1,!0).line;return Re(x)+1}function En(a,y){var x=Wn&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return Re(this)},ke(Rr);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&&nr(a,E)}function Fr(a){a.parent=null,Er(a)}var Vr={},Hr={};function Xr(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,De?"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 re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Cn(a.display.measure)&&(le=Ut(re,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ue=y!=a.display.externalMeasured&&Re(re);jr(re,b,Dn(a,re,ue)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=Lt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=Lt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(un(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(De){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 sn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Lt(b.pre.className,b.textClass||"")),b}function Ei(a){var y=tt("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,re,le){if(y){var ue=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,me=!1,Ve;if(!de.test(y))a.col+=y.length,Ve=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Ve),xe&&Ee<9&&(me=!0),a.pos+=y.length;else{Ve=document.createDocumentFragment();for(var ct=0;;){de.lastIndex=ct;var Ft=de.exec(y),Tt=Ft?Ft.index-ct:y.length-ct;if(Tt){var fn=document.createTextNode(ue.slice(ct,ct+Tt));xe&&Ee<9?Ve.appendChild(tt("span",[fn])):Ve.appendChild(fn),a.map.push(a.pos,a.pos+Tt,fn),a.col+=Tt,a.pos+=Tt}if(!Ft)break;ct+=Tt+1;var In=void 0;if(Ft[0]==" "){var Rn=a.cm.options.tabSize,Un=Rn-a.col%Rn;In=Ve.appendChild(tt("span",Vt(Un),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=Un}else Ft[0]=="\r"||Ft[0]==` `?(In=Ve.appendChild(tt("span",Ft[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Ft[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Ft[0]),In.setAttribute("cm-text",Ft[0]),xe&&Ee<9?Ve.appendChild(tt("span",[In])):Ve.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||me||re||le){var tr=x||"";b&&(tr+=b),E&&(tr+=E);var Kn=tt("span",[Ve],tr,re);if(le)for(var or in le)le.hasOwnProperty(or)&&or!="style"&&or!="class"&&Kn.setAttribute(or,le[or]);return a.content.appendChild(Kn)}a.content.appendChild(Ve)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Eme&&ct.from<=me));Ft++);if(ct.to>=Ve)return a(x,b,E,re,le,ue,de);a(x,b.slice(0,ct.to-me),E,re,null,ue,de),re=null,b=b.slice(ct.to-me),me=ct.to}}}function Ri(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,re=0;if(!b){for(var le=1;lede||Lr.collapsed&&hr.to==de&&hr.from==de)){if(hr.to!=null&&hr.to!=de&&Tt>hr.to&&(Tt=hr.to,In=""),Lr.className&&(fn+=" "+Lr.className),Lr.css&&(Ft=(Ft?Ft+";":"")+Lr.css),Lr.startStyle&&hr.from==de&&(Rn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==Tt&&(or||(or=[])).push(Lr.endStyle,hr.to),Lr.title&&((tr||(tr={})).title=Lr.title),Lr.attributes)for(var _r in Lr.attributes)(tr||(tr={}))[_r]=Lr.attributes[_r];Lr.collapsed&&(!Un||ir(Un.marker,Lr)<0)&&(Un=hr)}else hr.from>de&&Tt>hr.from&&(Tt=hr.from)}if(or)for(var mi=0;mi=ue)break;for(var ji=Math.min(ue,Tt);;){if(Ve){var Li=de+Ve.length;if(!Un){var ai=Li>ji?Ve.slice(0,ji-de):Ve;y.addToken(y,ai,ct?ct+fn:fn,Rn,de+ai.length==Tt?In:"",Ft,tr)}if(Li>=ji){Ve=Ve.slice(ji-de),de=ji;break}de=Li,Rn=""}Ve=E.slice(re,re=x[me++]),ct=Xr(x[me++],y.cm.options)}}}function Ki(a,y,x){this.line=y,this.rest=Gn(y),this.size=this.rest?Re(ze(this.rest))-x+1:1,this.node=this.text=null,this.hidden=En(a,y)}function qr(a,y,x){for(var b=[],E,re=y;re2&&re.push((de.bottom+me.top)/2-x.top)}}re.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 Ga(a,y){y=tn(y);var x=Re(y),b=a.display.externalMeasured=new Ki(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,gt(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)&&(re=de-ue,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[me+2],ue==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;me&&a[me-2]==a[me-3]&&a[me-1].insertLeft;)b=a[(me-=3)+2],le="left";if(x=="right"&&E==de-ue)for(;me=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),re=E.node,le=E.start,ue=E.end,de=E.collapse,me;if(re.nodeType==3){for(var Ve=0;Ve<4;Ve++){for(;le&&be(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ue0&&(de=b="right");var ct;a.options.lineWrapping&&(ct=re.getClientRects()).length>1?me=ct[b=="right"?ct.length-1:0]:me=re.getBoundingClientRect()}if(xe&&Ee<9&&!le&&(!me||!me.left&&!me.right)){var Ft=re.parentNode.getClientRects()[0];Ft?me={left:Ft.left,right:Ft.left+Ji(a.display),top:Ft.top,bottom:Ft.bottom}:me=ba}for(var Tt=me.top-y.rect.top,fn=me.bottom-y.rect.top,In=(Tt+fn)/2,Rn=y.view.measure.heights,Un=0;Un=b.text.length?(de=b.text.length,me="before"):de<=0&&(de=0,me="after"),!ue)return le(me=="before"?de-1:de,me=="before");function Ve(fn,In,Rn){var Un=ue[In],tr=Un.level==1;return le(Rn?fn-1:fn,tr!=Rn)}var ct=It(ue,de,me),Ft=ft,Tt=Ve(de,ct,me=="before");return Ft!=null&&(Tt.other=Ve(de,Ft,me!="before")),Tt}function Wr(a,y){var x=0;y=$e(a.doc,y),a.options.lineWrapping||(x=Ji(a.display)*y.ch);var b=At(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function Dr(a,y,x,b,E){var re=Se(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Dr(b.first,0,null,-1,-1);var E=st(b,x),re=b.first+b.size-1;if(E>re)return Dr(b.first+b.size-1,At(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=At(b,E);;){var ue=_i(a,le,E,y,x),de=pn(le,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!de)return ue;var me=de.find(1);if(me.line==E)return me;le=At(b,E=me.line)}}function Ci(a,y,x,b){b-=_o(y);var E=y.text.length,re=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},re,E),{begin:re,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 _i(a,y,x,b,E){E-=cr(y);var re=uo(a,y),le=_o(y),ue=0,de=y.text.length,me=!0,Ve=Ut(y,a.doc.direction);if(Ve){var ct=(a.options.lineWrapping?oo:Ui)(a,y,x,re,Ve,b,E);me=ct.level!=1,ue=me?ct.from:ct.to-1,de=me?ct.to:ct.from-1}var Ft=null,Tt=null,fn=Oe(function(vr){var hr=Vi(a,re,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Ft=vr,Tt=hr),!0):!1},ue,de),In,Rn,Un=!1;if(Tt){var tr=b-Tt.left=or.bottom?1:0}return fn=ht(y.text,fn,1),Dr(x,fn,Rn,Un,b-In)}function Ui(a,y,x,b,E,re,le){var ue=Oe(function(ct){var Ft=E[ct],Tt=Ft.level!=1;return ci(Di(a,Se(x,Tt?Ft.to:Ft.from,Tt?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ue];if(ue>0){var me=de.level!=1,Ve=Di(a,Se(x,me?de.from:de.to,me?"after":"before"),"line",y,b);ci(Ve,re,le,!0)&&Ve.top>le&&(de=E[ue-1])}return de}function oo(a,y,x,b,E,re,le){var ue=Ci(a,y,b,le),de=ue.begin,me=ue.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Ve=null,ct=null,Ft=0;Ft=me||Tt.to<=de)){var fn=Tt.level!=1,In=Vi(a,b,fn?Math.min(me,Tt.to)-1:Math.max(de,Tt.from)).right,Rn=InRn)&&(Ve=Tt,ct=Rn)}}return Ve||(Ve=E[E.length-1]),Ve.fromme&&(Ve={from:Ve.from,to:me,level:Ve.level}),Ve}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=tt("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(tt("br"));$i.appendChild(document.createTextNode("x"))}gt(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Bt(a.measure),x||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=tt("span","xxxxxxxxxx"),x=tt("pre",[y],"CodeMirror-line-like");gt(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,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ue=a.display.gutterSpecs[le].className;x[ue]=re.offsetLeft+re.clientLeft+E,b[ue]=re.clientWidth}return{fixedPos:Ka(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ka(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/Ji(a.display)-3);return function(E){if(En(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le0&&(me=At(a.doc,de.line).text).length==de.ch){var Ve=ve(me,me.length,a.options.tabSize)-me.length;de=Se(de.line,Math.max(0,Math.round((re-eo(a.display).left)/Ji(a.display))-Ve))}return de}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Wn&&dn(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 re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.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 ue=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ue&&de?(E.view=E.view.slice(0,ue.index).concat(qr(a,ue.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var me=E.externalMeasured;me&&(x=E.lineN&&y=b.viewTo)){var re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);it(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=wo(a,y),re,le=a.display.view;if(!Wn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ue=a.display.viewFrom,de=0;de0){if(E==le.length-1)return null;re=ue+le[E].size-y,E++}else re=ue-y;y+=re,x+=re}for(;dn(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,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||ue.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(),_a(a))}function Ol(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function _a(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(sn(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),De&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ya(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(sn(a,"blur",a,y),a.state.focused=!1,Ye(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Oa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ve<-.005)&&(nr(E.line,le),Pl(E.line),E.rest))for(var ct=0;cta.display.sizerWidth){var Ft=Math.ceil(ue/Ji(a.display));Ft>a.display.maxLineLength&&(a.display.maxLineLength=Ft,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Pl(a){if(a.widgets)for(var y=0;y=le&&(re=st(y,cr(At(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function js(a,y){if(!Ct(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&&!Ot){var re=tt("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-ri(a.display))+`px; height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function Ws(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Se(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Se(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ue=Di(a,y),de=!x||x==y?ue:Di(a,x);E={left:Math.min(ue.left,de.left),top:Math.min(ue.top,de.top)-b,right:Math.max(ue.left,de.left),bottom:Math.max(ue.bottom,de.bottom)+b};var me=Ja(a,E),Ve=a.doc.scrollTop,ct=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Ve)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-ct)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=io(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ue=a.doc.height+Gi(x),de=y.topue-b;if(y.topE+re){var Ve=Math.min(y.top,(me?ue:y.bottom)-re);Ve!=E&&(le.scrollTop=Ve)}var ct=a.options.fixedGutter?0:x.gutters.offsetWidth,Ft=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ct,Tt=to(a)-x.gutters.offsetWidth,fn=y.right-y.left>Tt;return fn&&(y.right=y.left+Tt),y.left<10?le.scrollLeft=0:y.leftTt+Ft-3&&(le.scrollLeft=y.right+(fn?0:10)-Tt),le}function Qa(a,y){y!=null&&(Ma(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Ma(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Ma(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gs(a,y){Ma(a),a.curOp.scrollToPos=y}function Ma(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Wr(a,y.from),b=Wr(a,y.to);Ml(a,x,b,y.margin)}}function Ml(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Dl(a,y,!0),z&&el(a),na(a,100))}function Dl(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+Gi(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+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=tt("div",[tt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=tt("div",[tt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),jt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),jt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Ee<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 re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"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=je&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=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&&Oa(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&&Ye(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),jt(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&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Oo(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 Po(a){var y=a.curOp;y&&Sr(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Da(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Xs(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Ys(a){var y=a.cm,x=y.display;a.updatedDisplay&&Oa(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+Fi(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 _s(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=Ln(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ue=re.text.length>a.options.maxHighlightLength?Yn(y.mode,b.state):null,de=Qt(a,re,b,!0);ue&&(b.state=ue),re.styles=de.styles;var me=re.styleClasses,Ve=de.classes;Ve?re.styleClasses=Ve:me&&(re.styleClasses=null);for(var ct=!le||le.length!=re.styles.length||me!=Ve&&(!me||!Ve||me.bgClass!=Ve.bgClass||me.textClass!=Ve.textClass),Ft=0;!ct&&Ftx)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 re=0;re=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=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)),Wn&&(re=dn(a.doc,re),le=nn(a.doc,le));var ue=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=cr(At(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=Sl(a);if(!ue&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var me=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(me),Bt(x.cursorDiv),Bt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ue&&(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+Gi(a.display)-io(a),x.top)}),y.visible=Pa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Pa(a.display,a.doc,x));if(!qa(a,y))break;Oa(a);var E=ea(a);Jo(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 Da(a,y);if(qa(a,x)){Oa(a),Bl(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ue(fn){var In=fn.nextSibling;return De&&je&&a.display.currentWheelTarget==fn?fn.style.display="none":fn.parentNode.removeChild(fn),In}for(var de=b.view,me=b.viewFrom,Ve=0;Ve-1&&(Tt=!1),Mi(a,ct,me,x)),Tt&&(Bt(ct.lineNumber),ct.lineNumber.appendChild(document.createTextNode(Ne(a.options,me)))),le=ct.node.nextSibling}me+=ct.size}for(;le;)le=ue(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+Fi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ka(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;lele.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ue||E&&de){if(E&&je&&De){e:for(var me=y.target,Ve=re.view;me!=le;me=me.parentNode)for(var ct=0;ct=0&&Fe(a,b.to())<=0)return x}return-1};var Ur=function(a,y){this.anchor=a,this.head=y};Ur.prototype.from=function(){return mt(this.anchor,this.head)},Ur.prototype.to=function(){return nt(this.anchor,this.head)},Ur.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Ft,Tt){return Fe(Ft.from(),Tt.from())}),x=it(y,E);for(var re=1;re0:de>=0){var me=mt(ue.from(),le.from()),Ve=nt(ue.to(),le.to()),ct=ue.empty()?le.from()==le.head:ue.from()==ue.head;re<=x&&--x,y.splice(--re,2,new Ur(ct?Ve:me,ct?me:Ve))}}return new Zi(y,x)}function po(a,y){return new Zi([new Ur(a,y||a)],0)}function mo(a){return a.text?Se(a.from.line+a.text.length-1,ze(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(Fe(a,y.from)<0)return a;if(Fe(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),Se(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ue.line+1,fn-1),a.insert(ue.line+1,Un)}Tr(a,"change",a,y)}function go(a,y,x){function b(E,re,le){if(E.linked)for(var ue=0;ue1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ze(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ue;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ue=ze(le.changes),Fe(y.from,y.to)==0&&Fe(y.from,ue.to)==0?ue.to=mo(y):le.changes.push(ll(a,y));else{var de=ze(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=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ue||sn(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,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,ze(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gl(E.undone)}function La(a,y){var x=ze(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ul(a,y,x,b){var E=y["spans_"+a.id],re=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]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(ze(ue)[ct]=me[ct],delete me[ct])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=Fe(y,E)<0;re!=Fe(x,E)<0?(E=y,y=x):re!=Fe(y,x)<0&&(y=x)}return new Ur(E,y)}else return new Ur(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Si(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function Xl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re=y.ch:ue.to>y.ch))){if(E&&(sn(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var ct=de.find(b<0?1:-1),Ft=void 0;if((b<0?Ve:me)&&(ct=es(a,ct,-b,ct&&ct.line==y.line?re:null)),ct&&ct.line==y.line&&(Ft=Fe(ct,x))&&(b<0?Ft<0:Ft>0))return Fo(a,ct,y,b,E)}var Tt=de.find(b<0?-1:1);return(b<0?me:Ve)&&(Tt=es(a,Tt,b,Tt.line==y.line?re:null)),Tt?Fo(a,Tt,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,Se(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?$e(a,Se(y.line-1)):null:x>0&&y.ch==(b||At(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]==""&&Fe(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,re){!re&&it(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ue=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,me=0;me=0;--Tt){var fn=Ft(Tt);if(fn)return fn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi(Wt(a.sel.ranges,function(E){return new Ur(Se(E.anchor.line+y,E.anchor.ch),Se(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.linere&&(y={from:y.from,to:Se(re,At(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=rn(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,Se(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ue=!1,de=re.line;a.options.lineWrapping||(de=Re(tn(At(b,re.line))),b.iter(de,le.line+1,function(Tt){if(Tt==E.maxLine)return ue=!0,!0})),b.sel.contains(y.from,y.to)>-1&&_t(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,re.line+y.text.length,function(Tt){var fn=kr(Tt);fn>E.maxLineLength&&(E.maxLine=Tt,E.maxLineLength=fn,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),wn(b,re.line),na(a,400);var me=y.text.length-(le.line-re.line)-1;y.full?ki(a):re.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,re.line,"text"):ki(a,re.line,le.line+1,me);var Ve=Ht(a,"changes"),ct=Ht(a,"change");if(ct||Ve){var Ft={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};ct&&Tr(a,"change",a,Ft),Ve&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ft)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),Fe(b,x)<0&&(re=[b,x],x=re[0],b=re[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 ue=[];this.collapse(ue),this.children=[new la(ue)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var le=E.lines.length%25+25,ue=le;ue10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Ve,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&&Ql(a.doc)),a&&Tr(a,"markerCleared",a,this,b,E),y&&Po(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&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=xt("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(hn(a,y.line,y,x,re)||y.line!=x.line&&hn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}re.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ue=y.line,de=a.cm,me;if(a.iter(ue,x.line+1,function(ct){de&&re.collapsed&&!de.options.lineWrapping&&tn(ct)==de.display.maxLine&&(me=!0),re.collapsed&&ue!=y.line&&nr(ct,0),lr(ct,new sr(re,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),re.collapsed&&a.iter(y.line,x.line+1,function(ct){En(a,ct)&&nr(ct,0)}),re.clearOnEnter&&jt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),de){if(me&&(de.curOp.updateMaxLine=!0),re.collapsed)ki(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ve=y.line;Ve<=x.line;Ve++)fo(de,Ve,"text");re.atomic&&Ql(de.doc),Tr(de,"markerAdded",de,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;de--)$o(this,b[de]);ue?_l(this,ue):this.cm&&Ao(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(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=$e(this,a),y=$e(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ue=0;ue=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-=re,++x}),$e(this,Se(x,y))},indexFromPos:function(a){a=$e(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 Ve=a.dataTransfer.getData("Text");if(Ve){var ct;if(y.state.draggingText&&!y.state.draggingText.copy&&(ct=y.listSelections()),Aa(y.doc,po(x,x)),ct)for(var Ft=0;Ft=0;ue--)zo(a.doc,"",b[ue].from,b[ue].to,"+delete");Ao(a)})}function cl(a,y,x){var b=ht(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 Se(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=Ut(x,y.doc.direction);if(re){var le=E<0?ze(re):re[0],ue=E<0==(le.level==1),de=ue?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Ve=uo(y,x);me=E<0?x.text.length-1:0;var ct=Vi(y,Ve,me).top;me=Oe(function(Ft){return Vi(y,Ve,Ft).top==ct},E<0==(le.level==1)?le.from:le.to-1,me),de=="before"&&(me=cl(x,me,1))}else me=E<0?le.to:le.from;return new Se(b,me,de)}}return new Se(b,E<0?x.text.length:0,E<0?"before":"after")}function Pu(a,y,x,b){var E=Ut(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 re=It(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&Ft>=Ve.begin)){var Tt=ct?"before":"after";return new Se(x.line,Ft,Tt)}}var fn=function(Un,tr,Kn){for(var or=function(_r,mi){return mi?new Se(x.line,ue(_r,1),"before"):new Se(x.line,_r,"after")};Un>=0&&Un0==(vr.level!=1),Lr=hr?Kn.begin:ue(Kn.end,-1);if(vr.from<=Lr&&Lr0?Ve.end:ue(Ve.begin,-1);return Rn!=null&&!(b>0&&Rn==y.text.length)&&(In=fn(b>0?0:E.length-1,b,me(Rn)),In)?In: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=At(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new Se(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Se(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=At(a.doc,E.line-1).text;le&&(E=new Se(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Se(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Ur(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&&Fe(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(!(Ct(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){De||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=pt(a),re=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):Xe(a)==x.scroller&&at(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(vt?y.display.input.onContextMenu(a):Ol(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,gs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=le(a,x)!=wt}finally{a.state.suppressEdits=!1}return ue})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=St?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"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=je?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(je?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(Ae(Il,a),0):a.curOp.focus=Je();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&Dt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(Fe((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(Fe(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,re=!1,le=hi(a,function(me){De&&(E.scroller.draggable=!1),a.state.draggingText=!1,en(E.wrapper.ownerDocument,"mouseup",le),en(E.wrapper.ownerDocument,"mousemove",ue),en(E.scroller,"dragstart",de),en(E.scroller,"drop",le),re||(at(me),b.addNew||Ba(a.doc,x,null,null,b.extend),De&&!et||xe&&Ee==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(me){re=re||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},de=function(){return re=!0};De&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),jt(E.wrapper.ownerDocument,"mouseup",le),jt(E.wrapper.ownerDocument,"mousemove",ue),jt(E.scroller,"dragstart",de),jt(E.scroller,"drop",le),Ol(a),setTimeout(function(){return E.input.focus()},20)}function Os(a,y,x){if(x=="char")return new Ur(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Ur(Se(y.line,0),$e(a.doc,Se(y.line+1,0)));var b=x(a,y);return new Ur(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;at(y);var le,ue,de=re.sel,me=de.ranges;if(b.addNew&&!b.extend?(ue=re.sel.contains(x),ue>-1?le=me[ue]:le=new Ur(x,x)):(le=re.sel.primary(),ue=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Ur(x,x)),x=So(a,y,!0,!0),ue=-1;else{var Ve=Os(a,x,b.unit);b.extend?le=sl(le,Ve.anchor,Ve.head,b.extend):le=Ve}b.addNew?ue==-1?(ue=me.length,Si(re,Qi(a,me.concat([le]),ue),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ue].empty()&&b.unit=="char"&&!b.extend?(Si(re,Qi(a,me.slice(0,ue).concat(me.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ue,le,Ke):(ue=0,Si(re,new Zi([le],0),Ke),de=re.sel);var ct=x;function Ft(Kn){if(Fe(ct,Kn)!=0)if(ct=Kn,b.unit=="rectangle"){for(var or=[],vr=a.options.tabSize,hr=ve(At(re,x.line).text,x.ch,vr),Lr=ve(At(re,Kn.line).text,Kn.ch,vr),_r=Math.min(hr,Lr),mi=Math.max(hr,Lr),Qr=Math.min(x.line,Kn.line),ji=Math.min(a.lastLine(),Math.max(x.line,Kn.line));Qr<=ji;Qr++){var Li=At(re,Qr).text,ai=Jt(Li,_r,vr);_r==mi?or.push(new Ur(Se(Qr,ai),Se(Qr,ai))):Li.length>ai&&or.push(new Ur(Se(Qr,ai),Se(Qr,Jt(Li,mi,vr))))}or.length||or.push(new Ur(x,x)),Si(re,Qi(a,de.ranges.slice(0,ue).concat(or),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Kn)}else{var Bi=le,bi=Os(a,Kn,b.unit),di=Bi.anchor,li;Fe(bi.anchor,di)>0?(li=bi.head,di=mt(Bi.from(),bi.anchor)):(li=bi.anchor,di=nt(Bi.to(),bi.head));var ei=de.ranges.slice(0);ei[ue]=Hu(a,new Ur($e(re,di),li)),Si(re,Qi(a,ei,ue),Ke)}}var Tt=E.wrapper.getBoundingClientRect(),fn=0;function In(Kn){var or=++fn,vr=So(a,Kn,!0,b.unit=="rectangle");if(vr)if(Fe(vr,ct)!=0){a.curOp.focus=Je(),Ft(vr);var hr=Pa(E,re);(vr.line>=hr.to||vr.lineTt.bottom?20:0;Lr&&setTimeout(hi(a,function(){fn==or&&(E.scroller.scrollTop+=Lr,In(Kn))}),50)}}function Rn(Kn){a.state.selectingText=!1,fn=1/0,Kn&&(at(Kn),E.input.focus()),en(E.wrapper.ownerDocument,"mousemove",Un),en(E.wrapper.ownerDocument,"mouseup",tr),re.history.lastSelOrigin=null}var Un=hi(a,function(Kn){Kn.buttons===0||!pt(Kn)?Rn(Kn):In(Kn)}),tr=hi(a,Rn);a.state.selectingText=tr,jt(E.wrapper.ownerDocument,"mousemove",Un),jt(E.wrapper.ownerDocument,"mouseup",tr)}function Hu(a,y){var x=y.anchor,b=y.head,E=At(a.doc,x.line);if(Fe(x,b)==0&&x.sticky==b.sticky)return y;var re=Ut(E);if(!re)return y;var le=It(re,x.ch,x.sticky),ue=re[le];if(ue.from!=x.ch&&ue.to!=x.ch)return y;var de=le+(ue.from==x.ch==(ue.level!=1)?0:1);if(de==0||de==re.length)return y;var me;if(b.line!=x.line)me=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ve=It(re,b.ch,b.sticky),ct=Ve-le||(b.ch-x.ch)*(ue.level==1?-1:1);Ve==de-1||Ve==de?me=ct<0:me=ct>0}var Ft=re[de+(me?-1:0)],Tt=me==(Ft.level==1),fn=Tt?Ft.from:Ft.to,In=Tt?"after":"before";return x.ch==fn&&x.sticky==In?y:new Ur(new Se(x.line,fn,In),b)}function Ps(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Ft){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&at(y);var le=a.display,ue=le.lineDiv.getBoundingClientRect();if(re>ue.bottom||!Ht(a,x))return zt(y);re-=ue.top-le.viewOffset;for(var de=0;de=E){var Ve=st(a.doc,re),ct=a.display.gutterSpecs[de];return sn(a,x,a,Ve,ct.className,y),zt(y)}}}function ml(a,y){return Ps(a,y,"gutterClick",!0)}function Ms(a,y){vi(a.display,y)||ju(a,y)||Ct(a,y,"contextmenu")||vt||a.display.input.onContextMenu(y)}function ju(a,y){return Ht(a,"gutterContextMenu")?Ps(a,y,"gutterContextMenu",!1):!1}function Ds(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,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ue,de,me){me!=Zo&&re(ue,de,me)}:re)}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 re=[],le=b.doc.first;b.doc.iter(function(de){for(var me=0;;){var Ve=de.text.indexOf(E,me);if(Ve==-1)break;me=Ve+E.length,re.push(Se(le,Ve))}le++});for(var ue=re.length-1;ue>=0;ue--)zo(b.doc,E,re[ue],Se(re[ue].line,re[ue].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ze?"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",!kt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ds(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ue=re!=Zo&&$a(re);ue&&ue.detach&&ue.detach(b,le),le.attach&&le.attach(b,ue||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!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?Ka(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,Jo,!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,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,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,re=y?jt:en;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function Gu(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ye(a.display.wrapper,"CodeMirror-wrap"),Or(a)),Xa(a),ki(a),Co(a),setTimeout(function(){return No(a)},100)}function Jr(a,y){var x=this;if(!(this instanceof Jr))return new Jr(a,y);this.options=y=y?Pt(y):{},Pt(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 Jr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ds(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 ce,keySeq:null,specialChars:null},y.autofocus&&!Ze&&re.input.focus(),xe&&Ee<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Oo(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ze||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&_a(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 ue=0;ue20*20}jt(y.scroller,"touchstart",function(de){if(!Ct(a,de)&&!re(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var me=+new Date;y.activeTouch={start:me,moved:!1,prev:me-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),jt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),jt(y.scroller,"touchend",function(de){var me=y.activeTouch;if(me&&!vi(y,de)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Ve=a.coordsChar(y.activeTouch,"page"),ct;!me.prev||le(me,me.prev)?ct=new Ur(Ve,Ve):!me.prev.prev||le(me,me.prev.prev)?ct=a.findWordAt(Ve):ct=new Ur(Se(Ve.line,0),$e(a.doc,Se(Ve.line+1,0))),a.setSelection(ct.anchor,ct.head),a.focus(),at(de)}E()}),jt(y.scroller,"touchcancel",E),jt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),sn(a,"scroll",a))}),jt(y.scroller,"mousewheel",function(de){return $l(a,de)}),jt(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),jt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){Ct(a,de)||Ie(de)},over:function(de){Ct(a,de)||(Cu(a,de),Ie(de))},start:function(de){return xu(a,de)},drop:hi(a,bu),leave:function(de){Ct(a,de)||fs(a)}};var ue=y.input.getField();jt(ue,"keyup",function(de){return ws.call(a,de)}),jt(ue,"keydown",hi(a,Ss)),jt(ue,"keypress",hi(a,Es)),jt(ue,"focus",function(de){return _a(a,de)}),jt(ue,"blur",function(de){return Bo(a,de)})}var gl=[];Jr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Ln(a,y).state:x="prev");var le=a.options.tabSize,ue=At(E,y),de=ve(ue.text,null,le);ue.stateAfter&&(ue.stateAfter=null);var me=ue.text.match(/^\s*/)[0],Ve;if(!b&&!/\S/.test(ue.text))Ve=0,x="not";else if(x=="smart"&&(Ve=E.mode.indent(re,ue.text.slice(me.length),ue.text),Ve==wt||Ve>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ve=ve(At(E,y-1).text,null,le):Ve=0:x=="add"?Ve=de+a.options.indentUnit:x=="subtract"?Ve=de-a.options.indentUnit:typeof x=="number"&&(Ve=de+x),Ve=Math.max(0,Ve);var ct="",Ft=0;if(a.options.indentWithTabs)for(var Tt=Math.floor(Ve/le);Tt;--Tt)Ft+=le,ct+=" ";if(Ftle,de=on(y),me=null;if(ue&&b.ranges.length>1)if(qi&&qi.text.join(` `)==y){if(b.ranges.length%qi.text.length==0){me=[];for(var Ve=0;Ve=0;Ft--){var Tt=b.ranges[Ft],fn=Tt.from(),In=Tt.to();Tt.empty()&&(x&&x>0?fn=Se(fn.line,fn.ch-x):a.state.overwrite&&!ue?In=Se(In.line,Math.min(At(re,In.line).text.length,In.ch+ze(de).length)):ue&&qi&&qi.lineWise&&qi.text.join(` `)==de.join(` `)&&(fn=In=Se(fn.line,0)));var Rn={from:fn,to:In,text:me?me[Ft%me.length]:de,origin:E||(ue?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Rn),Tr(a,"inputRead",a,Rn)}y&&!ue&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ct),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 re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ue=0;ue-1){le=va(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(At(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;bre&&(va(this,ue.head.line,b,!0),re=ue.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ue.from(),me=ue.to(),Ve=Math.max(re,de.line);re=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var ct=Ve;ct0&&ul(this.doc,le,new Ur(de,Ft[le].to()),Me)}}}),getTokenAt:function(b,E){return Fn(this,b,E)},getLineTokens:function(b,E){return Fn(this,Se(b),E,!0)},getTokenTypeAt:function(b){b=$e(this.doc,b);var E=Dn(this,At(this.doc,b.line)),re=0,le=(E.length-1)/2,ue=b.ch,de;if(ue==0)de=E[2];else for(;;){var me=re+le>>1;if((me?E[me*2-1]:0)>=ue)le=me;else if(E[me*2+1]de&&(b=de,le=!0),ue=At(this.doc,b)}else ue=b;return To(this,ue,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-cr(ue):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ue){var de=this.display;b=Di(this,$e(this.doc,b));var me=b.bottom,Ve=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")me=b.top;else if(le=="above"||le=="near"){var ct=Math.max(de.wrapper.clientHeight,this.doc.height),Ft=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>ct)&&b.top>E.offsetHeight?me=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=ct&&(me=b.bottom),Ve+E.offsetWidth>Ft&&(Ve=Ft-E.offsetWidth)}E.style.top=me+"px",E.style.left=E.style.right="",ue=="right"?(Ve=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Ve=0:ue=="middle"&&(Ve=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ve+"px"),re&&Zs(this,{left:Ve,top:me,right:Ve+E.offsetWidth,bottom:me+E.offsetHeight})},triggerOnKeyDown:Oi(Ss),triggerOnKeyPress:Oi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Oi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Oi(function(b){Ls(this,b)}),findPosH:function(b,E,re,le){var ue=1;E<0&&(ue=-1,E=-E);for(var de=$e(this.doc,b),me=0;me0&&Ve(re.charAt(le-1));)--le;for(;ue.5||this.options.lineWrapping)&&Xa(this),sn(this,"refresh",this)}),swapDoc:Oi(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(),Qo(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}},ke(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ue=At(a,y.line),de=E&&a.direction=="rtl"?-x:x;function me(){var tr=y.line+de;return tr=a.first+a.size?!1:(y=new Se(tr,y.ch,y.sticky),ue=At(a,tr))}function Ve(tr){var Kn;if(b=="codepoint"){var or=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(or)?Kn=null:Kn=new Se(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(or>=55296&&or<56320?2:1))),-x)}else E?Kn=Pu(a.cm,ue,y,x):Kn=dl(ue,y,x);if(Kn==null)if(!tr&&me())y=fl(E,a.cm,ue,y.line,de);else return!1;else y=Kn;return!0}if(b=="char"||b=="codepoint")Ve();else if(b=="column")Ve(!0);else if(b=="word"||b=="group")for(var ct=null,Ft=b=="group",Tt=a.cm&&a.cm.getHelper(y,"wordChars"),fn=!0;!(x<0&&!Ve(!fn));fn=!1){var In=ue.text.charAt(y.ch)||` `,Rn=se(In,Tt)?"w":Ft&&In==` `?"n":!Ft||/\s/.test(In)?null:"p";if(Ft&&!fn&&!Rn&&(Rn="s"),ct&&ct!=Rn){x<0&&(x=1,Ve(),y.sticky="after");break}if(Rn&&(ct=Rn),x>0&&!Ve(!fn))break}var Un=Na(a,y,re,le,!0);return ye(re,Un)&&(Un.hitSide=!0),Un}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ue-.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 me;me=yi(a,re,le),!!me.outside;){if(x<0?le<=0:le>=E.height){me.hitSide=!0;break}le+=x*5}return me}var Kr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kr.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 re(ue){for(var de=ue.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}jt(E,"paste",function(ue){!re(ue)||Ct(b,ue)||Ts(ue,b)||Ee<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),jt(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),jt(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),jt(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),jt(E,"touchstart",function(){return x.forceCompositionEnd()}),jt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ue){if(!(!re(ue)||Ct(b,ue))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Bs(b);ja({lineWise:!0,text:de.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,Me),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var me=qi.text.join(` `);if(ue.clipboardData.setData("Text",me),ue.clipboardData.getData("Text")==me){ue.preventDefault();return}}var Ve=Ns(),ct=Ve.firstChild;b.display.lineSpace.insertBefore(Ve,b.display.lineSpace.firstChild),ct.value=qi.text.join(` `);var Ft=document.activeElement;Le(ct),setTimeout(function(){b.display.lineSpace.removeChild(Ve),Ft.focus(),Ft==E&&x.showPrimarySelection()},50)}}jt(E,"copy",le),jt(E,"cut",le)},Kr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Kr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Kr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Kr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kr.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&&Fs(y,b)||{node:ue[0].measure.map[2],offset:0},me=E.linea.firstLine()&&(b=Se(b.line-1,At(a.doc,b.line-1).length)),E.ch==At(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var re,le,ue;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=Re(y.view[0].line),ue=y.view[0].node):(le=Re(y.view[re].line),ue=y.view[re-1].node.nextSibling);var de=wo(a,E.line),me,Ve;if(de==y.view.length-1?(me=y.viewTo-1,Ve=y.lineDiv.lastChild):(me=Re(y.view[de+1].line)-1,Ve=y.view[de+1].node.previousSibling),!ue)return!1;for(var ct=a.doc.splitLines(Xu(a,ue,Ve,le,me)),Ft=rn(a.doc,Se(le,0),Se(me,At(a.doc,me).text.length));ct.length>1&&Ft.length>1;)if(ze(ct)==ze(Ft))ct.pop(),Ft.pop(),me--;else if(ct[0]==Ft[0])ct.shift(),Ft.shift(),le++;else break;for(var Tt=0,fn=0,In=ct[0],Rn=Ft[0],Un=Math.min(In.length,Rn.length);Ttb.ch&&tr.charCodeAt(tr.length-fn-1)==Kn.charCodeAt(Kn.length-fn-1);)Tt--,fn++;ct[ct.length-1]=tr.slice(0,tr.length-fn).replace(/^\u200b+/,""),ct[0]=ct[0].slice(Tt).replace(/\u200b+$/,"");var vr=Se(le,Tt),hr=Se(me,Ft.length?ze(Ft).length-fn:0);if(ct.length>1||ct[0]||Fe(vr,hr))return zo(a.doc,ct,vr,hr,"+input"),!0},Kr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kr.prototype.reset=function(){this.forceCompositionEnd()},Kr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kr.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))},Kr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return ki(a.cm)})},Kr.prototype.setUneditable=function(a){a.contentEditable="false"},Kr.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))},Kr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Kr.prototype.onContextMenu=function(){},Kr.prototype.resetPosition=function(){},Kr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=At(a.doc,y.line),E=ko(x,b,y.line),re=Ut(b,a.doc.direction),le="left";if(re){var ue=It(re,y.ch);le=ue%2?"right":"left"}var de=xa(E.map,y.ch,le);return de.offset=de.collapse=="right"?de.end:de.start,de}function Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Go(a,y){return y&&(a.bad=!0),a}function Xu(a,y,x,b,E){var re="",le=!1,ue=a.doc.lineSeparator(),de=!1;function me(Tt){return function(fn){return fn.id==Tt}}function Ve(){le&&(re+=ue,de&&(re+=ue),le=de=!1)}function ct(Tt){Tt&&(Ve(),re+=Tt)}function Ft(Tt){if(Tt.nodeType==1){var fn=Tt.getAttribute("cm-text");if(fn){ct(fn);return}var In=Tt.getAttribute("cm-marker"),Rn;if(In){var Un=a.findMarks(Se(b,0),Se(E+1,0),me(+In));Un.length&&(Rn=Un[0].find(0))&&ct(rn(a.doc,Rn.from,Rn.to).join(ue));return}if(Tt.getAttribute("contenteditable")=="false")return;var tr=/^(pre|div|p|li|table|br)$/i.test(Tt.nodeName);if(!/^br$/i.test(Tt.nodeName)&&Tt.textContent.length==0)return;tr&&Ve();for(var Kn=0;Kn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),jt(E,"paste",function(le){Ct(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!Ct(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=Bs(b);ja({lineWise:!0,text:ue.text}),le.type=="cut"?b.setSelections(ue.ranges,null,Me):(x.prevInput="",E.value=ue.text.join(` `),Le(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}jt(E,"cut",re),jt(E,"copy",re),jt(a.scroller,"paste",function(le){if(!(vi(a,le)||Ct(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ue=new Event("paste");ue.clipboardData=le.clipboardData,E.dispatchEvent(ue)}}),jt(a.lineSpace,"selectstart",function(le){vi(a,le)||at(le)}),jt(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"})}}),jt(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=wl(a);if(a.options.moveInputWithCursor){var E=Di(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;gt(x.cursorDiv,a.cursors),gt(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&&Le(this.textarea),xe&&Ee>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&Ee>=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"&&(!Ze||Je()!=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||yn(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(xe&&Ee>=9&&this.hasSelection===E||je&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ue=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(){xe&&Ee>=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 re=So(x,a),le=b.scroller.scrollTop;if(!re||fe)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(re)==-1&&hi(x,Si)(x.doc,po(re),Me);var de=E.style.cssText,me=y.wrapper.style.cssText,Ve=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ve.top-5)+"px; left: "+(a.clientX-Ve.left-5)+`px; z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ct;De&&(ct=window.scrollY),b.input.focus(),De&&window.scrollTo(null,ct),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Tt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ft(){if(E.selectionStart!=null){var In=x.somethingSelected(),Rn="\u200B"+(In?E.value:"");E.value="\u21DA",E.value=Rn,y.prevInput=In?"":"\u200B",E.selectionStart=1,E.selectionEnd=Rn.length,b.selForContextMenu=x.doc.sel}}function Tt(){if(y.contextMenuPending==Tt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,E.style.cssText=de,xe&&Ee<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Ee<9)&&Ft();var In=0,Rn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):In++<10?b.detectingSelectAll=setTimeout(Rn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Rn,200)}}if(xe&&Ee>=9&&Ft(),vt){Ie(a);var fn=function(){en(window,"mouseup",fn),setTimeout(Tt,20)};jt(window,"mouseup",fn)}else setTimeout(Tt,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 _u(a,y){if(y=y?Pt(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=Je();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(jt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.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&&(en(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=Jr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ue}function Ju(a){a.off=en,a.on=jt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=on,a.countColumn=ve,a.findColumn=Jt,a.isWordChar=oe,a.Pass=wt,a.signal=sn,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=Se,a.cmpPos=Fe,a.modes=vn,a.mimeModes=Yt,a.resolveMode=kn,a.getMode=jn,a.modeExtensions=Zn,a.extendMode=An,a.copyState=Yn,a.startState=ar,a.innerMode=Nn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Ou,a.StringStream=qn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=at,a.e_stopPropagation=Mt,a.e_stop=Ie,a.addClass=pe,a.contains=_e,a.rmClass=Ye,a.keyNames=yo}Wu(Jr),Uu(Jr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&it(Qu,Za)<0&&(Jr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return ke(Ti),Jr.inputStyles={textarea:oi,contenteditable:Kr},Jr.defineMode=function(a){!Jr.defaults.mode&&a!="null"&&(Jr.defaults.mode=a),Pn.apply(this,arguments)},Jr.defineMIME=mn,Jr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Jr.defineMIME("text/plain","null"),Jr.defineExtension=function(a,y){Jr.prototype[a]=y},Jr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Jr.fromTextArea=_u,Ju(Jr),Jr.version="5.58.2",Jr})},25419:function(ln,Zt,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(lt,ge){var Qe=z.getMode(lt,"text/html"),xe=Qe.name=="null";function Ee(ve){if(z.findModeByName){var ce=z.findModeByName(ve);ce&&(ve=ce.mime||ce.mimes[0])}var it=z.getMode(lt,ve);return it.name=="null"?null:it}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var De={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Be in De)De.hasOwnProperty(Be)&&ge.tokenTypeOverrides[Be]&&(De[Be]=ge.tokenTypeOverrides[Be]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,we=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ot=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ut=/^[^#!\[\]*_\\<>` "'(~:]+/,Ge=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ze=/^\s*\[[^\]]+?\]:.*$/,je=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,St=" ";function kt(ve,ce,it){return ce.f=ce.inline=it,it(ve,ce)}function Nt(ve,ce,it){return ce.f=ce.block=it,it(ve,ce)}function Et(ve){return!ve||!/\S/.test(ve.string)}function vt(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==Ye){var ce=xe;if(!ce){var it=z.innerMode(Qe,ve.htmlState);ce=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}ce&&(ve.f=xt,ve.block=yt,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function yt(ve,ce){var it=ve.column()===ce.indentation,$t=Et(ce.prevLine.stream),wt=ce.indentedCode,Me=ce.prevLine.hr,Ke=ce.list!==!1,qe=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Jt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,Ke)){for(ce.list=null;Jt=4&&(wt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||$t))return ve.skipToEnd(),ce.indentedCode=!0,De.code;if(ve.eatSpace())return null;if(it&&ce.indentation<=qe&&(ze=ve.match(we))&&ze[1].length<=6)return ce.quote=0,ce.header=ze[1].length,ce.thisLine.header=!0,ge.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,gt(ce);if(ce.indentation<=qe&&ve.eat(">"))return ce.quote=it?1:ce.quote+1,ge.highlightFormatting&&(ce.formatting="quote"),ve.eatSpace(),gt(ce);if(!Vt&&!ce.setext&&it&&ce.indentation<=qe&&(ze=ve.match(fe))){var Wt=ze[1]?"ol":"ul";return ce.indentation=Jt+ve.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,ge.taskLists&&ve.match(et,!1)&&(ce.taskList=!0),ce.f=ce.inline,ge.highlightFormatting&&(ce.formatting=["list","list-"+Wt]),gt(ce)}else{if(it&&ce.indentation<=qe&&(ze=ve.match(Ge,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(ze[1]+"+ *$"),ce.localMode=ge.fencedCodeBlockHighlighting&&Ee(ze[2]||ge.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=z.startState(ce.localMode)),ce.f=ce.block=Bt,ge.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,gt(ce);if(ce.setext||(!Rt||!Ke)&&!ce.quote&&ce.list===!1&&!ce.code&&!Vt&&!Ze.test(ve.string)&&(ze=ve.lookAhead(1))&&(ze=ze.match(Ot)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ve.skipToEnd(),ge.highlightFormatting&&(ce.formatting="header")):(ce.header=ze[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,gt(ce);if(Vt)return ve.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,De.hr;if(ve.peek()==="[")return kt(ve,ce,Lt)}return kt(ve,ce,ce.inline)}function Ye(ve,ce){var it=Qe.token(ve,ce.htmlState);if(!xe){var $t=z.innerMode(Qe,ce.htmlState);($t.mode.name=="xml"&&$t.state.tagStart===null&&!$t.state.context&&$t.state.tokenize.isInText||ce.md_inside&&ve.current().indexOf(">")>-1)&&(ce.f=xt,ce.block=yt,ce.htmlState=null)}return it}function Bt(ve,ce){var it=ce.listStack[ce.listStack.length-1]||0,$t=ce.indentation=ve.quote?ce.push(De.formatting+"-"+ve.formatting[it]+"-"+ve.quote):ce.push("error"))}if(ve.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(ve.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(ve.linkHref?ce.push(De.linkHref,"url"):(ve.strong&&ce.push(De.strong),ve.em&&ce.push(De.em),ve.strikethrough&&ce.push(De.strikethrough),ve.emoji&&ce.push(De.emoji),ve.linkText&&ce.push(De.linkText),ve.code&&ce.push(De.code),ve.image&&ce.push(De.image),ve.imageAltText&&ce.push(De.imageAltText,"link"),ve.imageMarker&&ce.push(De.imageMarker)),ve.header&&ce.push(De.header,De.header+"-"+ve.header),ve.quote&&(ce.push(De.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ve.quote?ce.push(De.quote+"-"+ve.quote):ce.push(De.quote+"-"+ge.maxBlockquoteDepth)),ve.list!==!1){var $t=(ve.listStack.length-1)%3;$t?$t===1?ce.push(De.list2):ce.push(De.list3):ce.push(De.list1)}return ve.trailingSpaceNewLine?ce.push("trailing-space-new-line"):ve.trailingSpace&&ce.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function tt(ve,ce){if(ve.match(ut,!0))return gt(ce)}function xt(ve,ce){var it=ce.text(ve,ce);if(typeof it!="undefined")return it;if(ce.list)return ce.list=null,gt(ce);if(ce.taskList){var $t=ve.match(et,!0)[1]===" ";return $t?ce.taskOpen=!0:ce.taskClosed=!0,ge.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,gt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ve.match(/^#+$/,!0))return ge.highlightFormatting&&(ce.formatting="header"),gt(ce);var wt=ve.next();if(ce.linkTitle){ce.linkTitle=!1;var Me=wt;wt==="("&&(Me=")"),Me=(Me+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ke="^\\s*(?:[^"+Me+"\\\\]+|\\\\\\\\|\\\\.)"+Me;if(ve.match(new RegExp(Ke),!0))return De.linkHref}if(wt==="`"){var qe=ce.formatting;ge.highlightFormatting&&(ce.formatting="code"),ve.eatWhile("`");var Jt=ve.current().length;if(ce.code==0&&(!ce.quote||Jt==1))return ce.code=Jt,gt(ce);if(Jt==ce.code){var Rt=gt(ce);return ce.code=0,Rt}else return ce.formatting=qe,gt(ce)}else if(ce.code)return gt(ce);if(wt==="\\"&&(ve.next(),ge.highlightFormatting)){var Vt=gt(ce),ze=De.formatting+"-escape";return Vt?Vt+" "+ze:ze}if(wt==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ge.highlightFormatting&&(ce.formatting="image"),gt(ce);if(wt==="["&&ce.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ge.highlightFormatting&&(ce.formatting="image"),gt(ce);if(wt==="]"&&ce.imageAltText){ge.highlightFormatting&&(ce.formatting="image");var Vt=gt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=_e,Vt}if(wt==="["&&!ce.image)return ce.linkText&&ve.match(/^.*?\]/)||(ce.linkText=!0,ge.highlightFormatting&&(ce.formatting="link")),gt(ce);if(wt==="]"&&ce.linkText){ge.highlightFormatting&&(ce.formatting="link");var Vt=gt(ce);return ce.linkText=!1,ce.inline=ce.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?_e:xt,Vt}if(wt==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Te,ge.highlightFormatting&&(ce.formatting="link");var Vt=gt(ce);return Vt?Vt+=" ":Vt="",Vt+De.linkInline}if(wt==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Te,ge.highlightFormatting&&(ce.formatting="link");var Vt=gt(ce);return Vt?Vt+=" ":Vt="",Vt+De.linkEmail}if(ge.xml&&wt==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Wt=ve.string.indexOf(">",ve.pos);if(Wt!=-1){var dt=ve.string.substring(ve.start,Wt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(dt)&&(ce.md_inside=!0)}return ve.backUp(1),ce.htmlState=z.startState(Qe),Nt(ve,ce,Ye)}if(ge.xml&&wt==="<"&&ve.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(wt==="*"||wt==="_"){for(var ae=1,te=ve.pos==1?" ":ve.string.charAt(ve.pos-2);ae<3&&ve.eat(wt);)ae++;var ee=ve.peek()||" ",oe=!/\s/.test(ee)&&(!je.test(ee)||/\s/.test(te)||je.test(te)),se=!/\s/.test(te)&&(!je.test(te)||/\s/.test(ee)||je.test(ee)),ne=null,he=null;if(ae%2&&(!ce.em&&oe&&(wt==="*"||!se||je.test(te))?ne=!0:ce.em==wt&&se&&(wt==="*"||!oe||je.test(ee))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(wt==="*"||!se||je.test(te))?he=!0:ce.strong==wt&&se&&(wt==="*"||!oe||je.test(ee))&&(he=!1)),he!=null||ne!=null){ge.highlightFormatting&&(ce.formatting=ne==null?"strong":he==null?"em":"strong em"),ne===!0&&(ce.em=wt),he===!0&&(ce.strong=wt);var Rt=gt(ce);return ne===!1&&(ce.em=!1),he===!1&&(ce.strong=!1),Rt}}else if(wt===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return gt(ce);ve.backUp(1)}if(ge.strikethrough){if(wt==="~"&&ve.eatWhile(wt)){if(ce.strikethrough){ge.highlightFormatting&&(ce.formatting="strikethrough");var Rt=gt(ce);return ce.strikethrough=!1,Rt}else if(ve.match(/^[^\s]/,!1))return ce.strikethrough=!0,ge.highlightFormatting&&(ce.formatting="strikethrough"),gt(ce)}else if(wt===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return gt(ce);ve.backUp(2)}}if(ge.emoji&&wt===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ge.highlightFormatting&&(ce.formatting="emoji");var be=gt(ce);return ce.emoji=!1,be}return wt===" "&&(ve.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),gt(ce)}function Te(ve,ce){var it=ve.next();if(it===">"){ce.f=ce.inline=xt,ge.highlightFormatting&&(ce.formatting="link");var $t=gt(ce);return $t?$t+=" ":$t="",$t+De.linkInline}return ve.match(/^[^>]+/,!0),De.linkInline}function _e(ve,ce){if(ve.eatSpace())return null;var it=ve.next();return it==="("||it==="["?(ce.f=ce.inline=pe(it==="("?")":"]"),ge.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,gt(ce)):"error"}var Je={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(ve){return function(ce,it){var $t=ce.next();if($t===ve){it.f=it.inline=xt,ge.highlightFormatting&&(it.formatting="link-string");var wt=gt(it);return it.linkHref=!1,wt}return ce.match(Je[ve]),it.linkHref=!0,gt(it)}}function Lt(ve,ce){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Le,ve.next(),ge.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,gt(ce)):kt(ve,ce,xt)}function Le(ve,ce){if(ve.match(/^\]:/,!0)){ce.f=ce.inline=Ae,ge.highlightFormatting&&(ce.formatting="link");var it=gt(ce);return ce.linkText=!1,it}return ve.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Ae(ve,ce){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?ce.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=xt,De.linkHref+" url")}var Pt={startState:function(){return{f:yt,prevLine:{stream:null},thisLine:{stream:null},block:yt,htmlState:null,indentation:0,inline:xt,text:tt,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&z.copyState(Qe,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?z.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,ce){if(ce.formatting=!1,ve!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,ve.match(/^\s*$/,!0))return vt(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:ve},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Ye)){var it=ve.match(/^\s*/,!0)[0].replace(/\t/g,St).length;if(ce.indentation=it,ce.indentationDiff=null,it>0)return null}}return ce.f(ve,ce)},innerMode:function(ve){return ve.block==Ye?{state:ve.htmlState,mode:Qe}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Pt}},indent:function(ve,ce,it){return ve.block==Ye&&Qe.indent?Qe.indent(ve.htmlState,ce,it):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ce,it):z.Pass},blankLine:vt,getType:gt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Pt},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(ln,Zt,ie){(function(z){z(ie(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 lt=0;lt-1&&Qe.substring(De+1,Qe.length);if(Be)return z.findModeByExtension(Be)},z.findModeByName=function(Qe){Qe=Qe.toLowerCase();for(var xe=0;xe0?ut.cmdState[ut.cmdState.length-1]:null}function Ee(ut){var Ge=ut.cmdState.pop();Ge&&Ge.closeBracket()}function De(ut){for(var Ge=ut.cmdState,Ze=Ge.length-1;Ze>=0;Ze--){var je=Ge[Ze];if(je.name!="DEFAULT")return je}return{styleIdentifier:function(){return null}}}function Be(ut,Ge,Ze){return function(){this.name=ut,this.bracketNo=0,this.style=Ge,this.styles=Ze,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=Be("importmodule","tag",["string","builtin"]),Pe.documentclass=Be("documentclass","tag",["","atom"]),Pe.usepackage=Be("usepackage","tag",["atom"]),Pe.begin=Be("begin","tag",["atom"]),Pe.end=Be("end","tag",["atom"]),Pe.label=Be("label","tag",["atom"]),Pe.ref=Be("ref","tag",["atom"]),Pe.eqref=Be("eqref","tag",["atom"]),Pe.cite=Be("cite","tag",["atom"]),Pe.bibitem=Be("bibitem","tag",["atom"]),Pe.Bibitem=Be("Bibitem","tag",["atom"]),Pe.RBibitem=Be("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(ut,Ge){ut.f=Ge}function et(ut,Ge){var Ze;if(ut.match(/^\\[a-zA-Z@]+/)){var je=ut.current().slice(1);return Ze=Pe.hasOwnProperty(je)?Pe[je]:Pe.DEFAULT,Ze=new Ze,Qe(Ge,Ze),fe(Ge,Ot),Ze.style}if(ut.match(/^\\[$&%#{}_]/)||ut.match(/^\\[,;!\/\\]/))return"tag";if(ut.match("\\["))return fe(Ge,function(kt,Nt){return we(kt,Nt,"\\]")}),"keyword";if(ut.match("\\("))return fe(Ge,function(kt,Nt){return we(kt,Nt,"\\)")}),"keyword";if(ut.match("$$"))return fe(Ge,function(kt,Nt){return we(kt,Nt,"$$")}),"keyword";if(ut.match("$"))return fe(Ge,function(kt,Nt){return we(kt,Nt,"$")}),"keyword";var St=ut.next();if(St=="%")return ut.skipToEnd(),"comment";if(St=="}"||St=="]"){if(Ze=xe(Ge),Ze)Ze.closeBracket(St),fe(Ge,Ot);else return"error";return"bracket"}else return St=="{"||St=="["?(Ze=Pe.DEFAULT,Ze=new Ze,Qe(Ge,Ze),"bracket"):/\d/.test(St)?(ut.eatWhile(/[\w.%]/),"atom"):(ut.eatWhile(/[\w\-_]/),Ze=De(Ge),Ze.name=="begin"&&(Ze.argument=ut.current()),Ze.styleIdentifier())}function we(ut,Ge,Ze){if(ut.eatSpace())return null;if(Ze&&ut.match(Ze))return fe(Ge,et),"keyword";if(ut.match(/^\\[a-zA-Z@]+/))return"tag";if(ut.match(/^[a-zA-Z]+/))return"variable-2";if(ut.match(/^\\[$&%#{}_]/)||ut.match(/^\\[,;!\/]/)||ut.match(/^[\^_&]/))return"tag";if(ut.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ut.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var je=ut.next();return je=="{"||je=="}"||je=="["||je=="]"||je=="("||je==")"?"bracket":je=="%"?(ut.skipToEnd(),"comment"):"error"}function Ot(ut,Ge){var Ze=ut.peek(),je;return Ze=="{"||Ze=="["?(je=xe(Ge),je.openBracket(Ze),ut.eat(Ze),fe(Ge,et),"bracket"):/[ \t\r]/.test(Ze)?(ut.eat(Ze),null):(fe(Ge,et),Ee(Ge),et(ut,Ge))}return{startState:function(){var ut=ge.inMathMode?function(Ge,Ze){return we(Ge,Ze)}:et;return{cmdState:[],f:ut}},copyState:function(ut){return{cmdState:ut.cmdState.slice(),f:ut.f}},token:function(ut,Ge){return Ge.f(ut,Ge)},blankLine:function(ut){ut.f=et,ut.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(ln,Zt,ie){(function(z){z(ie(89780))})(function(z){"use strict";var lt={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},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Qe,xe){var Ee=Qe.indentUnit,De={},Be=xe.htmlMode?lt:ge;for(var Pe in Be)De[Pe]=Be[Pe];for(var Pe in xe)De[Pe]=xe[Pe];var fe,et;function we(Te,_e){function Je(Le){return _e.tokenize=Le,Le(Te,_e)}var pe=Te.next();if(pe=="<")return Te.eat("!")?Te.eat("[")?Te.match("CDATA[")?Je(Ge("atom","]]>")):null:Te.match("--")?Je(Ge("comment","-->")):Te.match("DOCTYPE",!0,!0)?(Te.eatWhile(/[\w\._\-]/),Je(Ze(1))):null:Te.eat("?")?(Te.eatWhile(/[\w\._\-]/),_e.tokenize=Ge("meta","?>"),"meta"):(fe=Te.eat("/")?"closeTag":"openTag",_e.tokenize=Ot,"tag bracket");if(pe=="&"){var Lt;return Te.eat("#")?Te.eat("x")?Lt=Te.eatWhile(/[a-fA-F\d]/)&&Te.eat(";"):Lt=Te.eatWhile(/[\d]/)&&Te.eat(";"):Lt=Te.eatWhile(/[\w\.\-:]/)&&Te.eat(";"),Lt?"atom":"error"}else return Te.eatWhile(/[^&<]/),null}we.isInText=!0;function Ot(Te,_e){var Je=Te.next();if(Je==">"||Je=="/"&&Te.eat(">"))return _e.tokenize=we,fe=Je==">"?"endTag":"selfcloseTag","tag bracket";if(Je=="=")return fe="equals",null;if(Je=="<"){_e.tokenize=we,_e.state=Nt,_e.tagName=_e.tagStart=null;var pe=_e.tokenize(Te,_e);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(Je)?(_e.tokenize=ut(Je),_e.stringStartCol=Te.column(),_e.tokenize(Te,_e)):(Te.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ut(Te){var _e=function(Je,pe){for(;!Je.eol();)if(Je.next()==Te){pe.tokenize=Ot;break}return"string"};return _e.isInAttribute=!0,_e}function Ge(Te,_e){return function(Je,pe){for(;!Je.eol();){if(Je.match(_e)){pe.tokenize=we;break}Je.next()}return Te}}function Ze(Te){return function(_e,Je){for(var pe;(pe=_e.next())!=null;){if(pe=="<")return Je.tokenize=Ze(Te+1),Je.tokenize(_e,Je);if(pe==">")if(Te==1){Je.tokenize=we;break}else return Je.tokenize=Ze(Te-1),Je.tokenize(_e,Je)}return"meta"}}function je(Te,_e,Je){this.prev=Te.context,this.tagName=_e,this.indent=Te.indented,this.startOfLine=Je,(De.doNotIndent.hasOwnProperty(_e)||Te.context&&Te.context.noIndent)&&(this.noIndent=!0)}function St(Te){Te.context&&(Te.context=Te.context.prev)}function kt(Te,_e){for(var Je;;){if(!Te.context||(Je=Te.context.tagName,!De.contextGrabbers.hasOwnProperty(Je)||!De.contextGrabbers[Je].hasOwnProperty(_e)))return;St(Te)}}function Nt(Te,_e,Je){return Te=="openTag"?(Je.tagStart=_e.column(),Et):Te=="closeTag"?vt:Nt}function Et(Te,_e,Je){return Te=="word"?(Je.tagName=_e.current(),et="tag",Bt):De.allowMissingTagName&&Te=="endTag"?(et="tag bracket",Bt(Te,_e,Je)):(et="error",Et)}function vt(Te,_e,Je){if(Te=="word"){var pe=_e.current();return Je.context&&Je.context.tagName!=pe&&De.implicitlyClosed.hasOwnProperty(Je.context.tagName)&&St(Je),Je.context&&Je.context.tagName==pe||De.matchClosing===!1?(et="tag",yt):(et="tag error",Ye)}else return De.allowMissingTagName&&Te=="endTag"?(et="tag bracket",yt(Te,_e,Je)):(et="error",Ye)}function yt(Te,_e,Je){return Te!="endTag"?(et="error",yt):(St(Je),Nt)}function Ye(Te,_e,Je){return et="error",yt(Te,_e,Je)}function Bt(Te,_e,Je){if(Te=="word")return et="attribute",gt;if(Te=="endTag"||Te=="selfcloseTag"){var pe=Je.tagName,Lt=Je.tagStart;return Je.tagName=Je.tagStart=null,Te=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(pe)?kt(Je,pe):(kt(Je,pe),Je.context=new je(Je,pe,Lt==Je.indented)),Nt}return et="error",Bt}function gt(Te,_e,Je){return Te=="equals"?tt:(De.allowMissing||(et="error"),Bt(Te,_e,Je))}function tt(Te,_e,Je){return Te=="string"?xt:Te=="word"&&De.allowUnquoted?(et="string",Bt):(et="error",Bt(Te,_e,Je))}function xt(Te,_e,Je){return Te=="string"?xt:Bt(Te,_e,Je)}return{startState:function(Te){var _e={tokenize:we,state:Nt,indented:Te||0,tagName:null,tagStart:null,context:null};return Te!=null&&(_e.baseIndent=Te),_e},token:function(Te,_e){if(!_e.tagName&&Te.sol()&&(_e.indented=Te.indentation()),Te.eatSpace())return null;fe=null;var Je=_e.tokenize(Te,_e);return(Je||fe)&&Je!="comment"&&(et=null,_e.state=_e.state(fe||Je,Te,_e),et&&(Je=et=="error"?Je+" error":et)),Je},indent:function(Te,_e,Je){var pe=Te.context;if(Te.tokenize.isInAttribute)return Te.tagStart==Te.indented?Te.stringStartCol+1:Te.indented+Ee;if(pe&&pe.noIndent)return z.Pass;if(Te.tokenize!=Ot&&Te.tokenize!=we)return Je?Je.match(/^(\s*)/)[0].length:0;if(Te.tagName)return De.multilineTagIndentPastTag!==!1?Te.tagStart+Te.tagName.length+2:Te.tagStart+Ee*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/$/,blockCommentStart:"",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(Te){Te.state==tt&&(Te.state=Bt)},xmlCurrentTag:function(Te){return Te.tagName?{name:Te.tagName,close:Te.type=="closeTag"}:null},xmlCurrentContext:function(Te){for(var _e=[],Je=Te.context;Je;Je=Je.prev)Je.tagName&&_e.push(Je.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(ln,Zt,ie){"use strict";ie.d(Zt,{hP:function(){return dt}});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 lt(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ge(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function he(Oe){try{ht(oe.next(Oe))}catch(We){ne(We)}}function be(Oe){try{ht(oe.throw(Oe))}catch(We){ne(We)}}function ht(Oe){var We;Oe.done?se(Oe.value):(We=Oe.value,We instanceof ee?We:new ee(function(ft){ft(We)})).then(he,be)}ht((oe=oe.apply(ae,te||[])).next())})}function Qe(ae,te){var ee,oe,se,ne,he={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function be(ht){return function(Oe){return function(We){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,oe&&(se=2&We[0]?oe.return:We[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,We[1])).done)return se;switch(oe=0,se&&(We=[2&We[0],se.value]),We[0]){case 0:case 1:se=We;break;case 4:return he.label++,{value:We[1],done:!1};case 5:he.label++,oe=We[1],We=[0];continue;case 7:We=he.ops.pop(),he.trys.pop();continue;default:if(se=he.trys,!((se=se.length>0&&se[se.length-1])||We[0]!==6&&We[0]!==2)){he=0;continue}if(We[0]===3&&(!se||We[1]>se[0]&&We[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 he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ne.typeName),he.innerHTML=ne.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,ne)}),ee.buttons.push(he),ee.markerButtons.push(he)}),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}(),ut=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 we("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 we("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new we("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new we("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new we("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 we("toolbox-panel-row_colors",` background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new we("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 we("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new et("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new et("."+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 he;ne.uiStyleSettings=se.uiStyleSettings;var be=document.createElement("div");be.className=se.toolboxButtonStyleClass.name+" "+((he=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:se.toolboxButtonStyleColorsClass.name),be.innerHTML=ne.icon,be.title=ne.title,be.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(be),se.buttonRow.appendChild(be)}),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,he){var be,ht;ne.className=ee.toolboxButtonStyleClass.name+" "+(he===oe?""+((be=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be:ee.toolboxActiveButtonStyleColorsClass.name):""+((ht=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ht!==void 0?ht:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ge=function(ae,te){this.title=ae,this.icon=te},Ze=function(ae){function te(ee,oe,se,ne){var he=ae.call(this,ee,ne||'')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=oe,he.currentColor=se,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return lt(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,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=ne-2+"px",he.style.height=ne-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(ne+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(ee,he)});var be=document.createElement("div");return be.style.display="inline-block",be.style.width=ne-2+"px",be.style.height=ne-2+"px",be.style.backgroundColor=ee,be.style.borderRadius=ne/2+"px",ee==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.innerHTML=` `),he.appendChild(be),he},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}(Ge),je=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}(),St=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}(),kt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.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}(),Nt=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}(),Et=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(Ee.createTransform()),ne.setupControlBox(),ne}return lt(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=Ee.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 he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,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,he=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,he=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),he>=0?(this.top=ne,this.height=he):(this.top=ne+he,this.height=-he),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=Ee.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=Ee.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=Ee.createGroup();var ee=Ee.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.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 St,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 kt;return ee.visual.transform.baseVal.appendItem(Ee.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,he=(this.height+this.CB_DISTANCE)/2-ee/2,be=this.height+this.CB_DISTANCE-ee/2,ht=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,ht,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,ht,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,be),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,be),this.positionGrip(this.controlGrips.bottomRight.visual,ht,be),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:Nt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Nt.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(Nt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Nt.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}(je),vt=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 lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ee.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),Ee.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&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ee.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}(Et),yt=function(ae){function te(ee,oe,se,ne){var he=ae.call(this,ee,ne||'')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=se,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return lt(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 he=document.createElement("div");he.innerText=se.toString(),he.style.marginRight="5px",ne.appendChild(he);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.style.alignItems="center";var ht=document.createElement("hr");ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,ht.style.flexGrow="2",be.appendChild(ht),ne.appendChild(be),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}(Ge),Ye=function(ae){function te(ee,oe,se,ne){var he=ae.call(this,ee,ne||'')||this;return he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=se,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return lt(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 he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var be=` `;he.innerHTML=be,ne.appendChild(he),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}(Ge),Bt=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 Ze("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ye("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(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}(vt),gt=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"},tt=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 lt(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=Ee.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 kt;return ee.visual.transform.baseVal.appendItem(Ee.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}(je),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 Ze("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ye("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(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=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.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()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.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}(tt),Te=function(ae){function te(ee,oe,se,ne){var he=ae.call(this,ee,ne||'')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=se,he.setCurrentFont=he.setCurrentFont.bind(he),he}return lt(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 he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=se,he.style.overflow="hidden";var be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(be),ne.appendChild(he),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}(Ge),_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 Ze("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Te("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return lt(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=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.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(Ee.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&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.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&&Ee.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&&Ee.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}(Et),Je=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 Ze("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return lt(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=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var ee=Ee.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),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.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],he=oe[2],be=oe[3],ht=!1,Oe=0;Oe0&&(ht=!0,Oebe&&(be=Oe),We>he&&(he=We));if(ht){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(he-se)/this.pixelRatio,this.height=(be-ne)/this.pixelRatio;var ft=document.createElement("canvas");ft.width=he-se,ft.height=be-ne,ft.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,he-se,be-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(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.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}(Et),pe=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 lt(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(be){var ht="both";switch(be){case 0:ht="both";break;case 1:ht="start";break;case 2:ht="end";break;case 3:ht="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=ht===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Oe.addEventListener("click",function(){ee.setCurrentType(ht,Oe)}),oe.appendChild(Oe),ht==="both"||ht==="start"){var We=document.createElement("div");We.style.display="flex",We.style.alignItems="center",We.style.minHeight="20px",We.innerHTML=` `,We.style.marginLeft="5px",Oe.appendChild(We)}var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.style.flexGrow="2";var It=document.createElement("hr");if(It.style.minWidth="20px",It.style.border="0px",It.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),It.style.flexGrow="2",ft.appendChild(It),Oe.appendChild(ft),ht==="both"||ht==="end"){var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.innerHTML=` `,bt.style.marginRight="5px",Oe.appendChild(bt)}ne.typeBoxes.push(Oe)},ne=this,he=0;he<4;he++)se(he);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}(Ge),Lt=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 pe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return lt(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=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.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",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.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),Le=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 Ze("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return lt(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}(vt),Ae=function(ae){function te(ee,oe,se,ne){var he=ae.call(this,ee,ne||'')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=se,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return lt(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 he=document.createElement("div");he.innerText=100*se+"%",ne.appendChild(he),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}(Ge),Pt=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 Ze("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Ae("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return lt(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ee.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}(Le),ve='',ce='',it=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 Ze("Text color",se.defaultColorSet,ne.color,ve),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ze("Fill color",se.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Te("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new kt,ne.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return lt(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(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.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&&(Ee.setAttributes(this.bgRectangle,[["fill",ee]]),Ee.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 lt(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}($t),Ke=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}(),qe=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 Ze("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ye("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(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=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.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()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.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}(tt),Jt=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 Ze("Line color",xe(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ze("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new yt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ye("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Te("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ze("Text color",se.defaultColorSet,ne.textColor,ve),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return lt(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=Ee.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ee.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ee.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=Ee.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),Ee.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')"]]),Ee.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&&Ee.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&&Ee.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),Ee.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&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Ee.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}(Et),Rt=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}(),Vt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return lt(te,ae),te}(Rt),ze=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 lt(te,ae),te}(Rt),Wt=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}(),dt=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 gt,this._isOpen=!1,this.undoRedoManager=new Ke,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 Wt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(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[Bt,Je,Lt,_e,Me,$t,Pt,it,wt,Le,xt,qe,Jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Bt,Je,Lt,_e,$t,Pt,it]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Bt,Je,Lt,_e,Pt]},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(),De.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Rt(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Qe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Be).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 Rt(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 Rt(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 Ot(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 ze(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 ze(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var be=new ze(te,void 0,!0);he(be),be.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(he){var be=se.markers[he];se.setCurrentMarker(se.markers[he]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(ht){return ht(new ze(te,be))})},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){De.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Rt(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 Rt(te))}))},ae.instanceCounter=0,ae}()},6551:function(ln,Zt,ie){"use strict";ie.d(Zt,{ZP:function(){return De}});var z=ie(72190),lt=ie(59301),ge=ie(47273),Qe=0,xe=(0,ge.Z)();function Ee(){var Be;return xe?(Be=Qe,Qe+=1):Be="TEST_OR_SSR",Be}function De(Be){var Pe=lt.useState(),fe=(0,z.Z)(Pe,2),et=fe[0],we=fe[1];return lt.useEffect(function(){we("rc_select_".concat(Ee()))},[]),Be||et}},37463:function(ln,Zt,ie){"use strict";ie.d(Zt,{Ac:function(){return Ct},Xo:function(){return Ht},Wx:function(){return at},ZP:function(){return nr},lk:function(){return Nt}});var z=ie(60499),lt=ie(77654),ge=ie(18642),Qe=ie(85899),xe=ie(72190),Ee=ie(42244),De=ie(43749),Be=ie(18929),Pe=ie(48736),fe=ie(59301),et=ie(92310),we=ie.n(et),Ot=ie(34280),ut=ie(49658),Ge=ie(8654),Ze=function(st){var Ce=st.className,Ne=st.customizeIcon,Se=st.customizeIconProps,Fe=st.children,ye=st.onMouseDown,Ue=st.onClick,nt=typeof Ne=="function"?Ne(Se):Ne;return fe.createElement("span",{className:Ce,onMouseDown:function(rt){rt.preventDefault(),ye==null||ye(rt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ue,"aria-hidden":!0},nt!==void 0?nt:fe.createElement("span",{className:we()(Ce.split(/\s+/).map(function(mt){return"".concat(mt,"-icon")}))},Fe))},je=Ze,St=function(st,Ce,Ne,Se,Fe){var ye=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ue=arguments.length>6?arguments[6]:void 0,nt=arguments.length>7?arguments[7]:void 0,mt=fe.useMemo(function(){if((0,De.Z)(Se)==="object")return Se.clearIcon;if(Fe)return Fe},[Se,Fe]),rt=fe.useMemo(function(){return!!(!ye&&Se&&(Ne.length||Ue)&&!(nt==="combobox"&&Ue===""))},[Se,ye,Ne.length,Ue,nt]);return{allowClear:rt,clearIcon:fe.createElement(je,{className:"".concat(st,"-clear"),onMouseDown:Ce,customizeIcon:mt},"\xD7")}},kt=fe.createContext(null);function Nt(){return fe.useContext(kt)}function Et(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,st=fe.useState(!1),Ce=(0,xe.Z)(st,2),Ne=Ce[0],Se=Ce[1],Fe=fe.useRef(null),ye=function(){window.clearTimeout(Fe.current)};fe.useEffect(function(){return ye},[]);var Ue=function(mt,rt){ye(),Fe.current=window.setTimeout(function(){Se(mt),rt&&rt()},Re)};return[Ne,Ue,ye]}function vt(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,st=fe.useRef(null),Ce=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function Ne(Se){(Se||st.current===null)&&(st.current=Se),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){st.current=null},Re)}return[function(){return st.current},Ne]}function yt(Re,st,Ce,Ne){var Se=fe.useRef(null);Se.current={open:st,triggerOpen:Ce,customizedTrigger:Ne},fe.useEffect(function(){function Fe(ye){var Ue;if(!((Ue=Se.current)!==null&&Ue!==void 0&&Ue.customizedTrigger)){var nt=ye.target;nt.shadowRoot&&ye.composed&&(nt=ye.composedPath()[0]||nt),Se.current.open&&Re().filter(function(mt){return mt}).every(function(mt){return!mt.contains(nt)&&mt!==nt})&&Se.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Fe),function(){return window.removeEventListener("mousedown",Fe)}},[])}var Ye=ie(10228);function Bt(Re){return Re&&![Ye.Z.ESC,Ye.Z.SHIFT,Ye.Z.BACKSPACE,Ye.Z.TAB,Ye.Z.WIN_KEY,Ye.Z.ALT,Ye.Z.META,Ye.Z.WIN_KEY_RIGHT,Ye.Z.CTRL,Ye.Z.SEMICOLON,Ye.Z.EQUALS,Ye.Z.CAPS_LOCK,Ye.Z.CONTEXT_MENU,Ye.Z.F1,Ye.Z.F2,Ye.Z.F3,Ye.Z.F4,Ye.Z.F5,Ye.Z.F6,Ye.Z.F7,Ye.Z.F8,Ye.Z.F9,Ye.Z.F10,Ye.Z.F11,Ye.Z.F12].includes(Re)}var gt=ie(26112),tt=ie(83836);function xt(Re,st,Ce){var Ne=(0,Qe.Z)((0,Qe.Z)({},Re),Ce?st:{});return Object.keys(st).forEach(function(Se){var Fe=st[Se];typeof Fe=="function"&&(Ne[Se]=function(){for(var ye,Ue=arguments.length,nt=new Array(Ue),mt=0;mtHn&&(En="".concat(Tn.slice(0,Hn),"..."))}var cr=function(Or){Or&&Or.stopPropagation(),_n(tn)};return typeof On=="function"?ir(dn,En,Bn,nn,cr):Mr(tn,En,Bn,nn,cr)},Jn=function(tn){if(!Se.length)return null;var Bn=typeof xn=="function"?xn(tn):xn;return typeof On=="function"?ir(void 0,Bn,!1,!1,void 0,!0):Mr({title:Bn},Bn,!1)},an=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},fe.createElement(Lt,{ref:nt,open:Fe,prefixCls:Ne,id:Ce,inputElement:null,disabled:rt,autoFocus:ot,autoComplete:qt,editable:Ir,activeDescendantId:Xt,value:Br,onKeyDown:wn,onMouseDown:er,onChange:Vn,onPaste:Xn,onCompositionStart:Wn,onCompositionEnd:dr,onBlur:pr,tabIndex:Qt,attrs:(0,gt.Z)(st,!0)}),fe.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),pn=fe.createElement(tt.Z,{prefixCls:"".concat(Er,"-overflow"),data:Se,renderItem:rr,renderRest:Jn,suffix:an,itemKey:Me,maxCount:Ln});return fe.createElement("span",{className:"".concat(Er,"-wrap")},pn,!Se.length&&!Br&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},mt))},Jt=qe,Rt=function(st){var Ce=st.inputElement,Ne=st.prefixCls,Se=st.id,Fe=st.inputRef,ye=st.disabled,Ue=st.autoFocus,nt=st.autoComplete,mt=st.activeDescendantId,rt=st.mode,$e=st.open,He=st.values,ot=st.placeholder,qt=st.tabIndex,Xt=st.showSearch,Qt=st.searchValue,Dn=st.activeValue,Ln=st.maxLength,Hn=st.onInputKeyDown,Mn=st.onInputMouseDown,xn=st.onInputChange,On=st.onInputPaste,Fn=st.onInputCompositionStart,_n=st.onInputCompositionEnd,Vn=st.onInputBlur,Xn=st.title,wn=fe.useState(!1),er=(0,xe.Z)(wn,2),Wn=er[0],dr=er[1],pr=rt==="combobox",sr=pr||Xt,ur=He[0],yr=Qt||"";pr&&Dn&&!Wn&&(yr=Dn),fe.useEffect(function(){pr&&dr(!1)},[pr,Dn]);var lr=rt!=="combobox"&&!$e&&!Xt?!1:!!yr,fr=Xn===void 0?$t(ur):Xn,Qn=fe.useMemo(function(){return ur?null:fe.createElement("span",{className:"".concat(Ne,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},ot)},[ur,lr,ot,Ne]);return fe.createElement("span",{className:"".concat(Ne,"-selection-wrap")},fe.createElement("span",{className:"".concat(Ne,"-selection-search")},fe.createElement(Lt,{ref:Fe,prefixCls:Ne,id:Se,open:$e,inputElement:Ce,disabled:ye,autoFocus:Ue,autoComplete:nt,editable:sr,activeDescendantId:mt,value:yr,onKeyDown:Hn,onMouseDown:Mn,onChange:function(br){dr(!0),xn(br)},onPaste:On,onCompositionStart:Fn,onCompositionEnd:_n,onBlur:Vn,tabIndex:qt,attrs:(0,gt.Z)(st,!0),maxLength:pr?Ln:void 0})),!pr&&ur?fe.createElement("span",{className:"".concat(Ne,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,Qn)},Vt=Rt,ze=function(st,Ce){var Ne=(0,fe.useRef)(null),Se=(0,fe.useRef)(!1),Fe=st.prefixCls,ye=st.open,Ue=st.mode,nt=st.showSearch,mt=st.tokenWithEnter,rt=st.disabled,$e=st.prefix,He=st.autoClearSearchValue,ot=st.onSearch,qt=st.onSearchSubmit,Xt=st.onToggleOpen,Qt=st.onInputKeyDown,Dn=st.onInputBlur,Ln=st.domRef;fe.useImperativeHandle(Ce,function(){return{focus:function(fr){Ne.current.focus(fr)},blur:function(){Ne.current.blur()}}});var Hn=vt(0),Mn=(0,xe.Z)(Hn,2),xn=Mn[0],On=Mn[1],Fn=function(fr){var Qn=fr.which,mr=Ne.current instanceof HTMLTextAreaElement;!mr&&ye&&(Qn===Ye.Z.UP||Qn===Ye.Z.DOWN)&&fr.preventDefault(),Qt&&Qt(fr),Qn===Ye.Z.ENTER&&Ue==="tags"&&!Se.current&&!ye&&(qt==null||qt(fr.target.value)),!(mr&&!ye&&~[Ye.Z.UP,Ye.Z.DOWN,Ye.Z.LEFT,Ye.Z.RIGHT].indexOf(Qn))&&Bt(Qn)&&Xt(!0)},_n=function(){On(!0)},Vn=(0,fe.useRef)(null),Xn=function(fr){ot(fr,!0,Se.current)!==!1&&Xt(!0)},wn=function(){Se.current=!0},er=function(fr){Se.current=!1,Ue!=="combobox"&&Xn(fr.target.value)},Wn=function(fr){var Qn=fr.target.value;if(mt&&Vn.current&&/[\r\n]/.test(Vn.current)){var mr=Vn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qn=Qn.replace(mr,Vn.current)}Vn.current=null,Xn(Qn)},dr=function(fr){var Qn=fr.clipboardData,mr=Qn==null?void 0:Qn.getData("text");Vn.current=mr||""},pr=function(fr){var Qn=fr.target;if(Qn!==Ne.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Ne.current.focus()}):Ne.current.focus()}},sr=function(fr){var Qn=xn();fr.target!==Ne.current&&!Qn&&!(Ue==="combobox"&&rt)&&fr.preventDefault(),(Ue!=="combobox"&&(!nt||!Qn)||!ye)&&(ye&&He!==!1&&ot("",!0,!1),Xt())},ur={inputRef:Ne,onInputKeyDown:Fn,onInputMouseDown:_n,onInputChange:Wn,onInputPaste:dr,onInputCompositionStart:wn,onInputCompositionEnd:er,onInputBlur:Dn},yr=Ue==="multiple"||Ue==="tags"?fe.createElement(Jt,(0,z.Z)({},st,ur)):fe.createElement(Vt,(0,z.Z)({},st,ur));return fe.createElement("div",{ref:Ln,className:"".concat(Fe,"-selector"),onClick:pr,onMouseDown:sr},$e&&fe.createElement("div",{className:"".concat(Fe,"-prefix")},$e),yr)},Wt=fe.forwardRef(ze),dt=Wt,ae=ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(st){var Ce=st===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"}}},oe=function(st,Ce){var Ne=st.prefixCls,Se=st.disabled,Fe=st.visible,ye=st.children,Ue=st.popupElement,nt=st.animation,mt=st.transitionName,rt=st.dropdownStyle,$e=st.dropdownClassName,He=st.direction,ot=He===void 0?"ltr":He,qt=st.placement,Xt=st.builtinPlacements,Qt=st.dropdownMatchSelectWidth,Dn=st.dropdownRender,Ln=st.dropdownAlign,Hn=st.getPopupContainer,Mn=st.empty,xn=st.getTriggerDOMNode,On=st.onPopupVisibleChange,Fn=st.onPopupMouseEnter,_n=(0,Ee.Z)(st,te),Vn="".concat(Ne,"-dropdown"),Xn=Ue;Dn&&(Xn=Dn(Ue));var wn=fe.useMemo(function(){return Xt||ee(Qt)},[Xt,Qt]),er=nt?"".concat(Vn,"-").concat(nt):mt,Wn=typeof Qt=="number",dr=fe.useMemo(function(){return Wn?null:Qt===!1?"minWidth":"width"},[Qt,Wn]),pr=rt;Wn&&(pr=(0,Qe.Z)((0,Qe.Z)({},pr),{},{width:Qt}));var sr=fe.useRef(null);return fe.useImperativeHandle(Ce,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),fe.createElement(ae.Z,(0,z.Z)({},_n,{showAction:On?["click"]:[],hideAction:On?["click"]:[],popupPlacement:qt||(ot==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:wn,prefixCls:Vn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Fn},Xn),ref:sr,stretch:dr,popupAlign:Ln,popupVisible:Fe,getPopupContainer:Hn,popupClassName:we()($e,(0,ge.Z)({},"".concat(Vn,"-empty"),Mn)),popupStyle:pr,getTriggerDOMNode:xn,onPopupVisibleChange:On}),ye)},se=fe.forwardRef(oe),ne=se,he=ie(48745);function be(Re,st){var Ce=Re.key,Ne;return"value"in Re&&(Ne=Re.value),Ce!=null?Ce:Ne!==void 0?Ne:"rc-index-key-".concat(st)}function ht(Re){return typeof Re!="undefined"&&!Number.isNaN(Re)}function Oe(Re,st){var Ce=Re||{},Ne=Ce.label,Se=Ce.value,Fe=Ce.options,ye=Ce.groupLabel,Ue=Ne||(st?"children":"label");return{label:Ue,value:Se||"value",options:Fe||"options",groupLabel:ye||Ue}}function We(Re){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=st.fieldNames,Ne=st.childrenAsData,Se=[],Fe=Oe(Ce,!1),ye=Fe.label,Ue=Fe.value,nt=Fe.options,mt=Fe.groupLabel;function rt($e,He){Array.isArray($e)&&$e.forEach(function(ot){if(He||!(nt in ot)){var qt=ot[Ue];Se.push({key:be(ot,Se.length),groupOption:He,data:ot,label:ot[ye],value:qt})}else{var Xt=ot[mt];Xt===void 0&&Ne&&(Xt=ot.label),Se.push({key:be(ot,Se.length),group:!0,data:ot,label:Xt}),rt(ot[nt],!0)}})}return rt(Re,!1),Se}function ft(Re){var st=(0,Qe.Z)({},Re);return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),st}}),st}var It=function(st,Ce,Ne){if(!Ce||!Ce.length)return null;var Se=!1,Fe=function Ue(nt,mt){var rt=(0,he.Z)(mt),$e=rt[0],He=rt.slice(1);if(!$e)return[nt];var ot=nt.split($e);return Se=Se||ot.length>1,ot.reduce(function(qt,Xt){return[].concat((0,lt.Z)(qt),(0,lt.Z)(Ue(Xt,He)))},[]).filter(Boolean)},ye=Fe(st,Ce);return Se?typeof Ne!="undefined"?ye.slice(0,Ne):ye:null},bt=fe.createContext(null),Ut=bt;function Kt(Re){var st=Re.visible,Ce=Re.values;if(!st)return null;var Ne=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ce.slice(0,Ne).map(function(Se){var Fe=Se.label,ye=Se.value;return["number","string"].includes((0,De.Z)(Fe))?Fe:ye}).join(", ")),Ce.length>Ne?", ...":null)}var jt=["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"],cn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],en=function(st){return st==="tags"||st==="multiple"},sn=fe.forwardRef(function(Re,st){var Ce,Ne=Re.id,Se=Re.prefixCls,Fe=Re.className,ye=Re.showSearch,Ue=Re.tagRender,nt=Re.direction,mt=Re.omitDomProps,rt=Re.displayValues,$e=Re.onDisplayValuesChange,He=Re.emptyOptions,ot=Re.notFoundContent,qt=ot===void 0?"Not Found":ot,Xt=Re.onClear,Qt=Re.mode,Dn=Re.disabled,Ln=Re.loading,Hn=Re.getInputElement,Mn=Re.getRawInputElement,xn=Re.open,On=Re.defaultOpen,Fn=Re.onDropdownVisibleChange,_n=Re.activeValue,Vn=Re.onActiveValueChange,Xn=Re.activeDescendantId,wn=Re.searchValue,er=Re.autoClearSearchValue,Wn=Re.onSearch,dr=Re.onSearchSplit,pr=Re.tokenSeparators,sr=Re.allowClear,ur=Re.prefix,yr=Re.suffixIcon,lr=Re.clearIcon,fr=Re.OptionList,Qn=Re.animation,mr=Re.transitionName,br=Re.dropdownStyle,zr=Re.dropdownClassName,Er=Re.dropdownMatchSelectWidth,Br=Re.dropdownRender,Ir=Re.dropdownAlign,Mr=Re.placement,ir=Re.builtinPlacements,rr=Re.getPopupContainer,Jn=Re.showAction,an=Jn===void 0?[]:Jn,pn=Re.onFocus,hn=Re.onBlur,tn=Re.onKeyUp,Bn=Re.onKeyDown,Gn=Re.onMouseDown,dn=(0,Ee.Z)(Re,jt),nn=en(Qt),En=(ye!==void 0?ye:nn)||Qt==="combobox",Tn=(0,Qe.Z)({},dn);cn.forEach(function(Wr){delete Tn[Wr]}),mt==null||mt.forEach(function(Wr){delete Tn[Wr]});var cr=fe.useState(!1),kr=(0,xe.Z)(cr,2),Or=kr[0],Rr=kr[1];fe.useEffect(function(){Rr((0,ut.Z)())},[]);var Ar=fe.useRef(null),Fr=fe.useRef(null),Vr=fe.useRef(null),Hr=fe.useRef(null),Xr=fe.useRef(null),ti=fe.useRef(!1),Ei=Et(),Ni=(0,xe.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];fe.useImperativeHandle(st,function(){var Wr,Dr;return{focus:(Wr=Hr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Dr=Hr.current)===null||Dr===void 0?void 0:Dr.blur,scrollTo:function(Ci){var ii;return(ii=Xr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Ar.current||Fr.current}});var jr=fe.useMemo(function(){var Wr;if(Qt!=="combobox")return wn;var Dr=(Wr=rt[0])===null||Wr===void 0?void 0:Wr.value;return typeof Dr=="string"||typeof Dr=="number"?String(Dr):""},[wn,Qt,rt]),Ki=Qt==="combobox"&&typeof Hn=="function"&&Hn()||null,qr=typeof Mn=="function"&&Mn(),xr=(0,Ge.x1)(Fr,qr==null||(Ce=qr.props)===null||Ce===void 0?void 0:Ce.ref),$r=fe.useState(!1),Gr=(0,xe.Z)($r,2),Sr=Gr[0],Nr=Gr[1];(0,Ot.Z)(function(){Nr(!0)},[]);var Tr=(0,Be.Z)(!1,{defaultValue:On,value:xn}),ui=(0,xe.Z)(Tr,2),Mi=ui[0],fi=ui[1],ni=Sr?Mi:!1,xo=!qt&&He;(Dn||xo&&ni&&Qt==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=fe.useCallback(function(Wr){var Dr=Wr!==void 0?Wr:!ni;Dn||(fi(Dr),ni!==Dr&&(Fn==null||Fn(Dr)))},[Dn,ni,fi,Fn]),Pr=fe.useMemo(function(){return(pr||[]).some(function(Wr){return[` `,`\r `].includes(Wr)})},[pr]),Cr=fe.useContext(Ut)||{},wr=Cr.maxCount,Zr=Cr.rawValues,Yr=function(Dr,yi,Ci){if(!(nn&&ht(wr)&&(Zr==null?void 0:Zr.size)>=wr)){var ii=!0,ci=Dr;Vn==null||Vn(null);var _i=It(Dr,pr,ht(wr)?wr-Zr.size:void 0),Ui=Ci?null:_i;return Qt!=="combobox"&&Ui&&(ci="",dr==null||dr(Ui),gr(!1),ii=!1),Wn&&jr!==ci&&Wn(ci,{source:yi?"typing":"effect"}),ii}},Xi=function(Dr){!Dr||!Dr.trim()||Wn(Dr,{source:"submit"})};fe.useEffect(function(){!ni&&!nn&&Qt!=="combobox"&&Yr("",!1,!1)},[ni]),fe.useEffect(function(){Mi&&Dn&&fi(!1),Dn&&!ti.current&&si(!1)},[Dn]);var Ii=vt(),vi=(0,xe.Z)(Ii,2),ri=vi[0],Gi=vi[1],eo=fe.useRef(!1),Fi=function(Dr){var yi=ri(),Ci=Dr.key,ii=Ci==="Enter";if(ii&&(Qt!=="combobox"&&Dr.preventDefault(),ni||gr(!0)),Gi(!!jr),Ci==="Backspace"&&!yi&&nn&&!jr&&rt.length){for(var ci=(0,lt.Z)(rt),_i=null,Ui=ci.length-1;Ui>=0;Ui-=1){var oo=ci[Ui];if(!oo.disabled){ci.splice(Ui,1),_i=oo;break}}_i&&$e(ci,{type:"remove",values:[_i]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Ji=1;Ji<$i;Ji++)zi[Ji-1]=arguments[Ji];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Xr.current)===null||co===void 0||co.onKeyDown.apply(co,[Dr].concat(zi))}Bn==null||Bn.apply(void 0,[Dr].concat(zi))},to=function(Dr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii1?_i-1:0),oo=1;oo<_i;oo++)Ui[oo-1]=arguments[oo];Gn==null||Gn.apply(void 0,[Dr].concat(Ui))},Vi=fe.useState({}),ba=(0,xe.Z)(Vi,2),xa=ba[1];function Va(){xa({})}var Ca;qr&&(Ca=function(Dr){gr(Dr)}),yt(function(){var Wr;return[Ar.current,(Wr=Vr.current)===null||Wr===void 0?void 0:Wr.getPopupElement()]},so,gr,!!qr);var Ua=fe.useMemo(function(){return(0,Qe.Z)((0,Qe.Z)({},Re),{},{notFoundContent:qt,open:ni,triggerOpen:so,id:Ne,showSearch:En,multiple:nn,toggleOpen:gr})},[Re,qt,so,ni,Ne,En,nn,gr]),Ko=!!yr||Ln,Xo;Ko&&(Xo=fe.createElement(je,{className:we()("".concat(Se,"-arrow"),(0,ge.Z)({},"".concat(Se,"-arrow-loading"),Ln)),customizeIcon:yr,customizeIconProps:{loading:Ln,searchValue:jr,open:ni,focused:xi,showSearch:En}}));var Co=function(){var Dr;Xt==null||Xt(),(Dr=Hr.current)===null||Dr===void 0||Dr.focus(),$e([],{type:"clear",values:rt}),Yr("",!1,!1)},Yo=St(Se,Co,rt,sr,lr,Dn,jr,Qt),Sa=Yo.allowClear,_o=Yo.clearIcon,To=fe.createElement(fr,{ref:Xr}),wa=we()(Se,Fe,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Se,"-focused"),xi),"".concat(Se,"-multiple"),nn),"".concat(Se,"-single"),!nn),"".concat(Se,"-allow-clear"),sr),"".concat(Se,"-show-arrow"),Ko),"".concat(Se,"-disabled"),Dn),"".concat(Se,"-loading"),Ln),"".concat(Se,"-open"),ni),"".concat(Se,"-customize-input"),Ki),"".concat(Se,"-show-search"),En)),Lo=fe.createElement(ne,{ref:Vr,disabled:Dn,prefixCls:Se,visible:so,popupElement:To,animation:Qn,transitionName:mr,dropdownStyle:br,dropdownClassName:zr,direction:nt,dropdownMatchSelectWidth:Er,dropdownRender:Br,dropdownAlign:Ir,placement:Mr,builtinPlacements:ir,getPopupContainer:rr,empty:He,getTriggerDOMNode:function(Dr){return Fr.current||Dr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},qr?fe.cloneElement(qr,{ref:xr}):fe.createElement(dt,(0,z.Z)({},Re,{domRef:Fr,prefixCls:Se,inputElement:Ki,ref:Hr,id:Ne,prefix:ur,showSearch:En,autoClearSearchValue:er,mode:Qt,activeDescendantId:Xn,tagRender:Ue,values:rt,open:ni,onToggleOpen:gr,activeValue:_n,searchValue:jr,onSearch:Yr,onSearchSubmit:Xi,onRemove:io,tokenWithEnter:Pr,onInputBlur:Yi}))),Di;return qr?Di=Lo:Di=fe.createElement("div",(0,z.Z)({className:wa},Tn,{ref:Ar,onMouseDown:uo,onKeyDown:Fi,onKeyUp:to,onFocus:Ga,onBlur:ya}),fe.createElement(Kt,{visible:xi&&!ni,values:rt}),Lo,Xo,Sa&&_o),fe.createElement(kt.Provider,{value:Ua},Di)}),Ct=sn,_t=function(){return null};_t.isSelectOptGroup=!0;var Ht=_t,ke=function(){return null};ke.isSelectOption=!0;var at=ke,Mt=ie(80547),zt=ie(2738),Ie=ie(48911);function Xe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pt=["disabled","title","children","style","className"];function Dt(Re){return typeof Re=="string"||typeof Re=="number"}var Gt=function(st,Ce){var Ne=Nt(),Se=Ne.prefixCls,Fe=Ne.id,ye=Ne.open,Ue=Ne.multiple,nt=Ne.mode,mt=Ne.searchValue,rt=Ne.toggleOpen,$e=Ne.notFoundContent,He=Ne.onPopupScroll,ot=fe.useContext(Ut),qt=ot.maxCount,Xt=ot.flattenOptions,Qt=ot.onActiveValue,Dn=ot.defaultActiveFirstOption,Ln=ot.onSelect,Hn=ot.menuItemSelectedIcon,Mn=ot.rawValues,xn=ot.fieldNames,On=ot.virtual,Fn=ot.direction,_n=ot.listHeight,Vn=ot.listItemHeight,Xn=ot.optionRender,wn="".concat(Se,"-item"),er=(0,Mt.Z)(function(){return Xt},[ye,Xt],function(Jn,an){return an[0]&&Jn[1]!==an[1]}),Wn=fe.useRef(null),dr=fe.useMemo(function(){return Ue&&ht(qt)&&(Mn==null?void 0:Mn.size)>=qt},[Ue,qt,Mn==null?void 0:Mn.size]),pr=function(an){an.preventDefault()},sr=function(an){var pn;(pn=Wn.current)===null||pn===void 0||pn.scrollTo(typeof an=="number"?{index:an}:an)},ur=fe.useCallback(function(Jn){return nt==="combobox"?!1:Mn.has(Jn)},[nt,(0,lt.Z)(Mn).toString(),Mn.size]),yr=function(an){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=er.length,tn=0;tn1&&arguments[1]!==void 0?arguments[1]:!1;mr(an);var hn={source:pn?"keyboard":"mouse"},tn=er[an];if(!tn){Qt(null,-1,hn);return}Qt(tn.value,an,hn)};(0,fe.useEffect)(function(){br(Dn!==!1?yr(0):-1)},[er.length,mt]);var zr=fe.useCallback(function(Jn){return nt==="combobox"?String(Jn).toLowerCase()===mt.toLowerCase():Mn.has(Jn)},[nt,mt,(0,lt.Z)(Mn).toString(),Mn.size]);(0,fe.useEffect)(function(){var Jn=setTimeout(function(){if(!Ue&&ye&&Mn.size===1){var pn=Array.from(Mn)[0],hn=er.findIndex(function(tn){var Bn=tn.data;return mt?String(Bn.value).startsWith(mt):Bn.value===pn});hn!==-1&&(br(hn),sr(hn))}});if(ye){var an;(an=Wn.current)===null||an===void 0||an.scrollTo(void 0)}return function(){return clearTimeout(Jn)}},[ye,mt]);var Er=function(an){an!==void 0&&Ln(an,{selected:!Mn.has(an)}),Ue||rt(!1)};if(fe.useImperativeHandle(Ce,function(){return{onKeyDown:function(an){var pn=an.which,hn=an.ctrlKey;switch(pn){case Ye.Z.N:case Ye.Z.P:case Ye.Z.UP:case Ye.Z.DOWN:{var tn=0;if(pn===Ye.Z.UP?tn=-1:pn===Ye.Z.DOWN?tn=1:Xe()&&hn&&(pn===Ye.Z.N?tn=1:pn===Ye.Z.P&&(tn=-1)),tn!==0){var Bn=yr(Qn+tn,tn);sr(Bn),br(Bn,!0)}break}case Ye.Z.TAB:case Ye.Z.ENTER:{var Gn,dn=er[Qn];dn&&!(dn!=null&&(Gn=dn.data)!==null&&Gn!==void 0&&Gn.disabled)&&!dr?Er(dn.value):Er(void 0),ye&&an.preventDefault();break}case Ye.Z.ESC:rt(!1),ye&&an.stopPropagation()}},onKeyUp:function(){},scrollTo:function(an){sr(an)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Fe,"_list"),className:"".concat(wn,"-empty"),onMouseDown:pr},$e);var Br=Object.keys(xn).map(function(Jn){return xn[Jn]}),Ir=function(an){return an.label};function Mr(Jn,an){var pn=Jn.group;return{role:pn?"presentation":"option",id:"".concat(Fe,"_list_").concat(an)}}var ir=function(an){var pn=er[an];if(!pn)return null;var hn=pn.data||{},tn=hn.value,Bn=pn.group,Gn=(0,gt.Z)(hn,!0),dn=Ir(pn);return pn?fe.createElement("div",(0,z.Z)({"aria-label":typeof dn=="string"&&!Bn?dn:null},Gn,{key:an},Mr(pn,an),{"aria-selected":zr(tn)}),tn):null},rr={role:"listbox",id:"".concat(Fe,"_list")};return fe.createElement(fe.Fragment,null,On&&fe.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),ir(Qn-1),ir(Qn),ir(Qn+1)),fe.createElement(Ie.Z,{itemKey:"key",ref:Wn,data:er,height:_n,itemHeight:Vn,fullHeight:!1,onMouseDown:pr,onScroll:He,virtual:On,direction:Fn,innerProps:On?null:rr},function(Jn,an){var pn=Jn.group,hn=Jn.groupOption,tn=Jn.data,Bn=Jn.label,Gn=Jn.value,dn=tn.key;if(pn){var nn,En=(nn=tn.title)!==null&&nn!==void 0?nn:Dt(Bn)?Bn.toString():void 0;return fe.createElement("div",{className:we()(wn,"".concat(wn,"-group"),tn.className),title:En},Bn!==void 0?Bn:dn)}var Tn=tn.disabled,cr=tn.title,kr=tn.children,Or=tn.style,Rr=tn.className,Ar=(0,Ee.Z)(tn,pt),Fr=(0,zt.Z)(Ar,Br),Vr=ur(Gn),Hr=Tn||!Vr&&dr,Xr="".concat(wn,"-option"),ti=we()(wn,Xr,Rr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Xr,"-grouped"),hn),"".concat(Xr,"-active"),Qn===an&&!Hr),"".concat(Xr,"-disabled"),Hr),"".concat(Xr,"-selected"),Vr)),Ei=Ir(Jn),Ni=!Hn||typeof Hn=="function"||Vr,xi=typeof Ei=="number"?Ei:Ei||Gn,si=Dt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),fe.createElement("div",(0,z.Z)({},(0,gt.Z)(Fr),On?{}:Mr(Jn,an),{"aria-selected":zr(Gn),className:ti,title:si,onMouseMove:function(){Qn===an||Hr||br(an)},onClick:function(){Hr||Er(Gn)},style:Or}),fe.createElement("div",{className:"".concat(Xr,"-content")},typeof Xn=="function"?Xn(Jn,{index:an}):xi),fe.isValidElement(Hn)||Vr,Ni&&fe.createElement(je,{className:"".concat(wn,"-option-state"),customizeIcon:Hn,customizeIconProps:{value:Gn,disabled:Hr,isSelected:Vr}},Vr?"\u2713":null))}))},un=fe.forwardRef(Gt),Sn=un,Cn=function(Re,st){var Ce=fe.useRef({values:new Map,options:new Map}),Ne=fe.useMemo(function(){var Fe=Ce.current,ye=Fe.values,Ue=Fe.options,nt=Re.map(function($e){if($e.label===void 0){var He;return(0,Qe.Z)((0,Qe.Z)({},$e),{},{label:(He=ye.get($e.value))===null||He===void 0?void 0:He.label})}return $e}),mt=new Map,rt=new Map;return nt.forEach(function($e){mt.set($e.value,$e),rt.set($e.value,st.get($e.value)||Ue.get($e.value))}),Ce.current.values=mt,Ce.current.options=rt,nt},[Re,st]),Se=fe.useCallback(function(Fe){return st.get(Fe)||Ce.current.options.get(Fe)},[st]);return[Ne,Se]};function on(Re,st){return Le(Re).join("").toUpperCase().includes(st)}var yn=function(Re,st,Ce,Ne,Se){return fe.useMemo(function(){if(!Ce||Ne===!1)return Re;var Fe=st.options,ye=st.label,Ue=st.value,nt=[],mt=typeof Ne=="function",rt=Ce.toUpperCase(),$e=mt?Ne:function(ot,qt){return Se?on(qt[Se],rt):qt[Fe]?on(qt[ye!=="children"?ye:"label"],rt):on(qt[Ue],rt)},He=mt?function(ot){return ft(ot)}:function(ot){return ot};return Re.forEach(function(ot){if(ot[Fe]){var qt=$e(Ce,He(ot));if(qt)nt.push(ot);else{var Xt=ot[Fe].filter(function(Qt){return $e(Ce,He(Qt))});Xt.length&&nt.push((0,Qe.Z)((0,Qe.Z)({},ot),{},(0,ge.Z)({},Fe,Xt)))}return}$e(Ce,He(ot))&&nt.push(ot)}),nt},[Re,Ne,Se,Ce,st])},gn=ie(6551),$n=ie(11592),bn=["children","value"],vn=["children"];function Yt(Re){var st=Re,Ce=st.key,Ne=st.props,Se=Ne.children,Fe=Ne.value,ye=(0,Ee.Z)(Ne,bn);return(0,Qe.Z)({key:Ce,value:Fe!==void 0?Fe:Ce,children:Se},ye)}function Pn(Re){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$n.Z)(Re).map(function(Ce,Ne){if(!fe.isValidElement(Ce)||!Ce.type)return null;var Se=Ce,Fe=Se.type.isSelectOptGroup,ye=Se.key,Ue=Se.props,nt=Ue.children,mt=(0,Ee.Z)(Ue,vn);return st||!Fe?Yt(Ce):(0,Qe.Z)((0,Qe.Z)({key:"__RC_SELECT_GRP__".concat(ye===null?Ne:ye,"__"),label:ye},mt),{},{options:Pn(nt)})}).filter(function(Ce){return Ce})}var mn=function(st,Ce,Ne,Se,Fe){return fe.useMemo(function(){var ye=st,Ue=!st;Ue&&(ye=Pn(Ce));var nt=new Map,mt=new Map,rt=function(ot,qt,Xt){Xt&&typeof Xt=="string"&&ot.set(qt[Xt],qt)},$e=function He(ot){for(var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Xt=0;Xt1&&arguments[1]!==void 0?arguments[1]:!1,ye=0;ye0?gr(wr.options):wr.options}):wr})},Ni=fe.useMemo(function(){return Ln?Ei(ti):ti},[ti,Ln,rr]),xi=fe.useMemo(function(){return We(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Pr){var Cr=Bn(Pr);if(En(Cr),fr&&(Cr.length!==Or.length||Cr.some(function(Yr,Xi){var Ii;return((Ii=Or[Xi])===null||Ii===void 0?void 0:Ii.value)!==(Yr==null?void 0:Yr.value)}))){var wr=lr?Cr:Cr.map(function(Yr){return Yr.value}),Zr=Cr.map(function(Yr){return ft(Rr(Yr.value))});fr(zr?wr:wr[0],zr?Zr:Zr[0])}},Ri=fe.useState(null),jr=(0,xe.Z)(Ri,2),Ki=jr[0],qr=jr[1],xr=fe.useState(0),$r=(0,xe.Z)(xr,2),Gr=$r[0],Sr=$r[1],Nr=_n!==void 0?_n:Ne!=="combobox",Tr=fe.useCallback(function(gr,Pr){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wr=Cr.source,Zr=wr===void 0?"keyboard":wr;Sr(Pr),ye&&Ne==="combobox"&&gr!==null&&Zr==="keyboard"&&qr(String(gr))},[ye,Ne]),ui=function(Pr,Cr,wr){var Zr=function(){var io,Yi=Rr(Pr);return[lr?{label:Yi==null?void 0:Yi[Ir.label],value:Pr,key:(io=Yi==null?void 0:Yi.key)!==null&&io!==void 0?io:Pr}:Pr,ft(Yi)]};if(Cr&&ot){var Yr=Zr(),Xi=(0,xe.Z)(Yr,2),Ii=Xi[0],vi=Xi[1];ot(Ii,vi)}else if(!Cr&&qt&&wr!=="clear"){var ri=Zr(),Gi=(0,xe.Z)(ri,2),eo=Gi[0],Fi=Gi[1];qt(eo,Fi)}},Mi=jn(function(gr,Pr){var Cr,wr=zr?Pr.selected:!0;wr?Cr=zr?[].concat((0,lt.Z)(Or),[gr]):[gr]:Cr=Or.filter(function(Zr){return Zr.value!==gr}),si(Cr),ui(gr,wr),Ne==="combobox"?qr(""):(!en||He)&&(Jn(""),qr(""))}),fi=function(Pr,Cr){si(Pr);var wr=Cr.type,Zr=Cr.values;(wr==="remove"||wr==="clear")&&Zr.forEach(function(Yr){ui(Yr.value,!1,wr)})},ni=function(Pr,Cr){if(Jn(Pr),qr(null),Cr.source==="submit"){var wr=(Pr||"").trim();if(wr){var Zr=Array.from(new Set([].concat((0,lt.Z)(Fr),[wr])));si(Zr),ui(wr,!0),Jn("")}return}Cr.source!=="blur"&&(Ne==="combobox"&&si(Pr),rt==null||rt(Pr))},xo=function(Pr){var Cr=Pr;Ne!=="tags"&&(Cr=Pr.map(function(Zr){var Yr=hn.get(Zr);return Yr==null?void 0:Yr.value}).filter(function(Zr){return Zr!==void 0}));var wr=Array.from(new Set([].concat((0,lt.Z)(Fr),(0,lt.Z)(Cr))));si(wr),wr.forEach(function(Zr){ui(Zr,!0)})},so=fe.useMemo(function(){var gr=Xn!==!1&&Qt!==!1;return(0,Qe.Z)((0,Qe.Z)({},an),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Mi,menuItemSelectedIcon:Vn,rawValues:Fr,fieldNames:Ir,virtual:gr,direction:wn,listHeight:Wn,listItemHeight:pr,childrenAsData:Er,maxCount:Qn,optionRender:On})},[Qn,an,xi,Tr,Nr,Mi,Vn,Fr,Ir,Xn,Qt,wn,Wn,pr,Er,On]);return fe.createElement(Ut.Provider,{value:so},fe.createElement(Ct,(0,z.Z)({},mr,{id:br,prefixCls:Fe,ref:st,omitDomProps:ar,mode:Ne,displayValues:Ar,onDisplayValuesChange:fi,direction:wn,searchValue:rr,onSearch:ni,autoClearSearchValue:He,onSearchSplit:xo,dropdownMatchSelectWidth:Qt,OptionList:Sn,emptyOptions:!xi.length,activeValue:Ki,activeDescendantId:"".concat(br,"_list_").concat(Gr)})))}),rn=At;rn.Option=at,rn.OptGroup=Ht;var zn=rn,nr=zn},22711:function(ln,Zt,ie){"use strict";ie.r(Zt),ie.d(Zt,{ResizableTextArea:function(){return Te},default:function(){return Lt}});var z=ie(60499),lt=ie(18642),ge=ie(85899),Qe=ie(77654),xe=ie(72190),Ee=ie(42244),De=ie(92310),Be=ie.n(De),Pe=ie(36901),fe=ie(66003),et=ie(30292),we=ie(18929),Ot=ie(59301),ut=ie(43749),Ge=ie(29301),Ze=ie(34280),je=ie(16089),St=` 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; `,kt=["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"],Nt={},Et;function vt(Le){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=Le.getAttribute("id")||Le.getAttribute("data-reactid")||Le.getAttribute("name");if(Ae&&Nt[Pt])return Nt[Pt];var ve=window.getComputedStyle(Le),ce=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),it=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),$t=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),wt=kt.map(function(Ke){return"".concat(Ke,":").concat(ve.getPropertyValue(Ke))}).join(";"),Me={sizingStyle:wt,paddingSize:it,borderSize:$t,boxSizing:ce};return Ae&&Pt&&(Nt[Pt]=Me),Me}function yt(Le){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Et||(Et=document.createElement("textarea"),Et.setAttribute("tab-index","-1"),Et.setAttribute("aria-hidden","true"),Et.setAttribute("name","hiddenTextarea"),document.body.appendChild(Et)),Le.getAttribute("wrap")?Et.setAttribute("wrap",Le.getAttribute("wrap")):Et.removeAttribute("wrap");var ce=vt(Le,Ae),it=ce.paddingSize,$t=ce.borderSize,wt=ce.boxSizing,Me=ce.sizingStyle;Et.setAttribute("style","".concat(Me,";").concat(St)),Et.value=Le.value||Le.placeholder||"";var Ke=void 0,qe=void 0,Jt,Rt=Et.scrollHeight;if(wt==="border-box"?Rt+=$t:wt==="content-box"&&(Rt-=it),Pt!==null||ve!==null){Et.value=" ";var Vt=Et.scrollHeight-it;Pt!==null&&(Ke=Vt*Pt,wt==="border-box"&&(Ke=Ke+it+$t),Rt=Math.max(Ke,Rt)),ve!==null&&(qe=Vt*ve,wt==="border-box"&&(qe=qe+it+$t),Jt=Rt>qe?"":"hidden",Rt=Math.min(qe,Rt))}var ze={height:Rt,overflowY:Jt,resize:"none"};return Ke&&(ze.minHeight=Ke),qe&&(ze.maxHeight=qe),ze}var Ye=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Bt=0,gt=1,tt=2,xt=Ot.forwardRef(function(Le,Ae){var Pt=Le,ve=Pt.prefixCls,ce=Pt.defaultValue,it=Pt.value,$t=Pt.autoSize,wt=Pt.onResize,Me=Pt.className,Ke=Pt.style,qe=Pt.disabled,Jt=Pt.onChange,Rt=Pt.onInternalAutoSize,Vt=(0,Ee.Z)(Pt,Ye),ze=(0,we.Z)(ce,{value:it,postState:function(at){return at!=null?at:""}}),Wt=(0,xe.Z)(ze,2),dt=Wt[0],ae=Wt[1],te=function(at){ae(at.target.value),Jt==null||Jt(at)},ee=Ot.useRef();Ot.useImperativeHandle(Ae,function(){return{textArea:ee.current}});var oe=Ot.useMemo(function(){return $t&&(0,ut.Z)($t)==="object"?[$t.minRows,$t.maxRows]:[]},[$t]),se=(0,xe.Z)(oe,2),ne=se[0],he=se[1],be=!!$t,ht=function(){try{if(document.activeElement===ee.current){var at=ee.current,Mt=at.selectionStart,zt=at.selectionEnd,Ie=at.scrollTop;ee.current.setSelectionRange(Mt,zt),ee.current.scrollTop=Ie}}catch(Xe){}},Oe=Ot.useState(tt),We=(0,xe.Z)(Oe,2),ft=We[0],It=We[1],bt=Ot.useState(),Ut=(0,xe.Z)(bt,2),Kt=Ut[0],jt=Ut[1],cn=function(){It(Bt)};(0,Ze.Z)(function(){be&&cn()},[it,ne,he,be]),(0,Ze.Z)(function(){if(ft===Bt)It(gt);else if(ft===gt){var ke=yt(ee.current,!1,ne,he);It(tt),jt(ke)}else ht()},[ft]);var en=Ot.useRef(),sn=function(){je.Z.cancel(en.current)},Ct=function(at){ft===tt&&(wt==null||wt(at),$t&&(sn(),en.current=(0,je.Z)(function(){cn()})))};Ot.useEffect(function(){return sn},[]);var _t=be?Kt:null,Ht=(0,ge.Z)((0,ge.Z)({},Ke),_t);return(ft===Bt||ft===gt)&&(Ht.overflowY="hidden",Ht.overflowX="hidden"),Ot.createElement(Ge.Z,{onResize:Ct,disabled:!($t||wt)},Ot.createElement("textarea",(0,z.Z)({},Vt,{ref:ee,style:Ht,className:Be()(ve,Me,(0,lt.Z)({},"".concat(ve,"-disabled"),qe)),disabled:qe,value:dt,onChange:te})))}),Te=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"],Je=Ot.forwardRef(function(Le,Ae){var Pt,ve=Le.defaultValue,ce=Le.value,it=Le.onFocus,$t=Le.onBlur,wt=Le.onChange,Me=Le.allowClear,Ke=Le.maxLength,qe=Le.onCompositionStart,Jt=Le.onCompositionEnd,Rt=Le.suffix,Vt=Le.prefixCls,ze=Vt===void 0?"rc-textarea":Vt,Wt=Le.showCount,dt=Le.count,ae=Le.className,te=Le.style,ee=Le.disabled,oe=Le.hidden,se=Le.classNames,ne=Le.styles,he=Le.onResize,be=Le.onClear,ht=Le.onPressEnter,Oe=Le.readOnly,We=Le.autoSize,ft=Le.onKeyDown,It=(0,Ee.Z)(Le,_e),bt=(0,we.Z)(ve,{value:ce,defaultValue:ve}),Ut=(0,xe.Z)(bt,2),Kt=Ut[0],jt=Ut[1],cn=Kt==null?"":String(Kt),en=Ot.useState(!1),sn=(0,xe.Z)(en,2),Ct=sn[0],_t=sn[1],Ht=Ot.useRef(!1),ke=Ot.useState(null),at=(0,xe.Z)(ke,2),Mt=at[0],zt=at[1],Ie=(0,Ot.useRef)(null),Xe=(0,Ot.useRef)(null),pt=function(){var rn;return(rn=Xe.current)===null||rn===void 0?void 0:rn.textArea},Dt=function(){pt().focus()};(0,Ot.useImperativeHandle)(Ae,function(){var At;return{resizableTextArea:Xe.current,focus:Dt,blur:function(){pt().blur()},nativeElement:((At=Ie.current)===null||At===void 0?void 0:At.nativeElement)||pt()}}),(0,Ot.useEffect)(function(){_t(function(At){return!ee&&At})},[ee]);var Gt=Ot.useState(null),un=(0,xe.Z)(Gt,2),Sn=un[0],Cn=un[1];Ot.useEffect(function(){if(Sn){var At;(At=pt()).setSelectionRange.apply(At,(0,Qe.Z)(Sn))}},[Sn]);var on=(0,fe.Z)(dt,Wt),yn=(Pt=on.max)!==null&&Pt!==void 0?Pt:Ke,gn=Number(yn)>0,$n=on.strategy(cn),bn=!!yn&&$n>yn,vn=function(rn,zn){var nr=zn;!Ht.current&&on.exceedFormatter&&on.max&&on.strategy(zn)>on.max&&(nr=on.exceedFormatter(zn,{max:on.max}),zn!==nr&&Cn([pt().selectionStart||0,pt().selectionEnd||0])),jt(nr),(0,et.rJ)(rn.currentTarget,rn,wt,nr)},Yt=function(rn){Ht.current=!0,qe==null||qe(rn)},Pn=function(rn){Ht.current=!1,vn(rn,rn.currentTarget.value),Jt==null||Jt(rn)},mn=function(rn){vn(rn,rn.target.value)},kn=function(rn){rn.key==="Enter"&&ht&&ht(rn),ft==null||ft(rn)},jn=function(rn){_t(!0),it==null||it(rn)},Zn=function(rn){_t(!1),$t==null||$t(rn)},An=function(rn){jt(""),Dt(),(0,et.rJ)(pt(),rn,wt)},Yn=Rt,Nn;on.show&&(on.showFormatter?Nn=on.showFormatter({value:cn,count:$n,maxLength:yn}):Nn="".concat($n).concat(gn?" / ".concat(yn):""),Yn=Ot.createElement(Ot.Fragment,null,Yn,Ot.createElement("span",{className:Be()("".concat(ze,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Nn)));var ar=function(rn){var zn;he==null||he(rn),(zn=pt())!==null&&zn!==void 0&&zn.style.height&&zt(!0)},qn=!We&&!Wt&&!Me;return Ot.createElement(Pe.BaseInput,{ref:Ie,value:cn,allowClear:Me,handleReset:An,suffix:Yn,prefixCls:ze,classNames:(0,ge.Z)((0,ge.Z)({},se),{},{affixWrapper:Be()(se==null?void 0:se.affixWrapper,(0,lt.Z)((0,lt.Z)({},"".concat(ze,"-show-count"),Wt),"".concat(ze,"-textarea-allow-clear"),Me))}),disabled:ee,focused:Ct,className:Be()(ae,bn&&"".concat(ze,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),Mt&&!qn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nn=="string"?Nn:void 0}},hidden:oe,readOnly:Oe,onClear:be},Ot.createElement(Te,(0,z.Z)({},It,{autoSize:We,maxLength:Ke,onKeyDown:kn,onChange:mn,onFocus:jn,onBlur:Zn,onCompositionStart:Yt,onCompositionEnd:Pn,className:Be()(se==null?void 0:se.textarea),style:(0,ge.Z)((0,ge.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:ze,onResize:ar,ref:Xe,readOnly:Oe})))}),pe=Je,Lt=pe},48911:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return dt}});var z=ie(60499),lt=ie(43749),ge=ie(85899),Qe=ie(18642),xe=ie(72190),Ee=ie(42244),De=ie(92310),Be=ie.n(De),Pe=ie(29301),fe=ie(70425),et=ie(34280),we=ie(59301),Ot=ie(4676),ut=we.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,he=ae.prefixCls,be=ae.onInnerResize,ht=ae.innerProps,Oe=ae.rtl,We=ae.extra,ft={},It={display:"flex",flexDirection:"column"};return oe!==void 0&&(ft={height:ee,position:"relative",overflow:"hidden"},It=(0,ge.Z)((0,ge.Z)({},It),{},(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))),we.createElement("div",{style:ft},we.createElement(Pe.Z,{onResize:function(Ut){var Kt=Ut.offsetHeight;Kt&&be&&be()}},we.createElement("div",(0,z.Z)({style:It,className:Be()((0,Qe.Z)({},"".concat(he,"-holder-inner"),he)),ref:te},ht),ne,We)))});ut.displayName="Filler";var Ge=ut;function Ze(ae){var te=ae.children,ee=ae.setRef,oe=we.useCallback(function(se){ee(se)},[]);return we.cloneElement(te,{ref:oe})}function je(ae,te,ee,oe,se,ne,he,be){var ht=be.getKey;return ae.slice(te,ee+1).map(function(Oe,We){var ft=te+We,It=he(Oe,ft,{style:{width:oe},offsetX:se}),bt=ht(Oe);return we.createElement(Ze,{key:bt,setRef:function(Kt){return ne(Oe,Kt)}},It)})}function St(ae,te,ee,oe){var se=ee-ae,ne=te-ee,he=Math.min(se,ne)*2;if(oe<=he){var be=Math.floor(oe/2);return oe%2?ee+be+1:ee-be}return se>ne?ee-(oe-ne):ee+(oe-se)}function kt(ae,te,ee){var oe=ae.length,se=te.length,ne,he;if(oe===0&&se===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,ft=ht?Oe<0&&be.current.left||Oe>0&&be.current.right:Oe<0&&be.current.top||Oe>0&&be.current.bottom;return We&&ft?(clearTimeout(ne.current),se.current=!1):(!ft||se.current)&&he(),!se.current&&ft}};function Bt(ae,te,ee,oe,se,ne,he){var be=(0,we.useRef)(0),ht=(0,we.useRef)(null),Oe=(0,we.useRef)(null),We=(0,we.useRef)(!1),ft=Ye(te,ee,oe,se);function It(en,sn){if(Et.Z.cancel(ht.current),!ft(!1,sn)){var Ct=en;if(!Ct._virtualHandled)Ct._virtualHandled=!0;else return;be.current+=sn,Oe.current=sn,yt||Ct.preventDefault(),ht.current=(0,Et.Z)(function(){var _t=We.current?10:1;he(be.current*_t,!1),be.current=0})}}function bt(en,sn){he(sn,!0),yt||en.preventDefault()}var Ut=(0,we.useRef)(null),Kt=(0,we.useRef)(null);function jt(en){if(ae){Et.Z.cancel(Kt.current),Kt.current=(0,Et.Z)(function(){Ut.current=null},2);var sn=en.deltaX,Ct=en.deltaY,_t=en.shiftKey,Ht=sn,ke=Ct;(Ut.current==="sx"||!Ut.current&&_t&&Ct&&!sn)&&(Ht=Ct,ke=0,Ut.current="sx");var at=Math.abs(Ht),Mt=Math.abs(ke);Ut.current===null&&(Ut.current=ne&&at>Mt?"x":"y"),Ut.current==="y"?It(en,ke):bt(en,Ht)}}function cn(en){ae&&(We.current=en.detail===Oe.current)}return[jt,cn]}function gt(ae,te,ee,oe){var se=we.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,xe.Z)(se,2),he=ne[0],be=ne[1],ht=function(We){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We,It=he.get(We),bt=he.get(ft);if(It===void 0||bt===void 0)for(var Ut=ae.length,Kt=be.length;Kt0&&arguments[0]!==void 0?arguments[0]:!1;We();var Ut=function(){var cn=!1;be.current.forEach(function(en,sn){if(en&&en.offsetParent){var Ct=en.offsetHeight,_t=getComputedStyle(en),Ht=_t.marginTop,ke=_t.marginBottom,at=Je(Ht),Mt=Je(ke),zt=Ct+at+Mt;ht.current.get(sn)!==zt&&(ht.current.set(sn,zt),cn=!0)}}),cn&&he(function(en){return en+1})};if(bt)Ut();else{Oe.current+=1;var Kt=Oe.current;Promise.resolve().then(function(){Kt===Oe.current&&Ut()})}}function It(bt,Ut){var Kt=ae(bt),jt=be.current.get(Kt);Ut?(be.current.set(Kt,Ut),ft()):be.current.delete(Kt),!jt!=!Ut&&(Ut?te==null||te(bt):ee==null||ee(bt))}return(0,we.useEffect)(function(){return We},[]),[It,ft,ht.current,ne]}var Lt=14/15;function Le(ae,te,ee){var oe=(0,we.useRef)(!1),se=(0,we.useRef)(0),ne=(0,we.useRef)(0),he=(0,we.useRef)(null),be=(0,we.useRef)(null),ht,Oe=function(bt){if(oe.current){var Ut=Math.ceil(bt.touches[0].pageX),Kt=Math.ceil(bt.touches[0].pageY),jt=se.current-Ut,cn=ne.current-Kt,en=Math.abs(jt)>Math.abs(cn);en?se.current=Ut:ne.current=Kt;var sn=ee(en,en?jt:cn,!1,bt);sn&&bt.preventDefault(),clearInterval(be.current),sn&&(be.current=setInterval(function(){en?jt*=Lt:cn*=Lt;var Ct=Math.floor(en?jt:cn);(!ee(en,Ct,!0)||Math.abs(Ct)<=.1)&&clearInterval(be.current)},16))}},We=function(){oe.current=!1,ht()},ft=function(bt){ht(),bt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(bt.touches[0].pageX),ne.current=Math.ceil(bt.touches[0].pageY),he.current=bt.target,he.current.addEventListener("touchmove",Oe,{passive:!1}),he.current.addEventListener("touchend",We,{passive:!0}))};ht=function(){he.current&&(he.current.removeEventListener("touchmove",Oe),he.current.removeEventListener("touchend",We))},(0,et.Z)(function(){return ae&&te.current.addEventListener("touchstart",ft,{passive:!0}),function(){var It;(It=te.current)===null||It===void 0||It.removeEventListener("touchstart",ft),ht(),clearInterval(be.current)}},[ae])}function Ae(ae){return Math.floor(Math.pow(ae,.5))}function Pt(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ve(ae,te,ee){we.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,he,be=function(){Et.Z.cancel(ne)},ht=function It(){be(),ne=(0,Et.Z)(function(){ee(he),It()})},Oe=function(){se=!1,be()},We=function(bt){if(!(bt.target.draggable||bt.button!==0)){var Ut=bt;Ut._virtualHandled||(Ut._virtualHandled=!0,se=!0)}},ft=function(bt){if(se){var Ut=Pt(bt,!1),Kt=oe.getBoundingClientRect(),jt=Kt.top,cn=Kt.bottom;if(Ut<=jt){var en=jt-Ut;he=-Ae(en),ht()}else if(Ut>=cn){var sn=Ut-cn;he=Ae(sn),ht()}else be()}};return oe.addEventListener("mousedown",We),oe.ownerDocument.addEventListener("mouseup",Oe),oe.ownerDocument.addEventListener("mousemove",ft),oe.ownerDocument.addEventListener("dragend",Oe),function(){oe.removeEventListener("mousedown",We),oe.ownerDocument.removeEventListener("mouseup",Oe),oe.ownerDocument.removeEventListener("mousemove",ft),oe.ownerDocument.removeEventListener("dragend",Oe),be()}}},[ae])}var ce=10;function it(ae,te,ee,oe,se,ne,he,be){var ht=we.useRef(),Oe=we.useState(null),We=(0,xe.Z)(Oe,2),ft=We[0],It=We[1];return(0,et.Z)(function(){if(ft&&ft.times=0;Dt-=1){var Gt=se(te[Dt]),un=ee.get(Gt);if(un===void 0){en=!0;break}if(pt-=un,pt<=0)break}switch(_t){case"top":Ct=ke-jt;break;case"bottom":Ct=at-cn+jt;break;default:{var Sn=ae.current.scrollTop,Cn=Sn+cn;keCn&&(sn="bottom")}}Ct!==null&&he(Ct),Ct!==ft.lastTop&&(en=!0)}en&&It((0,ge.Z)((0,ge.Z)({},ft),{},{times:ft.times+1,targetAlign:sn,lastTop:Ct}))}},[ft,ae.current]),function(bt){if(bt==null){be();return}if(Et.Z.cancel(ht.current),typeof bt=="number")he(bt);else if(bt&&(0,lt.Z)(bt)==="object"){var Ut,Kt=bt.align;"index"in bt?Ut=bt.index:Ut=te.findIndex(function(en){return se(en)===bt.key});var jt=bt.offset,cn=jt===void 0?0:jt;It({times:0,index:Ut,offset:cn,originAlign:Kt})}}}var $t=we.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,he=ae.onStartMove,be=ae.onStopMove,ht=ae.onScroll,Oe=ae.horizontal,We=ae.spinSize,ft=ae.containerSize,It=ae.style,bt=ae.thumbStyle,Ut=ae.showScrollBar,Kt=we.useState(!1),jt=(0,xe.Z)(Kt,2),cn=jt[0],en=jt[1],sn=we.useState(null),Ct=(0,xe.Z)(sn,2),_t=Ct[0],Ht=Ct[1],ke=we.useState(null),at=(0,xe.Z)(ke,2),Mt=at[0],zt=at[1],Ie=!oe,Xe=we.useRef(),pt=we.useRef(),Dt=we.useState(Ut),Gt=(0,xe.Z)(Dt,2),un=Gt[0],Sn=Gt[1],Cn=we.useRef(),on=function(){Ut===!0||Ut===!1||(clearTimeout(Cn.current),Sn(!0),Cn.current=setTimeout(function(){Sn(!1)},3e3))},yn=ne-ft||0,gn=ft-We||0,$n=we.useMemo(function(){if(se===0||yn===0)return 0;var An=se/yn;return An*gn},[se,yn,gn]),bn=function(Yn){Yn.stopPropagation(),Yn.preventDefault()},vn=we.useRef({top:$n,dragging:cn,pageY:_t,startTop:Mt});vn.current={top:$n,dragging:cn,pageY:_t,startTop:Mt};var Yt=function(Yn){en(!0),Ht(Pt(Yn,Oe)),zt(vn.current.top),he(),Yn.stopPropagation(),Yn.preventDefault()};we.useEffect(function(){var An=function(qn){qn.preventDefault()},Yn=Xe.current,Nn=pt.current;return Yn.addEventListener("touchstart",An,{passive:!1}),Nn.addEventListener("touchstart",Yt,{passive:!1}),function(){Yn.removeEventListener("touchstart",An),Nn.removeEventListener("touchstart",Yt)}},[]);var Pn=we.useRef();Pn.current=yn;var mn=we.useRef();mn.current=gn,we.useEffect(function(){if(cn){var An,Yn=function(qn){var At=vn.current,rn=At.dragging,zn=At.pageY,nr=At.startTop;Et.Z.cancel(An);var Re=Xe.current.getBoundingClientRect(),st=ft/(Oe?Re.width:Re.height);if(rn){var Ce=(Pt(qn,Oe)-zn)*st,Ne=nr;!Ie&&Oe?Ne-=Ce:Ne+=Ce;var Se=Pn.current,Fe=mn.current,ye=Fe?Ne/Fe:0,Ue=Math.ceil(ye*Se);Ue=Math.max(Ue,0),Ue=Math.min(Ue,Se),An=(0,Et.Z)(function(){ht(Ue,Oe)})}},Nn=function(){en(!1),be()};return window.addEventListener("mousemove",Yn,{passive:!0}),window.addEventListener("touchmove",Yn,{passive:!0}),window.addEventListener("mouseup",Nn,{passive:!0}),window.addEventListener("touchend",Nn,{passive:!0}),function(){window.removeEventListener("mousemove",Yn),window.removeEventListener("touchmove",Yn),window.removeEventListener("mouseup",Nn),window.removeEventListener("touchend",Nn),Et.Z.cancel(An)}}},[cn]),we.useEffect(function(){return on(),function(){clearTimeout(Cn.current)}},[se]),we.useImperativeHandle(te,function(){return{delayHidden:on}});var kn="".concat(ee,"-scrollbar"),jn={position:"absolute",visibility:un?null:"hidden"},Zn={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(jn,{height:8,left:0,right:0,bottom:0}),Object.assign(Zn,(0,Qe.Z)({height:"100%",width:We},Ie?"left":"right",$n))):(Object.assign(jn,(0,Qe.Z)({width:8,top:0,bottom:0},Ie?"right":"left",0)),Object.assign(Zn,{width:"100%",height:We,top:$n})),we.createElement("div",{ref:Xe,className:Be()(kn,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(kn,"-horizontal"),Oe),"".concat(kn,"-vertical"),!Oe),"".concat(kn,"-visible"),un)),style:(0,ge.Z)((0,ge.Z)({},jn),It),onMouseDown:bn,onMouseMove:on},we.createElement("div",{ref:pt,className:Be()("".concat(kn,"-thumb"),(0,Qe.Z)({},"".concat(kn,"-thumb-moving"),cn)),style:(0,ge.Z)((0,ge.Z)({},Zn),bt),onMouseDown:Yt}))}),wt=$t,Me=20;function Ke(){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 qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Jt=[],Rt={overflowY:"auto",overflowAnchor:"none"};function Vt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,he=ae.itemHeight,be=ae.fullHeight,ht=be===void 0?!0:be,Oe=ae.style,We=ae.data,ft=ae.children,It=ae.itemKey,bt=ae.virtual,Ut=ae.direction,Kt=ae.scrollWidth,jt=ae.component,cn=jt===void 0?"div":jt,en=ae.onScroll,sn=ae.onVirtualScroll,Ct=ae.onVisibleChange,_t=ae.innerProps,Ht=ae.extraRender,ke=ae.styles,at=ae.showScrollBar,Mt=at===void 0?"optional":at,zt=(0,Ee.Z)(ae,qe),Ie=we.useCallback(function(an){return typeof It=="function"?It(an):an==null?void 0:an[It]},[It]),Xe=pe(Ie,null,null),pt=(0,xe.Z)(Xe,4),Dt=pt[0],Gt=pt[1],un=pt[2],Sn=pt[3],Cn=!!(bt!==!1&&ne&&he),on=we.useMemo(function(){return Object.values(un.maps).reduce(function(an,pn){return an+pn},0)},[un.id,un.maps]),yn=Cn&&We&&(Math.max(he*We.length,on)>ne||!!Kt),gn=Ut==="rtl",$n=Be()(oe,(0,Qe.Z)({},"".concat(oe,"-rtl"),gn),se),bn=We||Jt,vn=(0,we.useRef)(),Yt=(0,we.useRef)(),Pn=(0,we.useRef)(),mn=(0,we.useState)(0),kn=(0,xe.Z)(mn,2),jn=kn[0],Zn=kn[1],An=(0,we.useState)(0),Yn=(0,xe.Z)(An,2),Nn=Yn[0],ar=Yn[1],qn=(0,we.useState)(!1),At=(0,xe.Z)(qn,2),rn=At[0],zn=At[1],nr=function(){zn(!0)},Re=function(){zn(!1)},st={getKey:Ie};function Ce(an){Zn(function(pn){var hn;typeof an=="function"?hn=an(pn):hn=an;var tn=_n(hn);return vn.current.scrollTop=tn,tn})}var Ne=(0,we.useRef)({start:0,end:bn.length}),Se=(0,we.useRef)(),Fe=Nt(bn,Ie),ye=(0,xe.Z)(Fe,1),Ue=ye[0];Se.current=Ue;var nt=we.useMemo(function(){if(!Cn)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!yn){var an;return{scrollHeight:((an=Yt.current)===null||an===void 0?void 0:an.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var pn=0,hn,tn,Bn,Gn=bn.length,dn=0;dn=jn&&hn===void 0&&(hn=dn,tn=pn),cr>jn+ne&&Bn===void 0&&(Bn=dn),pn=cr}return hn===void 0&&(hn=0,tn=0,Bn=Math.ceil(ne/he)),Bn===void 0&&(Bn=bn.length-1),Bn=Math.min(Bn+1,bn.length-1),{scrollHeight:pn,start:hn,end:Bn,offset:tn}},[yn,Cn,jn,bn,Sn,ne]),mt=nt.scrollHeight,rt=nt.start,$e=nt.end,He=nt.offset;Ne.current.start=rt,Ne.current.end=$e,we.useLayoutEffect(function(){var an=un.getRecord();if(an.size===1){var pn=Array.from(an.keys())[0],hn=an.get(pn),tn=bn[rt];if(tn&&hn===void 0){var Bn=Ie(tn);if(Bn===pn){var Gn=un.get(pn),dn=Gn-he;Ce(function(nn){return nn+dn})}}}un.resetRecord()},[mt]);var ot=we.useState({width:0,height:ne}),qt=(0,xe.Z)(ot,2),Xt=qt[0],Qt=qt[1],Dn=function(pn){Qt({width:pn.offsetWidth,height:pn.offsetHeight})},Ln=(0,we.useRef)(),Hn=(0,we.useRef)(),Mn=we.useMemo(function(){return Ke(Xt.width,Kt)},[Xt.width,Kt]),xn=we.useMemo(function(){return Ke(Xt.height,mt)},[Xt.height,mt]),On=mt-ne,Fn=(0,we.useRef)(On);Fn.current=On;function _n(an){var pn=an;return Number.isNaN(Fn.current)||(pn=Math.min(pn,Fn.current)),pn=Math.max(pn,0),pn}var Vn=jn<=0,Xn=jn>=On,wn=Nn<=0,er=Nn>=Kt,Wn=Ye(Vn,Xn,wn,er),dr=function(){return{x:gn?-Nn:Nn,y:jn}},pr=(0,we.useRef)(dr()),sr=(0,fe.zX)(function(an){if(sn){var pn=(0,ge.Z)((0,ge.Z)({},dr()),an);(pr.current.x!==pn.x||pr.current.y!==pn.y)&&(sn(pn),pr.current=pn)}});function ur(an,pn){var hn=an;pn?((0,Ot.flushSync)(function(){ar(hn)}),sr()):Ce(hn)}function yr(an){var pn=an.currentTarget.scrollTop;pn!==jn&&Ce(pn),en==null||en(an),sr()}var lr=function(pn){var hn=pn,tn=Kt?Kt-Xt.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,tn),hn},fr=(0,fe.zX)(function(an,pn){pn?((0,Ot.flushSync)(function(){ar(function(hn){var tn=hn+(gn?-an:an);return lr(tn)})}),sr()):Ce(function(hn){var tn=hn+an;return tn})}),Qn=Bt(Cn,Vn,Xn,wn,er,!!Kt,fr),mr=(0,xe.Z)(Qn,2),br=mr[0],zr=mr[1];Le(Cn,vn,function(an,pn,hn,tn){var Bn=tn;return Wn(an,pn,hn)?!1:!Bn||!Bn._virtualHandled?(Bn&&(Bn._virtualHandled=!0),br({preventDefault:function(){},deltaX:an?pn:0,deltaY:an?0:pn}),!0):!1}),ve(yn,vn,function(an){Ce(function(pn){return pn+an})}),(0,et.Z)(function(){function an(hn){var tn=Vn&&hn.detail<0,Bn=Xn&&hn.detail>0;Cn&&!tn&&!Bn&&hn.preventDefault()}var pn=vn.current;return pn.addEventListener("wheel",br,{passive:!1}),pn.addEventListener("DOMMouseScroll",zr,{passive:!0}),pn.addEventListener("MozMousePixelScroll",an,{passive:!1}),function(){pn.removeEventListener("wheel",br),pn.removeEventListener("DOMMouseScroll",zr),pn.removeEventListener("MozMousePixelScroll",an)}},[Cn,Vn,Xn]),(0,et.Z)(function(){if(Kt){var an=lr(Nn);ar(an),sr({x:an})}},[Xt.width,Kt]);var Er=function(){var pn,hn;(pn=Ln.current)===null||pn===void 0||pn.delayHidden(),(hn=Hn.current)===null||hn===void 0||hn.delayHidden()},Br=it(vn,bn,un,he,Ie,function(){return Gt(!0)},Ce,Er);we.useImperativeHandle(te,function(){return{nativeElement:Pn.current,getScrollInfo:dr,scrollTo:function(pn){function hn(tn){return tn&&(0,lt.Z)(tn)==="object"&&("left"in tn||"top"in tn)}hn(pn)?(pn.left!==void 0&&ar(lr(pn.left)),Br(pn.top)):Br(pn)}}}),(0,et.Z)(function(){if(Ct){var an=bn.slice(rt,$e+1);Ct(an,bn)}},[rt,$e,bn]);var Ir=gt(bn,Ie,un,he),Mr=Ht==null?void 0:Ht({start:rt,end:$e,virtual:yn,offsetX:Nn,offsetY:He,rtl:gn,getSize:Ir}),ir=je(bn,rt,$e,Kt,Nn,Dt,ft,st),rr=null;ne&&(rr=(0,ge.Z)((0,Qe.Z)({},ht?"height":"maxHeight",ne),Rt),Cn&&(rr.overflowY="hidden",Kt&&(rr.overflowX="hidden"),rn&&(rr.pointerEvents="none")));var Jn={};return gn&&(Jn.dir="rtl"),we.createElement("div",(0,z.Z)({ref:Pn,style:(0,ge.Z)((0,ge.Z)({},Oe),{},{position:"relative"}),className:$n},Jn,zt),we.createElement(Pe.Z,{onResize:Dn},we.createElement(cn,{className:"".concat(oe,"-holder"),style:rr,ref:vn,onScroll:yr,onMouseEnter:Er},we.createElement(Ge,{prefixCls:oe,height:mt,offsetX:Nn,offsetY:He,scrollWidth:Kt,onInnerResize:Gt,ref:Yt,innerProps:_t,rtl:gn,extra:Mr},ir))),yn&&mt>ne&&we.createElement(wt,{ref:Ln,prefixCls:oe,scrollOffset:jn,scrollRange:mt,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Re,spinSize:xn,containerSize:Xt.height,style:ke==null?void 0:ke.verticalScrollBar,thumbStyle:ke==null?void 0:ke.verticalScrollBarThumb,showScrollBar:Mt}),yn&&Kt>Xt.width&&we.createElement(wt,{ref:Hn,prefixCls:oe,scrollOffset:Nn,scrollRange:Kt,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Re,spinSize:Mn,containerSize:Xt.width,horizontal:!0,style:ke==null?void 0:ke.horizontalScrollBar,thumbStyle:ke==null?void 0:ke.horizontalScrollBarThumb,showScrollBar:Mt}))}var ze=we.forwardRef(Vt);ze.displayName="List";var Wt=ze,dt=Wt},4977:function(ln){"use strict";ln.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(ln,Zt,ie){"use strict";ie.d(Zt,{Z:function(){return Be}});const z=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,lt=(Pe,fe)=>(!fe||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",ge=(Pe,fe)=>{if(Pe.clientHeight{const Ot=(ut=>{if(!ut.ownerDocument||!ut.ownerDocument.defaultView)return null;try{return ut.ownerDocument.defaultView.frameElement}catch(Ge){return null}})(we);return!!Ot&&(Ot.clientHeightutfe||ut>Pe&&Ge=fe&&Ze>=et?ut-Pe-we:Ge>fe&&Zeet?Ge-fe+Ot:0,xe=Pe=>{const fe=Pe.parentElement;return fe==null?Pe.getRootNode().host||null:fe},Ee=(Pe,fe)=>{var et,we,Ot,ut;if(typeof document=="undefined")return[];const{scrollMode:Ge,block:Ze,inline:je,boundary:St,skipOverflowHiddenElements:kt}=fe,Nt=typeof St=="function"?St:wt=>wt!==St;if(!z(Pe))throw new TypeError("Invalid target");const Et=document.scrollingElement||document.documentElement,vt=[];let yt=Pe;for(;z(yt)&&Nt(yt);){if(yt=xe(yt),yt===Et){vt.push(yt);break}yt!=null&&yt===document.body&&ge(yt)&&!ge(document.documentElement)||yt!=null&&ge(yt,kt)&&vt.push(yt)}const Ye=(we=(et=window.visualViewport)==null?void 0:et.width)!=null?we:innerWidth,Bt=(ut=(Ot=window.visualViewport)==null?void 0:Ot.height)!=null?ut:innerHeight,{scrollX:gt,scrollY:tt}=window,{height:xt,width:Te,top:_e,right:Je,bottom:pe,left:Lt}=Pe.getBoundingClientRect(),{top:Le,right:Ae,bottom:Pt,left:ve}=(wt=>{const Me=window.getComputedStyle(wt);return{top:parseFloat(Me.scrollMarginTop)||0,right:parseFloat(Me.scrollMarginRight)||0,bottom:parseFloat(Me.scrollMarginBottom)||0,left:parseFloat(Me.scrollMarginLeft)||0}})(Pe);let ce=Ze==="start"||Ze==="nearest"?_e-Le:Ze==="end"?pe+Pt:_e+xt/2-Le+Pt,it=je==="center"?Lt+Te/2-ve+Ae:je==="end"?Je+Ae:Lt-ve;const $t=[];for(let wt=0;wt=0&&Lt>=0&&pe<=Bt&&Je<=Ye&&(Me===Et&&!ge(Me)||_e>=Jt&&pe<=Vt&&Lt>=ze&&Je<=Rt))return $t;const Wt=getComputedStyle(Me),dt=parseInt(Wt.borderLeftWidth,10),ae=parseInt(Wt.borderTopWidth,10),te=parseInt(Wt.borderRightWidth,10),ee=parseInt(Wt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in Me?Me.offsetWidth-Me.clientWidth-dt-te:0,he="offsetHeight"in Me?Me.offsetHeight-Me.clientHeight-ae-ee:0,be="offsetWidth"in Me?Me.offsetWidth===0?0:qe/Me.offsetWidth:0,ht="offsetHeight"in Me?Me.offsetHeight===0?0:Ke/Me.offsetHeight:0;if(Et===Me)oe=Ze==="start"?ce:Ze==="end"?ce-Bt:Ze==="nearest"?Qe(tt,tt+Bt,Bt,ae,ee,tt+ce,tt+ce+xt,xt):ce-Bt/2,se=je==="start"?it:je==="center"?it-Ye/2:je==="end"?it-Ye:Qe(gt,gt+Ye,Ye,dt,te,gt+it,gt+it+Te,Te),oe=Math.max(0,oe+tt),se=Math.max(0,se+gt);else{oe=Ze==="start"?ce-Jt-ae:Ze==="end"?ce-Vt+ee+he:Ze==="nearest"?Qe(Jt,Vt,Ke,ae,ee+he,ce,ce+xt,xt):ce-(Jt+Ke/2)+he/2,se=je==="start"?it-ze-dt:je==="center"?it-(ze+qe/2)+ne/2:je==="end"?it-Rt+te+ne:Qe(ze,Rt,qe,dt,te+ne,it,it+Te,Te);const{scrollLeft:Oe,scrollTop:We}=Me;oe=ht===0?0:Math.max(0,Math.min(We+oe/ht,Me.scrollHeight-Ke/ht+he)),se=be===0?0:Math.max(0,Math.min(Oe+se/be,Me.scrollWidth-qe/be+ne)),ce+=We-oe,it+=Oe-se}$t.push({el:Me,top:oe,left:se})}return $t},De=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Be(Pe,fe){if(!Pe.isConnected||!(Ot=>{let ut=Ot;for(;ut&&ut.parentNode;){if(ut.parentNode===document)return!0;ut=ut.parentNode instanceof ShadowRoot?ut.parentNode.host:ut.parentNode}return!1})(Pe))return;const et=(Ot=>{const ut=window.getComputedStyle(Ot);return{top:parseFloat(ut.scrollMarginTop)||0,right:parseFloat(ut.scrollMarginRight)||0,bottom:parseFloat(ut.scrollMarginBottom)||0,left:parseFloat(ut.scrollMarginLeft)||0}})(Pe);if((Ot=>typeof Ot=="object"&&typeof Ot.behavior=="function")(fe))return fe.behavior(Ee(Pe,fe));const we=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:Ot,top:ut,left:Ge}of Ee(Pe,De(fe))){const Ze=ut-et.top+et.bottom,je=Ge-et.left+et.right;Ot.scroll({top:Ze,left:je,behavior:we})}}}}]);