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

[TOC]

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

${Tr||

`):mt.replaceSelection(`${Tr||`):((br=Br==null?void 0:Br.type)==null?void 0:br.indexOf("video"))>-1?mt.replaceSelection(``):((Pr=Br==null?void 0:Br.type)==null?void 0:Pr.indexOf("pdf"))>-1?mt.replaceSelection(`${Br.name}`):Mn.includes(to)?mt.replaceSelection(`${Br.name}`):mt.replaceSelection(`[${Br.name}](${Mr})`),mt.focus();case Pt:const{row:ni,col:Bi,align:ao}=en;let Yi=` `;for(let gi=0;gi{switch(Rn){case Dt:return re.createElement(Ft,{callback:Ar,onCancel:Dr});case zt:return re.createElement(bt.Z,{callback:Ar,onCancel:Dr});case Ut:return re.createElement(Ie.Z,{callback:Ar,onCancel:Dr});case Wt:return re.createElement(oe,{editImgId:dr.current,callback:Ar,onCancel:Dr});case Pt:return re.createElement(Ee,{callback:Ar,onCancel:Dr});case"maths-latex":return re.createElement(At,{showSaveButton:!0,callback:Ar});case"inline-latex":return re.createElement(Bt.Z,{showSaveButton:!0,callback:Ar});default:return null}},[Rn]);function Dr(){In("")}(0,re.useEffect)(()=>{if(Cr.current){let en=function(br){rr=!0,kr=br.pageY},tn=function(){rr=!1},wn=function(br){if(rr){let Pr=br.pageY-kr;Pr<0&&(Pr=0),Pr>300&&(Pr=300);let Mr=Tn+Pr+"px";qn(Mr)}},Sn=Cr.current,rr=!1,kr=0;return Sn.addEventListener("mousedown",en),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",tn),()=>{Sn.removeEventListener("mousedown",en),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",tn)}}},[mt,Cr]),(0,re.useEffect)(()=>{qn(Tn)},[Tn]);const zr=sn(dn),fr=sn(ur),_n={width:zr,height:fr},qt=(0,re.useMemo)(()=>{if(Dn){let en=new Date(Dn),tn=en.getHours(),wn=en.getMinutes(),Sn=en.getSeconds();return tn=tn<10?"0"+tn:tn,wn=wn<10?"0"+wn:wn,Sn=Sn<10?"0"+Sn:Sn,`${tn}:${wn}:${Sn}`}return 0},[Dn]),ln=en=>{const tn=[];if(Ln){let wn=-1;en=en.replace(/(@▁▁@|@▁@)/g,function(Sn,rr,kr){tn.push({multiLine:Sn!==cn})})}return tn};function rn(){window.sessionStorage.removeItem(Qn),ir(!1),Wn(0)}function jt(){ir(!1),Wn(0),mt.setValue(window.sessionStorage.getItem(Qn))}(0,re.useEffect)(()=>{gn[Rn]&&Rn!==Zt&&Rn!==Wt&&setTimeout(()=>{const en=document.getElementsByClassName("markdown-popup-form")[0],tn=window.innerWidth/2-en.offsetWidth/2,wn=window.innerHeight/2-en.offsetHeight/2;tr(tn),mr(wn)},0)},[Rn]);const kn=en=>{en.preventDefault();const tn=en.clientX-er,wn=en.clientY-vr;document.body.onmousemove=Sn=>{let rr=Sn.clientX-tn,kr=Sn.clientY-wn;const br=document.getElementsByClassName("markdown-popup-form")[0],Pr=window.innerWidth-br.offsetWidth,Mr=window.innerHeight-br.offsetHeight;rr=Math.max(0,Math.min(rr,Pr)),kr=Math.max(0,Math.min(kr,Mr)),An(Sn.clientX,Sn.clientY,tn,wn)&&(tr(rr),mr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},An=(en,tn,wn,Sn)=>{const rr=document.body.clientHeight,kr=document.body.clientWidth;return en<20&&wn>en||en>kr-20&&wntn||tn>rr-20&&Sn{var tn;dr.current=en,(tn=zn.current)==null||tn.setHeight("100vh"),setTimeout(()=>{In("add-flowchart")},150)}})):null))),Zn?re.createElement("a",{ref:Cr,className:"editor-resize"}):null,Rn===Zt&&re.createElement($t,{callback:Ar,onCancel:Dr}),Rn===Wt&&re.createElement(oe,{ref:zn,editImgId:dr.current,callback:Ar,onCancel:Dr}),re.createElement(tt.Z,null,gn[Rn]&&Rn!==Zt&&Rn!==Wt?re.createElement(Ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:vr},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:kn},gn[Rn]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:Rn===Wt?"1200px":null,height:Rn===Wt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return ot},I:function(){return St}});var re=ie(28284),qe=ie(6767),ge=ie(37568),We=ie(44104),Ce=ie(4875),we=ie(47889),Le=ie(7939),_e=ie(23216),ke=ie(59301),fe=ie(59301),Ge=Object.defineProperty,Se=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ne=(tt,Xe,ft)=>Xe in tt?Ge(tt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ft}):tt[Xe]=ft,ht=(tt,Xe)=>{for(var ft in Xe||(Xe={}))Fe.call(Xe,ft)&&Ne(tt,ft,Xe[ft]);if(Ke)for(var ft of Ke(Xe))je.call(Xe,ft)&&Ne(tt,ft,Xe[ft]);return tt},yt=(tt,Xe)=>Se(tt,vt(Xe));const{useForm:Ct}=re.default,st={width:280,marginRight:10},rt={labelCol:{span:5},wrapperCol:{span:19}};var ot=({callback:tt,onCancel:Xe})=>{const[ft]=Ct();let Be=(0,ke.useRef)();function at(kt){Be.current.width=ft.getFieldValue("width"),Be.current.align=ft.getFieldValue("align"),tt(kt,Be.current)}function it(kt,Oe){if(kt.status===-1){qe.ZP.error(kt.message);return}ft.setFieldsValue({src:`/api/attachments/${kt.id}`,type:Oe.type})}function me(kt){let Oe=kt.target.files[0];Be.current=Oe,St(Oe,it)}return fe.createElement(re.default,yt(ht({form:ft},rt),{className:"upload-image-panel",onFinish:at,style:{width:470,overflow:"hidden"}}),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ge.default,{style:st})),fe.createElement(He,{onFileChange:me}))),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ge.default,{style:{width:264}})),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(We.Z,null,fe.createElement(re.default.Item,{name:"width",style:{margin:0}},fe.createElement(Ce.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(we.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(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Le.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function He({onFileChange:tt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:tt}))}function St(tt,Xe){if(!tt)throw new String("\u6CA1\u6709\u6587\u4EF6");let ft=new FormData;ft.append("editormd-image-file",tt),ft.append("file_param_name","editormd-image-file"),ft.append("byxhr","true");var Be=new window.XMLHttpRequest;Be.withCredentials=!0,Be.addEventListener("load",function(at){Xe(JSON.parse(at.target.responseText),tt)},!1),Be.addEventListener("error",function(at){console.error(at)},!1),Be.open("POST",`${_e.KI}/api/attachments.json`),Be.send(ft)}},88487:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return ge}});var re=ie(59301),qe=ie(4676);class ge extends re.Component{constructor(Ce){super(Ce);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,qe.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Vt,Lt,ie){"use strict";ie.d(Lt,{SV:function(){return $t},ZP:function(){return Mt}});var re=ie(59301),qe=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"]},We={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"]},Ce={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(` `)}]},we={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(` `)}]},Le={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 _e=ie(53184),ke=ie.n(_e),fe=(Re,Tt,lt)=>new Promise((ae,ee)=>{var z=ne=>{try{se(lt.next(ne))}catch(he){ee(he)}},oe=ne=>{try{se(lt.throw(ne))}catch(he){ee(he)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,oe);se((lt=lt.apply(Re,Tt)).next())});const Ge={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"]}},Se=(Re,Tt,lt,ae)=>{const ee=Tt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:lt.lineNumber,endColumn:lt.column});return Array.from(new Set(ee.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Re.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},vt=(Re,Tt,lt,ae)=>{Re.languages.registerCompletionItemProvider(Tt,{provideCompletionItems(ee,z){const oe=ee.getWordUntilPosition(z),se={startLineNumber:z.lineNumber,endLineNumber:z.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=ee.getLineContent(z.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Se(Re,ee,z,se),...lt.map(ye=>({label:ye,kind:Re.languages.CompletionItemKind.Keyword,documentation:ye,insertText:ye,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(ye=>({label:ye.label,kind:Re.languages.CompletionItemKind.Snippet,documentation:ye.content,insertText:ne.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Re.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Ke=Re=>{Ge.languages.forEach(Tt=>{Re.languages.registerDocumentFormattingEditProvider(Tt,{provideDocumentFormattingEdits(lt){return fe(this,null,function*(){const ae=ke()(lt.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:lt.getFullModelRange(),text:ae}]})}})}),vt(Re,"java",We.keywords,We.quickKey),vt(Re,"cpp",Ce.keywords,Ce.quickKey),vt(Re,"c",ge.keywords,[]),vt(Re,"python",we.keywords,we.quickKey),vt(Re,"scala",Le.keywords,Le.quickKey)};const Fe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var je=Object.defineProperty,Ne=(Re,Tt,lt)=>Tt in Re?je(Re,Tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Re[Tt]=lt,ht=(Re,Tt,lt)=>Ne(Re,typeof Tt!="symbol"?Tt+"":Tt,lt);const yt=class zs{constructor(Tt,lt,ae){this.placeholder=Tt,this.editor=lt,this.monaco=ae,lt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zs.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)}};ht(yt,"ID","editor.widget.placeholderHint");var st=yt,rt=ie(96236),ot=ie(6767),He=ie(25399),St=ie(78267),tt=ie(33156),Xe=ie(56102),ft=Object.defineProperty,Be=Object.defineProperties,at=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,kt=Object.prototype.propertyIsEnumerable,Oe=(Re,Tt,lt)=>Tt in Re?ft(Re,Tt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Re[Tt]=lt,$e=(Re,Tt)=>{for(var lt in Tt||(Tt={}))me.call(Tt,lt)&&Oe(Re,lt,Tt[lt]);if(it)for(var lt of it(Tt))kt.call(Tt,lt)&&Oe(Re,lt,Tt[lt]);return Re},Et=(Re,Tt)=>Be(Re,at(Tt)),ve=(Re,Tt)=>{var lt={};for(var ae in Re)me.call(Re,ae)&&Tt.indexOf(ae)<0&&(lt[ae]=Re[ae]);if(Re!=null&&it)for(var ae of it(Re))Tt.indexOf(ae)<0&&kt.call(Re,ae)&&(lt[ae]=Re[ae]);return lt},ce=(Re,Tt,lt)=>new Promise((ae,ee)=>{var z=ne=>{try{se(lt.next(ne))}catch(he){ee(he)}},oe=ne=>{try{se(lt.throw(ne))}catch(he){ee(he)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,oe);se((lt=lt.apply(Re,Tt)).next())});function Ye(Re){return/^\d+$/.test(Re)?`${Re}px`:Re}function Ft(){}let bt=!1;const Ie={"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 Ze(Re=[]){let Tt=Re;if(Array.isArray(Re)){for(let lt=0;ltce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Re){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Re)}});var Mt=Re=>{var Tt=Re,{width:lt="100%",height:ae="100%",value:ee,language:z="javascript",style:oe={},options:se={},overrideServices:ne={},theme:he="vs-dark",onEditBlur:ye,isCopy:nt=!1,onSave:Ee,autoHeight:ze=!1,forbidCopy:Je=!1,forbidCopyTips:pt,onChange:ut=Ft,editorDidMount:At=Ft,onFocus:Bt=Ft,onBreakPoint:Dt=Ft,breakPointValue:Ut=[],filename:Wt="educoder.txt",errorLine:Zt,errorContent:dt="",highlightLine:zt,openBreakPoint:Pt=!1,placeholder:Ht="",showMiniMap:nn=!0}=Tt,yn=ve(Tt,["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 fn=(0,re.useRef)(),Me=(0,re.useRef)({}),et=(0,re.useRef)(),gt=(0,re.useRef)(),Nt=(0,re.useRef)([]),on=(0,re.useRef)(!1),cn=(0,re.useRef)(),Bn=(0,re.useRef)(),Mn=(0,re.useRef)(!1),[sn,bn]=(0,re.useState)(!1);function mn(){let Ot;return fn.current&&(Ot=new qe.Z(Yt=>{for(let Ln of Yt)(Ln.target.offsetHeight>0||Ln.target.offsetWidth>0)&&Me.current.instance.layout()}),Ot.observe(fn.current)),Ot}function $n(){ot.ZP.warning({content:decodeURIComponent(pt||Fe),key:"monaco-editor-tip"})}const gn=()=>{let Ot=Me.current.instance;if(ee!=null&&Ot&&sn){const Yt=Ot.getModel();Yt&&ee!==Yt.getValue()&&(bt=!0,Yt.setValue(ee),Ot.layout(),bt=!1)}};(0,re.useEffect)(()=>{const Ot=tt.Z.subscribe("formatDocument",Yt=>{var Ln;let Xn=Me.current.instance;(Ln=Xn==null?void 0:Xn.getAction)==null||Ln.call(Xn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Yt=>{ut(Yt)},Ot},[]),(0,re.useEffect)(()=>{var Ot;let Yt=Me.current.instance;gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{gn()},500),ee&&(ee!=null&&ee.length)&&((Ot=Yt==null?void 0:Yt.updateOptions)==null||Ot.call(Yt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ee.split(/\r\n|\r|\n/g).length))+3,5)}))},[ee,sn,Me.current]),(0,re.useEffect)(()=>{if(Zt&&Me.current&&Me.current.instance){let Yt=Me.current.instance;Yt.changeViewZones(function(Ln){var Xn=document.createElement("div");Xn.style.padding="10px 20px",Xn.style.width="calc(100% - 20px)",Xn.className="my-error-line-wrp",Xn.innerHTML=dt,Ln.addZone({afterLineNumber:Zt||11,heightInLines:3,domNode:Xn})});var Ot={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}};Yt.addOverlayWidget(Ot),Yt.revealPositionInCenter({lineNumber:20,column:1})}},[Zt,Me.current,sn]);const En=(Ot="",Yt)=>{if(!Ot||Ot.trim()==="")return!0;const Xn=Me.current.instance.getModel().getLineTokens(Yt);let Pe=!1;for(let Ue=0;Ue<2;Ue++)Xn.getStandardTokenType(Ue)===1&&(Pe=!0);return Pe};(0,re.useEffect)(()=>{var Ot;const Yt=(Ot=Me.current)==null?void 0:Ot.instance;if(Yt&&sn&&Je){const Ln=Yt.onDidBlurEditorWidget(()=>{Mn.current=!1}),Xn=Yt.onDidFocusEditorText(()=>{Mn.current=!0});return()=>{Ln.dispose(),Xn.dispose()}}},[Me.current,sn,Je]),(0,re.useEffect)(()=>{var Ot;if((Ot=Me.current)!=null&&Ot.instance&&sn&&Pt){let Yt=Me.current.instance,Ln=Yt.getModel();if(!Ln)return;(()=>{var Rt;let wt=[],mt=[];const Jt=Ln.getAllDecorations();for(let hn of Jt)hn.options.className==="highlighted-line"&&(wt.push((Rt=hn==null?void 0:hn.range)==null?void 0:Rt.startLineNumber),mt.push(hn==null?void 0:hn.id));if(zt===wt[0])return;Ln.deltaDecorations(mt,[]);const vn=Ln.getLineCount();zt&&zt<=vn&&(Yt.deltaDecorations([],[{range:new Qe.Range(zt,1,zt,Ln.getLineMaxColumn(zt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Yt.revealLineInCenter(zt))})();const Pe=(Rt=!1)=>{var wt;let mt=[],Jt=[];const vn=Ln.getAllDecorations();for(let hn of vn)hn.options.linesDecorationsClassName==="breakpoints-select"&&(mt.push((wt=hn==null?void 0:hn.range)==null?void 0:wt.startLineNumber),Jt.push(hn==null?void 0:hn.id));if(Rt)return{lines:mt,ids:Jt};Dt(mt)},Ue=Rt=>ce(void 0,null,function*(){let wt={range:new Qe.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ln.deltaDecorations([],[wt]),Pe()}),be=Rt=>ce(void 0,null,function*(){let wt=[];const mt=Yt.getLineDecorations(Rt);for(let Jt of mt)Jt.options.linesDecorationsClassName==="breakpoints-select"&&wt.push(Jt.id);yield Ln.deltaDecorations(wt,[]),Pe()}),De=Rt=>{let wt=Yt.getLineDecorations(Rt);for(let mt of wt)if(mt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,St.isEqual)(Ut,Pe(!0).lines)){Ln.deltaDecorations(Pe(!0).ids,[]);const Rt=Ut.map(wt=>({range:new Qe.Range(wt,1,wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ln.deltaDecorations([],Rt)}const xe=Yt.onDidChangeModelContent(Rt=>{let wt=Yt.getPosition();if(wt){let mt=wt.lineNumber;clearTimeout(Bn.current),Bn.current=setTimeout(()=>{En(Ln.getLineContent(mt),mt)?be(mt):De(mt)?(be(mt),Ue(mt)):Pe()},100)}}),Te=Yt.onMouseDown(Rt=>{var wt,mt,Jt;if(Rt.target.detail&&((Jt=(mt=(wt=Rt.target)==null?void 0:wt.element)==null?void 0:mt.className)!=null&&Jt.includes("line-numbers"))){let vn=Rt.target.position.lineNumber;if(En(Ln.getLineContent(vn),vn))return;De(vn)?be(vn):Ue(vn)}}),ct=Rt=>{let wt={range:new Qe.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Nt.current=Yt.deltaDecorations(Nt.current,[wt])},Gt=()=>{Nt.current=Yt.deltaDecorations(Nt.current,[])},_t=Yt.onMouseMove(Rt=>{var wt,mt,Jt;if(Gt(),Rt.target.detail&&((Jt=(mt=(wt=Rt.target)==null?void 0:wt.element)==null?void 0:mt.className)!=null&&Jt.includes("line-numbers"))){let vn=Rt.target.position.lineNumber;if(En(Ln.getLineContent(vn),vn))return;ct(vn)}}),an=Yt.onMouseLeave(()=>{Gt()});return()=>{xe.dispose(),Te.dispose(),_t.dispose(),an.dispose()}}},[Me.current,sn,Ut,zt,Pt,z]),(0,re.useEffect)(()=>{var Ot;(Ot=Me.current)!=null&&Ot.instance&&Pt&&Me.current.instance.setPosition({lineNumber:0,column:0})},[zt]);function Xt(){let Ot=Me.current.instance;if(Ot){const Yt=Ot.getSelection(),Ln=Me.current.pastePos||{},Xn=new Qe.Range(Ln.startLineNumber||Yt.endLineNumber,Ln.startColumn||Yt.endColumn,Ln.endLineNumber||Yt.endLineNumber,Ln.endColumn||Yt.endColumn);setTimeout(()=>{Ot.executeEdits("",[{range:Xn,text:""}])},300)}}function xn(Ot){(window.navigator.platform.match("Mac")?Ot.metaKey:Ot.ctrlKey)&&Ot.keyCode==83&&(Ot.preventDefault(),Ee())}const dn=()=>{if(ze&&Me.current.instance){const Ot=Me.current.instance.getContentHeight();Qn(Ot{if(!Mn.current)return;const{keyCode:Yt,ctrlKey:Ln,metaKey:Xn,target:Pe,type:Ue}=Ot;return(Ue==="paste"||(Yt===67||Yt===86)&&(Xn||Ln))&&Pe.nodeName==="TEXTAREA"&&($n(),Ot.preventDefault()),!1};function Hn(Ot,Yt){var Ln=window.URL||window.webkitURL||window,Xn=new Blob([Yt]),Pe=document.createElementNS("http://www.w3.org/1999/xhtml","a");Pe.href=Ln.createObjectURL(Xn),Pe.download=Ot,Tn(Pe)}(0,re.useEffect)(()=>{dn()},[dn]),(0,re.useEffect)(()=>{fn.current&&!sn&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(Ot=>{try{Qe=Ot,Me.current.instance=Qe.editor.create(fn.current,{value:ee,language:Ze(z),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:nn||!1}},ne);const Yt=Me.current.instance;let Pe=[...rt.BH._menuItems].find(xe=>xe[0]._debugName=="EditorContext")[1],Ue=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],be=(xe,Te)=>{var ct,Gt;let _t=xe._first;do Te.includes((Gt=(ct=_t.element)==null?void 0:ct.command)==null?void 0:Gt.id)&&xe._remove(_t);while(_t=_t.next)};if(At(Yt,Qe),setTimeout(()=>{dn(),Me.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Hn(Wt||"educoder.txt",Yt.getValue())}})},500),Me.current.subscription=Yt.onDidChangeModelContent(xe=>{on.current?clearTimeout(cn.current):(dn(),ut(Yt.getValue(),xe)),cn.current=setTimeout(()=>{on.current=!1},500)}),window.Monaco||Ke(Qe,Ze(z)),Je&&(be(Pe,Ue),fn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Vn),window.removeEventListener("paste",Vn),window.addEventListener("keydown",Vn),window.addEventListener("paste",Vn)),window.Monaco=Qe,ye&&Yt.onDidBlurEditorWidget(()=>{ye(Yt.getValue())}),Bt&&Yt.onDidFocusEditorText(()=>{Je&&Qt(),Bt(Yt.getValue())}),Je){Qt();try{Yt.onDidPaste(xe=>{const Te=Yt.getSelection(),ct=Me.current.pastePos||{},Gt=new Qe.Range(ct.startLineNumber||Te.endLineNumber,ct.startColumn||Te.endColumn,ct.endLineNumber||Te.endLineNumber,ct.endColumn||Te.endColumn);Yt.executeEdits("",[{range:xe.range,text:""}])})}catch(xe){}}let De=mn();return Ht&&typeof Ht=="string"&&new st(Ht,Yt,Qe),bn(!0),()=>{const xe=Me.current.instance;xe.dispose();const Te=xe.getModel();Te&&Te.dispose(),Me.current.subscription&&Me.current.subscription.dispose(),De.unobserve(fn.current)}}catch(Yt){}})},[]),(0,re.useEffect)(()=>{if(Me.current.instance&&sn)return document.addEventListener("keydown",xn,!1),()=>{document.removeEventListener("keydown",xn)}},[Ee,sn]),(0,re.useEffect)(()=>{let Ot=Me.current.instance;if(Ot&&sn){let Yt=Ze(z);Qe.editor.setModelLanguage(Ot.getModel(),Yt)}},[z,sn]),(0,re.useEffect)(()=>{Me.current.instance&&sn&&Qe.editor.setTheme(he)},[he,sn]),(0,re.useEffect)(()=>{let Ot=Me.current.instance;et.current=se,Ot&&sn&&(Ot.updateOptions($e({},se)),setTimeout(()=>{Ot.getModel().updateOptions($e({},se))},200))},[JSON.stringify(se),sn]),(0,re.useEffect)(()=>{let Ot=Me.current.instance;Ot&&sn&&Ot.layout()},[lt,ae,sn]);const[Nn,Un]=(0,re.useState)(Ye(lt)),[Kn,Qn]=(0,re.useState)(Ye(ae)),Zn=Et($e({},oe),{width:Nn,height:Kn,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:fn,style:Zn,onFocus:()=>{Je&&Qt()}},nt&&re.createElement(Xe.CopyToClipboard,{text:ee,onCopy:()=>ot.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(He.Z,{title:"\u590D\u5236\u4EE3\u7801"},re.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},re.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function $t({width:Re="100%",height:Tt="100%",original:lt,modified:ae,language:ee,options:z={}}){const oe=(0,re.useRef)(),[se,ne]=(0,re.useState)(null);function he(ze){let Je;return oe.current&&(Je=new qe.Z(pt=>{for(let ut of pt)(ut.target.offsetHeight>0||ut.target.offsetWidth>0)&&ze.layout()}),Je.observe(oe.current)),Je}(0,re.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(ze=>{Qe=ze;const Je=Qe.editor.createDiffEditor(oe.current,Et($e({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},z),{wordWrap:!0}));ne(Je);let pt=he(Je);return()=>{Je.dispose();const ut=Je.getModel();ut&&ut.dispose(),pt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{se&&se.setModel({original:Qe.editor.createModel(lt,ee),modified:Qe.editor.createModel(ae,ee)})},[lt,ae,ee,se]);const ye=Ye(Re),nt=Ye(Tt),Ee={width:ye,height:nt};return re.createElement("div",{className:"my-diff-editor",ref:oe,style:Ee})}},79006:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return qe}});var re=ie(59301);function qe(ge,We){const Ce=(0,re.useRef)();(0,re.useEffect)(()=>{Ce.current=ge}),(0,re.useEffect)(()=>{function we(){Ce.current()}if(We!==null){let Le=setInterval(we,We);return()=>clearInterval(Le)}},[We])}},58615:function(Vt,Lt,ie){"use strict";ie.r(Lt),ie.d(Lt,{default:function(){return ht}});var re=ie(59301),qe=ie(44283),ge=ie(33853),We=ie(28284),Ce=ie(91882),we=ie(7939),Le=ie(39116),_e=ie(9657),ke={flex_box_center:"flex_box_center___SGCnt",flex_space_between:"flex_space_between___FXB9h",flex_box_vertical_center:"flex_box_vertical_center___jslui",flex_box_center_end:"flex_box_center_end___WNIgf",flex_box_column:"flex_box_column___zpYXy",bg:"bg___rSw_d",flexRow:"flexRow___XoLur",flexJustifyCenter:"flexJustifyCenter___pSF0k",flexAlignEnd:"flexAlignEnd___UJpWO",flexAlignCenter:"flexAlignCenter___UtTr5",flexColumn:"flexColumn___cCOhR",formWrap:"formWrap___TnbqC",titleWrap:"titleWrap___KlxcJ",fieldWrap:"fieldWrap___gG_z7",mdWrap:"mdWrap___lxZQe",backgroundFa:"backgroundFa___LV7Gu",button:"button___xLTIU",searchMember:"searchMember___yMVKY"},fe=Object.defineProperty,Ge=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ke=(yt,Ct,st)=>Ct in yt?fe(yt,Ct,{enumerable:!0,configurable:!0,writable:!0,value:st}):yt[Ct]=st,Fe=(yt,Ct)=>{for(var st in Ct||(Ct={}))Se.call(Ct,st)&&Ke(yt,st,Ct[st]);if(Ge)for(var st of Ge(Ct))vt.call(Ct,st)&&Ke(yt,st,Ct[st]);return yt},je=(yt,Ct,st)=>new Promise((rt,ot)=>{var He=Xe=>{try{tt(st.next(Xe))}catch(ft){ot(ft)}},St=Xe=>{try{tt(st.throw(Xe))}catch(ft){ot(ft)}},tt=Xe=>Xe.done?rt(Xe.value):Promise.resolve(Xe.value).then(He,St);tt((st=st.apply(yt,Ct)).next())});const Ne=({shixunHomeworks:yt,newCourse:Ct,globalSetting:st,loading:rt,dispatch:ot,match:He})=>{const St=(0,qe.useParams)(),[tt]=We.default.useForm(),[Xe,ft]=(0,re.useState)({}),[Be,at]=(0,re.useState)({});(0,re.useEffect)(()=>{it()},[]);const it=()=>je(void 0,null,function*(){const kt=yield(0,_e.wS)({homeworkId:St.homeworkId});at(Fe({},kt)),kt.description&&tt.setFieldsValue({description:kt.description})}),me=kt=>je(void 0,null,function*(){(yield(0,_e.pb)({homeworkId:St.homeworkId,description:tt.getFieldValue("description")})).status===0&&qe.history.push(`/classrooms/${St.coursesId}/shixun_homework/${St.categoryId}/detail`)});return re.createElement("section",{className:ke.bg},Be.course_name&&re.createElement("section",{className:"animated fadeIn"},re.createElement("aside",{className:"mt10"},Be.category&&re.createElement(Ce.Z,{separator:">"},re.createElement(Ce.Z.Item,null,re.createElement(qe.Link,{to:`/classrooms/${Be.course_id}/shixun_homework`},Be.course_name)),re.createElement(Ce.Z.Item,null,re.createElement(qe.Link,{to:`/classrooms/${Be.course_id}/shixun_homework`},Be.category.category_name)),re.createElement(Ce.Z.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5")))),re.createElement("aside",{className:"font24 bold mt20 mb20"},re.createElement(ge.Z,{className:"current mr10 font16",onClick:()=>qe.history.push(`/classrooms/${St.coursesId}/shixun_homework/${St.categoryId}/detail`)}),Be!=null&&Be.description?"\u4FEE\u6539\u603B\u7ED3":"\u63D0\u4EA4\u603B\u7ED3"),re.createElement(We.default,{form:tt,className:ke.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ft(Fe({},tt.getFieldsValue()))},onFinish:me},re.createElement("div",{className:ke.mdWrap},re.createElement(We.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u603B\u7ED3\u5185\u5BB9"},{max:5e3,message:"\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},re.createElement(Le.Z,{id:"commit-summary-id",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u603B\u7ED3\u5185\u5BB9,\u6700\u591A5000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:Be.description}))),re.createElement("div",{className:ke.backgroundFa},re.createElement("div",{className:"pt40 mb30"},re.createElement(We.default.Item,null,re.createElement(we.ZP,{size:"middle",type:"primary",className:`${ke.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),re.createElement(we.ZP,{size:"middle",type:"primary",ghost:!0,className:ke.button,onClick:()=>qe.history.push(`/classrooms/${St.coursesId}/shixun_homework/${St.categoryId}/detail`)},"\u53D6\u6D88"))))))};var ht=(0,qe.connect)(({shixunHomeworks:yt,newCourse:Ct,loading:st,globalSetting:rt})=>({shixunHomeworks:yt,newCourse:Ct,globalSetting:rt,loading:st.effects}))(Ne)},20047:function(Vt,Lt,ie){"use strict";ie.d(Lt,{AL:function(){return st},Iy:function(){return Ge},Qv:function(){return Ke},ez:function(){return Ct},jb:function(){return Se}});var re=ie(32834),qe=ie.n(re),ge=ie(11690),We=ie.n(ge);let Ce=1;function we(tt,Xe){const ft=tt.match(/^(\s+)(?:```)/);if(ft===null)return Xe;const Be=ft[1];return Xe.split(` `).map(at=>{const it=at.match(/^\s+/);if(it===null)return at;const[me]=it;return me.length>=Be.length?at.slice(Be.length):at}).join(` `)}let Le=[],_e=["
    "];const ke=new(qe()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ge(){Le.length=0,_e=["
      "]}const Se={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function vt(tt,Xe,ft,Be){if(Xe>=tt.length||tt[Xe].level<=ft)return Xe;var at=tt[Xe];Be.push("
    • "+at.text+""),Xe++;var it=[];return Xe=vt(tt,Xe,at.level,it),it.length>0&&(Be.push("
        "),it.forEach(function(me){Be.push(me)}),Be.push("
      ")),Be.push("
    • "),Xe=vt(tt,Xe,ft,Be),Xe}function Ke(){return vt(Le,0,0,_e),_e.push("
    "),_e.join("")}const Fe={heading(tt){const Xe=fe.exec(tt);if(Ce+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(tt){const Xe=this.rules.block.fences.exec(tt);if(Xe){const ft=Xe[0];let Be=we(ft,Xe[3]||"");const at=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(at)>=0){const it=ht(),me=Be;Be=it,yt[it]={type:"block",expression:me}}return{type:"code",raw:ft,lang:at,text:Be}}}},je=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ne=0;const ht=()=>`__special_katext_id_${Ne++}__`;let yt={};function Ct(){return yt}function st(){Ne=0,yt={}}function rt(tt){return tt=tt.replace(je,(Xe,ft)=>{const Be=ht();return yt[Be]={type:"inline",expression:ft},Be}),tt}const ot=ke.listitem;ke.listitem=function(tt){return ot(rt(tt))};const He=ke.paragraph;ke.paragraph=function(tt){return He(rt(tt))};const St=ke.tablecell;ke.tablecell=function(tt,Xe){return St(rt(tt),Xe)},ke.code=function(tt,Xe,ft){const Be=(Xe||"").match(/\S*/)[0];return Be?["latex","katex","math"].indexOf(Be)>=0?`

    ${tt}

    `:`
    ${ft?tt:(0,ge.escape)(tt,!0)}
    `:'
    '+(ft?tt:(0,ge.escape)(tt,!0))+"
    "},ke.heading=function(tt,Xe,ft){let Be=this.options.headerPrefix+ft.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Le.push({anchor:Be,level:Xe,text:tt}),"'+tt+""},qe().setOptions({silent:!0,gfm:!0,pedantic:!1}),qe().use({tokenizer:Fe,renderer:ke}),Lt.ZP=qe()},86013:function(Vt,Lt,ie){"use strict";var re=ie(59301),qe=ie(19248);const ge=We=>{let Ce;return typeof We=="object"&&(We!=null&&We.clearIcon)?Ce=We:We&&(Ce={clearIcon:re.createElement(qe.Z,null)}),Ce};Lt.Z=ge},91882:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return Oe}});var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(11592),Ce=ie(26112),we=ie(22703),Le=ie(48755),_e=ie(84105),ke=ie(19563);const fe=$e=>{let{children:Et}=$e;const{getPrefixCls:ve}=re.useContext(Le.E_),ce=ve("breadcrumb");return re.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},Et===""?Et:Et||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ge=fe,Se=function($e,Et){var ve={};for(var ce in $e)Object.prototype.hasOwnProperty.call($e,ce)&&Et.indexOf(ce)<0&&(ve[ce]=$e[ce]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ce=Object.getOwnPropertySymbols($e);YeEt[Ye]||ce)}function Ke($e,Et,ve,ce){if(ve==null)return null;const{className:Ye,onClick:Ft}=Et,bt=Se(Et,["className","onClick"]),Ie=Object.assign(Object.assign({},(0,Ce.Z)(bt,{data:!0,aria:!0})),{onClick:Ft});return ce!==void 0?re.createElement("a",Object.assign({},Ie,{className:ge()(`${$e}-link`,Ye),href:ce}),ve):re.createElement("span",Object.assign({},Ie,{className:ge()(`${$e}-link`,Ye)}),ve)}function Fe($e,Et){return(ce,Ye,Ft,bt,Ie)=>{if(Et)return Et(ce,Ye,Ft,bt);const Ze=vt(ce,Ye);return Ke($e,ce,Ze,Ie)}}var je=function($e,Et){var ve={};for(var ce in $e)Object.prototype.hasOwnProperty.call($e,ce)&&Et.indexOf(ce)<0&&(ve[ce]=$e[ce]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ce=Object.getOwnPropertySymbols($e);Ye{const{prefixCls:Et,separator:ve="/",children:ce,menu:Ye,overlay:Ft,dropdownProps:bt,href:Ie}=$e,Qe=(Qt=>{if(Ye||Ft){const Mt=Object.assign({},bt);if(Ye){const $t=Ye||{},{items:Re}=$t,Tt=je($t,["items"]);Mt.menu=Object.assign(Object.assign({},Tt),{items:Re==null?void 0:Re.map((lt,ae)=>{var{key:ee,title:z,label:oe,path:se}=lt,ne=je(lt,["key","title","label","path"]);let he=oe!=null?oe:z;return se&&(he=re.createElement("a",{href:`${Ie}${se}`},he)),Object.assign(Object.assign({},ne),{key:ee!=null?ee:ae,label:he})})})}else Ft&&(Mt.overlay=Ft);return re.createElement(ke.Z,Object.assign({placement:"bottom"},Mt),re.createElement("span",{className:`${Et}-overlay-link`},Qt,re.createElement(_e.Z,null)))}return Qt})(ce);return Qe!=null?re.createElement(re.Fragment,null,re.createElement("li",null,Qe),ve&&re.createElement(Ge,null,ve)):null},ht=$e=>{const{prefixCls:Et,children:ve,href:ce}=$e,Ye=je($e,["prefixCls","children","href"]),{getPrefixCls:Ft}=re.useContext(Le.E_),bt=Ft("breadcrumb",Et);return re.createElement(Ne,Object.assign({},Ye,{prefixCls:bt}),Ke(bt,Ye,ve,ce))};ht.__ANT_BREADCRUMB_ITEM=!0;var yt=ht,Ct=ie(36237),st=ie(63356),rt=ie(16931),ot=ie(51636);const He=$e=>{const{componentCls:Et,iconCls:ve,calc:ce}=$e;return{[Et]:Object.assign(Object.assign({},(0,st.Wf)($e)),{color:$e.itemColor,fontSize:$e.fontSize,[ve]:{fontSize:$e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:$e.linkColor,transition:`color ${$e.motionDurationMid}`,padding:`0 ${(0,Ct.unit)($e.paddingXXS)}`,borderRadius:$e.borderRadiusSM,height:$e.fontHeight,display:"inline-block",marginInline:ce($e.marginXXS).mul(-1).equal(),"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover}},(0,st.Qy)($e)),"li:last-child":{color:$e.lastItemColor},[`${Et}-separator`]:{marginInline:$e.separatorMargin,color:$e.separatorColor},[`${Et}-link`]:{[` > ${ve} + span, > ${ve} + a `]:{marginInlineStart:$e.marginXXS}},[`${Et}-overlay-link`]:{borderRadius:$e.borderRadiusSM,height:$e.fontHeight,display:"inline-block",padding:`0 ${(0,Ct.unit)($e.paddingXXS)}`,marginInline:ce($e.marginXXS).mul(-1).equal(),[`> ${ve}`]:{marginInlineStart:$e.marginXXS,fontSize:$e.fontSizeIcon},"&:hover":{color:$e.linkHoverColor,backgroundColor:$e.colorBgTextHover,a:{color:$e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${$e.componentCls}-rtl`]:{direction:"rtl"}})}},St=$e=>({itemColor:$e.colorTextDescription,lastItemColor:$e.colorText,iconFontSize:$e.fontSize,linkColor:$e.colorTextDescription,linkHoverColor:$e.colorText,separatorColor:$e.colorTextDescription,separatorMargin:$e.marginXS});var tt=(0,rt.I$)("Breadcrumb",$e=>{const Et=(0,ot.mergeToken)($e,{});return He(Et)},St),Xe=function($e,Et){var ve={};for(var ce in $e)Object.prototype.hasOwnProperty.call($e,ce)&&Et.indexOf(ce)<0&&(ve[ce]=$e[ce]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ce=Object.getOwnPropertySymbols($e);Ye{var{breadcrumbName:bt}=Ft,Ie=Xe(Ft,["breadcrumbName"]);return Object.assign(Object.assign({},Ie),{title:bt})})}),Ye}function Be($e,Et){return(0,re.useMemo)(()=>$e||(Et?Et.map(ft):null),[$e,Et])}var at=function($e,Et){var ve={};for(var ce in $e)Object.prototype.hasOwnProperty.call($e,ce)&&Et.indexOf(ce)<0&&(ve[ce]=$e[ce]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,ce=Object.getOwnPropertySymbols($e);Ye{if(Et===void 0)return Et;let ve=(Et||"").replace(/^\//,"");return Object.keys($e).forEach(ce=>{ve=ve.replace(`:${ce}`,$e[ce])}),ve},me=$e=>{const{prefixCls:Et,separator:ve="/",style:ce,className:Ye,rootClassName:Ft,routes:bt,items:Ie,children:Ze,itemRender:Qe,params:Qt={}}=$e,Mt=at($e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$t,direction:Re,breadcrumb:Tt}=re.useContext(Le.E_);let lt;const ae=$t("breadcrumb",Et),[ee,z,oe]=tt(ae),se=Be(Ie,bt),ne=Fe(ae,Qe);if(se&&se.length>0){const nt=[],Ee=Ie||bt;lt=se.map((ze,Je)=>{const{path:pt,key:ut,type:At,menu:Bt,overlay:Dt,onClick:Ut,className:Wt,separator:Zt,dropdownProps:dt}=ze,zt=it(Qt,pt);zt!==void 0&&nt.push(zt);const Pt=ut!=null?ut:Je;if(At==="separator")return re.createElement(Ge,{key:Pt},Zt);const Ht={},nn=Je===se.length-1;Bt?Ht.menu=Bt:Dt&&(Ht.overlay=Dt);let{href:yn}=ze;return nt.length&&zt!==void 0&&(yn=`#/${nt.join("/")}`),re.createElement(Ne,Object.assign({key:Pt},Ht,(0,Ce.Z)(ze,{data:!0,aria:!0}),{className:Wt,dropdownProps:dt,href:yn,separator:nn?"":ve,onClick:Ut,prefixCls:ae}),ne(ze,Qt,Ee,nt,yn))})}else if(Ze){const nt=(0,We.Z)(Ze).length;lt=(0,We.Z)(Ze).map((Ee,ze)=>{if(!Ee)return Ee;const Je=ze===nt-1;return(0,we.Tm)(Ee,{separator:Je?"":ve,key:ze})})}const he=ge()(ae,Tt==null?void 0:Tt.className,{[`${ae}-rtl`]:Re==="rtl"},Ye,Ft,z,oe),ye=Object.assign(Object.assign({},Tt==null?void 0:Tt.style),ce);return ee(re.createElement("nav",Object.assign({className:he,style:ye},Mt),re.createElement("ol",null,lt)))};me.Item=yt,me.Separator=Ge;var kt=me,Oe=kt},38406:function(Vt,Lt,ie){"use strict";var re=ie(59301),qe=ie(48755),ge=ie(584);const We=Ce=>{const{componentName:we}=Ce,{getPrefixCls:Le}=(0,re.useContext)(qe.E_),_e=Le("empty");switch(we){case"Table":case"List":return re.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return re.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${_e}-small`});case"Table.filter":return null;default:return re.createElement(ge.Z,null)}};Lt.Z=We},36207:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return nt}});var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(85899),Ce=ie(72190),we=ie(43403),Le=ie(34280),_e=re.createContext(null),ke=re.createContext({}),fe=_e,Ge=ie(18642),Se=ie(60499),vt=ie(77900),Ke=ie(10228),Fe=ie(26112),je=ie(42244),Ne=ie(8654),ht=["prefixCls","className","containerRef"],yt=function(ze){var Je=ze.prefixCls,pt=ze.className,ut=ze.containerRef,At=(0,je.Z)(ze,ht),Bt=re.useContext(ke),Dt=Bt.panel,Ut=(0,Ne.x1)(Dt,ut);return re.createElement("div",(0,Se.Z)({className:ge()("".concat(Je,"-content"),pt),role:"dialog",ref:Ut},(0,Fe.Z)(ze,{aria:!0}),{"aria-modal":"true"},At))},Ct=yt,st=ie(48736);function rt(Ee){return typeof Ee=="string"&&String(Number(Ee))===Ee?((0,st.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ee)):Ee}function ot(Ee){warning(!("wrapperClassName"in Ee),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ee.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var He={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function St(Ee,ze){var Je,pt,ut,At=Ee.prefixCls,Bt=Ee.open,Dt=Ee.placement,Ut=Ee.inline,Wt=Ee.push,Zt=Ee.forceRender,dt=Ee.autoFocus,zt=Ee.keyboard,Pt=Ee.classNames,Ht=Ee.rootClassName,nn=Ee.rootStyle,yn=Ee.zIndex,fn=Ee.className,Me=Ee.id,et=Ee.style,gt=Ee.motion,Nt=Ee.width,on=Ee.height,cn=Ee.children,Bn=Ee.mask,Mn=Ee.maskClosable,sn=Ee.maskMotion,bn=Ee.maskClassName,mn=Ee.maskStyle,$n=Ee.afterOpenChange,gn=Ee.onClose,En=Ee.onMouseEnter,Xt=Ee.onMouseOver,xn=Ee.onMouseLeave,dn=Ee.onClick,Tn=Ee.onKeyDown,Vn=Ee.onKeyUp,Hn=Ee.styles,Nn=Ee.drawerRender,Un=re.useRef(),Kn=re.useRef(),Qn=re.useRef();re.useImperativeHandle(ze,function(){return Un.current});var Zn=function(wt){var mt=wt.keyCode,Jt=wt.shiftKey;switch(mt){case Ke.Z.TAB:{if(mt===Ke.Z.TAB){if(!Jt&&document.activeElement===Qn.current){var vn;(vn=Kn.current)===null||vn===void 0||vn.focus({preventScroll:!0})}else if(Jt&&document.activeElement===Kn.current){var hn;(hn=Qn.current)===null||hn===void 0||hn.focus({preventScroll:!0})}}break}case Ke.Z.ESC:{gn&&zt&&(wt.stopPropagation(),gn(wt));break}}};re.useEffect(function(){if(Bt&&dt){var Rt;(Rt=Un.current)===null||Rt===void 0||Rt.focus({preventScroll:!0})}},[Bt]);var Ot=re.useState(!1),Yt=(0,Ce.Z)(Ot,2),Ln=Yt[0],Xn=Yt[1],Pe=re.useContext(fe),Ue;typeof Wt=="boolean"?Ue=Wt?{}:{distance:0}:Ue=Wt||{};var be=(Je=(pt=(ut=Ue)===null||ut===void 0?void 0:ut.distance)!==null&&pt!==void 0?pt:Pe==null?void 0:Pe.pushDistance)!==null&&Je!==void 0?Je:180,De=re.useMemo(function(){return{pushDistance:be,push:function(){Xn(!0)},pull:function(){Xn(!1)}}},[be]);re.useEffect(function(){if(Bt){var Rt;Pe==null||(Rt=Pe.push)===null||Rt===void 0||Rt.call(Pe)}else{var wt;Pe==null||(wt=Pe.pull)===null||wt===void 0||wt.call(Pe)}},[Bt]),re.useEffect(function(){return function(){var Rt;Pe==null||(Rt=Pe.pull)===null||Rt===void 0||Rt.call(Pe)}},[]);var xe=Bn&&re.createElement(vt.default,(0,Se.Z)({key:"mask"},sn,{visible:Bt}),function(Rt,wt){var mt=Rt.className,Jt=Rt.style;return re.createElement("div",{className:ge()("".concat(At,"-mask"),mt,Pt==null?void 0:Pt.mask,bn),style:(0,We.Z)((0,We.Z)((0,We.Z)({},Jt),mn),Hn==null?void 0:Hn.mask),onClick:Mn&&Bt?gn:void 0,ref:wt})}),Te=typeof gt=="function"?gt(Dt):gt,ct={};if(Ln&&be)switch(Dt){case"top":ct.transform="translateY(".concat(be,"px)");break;case"bottom":ct.transform="translateY(".concat(-be,"px)");break;case"left":ct.transform="translateX(".concat(be,"px)");break;default:ct.transform="translateX(".concat(-be,"px)");break}Dt==="left"||Dt==="right"?ct.width=rt(Nt):ct.height=rt(on);var Gt={onMouseEnter:En,onMouseOver:Xt,onMouseLeave:xn,onClick:dn,onKeyDown:Tn,onKeyUp:Vn},_t=re.createElement(vt.default,(0,Se.Z)({key:"panel"},Te,{visible:Bt,forceRender:Zt,onVisibleChanged:function(wt){$n==null||$n(wt)},removeOnLeave:!1,leavedClassName:"".concat(At,"-content-wrapper-hidden")}),function(Rt,wt){var mt=Rt.className,Jt=Rt.style,vn=re.createElement(Ct,(0,Se.Z)({id:Me,containerRef:wt,prefixCls:At,className:ge()(fn,Pt==null?void 0:Pt.content),style:(0,We.Z)((0,We.Z)({},et),Hn==null?void 0:Hn.content)},(0,Fe.Z)(Ee,{aria:!0}),Gt),cn);return re.createElement("div",(0,Se.Z)({className:ge()("".concat(At,"-content-wrapper"),Pt==null?void 0:Pt.wrapper,mt),style:(0,We.Z)((0,We.Z)((0,We.Z)({},ct),Jt),Hn==null?void 0:Hn.wrapper)},(0,Fe.Z)(Ee,{data:!0})),Nn?Nn(vn):vn)}),an=(0,We.Z)({},nn);return yn&&(an.zIndex=yn),re.createElement(fe.Provider,{value:De},re.createElement("div",{className:ge()(At,"".concat(At,"-").concat(Dt),Ht,(0,Ge.Z)((0,Ge.Z)({},"".concat(At,"-open"),Bt),"".concat(At,"-inline"),Ut)),style:an,tabIndex:-1,ref:Un,onKeyDown:Zn},xe,re.createElement("div",{tabIndex:0,ref:Kn,style:He,"aria-hidden":"true","data-sentinel":"start"}),_t,re.createElement("div",{tabIndex:0,ref:Qn,style:He,"aria-hidden":"true","data-sentinel":"end"})))}var tt=re.forwardRef(St),Xe=tt,ft=function(ze){var Je=ze.open,pt=Je===void 0?!1:Je,ut=ze.prefixCls,At=ut===void 0?"rc-drawer":ut,Bt=ze.placement,Dt=Bt===void 0?"right":Bt,Ut=ze.autoFocus,Wt=Ut===void 0?!0:Ut,Zt=ze.keyboard,dt=Zt===void 0?!0:Zt,zt=ze.width,Pt=zt===void 0?378:zt,Ht=ze.mask,nn=Ht===void 0?!0:Ht,yn=ze.maskClosable,fn=yn===void 0?!0:yn,Me=ze.getContainer,et=ze.forceRender,gt=ze.afterOpenChange,Nt=ze.destroyOnClose,on=ze.onMouseEnter,cn=ze.onMouseOver,Bn=ze.onMouseLeave,Mn=ze.onClick,sn=ze.onKeyDown,bn=ze.onKeyUp,mn=ze.panelRef,$n=re.useState(!1),gn=(0,Ce.Z)($n,2),En=gn[0],Xt=gn[1],xn=re.useState(!1),dn=(0,Ce.Z)(xn,2),Tn=dn[0],Vn=dn[1];(0,Le.Z)(function(){Vn(!0)},[]);var Hn=Tn?pt:!1,Nn=re.useRef(),Un=re.useRef();(0,Le.Z)(function(){Hn&&(Un.current=document.activeElement)},[Hn]);var Kn=function(Ln){var Xn;if(Xt(Ln),gt==null||gt(Ln),!Ln&&Un.current&&!((Xn=Nn.current)!==null&&Xn!==void 0&&Xn.contains(Un.current))){var Pe;(Pe=Un.current)===null||Pe===void 0||Pe.focus({preventScroll:!0})}},Qn=re.useMemo(function(){return{panel:mn}},[mn]);if(!et&&!En&&!Hn&&Nt)return null;var Zn={onMouseEnter:on,onMouseOver:cn,onMouseLeave:Bn,onClick:Mn,onKeyDown:sn,onKeyUp:bn},Ot=(0,We.Z)((0,We.Z)({},ze),{},{open:Hn,prefixCls:At,placement:Dt,autoFocus:Wt,keyboard:dt,width:Pt,mask:nn,maskClosable:fn,inline:Me===!1,afterOpenChange:Kn,ref:Nn},Zn);return re.createElement(ke.Provider,{value:Qn},re.createElement(we.Z,{open:Hn||et||En,autoDestroy:!1,getContainer:Me,autoLock:nn&&(Hn||En)},re.createElement(Xe,Ot)))},Be=ft,at=Be,it=ie(62487),me=ie(75030),kt=ie(86641),Oe=ie(55743),$e=ie(48755),Et=ie(91190),ve=ie(78776),ce=ie(458),Ft=Ee=>{var ze,Je;const{prefixCls:pt,title:ut,footer:At,extra:Bt,loading:Dt,onClose:Ut,headerStyle:Wt,bodyStyle:Zt,footerStyle:dt,children:zt,classNames:Pt,styles:Ht}=Ee,nn=(0,$e.dj)("drawer"),yn=re.useCallback(Nt=>re.createElement("button",{type:"button",onClick:Ut,"aria-label":"Close",className:`${pt}-close`},Nt),[Ut]),[fn,Me]=(0,ve.Z)((0,ve.w)(Ee),(0,ve.w)(nn),{closable:!0,closeIconRender:yn}),et=re.useMemo(()=>{var Nt,on;return!ut&&!fn?null:re.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Nt=nn.styles)===null||Nt===void 0?void 0:Nt.header),Wt),Ht==null?void 0:Ht.header),className:ge()(`${pt}-header`,{[`${pt}-header-close-only`]:fn&&!ut&&!Bt},(on=nn.classNames)===null||on===void 0?void 0:on.header,Pt==null?void 0:Pt.header)},re.createElement("div",{className:`${pt}-header-title`},Me,ut&&re.createElement("div",{className:`${pt}-title`},ut)),Bt&&re.createElement("div",{className:`${pt}-extra`},Bt))},[fn,Me,Bt,Wt,pt,ut]),gt=re.useMemo(()=>{var Nt,on;if(!At)return null;const cn=`${pt}-footer`;return re.createElement("div",{className:ge()(cn,(Nt=nn.classNames)===null||Nt===void 0?void 0:Nt.footer,Pt==null?void 0:Pt.footer),style:Object.assign(Object.assign(Object.assign({},(on=nn.styles)===null||on===void 0?void 0:on.footer),dt),Ht==null?void 0:Ht.footer)},At)},[At,dt,pt]);return re.createElement(re.Fragment,null,et,re.createElement("div",{className:ge()(`${pt}-body`,Pt==null?void 0:Pt.body,(ze=nn.classNames)===null||ze===void 0?void 0:ze.body),style:Object.assign(Object.assign(Object.assign({},(Je=nn.styles)===null||Je===void 0?void 0:Je.body),Zt),Ht==null?void 0:Ht.body)},Dt?re.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${pt}-body-skeleton`}):zt),gt)},bt=ie(36237),Ie=ie(63356),Ze=ie(16931),Qe=ie(51636);const Qt=Ee=>{const ze="100%";return{left:`translateX(-${ze})`,right:`translateX(${ze})`,top:`translateY(-${ze})`,bottom:`translateY(${ze})`}[Ee]},Mt=(Ee,ze)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ee),{"&-active":ze}),"&-leave":Object.assign(Object.assign({},ze),{"&-active":Ee})}),$t=(Ee,ze)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ze}`}}},Mt({opacity:Ee},{opacity:1})),Re=(Ee,ze)=>[$t(.7,ze),Mt({transform:Qt(Ee)},{transform:"none"})];var lt=Ee=>{const{componentCls:ze,motionDurationSlow:Je}=Ee;return{[ze]:{[`${ze}-mask-motion`]:$t(0,Je),[`${ze}-panel-motion`]:["left","right","top","bottom"].reduce((pt,ut)=>Object.assign(Object.assign({},pt),{[`&-${ut}`]:Re(ut,Je)}),{})}}};const ae=Ee=>{const{borderRadiusSM:ze,componentCls:Je,zIndexPopup:pt,colorBgMask:ut,colorBgElevated:At,motionDurationSlow:Bt,motionDurationMid:Dt,paddingXS:Ut,padding:Wt,paddingLG:Zt,fontSizeLG:dt,lineHeightLG:zt,lineWidth:Pt,lineType:Ht,colorSplit:nn,marginXS:yn,colorIcon:fn,colorIconHover:Me,colorBgTextHover:et,colorBgTextActive:gt,colorText:Nt,fontWeightStrong:on,footerPaddingBlock:cn,footerPaddingInline:Bn,calc:Mn}=Ee,sn=`${Je}-content-wrapper`;return{[Je]:{position:"fixed",inset:0,zIndex:pt,pointerEvents:"none",color:Nt,"&-pure":{position:"relative",background:At,display:"flex",flexDirection:"column",[`&${Je}-left`]:{boxShadow:Ee.boxShadowDrawerLeft},[`&${Je}-right`]:{boxShadow:Ee.boxShadowDrawerRight},[`&${Je}-top`]:{boxShadow:Ee.boxShadowDrawerUp},[`&${Je}-bottom`]:{boxShadow:Ee.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Je}-mask`]:{position:"absolute",inset:0,zIndex:pt,background:ut,pointerEvents:"auto"},[sn]:{position:"absolute",zIndex:pt,maxWidth:"100vw",transition:`all ${Bt}`,"&-hidden":{display:"none"}},[`&-left > ${sn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ee.boxShadowDrawerLeft},[`&-right > ${sn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ee.boxShadowDrawerRight},[`&-top > ${sn}`]:{top:0,insetInline:0,boxShadow:Ee.boxShadowDrawerUp},[`&-bottom > ${sn}`]:{bottom:0,insetInline:0,boxShadow:Ee.boxShadowDrawerDown},[`${Je}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:At,pointerEvents:"auto"},[`${Je}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,bt.unit)(Wt)} ${(0,bt.unit)(Zt)}`,fontSize:dt,lineHeight:zt,borderBottom:`${(0,bt.unit)(Pt)} ${Ht} ${nn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Je}-extra`]:{flex:"none"},[`${Je}-close`]:Object.assign({display:"inline-flex",width:Mn(dt).add(Ut).equal(),height:Mn(dt).add(Ut).equal(),borderRadius:ze,justifyContent:"center",alignItems:"center",marginInlineEnd:yn,color:fn,fontWeight:on,fontSize:dt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Dt}`,textRendering:"auto","&:hover":{color:Me,backgroundColor:et,textDecoration:"none"},"&:active":{backgroundColor:gt}},(0,Ie.Qy)(Ee)),[`${Je}-title`]:{flex:1,margin:0,fontWeight:Ee.fontWeightStrong,fontSize:dt,lineHeight:zt},[`${Je}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Zt,overflow:"auto",[`${Je}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Je}-footer`]:{flexShrink:0,padding:`${(0,bt.unit)(cn)} ${(0,bt.unit)(Bn)}`,borderTop:`${(0,bt.unit)(Pt)} ${Ht} ${nn}`},"&-rtl":{direction:"rtl"}}}},ee=Ee=>({zIndexPopup:Ee.zIndexPopupBase,footerPaddingBlock:Ee.paddingXS,footerPaddingInline:Ee.padding});var z=(0,Ze.I$)("Drawer",Ee=>{const ze=(0,Qe.mergeToken)(Ee,{});return[ae(ze),lt(ze)]},ee),oe=function(Ee,ze){var Je={};for(var pt in Ee)Object.prototype.hasOwnProperty.call(Ee,pt)&&ze.indexOf(pt)<0&&(Je[pt]=Ee[pt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,pt=Object.getOwnPropertySymbols(Ee);ut{var ze;const{rootClassName:Je,width:pt,height:ut,size:At="default",mask:Bt=!0,push:Dt=ne,open:Ut,afterOpenChange:Wt,onClose:Zt,prefixCls:dt,getContainer:zt,style:Pt,className:Ht,visible:nn,afterVisibleChange:yn,maskStyle:fn,drawerStyle:Me,contentWrapperStyle:et}=Ee,gt=oe(Ee,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Nt,getPrefixCls:on,direction:cn,className:Bn,style:Mn,classNames:sn,styles:bn}=(0,$e.dj)("drawer"),mn=on("drawer",dt),[$n,gn,En]=z(mn),Xt=zt===void 0&&Nt?()=>Nt(document.body):zt,xn=ge()({"no-mask":!Bt,[`${mn}-rtl`]:cn==="rtl"},Je,gn,En),dn=re.useMemo(()=>pt!=null?pt:At==="large"?736:378,[pt,At]),Tn=re.useMemo(()=>ut!=null?ut:At==="large"?736:378,[ut,At]),Vn={motionName:(0,kt.m)(mn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Hn=Ot=>({motionName:(0,kt.m)(mn,`panel-motion-${Ot}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Nn=(0,Et.H)(),[Un,Kn]=(0,me.Cn)("Drawer",gt.zIndex),{classNames:Qn={},styles:Zn={}}=gt;return $n(re.createElement(it.Z,{form:!0,space:!0},re.createElement(Oe.Z.Provider,{value:Kn},re.createElement(at,Object.assign({prefixCls:mn,onClose:Zt,maskMotion:Vn,motion:Hn},gt,{classNames:{mask:ge()(Qn.mask,sn.mask),content:ge()(Qn.content,sn.content),wrapper:ge()(Qn.wrapper,sn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Zn.mask),fn),bn.mask),content:Object.assign(Object.assign(Object.assign({},Zn.content),Me),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},Zn.wrapper),et),bn.wrapper)},open:Ut!=null?Ut:nn,mask:Bt,push:Dt,width:dn,height:Tn,style:Object.assign(Object.assign({},Mn),Pt),className:ge()(Bn,Ht),rootClassName:xn,getContainer:Xt,afterOpenChange:Wt!=null?Wt:yn,panelRef:Nn,zIndex:Un}),re.createElement(Ft,Object.assign({prefixCls:mn},gt,{onClose:Zt}))))))},ye=Ee=>{const{prefixCls:ze,style:Je,className:pt,placement:ut="right"}=Ee,At=oe(Ee,["prefixCls","style","className","placement"]),{getPrefixCls:Bt}=re.useContext($e.E_),Dt=Bt("drawer",ze),[Ut,Wt,Zt]=z(Dt),dt=ge()(Dt,`${Dt}-pure`,`${Dt}-${ut}`,Wt,Zt,pt);return Ut(re.createElement("div",{className:dt,style:Je},re.createElement(Ft,Object.assign({prefixCls:Dt},At))))};he._InternalPanelDoNotUseOrYouWillBeFired=ye;var nt=he},19563:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return bt}});var re=ie(59301),qe=ie(33853),ge=ie(38819),We=ie(92310),Ce=ie.n(We),we=ie(96478),Le=ie(6089),_e=ie(18929),ke=ie(2738),fe=ie(75030),Se=Ie=>typeof Ie!="object"&&typeof Ie!="function"||Ie===null,vt=ie(52838),Ke=ie(45915),Fe=ie(22703),je=ie(32383),Ne=ie(55743),ht=ie(48755),yt=ie(83397),Ct=ie(93041),st=ie(78857),rt=ie(57700),ot=ie(36237),He=ie(63356),St=ie(46e3),tt=ie(93873),Xe=ie(34925),ft=ie(37645),Be=ie(36305),at=ie(16931),it=ie(51636),kt=Ie=>{const{componentCls:Ze,menuCls:Qe,colorError:Qt,colorTextLightSolid:Mt}=Ie,$t=`${Qe}-item`;return{[`${Ze}, ${Ze}-menu-submenu`]:{[`${Qe} ${$t}`]:{[`&${$t}-danger:not(${$t}-disabled)`]:{color:Qt,"&:hover":{color:Mt,backgroundColor:Qt}}}}}};const Oe=Ie=>{const{componentCls:Ze,menuCls:Qe,zIndexPopup:Qt,dropdownArrowDistance:Mt,sizePopupArrow:$t,antCls:Re,iconCls:Tt,motionDurationMid:lt,paddingBlock:ae,fontSize:ee,dropdownEdgeChildPadding:z,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:he}=Ie;return[{[Ze]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Qt,display:"block","&::before":{position:"absolute",insetBlock:Ie.calc($t).div(2).sub(Mt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Re}-btn`]:{[`& > ${Tt}-down, & > ${Re}-btn-icon > ${Tt}-down`]:{fontSize:se}},[`${Ze}-wrap`]:{position:"relative",[`${Re}-btn > ${Tt}-down`]:{fontSize:se},[`${Tt}-down::before`]:{transition:`transform ${lt}`}},[`${Ze}-wrap-open`]:{[`${Tt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Re}-slide-down-enter${Re}-slide-down-enter-active${Ze}-placement-bottomLeft, &${Re}-slide-down-appear${Re}-slide-down-appear-active${Ze}-placement-bottomLeft, &${Re}-slide-down-enter${Re}-slide-down-enter-active${Ze}-placement-bottom, &${Re}-slide-down-appear${Re}-slide-down-appear-active${Ze}-placement-bottom, &${Re}-slide-down-enter${Re}-slide-down-enter-active${Ze}-placement-bottomRight, &${Re}-slide-down-appear${Re}-slide-down-appear-active${Ze}-placement-bottomRight`]:{animationName:St.fJ},[`&${Re}-slide-up-enter${Re}-slide-up-enter-active${Ze}-placement-topLeft, &${Re}-slide-up-appear${Re}-slide-up-appear-active${Ze}-placement-topLeft, &${Re}-slide-up-enter${Re}-slide-up-enter-active${Ze}-placement-top, &${Re}-slide-up-appear${Re}-slide-up-appear-active${Ze}-placement-top, &${Re}-slide-up-enter${Re}-slide-up-enter-active${Ze}-placement-topRight, &${Re}-slide-up-appear${Re}-slide-up-appear-active${Ze}-placement-topRight`]:{animationName:St.Qt},[`&${Re}-slide-down-leave${Re}-slide-down-leave-active${Ze}-placement-bottomLeft, &${Re}-slide-down-leave${Re}-slide-down-leave-active${Ze}-placement-bottom, &${Re}-slide-down-leave${Re}-slide-down-leave-active${Ze}-placement-bottomRight`]:{animationName:St.Uw},[`&${Re}-slide-up-leave${Re}-slide-up-leave-active${Ze}-placement-topLeft, &${Re}-slide-up-leave${Re}-slide-up-leave-active${Ze}-placement-top, &${Re}-slide-up-leave${Re}-slide-up-leave-active${Ze}-placement-topRight`]:{animationName:St.ly}}},(0,ft.ZP)(Ie,he,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ze} ${Qe}`]:{position:"relative",margin:0},[`${Qe}-submenu-popup`]:{position:"absolute",zIndex:Qt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ze}, ${Ze}-menu-submenu`]:Object.assign(Object.assign({},(0,He.Wf)(Ie)),{[Qe]:Object.assign(Object.assign({padding:z,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,He.Qy)(Ie)),{"&:empty":{padding:0,boxShadow:"none"},[`${Qe}-item-group-title`]:{padding:`${(0,ot.unit)(ae)} ${(0,ot.unit)(ne)}`,color:Ie.colorTextDescription,transition:`all ${lt}`},[`${Qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Qe}-item-icon`]:{minWidth:ee,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${Qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${lt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Qe}-item-extra`]:{paddingInlineStart:Ie.padding,marginInlineStart:"auto",fontSize:Ie.fontSizeSM,color:Ie.colorTextDescription}},[`${Qe}-item, ${Qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ot.unit)(ae)} ${(0,ot.unit)(ne)}`,color:Ie.colorText,fontWeight:"normal",fontSize:ee,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${lt}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,He.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ot.unit)(Ie.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${Ze}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${Ze}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Qe}-item-group-list`]:{margin:`0 ${(0,ot.unit)(Ie.marginXS)}`,padding:0,listStyle:"none"},[`${Qe}-submenu-title`]:{paddingInlineEnd:Ie.calc(ne).add(Ie.fontSizeSM).equal()},[`${Qe}-submenu-vertical`]:{position:"relative"},[`${Qe}-submenu${Qe}-submenu-disabled ${Ze}-menu-submenu-title`]:{[`&, ${Ze}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:he,cursor:"not-allowed"}},[`${Qe}-submenu-selected ${Ze}-menu-submenu-title`]:{color:Ie.colorPrimary}})})},[(0,St.oN)(Ie,"slide-up"),(0,St.oN)(Ie,"slide-down"),(0,tt.Fm)(Ie,"move-up"),(0,tt.Fm)(Ie,"move-down"),(0,Xe._y)(Ie,"zoom-big")]]},$e=Ie=>Object.assign(Object.assign({zIndexPopup:Ie.zIndexPopupBase+50,paddingBlock:(Ie.controlHeight-Ie.fontSize*Ie.lineHeight)/2},(0,ft.wZ)({contentRadius:Ie.borderRadiusLG,limitVerticalRadius:!0})),(0,Be.w)(Ie));var Et=(0,at.I$)("Dropdown",Ie=>{const{marginXXS:Ze,sizePopupArrow:Qe,paddingXXS:Qt,componentCls:Mt}=Ie,$t=(0,it.mergeToken)(Ie,{menuCls:`${Mt}-menu`,dropdownArrowDistance:Ie.calc(Qe).div(2).add(Ze).equal(),dropdownEdgeChildPadding:Qt});return[Oe($t),kt($t)]},$e,{resetStyle:!1});const ve=null,ce=Ie=>{var Ze;const{menu:Qe,arrow:Qt,prefixCls:Mt,children:$t,trigger:Re,disabled:Tt,dropdownRender:lt,getPopupContainer:ae,overlayClassName:ee,rootClassName:z,overlayStyle:oe,open:se,onOpenChange:ne,visible:he,onVisibleChange:ye,mouseEnterDelay:nt=.15,mouseLeaveDelay:Ee=.1,autoAdjustOverflow:ze=!0,placement:Je="",overlay:pt,transitionName:ut}=Ie,{getPopupContainer:At,getPrefixCls:Bt,direction:Dt,dropdown:Ut}=re.useContext(ht.E_),Wt=(0,je.ln)("Dropdown"),Zt=re.useMemo(()=>{const Xt=Bt();return ut!==void 0?ut:Je.includes("top")?`${Xt}-slide-down`:`${Xt}-slide-up`},[Bt,Je,ut]),dt=re.useMemo(()=>Je?Je.includes("Center")?Je.slice(0,Je.indexOf("Center")):Je:Dt==="rtl"?"bottomRight":"bottomLeft",[Je,Dt]),zt=Bt("dropdown",Mt),Pt=(0,yt.Z)(zt),[Ht,nn,yn]=Et(zt,Pt),[,fn]=(0,rt.ZP)(),Me=re.Children.only(Se($t)?re.createElement("span",null,$t):$t),et=(0,Fe.Tm)(Me,{className:Ce()(`${zt}-trigger`,{[`${zt}-rtl`]:Dt==="rtl"},Me.props.className),disabled:(Ze=Me.props.disabled)!==null&&Ze!==void 0?Ze:Tt}),gt=Tt?[]:Re,Nt=!!(gt!=null&>.includes("contextMenu")),[on,cn]=(0,_e.Z)(!1,{value:se!=null?se:he}),Bn=(0,Le.Z)(Xt=>{ne==null||ne(Xt,{source:"trigger"}),ye==null||ye(Xt),cn(Xt)}),Mn=Ce()(ee,z,nn,yn,Pt,Ut==null?void 0:Ut.className,{[`${zt}-rtl`]:Dt==="rtl"}),sn=(0,vt.Z)({arrowPointAtCenter:typeof Qt=="object"&&Qt.pointAtCenter,autoAdjustOverflow:ze,offset:fn.marginXXS,arrowWidth:Qt?fn.sizePopupArrow:0,borderRadius:fn.borderRadius}),bn=re.useCallback(()=>{Qe!=null&&Qe.selectable&&(Qe!=null&&Qe.multiple)||(ne==null||ne(!1,{source:"menu"}),cn(!1))},[Qe==null?void 0:Qe.selectable,Qe==null?void 0:Qe.multiple]),mn=()=>{let Xt;return Qe!=null&&Qe.items?Xt=re.createElement(Ct.default,Object.assign({},Qe)):typeof pt=="function"?Xt=pt():Xt=pt,lt&&(Xt=lt(Xt)),Xt=re.Children.only(typeof Xt=="string"?re.createElement("span",null,Xt):Xt),re.createElement(st.J,{prefixCls:`${zt}-menu`,rootClassName:Ce()(yn,Pt),expandIcon:re.createElement("span",{className:`${zt}-menu-submenu-arrow`},Dt==="rtl"?re.createElement(qe.Z,{className:`${zt}-menu-submenu-arrow-icon`}):re.createElement(ge.Z,{className:`${zt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:xn=>{let{mode:dn}=xn}},Xt)},[$n,gn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let En=re.createElement(we.Z,Object.assign({alignPoint:Nt},(0,ke.Z)(Ie,["rootClassName"]),{mouseEnterDelay:nt,mouseLeaveDelay:Ee,visible:on,builtinPlacements:sn,arrow:!!Qt,overlayClassName:Mn,prefixCls:zt,getPopupContainer:ae||At,transitionName:Zt,trigger:gt,overlay:mn,placement:dt,onVisibleChange:Bn,overlayStyle:Object.assign(Object.assign(Object.assign({},Ut==null?void 0:Ut.style),oe),{zIndex:$n})}),et);return $n&&(En=re.createElement(Ne.Z.Provider,{value:gn},En)),Ht(En)},Ye=(0,Ke.Z)(ce,"align",void 0,"dropdown",Ie=>Ie),Ft=Ie=>re.createElement(Ye,Object.assign({},Ie),re.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=Ft;var bt=ce},584:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return Ct}});var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(9017),Ce=ie(17835),we=ie(57700),_e=()=>{const[,st]=(0,we.ZP)(),[rt]=(0,We.Z)("Empty"),He=new Ce.FastColor(st.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:He,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},re.createElement("title",null,(rt==null?void 0:rt.description)||"Empty"),re.createElement("g",{fill:"none",fillRule:"evenodd"},re.createElement("g",{transform:"translate(24 31.67)"},re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),re.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"}),re.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)"}),re.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"}),re.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"})),re.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"}),re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,st]=(0,we.ZP)(),[rt]=(0,We.Z)("Empty"),{colorFill:ot,colorFillTertiary:He,colorFillQuaternary:St,colorBgContainer:tt}=st,{borderColor:Xe,shadowColor:ft,contentColor:Be}=(0,re.useMemo)(()=>({borderColor:new Ce.FastColor(ot).onBackground(tt).toHexString(),shadowColor:new Ce.FastColor(He).onBackground(tt).toHexString(),contentColor:new Ce.FastColor(St).onBackground(tt).toHexString()}),[ot,He,St,tt]);return re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},re.createElement("title",null,(rt==null?void 0:rt.description)||"Empty"),re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},re.createElement("ellipse",{fill:ft,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:Xe},re.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"}),re.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:Be}))))},Ge=ie(16931),Se=ie(51636);const vt=st=>{const{componentCls:rt,margin:ot,marginXS:He,marginXL:St,fontSize:tt,lineHeight:Xe}=st;return{[rt]:{marginInline:He,fontSize:tt,lineHeight:Xe,textAlign:"center",[`${rt}-image`]:{height:st.emptyImgHeight,marginBottom:He,opacity:st.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${rt}-description`]:{color:st.colorTextDescription},[`${rt}-footer`]:{marginTop:ot},"&-normal":{marginBlock:St,color:st.colorTextDescription,[`${rt}-description`]:{color:st.colorTextDescription},[`${rt}-image`]:{height:st.emptyImgHeightMD}},"&-small":{marginBlock:He,color:st.colorTextDescription,[`${rt}-image`]:{height:st.emptyImgHeightSM}}}}};var Ke=(0,Ge.I$)("Empty",st=>{const{componentCls:rt,controlHeightLG:ot,calc:He}=st,St=(0,Se.mergeToken)(st,{emptyImgCls:`${rt}-img`,emptyImgHeight:He(ot).mul(2.5).equal(),emptyImgHeightMD:ot,emptyImgHeightSM:He(ot).mul(.875).equal()});return[vt(St)]}),Fe=ie(48755),je=function(st,rt){var ot={};for(var He in st)Object.prototype.hasOwnProperty.call(st,He)&&rt.indexOf(He)<0&&(ot[He]=st[He]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,He=Object.getOwnPropertySymbols(st);St{const{className:rt,rootClassName:ot,prefixCls:He,image:St=Ne,description:tt,children:Xe,imageStyle:ft,style:Be,classNames:at,styles:it}=st,me=je(st,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:kt,direction:Oe,className:$e,style:Et,classNames:ve,styles:ce}=(0,Fe.dj)("empty"),Ye=kt("empty",He),[Ft,bt,Ie]=Ke(Ye),[Ze]=(0,We.Z)("Empty"),Qe=typeof tt!="undefined"?tt:Ze==null?void 0:Ze.description,Qt=typeof Qe=="string"?Qe:"empty";let Mt=null;return typeof St=="string"?Mt=re.createElement("img",{alt:Qt,src:St}):Mt=St,Ft(re.createElement("div",Object.assign({className:ge()(bt,Ie,Ye,$e,{[`${Ye}-normal`]:St===ht,[`${Ye}-rtl`]:Oe==="rtl"},rt,ot,ve.root,at==null?void 0:at.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),Et),it==null?void 0:it.root),Be)},me),re.createElement("div",{className:ge()(`${Ye}-image`,ve.image,at==null?void 0:at.image),style:Object.assign(Object.assign(Object.assign({},ft),ce.image),it==null?void 0:it.image)},Mt),Qe&&re.createElement("div",{className:ge()(`${Ye}-description`,ve.description,at==null?void 0:at.description),style:Object.assign(Object.assign({},ce.description),it==null?void 0:it.description)},Qe),Xe&&re.createElement("div",{className:ge()(`${Ye}-footer`,ve.footer,at==null?void 0:at.footer),style:Object.assign(Object.assign({},ce.footer),it==null?void 0:it.footer)},Xe)))};yt.PRESENTED_IMAGE_DEFAULT=Ne,yt.PRESENTED_IMAGE_SIMPLE=ht;var Ct=yt},28284:function(Vt,Lt,ie){"use strict";ie.d(Lt,{default:function(){return Ue}});var re=ie(56553),qe=ie(77654),ge=ie(59301),We=ie(92310),Ce=ie.n(We),we=ie(77900),Le=ie(86641),_e=ie(83397);function ke(be){const[De,xe]=ge.useState(be);return ge.useEffect(()=>{const Te=setTimeout(()=>{xe(be)},be.length?0:10);return()=>{clearTimeout(Te)}},[be]),De}var fe=ie(36237),Ge=ie(63356),Se=ie(34925),vt=ie(34961),Ke=ie(51636),Fe=ie(16931),Ne=be=>{const{componentCls:De}=be,xe=`${De}-show-help`,Te=`${De}-show-help-item`;return{[xe]:{transition:`opacity ${be.motionDurationFast} ${be.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Te]:{overflow:"hidden",transition:`height ${be.motionDurationFast} ${be.motionEaseInOut}, opacity ${be.motionDurationFast} ${be.motionEaseInOut}, transform ${be.motionDurationFast} ${be.motionEaseInOut} !important`,[`&${Te}-appear, &${Te}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Te}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ht=be=>({legend:{display:"block",width:"100%",marginBottom:be.marginLG,padding:0,color:be.colorTextDescription,fontSize:be.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(be.lineWidth)} ${be.lineType} ${be.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)(be.controlOutlineWidth)} ${be.controlOutline}`},output:{display:"block",paddingTop:15,color:be.colorText,fontSize:be.fontSize,lineHeight:be.lineHeight}}),yt=(be,De)=>{const{formItemCls:xe}=be;return{[xe]:{[`${xe}-label > label`]:{height:De},[`${xe}-control-input`]:{minHeight:De}}}},Ct=be=>{const{componentCls:De}=be;return{[be.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(be)),ht(be)),{[`${De}-text`]:{display:"inline-block",paddingInlineEnd:be.paddingSM},"&-small":Object.assign({},yt(be,be.controlHeightSM)),"&-large":Object.assign({},yt(be,be.controlHeightLG))})}},st=be=>{const{formItemCls:De,iconCls:xe,rootPrefixCls:Te,antCls:ct,labelRequiredMarkColor:Gt,labelColor:_t,labelFontSize:an,labelHeight:Rt,labelColonMarginInlineStart:wt,labelColonMarginInlineEnd:mt,itemMarginBottom:Jt}=be;return{[De]:Object.assign(Object.assign({},(0,Ge.Wf)(be)),{marginBottom:Jt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${ct}-row`]:{display:"none"},"&-has-warning":{[`${De}-split`]:{color:be.colorError}},"&-has-error":{[`${De}-split`]:{color:be.colorWarning}},[`${De}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:be.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Rt,color:_t,fontSize:an,[`> ${xe}`]:{fontSize:be.fontSize,verticalAlign:"top"},[`&${De}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:be.marginXXS,color:Gt,fontSize:be.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${De}-required-mark-hidden, &${De}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${De}-optional`]:{display:"inline-block",marginInlineStart:be.marginXXS,color:be.colorTextDescription,[`&${De}-required-mark-hidden`]:{display:"none"}},[`${De}-tooltip`]:{color:be.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:be.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:wt,marginInlineEnd:mt},[`&${De}-no-colon::after`]:{content:'"\\a0"'}}},[`${De}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Te}-col-'"]):not([class*="' ${Te}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:be.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[De]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:be.colorTextDescription,fontSize:be.fontSize,lineHeight:be.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:be.controlHeightSM,transition:`color ${be.motionDurationMid} ${be.motionEaseOut}`},"&-explain":{"&-error":{color:be.colorError},"&-warning":{color:be.colorWarning}}},[`&-with-help ${De}-explain`]:{height:"auto",opacity:1},[`${De}-feedback-icon`]:{fontSize:be.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:be.motionDurationMid,animationTimingFunction:be.motionEaseOutBack,pointerEvents:"none","&-success":{color:be.colorSuccess},"&-error":{color:be.colorError},"&-warning":{color:be.colorWarning},"&-validating":{color:be.colorPrimary}}})}},rt=(be,De)=>{const{formItemCls:xe}=be;return{[`${De}-horizontal`]:{[`${xe}-label`]:{flexGrow:0},[`${xe}-control`]:{flex:"1 1 0",minWidth:0},[`${xe}-label[class$='-24'], ${xe}-label[class*='-24 ']`]:{[`& + ${xe}-control`]:{minWidth:"unset"}}}}},ot=be=>{const{componentCls:De,formItemCls:xe,inlineItemMarginBottom:Te}=be;return{[`${De}-inline`]:{display:"flex",flexWrap:"wrap",[xe]:{flex:"none",marginInlineEnd:be.margin,marginBottom:Te,"&-row":{flexWrap:"nowrap"},[`> ${xe}-label, > ${xe}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${xe}-label`]:{flex:"none"},[`${De}-text`]:{display:"inline-block"},[`${xe}-has-feedback`]:{display:"inline-block"}}}}},He=be=>({padding:be.verticalLabelPadding,margin:be.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),St=be=>{const{componentCls:De,formItemCls:xe,rootPrefixCls:Te}=be;return{[`${xe} ${xe}-label`]:He(be),[`${De}:not(${De}-inline)`]:{[xe]:{flexWrap:"wrap",[`${xe}-label, ${xe}-control`]:{[`&:not([class*=" ${Te}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},tt=be=>{const{componentCls:De,formItemCls:xe,antCls:Te}=be;return{[`${De}-vertical`]:{[`${xe}:not(${xe}-horizontal)`]:{[`${xe}-row`]:{flexDirection:"column"},[`${xe}-label > label`]:{height:"auto"},[`${xe}-control`]:{width:"100%"},[`${xe}-label, ${Te}-col-24${xe}-label, ${Te}-col-xl-24${xe}-label`]:He(be)}},[`@media (max-width: ${(0,fe.unit)(be.screenXSMax)})`]:[St(be),{[De]:{[`${xe}:not(${xe}-horizontal)`]:{[`${Te}-col-xs-24${xe}-label`]:He(be)}}}],[`@media (max-width: ${(0,fe.unit)(be.screenSMMax)})`]:{[De]:{[`${xe}:not(${xe}-horizontal)`]:{[`${Te}-col-sm-24${xe}-label`]:He(be)}}},[`@media (max-width: ${(0,fe.unit)(be.screenMDMax)})`]:{[De]:{[`${xe}:not(${xe}-horizontal)`]:{[`${Te}-col-md-24${xe}-label`]:He(be)}}},[`@media (max-width: ${(0,fe.unit)(be.screenLGMax)})`]:{[De]:{[`${xe}:not(${xe}-horizontal)`]:{[`${Te}-col-lg-24${xe}-label`]:He(be)}}}}},Xe=be=>{const{formItemCls:De,antCls:xe}=be;return{[`${De}-vertical`]:{[`${De}-row`]:{flexDirection:"column"},[`${De}-label > label`]:{height:"auto"},[`${De}-control`]:{width:"100%"}},[`${De}-vertical ${De}-label, ${xe}-col-24${De}-label, ${xe}-col-xl-24${De}-label`]:He(be),[`@media (max-width: ${(0,fe.unit)(be.screenXSMax)})`]:[St(be),{[De]:{[`${xe}-col-xs-24${De}-label`]:He(be)}}],[`@media (max-width: ${(0,fe.unit)(be.screenSMMax)})`]:{[De]:{[`${xe}-col-sm-24${De}-label`]:He(be)}},[`@media (max-width: ${(0,fe.unit)(be.screenMDMax)})`]:{[De]:{[`${xe}-col-md-24${De}-label`]:He(be)}},[`@media (max-width: ${(0,fe.unit)(be.screenLGMax)})`]:{[De]:{[`${xe}-col-lg-24${De}-label`]:He(be)}}}},ft=be=>({labelRequiredMarkColor:be.colorError,labelColor:be.colorTextHeading,labelFontSize:be.fontSize,labelHeight:be.controlHeight,labelColonMarginInlineStart:be.marginXXS/2,labelColonMarginInlineEnd:be.marginXS,itemMarginBottom:be.marginLG,verticalLabelPadding:`0 0 ${be.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Be=(be,De)=>(0,Ke.mergeToken)(be,{formItemCls:`${be.componentCls}-item`,rootPrefixCls:De});var at=(0,Fe.I$)("Form",(be,De)=>{let{rootPrefixCls:xe}=De;const Te=Be(be,xe);return[Ct(Te),st(Te),Ne(Te),rt(Te,Te.componentCls),rt(Te,Te.formItemCls),ot(Te),tt(Te),Xe(Te),(0,vt.Z)(Te),Se.kr]},ft,{order:-1e3});const it=[];function me(be,De,xe){let Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof be=="string"?be:`${De}-${Te}`,error:be,errorStatus:xe}}var Oe=be=>{let{help:De,helpStatus:xe,errors:Te=it,warnings:ct=it,className:Gt,fieldId:_t,onVisibleChanged:an}=be;const{prefixCls:Rt}=ge.useContext(re.Rk),wt=`${Rt}-item-explain`,mt=(0,_e.Z)(Rt),[Jt,vn,hn]=at(Rt,mt),pn=ge.useMemo(()=>(0,Le.Z)(Rt),[Rt]),Gn=ke(Te),Yn=ke(ct),Jn=ge.useMemo(()=>De!=null?[me(De,"help",xe)]:[].concat((0,qe.Z)(Gn.map((Dn,Wn)=>me(Dn,"error","error",Wn))),(0,qe.Z)(Yn.map((Dn,Wn)=>me(Dn,"warning","warning",Wn)))),[De,xe,Gn,Yn]),Rn=ge.useMemo(()=>{const Dn={};return Jn.forEach(Wn=>{let{key:ur}=Wn;Dn[ur]=(Dn[ur]||0)+1}),Jn.map((Wn,ur)=>Object.assign(Object.assign({},Wn),{key:Dn[Wn.key]>1?`${Wn.key}-fallback-${ur}`:Wn.key}))},[Jn]),In={};return _t&&(In.id=`${_t}_help`),Jt(ge.createElement(we.default,{motionDeadline:pn.motionDeadline,motionName:`${Rt}-show-help`,visible:!!Rn.length,onVisibleChanged:an},Dn=>{const{className:Wn,style:ur}=Dn;return ge.createElement("div",Object.assign({},In,{className:Ce()(wt,Wn,hn,mt,Gt,vn),style:ur}),ge.createElement(we.CSSMotionList,Object.assign({keys:Rn},(0,Le.Z)(Rt),{motionName:`${Rt}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:vr}=qn;return ge.createElement("div",{key:lr,className:Ce()(tr,{[`${wt}-${er}`]:er}),style:vr},ir)}))}))},$e=ie(69180),Et=ie(48755),ve=ie(2171),ce=ie(31756),Ye=ie(23069),Ft=ie(76846),bt=ie(16722);const Ie=["parentNode"],Ze="form_item";function Qe(be){return be===void 0||be===!1?[]:Array.isArray(be)?be:[be]}function Qt(be,De){if(!be.length)return;const xe=be.join("_");return De?`${De}_${xe}`:Ie.includes(xe)?`${Ze}_${xe}`:xe}function Mt(be,De,xe,Te,ct,Gt){let _t=Te;return Gt!==void 0?_t=Gt:xe.validating?_t="validating":be.length?_t="error":De.length?_t="warning":(xe.touched||ct&&xe.validated)&&(_t="success"),_t}var $t=function(be,De){var xe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&De.indexOf(Te)<0&&(xe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Te=Object.getOwnPropertySymbols(be);ctbe!=null?be:Object.assign(Object.assign({},De),{__INTERNAL__:{itemRef:ct=>Gt=>{const _t=Re(ct);Gt?xe.current[_t]=Gt:delete xe.current[_t]}},scrollToField:function(ct){let Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:_t}=Gt,an=$t(Gt,["focus"]),Rt=Tt(ct,Te);Rt&&((0,bt.Z)(Rt,Object.assign({scrollMode:"if-needed",block:"nearest"},an)),_t&&Te.focusField(ct))},focusField:ct=>{var Gt,_t;const an=Te.getFieldInstance(ct);typeof(an==null?void 0:an.focus)=="function"?an.focus():(_t=(Gt=Tt(ct,Te))===null||Gt===void 0?void 0:Gt.focus)===null||_t===void 0||_t.call(Gt)},getFieldInstance:ct=>{const Gt=Re(ct);return xe.current[Gt]}}),[be,De]);return[Te]}var ae=ie(98350),ee=function(be,De){var xe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&De.indexOf(Te)<0&&(xe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Te=Object.getOwnPropertySymbols(be);ct{const xe=ge.useContext(ve.Z),{getPrefixCls:Te,direction:ct,requiredMark:Gt,colon:_t,scrollToFirstError:an,className:Rt,style:wt}=(0,Et.dj)("form"),{prefixCls:mt,className:Jt,rootClassName:vn,size:hn,disabled:pn=xe,form:Gn,colon:Yn,labelAlign:Jn,labelWrap:Rn,labelCol:In,wrapperCol:Dn,hideRequiredMark:Wn,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:vr,variant:mr}=be,cr=ee(be,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),gr=(0,ce.Z)(hn),Cr=ge.useContext(ae.Z),or=ge.useMemo(()=>lr!==void 0?lr:Wn?!1:Gt!==void 0?Gt:!0,[Wn,lr,Gt]),dr=Yn!=null?Yn:_t,zn=Te("form",mt),wr=(0,_e.Z)(zn),[Rr,Wr,Er]=at(zn,wr),Ar=Ce()(zn,`${zn}-${ur}`,{[`${zn}-hide-required-mark`]:or===!1,[`${zn}-rtl`]:ct==="rtl",[`${zn}-${gr}`]:gr},Er,wr,Wr,Rt,Jt,vn),[Ir]=lt(Gn),{__INTERNAL__:Dr}=Ir;Dr.name=er;const zr=ge.useMemo(()=>({name:er,labelAlign:Jn,labelCol:In,labelWrap:Rn,wrapperCol:Dn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Dr.itemRef,form:Ir,feedbackIcons:vr}),[er,Jn,In,Dn,ur,dr,or,Ir,vr]),fr=ge.useRef(null);ge.useImperativeHandle(De,()=>{var ln;return Object.assign(Object.assign({},Ir),{nativeElement:(ln=fr.current)===null||ln===void 0?void 0:ln.nativeElement})});const _n=(ln,rn)=>{if(ln){let jt={block:"nearest"};typeof ln=="object"&&(jt=Object.assign(Object.assign({},jt),ln)),Ir.scrollToField(rn,jt)}},qt=ln=>{if(ir==null||ir(ln),ln.errorFields.length){const rn=ln.errorFields[0].name;if(qn!==void 0){_n(qn,rn);return}an!==void 0&&_n(an,rn)}};return Rr(ge.createElement(re.pg.Provider,{value:mr},ge.createElement(ve.n,{disabled:pn},ge.createElement(Ye.Z.Provider,{value:gr},ge.createElement(re.RV,{validateMessages:Cr},ge.createElement(re.q3.Provider,{value:zr},ge.createElement($e.default,Object.assign({id:er},cr,{name:er,onFinishFailed:qt,form:Ir,ref:fr,style:Object.assign(Object.assign({},wt),tr),className:Ar}))))))))};var se=ge.forwardRef(z),ne=ie(41799),he=ie(8654),ye=ie(22703),nt=ie(32383),Ee=ie(11592);function ze(be){if(typeof be=="function")return be;const De=(0,Ee.Z)(be);return De.length<=1?De[0]:De}const Je=()=>{const{status:be,errors:De=[],warnings:xe=[]}=ge.useContext(re.aM);return{status:be,errors:De,warnings:xe}};Je.Context=re.aM;var pt=Je,ut=ie(16089);function At(be){const[De,xe]=ge.useState(be),Te=ge.useRef(null),ct=ge.useRef([]),Gt=ge.useRef(!1);ge.useEffect(()=>(Gt.current=!1,()=>{Gt.current=!0,ut.Z.cancel(Te.current),Te.current=null}),[]);function _t(an){Gt.current||(Te.current===null&&(ct.current=[],Te.current=(0,ut.Z)(()=>{Te.current=null,xe(Rt=>{let wt=Rt;return ct.current.forEach(mt=>{wt=mt(wt)}),wt})})),ct.current.push(an))}return[De,_t]}function Bt(){const{itemRef:be}=ge.useContext(re.q3),De=ge.useRef({});function xe(Te,ct){const Gt=ct&&typeof ct=="object"&&(0,he.C4)(ct),_t=Te.join("_");return(De.current.name!==_t||De.current.originRef!==Gt)&&(De.current.name=_t,De.current.originRef=Gt,De.current.ref=(0,he.sQ)(be(Te),Gt)),De.current.ref}return xe}var Dt=ie(29194),Ut=ie(34280),Wt=ie(2738),Zt=ie(65970),dt=ie(70425),zt=ie(5472);const Pt=be=>{const{formItemCls:De}=be;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${De}-control`]:{display:"flex"}}}};var Ht=(0,Fe.bk)(["Form","item-item"],(be,De)=>{let{rootPrefixCls:xe}=De;const Te=Be(be,xe);return[Pt(Te)]}),nn=function(be,De){var xe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&De.indexOf(Te)<0&&(xe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Te=Object.getOwnPropertySymbols(be);ct{const{prefixCls:De,status:xe,labelCol:Te,wrapperCol:ct,children:Gt,errors:_t,warnings:an,_internalItemRender:Rt,extra:wt,help:mt,fieldId:Jt,marginBottom:vn,onErrorVisibleChanged:hn,label:pn}=be,Gn=`${De}-item`,Yn=ge.useContext(re.q3),Jn=ge.useMemo(()=>{let cr=Object.assign({},ct||Yn.wrapperCol||{});return pn===null&&!Te&&!ct&&Yn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,dt.U2)(Yn.labelCol,or),zn=typeof dr=="object"?dr:{},wr=(0,dt.U2)(cr,or),Rr=typeof wr=="object"?wr:{};"span"in zn&&!("offset"in Rr)&&zn.span{const{labelCol:cr,wrapperCol:gr}=Yn;return nn(Yn,["labelCol","wrapperCol"])},[Yn]),Dn=ge.useRef(null),[Wn,ur]=ge.useState(0);(0,Ut.Z)(()=>{wt&&Dn.current?ur(Dn.current.clientHeight):ur(0)},[wt]);const qn=ge.createElement("div",{className:`${Gn}-control-input`},ge.createElement("div",{className:`${Gn}-control-input-content`},Gt)),lr=ge.useMemo(()=>({prefixCls:De,status:xe}),[De,xe]),ir=vn!==null||_t.length||an.length?ge.createElement(re.Rk.Provider,{value:lr},ge.createElement(Oe,{fieldId:Jt,errors:_t,warnings:an,help:mt,helpStatus:xe,className:`${Gn}-explain-connected`,onVisibleChanged:hn})):null,er={};Jt&&(er.id=`${Jt}_extra`);const tr=wt?ge.createElement("div",Object.assign({},er,{className:`${Gn}-extra`,ref:Dn}),wt):null,vr=ir||tr?ge.createElement("div",{className:`${Gn}-additional`,style:vn?{minHeight:vn+Wn}:{}},ir,tr):null,mr=Rt&&Rt.mark==="pro_table_render"&&Rt.render?Rt.render(be,{input:qn,errorList:ir,extra:tr}):ge.createElement(ge.Fragment,null,qn,vr);return ge.createElement(re.q3.Provider,{value:In},ge.createElement(zt.Z,Object.assign({},Jn,{className:Rn}),mr),ge.createElement(Ht,{prefixCls:De}))},et=ie(61485),gt=ie(9017),Nt=ie(85981),on=ie(25399),cn=function(be,De){var xe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&De.indexOf(Te)<0&&(xe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Te=Object.getOwnPropertySymbols(be);ct{let{prefixCls:De,label:xe,htmlFor:Te,labelCol:ct,labelAlign:Gt,colon:_t,required:an,requiredMark:Rt,tooltip:wt,vertical:mt}=be;var Jt;const[vn]=(0,gt.Z)("Form"),{labelAlign:hn,labelCol:pn,labelWrap:Gn,colon:Yn}=ge.useContext(re.q3);if(!xe)return null;const Jn=ct||pn||{},Rn=Gt||hn,In=`${De}-item-label`,Dn=Ce()(In,Rn==="left"&&`${In}-left`,Jn.className,{[`${In}-wrap`]:!!Gn});let Wn=xe;const ur=_t===!0||Yn!==!1&&_t!==!1;ur&&!mt&&typeof xe=="string"&&xe.trim()&&(Wn=xe.replace(/[:|:]\s*$/,""));const lr=Bn(wt);if(lr){const{icon:cr=ge.createElement(et.Z,null)}=lr,gr=cn(lr,["icon"]),Cr=ge.createElement(on.Z,Object.assign({},gr),ge.cloneElement(cr,{className:`${De}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Wn=ge.createElement(ge.Fragment,null,Wn,Cr)}const ir=Rt==="optional",er=typeof Rt=="function",tr=Rt===!1;er?Wn=Rt(Wn,{required:!!an}):ir&&!an&&(Wn=ge.createElement(ge.Fragment,null,Wn,ge.createElement("span",{className:`${De}-item-optional`,title:""},(vn==null?void 0:vn.optional)||((Jt=Nt.Z.Form)===null||Jt===void 0?void 0:Jt.optional))));let vr;tr?vr="hidden":(ir||er)&&(vr="optional");const mr=Ce()({[`${De}-item-required`]:an,[`${De}-item-required-mark-${vr}`]:vr,[`${De}-item-no-colon`]:!ur});return ge.createElement(zt.Z,Object.assign({},Jn,{className:Dn}),ge.createElement("label",{htmlFor:Te,className:mr,title:typeof xe=="string"?xe:""},Wn))},bn=ie(29679),mn=ie(19248),$n=ie(96512),gn=ie(58617);const En={success:bn.Z,warning:$n.Z,error:mn.Z,validating:gn.Z};function Xt(be){let{children:De,errors:xe,warnings:Te,hasFeedback:ct,validateStatus:Gt,prefixCls:_t,meta:an,noStyle:Rt}=be;const wt=`${_t}-item`,{feedbackIcons:mt}=ge.useContext(re.q3),Jt=Mt(xe,Te,an,null,!!ct,Gt),{isFormItemInput:vn,status:hn,hasFeedback:pn,feedbackIcon:Gn}=ge.useContext(re.aM),Yn=ge.useMemo(()=>{var Jn;let Rn;if(ct){const Dn=ct!==!0&&ct.icons||mt,Wn=Jt&&((Jn=Dn==null?void 0:Dn({status:Jt,errors:xe,warnings:Te}))===null||Jn===void 0?void 0:Jn[Jt]),ur=Jt&&En[Jt];Rn=Wn!==!1&&ur?ge.createElement("span",{className:Ce()(`${wt}-feedback-icon`,`${wt}-feedback-icon-${Jt}`)},Wn||ge.createElement(ur,null)):null}const In={status:Jt||"",errors:xe,warnings:Te,hasFeedback:!!ct,feedbackIcon:Rn,isFormItemInput:!0};return Rt&&(In.status=(Jt!=null?Jt:hn)||"",In.isFormItemInput=vn,In.hasFeedback=!!(ct!=null?ct:pn),In.feedbackIcon=ct!==void 0?In.feedbackIcon:Gn),In},[Jt,ct,Rt,vn,hn]);return ge.createElement(re.aM.Provider,{value:Yn},De)}var xn=function(be,De){var xe={};for(var Te in be)Object.prototype.hasOwnProperty.call(be,Te)&&De.indexOf(Te)<0&&(xe[Te]=be[Te]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Te=Object.getOwnPropertySymbols(be);ct{if(tr&&qn.current){const zn=getComputedStyle(qn.current);cr(parseInt(zn.marginBottom,10))}},[tr,vr]);const gr=zn=>{zn||cr(null)},or=function(){let zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const wr=zn?lr:wt.errors,Rr=zn?ir:wt.warnings;return Mt(wr,Rr,wt,"",!!mt,Rt)}(),dr=Ce()(In,xe,Te,{[`${In}-with-help`]:er||lr.length||ir.length,[`${In}-has-feedback`]:or&&mt,[`${In}-has-success`]:or==="success",[`${In}-has-warning`]:or==="warning",[`${In}-has-error`]:or==="error",[`${In}-is-validating`]:or==="validating",[`${In}-hidden`]:Jt,[`${In}-${Jn}`]:Jn});return ge.createElement("div",{className:dr,style:ct,ref:qn},ge.createElement(Zt.Z,Object.assign({className:`${In}-row`},(0,Wt.Z)(Rn,["_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(sn,Object.assign({htmlFor:hn},be,{requiredMark:Dn,required:pn!=null?pn:Gn,prefixCls:De,vertical:ur})),ge.createElement(Me,Object.assign({},be,wt,{errors:lr,warnings:ir,prefixCls:De,status:or,help:Gt,marginBottom:mr,onErrorVisibleChanged:gr}),ge.createElement(re.qI.Provider,{value:Yn},ge.createElement(Xt,{prefixCls:De,meta:wt,errors:wt.errors,warnings:wt.warnings,hasFeedback:mt,validateStatus:or},vn)))),!!mr&&ge.createElement("div",{className:`${In}-margin-offset`,style:{marginBottom:-mr}}))}const Tn="__SPLIT__",Vn=null;function Hn(be,De){const xe=Object.keys(be),Te=Object.keys(De);return xe.length===Te.length&&xe.every(ct=>{const Gt=be[ct],_t=De[ct];return Gt===_t||typeof Gt=="function"||typeof _t=="function"})}const Nn=ge.memo(be=>{let{children:De}=be;return De},(be,De)=>Hn(be.control,De.control)&&be.update===De.update&&be.childProps.length===De.childProps.length&&be.childProps.every((xe,Te)=>xe===De.childProps[Te]));function Un(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Kn(be){const{name:De,noStyle:xe,className:Te,dependencies:ct,prefixCls:Gt,shouldUpdate:_t,rules:an,children:Rt,required:wt,label:mt,messageVariables:Jt,trigger:vn="onChange",validateTrigger:hn,hidden:pn,help:Gn,layout:Yn}=be,{getPrefixCls:Jn}=ge.useContext(Et.E_),{name:Rn}=ge.useContext(re.q3),In=ze(Rt),Dn=typeof In=="function",Wn=ge.useContext(re.qI),{validateTrigger:ur}=ge.useContext($e.FieldContext),qn=hn!==void 0?hn:ur,lr=De!=null,ir=Jn("form",Gt),er=(0,_e.Z)(ir),[tr,vr,mr]=at(ir,er),cr=(0,nt.ln)("Form.Item"),gr=ge.useContext($e.ListContext),Cr=ge.useRef(null),[or,dr]=At({}),[zn,wr]=(0,ne.Z)(()=>Un()),Rr=fr=>{const _n=gr==null?void 0:gr.getKey(fr.name);if(wr(fr.destroy?Un():fr,!0),xe&&Gn!==!1&&Wn){let qt=fr.name;if(fr.destroy)qt=Cr.current||qt;else if(_n!==void 0){const[ln,rn]=_n;qt=[ln].concat((0,qe.Z)(rn)),Cr.current=qt}Wn(fr,qt)}},Wr=(fr,_n)=>{dr(qt=>{const ln=Object.assign({},qt),jt=[].concat((0,qe.Z)(fr.name.slice(0,-1)),(0,qe.Z)(_n)).join(Tn);return fr.destroy?delete ln[jt]:ln[jt]=fr,ln})},[Er,Ar]=ge.useMemo(()=>{const fr=(0,qe.Z)(zn.errors),_n=(0,qe.Z)(zn.warnings);return Object.values(or).forEach(qt=>{fr.push.apply(fr,(0,qe.Z)(qt.errors||[])),_n.push.apply(_n,(0,qe.Z)(qt.warnings||[]))}),[fr,_n]},[or,zn.errors,zn.warnings]),Ir=Bt();function Dr(fr,_n,qt){return xe&&!pn?ge.createElement(Xt,{prefixCls:ir,hasFeedback:be.hasFeedback,validateStatus:be.validateStatus,meta:zn,errors:Er,warnings:Ar,noStyle:!0},fr):ge.createElement(dn,Object.assign({key:"row"},be,{className:Ce()(Te,mr,er,vr),prefixCls:ir,fieldId:_n,isRequired:qt,errors:Er,warnings:Ar,meta:zn,onSubItemMetaChange:Wr,layout:Yn}),fr)}if(!lr&&!Dn&&!ct)return tr(Dr(In));let zr={};return typeof mt=="string"?zr.label=mt:De&&(zr.label=String(De)),Jt&&(zr=Object.assign(Object.assign({},zr),Jt)),tr(ge.createElement($e.Field,Object.assign({},be,{messageVariables:zr,trigger:vn,validateTrigger:qn,onMetaChange:Rr}),(fr,_n,qt)=>{const ln=Qe(De).length&&_n?_n.name:[],rn=Qt(ln,Rn),jt=wt!==void 0?wt:!!(an!=null&&an.some(en=>{if(en&&typeof en=="object"&&en.required&&!en.warningOnly)return!0;if(typeof en=="function"){const tn=en(qt);return(tn==null?void 0:tn.required)&&!(tn!=null&&tn.warningOnly)}return!1})),kn=Object.assign({},fr);let An=null;if(Array.isArray(In)&&lr)An=In;else if(!(Dn&&(!(_t||ct)||lr))){if(!(ct&&!Dn&&!lr))if(ge.isValidElement(In)){const en=Object.assign(Object.assign({},In.props),kn);if(en.id||(en.id=rn),Gn||Er.length>0||Ar.length>0||be.extra){const Sn=[];(Gn||Er.length>0)&&Sn.push(`${rn}_help`),be.extra&&Sn.push(`${rn}_extra`),en["aria-describedby"]=Sn.join(" ")}Er.length>0&&(en["aria-invalid"]="true"),jt&&(en["aria-required"]="true"),(0,he.Yr)(In)&&(en.ref=Ir(ln,In)),new Set([].concat((0,qe.Z)(Qe(vn)),(0,qe.Z)(Qe(qn)))).forEach(Sn=>{en[Sn]=function(){for(var rr,kr,br,Pr,Mr,Tr=arguments.length,$r=new Array(Tr),Lr=0;Lr{var{prefixCls:De,children:xe}=be,Te=Ot(be,["prefixCls","children"]);const{getPrefixCls:ct}=ge.useContext(Et.E_),Gt=ct("form",De),_t=ge.useMemo(()=>({prefixCls:Gt,status:"error"}),[Gt]);return ge.createElement($e.List,Object.assign({},Te),(an,Rt,wt)=>ge.createElement(re.Rk.Provider,{value:_t},xe(an.map(mt=>Object.assign(Object.assign({},mt),{fieldKey:mt.key})),Rt,{errors:wt.errors,warnings:wt.warnings})))};function Xn(){const{form:be}=ge.useContext(re.q3);return be}const Pe=se;Pe.Item=Zn,Pe.List=Ln,Pe.ErrorList=Oe,Pe.useForm=lt,Pe.useFormInstance=Xn,Pe.useWatch=$e.useWatch,Pe.Provider=re.RV,Pe.create=()=>{};var Ue=Pe},4875:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return fn}});var re=ie(59301),qe=ie(84105),ge=ie(87395),We=ie(92310),Ce=ie.n(We),we=ie(60499),Le=ie(18642),_e=ie(43749),ke=ie(72190),fe=ie(42244),Ge=ie(38705),Se=ie(17212);function vt(){return typeof BigInt=="function"}function Ke(Me){return!Me&&Me!==0&&!Number.isNaN(Me)||!String(Me).trim()}function Fe(Me){var et=Me.trim(),gt=et.startsWith("-");gt&&(et=et.slice(1)),et=et.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),et.startsWith(".")&&(et="0".concat(et));var Nt=et||"0",on=Nt.split("."),cn=on[0]||"0",Bn=on[1]||"0";cn==="0"&&Bn==="0"&&(gt=!1);var Mn=gt?"-":"";return{negative:gt,negativeStr:Mn,trimStr:Nt,integerStr:cn,decimalStr:Bn,fullStr:"".concat(Mn).concat(Nt)}}function je(Me){var et=String(Me);return!Number.isNaN(Number(et))&&et.includes("e")}function Ne(Me){var et=String(Me);if(je(Me)){var gt=Number(et.slice(et.indexOf("e-")+2)),Nt=et.match(/\.(\d+)/);return Nt!=null&&Nt[1]&&(gt+=Nt[1].length),gt}return et.includes(".")&&yt(et)?et.length-et.indexOf(".")-1:0}function ht(Me){var et=String(Me);if(je(Me)){if(Me>Number.MAX_SAFE_INTEGER)return String(vt()?BigInt(Me).toString():Number.MAX_SAFE_INTEGER);if(Me0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":Fe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Me}(),st=function(){function Me(et){if((0,Ge.Z)(this,Me),(0,Le.Z)(this,"origin",""),(0,Le.Z)(this,"number",void 0),(0,Le.Z)(this,"empty",void 0),Ke(et)){this.empty=!0;return}this.origin=String(et),this.number=Number(et)}return(0,Se.Z)(Me,[{key:"negate",value:function(){return new Me(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var Nt=Number(gt);if(Number.isNaN(Nt))return this;var on=this.number+Nt;if(on>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(onNumber.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(on0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":ht(this.number):this.origin}}]),Me}();function rt(Me){return vt()?new Ct(Me):new st(Me)}function ot(Me,et,gt){var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Me==="")return"";var on=Fe(Me),cn=on.negativeStr,Bn=on.integerStr,Mn=on.decimalStr,sn="".concat(et).concat(Mn),bn="".concat(cn).concat(Bn);if(gt>=0){var mn=Number(Mn[gt]);if(mn>=5&&!Nt){var $n=rt(Me).add("".concat(cn,"0.").concat("0".repeat(gt)).concat(10-mn));return ot($n.toString(),et,gt,Nt)}return gt===0?bn:"".concat(bn).concat(et).concat(Mn.padEnd(gt,"0").slice(0,gt))}return sn===".0"?bn:"".concat(bn).concat(sn)}var He=rt,St=ie(36901),tt=ie(34280);function Xe(Me,et){return typeof Proxy!="undefined"&&Me?new Proxy(Me,{get:function(Nt,on){if(et[on])return et[on];var cn=Nt[on];return typeof cn=="function"?cn.bind(Nt):cn}}):Me}var ft=ie(8654),Be=ie(48736);function at(Me,et){var gt=(0,re.useRef)(null);function Nt(){try{var cn=Me.selectionStart,Bn=Me.selectionEnd,Mn=Me.value,sn=Mn.substring(0,cn),bn=Mn.substring(Bn);gt.current={start:cn,end:Bn,value:Mn,beforeTxt:sn,afterTxt:bn}}catch(mn){}}function on(){if(Me&>.current&&et)try{var cn=Me.value,Bn=gt.current,Mn=Bn.beforeTxt,sn=Bn.afterTxt,bn=Bn.start,mn=cn.length;if(cn.startsWith(Mn))mn=Mn.length;else if(cn.endsWith(sn))mn=cn.length-gt.current.afterTxt.length;else{var $n=Mn[bn-1],gn=cn.indexOf($n,bn-1);gn!==-1&&(mn=gn+1)}Me.setSelectionRange(mn,mn)}catch(En){(0,Be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(En.message))}}return[Nt,on]}var it=ie(49658),me=function(){var et=(0,re.useState)(!1),gt=(0,ke.Z)(et,2),Nt=gt[0],on=gt[1];return(0,tt.Z)(function(){on((0,it.Z)())},[]),Nt},kt=me,Oe=ie(16089),$e=200,Et=600;function ve(Me){var et=Me.prefixCls,gt=Me.upNode,Nt=Me.downNode,on=Me.upDisabled,cn=Me.downDisabled,Bn=Me.onStep,Mn=re.useRef(),sn=re.useRef([]),bn=re.useRef();bn.current=Bn;var mn=function(){clearTimeout(Mn.current)},$n=function(Hn,Nn){Hn.preventDefault(),mn(),bn.current(Nn);function Un(){bn.current(Nn),Mn.current=setTimeout(Un,$e)}Mn.current=setTimeout(Un,Et)};re.useEffect(function(){return function(){mn(),sn.current.forEach(function(Vn){return Oe.Z.cancel(Vn)})}},[]);var gn=kt();if(gn)return null;var En="".concat(et,"-handler"),Xt=Ce()(En,"".concat(En,"-up"),(0,Le.Z)({},"".concat(En,"-up-disabled"),on)),xn=Ce()(En,"".concat(En,"-down"),(0,Le.Z)({},"".concat(En,"-down-disabled"),cn)),dn=function(){return sn.current.push((0,Oe.Z)(mn))},Tn={unselectable:"on",role:"button",onMouseUp:dn,onMouseLeave:dn};return re.createElement("div",{className:"".concat(En,"-wrap")},re.createElement("span",(0,we.Z)({},Tn,{onMouseDown:function(Hn){$n(Hn,!0)},"aria-label":"Increase Value","aria-disabled":on,className:Xt}),gt||re.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-up-inner")})),re.createElement("span",(0,we.Z)({},Tn,{onMouseDown:function(Hn){$n(Hn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:xn}),Nt||re.createElement("span",{unselectable:"on",className:"".concat(et,"-handler-down-inner")})))}function ce(Me){var et=typeof Me=="number"?ht(Me):Fe(Me).fullStr,gt=et.includes(".");return gt?Fe(et.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Me+"0"}var Ye=ie(30292),Ft=function(){var Me=(0,re.useRef)(0),et=function(){Oe.Z.cancel(Me.current)};return(0,re.useEffect)(function(){return et},[]),function(gt){et(),Me.current=(0,Oe.Z)(function(){gt()})}},bt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Ie=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ze=function(et,gt){return et||gt.isEmpty()?gt.toString():gt.toNumber()},Qe=function(et){var gt=He(et);return gt.isInvalidate()?null:gt},Qt=re.forwardRef(function(Me,et){var gt=Me.prefixCls,Nt=Me.className,on=Me.style,cn=Me.min,Bn=Me.max,Mn=Me.step,sn=Mn===void 0?1:Mn,bn=Me.defaultValue,mn=Me.value,$n=Me.disabled,gn=Me.readOnly,En=Me.upHandler,Xt=Me.downHandler,xn=Me.keyboard,dn=Me.changeOnWheel,Tn=dn===void 0?!1:dn,Vn=Me.controls,Hn=Vn===void 0?!0:Vn,Nn=Me.classNames,Un=Me.stringMode,Kn=Me.parser,Qn=Me.formatter,Zn=Me.precision,Ot=Me.decimalSeparator,Yt=Me.onChange,Ln=Me.onInput,Xn=Me.onPressEnter,Pe=Me.onStep,Ue=Me.changeOnBlur,be=Ue===void 0?!0:Ue,De=Me.domRef,xe=(0,fe.Z)(Me,bt),Te="".concat(gt,"-input"),ct=re.useRef(null),Gt=re.useState(!1),_t=(0,ke.Z)(Gt,2),an=_t[0],Rt=_t[1],wt=re.useRef(!1),mt=re.useRef(!1),Jt=re.useRef(!1),vn=re.useState(function(){return He(mn!=null?mn:bn)}),hn=(0,ke.Z)(vn,2),pn=hn[0],Gn=hn[1];function Yn(rn){mn===void 0&&Gn(rn)}var Jn=re.useCallback(function(rn,jt){if(!jt)return Zn>=0?Zn:Math.max(Ne(rn),Ne(sn))},[Zn,sn]),Rn=re.useCallback(function(rn){var jt=String(rn);if(Kn)return Kn(jt);var kn=jt;return Ot&&(kn=kn.replace(Ot,".")),kn.replace(/[^\w.-]+/g,"")},[Kn,Ot]),In=re.useRef(""),Dn=re.useCallback(function(rn,jt){if(Qn)return Qn(rn,{userTyping:jt,input:String(In.current)});var kn=typeof rn=="number"?ht(rn):rn;if(!jt){var An=Jn(kn,jt);if(yt(kn)&&(Ot||An>=0)){var en=Ot||".";kn=ot(kn,en,An)}}return kn},[Qn,Jn,Ot]),Wn=re.useState(function(){var rn=bn!=null?bn:mn;return pn.isInvalidate()&&["string","number"].includes((0,_e.Z)(rn))?Number.isNaN(rn)?"":rn:Dn(pn.toString(),!1)}),ur=(0,ke.Z)(Wn,2),qn=ur[0],lr=ur[1];In.current=qn;function ir(rn,jt){lr(Dn(rn.isInvalidate()?rn.toString(!1):rn.toString(!jt),jt))}var er=re.useMemo(function(){return Qe(Bn)},[Bn,Zn]),tr=re.useMemo(function(){return Qe(cn)},[cn,Zn]),vr=re.useMemo(function(){return!er||!pn||pn.isInvalidate()?!1:er.lessEquals(pn)},[er,pn]),mr=re.useMemo(function(){return!tr||!pn||pn.isInvalidate()?!1:pn.lessEquals(tr)},[tr,pn]),cr=at(ct.current,an),gr=(0,ke.Z)(cr,2),Cr=gr[0],or=gr[1],dr=function(jt){return er&&!jt.lessEquals(er)?er:tr&&!tr.lessEquals(jt)?tr:null},zn=function(jt){return!dr(jt)},wr=function(jt,kn){var An=jt,en=zn(An)||An.isEmpty();if(!An.isEmpty()&&!kn&&(An=dr(An)||An,en=!0),!gn&&!$n&&en){var tn=An.toString(),wn=Jn(tn,kn);return wn>=0&&(An=He(ot(tn,".",wn)),zn(An)||(An=He(ot(tn,".",wn,!0)))),An.equals(pn)||(Yn(An),Yt==null||Yt(An.isEmpty()?null:Ze(Un,An)),mn===void 0&&ir(An,kn)),An}return pn},Rr=Ft(),Wr=function rn(jt){if(Cr(),In.current=jt,lr(jt),!mt.current){var kn=Rn(jt),An=He(kn);An.isNaN()||wr(An,!0)}Ln==null||Ln(jt),Rr(function(){var en=jt;Kn||(en=jt.replace(/。/g,".")),en!==jt&&rn(en)})},Er=function(){mt.current=!0},Ar=function(){mt.current=!1,Wr(ct.current.value)},Ir=function(jt){Wr(jt.target.value)},Dr=function(jt){var kn;if(!(jt&&vr||!jt&&mr)){wt.current=!1;var An=He(Jt.current?ce(sn):sn);jt||(An=An.negate());var en=(pn||He(0)).add(An.toString()),tn=wr(en,!1);Pe==null||Pe(Ze(Un,tn),{offset:Jt.current?ce(sn):sn,type:jt?"up":"down"}),(kn=ct.current)===null||kn===void 0||kn.focus()}},zr=function(jt){var kn=He(Rn(qn)),An;kn.isNaN()?An=wr(pn,jt):An=wr(kn,jt),mn!==void 0?ir(pn,!1):An.isNaN()||ir(An,!1)},fr=function(){wt.current=!0},_n=function(jt){var kn=jt.key,An=jt.shiftKey;wt.current=!0,Jt.current=An,kn==="Enter"&&(mt.current||(wt.current=!1),zr(!1),Xn==null||Xn(jt)),xn!==!1&&!mt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(kn)&&(Dr(kn==="Up"||kn==="ArrowUp"),jt.preventDefault())},qt=function(){wt.current=!1,Jt.current=!1};re.useEffect(function(){if(Tn&&an){var rn=function(An){Dr(An.deltaY<0),An.preventDefault()},jt=ct.current;if(jt)return jt.addEventListener("wheel",rn,{passive:!1}),function(){return jt.removeEventListener("wheel",rn)}}});var ln=function(){be&&zr(!1),Rt(!1),wt.current=!1};return(0,tt.o)(function(){pn.isInvalidate()||ir(pn,!1)},[Zn,Qn]),(0,tt.o)(function(){var rn=He(mn);Gn(rn);var jt=He(Rn(qn));(!rn.equals(jt)||!wt.current||Qn)&&ir(rn,wt.current)},[mn]),(0,tt.o)(function(){Qn&&or()},[qn]),re.createElement("div",{ref:De,className:Ce()(gt,Nt,(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},"".concat(gt,"-focused"),an),"".concat(gt,"-disabled"),$n),"".concat(gt,"-readonly"),gn),"".concat(gt,"-not-a-number"),pn.isNaN()),"".concat(gt,"-out-of-range"),!pn.isInvalidate()&&!zn(pn))),style:on,onFocus:function(){Rt(!0)},onBlur:ln,onKeyDown:_n,onKeyUp:qt,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:fr},Hn&&re.createElement(ve,{prefixCls:gt,upNode:En,downNode:Xt,upDisabled:vr,downDisabled:mr,onStep:Dr}),re.createElement("div",{className:"".concat(Te,"-wrap")},re.createElement("input",(0,we.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":Bn,"aria-valuenow":pn.isInvalidate()?null:pn.toString(),step:sn},xe,{ref:(0,ft.sQ)(ct,et),className:Te,value:qn,onChange:Ir,disabled:$n,readOnly:gn}))))}),Mt=re.forwardRef(function(Me,et){var gt=Me.disabled,Nt=Me.style,on=Me.prefixCls,cn=on===void 0?"rc-input-number":on,Bn=Me.value,Mn=Me.prefix,sn=Me.suffix,bn=Me.addonBefore,mn=Me.addonAfter,$n=Me.className,gn=Me.classNames,En=(0,fe.Z)(Me,Ie),Xt=re.useRef(null),xn=re.useRef(null),dn=re.useRef(null),Tn=function(Hn){dn.current&&(0,Ye.nH)(dn.current,Hn)};return re.useImperativeHandle(et,function(){return Xe(dn.current,{focus:Tn,nativeElement:Xt.current.nativeElement||xn.current})}),re.createElement(St.BaseInput,{className:$n,triggerFocus:Tn,prefixCls:cn,value:Bn,disabled:gt,style:Nt,prefix:Mn,suffix:sn,addonAfter:mn,addonBefore:bn,classNames:gn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Xt},re.createElement(Qt,(0,we.Z)({prefixCls:cn,disabled:gt,ref:dn,domRef:xn,className:gn==null?void 0:gn.input},En)))}),$t=Mt,Re=$t,Tt=ie(62487),lt=ie(82855),ae=ie(48755),ee=ie(60840),z=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),he=ie(24971),ye=ie(70045),nt=ie(36237),Ee=ie(53075),ze=ie(64910),Je=ie(39082),pt=ie(63356),ut=ie(56119),At=ie(16931),Bt=ie(51636),Dt=ie(17835);const Ut=Me=>{var et;const gt=(et=Me.handleVisible)!==null&&et!==void 0?et:"auto",Nt=Me.controlHeightSM-Me.lineWidth*2;return Object.assign(Object.assign({},(0,ze.T)(Me)),{controlWidth:90,handleWidth:Nt,handleFontSize:Me.fontSize/2,handleVisible:gt,handleActiveBg:Me.colorFillAlter,handleBg:Me.colorBgContainer,filledHandleBg:new Dt.FastColor(Me.colorFillSecondary).onBackground(Me.colorBgContainer).toHexString(),handleHoverColor:Me.colorPrimary,handleBorderColor:Me.colorBorder,handleOpacity:gt===!0?1:0,handleVisibleWidth:gt===!0?Nt:0})},Wt=(Me,et)=>{let{componentCls:gt,borderRadiusSM:Nt,borderRadiusLG:on}=Me;const cn=et==="lg"?on:Nt;return{[`&-${et}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${gt}-handler-up`]:{borderStartEndRadius:cn},[`${gt}-handler-down`]:{borderEndEndRadius:cn}}}},Zt=Me=>{const{componentCls:et,lineWidth:gt,lineType:Nt,borderRadius:on,inputFontSizeSM:cn,inputFontSizeLG:Bn,controlHeightLG:Mn,controlHeightSM:sn,colorError:bn,paddingInlineSM:mn,paddingBlockSM:$n,paddingBlockLG:gn,paddingInlineLG:En,colorTextDescription:Xt,motionDurationMid:xn,handleHoverColor:dn,handleOpacity:Tn,paddingInline:Vn,paddingBlock:Hn,handleBg:Nn,handleActiveBg:Un,colorTextDisabled:Kn,borderRadiusSM:Qn,borderRadiusLG:Zn,controlWidth:Ot,handleBorderColor:Yt,filledHandleBg:Ln,lineHeightLG:Xn,calc:Pe}=Me;return[{[et]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(Me)),(0,Ee.ik)(Me)),{display:"inline-block",width:Ot,margin:0,padding:0,borderRadius:on}),(0,Je.qG)(Me,{[`${et}-handler-wrap`]:{background:Nn,[`${et}-handler-down`]:{borderBlockStart:`${(0,nt.unit)(gt)} ${Nt} ${Yt}`}}})),(0,Je.H8)(Me,{[`${et}-handler-wrap`]:{background:Ln,[`${et}-handler-down`]:{borderBlockStart:`${(0,nt.unit)(gt)} ${Nt} ${Yt}`}},"&:focus-within":{[`${et}-handler-wrap`]:{background:Nn}}})),(0,Je.vc)(Me,{[`${et}-handler-wrap`]:{background:Nn,[`${et}-handler-down`]:{borderBlockStart:`${(0,nt.unit)(gt)} ${Nt} ${Yt}`}}})),(0,Je.Mu)(Me)),{"&-rtl":{direction:"rtl",[`${et}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Bn,lineHeight:Xn,borderRadius:Zn,[`input${et}-input`]:{height:Pe(Mn).sub(Pe(gt).mul(2)).equal(),padding:`${(0,nt.unit)(gn)} ${(0,nt.unit)(En)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:Qn,[`input${et}-input`]:{height:Pe(sn).sub(Pe(gt).mul(2)).equal(),padding:`${(0,nt.unit)($n)} ${(0,nt.unit)(mn)}`}},"&-out-of-range":{[`${et}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(Me)),(0,Ee.s7)(Me)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${et}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${et}-group-addon`]:{borderRadius:Zn,fontSize:Me.fontSizeLG}},"&-sm":{[`${et}-group-addon`]:{borderRadius:Qn}}},(0,Je.ir)(Me)),(0,Je.S5)(Me)),{[`&:not(${et}-compact-first-item):not(${et}-compact-last-item)${et}-compact-item`]:{[`${et}, ${et}-group-addon`]:{borderRadius:0}},[`&:not(${et}-compact-last-item)${et}-compact-first-item`]:{[`${et}, ${et}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${et}-compact-first-item)${et}-compact-last-item`]:{[`${et}, ${et}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${et}-input`]:{cursor:"not-allowed"},[et]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,pt.Wf)(Me)),{width:"100%",padding:`${(0,nt.unit)(Hn)} ${(0,nt.unit)(Vn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:on,outline:0,transition:`all ${xn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ee.nz)(Me.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${et}-handler-wrap, &-focused ${et}-handler-wrap`]:{width:Me.handleWidth,opacity:1}})},{[et]:Object.assign(Object.assign(Object.assign({[`${et}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Me.handleVisibleWidth,opacity:Tn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:on,borderEndEndRadius:on,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${xn}`,overflow:"hidden",[`${et}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${et}-handler-up-inner, ${et}-handler-down-inner `]:{marginInlineEnd:0,fontSize:Me.handleFontSize}}},[`${et}-handler`]:{height:"50%",overflow:"hidden",color:Xt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,nt.unit)(gt)} ${Nt} ${Yt}`,transition:`all ${xn} linear`,"&:active":{background:Un},"&:hover":{height:"60%",[` ${et}-handler-up-inner, ${et}-handler-down-inner `]:{color:dn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,pt.Ro)()),{color:Xt,transition:`all ${xn} linear`,userSelect:"none"})},[`${et}-handler-up`]:{borderStartEndRadius:on},[`${et}-handler-down`]:{borderEndEndRadius:on}},Wt(Me,"lg")),Wt(Me,"sm")),{"&-disabled, &-readonly":{[`${et}-handler-wrap`]:{display:"none"},[`${et}-input`]:{color:"inherit"}},[` ${et}-handler-up-disabled, ${et}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${et}-handler-up-disabled:hover &-handler-up-inner, ${et}-handler-down-disabled:hover &-handler-down-inner `]:{color:Kn}})}]},dt=Me=>{const{componentCls:et,paddingBlock:gt,paddingInline:Nt,inputAffixPadding:on,controlWidth:cn,borderRadiusLG:Bn,borderRadiusSM:Mn,paddingInlineLG:sn,paddingInlineSM:bn,paddingBlockLG:mn,paddingBlockSM:$n,motionDurationMid:gn}=Me;return{[`${et}-affix-wrapper`]:Object.assign(Object.assign({[`input${et}-input`]:{padding:`${(0,nt.unit)(gt)} 0`}},(0,Ee.ik)(Me)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:Nt,"&-lg":{borderRadius:Bn,paddingInlineStart:sn,[`input${et}-input`]:{padding:`${(0,nt.unit)(mn)} 0`}},"&-sm":{borderRadius:Mn,paddingInlineStart:bn,[`input${et}-input`]:{padding:`${(0,nt.unit)($n)} 0`}},[`&:not(${et}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${et}-disabled`]:{background:"transparent"},[`> div${et}`]:{width:"100%",border:"none",outline:"none",[`&${et}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${et}-handler-wrap`]:{zIndex:2},[et]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:on},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Nt,marginInlineStart:on,transition:`margin ${gn}`}},[`&:hover ${et}-handler-wrap, &-focused ${et}-handler-wrap`]:{width:Me.handleWidth,opacity:1},[`&:not(${et}-affix-wrapper-without-controls):hover ${et}-suffix`]:{marginInlineEnd:Me.calc(Me.handleWidth).add(Nt).equal()}})}};var zt=(0,At.I$)("InputNumber",Me=>{const et=(0,Bt.mergeToken)(Me,(0,ze.e)(Me));return[Zt(et),dt(et),(0,ut.c)(et)]},Ut,{unitless:{handleOpacity:!0}}),Pt=function(Me,et){var gt={};for(var Nt in Me)Object.prototype.hasOwnProperty.call(Me,Nt)&&et.indexOf(Nt)<0&&(gt[Nt]=Me[Nt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var on=0,Nt=Object.getOwnPropertySymbols(Me);on{const{getPrefixCls:gt,direction:Nt}=re.useContext(ae.E_),on=re.useRef(null);re.useImperativeHandle(et,()=>on.current);const{className:cn,rootClassName:Bn,size:Mn,disabled:sn,prefixCls:bn,addonBefore:mn,addonAfter:$n,prefix:gn,suffix:En,bordered:Xt,readOnly:xn,status:dn,controls:Tn,variant:Vn}=Me,Hn=Pt(Me,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Nn=gt("input-number",bn),Un=(0,oe.Z)(Nn),[Kn,Qn,Zn]=zt(Nn,Un),{compactSize:Ot,compactItemClassnames:Yt}=(0,ye.ri)(Nn,Nt);let Ln=re.createElement(ge.Z,{className:`${Nn}-handler-up-inner`}),Xn=re.createElement(qe.Z,{className:`${Nn}-handler-down-inner`});const Pe=typeof Tn=="boolean"?Tn:void 0;typeof Tn=="object"&&(Ln=typeof Tn.upIcon=="undefined"?Ln:re.createElement("span",{className:`${Nn}-handler-up-inner`},Tn.upIcon),Xn=typeof Tn.downIcon=="undefined"?Xn:re.createElement("span",{className:`${Nn}-handler-down-inner`},Tn.downIcon));const{hasFeedback:Ue,status:be,isFormItemInput:De,feedbackIcon:xe}=re.useContext(ne.aM),Te=(0,lt.F)(be,dn),ct=(0,se.Z)(hn=>{var pn;return(pn=Mn!=null?Mn:Ot)!==null&&pn!==void 0?pn:hn}),Gt=re.useContext(z.Z),_t=sn!=null?sn:Gt,[an,Rt]=(0,he.Z)("inputNumber",Vn,Xt),wt=Ue&&re.createElement(re.Fragment,null,xe),mt=Ce()({[`${Nn}-lg`]:ct==="large",[`${Nn}-sm`]:ct==="small",[`${Nn}-rtl`]:Nt==="rtl",[`${Nn}-in-form-item`]:De},Qn),Jt=`${Nn}-group`,vn=re.createElement(Re,Object.assign({ref:on,disabled:_t,className:Ce()(Zn,Un,cn,Bn,Yt),upHandler:Ln,downHandler:Xn,prefixCls:Nn,readOnly:xn,controls:Pe,prefix:gn,suffix:wt||En,addonBefore:mn&&re.createElement(Tt.Z,{form:!0,space:!0},mn),addonAfter:$n&&re.createElement(Tt.Z,{form:!0,space:!0},$n),classNames:{input:mt,variant:Ce()({[`${Nn}-${an}`]:Rt},(0,lt.Z)(Nn,Te,Ue)),affixWrapper:Ce()({[`${Nn}-affix-wrapper-sm`]:ct==="small",[`${Nn}-affix-wrapper-lg`]:ct==="large",[`${Nn}-affix-wrapper-rtl`]:Nt==="rtl",[`${Nn}-affix-wrapper-without-controls`]:Tn===!1||_t},Qn),wrapper:Ce()({[`${Jt}-rtl`]:Nt==="rtl"},Qn),groupWrapper:Ce()({[`${Nn}-group-wrapper-sm`]:ct==="small",[`${Nn}-group-wrapper-lg`]:ct==="large",[`${Nn}-group-wrapper-rtl`]:Nt==="rtl",[`${Nn}-group-wrapper-${an}`]:Rt},(0,lt.Z)(`${Nn}-group-wrapper`,Te,Ue),Qn)}},Hn));return Kn(vn)}),nn=Ht,yn=Me=>re.createElement(ee.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},re.createElement(Ht,Object.assign({},Me)));nn._InternalPanelDoNotUseOrYouWillBeFired=yn;var fn=nn},49397:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return st}});var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(36901),Ce=ie(8654),we=ie(62487),Le=ie(86013),_e=ie(82855),ke=ie(48755),fe=ie(2171),Ge=ie(83397),Se=ie(31756),vt=ie(56553),Ke=ie(24971),Fe=ie(70045),je=ie(23826),Ne=ie(53075);function ht(rt){return!!(rt.prefix||rt.suffix||rt.allowClear||rt.showCount)}var yt=function(rt,ot){var He={};for(var St in rt)Object.prototype.hasOwnProperty.call(rt,St)&&ot.indexOf(St)<0&&(He[St]=rt[St]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,St=Object.getOwnPropertySymbols(rt);tt{const{prefixCls:He,bordered:St=!0,status:tt,size:Xe,disabled:ft,onBlur:Be,onFocus:at,suffix:it,allowClear:me,addonAfter:kt,addonBefore:Oe,className:$e,style:Et,styles:ve,rootClassName:ce,onChange:Ye,classNames:Ft,variant:bt}=rt,Ie=yt(rt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ze,direction:Qe,allowClear:Qt,autoComplete:Mt,className:$t,style:Re,classNames:Tt,styles:lt}=(0,ke.dj)("input"),ae=Ze("input",He),ee=(0,re.useRef)(null),z=(0,Ge.Z)(ae),[oe,se,ne]=(0,Ne.TI)(ae,ce),[he]=(0,Ne.ZP)(ae,z),{compactSize:ye,compactItemClassnames:nt}=(0,Fe.ri)(ae,Qe),Ee=(0,Se.Z)(fn=>{var Me;return(Me=Xe!=null?Xe:ye)!==null&&Me!==void 0?Me:fn}),ze=re.useContext(fe.Z),Je=ft!=null?ft:ze,{status:pt,hasFeedback:ut,feedbackIcon:At}=(0,re.useContext)(vt.aM),Bt=(0,_e.F)(pt,tt),Dt=ht(rt)||!!ut,Ut=(0,re.useRef)(Dt),Wt=(0,je.Z)(ee,!0),Zt=fn=>{Wt(),Be==null||Be(fn)},dt=fn=>{Wt(),at==null||at(fn)},zt=fn=>{Wt(),Ye==null||Ye(fn)},Pt=(ut||it)&&re.createElement(re.Fragment,null,it,ut&&At),Ht=(0,Le.Z)(me!=null?me:Qt),[nn,yn]=(0,Ke.Z)("input",bt,St);return oe(he(re.createElement(We.default,Object.assign({ref:(0,Ce.sQ)(ot,ee),prefixCls:ae,autoComplete:Mt},Ie,{disabled:Je,onBlur:Zt,onFocus:dt,style:Object.assign(Object.assign({},Re),Et),styles:Object.assign(Object.assign({},lt),ve),suffix:Pt,allowClear:Ht,className:ge()($e,ce,ne,z,nt,$t),onChange:zt,addonBefore:Oe&&re.createElement(we.Z,{form:!0,space:!0},Oe),addonAfter:kt&&re.createElement(we.Z,{form:!0,space:!0},kt),classNames:Object.assign(Object.assign(Object.assign({},Ft),Tt),{input:ge()({[`${ae}-sm`]:Ee==="small",[`${ae}-lg`]:Ee==="large",[`${ae}-rtl`]:Qe==="rtl"},Ft==null?void 0:Ft.input,Tt.input,se),variant:ge()({[`${ae}-${nn}`]:yn},(0,_e.Z)(ae,Bt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Ee==="small",[`${ae}-affix-wrapper-lg`]:Ee==="large",[`${ae}-affix-wrapper-rtl`]:Qe==="rtl"},se),wrapper:ge()({[`${ae}-group-rtl`]:Qe==="rtl"},se),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Ee==="small",[`${ae}-group-wrapper-lg`]:Ee==="large",[`${ae}-group-wrapper-rtl`]:Qe==="rtl",[`${ae}-group-wrapper-${nn}`]:yn},(0,_e.Z)(`${ae}-group-wrapper`,Bt,ut),se)})}))))})},79809:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return ot}});var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(22711),Ce=ie(86013),we=ie(82855),Le=ie(48755),_e=ie(2171),ke=ie(83397),fe=ie(31756),Ge=ie(56553),Se=ie(24971),vt=ie(70045),Ke=ie(30292),Fe=ie(53075),je=ie(16931),Ne=ie(51636),ht=ie(64910);const yt=He=>{const{componentCls:St,paddingLG:tt}=He,Xe=`${St}-textarea`;return{[`textarea${St}`]:{maxWidth:"100%",height:"auto",minHeight:He.controlHeight,lineHeight:He.lineHeight,verticalAlign:"bottom",transition:`all ${He.motionDurationSlow}`,resize:"vertical",[`&${St}-mouse-active`]:{transition:`all ${He.motionDurationSlow}, height 0s, width 0s`}},[`${St}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Xe]:{position:"relative","&-show-count":{[`> ${St}`]:{height:"100%"},[`${St}-data-count`]:{position:"absolute",bottom:He.calc(He.fontSize).mul(He.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:He.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${St}, &-affix-wrapper${Xe}-has-feedback ${St} `]:{paddingInlineEnd:tt},[`&-affix-wrapper${St}-affix-wrapper`]:{padding:0,[`> textarea${St}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:He.calc(He.controlHeight).sub(He.calc(He.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${St}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${St}-clear-icon`]:{position:"absolute",insetInlineEnd:He.paddingInline,insetBlockStart:He.paddingXS},[`${Xe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:He.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${St}-affix-wrapper-sm`]:{[`${St}-suffix`]:{[`${St}-clear-icon`]:{insetInlineEnd:He.paddingInlineSM}}}}}};var Ct=(0,je.I$)(["Input","TextArea"],He=>{const St=(0,Ne.mergeToken)(He,(0,ht.e)(He));return[yt(St)]},ht.T,{resetFont:!1}),st=function(He,St){var tt={};for(var Xe in He)Object.prototype.hasOwnProperty.call(He,Xe)&&St.indexOf(Xe)<0&&(tt[Xe]=He[Xe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xe=Object.getOwnPropertySymbols(He);ft{var tt;const{prefixCls:Xe,bordered:ft=!0,size:Be,disabled:at,status:it,allowClear:me,classNames:kt,rootClassName:Oe,className:$e,style:Et,styles:ve,variant:ce,showCount:Ye,onMouseDown:Ft,onResize:bt}=He,Ie=st(He,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ze,direction:Qe,allowClear:Qt,autoComplete:Mt,className:$t,style:Re,classNames:Tt,styles:lt}=(0,Le.dj)("textArea"),ae=re.useContext(_e.Z),ee=at!=null?at:ae,{status:z,hasFeedback:oe,feedbackIcon:se}=re.useContext(Ge.aM),ne=(0,we.F)(z,it),he=re.useRef(null);re.useImperativeHandle(St,()=>{var yn;return{resizableTextArea:(yn=he.current)===null||yn===void 0?void 0:yn.resizableTextArea,focus:fn=>{var Me,et;(0,Ke.nH)((et=(Me=he.current)===null||Me===void 0?void 0:Me.resizableTextArea)===null||et===void 0?void 0:et.textArea,fn)},blur:()=>{var fn;return(fn=he.current)===null||fn===void 0?void 0:fn.blur()}}});const ye=Ze("input",Xe),nt=(0,ke.Z)(ye),[Ee,ze,Je]=(0,Fe.TI)(ye,Oe),[pt]=Ct(ye,nt),{compactSize:ut,compactItemClassnames:At}=(0,vt.ri)(ye,Qe),Bt=(0,fe.Z)(yn=>{var fn;return(fn=Be!=null?Be:ut)!==null&&fn!==void 0?fn:yn}),[Dt,Ut]=(0,Se.Z)("textArea",ce,ft),Wt=(0,Ce.Z)(me!=null?me:Qt),[Zt,dt]=re.useState(!1),[zt,Pt]=re.useState(!1),Ht=yn=>{dt(!0),Ft==null||Ft(yn);const fn=()=>{dt(!1),document.removeEventListener("mouseup",fn)};document.addEventListener("mouseup",fn)},nn=yn=>{var fn,Me;if(bt==null||bt(yn),Zt&&typeof getComputedStyle=="function"){const et=(Me=(fn=he.current)===null||fn===void 0?void 0:fn.nativeElement)===null||Me===void 0?void 0:Me.querySelector("textarea");et&&getComputedStyle(et).resize==="both"&&Pt(!0)}};return Ee(pt(re.createElement(We.default,Object.assign({autoComplete:Mt},Ie,{style:Object.assign(Object.assign({},Re),Et),styles:Object.assign(Object.assign({},lt),ve),disabled:ee,allowClear:Wt,className:ge()(Je,nt,$e,Oe,At,$t,zt&&`${ye}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},kt),Tt),{textarea:ge()({[`${ye}-sm`]:Bt==="small",[`${ye}-lg`]:Bt==="large"},ze,kt==null?void 0:kt.textarea,Tt.textarea,Zt&&`${ye}-mouse-active`),variant:ge()({[`${ye}-${Dt}`]:Ut},(0,we.Z)(ye,ne)),affixWrapper:ge()(`${ye}-textarea-affix-wrapper`,{[`${ye}-affix-wrapper-rtl`]:Qe==="rtl",[`${ye}-affix-wrapper-sm`]:Bt==="small",[`${ye}-affix-wrapper-lg`]:Bt==="large",[`${ye}-textarea-show-count`]:Ye||((tt=He.count)===null||tt===void 0?void 0:tt.show)},ze)}),prefixCls:ye,suffix:oe&&re.createElement("span",{className:`${ye}-textarea-suffix`},se),showCount:Ye,ref:he,onResize:nn,onMouseDown:Ht}))))})},23826:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return qe}});var re=ie(59301);function qe(ge,We){const Ce=(0,re.useRef)([]),we=()=>{Ce.current.push(setTimeout(()=>{var Le,_e,ke,fe;!((Le=ge.current)===null||Le===void 0)&&Le.input&&((_e=ge.current)===null||_e===void 0?void 0:_e.input.getAttribute("type"))==="password"&&(!((ke=ge.current)===null||ke===void 0)&&ke.input.hasAttribute("value"))&&((fe=ge.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,re.useEffect)(()=>(We&&we(),()=>Ce.current.forEach(Le=>{Le&&clearTimeout(Le)})),[]),we}},37568:function(Vt,Lt,ie){"use strict";ie.d(Lt,{default:function(){return Tt}});var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(48755),Ce=ie(56553),we=ie(53075),_e=lt=>{const{getPrefixCls:ae,direction:ee}=(0,re.useContext)(We.E_),{prefixCls:z,className:oe}=lt,se=ae("input-group",z),ne=ae("input"),[he,ye,nt]=(0,we.ZP)(ne),Ee=ge()(se,nt,{[`${se}-lg`]:lt.size==="large",[`${se}-sm`]:lt.size==="small",[`${se}-compact`]:lt.compact,[`${se}-rtl`]:ee==="rtl"},ye,oe),ze=(0,re.useContext)(Ce.aM),Je=(0,re.useMemo)(()=>Object.assign(Object.assign({},ze),{isFormItemInput:!1}),[ze]);return he(re.createElement("span",{className:Ee,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},re.createElement(Ce.aM.Provider,{value:Je},lt.children)))},ke=ie(49397),fe=ie(77654),Ge=ie(6089),Se=ie(26112),vt=ie(82855),Ke=ie(31756),Fe=ie(16931),je=ie(51636),Ne=ie(64910);const ht=lt=>{const{componentCls:ae,paddingXS:ee}=lt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ee,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:lt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:lt.calc(lt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:lt.paddingXS}}}};var yt=(0,Fe.I$)(["Input","OTP"],lt=>{const ae=(0,je.mergeToken)(lt,(0,Ne.e)(lt));return[ht(ae)]},Ne.T),Ct=ie(16089),st=function(lt,ae){var ee={};for(var z in lt)Object.prototype.hasOwnProperty.call(lt,z)&&ae.indexOf(z)<0&&(ee[z]=lt[z]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(lt);oe{const{value:ee,onChange:z,onActiveChange:oe,index:se,mask:ne}=lt,he=st(lt,["value","onChange","onActiveChange","index","mask"]),ye=ee&&typeof ne=="string"?ne:ee,nt=ut=>{z(se,ut.target.value)},Ee=re.useRef(null);re.useImperativeHandle(ae,()=>Ee.current);const ze=()=>{(0,Ct.Z)(()=>{var ut;const At=(ut=Ee.current)===null||ut===void 0?void 0:ut.input;document.activeElement===At&&At&&At.select()})},Je=ut=>{const{key:At,ctrlKey:Bt,metaKey:Dt}=ut;At==="ArrowLeft"?oe(se-1):At==="ArrowRight"?oe(se+1):At==="z"&&(Bt||Dt)&&ut.preventDefault(),ze()},pt=ut=>{ut.key==="Backspace"&&!ee&&oe(se-1),ze()};return re.createElement(ke.Z,Object.assign({type:ne===!0?"password":"text"},he,{ref:Ee,value:ye,onInput:nt,onFocus:ze,onKeyDown:Je,onKeyUp:pt,onMouseDown:ze,onMouseUp:ze}))}),He=function(lt,ae){var ee={};for(var z in lt)Object.prototype.hasOwnProperty.call(lt,z)&&ae.indexOf(z)<0&&(ee[z]=lt[z]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(lt);oe{const{index:ae,prefixCls:ee,separator:z}=lt,oe=typeof z=="function"?z(ae):z;return oe?re.createElement("span",{className:`${ee}-separator`},oe):null};var ft=re.forwardRef((lt,ae)=>{const{prefixCls:ee,length:z=6,size:oe,defaultValue:se,value:ne,onChange:he,formatter:ye,separator:nt,variant:Ee,disabled:ze,status:Je,autoFocus:pt,mask:ut,type:At,onInput:Bt,inputMode:Dt}=lt,Ut=He(lt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Wt,direction:Zt}=re.useContext(We.E_),dt=Wt("otp",ee),zt=(0,Se.Z)(Ut,{aria:!0,data:!0,attr:!0}),[Pt,Ht,nn]=yt(dt),yn=(0,Ke.Z)(gn=>oe!=null?oe:gn),fn=re.useContext(Ce.aM),Me=(0,vt.F)(fn.status,Je),et=re.useMemo(()=>Object.assign(Object.assign({},fn),{status:Me,hasFeedback:!1,feedbackIcon:null}),[fn,Me]),gt=re.useRef(null),Nt=re.useRef({});re.useImperativeHandle(ae,()=>({focus:()=>{var gn;(gn=Nt.current[0])===null||gn===void 0||gn.focus()},blur:()=>{var gn;for(let En=0;Enye?ye(gn):gn,[cn,Bn]=re.useState(()=>St(on(se||"")));re.useEffect(()=>{ne!==void 0&&Bn(St(ne))},[ne]);const Mn=(0,Ge.Z)(gn=>{Bn(gn),Bt&&Bt(gn),he&&gn.length===z&&gn.every(En=>En)&&gn.some((En,Xt)=>cn[Xt]!==En)&&he(gn.join(""))}),sn=(0,Ge.Z)((gn,En)=>{let Xt=(0,fe.Z)(cn);for(let dn=0;dn=0&&!Xt[dn];dn-=1)Xt.pop();const xn=on(Xt.map(dn=>dn||" ").join(""));return Xt=St(xn).map((dn,Tn)=>dn===" "&&!Xt[Tn]?Xt[Tn]:dn),Xt}),bn=(gn,En)=>{var Xt;const xn=sn(gn,En),dn=Math.min(gn+En.length,z-1);dn!==gn&&xn[gn]!==void 0&&((Xt=Nt.current[dn])===null||Xt===void 0||Xt.focus()),Mn(xn)},mn=gn=>{var En;(En=Nt.current[gn])===null||En===void 0||En.focus()},$n={variant:Ee,disabled:ze,status:Me,mask:ut,type:At,inputMode:Dt};return Pt(re.createElement("div",Object.assign({},zt,{ref:gt,className:ge()(dt,{[`${dt}-sm`]:yn==="small",[`${dt}-lg`]:yn==="large",[`${dt}-rtl`]:Zt==="rtl"},nn,Ht)}),re.createElement(Ce.aM.Provider,{value:et},Array.from({length:z}).map((gn,En)=>{const Xt=`otp-${En}`,xn=cn[En]||"";return re.createElement(re.Fragment,{key:Xt},re.createElement(ot,Object.assign({ref:dn=>{Nt.current[En]=dn},index:En,size:yn,htmlSize:1,className:`${dt}-input`,onChange:bn,value:xn,onActiveChange:mn,autoFocus:En===0&&pt},$n)),Enlt?re.createElement(at.Z,null):re.createElement(Be.Z,null),ve={click:"onClick",hover:"onMouseOver"};var Ye=re.forwardRef((lt,ae)=>{const{disabled:ee,action:z="click",visibilityToggle:oe=!0,iconRender:se=Et}=lt,ne=re.useContext(kt.Z),he=ee!=null?ee:ne,ye=typeof oe=="object"&&oe.visible!==void 0,[nt,Ee]=(0,re.useState)(()=>ye?oe.visible:!1),ze=(0,re.useRef)(null);re.useEffect(()=>{ye&&Ee(oe.visible)},[ye,oe]);const Je=(0,Oe.Z)(ze),pt=()=>{var yn;if(he)return;nt&&Je();const fn=!nt;Ee(fn),typeof oe=="object"&&((yn=oe.onVisibleChange)===null||yn===void 0||yn.call(oe,fn))},ut=yn=>{const fn=ve[z]||"",Me=se(nt),et={[fn]:pt,className:`${yn}-icon`,key:"passwordIcon",onMouseDown:gt=>{gt.preventDefault()},onMouseUp:gt=>{gt.preventDefault()}};return re.cloneElement(re.isValidElement(Me)?Me:re.createElement("span",null,Me),et)},{className:At,prefixCls:Bt,inputPrefixCls:Dt,size:Ut}=lt,Wt=$e(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Zt}=re.useContext(We.E_),dt=Zt("input",Dt),zt=Zt("input-password",Bt),Pt=oe&&ut(zt),Ht=ge()(zt,At,{[`${zt}-${Ut}`]:!!Ut}),nn=Object.assign(Object.assign({},(0,it.Z)(Wt,["suffix","iconRender","visibilityToggle"])),{type:nt?"text":"password",className:Ht,prefixCls:dt,suffix:Pt});return Ut&&(nn.size=Ut),re.createElement(ke.Z,Object.assign({ref:(0,me.sQ)(ae,ze)},nn))}),Ft=ie(47472),bt=ie(22703),Ie=ie(7939),Ze=ie(70045),Qe=function(lt,ae){var ee={};for(var z in lt)Object.prototype.hasOwnProperty.call(lt,z)&&ae.indexOf(z)<0&&(ee[z]=lt[z]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,z=Object.getOwnPropertySymbols(lt);oe{const{prefixCls:ee,inputPrefixCls:z,className:oe,size:se,suffix:ne,enterButton:he=!1,addonAfter:ye,loading:nt,disabled:Ee,onSearch:ze,onChange:Je,onCompositionStart:pt,onCompositionEnd:ut}=lt,At=Qe(lt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Bt,direction:Dt}=re.useContext(We.E_),Ut=re.useRef(!1),Wt=Bt("input-search",ee),Zt=Bt("input",z),{compactSize:dt}=(0,Ze.ri)(Wt,Dt),zt=(0,Ke.Z)(bn=>{var mn;return(mn=se!=null?se:dt)!==null&&mn!==void 0?mn:bn}),Pt=re.useRef(null),Ht=bn=>{bn!=null&&bn.target&&bn.type==="click"&&ze&&ze(bn.target.value,bn,{source:"clear"}),Je==null||Je(bn)},nn=bn=>{var mn;document.activeElement===((mn=Pt.current)===null||mn===void 0?void 0:mn.input)&&bn.preventDefault()},yn=bn=>{var mn,$n;ze&&ze(($n=(mn=Pt.current)===null||mn===void 0?void 0:mn.input)===null||$n===void 0?void 0:$n.value,bn,{source:"input"})},fn=bn=>{Ut.current||nt||yn(bn)},Me=typeof he=="boolean"?re.createElement(Ft.Z,null):null,et=`${Wt}-button`;let gt;const Nt=he||{},on=Nt.type&&Nt.type.__ANT_BUTTON===!0;on||Nt.type==="button"?gt=(0,bt.Tm)(Nt,Object.assign({onMouseDown:nn,onClick:bn=>{var mn,$n;($n=(mn=Nt==null?void 0:Nt.props)===null||mn===void 0?void 0:mn.onClick)===null||$n===void 0||$n.call(mn,bn),yn(bn)},key:"enterButton"},on?{className:et,size:zt}:{})):gt=re.createElement(Ie.ZP,{className:et,type:he?"primary":void 0,size:zt,disabled:Ee,key:"enterButton",onMouseDown:nn,onClick:yn,loading:nt,icon:Me},he),ye&&(gt=[gt,(0,bt.Tm)(ye,{key:"addonAfter"})]);const cn=ge()(Wt,{[`${Wt}-rtl`]:Dt==="rtl",[`${Wt}-${zt}`]:!!zt,[`${Wt}-with-button`]:!!he},oe),Bn=Object.assign(Object.assign({},At),{className:cn,prefixCls:Zt,type:"search"}),Mn=bn=>{Ut.current=!0,pt==null||pt(bn)},sn=bn=>{Ut.current=!1,ut==null||ut(bn)};return re.createElement(ke.Z,Object.assign({ref:(0,me.sQ)(Pt,ae),onPressEnter:fn},Bn,{size:zt,onCompositionStart:Mn,onCompositionEnd:sn,addonAfter:gt,suffix:ne,onChange:Ht,disabled:Ee}))}),$t=ie(79809);const Re=ke.Z;Re.Group=_e,Re.Search=Mt,Re.TextArea=$t.Z,Re.Password=Ye,Re.OTP=ft;var Tt=Re},24303:function(Vt,Lt,ie){"use strict";ie.d(Lt,{D:function(){return He},Z:function(){return Xe}});var re=ie(59301),qe=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"},We=ge,Ce=ie(7657),we=function(Be,at){return re.createElement(Ce.Z,(0,qe.Z)({},Be,{ref:at,icon:We}))},Le=re.forwardRef(we),_e=Le,ke=ie(33853),fe=ie(38819),Ge=ie(92310),Se=ie.n(Ge),vt=ie(2738),Ke=ie(48755),Fe=ie(6989),je=ie(36237),Ne=ie(48923),ht=ie(16931);const yt=ft=>{const{componentCls:Be,siderBg:at,motionDurationMid:it,motionDurationSlow:me,antCls:kt,triggerHeight:Oe,triggerColor:$e,triggerBg:Et,headerHeight:ve,zeroTriggerWidth:ce,zeroTriggerHeight:Ye,borderRadiusLG:Ft,lightSiderBg:bt,lightTriggerColor:Ie,lightTriggerBg:Ze,bodyBg:Qe}=ft;return{[Be]:{position:"relative",minWidth:0,background:at,transition:`all ${it}, background 0s`,"&-has-trigger":{paddingBottom:Oe},"&-right":{order:1},[`${Be}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${kt}-menu${kt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Be}-children`]:{overflow:"hidden"},[`${Be}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Oe,color:$e,lineHeight:(0,je.unit)(Oe),textAlign:"center",background:Et,cursor:"pointer",transition:`all ${it}`},[`${Be}-zero-width-trigger`]:{position:"absolute",top:ve,insetInlineEnd:ft.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:Ye,color:$e,fontSize:ft.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:at,borderRadius:`0 ${(0,je.unit)(Ft)} ${(0,je.unit)(Ft)} 0`,cursor:"pointer",transition:`background ${me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ft.calc(ce).mul(-1).equal(),borderRadius:`${(0,je.unit)(Ft)} 0 0 ${(0,je.unit)(Ft)}`}},"&-light":{background:bt,[`${Be}-trigger`]:{color:Ie,background:Ze},[`${Be}-zero-width-trigger`]:{color:Ie,background:Ze,border:`1px solid ${Qe}`,borderInlineStart:0}}}}};var Ct=(0,ht.I$)(["Layout","Sider"],ft=>[yt(ft)],Ne.eh,{deprecatedTokens:Ne.jn}),st=function(ft,Be){var at={};for(var it in ft)Object.prototype.hasOwnProperty.call(ft,it)&&Be.indexOf(it)<0&&(at[it]=ft[it]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,it=Object.getOwnPropertySymbols(ft);me!Number.isNaN(Number.parseFloat(ft))&&isFinite(ft),He=re.createContext({}),St=(()=>{let ft=0;return function(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ft+=1,`${Be}${ft}`}})();var Xe=re.forwardRef((ft,Be)=>{const{prefixCls:at,className:it,trigger:me,children:kt,defaultCollapsed:Oe=!1,theme:$e="dark",style:Et={},collapsible:ve=!1,reverseArrow:ce=!1,width:Ye=200,collapsedWidth:Ft=80,zeroWidthTriggerStyle:bt,breakpoint:Ie,onCollapse:Ze,onBreakpoint:Qe}=ft,Qt=st(ft,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Mt}=(0,re.useContext)(Fe.V),[$t,Re]=(0,re.useState)("collapsed"in ft?ft.collapsed:Oe),[Tt,lt]=(0,re.useState)(!1);(0,re.useEffect)(()=>{"collapsed"in ft&&Re(ft.collapsed)},[ft.collapsed]);const ae=(zt,Pt)=>{"collapsed"in ft||Re(zt),Ze==null||Ze(zt,Pt)},{getPrefixCls:ee,direction:z}=(0,re.useContext)(Ke.E_),oe=ee("layout-sider",at),[se,ne,he]=Ct(oe),ye=(0,re.useRef)(null);ye.current=zt=>{lt(zt.matches),Qe==null||Qe(zt.matches),$t!==zt.matches&&ae(zt.matches,"responsive")},(0,re.useEffect)(()=>{function zt(Ht){return ye.current(Ht)}let Pt;if(typeof window!="undefined"){const{matchMedia:Ht}=window;if(Ht&&Ie&&Ie in rt){Pt=Ht(`screen and (max-width: ${rt[Ie]})`);try{Pt.addEventListener("change",zt)}catch(nn){Pt.addListener(zt)}zt(Pt)}}return()=>{try{Pt==null||Pt.removeEventListener("change",zt)}catch(Ht){Pt==null||Pt.removeListener(zt)}}},[Ie]),(0,re.useEffect)(()=>{const zt=St("ant-sider-");return Mt.addSider(zt),()=>Mt.removeSider(zt)},[]);const nt=()=>{ae(!$t,"clickTrigger")},Ee=(0,vt.Z)(Qt,["collapsed"]),ze=$t?Ft:Ye,Je=ot(ze)?`${ze}px`:String(ze),pt=parseFloat(String(Ft||0))===0?re.createElement("span",{onClick:nt,className:Se()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:bt},me||re.createElement(_e,null)):null,ut=z==="rtl"==!ce,Dt={expanded:ut?re.createElement(fe.Z,null):re.createElement(ke.Z,null),collapsed:ut?re.createElement(ke.Z,null):re.createElement(fe.Z,null)}[$t?"collapsed":"expanded"],Ut=me!==null?pt||re.createElement("div",{className:`${oe}-trigger`,onClick:nt,style:{width:Je}},me||Dt):null,Wt=Object.assign(Object.assign({},Et),{flex:`0 0 ${Je}`,maxWidth:Je,minWidth:Je,width:Je}),Zt=Se()(oe,`${oe}-${$e}`,{[`${oe}-collapsed`]:!!$t,[`${oe}-has-trigger`]:ve&&me!==null&&!pt,[`${oe}-below`]:!!Tt,[`${oe}-zero-width`]:parseFloat(Je)===0},it,ne,he),dt=re.useMemo(()=>({siderCollapsed:$t}),[$t]);return se(re.createElement(He.Provider,{value:dt},re.createElement("aside",Object.assign({className:Zt},Ee,{style:Wt,ref:Be}),re.createElement("div",{className:`${oe}-children`},kt),ve||Tt&&pt?Ut:null)))})},6989:function(Vt,Lt,ie){"use strict";ie.d(Lt,{V:function(){return qe}});var re=ie(59301);const qe=re.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Vt,Lt,ie){"use strict";ie.d(Lt,{eh:function(){return We},jn:function(){return Ce}});var re=ie(36237),qe=ie(16931);const ge=we=>{const{antCls:Le,componentCls:_e,colorText:ke,footerBg:fe,headerHeight:Ge,headerPadding:Se,headerColor:vt,footerPadding:Ke,fontSize:Fe,bodyBg:je,headerBg:Ne}=we;return{[_e]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:je,"&, *":{boxSizing:"border-box"},[`&${_e}-has-sider`]:{flexDirection:"row",[`> ${_e}, > ${_e}-content`]:{width:0}},[`${_e}-header, &${_e}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${_e}-header`]:{height:Ge,padding:Se,color:vt,lineHeight:(0,re.unit)(Ge),background:Ne,[`${Le}-menu`]:{lineHeight:"inherit"}},[`${_e}-footer`]:{padding:Ke,color:ke,fontSize:Fe,background:fe},[`${_e}-content`]:{flex:"auto",color:ke,minHeight:0}}},We=we=>{const{colorBgLayout:Le,controlHeight:_e,controlHeightLG:ke,colorText:fe,controlHeightSM:Ge,marginXXS:Se,colorTextLightSolid:vt,colorBgContainer:Ke}=we,Fe=ke*1.25;return{colorBgHeader:"#001529",colorBgBody:Le,colorBgTrigger:"#002140",bodyBg:Le,headerBg:"#001529",headerHeight:_e*2,headerPadding:`0 ${Fe}px`,headerColor:fe,footerPadding:`${Ge}px ${Fe}px`,footerBg:Le,siderBg:"#001529",triggerHeight:ke+Se*2,triggerBg:"#002140",triggerColor:vt,zeroTriggerWidth:ke,zeroTriggerHeight:ke,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:fe}},Ce=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Lt.ZP=(0,qe.I$)("Layout",we=>[ge(we)],We,{deprecatedTokens:Ce})},78857:function(Vt,Lt,ie){"use strict";ie.d(Lt,{J:function(){return we}});var re=ie(59301),qe=ie(8654),ge=ie(62487),We=function(Le,_e){var ke={};for(var fe in Le)Object.prototype.hasOwnProperty.call(Le,fe)&&_e.indexOf(fe)<0&&(ke[fe]=Le[fe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,fe=Object.getOwnPropertySymbols(Le);Ge{const{children:ke}=Le,fe=We(Le,["children"]),Ge=re.useContext(Ce),Se=re.useMemo(()=>Object.assign(Object.assign({},Ge),fe),[Ge,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),vt=(0,qe.t4)(ke),Ke=(0,qe.x1)(_e,vt?(0,qe.C4)(ke):null);return re.createElement(Ce.Provider,{value:Se},re.createElement(ge.Z,{space:!0},vt?re.cloneElement(ke,{ref:Ke}):ke))});Lt.Z=Ce},93041:function(Vt,Lt,ie){"use strict";ie.d(Lt,{default:function(){return se}});var re=ie(59301),qe=ie(28321),ge=ie(24303),We=ie(18785),Ce=ie(92310),we=ie.n(Ce),Le=ie(6089),_e=ie(2738),ke=ie(86641),fe=ie(22703),Ge=ie(48755),Se=ie(83397),Ke=(0,re.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Fe=function(ne,he){var ye={};for(var nt in ne)Object.prototype.hasOwnProperty.call(ne,nt)&&he.indexOf(nt)<0&&(ye[nt]=ne[nt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,nt=Object.getOwnPropertySymbols(ne);Ee{const{prefixCls:he,className:ye,dashed:nt}=ne,Ee=Fe(ne,["prefixCls","className","dashed"]),{getPrefixCls:ze}=re.useContext(Ge.E_),Je=ze("menu",he),pt=we()({[`${Je}-item-divider-dashed`]:!!nt},ye);return re.createElement(qe.iz,Object.assign({className:pt},Ee))},ht=ie(11592),yt=ie(25399),st=ne=>{var he;const{className:ye,children:nt,icon:Ee,title:ze,danger:Je,extra:pt}=ne,{prefixCls:ut,firstLevel:At,direction:Bt,disableMenuItemTitleTooltip:Dt,inlineCollapsed:Ut}=re.useContext(Ke),Wt=nn=>{const yn=nt==null?void 0:nt[0],fn=re.createElement("span",{className:we()(`${ut}-title-content`,{[`${ut}-title-content-with-extra`]:!!pt||pt===0})},nt);return(!Ee||re.isValidElement(nt)&&nt.type==="span")&&nt&&nn&&At&&typeof yn=="string"?re.createElement("div",{className:`${ut}-inline-collapsed-noicon`},yn.charAt(0)):fn},{siderCollapsed:Zt}=re.useContext(ge.D);let dt=ze;typeof ze=="undefined"?dt=At?nt:"":ze===!1&&(dt="");const zt={title:dt};!Zt&&!Ut&&(zt.title=null,zt.open=!1);const Pt=(0,ht.Z)(nt).length;let Ht=re.createElement(qe.ck,Object.assign({},(0,_e.Z)(ne,["title","icon","danger"]),{className:we()({[`${ut}-item-danger`]:Je,[`${ut}-item-only-child`]:(Ee?Pt+1:Pt)===1},ye),title:typeof ze=="string"?ze:void 0}),(0,fe.Tm)(Ee,{className:we()(re.isValidElement(Ee)?(he=Ee.props)===null||he===void 0?void 0:he.className:"",`${ut}-item-icon`)}),Wt(Ut));return Dt||(Ht=re.createElement(yt.Z,Object.assign({},zt,{placement:Bt==="rtl"?"left":"right",classNames:{root:`${ut}-inline-collapsed-tooltip`}}),Ht)),Ht},rt=ie(78857),ot=ie(36237),He=ie(17835),St=ie(63356),tt=ie(34961),Xe=ie(46e3),ft=ie(34925),Be=ie(16931),at=ie(51636),me=ne=>{const{componentCls:he,motionDurationSlow:ye,horizontalLineHeight:nt,colorSplit:Ee,lineWidth:ze,lineType:Je,itemPaddingInline:pt}=ne;return{[`${he}-horizontal`]:{lineHeight:nt,border:0,borderBottom:`${(0,ot.unit)(ze)} ${Je} ${Ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:pt},[`> ${he}-item:hover, > ${he}-item-active, > ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Oe=ne=>{let{componentCls:he,menuArrowOffset:ye,calc:nt}=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,ot.unit)(nt(ye).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ot.unit)(ye)})`}}}}};const $e=ne=>Object.assign({},(0,St.oN)(ne));var ve=(ne,he)=>{const{componentCls:ye,itemColor:nt,itemSelectedColor:Ee,subMenuItemSelectedColor:ze,groupTitleColor:Je,itemBg:pt,subMenuItemBg:ut,itemSelectedBg:At,activeBarHeight:Bt,activeBarWidth:Dt,activeBarBorderWidth:Ut,motionDurationSlow:Wt,motionEaseInOut:Zt,motionEaseOut:dt,itemPaddingInline:zt,motionDurationMid:Pt,itemHoverColor:Ht,lineType:nn,colorSplit:yn,itemDisabledColor:fn,dangerItemColor:Me,dangerItemHoverColor:et,dangerItemSelectedColor:gt,dangerItemActiveBg:Nt,dangerItemSelectedBg:on,popupBg:cn,itemHoverBg:Bn,itemActiveBg:Mn,menuSubMenuBg:sn,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:mn,horizontalItemBorderRadius:$n,horizontalItemHoverBg:gn}=ne;return{[`${ye}-${he}, ${ye}-${he} > ${ye}`]:{color:nt,background:pt,[`&${ye}-root:focus-visible`]:Object.assign({},$e(ne)),[`${ye}-item`]:{"&-group-title, &-extra":{color:Je}},[`${ye}-submenu-selected > ${ye}-submenu-title`]:{color:ze},[`${ye}-item, ${ye}-submenu-title`]:{color:nt,[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},$e(ne))},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${fn} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Ht}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Mn}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Mn}}},[`${ye}-item-danger`]:{color:Me,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:et}},[`&${ye}-item:active`]:{background:Nt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:Ee,[`&${ye}-item-danger`]:{color:gt},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:At,[`&${ye}-item-danger`]:{backgroundColor:on}},[`&${ye}-submenu > ${ye}`]:{backgroundColor:sn},[`&${ye}-popup > ${ye}`]:{backgroundColor:cn},[`&${ye}-submenu-popup > ${ye}`]:{backgroundColor:cn},[`&${ye}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Ut,marginTop:ne.calc(Ut).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:zt,bottom:0,borderBottom:`${(0,ot.unit)(Bt)} solid transparent`,transition:`border-color ${Wt} ${Zt}`,content:'""'},"&:hover, &-active, &-open":{background:gn,"&::after":{borderBottomWidth:Bt,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:mn,"&:hover":{backgroundColor:mn},"&::after":{borderBottomWidth:Bt,borderBottomColor:bn}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${(0,ot.unit)(Ut)} ${nn} ${yn}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:ut},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ot.unit)(Dt)} solid ${Ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pt} ${dt}`,`opacity ${Pt} ${dt}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:gt}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pt} ${Zt}`,`opacity ${Pt} ${Zt}`].join(",")}}}}}};const ce=ne=>{const{componentCls:he,itemHeight:ye,itemMarginInline:nt,padding:Ee,menuArrowSize:ze,marginXS:Je,itemMarginBlock:pt,itemWidth:ut,itemPaddingInline:At}=ne,Bt=ne.calc(ze).add(Ee).add(Je).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:ye,lineHeight:(0,ot.unit)(ye),paddingInline:At,overflow:"hidden",textOverflow:"ellipsis",marginInline:nt,marginBlock:pt,width:ut},[`> ${he}-item, > ${he}-submenu > ${he}-submenu-title`]:{height:ye,lineHeight:(0,ot.unit)(ye)},[`${he}-item-group-list ${he}-submenu-title, ${he}-submenu-title`]:{paddingInlineEnd:Bt}}};var Ft=ne=>{const{componentCls:he,iconCls:ye,itemHeight:nt,colorTextLightSolid:Ee,dropdownWidth:ze,controlHeightLG:Je,motionEaseOut:pt,paddingXL:ut,itemMarginInline:At,fontSizeLG:Bt,motionDurationFast:Dt,motionDurationSlow:Ut,paddingXS:Wt,boxShadowSecondary:Zt,collapsedWidth:dt,collapsedIconSize:zt}=ne,Pt={height:nt,lineHeight:(0,ot.unit)(nt),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:Zt})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:ze,maxHeight:`calc(100vh - ${(0,ot.unit)(ne.calc(Je).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 ${Ut}`,`background ${Ut}`,`padding ${Dt} ${pt}`].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`]:Pt,[`& ${he}-item-group-title`]:{paddingInlineStart:ut}},[`${he}-item`]:Pt}},{[`${he}-inline-collapsed`]:{width:dt,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Bt,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,ot.unit)(ne.calc(zt).div(2).equal())} - ${(0,ot.unit)(At)})`,textOverflow:"clip",[` ${he}-submenu-arrow, ${he}-submenu-expand-icon `]:{opacity:0},[`${he}-item-icon, ${ye}`]:{margin:0,fontSize:zt,lineHeight:(0,ot.unit)(nt),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:Ee}},[`${he}-item-group-title`]:Object.assign(Object.assign({},St.vS),{paddingInline:Wt})}}]};const bt=ne=>{const{componentCls:he,motionDurationSlow:ye,motionDurationMid:nt,motionEaseInOut:Ee,motionEaseOut:ze,iconCls:Je,iconSize:pt,iconMarginInlineEnd:ut}=ne;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding calc(${ye} + 0.1s) ${Ee}`].join(","),[`${he}-item-icon, ${Je}`]:{minWidth:pt,fontSize:pt,transition:[`font-size ${nt} ${ze}`,`margin ${ye} ${Ee}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:ut,opacity:1,transition:[`opacity ${ye} ${Ee}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,St.Ro)()),[`&${he}-item-only-child`]:{[`> ${Je}, > ${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"}}}},Ie=ne=>{const{componentCls:he,motionDurationSlow:ye,motionEaseInOut:nt,borderRadius:Ee,menuArrowSize:ze,menuArrowOffset:Je}=ne;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:ze,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${nt}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(ze).mul(.6).equal(),height:ne.calc(ze).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ee,transition:[`background ${ye} ${nt}`,`transform ${ye} ${nt}`,`top ${ye} ${nt}`,`color ${ye} ${nt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ot.unit)(ne.calc(Je).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ot.unit)(Je)})`}}}}},Ze=ne=>{const{antCls:he,componentCls:ye,fontSize:nt,motionDurationSlow:Ee,motionDurationMid:ze,motionEaseInOut:Je,paddingXS:pt,padding:ut,colorSplit:At,lineWidth:Bt,zIndexPopup:Dt,borderRadiusLG:Ut,subMenuItemBorderRadius:Wt,menuArrowSize:Zt,menuArrowOffset:dt,lineType:zt,groupTitleLineHeight:Pt,groupTitleFontSize:Ht}=ne;return[{"":{[ye]:Object.assign(Object.assign({},(0,St.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(ne)),(0,St.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:nt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ee} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${(0,ot.unit)(pt)} ${(0,ot.unit)(ut)}`,fontSize:Ht,lineHeight:Pt,transition:`all ${Ee}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${Ee} ${Je}`,`background ${Ee} ${Je}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${Ee} ${Je}`,`background ${Ee} ${Je}`,`padding ${ze} ${Je}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${Ee} ${Je}`,`padding ${Ee} ${Je}`].join(",")},[`${ye}-title-content`]:{transition:`color ${Ee}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ye}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:At,borderStyle:zt,borderWidth:0,borderTopWidth:Bt,marginBlock:Bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),bt(ne)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${(0,ot.unit)(ne.calc(nt).mul(2).equal())} ${(0,ot.unit)(ut)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Dt,borderRadius:Ut,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ut},bt(ne)),Ie(ne)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Wt},[`${ye}-submenu-title::after`]:{transition:`transform ${Ee} ${Je}`}})},"\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}}}),Ie(ne)),{[`&-inline-collapsed ${ye}-submenu-arrow, &-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ot.unit)(dt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ot.unit)(ne.calc(dt).mul(-1).equal())})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(${(0,ot.unit)(ne.calc(Zt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ot.unit)(ne.calc(dt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ot.unit)(dt)})`}}})},{[`${he}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]},Qe=ne=>{var he,ye,nt;const{colorPrimary:Ee,colorError:ze,colorTextDisabled:Je,colorErrorBg:pt,colorText:ut,colorTextDescription:At,colorBgContainer:Bt,colorFillAlter:Dt,colorFillContent:Ut,lineWidth:Wt,lineWidthBold:Zt,controlItemBgActive:dt,colorBgTextHover:zt,controlHeightLG:Pt,lineHeight:Ht,colorBgElevated:nn,marginXXS:yn,padding:fn,fontSize:Me,controlHeightSM:et,fontSizeLG:gt,colorTextLightSolid:Nt,colorErrorHover:on}=ne,cn=(he=ne.activeBarWidth)!==null&&he!==void 0?he:0,Bn=(ye=ne.activeBarBorderWidth)!==null&&ye!==void 0?ye:Wt,Mn=(nt=ne.itemMarginInline)!==null&&nt!==void 0?nt:ne.marginXXS,sn=new He.FastColor(Nt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:ut,itemColor:ut,colorItemTextHover:ut,itemHoverColor:ut,colorItemTextHoverHorizontal:Ee,horizontalItemHoverColor:Ee,colorGroupTitle:At,groupTitleColor:At,colorItemTextSelected:Ee,itemSelectedColor:Ee,subMenuItemSelectedColor:Ee,colorItemTextSelectedHorizontal:Ee,horizontalItemSelectedColor:Ee,colorItemBg:Bt,itemBg:Bt,colorItemBgHover:zt,itemHoverBg:zt,colorItemBgActive:Ut,itemActiveBg:dt,colorSubItemBg:Dt,subMenuItemBg:Dt,colorItemBgSelected:dt,itemSelectedBg:dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:Zt,activeBarHeight:Zt,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Bn,colorItemTextDisabled:Je,itemDisabledColor:Je,colorDangerItemText:ze,dangerItemColor:ze,colorDangerItemTextHover:ze,dangerItemHoverColor:ze,colorDangerItemTextSelected:ze,dangerItemSelectedColor:ze,colorDangerItemBgActive:pt,dangerItemActiveBg:pt,colorDangerItemBgSelected:pt,dangerItemSelectedBg:pt,itemMarginInline:Mn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pt,groupTitleLineHeight:Ht,collapsedWidth:Pt*2,popupBg:nn,itemMarginBlock:yn,itemPaddingInline:fn,horizontalLineHeight:`${Pt*1.15}px`,iconSize:Me,iconMarginInlineEnd:et-Me,collapsedIconSize:gt,groupTitleFontSize:Me,darkItemDisabledColor:new He.FastColor(Nt).setA(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:ze,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nt,darkItemSelectedBg:Ee,darkDangerItemSelectedBg:ze,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Nt,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Nt,darkDangerItemActiveBg:ze,itemWidth:cn?`calc(100% + ${Bn}px)`:`calc(100% - ${Mn*2}px)`}};var Qt=function(ne){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Be.I$)("Menu",Ee=>{const{colorBgElevated:ze,controlHeightLG:Je,fontSize:pt,darkItemColor:ut,darkDangerItemColor:At,darkItemBg:Bt,darkSubMenuItemBg:Dt,darkItemSelectedColor:Ut,darkItemSelectedBg:Wt,darkDangerItemSelectedBg:Zt,darkItemHoverBg:dt,darkGroupTitleColor:zt,darkItemHoverColor:Pt,darkItemDisabledColor:Ht,darkDangerItemHoverColor:nn,darkDangerItemSelectedColor:yn,darkDangerItemActiveBg:fn,popupBg:Me,darkPopupBg:et}=Ee,gt=Ee.calc(pt).div(7).mul(5).equal(),Nt=(0,at.mergeToken)(Ee,{menuArrowSize:gt,menuHorizontalHeight:Ee.calc(Je).mul(1.15).equal(),menuArrowOffset:Ee.calc(gt).mul(.25).equal(),menuSubMenuBg:ze,calc:Ee.calc,popupBg:Me}),on=(0,at.mergeToken)(Nt,{itemColor:ut,itemHoverColor:Pt,groupTitleColor:zt,itemSelectedColor:Ut,subMenuItemSelectedColor:Ut,itemBg:Bt,popupBg:et,subMenuItemBg:Dt,itemActiveBg:"transparent",itemSelectedBg:Wt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:dt,itemDisabledColor:Ht,dangerItemColor:At,dangerItemHoverColor:nn,dangerItemSelectedColor:yn,dangerItemActiveBg:fn,dangerItemSelectedBg:Zt,menuSubMenuBg:Dt,horizontalItemSelectedColor:Ut,horizontalItemSelectedBg:Wt});return[Ze(Nt),me(Nt),Ft(Nt),ve(Nt,"light"),ve(on,"dark"),Oe(Nt),(0,tt.Z)(Nt),(0,Xe.oN)(Nt,"slide-up"),(0,Xe.oN)(Nt,"slide-down"),(0,ft._y)(Nt,"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:ye,unitless:{groupTitleLineHeight:!0}})(ne,he)},Mt=ie(75030),Re=ne=>{var he;const{popupClassName:ye,icon:nt,title:Ee,theme:ze}=ne,Je=re.useContext(Ke),{prefixCls:pt,inlineCollapsed:ut,theme:At}=Je,Bt=(0,qe.Xl)();let Dt;if(!nt)Dt=ut&&!Bt.length&&Ee&&typeof Ee=="string"?re.createElement("div",{className:`${pt}-inline-collapsed-noicon`},Ee.charAt(0)):re.createElement("span",{className:`${pt}-title-content`},Ee);else{const Zt=re.isValidElement(Ee)&&Ee.type==="span";Dt=re.createElement(re.Fragment,null,(0,fe.Tm)(nt,{className:we()(re.isValidElement(nt)?(he=nt.props)===null||he===void 0?void 0:he.className:"",`${pt}-item-icon`)}),Zt?Ee:re.createElement("span",{className:`${pt}-title-content`},Ee))}const Ut=re.useMemo(()=>Object.assign(Object.assign({},Je),{firstLevel:!1}),[Je]),[Wt]=(0,Mt.Cn)("Menu");return re.createElement(Ke.Provider,{value:Ut},re.createElement(qe.Wd,Object.assign({},(0,_e.Z)(ne,["icon"]),{title:Dt,popupClassName:we()(pt,ye,`${pt}-${ze||At}`),popupStyle:Object.assign({zIndex:Wt},ne.popupStyle)})))},Tt=function(ne,he){var ye={};for(var nt in ne)Object.prototype.hasOwnProperty.call(ne,nt)&&he.indexOf(nt)<0&&(ye[nt]=ne[nt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,nt=Object.getOwnPropertySymbols(ne);Ee{var ye;const nt=re.useContext(rt.Z),Ee=nt||{},{getPrefixCls:ze,getPopupContainer:Je,direction:pt,menu:ut}=re.useContext(Ge.E_),At=ze(),{prefixCls:Bt,className:Dt,style:Ut,theme:Wt="light",expandIcon:Zt,_internalDisableMenuItemTitleTooltip:dt,inlineCollapsed:zt,siderCollapsed:Pt,rootClassName:Ht,mode:nn,selectable:yn,onClick:fn,overflowedIndicatorPopupClassName:Me}=ne,et=Tt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gt=(0,_e.Z)(et,["collapsedWidth"]);(ye=Ee.validator)===null||ye===void 0||ye.call(Ee,{mode:nn});const Nt=(0,Le.Z)(function(){var dn;fn==null||fn.apply(void 0,arguments),(dn=Ee.onClick)===null||dn===void 0||dn.call(Ee)}),on=Ee.mode||nn,cn=yn!=null?yn:Ee.selectable,Bn=zt!=null?zt:Pt,Mn={horizontal:{motionName:`${At}-slide-up`},inline:(0,ke.Z)(At),other:{motionName:`${At}-zoom-big`}},sn=ze("menu",Bt||Ee.prefixCls),bn=(0,Se.Z)(sn),[mn,$n,gn]=Qt(sn,bn,!nt),En=we()(`${sn}-${Wt}`,ut==null?void 0:ut.className,Dt),Xt=re.useMemo(()=>{var dn,Tn;if(typeof Zt=="function"||lt(Zt))return Zt||null;if(typeof Ee.expandIcon=="function"||lt(Ee.expandIcon))return Ee.expandIcon||null;if(typeof(ut==null?void 0:ut.expandIcon)=="function"||lt(ut==null?void 0:ut.expandIcon))return(ut==null?void 0:ut.expandIcon)||null;const Vn=(dn=Zt!=null?Zt:Ee==null?void 0:Ee.expandIcon)!==null&&dn!==void 0?dn:ut==null?void 0:ut.expandIcon;return(0,fe.Tm)(Vn,{className:we()(`${sn}-submenu-expand-icon`,re.isValidElement(Vn)?(Tn=Vn.props)===null||Tn===void 0?void 0:Tn.className:void 0)})},[Zt,Ee==null?void 0:Ee.expandIcon,ut==null?void 0:ut.expandIcon,sn]),xn=re.useMemo(()=>({prefixCls:sn,inlineCollapsed:Bn||!1,direction:pt,firstLevel:!0,theme:Wt,mode:on,disableMenuItemTitleTooltip:dt}),[sn,Bn,pt,dt,Wt]);return mn(re.createElement(rt.Z.Provider,{value:null},re.createElement(Ke.Provider,{value:xn},re.createElement(qe.ZP,Object.assign({getPopupContainer:Je,overflowedIndicator:re.createElement(We.Z,null),overflowedIndicatorPopupClassName:we()(sn,`${sn}-${Wt}`,Me),mode:on,selectable:cn,onClick:Nt},gt,{inlineCollapsed:Bn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Ut),className:En,prefixCls:sn,direction:pt,defaultMotions:Mn,expandIcon:Xt,ref:he,rootClassName:we()(Ht,$n,Ee.rootClassName,gn,bn),_internalComponents:ae})))))});const oe=(0,re.forwardRef)((ne,he)=>{const ye=(0,re.useRef)(null),nt=re.useContext(ge.D);return(0,re.useImperativeHandle)(he,()=>({menu:ye.current,focus:Ee=>{var ze;(ze=ye.current)===null||ze===void 0||ze.focus(Ee)}})),re.createElement(z,Object.assign({ref:ye},ne,nt))});oe.Item=st,oe.SubMenu=Re,oe.Divider=Ne,oe.ItemGroup=qe.BW;var se=oe},82326:function(Vt,Lt,ie){"use strict";var re=ie(59301),qe=ie(92310),ge=ie.n(qe),We=ie(37463),Ce=ie(2738),we=ie(75030),Le=ie(86641),_e=ie(45915),ke=ie(82855),fe=ie(48755),Ge=ie(38406),Se=ie(2171),vt=ie(83397),Ke=ie(31756),Fe=ie(56553),je=ie(24971),Ne=ie(70045),ht=ie(57700),yt=ie(1722),Ct=ie(90376),st=ie(68525),rt=ie(90005),ot=function(ft,Be){var at={};for(var it in ft)Object.prototype.hasOwnProperty.call(ft,it)&&Be.indexOf(it)<0&&(at[it]=ft[it]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,it=Object.getOwnPropertySymbols(ft);me{var at;const{prefixCls:it,bordered:me,className:kt,rootClassName:Oe,getPopupContainer:$e,popupClassName:Et,dropdownClassName:ve,listHeight:ce=256,placement:Ye,listItemHeight:Ft,size:bt,disabled:Ie,notFoundContent:Ze,status:Qe,builtinPlacements:Qt,dropdownMatchSelectWidth:Mt,popupMatchSelectWidth:$t,direction:Re,style:Tt,allowClear:lt,variant:ae,dropdownStyle:ee,transitionName:z,tagRender:oe,maxCount:se,prefix:ne}=ft,he=ot(ft,["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:ye,getPrefixCls:nt,renderEmpty:Ee,direction:ze,virtual:Je,popupMatchSelectWidth:pt,popupOverflow:ut}=re.useContext(fe.E_),At=(0,fe.dj)("select"),[,Bt]=(0,ht.ZP)(),Dt=Ft!=null?Ft:Bt==null?void 0:Bt.controlHeight,Ut=nt("select",it),Wt=nt(),Zt=Re!=null?Re:ze,{compactSize:dt,compactItemClassnames:zt}=(0,Ne.ri)(Ut,Zt),[Pt,Ht]=(0,je.Z)("select",ae,me),nn=(0,vt.Z)(Ut),[yn,fn,Me]=(0,Ct.Z)(Ut,nn),et=re.useMemo(()=>{const{mode:Zn}=ft;if(Zn!=="combobox")return Zn===He?"combobox":Zn},[ft.mode]),gt=et==="multiple"||et==="tags",Nt=(0,rt.Z)(ft.suffixIcon,ft.showArrow),on=(at=$t!=null?$t:Mt)!==null&&at!==void 0?at:pt,{status:cn,hasFeedback:Bn,isFormItemInput:Mn,feedbackIcon:sn}=re.useContext(Fe.aM),bn=(0,ke.F)(cn,Qe);let mn;Ze!==void 0?mn=Ze:et==="combobox"?mn=null:mn=(Ee==null?void 0:Ee("Select"))||re.createElement(Ge.Z,{componentName:"Select"});const{suffixIcon:$n,itemIcon:gn,removeIcon:En,clearIcon:Xt}=(0,st.Z)(Object.assign(Object.assign({},he),{multiple:gt,hasFeedback:Bn,feedbackIcon:sn,showSuffixIcon:Nt,prefixCls:Ut,componentName:"Select"})),xn=lt===!0?{clearIcon:Xt}:lt,dn=(0,Ce.Z)(he,["suffixIcon","itemIcon"]),Tn=ge()(Et||ve,{[`${Ut}-dropdown-${Zt}`]:Zt==="rtl"},Oe,Me,nn,fn),Vn=(0,Ke.Z)(Zn=>{var Ot;return(Ot=bt!=null?bt:dt)!==null&&Ot!==void 0?Ot:Zn}),Hn=re.useContext(Se.Z),Nn=Ie!=null?Ie:Hn,Un=ge()({[`${Ut}-lg`]:Vn==="large",[`${Ut}-sm`]:Vn==="small",[`${Ut}-rtl`]:Zt==="rtl",[`${Ut}-${Pt}`]:Ht,[`${Ut}-in-form-item`]:Mn},(0,ke.Z)(Ut,bn,Bn),zt,At.className,kt,Oe,Me,nn,fn),Kn=re.useMemo(()=>Ye!==void 0?Ye:Zt==="rtl"?"bottomRight":"bottomLeft",[Ye,Zt]),[Qn]=(0,we.Cn)("SelectLike",ee==null?void 0:ee.zIndex);return yn(re.createElement(We.ZP,Object.assign({ref:Be,virtual:Je,showSearch:At.showSearch},dn,{style:Object.assign(Object.assign({},At.style),Tt),dropdownMatchSelectWidth:on,transitionName:(0,Le.m)(Wt,"slide-up",z),builtinPlacements:(0,yt.Z)(Qt,ut),listHeight:ce,listItemHeight:Dt,mode:et,prefixCls:Ut,placement:Kn,direction:Zt,prefix:ne,suffixIcon:$n,menuItemSelectedIcon:gn,removeIcon:En,allowClear:xn,notFoundContent:mn,className:Un,getPopupContainer:$e||ye,dropdownClassName:Tn,disabled:Nn,dropdownStyle:Object.assign(Object.assign({},ee),{zIndex:Qn}),maxCount:gt?se:void 0,tagRender:gt?oe:void 0})))},tt=re.forwardRef(St),Xe=(0,_e.Z)(tt,"dropdownAlign");tt.SECRET_COMBOBOX_MODE_DO_NOT_USE=He,tt.Option=We.Wx,tt.OptGroup=We.Xo,tt._InternalPanelDoNotUseOrYouWillBeFired=Xe,Lt.default=tt},1722:function(Vt,Lt){"use strict";const ie=qe=>{const We={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:qe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},We),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},We),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},We),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},We),{points:["br","tr"],offset:[0,-4]})}};function re(qe,ge){return qe||ie(ge)}Lt.Z=re},90376:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return it}});var re=ie(63356),qe=ie(56119),ge=ie(16931),We=ie(51636),Ce=ie(46e3),we=ie(93873);const Le=me=>{const{optionHeight:kt,optionFontSize:Oe,optionLineHeight:$e,optionPadding:Et}=me;return{position:"relative",display:"block",minHeight:kt,padding:Et,color:me.colorText,fontWeight:"normal",fontSize:Oe,lineHeight:$e,boxSizing:"border-box"}};var ke=me=>{const{antCls:kt,componentCls:Oe}=me,$e=`${Oe}-item`,Et=`&${kt}-slide-up-enter${kt}-slide-up-enter-active`,ve=`&${kt}-slide-up-appear${kt}-slide-up-appear-active`,ce=`&${kt}-slide-up-leave${kt}-slide-up-leave-active`,Ye=`${Oe}-dropdown-placement-`,Ft=`${$e}-option-selected`;return[{[`${Oe}-dropdown`]:Object.assign(Object.assign({},(0,re.Wf)(me)),{position:"absolute",top:-9999,zIndex:me.zIndexPopup,boxSizing:"border-box",padding:me.paddingXXS,overflow:"hidden",fontSize:me.fontSize,fontVariant:"initial",backgroundColor:me.colorBgElevated,borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,[` ${Et}${Ye}bottomLeft, ${ve}${Ye}bottomLeft `]:{animationName:Ce.fJ},[` ${Et}${Ye}topLeft, ${ve}${Ye}topLeft, ${Et}${Ye}topRight, ${ve}${Ye}topRight `]:{animationName:Ce.Qt},[`${ce}${Ye}bottomLeft`]:{animationName:Ce.Uw},[` ${ce}${Ye}topLeft, ${ce}${Ye}topRight `]:{animationName:Ce.ly},"&-hidden":{display:"none"},[$e]:Object.assign(Object.assign({},Le(me)),{cursor:"pointer",transition:`background ${me.motionDurationSlow} ease`,borderRadius:me.borderRadiusSM,"&-group":{color:me.colorTextDescription,fontSize:me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},re.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${$e}-option-disabled)`]:{backgroundColor:me.optionActiveBg},[`&-selected:not(${$e}-option-disabled)`]:{color:me.optionSelectedColor,fontWeight:me.optionSelectedFontWeight,backgroundColor:me.optionSelectedBg,[`${$e}-option-state`]:{color:me.colorPrimary}},"&-disabled":{[`&${$e}-option-selected`]:{backgroundColor:me.colorBgContainerDisabled},color:me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:me.calc(me.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Le(me)),{color:me.colorTextDisabled})}),[`${Ft}:has(+ ${Ft})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ft}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ce.oN)(me,"slide-up"),(0,Ce.oN)(me,"slide-down"),(0,we.Fm)(me,"move-up"),(0,we.Fm)(me,"move-down")]},fe=ie(26743),Ge=ie(36237);function Se(me,kt){const{componentCls:Oe,inputPaddingHorizontalBase:$e,borderRadius:Et}=me,ve=me.calc(me.controlHeight).sub(me.calc(me.lineWidth).mul(2)).equal(),ce=kt?`${Oe}-${kt}`:"";return{[`${Oe}-single${ce}`]:{fontSize:me.fontSize,height:me.controlHeight,[`${Oe}-selector`]:Object.assign(Object.assign({},(0,re.Wf)(me,!0)),{display:"flex",borderRadius:Et,flex:"1 1 auto",[`${Oe}-selection-wrap:after`]:{lineHeight:(0,Ge.unit)(ve)},[`${Oe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Oe}-selection-item, ${Oe}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Ge.unit)(ve),transition:`all ${me.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Oe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Oe}-selection-item:empty:after`,`${Oe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Oe}-show-arrow ${Oe}-selection-item, &${Oe}-show-arrow ${Oe}-selection-search, &${Oe}-show-arrow ${Oe}-selection-placeholder `]:{paddingInlineEnd:me.showArrowPaddingInlineEnd},[`&${Oe}-open ${Oe}-selection-item`]:{color:me.colorTextPlaceholder},[`&:not(${Oe}-customize-input)`]:{[`${Oe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ge.unit)($e)}`,[`${Oe}-selection-search-input`]:{height:ve,fontSize:me.fontSize},"&:after":{lineHeight:(0,Ge.unit)(ve)}}},[`&${Oe}-customize-input`]:{[`${Oe}-selector`]:{"&:after":{display:"none"},[`${Oe}-selection-search`]:{position:"static",width:"100%"},[`${Oe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ge.unit)($e)}`,"&:after":{display:"none"}}}}}}}function vt(me){const{componentCls:kt}=me,Oe=me.calc(me.controlPaddingHorizontalSM).sub(me.lineWidth).equal();return[Se(me),Se((0,We.mergeToken)(me,{controlHeight:me.controlHeightSM,borderRadius:me.borderRadiusSM}),"sm"),{[`${kt}-single${kt}-sm`]:{[`&:not(${kt}-customize-input)`]:{[`${kt}-selector`]:{padding:`0 ${(0,Ge.unit)(Oe)}`},[`&${kt}-show-arrow ${kt}-selection-search`]:{insetInlineEnd:me.calc(Oe).add(me.calc(me.fontSize).mul(1.5)).equal()},[` &${kt}-show-arrow ${kt}-selection-item, &${kt}-show-arrow ${kt}-selection-placeholder `]:{paddingInlineEnd:me.calc(me.fontSize).mul(1.5).equal()}}}},Se((0,We.mergeToken)(me,{controlHeight:me.singleItemHeightLG,fontSize:me.fontSizeLG,borderRadius:me.borderRadiusLG}),"lg")]}const Ke=me=>{const{fontSize:kt,lineHeight:Oe,lineWidth:$e,controlHeight:Et,controlHeightSM:ve,controlHeightLG:ce,paddingXXS:Ye,controlPaddingHorizontal:Ft,zIndexPopupBase:bt,colorText:Ie,fontWeightStrong:Ze,controlItemBgActive:Qe,controlItemBgHover:Qt,colorBgContainer:Mt,colorFillSecondary:$t,colorBgContainerDisabled:Re,colorTextDisabled:Tt,colorPrimaryHover:lt,colorPrimary:ae,controlOutline:ee}=me,z=Ye*2,oe=$e*2,se=Math.min(Et-z,Et-oe),ne=Math.min(ve-z,ve-oe),he=Math.min(ce-z,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ye/2),zIndexPopup:bt+50,optionSelectedColor:Ie,optionSelectedFontWeight:Ze,optionSelectedBg:Qe,optionActiveBg:Qt,optionPadding:`${(Et-kt*Oe)/2}px ${Ft}px`,optionFontSize:kt,optionLineHeight:Oe,optionHeight:Et,selectorBg:Mt,clearBg:Mt,singleItemHeightLG:ce,multipleItemBg:$t,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:he,multipleSelectorBgDisabled:Re,multipleItemColorDisabled:Tt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(me.fontSize*1.25),hoverBorderColor:lt,activeBorderColor:ae,activeOutlineColor:ee,selectAffixPadding:Ye}},Fe=(me,kt)=>{const{componentCls:Oe,antCls:$e,controlOutlineWidth:Et}=me;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${kt.borderColor}`,background:me.selectorBg},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${$e}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{borderColor:kt.hoverBorderHover},[`${Oe}-focused& ${Oe}-selector`]:{borderColor:kt.activeBorderColor,boxShadow:`0 0 0 ${(0,Ge.unit)(Et)} ${kt.activeOutlineColor}`,outline:0},[`${Oe}-prefix`]:{color:kt.color}}}},je=(me,kt)=>({[`&${me.componentCls}-status-${kt.status}`]:Object.assign({},Fe(me,kt))}),Ne=me=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fe(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),je(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),je(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})}),ht=(me,kt)=>{const{componentCls:Oe,antCls:$e}=me;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{background:kt.bg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} transparent`,color:kt.color},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${$e}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{background:kt.hoverBg},[`${Oe}-focused& ${Oe}-selector`]:{background:me.selectorBg,borderColor:kt.activeBorderColor,outline:0}}}},yt=(me,kt)=>({[`&${me.componentCls}-status-${kt.status}`]:Object.assign({},ht(me,kt))}),Ct=me=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ht(me,{bg:me.colorFillTertiary,hoverBg:me.colorFillSecondary,activeBorderColor:me.activeBorderColor,color:me.colorText})),yt(me,{status:"error",bg:me.colorErrorBg,hoverBg:me.colorErrorBgHover,activeBorderColor:me.colorError,color:me.colorError})),yt(me,{status:"warning",bg:me.colorWarningBg,hoverBg:me.colorWarningBgHover,activeBorderColor:me.colorWarning,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{borderColor:me.colorBorder,background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.colorBgContainer,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.colorSplit}`}})}),st=me=>({"&-borderless":{[`${me.componentCls}-selector`]:{background:"transparent",border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} transparent`},[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`},[`&${me.componentCls}-status-error`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorError}},[`&${me.componentCls}-status-warning`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorWarning}}}}),rt=(me,kt)=>{const{componentCls:Oe,antCls:$e}=me;return{[`&:not(${Oe}-customize-input) ${Oe}-selector`]:{borderWidth:`0 0 ${(0,Ge.unit)(me.lineWidth)} 0`,borderStyle:`none none ${me.lineType} none`,borderColor:kt.borderColor,background:me.selectorBg,borderRadius:0},[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${$e}-pagination-size-changer)`]:{[`&:hover ${Oe}-selector`]:{borderColor:kt.hoverBorderHover},[`${Oe}-focused& ${Oe}-selector`]:{borderColor:kt.activeBorderColor,outline:0},[`${Oe}-prefix`]:{color:kt.color}}}},ot=(me,kt)=>({[`&${me.componentCls}-status-${kt.status}`]:Object.assign({},rt(me,kt))}),He=me=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},rt(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),ot(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),ot(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})});var tt=me=>({[me.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ne(me)),Ct(me)),st(me)),He(me))});const Xe=me=>{const{componentCls:kt}=me;return{position:"relative",transition:`all ${me.motionDurationMid} ${me.motionEaseInOut}`,input:{cursor:"pointer"},[`${kt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${kt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ft=me=>{const{componentCls:kt}=me;return{[`${kt}-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"}}}},Be=me=>{const{antCls:kt,componentCls:Oe,inputPaddingHorizontalBase:$e,iconCls:Et}=me;return{[Oe]:Object.assign(Object.assign({},(0,re.Wf)(me)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Oe}-customize-input) ${Oe}-selector`]:Object.assign(Object.assign({},Xe(me)),ft(me)),[`${Oe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},re.vS),{[`> ${kt}-typography`]:{display:"inline"}}),[`${Oe}-selection-placeholder`]:Object.assign(Object.assign({},re.vS),{flex:1,color:me.colorTextPlaceholder,pointerEvents:"none"}),[`${Oe}-arrow`]:Object.assign(Object.assign({},(0,re.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${me.motionDurationSlow} ease`,[Et]:{verticalAlign:"top",transition:`transform ${me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Oe}-suffix)`]:{pointerEvents:"auto"}},[`${Oe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Oe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Oe}-prefix`]:{flex:"none",marginInlineEnd:me.selectAffixPadding},[`${Oe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,zIndex:1,display:"inline-block",width:me.fontSizeIcon,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${me.motionDurationMid} ease, opacity ${me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:me.colorTextTertiary}},[`&:hover ${Oe}-clear`]:{opacity:1,background:me.colorBgBase,borderRadius:"50%"}}),[`${Oe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Oe}-has-feedback`]:{[`${Oe}-clear`]:{insetInlineEnd:me.calc($e).add(me.fontSize).add(me.paddingXS).equal()}}}}}},at=me=>{const{componentCls:kt}=me;return[{[kt]:{[`&${kt}-in-form-item`]:{width:"100%"}}},Be(me),vt(me),(0,fe.ZP)(me),ke(me),{[`${kt}-rtl`]:{direction:"rtl"}},(0,qe.c)(me,{borderElCls:`${kt}-selector`,focusElCls:`${kt}-focused`})]};var it=(0,ge.I$)("Select",(me,kt)=>{let{rootPrefixCls:Oe}=kt;const $e=(0,We.mergeToken)(me,{rootPrefixCls:Oe,inputPaddingHorizontalBase:me.calc(me.paddingSM).sub(1).equal(),multipleSelectItemHeight:me.multipleItemHeight,selectHeight:me.controlHeight});return[at($e),tt($e)]},Ke,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Vt,Lt,ie){"use strict";ie.d(Lt,{_z:function(){return we},gp:function(){return We}});var re=ie(36237),qe=ie(63356),ge=ie(51636);const We=fe=>{const{multipleSelectItemHeight:Ge,paddingXXS:Se,lineWidth:vt,INTERNAL_FIXED_ITEM_MARGIN:Ke}=fe,Fe=fe.max(fe.calc(Se).sub(vt).equal(),0),je=fe.max(fe.calc(Fe).sub(Ke).equal(),0);return{basePadding:Fe,containerPadding:je,itemHeight:(0,re.unit)(Ge),itemLineHeight:(0,re.unit)(fe.calc(Ge).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},Ce=fe=>{const{multipleSelectItemHeight:Ge,selectHeight:Se,lineWidth:vt}=fe;return fe.calc(Se).sub(Ge).div(2).sub(vt).equal()},we=fe=>{const{componentCls:Ge,iconCls:Se,borderRadiusSM:vt,motionDurationSlow:Ke,paddingXS:Fe,multipleItemColorDisabled:je,multipleItemBorderColorDisabled:Ne,colorIcon:ht,colorIconHover:yt,INTERNAL_FIXED_ITEM_MARGIN:Ct}=fe;return{[`${Ge}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ge}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ct,borderRadius:vt,cursor:"default",transition:`font-size ${Ke}, line-height ${Ke}, height ${Ke}`,marginInlineEnd:fe.calc(Ct).mul(2).equal(),paddingInlineStart:Fe,paddingInlineEnd:fe.calc(Fe).div(2).equal(),[`${Ge}-disabled&`]:{color:je,borderColor:Ne,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(Fe).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,qe.Ro)()),{display:"inline-flex",alignItems:"center",color:ht,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Se}`]:{verticalAlign:"-0.2em"},"&:hover":{color:yt}})}}}},Le=(fe,Ge)=>{const{componentCls:Se,INTERNAL_FIXED_ITEM_MARGIN:vt}=fe,Ke=`${Se}-selection-overflow`,Fe=fe.multipleSelectItemHeight,je=Ce(fe),Ne=Ge?`${Se}-${Ge}`:"",ht=We(fe);return{[`${Se}-multiple${Ne}`]:Object.assign(Object.assign({},we(fe)),{[`${Se}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ht.basePadding,paddingBlock:ht.containerPadding,borderRadius:fe.borderRadius,[`${Se}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,re.unit)(vt)} 0`,lineHeight:(0,re.unit)(Fe),visibility:"hidden",content:'"\\a0"'}},[`${Se}-selection-item`]:{height:ht.itemHeight,lineHeight:(0,re.unit)(ht.itemLineHeight)},[`${Se}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,re.unit)(Fe),marginBlock:vt}},[`${Se}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ht.basePadding).equal()},[`${Ke}-item + ${Ke}-item, ${Se}-prefix + ${Se}-selection-wrap `]:{[`${Se}-selection-search`]:{marginInlineStart:0},[`${Se}-selection-placeholder`]:{insetInlineStart:0}},[`${Ke}-item-suffix`]:{minHeight:ht.itemHeight,marginBlock:vt},[`${Se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(je).equal(),"\n &-input,\n &-mirror\n ":{height:Fe,fontFamily:fe.fontFamily,lineHeight:(0,re.unit)(Fe),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"}},[`${Se}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ht.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function _e(fe,Ge){const{componentCls:Se}=fe,vt=Ge?`${Se}-${Ge}`:"",Ke={[`${Se}-multiple${vt}`]:{fontSize:fe.fontSize,[`${Se}-selector`]:{[`${Se}-show-search&`]:{cursor:"text"}},[` &${Se}-show-arrow ${Se}-selector, &${Se}-allow-clear ${Se}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Le(fe,Ge),Ke]}const ke=fe=>{const{componentCls:Ge}=fe,Se=(0,ge.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),vt=(0,ge.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[_e(fe),_e(Se,"sm"),{[`${Ge}-multiple${Ge}-sm`]:{[`${Ge}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Ge}-selection-search`]:{marginInlineStart:2}}},_e(vt,"lg")]};Lt.ZP=ke},68525:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return _e}});var re=ie(59301),qe=ie(40001),ge=ie(19248),We=ie(99267),Ce=ie(84105),we=ie(58617),Le=ie(47472);function _e(ke){let{suffixIcon:fe,clearIcon:Ge,menuItemSelectedIcon:Se,removeIcon:vt,loading:Ke,multiple:Fe,hasFeedback:je,prefixCls:Ne,showSuffixIcon:ht,feedbackIcon:yt,showArrow:Ct,componentName:st}=ke;const rt=Ge!=null?Ge:re.createElement(ge.Z,null),ot=Xe=>fe===null&&!je&&!Ct?null:re.createElement(re.Fragment,null,ht!==!1&&Xe,je&&yt);let He=null;if(fe!==void 0)He=ot(fe);else if(Ke)He=ot(re.createElement(we.Z,{spin:!0}));else{const Xe=`${Ne}-suffix`;He=ft=>{let{open:Be,showSearch:at}=ft;return ot(Be&&at?re.createElement(Le.Z,{className:Xe}):re.createElement(Ce.Z,{className:Xe}))}}let St=null;Se!==void 0?St=Se:Fe?St=re.createElement(qe.Z,null):St=null;let tt=null;return vt!==void 0?tt=vt:tt=re.createElement(We.Z,null),{clearIcon:rt,suffixIcon:He,itemIcon:St,removeIcon:tt}}},90005:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return re}});function re(qe,ge){return ge!==void 0?ge:qe!==null}},58755:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return kt}});var re=ie(59301),qe=ie(58617),ge=ie(92310),We=ie.n(ge),Ce=ie(60499),we=ie(18642),Le=ie(72190),_e=ie(42244),ke=ie(18929),fe=ie(10228),Ge=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Se=re.forwardRef(function(Oe,$e){var Et,ve=Oe.prefixCls,ce=ve===void 0?"rc-switch":ve,Ye=Oe.className,Ft=Oe.checked,bt=Oe.defaultChecked,Ie=Oe.disabled,Ze=Oe.loadingIcon,Qe=Oe.checkedChildren,Qt=Oe.unCheckedChildren,Mt=Oe.onClick,$t=Oe.onChange,Re=Oe.onKeyDown,Tt=(0,_e.Z)(Oe,Ge),lt=(0,ke.Z)(!1,{value:Ft,defaultValue:bt}),ae=(0,Le.Z)(lt,2),ee=ae[0],z=ae[1];function oe(ye,nt){var Ee=ee;return Ie||(Ee=ye,z(Ee),$t==null||$t(Ee,nt)),Ee}function se(ye){ye.which===fe.Z.LEFT?oe(!1,ye):ye.which===fe.Z.RIGHT&&oe(!0,ye),Re==null||Re(ye)}function ne(ye){var nt=oe(!ee,ye);Mt==null||Mt(nt,ye)}var he=We()(ce,Ye,(Et={},(0,we.Z)(Et,"".concat(ce,"-checked"),ee),(0,we.Z)(Et,"".concat(ce,"-disabled"),Ie),Et));return re.createElement("button",(0,Ce.Z)({},Tt,{type:"button",role:"switch","aria-checked":ee,disabled:Ie,className:he,ref:$e,onKeyDown:se,onClick:ne}),Ze,re.createElement("span",{className:"".concat(ce,"-inner")},re.createElement("span",{className:"".concat(ce,"-inner-checked")},Qe),re.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Qt)))});Se.displayName="Switch";var vt=Se,Ke=ie(12919),Fe=ie(48755),je=ie(2171),Ne=ie(31756),ht=ie(36237),yt=ie(17835),Ct=ie(63356),st=ie(16931),rt=ie(51636);const ot=Oe=>{const{componentCls:$e,trackHeightSM:Et,trackPadding:ve,trackMinWidthSM:ce,innerMinMarginSM:Ye,innerMaxMarginSM:Ft,handleSizeSM:bt,calc:Ie}=Oe,Ze=`${$e}-inner`,Qe=(0,ht.unit)(Ie(bt).add(Ie(ve).mul(2)).equal()),Qt=(0,ht.unit)(Ie(Ft).mul(2).equal());return{[$e]:{[`&${$e}-small`]:{minWidth:ce,height:Et,lineHeight:(0,ht.unit)(Et),[`${$e}-inner`]:{paddingInlineStart:Ft,paddingInlineEnd:Ye,[`${Ze}-checked, ${Ze}-unchecked`]:{minHeight:Et},[`${Ze}-checked`]:{marginInlineStart:`calc(-100% + ${Qe} - ${Qt})`,marginInlineEnd:`calc(100% - ${Qe} + ${Qt})`},[`${Ze}-unchecked`]:{marginTop:Ie(Et).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:bt,height:bt},[`${$e}-loading-icon`]:{top:Ie(Ie(bt).sub(Oe.switchLoadingIconSize)).div(2).equal(),fontSize:Oe.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:Ye,paddingInlineEnd:Ft,[`${Ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ze}-unchecked`]:{marginInlineStart:`calc(100% - ${Qe} + ${Qt})`,marginInlineEnd:`calc(-100% + ${Qe} - ${Qt})`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${(0,ht.unit)(Ie(bt).add(ve).equal())})`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${Ze}`]:{[`${Ze}-unchecked`]:{marginInlineStart:Ie(Oe.marginXXS).div(2).equal(),marginInlineEnd:Ie(Oe.marginXXS).mul(-1).div(2).equal()}},[`&${$e}-checked ${Ze}`]:{[`${Ze}-checked`]:{marginInlineStart:Ie(Oe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ie(Oe.marginXXS).div(2).equal()}}}}}}},He=Oe=>{const{componentCls:$e,handleSize:Et,calc:ve}=Oe;return{[$e]:{[`${$e}-loading-icon${Oe.iconCls}`]:{position:"relative",top:ve(ve(Et).sub(Oe.fontSize)).div(2).equal(),color:Oe.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:Oe.switchColor}}}},St=Oe=>{const{componentCls:$e,trackPadding:Et,handleBg:ve,handleShadow:ce,handleSize:Ye,calc:Ft}=Oe,bt=`${$e}-handle`;return{[$e]:{[bt]:{position:"absolute",top:Et,insetInlineStart:Et,width:Ye,height:Ye,transition:`all ${Oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ve,borderRadius:Ft(Ye).div(2).equal(),boxShadow:ce,transition:`all ${Oe.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${bt}`]:{insetInlineStart:`calc(100% - ${(0,ht.unit)(Ft(Ye).add(Et).equal())})`},[`&:not(${$e}-disabled):active`]:{[`${bt}::before`]:{insetInlineEnd:Oe.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${bt}::before`]:{insetInlineEnd:0,insetInlineStart:Oe.switchHandleActiveInset}}}}},tt=Oe=>{const{componentCls:$e,trackHeight:Et,trackPadding:ve,innerMinMargin:ce,innerMaxMargin:Ye,handleSize:Ft,calc:bt}=Oe,Ie=`${$e}-inner`,Ze=(0,ht.unit)(bt(Ft).add(bt(ve).mul(2)).equal()),Qe=(0,ht.unit)(bt(Ye).mul(2).equal());return{[$e]:{[Ie]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ye,paddingInlineEnd:ce,transition:`padding-inline-start ${Oe.switchDuration} ease-in-out, padding-inline-end ${Oe.switchDuration} ease-in-out`,[`${Ie}-checked, ${Ie}-unchecked`]:{display:"block",color:Oe.colorTextLightSolid,fontSize:Oe.fontSizeSM,transition:`margin-inline-start ${Oe.switchDuration} ease-in-out, margin-inline-end ${Oe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Et},[`${Ie}-checked`]:{marginInlineStart:`calc(-100% + ${Ze} - ${Qe})`,marginInlineEnd:`calc(100% - ${Ze} + ${Qe})`},[`${Ie}-unchecked`]:{marginTop:bt(Et).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${Ie}`]:{paddingInlineStart:ce,paddingInlineEnd:Ye,[`${Ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ie}-unchecked`]:{marginInlineStart:`calc(100% - ${Ze} + ${Qe})`,marginInlineEnd:`calc(-100% + ${Ze} - ${Qe})`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${Ie}`]:{[`${Ie}-unchecked`]:{marginInlineStart:bt(ve).mul(2).equal(),marginInlineEnd:bt(ve).mul(-1).mul(2).equal()}},[`&${$e}-checked ${Ie}`]:{[`${Ie}-checked`]:{marginInlineStart:bt(ve).mul(-1).mul(2).equal(),marginInlineEnd:bt(ve).mul(2).equal()}}}}}},Xe=Oe=>{const{componentCls:$e,trackHeight:Et,trackMinWidth:ve}=Oe;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ct.Wf)(Oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ve,height:Et,lineHeight:(0,ht.unit)(Et),verticalAlign:"middle",background:Oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:Oe.colorTextTertiary}}),(0,Ct.Qy)(Oe)),{[`&${$e}-checked`]:{background:Oe.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:Oe.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:Oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}},ft=Oe=>{const{fontSize:$e,lineHeight:Et,controlHeight:ve,colorWhite:ce}=Oe,Ye=$e*Et,Ft=ve/2,bt=2,Ie=Ye-bt*2,Ze=Ft-bt*2;return{trackHeight:Ye,trackHeightSM:Ft,trackMinWidth:Ie*2+bt*4,trackMinWidthSM:Ze*2+bt*2,trackPadding:bt,handleBg:ce,handleSize:Ie,handleSizeSM:Ze,handleShadow:`0 2px 4px 0 ${new yt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ie/2,innerMaxMargin:Ie+bt+bt*2,innerMinMarginSM:Ze/2,innerMaxMarginSM:Ze+bt+bt*2}};var Be=(0,st.I$)("Switch",Oe=>{const $e=(0,rt.mergeToken)(Oe,{switchDuration:Oe.motionDurationMid,switchColor:Oe.colorPrimary,switchDisabledOpacity:Oe.opacityLoading,switchLoadingIconSize:Oe.calc(Oe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Oe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Xe($e),tt($e),St($e),He($e),ot($e)]},ft),at=function(Oe,$e){var Et={};for(var ve in Oe)Object.prototype.hasOwnProperty.call(Oe,ve)&&$e.indexOf(ve)<0&&(Et[ve]=Oe[ve]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ve=Object.getOwnPropertySymbols(Oe);ce{const{prefixCls:Et,size:ve,disabled:ce,loading:Ye,className:Ft,rootClassName:bt,style:Ie,checked:Ze,value:Qe,defaultChecked:Qt,defaultValue:Mt,onChange:$t}=Oe,Re=at(Oe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Tt,lt]=(0,ke.Z)(!1,{value:Ze!=null?Ze:Qe,defaultValue:Qt!=null?Qt:Mt}),{getPrefixCls:ae,direction:ee,switch:z}=re.useContext(Fe.E_),oe=re.useContext(je.Z),se=(ce!=null?ce:oe)||Ye,ne=ae("switch",Et),he=re.createElement("div",{className:`${ne}-handle`},Ye&&re.createElement(qe.Z,{className:`${ne}-loading-icon`})),[ye,nt,Ee]=Be(ne),ze=(0,Ne.Z)(ve),Je=We()(z==null?void 0:z.className,{[`${ne}-small`]:ze==="small",[`${ne}-loading`]:Ye,[`${ne}-rtl`]:ee==="rtl"},Ft,bt,nt,Ee),pt=Object.assign(Object.assign({},z==null?void 0:z.style),Ie),ut=function(){lt(arguments.length<=0?void 0:arguments[0]),$t==null||$t.apply(void 0,arguments)};return ye(re.createElement(Ke.Z,{component:"Switch"},re.createElement(vt,Object.assign({},Re,{checked:Tt,onChange:ut,prefixCls:ne,className:Je,style:pt,disabled:se,ref:$e,loadingIcon:he}))))});me.__ANT_SWITCH=!0;var kt=me},99498:function(Vt,Lt,ie){(function(re){re(ie(89780))})(function(re){re.defineOption("placeholder","",function(_e,ke,fe){var Ge=fe&&fe!=re.Init;if(ke&&!Ge)_e.on("blur",Ce),_e.on("change",we),_e.on("swapDoc",we),re.on(_e.getInputField(),"compositionupdate",_e.state.placeholderCompose=function(){We(_e)}),we(_e);else if(!ke&&Ge){_e.off("blur",Ce),_e.off("change",we),_e.off("swapDoc",we),re.off(_e.getInputField(),"compositionupdate",_e.state.placeholderCompose),qe(_e);var Se=_e.getWrapperElement();Se.className=Se.className.replace(" CodeMirror-empty","")}ke&&!_e.hasFocus()&&Ce(_e)});function qe(_e){_e.state.placeholder&&(_e.state.placeholder.parentNode.removeChild(_e.state.placeholder),_e.state.placeholder=null)}function ge(_e){qe(_e);var ke=_e.state.placeholder=document.createElement("pre");ke.style.cssText="height: 0; overflow: visible",ke.style.direction=_e.getOption("direction"),ke.className="CodeMirror-placeholder CodeMirror-line-like";var fe=_e.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),ke.appendChild(fe),_e.display.lineSpace.insertBefore(ke,_e.display.lineSpace.firstChild)}function We(_e){setTimeout(function(){var ke=!1,fe=_e.getInputField();fe.nodeName=="TEXTAREA"?ke=!fe.value:_e.lineCount()==1&&(ke=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),ke?ge(_e):qe(_e)},20)}function Ce(_e){Le(_e)&&ge(_e)}function we(_e){var ke=_e.getWrapperElement(),fe=Le(_e);ke.className=ke.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ge(_e):qe(_e)}function Le(_e){return _e.lineCount()===1&&_e.getLine(0)===""}})},25717:function(Vt,Lt,ie){(function(re){re(ie(89780))})(function(re){var qe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Fe,je,Ne){Ne&&Ne!=re.Init&&(Fe.removeKeyMap(Ce),Fe.state.closeBrackets=null),je&&(we(We(je,"pairs")),Fe.state.closeBrackets=je,Fe.addKeyMap(Ce))});function We(Fe,je){return je=="pairs"&&typeof Fe=="string"?Fe:typeof Fe=="object"&&Fe[je]!=null?Fe[je]:qe[je]}var Ce={Backspace:ke,Enter:fe};function we(Fe){for(var je=0;je=0;yt--){var st=ht[yt].head;Fe.replaceRange("",ge(st.line,st.ch-1),ge(st.line,st.ch+1),"+delete")}}function fe(Fe){var je=_e(Fe),Ne=je&&We(je,"explode");if(!Ne||Fe.getOption("disableInput"))return re.Pass;for(var ht=Fe.listSelections(),yt=0;yt0;return{anchor:new ge(Fe.anchor.line,Fe.anchor.ch+(je?-1:1)),head:new ge(Fe.head.line,Fe.head.ch+(je?1:-1))}}function Se(Fe,je){var Ne=_e(Fe);if(!Ne||Fe.getOption("disableInput"))return re.Pass;var ht=We(Ne,"pairs"),yt=ht.indexOf(je);if(yt==-1)return re.Pass;for(var Ct=We(Ne,"closeBefore"),st=We(Ne,"triples"),rt=ht.charAt(yt+1)==je,ot=Fe.listSelections(),He=yt%2==0,St,tt=0;tt=0&&Fe.getRange(ft,ge(ft.line,ft.ch+3))==je+je+je?Be="skipThree":Be="skip";else if(rt&&ft.ch>1&&st.indexOf(je)>=0&&Fe.getRange(ge(ft.line,ft.ch-2),ft)==je+je){if(ft.ch>2&&/\bstring/.test(Fe.getTokenTypeAt(ge(ft.line,ft.ch-2))))return re.Pass;Be="addFour"}else if(rt){var it=ft.ch==0?" ":Fe.getRange(ge(ft.line,ft.ch-1),ft);if(!re.isWordChar(at)&&it!=je&&!re.isWordChar(it))Be="both";else return re.Pass}else if(He&&(at.length===0||/\s/.test(at)||Ct.indexOf(at)>-1))Be="both";else return re.Pass;if(!St)St=Be;else if(St!=Be)return re.Pass}var me=yt%2?ht.charAt(yt-1):je,kt=yt%2?je:ht.charAt(yt+1);Fe.operation(function(){if(St=="skip")Fe.execCommand("goCharRight");else if(St=="skipThree")for(var Oe=0;Oe<3;Oe++)Fe.execCommand("goCharRight");else if(St=="surround"){for(var $e=Fe.getSelections(),Oe=0;Oe<$e.length;Oe++)$e[Oe]=me+$e[Oe]+kt;Fe.replaceSelections($e,"around"),$e=Fe.listSelections().slice();for(var Oe=0;Oe<$e.length;Oe++)$e[Oe]=Ge($e[Oe]);Fe.setSelections($e)}else St=="both"?(Fe.replaceSelection(me+kt,null),Fe.triggerElectric(me+kt),Fe.execCommand("goCharLeft")):St=="addFour"&&(Fe.replaceSelection(me+me+me+me,"before"),Fe.execCommand("goCharRight"))})}function vt(Fe,je){var Ne=Fe.getRange(ge(je.line,je.ch-1),ge(je.line,je.ch+1));return Ne.length==2?Ne:null}function Ke(Fe,je){var Ne=Fe.getTokenAt(ge(je.line,je.ch+1));return/\bstring/.test(Ne.type)&&Ne.start==je.ch&&(je.ch==0||!/\bstring/.test(Fe.getTokenTypeAt(je)))}})},6313:function(Vt,Lt,ie){(function(re){re(ie(89780),ie(32855))})(function(re){re.defineOption("autoCloseTags",!1,function(ke,fe,Ge){if(Ge!=re.Init&&Ge&&ke.removeKeyMap("autoCloseTags"),!!fe){var Se={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(Se["'/'"]=function(vt){return we(vt)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(Se["'>'"]=function(vt){return We(vt)}),ke.addKeyMap(Se)}});var qe=["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 We(ke){if(ke.getOption("disableInput"))return re.Pass;for(var fe=ke.listSelections(),Ge=[],Se=ke.getOption("autoCloseTags"),vt=0;vtKe.ch&&(yt=yt.slice(0,yt.length-Fe.end+Ke.ch));var ot=yt.toLowerCase();if(!yt||Fe.type=="string"&&(Fe.end!=Ke.ch||!/[\"\']/.test(Fe.string.charAt(Fe.string.length-1))||Fe.string.length==1)||Fe.type=="tag"&&ht.close||Fe.string.indexOf("/")==Ke.ch-Fe.start-1||st&&Le(st,ot)>-1||_e(ke,je.mode.xmlCurrentContext&&je.mode.xmlCurrentContext(Ne)||[],yt,Ke,!0))return re.Pass;var He=typeof Se=="object"&&Se.emptyTags;if(He&&Le(He,yt)>-1){Ge[vt]={text:"/>",newPos:re.Pos(Ke.line,Ke.ch+2)};continue}var St=rt&&Le(rt,ot)>-1;Ge[vt]={indent:St,text:">"+(St?` `:"")+"",newPos:St?re.Pos(Ke.line+1,0):re.Pos(Ke.line,Ke.ch+1)}}for(var tt=typeof Se=="object"&&Se.dontIndentOnAutoClose,vt=fe.length-1;vt>=0;vt--){var Xe=Ge[vt];ke.replaceRange(Xe.text,fe[vt].head,fe[vt].anchor,"+insert");var ft=ke.listSelections().slice(0);ft[vt]={head:Xe.newPos,anchor:Xe.newPos},ke.setSelections(ft),!tt&&Xe.indent&&(ke.indentLine(Xe.newPos.line,null,!0),ke.indentLine(Xe.newPos.line+1,null,!0))}}function Ce(ke,fe){for(var Ge=ke.listSelections(),Se=[],vt=fe?"/":""&&(st+=">"),Se[je]=st}if(ke.replaceSelections(Se),Ge=ke.listSelections(),!Fe)for(var je=0;je=0&&fe[Ne]==Ge;Ne--)++je;Se=Fe.to;for(var Ne=1;Ne=Ne.max))return Ne.ch=0,Ne.text=Ne.cm.getLine(++Ne.line),!0}function fe(Ne){if(!(Ne.line<=Ne.min))return Ne.text=Ne.cm.getLine(--Ne.line),Ne.ch=Ne.text.length,!0}function Ge(Ne){for(;;){var ht=Ne.text.indexOf(">",Ne.ch);if(ht==-1){if(ke(Ne))continue;return}if(!_e(Ne,ht+1)){Ne.ch=ht+1;continue}var yt=Ne.text.lastIndexOf("/",ht),Ct=yt>-1&&!/\S/.test(Ne.text.slice(yt+1,ht));return Ne.ch=ht+1,Ct?"selfClose":"regular"}}function Se(Ne){for(;;){var ht=Ne.ch?Ne.text.lastIndexOf("<",Ne.ch-1):-1;if(ht==-1){if(fe(Ne))continue;return}if(!_e(Ne,ht+1)){Ne.ch=ht;continue}we.lastIndex=ht,Ne.ch=ht;var yt=we.exec(Ne.text);if(yt&&yt.index==ht)return yt}}function vt(Ne){for(;;){we.lastIndex=Ne.ch;var ht=we.exec(Ne.text);if(!ht){if(ke(Ne))continue;return}if(!_e(Ne,ht.index+1)){Ne.ch=ht.index+1;continue}return Ne.ch=ht.index+ht[0].length,ht}}function Ke(Ne){for(;;){var ht=Ne.ch?Ne.text.lastIndexOf(">",Ne.ch-1):-1;if(ht==-1){if(fe(Ne))continue;return}if(!_e(Ne,ht+1)){Ne.ch=ht;continue}var yt=Ne.text.lastIndexOf("/",ht),Ct=yt>-1&&!/\S/.test(Ne.text.slice(yt+1,ht));return Ne.ch=ht+1,Ct?"selfClose":"regular"}}function Fe(Ne,ht){for(var yt=[];;){var Ct=vt(Ne),st,rt=Ne.line,ot=Ne.ch-(Ct?Ct[0].length:0);if(!Ct||!(st=Ge(Ne)))return;if(st!="selfClose")if(Ct[1]){for(var He=yt.length-1;He>=0;--He)if(yt[He]==Ct[2]){yt.length=He;break}if(He<0&&(!ht||ht==Ct[2]))return{tag:Ct[2],from:qe(rt,ot),to:qe(Ne.line,Ne.ch)}}else yt.push(Ct[2])}}function je(Ne,ht){for(var yt=[];;){var Ct=Ke(Ne);if(!Ct)return;if(Ct=="selfClose"){Se(Ne);continue}var st=Ne.line,rt=Ne.ch,ot=Se(Ne);if(!ot)return;if(ot[1])yt.push(ot[2]);else{for(var He=yt.length-1;He>=0;--He)if(yt[He]==ot[2]){yt.length=He;break}if(He<0&&(!ht||ht==ot[2]))return{tag:ot[2],from:qe(Ne.line,Ne.ch),to:qe(st,rt)}}}}re.registerHelper("fold","xml",function(Ne,ht){for(var yt=new Le(Ne,ht.line,0);;){var Ct=vt(yt);if(!Ct||yt.line!=ht.line)return;var st=Ge(yt);if(!st)return;if(!Ct[1]&&st!="selfClose"){var rt=qe(yt.line,yt.ch),ot=Fe(yt,Ct[2]);return ot&&ge(ot.from,rt)>0?{from:rt,to:ot.from}:null}}}),re.findMatchingTag=function(Ne,ht,yt){var Ct=new Le(Ne,ht.line,ht.ch,yt);if(!(Ct.text.indexOf(">")==-1&&Ct.text.indexOf("<")==-1)){var st=Ge(Ct),rt=st&&qe(Ct.line,Ct.ch),ot=st&&Se(Ct);if(!(!st||!ot||ge(Ct,ht)>0)){var He={from:qe(Ct.line,Ct.ch),to:rt,tag:ot[2]};return st=="selfClose"?{open:He,close:null,at:"open"}:ot[1]?{open:je(Ct,ot[2]),close:He,at:"close"}:(Ct=new Le(Ne,rt.line,rt.ch,yt),{open:He,close:Fe(Ct,ot[2]),at:"open"})}}},re.findEnclosingTag=function(Ne,ht,yt,Ct){for(var st=new Le(Ne,ht.line,ht.ch,yt);;){var rt=je(st,Ct);if(!rt)break;var ot=new Le(Ne,ht.line,ht.ch,yt),He=Fe(ot,rt.tag);if(He)return{open:rt,close:He}}},re.scanForClosingTag=function(Ne,ht,yt,Ct){var st=new Le(Ne,ht.line,ht.ch,Ct?{from:0,to:Ct}:null);return Fe(st,yt)}})},89780:function(Vt){(function(Lt,ie){Vt.exports=ie()})(this,function(){"use strict";var Lt=navigator.userAgent,ie=navigator.platform,re=/gecko\/\d/i.test(Lt),qe=/MSIE \d/.test(Lt),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Lt),We=/Edge\/(\d+)/.exec(Lt),Ce=qe||ge||We,we=Ce&&(qe?document.documentMode||6:+(We||ge)[1]),Le=!We&&/WebKit\//.test(Lt),_e=Le&&/Qt\/\d+\.\d+/.test(Lt),ke=!We&&/Chrome\//.test(Lt),fe=/Opera\//.test(Lt),Ge=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Lt),vt=/PhantomJS/.test(Lt),Ke=!We&&/AppleWebKit/.test(Lt)&&/Mobile\/\w+/.test(Lt),Fe=/Android/.test(Lt),je=Ke||Fe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Lt),Ne=Ke||/Mac/.test(ie),ht=/\bCrOS\b/.test(Lt),yt=/win/i.test(ie),Ct=fe&&Lt.match(/Version\/(\d*\.\d*)/);Ct&&(Ct=Number(Ct[1])),Ct&&Ct>=15&&(fe=!1,Le=!0);var st=Ne&&(_e||fe&&(Ct==null||Ct<12.11)),rt=re||Ce&&we>=9;function ot(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var He=function(a,y){var x=a.className,b=ot(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 St(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function tt(a,y){return St(a).appendChild(y)}function Xe(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 te=0;te=y)return le+(y-te);le+=ue-te,le+=x-le%x,te=ue+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=$e(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+=te-b,E+=x-E%x,b=te+1,E>=y)return b}}var Mt=[""];function $t(a){for(;Mt.length<=a;)Mt.push(Re(Mt)+" ");return Mt[a]}function Re(a){return a[a.length-1]}function Tt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||z.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 ye(a){return a.charCodeAt(0)>=768&&he.test(a)}function nt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,te=b<0?Math.ceil(E):Math.floor(E);if(te==y)return a(te)?y:x;a(te)?x=te:y=te+b}}function ze(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,te=0;tey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",te),E=!0)}E||b(y,x,"ltr")}var Je=null;function pt(a,y,x){var b;Je=null;for(var E=0;Ey)return E;te.to==y&&(te.from!=te.to&&x=="before"?b=E:Je=E),te.from==y&&(te.from!=te.to&&x!="before"?b=E:Je=E)}return b!=null?b:Je}var ut=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(pe){return pe<=247?a.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?y.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,te=/[LRr]/,le=/[Lb1n]/,ue=/[1n]/;function de(pe,Ae,Ve){this.level=pe,this.from=Ae,this.to=Ve}return function(pe,Ae){var Ve=Ae=="ltr"?"L":"R";if(pe.length==0||Ae=="ltr"&&!b.test(pe))return!1;for(var It=pe.length,xt=[],Kt=0;Kt-1&&(b[y]=E.slice(0,te).concat(E.slice(te+1)))}}}function Zt(a,y){var x=Ut(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function Ht(a){a.prototype.on=function(y,x){Dt(this,y,x)},a.prototype.off=function(y,x){Wt(this,y,x)}}function nn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function yn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function fn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Me(a){nn(a),yn(a)}function et(a){return a.target||a.srcElement}function gt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ne&&a.ctrlKey&&y==1&&(y=3),y}var Nt=function(){if(Ce&&we<9)return!1;var a=Xe("div");return"draggable"in a||"dragDrop"in a}(),on;function cn(a){if(on==null){var y=Xe("span","\u200B");tt(a,Xe("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(on=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ce&&we<8))}var x=on?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Bn;function Mn(a){if(Bn!=null)return Bn;var y=tt(a,document.createTextNode("A\u062EA")),x=Be(y,0,1).getBoundingClientRect(),b=Be(y,1,2).getBoundingClientRect();return St(a),!x||x.left==x.right?!1:Bn=b.right-x.right<3}var sn=` 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 te=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=te.indexOf("\r");le!=-1?(x.push(te.slice(0,le)),y+=le+1):(x.push(te),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},mn=function(){var a=Xe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),$n=null;function gn(a){if($n!=null)return $n;var y=tt(a,Xe("span","x")),x=y.getBoundingClientRect(),b=Be(y,0,1).getBoundingClientRect();return $n=Math.abs(x.left-b.left)>1}var En={},Xt={};function xn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),En[a]=y}function dn(a,y){Xt[a]=y}function Tn(a){if(typeof a=="string"&&Xt.hasOwnProperty(a))a=Xt[a];else if(a&&typeof a.name=="string"&&Xt.hasOwnProperty(a.name)){var y=Xt[a.name];typeof y=="string"&&(y={name:y}),a=ee(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Vn(a,y){y=Tn(y);var x=En[y.name];if(!x)return Vn(a,"text/plain");var b=x(a,y);if(Hn.hasOwnProperty(y.name)){var E=Hn[y.name];for(var te in E)E.hasOwnProperty(te)&&(b.hasOwnProperty(te)&&(b["_"+te]=b[te]),b[te]=E[te])}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 Hn={};function Nn(a,y){var x=Hn.hasOwnProperty(a)?Hn[a]:Hn[a]={};Et(y,x)}function Un(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 Kn(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Qn(a,y,x){return a.startState?a.startState(y,x):!0}var Zn=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Zn.prototype.eol=function(){return this.pos>=this.string.length},Zn.prototype.sol=function(){return this.pos==this.lineStart},Zn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zn.prototype.next=function(){if(this.posy},Zn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Zn.prototype.skipToEnd=function(){this.pos=this.string.length},Zn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Zn.prototype.backUp=function(a){this.pos-=a},Zn.prototype.column=function(){return this.lastColumnPos0?null:(te&&y!==!1&&(this.pos+=te[0].length),te)}},Zn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Zn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Zn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Ot(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],te=E.chunkSize();if(y=a.first&&yx?xe(x,Ot(a,x).text.length):mt(y,Ot(a,y.line).text.length)}function mt(a,y){var x=a.ch;return x==null||x>y?xe(a.line,y):x<0?xe(a.line,0):a}function Jt(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},hn.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}},hn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hn.fromSaved=function(a,y,x){return y instanceof vn?new hn(a,Un(a.mode,y.state),x,y.lookAhead):new hn(a,Un(a.mode,y),x)},hn.prototype.save=function(a){var y=a!==!1?Un(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new vn(y,this.maxLookAhead):y};function pn(a,y,x,b){var E=[a.state.modeGen],te={};qn(a,y.text,a.doc.mode,x,function(pe,Ae){return E.push(pe,Ae)},te,b);for(var le=x.state,ue=function(pe){x.baseTokens=E;var Ae=a.state.overlays[pe],Ve=1,It=0;x.state=!0,qn(a,y.text,Ae.mode,x,function(xt,Kt){for(var un=Ve;Itxt&&E.splice(Ve,1,xt,E[Ve+1],Cn),Ve+=2,It=Math.min(xt,Cn)}if(Kt)if(Ae.opaque)E.splice(un,Ve-un,xt,"overlay "+Kt),Ve=un+2;else for(;una.options.maxHighlightLength&&Un(a.doc.mode,b.state),te=pn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=te.styles,te.classes?y.styleClasses=te.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 Yn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new hn(b,!0,y);var te=lr(a,y,x),le=te>b.first&&Ot(b,te-1).stateAfter,ue=le?hn.fromSaved(b,le,te):new hn(b,Qn(b.mode),te);return b.iter(te,y,function(de){Jn(a,de.text,ue);var pe=ue.line;de.stateAfter=pe==y-1||pe%5==0||pe>=E.viewFrom&&pey.start)return te}throw new Error("Mode "+a.name+" failed to advance stream.")}var Dn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Wn(a,y,x,b){var E=a.doc,te=E.mode,le;y=wt(E,y);var ue=Ot(E,y.line),de=Yn(a,y.line,x),pe=new Zn(ue.text,a.options.tabSize,de),Ae;for(b&&(Ae=[]);(b||pe.posa.options.maxHighlightLength?(ue=!1,le&&Jn(a,y,b,Ae.pos),Ae.pos=y.length,Ve=null):Ve=ur(In(x,Ae,b.state,It),te),It){var xt=It[0].name;xt&&(Ve="m-"+(Ve?xt+" "+Ve:xt))}if(!ue||pe!=Ve){for(;dele;--ue){if(ue<=te.first)return te.first;var de=Ot(te,ue-1),pe=de.stateAfter;if(pe&&(!x||ue+(pe instanceof vn?pe.lookAhead:0)<=te.modeFrontier))return ue;var Ae=ve(de.text,null,a.options.tabSize);(E==null||b>Ae)&&(E=ue-1,b=Ae)}return E}function ir(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=Ot(a,b).stateAfter;if(E&&(!(E instanceof vn)||b+E.lookAhead=y:te.to>y);(b||(b=[])).push(new cr(le,te.from,de?null:te.to))}}return b}function zn(a,y,x){var b;if(a)for(var E=0;E=y:te.to>y);if(ue||te.from==y&&le.type=="bookmark"&&(!x||te.marker.insertLeft)){var de=te.from==null||(le.inclusiveLeft?te.from<=y:te.from0&&ue)for(var jn=0;jn0)){var Ae=[de,1],Ve=Te(pe.from,ue.from),It=Te(pe.to,ue.to);(Ve<0||!le.inclusiveLeft&&!Ve)&&Ae.push({from:pe.from,to:ue.from}),(It>0||!le.inclusiveRight&&!It)&&Ae.push({from:ue.to,to:pe.to}),E.splice.apply(E,Ae),de+=Ae.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||zr(b,te.marker)<0)&&(b=te.marker)}return b}function rn(a,y,x,b,E){var te=Ot(a,y),le=tr&&te.markedSpans;if(le)for(var ue=0;ue=0&&Ve<=0||Ae<=0&&Ve>=0)&&(Ae<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Te(pe.to,x)>=0:Te(pe.to,x)>0)||Ae>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?Te(pe.from,b)<=0:Te(pe.from,b)<0)))return!0}}}function jt(a){for(var y;y=_n(a);)a=y.find(-1,!0).line;return a}function kn(a){for(var y;y=qt(a);)a=y.find(1,!0).line;return a}function An(a){for(var y,x;y=qt(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function en(a,y){var x=Ot(a,y),b=jt(x);return x==b?y:Pe(b)}function tn(a,y){if(y>a.lastLine())return y;var x=Ot(a,y),b;if(!wn(a,x))return y;for(;b=qt(x);)x=b.find(1,!0).line;return Pe(x)+1}function wn(a,y){var x=tr&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Pr=function(a,y,x){this.text=a,Ar(this,y),this.height=x?x(this):1};Pr.prototype.lineNo=function(){return Pe(this)},Ht(Pr);function Mr(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),Ar(a,x);var E=b?b(a):1;E!=a.height&&Xn(a,E)}function Tr(a){a.parent=null,Er(a)}var $r={},Lr={};function Gr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Lr:$r;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=ft("span",null,null,Le?"padding-right: .1px":null),b={pre:ft("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 te=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Fi,Mn(a.display.measure)&&(le=At(te,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var ue=y!=a.display.externalMeasured&&Pe(te);Br(te,b,Gn(a,te,ue)),te.styleClasses&&(te.styleClasses.bgClass&&(b.bgClass=kt(te.styleClasses.bgClass,b.bgClass||"")),te.styleClasses.textClass&&(b.textClass=kt(te.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(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(Le){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 Zt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=kt(b.pre.className,b.textClass||"")),b}function Mi(a){var y=Xe("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,E,te,le){if(y){var ue=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,pe=!1,Ae;if(!de.test(y))a.col+=y.length,Ae=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Ae),Ce&&we<9&&(pe=!0),a.pos+=y.length;else{Ae=document.createDocumentFragment();for(var Ve=0;;){de.lastIndex=Ve;var It=de.exec(y),xt=It?It.index-Ve:y.length-Ve;if(xt){var Kt=document.createTextNode(ue.slice(Ve,Ve+xt));Ce&&we<9?Ae.appendChild(Xe("span",[Kt])):Ae.appendChild(Kt),a.map.push(a.pos,a.pos+xt,Kt),a.col+=xt,a.pos+=xt}if(!It)break;Ve+=xt+1;var un=void 0;if(It[0]==" "){var Cn=a.cm.options.tabSize,On=Cn-a.col%Cn;un=Ae.appendChild(Xe("span",$t(On),"cm-tab")),un.setAttribute("role","presentation"),un.setAttribute("cm-text"," "),a.col+=On}else It[0]=="\r"||It[0]==` `?(un=Ae.appendChild(Xe("span",It[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),un.setAttribute("cm-text",It[0]),a.col+=1):(un=a.cm.options.specialCharPlaceholder(It[0]),un.setAttribute("cm-text",It[0]),Ce&&we<9?Ae.appendChild(Xe("span",[un])):Ae.appendChild(un),a.col+=1);a.map.push(a.pos,a.pos+1,un),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||pe||te||le){var Fn=x||"";b&&(Fn+=b),E&&(Fn+=E);var Pn=Xe("span",[Ae],Fn,te);if(le)for(var jn in le)le.hasOwnProperty(jn)&&jn!="style"&&jn!="class"&&Pn.setAttribute(jn,le[jn]);return a.content.appendChild(Pn)}a.content.appendChild(Ae)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Epe&&Ve.from<=pe));It++);if(Ve.to>=Ae)return a(x,b,E,te,le,ue,de);a(x,b.slice(0,Ve.to-pe),E,te,null,ue,de),te=null,b=b.slice(Ve.to-pe),pe=Ve.to}}}function Xi(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 Br(a,y,x){var b=a.markedSpans,E=a.text,te=0;if(!b){for(var le=1;lede||Sr.collapsed&&nr.to==de&&nr.from==de)){if(nr.to!=null&&nr.to!=de&&xt>nr.to&&(xt=nr.to,un=""),Sr.className&&(Kt+=" "+Sr.className),Sr.css&&(It=(It?It+";":"")+Sr.css),Sr.startStyle&&nr.from==de&&(Cn+=" "+Sr.startStyle),Sr.endStyle&&nr.to==xt&&(jn||(jn=[])).push(Sr.endStyle,nr.to),Sr.title&&((Fn||(Fn={})).title=Sr.title),Sr.attributes)for(var Zr in Sr.attributes)(Fn||(Fn={}))[Zr]=Sr.attributes[Zr];Sr.collapsed&&(!On||zr(On.marker,Sr)<0)&&(On=nr)}else nr.from>de&&xt>nr.from&&(xt=nr.from)}if(jn)for(var li=0;li=ue)break;for(var Li=Math.min(ue,xt);;){if(Ae){var Ei=de+Ae.length;if(!On){var qr=Ei>Li?Ae.slice(0,Li-de):Ae;y.addToken(y,qr,Ve?Ve+Kt:Kt,Cn,de+qr.length==xt?un:"",It,Fn)}if(Ei>=Li){Ae=Ae.slice(Li-de),de=Li;break}de=Ei,Cn=""}Ae=E.slice(te,te=x[pe++]),Ve=Gr(x[pe++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=An(y),this.size=this.rest?Pe(Re(this.rest))-x+1:1,this.node=this.text=null,this.hidden=wn(a,y)}function ni(a,y,x){for(var b=[],E,te=y;te2&&te.push((de.bottom+pe.top)/2-x.top)}}te.push(x.bottom-x.top)}}function Do(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=jt(y);var x=Pe(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,tt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Hi(a,uo(a,y),x,b)}function qi(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(te=de-ue,E=te-1,y>=de&&(le="right")),E!=null){if(b=a[pe+2],ue==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;pe&&a[pe-2]==a[pe-3]&&a[pe-1].insertLeft;)b=a[(pe-=3)+2],le="left";if(x=="right"&&E==de-ue)for(;pe=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),te=E.node,le=E.start,ue=E.end,de=E.collapse,pe;if(te.nodeType==3){for(var Ae=0;Ae<4;Ae++){for(;le&&ye(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ue0&&(de=b="right");var Ve;a.options.lineWrapping&&(Ve=te.getClientRects()).length>1?pe=Ve[b=="right"?Ve.length-1:0]:pe=te.getBoundingClientRect()}if(Ce&&we<9&&!le&&(!pe||!pe.left&&!pe.right)){var It=te.parentNode.getClientRects()[0];It?pe={left:It.left,right:It.left+Ui(a.display),top:It.top,bottom:It.bottom}:pe=ba}for(var xt=pe.top-y.rect.top,Kt=pe.bottom-y.rect.top,un=(xt+Kt)/2,Cn=y.view.measure.heights,On=0;On=b.text.length?(de=b.text.length,pe="before"):de<=0&&(de=0,pe="after"),!ue)return le(pe=="before"?de-1:de,pe=="before");function Ae(Kt,un,Cn){var On=ue[un],Fn=On.level==1;return le(Cn?Kt-1:Kt,Fn!=Cn)}var Ve=pt(ue,de,pe),It=Je,xt=Ae(de,Ve,pe=="before");return It!=null&&(xt.other=Ae(de,It,pe!="before")),xt}function Or(a,y){var x=0;y=wt(a.doc,y),a.options.lineWrapping||(x=Ui(a.display)*y.ch);var b=Ot(a.doc,y.line),E=rr(b)+Xr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function xr(a,y,x,b,E){var te=xe(a,y,x);return te.xRel=E,b&&(te.outside=b),te}function ci(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return xr(b.first,0,null,-1,-1);var E=Ue(b,x),te=b.first+b.size-1;if(E>te)return xr(b.first+b.size-1,Ot(b,te).text.length,null,1,1);y<0&&(y=0);for(var le=Ot(b,E);;){var ue=Vi(a,le,E,y,x),de=ln(le,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!de)return ue;var pe=de.find(1);if(pe.line==E)return pe;le=Ot(b,E=pe.line)}}function fi(a,y,x,b){b-=Yo(y);var E=y.text.length,te=Ee(function(le){return Hi(a,x,le-1).bottom<=b},E,0);return E=Ee(function(le){return Hi(a,x,le).top>b},te,E),{begin:te,end:E}}function Yr(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Hi(a,x,b),"line").top;return fi(a,y,x,E)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,E){E-=rr(y);var te=uo(a,y),le=Yo(y),ue=0,de=y.text.length,pe=!0,Ae=At(y,a.doc.direction);if(Ae){var Ve=(a.options.lineWrapping?ro:Wi)(a,y,x,te,Ae,b,E);pe=Ve.level!=1,ue=pe?Ve.from:Ve.to-1,de=pe?Ve.to:Ve.from-1}var It=null,xt=null,Kt=Ee(function(sr){var nr=Hi(a,te,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,E,!1)?(nr.top<=E&&nr.left<=b&&(It=sr,xt=nr),!0):!1},ue,de),un,Cn,On=!1;if(xt){var Fn=b-xt.left=jn.bottom?1:0}return Kt=nt(y.text,Kt,1),xr(x,Kt,Cn,On,b-un)}function Wi(a,y,x,b,E,te,le){var ue=Ee(function(Ve){var It=E[Ve],xt=It.level!=1;return ri(Ci(a,xe(x,xt?It.to:It.from,xt?"before":"after"),"line",y,b),te,le,!0)},0,E.length-1),de=E[ue];if(ue>0){var pe=de.level!=1,Ae=Ci(a,xe(x,pe?de.from:de.to,pe?"after":"before"),"line",y,b);ri(Ae,te,le,!0)&&Ae.top>le&&(de=E[ue-1])}return de}function ro(a,y,x,b,E,te,le){var ue=fi(a,y,b,le),de=ue.begin,pe=ue.end;/\s/.test(y.text.charAt(pe-1))&&pe--;for(var Ae=null,Ve=null,It=0;It=pe||xt.to<=de)){var Kt=xt.level!=1,un=Hi(a,b,Kt?Math.min(pe,xt.to)-1:Math.max(de,xt.from)).right,Cn=unCn)&&(Ae=xt,Ve=Cn)}}return Ae||(Ae=E[E.length-1]),Ae.frompe&&(Ae={from:Ae.from,to:pe,level:Ae.level}),Ae}var Pi;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Pi==null){Pi=Xe("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Pi.appendChild(document.createTextNode("x")),Pi.appendChild(Xe("br"));Pi.appendChild(document.createTextNode("x"))}tt(a.measure,Pi);var x=Pi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),St(a.measure),x||1}function Ui(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Xe("span","xxxxxxxxxx"),x=Xe("pre",[y],"CodeMirror-line-like");tt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,te=y.gutters.firstChild,le=0;te;te=te.nextSibling,++le){var ue=a.display.gutterSpecs[le].className;x[ue]=te.offsetLeft+te.clientLeft+E,b[ue]=te.clientWidth}return{fixedPos:_a(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function _a(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Di(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ui(a.display)-3);return function(E){if(wn(a.doc,E))return 0;var te=0;if(E.widgets)for(var le=0;le0&&(pe=Ot(a.doc,de.line).text).length==de.ch){var Ae=ve(pe,pe.length,a.options.tabSize)-pe.length;de=xe(de.line,Math.max(0,Math.round((te-Ji(a.display).left)/Ui(a.display))-Ae))}return de}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)tr&&en(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 te=Ea(a,x,x+b,1);te?(E.view=E.view.slice(te.index),E.viewFrom=te.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(ni(a,ue.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var pe=E.externalMeasured;pe&&(x=E.lineN&&y=b.viewTo)){var te=b.view[So(a,y)];if(te.node!=null){var le=te.changes||(te.changes=[]);Ye(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),te,le=a.display.view;if(!tr||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;te=ue+le[E].size-y,E++}else te=ue-y;y+=te,x+=te}for(;en(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 $s(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ni(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ni(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||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(),Ya(a))}function kl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Zt(a,"focus",a,y),a.state.focused=!0,me(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Le&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Zt(a,"blur",a,y),a.state.focused=!1,He(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ka(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ae<-.005)&&(Xn(E.line,le),Ml(E.line),E.rest))for(var Ve=0;Vea.display.sizerWidth){var It=Math.ceil(ue/Ui(a.display));It>a.display.maxLineLength&&(a.display.maxLineLength=It,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ml(a){if(a.widgets)for(var y=0;y=le&&(te=Ue(y,rr(Ot(y,de))-a.wrapper.clientHeight),le=de)}return{from:te,to:Math.max(le,te+1)}}function Ws(a,y){if(!dt(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&&!vt){var te=Xe("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-Xr(a.display))+`px; height: `+(y.bottom-y.top+Oi(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(te),te.scrollIntoView(E),a.display.lineSpace.removeChild(te)}}}function js(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?xe(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?xe(y.line,y.ch+1,"before"):y);for(var te=0;te<5;te++){var le=!1,ue=Ci(a,y),de=!x||x==y?ue:Ci(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 pe=Ja(a,E),Ae=a.doc.scrollTop,Ve=a.doc.scrollLeft;if(pe.scrollTop!=null&&(qo(a,pe.scrollTop),Math.abs(a.doc.scrollTop-Ae)>1&&(le=!0)),pe.scrollLeft!=null&&(Eo(a,pe.scrollLeft),Math.abs(a.doc.scrollLeft-Ve)>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=Di(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,te=no(a),le={};y.bottom-y.top>te&&(y.bottom=y.top+te);var ue=a.doc.height+$i(x),de=y.topue-b;if(y.topE+te){var Ae=Math.min(y.top,(pe?ue:y.bottom)-te);Ae!=E&&(le.scrollTop=Ae)}var Ve=a.options.fixedGutter?0:x.gutters.offsetWidth,It=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-Ve,xt=Qi(a)-x.gutters.offsetWidth,Kt=y.right-y.left>xt;return Kt&&(y.right=y.left+xt),y.left<10?le.scrollLeft=0:y.leftxt+It-3&&(le.scrollLeft=y.right+(Kt?0:10)-xt),le}function Qa(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Oa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gs(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Or(a,y.from),b=Or(a,y.to);Ol(a,x,b,y.margin)}}function Ol(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||(re||el(a,{top:y}),Pl(a,y,!0),re&&el(a),na(a,100))}function Pl(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+$i(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Oi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Dt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Dt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ce&&we<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 te=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+te)+"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=Ne&&!Se?"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(),te=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);te!=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;Dl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&ka(a),Dl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Dl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Tl={native:Io,null:ta};function Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&He(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Dt(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&&me(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function ko(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},ao(a.curOp)}function Mo(a){var y=a.curOp;y&&gi(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Pa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&ka(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+Oi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Qi(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Yn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(te){if(b.line>=a.display.viewFrom){var le=te.styles,ue=te.text.length>a.options.maxHighlightLength?Un(y.mode,b.state):null,de=pn(a,te,b,!0);ue&&(b.state=ue),te.styles=de.styles;var pe=te.styleClasses,Ae=de.classes;Ae?te.styleClasses=Ae:pe&&(te.styleClasses=null);for(var Ve=!le||le.length!=te.styles.length||pe!=Ae&&(!pe||!Ae||pe.bgClass!=Ae.bgClass||pe.textClass!=Ae.textClass),It=0;!Ve&&Itx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Ti(a,function(){for(var te=0;te=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&wl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,te=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)),tr&&(te=en(a.doc,te),le=tn(a.doc,le));var ue=te!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;$s(a,te,le),x.viewOffset=rr(Ot(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=wl(a);if(!ue&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var pe=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(pe),St(x.cursorDiv),St(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==Qi(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+$i(a.display)-no(a),x.top)}),y.visible=Ma(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Ma(a.display,a.doc,x));if(!qa(a,y))break;ka(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 Pa(a,y);if(qa(a,x)){ka(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,te=b.lineDiv,le=te.firstChild;function ue(Kt){var un=Kt.nextSibling;return Le&&Ne&&a.display.currentWheelTarget==Kt?Kt.style.display="none":Kt.parentNode.removeChild(Kt),un}for(var de=b.view,pe=b.viewFrom,Ae=0;Ae-1&&(xt=!1),lo(a,Ve,pe,x)),xt&&(St(Ve.lineNumber),Ve.lineNumber.appendChild(document.createTextNode(De(a.options,pe)))),le=Ve.node.nextSibling}pe+=Ve.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+Oi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=_a(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,te=b+"px",le=0;lele.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ue||E&&de){if(E&&Ne&&Le){e:for(var pe=y.target,Ae=te.view;pe!=le;pe=pe.parentNode)for(var Ve=0;Ve=0&&Te(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return an(this.anchor,this.head)},Fr.prototype.to=function(){return _t(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function _i(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(It,xt){return Te(It.from(),xt.from())}),x=Ye(y,E);for(var te=1;te0:de>=0){var pe=an(ue.from(),le.from()),Ae=_t(ue.to(),le.to()),Ve=ue.empty()?le.from()==le.head:ue.from()==ue.head;te<=x&&--x,y.splice(--te,2,new Fr(Ve?Ae:pe,Ve?pe:Ae))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?xe(a.from.line+a.text.length-1,Re(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $l(a,y){if(Te(a,y.from)<0)return a;if(Te(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),xe(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ue.line+1,Kt-1),a.insert(ue.line+1,On)}Vr(a,"change",a,y)}function go(a,y,x){function b(E,te,le){if(E.linked)for(var ue=0;ue1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Re(a.done)}function Vl(a,y,x,b){var E=a.history;E.undone.length=0;var te=+new Date,le,ue;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>te-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ue=Re(le.changes),Te(y.from,y.to)==0&&Te(y.from,ue.to)==0?ue.to=mo(y):le.changes.push(ll(a,y));else{var de=Re(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=te,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ue||Zt(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,te=b&&b.origin;x==E.lastSelOp||te&&E.lastSelOrigin==te&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==te||su(a,te,Re(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=te,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gl(E.undone)}function La(a,y){var x=Re(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Ul(a,y,x,b){var E=y["spans_"+a.id],te=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]={}))[te]=le.markedSpans),++te})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(Re(ue)[Ve]=pe[Ve],delete pe[Ve])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var te=Te(y,E)<0;te!=Te(x,E)<0?(E=y,y=x):te!=Te(y,x)<0&&(y=x)}return new Fr(E,y)}else return new Fr(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),te=0;te=y.ch:ue.to>y.ch))){if(E&&(Zt(de,"beforeCursorEnter"),de.explicitlyCleared))if(te.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var Ve=de.find(b<0?1:-1),It=void 0;if((b<0?Ae:pe)&&(Ve=es(a,Ve,-b,Ve&&Ve.line==y.line?te:null)),Ve&&Ve.line==y.line&&(It=Te(Ve,x))&&(b<0?It<0:It>0))return Fo(a,Ve,y,b,E)}var xt=de.find(b<0?-1:1);return(b<0?pe:Ae)&&(xt=es(a,xt,b,xt.line==y.line?te:null)),xt?Fo(a,xt,y,b,E):null}}return y}function Na(a,y,x,b,E){var te=b||1,le=Fo(a,y,x,te,E)||!E&&Fo(a,y,x,te,!0)||Fo(a,y,x,-te,E)||!E&&Fo(a,y,x,-te,!0);return le||(a.cantEdit=!0,xe(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?wt(a,xe(y.line-1)):null:x>0&&y.ch==(b||Ot(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]==""&&Te(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,wr(a,y));var b=[];go(a,function(E,te){!te&&Ye(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,wr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,te,le=a.sel,ue=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,pe=0;pe=0;--xt){var Kt=It(xt);if(Kt)return Kt.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(Tt(a.sel.ranges,function(E){return new Fr(xe(E.anchor.line+y,E.anchor.ch),xe(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){wi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.linete&&(y={from:y.from,to:xe(te,Ot(a,te).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Yt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,Ie),a.cantEdit&&Na(a,xe(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,te=y.from,le=y.to,ue=!1,de=te.line;a.options.lineWrapping||(de=Pe(jt(Ot(b,te.line))),b.iter(de,le.line+1,function(xt){if(xt==E.maxLine)return ue=!0,!0})),b.sel.contains(y.from,y.to)>-1&&zt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,te.line+y.text.length,function(xt){var Kt=kr(xt);Kt>E.maxLineLength&&(E.maxLine=xt,E.maxLineLength=Kt,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),ir(b,te.line),na(a,400);var pe=y.text.length-(le.line-te.line)-1;y.full?wi(a):te.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?fo(a,te.line,"text"):wi(a,te.line,le.line+1,pe);var Ae=Pt(a,"changes"),Ve=Pt(a,"change");if(Ve||Ae){var It={from:te,to:le,text:y.text,removed:y.removed,origin:y.origin};Ve&&Vr(a,"change",a,It),Ae&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(It)}a.display.selForContextMenu=null}function $o(a,y,x,b,E){var te;b||(b=x),Te(b,x)<0&&(te=[b,x],x=te[0],b=te[1]),typeof y=="string"&&(y=a.splitLines(y)),zo(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=pe,a.display.maxLineLength=Ae,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&wi(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&&Vr(a,"markerCleared",a,this,b,E),y&&Mo(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&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=ft("span",[te.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(rn(a,y.line,y,x,te)||y.line!=x.line&&rn(a,x.line,y,x,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}te.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ue=y.line,de=a.cm,pe;if(a.iter(ue,x.line+1,function(Ve){de&&te.collapsed&&!de.options.lineWrapping&&jt(Ve)==de.display.maxLine&&(pe=!0),te.collapsed&&ue!=y.line&&Xn(Ve,0),or(Ve,new cr(te,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),te.collapsed&&a.iter(y.line,x.line+1,function(Ve){wn(a,Ve)&&Xn(Ve,0)}),te.clearOnEnter&&Dt(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(vr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),te.collapsed&&(te.id=++us,te.atomic=!0),de){if(pe&&(de.curOp.updateMaxLine=!0),te.collapsed)wi(de,y.line,x.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var Ae=y.line;Ae<=x.line;Ae++)fo(de,Ae,"text");te.atomic&&Ql(de.doc),Vr(de,"markerAdded",de,te)}return te}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;de--)zo(this,b[de]);ue?Yl(this,ue):this.cm&&Ao(this.cm)}),undo:ai(function(){Ra(this,"undo")}),redo:ai(function(){Ra(this,"redo")}),undoSelection:ai(function(){Ra(this,"undo",!0)}),redoSelection:ai(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=wt(this,a),y=wt(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(te){var le=te.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-=te,++x}),wt(this,xe(x,y))},indexFromPos:function(a){a=wt(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 Ae=a.dataTransfer.getData("Text");if(Ae){var Ve;if(y.state.draggingText&&!y.state.draggingText.copy&&(Ve=y.listSelections()),Aa(y.doc,po(x,x)),Ve)for(var It=0;It=0;ue--)$o(a.doc,"",b[ue].from,b[ue].to,"+delete");Ao(a)})}function cl(a,y,x){var b=nt(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 xe(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var te=At(x,y.doc.direction);if(te){var le=E<0?Re(te):te[0],ue=E<0==(le.level==1),de=ue?"after":"before",pe;if(le.level>0||y.doc.direction=="rtl"){var Ae=uo(y,x);pe=E<0?x.text.length-1:0;var Ve=Hi(y,Ae,pe).top;pe=Ee(function(It){return Hi(y,Ae,It).top==Ve},E<0==(le.level==1)?le.from:le.to-1,pe),de=="before"&&(pe=cl(x,pe,1))}else pe=E<0?le.to:le.from;return new xe(b,pe,de)}}return new xe(b,E<0?x.text.length:0,E<0?"before":"after")}function Mu(a,y,x,b){var E=At(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 te=pt(E,x.ch,x.sticky),le=E[te];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&It>=Ae.begin)){var xt=Ve?"before":"after";return new xe(x.line,It,xt)}}var Kt=function(On,Fn,Pn){for(var jn=function(Zr,li){return li?new xe(x.line,ue(Zr,1),"before"):new xe(x.line,Zr,"after")};On>=0&&On0==(sr.level!=1),Sr=nr?Pn.begin:ue(Pn.end,-1);if(sr.from<=Sr&&Sr0?Ae.end:ue(Ae.begin,-1);return Cn!=null&&!(b>0&&Cn==y.text.length)&&(un=Kt(b>0?0:E.length-1,b,pe(Cn)),un)?un:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ie)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=Ot(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new xe(E.line,E.ch+1),a.replaceRange(te.charAt(E.ch-1)+te.charAt(E.ch-2),xe(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Ot(a.doc,E.line-1).text;le&&(E=new xe(E.line,1),a.replaceRange(te.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),xe(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Fr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Ti(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&&Te(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(!(dt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Le||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=gt(a),te=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,te,a))&&(E==1?b?Fu(y,b,te,a):et(a)==x.scroller&&nn(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(rt?y.display.input.onContextMenu(a):kl(y)))}}}function Nu(a,y,x,b,E){var te="Click";return b=="double"?te="Double"+te:b=="triple"&&(te="Triple"+te),te=(y==1?"Left":y==2?"Middle":"Right")+te,pa(a,gs(te,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)!=bt}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 te=ht?x.shiftKey&&x.metaKey:x.altKey;E.unit=te?"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=Ne?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ne?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){Ce?setTimeout($e(Il,a),0):a.curOp.focus=it();var E=Ru(a,x,b),te=a.doc.sel,le;a.options.dragDrop&&Nt&&!a.isReadOnly()&&x=="single"&&(le=te.contains(y))>-1&&(Te((le=te.ranges[le]).from(),y)<0||y.xRel>0)&&(Te(le.to(),y)>0||y.xRel<0)?zu(a,b,y,E):$u(a,b,y,E)}function zu(a,y,x,b){var E=a.display,te=!1,le=oi(a,function(pe){Le&&(E.scroller.draggable=!1),a.state.draggingText=!1,Wt(E.wrapper.ownerDocument,"mouseup",le),Wt(E.wrapper.ownerDocument,"mousemove",ue),Wt(E.scroller,"dragstart",de),Wt(E.scroller,"drop",le),te||(nn(pe),b.addNew||Ba(a.doc,x,null,null,b.extend),Le&&!Ge||Ce&&we==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(pe){te=te||Math.abs(y.clientX-pe.clientX)+Math.abs(y.clientY-pe.clientY)>=10},de=function(){return te=!0};Le&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Dt(E.wrapper.ownerDocument,"mouseup",le),Dt(E.wrapper.ownerDocument,"mousemove",ue),Dt(E.scroller,"dragstart",de),Dt(E.scroller,"drop",le),kl(a),setTimeout(function(){return E.input.focus()},20)}function ks(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(xe(y.line,0),wt(a.doc,xe(y.line+1,0)));var b=x(a,y);return new Fr(b.from,b.to)}function $u(a,y,x,b){var E=a.display,te=a.doc;nn(y);var le,ue,de=te.sel,pe=de.ranges;if(b.addNew&&!b.extend?(ue=te.sel.contains(x),ue>-1?le=pe[ue]:le=new Fr(x,x)):(le=te.sel.primary(),ue=te.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=wo(a,y,!0,!0),ue=-1;else{var Ae=ks(a,x,b.unit);b.extend?le=sl(le,Ae.anchor,Ae.head,b.extend):le=Ae}b.addNew?ue==-1?(ue=pe.length,hi(te,_i(a,pe.concat([le]),ue),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[ue].empty()&&b.unit=="char"&&!b.extend?(hi(te,_i(a,pe.slice(0,ue).concat(pe.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),de=te.sel):ul(te,ue,le,Ze):(ue=0,hi(te,new Ri([le],0),Ze),de=te.sel);var Ve=x;function It(Pn){if(Te(Ve,Pn)!=0)if(Ve=Pn,b.unit=="rectangle"){for(var jn=[],sr=a.options.tabSize,nr=ve(Ot(te,x.line).text,x.ch,sr),Sr=ve(Ot(te,Pn.line).text,Pn.ch,sr),Zr=Math.min(nr,Sr),li=Math.max(nr,Sr),_r=Math.min(x.line,Pn.line),Li=Math.min(a.lastLine(),Math.max(x.line,Pn.line));_r<=Li;_r++){var Ei=Ot(te,_r).text,qr=Qt(Ei,Zr,sr);Zr==li?jn.push(new Fr(xe(_r,qr),xe(_r,qr))):Ei.length>qr&&jn.push(new Fr(xe(_r,qr),xe(_r,Qt(Ei,li,sr))))}jn.length||jn.push(new Fr(x,x)),hi(te,_i(a,de.ranges.slice(0,ue).concat(jn),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Pn)}else{var Ii=le,di=ks(a,Pn,b.unit),ii=Ii.anchor,ei;Te(di.anchor,ii)>0?(ei=di.head,ii=an(Ii.from(),di.anchor)):(ei=di.anchor,ii=_t(Ii.to(),di.head));var Kr=de.ranges.slice(0);Kr[ue]=Hu(a,new Fr(wt(te,ii),ei)),hi(te,_i(a,Kr,ue),Ze)}}var xt=E.wrapper.getBoundingClientRect(),Kt=0;function un(Pn){var jn=++Kt,sr=wo(a,Pn,!0,b.unit=="rectangle");if(sr)if(Te(sr,Ve)!=0){a.curOp.focus=it(),It(sr);var nr=Ma(E,te);(sr.line>=nr.to||sr.linext.bottom?20:0;Sr&&setTimeout(oi(a,function(){Kt==jn&&(E.scroller.scrollTop+=Sr,un(Pn))}),50)}}function Cn(Pn){a.state.selectingText=!1,Kt=1/0,Pn&&(nn(Pn),E.input.focus()),Wt(E.wrapper.ownerDocument,"mousemove",On),Wt(E.wrapper.ownerDocument,"mouseup",Fn),te.history.lastSelOrigin=null}var On=oi(a,function(Pn){Pn.buttons===0||!gt(Pn)?Cn(Pn):un(Pn)}),Fn=oi(a,Cn);a.state.selectingText=Fn,Dt(E.wrapper.ownerDocument,"mousemove",On),Dt(E.wrapper.ownerDocument,"mouseup",Fn)}function Hu(a,y){var x=y.anchor,b=y.head,E=Ot(a.doc,x.line);if(Te(x,b)==0&&x.sticky==b.sticky)return y;var te=At(E);if(!te)return y;var le=pt(te,x.ch,x.sticky),ue=te[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==te.length)return y;var pe;if(b.line!=x.line)pe=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ae=pt(te,b.ch,b.sticky),Ve=Ae-le||(b.ch-x.ch)*(ue.level==1?-1:1);Ae==de-1||Ae==de?pe=Ve<0:pe=Ve>0}var It=te[de+(pe?-1:0)],xt=pe==(It.level==1),Kt=xt?It.from:It.to,un=xt?"after":"before";return x.ch==Kt&&x.sticky==un?y:new Fr(new xe(x.line,Kt,un),b)}function Ms(a,y,x,b){var E,te;if(y.touches)E=y.touches[0].clientX,te=y.touches[0].clientY;else try{E=y.clientX,te=y.clientY}catch(It){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&nn(y);var le=a.display,ue=le.lineDiv.getBoundingClientRect();if(te>ue.bottom||!Pt(a,x))return fn(y);te-=ue.top-le.viewOffset;for(var de=0;de=E){var Ae=Ue(a.doc,te),Ve=a.display.gutterSpecs[de];return Zt(a,x,a,Ae,Ve.className,y),fn(y)}}}function ml(a,y){return Ms(a,y,"gutterClick",!0)}function Os(a,y){ui(a.display,y)||Wu(a,y)||dt(a,y,"contextmenu")||rt||a.display.input.onContextMenu(y)}function Wu(a,y){return Pt(a,"gutterContextMenu")?Ms(a,y,"gutterContextMenu",!1):!1}function Ps(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"}},Ds={},Ha={};function ju(a){var y=a.optionHandlers;function x(b,E,te,le){a.defaults[b]=E,te&&(y[b]=le?function(ue,de,pe){pe!=Zo&&te(ue,de,pe)}:te)}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),wi(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var te=[],le=b.doc.first;b.doc.iter(function(de){for(var pe=0;;){var Ae=de.text.indexOf(E,pe);if(Ae==-1)break;pe=Ae+E.length,te.push(xe(le,Ae))}le++});for(var ue=te.length-1;ue>=0;ue--)$o(b.doc,E,te[ue],xe(te[ue].line,te[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,te){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),te!=Zo&&b.refresh()}),x("specialCharPlaceholder",Mi,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",je?"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",!yt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ps(b),ra(b)},!0),x("keyMap","default",function(b,E,te){var le=za(E),ue=te!=Zo&&za(te);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?_a(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,te=y?Dt:Wt;te(a.display.scroller,"dragstart",E.start),te(a.display.scroller,"dragenter",E.enter),te(a.display.scroller,"dragover",E.over),te(a.display.scroller,"dragleave",E.leave),te(a.display.scroller,"drop",E.drop)}}function Gu(a){a.options.lineWrapping?(me(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(He(a.display.wrapper,"CodeMirror-wrap"),br(a)),Ka(a),wi(a),Co(a),setTimeout(function(){return No(a)},100)}function Ur(a,y){var x=this;if(!(this instanceof Ur))return new Ur(a,y);this.options=y=y?Et(y):{},Et(Ds,y,!1);var b=y.value;typeof b=="string"?b=new Si(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Ur.inputStyles[y.inputStyle](this),te=this.display=new ru(a,b,E,y);te.wrapper.CodeMirror=this,Ps(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&&!je&&te.input.focus(),Ce&&we<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),wu(),ko(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!je||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Bo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue20*20}Dt(y.scroller,"touchstart",function(de){if(!dt(a,de)&&!te(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var pe=+new Date;y.activeTouch={start:pe,moved:!1,prev:pe-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),Dt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Dt(y.scroller,"touchend",function(de){var pe=y.activeTouch;if(pe&&!ui(y,de)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var Ae=a.coordsChar(y.activeTouch,"page"),Ve;!pe.prev||le(pe,pe.prev)?Ve=new Fr(Ae,Ae):!pe.prev.prev||le(pe,pe.prev.prev)?Ve=a.findWordAt(Ae):Ve=new Fr(xe(Ae.line,0),wt(a.doc,xe(Ae.line+1,0))),a.setSelection(Ve.anchor,Ve.head),a.focus(),nn(de)}E()}),Dt(y.scroller,"touchcancel",E),Dt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),Zt(a,"scroll",a))}),Dt(y.scroller,"mousewheel",function(de){return zl(a,de)}),Dt(y.scroller,"DOMMouseScroll",function(de){return zl(a,de)}),Dt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){dt(a,de)||Me(de)},over:function(de){dt(a,de)||(Cu(a,de),Me(de))},start:function(de){return xu(a,de)},drop:oi(a,bu),leave:function(de){dt(a,de)||fs(a)}};var ue=y.input.getField();Dt(ue,"keyup",function(de){return Ss.call(a,de)}),Dt(ue,"keydown",oi(a,ws)),Dt(ue,"keypress",oi(a,Es)),Dt(ue,"focus",function(de){return Ya(a,de)}),Dt(ue,"blur",function(de){return Bo(a,de)})}var gl=[];Ur.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,te;x==null&&(x="add"),x=="smart"&&(E.mode.indent?te=Yn(a,y).state:x="prev");var le=a.options.tabSize,ue=Ot(E,y),de=ve(ue.text,null,le);ue.stateAfter&&(ue.stateAfter=null);var pe=ue.text.match(/^\s*/)[0],Ae;if(!b&&!/\S/.test(ue.text))Ae=0,x="not";else if(x=="smart"&&(Ae=E.mode.indent(te,ue.text.slice(pe.length),ue.text),Ae==bt||Ae>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ae=ve(Ot(E,y-1).text,null,le):Ae=0:x=="add"?Ae=de+a.options.indentUnit:x=="subtract"?Ae=de-a.options.indentUnit:typeof x=="number"&&(Ae=de+x),Ae=Math.max(0,Ae);var Ve="",It=0;if(a.options.indentWithTabs)for(var xt=Math.floor(Ae/le);xt;--xt)It+=le,Ve+=" ";if(Itle,de=sn(y),pe=null;if(ue&&b.ranges.length>1)if(Ki&&Ki.text.join(` `)==y){if(b.ranges.length%Ki.text.length==0){pe=[];for(var Ae=0;Ae=0;It--){var xt=b.ranges[It],Kt=xt.from(),un=xt.to();xt.empty()&&(x&&x>0?Kt=xe(Kt.line,Kt.ch-x):a.state.overwrite&&!ue?un=xe(un.line,Math.min(Ot(te,un.line).text.length,un.ch+Re(de).length)):ue&&Ki&&Ki.lineWise&&Ki.text.join(` `)==de.join(` `)&&(Kt=un=xe(Kt.line,0)));var Cn={from:Kt,to:un,text:pe?pe[It%pe.length]:de,origin:E||(ue?"paste":a.state.cutIncoming>le?"cut":"+input")};zo(a.doc,Cn),Vr(a,"inputRead",a,Cn)}y&&!ue&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Ve),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&&Ti(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 te=a.getModeAt(E.head),le=!1;if(te.electricChars){for(var ue=0;ue-1){le=va(a,E.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(Ot(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Vr(a,"electricInput",a,E.head.line)}}}function Bs(a){for(var y=[],x=[],b=0;bte&&(va(this,ue.head.line,b,!0),te=ue.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ue.from(),pe=ue.to(),Ae=Math.max(te,de.line);te=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var Ve=Ae;Ve0&&ul(this.doc,le,new Fr(de,It[le].to()),Ie)}}}),getTokenAt:function(b,E){return Wn(this,b,E)},getLineTokens:function(b,E){return Wn(this,xe(b),E,!0)},getTokenTypeAt:function(b){b=wt(this.doc,b);var E=Gn(this,Ot(this.doc,b.line)),te=0,le=(E.length-1)/2,ue=b.ch,de;if(ue==0)de=E[2];else for(;;){var pe=te+le>>1;if((pe?E[pe*2-1]:0)>=ue)le=pe;else if(E[pe*2+1]de&&(b=de,le=!0),ue=Ot(this.doc,b)}else ue=b;return To(this,ue,{top:0,left:0},E||"page",te||le).top+(le?this.doc.height-rr(ue):0)},defaultTextHeight:function(){return Di(this.display)},defaultCharWidth:function(){return Ui(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,te,le,ue){var de=this.display;b=Ci(this,wt(this.doc,b));var pe=b.bottom,Ae=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")pe=b.top;else if(le=="above"||le=="near"){var Ve=Math.max(de.wrapper.clientHeight,this.doc.height),It=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>Ve)&&b.top>E.offsetHeight?pe=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=Ve&&(pe=b.bottom),Ae+E.offsetWidth>It&&(Ae=It-E.offsetWidth)}E.style.top=pe+"px",E.style.left=E.style.right="",ue=="right"?(Ae=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Ae=0:ue=="middle"&&(Ae=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ae+"px"),te&&Zs(this,{left:Ae,top:pe,right:Ae+E.offsetWidth,bottom:pe+E.offsetHeight})},triggerOnKeyDown:yi(ws),triggerOnKeyPress:yi(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:yi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Ls(this,b)}),findPosH:function(b,E,te,le){var ue=1;E<0&&(ue=-1,E=-E);for(var de=wt(this.doc,b),pe=0;pe0&&Ae(te.charAt(le-1));)--le;for(;ue.5||this.options.lineWrapping)&&Ka(this),Zt(this,"refresh",this)}),swapDoc:yi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Vr(this,"swapDoc",this,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}},Ht(a),a.registerHelper=function(b,E,te){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=te},a.registerGlobalHelper=function(b,E,te,le){a.registerHelper(b,E,le),x[b]._global.push({pred:te,val:le})}}function yl(a,y,x,b,E){var te=y,le=x,ue=Ot(a,y.line),de=E&&a.direction=="rtl"?-x:x;function pe(){var Fn=y.line+de;return Fn=a.first+a.size?!1:(y=new xe(Fn,y.ch,y.sticky),ue=Ot(a,Fn))}function Ae(Fn){var Pn;if(b=="codepoint"){var jn=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(jn)?Pn=null:Pn=new xe(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(jn>=55296&&jn<56320?2:1))),-x)}else E?Pn=Mu(a.cm,ue,y,x):Pn=dl(ue,y,x);if(Pn==null)if(!Fn&&pe())y=fl(E,a.cm,ue,y.line,de);else return!1;else y=Pn;return!0}if(b=="char"||b=="codepoint")Ae();else if(b=="column")Ae(!0);else if(b=="word"||b=="group")for(var Ve=null,It=b=="group",xt=a.cm&&a.cm.getHelper(y,"wordChars"),Kt=!0;!(x<0&&!Ae(!Kt));Kt=!1){var un=ue.text.charAt(y.ch)||` `,Cn=se(un,xt)?"w":It&&un==` `?"n":!It||/\s/.test(un)?null:"p";if(It&&!Kt&&!Cn&&(Cn="s"),Ve&&Ve!=Cn){x<0&&(x=1,Ae(),y.sticky="after");break}if(Cn&&(Ve=Cn),x>0&&!Ae(!Kt))break}var On=Na(a,y,te,le,!0);return ct(te,On)&&(On.hitSide=!0),On}function Rs(a,y,x,b){var E=a.doc,te=y.left,le;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ue-.5*Di(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 pe;pe=ci(a,te,le),!!pe.outside;){if(x<0?le<=0:le>=E.height){pe.hitSide=!0;break}le+=x*5}return pe}var Hr=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};Hr.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 te(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}Dt(E,"paste",function(ue){!te(ue)||dt(b,ue)||Ts(ue,b)||we<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),Dt(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),Dt(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),Dt(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Dt(E,"touchstart",function(){return x.forceCompositionEnd()}),Dt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ue){if(!(!te(ue)||dt(b,ue))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Bs(b);Wa({lineWise:!0,text:de.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,Ie),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var pe=Ki.text.join(` `);if(ue.clipboardData.setData("Text",pe),ue.clipboardData.getData("Text")==pe){ue.preventDefault();return}}var Ae=Ns(),Ve=Ae.firstChild;b.display.lineSpace.insertBefore(Ae,b.display.lineSpace.firstChild),Ve.value=Ki.text.join(` `);var It=document.activeElement;Oe(Ve),setTimeout(function(){b.display.lineSpace.removeChild(Ae),It.focus(),It==E&&x.showPrimarySelection()},50)}}Dt(E,"copy",le),Dt(E,"cut",le)},Hr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Hr.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Hr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Hr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Hr.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},pe=E.linea.firstLine()&&(b=xe(b.line-1,Ot(a.doc,b.line-1).length)),E.ch==Ot(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var te,le,ue;b.line==y.viewFrom||(te=So(a,b.line))==0?(le=Pe(y.view[0].line),ue=y.view[0].node):(le=Pe(y.view[te].line),ue=y.view[te-1].node.nextSibling);var de=So(a,E.line),pe,Ae;if(de==y.view.length-1?(pe=y.viewTo-1,Ae=y.lineDiv.lastChild):(pe=Pe(y.view[de+1].line)-1,Ae=y.view[de+1].node.previousSibling),!ue)return!1;for(var Ve=a.doc.splitLines(Ku(a,ue,Ae,le,pe)),It=Yt(a.doc,xe(le,0),xe(pe,Ot(a.doc,pe).text.length));Ve.length>1&&It.length>1;)if(Re(Ve)==Re(It))Ve.pop(),It.pop(),pe--;else if(Ve[0]==It[0])Ve.shift(),It.shift(),le++;else break;for(var xt=0,Kt=0,un=Ve[0],Cn=It[0],On=Math.min(un.length,Cn.length);xtb.ch&&Fn.charCodeAt(Fn.length-Kt-1)==Pn.charCodeAt(Pn.length-Kt-1);)xt--,Kt++;Ve[Ve.length-1]=Fn.slice(0,Fn.length-Kt).replace(/^\u200b+/,""),Ve[0]=Ve[0].slice(xt).replace(/\u200b+$/,"");var sr=xe(le,xt),nr=xe(pe,It.length?Re(It).length-Kt:0);if(Ve.length>1||Ve[0]||Te(sr,nr))return $o(a.doc,Ve,sr,nr,"+input"),!0},Hr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Hr.prototype.reset=function(){this.forceCompositionEnd()},Hr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Hr.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))},Hr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ti(this.cm,function(){return wi(a.cm)})},Hr.prototype.setUneditable=function(a){a.contentEditable="false"},Hr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||oi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Hr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Hr.prototype.onContextMenu=function(){},Hr.prototype.resetPosition=function(){},Hr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=Ot(a.doc,y.line),E=Do(x,b,y.line),te=At(b,a.doc.direction),le="left";if(te){var ue=pt(te,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 _u(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 Ku(a,y,x,b,E){var te="",le=!1,ue=a.doc.lineSeparator(),de=!1;function pe(xt){return function(Kt){return Kt.id==xt}}function Ae(){le&&(te+=ue,de&&(te+=ue),le=de=!1)}function Ve(xt){xt&&(Ae(),te+=xt)}function It(xt){if(xt.nodeType==1){var Kt=xt.getAttribute("cm-text");if(Kt){Ve(Kt);return}var un=xt.getAttribute("cm-marker"),Cn;if(un){var On=a.findMarks(xe(b,0),xe(E+1,0),pe(+un));On.length&&(Cn=On[0].find(0))&&Ve(Yt(a.doc,Cn.from,Cn.to).join(ue));return}if(xt.getAttribute("contenteditable")=="false")return;var Fn=/^(pre|div|p|li|table|br)$/i.test(xt.nodeName);if(!/^br$/i.test(xt.nodeName)&&xt.textContent.length==0)return;Fn&&Ae();for(var Pn=0;Pn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Dt(E,"paste",function(le){dt(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function te(le){if(!dt(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=Bs(b);Wa({lineWise:!0,text:ue.text}),le.type=="cut"?b.setSelections(ue.ranges,null,Ie):(x.prevInput="",E.value=ue.text.join(` `),Oe(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Dt(E,"cut",te),Dt(E,"copy",te),Dt(a.scroller,"paste",function(le){if(!(ui(a,le)||dt(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)}}),Dt(a.lineSpace,"selectstart",function(le){ui(a,le)||nn(le)}),Dt(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"})}}),Dt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Jr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Jr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Jr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Ci(a,x.sel.primary().head,"div"),te=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-te.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-te.left))}return b},Jr.prototype.showSelection=function(a){var y=this.cm,x=y.display;tt(x.cursorDiv,a.cursors),tt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Jr.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&&Oe(this.textarea),Ce&&we>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ce&&we>=9&&(this.hasSelection=null))}},Jr.prototype.getField=function(){return this.textarea},Jr.prototype.supportsTouch=function(){return!1},Jr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!je||it()!=this.textarea))try{this.textarea.focus()}catch(a){}},Jr.prototype.blur=function(){this.textarea.blur()},Jr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Jr.prototype.receivedFocus=function(){this.slowPoll()},Jr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Jr.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)},Jr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(Ce&&we>=9&&this.hasSelection===E||Ne&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var te=E.charCodeAt(0);if(te==8203&&!b&&(b="\u200B"),te==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},Jr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Jr.prototype.onKeyPress=function(){Ce&&we>=9&&(this.hasSelection=null),this.fastPoll()},Jr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var te=wo(x,a),le=b.scroller.scrollTop;if(!te||fe)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(te)==-1&&oi(x,hi)(x.doc,po(te),Ie);var de=E.style.cssText,pe=y.wrapper.style.cssText,Ae=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ae.top-5)+"px; left: "+(a.clientX-Ae.left-5)+`px; z-index: 1000; background: `+(Ce?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ve;Le&&(Ve=window.scrollY),b.input.focus(),Le&&window.scrollTo(null,Ve),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=xt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function It(){if(E.selectionStart!=null){var un=x.somethingSelected(),Cn="\u200B"+(un?E.value:"");E.value="\u21DA",E.value=Cn,y.prevInput=un?"":"\u200B",E.selectionStart=1,E.selectionEnd=Cn.length,b.selForContextMenu=x.doc.sel}}function xt(){if(y.contextMenuPending==xt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=pe,E.style.cssText=de,Ce&&we<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!Ce||Ce&&we<9)&&It();var un=0,Cn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):un++<10?b.detectingSelectAll=setTimeout(Cn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Cn,200)}}if(Ce&&we>=9&&It(),rt){Me(a);var Kt=function(){Wt(window,"mouseup",Kt),setTimeout(xt,20)};Dt(window,"mouseup",Kt)}else setTimeout(xt,50)},Jr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Jr.prototype.setUneditable=function(){},Jr.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?Et(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=it();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(Dt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var te=a.form;E=te.submit;try{var le=te.submit=function(){b(),te.submit=E,te.submit(),te.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&&(Wt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=Ur(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ue}function Ju(a){a.off=Wt,a.on=Dt,a.wheelEventPixels=iu,a.Doc=Si,a.splitLines=sn,a.countColumn=ve,a.findColumn=Qt,a.isWordChar=oe,a.Pass=bt,a.signal=Zt,a.Line=Pr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=xe,a.cmpPos=Te,a.modes=En,a.mimeModes=Xt,a.resolveMode=Tn,a.getMode=Vn,a.modeExtensions=Hn,a.extendMode=Nn,a.copyState=Un,a.startState=Qn,a.innerMode=Kn,a.commands=ha,a.keyMap=io,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=ku,a.StringStream=Zn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=nn,a.e_stopPropagation=yn,a.e_stop=Me,a.addClass=me,a.contains=at,a.rmClass=He,a.keyNames=yo}ju(Ur),Uu(Ur);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Si.prototype)Si.prototype.hasOwnProperty(Za)&&Ye(Qu,Za)<0&&(Ur.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Si.prototype[Za]));return Ht(Si),Ur.inputStyles={textarea:Jr,contenteditable:Hr},Ur.defineMode=function(a){!Ur.defaults.mode&&a!="null"&&(Ur.defaults.mode=a),xn.apply(this,arguments)},Ur.defineMIME=dn,Ur.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Ur.defineMIME("text/plain","null"),Ur.defineExtension=function(a,y){Ur.prototype[a]=y},Ur.defineDocExtension=function(a,y){Si.prototype[a]=y},Ur.fromTextArea=Yu,Ju(Ur),Ur.version="5.58.2",Ur})},25419:function(Vt,Lt,ie){(function(re){re(ie(89780),ie(15525),ie(98101))})(function(re){"use strict";re.defineMode("markdown",function(qe,ge){var We=re.getMode(qe,"text/html"),Ce=We.name=="null";function we(ve){if(re.findModeByName){var ce=re.findModeByName(ve);ce&&(ve=ce.mime||ce.mimes[0])}var Ye=re.getMode(qe,ve);return Ye.name=="null"?null:Ye}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 Le={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 _e in Le)Le.hasOwnProperty(_e)&&ge.tokenTypeOverrides[_e]&&(Le[_e]=ge.tokenTypeOverrides[_e]);var ke=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ge=/^\[(x| )\](?=\s)/i,Se=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,vt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ke=/^[^#!\[\]*_\\<>` "'(~:]+/,Fe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,je=/^\s*\[[^\]]+?\]:.*$/,Ne=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ht=" ";function yt(ve,ce,Ye){return ce.f=ce.inline=Ye,Ye(ve,ce)}function Ct(ve,ce,Ye){return ce.f=ce.block=Ye,Ye(ve,ce)}function st(ve){return!ve||!/\S/.test(ve.string)}function rt(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==He){var ce=Ce;if(!ce){var Ye=re.innerMode(We,ve.htmlState);ce=Ye.mode.name=="xml"&&Ye.state.tagStart===null&&!Ye.state.context&&Ye.state.tokenize.isInText}ce&&(ve.f=ft,ve.block=ot,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function ot(ve,ce){var Ye=ve.column()===ce.indentation,Ft=st(ce.prevLine.stream),bt=ce.indentedCode,Ie=ce.prevLine.hr,Ze=ce.list!==!1,Qe=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Qt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,Ze)){for(ce.list=null;Qt=4&&(bt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||Ft))return ve.skipToEnd(),ce.indentedCode=!0,Le.code;if(ve.eatSpace())return null;if(Ye&&ce.indentation<=Qe&&(Re=ve.match(Se))&&Re[1].length<=6)return ce.quote=0,ce.header=Re[1].length,ce.thisLine.header=!0,ge.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,tt(ce);if(ce.indentation<=Qe&&ve.eat(">"))return ce.quote=Ye?1:ce.quote+1,ge.highlightFormatting&&(ce.formatting="quote"),ve.eatSpace(),tt(ce);if(!$t&&!ce.setext&&Ye&&ce.indentation<=Qe&&(Re=ve.match(fe))){var Tt=Re[1]?"ol":"ul";return ce.indentation=Qt+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(Ge,!1)&&(ce.taskList=!0),ce.f=ce.inline,ge.highlightFormatting&&(ce.formatting=["list","list-"+Tt]),tt(ce)}else{if(Ye&&ce.indentation<=Qe&&(Re=ve.match(Fe,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Re[1]+"+ *$"),ce.localMode=ge.fencedCodeBlockHighlighting&&we(Re[2]||ge.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=re.startState(ce.localMode)),ce.f=ce.block=St,ge.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,tt(ce);if(ce.setext||(!Mt||!Ze)&&!ce.quote&&ce.list===!1&&!ce.code&&!$t&&!je.test(ve.string)&&(Re=ve.lookAhead(1))&&(Re=Re.match(vt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ve.skipToEnd(),ge.highlightFormatting&&(ce.formatting="header")):(ce.header=Re[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,tt(ce);if($t)return ve.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Le.hr;if(ve.peek()==="[")return yt(ve,ce,kt)}return yt(ve,ce,ce.inline)}function He(ve,ce){var Ye=We.token(ve,ce.htmlState);if(!Ce){var Ft=re.innerMode(We,ce.htmlState);(Ft.mode.name=="xml"&&Ft.state.tagStart===null&&!Ft.state.context&&Ft.state.tokenize.isInText||ce.md_inside&&ve.current().indexOf(">")>-1)&&(ce.f=ft,ce.block=ot,ce.htmlState=null)}return Ye}function St(ve,ce){var Ye=ce.listStack[ce.listStack.length-1]||0,Ft=ce.indentation=ve.quote?ce.push(Le.formatting+"-"+ve.formatting[Ye]+"-"+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(Le.linkHref,"url"):(ve.strong&&ce.push(Le.strong),ve.em&&ce.push(Le.em),ve.strikethrough&&ce.push(Le.strikethrough),ve.emoji&&ce.push(Le.emoji),ve.linkText&&ce.push(Le.linkText),ve.code&&ce.push(Le.code),ve.image&&ce.push(Le.image),ve.imageAltText&&ce.push(Le.imageAltText,"link"),ve.imageMarker&&ce.push(Le.imageMarker)),ve.header&&ce.push(Le.header,Le.header+"-"+ve.header),ve.quote&&(ce.push(Le.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ve.quote?ce.push(Le.quote+"-"+ve.quote):ce.push(Le.quote+"-"+ge.maxBlockquoteDepth)),ve.list!==!1){var Ft=(ve.listStack.length-1)%3;Ft?Ft===1?ce.push(Le.list2):ce.push(Le.list3):ce.push(Le.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 Xe(ve,ce){if(ve.match(Ke,!0))return tt(ce)}function ft(ve,ce){var Ye=ce.text(ve,ce);if(typeof Ye!="undefined")return Ye;if(ce.list)return ce.list=null,tt(ce);if(ce.taskList){var Ft=ve.match(Ge,!0)[1]===" ";return Ft?ce.taskOpen=!0:ce.taskClosed=!0,ge.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,tt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ve.match(/^#+$/,!0))return ge.highlightFormatting&&(ce.formatting="header"),tt(ce);var bt=ve.next();if(ce.linkTitle){ce.linkTitle=!1;var Ie=bt;bt==="("&&(Ie=")"),Ie=(Ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ze="^\\s*(?:[^"+Ie+"\\\\]+|\\\\\\\\|\\\\.)"+Ie;if(ve.match(new RegExp(Ze),!0))return Le.linkHref}if(bt==="`"){var Qe=ce.formatting;ge.highlightFormatting&&(ce.formatting="code"),ve.eatWhile("`");var Qt=ve.current().length;if(ce.code==0&&(!ce.quote||Qt==1))return ce.code=Qt,tt(ce);if(Qt==ce.code){var Mt=tt(ce);return ce.code=0,Mt}else return ce.formatting=Qe,tt(ce)}else if(ce.code)return tt(ce);if(bt==="\\"&&(ve.next(),ge.highlightFormatting)){var $t=tt(ce),Re=Le.formatting+"-escape";return $t?$t+" "+Re:Re}if(bt==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ge.highlightFormatting&&(ce.formatting="image"),tt(ce);if(bt==="["&&ce.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ge.highlightFormatting&&(ce.formatting="image"),tt(ce);if(bt==="]"&&ce.imageAltText){ge.highlightFormatting&&(ce.formatting="image");var $t=tt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=at,$t}if(bt==="["&&!ce.image)return ce.linkText&&ve.match(/^.*?\]/)||(ce.linkText=!0,ge.highlightFormatting&&(ce.formatting="link")),tt(ce);if(bt==="]"&&ce.linkText){ge.highlightFormatting&&(ce.formatting="link");var $t=tt(ce);return ce.linkText=!1,ce.inline=ce.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?at:ft,$t}if(bt==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Be,ge.highlightFormatting&&(ce.formatting="link");var $t=tt(ce);return $t?$t+=" ":$t="",$t+Le.linkInline}if(bt==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Be,ge.highlightFormatting&&(ce.formatting="link");var $t=tt(ce);return $t?$t+=" ":$t="",$t+Le.linkEmail}if(ge.xml&&bt==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Tt=ve.string.indexOf(">",ve.pos);if(Tt!=-1){var lt=ve.string.substring(ve.start,Tt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(lt)&&(ce.md_inside=!0)}return ve.backUp(1),ce.htmlState=re.startState(We),Ct(ve,ce,He)}if(ge.xml&&bt==="<"&&ve.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(bt==="*"||bt==="_"){for(var ae=1,ee=ve.pos==1?" ":ve.string.charAt(ve.pos-2);ae<3&&ve.eat(bt);)ae++;var z=ve.peek()||" ",oe=!/\s/.test(z)&&(!Ne.test(z)||/\s/.test(ee)||Ne.test(ee)),se=!/\s/.test(ee)&&(!Ne.test(ee)||/\s/.test(z)||Ne.test(z)),ne=null,he=null;if(ae%2&&(!ce.em&&oe&&(bt==="*"||!se||Ne.test(ee))?ne=!0:ce.em==bt&&se&&(bt==="*"||!oe||Ne.test(z))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(bt==="*"||!se||Ne.test(ee))?he=!0:ce.strong==bt&&se&&(bt==="*"||!oe||Ne.test(z))&&(he=!1)),he!=null||ne!=null){ge.highlightFormatting&&(ce.formatting=ne==null?"strong":he==null?"em":"strong em"),ne===!0&&(ce.em=bt),he===!0&&(ce.strong=bt);var Mt=tt(ce);return ne===!1&&(ce.em=!1),he===!1&&(ce.strong=!1),Mt}}else if(bt===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return tt(ce);ve.backUp(1)}if(ge.strikethrough){if(bt==="~"&&ve.eatWhile(bt)){if(ce.strikethrough){ge.highlightFormatting&&(ce.formatting="strikethrough");var Mt=tt(ce);return ce.strikethrough=!1,Mt}else if(ve.match(/^[^\s]/,!1))return ce.strikethrough=!0,ge.highlightFormatting&&(ce.formatting="strikethrough"),tt(ce)}else if(bt===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return tt(ce);ve.backUp(2)}}if(ge.emoji&&bt===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ge.highlightFormatting&&(ce.formatting="emoji");var ye=tt(ce);return ce.emoji=!1,ye}return bt===" "&&(ve.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),tt(ce)}function Be(ve,ce){var Ye=ve.next();if(Ye===">"){ce.f=ce.inline=ft,ge.highlightFormatting&&(ce.formatting="link");var Ft=tt(ce);return Ft?Ft+=" ":Ft="",Ft+Le.linkInline}return ve.match(/^[^>]+/,!0),Le.linkInline}function at(ve,ce){if(ve.eatSpace())return null;var Ye=ve.next();return Ye==="("||Ye==="["?(ce.f=ce.inline=me(Ye==="("?")":"]"),ge.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,tt(ce)):"error"}var it={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function me(ve){return function(ce,Ye){var Ft=ce.next();if(Ft===ve){Ye.f=Ye.inline=ft,ge.highlightFormatting&&(Ye.formatting="link-string");var bt=tt(Ye);return Ye.linkHref=!1,bt}return ce.match(it[ve]),Ye.linkHref=!0,tt(Ye)}}function kt(ve,ce){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Oe,ve.next(),ge.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,tt(ce)):yt(ve,ce,ft)}function Oe(ve,ce){if(ve.match(/^\]:/,!0)){ce.f=ce.inline=$e,ge.highlightFormatting&&(ce.formatting="link");var Ye=tt(ce);return ce.linkText=!1,Ye}return ve.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function $e(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=ft,Le.linkHref+" url")}var Et={startState:function(){return{f:ot,prevLine:{stream:null},thisLine:{stream:null},block:ot,htmlState:null,indentation:0,inline:ft,text:Xe,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&&re.copyState(We,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?re.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 rt(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!=He)){var Ye=ve.match(/^\s*/,!0)[0].replace(/\t/g,ht).length;if(ce.indentation=Ye,ce.indentationDiff=null,Ye>0)return null}}return ce.f(ve,ce)},innerMode:function(ve){return ve.block==He?{state:ve.htmlState,mode:We}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Et}},indent:function(ve,ce,Ye){return ve.block==He&&We.indent?We.indent(ve.htmlState,ce,Ye):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ce,Ye):re.Pass},blankLine:rt,getType:tt,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Et},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(Vt,Lt,ie){(function(re){re(ie(89780))})(function(re){"use strict";re.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var qe=0;qe-1&&We.substring(Le+1,We.length);if(_e)return re.findModeByExtension(_e)},re.findModeByName=function(We){We=We.toLowerCase();for(var Ce=0;Ce0?Ke.cmdState[Ke.cmdState.length-1]:null}function we(Ke){var Fe=Ke.cmdState.pop();Fe&&Fe.closeBracket()}function Le(Ke){for(var Fe=Ke.cmdState,je=Fe.length-1;je>=0;je--){var Ne=Fe[je];if(Ne.name!="DEFAULT")return Ne}return{styleIdentifier:function(){return null}}}function _e(Ke,Fe,je){return function(){this.name=Ke,this.bracketNo=0,this.style=Fe,this.styles=je,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ke={};ke.importmodule=_e("importmodule","tag",["string","builtin"]),ke.documentclass=_e("documentclass","tag",["","atom"]),ke.usepackage=_e("usepackage","tag",["atom"]),ke.begin=_e("begin","tag",["atom"]),ke.end=_e("end","tag",["atom"]),ke.label=_e("label","tag",["atom"]),ke.ref=_e("ref","tag",["atom"]),ke.eqref=_e("eqref","tag",["atom"]),ke.cite=_e("cite","tag",["atom"]),ke.bibitem=_e("bibitem","tag",["atom"]),ke.Bibitem=_e("Bibitem","tag",["atom"]),ke.RBibitem=_e("RBibitem","tag",["atom"]),ke.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(Ke,Fe){Ke.f=Fe}function Ge(Ke,Fe){var je;if(Ke.match(/^\\[a-zA-Z@]+/)){var Ne=Ke.current().slice(1);return je=ke.hasOwnProperty(Ne)?ke[Ne]:ke.DEFAULT,je=new je,We(Fe,je),fe(Fe,vt),je.style}if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/\\]/))return"tag";if(Ke.match("\\["))return fe(Fe,function(yt,Ct){return Se(yt,Ct,"\\]")}),"keyword";if(Ke.match("\\("))return fe(Fe,function(yt,Ct){return Se(yt,Ct,"\\)")}),"keyword";if(Ke.match("$$"))return fe(Fe,function(yt,Ct){return Se(yt,Ct,"$$")}),"keyword";if(Ke.match("$"))return fe(Fe,function(yt,Ct){return Se(yt,Ct,"$")}),"keyword";var ht=Ke.next();if(ht=="%")return Ke.skipToEnd(),"comment";if(ht=="}"||ht=="]"){if(je=Ce(Fe),je)je.closeBracket(ht),fe(Fe,vt);else return"error";return"bracket"}else return ht=="{"||ht=="["?(je=ke.DEFAULT,je=new je,We(Fe,je),"bracket"):/\d/.test(ht)?(Ke.eatWhile(/[\w.%]/),"atom"):(Ke.eatWhile(/[\w\-_]/),je=Le(Fe),je.name=="begin"&&(je.argument=Ke.current()),je.styleIdentifier())}function Se(Ke,Fe,je){if(Ke.eatSpace())return null;if(je&&Ke.match(je))return fe(Fe,Ge),"keyword";if(Ke.match(/^\\[a-zA-Z@]+/))return"tag";if(Ke.match(/^[a-zA-Z]+/))return"variable-2";if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/]/)||Ke.match(/^[\^_&]/))return"tag";if(Ke.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ke.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ne=Ke.next();return Ne=="{"||Ne=="}"||Ne=="["||Ne=="]"||Ne=="("||Ne==")"?"bracket":Ne=="%"?(Ke.skipToEnd(),"comment"):"error"}function vt(Ke,Fe){var je=Ke.peek(),Ne;return je=="{"||je=="["?(Ne=Ce(Fe),Ne.openBracket(je),Ke.eat(je),fe(Fe,Ge),"bracket"):/[ \t\r]/.test(je)?(Ke.eat(je),null):(fe(Fe,Ge),we(Fe),Ge(Ke,Fe))}return{startState:function(){var Ke=ge.inMathMode?function(Fe,je){return Se(Fe,je)}:Ge;return{cmdState:[],f:Ke}},copyState:function(Ke){return{cmdState:Ke.cmdState.slice(),f:Ke.f}},token:function(Ke,Fe){return Fe.f(Ke,Fe)},blankLine:function(Ke){Ke.f=Ge,Ke.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(Vt,Lt,ie){(function(re){re(ie(89780))})(function(re){"use strict";var qe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(We,Ce){var we=We.indentUnit,Le={},_e=Ce.htmlMode?qe:ge;for(var ke in _e)Le[ke]=_e[ke];for(var ke in Ce)Le[ke]=Ce[ke];var fe,Ge;function Se(Be,at){function it(Oe){return at.tokenize=Oe,Oe(Be,at)}var me=Be.next();if(me=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?it(Fe("atom","]]>")):null:Be.match("--")?it(Fe("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),it(je(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),at.tokenize=Fe("meta","?>"),"meta"):(fe=Be.eat("/")?"closeTag":"openTag",at.tokenize=vt,"tag bracket");if(me=="&"){var kt;return Be.eat("#")?Be.eat("x")?kt=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):kt=Be.eatWhile(/[\d]/)&&Be.eat(";"):kt=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),kt?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}Se.isInText=!0;function vt(Be,at){var it=Be.next();if(it==">"||it=="/"&&Be.eat(">"))return at.tokenize=Se,fe=it==">"?"endTag":"selfcloseTag","tag bracket";if(it=="=")return fe="equals",null;if(it=="<"){at.tokenize=Se,at.state=Ct,at.tagName=at.tagStart=null;var me=at.tokenize(Be,at);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(it)?(at.tokenize=Ke(it),at.stringStartCol=Be.column(),at.tokenize(Be,at)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ke(Be){var at=function(it,me){for(;!it.eol();)if(it.next()==Be){me.tokenize=vt;break}return"string"};return at.isInAttribute=!0,at}function Fe(Be,at){return function(it,me){for(;!it.eol();){if(it.match(at)){me.tokenize=Se;break}it.next()}return Be}}function je(Be){return function(at,it){for(var me;(me=at.next())!=null;){if(me=="<")return it.tokenize=je(Be+1),it.tokenize(at,it);if(me==">")if(Be==1){it.tokenize=Se;break}else return it.tokenize=je(Be-1),it.tokenize(at,it)}return"meta"}}function Ne(Be,at,it){this.prev=Be.context,this.tagName=at,this.indent=Be.indented,this.startOfLine=it,(Le.doNotIndent.hasOwnProperty(at)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function ht(Be){Be.context&&(Be.context=Be.context.prev)}function yt(Be,at){for(var it;;){if(!Be.context||(it=Be.context.tagName,!Le.contextGrabbers.hasOwnProperty(it)||!Le.contextGrabbers[it].hasOwnProperty(at)))return;ht(Be)}}function Ct(Be,at,it){return Be=="openTag"?(it.tagStart=at.column(),st):Be=="closeTag"?rt:Ct}function st(Be,at,it){return Be=="word"?(it.tagName=at.current(),Ge="tag",St):Le.allowMissingTagName&&Be=="endTag"?(Ge="tag bracket",St(Be,at,it)):(Ge="error",st)}function rt(Be,at,it){if(Be=="word"){var me=at.current();return it.context&&it.context.tagName!=me&&Le.implicitlyClosed.hasOwnProperty(it.context.tagName)&&ht(it),it.context&&it.context.tagName==me||Le.matchClosing===!1?(Ge="tag",ot):(Ge="tag error",He)}else return Le.allowMissingTagName&&Be=="endTag"?(Ge="tag bracket",ot(Be,at,it)):(Ge="error",He)}function ot(Be,at,it){return Be!="endTag"?(Ge="error",ot):(ht(it),Ct)}function He(Be,at,it){return Ge="error",ot(Be,at,it)}function St(Be,at,it){if(Be=="word")return Ge="attribute",tt;if(Be=="endTag"||Be=="selfcloseTag"){var me=it.tagName,kt=it.tagStart;return it.tagName=it.tagStart=null,Be=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(me)?yt(it,me):(yt(it,me),it.context=new Ne(it,me,kt==it.indented)),Ct}return Ge="error",St}function tt(Be,at,it){return Be=="equals"?Xe:(Le.allowMissing||(Ge="error"),St(Be,at,it))}function Xe(Be,at,it){return Be=="string"?ft:Be=="word"&&Le.allowUnquoted?(Ge="string",St):(Ge="error",St(Be,at,it))}function ft(Be,at,it){return Be=="string"?ft:St(Be,at,it)}return{startState:function(Be){var at={tokenize:Se,state:Ct,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(at.baseIndent=Be),at},token:function(Be,at){if(!at.tagName&&Be.sol()&&(at.indented=Be.indentation()),Be.eatSpace())return null;fe=null;var it=at.tokenize(Be,at);return(it||fe)&&it!="comment"&&(Ge=null,at.state=at.state(fe||it,Be,at),Ge&&(it=Ge=="error"?it+" error":Ge)),it},indent:function(Be,at,it){var me=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+we;if(me&&me.noIndent)return re.Pass;if(Be.tokenize!=vt&&Be.tokenize!=Se)return it?it.match(/^(\s*)/)[0].length:0;if(Be.tagName)return Le.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+we*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/$/,blockCommentStart:"",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==Xe&&(Be.state=St)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var at=[],it=Be.context;it;it=it.prev)it.tagName&&at.push(it.tagName);return at.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(Vt,Lt,ie){"use strict";ie.d(Lt,{hP:function(){return lt}});var re=function(ae,ee){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(z[se]=oe[se])})(ae,ee)};function qe(ae,ee){function z(){this.constructor=ae}re(ae,ee),ae.prototype=ee===null?Object.create(ee):(z.prototype=ee.prototype,new z)}function ge(ae,ee,z,oe){return new(z||(z=Promise))(function(se,ne){function he(Ee){try{nt(oe.next(Ee))}catch(ze){ne(ze)}}function ye(Ee){try{nt(oe.throw(Ee))}catch(ze){ne(ze)}}function nt(Ee){var ze;Ee.done?se(Ee.value):(ze=Ee.value,ze instanceof z?ze:new z(function(Je){Je(ze)})).then(he,ye)}nt((oe=oe.apply(ae,ee||[])).next())})}function We(ae,ee){var z,oe,se,ne,he={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function ye(nt){return function(Ee){return function(ze){if(z)throw new TypeError("Generator is already executing.");for(;he;)try{if(z=1,oe&&(se=2&ze[0]?oe.return:ze[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,ze[1])).done)return se;switch(oe=0,se&&(ze=[2&ze[0],se.value]),ze[0]){case 0:case 1:se=ze;break;case 4:return he.label++,{value:ze[1],done:!1};case 5:he.label++,oe=ze[1],ze=[0];continue;case 7:ze=he.ops.pop(),he.trys.pop();continue;default:if(se=he.trys,!((se=se.length>0&&se[se.length-1])||ze[0]!==6&&ze[0]!==2)){he=0;continue}if(ze[0]===3&&(!se||ze[1]>se[0]&&ze[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=""+z.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ne.typeName),he.innerHTML=ne.icon,he.addEventListener("click",function(){z.markerToolbarButtonClicked(he,ne)}),z.buttons.push(he),z.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(ee){this.buttonClickListeners.push(ee)},ae.prototype.removeButtonClickListener=function(ee){this.buttonClickListeners.indexOf(ee)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ee),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ee=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var z=0;z0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ee,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ee){this.resetButtonStyles(),ee.className=ee.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ee){var z=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ee});z&&this.setActiveButton(z)},ae.prototype.setCurrentMarker=function(ee){var z=this;this.currentMarker=ee,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){z.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Ke=function(){function ae(ee,z,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=ee,this.displayMode=z,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ee;this.toolboxStyleClass=this.styles.addClass(new Se("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 Se("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Se("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Se("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Se("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 Se("toolbox-panel-row_colors",` background-color: `+((ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ee!==void 0?ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new Se("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px; padding: `+z+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(ee){var z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolboxStyleClass.name+" "+((z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ee){var z,oe,se=this;this.panels=ee,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&z!==void 0?z: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 ye=document.createElement("div");ye.className=se.toolboxButtonStyleClass.name+" "+((he=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:se.toolboxButtonStyleColorsClass.name),ye.innerHTML=ne.icon,ye.title=ne.title,ye.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(ye),se.buttonRow.appendChild(ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ee){var z=this,oe=-1;if(ee!==this.activePanel){oe=this.panels.indexOf(ee),this.panelRow.innerHTML="";var se=ee.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=ee}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){z.displayMode==="inline"?z.panelRow.style.display="none":z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,he){var ye,nt;ne.className=z.toolboxButtonStyleClass.name+" "+(he===oe?""+((ye=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ye!==void 0?ye:z.toolboxActiveButtonStyleColorsClass.name):""+((nt=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&nt!==void 0?nt:z.toolboxButtonStyleColorsClass.name))})},ae}(),Fe=function(ae,ee){this.title=ae,this.icon=ee},je=function(ae){function ee(z,oe,se,ne){var he=ae.call(this,z,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 qe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=z.getColorBox(se);oe.appendChild(ne),z.colorBoxes.push(ne)}),oe},ee.prototype.getColorBox=function(z){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=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(z,he)});var ye=document.createElement("div");return ye.style.display="inline-block",ye.style.width=ne-2+"px",ye.style.height=ne-2+"px",ye.style.backgroundColor=z,ye.style.borderRadius=ne/2+"px",z==="transparent"&&(ye.style.fill=this.uiStyleSettings.toolboxAccentColor,ye.innerHTML=` `),he.appendChild(ye),he},ee.prototype.setCurrentColor=function(z,oe){var se=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},ee}(Fe),Ne=function(){function ae(ee,z,oe){this._state="new",this._isSelected=!1,this._container=ee,this._overlayContainer=z,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(ee){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(ee,z){},ae.prototype.dblClick=function(ee,z){},ae.prototype.manipulate=function(ee){},ae.prototype.pointerUp=function(ee){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ee){this.container.childNodes.length>0?this.container.insertBefore(ee,this.container.childNodes[0]):this.container.appendChild(ee)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ee){this._state=ee.state,this.notes=ee.notes},ae.prototype.scale=function(ee,z){},ae.prototype.colorChanged=function(ee){this.onColorChanged&&this.onColorChanged(ee),this.stateChanged()},ae.prototype.fillColorChanged=function(ee){this.onFillColorChanged&&this.onFillColorChanged(ee),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ee=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ee.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ee)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),ht=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ee){return this.topLeft.ownsTarget(ee)?this.topLeft:this.topCenter.ownsTarget(ee)?this.topCenter:this.topRight.ownsTarget(ee)?this.topRight:this.centerLeft.ownsTarget(ee)?this.centerLeft:this.centerRight.ownsTarget(ee)?this.centerRight:this.bottomLeft.ownsTarget(ee)?this.bottomLeft:this.bottomCenter.ownsTarget(ee)?this.bottomCenter:this.bottomRight.ownsTarget(ee)?this.bottomRight:void 0},ae}(),yt=function(){function ae(){this.GRIP_SIZE=10,this.visual=we.createGroup(),this.visual.appendChild(we.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(we.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ee){return ee===this.visual||ee===this.visual.childNodes[0]||ee===this.visual.childNodes[1]},ae}(),Ct=function(){function ae(){}return ae.toITransformMatrix=function(ee){return{a:ee.a,b:ee.b,c:ee.c,d:ee.d,e:ee.e,f:ee.f}},ae.toSVGMatrix=function(ee,z){return ee.a=z.a,ee.b=z.b,ee.c=z.c,ee.d=z.d,ee.e=z.e,ee.f=z.f,ee},ae}(),st=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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(we.createTransform()),ne.setupControlBox(),ne}return qe(ee,ae),Object.defineProperty(ee.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"visual",{get:function(){return this._visual},set:function(z){this._visual=z;var oe=we.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!!(this.controlGrips.findGripByVisual(z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z))},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.left=z.x,this.top=z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(z);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"},ee.prototype.pointerUp=function(z){var oe=this.state;ae.prototype.pointerUp.call(this,z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(z),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ee.prototype.moveVisual=function(z){this.visual.style.transform="translate("+z.x+"px, "+z.y+"px)"},ee.prototype.manipulate=function(z){var oe=this.unrotatePoint(z);this.state==="creating"?this.resize(z):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(z)},ee.prototype.resize=function(z){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+z.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+z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+z.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+z.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()},ee.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ee.prototype.rotate=function(z){if(Math.abs(z.x-this.centerX)>.1){var oe=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},ee.prototype.applyRotation=function(){var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0)},ee.prototype.rotatePoint=function(z){if(this.rotationAngle===0)return z;var oe=this.container.getCTM(),se=we.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},ee.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var oe=this.container.getCTM();oe=oe.inverse();var se=we.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=we.createGroup();var z=we.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=we.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=we.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 ht,this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){var z=this.controlBox.transform.baseVal.getItem(0);z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(z,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()},ee.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()},ee.prototype.createGrip=function(){var z=new yt;return z.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,oe=-z/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-z/2,he=(this.height+this.CB_DISTANCE)/2-z/2,ye=this.height+this.CB_DISTANCE-z/2,nt=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,nt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,nt,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ye),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,ye),this.positionGrip(this.controlGrips.bottomRight.visual,nt,ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},ee.prototype.positionGrip=function(z,oe,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(oe,se),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ee.prototype.showControlBox=function(){this.controlBox.style.display=""},ee.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;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(Ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*z,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*oe,this.adjustControlBox()},ee}(Ne),rt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 qe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=we.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)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&we.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&we.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&we.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&we.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.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))},ee.prototype.restoreState=function(z){var oe=z;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,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize()},ee.title="Rectangle marker",ee}(st),ot=function(ae){function ee(z,oe,se,ne){var he=ae.call(this,z,ne||'')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=se,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return qe(ee,ae),ee.prototype.getUi=function(){var z=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===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentWidth(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=se.toString(),he.style.marginRight="5px",ne.appendChild(he);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.display="flex",ye.style.alignItems="center";var nt=document.createElement("hr");nt.style.minWidth="20px",nt.style.border="0px",nt.style.borderTop=se+"px solid "+z.uiStyleSettings.toolboxColor,nt.style.flexGrow="2",ye.appendChild(nt),ne.appendChild(ye),z.widthBoxes.push(ne)}),oe},ee.prototype.setCurrentWidth=function(z,oe){var se=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ee}(Fe),He=function(ae){function ee(z,oe,se,ne){var he=ae.call(this,z,ne||'')||this;return he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=se,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return qe(ee,ae),ee.prototype.getUi=function(){var z=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/z.styles.length-5+"%",ne.style.borderColor=se===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentStyle(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var ye=` `;he.innerHTML=ye,ne.appendChild(he),z.styleBoxes.push(ne)}),oe},ee.prototype.setCurrentStyle=function(z,oe){var se=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ee}(Fe),St=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new je("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="FrameMarker",ee.title="Frame marker",ee.icon='',ee}(rt),tt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Xe=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 qe(ee,ae),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!(!this.grip1.ownsTarget(z)&&!this.grip2.ownsTarget(z))},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.state==="new"&&(this.x1=z.x,this.y1=z.y,this.x2=z.x,this.y2=z.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")},ee.prototype.pointerUp=function(z){var oe=this.state;ae.prototype.pointerUp.call(this,z),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(z),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ee.prototype.adjustVisual=function(){},ee.prototype.manipulate=function(z){this.state==="creating"?this.resize(z):this.state==="move"?(this.x1=this.manipulationStartX1+z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(z)},ee.prototype.resize=function(z){switch(this.activeGrip){case this.grip1:this.x1=z.x,this.y1=z.y;break;case this.grip2:case void 0:this.x2=z.x,this.y2=z.y}this.adjustVisual(),this.adjustControlBox()},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=we.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){this.positionGrips()},ee.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ee.prototype.createGrip=function(){var z=new yt;return z.visual.transform.baseVal.appendItem(we.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-z/2,this.y1-z/2),this.positionGrip(this.grip2.visual,this.x2-z/2,this.y2-z/2)},ee.prototype.positionGrip=function(z,oe,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(oe,se),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.x1=this.x1*z,this.y1=this.y1*oe,this.x2=this.x2*z,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},ee}(Ne),ft=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 je("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorLine&&z!==this.visibleLine)},ee.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorLine=we.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=we.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)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ee.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()),we.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},ee.typeName="LineMarker",ee.title="Line marker",ee.icon='',ee}(Xe),Be=function(ae){function ee(z,oe,se,ne){var he=ae.call(this,z,ne||'')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=se,he.setCurrentFont=he.setCurrentFont.bind(he),he}return qe(ee,ae),ee.prototype.getUi=function(){var z=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/z.fonts.length-5+"%",ne.style.borderColor=se===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.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 ye=document.createElement("div");ye.style.whiteSpace="nowrap",ye.style.overflow="hidden",ye.style.textOverflow="ellipsis",ye.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(ye),ne.appendChild(he),z.fontBoxes.push(ne)}),oe},ee.prototype.setCurrentFont=function(z,oe){var se=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ee}(Fe),at=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 je("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){if(ae.prototype.ownsTarget.call(this,z)||z===this.visual||z===this.textElement||z===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===z&&(oe=!0)}),oe},ee.prototype.createVisual=function(){this.visual=we.createGroup(),this.bgRectangle=we.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=we.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.textElement.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.renderText=function(){var z=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){z.textElement.appendChild(we.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ee.prototype.getTextScale=function(){var z=this.textElement.getBBox(),oe=1;if(z.width>0&&z.height>0){var se=(1*this.width-this.width*this.padding*2/100)/z.width,ne=(1*this.height-this.height*this.padding*2/100)/z.height;oe=Math.min(se,ne)}return oe},ee.prototype.getTextPosition=function(z){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*z)/2,ne=this.height/2-oe.height*z/2),{x:se,y:ne}},ee.prototype.sizeText=function(){var z=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=z.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))},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.isMoved=!0,this.setSize(),this.sizeText()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ee.prototype.pointerUp=function(z){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,z),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.showTextEditor=function(){var z=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(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,z.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(){z.textEditDivClicked(z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ee.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var z=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*z,y:se.height*z};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*z,12)+"px",this.textElement.style.display="none"}},ee.prototype.textEditDivClicked=function(z){this.text=z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ee.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ee.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ee.prototype.dblClick=function(z,oe){ae.prototype.dblClick.call(this,z,oe),this.showTextEditor()},ee.prototype.setColor=function(z){this.textElement&&we.setAttributes(this.textElement,[["fill",z]]),this.color=z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(z)},ee.prototype.setFont=function(z){this.textElement&&we.setAttributes(this.textElement,[["font-family",z]]),this.fontFamily=z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ee.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ee.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var oe=z;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ee.typeName="TextMarker",ee.title="Text marker",ee.icon='',ee}(st),it=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 je("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.drawingImage)},ee.prototype.createVisual=function(){this.visual=we.createGroup(),this.drawingImage=we.createImage(),this.visual.appendChild(this.drawingImage);var z=we.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,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(z.x,z.y),this.drawing=!0):ae.prototype.pointerDown.call(this,z,oe)},ee.prototype.manipulate=function(z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(z.x,z.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),we.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,z)},ee.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)},ee.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ee.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ee.prototype.finishCreation=function(){for(var z=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],ye=oe[3],nt=!1,Ee=0;Ee0&&(nt=!0,Eeye&&(ye=Ee),ze>he&&(he=ze));if(nt){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(he-se)/this.pixelRatio,this.height=(ye-ne)/this.pixelRatio;var Je=document.createElement("canvas");Je.width=he-se,Je.height=ye-ne,Je.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,he-se,ye-ne),0,0),this.drawingImgUrl=Je.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ee.prototype.setDrawingImage=function(){we.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),we.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ee.prototype.setColor=function(z){this.color=z,this.colorChanged(z)},ee.prototype.setLineWidth=function(z){this.lineWidth=z},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){this.createVisual(),ae.prototype.restoreState.call(this,z),this.drawingImgUrl=z.drawingImgUrl,this.setDrawingImage()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setDrawingImage()},ee.typeName="FreehandMarker",ee.title="Freehand marker",ee.icon='',ee}(st),me=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,se||'')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return qe(ee,ae),ee.prototype.getUi=function(){var z=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(ye){var nt="both";switch(ye){case 0:nt="both";break;case 1:nt="start";break;case 2:nt="end";break;case 3:nt="none"}var Ee=document.createElement("div");if(Ee.style.display="flex",Ee.style.flexGrow="2",Ee.style.alignItems="center",Ee.style.justifyContent="space-between",Ee.style.padding="5px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderColor=nt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){z.setCurrentType(nt,Ee)}),oe.appendChild(Ee),nt==="both"||nt==="start"){var ze=document.createElement("div");ze.style.display="flex",ze.style.alignItems="center",ze.style.minHeight="20px",ze.innerHTML=` `,ze.style.marginLeft="5px",Ee.appendChild(ze)}var Je=document.createElement("div");Je.style.display="flex",Je.style.alignItems="center",Je.style.minHeight="20px",Je.style.flexGrow="2";var pt=document.createElement("hr");if(pt.style.minWidth="20px",pt.style.border="0px",pt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),pt.style.flexGrow="2",Je.appendChild(pt),Ee.appendChild(Je),nt==="both"||nt==="end"){var ut=document.createElement("div");ut.style.display="flex",ut.style.alignItems="center",ut.style.minHeight="20px",ut.innerHTML=` `,ut.style.marginRight="5px",Ee.appendChild(ut)}ne.typeBoxes.push(Ee)},ne=this,he=0;he<4;he++)se(he);return oe},ee.prototype.setCurrentType=function(z,oe){var se=this;this.currentType=z,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)},ee}(Fe),kt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 me("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.arrow1&&z!==this.arrow2)},ee.prototype.getArrowPoints=function(z,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-se/2+","+(oe+ne/2)+" "+z+","+(oe-ne/2)+" "+(z+se/2)+","+(oe+ne/2)},ee.prototype.createTips=function(){this.arrow1=we.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=we.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(we.createTransform()),this.visual.appendChild(this.arrow2)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.state==="creating"&&this.createTips()},ee.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",we.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),we.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var z=0;Math.abs(this.x1-this.x2)>.1&&(z=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(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},ee.prototype.setArrowType=function(z){this.arrowType=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ee.typeName="ArrowMarker",ee.title="Arrow marker",ee.icon='',ee}(ft),Oe=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new je("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return qe(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="CoverMarker",ee.title="Cover marker",ee.icon='',ee}(rt),$e=function(ae){function ee(z,oe,se,ne){var he=ae.call(this,z,ne||'')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=se,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return qe(ee,ae),ee.prototype.getUi=function(){var z=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===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=100*se+"%",ne.appendChild(he),z.opacityBoxes.push(ne)}),oe},ee.prototype.setCurrentOpacity=function(z,oe){var se=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ee}(Fe),Et=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new je("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new $e("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return qe(ee,ae),ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&we.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="HighlightMarker",ee.title="Highlight marker",ee.icon='',ee}(Oe),ve='',ce='',Ye=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 je("Text color",se.defaultColorSet,ne.color,ve),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new je("Fill color",se.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new yt,ne.tipGrip.visual.transform.baseVal.appendItem(we.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){return ae.prototype.ownsTarget.call(this,z)||this.tipGrip.ownsTarget(z)||this.tip===z},ee.prototype.createTip=function(){we.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=we.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ee.prototype.pointerDown=function(z,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,z,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,z,oe)},ee.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,z);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,z),this.setTipPoints(oe),this.positionTip()}},ee.prototype.manipulate=function(z){if(this.tipMoving){var oe=this.unrotatePoint(z);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,z)},ee.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(we.setAttributes(this.bgRectangle,[["fill",z]]),we.setAttributes(this.tip,[["fill",z]])),this.bgColor=z,this.fillColorChanged(z)},ee.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},ee.prototype.setTipPoints=function(z){z===void 0&&(z=!1);var oe=Math.min(this.height/2,15),se=this.height/5;z&&(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 z=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(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z),this.createTips(),this.adjustVisual()},ee.typeName="MeasurementMarker",ee.title="Measurement marker",ee.icon='',ee}(ft),Ie=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return qe(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="EllipseFrameMarker",ee.title="Ellipse frame marker",ee.icon='',ee}(Ft),Ze=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(ee){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ee)||(this.undoStack.push(ee),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ee)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ee){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ee)},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 ee=this.undoStack.pop();return ee!==void 0&&this.redoStack.push(ee),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 ee(z,oe,se){var ne=ae.call(this,z,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 je("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorCurve&&z!==this.visibleCurve&&!this.curveGrip.ownsTarget(z))},ee.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ee.prototype.createVisual=function(){this.visual=we.createGroup(),this.selectorCurve=we.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=we.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)},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=z.x,this.curveY=z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},ee.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),we.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),we.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),we.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=we.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=we.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)},ee.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ee.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-z/2,this.curveY-z/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()))},ee.prototype.manipulate=function(z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+z.y-this.manipulationStartY),ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){this.activeGrip===this.curveGrip&&(this.curveX=z.x,this.curveY=z.y),ae.prototype.resize.call(this,z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual()},ee.prototype.scale=function(z,oe){this.curveX=this.curveX*z,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,z,oe)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var oe=z;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},ee.typeName="CurveMarker",ee.title="Curve marker",ee.icon='',ee}(Xe),Qt=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,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 je("Line color",Ce(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new je("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new ot("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new He("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new je("Text color",se.defaultColorSet,ne.textColor,ve),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return qe(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.frame&&z!==this.captionBg&&z!==this.captionElement)},ee.prototype.createVisual=function(){this.visual=we.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=we.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=we.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=we.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()},ee.prototype.setCaptionText=function(z){this.captionText=z,this.captionElement.textContent=this.captionText,this.sizeCaption()},ee.prototype.pointerDown=function(z,oe){ae.prototype.pointerDown.call(this,z,oe),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.sizeCaption=function(){var z=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=z.width+2*this.PADDING,this.captionBoxHeight=z.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),we.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')"]]),we.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')"]])},ee.prototype.showTextEditor=function(){var z=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"&&z.finishTextEditing(z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){z.finishTextEditing(z.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){z.finishTextEditing(z.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ee.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"))},ee.prototype.finishTextEditing=function(z){this.setCaptionText(z.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ee.prototype.setFont=function(z){this.captionElement&&we.setAttributes(this.captionElement,[["font-family",z]]),this.fontFamily=z,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ee.prototype.setTextColor=function(z){this.captionElement&&we.setAttributes(this.captionElement,[["fill",z]]),this.textColor=z,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),we.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.dblClick=function(z,oe){ae.prototype.dblClick.call(this,z,oe),this.showTextEditor()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.frame&&we.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.captionBg&&we.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.frame&&we.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.frame&&we.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=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 z.typeName=this.typeName,z},ee.prototype.restoreState=function(z){var oe=z;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,z),this.setSize()},ee.prototype.scale=function(z,oe){ae.prototype.scale.call(this,z,oe),this.setSize()},ee.typeName="CaptionFrameMarker",ee.title="Caption frame marker",ee.icon='',ee}(st),Mt=function(){function ae(ee,z){z===void 0&&(z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ee,this.cancelable=z}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),$t=function(ae){function ee(z,oe,se){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return qe(ee,ae),ee}(Mt),Re=function(ae){function ee(z,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,z,se)||this;return ne.marker=oe,ne}return qe(ee,ae),ee}(Mt),Tt=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(ee,z){this[ee].push(z)},ae.prototype.removeEventListener=function(ee,z){var oe=this[ee].indexOf(z);oe>-1&&this[ee].splice(oe,1)},ae}(),lt=function(){function ae(ee){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new tt,this._isOpen=!1,this.undoRedoManager=new Ze,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 Tt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ee,this.targetRoot=document.body,this.width=ee.clientWidth,this.height=ee.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[St,it,kt,at,Ie,Ft,Et,Ye,bt,Oe,ft,Qe,Qt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[St,it,kt,at,Ft,Et,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[St,it,kt,at,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ee){var z=this;this._availableMarkerTypes.splice(0),ee.forEach(function(oe){if(typeof oe=="string"){var se=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&z._availableMarkerTypes.push(se)}else z._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(ee){this._zoomLevel=ee,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(),Le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ee=this;this.styles.styleSheetRoot===void 0&&ke.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ke.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new Mt(ee))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var ee;return We(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(ee=new _e).naturalSize=this.renderAtNaturalSize,ee.imageType=this.renderImageType,ee.imageQuality=this.renderImageQuality,ee.markersOnly=this.renderMarkersOnly,ee.width=this.renderWidth,ee.height=this.renderHeight,[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return z.sent(),[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,z.sent()]}})})},ae.prototype.close=function(ee){var z=this;if(ee===void 0&&(ee=!1),this.isOpen){var oe=!1;ee||this.eventListeners.beforeclose.forEach(function(se){var ne=new Mt(z,!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 Mt(z))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ee,z=[],oe=0;oethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ee:this.editorCanvas.clientWidth,oe=z',ee.title="Powered by marker.js",ee.style.display="grid",ee.style.alignItems="center",ee.style.justifyItems="center",ee.style.padding="3px",ee.style.width="20px",ee.style.height="20px",this.logoUI.appendChild(ee),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 ee=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=ee+"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 vt(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(ee),1),ee.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(ee,z){if(ee==="marker"&&z!==void 0)this.createNewMarker(z);else if(ee==="action")switch(z){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 ee=this;if(this._currentMarker!==void 0){var z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Re(ee,ee._currentMarker,!0);se(ne),ne.defaultPrevented&&(z=!0)}),!z){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 Re(ee,oe))})}}},ae.prototype.clear=function(){var ee=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var ye=new Re(ee,void 0,!0);he(ye),ye.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var oe=function(he){var ye=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(nt){return nt(new Re(ee,ye))})},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 ee;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=(ee=this._currentMarker.notes)!==null&&ee!==void 0?ee:"",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 ee=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var z=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===z.width&&oe.height===z.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),se1&&this.panTo({x:ee.clientX,y:ee.clientY}))},ae.prototype.onPointerUp=function(ee){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ee.clientX,ee.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ee){this._currentMarker===void 0||this.notesArea!==void 0||ee.key!=="Delete"&&ee.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ee,z){var oe=this.markerImage.getBoundingClientRect();return{x:(ee-oe.left)/this.zoomLevel,y:(z-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ee=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ee+"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(ee){Le.addKey(ee)},ae.prototype.addEventListener=function(ee,z){this.eventListeners.addEventListener(ee,z)},ae.prototype.removeEventListener=function(ee,z){this.eventListeners.removeEventListener(ee,z)},ae.prototype.renderState=function(ee){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ee),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ee=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(z){return z(new Mt(ee))}))},ae.prototype.blur=function(){var ee=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(z){return z(new Mt(ee))}))},ae.instanceCounter=0,ae}()},6551:function(Vt,Lt,ie){"use strict";ie.d(Lt,{ZP:function(){return Le}});var re=ie(72190),qe=ie(59301),ge=ie(47273),We=0,Ce=(0,ge.Z)();function we(){var _e;return Ce?(_e=We,We+=1):_e="TEST_OR_SSR",_e}function Le(_e){var ke=qe.useState(),fe=(0,re.Z)(ke,2),Ge=fe[0],Se=fe[1];return qe.useEffect(function(){Se("rc_select_".concat(we()))},[]),_e||Ge}},37463:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Ac:function(){return dt},Xo:function(){return Pt},Wx:function(){return nn},ZP:function(){return Xn},lk:function(){return Ct}});var re=ie(60499),qe=ie(77654),ge=ie(18642),We=ie(85899),Ce=ie(72190),we=ie(42244),Le=ie(43749),_e=ie(18929),ke=ie(48736),fe=ie(59301),Ge=ie(92310),Se=ie.n(Ge),vt=ie(34280),Ke=ie(49658),Fe=ie(8654),je=function(Ue){var be=Ue.className,De=Ue.customizeIcon,xe=Ue.customizeIconProps,Te=Ue.children,ct=Ue.onMouseDown,Gt=Ue.onClick,_t=typeof De=="function"?De(xe):De;return fe.createElement("span",{className:be,onMouseDown:function(Rt){Rt.preventDefault(),ct==null||ct(Rt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Gt,"aria-hidden":!0},_t!==void 0?_t:fe.createElement("span",{className:Se()(be.split(/\s+/).map(function(an){return"".concat(an,"-icon")}))},Te))},Ne=je,ht=function(Ue,be,De,xe,Te){var ct=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Gt=arguments.length>6?arguments[6]:void 0,_t=arguments.length>7?arguments[7]:void 0,an=fe.useMemo(function(){if((0,Le.Z)(xe)==="object")return xe.clearIcon;if(Te)return Te},[xe,Te]),Rt=fe.useMemo(function(){return!!(!ct&&xe&&(De.length||Gt)&&!(_t==="combobox"&&Gt===""))},[xe,ct,De.length,Gt,_t]);return{allowClear:Rt,clearIcon:fe.createElement(Ne,{className:"".concat(Ue,"-clear"),onMouseDown:be,customizeIcon:an},"\xD7")}},yt=fe.createContext(null);function Ct(){return fe.useContext(yt)}function st(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ue=fe.useState(!1),be=(0,Ce.Z)(Ue,2),De=be[0],xe=be[1],Te=fe.useRef(null),ct=function(){window.clearTimeout(Te.current)};fe.useEffect(function(){return ct},[]);var Gt=function(an,Rt){ct(),Te.current=window.setTimeout(function(){xe(an),Rt&&Rt()},Pe)};return[De,Gt,ct]}function rt(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ue=fe.useRef(null),be=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(be.current)}},[]);function De(xe){(xe||Ue.current===null)&&(Ue.current=xe),window.clearTimeout(be.current),be.current=window.setTimeout(function(){Ue.current=null},Pe)}return[function(){return Ue.current},De]}function ot(Pe,Ue,be,De){var xe=fe.useRef(null);xe.current={open:Ue,triggerOpen:be,customizedTrigger:De},fe.useEffect(function(){function Te(ct){var Gt;if(!((Gt=xe.current)!==null&&Gt!==void 0&&Gt.customizedTrigger)){var _t=ct.target;_t.shadowRoot&&ct.composed&&(_t=ct.composedPath()[0]||_t),xe.current.open&&Pe().filter(function(an){return an}).every(function(an){return!an.contains(_t)&&an!==_t})&&xe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Te),function(){return window.removeEventListener("mousedown",Te)}},[])}var He=ie(10228);function St(Pe){return Pe&&![He.Z.ESC,He.Z.SHIFT,He.Z.BACKSPACE,He.Z.TAB,He.Z.WIN_KEY,He.Z.ALT,He.Z.META,He.Z.WIN_KEY_RIGHT,He.Z.CTRL,He.Z.SEMICOLON,He.Z.EQUALS,He.Z.CAPS_LOCK,He.Z.CONTEXT_MENU,He.Z.F1,He.Z.F2,He.Z.F3,He.Z.F4,He.Z.F5,He.Z.F6,He.Z.F7,He.Z.F8,He.Z.F9,He.Z.F10,He.Z.F11,He.Z.F12].includes(Pe)}var tt=ie(26112),Xe=ie(83836);function ft(Pe,Ue,be){var De=(0,We.Z)((0,We.Z)({},Pe),be?Ue:{});return Object.keys(Ue).forEach(function(xe){var Te=Ue[xe];typeof Te=="function"&&(De[xe]=function(){for(var ct,Gt=arguments.length,_t=new Array(Gt),an=0;anJn&&(wn="".concat(Sn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(jt)};return typeof Dn=="function"?zr(en,wn,kn,tn,rr):Dr(jt,wn,kn,tn,rr)},_n=function(jt){if(!xe.length)return null;var kn=typeof In=="function"?In(jt):In;return typeof Dn=="function"?zr(void 0,kn,!1,!1,void 0,!0):Dr({title:kn},kn,!1)},qt=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){Wr(!0)},onBlur:function(){Wr(!1)}},fe.createElement(kt,{ref:_t,open:Te,prefixCls:De,id:be,inputElement:null,disabled:Rt,autoFocus:Jt,autoComplete:vn,editable:Ir,activeDescendantId:hn,value:Ar,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:vr,onBlur:mr,tabIndex:pn,attrs:(0,tt.Z)(Ue,!0)}),fe.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),ln=fe.createElement(Xe.Z,{prefixCls:"".concat(Er,"-overflow"),data:xe,renderItem:fr,renderRest:_n,suffix:qt,itemKey:Ie,maxCount:Yn});return fe.createElement("span",{className:"".concat(Er,"-wrap")},ln,!xe.length&&!Ar&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},an))},Qt=Qe,Mt=function(Ue){var be=Ue.inputElement,De=Ue.prefixCls,xe=Ue.id,Te=Ue.inputRef,ct=Ue.disabled,Gt=Ue.autoFocus,_t=Ue.autoComplete,an=Ue.activeDescendantId,Rt=Ue.mode,wt=Ue.open,mt=Ue.values,Jt=Ue.placeholder,vn=Ue.tabIndex,hn=Ue.showSearch,pn=Ue.searchValue,Gn=Ue.activeValue,Yn=Ue.maxLength,Jn=Ue.onInputKeyDown,Rn=Ue.onInputMouseDown,In=Ue.onInputChange,Dn=Ue.onInputPaste,Wn=Ue.onInputCompositionStart,ur=Ue.onInputCompositionEnd,qn=Ue.onInputBlur,lr=Ue.title,ir=fe.useState(!1),er=(0,Ce.Z)(ir,2),tr=er[0],vr=er[1],mr=Rt==="combobox",cr=mr||hn,gr=mt[0],Cr=pn||"";mr&&Gn&&!tr&&(Cr=Gn),fe.useEffect(function(){mr&&vr(!1)},[mr,Gn]);var or=Rt!=="combobox"&&!wt&&!hn?!1:!!Cr,dr=lr===void 0?Ft(gr):lr,zn=fe.useMemo(function(){return gr?null:fe.createElement("span",{className:"".concat(De,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},Jt)},[gr,or,Jt,De]);return fe.createElement("span",{className:"".concat(De,"-selection-wrap")},fe.createElement("span",{className:"".concat(De,"-selection-search")},fe.createElement(kt,{ref:Te,prefixCls:De,id:xe,open:wt,inputElement:be,disabled:ct,autoFocus:Gt,autoComplete:_t,editable:cr,activeDescendantId:an,value:Cr,onKeyDown:Jn,onMouseDown:Rn,onChange:function(Rr){vr(!0),In(Rr)},onPaste:Dn,onCompositionStart:Wn,onCompositionEnd:ur,onBlur:qn,tabIndex:vn,attrs:(0,tt.Z)(Ue,!0),maxLength:mr?Yn:void 0})),!mr&&gr?fe.createElement("span",{className:"".concat(De,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},gr.label):null,zn)},$t=Mt,Re=function(Ue,be){var De=(0,fe.useRef)(null),xe=(0,fe.useRef)(!1),Te=Ue.prefixCls,ct=Ue.open,Gt=Ue.mode,_t=Ue.showSearch,an=Ue.tokenWithEnter,Rt=Ue.disabled,wt=Ue.prefix,mt=Ue.autoClearSearchValue,Jt=Ue.onSearch,vn=Ue.onSearchSubmit,hn=Ue.onToggleOpen,pn=Ue.onInputKeyDown,Gn=Ue.onInputBlur,Yn=Ue.domRef;fe.useImperativeHandle(be,function(){return{focus:function(dr){De.current.focus(dr)},blur:function(){De.current.blur()}}});var Jn=rt(0),Rn=(0,Ce.Z)(Jn,2),In=Rn[0],Dn=Rn[1],Wn=function(dr){var zn=dr.which,wr=De.current instanceof HTMLTextAreaElement;!wr&&ct&&(zn===He.Z.UP||zn===He.Z.DOWN)&&dr.preventDefault(),pn&&pn(dr),zn===He.Z.ENTER&&Gt==="tags"&&!xe.current&&!ct&&(vn==null||vn(dr.target.value)),!(wr&&!ct&&~[He.Z.UP,He.Z.DOWN,He.Z.LEFT,He.Z.RIGHT].indexOf(zn))&&St(zn)&&hn(!0)},ur=function(){Dn(!0)},qn=(0,fe.useRef)(null),lr=function(dr){Jt(dr,!0,xe.current)!==!1&&hn(!0)},ir=function(){xe.current=!0},er=function(dr){xe.current=!1,Gt!=="combobox"&&lr(dr.target.value)},tr=function(dr){var zn=dr.target.value;if(an&&qn.current&&/[\r\n]/.test(qn.current)){var wr=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");zn=zn.replace(wr,qn.current)}qn.current=null,lr(zn)},vr=function(dr){var zn=dr.clipboardData,wr=zn==null?void 0:zn.getData("text");qn.current=wr||""},mr=function(dr){var zn=dr.target;if(zn!==De.current){var wr=document.body.style.msTouchAction!==void 0;wr?setTimeout(function(){De.current.focus()}):De.current.focus()}},cr=function(dr){var zn=In();dr.target!==De.current&&!zn&&!(Gt==="combobox"&&Rt)&&dr.preventDefault(),(Gt!=="combobox"&&(!_t||!zn)||!ct)&&(ct&&mt!==!1&&Jt("",!0,!1),hn())},gr={inputRef:De,onInputKeyDown:Wn,onInputMouseDown:ur,onInputChange:tr,onInputPaste:vr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Gn},Cr=Gt==="multiple"||Gt==="tags"?fe.createElement(Qt,(0,re.Z)({},Ue,gr)):fe.createElement($t,(0,re.Z)({},Ue,gr));return fe.createElement("div",{ref:Yn,className:"".concat(Te,"-selector"),onClick:mr,onMouseDown:cr},wt&&fe.createElement("div",{className:"".concat(Te,"-prefix")},wt),Cr)},Tt=fe.forwardRef(Re),lt=Tt,ae=ie(68196),ee=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(Ue){var be=Ue===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"}}},oe=function(Ue,be){var De=Ue.prefixCls,xe=Ue.disabled,Te=Ue.visible,ct=Ue.children,Gt=Ue.popupElement,_t=Ue.animation,an=Ue.transitionName,Rt=Ue.dropdownStyle,wt=Ue.dropdownClassName,mt=Ue.direction,Jt=mt===void 0?"ltr":mt,vn=Ue.placement,hn=Ue.builtinPlacements,pn=Ue.dropdownMatchSelectWidth,Gn=Ue.dropdownRender,Yn=Ue.dropdownAlign,Jn=Ue.getPopupContainer,Rn=Ue.empty,In=Ue.getTriggerDOMNode,Dn=Ue.onPopupVisibleChange,Wn=Ue.onPopupMouseEnter,ur=(0,we.Z)(Ue,ee),qn="".concat(De,"-dropdown"),lr=Gt;Gn&&(lr=Gn(Gt));var ir=fe.useMemo(function(){return hn||z(pn)},[hn,pn]),er=_t?"".concat(qn,"-").concat(_t):an,tr=typeof pn=="number",vr=fe.useMemo(function(){return tr?null:pn===!1?"minWidth":"width"},[pn,tr]),mr=Rt;tr&&(mr=(0,We.Z)((0,We.Z)({},mr),{},{width:pn}));var cr=fe.useRef(null);return fe.useImperativeHandle(be,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),fe.createElement(ae.Z,(0,re.Z)({},ur,{showAction:Dn?["click"]:[],hideAction:Dn?["click"]:[],popupPlacement:vn||(Jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Wn},lr),ref:cr,stretch:vr,popupAlign:Yn,popupVisible:Te,getPopupContainer:Jn,popupClassName:Se()(wt,(0,ge.Z)({},"".concat(qn,"-empty"),Rn)),popupStyle:mr,getTriggerDOMNode:In,onPopupVisibleChange:Dn}),ct)},se=fe.forwardRef(oe),ne=se,he=ie(48745);function ye(Pe,Ue){var be=Pe.key,De;return"value"in Pe&&(De=Pe.value),be!=null?be:De!==void 0?De:"rc-index-key-".concat(Ue)}function nt(Pe){return typeof Pe!="undefined"&&!Number.isNaN(Pe)}function Ee(Pe,Ue){var be=Pe||{},De=be.label,xe=be.value,Te=be.options,ct=be.groupLabel,Gt=De||(Ue?"children":"label");return{label:Gt,value:xe||"value",options:Te||"options",groupLabel:ct||Gt}}function ze(Pe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=Ue.fieldNames,De=Ue.childrenAsData,xe=[],Te=Ee(be,!1),ct=Te.label,Gt=Te.value,_t=Te.options,an=Te.groupLabel;function Rt(wt,mt){Array.isArray(wt)&&wt.forEach(function(Jt){if(mt||!(_t in Jt)){var vn=Jt[Gt];xe.push({key:ye(Jt,xe.length),groupOption:mt,data:Jt,label:Jt[ct],value:vn})}else{var hn=Jt[an];hn===void 0&&De&&(hn=Jt.label),xe.push({key:ye(Jt,xe.length),group:!0,data:Jt,label:hn}),Rt(Jt[_t],!0)}})}return Rt(Pe,!1),xe}function Je(Pe){var Ue=(0,We.Z)({},Pe);return"props"in Ue||Object.defineProperty(Ue,"props",{get:function(){return(0,ke.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ue}}),Ue}var pt=function(Ue,be,De){if(!be||!be.length)return null;var xe=!1,Te=function Gt(_t,an){var Rt=(0,he.Z)(an),wt=Rt[0],mt=Rt.slice(1);if(!wt)return[_t];var Jt=_t.split(wt);return xe=xe||Jt.length>1,Jt.reduce(function(vn,hn){return[].concat((0,qe.Z)(vn),(0,qe.Z)(Gt(hn,mt)))},[]).filter(Boolean)},ct=Te(Ue,be);return xe?typeof De!="undefined"?ct.slice(0,De):ct:null},ut=fe.createContext(null),At=ut;function Bt(Pe){var Ue=Pe.visible,be=Pe.values;if(!Ue)return null;var De=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(be.slice(0,De).map(function(xe){var Te=xe.label,ct=xe.value;return["number","string"].includes((0,Le.Z)(Te))?Te:ct}).join(", ")),be.length>De?", ...":null)}var Dt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ut=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Wt=function(Ue){return Ue==="tags"||Ue==="multiple"},Zt=fe.forwardRef(function(Pe,Ue){var be,De=Pe.id,xe=Pe.prefixCls,Te=Pe.className,ct=Pe.showSearch,Gt=Pe.tagRender,_t=Pe.direction,an=Pe.omitDomProps,Rt=Pe.displayValues,wt=Pe.onDisplayValuesChange,mt=Pe.emptyOptions,Jt=Pe.notFoundContent,vn=Jt===void 0?"Not Found":Jt,hn=Pe.onClear,pn=Pe.mode,Gn=Pe.disabled,Yn=Pe.loading,Jn=Pe.getInputElement,Rn=Pe.getRawInputElement,In=Pe.open,Dn=Pe.defaultOpen,Wn=Pe.onDropdownVisibleChange,ur=Pe.activeValue,qn=Pe.onActiveValueChange,lr=Pe.activeDescendantId,ir=Pe.searchValue,er=Pe.autoClearSearchValue,tr=Pe.onSearch,vr=Pe.onSearchSplit,mr=Pe.tokenSeparators,cr=Pe.allowClear,gr=Pe.prefix,Cr=Pe.suffixIcon,or=Pe.clearIcon,dr=Pe.OptionList,zn=Pe.animation,wr=Pe.transitionName,Rr=Pe.dropdownStyle,Wr=Pe.dropdownClassName,Er=Pe.dropdownMatchSelectWidth,Ar=Pe.dropdownRender,Ir=Pe.dropdownAlign,Dr=Pe.placement,zr=Pe.builtinPlacements,fr=Pe.getPopupContainer,_n=Pe.showAction,qt=_n===void 0?[]:_n,ln=Pe.onFocus,rn=Pe.onBlur,jt=Pe.onKeyUp,kn=Pe.onKeyDown,An=Pe.onMouseDown,en=(0,we.Z)(Pe,Dt),tn=Wt(pn),wn=(ct!==void 0?ct:tn)||pn==="combobox",Sn=(0,We.Z)({},en);Ut.forEach(function(Or){delete Sn[Or]}),an==null||an.forEach(function(Or){delete Sn[Or]});var rr=fe.useState(!1),kr=(0,Ce.Z)(rr,2),br=kr[0],Pr=kr[1];fe.useEffect(function(){Pr((0,Ke.Z)())},[]);var Mr=fe.useRef(null),Tr=fe.useRef(null),$r=fe.useRef(null),Lr=fe.useRef(null),Gr=fe.useRef(null),ti=fe.useRef(!1),Mi=st(),Fi=(0,Ce.Z)(Mi,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];fe.useImperativeHandle(Ue,function(){var Or,xr;return{focus:(Or=Lr.current)===null||Or===void 0?void 0:Or.focus,blur:(xr=Lr.current)===null||xr===void 0?void 0:xr.blur,scrollTo:function(fi){var Yr;return(Yr=Gr.current)===null||Yr===void 0?void 0:Yr.scrollTo(fi)},nativeElement:Mr.current||Tr.current}});var Br=fe.useMemo(function(){var Or;if(pn!=="combobox")return ir;var xr=(Or=Rt[0])===null||Or===void 0?void 0:Or.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,pn,Rt]),to=pn==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof Rn=="function"&&Rn(),Bi=(0,Fe.x1)(Tr,ni==null||(be=ni.props)===null||be===void 0?void 0:be.ref),ao=fe.useState(!1),Yi=(0,Ce.Z)(ao,2),gi=Yi[0],Ai=Yi[1];(0,vt.Z)(function(){Ai(!0)},[]);var Vr=(0,_e.Z)(!1,{defaultValue:Dn,value:In}),zi=(0,Ce.Z)(Vr,2),lo=zi[0],ji=zi[1],Qr=gi?lo:!1,xo=!vn&&mt;(Gn||xo&&Qr&&pn==="combobox")&&(Qr=!1);var so=xo?!1:Qr,ar=fe.useCallback(function(Or){var xr=Or!==void 0?Or:!Qr;Gn||(ji(xr),Qr!==xr&&(Wn==null||Wn(xr)))},[Gn,Qr,ji,Wn]),yr=fe.useMemo(function(){return(mr||[]).some(function(Or){return[` `,`\r `].includes(Or)})},[mr]),hr=fe.useContext(At)||{},pr=hr.maxCount,Nr=hr.rawValues,jr=function(xr,ci,fi){if(!(tn&&nt(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Vi=pt(xr,mr,nt(pr)?pr-Nr.size:void 0),Wi=fi?null:Vi;return pn!=="combobox"&&Wi&&(ri="",vr==null||vr(Wi),ar(!1),Yr=!1),tr&&Br!==ri&&tr(ri,{source:ci?"typing":"effect"}),Yr}},Zi=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};fe.useEffect(function(){!Qr&&!tn&&pn!=="combobox"&&jr("",!1,!1)},[Qr]),fe.useEffect(function(){lo&&Gn&&ji(!1),Gn&&!ti.current&&mi(!1)},[Gn]);var vi=rt(),ui=(0,Ce.Z)(vi,2),Xr=ui[0],$i=ui[1],Ji=fe.useRef(!1),Oi=function(xr){var ci=Xr(),fi=xr.key,Yr=fi==="Enter";if(Yr&&(pn!=="combobox"&&xr.preventDefault(),Qr||ar(!0)),$i(!!Br),fi==="Backspace"&&!ci&&tn&&!Br&&Rt.length){for(var ri=(0,qe.Z)(Rt),Vi=null,Wi=ri.length-1;Wi>=0;Wi-=1){var ro=ri[Wi];if(!ro.disabled){ri.splice(Wi,1),Vi=ro;break}}Vi&&wt(ri,{type:"remove",values:[Vi]})}for(var Pi=arguments.length,Di=new Array(Pi>1?Pi-1:0),Ui=1;Ui1?ci-1:0),Yr=1;Yr1?Vi-1:0),ro=1;ro=vn},[Gt,vn,Rn==null?void 0:Rn.size]),mr=function(qt){qt.preventDefault()},cr=function(qt){var ln;(ln=tr.current)===null||ln===void 0||ln.scrollTo(typeof qt=="number"?{index:qt}:qt)},gr=fe.useCallback(function(_n){return _t==="combobox"?!1:Rn.has(_n)},[_t,(0,qe.Z)(Rn).toString(),Rn.size]),Cr=function(qt){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rn=er.length,jt=0;jt1&&arguments[1]!==void 0?arguments[1]:!1;wr(qt);var rn={source:ln?"keyboard":"mouse"},jt=er[qt];if(!jt){pn(null,-1,rn);return}pn(jt.value,qt,rn)};(0,fe.useEffect)(function(){Rr(Gn!==!1?Cr(0):-1)},[er.length,an]);var Wr=fe.useCallback(function(_n){return _t==="combobox"?String(_n).toLowerCase()===an.toLowerCase():Rn.has(_n)},[_t,an,(0,qe.Z)(Rn).toString(),Rn.size]);(0,fe.useEffect)(function(){var _n=setTimeout(function(){if(!Gt&&ct&&Rn.size===1){var ln=Array.from(Rn)[0],rn=er.findIndex(function(jt){var kn=jt.data;return an?String(kn.value).startsWith(an):kn.value===ln});rn!==-1&&(Rr(rn),cr(rn))}});if(ct){var qt;(qt=tr.current)===null||qt===void 0||qt.scrollTo(void 0)}return function(){return clearTimeout(_n)}},[ct,an]);var Er=function(qt){qt!==void 0&&Yn(qt,{selected:!Rn.has(qt)}),Gt||Rt(!1)};if(fe.useImperativeHandle(be,function(){return{onKeyDown:function(qt){var ln=qt.which,rn=qt.ctrlKey;switch(ln){case He.Z.N:case He.Z.P:case He.Z.UP:case He.Z.DOWN:{var jt=0;if(ln===He.Z.UP?jt=-1:ln===He.Z.DOWN?jt=1:et()&&rn&&(ln===He.Z.N?jt=1:ln===He.Z.P&&(jt=-1)),jt!==0){var kn=Cr(zn+jt,jt);cr(kn),Rr(kn,!0)}break}case He.Z.TAB:case He.Z.ENTER:{var An,en=er[zn];en&&!(en!=null&&(An=en.data)!==null&&An!==void 0&&An.disabled)&&!vr?Er(en.value):Er(void 0),ct&&qt.preventDefault();break}case He.Z.ESC:Rt(!1),ct&&qt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(qt){cr(qt)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Te,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},wt);var Ar=Object.keys(In).map(function(_n){return In[_n]}),Ir=function(qt){return qt.label};function Dr(_n,qt){var ln=_n.group;return{role:ln?"presentation":"option",id:"".concat(Te,"_list_").concat(qt)}}var zr=function(qt){var ln=er[qt];if(!ln)return null;var rn=ln.data||{},jt=rn.value,kn=ln.group,An=(0,tt.Z)(rn,!0),en=Ir(ln);return ln?fe.createElement("div",(0,re.Z)({"aria-label":typeof en=="string"&&!kn?en:null},An,{key:qt},Dr(ln,qt),{"aria-selected":Wr(jt)}),jt):null},fr={role:"listbox",id:"".concat(Te,"_list")};return fe.createElement(fe.Fragment,null,Dn&&fe.createElement("div",(0,re.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),zr(zn-1),zr(zn),zr(zn+1)),fe.createElement(Me.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:mt,virtual:Dn,direction:Wn,innerProps:Dn?null:fr},function(_n,qt){var ln=_n.group,rn=_n.groupOption,jt=_n.data,kn=_n.label,An=_n.value,en=jt.key;if(ln){var tn,wn=(tn=jt.title)!==null&&tn!==void 0?tn:Nt(kn)?kn.toString():void 0;return fe.createElement("div",{className:Se()(ir,"".concat(ir,"-group"),jt.className),title:wn},kn!==void 0?kn:en)}var Sn=jt.disabled,rr=jt.title,kr=jt.children,br=jt.style,Pr=jt.className,Mr=(0,we.Z)(jt,gt),Tr=(0,fn.Z)(Mr,Ar),$r=gr(An),Lr=Sn||!$r&&vr,Gr="".concat(ir,"-option"),ti=Se()(ir,Gr,Pr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Gr,"-grouped"),rn),"".concat(Gr,"-active"),zn===qt&&!Lr),"".concat(Gr,"-disabled"),Lr),"".concat(Gr,"-selected"),$r)),Mi=Ir(_n),Fi=!Jn||typeof Jn=="function"||$r,xi=typeof Mi=="number"?Mi:Mi||An,mi=Nt(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),fe.createElement("div",(0,re.Z)({},(0,tt.Z)(Tr),Dn?{}:Dr(_n,qt),{"aria-selected":Wr(An),className:ti,title:mi,onMouseMove:function(){zn===qt||Lr||Rr(qt)},onClick:function(){Lr||Er(An)},style:br}),fe.createElement("div",{className:"".concat(Gr,"-content")},typeof lr=="function"?lr(_n,{index:qt}):xi),fe.isValidElement(Jn)||$r,Fi&&fe.createElement(Ne,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:An,disabled:Lr,isSelected:$r}},$r?"\u2713":null))}))},cn=fe.forwardRef(on),Bn=cn,Mn=function(Pe,Ue){var be=fe.useRef({values:new Map,options:new Map}),De=fe.useMemo(function(){var Te=be.current,ct=Te.values,Gt=Te.options,_t=Pe.map(function(wt){if(wt.label===void 0){var mt;return(0,We.Z)((0,We.Z)({},wt),{},{label:(mt=ct.get(wt.value))===null||mt===void 0?void 0:mt.label})}return wt}),an=new Map,Rt=new Map;return _t.forEach(function(wt){an.set(wt.value,wt),Rt.set(wt.value,Ue.get(wt.value)||Gt.get(wt.value))}),be.current.values=an,be.current.options=Rt,_t},[Pe,Ue]),xe=fe.useCallback(function(Te){return Ue.get(Te)||be.current.options.get(Te)},[Ue]);return[De,xe]};function sn(Pe,Ue){return Oe(Pe).join("").toUpperCase().includes(Ue)}var bn=function(Pe,Ue,be,De,xe){return fe.useMemo(function(){if(!be||De===!1)return Pe;var Te=Ue.options,ct=Ue.label,Gt=Ue.value,_t=[],an=typeof De=="function",Rt=be.toUpperCase(),wt=an?De:function(Jt,vn){return xe?sn(vn[xe],Rt):vn[Te]?sn(vn[ct!=="children"?ct:"label"],Rt):sn(vn[Gt],Rt)},mt=an?function(Jt){return Je(Jt)}:function(Jt){return Jt};return Pe.forEach(function(Jt){if(Jt[Te]){var vn=wt(be,mt(Jt));if(vn)_t.push(Jt);else{var hn=Jt[Te].filter(function(pn){return wt(be,mt(pn))});hn.length&&_t.push((0,We.Z)((0,We.Z)({},Jt),{},(0,ge.Z)({},Te,hn)))}return}wt(be,mt(Jt))&&_t.push(Jt)}),_t},[Pe,De,xe,be,Ue])},mn=ie(6551),$n=ie(11592),gn=["children","value"],En=["children"];function Xt(Pe){var Ue=Pe,be=Ue.key,De=Ue.props,xe=De.children,Te=De.value,ct=(0,we.Z)(De,gn);return(0,We.Z)({key:be,value:Te!==void 0?Te:be,children:xe},ct)}function xn(Pe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,$n.Z)(Pe).map(function(be,De){if(!fe.isValidElement(be)||!be.type)return null;var xe=be,Te=xe.type.isSelectOptGroup,ct=xe.key,Gt=xe.props,_t=Gt.children,an=(0,we.Z)(Gt,En);return Ue||!Te?Xt(be):(0,We.Z)((0,We.Z)({key:"__RC_SELECT_GRP__".concat(ct===null?De:ct,"__"),label:ct},an),{},{options:xn(_t)})}).filter(function(be){return be})}var dn=function(Ue,be,De,xe,Te){return fe.useMemo(function(){var ct=Ue,Gt=!Ue;Gt&&(ct=xn(be));var _t=new Map,an=new Map,Rt=function(Jt,vn,hn){hn&&typeof hn=="string"&&Jt.set(vn[hn],vn)},wt=function mt(Jt){for(var vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=0;hn1&&arguments[1]!==void 0?arguments[1]:!1,ct=0;ct0?ar(pr.options):pr.options}):pr})},Fi=fe.useMemo(function(){return Yn?Mi(ti):ti},[ti,Yn,fr]),xi=fe.useMemo(function(){return ze(Fi,{fieldNames:Ir,childrenAsData:Er})},[Fi,Ir,Er]),mi=function(yr){var hr=kn(yr);if(wn(hr),dr&&(hr.length!==br.length||hr.some(function(jr,Zi){var vi;return((vi=br[Zi])===null||vi===void 0?void 0:vi.value)!==(jr==null?void 0:jr.value)}))){var pr=or?hr:hr.map(function(jr){return jr.value}),Nr=hr.map(function(jr){return Je(Pr(jr.value))});dr(Wr?pr:pr[0],Wr?Nr:Nr[0])}},Xi=fe.useState(null),Br=(0,Ce.Z)(Xi,2),to=Br[0],ni=Br[1],Bi=fe.useState(0),ao=(0,Ce.Z)(Bi,2),Yi=ao[0],gi=ao[1],Ai=ur!==void 0?ur:De!=="combobox",Vr=fe.useCallback(function(ar,yr){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=hr.source,Nr=pr===void 0?"keyboard":pr;gi(yr),ct&&De==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[ct,De]),zi=function(yr,hr,pr){var Nr=function(){var no,Gi=Pr(yr);return[or?{label:Gi==null?void 0:Gi[Ir.label],value:yr,key:(no=Gi==null?void 0:Gi.key)!==null&&no!==void 0?no:yr}:yr,Je(Gi)]};if(hr&&Jt){var jr=Nr(),Zi=(0,Ce.Z)(jr,2),vi=Zi[0],ui=Zi[1];Jt(vi,ui)}else if(!hr&&vn&&pr!=="clear"){var Xr=Nr(),$i=(0,Ce.Z)(Xr,2),Ji=$i[0],Oi=$i[1];vn(Ji,Oi)}},lo=Vn(function(ar,yr){var hr,pr=Wr?yr.selected:!0;pr?hr=Wr?[].concat((0,qe.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),zi(ar,pr),De==="combobox"?ni(""):(!Wt||mt)&&(_n(""),ni(""))}),ji=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(jr){zi(jr.value,!1,pr)})},Qr=function(yr,hr){if(_n(yr),ni(null),hr.source==="submit"){var pr=(yr||"").trim();if(pr){var Nr=Array.from(new Set([].concat((0,qe.Z)(Tr),[pr])));mi(Nr),zi(pr,!0),_n("")}return}hr.source!=="blur"&&(De==="combobox"&&mi(yr),Rt==null||Rt(yr))},xo=function(yr){var hr=yr;De!=="tags"&&(hr=yr.map(function(Nr){var jr=rn.get(Nr);return jr==null?void 0:jr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,qe.Z)(Tr),(0,qe.Z)(hr))));mi(pr),pr.forEach(function(Nr){zi(Nr,!0)})},so=fe.useMemo(function(){var ar=lr!==!1&&pn!==!1;return(0,We.Z)((0,We.Z)({},qt),{},{flattenOptions:xi,onActiveValue:Vr,defaultActiveFirstOption:Ai,onSelect:lo,menuItemSelectedIcon:qn,rawValues:Tr,fieldNames:Ir,virtual:ar,direction:ir,listHeight:tr,listItemHeight:mr,childrenAsData:Er,maxCount:zn,optionRender:Dn})},[zn,qt,xi,Vr,Ai,lo,qn,Tr,Ir,lr,pn,ir,tr,mr,Er,Dn]);return fe.createElement(At.Provider,{value:so},fe.createElement(dt,(0,re.Z)({},wr,{id:Rr,prefixCls:Te,ref:Ue,omitDomProps:Qn,mode:De,displayValues:Mr,onDisplayValuesChange:ji,direction:ir,searchValue:fr,onSearch:Qr,autoClearSearchValue:mt,onSearchSplit:xo,dropdownMatchSelectWidth:pn,OptionList:Bn,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Yt=Ot;Yt.Option=nn,Yt.OptGroup=Pt;var Ln=Yt,Xn=Ln},22711:function(Vt,Lt,ie){"use strict";ie.r(Lt),ie.d(Lt,{ResizableTextArea:function(){return Be},default:function(){return kt}});var re=ie(60499),qe=ie(18642),ge=ie(85899),We=ie(77654),Ce=ie(72190),we=ie(42244),Le=ie(92310),_e=ie.n(Le),ke=ie(36901),fe=ie(66003),Ge=ie(30292),Se=ie(18929),vt=ie(59301),Ke=ie(43749),Fe=ie(29301),je=ie(34280),Ne=ie(16089),ht=` 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; `,yt=["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"],Ct={},st;function rt(Oe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if($e&&Ct[Et])return Ct[Et];var ve=window.getComputedStyle(Oe),ce=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),Ye=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),Ft=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),bt=yt.map(function(Ze){return"".concat(Ze,":").concat(ve.getPropertyValue(Ze))}).join(";"),Ie={sizingStyle:bt,paddingSize:Ye,borderSize:Ft,boxSizing:ce};return $e&&Et&&(Ct[Et]=Ie),Ie}function ot(Oe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;st||(st=document.createElement("textarea"),st.setAttribute("tab-index","-1"),st.setAttribute("aria-hidden","true"),st.setAttribute("name","hiddenTextarea"),document.body.appendChild(st)),Oe.getAttribute("wrap")?st.setAttribute("wrap",Oe.getAttribute("wrap")):st.removeAttribute("wrap");var ce=rt(Oe,$e),Ye=ce.paddingSize,Ft=ce.borderSize,bt=ce.boxSizing,Ie=ce.sizingStyle;st.setAttribute("style","".concat(Ie,";").concat(ht)),st.value=Oe.value||Oe.placeholder||"";var Ze=void 0,Qe=void 0,Qt,Mt=st.scrollHeight;if(bt==="border-box"?Mt+=Ft:bt==="content-box"&&(Mt-=Ye),Et!==null||ve!==null){st.value=" ";var $t=st.scrollHeight-Ye;Et!==null&&(Ze=$t*Et,bt==="border-box"&&(Ze=Ze+Ye+Ft),Mt=Math.max(Ze,Mt)),ve!==null&&(Qe=$t*ve,bt==="border-box"&&(Qe=Qe+Ye+Ft),Qt=Mt>Qe?"":"hidden",Mt=Math.min(Qe,Mt))}var Re={height:Mt,overflowY:Qt,resize:"none"};return Ze&&(Re.minHeight=Ze),Qe&&(Re.maxHeight=Qe),Re}var He=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],St=0,tt=1,Xe=2,ft=vt.forwardRef(function(Oe,$e){var Et=Oe,ve=Et.prefixCls,ce=Et.defaultValue,Ye=Et.value,Ft=Et.autoSize,bt=Et.onResize,Ie=Et.className,Ze=Et.style,Qe=Et.disabled,Qt=Et.onChange,Mt=Et.onInternalAutoSize,$t=(0,we.Z)(Et,He),Re=(0,Se.Z)(ce,{value:Ye,postState:function(nn){return nn!=null?nn:""}}),Tt=(0,Ce.Z)(Re,2),lt=Tt[0],ae=Tt[1],ee=function(nn){ae(nn.target.value),Qt==null||Qt(nn)},z=vt.useRef();vt.useImperativeHandle($e,function(){return{textArea:z.current}});var oe=vt.useMemo(function(){return Ft&&(0,Ke.Z)(Ft)==="object"?[Ft.minRows,Ft.maxRows]:[]},[Ft]),se=(0,Ce.Z)(oe,2),ne=se[0],he=se[1],ye=!!Ft,nt=function(){try{if(document.activeElement===z.current){var nn=z.current,yn=nn.selectionStart,fn=nn.selectionEnd,Me=nn.scrollTop;z.current.setSelectionRange(yn,fn),z.current.scrollTop=Me}}catch(et){}},Ee=vt.useState(Xe),ze=(0,Ce.Z)(Ee,2),Je=ze[0],pt=ze[1],ut=vt.useState(),At=(0,Ce.Z)(ut,2),Bt=At[0],Dt=At[1],Ut=function(){pt(St)};(0,je.Z)(function(){ye&&Ut()},[Ye,ne,he,ye]),(0,je.Z)(function(){if(Je===St)pt(tt);else if(Je===tt){var Ht=ot(z.current,!1,ne,he);pt(Xe),Dt(Ht)}else nt()},[Je]);var Wt=vt.useRef(),Zt=function(){Ne.Z.cancel(Wt.current)},dt=function(nn){Je===Xe&&(bt==null||bt(nn),Ft&&(Zt(),Wt.current=(0,Ne.Z)(function(){Ut()})))};vt.useEffect(function(){return Zt},[]);var zt=ye?Bt:null,Pt=(0,ge.Z)((0,ge.Z)({},Ze),zt);return(Je===St||Je===tt)&&(Pt.overflowY="hidden",Pt.overflowX="hidden"),vt.createElement(Fe.Z,{onResize:dt,disabled:!(Ft||bt)},vt.createElement("textarea",(0,re.Z)({},$t,{ref:z,style:Pt,className:_e()(ve,Ie,(0,qe.Z)({},"".concat(ve,"-disabled"),Qe)),disabled:Qe,value:lt,onChange:ee})))}),Be=ft,at=["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"],it=vt.forwardRef(function(Oe,$e){var Et,ve=Oe.defaultValue,ce=Oe.value,Ye=Oe.onFocus,Ft=Oe.onBlur,bt=Oe.onChange,Ie=Oe.allowClear,Ze=Oe.maxLength,Qe=Oe.onCompositionStart,Qt=Oe.onCompositionEnd,Mt=Oe.suffix,$t=Oe.prefixCls,Re=$t===void 0?"rc-textarea":$t,Tt=Oe.showCount,lt=Oe.count,ae=Oe.className,ee=Oe.style,z=Oe.disabled,oe=Oe.hidden,se=Oe.classNames,ne=Oe.styles,he=Oe.onResize,ye=Oe.onClear,nt=Oe.onPressEnter,Ee=Oe.readOnly,ze=Oe.autoSize,Je=Oe.onKeyDown,pt=(0,we.Z)(Oe,at),ut=(0,Se.Z)(ve,{value:ce,defaultValue:ve}),At=(0,Ce.Z)(ut,2),Bt=At[0],Dt=At[1],Ut=Bt==null?"":String(Bt),Wt=vt.useState(!1),Zt=(0,Ce.Z)(Wt,2),dt=Zt[0],zt=Zt[1],Pt=vt.useRef(!1),Ht=vt.useState(null),nn=(0,Ce.Z)(Ht,2),yn=nn[0],fn=nn[1],Me=(0,vt.useRef)(null),et=(0,vt.useRef)(null),gt=function(){var Yt;return(Yt=et.current)===null||Yt===void 0?void 0:Yt.textArea},Nt=function(){gt().focus()};(0,vt.useImperativeHandle)($e,function(){var Ot;return{resizableTextArea:et.current,focus:Nt,blur:function(){gt().blur()},nativeElement:((Ot=Me.current)===null||Ot===void 0?void 0:Ot.nativeElement)||gt()}}),(0,vt.useEffect)(function(){zt(function(Ot){return!z&&Ot})},[z]);var on=vt.useState(null),cn=(0,Ce.Z)(on,2),Bn=cn[0],Mn=cn[1];vt.useEffect(function(){if(Bn){var Ot;(Ot=gt()).setSelectionRange.apply(Ot,(0,We.Z)(Bn))}},[Bn]);var sn=(0,fe.Z)(lt,Tt),bn=(Et=sn.max)!==null&&Et!==void 0?Et:Ze,mn=Number(bn)>0,$n=sn.strategy(Ut),gn=!!bn&&$n>bn,En=function(Yt,Ln){var Xn=Ln;!Pt.current&&sn.exceedFormatter&&sn.max&&sn.strategy(Ln)>sn.max&&(Xn=sn.exceedFormatter(Ln,{max:sn.max}),Ln!==Xn&&Mn([gt().selectionStart||0,gt().selectionEnd||0])),Dt(Xn),(0,Ge.rJ)(Yt.currentTarget,Yt,bt,Xn)},Xt=function(Yt){Pt.current=!0,Qe==null||Qe(Yt)},xn=function(Yt){Pt.current=!1,En(Yt,Yt.currentTarget.value),Qt==null||Qt(Yt)},dn=function(Yt){En(Yt,Yt.target.value)},Tn=function(Yt){Yt.key==="Enter"&&nt&&nt(Yt),Je==null||Je(Yt)},Vn=function(Yt){zt(!0),Ye==null||Ye(Yt)},Hn=function(Yt){zt(!1),Ft==null||Ft(Yt)},Nn=function(Yt){Dt(""),Nt(),(0,Ge.rJ)(gt(),Yt,bt)},Un=Mt,Kn;sn.show&&(sn.showFormatter?Kn=sn.showFormatter({value:Ut,count:$n,maxLength:bn}):Kn="".concat($n).concat(mn?" / ".concat(bn):""),Un=vt.createElement(vt.Fragment,null,Un,vt.createElement("span",{className:_e()("".concat(Re,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Kn)));var Qn=function(Yt){var Ln;he==null||he(Yt),(Ln=gt())!==null&&Ln!==void 0&&Ln.style.height&&fn(!0)},Zn=!ze&&!Tt&&!Ie;return vt.createElement(ke.BaseInput,{ref:Me,value:Ut,allowClear:Ie,handleReset:Nn,suffix:Un,prefixCls:Re,classNames:(0,ge.Z)((0,ge.Z)({},se),{},{affixWrapper:_e()(se==null?void 0:se.affixWrapper,(0,qe.Z)((0,qe.Z)({},"".concat(Re,"-show-count"),Tt),"".concat(Re,"-textarea-allow-clear"),Ie))}),disabled:z,focused:dt,className:_e()(ae,gn&&"".concat(Re,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},ee),yn&&!Zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Kn=="string"?Kn:void 0}},hidden:oe,readOnly:Ee,onClear:ye},vt.createElement(Be,(0,re.Z)({},pt,{autoSize:ze,maxLength:Ze,onKeyDown:Tn,onChange:dn,onFocus:Vn,onBlur:Hn,onCompositionStart:Xt,onCompositionEnd:xn,className:_e()(se==null?void 0:se.textarea),style:(0,ge.Z)((0,ge.Z)({},ne==null?void 0:ne.textarea),{},{resize:ee==null?void 0:ee.resize}),disabled:z,prefixCls:Re,onResize:Qn,ref:et,readOnly:Ee})))}),me=it,kt=me},48911:function(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return lt}});var re=ie(60499),qe=ie(43749),ge=ie(85899),We=ie(18642),Ce=ie(72190),we=ie(42244),Le=ie(92310),_e=ie.n(Le),ke=ie(29301),fe=ie(70425),Ge=ie(34280),Se=ie(59301),vt=ie(4676),Ke=Se.forwardRef(function(ae,ee){var z=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,he=ae.prefixCls,ye=ae.onInnerResize,nt=ae.innerProps,Ee=ae.rtl,ze=ae.extra,Je={},pt={display:"flex",flexDirection:"column"};return oe!==void 0&&(Je={height:z,position:"relative",overflow:"hidden"},pt=(0,ge.Z)((0,ge.Z)({},pt),{},(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)({transform:"translateY(".concat(oe,"px)")},Ee?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Se.createElement("div",{style:Je},Se.createElement(ke.Z,{onResize:function(At){var Bt=At.offsetHeight;Bt&&ye&&ye()}},Se.createElement("div",(0,re.Z)({style:pt,className:_e()((0,We.Z)({},"".concat(he,"-holder-inner"),he)),ref:ee},nt),ne,ze)))});Ke.displayName="Filler";var Fe=Ke;function je(ae){var ee=ae.children,z=ae.setRef,oe=Se.useCallback(function(se){z(se)},[]);return Se.cloneElement(ee,{ref:oe})}function Ne(ae,ee,z,oe,se,ne,he,ye){var nt=ye.getKey;return ae.slice(ee,z+1).map(function(Ee,ze){var Je=ee+ze,pt=he(Ee,Je,{style:{width:oe},offsetX:se}),ut=nt(Ee);return Se.createElement(je,{key:ut,setRef:function(Bt){return ne(Ee,Bt)}},pt)})}function ht(ae,ee,z,oe){var se=z-ae,ne=ee-z,he=Math.min(se,ne)*2;if(oe<=he){var ye=Math.floor(oe/2);return oe%2?z+ye+1:z-ye}return se>ne?z-(oe-ne):z+(oe-se)}function yt(ae,ee,z){var oe=ae.length,se=ee.length,ne,he;if(oe===0&&se===0)return null;oe2&&arguments[2]!==void 0?arguments[2]:!1,Je=nt?Ee<0&&ye.current.left||Ee>0&&ye.current.right:Ee<0&&ye.current.top||Ee>0&&ye.current.bottom;return ze&&Je?(clearTimeout(ne.current),se.current=!1):(!Je||se.current)&&he(),!se.current&&Je}};function St(ae,ee,z,oe,se,ne,he){var ye=(0,Se.useRef)(0),nt=(0,Se.useRef)(null),Ee=(0,Se.useRef)(null),ze=(0,Se.useRef)(!1),Je=He(ee,z,oe,se);function pt(Wt,Zt){if(st.Z.cancel(nt.current),!Je(!1,Zt)){var dt=Wt;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;ye.current+=Zt,Ee.current=Zt,ot||dt.preventDefault(),nt.current=(0,st.Z)(function(){var zt=ze.current?10:1;he(ye.current*zt,!1),ye.current=0})}}function ut(Wt,Zt){he(Zt,!0),ot||Wt.preventDefault()}var At=(0,Se.useRef)(null),Bt=(0,Se.useRef)(null);function Dt(Wt){if(ae){st.Z.cancel(Bt.current),Bt.current=(0,st.Z)(function(){At.current=null},2);var Zt=Wt.deltaX,dt=Wt.deltaY,zt=Wt.shiftKey,Pt=Zt,Ht=dt;(At.current==="sx"||!At.current&&zt&&dt&&!Zt)&&(Pt=dt,Ht=0,At.current="sx");var nn=Math.abs(Pt),yn=Math.abs(Ht);At.current===null&&(At.current=ne&&nn>yn?"x":"y"),At.current==="y"?pt(Wt,Ht):ut(Wt,Pt)}}function Ut(Wt){ae&&(ze.current=Wt.detail===Ee.current)}return[Dt,Ut]}function tt(ae,ee,z,oe){var se=Se.useMemo(function(){return[new Map,[]]},[ae,z.id,oe]),ne=(0,Ce.Z)(se,2),he=ne[0],ye=ne[1],nt=function(ze){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ze,pt=he.get(ze),ut=he.get(Je);if(pt===void 0||ut===void 0)for(var At=ae.length,Bt=ye.length;Bt0&&arguments[0]!==void 0?arguments[0]:!1;ze();var At=function(){var Ut=!1;ye.current.forEach(function(Wt,Zt){if(Wt&&Wt.offsetParent){var dt=Wt.offsetHeight,zt=getComputedStyle(Wt),Pt=zt.marginTop,Ht=zt.marginBottom,nn=it(Pt),yn=it(Ht),fn=dt+nn+yn;nt.current.get(Zt)!==fn&&(nt.current.set(Zt,fn),Ut=!0)}}),Ut&&he(function(Wt){return Wt+1})};if(ut)At();else{Ee.current+=1;var Bt=Ee.current;Promise.resolve().then(function(){Bt===Ee.current&&At()})}}function pt(ut,At){var Bt=ae(ut),Dt=ye.current.get(Bt);At?(ye.current.set(Bt,At),Je()):ye.current.delete(Bt),!Dt!=!At&&(At?ee==null||ee(ut):z==null||z(ut))}return(0,Se.useEffect)(function(){return ze},[]),[pt,Je,nt.current,ne]}var kt=14/15;function Oe(ae,ee,z){var oe=(0,Se.useRef)(!1),se=(0,Se.useRef)(0),ne=(0,Se.useRef)(0),he=(0,Se.useRef)(null),ye=(0,Se.useRef)(null),nt,Ee=function(ut){if(oe.current){var At=Math.ceil(ut.touches[0].pageX),Bt=Math.ceil(ut.touches[0].pageY),Dt=se.current-At,Ut=ne.current-Bt,Wt=Math.abs(Dt)>Math.abs(Ut);Wt?se.current=At:ne.current=Bt;var Zt=z(Wt,Wt?Dt:Ut,!1,ut);Zt&&ut.preventDefault(),clearInterval(ye.current),Zt&&(ye.current=setInterval(function(){Wt?Dt*=kt:Ut*=kt;var dt=Math.floor(Wt?Dt:Ut);(!z(Wt,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(ye.current)},16))}},ze=function(){oe.current=!1,nt()},Je=function(ut){nt(),ut.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(ut.touches[0].pageX),ne.current=Math.ceil(ut.touches[0].pageY),he.current=ut.target,he.current.addEventListener("touchmove",Ee,{passive:!1}),he.current.addEventListener("touchend",ze,{passive:!0}))};nt=function(){he.current&&(he.current.removeEventListener("touchmove",Ee),he.current.removeEventListener("touchend",ze))},(0,Ge.Z)(function(){return ae&&ee.current.addEventListener("touchstart",Je,{passive:!0}),function(){var pt;(pt=ee.current)===null||pt===void 0||pt.removeEventListener("touchstart",Je),nt(),clearInterval(ye.current)}},[ae])}function $e(ae){return Math.floor(Math.pow(ae,.5))}function Et(ae,ee){var z="touches"in ae?ae.touches[0]:ae;return z[ee?"pageX":"pageY"]-window[ee?"scrollX":"scrollY"]}function ve(ae,ee,z){Se.useEffect(function(){var oe=ee.current;if(ae&&oe){var se=!1,ne,he,ye=function(){st.Z.cancel(ne)},nt=function pt(){ye(),ne=(0,st.Z)(function(){z(he),pt()})},Ee=function(){se=!1,ye()},ze=function(ut){if(!(ut.target.draggable||ut.button!==0)){var At=ut;At._virtualHandled||(At._virtualHandled=!0,se=!0)}},Je=function(ut){if(se){var At=Et(ut,!1),Bt=oe.getBoundingClientRect(),Dt=Bt.top,Ut=Bt.bottom;if(At<=Dt){var Wt=Dt-At;he=-$e(Wt),nt()}else if(At>=Ut){var Zt=At-Ut;he=$e(Zt),nt()}else ye()}};return oe.addEventListener("mousedown",ze),oe.ownerDocument.addEventListener("mouseup",Ee),oe.ownerDocument.addEventListener("mousemove",Je),oe.ownerDocument.addEventListener("dragend",Ee),function(){oe.removeEventListener("mousedown",ze),oe.ownerDocument.removeEventListener("mouseup",Ee),oe.ownerDocument.removeEventListener("mousemove",Je),oe.ownerDocument.removeEventListener("dragend",Ee),ye()}}},[ae])}var ce=10;function Ye(ae,ee,z,oe,se,ne,he,ye){var nt=Se.useRef(),Ee=Se.useState(null),ze=(0,Ce.Z)(Ee,2),Je=ze[0],pt=ze[1];return(0,Ge.Z)(function(){if(Je&&Je.times=0;Nt-=1){var on=se(ee[Nt]),cn=z.get(on);if(cn===void 0){Wt=!0;break}if(gt-=cn,gt<=0)break}switch(zt){case"top":dt=Ht-Dt;break;case"bottom":dt=nn-Ut+Dt;break;default:{var Bn=ae.current.scrollTop,Mn=Bn+Ut;HtMn&&(Zt="bottom")}}dt!==null&&he(dt),dt!==Je.lastTop&&(Wt=!0)}Wt&&pt((0,ge.Z)((0,ge.Z)({},Je),{},{times:Je.times+1,targetAlign:Zt,lastTop:dt}))}},[Je,ae.current]),function(ut){if(ut==null){ye();return}if(st.Z.cancel(nt.current),typeof ut=="number")he(ut);else if(ut&&(0,qe.Z)(ut)==="object"){var At,Bt=ut.align;"index"in ut?At=ut.index:At=ee.findIndex(function(Wt){return se(Wt)===ut.key});var Dt=ut.offset,Ut=Dt===void 0?0:Dt;pt({times:0,index:At,offset:Ut,originAlign:Bt})}}}var Ft=Se.forwardRef(function(ae,ee){var z=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,he=ae.onStartMove,ye=ae.onStopMove,nt=ae.onScroll,Ee=ae.horizontal,ze=ae.spinSize,Je=ae.containerSize,pt=ae.style,ut=ae.thumbStyle,At=ae.showScrollBar,Bt=Se.useState(!1),Dt=(0,Ce.Z)(Bt,2),Ut=Dt[0],Wt=Dt[1],Zt=Se.useState(null),dt=(0,Ce.Z)(Zt,2),zt=dt[0],Pt=dt[1],Ht=Se.useState(null),nn=(0,Ce.Z)(Ht,2),yn=nn[0],fn=nn[1],Me=!oe,et=Se.useRef(),gt=Se.useRef(),Nt=Se.useState(At),on=(0,Ce.Z)(Nt,2),cn=on[0],Bn=on[1],Mn=Se.useRef(),sn=function(){At===!0||At===!1||(clearTimeout(Mn.current),Bn(!0),Mn.current=setTimeout(function(){Bn(!1)},3e3))},bn=ne-Je||0,mn=Je-ze||0,$n=Se.useMemo(function(){if(se===0||bn===0)return 0;var Nn=se/bn;return Nn*mn},[se,bn,mn]),gn=function(Un){Un.stopPropagation(),Un.preventDefault()},En=Se.useRef({top:$n,dragging:Ut,pageY:zt,startTop:yn});En.current={top:$n,dragging:Ut,pageY:zt,startTop:yn};var Xt=function(Un){Wt(!0),Pt(Et(Un,Ee)),fn(En.current.top),he(),Un.stopPropagation(),Un.preventDefault()};Se.useEffect(function(){var Nn=function(Zn){Zn.preventDefault()},Un=et.current,Kn=gt.current;return Un.addEventListener("touchstart",Nn,{passive:!1}),Kn.addEventListener("touchstart",Xt,{passive:!1}),function(){Un.removeEventListener("touchstart",Nn),Kn.removeEventListener("touchstart",Xt)}},[]);var xn=Se.useRef();xn.current=bn;var dn=Se.useRef();dn.current=mn,Se.useEffect(function(){if(Ut){var Nn,Un=function(Zn){var Ot=En.current,Yt=Ot.dragging,Ln=Ot.pageY,Xn=Ot.startTop;st.Z.cancel(Nn);var Pe=et.current.getBoundingClientRect(),Ue=Je/(Ee?Pe.width:Pe.height);if(Yt){var be=(Et(Zn,Ee)-Ln)*Ue,De=Xn;!Me&&Ee?De-=be:De+=be;var xe=xn.current,Te=dn.current,ct=Te?De/Te:0,Gt=Math.ceil(ct*xe);Gt=Math.max(Gt,0),Gt=Math.min(Gt,xe),Nn=(0,st.Z)(function(){nt(Gt,Ee)})}},Kn=function(){Wt(!1),ye()};return window.addEventListener("mousemove",Un,{passive:!0}),window.addEventListener("touchmove",Un,{passive:!0}),window.addEventListener("mouseup",Kn,{passive:!0}),window.addEventListener("touchend",Kn,{passive:!0}),function(){window.removeEventListener("mousemove",Un),window.removeEventListener("touchmove",Un),window.removeEventListener("mouseup",Kn),window.removeEventListener("touchend",Kn),st.Z.cancel(Nn)}}},[Ut]),Se.useEffect(function(){return sn(),function(){clearTimeout(Mn.current)}},[se]),Se.useImperativeHandle(ee,function(){return{delayHidden:sn}});var Tn="".concat(z,"-scrollbar"),Vn={position:"absolute",visibility:cn?null:"hidden"},Hn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ee?(Object.assign(Vn,{height:8,left:0,right:0,bottom:0}),Object.assign(Hn,(0,We.Z)({height:"100%",width:ze},Me?"left":"right",$n))):(Object.assign(Vn,(0,We.Z)({width:8,top:0,bottom:0},Me?"right":"left",0)),Object.assign(Hn,{width:"100%",height:ze,top:$n})),Se.createElement("div",{ref:et,className:_e()(Tn,(0,We.Z)((0,We.Z)((0,We.Z)({},"".concat(Tn,"-horizontal"),Ee),"".concat(Tn,"-vertical"),!Ee),"".concat(Tn,"-visible"),cn)),style:(0,ge.Z)((0,ge.Z)({},Vn),pt),onMouseDown:gn,onMouseMove:sn},Se.createElement("div",{ref:gt,className:_e()("".concat(Tn,"-thumb"),(0,We.Z)({},"".concat(Tn,"-thumb-moving"),Ut)),style:(0,ge.Z)((0,ge.Z)({},Hn),ut),onMouseDown:Xt}))}),bt=Ft,Ie=20;function Ze(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=ae/ee*ae;return isNaN(z)&&(z=0),z=Math.max(z,Ie),Math.floor(z)}var Qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Qt=[],Mt={overflowY:"auto",overflowAnchor:"none"};function $t(ae,ee){var z=ae.prefixCls,oe=z===void 0?"rc-virtual-list":z,se=ae.className,ne=ae.height,he=ae.itemHeight,ye=ae.fullHeight,nt=ye===void 0?!0:ye,Ee=ae.style,ze=ae.data,Je=ae.children,pt=ae.itemKey,ut=ae.virtual,At=ae.direction,Bt=ae.scrollWidth,Dt=ae.component,Ut=Dt===void 0?"div":Dt,Wt=ae.onScroll,Zt=ae.onVirtualScroll,dt=ae.onVisibleChange,zt=ae.innerProps,Pt=ae.extraRender,Ht=ae.styles,nn=ae.showScrollBar,yn=nn===void 0?"optional":nn,fn=(0,we.Z)(ae,Qe),Me=Se.useCallback(function(qt){return typeof pt=="function"?pt(qt):qt==null?void 0:qt[pt]},[pt]),et=me(Me,null,null),gt=(0,Ce.Z)(et,4),Nt=gt[0],on=gt[1],cn=gt[2],Bn=gt[3],Mn=!!(ut!==!1&&ne&&he),sn=Se.useMemo(function(){return Object.values(cn.maps).reduce(function(qt,ln){return qt+ln},0)},[cn.id,cn.maps]),bn=Mn&&ze&&(Math.max(he*ze.length,sn)>ne||!!Bt),mn=At==="rtl",$n=_e()(oe,(0,We.Z)({},"".concat(oe,"-rtl"),mn),se),gn=ze||Qt,En=(0,Se.useRef)(),Xt=(0,Se.useRef)(),xn=(0,Se.useRef)(),dn=(0,Se.useState)(0),Tn=(0,Ce.Z)(dn,2),Vn=Tn[0],Hn=Tn[1],Nn=(0,Se.useState)(0),Un=(0,Ce.Z)(Nn,2),Kn=Un[0],Qn=Un[1],Zn=(0,Se.useState)(!1),Ot=(0,Ce.Z)(Zn,2),Yt=Ot[0],Ln=Ot[1],Xn=function(){Ln(!0)},Pe=function(){Ln(!1)},Ue={getKey:Me};function be(qt){Hn(function(ln){var rn;typeof qt=="function"?rn=qt(ln):rn=qt;var jt=ur(rn);return En.current.scrollTop=jt,jt})}var De=(0,Se.useRef)({start:0,end:gn.length}),xe=(0,Se.useRef)(),Te=Ct(gn,Me),ct=(0,Ce.Z)(Te,1),Gt=ct[0];xe.current=Gt;var _t=Se.useMemo(function(){if(!Mn)return{scrollHeight:void 0,start:0,end:gn.length-1,offset:void 0};if(!bn){var qt;return{scrollHeight:((qt=Xt.current)===null||qt===void 0?void 0:qt.offsetHeight)||0,start:0,end:gn.length-1,offset:void 0}}for(var ln=0,rn,jt,kn,An=gn.length,en=0;en=Vn&&rn===void 0&&(rn=en,jt=ln),rr>Vn+ne&&kn===void 0&&(kn=en),ln=rr}return rn===void 0&&(rn=0,jt=0,kn=Math.ceil(ne/he)),kn===void 0&&(kn=gn.length-1),kn=Math.min(kn+1,gn.length-1),{scrollHeight:ln,start:rn,end:kn,offset:jt}},[bn,Mn,Vn,gn,Bn,ne]),an=_t.scrollHeight,Rt=_t.start,wt=_t.end,mt=_t.offset;De.current.start=Rt,De.current.end=wt,Se.useLayoutEffect(function(){var qt=cn.getRecord();if(qt.size===1){var ln=Array.from(qt.keys())[0],rn=qt.get(ln),jt=gn[Rt];if(jt&&rn===void 0){var kn=Me(jt);if(kn===ln){var An=cn.get(ln),en=An-he;be(function(tn){return tn+en})}}}cn.resetRecord()},[an]);var Jt=Se.useState({width:0,height:ne}),vn=(0,Ce.Z)(Jt,2),hn=vn[0],pn=vn[1],Gn=function(ln){pn({width:ln.offsetWidth,height:ln.offsetHeight})},Yn=(0,Se.useRef)(),Jn=(0,Se.useRef)(),Rn=Se.useMemo(function(){return Ze(hn.width,Bt)},[hn.width,Bt]),In=Se.useMemo(function(){return Ze(hn.height,an)},[hn.height,an]),Dn=an-ne,Wn=(0,Se.useRef)(Dn);Wn.current=Dn;function ur(qt){var ln=qt;return Number.isNaN(Wn.current)||(ln=Math.min(ln,Wn.current)),ln=Math.max(ln,0),ln}var qn=Vn<=0,lr=Vn>=Dn,ir=Kn<=0,er=Kn>=Bt,tr=He(qn,lr,ir,er),vr=function(){return{x:mn?-Kn:Kn,y:Vn}},mr=(0,Se.useRef)(vr()),cr=(0,fe.zX)(function(qt){if(Zt){var ln=(0,ge.Z)((0,ge.Z)({},vr()),qt);(mr.current.x!==ln.x||mr.current.y!==ln.y)&&(Zt(ln),mr.current=ln)}});function gr(qt,ln){var rn=qt;ln?((0,vt.flushSync)(function(){Qn(rn)}),cr()):be(rn)}function Cr(qt){var ln=qt.currentTarget.scrollTop;ln!==Vn&&be(ln),Wt==null||Wt(qt),cr()}var or=function(ln){var rn=ln,jt=Bt?Bt-hn.width:0;return rn=Math.max(rn,0),rn=Math.min(rn,jt),rn},dr=(0,fe.zX)(function(qt,ln){ln?((0,vt.flushSync)(function(){Qn(function(rn){var jt=rn+(mn?-qt:qt);return or(jt)})}),cr()):be(function(rn){var jt=rn+qt;return jt})}),zn=St(Mn,qn,lr,ir,er,!!Bt,dr),wr=(0,Ce.Z)(zn,2),Rr=wr[0],Wr=wr[1];Oe(Mn,En,function(qt,ln,rn,jt){var kn=jt;return tr(qt,ln,rn)?!1:!kn||!kn._virtualHandled?(kn&&(kn._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:qt?ln:0,deltaY:qt?0:ln}),!0):!1}),ve(bn,En,function(qt){be(function(ln){return ln+qt})}),(0,Ge.Z)(function(){function qt(rn){var jt=qn&&rn.detail<0,kn=lr&&rn.detail>0;Mn&&!jt&&!kn&&rn.preventDefault()}var ln=En.current;return ln.addEventListener("wheel",Rr,{passive:!1}),ln.addEventListener("DOMMouseScroll",Wr,{passive:!0}),ln.addEventListener("MozMousePixelScroll",qt,{passive:!1}),function(){ln.removeEventListener("wheel",Rr),ln.removeEventListener("DOMMouseScroll",Wr),ln.removeEventListener("MozMousePixelScroll",qt)}},[Mn,qn,lr]),(0,Ge.Z)(function(){if(Bt){var qt=or(Kn);Qn(qt),cr({x:qt})}},[hn.width,Bt]);var Er=function(){var ln,rn;(ln=Yn.current)===null||ln===void 0||ln.delayHidden(),(rn=Jn.current)===null||rn===void 0||rn.delayHidden()},Ar=Ye(En,gn,cn,he,Me,function(){return on(!0)},be,Er);Se.useImperativeHandle(ee,function(){return{nativeElement:xn.current,getScrollInfo:vr,scrollTo:function(ln){function rn(jt){return jt&&(0,qe.Z)(jt)==="object"&&("left"in jt||"top"in jt)}rn(ln)?(ln.left!==void 0&&Qn(or(ln.left)),Ar(ln.top)):Ar(ln)}}}),(0,Ge.Z)(function(){if(dt){var qt=gn.slice(Rt,wt+1);dt(qt,gn)}},[Rt,wt,gn]);var Ir=tt(gn,Me,cn,he),Dr=Pt==null?void 0:Pt({start:Rt,end:wt,virtual:bn,offsetX:Kn,offsetY:mt,rtl:mn,getSize:Ir}),zr=Ne(gn,Rt,wt,Bt,Kn,Nt,Je,Ue),fr=null;ne&&(fr=(0,ge.Z)((0,We.Z)({},nt?"height":"maxHeight",ne),Mt),Mn&&(fr.overflowY="hidden",Bt&&(fr.overflowX="hidden"),Yt&&(fr.pointerEvents="none")));var _n={};return mn&&(_n.dir="rtl"),Se.createElement("div",(0,re.Z)({ref:xn,style:(0,ge.Z)((0,ge.Z)({},Ee),{},{position:"relative"}),className:$n},_n,fn),Se.createElement(ke.Z,{onResize:Gn},Se.createElement(Ut,{className:"".concat(oe,"-holder"),style:fr,ref:En,onScroll:Cr,onMouseEnter:Er},Se.createElement(Fe,{prefixCls:oe,height:an,offsetX:Kn,offsetY:mt,scrollWidth:Bt,onInnerResize:on,ref:Xt,innerProps:zt,rtl:mn,extra:Dr},zr))),bn&&an>ne&&Se.createElement(bt,{ref:Yn,prefixCls:oe,scrollOffset:Vn,scrollRange:an,rtl:mn,onScroll:gr,onStartMove:Xn,onStopMove:Pe,spinSize:In,containerSize:hn.height,style:Ht==null?void 0:Ht.verticalScrollBar,thumbStyle:Ht==null?void 0:Ht.verticalScrollBarThumb,showScrollBar:yn}),bn&&Bt>hn.width&&Se.createElement(bt,{ref:Jn,prefixCls:oe,scrollOffset:Kn,scrollRange:Bt,rtl:mn,onScroll:gr,onStartMove:Xn,onStopMove:Pe,spinSize:Rn,containerSize:hn.width,horizontal:!0,style:Ht==null?void 0:Ht.horizontalScrollBar,thumbStyle:Ht==null?void 0:Ht.horizontalScrollBarThumb,showScrollBar:yn}))}var Re=Se.forwardRef($t);Re.displayName="List";var Tt=Re,lt=Tt},4977:function(Vt){"use strict";Vt.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(Vt,Lt,ie){"use strict";ie.d(Lt,{Z:function(){return _e}});const re=ke=>typeof ke=="object"&&ke!=null&&ke.nodeType===1,qe=(ke,fe)=>(!fe||ke!=="hidden")&&ke!=="visible"&&ke!=="clip",ge=(ke,fe)=>{if(ke.clientHeight{const vt=(Ke=>{if(!Ke.ownerDocument||!Ke.ownerDocument.defaultView)return null;try{return Ke.ownerDocument.defaultView.frameElement}catch(Fe){return null}})(Se);return!!vt&&(vt.clientHeightKefe||Ke>ke&&Fe=fe&&je>=Ge?Ke-ke-Se:Fe>fe&&jeGe?Fe-fe+vt:0,Ce=ke=>{const fe=ke.parentElement;return fe==null?ke.getRootNode().host||null:fe},we=(ke,fe)=>{var Ge,Se,vt,Ke;if(typeof document=="undefined")return[];const{scrollMode:Fe,block:je,inline:Ne,boundary:ht,skipOverflowHiddenElements:yt}=fe,Ct=typeof ht=="function"?ht:bt=>bt!==ht;if(!re(ke))throw new TypeError("Invalid target");const st=document.scrollingElement||document.documentElement,rt=[];let ot=ke;for(;re(ot)&&Ct(ot);){if(ot=Ce(ot),ot===st){rt.push(ot);break}ot!=null&&ot===document.body&&ge(ot)&&!ge(document.documentElement)||ot!=null&&ge(ot,yt)&&rt.push(ot)}const He=(Se=(Ge=window.visualViewport)==null?void 0:Ge.width)!=null?Se:innerWidth,St=(Ke=(vt=window.visualViewport)==null?void 0:vt.height)!=null?Ke:innerHeight,{scrollX:tt,scrollY:Xe}=window,{height:ft,width:Be,top:at,right:it,bottom:me,left:kt}=ke.getBoundingClientRect(),{top:Oe,right:$e,bottom:Et,left:ve}=(bt=>{const Ie=window.getComputedStyle(bt);return{top:parseFloat(Ie.scrollMarginTop)||0,right:parseFloat(Ie.scrollMarginRight)||0,bottom:parseFloat(Ie.scrollMarginBottom)||0,left:parseFloat(Ie.scrollMarginLeft)||0}})(ke);let ce=je==="start"||je==="nearest"?at-Oe:je==="end"?me+Et:at+ft/2-Oe+Et,Ye=Ne==="center"?kt+Be/2-ve+$e:Ne==="end"?it+$e:kt-ve;const Ft=[];for(let bt=0;bt=0&&kt>=0&&me<=St&&it<=He&&(Ie===st&&!ge(Ie)||at>=Qt&&me<=$t&&kt>=Re&&it<=Mt))return Ft;const Tt=getComputedStyle(Ie),lt=parseInt(Tt.borderLeftWidth,10),ae=parseInt(Tt.borderTopWidth,10),ee=parseInt(Tt.borderRightWidth,10),z=parseInt(Tt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in Ie?Ie.offsetWidth-Ie.clientWidth-lt-ee:0,he="offsetHeight"in Ie?Ie.offsetHeight-Ie.clientHeight-ae-z:0,ye="offsetWidth"in Ie?Ie.offsetWidth===0?0:Qe/Ie.offsetWidth:0,nt="offsetHeight"in Ie?Ie.offsetHeight===0?0:Ze/Ie.offsetHeight:0;if(st===Ie)oe=je==="start"?ce:je==="end"?ce-St:je==="nearest"?We(Xe,Xe+St,St,ae,z,Xe+ce,Xe+ce+ft,ft):ce-St/2,se=Ne==="start"?Ye:Ne==="center"?Ye-He/2:Ne==="end"?Ye-He:We(tt,tt+He,He,lt,ee,tt+Ye,tt+Ye+Be,Be),oe=Math.max(0,oe+Xe),se=Math.max(0,se+tt);else{oe=je==="start"?ce-Qt-ae:je==="end"?ce-$t+z+he:je==="nearest"?We(Qt,$t,Ze,ae,z+he,ce,ce+ft,ft):ce-(Qt+Ze/2)+he/2,se=Ne==="start"?Ye-Re-lt:Ne==="center"?Ye-(Re+Qe/2)+ne/2:Ne==="end"?Ye-Mt+ee+ne:We(Re,Mt,Qe,lt,ee+ne,Ye,Ye+Be,Be);const{scrollLeft:Ee,scrollTop:ze}=Ie;oe=nt===0?0:Math.max(0,Math.min(ze+oe/nt,Ie.scrollHeight-Ze/nt+he)),se=ye===0?0:Math.max(0,Math.min(Ee+se/ye,Ie.scrollWidth-Qe/ye+ne)),ce+=ze-oe,Ye+=Ee-se}Ft.push({el:Ie,top:oe,left:se})}return Ft},Le=ke=>ke===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(ke)?ke:{block:"start",inline:"nearest"};function _e(ke,fe){if(!ke.isConnected||!(vt=>{let Ke=vt;for(;Ke&&Ke.parentNode;){if(Ke.parentNode===document)return!0;Ke=Ke.parentNode instanceof ShadowRoot?Ke.parentNode.host:Ke.parentNode}return!1})(ke))return;const Ge=(vt=>{const Ke=window.getComputedStyle(vt);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(ke);if((vt=>typeof vt=="object"&&typeof vt.behavior=="function")(fe))return fe.behavior(we(ke,fe));const Se=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:vt,top:Ke,left:Fe}of we(ke,Le(fe))){const je=Ke-Ge.top+Ge.bottom,Ne=Fe-Ge.left+Ge.right;vt.scroll({top:je,left:Ne,behavior:Se})}}}}]);