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

1106 lines
820 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1461],{66543:function(){"use strict"},59598:function(){"use strict"},21697:function(tn,Xt){"use strict";Xt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},69092:function(tn,Xt){"use strict";Xt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},11081: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 tn={},Xt="5.0",le={},re=null,Ge=!1,Oe=!1,Ue=null,be=!1,ue=null,Le=null,ze=0;ze<arguments.length;ze++){var Ce=arguments[ze];if(Ce!==null)switch(typeof Ce){case"number":Xt=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Xt=Ce:Ue=Ce;break;case"object":typeof Ce.is3D!="undefined"?re=Ce:le=Ce;break;case"boolean":Ge=Ce,Oe=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},le.material_id!==void 0&&!Oe&&(Ge=!0)),Ue!==null&&le.id===void 0&&(le.id=Ue);var pe="",ht="",ye=!1,pt=null,je=null,Se=null,xe=!1,Ee=null,Ye=null,tt=null,at=null,we=null;le.height!==void 0&&(le.height=Math.round(le.height)),le.width!==void 0&&(le.width=Math.round(le.width));var me=function(Pe){return parseFloat(Pe)>4?parseFloat(Pe):5};tn.setHTML5Codebase=function(Pe,rt){Le=Pe,He(Pe,rt)},tn.setJavaCodebase=tn.setJavaCodebaseVersion=tn.isCompiledInstalled=tn.setPreCompiledScriptPath=tn.setPreCompiledResourcePath=function(){},tn.setHTML5CodebaseVersion=function(Pe,rt){var Qe=parseFloat(Pe);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}ue=Pe,fe(Pe,rt)},tn.getHTML5CodebaseVersion=function(){return je},tn.getParameters=function(){return le},tn.setFontsCSSURL=function(Pe){at=Pe},tn.setGiacJSURL=function(Pe){},tn.setJNLPFile=function(Pe){pe=Pe},tn.setJNLPBaseDir=function(Pe){},tn.inject=function(){function Pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",Qe=le.id,Wt,Me=!1,ut=0;ut<arguments.length;ut++){var We=arguments[ut];typeof We=="string"?(We=We.toLowerCase(),We.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rt=We:Qe=arguments[ut]):typeof We=="boolean"?Me=We:We instanceof HTMLElement&&(Wt=We)}yt();function yt(){if(!be){setTimeout(yt,200);return}rt=ot(rt);var xt=Wt||document.getElementById(Qe);if(!xt){console.log("possibly bug on ajax loading? ");return}if(tn.removeExistingApplet(xt,!1),le.width===void 0&&xt.clientWidth&&(le.width=xt.clientWidth),le.height===void 0&&xt.clientHeight&&(le.height=xt.clientHeight),!(le.width&&le.height)&&rt==="html5"&&(delete le.width,delete le.height),pt=rt,rt==="screenshot")Be(xt,le);else{var ae=!1;le.hasOwnProperty("playButton")&&le.playButton||le.hasOwnProperty("clickToLoad")&&le.clickToLoad?ae=!0:le.hasOwnProperty("playButtonAutoDecide")&&le.playButtonAutoDecide&&(ae=(!Te()||Pe())&&Ne()),ae?(pt="screenshot",It(xt,le,Me,rt)):Ke(xt,le,Me)}}};function Te(){try{return window.self!==window.top}catch(Pe){return!0}}function Ne(){return le.hasOwnProperty("screenshotGenerator")&&le.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}tn.getViews=function(){return re},tn.isJavaInstalled=function(){return!1};var bt=function(Pe){var rt=function(ut){var We=JSON.parse(ut),yt=function(ee){return ee.type=="G"||ee.type=="E"},xt=We.elements?We.elements.filter(yt)[0]:We;if(!xt||!xt.url){Qe();return}le.fileName=xt.url,Ae(xt.settings||{}),re.is3D=!0;var ae="https://www.geogebra.org/images/";tn.setPreviewImage(Ee||xt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Pe()},Qe=function(){le.onError&&le.onError(),lt("Error: Fetching material (id "+le.material_id+") failed.",le)},Wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Me="/materials/"+le.material_id+"?scope=basic";ke("https://"+Wt+"/api/proxy.php?path="+encodeURIComponent(Me),rt,Qe)};function Ae(Pe){var rt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){Pe[Qe]=!!Pe[Qe]}),rt.forEach(function(Qe){le[Qe]===void 0&&Pe[Qe]!==void 0&&(le[Qe]=Pe[Qe])}),le.showToolBarHelp===void 0&&(le.showToolBarHelp=le.showToolBar)}function ke(Pe,rt,Qe){var Wt=new XMLHttpRequest;Wt.open("GET",Pe),Wt.onload=function(){rt(Wt.responseText)},Wt.onerror=Qe,Wt.send()}tn.isHTML5Installed=function(){return!0},tn.getLoadedAppletType=function(){return pt},tn.setPreviewImage=function(Pe,rt,Qe){Ee=Pe,Ye=rt,tt=Qe},tn.removeExistingApplet=function(Pe,rt){var Qe;typeof Pe=="string"&&(Pe=document.getElementById(Pe)),pt=null;var Wt=null;for(Qe=0;Qe<Pe.childNodes.length;Qe++){var Me=Pe.childNodes[Qe],ut=Me.className;ut==="applet_screenshot"?rt?(Me.style.display="block",pt="screenshot"):Me.style.display="none":ut!=="applet_scaler prerender"&&(Pe.removeChild(Me),Wt=ut&&ut.indexOf("appletParameters")!=-1?Me.id:null,Qe--)}var We=le.id!==void 0?le.id:Wt,yt=window[We];yt&&typeof yt.getBase64=="function"&&(yt.remove(),window[We]=null)},tn.refreshHitPoints=function(){if(me(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Pe=tn.getAppletObject();return Pe&&typeof Pe.recalculateEnvironments=="function"?(Pe.recalculateEnvironments(),!0):!1},tn.startAnimation=function(){var Pe=tn.getAppletObject();return Pe&&typeof Pe.startAnimation=="function"?(Pe.startAnimation(),!0):!1},tn.stopAnimation=function(){var Pe=tn.getAppletObject();return Pe&&typeof Pe.stopAnimation=="function"?(Pe.stopAnimation(),!0):!1},tn.getAppletObject=function(){var Pe=le.id!==void 0?le.id:"ggbApplet";return window[Pe]},tn.resize=function(){};var Ie=function(Pe,rt,Qe){var Wt=document.createElement("param");Wt.setAttribute("name",rt),Wt.setAttribute("value",Qe),Pe.appendChild(Wt)},De=function(Pe){return Pe&&Pe!=="false"},Ke=function(Pe,rt,Qe){me(je)<=4.2&&(Qe=!0);var Wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==je||ggbHTML5LoadedCodebaseIsWebSimple&&!xe)&&(Wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Me=document.createElement("div");Me.classList.add("appletParameters","notranslate");var ut=rt.width,We=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(me(je)<=4.4)De(rt.showToolBar)&&(rt.height-=7),De(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&De(rt.showToolBar)&&(rt.width=605,ut=605);else{var yt=100;(De(rt.showToolBar)||De(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),yt=De(rt.showMenuBar)?245:155),ut<yt&&(rt.width=yt,ut=yt)}Me.style.border="none",Me.style.display="inline-block";for(var xt in rt)rt.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&Me.setAttribute("data-param-"+xt,rt[xt]);at&&Me.setAttribute("data-param-fontscssurl",at),tn.resize=function(){GGBAppletUtils.responsiveResize(Pe,rt)},window.addEventListener("resize",function(qe){tn.resize()});var ae=typeof rt.appletOnLoad=="function"?rt.appletOnLoad:function(){};if(!Qe&&rt.width!==void 0){rt.hasOwnProperty("showSplash")||Me.setAttribute("data-param-showSplash","false");var ee=Pe.querySelector(".applet_scaler.prerender"),z=ee!==null;if(z)var ie=ee.querySelector(".ggb_preview");else{var ie=vt(ut,We,rt.borderColor,!1);ee=document.createElement("div"),ee.className="applet_scaler",ee.style.position="relative",ee.style.display="block",ee.style.width=ut+"px",ee.style.height=We+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ee,"66%"),me(je)>=5?(rt.appletOnLoad=function(qe){var St=Pe.querySelector(".ggb_preview");St&&St.parentNode.removeChild(St),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ee),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(qe)},z||ee.appendChild(ie)):Me.appendChild(ie),ee.appendChild(Me),z||Pe.appendChild(ee),setTimeout(function(){tn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Me),Pe.appendChild(se),rt.appletOnLoad=function(qe){tn.resize(),ae(qe)}}function ne(qe,St){St&&typeof St.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(qe,St.appletOnLoad):renderGGBElement(qe),lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",St)}function ce(qe,St){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:qe,params:St}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Zt){ne(Zt.article,Zt.params)}),html5AppletsToProcess=null)},me(je)<5&&(qe.className+=" geogebraweb")):ne(qe,St)}if(Wt){scriptLoadStarted=!0;for(var Re=0;Re<Me.childNodes.length;Re++){var Et=Me.childNodes[Re].tagName;Et==="TABLE"&&(Me.removeChild(Me.childNodes[Re]),Re--)}if(ggbHTML5LoadedScript!==null){var Pt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pt!=null&&Pt.parentNode.removeChild(Pt)}var _e=document.createElement("script"),et=function(){ce(Me,rt)};_e.src=ht+Se,ggbHTML5LoadedCodebaseIsWebSimple=xe,ggbHTML5LoadedCodebaseVersion=je,ggbHTML5LoadedScript=_e.src,lt("GeoGebra HTML5 codebase loaded: '"+ht+"'.",rt),!Le&&(!ue||ue=="5.0")?(xe?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),et()):ht.requirejs?__webpack_require__.e(981).then(function(){var qe=[__webpack_require__(60981)];et.apply(null,qe)}.bind(this)).catch(__webpack_require__.oe):(_e.onload=et,Pe.appendChild(_e))}else ce(Me,rt);rt.height=We,rt.width=ut},Be=function(Pe,rt,Qe){var Wt=vt(rt.width,rt.height,rt.borderColor,Qe),Me=document.createElement("div");Me.style.position="relative",Me.style.display="block",Me.style.width=rt.width+"px",Me.style.height=rt.height+"px",Me.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),Me.appendChild(Wt);var ut=GGBAppletUtils.getScale(rt,Pe,Qe);Qe?(Pe.appendChild(mt()),window.GGBT_wsf_view||(Pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Me,"66%"),Pe.appendChild(Me),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(Me,ut),Me.style.width=rt.width+"px",Me.style.height=rt.height+"px",Me.parentNode.style.width=rt.width*ut+"px",Me.parentNode.style.height=rt.height*ut+"px"),tn.resize=function(){Ve(Pe,Wt,Me,Qe)},window.addEventListener("resize",function(We){tn.resize()}),tn.resize()};function Ve(Pe,rt,Qe,Wt){if(Pe.contains(rt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}var Me=GGBAppletUtils.getScale(le,Pe,Wt);Qe.parentNode!==null&&(!isNaN(Me)&&Me!==1?(GGBAppletUtils.scaleElement(Qe,Me),Qe.parentNode.style.width=le.width*Me+"px",Qe.parentNode.style.height=le.height*Me+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=le.width+"px",Qe.parentNode.style.height=le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}tn.onExitFullscreen=function(Pe,rt){rt.appendChild(Pe)};var It=function(Pe,rt,Qe,Wt){Be(Pe,rt,!0);for(var Me=function(){var yt=[];for(We=0;We<Pe.childNodes.length;We++)yt.push(Pe.childNodes[We]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(Pe,rt.id),ae=document.getElementById("fullscreencontainer"),ee=jQuery(Pe).find(".fullscreencontent");ee.length>0?(xt.remove(),ee.attr("id","fullscreencontent").show(),jQuery(ae).append(ee),window.dispatchEvent(new Event("resize"))):Ke(xt,rt,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else pt=Wt,Ke(Pe,rt,!1);if(!window.GGBT_wsf_view)for(We=0;We<yt.length;We++)Pe.removeChild(yt[We])},ut=Pe.getElementsByClassName("ggb_preview_play"),We=0;We<ut.length;We++)ut[We].addEventListener("click",Me,!1),ut[We].addEventListener("ontouchstart",Me,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Pe),Ne()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},mt=function(){var Pe=document.createElement("div");if(Pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Qe=document.createElement("style");Qe.styleSheet?Qe.styleSheet.cssText=rt:Qe.appendChild(document.createTextNode(rt)),document.getElementsByTagName("head")[0].appendChild(Qe)}return Pe},vt=function(Pe,rt,Qe,Wt){var Me=document.createElement("div");Me.className="ggb_preview",Me.style.position="absolute",Me.style.zIndex="90",Me.style.width=Pe-2+"px",Me.style.height=rt-2+"px",Me.style.top="0px",Me.style.left="0px",Me.style.overflow="hidden",Me.style.backgroundColor="white";var ut="lightgrey";Qe!==void 0&&(Qe==="none"?ut="transparent":ut=Qe),Me.style.border="1px solid "+ut;var We=document.createElement("img");if(We.style.position="relative",We.style.zIndex="1000",We.style.top="-1px",We.style.left="-1px",Ee!==null&&We.setAttribute("src",Ee),We.style.opacity=.7,Ye!==null){var yt,xt,ae;if(!Wt){yt=document.createElement("img"),yt.style.position="absolute",yt.style.zIndex="1001",yt.style.opacity=1,We.style.opacity=.3,xt=360,xt>Pe/4*3&&(xt=Pe/4*3),ae=xt/5.8,yt.setAttribute("src",Ye),yt.setAttribute("width",xt),yt.setAttribute("height",ae);var ee=(Pe-xt)/2,z=(rt-ae)/2;yt.style.left=ee+"px",yt.style.top=z+"px",Me.appendChild(yt)}}return Me.appendChild(We),Me},ot=function(Pe){return Pe=Pe.toLowerCase(),Pe==="html5"||Pe==="screenshot"?Pe:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],fe=function(Pe,rt){if(je=Pe,rt){He(je,!0);return}var Qe=!Ge;if(Qe){var Wt=me(je);!isNaN(Wt)&&Wt<4.4&&(Qe=!1)}var Me,ut;window.location.protocol.substr(0,4)==="http"?Me=window.location.protocol:Me="http:";var We=je.indexOf("//");We>0?ut=je:We===0?ut=Me+je:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var yt in ge)if(je.slice(ge[yt].length*-1)===ge[yt]||je.slice((ge[yt].length+1)*-1)===ge[yt]+"/"){He(ut,!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&&!De(le.showToolBar)&&!De(le.showMenuBar)&&!De(le.showAlgebraInput)&&!De(le.enableRightClick)&&(!le.appName||le.appName=="classic")?ut+="webSimple/":ut+="web3d/",He(ut,!1)},He=function(Pe,rt){if(Pe.requirejs){ht=Pe;return}Pe.slice(-1)!=="/"&&(Pe+="/"),ht=Pe,rt===null&&(rt=Pe.indexOf("http")===-1),ye=rt,Se="web.nocache.js",xe=!1;var Qe=ht.split("/");Qe.length>1&&(!rt&&Qe[Qe.length-2]==="webSimple"?(Se="webSimple.nocache.js",xe=!0):ge.indexOf(Qe[Qe.length-2])>=0&&(Se=Qe[Qe.length-2]+".nocache.js")),Qe=Pe.split("/"),je=Qe[Qe.length-3],je.substr(0,4)==="test"?je=je.substr(4,1)+"."+je.substr(5,1):(je.substr(0,3)==="war"||je.substr(0,4)==="beta")&&(je="5.0");var Wt=parseFloat(je);Wt!==NaN&&Wt<5&&Pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Wt+" is deprecated. Using version latest instead."),fe("5.0",rt))},lt=function(Pe,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(Pe)};le.material_id!==void 0?bt(st):st();function st(){var Pe=Xt;ue!==null?Pe=ue:parseFloat(Pe)<5&&(Pe="5.0"),fe(Pe,!1),Le!==null&&He(Le,ye),be=!0}return tn},GGBAppletUtils=function(){"use strict";function tn(){return window.GGBT_wsf_edit!==void 0}function Xt(be,ue){ue!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+ue+","+ue+")",be.style.webkitTransform="scale("+ue+","+ue+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function le(be,ue,Le,ze,Ce,pe){var ht=null;if(pe!=null&&pe!="")for(var ye=be.parentNode;ye!=null;)if((" "+ye.className+" ").indexOf(" "+pe+" ")>-1){ht=ye;break}else ye=ye.parentNode;var pt=0,je=0,Se=0,xe=0,Ee=0,Ye=0,tt=0;if(ht)pt=ht.offsetWidth,je=Math.max(ze?ht.offsetWidth:0,ht.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(pt=Math.min(window.innerWidth,document.documentElement.clientWidth),je=Math.min(window.innerHeight,document.documentElement.clientHeight),Se=pt):(pt=window.innerWidth,je=window.innerHeight,Se=window.innerWidth),be){var at=be.getBoundingClientRect();at.left>0&&at.left<=pt&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(Ee=pt-at.width-at.left,Ye=Se<=480?10:30):(Ye=at.left,Ee=Se<=480?10:30),xe=Ye+Ee)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var we=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe=40,tt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe=0,tt=40)}}return be&&((Le===void 0||!Le)&&ue>0&&ue+xe<pt?pt=ue:pt-=xe,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Le===void 0||!Le)&&(je-=tt)),{width:pt,height:je}}function re(be,ue,Le,ze,Ce){if(be.isScreenshoGenerator)return 1;var pe=ze!==void 0&&ze,ht=be.noScaleMargin!=null&&be.noScaleMargin,ye=function(we){return we&&we!=="false"},pt=ye(be.autoHeight),je=le(ue,be.width,Le,pt,pe&&window.GGBT_wsf_view||ht,Ce),Se=parseInt(je.width),xe=be.width,Ee=be.height;if(xe===void 0){var Ye=ue.querySelector(".appletParameters");Ye&&(xe=Ye.offsetWidth,Ee=Ye.offsetHeight)}var tt=Se/xe,at=pe?1:je.height/Ee;return Le!==void 0&&!Le&&(tt=Math.min(1,tt),at=Math.min(1,at)),Math.min(tt,at)}function Ge(be,ue,Le){var ze=1,Ce,pe=!1;if(be.hasOwnProperty("allowUpscale")&&(pe=be.allowUpscale),be.hasOwnProperty("scale")&&(ze=parseFloat(be.scale),(isNaN(ze)||ze===null||ze===0)&&(ze=1),ze>1&&(pe=!0)),ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Ce=re(be,ue,pe,Le,be.scaleContainerClass);else return ze;return pe&&(!be.hasOwnProperty("scale")||ze===1)?Ce:Math.min(ze,Ce)}function Oe(be){var ue=Math.min(window.innerWidth,document.documentElement.clientWidth),Le=Math.min(window.innerHeight,document.documentElement.clientHeight),ze=be.getBoundingClientRect(),Ce=(ue-ze.width)/2,pe=(Le-ze.height)/2;pe<0&&(pe=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?be.style.left="40px":be.style.left=Ce+"px",be.style.top=pe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(pe<40?be.style.top="40px":be.style.top=pe+"px",be.style.left=Ce+"px")}function Ue(be,ue){var Le=be.querySelector(".appletParameters");if(Le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ue.id!==Le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Le.parentElement&&/fullscreen/.test(Le.parentElement.className))return;var ze=Ge(ue,be);tn()&&Le.setAttribute("data-param-scale",ze);for(var Ce=null,pe=0;pe<be.childNodes.length;pe++)if(be.childNodes[pe].className!==void 0&&be.childNodes[pe].className.match(/^applet_scaler/)){Ce=be.childNodes[pe];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var ht=ue.id!==void 0?ue.id:"ggbApplet",ye=window[ht];(ye==null||!ye.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(ze)&&ze!==1?(Ce.parentNode.style.width=ue.width*ze+"px",Ce.parentNode.style.height=ue.height*ze+"px",Xt(Ce,ze)):(Xt(Ce,1),Ce.parentNode.style.width=ue.width+"px",Ce.parentNode.style.height=ue.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Oe(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Le).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:tn,positionCenter:Oe,getScale:Ge,scaleElement:Xt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var tn=n.location.search;return tn.indexOf(J)!=-1||tn.indexOf(K)!=-1}function q(tn,Xt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(tn){var Xt=s[L].bindings;s[L].bindings=function(){for(var le=Xt?Xt():{},re=tn[webModule.__softPermutationId],Ge=O;Ge<re.length;Ge++){var Oe=re[Ge];le[Oe[O]]=Oe[P]}return le}};var t;function u(){return v(),t}function v(){if(!t){var tn=o.createElement(Q);if(tn.id=L,tn.style.cssText=R+S,tn.tabIndex=-1,o.body.appendChild(tn),t=tn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Xt=document.compatMode==U?V:W;t.write(Xt+X),t.close()}}}function w(tn){function Xt(re){function Ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Oe=Ge();if(Oe){re();return}function Ue(){if(!Oe){if(!Ge())return;Oe=!0,re(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var be=setInterval(function(){Ue()},$)}function le(re){var Ge=u(),Oe=Ge.body,Ue=Ge.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=re,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),Oe.appendChild(Ue)}Xt(function(){le(tn)})}webModule.__startLoadingFragment=function(tn){return C(tn)},webModule.__installRunAsyncCode=function(tn){var Xt=u(),le=Xt.body,re=Xt.createElement(_);re.language=ab,re.text=tn,le.appendChild(re),le.removeChild(re)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(tn){var Xt=c[tn];return Xt==null?null:Xt},r=d,webModule.__errFn=e}function B(){function tn(be){var ue=be.lastIndexOf(rb);ue==-1&&(ue=be.length);var Le=be.indexOf(sb);Le==-1&&(Le=be.length);var ze=be.lastIndexOf(tb,Math.min(Le,ue));return ze>=O?be.substring(O,ze+P):W}function Xt(be){if(!be.match(/^\w+:\/\//)){var ue=o.createElement(ub);ue.src=be+vb,be=tn(ue.src)}return be}function le(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function re(){for(var be=o.getElementsByTagName(_),ue=O;ue<be.length;++ue)if(be[ue].src.indexOf(xb)!=-1)return tn(be[ue].src);return W}function Ge(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Oe(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ue=le();return Ue==W&&(Ue=re()),Ue==W&&(Ue=Ge()),Ue==W&&Oe()&&(Ue=tn(o.location.href)),Ue=Xt(Ue),Ue}function C(tn){return tn.match(/^\//)||tn.match(/^[a-zA-Z]+:\/\//)?tn:webModule.__moduleBase+tn}function D(){var tn=[],Xt=O,le=[],re=[];function Ge(be){var ue=re[be](),Le=le[be];if(ue in Le)return ue;var ze=[];for(var Ce in Le)ze[Le[Ce]]=Ce;throw r&&r(be,ze,ue),null}if(__gwt_isKnownPropertyValue=function(be,ue){return ue in le[be]},webModule.__getPropMap=function(){var be={};for(var ue in le)le.hasOwnProperty(ue)&&(be[ue]=Ge(ue));return be},webModule.__computePropValue=Ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Oe;try{Oe=Cb;var Ue=Oe.indexOf(Db);Ue!=-1&&(Xt=parseInt(Oe.substring(Ue+P),$),Oe=Oe.substring(O,Ue))}catch(be){}return webModule.__softPermutationId=Xt,C(Oe+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})()},67303:function(tn,Xt,le){"use strict";le.d(Xt,{Ax:function(){return Ue},Ds:function(){return be},KI:function(){return Le},SI:function(){return Oe},f1:function(){return Ge}});var re=le(90524);function Ge(ze){let Ce=!0;if(ze.length>0){for(let pe=0;pe<ze.length;pe++)if(ze[pe].compile_success==0||!ze[pe].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function Oe(ze,Ce=""){let pe=[];for(let ht=0;ht<ze.length;ht++){let ye=ze[ht],pt=Ce?`${Ce}/${ye.name}`:`${ye.name}`;pe.push({title:ye.name,type:ye.type,isLeaf:ye.type!=="tree",key:pt})}return pe}function Ue(ze,Ce,pe){for(let ht=0;ht<ze.length;ht++){let ye=ze[ht];if(ye.key===Ce){ye.children=pe;break}ye.children&&Ue(ye.children,Ce,pe)}return ze}function be(ze,Ce,pe){let ht;return function(){let ye=this,pt=arguments,je=function(){ht=null,pe||ze.apply(ye,pt)},Se=pe&&!ht;clearTimeout(ht),ht=setTimeout(je,Ce),Se&&ze.apply(ye,pt)}}const ue=!0,Le=re.Z.API_SERVER},64885:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return je}});var re=le(99571),Ge=le(59301),Oe=Object.defineProperty,Ue=Object.defineProperties,be=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ce=(Se,xe,Ee)=>xe in Se?Oe(Se,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Se[xe]=Ee,pe=(Se,xe)=>{for(var Ee in xe||(xe={}))Le.call(xe,Ee)&&Ce(Se,Ee,xe[Ee]);if(ue)for(var Ee of ue(xe))ze.call(xe,Ee)&&Ce(Se,Ee,xe[Ee]);return Se},ht=(Se,xe)=>Ue(Se,be(xe)),ye=(Se,xe)=>{var Ee={};for(var Ye in Se)Le.call(Se,Ye)&&xe.indexOf(Ye)<0&&(Ee[Ye]=Se[Ye]);if(Se!=null&&ue)for(var Ye of ue(Se))xe.indexOf(Ye)<0&&ze.call(Se,Ye)&&(Ee[Ye]=Se[Ye]);return Ee},pt=(Se,xe,Ee)=>new Promise((Ye,tt)=>{var at=Te=>{try{me(Ee.next(Te))}catch(Ne){tt(Ne)}},we=Te=>{try{me(Ee.throw(Te))}catch(Ne){tt(Ne)}},me=Te=>Te.done?Ye(Te.value):Promise.resolve(Te.value).then(at,we);me((Ee=Ee.apply(Se,xe)).next())});const je=Se=>{var xe=Se,{children:Ee}=xe,Ye=ye(xe,["children"]);const[tt,at]=(0,Ge.useState)(!1);return Ge.createElement(re.ZP,ht(pe({},Ye),{loading:tt,onClick:we=>pt(void 0,null,function*(){try{at(!0),yield Ye.onClick(we),at(!1)}catch(me){console.error(me),at(!1)}})}),Ee)}},77817:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return pt}});var re=le(59301),Ge=le(6767),Oe=le(37568),Ue={codeBox:"codeBox___WpkVl"},be=le(92310),ue=le.n(be),Le=Object.defineProperty,ze=(je,Se,xe)=>Se in je?Le(je,Se,{enumerable:!0,configurable:!0,writable:!0,value:xe}):je[Se]=xe,Ce=(je,Se,xe)=>ze(je,typeof Se!="symbol"?Se+"":Se,xe),pe=(je,Se,xe)=>new Promise((Ee,Ye)=>{var tt=me=>{try{we(xe.next(me))}catch(Te){Ye(Te)}},at=me=>{try{we(xe.throw(me))}catch(Te){Ye(Te)}},we=me=>me.done?Ee(me.value):Promise.resolve(me.value).then(tt,at);we((xe=xe.apply(je,Se)).next())});class ht extends re.Component{constructor(Se){super(Se),Ce(this,"canvas"),Ce(this,"randomNum",(xe,Ee)=>Math.floor(Math.random()*(Ee-xe)+xe)),Ce(this,"drawPic",()=>{this.randomCode()}),Ce(this,"reloadPic",()=>{this.drawPic()}),Ce(this,"changeCode",xe=>{console.log(xe.target.value,222),this.setState({value:xe.target.value,showError:!1})}),Ce(this,"onVerify",()=>{let xe;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(xe=!0,Ge.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(xe=!0,Ge.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(xe=!1),this.setState({showError:xe}),xe}),this.canvas=re.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(Se,xe){const Ee=this.randomNum(Se,xe),Ye=this.randomNum(Se,xe),tt=this.randomNum(Se,xe);return`rgb(${Ee}, ${Ye}, ${tt})`}drawText(Se,xe,Ee){Se.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Ye=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Se.font=Ye+"px SimHei";const tt=10,at=(this.state.contentWidth-40)/(this.state.code.length-1);let we=tt;Ee>0&&(we=tt+Ee*at);let me=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Ye>40&&(me=40);const Te=this.randomNum(-10,10);Se.translate(we,me),Se.rotate(Te*Math.PI/180),Se.fillText(xe,0,0),Se.rotate(-Te*Math.PI/180),Se.translate(-we,-me)}drawLine(Se){for(let xe=0;xe<1;xe++)Se.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Se.beginPath(),Se.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Se.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Se.stroke()}drawDot(Se){for(let xe=0;xe<100;xe++)Se.fillStyle=this.randomColor(0,255),Se.beginPath(),Se.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Se.fill()}randomCode(){let Se="";const xe="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Ee=0;Ee<this.state.codeLength;Ee++){const Ye=Math.floor(Math.random()*57);Se+=xe[Ye]}this.setState({code:Se},()=>{const Ye=this.canvas.current.getContext("2d");Ye.textBaseline="bottom",Ye.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Ye.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let tt=0;tt<this.state.code.length;tt++)this.drawText(Ye,this.state.code[tt],tt);this.drawLine(Ye),this.drawDot(Ye)})}render(){const{className:Se,width:xe=300}=this.props;return re.createElement("div",{className:ue()(Ue.codeBox,Se),style:{width:xe}},re.createElement("aside",null,re.createElement(Oe.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),re.createElement("div",null,re.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),re.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const ye=(je,Se)=>{let xe;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Se),React.createElement(ht,{ref:Ee=>xe=Ee})),onOk:()=>pe(void 0,null,function*(){if(xe.onVerify())return Promise.reject();je()})})};var pt=ht},6077:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return ht}});var re=le(59301),Ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Oe=le(92310),Ue=le.n(Oe),be=le(29787),ue=le(2859),Le=le(82093),ze=le(49661),Ce=(ye,pt,je)=>new Promise((Se,xe)=>{var Ee=at=>{try{tt(je.next(at))}catch(we){xe(we)}},Ye=at=>{try{tt(je.throw(at))}catch(we){xe(we)}},tt=at=>at.done?Se(at.value):Promise.resolve(at.value).then(Ee,Ye);tt((je=je.apply(ye,pt)).next())}),ht=({data:ye,className:pt,fullWidth:je,style:Se={},onClose:xe,onOk:Ee,showFullTools:Ye,noAssociationId:tt})=>{const at=(0,re.useRef)(null),we=(0,re.useRef)(null),me=(0,re.useRef)(null),Te=(0,re.useRef)(null),[Ne,bt]=(0,re.useState)(!1),[Ae,ke]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>(me.current||(me.current=document.createElement("style"),document.head.appendChild(me.current)),ye!=null&&ye.visible?(document.body.setAttribute("data-custom","y-hidden"),me.current.innerHTML=" html { overflow-y: hidden; }",ye!=null&&ye.src&&Ie()):(document.body.removeAttribute("data-custom"),me.current&&(document.head.removeChild(me.current),me.current=null)),()=>{document.body.removeAttribute("data-custom"),me.current&&(document.head.removeChild(me.current),me.current=null)}),[ye==null?void 0:ye.visible]);const Ie=()=>Ce(void 0,null,function*(){bt(!0),ke("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ve=yield(0,ze.ZJ)(ye==null?void 0:ye.src);at.current.src="",at.current.src=Ve,at.current.onload=function(){Be()},bt(!1),ke("")}),De=Ve=>Ce(void 0,null,function*(){bt(!0),ke("\u6B63\u5728\u4FDD\u5B58\u4E2D");const It=yield(0,Le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ye.title,file:Ve.dataUrl}});It!=null&&It.id&&!tt?(yield(0,Le.ZP)(`/api/attachments/${ye.id}/add_subitem.json`,{method:"post",body:{subitem_id:It==null?void 0:It.id,settings:JSON.stringify(Ve.state)}})).status===0&&Ee():It!=null&&It.id&&Ee(It),bt(!1),ke("")}),Ke=()=>{const Ve=document.querySelector('a[href="https://markerjs.com/"]');Ve&&Ve.parentNode&&(Ve.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(mt=>{const vt=document.querySelector(mt.name);vt&&vt.setAttribute("title",mt.title)})},Be=()=>{we.current=new ue.hP(at.current),we.current.targetRoot=Te.current,we.current.addEventListener("render",De),we.current.addEventListener("beforeclose",xe),Ye&&(we.current.availableMarkerTypes=we.current.ALL_MARKER_TYPES,we.current.uiStyleSettings.redoButtonVisible=!0,we.current.uiStyleSettings.notesButtonVisible=!0,we.current.uiStyleSettings.zoomButtonVisible=!0,we.current.uiStyleSettings.zoomOutButtonVisible=!0,we.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=we.current.uiStyleSettings,we.current.show(),ye!=null&&ye.snapshotData&&we.current.restoreState(ye.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ke()},300)};return re.createElement(re.Fragment,null,(ye==null?void 0:ye.visible)&&re.createElement(be.Z,{spinning:Ne,tip:Ae,style:{position:"absolute",width:"100vw"}},re.createElement("div",{ref:Te,className:Ue()(Ge.imageDimensions,pt,je?Ge.fullWidth:""),style:Se},re.createElement("img",{className:Ge.img,ref:at}))))}},88615:function(tn,Xt,le){"use strict";var re=le(59301),Ge=le(77019),Oe=le(5269),Ue=le(20554),be=le(99571),ue=le(38394),Le=le(21697),ze=le(48136),Ce=le(59301);const pe=(0,re.forwardRef)(({callback:ht,showSaveButton:ye,value:pt=""},je)=>{const Se=(0,re.useRef)(),xe=[{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 "}]}]}],Ee=[{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}`}]}]}],Ye=we=>{Se.current.setValue(Se.current.getValue()+" "+we.value+" ")},tt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(Ge.Z,{className:Le.Z.lists,gutter:[10,10]},xe.map((we,me)=>Ce.createElement(Oe.Z,{flex:"110px",className:Le.Z.item},Ce.createElement("div",null,Ce.createElement(ue.Z,{value:`$$${we.value}$$`}),we.name),Ce.createElement("div",{className:Le.Z.children},we.children.map((Te,Ne)=>Ce.createElement("div",{key:Ne},Ce.createElement("h1",null,Te.name),Ce.createElement(Ge.Z,{gutter:[10,10]},Te.data.map((bt,Ae)=>Ce.createElement(Oe.Z,{key:Ae,onClick:()=>Ye(bt),className:Le.Z.diamond},Ce.createElement(ue.Z,{value:"`$$"+bt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(Ge.Z,{className:Le.Z.lists,gutter:[10,10]},Ee.map((we,me)=>Ce.createElement(Oe.Z,{flex:"110px",className:Le.Z.item},Ce.createElement("div",null,Ce.createElement(ue.Z,{value:"`$$"+we.value+"$$`"}),we.name),Ce.createElement("div",{className:Le.Z.children},we.children.map((Te,Ne)=>Ce.createElement("div",{key:Ne},Te.name&&Ce.createElement("h1",null,Te.name),Ce.createElement(Ge.Z,{gutter:[10,10]},Te.data.map((bt,Ae)=>Ce.createElement(Oe.Z,{key:Ae,onClick:()=>Ye(bt),className:Le.Z.diamond},Ce.createElement(ue.Z,{value:"`$$"+bt.value+"$$`"}))))))))))}],at=()=>{var we=document.createElement("div");we.innerHTML=Se.current.getValue();var me=we.innerText;return ht&&ht(me),me};return(0,re.useImperativeHandle)(je,()=>({getData:at})),Ce.createElement("div",{className:Le.Z.mathWrap},Ce.createElement(Ue.default,{defaultActiveKey:"1",items:tt}),Ce.createElement("math-field",{locale:"zh_cn",className:Le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Se,style:{width:800,marginTop:30,fontSize:18}},pt||""),ye&&Ce.createElement("div",{className:Le.Z.button},Ce.createElement(be.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Xt.Z=pe},57884:function(tn,Xt,le){"use strict";var re=le(59301),Ge=le(93314),Oe=le(99571),Ue=Object.defineProperty,be=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,pe=(je,Se,xe)=>Se in je?Ue(je,Se,{enumerable:!0,configurable:!0,writable:!0,value:xe}):je[Se]=xe,ht=(je,Se)=>{for(var xe in Se||(Se={}))ze.call(Se,xe)&&pe(je,xe,Se[xe]);if(Le)for(var xe of Le(Se))Ce.call(Se,xe)&&pe(je,xe,Se[xe]);return je},ye=(je,Se)=>be(je,ue(Se));const pt=({img:je,buttonProps:Se={},styles:xe={},customText:Ee,ButtonText:Ye,ButtonClick:tt,Buttonclass:at,ButtonTwo:we,imgStyles:me,loading:Te=!1,className:Ne=""})=>re.createElement("section",{className:`tc animated fadeIn ${Ne}`,style:ht({color:"#999",margin:"100px auto",visibility:Te?"hidden":"visible"},xe)},re.createElement("img",{src:je||Ge,style:ye(ht({},me),{pointerEvents:"none",userSelect:"none"})}),re.createElement("p",{className:"mt20 font14"},Ee||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ye&&re.createElement(Oe.ZP,ht({className:at,onClick:tt},Se),Ye),we&&we);Xt.Z=pt},41550:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return at}});var re=le(59301),Ge={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Oe=le(99571),Ue=le(70557),be=le(51124),ue=le(25399),Le=le(49661),ze=le(72664),Ce=le(57884),pe=le(90524),ht=le(14794),ye=le(59301),pt=Object.defineProperty,je=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ee=(we,me,Te)=>me in we?pt(we,me,{enumerable:!0,configurable:!0,writable:!0,value:Te}):we[me]=Te,Ye=(we,me)=>{for(var Te in me||(me={}))Se.call(me,Te)&&Ee(we,Te,me[Te]);if(je)for(var Te of je(me))xe.call(me,Te)&&Ee(we,Te,me[Te]);return we},tt=(we,me,Te)=>new Promise((Ne,bt)=>{var Ae=De=>{try{Ie(Te.next(De))}catch(Ke){bt(Ke)}},ke=De=>{try{Ie(Te.throw(De))}catch(Ke){bt(Ke)}},Ie=De=>De.done?Ne(De.value):Promise.resolve(De.value).then(Ae,ke);Ie((Te=Te.apply(we,me)).next())}),at=({editOffice:we="view",data:me,issaver:Te,onSaver:Ne,theme:bt,type:Ae,filename:ke,monacoEditor:Ie,className:De,style:Ke,close:Be,onClose:Ve,hasMask:It,disabledDownload:mt,onImgDimensions:vt,showNodata:ot,recordInfo:ge})=>{const[fe,He]=(0,re.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[lt,st]=(0,re.useState)(""),[Pe,rt]=(0,re.useState)(),Qe=window.ENV==="build"?"/react/build":"",Wt=location.host.startsWith("localhost")?pe.Z.PROXY_SERVER:pe.Z.API_SERVER,ut=10*(1024*1024),We=(0,re.useRef)();me!=null&&me.startsWith("/api")&&Ae!=="txt"&&(me=pe.Z.API_SERVER+me);const yt=ie=>ie.substring(ie.lastIndexOf("/")+1).split(".").pop();ke&&Ie&&(Ie.filename=ke),(0,re.useEffect)(()=>{var ie,se;const ne=(se=(ie=document.cookie)==null?void 0:ie.replace(/\s/g,""))==null?void 0:se.split(";");ne==null||ne.map(ce=>{let Re=ce.split("=");Re[0]==="_educoder_session"&&st(Re[1])})},[]),(0,re.useEffect)(()=>{Ae==="office"&&(me.indexOf("bigfilescdn.")>-1||me.indexOf("bigfiles1")>-1?rt({url:me,fileType:yt(me),model:me.indexOf("model=edit")?"edit":"view"}):ae())},[Ae,me]);function xt(ie){return tt(this,null,function*(){ie.data.type==="pdfdata"&&(Ne(ie.data.data),window.removeEventListener("message",xt,!1)),console.log("mess---:",ie.data)})}const ae=()=>tt(void 0,null,function*(){console.log("data:",me);let ie=me;me.startsWith("http")||(ie=location.origin+ie);let se=new URL(ie).pathname.split("/").pop();const ne=yield(0,ze.gJ)({attachment_id:se});ne.url=Wt+ne.url,rt(ne)}),ee=()=>{if(me.startsWith("http")||me.startsWith("blob:")){z();return}(0,Le.Sv)(ke||"educoder",me,ke)},z=()=>{ge&&(0,ht.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,Le.Nd)(ke||"educoder",decodeURIComponent(me))};return ye.createElement("div",{style:Ye({},Ke||{}),className:`${It&&Ge.bgBlack} ${Ae?Ge.wrp:"hide"}`},Be&&ye.createElement("div",{className:Ge.close,ref:We},!!vt&&ye.createElement(ue.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},ye.createElement("span",{onClick:()=>{Ve(),vt()}},ye.createElement("i",{className:"icon-yulanpizhu"}))),!mt&&ye.createElement(ue.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},ye.createElement("span",{onClick:z},ye.createElement("i",{className:"icon-quxiaozhiding"}))),Te&&ye.createElement(ue.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>We.current},ye.createElement("span",{className:"",onClick:()=>{const ie=document.getElementById("pdfiframe");window.addEventListener("message",xt,!1),setTimeout(()=>{ie.contentWindow.postMessage("getData","*")},300)}},ye.createElement("i",{className:"icon-baocun"}))),ye.createElement(ue.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},ye.createElement("span",{className:"",onClick:()=>{Ve()}},ye.createElement("i",{className:"icon-guanbi1"})))),ye.createElement("div",{className:`${Ge[De]} ${De} ${Ge.monaco} ${Ae==="txt"?"show":"hide"}`},Ae==="txt"&&ye.createElement(ye.Fragment,null,ye.createElement(be.ZP,Ye({},Ie)))),Ae==="audio"&&ye.createElement("audio",{src:`${(me==null?void 0:me.indexOf("http://"))>-1||(me==null?void 0:me.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${me}`,autoPlay:!0}),Ae==="video"&&ye.createElement(ye.Fragment,null,(me==null?void 0:me.indexOf("http"))>-1?ye.createElement("video",{controls:!0,src:`${me}`,autoPlay:!0}):ye.createElement("video",{controls:!0,src:`data:video/mp4;base64,${me}`,autoPlay:!0})),Ae==="office"&&Pe&&ye.createElement("iframe",{src:`${Qe}/office.html?key=${Pe.key}&url=${btoa(Pe.url)}&callbackUrl=${Wt+(Pe.callbackUrl||"")}&fileType=${Pe.fileType}&title=${Pe.title||""}&model=${we}&officeServer=${pe.Z.ONLYOFFICE}&disabledDownload=${!!mt}`}),Ae==="html"&&ye.createElement("iframe",{src:me+"&disposition=inline"}),Ae==="pdf"&&ye.createElement("iframe",{id:"pdfiframe",src:`${Qe}/js/pdfview/index.html?filename=${ke||"educoder.pdf"}&url=${encodeURIComponent(me)}&disabledDownload=${!!mt}&model=${we}`}),Ae==="image"&&ye.createElement("img",{src:`${(me==null?void 0:me.indexOf("http://"))>-1||(me==null?void 0:me.indexOf("https://"))>-1?"":"data:image/png;base64,"}${me}`}),(Ae==="other"||Ae==="download")&&ye.createElement(ye.Fragment,null,ot?ye.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ye.createElement(Oe.ZP,{icon:ye.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ee,disabled:mt},"\u4E0B\u8F7D")}):ye.createElement(Oe.ZP,{type:"primary",size:"middle",onClick:ee,disabled:mt},ye.createElement(Ue.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ae==="flowChart"&&ye.createElement("div",{className:"embed"},ye.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${me||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},54657:function(tn,Xt,le){"use strict";le.d(Xt,{h:function(){return Se},x:function(){return xe}});var re=le(2978),Ge=le(69092),Oe=le(38394),Ue=le(59301),be=Object.defineProperty,ue=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ht=(Ee,Ye,tt)=>Ye in Ee?be(Ee,Ye,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ee[Ye]=tt,ye=(Ee,Ye)=>{for(var tt in Ye||(Ye={}))Ce.call(Ye,tt)&&ht(Ee,tt,Ye[tt]);if(ze)for(var tt of ze(Ye))pe.call(Ye,tt)&&ht(Ee,tt,Ye[tt]);return Ee},pt=(Ee,Ye)=>ue(Ee,Le(Ye)),je=(Ee,Ye)=>{var tt={};for(var at in Ee)Ce.call(Ee,at)&&Ye.indexOf(at)<0&&(tt[at]=Ee[at]);if(Ee!=null&&ze)for(var at of ze(Ee))Ye.indexOf(at)<0&&pe.call(Ee,at)&&(tt[at]=Ee[at]);return tt};const Se=Ee=>{var Ye=Ee,{value:tt,onChange:at,scrollId:we}=Ye,me=je(Ye,["value","onChange","scrollId"]);return Ue.createElement("div",{id:we||""},Ue.createElement(re.Z,pt(ye({},me),{defaultValue:tt,onChange:(Te,Ne)=>{Ne!=null&&Ne.length?at(Te,Ne):at(Te)}})))},xe=({value:Ee,onChange:Ye,placeholder:tt,height:at=140,isEdit:we,miniToolbar:me,watch:Te=!0})=>we?Ue.createElement(re.Z,{watch:Te,isFocus:!0,height:at||void 0,placeholder:tt,defaultValue:Ee,onChange:Ye,miniToolbar:me}):Ue.createElement("div",{style:{cursor:"pointer"}},Ee?Ue.createElement(Oe.Z,{className:Ge.Z.inputBorder,value:Ee}):Ue.createElement("div",{className:`${Ge.Z.inputBorder} ${Ge.Z.placeholder} inputBorderError`},tt))},38394:function(tn,Xt,le){"use strict";le.d(Xt,{z:function(){return Ie},Z:function(){return De}});var re=le(59301),Ge=le(88831),Oe=le(90290),Ue=le(64018),be=le(68535),ue=le(90524),Le=le(49661),ze=le(15342),Ce=le(77736),pe=le(99571),ht=le(1012),ye=le(41550),pt=le(59301),Se=({html:Ke})=>{const Be=(0,re.useRef)(null),Ve=(0,re.useRef)(null),It=`.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 mt=Be.current.attachShadow({mode:"open"});Ve.current=document.createElement("div"),Ve.current.className="markdown-body",Ve.current.innerHTML=Ke,mt.appendChild(Ve.current);const vt=document.createElement("style");return vt.textContent=It,mt.appendChild(vt),()=>{mt.innerHTML=""}},[]),(0,re.useEffect)(()=>{Ve.current&&(Ve.current.innerHTML=Ke)},[Ke]),pt.createElement("div",{ref:Be})};function xe(Ke){const Be=["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"],Ve=new RegExp(`\\b(${Be.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Ke.replace(Ve,"").trim()}var Ee={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ye=Object.defineProperty,tt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,me=(Ke,Be,Ve)=>Be in Ke?Ye(Ke,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Ke[Be]=Ve,Te=(Ke,Be)=>{for(var Ve in Be||(Be={}))at.call(Be,Ve)&&me(Ke,Ve,Be[Ve]);if(tt)for(var Ve of tt(Be))we.call(Be,Ve)&&me(Ke,Ve,Be[Ve]);return Ke};const Ne="@\u2581\u2581@",bt="@\u2581@",Ae=/<pre[^>]*>/g;function ke(Ke){let Be=document.createElement("div");return Be.innerHTML=Ke,Be.childNodes.length===0?"":Be.childNodes[0].nodeValue}const Ie=(Ke,Be)=>{Ke=Ke||"";const Ve=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,It=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,mt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,vt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Be?Ke.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ve,(ot,ge,fe,He,lt,st,Pe)=>{const rt=ge||He||st,Qe=fe||lt||Pe||"?";return ue.Z.API_SERVER+"/api/attachments/"+rt+Qe+"&t="+(0,Le.Jn)(rt,Date.now())+(ot.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ke=Ke.replace(vt,(ot,ge,fe,He,lt,st,Pe)=>{const rt=ge||He||st,Qe=fe||lt||Pe||"?";return ue.Z.API_SERVER+"/attachments/download/"+rt+Qe+"&t="+(0,Le.Jn)(rt,Date.now())+(ot.indexOf(")")>-1?")":"&")}).replace(Ve,(ot,ge,fe,He,lt,st,Pe)=>{const rt=ge||He||st,Qe=fe||lt||Pe||"?";return ue.Z.API_SERVER+"/api/attachments/"+rt+Qe+"&t="+(0,Le.Jn)(rt,Date.now())+(ot.indexOf(")")>-1?")":"&")}).replace(It,(ot,ge,fe,He,lt)=>{const st=ge||He,Pe=fe||lt||"";return'"'+ue.Z.API_SERVER+"/api/attachments/"+st+Pe+st+Pe+"&t="+(0,Le.Jn)(st,Date.now())}).replace(mt,(ot,ge,fe,He,lt)=>{const st=ge||He,Pe=fe||lt||"";return"("+ue.Z.API_SERVER+"/files/uploads/"+st+Pe+st+Pe+"&t="+(0,Le.Jn)(st,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Ke)};var De=({value:Ke="",edit:Be=!1,className:Ve,showTextOnly:It,showLines:mt,style:vt={},stylesPrev:ot={},highlightKeywords:ge,showProgramFill:fe,isProgramFill:He,disabledFill:lt=!1,programFillValue:st,openEditor:Pe=()=>{},onFillChange:rt=Me=>{},onFillBlur:Qe=()=>{},onFillFocus:Wt=()=>{}})=>{let Me=xe(String(Ke||""));const ut=(0,re.useRef)(),We=(0,re.useRef)(),[yt,xt]=(0,re.useState)(""),[ae,ee]=(0,re.useState)("office"),[z,ie]=(0,re.useState)([]),se=(0,re.useRef)("a"+(0,ht.Z)()),ne={},ce=it=>/<style[\s\S]*?>/i.test(it||""),Re=(it,ln,Ot)=>{const Yt=document.createElement(it===bt?"input":"textarea");Yt.style.width="100%",Yt.style.height=it===bt?"40px":"151px",Yt.rows=5,Yt.spellcheck=!1,Yt.name="edu-program-fill",Yt.placeholder="\u8BF7\u8F93\u5165",Yt.dataset.id=ln;const dn=Object.keys(ne).length;return ne[dn]=Yt,`<span class="edu-program-fill-wrap ${it===bt?"":"show"}" style="width:${it===bt?"600px":"100%"}" title=${Ot||""}><span>${Yt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Et(it){return it=it.replace(/!\[.*?\]\(.*?\)/g,""),it=it.replace(/\[.*?\]\(.*?\)/g,""),it=it.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),it=it.replace(/<embed.*?>/g,""),it=it.replace(/<img.*?>/g,""),it=it.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),it=it.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),it=it.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),it=it.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),it}const Pt=it=>!It&&ce(Me)?it:it.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ln,Ot){let Yt=Ot.replace(/(\n|\r)/g,"").split("}"),dn=[];return Yt.map(Tt=>{Tt!=""&&dn.push(`.${se.current} ${Tt}`)}),`<style>${dn.join("}")}</style>`}),_e=(0,re.useMemo)(()=>{try{const Yt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,dn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Tt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,gt=/\(\/attachments\/download\//g;Me=Me.replace(gt,"("+ue.Z.API_SERVER+"/attachments/download/").replace(Yt,"("+ue.Z.API_SERVER+"/api/attachments/").replace(dn,'"'+ue.Z.API_SERVER+"/api/attachments/").replace(Tt,'"'+ue.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,`
`),ut.current.style.display="none"}catch(Yt){}if(fe){let Yt=-1;return Me=Me.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(dn,Tt,gt){var pn;return++Yt,Re(dn,Yt,(pn=st==null?void 0:st[Yt])==null?void 0:pn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Pt(Me||"")}</pre>`}let it=Pt(Me);it=(0,Oe.ZP)(it);const ln=(0,Oe.ez)();Me.match(/\[TOC\]/)&&(it=it.replace("<p>[TOC]</p>",(0,Oe.Qv)()),(0,Oe.Iy)()),it=it.replace(/(__special_katext_id_\d+__)/g,(Yt,dn)=>{const{type:Tt,expression:gt}=ln[dn];return(0,ze.renderToString)(ke(gt)||"",{displayMode:Tt==="block",throwOnError:!1,output:"html"})}),it=it.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Oe.AL)();const Ot=document.createElement("div");if(Ot.innerHTML=it,It)return Ot.innerText;if(ge){const Yt=ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Zt(Ot,Yt),Ot.innerHTML}return setTimeout(()=>an(),500),Ot.innerHTML},[Me,ge]);(0,re.useEffect)(()=>{_t.current&&_t.current.querySelectorAll(["input","textarea"]).forEach(ln=>{ln.oninput=et,ln.onblur=qe,ln.onfocus=St})},[z]),(0,re.useEffect)(()=>{var it,ln,Ot,Yt,dn;if(st!=null&&st.length)try{const Tt=_t.current.querySelectorAll(".edu-program-fill-score"),gt=_t.current.querySelectorAll('[name="edu-program-fill"]');for(const[pn,Nn]of gt.entries())Nn.value=((it=st==null?void 0:st[pn])==null?void 0:it.value)||"",((ln=st==null?void 0:st[pn])==null?void 0:ln.type)==="warning"?Nn.className="program-fill-warning":((Ot=st==null?void 0:st[pn])==null?void 0:Ot.type)==="success"?Nn.className="program-fill-success":Nn.className="";for(const[pn,Nn]of Tt.entries())Nn.innerHTML=(Yt=st==null?void 0:st[pn])!=null&&Yt.score?`${(dn=st==null?void 0:st[pn])==null?void 0:dn.score}\u5206`:"";ie(st)}catch(Tt){console.log(Tt,"error")}},[st]);const et=it=>{z[it.target.dataset.id]=z[it.target.dataset.id]||{},z[it.target.dataset.id].value=it.target.value,ie([...z]),rt(z,it.target.dataset.id)},qe=it=>{z[it.target.dataset.id]=z[it.target.dataset.id]||{},z[it.target.dataset.id].value=it.target.value,ie([...z]),Qe(z,it.target.dataset.id)},St=it=>{z[it.target.dataset.id]=z[it.target.dataset.id]||{},z[it.target.dataset.id].value=it.target.value,ie([...z]),Wt(z,it.target.dataset.id)};function Zt(it,ln){return it.childNodes.forEach(Ot=>{var Yt;if(Ot.childNodes.length>0)Zt(Ot,ln);else if(Ot.nodeName!=="IMG")if(Ot.innerHTML)Ot.innerHTML=(Yt=Ot.innerHTML)==null?void 0:Yt.replace(new RegExp(ln,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const dn=document.createElement("span");dn.innerHTML=Ot.textContent.replace(new RegExp(ln,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ot.replaceWith(dn)}})}const _t=(0,re.useRef)();Oe.jb.WebkitLineClamp=mt,mt&&(vt=Te(Te({},vt),Oe.jb));function At(it){let ln=it.target;if(ln.tagName.toUpperCase()==="A"){let Ot=ln.getAttribute("href");if(Ot.indexOf("office")>-1)it.preventDefault(),xt(Ot),ee("office");else if(Ot.indexOf("application/pdf")>-1)it.preventDefault(),xt(Ot),ee("pdf");else if(Ot.indexOf("text/html")>-1)it.preventDefault(),xt(Ot),ee("html");else if(Ot.startsWith("#")){it.preventDefault();let Yt=document.getElementById(Ot.replace("#",""));Yt&&Yt.scrollIntoView(!0)}}}const an=()=>{var it;const ln=(it=_t.current)==null?void 0:it.querySelectorAll("video");ln==null||ln.forEach(Ot=>{if(Ot.oncontextmenu=()=>!1,Ot.src.indexOf(".m3u8")>-1&&!Ot.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var Yt=new be.ZP;Yt.loadSource(Ot.src),Yt.attachMedia(Ot)}}})};(0,re.useEffect)(()=>{if(_t.current&&_e&&_e.match(Ae)&&window.PR.prettyPrint(),_t.current)return _t.current.addEventListener("click",At),()=>{var it;(it=_t.current)==null||it.removeEventListener("click",At),(0,Oe.AL)(),(0,Oe.Iy)()}},[_e,_t.current,At]);const qt=it=>{it.target.nodeName==="IMG"&&it.target.className.indexOf("draw-flowchart")>-1?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=it.target.clientWidth+"px",ut.current.style.height=it.target.clientHeight+"px",ut.current.style.top=it.target.offsetTop+"px",ut.current.style.left=it.target.offsetLeft+"px",it.target.id&&(We.current=it.target.id)):ut.current.style.display="none"},Ht=()=>{ut.current.style.display="none"};return(0,re.useEffect)(()=>{var it;const ln=Ot=>{Ot.preventDefault(),Ot.clipboardData.setData("text",window.getSelection().toString())};return(it=_t.current)==null||it.addEventListener("copy",ln),()=>{var Ot;(Ot=_t.current)==null||Ot.removeEventListener("copy",ln)}},[_t.current]),re.createElement("div",{style:{position:"relative"},onMouseLeave:Ht},It&&re.createElement("div",{ref:_t,className:`${Ee.mdBody} `},_e),!It&&!ce(_e)&&re.createElement("div",{ref:_t,style:Te({},vt),onMouseOver:qt,className:`${Ve||""} ${lt?"disabled-fill":""} markdown-body ${Ee.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:_e}}),!It&&ce(_e)&&re.createElement(Se,{html:_e}),re.createElement("div",{ref:ut,className:`${Ee.button} ${Be?"":Ee.previewFlowChart}`},re.createElement(Ce.Z,null,re.createElement(pe.ZP,{onClick:()=>{Be?Pe(We.current):(xt(We.current),ee("flowChart"))}},Be?"\u7F16\u8F91":"\u9884\u89C8"))),re.createElement(ye.Z,{close:!0,data:yt,type:yt!=null&&yt.length?ae:"",style:Te({},ot),onClose:()=>xt("")}))}},44905:function(tn,Xt,le){"use strict";le.d(Xt,{h:function(){return we}});var re=le(59301),Ge=le(82326),Oe=le(28284),Ue=le(99571),be=le(89780),ue=le.n(be),Le=le(66543),ze=le(59598),Ce=Object.defineProperty,pe=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Se=(me,Te,Ne)=>Te in me?Ce(me,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):me[Te]=Ne,xe=(me,Te)=>{for(var Ne in Te||(Te={}))pt.call(Te,Ne)&&Se(me,Ne,Te[Ne]);if(ye)for(var Ne of ye(Te))je.call(Te,Ne)&&Se(me,Ne,Te[Ne]);return me},Ee=(me,Te)=>pe(me,ht(Te));const Ye=Ge.default.Option,tt={labelCol:{span:4},wrapperCol:{span:20}},at={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"]};Xt.Z=({callback:me,onCancel:Te})=>{const[Ne,bt]=(0,re.useState)("python");function Ae(Ie){bt(at[Ie][1])}function ke(Ie){me(Ie)}return re.createElement(Oe.default,Ee(xe({},tt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ke,style:{width:500}}),re.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(Ge.default,{getPopupContainer:Ie=>Ie.parentNode,onChange:Ae},Object.keys(at).map(Ie=>re.createElement(Ye,{key:Ie,value:Ie},at[Ie][0])))),re.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(we,{mode:Ne})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Ue.ZP,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function we({value:me,onChange:Te,mode:Ne,options:bt={}}){const Ae=(0,re.useRef)(),[ke,Ie]=(0,re.useState)();return(0,re.useEffect)(()=>{if(ke){let De=function(Ke){const Be=Ke.getValue();Te&&Te(Be)};return ke.on("change",De),()=>{ke.off("change",De)}}},[ke,Te]),(0,re.useEffect)(()=>{ke&&ke.setOption("mode",Ne)},[ke,Ne]),(0,re.useEffect)(()=>{ke&&(me!==ke.getValue()||me==="")&&setTimeout(()=>{ke.setValue(me||"")},300)},[ke,me]),(0,re.useEffect)(()=>{if(Ae.current&&!ke){const De=ue().fromTextArea(Ae.current,xe({mode:Ne,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},bt));Ie(De)}},[Ae.current,ke]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Ae}))}},2978:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return fn}});var re=le(59301),Ge=le(76560),Oe=le(89780),Ue=le.n(Oe),be=le(76374),ue=le(66543),Le=le(6313),ze=le(25717),Ce=le(99498),pe=le(25419),ht=le(67549),ye=le(38394),pt=({value:zt="",className:Jt,showTextOnly:xn,showLines:Sn,style:An={}})=>{const Kn=(0,re.useMemo)(()=>"",[zt]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:Kn}}))},je=Object.defineProperty,Se=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(zt,Jt,xn)=>Jt in zt?je(zt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:xn}):zt[Jt]=xn,we=(zt,Jt)=>{for(var xn in Jt||(Jt={}))Ye.call(Jt,xn)&&at(zt,xn,Jt[xn]);if(Ee)for(var xn of Ee(Jt))tt.call(Jt,xn)&&at(zt,xn,Jt[xn]);return zt},me=(zt,Jt)=>Se(zt,xe(Jt));let Te=[{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 Ne({onActionCallback:zt,title:Jt,icon:xn,actionName:Sn,className:An="",children:Kn}){function rr(){zt(Sn)}return re.createElement("a",{title:Jt,className:An,onClick:rr},re.createElement("i",{className:`${xn}`}),Kn)}var bt=({watch:zt,showNullButton:Jt,showNullProgramButton:xn,onActionCallback:Sn,fullScreen:An,insertTemp:Kn,hidetoolBar:rr,extraUse:Jn})=>{const Zn=[...Te,{title:`${zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!rr&&Zn.map((Gn,sn)=>re.createElement("li",{key:sn},Gn.actionName?re.createElement(Ne,me(we({},Gn),{onActionCallback:Sn})):re.createElement("span",{className:"v-line"}))),Jt?re.createElement("li",null,re.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Sn},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xn?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(Ne,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Sn},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(Ne,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Sn},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Kn&&re.createElement("li",null,re.createElement(Ne,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Kn}`,onActionCallback:Sn},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Jn&&re.createElement("li",null,Jn),re.createElement("li",{className:"btn-full-screen"},re.createElement(Ne,{icon:`${An?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:An?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Sn})))},Ae=le(75790),ke=le(28284),Ie=le(37568),De=le(99571),Ke=Object.defineProperty,Be=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,ot=(zt,Jt,xn)=>Jt in zt?Ke(zt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:xn}):zt[Jt]=xn,ge=(zt,Jt)=>{for(var xn in Jt||(Jt={}))mt.call(Jt,xn)&&ot(zt,xn,Jt[xn]);if(It)for(var xn of It(Jt))vt.call(Jt,xn)&&ot(zt,xn,Jt[xn]);return zt},fe=(zt,Jt)=>Be(zt,Ve(Jt));const He={labelCol:{span:4},wrapperCol:{span:20}};var lt=({callback:zt,onCancel:Jt})=>{function xn(Sn){zt(Sn)}return re.createElement(ke.default,fe(ge({},He),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xn,style:{width:500}}),re.createElement(ke.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(Ie.default,null)),re.createElement(ke.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(Ie.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(De.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},st=le(44905),Pe=le(45596),rt=le(62957),Qe=le(77019),Wt=le(6077),Me=le(59301),ut=({callback:zt,onCancel:Jt})=>{const xn=document.createElement("canvas"),Sn=xn.getContext("2d");xn.width=1e3,xn.height=800,Sn.fillStyle="#ffffff",Sn.fillRect(0,0,xn.width,xn.height);const An=xn.toDataURL("image/png");return Me.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Me.createElement(Qe.Z,{style:{height:"100vh"}},Me.createElement(Wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:An,visible:!0,title:String(Date.now())},onOk:Kn=>{zt({src:Kn.url})},onClose:Jt})))},We=le(30641),yt=le(5269),xt=le(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ee=le(59301),ie=(0,re.forwardRef)(({onCancel:zt,editImgId:Jt,callback:xn},Sn)=>{let An=(0,re.useRef)(),Kn=(0,re.useRef)(),rr=(0,re.useRef)(),Jn=(0,re.useRef)(!1);const Zn=(0,re.useRef)(!1);console.log("ref:",Sn);const[Gn,sn]=(0,re.useState)(0),[Lt,yn]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{sn(1)},[]),(0,re.useImperativeHandle)(Sn,()=>({setHeight:yn})),ee.createElement("div",{ref:Zn,className:"body-overflow-initial"},ee.createElement(We.Z,{width:"100vw",height:Lt,footer:null,closable:!0,placement:"bottom",open:!!Gn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Wn=>{xn({src:`/api/attachments/${Wn}`,id:Wn})})},title:ee.createElement(Qe.Z,{align:"middle"},ee.createElement(yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ee.createElement(yt.Z,{onClick:()=>{yn(Lt==="60px"?"100vh":"60px")}},ee.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ee.createElement(yt.Z,{onClick:()=>{window.saveDrawData(Wn=>{if(Wn===null){xt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}xt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),xn({src:`/api/attachments/${Wn}`,id:Wn,disabledClose:!0})})}},ee.createElement(De.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ee.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Jt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Kn})))}),se=le(90524),ne=le(47889),ce=le(71051);const Re=ne.ZP.Group,Et={margin:"0 8px"};var Pt=({callback:zt,onCancel:Jt})=>{function xn(Sn){zt(Sn)}return re.createElement(ke.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xn},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Et},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Et},"\u884C\u6570"),re.createElement(ke.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(ce.Z,null)),re.createElement("span",{style:Et},"\u5217\u6570"),re.createElement(ke.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(ce.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Et},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(ke.default.Item,{name:"align"},re.createElement(Re,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(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(De.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},_e=le(71411),et=le(11081),qe=le.n(et),Zt=(0,re.forwardRef)(({use3d:zt,width:Jt,height:xn,callback:Sn,showSaveButton:An},Kn)=>{const rr=(0,re.useRef)(),Jn=(0,re.useRef)(),[Zn,Gn]=(0,re.useState)(!1),sn=(0,re.useRef)({id:rr,appName:"graphing",width:Jt||1e3,height:xn||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)(()=>{Jn.current=new(qe())(sn.current,!0),window.onload=function(){Jn.current.inject("applet_container")}},[]);const Lt=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return Sn&&Sn(yn),yn};return(0,re.useEffect)(()=>{sn.current.appName=Zn?"3D":"graphing",Jn.current.inject("applet_container")},[Zn]),(0,re.useEffect)(()=>{Gn(zt)},[zt]),(0,re.useImperativeHandle)(Kn,()=>({getImgData:Lt})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rr}),re.createElement(Qe.Z,{align:"middle"},re.createElement(yt.Z,{flex:1},re.createElement(_e.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Zn,onChange:yn=>Gn(yn)})),re.createElement(yt.Z,null,re.createElement(De.ZP,{size:"large",onClick:Lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),_t=le(88615);const At="link",an="upload-image",qt="add-flowchart",Ht="draw-image",it="add-flowchart",ln="code-block",Ot="add-table",Yt="------------",dn={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var Tt=le(17904),gt=le(49661);function pn(){}let Nn=0;const Tn=1e4,nr="\u2581",fr="@\u2581\u2581@",br="@\u2581@",Qn=`
**\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`,En=["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 sr(zt){return/^\d+$/.test(zt)?`${zt}px`:zt}const Dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",bn={[Dn+"-B"]:"bold",[Dn+"-I"]:"italic"},$t={[At]:"\u6DFB\u52A0\u94FE\u63A5",[ln]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[an]:"\u6DFB\u52A0\u56FE\u7247",[Ht]:"\u6DFB\u52A0\u753B\u56FE",[qt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ot]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var fn=({defaultValue:zt="",onChange:Jt,width:xn="100%",height:Sn=400,miniToolbar:An=!1,isFocus:Kn=!1,watch:rr,insertTemp:Jn,mode:Zn="markdown",id:Gn="markdown-editor-id",showResizeBar:sn=!1,noStorage:Lt=!1,showNullButton:yn=!1,showNullProgramButton:Wn=!1,hidetoolBar:qn=!1,fullScreen:Xe=!1,onBlur:$e,onCMBeforeChange:un,onFullScreen:Ut,className:ct="",disablePaste:en=!1,disabled:hn=!1,disabledFill:mn=!1,placeholder:Cn="",values:gn="",extraUse:wn})=>{const[nt,$n]=(0,re.useState)(null),[kn,_n]=(0,re.useState)(zt),[zn,er]=(0,re.useState)(rr),[dr,Wr]=(0,re.useState)(Xe),[Ar,gr]=(0,re.useState)(""),[Zr,vr]=(0,re.useState)(0),[Gr,qr]=(0,re.useState)(Sn),[Ur,jr]=(0,re.useState)(!1),[Yr,Vr]=(0,re.useState)(0),[Br,$r]=(0,re.useState)(0),Kr=(0,re.useRef)(),On=(0,re.useRef)(),ir=(0,re.useRef)(),Sr=(0,re.useRef)(),Rr=(0,re.useRef)(),Nr=(0,re.useRef)(),Ir=(0,Ge.useDispatch)();(0,re.useEffect)(()=>{const Bt=window.scrollY||window.pageYOffset;_n(gn),nt==null||nt.setValue(gn),window.scrollTo(0,Bt)},[gn]),(0,re.useEffect)(()=>{Ut==null||Ut(dr)},[dr]),(0,re.useEffect)(()=>{if(Kr.current){let Bt=function(Vt,nn){var Mn;if(en){nn.preventDefault();return}const Ln=nn.clipboardData;if(Ln){const Vn=Ln.types.toString(),Bn=Ln.items;if(Vn==="Files"||Ln.types.indexOf("Files")>-1){if(nn.preventDefault(),Zn=="stex")return;try{let tr=Bn[1];((Mn=Bn[0])==null?void 0:Mn.kind)==="file"&&(tr=Bn[0]);const ar=tr.getAsFile(),yr=ar.name.split(".").pop();(0,Pe.I)(ar,lr=>{var Er,Lr,xr;lr.id?((Er=ar==null?void 0:ar.type)==null?void 0:Er.indexOf("image"))>-1?Kt.replaceSelection(`<img width="100%" src="/api/attachments/${lr.id}?type=${lr.content_type})" alt="" />`):((Lr=ar==null?void 0:ar.type)==null?void 0:Lr.indexOf("video"))>-1?Kt.replaceSelection(`<video width="100%" controls src="/api/attachments/${lr.id}"></video>`):((xr=ar==null?void 0:ar.type)==null?void 0:xr.indexOf("pdf"))>-1?Kt.replaceSelection(`<a href="/api/attachments/${lr.id}?type=${ar.type}&disposition=inline" target="_blank">${ar.name}</a>`):En.includes(yr)?Kt.replaceSelection(`<a href="/api/attachments/${lr.id}?type=office&disposition=inline" target="_blank">${ar.name}</a>`):Kt.replaceSelection(`[${ar.name}](/api/attachments/${lr.id}?type=${lr.content_type})`):(lr==null?void 0:lr.status)===401&&(document.location.href="/user/login")})}catch(tr){xt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Kt=Ue().fromTextArea(Kr.current,{mode:Zn,lineNumbers:!An,lineWrapping:!0,value:zt,autoCloseTags:!0,autoCloseBrackets:!0});return Kt.on("keyup",function(Vt,nn){nn.keyCode===8&&(Vt.getValue()==""?Kt.setOption("placeholder",Cn):Kt.setOption("placeholder",null))}),Kt.on("keydown",function(Vt,nn){if(nn.keyCode===8){var Mn=Fe(Vt);Mn&&nn.preventDefault()}}),Kn&&Kt.focus(),Kt.on("paste",Bt),hn&&Kt.on("beforeChange",function(Vt,nn){(nn.origin==="paste"||nn.origin==="+input")&&nn.cancel()}),$n(Kt),()=>{Kt.off("paste",Bt)}}},[]);const si=(0,re.useCallback)(()=>{if(On.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[Gr,On,dr]);(0,re.useEffect)(()=>{function Bt(){let Kt=new be.Z(Vt=>{for(let nn of Vt)(nn.target.offsetHeight>0||nn.target.offsetWidth>0)&&(si(),nt.setSize("100%","100%"),nt.refresh())});return Kt.observe(Kr.current.parentElement),Kt}if(nt){const Kt=Bt();return()=>{var Vt,nn;(Vt=Kr.current)!=null&&Vt.parentElement&&Kt.unobserve((nn=Kr.current)==null?void 0:nn.parentElement)}}},[nt,si]),(0,re.useEffect)(()=>{if(nt){let Bt=[];for(const[Kt,Vt]of Object.entries(bn)){let nn={[Kt]:()=>{wt(Vt)}};Bt.push(nn),nt.addKeyMap(nn)}return()=>{for(let Kt of Bt)nt.removeKeyMap(Kt)}}},[nt]),(0,re.useEffect)(()=>{Xe!==dr&&Wr(Xe)},[Xe]),(0,Tt.Z)(()=>{if(!Lt&&Zr>0){let Bt=new Date().getTime(),Kt=window.sessionStorage.getItem(Gn);Bt>=Zr+Tn&&(!Kt||Kt!==kn)&&(window.sessionStorage.setItem(Gn,kn),jr(!0))}},Tn),(0,re.useEffect)(()=>{er(rr)},[nt,rr]),(0,re.useEffect)(()=>{nt&&Kn&&nt.focus()},[nt,Kn]),(0,re.useEffect)(()=>{if(zn&&nt){let Bt=function(Vt){let nn=Vt.target;if(Sr.current){let Mn=nn.scrollTop/nn.scrollHeight;Sr.current.scrollTop=Sr.current.scrollHeight*Mn}};const Kt=nt.getScrollerElement();return Kt.addEventListener("scroll",Bt),()=>{Kt.removeEventListener("scroll",Bt)}}},[nt,zn]),(0,re.useEffect)(()=>{if(nt&&un){let Bt=function(Kt,Vt){un(Kt,Vt)};return nt.on("beforeChange",Bt),()=>{nt.off("beforeChange",Bt)}}},[nt,un]),(0,re.useEffect)(()=>{if(nt&&$e){let Bt=function(){$e(nt.getValue())};return nt.on("blur",Bt),()=>{nt.off("blur",Bt)}}},[nt,$e]);function Fe(Bt,Kt){var Vt=Bt.getDoc(),nn=Vt.getCursor(),Mn=Vt.getLine(nn.line),Ln=Mn.charAt(nn.ch-1),Vn=Mn.lastIndexOf("@\u2581@",nn.ch),Bn=Mn.lastIndexOf("@\u2581\u2581@",nn.ch),tr=Vn>Bn?Vn:Bn,ar=Vn>Bn?3:4;if(fr.indexOf(Ln)===-1)return null;if(console.log("change1:",Kt,Bt,Mn,nn,tr,Vn,Bn,Ln),tr>=0&&nn.ch-tr<5){var yr=tr+ar;return Vt.replaceRange("",{line:nn.line,ch:tr},{line:nn.line,ch:yr}),{line:nn.line,ch:yr}}return null}(0,re.useEffect)(()=>{if(nt){let Bt=function(Kt,Vt){const nn=Kt.getValue();_n(nn),vr(new Date().getTime()),Kt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Jt&&(Wn?Jt(nn,ft(nn)):Jt(nn))};return nt.on("change",Bt),()=>{nt.off("change",Bt)}}},[nt,Jt]),(0,re.useEffect)(()=>{if(nt)if(zt==null)nt.setValue(""),_n("");else{const Bt=window.scrollY||window.pageYOffset;zt!==nt.getValue()&&(nt.setValue(zt),_n(zt),nt.setCursor(hn?1:nt.lineCount(),0),window.scrollTo(0,Bt))}},[nt,zt]);const wt=(0,re.useCallback)(Bt=>{const Kt=nt.getCursor(),Vt=nt.getSelection();let nn=Vt.split(`
`);switch(Bt){case"bold":return nt.replaceSelection("**"+Vt+"**"),Vt===""&&nt.setCursor(Kt.line,Kt.ch+2),nt.focus();case"italic":return nt.replaceSelection("*"+Vt+"*"),Vt===""&&nt.setCursor(Kt.line,Kt.ch+1),nt.focus();case"code":return nt.replaceSelection("`"+Vt+"`"),Vt===""&&nt.setCursor(Kt.line,Kt.ch+1),nt.focus();case"inline-latex":return(0,gt.Ye)(Ir)?void 0:(gr("inline-latex"),nt.focus());case"latex":return nt.replaceSelection("```latex\n"+Vt+"\n```"),nt.setCursor(Kt.line+1,Vt.length+1),nt.focus();case"line-break":return nt.replaceSelection(`<br/>
`),nt.focus();case"list-ul":return Vt===""?nt.replaceSelection("- "+Vt):nt.replaceSelection(nn.map(Mn=>Mn===""?"":`- ${Mn}`).join(`
`)),nt.focus();case"list-ol":return Vt===""?nt.replaceSelection("1. "+Vt):nt.replaceSelection(nn.map((Mn,Ln)=>Mn===""?"":`${Ln+1}. ${Mn}`).join(`
`)),nt.focus();case"add-null-ch":return Vt===""&&nt.setCursor(Kt.line,Kt.ch),nt.replaceSelection(nr),nt.focus();case"add-signal":return Vt===""&&nt.setCursor(Kt.line,Kt.ch),nt.replaceSelection(br),nt.focus();case"add-multiple":return Vt===""&&nt.setCursor(Kt.line,Kt.ch),nt.replaceSelection(fr),nt.focus();case"inster-template-1":return Vt===""&&nt.setCursor(Kt.line,Kt.ch),nt.replaceSelection(Qn),nt.focus();case"eraser":return nt.setValue(""),nt.focus();case"trigger-watch":return er(!zn),nt.focus();case"trigger-full-screen":return Wr(!dr),nt.focus();case At:gr(At);return;case ln:gr(ln);return;case an:gr(an);return;case Ht:gr(Ht);return;case"maths-latex":if((0,gt.Ye)(Ir))return;gr("maths-latex");return;case qt:Rr.current="",sessionStorage.removeItem("file_id"),gr(qt);return;case Ot:gr(Ot);return;default:throw new Error}},[nt,zn,dr]),dt=(0,re.useCallback)((Bt,Kt)=>{var Vt,nn,Mn,Ln,Vn,Bn;Bt!=null&&Bt.disabledClose||gr("");const{src:tr,alt:ar,id:yr}=Bt||{};switch(Ar){case At:const{title:Dr,link:or}=Bt;return nt.replaceSelection(`[${Dr}](${or})`),nt.focus();case ln:const{language:In,content:Yn}=Bt;return nt.replaceSelection(["```"+In,Yn,"```"].join(`
`)),nt.focus();case"maths-latex":for(var lr=atob(Bt),Er=new Uint8Array(lr.length),Lr=0;Lr<lr.length;Lr++)Er[Lr]=lr.charCodeAt(Lr);var xr=new Blob([Er],{type:"image/png"});(0,Pe.I)(xr,oi=>{oi.id?nt.replaceSelection(`![,](/api/attachments/${oi.id}?type=${oi.content_type})`):(oi==null?void 0:oi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,gt.Ye)(Ir))return;nt.replaceSelection("`$$"+Bt+"$$`");break;case it:if(!yr)return;nt.getValue().indexOf(tr)===-1?nt.replaceSelection(`<center><img id="${yr}" width="80%" src="${tr}" class="draw-flowchart" alt="${ar||""}" /></center>`):document.getElementById(yr).src=se.Z.API_SERVER+tr+"?t="+Date.now();break;case an:case Ht:const Hn=Kt,kr=(Mn=(nn=(Vt=Hn==null?void 0:Hn.name)==null?void 0:Vt.split("."))==null?void 0:nn.pop)==null?void 0:Mn.call(nn);return((Ln=Hn==null?void 0:Hn.type)==null?void 0:Ln.indexOf("image"))>-1||!(Hn!=null&&Hn.type)?Hn!=null&&Hn.align||Hn!=null&&Hn.width?nt.replaceSelection(`<p style="text-align:${Hn.align||"initial"}"><img width="${Hn.width?Hn.width+"%":"initial"}" src="${tr}" alt="${ar||""}" /></p>`):nt.replaceSelection(`<img width="100%" src="${tr}" alt="${ar||""}" />`):((Vn=Hn==null?void 0:Hn.type)==null?void 0:Vn.indexOf("video"))>-1?nt.replaceSelection(`<video width="100%" controls src="${tr}"></video>`):((Bn=Hn==null?void 0:Hn.type)==null?void 0:Bn.indexOf("pdf"))>-1?nt.replaceSelection(`<a href="${tr}?type=${Hn.type}&disposition=inline" target="_blank">${Hn.name}</a>`):En.includes(kr)?nt.replaceSelection(`<a href="${tr}?type=office&disposition=inline" target="_blank">${Hn.name}</a>`):nt.replaceSelection(`[${Hn.name}](${tr})`),nt.focus();case Ot:const{row:Cr,col:Pr,align:Xr}=Bt;let wi=`
`;for(let oi=0;oi<Cr;oi++){let Gi=[],Pi=[];for(let Jr=0;Jr<Pr;Jr++)oi===1&&Pi.push(dn[Xr]),Gi.push(" ");oi===1&&(wi+=`| ${Pi.join(" | ")} |
`),wi+=`| ${Gi.join(Pr===1?"":" | ")} |
`}return nt.replaceSelection(wi+`
`),nt.focus();default:throw new Error}},[nt,Ar]),kt=(0,re.useMemo)(()=>{switch(Ar){case At:return re.createElement(lt,{callback:dt,onCancel:Mt});case ln:return re.createElement(st.Z,{callback:dt,onCancel:Mt});case an:return re.createElement(Pe.Z,{callback:dt,onCancel:Mt});case qt:return re.createElement(ie,{editImgId:Rr.current,callback:dt,onCancel:Mt});case Ot:return re.createElement(Pt,{callback:dt,onCancel:Mt});case"maths-latex":return re.createElement(Zt,{showSaveButton:!0,callback:dt});case"inline-latex":return re.createElement(_t.Z,{showSaveButton:!0,callback:dt});default:return null}},[Ar]);function Mt(){gr("")}(0,re.useEffect)(()=>{if(ir.current){let Bt=function(Vn){Mn=!0,Ln=Vn.pageY},Kt=function(){Mn=!1},Vt=function(Vn){if(Mn){let Bn=Vn.pageY-Ln;Bn<0&&(Bn=0),Bn>300&&(Bn=300);let tr=Sn+Bn+"px";qr(tr)}},nn=ir.current,Mn=!1,Ln=0;return nn.addEventListener("mousedown",Bt),document.addEventListener("mousemove",Vt),document.addEventListener("mouseup",Kt),()=>{nn.removeEventListener("mousedown",Bt),document.removeEventListener("mousemove",Vt),document.removeEventListener("mouseup",Kt)}}},[nt,ir]),(0,re.useEffect)(()=>{qr(Sn)},[Sn]);const jt=sr(xn),cn=sr(Gr),rn={width:jt,height:cn},Qt=(0,re.useMemo)(()=>{if(Zr){let Bt=new Date(Zr),Kt=Bt.getHours(),Vt=Bt.getMinutes(),nn=Bt.getSeconds();return Kt=Kt<10?"0"+Kt:Kt,Vt=Vt<10?"0"+Vt:Vt,nn=nn<10?"0"+nn:nn,`${Kt}:${Vt}:${nn}`}return 0},[Zr]),ft=Bt=>{const Kt=[];if(Wn){let Vt=-1;Bt=Bt.replace(/(@▁▁@|@▁@)/g,function(nn,Mn,Ln){Kt.push({multiLine:nn!==br})})}return Kt};function Nt(){window.sessionStorage.removeItem(Gn),jr(!1),vr(0)}function Ft(){jr(!1),vr(0),nt.setValue(window.sessionStorage.getItem(Gn))}(0,re.useEffect)(()=>{$t[Ar]&&Ar!==Ht&&Ar!==qt&&setTimeout(()=>{const Bt=document.getElementsByClassName("markdown-popup-form")[0],Kt=window.innerWidth/2-Bt.offsetWidth/2,Vt=window.innerHeight/2-Bt.offsetHeight/2;Vr(Kt),$r(Vt)},0)},[Ar]);const Rt=Bt=>{Bt.preventDefault();const Kt=Bt.clientX-Yr,Vt=Bt.clientY-Br;document.body.onmousemove=nn=>{let Mn=nn.clientX-Kt,Ln=nn.clientY-Vt;const Vn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth-Vn.offsetWidth,tr=window.innerHeight-Vn.offsetHeight;Mn=Math.max(0,Math.min(Mn,Bn)),Ln=Math.max(0,Math.min(Ln,tr)),Gt(nn.clientX,nn.clientY,Kt,Vt)&&(Vr(Mn),$r(Ln))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gt=(Bt,Kt,Vt,nn)=>{const Mn=document.body.clientHeight,Ln=document.body.clientWidth;return Bt<20&&Vt>Bt||Bt>Ln-20&&Vt<Bt||Kt<20&&nn>Kt||Kt>Mn-20&&nn<Kt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:On},re.createElement("div",{className:`markdown-editor-container ${ct} ${zn?"on-preview":""} ${An?"mini":""} ${dr?"full-screen":""}`,style:rn},re.createElement(bt,{insertTemp:Jn,watch:zn,fullScreen:dr,showNullButton:yn,showNullProgramButton:Wn,onActionCallback:wt,hidetoolBar:qn,extraUse:wn}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:Kr,placeholder:Cn})),zn?re.createElement("div",{ref:Sr,className:"preview-container"},Zn==="stex"&&re.createElement(pt,{value:kn}),Zn!=="stex"&&re.createElement(ye.Z,{edit:!0,disabledFill:mn,showProgramFill:Wn,value:kn,openEditor:Bt=>{var Kt;Rr.current=Bt,(Kt=Nr.current)==null||Kt.setHeight("100vh"),setTimeout(()=>{gr("add-flowchart")},150)}})):null))),sn?re.createElement("a",{ref:ir,className:"editor-resize"}):null,Ar===Ht&&re.createElement(ut,{callback:dt,onCancel:Mt}),Ar===qt&&re.createElement(ie,{ref:Nr,editImgId:Rr.current,callback:dt,onCancel:Mt}),re.createElement(Ae.Z,null,$t[Ar]&&Ar!==Ht&&Ar!==qt?re.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Yr,top:Br},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:Rt},$t[Ar]),open:!0,onCancel:Mt,footer:null,destroyOnClose:!0,width:Ar===qt?"1200px":null,height:Ar===qt?"80vh":null,className:"markdown-popup-form"},kt):null))}},45596:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return Te},I:function(){return bt}});var re=le(28284),Ge=le(6767),Oe=le(37568),Ue=le(77736),be=le(71051),ue=le(47889),Le=le(99571),ze=le(67303),Ce=le(59301),pe=le(59301),ht=Object.defineProperty,ye=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ee=(Ae,ke,Ie)=>ke in Ae?ht(Ae,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ae[ke]=Ie,Ye=(Ae,ke)=>{for(var Ie in ke||(ke={}))Se.call(ke,Ie)&&Ee(Ae,Ie,ke[Ie]);if(je)for(var Ie of je(ke))xe.call(ke,Ie)&&Ee(Ae,Ie,ke[Ie]);return Ae},tt=(Ae,ke)=>ye(Ae,pt(ke));const{useForm:at}=re.default,we={width:280,marginRight:10},me={labelCol:{span:5},wrapperCol:{span:19}};var Te=({callback:Ae,onCancel:ke})=>{const[Ie]=at();let De=(0,Ce.useRef)();function Ke(It){De.current.width=Ie.getFieldValue("width"),De.current.align=Ie.getFieldValue("align"),Ae(It,De.current)}function Be(It,mt){if(It.status===-1){Ge.ZP.error(It.message);return}Ie.setFieldsValue({src:`/api/attachments/${It.id}`,type:mt.type})}function Ve(It){let mt=It.target.files[0];De.current=mt,bt(mt,Be)}return pe.createElement(re.default,tt(Ye({form:Ie},me),{className:"upload-image-panel",onFinish:Ke,style:{width:470,overflow:"hidden"}}),pe.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},pe.createElement(Oe.default,{style:we})),pe.createElement(Ne,{onFileChange:Ve}))),pe.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(Oe.default,{style:{width:264}})),pe.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(Ue.Z,null,pe.createElement(re.default.Item,{name:"width",style:{margin:0}},pe.createElement(be.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},pe.createElement(ue.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"}]})),pe.createElement("aside",null,pe.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(Le.ZP,{type:"default",onClick:ke},"\u53D6\u6D88"))))};function Ne({onFileChange:Ae}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:Ae}))}function bt(Ae,ke){if(!Ae)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ie=new FormData;Ie.append("editormd-image-file",Ae),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(Ke){ke(JSON.parse(Ke.target.responseText),Ae)},!1),De.addEventListener("error",function(Ke){console.error(Ke)},!1),De.open("POST",`${ze.KI}/api/attachments.json`),De.send(Ie)}},75790:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return Oe}});var re=le(59301),Ge=le(4676);class Oe extends re.Component{constructor(be){super(be);const ue=window.document;this.node=ue.createElement("div"),ue.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Ge.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(tn,Xt,le){"use strict";le.d(Xt,{SV:function(){return ut},ZP:function(){return Me}});var re=le(59301),Ge=le(76374);const Oe={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"]},Ue={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},be={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},ue={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 ze=le(53184),Ce=le.n(ze),pe=(We,yt,xt)=>new Promise((ae,ee)=>{var z=ne=>{try{se(xt.next(ne))}catch(ce){ee(ce)}},ie=ne=>{try{se(xt.throw(ne))}catch(ce){ee(ce)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);se((xt=xt.apply(We,yt)).next())});const ht={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"]}},ye=(We,yt,xt,ae)=>{const ee=yt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:xt.lineNumber,endColumn:xt.column});return Array.from(new Set(ee.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:We.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},pt=(We,yt,xt,ae)=>{We.languages.registerCompletionItemProvider(yt,{provideCompletionItems(ee,z){const ie=ee.getWordUntilPosition(z),se={startLineNumber:z.lineNumber,endLineNumber:z.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},ne=ee.getLineContent(z.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...ye(We,ee,z,se),...xt.map(Re=>({label:Re,kind:We.languages.CompletionItemKind.Keyword,documentation:Re,insertText:Re,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Re=>({label:Re.label,kind:We.languages.CompletionItemKind.Snippet,documentation:Re.content,insertText:ne.startsWith("#")?Re.content.replace(/#/,""):Re.content,insertTextRules:We.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var je=We=>{ht.languages.forEach(yt=>{We.languages.registerDocumentFormattingEditProvider(yt,{provideDocumentFormattingEdits(xt){return pe(this,null,function*(){const ae=Ce()(xt.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:xt.getFullModelRange(),text:ae}]})}})}),pt(We,"java",Ue.keywords,Ue.quickKey),pt(We,"cpp",be.keywords,be.quickKey),pt(We,"c",Oe.keywords,[]),pt(We,"python",ue.keywords,ue.quickKey),pt(We,"scala",Le.keywords,Le.quickKey)};const Se="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var xe=Object.defineProperty,Ee=(We,yt,xt)=>yt in We?xe(We,yt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):We[yt]=xt,Ye=(We,yt,xt)=>Ee(We,typeof yt!="symbol"?yt+"":yt,xt);const tt=class Gs{constructor(yt,xt,ae){this.placeholder=yt,this.editor=xt,this.monaco=ae,xt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Gs.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)}};Ye(tt,"ID","editor.widget.placeholderHint");var we=tt,me=le(96236),Te=le(6767),Ne=le(25399),bt=le(89392),Ae=le(33796),ke=le(56102),Ie=Object.defineProperty,De=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,mt=(We,yt,xt)=>yt in We?Ie(We,yt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):We[yt]=xt,vt=(We,yt)=>{for(var xt in yt||(yt={}))Ve.call(yt,xt)&&mt(We,xt,yt[xt]);if(Be)for(var xt of Be(yt))It.call(yt,xt)&&mt(We,xt,yt[xt]);return We},ot=(We,yt)=>De(We,Ke(yt)),ge=(We,yt)=>{var xt={};for(var ae in We)Ve.call(We,ae)&&yt.indexOf(ae)<0&&(xt[ae]=We[ae]);if(We!=null&&Be)for(var ae of Be(We))yt.indexOf(ae)<0&&It.call(We,ae)&&(xt[ae]=We[ae]);return xt},fe=(We,yt,xt)=>new Promise((ae,ee)=>{var z=ne=>{try{se(xt.next(ne))}catch(ce){ee(ce)}},ie=ne=>{try{se(xt.throw(ne))}catch(ce){ee(ce)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);se((xt=xt.apply(We,yt)).next())});function He(We){return/^\d+$/.test(We)?`${We}px`:We}function lt(){}let st=!1;const Pe={"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 rt(We=[]){let yt=We;if(Array.isArray(We)){for(let xt=0;xt<We.length;xt++){let ae=Pe[We[xt]];if(ae)return ae}return yt[0]}return Pe[yt]||yt}let Qe=null;const Wt=()=>fe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(We){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",We)}});var Me=We=>{var yt=We,{width:xt="100%",height:ae="100%",value:ee,language:z="javascript",style:ie={},options:se={},overrideServices:ne={},theme:ce="vs-dark",onEditBlur:Re,isCopy:Et=!1,onSave:Pt,autoHeight:_e=!1,forbidCopy:et=!1,onChange:qe=lt,editorDidMount:St=lt,onFocus:Zt=lt,onBreakPoint:_t=lt,breakPointValue:At=[],filename:an="educoder.txt",errorLine:qt,errorContent:Ht="",highlightLine:it,openBreakPoint:ln=!1,placeholder:Ot="",showMiniMap:Yt=!0}=yt,dn=ge(yt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Tt=(0,re.useRef)(),gt=(0,re.useRef)({}),pn=(0,re.useRef)(),Nn=(0,re.useRef)(),Tn=(0,re.useRef)([]),nr=(0,re.useRef)(!1),fr=(0,re.useRef)(),br=(0,re.useRef)(),Qn=(0,re.useRef)(!1),[En,sr]=(0,re.useState)(!1);function ur(){let sn;return Tt.current&&(sn=new Ge.Z(Lt=>{for(let yn of Lt)(yn.target.offsetHeight>0||yn.target.offsetWidth>0)&&gt.current.instance.layout()}),sn.observe(Tt.current)),sn}function Dn(){Te.ZP.warning({content:decodeURIComponent(Se),key:"monaco-editor-tip"})}const bn=()=>{let sn=gt.current.instance;if(ee!=null&&sn&&En){const Lt=sn.getModel();Lt&&ee!==Lt.getValue()&&(st=!0,Lt.setValue(ee),sn.layout(),st=!1)}};(0,re.useEffect)(()=>{const sn=Ae.Z.subscribe("formatDocument",Lt=>{var yn;let Wn=gt.current.instance;(yn=Wn==null?void 0:Wn.getAction)==null||yn.call(Wn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Lt=>{qe(Lt)},sn},[]),(0,re.useEffect)(()=>{var sn;let Lt=gt.current.instance;Nn.current&&clearTimeout(Nn.current),Nn.current=setTimeout(()=>{bn()},500),ee&&(ee!=null&&ee.length)&&((sn=Lt==null?void 0:Lt.updateOptions)==null||sn.call(Lt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ee.split(/\r\n|\r|\n/g).length))+3,5)}))},[ee,En,gt.current]),(0,re.useEffect)(()=>{if(qt&&gt.current&&gt.current.instance){let Lt=gt.current.instance;Lt.changeViewZones(function(yn){var Wn=document.createElement("div");Wn.style.padding="10px 20px",Wn.style.width="calc(100% - 20px)",Wn.className="my-error-line-wrp",Wn.innerHTML=Ht,yn.addZone({afterLineNumber:qt||11,heightInLines:3,domNode:Wn})});var sn={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}};Lt.addOverlayWidget(sn),Lt.revealPositionInCenter({lineNumber:20,column:1})}},[qt,gt.current,En]);const $t=(sn="",Lt)=>{if(!sn||sn.trim()==="")return!0;const Wn=gt.current.instance.getModel().getLineTokens(Lt);let qn=!1;for(let Xe=0;Xe<2;Xe++)Wn.getStandardTokenType(Xe)===1&&(qn=!0);return qn};(0,re.useEffect)(()=>{var sn;const Lt=(sn=gt.current)==null?void 0:sn.instance;if(Lt&&En&&et){const yn=Lt.onDidBlurEditorWidget(()=>{Qn.current=!1}),Wn=Lt.onDidFocusEditorText(()=>{Qn.current=!0});return()=>{yn.dispose(),Wn.dispose()}}},[gt.current,En,et]),(0,re.useEffect)(()=>{var sn;if((sn=gt.current)!=null&&sn.instance&&En&&ln){let Lt=gt.current.instance,yn=Lt.getModel();if(!yn)return;(()=>{var gn;let wn=[],nt=[];const $n=yn.getAllDecorations();for(let _n of $n)_n.options.className==="highlighted-line"&&(wn.push((gn=_n==null?void 0:_n.range)==null?void 0:gn.startLineNumber),nt.push(_n==null?void 0:_n.id));if(it===wn[0])return;yn.deltaDecorations(nt,[]);const kn=yn.getLineCount();it&&it<=kn&&(Lt.deltaDecorations([],[{range:new Qe.Range(it,1,it,yn.getLineMaxColumn(it)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Lt.revealLineInCenter(it))})();const qn=(gn=!1)=>{var wn;let nt=[],$n=[];const kn=yn.getAllDecorations();for(let _n of kn)_n.options.linesDecorationsClassName==="breakpoints-select"&&(nt.push((wn=_n==null?void 0:_n.range)==null?void 0:wn.startLineNumber),$n.push(_n==null?void 0:_n.id));if(gn)return{lines:nt,ids:$n};_t(nt)},Xe=gn=>fe(void 0,null,function*(){let wn={range:new Qe.Range(gn,1,gn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield yn.deltaDecorations([],[wn]),qn()}),$e=gn=>fe(void 0,null,function*(){let wn=[];const nt=Lt.getLineDecorations(gn);for(let $n of nt)$n.options.linesDecorationsClassName==="breakpoints-select"&&wn.push($n.id);yield yn.deltaDecorations(wn,[]),qn()}),un=gn=>{let wn=Lt.getLineDecorations(gn);for(let nt of wn)if(nt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,bt.isEqual)(At,qn(!0).lines)){yn.deltaDecorations(qn(!0).ids,[]);const gn=At.map(wn=>({range:new Qe.Range(wn,1,wn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));yn.deltaDecorations([],gn)}const Ut=Lt.onDidChangeModelContent(gn=>{let wn=Lt.getPosition();if(wn){let nt=wn.lineNumber;clearTimeout(br.current),br.current=setTimeout(()=>{$t(yn.getLineContent(nt),nt)?$e(nt):un(nt)?($e(nt),Xe(nt)):qn()},100)}}),ct=Lt.onMouseDown(gn=>{var wn,nt,$n;if(gn.target.detail&&(($n=(nt=(wn=gn.target)==null?void 0:wn.element)==null?void 0:nt.className)!=null&&$n.includes("line-numbers"))){let kn=gn.target.position.lineNumber;if($t(yn.getLineContent(kn),kn))return;un(kn)?$e(kn):Xe(kn)}}),en=gn=>{let wn={range:new Qe.Range(gn,1,gn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Tn.current=Lt.deltaDecorations(Tn.current,[wn])},hn=()=>{Tn.current=Lt.deltaDecorations(Tn.current,[])},mn=Lt.onMouseMove(gn=>{var wn,nt,$n;if(hn(),gn.target.detail&&(($n=(nt=(wn=gn.target)==null?void 0:wn.element)==null?void 0:nt.className)!=null&&$n.includes("line-numbers"))){let kn=gn.target.position.lineNumber;if($t(yn.getLineContent(kn),kn))return;en(kn)}}),Cn=Lt.onMouseLeave(()=>{hn()});return()=>{Ut.dispose(),ct.dispose(),mn.dispose(),Cn.dispose()}}},[gt.current,En,At,it,ln,z]),(0,re.useEffect)(()=>{var sn;(sn=gt.current)!=null&&sn.instance&&ln&&gt.current.instance.setPosition({lineNumber:0,column:0})},[it]);function fn(){let sn=gt.current.instance;if(sn){const Lt=sn.getSelection(),yn=gt.current.pastePos||{},Wn=new Qe.Range(yn.startLineNumber||Lt.endLineNumber,yn.startColumn||Lt.endColumn,yn.endLineNumber||Lt.endLineNumber,yn.endColumn||Lt.endColumn);setTimeout(()=>{sn.executeEdits("",[{range:Wn,text:""}])},300)}}function zt(sn){(window.navigator.platform.match("Mac")?sn.metaKey:sn.ctrlKey)&&sn.keyCode==83&&(sn.preventDefault(),Pt())}const Jt=()=>{if(_e&&gt.current.instance){const sn=gt.current.instance.getContentHeight();Zn(sn<ae?ae:sn)}else Zn(ae)};function xn(sn){var Lt=document.createEvent("MouseEvents");Lt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sn.dispatchEvent(Lt)}const Sn=sn=>{if(!Qn.current)return;const{keyCode:Lt,ctrlKey:yn,metaKey:Wn,target:qn,type:Xe}=sn;return(Xe==="paste"||(Lt===67||Lt===86)&&(Wn||yn))&&qn.nodeName==="TEXTAREA"&&(Dn(),sn.preventDefault()),!1};function An(sn,Lt){var yn=window.URL||window.webkitURL||window,Wn=new Blob([Lt]),qn=document.createElementNS("http://www.w3.org/1999/xhtml","a");qn.href=yn.createObjectURL(Wn),qn.download=sn,xn(qn)}(0,re.useEffect)(()=>{Jt()},[Jt]),(0,re.useEffect)(()=>{Tt.current&&!En&&Promise.all([le.e(8909),le.e(5028)]).then(le.bind(le,71448)).then(sn=>{try{Qe=sn,gt.current.instance=Qe.editor.create(Tt.current,{value:ee,language:rt(z),theme:ce,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Yt||!1}},ne);const Lt=gt.current.instance;let qn=[...me.BH._menuItems].find(Ut=>Ut[0]._debugName=="EditorContext")[1],Xe=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],$e=(Ut,ct)=>{var en,hn;let mn=Ut._first;do ct.includes((hn=(en=mn.element)==null?void 0:en.command)==null?void 0:hn.id)&&Ut._remove(mn);while(mn=mn.next)};if(St(Lt,Qe),setTimeout(()=>{Jt(),gt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{An(an||"educoder.txt",Lt.getValue())}})},500),gt.current.subscription=Lt.onDidChangeModelContent(Ut=>{nr.current?clearTimeout(fr.current):(Jt(),qe(Lt.getValue(),Ut)),fr.current=setTimeout(()=>{nr.current=!1},500)}),window.Monaco||je(Qe,rt(z)),et&&($e(qn,Xe),Tt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Sn),window.removeEventListener("paste",Sn),window.addEventListener("keydown",Sn),window.addEventListener("paste",Sn)),window.Monaco=Qe,Re&&Lt.onDidBlurEditorWidget(()=>{Re(Lt.getValue())}),Zt&&Lt.onDidFocusEditorText(()=>{et&&Wt(),Zt(Lt.getValue())}),et){Wt();try{Lt.onDidPaste(Ut=>{const ct=Lt.getSelection(),en=gt.current.pastePos||{},hn=new Qe.Range(en.startLineNumber||ct.endLineNumber,en.startColumn||ct.endColumn,en.endLineNumber||ct.endLineNumber,en.endColumn||ct.endColumn);Lt.executeEdits("",[{range:Ut.range,text:""}])})}catch(Ut){}}let un=ur();return Ot&&typeof Ot=="string"&&new we(Ot,Lt,Qe),sr(!0),()=>{const Ut=gt.current.instance;Ut.dispose();const ct=Ut.getModel();ct&&ct.dispose(),gt.current.subscription&&gt.current.subscription.dispose(),un.unobserve(Tt.current)}}catch(Lt){}})},[]),(0,re.useEffect)(()=>{if(gt.current.instance&&En)return document.addEventListener("keydown",zt,!1),()=>{document.removeEventListener("keydown",zt)}},[Pt,En]),(0,re.useEffect)(()=>{let sn=gt.current.instance;if(sn&&En){let Lt=rt(z);Qe.editor.setModelLanguage(sn.getModel(),Lt)}},[z,En]),(0,re.useEffect)(()=>{gt.current.instance&&En&&Qe.editor.setTheme(ce)},[ce,En]),(0,re.useEffect)(()=>{let sn=gt.current.instance;pn.current=se,sn&&En&&(sn.updateOptions(vt({},se)),setTimeout(()=>{sn.getModel().updateOptions(vt({},se))},200))},[JSON.stringify(se),En]),(0,re.useEffect)(()=>{let sn=gt.current.instance;sn&&En&&sn.layout()},[xt,ae,En]);const[Kn,rr]=(0,re.useState)(He(xt)),[Jn,Zn]=(0,re.useState)(He(ae)),Gn=ot(vt({},ie),{width:Kn,height:Jn,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:Tt,style:Gn},Et&&re.createElement(ke.CopyToClipboard,{text:ee,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(Ne.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 ut({width:We="100%",height:yt="100%",original:xt,modified:ae,language:ee,options:z={}}){const ie=(0,re.useRef)(),[se,ne]=(0,re.useState)(null);function ce(_e){let et;return ie.current&&(et=new Ge.Z(qe=>{for(let St of qe)(St.target.offsetHeight>0||St.target.offsetWidth>0)&&_e.layout()}),et.observe(ie.current)),et}(0,re.useEffect)(()=>(ie.current&&Promise.all([le.e(8909),le.e(9404)]).then(le.bind(le,2550)).then(_e=>{Qe=_e;const et=Qe.editor.createDiffEditor(ie.current,ot(vt({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(et);let qe=ce(et);return()=>{et.dispose();const St=et.getModel();St&&St.dispose(),qe.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{se&&se.setModel({original:Qe.editor.createModel(xt,ee),modified:Qe.editor.createModel(ae,ee)})},[xt,ae,ee,se]);const Re=He(We),Et=He(yt),Pt={width:Re,height:Et};return re.createElement("div",{className:"my-diff-editor",ref:ie,style:Pt})}},929:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return ye}});var re={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Ge=le(29787),Oe=le(25399),Ue=le(60242),be=le(92310),ue=le.n(be),Le=le(49661),ze=le(57884),Ce=le(34055),pe=le(59301),ye=({className:pt,dataSource:je=[],col:Se=4,right:xe,bottom:Ee=23,precision:Ye=0,wrapWidth:tt=1200,trackEventItems:at,loading:we,onRemove:me=()=>{},isCurrent:Te=!0,showProgress:Ne=!1,showAlias:bt=!1})=>{const Ae=Math.floor((tt-(Se-1)*xe)/Se),ke=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return pe.createElement(Ge.Z,{spinning:we},pe.createElement("div",{className:ue()(re.list,pt)},!!(je!=null&&je.length)&&(je==null?void 0:je.map((Ie,De)=>{var Ke,Be,Ve,It,mt,vt;const{name:ot,id:ge,identifier:fe,featured:He,school_name:lt,image_url:st,excellent:Pe,is_plan:rt}=Ie;return pe.createElement("div",{key:ge,className:Te&&Ne?re.wrapisCurrent:re.wrap,style:{width:Ae,marginRight:(1+De)%Se===0?0:xe+Ye,marginBottom:Ee}},pe.createElement("a",{className:re.li,onClick:Qe=>{Qe.preventDefault(),Qe.stopPropagation(),at&&(0,Le.L9)([at]),(0,Le.xg)(`/paths/${fe}`)}},pe.createElement("div",{className:re.img},pe.createElement("img",{className:re.cover,src:`${st}`}),Te&&(0,Ce.bg)()&&(Ie==null?void 0:Ie.studying)&&pe.createElement("div",{className:`${re.movebq} user-path-items`,onClick:Qe=>{Qe.stopPropagation(),me(Ie)}},pe.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),pe.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Ke=Ie==null?void 0:Ie.subject_tags)==null?void 0:Ke.map((Qe,Wt)=>{var Me,ut;if(Wt===0){const yt=(Me=ke.find(xt=>xt.name==Qe))==null?void 0:Me.swimg;return pe.createElement("img",{className:re.sign,src:yt,style:{left:"-4px"}})}const We=(ut=ke.find(yt=>yt.name==Qe))==null?void 0:ut.ptimg;return pe.createElement("img",{className:re.sign,src:We,style:{left:`${48+52*(Wt-1)+2*Wt}px`}})}),pe.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ie==null?void 0:Ie.excellent)&&pe.createElement("div",{className:re.bq},"\u5F00\u653E\u8BFE\u7A0B"))),pe.createElement("div",{className:re.name},pe.createElement(Oe.Z,{title:bt&&(Ie!=null&&Ie.excellent_alias_name)?pe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ot}`,pe.createElement("br",null),pe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ie==null?void 0:Ie.excellent_alias_name}`)):ot},pe.createElement("span",{className:re.e},bt&&(Ie==null?void 0:Ie.excellent_alias_name)||ot))),Te&&Ne&&((Be=Ie==null?void 0:Ie.progress)==null?void 0:Be.all_score)!=0&&pe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},pe.createElement(Ue.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ve=Ie==null?void 0:Ie.progress)==null?void 0:Ve.my_score)/((It=Ie==null?void 0:Ie.progress)==null?void 0:It.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(mt=Ie==null?void 0:Ie.progress)==null?void 0:mt.my_score,"/",(vt=Ie==null?void 0:Ie.progress)==null?void 0:vt.all_score),(!Te||!Ne)&&pe.createElement(Oe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${lt}`},pe.createElement("div",{className:re.unit},pe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),lt)),(!Te||!Ne)&&pe.createElement("div",{className:re.tags},pe.createElement("div",null,pe.createElement(Oe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),pe.createElement("span",null,Ie.stages_count))),pe.createElement(Oe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),pe.createElement("span",null,Ie.members_count)))))))})),!je.length&&pe.createElement(ze.Z,null)))}},71360:function(tn,Xt,le){"use strict";le.d(Xt,{jL:function(){return be},w9:function(){return He},QD:function(){return qt},cQ:function(){return mt.Z},op:function(){return qe},O5:function(){return bn},_b:function(){return dn},t7:function(){return Ye},Gi:function(){return Wt},YG:function(){return rt},qp:function(){return ht},vr:function(){return ln},qE:function(){return _t},Je:function(){return we},wb:function(){return It},cq:function(){return ae},tp:function(){return je}});var re=le(59301),Ge={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFM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Vib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:$t=[],img:fn,imgWidth:zt=346,title:Jt,sunTitle:xn,bannerExtraContent:Sn})=>re.createElement("div",{className:Ge.banner},re.createElement("div",{className:Ge.content},re.createElement("aside",null,re.createElement("p",null,re.createElement("b",null,Jt),re.createElement("span",null,xn)),$t.length>0&&re.createElement("div",{className:Ge.btns},$t.map((An,Kn)=>re.createElement("div",{key:Kn,onClick:An.click},An.name,An.sign?re.createElement("img",{src:Oe,width:39}):null))),Sn),fn&&re.createElement("img",{style:{marginTop:33,marginRight:38},src:fn,width:zt}))),ue={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Le=le(92310),ze=le.n(Le),Ce=le(89392),ht=({dataSource:$t=[],value:fn,onChange:zt,onTitleChange:Jt,className:xn,title:Sn,titleWidth:An=41,style:Kn={},fontColor:rr="#6A7283",showCount:Jn})=>{const[Zn,Gn]=(0,re.useState)(0),[sn,Lt]=(0,re.useState)(!1),yn=(0,re.useRef)(null),Wn=(0,re.useRef)(null);return(0,re.useEffect)(()=>{var qn;$t.length!==0&&(((qn=yn==null?void 0:yn.current)==null?void 0:qn.clientHeight)>97?Gn(1):Gn(0)),$t.length===0&&Gn(0),Lt(!1)},[$t]),re.createElement("div",{className:ze()(ue.row,xn),style:Kn},re.createElement("div",{onClick:(0,Ce.throttle)(()=>Jt==null?void 0:Jt(),2e3),style:{width:An,marginTop:sn?12:4},className:`${ue.title} ${Jt?"current":""}`},Sn),re.createElement("div",{className:sn?`${ue.tagsWrap} ${ue.tagsBorderWrap}`:ue.tagsWrap},re.createElement("div",{className:ue.bar,ref:Wn,style:Zn>0?{height:Zn===1?97:"auto",overflow:Zn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},re.createElement("div",{className:ue.tag,ref:yn},$t==null?void 0:$t.map(qn=>re.createElement("span",{onClick:()=>zt(qn.id),key:qn.id,style:{color:rr},className:fn===qn.id?ue.active:""},re.createElement("span",{title:qn.name,className:ue.name},qn.name),!!Jn&&re.createElement("span",{className:ue.num},qn.count))))),!!Zn&&re.createElement(re.Fragment,null,Zn===1?re.createElement("div",{onClick:()=>{var qn;Gn(2),((qn=yn==null?void 0:yn.current)==null?void 0:qn.clientHeight)>245?Lt(!0):Lt(!1)},className:ue.action},"\u5C55\u5F00",re.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):re.createElement("div",{onClick:()=>{Wn.current.scrollTop=0,Gn(1),Lt(!1)},className:ue.action},"\u6536\u8D77",re.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ye={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},je=({dataSource:$t=[],value:fn,onChange:zt,className:Jt,style:xn={}})=>re.createElement("div",{style:xn,className:ze()(ye.tabs,Jt)},$t.map(Sn=>re.createElement("span",{onClick:()=>zt(Sn.id),className:fn===Sn.id?ye.active:"",key:Sn.id},Sn.name))),Se={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},xe=le(37568),Ye=({dataSource:$t=[],value:fn="",onChange:zt,onInputChange:Jt=()=>{},className:xn,style:Sn={},placeholder:An,allowClear:Kn=!1})=>{var rr;const[Jn,Zn]=(0,re.useState)(""),[Gn,sn]=(0,re.useState)("");(0,re.useEffect)(()=>{var Wn;let qn=fn;(Wn=JSON.stringify(fn))!=null&&Wn.includes("{")&&(Zn(fn.id),qn=fn.value||"");try{sn(decodeURIComponent(qn||""))}catch(Xe){sn(decodeURIComponent(qn||""))}},[fn]);const Lt=()=>{zt(encodeURIComponent(Gn),Jn||null)},yn=Wn=>{Wn!==Jn&&(Zn(Wn),zt(encodeURIComponent(Gn),Wn))};return re.createElement("div",{className:ze()(Se.input,xn),style:Sn},!!$t.length&&re.createElement("div",{className:Se.dropdown},re.createElement("div",{className:Se.text},(rr=$t.find(Wn=>Wn.id===Jn))==null?void 0:rr.name,re.createElement("i",{className:"iconfont icon-zhankai4"}),re.createElement("b",{className:Se.b1}),re.createElement("b",{className:Se.b2})),re.createElement("div",{className:Se.menu},$t.map((Wn,qn)=>re.createElement("div",{key:qn,onClick:()=>yn(Wn.id)},Wn.name)))),re.createElement(xe.default,{onPressEnter:Lt,value:Gn,onChange:Wn=>{sn(Wn.target.value),Jt(encodeURIComponent(Wn.target.value),Jn||null)},placeholder:An,variant:"borderless",allowClear:Kn,onClear:()=>zt("",Jn||null)}),re.createElement("i",{onClick:Lt,className:"iconfont icon-sousuo9 font14 current"}))},tt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},we=({value:$t,onChange:fn,className:zt,total:Jt,pageSize:xn,style:Sn={}})=>{const An=$t<2,Kn=$t>=Math.ceil(Jt/xn);return Jt<=xn?re.createElement(re.Fragment,null):re.createElement("div",{className:ze()(tt.quickPager,zt),style:Sn},re.createElement("div",{onClick:()=>{An||fn($t-1,"prev")},className:An?tt.disabled:""},"\u4E0A\u4E00\u9875"),re.createElement("div",{onClick:()=>{Kn||fn($t+1,"next")},className:Kn?tt.disabled:""},"\u4E0B\u4E00\u9875"))},me={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Te=le(29787),Ne=le(25399),bt=le(58018),Ae=le(90524),ke=le(49661),Ie=le(96908),De=le(57177),Ke=le(81378),Be=le(57884),It=({className:$t,dataSource:fn=[],col:zt=4,right:Jt,bottom:xn=23,precision:Sn=0,wrapWidth:An=1200,trackEventItems:Kn,loading:rr})=>{const Jn=Math.floor((An-(zt-1)*Jt)/zt);return re.createElement(Te.Z,{spinning:rr},re.createElement("div",{className:ze()(me.list,$t)},!!fn.length&&fn.map((Zn,Gn)=>{const{name:sn,id:Lt,identifier:yn,power:Wn,cover_image_id:qn,pic:Xe}=Zn;return re.createElement("div",{className:me.wrap,key:Lt,style:{width:Jn,marginRight:(1+Gn)%zt===0?0:Jt+Sn,marginBottom:xn}},re.createElement("a",{target:"_blank",href:`/shixuns/${yn}/challenges`,className:me.li,onClick:$e=>{$e.preventDefault(),Kn&&(0,ke.L9)([Kn]),Wn&&(0,ke.xg)(`/shixuns/${yn}/challenges`)}},re.createElement("div",{className:me.img},re.createElement("img",{className:me.cover,src:`${Xe}`}),Zn.is_jupyter&&re.createElement("img",{className:me.sign,src:Ie}),Zn.is_jupyter_lab&&re.createElement("img",{className:me.sign,src:De}),Zn.is_unity_3d&&re.createElement("img",{className:me.sign,src:Ke})),re.createElement("div",{className:me.name},re.createElement(Ne.Z,{title:sn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:me.e},sn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{className:me.tags},re.createElement(Ne.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),re.createElement("span",null,Zn.challenges_count))),!!Zn.myshixuns_count&&re.createElement(Ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),re.createElement("span",null,Zn.myshixuns_count))),re.createElement(Ne.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},re.createElement("span",null,re.createElement("span",null,Zn.level))),re.createElement("div",{className:me.rate},re.createElement(bt.Z,{allowHalf:!0,disabled:!0,defaultValue:Zn.score_info}),re.createElement("span",null,"\xA0",Zn.score_info?`${Zn.score_info}\u5206`:"5\u5206")))),!Wn&&re.createElement("div",{className:me.lockWrap},re.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!fn.length&&re.createElement(Be.Z,null)))},mt=le(929),vt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLR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p9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ge=le(59301),He=({className:$t,dataSource:fn=[],col:zt=4,right:Jt,bottom:xn=23,precision:Sn=0,wrapWidth:An=1200,trackEventItems:Kn,loading:rr,handleVery:Jn=()=>!0})=>{const Zn=Math.floor((An-(zt-1)*Jt)/zt);return ge.createElement(Te.Z,{spinning:rr},ge.createElement("div",{className:ze()(vt.list,$t)},!!fn.length&&fn.map((Gn,sn)=>{const{subject_identifier:Lt,id:yn,identifier:Wn,power:qn}=Gn,Xe=Gn.is_public!=0&&Gn.is_public;return ge.createElement("div",{className:vt.wrap,key:yn,style:{width:Zn,marginRight:(1+sn)%zt===0?0:Jt+Sn,marginBottom:xn}},ge.createElement("a",{className:vt.li,onClick:$e=>{$e.preventDefault(),Jn(Gn==null?void 0:Gn.first_category_url)&&(Kn&&(0,ke.L9)([Kn]),(0,ke.xg)(Gn.first_category_url))}},ge.createElement("div",{className:vt.top},ge.createElement(Ne.Z,{title:Gn.name},ge.createElement("div",{className:vt.name},Gn.name)),ge.createElement("img",{className:vt.img,src:Ae.Z.IMG_SERVER+"/images/"+Gn.avatar_url}),ge.createElement("div",{className:vt.text,title:Gn.creator},Gn.creator),Lt&&ge.createElement("div",{className:vt.btns},ge.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ge.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Xe&&ge.createElement("div",{className:vt.sign},"\u516C\u5F00")),ge.createElement("div",{className:vt.bottom},Gn.visits>0&&ge.createElement(Ne.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-liulanyan"}),ge.createElement("span",null,Gn.visits))),Gn.course_members_count>0&&ge.createElement(Ne.Z,{title:"\u6210\u5458",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan"}),Gn.course_members_count)),Gn.tasks_count>0&&ge.createElement(Ne.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-zuoye"}),Gn.tasks_count)),Gn.is_end?ge.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ge.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gn.is_accessible&&ge.createElement("div",{className:vt.lockWrap},ge.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ge.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!fn.length&&ge.createElement(Be.Z,null)))},lt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},st=le(76560),rt=({dataSource:$t=[],value:fn,onChange:zt,className:Jt,style:xn={},tabBarExtraContent:Sn})=>re.createElement("div",{className:ze()(lt.tabs,Jt),style:xn},re.createElement("div",{className:lt.tabsWrap},$t.map((An,Kn)=>!(An!=null&&An.hide)&&re.createElement("aside",{className:lt.tab,onClick:()=>{zt(An.id),An.link&&st.history.push(An.link)},key:Kn},re.createElement("div",{className:fn===An.id?lt.active:""},An.name),(An==null?void 0:An.resetCount)==null&&(An==null?void 0:An.total)!==void 0&&re.createElement("span",null,"\uFF08",An==null?void 0:An.total,"\uFF09"),(An==null?void 0:An.resetCount)!==void 0&&(An==null?void 0:An.total)!==void 0&&re.createElement(Ne.Z,{title:(An==null?void 0:An.tip)!=null?An==null?void 0:An.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},An==null?void 0:An.resetCount),"/",re.createElement("span",null,An==null?void 0:An.total),"\uFF09"))))),re.createElement("div",{className:lt.tabBar},Sn)),Wt=({className:$t,style:fn={},children:zt})=>re.createElement("div",{className:ze()($t),style:fn},zt),Me={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ut=le(75727),We=le(93041);const yt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ae=({sortValue:$t,dropValue:fn,className:zt,onSort:Jt,onDrop:xn,dataSource:Sn=yt})=>{var An;return re.createElement("div",{className:ze()(Me.orderWrap,zt)},re.createElement(ut.Z,{dropdownRender:()=>re.createElement(We.default,null,Sn.map((Kn,rr)=>re.createElement(We.default.Item,{key:rr,onClick:()=>xn(Kn.id)},Kn.name)))},re.createElement("span",{className:Me.orderTextWrap},(An=Sn.find(Kn=>fn===Kn.id))==null?void 0:An.name)),re.createElement("span",{className:Me.orderIconWrap},re.createElement("span",{className:Me.orderAsc},re.createElement("i",{className:$t==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Me.cursorPointer} ${Me.active}`:`iconfont icon-sanjiaoxing-up font12 ${Me.cursorPointer}`,onClick:()=>Jt($t==="asc"?"desc":"asc")})),re.createElement("span",{className:Me.orderDesc},re.createElement("i",{className:$t==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Me.cursorPointer} ${Me.active}`:`iconfont icon-sanjiaoxing-down font12 ${Me.cursorPointer}`,onClick:()=>Jt($t==="asc"?"desc":"asc")}))))},ee={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},z=le(99571),ie=Object.defineProperty,se=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,Re=($t,fn,zt)=>fn in $t?ie($t,fn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):$t[fn]=zt,Et=($t,fn)=>{for(var zt in fn||(fn={}))ne.call(fn,zt)&&Re($t,zt,fn[zt]);if(se)for(var zt of se(fn))ce.call(fn,zt)&&Re($t,zt,fn[zt]);return $t},Pt=($t,fn)=>{var zt={};for(var Jt in $t)ne.call($t,Jt)&&fn.indexOf(Jt)<0&&(zt[Jt]=$t[Jt]);if($t!=null&&se)for(var Jt of se($t))fn.indexOf(Jt)<0&&ce.call($t,Jt)&&(zt[Jt]=$t[Jt]);return zt},_e=($t,fn,zt)=>new Promise((Jt,xn)=>{var Sn=rr=>{try{Kn(zt.next(rr))}catch(Jn){xn(Jn)}},An=rr=>{try{Kn(zt.throw(rr))}catch(Jn){xn(Jn)}},Kn=rr=>rr.done?Jt(rr.value):Promise.resolve(rr.value).then(Sn,An);Kn((zt=zt.apply($t,fn)).next())}),qe=$t=>{var fn=$t,{className:zt,style:Jt,children:xn,loading:Sn=!1,openLoading:An,onClick:Kn=()=>{},size:rr="middle",shape:Jn="round"}=fn,Zn=Pt(fn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gn,sn]=(0,re.useState)(!1);return re.createElement(z.ZP,Et({onClick:(0,Ce.throttle)(Lt=>_e(void 0,null,function*(){An&&sn(!0);try{yield Kn(Lt)}catch(yn){console.log("error",yn)}An&&sn(!1)}),2e3,{leading:!0,trailing:!1}),className:ze()(ee.btn,ee[`${rr}-${Jn}`],zt),style:Jt,size:rr,shape:Jn,loading:Gn||Sn},Zn),xn)},St={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},_t=({className:$t,style:fn,children:zt=null,onClick:Jt,title:xn})=>re.createElement("div",{className:ze()(St.head,$t),style:fn},re.createElement("span",{className:"primary-hover",onClick:Jt},re.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),re.createElement("b",{title:xn},xn),re.createElement("div",{className:St.node},zt)),At={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},qt=({confirmShow:$t=!0,confirmTitle:fn,confirmClick:zt,cancelShow:Jt=!0,cancelTitle:xn,cancelClick:Sn,className:An,style:Kn,confirmLoading:rr=!1})=>re.createElement("div",{className:ze()(At.btns,An),style:Kn},$t&&re.createElement(z.ZP,{loading:rr,onClick:zt,type:"primary",className:At.confirm},fn),Jt&&re.createElement(z.ZP,{onClick:Sn,className:At.cancel},xn)),Ht={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ln=({className:$t,style:fn={},LeftContent:zt,children:Jt,RightContent:xn})=>re.createElement("div",{className:ze()(Ht.fixedBottom,$t),style:fn},re.createElement("div",{className:Ht.wrap},re.createElement("div",{className:Ht.left},zt),re.createElement("div",{className:Ht.center},Jt),re.createElement("div",{className:Ht.right},xn))),Ot={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},dn=({className:$t,style:fn={},dataSource:zt=[]})=>re.createElement("div",{className:ze()(Ot.crumbs,$t),style:fn},zt.map((Jt,xn)=>xn<zt.length-1?re.createElement(re.Fragment,{key:xn},Jt.path||Jt.onClick?re.createElement("span",{className:Ot.hover,onClick:Jt!=null&&Jt.onClick?Jt.onClick:()=>st.history.push(Jt.path)},Jt.name):re.createElement("span",null,Jt.name),re.createElement("span",null,"\xA0",">","\xA0")):re.createElement("span",{key:xn,style:{color:"#5F6368"}},Jt.name))),Tt=le(11938),gt=Object.defineProperty,pn=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,nr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,br=($t,fn,zt)=>fn in $t?gt($t,fn,{enumerable:!0,configurable:!0,writable:!0,value:zt}):$t[fn]=zt,Qn=($t,fn)=>{for(var zt in fn||(fn={}))nr.call(fn,zt)&&br($t,zt,fn[zt]);if(Tn)for(var zt of Tn(fn))fr.call(fn,zt)&&br($t,zt,fn[zt]);return $t},En=($t,fn)=>pn($t,Nn(fn)),sr=($t,fn)=>{var zt={};for(var Jt in $t)nr.call($t,Jt)&&fn.indexOf(Jt)<0&&(zt[Jt]=$t[Jt]);if($t!=null&&Tn)for(var Jt of Tn($t))fn.indexOf(Jt)<0&&fr.call($t,Jt)&&(zt[Jt]=$t[Jt]);return zt};const{Countdown:ur}=Tt.default;var bn=$t=>{var fn=$t,{onChange:zt}=fn,Jt=sr(fn,["onChange"]);const[xn,Sn]=(0,re.useState)(null);(0,re.useEffect)(()=>{typeof xn=="number"&&xn>=0&&zt(xn)},[xn]);const An=Kn=>{const rr=Math.floor(Kn/1e3);Sn(rr)};return re.createElement(ur,En(Qn({},Jt),{onChange:An}))}},17904:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return Ge}});var re=le(59301);function Ge(Oe,Ue){const be=(0,re.useRef)();(0,re.useEffect)(()=>{be.current=Oe}),(0,re.useEffect)(()=>{function ue(){be.current()}if(Ue!==null){let Le=setInterval(ue,Ue);return()=>clearInterval(Le)}},[Ue])}},95200:function(tn,Xt,le){"use strict";le.r(Xt),le.d(Xt,{default:function(){return fe}});var re=le(59301),Ge={flex_box_center:"flex_box_center___fl5m6",flex_space_between:"flex_space_between___bly3M",flex_box_vertical_center:"flex_box_vertical_center___xKfVY",flex_box_center_end:"flex_box_center_end___uQRsy",flex_box_column:"flex_box_column___V96Tv",ActvieE3:"ActvieE3___B5egy",Onerow:"Onerow___t6jyJ",body:"body___RTqwS",AddBut:"AddBut___iKjQP",FormDiv:"FormDiv___I9YYs"},Oe=le(76560),Ue=le(28284),be=le(25399),ue=le(6767),Le=le(62957),ze=le(77019),Ce=le(5269),pe=le(54172),ht=le(13747),ye=le(99571),pt=le(62673),je=le(37568),Se=le(82326),xe=le(14566),Ee=le(71411),Ye=le(71360),tt=le(56102),at=le(57884),we=le(90524),me=le(49661),Te=le(77817),Ne=le(54657),bt=le(86645),Ae=le(64885),ke=Object.defineProperty,Ie=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,It=(He,lt,st)=>lt in He?ke(He,lt,{enumerable:!0,configurable:!0,writable:!0,value:st}):He[lt]=st,mt=(He,lt)=>{for(var st in lt||(lt={}))Be.call(lt,st)&&It(He,st,lt[st]);if(Ke)for(var st of Ke(lt))Ve.call(lt,st)&&It(He,st,lt[st]);return He},vt=(He,lt)=>Ie(He,De(lt)),ot=(He,lt,st)=>new Promise((Pe,rt)=>{var Qe=ut=>{try{Me(st.next(ut))}catch(We){rt(We)}},Wt=ut=>{try{Me(st.throw(ut))}catch(We){rt(We)}},Me=ut=>ut.done?Pe(ut.value):Promise.resolve(ut.value).then(Qe,Wt);Me((st=st.apply(He,lt)).next())});const ge=({graduations:{Tasks:He,teachers:lt,students:st,forTask:Pe},loading:rt,dispatch:Qe})=>{var Wt,Me;const ut=(0,Oe.useParams)(),[We,yt]=(0,re.useState)([]),[xt,ae]=(0,re.useState)([]),[ee,z]=(0,re.useState)(!1),[ie,se]=(0,re.useState)(!1),[ne]=Ue.default.useForm(),[ce,Re]=(0,re.useState)({}),[Et,Pt]=(0,re.useState)({}),[_e,et]=(0,re.useState)([]),[qe,St]=(0,re.useState)(!1),Zt=(0,re.useRef)(null),[_t,At]=(0,re.useState)({keyword:"",page:1,per_page:20,status:null,is_teacher:!0}),an=[{id:null,name:"\u5168\u90E8"},{id:1,name:"\u8FBE\u6210\u53CC\u9009"},{id:0,name:"\u672A\u8FBE\u6210\u53CC\u9009"}],qt=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:Tt=>re.createElement(be.Z,{placement:"topLeft",title:Tt},re.createElement("span",{className:"c-grey-333"},Tt))},{title:"\u6307\u5BFC\u8001\u5E08",width:120,ellipsis:!0,dataIndex:"teacher_names",render:Tt=>re.createElement(be.Z,{placement:"topLeft",title:Tt},re.createElement("span",{className:"c-grey-333"},Tt))},{title:"\u9009\u9898\u72B6\u6001",width:120,dataIndex:"status",render:Tt=>re.createElement(re.Fragment,null,Tt==0&&re.createElement("span",{style:{color:"#E30000"}},"\u672A\u8FBE\u6210\u53CC\u9009"),Tt==1&&re.createElement("span",null,"\u8FBE\u6210\u53CC\u9009"))},{title:"\u9080\u8BF7\u7801",width:132,dataIndex:"invite_code",render:Tt=>re.createElement("span",{className:"c-grey-333"},Tt,re.createElement(tt.CopyToClipboard,{text:Tt,onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement("i",{className:"iconfont icon-fuzhi8 font14",style:{color:"#165DFF",marginLeft:"8px",cursor:"pointer"}})))},{title:re.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(Tt,gt)=>re.createElement(re.Fragment,null,re.createElement(Ae.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>ot(void 0,null,function*(){var pn,Nn;St(!1),yield ln(),gt.teacher_ids=(pn=gt.teacher)==null?void 0:pn.map(Tn=>Tn.id),gt.student_id=gt.student_id?Number(gt.student_id):"",et((Nn=gt==null?void 0:gt.attachments)==null?void 0:Nn.map(Tn=>({uid:Tn==null?void 0:Tn.id,name:(Tn==null?void 0:Tn.title)+" "+(Tn==null?void 0:Tn.filesize),status:"done",url:(Tn==null?void 0:Tn.url)||""}))),Re(gt),Pt(gt),ne.setFieldsValue(gt)})},"\u7F16\u8F91"),re.createElement("a",{className:Ge.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{if(gt.status==1)ue.ZP.warning("\u8BE5\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\u4E0D\u80FD\u5220\u9664");else{const pn=Le.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:re.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ot(void 0,null,function*(){(yield Qe({type:"graduations/getDelGraduationsTasks",payload:{id:ut.id,ids:[gt.id]}})).status==0&&(ue.ZP.success("\u5220\u9664\u6210\u529F"),_t.page=1,At(mt({},_t))),pn.destroy()}),onCancel:()=>{pn.destroy()}})}}},"\u5220\u9664"))}],Ht={multiple:!0,withCredentials:!0,defaultFileList:_e,onRemove:Tt=>{et(_e.filter(gt=>(Tt.uid||Tt.response.id)!=gt.uid))},beforeUpload:Tt=>{const gt=Tt.size/1024/1024;return gt>150||gt==0?(ue.ZP.error(`${Tt.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${gt==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150MB)"}`),Promise.reject()):!0},action:`${we.Z.API_SERVER}/api/attachments.json`,onChange:Tt=>{var gt,pn,Nn,Tn,nr,fr,br,Qn;Tt.file.status==="done"&&et([..._e,{uid:(pn=(gt=Tt==null?void 0:Tt.file)==null?void 0:gt.response)==null?void 0:pn.id,name:((Tn=(Nn=Tt==null?void 0:Tt.file)==null?void 0:Nn.response)==null?void 0:Tn.filename)+" "+(0,me.RD)((fr=(nr=Tt==null?void 0:Tt.file)==null?void 0:nr.response)==null?void 0:fr.filesize),status:"done",url:((Qn=(br=Tt==null?void 0:Tt.file)==null?void 0:br.response)==null?void 0:Qn.url)||""}])}},it={selectedRowKeys:[...We.map(Tt=>Tt.id),...xt.map(Tt=>Tt.id)],onChange:(Tt,gt)=>{const pn=[],Nn=[];gt.map(Tn=>{Tn.status==0?Nn.push(Tn):pn.push(Tn)}),ae(pn),yt(Nn)}},ln=(Tt=!1)=>ot(void 0,null,function*(){var gt,pn;const Nn=yield Qe({type:"graduations/getGraduationsTeachers",payload:{id:ut.id,page:1,per_page:2e3}});if(Qe({type:"graduations/getGraduationsStudents",payload:{id:ut.id,page:1,per_page:2e3}}),Qe({type:"graduations/getGraduationsDetails",payload:{id:ut.id}}),Tt){const Tn=(pn=(gt=Nn==null?void 0:Nn.data)==null?void 0:gt.filter(nr=>nr==null?void 0:nr.is_creator))==null?void 0:pn.map(nr=>nr.id);ne.setFieldsValue({teacher_ids:Tn}),Re(vt(mt({},ce),{teacher_ids:Tn}))}z(!0)}),Ot=()=>ot(void 0,null,function*(){yield Qe({type:"graduations/getGraduationsTasks",payload:mt({id:ut.id},_t)})}),Yt=Tt=>ot(void 0,null,function*(){Tt.attachment_ids=_e.map(pn=>pn.uid);let gt;qe?gt=yield(0,bt.jW)(mt({graduation_id:ut.id},Tt)):gt=yield(0,bt.YS)(mt({graduation_id:ut.id,id:ce.id},Tt)),gt.status==0&&(ue.ZP.success(qe?"\u521B\u5EFA\u6210\u529F":"\u66F4\u65B0\u6210\u529F"),Re({}),et([]),z(!1),ne.resetFields(),yield Ot())});(0,re.useEffect)(()=>{yt([]),ae([]),Ot()},[_t]),(0,re.useEffect)(()=>{ce.base_project&&dn()},[ce==null?void 0:ce.base_project]);const dn=(Tt=1e5)=>{const gt=document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body");gt.scrollTop=Tt};return re.createElement("section",{className:Ge.body},re.createElement(Ye.YG,{value:"manage",tabBarExtraContent:re.createElement(Ye.op,{openLoading:!0,onClick:()=>ot(void 0,null,function*(){St(!0),yield ln(!0)})},"\u5F55\u5165\u8BFE\u9898"),dataSource:[{id:"manage",name:"\u8BFE\u9898\u7BA1\u7406"}],onChange:Tt=>{console.log(Tt)}}),re.createElement(ze.Z,{wrap:!1,align:"middle",justify:"space-between"},re.createElement(Ce.Z,null,re.createElement(Ye.qp,{title:"\u72B6\u6001",className:"mt20",dataSource:an,titleWidth:28,value:_t.status,onChange:Tt=>{_t.status=Tt,_t.page=1,At(mt({},_t))}})),re.createElement(Ce.Z,null,re.createElement(Ye.t7,{style:{width:329,height:"38px"},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0/\u6307\u5BFC\u8001\u5E08\u8FDB\u884C\u641C\u7D22",value:_t.keyword,onChange:Tt=>{_t.keyword=Tt,_t.page=1,At(mt({},_t))}}))),We.length+xt.length>0&&re.createElement(ze.Z,{wrap:!1,align:"middle",justify:"space-between",style:{padding:"11px 12px",background:"#F4F7FC",marginBottom:"1px"}},re.createElement(Ce.Z,null,"\u5DF2\u9009\u62E9\xA0",re.createElement("span",{style:{color:"#165DFF"}},We.length+xt.length||0),"\xA0\u9879"),re.createElement(Ce.Z,{style:{color:"#E30000",cursor:"pointer"},onClick:()=>{const Tt=Le.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:re.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ot(void 0,null,function*(){We.length>0&&(yield Qe({type:"graduations/getDelGraduationsTasks",payload:{id:ut.id,ids:We.map(pn=>pn.id)}})).status==0&&ue.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),xt.length>0&&(We.length==0&&ue.ZP.error("\u65E0\u6CD5\u5220\u9664"),se(!0)),yt([]),Ot(),Tt.destroy()}),onCancel:()=>{Tt.destroy()}})}},re.createElement("i",{className:"iconfont icon-piliangshanchu3 mr5"}),"\u6279\u91CF\u5220\u9664")),re.createElement(pe.default,{rowKey:"id",loading:rt.effects["graduations/getGraduationsTasks"],style:{minHeight:500},locale:{emptyText:re.createElement(at.Z,{customText:_t.status==null&&_t.keyword==""&&_t.page==1?"\u60A8\u5F53\u524D\u8FD8\u6CA1\u6709\u5F55\u5165\u8BFE\u9898\uFF0C\u70B9\u51FB\u5B8C\u6210\u8BFE\u9898\u5F55\u5165":"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!",ButtonTwo:_t.status==null&&_t.keyword==""&&_t.page==1?re.createElement(Ye.op,{openLoading:!0,onClick:()=>ot(void 0,null,function*(){St(!0),yield ln(!0)})},"\u5F55\u5165\u8BFE\u9898"):re.createElement(re.Fragment,null)})},rowSelection:it,columns:qt,dataSource:He.data,pagination:!1}),He.count!=0&&re.createElement(ze.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},re.createElement(Ce.Z,null,"\u5171\xA0",re.createElement("span",{style:{color:"#165DFF"}},He.count||0),"\xA0\u6761\u6570\u636E"),re.createElement(Ce.Z,null,re.createElement(ht.Z,{showSizeChanger:!0,showQuickJumper:!0,current:_t.page,pageSize:_t.per_page,onShowSizeChange:(Tt,gt)=>{_t.per_page=gt,_t.page=1,At(mt({},_t))},onChange:Tt=>{_t.page=Tt,At(mt({},_t))},total:He.count}))),re.createElement(Le.default,{open:ie,title:"\u63D0\u793A",destroyOnClose:!0,width:1200,footer:re.createElement(ye.ZP,{type:"primary",onClick:()=>{se(!1),ae([])}},"\u77E5\u9053\u4E86"),onCancel:()=>{se(!1),ae([])}},re.createElement("span",null,"\u4E0B\u9762",re.createElement("span",{style:{color:"#FA6400"}},xt.length),"\u4E2A\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\uFF0C\u4E0D\u80FD\u5220\u9664"),re.createElement("div",{className:"mt10",style:{background:"#F6F7F9",padding:"20px 12px"}},xt.map((Tt,gt)=>re.createElement(ze.Z,{wrap:!1,align:"middle",key:gt,style:{color:"#999"}},re.createElement("i",{className:"iconfont icon-guansuo font14"}),re.createElement("div",{className:Ge.Onerow,style:{marginLeft:"8px"}},re.createElement(be.Z,{placement:"topLeft",title:Tt.name},Tt.name)))))),re.createElement(Le.default,{open:ee,title:`${qe?"\u5F55\u5165\u8BFE\u9898":"\u7F16\u8F91\u8BFE\u9898"}`,width:1200,destroyOnClose:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,className:"ant-form-modal-body",afterOpenChange:Tt=>{Tt&&document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body").scrollTo(0,0)},onCancel:()=>{Re({}),et([]),ne.resetFields(),z(!1)},onOk:()=>{ne.submit()}},re.createElement(Ue.default,{onFinishFailed:Tt=>{var gt;if(!(ce!=null&&ce.name)||!((gt=ce==null?void 0:ce.teacher_ids)!=null&&gt.length)){dn(0);return}(!(ce!=null&&ce.description)||ce!=null&&ce.base_project&&!(ce!=null&&ce.graduation_stage_id))&&dn()},form:ne,initialValues:{},layout:"vertical",className:`${Ge.FormDiv}`,onValuesChange:(Tt,gt)=>{Re(mt(mt({},ce),Tt))},onFinish:Tt=>ot(void 0,null,function*(){!qe&&Et.status==1&&Tt.student_id!=Et.student_id?Le.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u53D8\u66F4\u6307\u5B9A\u5B66\u751F",content:re.createElement("div",null,re.createElement("p",null,"\u8BE5\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u786E\u8BA4\u53D8\u66F4\u6307\u5B9A\u5B66\u751F\uFF1F\u53D8\u66F4\u540E\u539F\u5B66\u751F\u5728\u8BE5\u8BFE\u9898\u63D0\u4EA4\u7684\u6587\u6863\u5C06\u6E05\u7A7A\u4E14\u65E0\u6CD5\u6062\u590D"),re.createElement("div",null,"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),re.createElement(Te.Z,{ref:gt=>Zt.current=gt})),onOk:()=>ot(void 0,null,function*(){if(Zt.current.onVerify())return Promise.reject();Yt(Tt)})}):Yt(Tt)})},re.createElement(Ue.default.Item,{htmlFor:null,name:"source_is_repeat",valuePropName:"checked"},re.createElement(pt.default,null,re.createElement("span",{style:{color:"#000"}},"\u8FD1\u4E09\u5E74\u662F\u5426\u91CD\u590D"))),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u540D\u79F0"),name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0"},{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},re.createElement(je.default,{showCount:!0,maxLength:100,size:"large"})),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5BFC\u8001\u5E08(\u53EF\u591A\u9009)"),name:"teacher_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},re.createElement(Se.default,{size:"large",mode:"multiple",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"},(Wt=lt==null?void 0:lt.data)==null?void 0:Wt.map((Tt,gt)=>re.createElement(Se.default.Option,{key:gt,value:Tt.id},Tt.name)))),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u9002\u5408\u4E13\u4E1A"),name:"major",rules:[{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},re.createElement(je.default,{size:"large",showCount:!0,maxLength:100})),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5B9A\u5B66\u751F"),name:"student_id"},re.createElement(Se.default,{size:"large",showSearch:!0,allowClear:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5B9A\u5B66\u751F"},(Me=st==null?void 0:st.data)==null?void 0:Me.map((Tt,gt)=>re.createElement(Se.default.Option,{key:gt,value:Tt.id},Tt.name)))),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u6765\u6E90"),name:"source",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},re.createElement(je.default,{size:"large",showCount:!0,maxLength:60})),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u5B66\u79D1\u65B9\u5411"),name:"direction",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},re.createElement(je.default,{size:"large",showCount:!0,maxLength:60})),re.createElement(Ue.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u4ECB\u7ECD"),name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u4ECB\u7ECD"},{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},re.createElement(Ne.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",scrollId:"",watch:!0,height:140})),re.createElement(Ue.default.Item,{htmlFor:null,name:"attachment_ids",style:{display:"flex",alignItems:"center"},valuePropName:"fileList",getValueFromEvent:Tt=>Array.isArray(Tt)?Tt:Tt==null?void 0:Tt.fileList,normalize:Tt=>{const gt="\u3000\u3000";return Tt.filter(Nn=>{if(Nn.url)return!0;const Tn=Nn.size/1024/1024;return Nn.name.indexOf(gt)===-1&&(Nn.name=`${Nn.name}${gt}${(0,me.RD)(Nn.size)}`),!(Tn>150||Tn==0)})}},re.createElement(xe.default,mt({},Ht),re.createElement(ze.Z,{style:{width:"100%"},wrap:!1,align:"middle"},re.createElement(Ce.Z,null,re.createElement(Ye.op,{style:{borderRadius:"2px"}},re.createElement("i",{className:"iconfont icon-shangchuan3 mr5"}),"\u6587\u4EF6\u4E0A\u4F20")),re.createElement(Ce.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Tt=>{Tt.preventDefault(),Tt.stopPropagation()}},"\u4E0A\u4F20\u8BFE\u9898\u76F8\u5173\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M")))),re.createElement(ze.Z,{wrap:!1,align:"middle",className:"mb20"},re.createElement(Ce.Z,null,re.createElement(Ue.default.Item,{htmlFor:null,name:"base_project",valuePropName:"checked",style:{marginBottom:0}},re.createElement(Ee.Z,null))),re.createElement(ze.Z,{align:"middle",className:"ml10",style:{color:"#000"}},re.createElement(Ce.Z,null,"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),re.createElement(be.Z,{placement:"right",style:{width:"500px"},overlayStyle:{maxWidth:600},title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u5173\u8054\u540E\u5C06\u5E94\u7528\u4E8E\u6BD5\u8BBE\u6240\u6709\u9636\u6BB5"},re.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#3061D0"}})))),re.createElement("div",{id:"graduationstageid"},ce.base_project&&re.createElement("div",{style:{background:"#F6F7F9",padding:"12px 12px 4px 12px",width:"100%",height:104}},re.createElement("span",{style:{color:"#5F6367"}},"\u5B66\u751F\u9700\u8981\u5B8C\u6210\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"),re.createElement(ze.Z,{wrap:!1,align:"middle",className:"mt15"},re.createElement(Ce.Z,{style:{width:"632px"}},re.createElement(Ue.default.Item,{name:"graduation_stage_id",htmlFor:null,style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"}]},re.createElement(Se.default,null,Pe==null?void 0:Pe.map((Tt,gt)=>re.createElement(Se.default.Option,{key:gt,value:Tt.id},Tt.name))))),re.createElement(Ce.Z,{className:"ml20",style:{color:"#999",fontSize:"12px"}},"\u9009\u62E9\u9636\u6BB5\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u5BF9\u5E94\u9636\u6BB5\u5B8C\u6210\u9879\u76EE\u5173\u8054")))))))};var fe=(0,Oe.connect)(({graduations:He,loading:lt})=>({graduations:He,loading:lt}))(ge)},90290:function(tn,Xt,le){"use strict";le.d(Xt,{AL:function(){return we},Iy:function(){return ht},Qv:function(){return je},ez:function(){return at},jb:function(){return ye}});var re=le(32834),Ge=le.n(re),Oe=le(11690),Ue=le.n(Oe);let be=1;function ue(Ae,ke){const Ie=Ae.match(/^(\s+)(?:```)/);if(Ie===null)return ke;const De=Ie[1];return ke.split(`
`).map(Ke=>{const Be=Ke.match(/^\s+/);if(Be===null)return Ke;const[Ve]=Be;return Ve.length>=De.length?Ke.slice(De.length):Ke}).join(`
`)}let Le=[],ze=["<ul>"];const Ce=new(Ge()).Renderer,pe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ht(){Le.length=0,ze=["<ul>"]}const ye={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function pt(Ae,ke,Ie,De){if(ke>=Ae.length||Ae[ke].level<=Ie)return ke;var Ke=Ae[ke];De.push("<li><a href='#"+be+Ke.anchor+"'>"+Ke.text+"</a>"),ke++;var Be=[];return ke=pt(Ae,ke,Ke.level,Be),Be.length>0&&(De.push("<ul>"),Be.forEach(function(Ve){De.push(Ve)}),De.push("</ul>")),De.push("</li>"),ke=pt(Ae,ke,Ie,De),ke}function je(){return pt(Le,0,0,ze),ze.push("</ul>"),ze.join("")}const Se={heading(Ae){const ke=pe.exec(Ae);if(be+=1,ke)return{type:"heading",raw:ke[0],depth:ke[1].length,text:ke[2]}},fences(Ae){const ke=this.rules.block.fences.exec(Ae);if(ke){const Ie=ke[0];let De=ue(Ie,ke[3]||"");const Ke=ke[2]?ke[2].trim():ke[2];if(["latex","katex","math"].indexOf(Ke)>=0){const Be=Ye(),Ve=De;De=Be,tt[Be]={type:"block",expression:Ve}}return{type:"code",raw:Ie,lang:Ke,text:De}}}},xe=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ee=0;const Ye=()=>`__special_katext_id_${Ee++}__`;let tt={};function at(){return tt}function we(){Ee=0,tt={}}function me(Ae){return Ae=Ae.replace(xe,(ke,Ie)=>{const De=Ye();return tt[De]={type:"inline",expression:Ie},De}),Ae}const Te=Ce.listitem;Ce.listitem=function(Ae){return Te(me(Ae))};const Ne=Ce.paragraph;Ce.paragraph=function(Ae){return Ne(me(Ae))};const bt=Ce.tablecell;Ce.tablecell=function(Ae,ke){return bt(me(Ae),ke)},Ce.code=function(Ae,ke,Ie){const De=(ke||"").match(/\S*/)[0];return De?["latex","katex","math"].indexOf(De)>=0?`<p class='editormd-tex'>${Ae}</p>`:`<pre class="prettyprint linenums"><code class="language-${ke}">${Ie?Ae:(0,Oe.escape)(Ae,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ie?Ae:(0,Oe.escape)(Ae,!0))+"</code></pre>"},Ce.heading=function(Ae,ke,Ie){let De=this.options.headerPrefix+Ie.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Le.push({anchor:De,level:ke,text:Ae}),"<h"+ke+' id="'+be+De+'">'+Ae+"</h"+ke+">"},Ge().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ge().use({tokenizer:Se,renderer:Ce}),Xt.ZP=Ge()},99498:function(tn,Xt,le){(function(re){re(le(89780))})(function(re){re.defineOption("placeholder","",function(ze,Ce,pe){var ht=pe&&pe!=re.Init;if(Ce&&!ht)ze.on("blur",be),ze.on("change",ue),ze.on("swapDoc",ue),re.on(ze.getInputField(),"compositionupdate",ze.state.placeholderCompose=function(){Ue(ze)}),ue(ze);else if(!Ce&&ht){ze.off("blur",be),ze.off("change",ue),ze.off("swapDoc",ue),re.off(ze.getInputField(),"compositionupdate",ze.state.placeholderCompose),Ge(ze);var ye=ze.getWrapperElement();ye.className=ye.className.replace(" CodeMirror-empty","")}Ce&&!ze.hasFocus()&&be(ze)});function Ge(ze){ze.state.placeholder&&(ze.state.placeholder.parentNode.removeChild(ze.state.placeholder),ze.state.placeholder=null)}function Oe(ze){Ge(ze);var Ce=ze.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=ze.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var pe=ze.getOption("placeholder");typeof pe=="string"&&(pe=document.createTextNode(pe)),Ce.appendChild(pe),ze.display.lineSpace.insertBefore(Ce,ze.display.lineSpace.firstChild)}function Ue(ze){setTimeout(function(){var Ce=!1,pe=ze.getInputField();pe.nodeName=="TEXTAREA"?Ce=!pe.value:ze.lineCount()==1&&(Ce=!/[^\u200b]/.test(pe.querySelector(".CodeMirror-line").textContent)),Ce?Oe(ze):Ge(ze)},20)}function be(ze){Le(ze)&&Oe(ze)}function ue(ze){var Ce=ze.getWrapperElement(),pe=Le(ze);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(pe?" CodeMirror-empty":""),pe?Oe(ze):Ge(ze)}function Le(ze){return ze.lineCount()===1&&ze.getLine(0)===""}})},25717:function(tn,Xt,le){(function(re){re(le(89780))})(function(re){var Ge={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Oe=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Se,xe,Ee){Ee&&Ee!=re.Init&&(Se.removeKeyMap(be),Se.state.closeBrackets=null),xe&&(ue(Ue(xe,"pairs")),Se.state.closeBrackets=xe,Se.addKeyMap(be))});function Ue(Se,xe){return xe=="pairs"&&typeof Se=="string"?Se:typeof Se=="object"&&Se[xe]!=null?Se[xe]:Ge[xe]}var be={Backspace:Ce,Enter:pe};function ue(Se){for(var xe=0;xe<Se.length;xe++){var Ee=Se.charAt(xe),Ye="'"+Ee+"'";be[Ye]||(be[Ye]=Le(Ee))}}ue(Ge.pairs+"`");function Le(Se){return function(xe){return ye(xe,Se)}}function ze(Se){var xe=Se.state.closeBrackets;if(!xe||xe.override)return xe;var Ee=Se.getModeAt(Se.getCursor());return Ee.closeBrackets||xe}function Ce(Se){var xe=ze(Se);if(!xe||Se.getOption("disableInput"))return re.Pass;for(var Ee=Ue(xe,"pairs"),Ye=Se.listSelections(),tt=0;tt<Ye.length;tt++){if(!Ye[tt].empty())return re.Pass;var at=pt(Se,Ye[tt].head);if(!at||Ee.indexOf(at)%2!=0)return re.Pass}for(var tt=Ye.length-1;tt>=0;tt--){var we=Ye[tt].head;Se.replaceRange("",Oe(we.line,we.ch-1),Oe(we.line,we.ch+1),"+delete")}}function pe(Se){var xe=ze(Se),Ee=xe&&Ue(xe,"explode");if(!Ee||Se.getOption("disableInput"))return re.Pass;for(var Ye=Se.listSelections(),tt=0;tt<Ye.length;tt++){if(!Ye[tt].empty())return re.Pass;var at=pt(Se,Ye[tt].head);if(!at||Ee.indexOf(at)%2!=0)return re.Pass}Se.operation(function(){var we=Se.lineSeparator()||`
`;Se.replaceSelection(we+we,null),Se.execCommand("goCharLeft"),Ye=Se.listSelections();for(var me=0;me<Ye.length;me++){var Te=Ye[me].head.line;Se.indentLine(Te,null,!0),Se.indentLine(Te+1,null,!0)}})}function ht(Se){var xe=re.cmpPos(Se.anchor,Se.head)>0;return{anchor:new Oe(Se.anchor.line,Se.anchor.ch+(xe?-1:1)),head:new Oe(Se.head.line,Se.head.ch+(xe?1:-1))}}function ye(Se,xe){var Ee=ze(Se);if(!Ee||Se.getOption("disableInput"))return re.Pass;var Ye=Ue(Ee,"pairs"),tt=Ye.indexOf(xe);if(tt==-1)return re.Pass;for(var at=Ue(Ee,"closeBefore"),we=Ue(Ee,"triples"),me=Ye.charAt(tt+1)==xe,Te=Se.listSelections(),Ne=tt%2==0,bt,Ae=0;Ae<Te.length;Ae++){var ke=Te[Ae],Ie=ke.head,De,Ke=Se.getRange(Ie,Oe(Ie.line,Ie.ch+1));if(Ne&&!ke.empty())De="surround";else if((me||!Ne)&&Ke==xe)me&&je(Se,Ie)?De="both":we.indexOf(xe)>=0&&Se.getRange(Ie,Oe(Ie.line,Ie.ch+3))==xe+xe+xe?De="skipThree":De="skip";else if(me&&Ie.ch>1&&we.indexOf(xe)>=0&&Se.getRange(Oe(Ie.line,Ie.ch-2),Ie)==xe+xe){if(Ie.ch>2&&/\bstring/.test(Se.getTokenTypeAt(Oe(Ie.line,Ie.ch-2))))return re.Pass;De="addFour"}else if(me){var Be=Ie.ch==0?" ":Se.getRange(Oe(Ie.line,Ie.ch-1),Ie);if(!re.isWordChar(Ke)&&Be!=xe&&!re.isWordChar(Be))De="both";else return re.Pass}else if(Ne&&(Ke.length===0||/\s/.test(Ke)||at.indexOf(Ke)>-1))De="both";else return re.Pass;if(!bt)bt=De;else if(bt!=De)return re.Pass}var Ve=tt%2?Ye.charAt(tt-1):xe,It=tt%2?xe:Ye.charAt(tt+1);Se.operation(function(){if(bt=="skip")Se.execCommand("goCharRight");else if(bt=="skipThree")for(var mt=0;mt<3;mt++)Se.execCommand("goCharRight");else if(bt=="surround"){for(var vt=Se.getSelections(),mt=0;mt<vt.length;mt++)vt[mt]=Ve+vt[mt]+It;Se.replaceSelections(vt,"around"),vt=Se.listSelections().slice();for(var mt=0;mt<vt.length;mt++)vt[mt]=ht(vt[mt]);Se.setSelections(vt)}else bt=="both"?(Se.replaceSelection(Ve+It,null),Se.triggerElectric(Ve+It),Se.execCommand("goCharLeft")):bt=="addFour"&&(Se.replaceSelection(Ve+Ve+Ve+Ve,"before"),Se.execCommand("goCharRight"))})}function pt(Se,xe){var Ee=Se.getRange(Oe(xe.line,xe.ch-1),Oe(xe.line,xe.ch+1));return Ee.length==2?Ee:null}function je(Se,xe){var Ee=Se.getTokenAt(Oe(xe.line,xe.ch+1));return/\bstring/.test(Ee.type)&&Ee.start==xe.ch&&(xe.ch==0||!/\bstring/.test(Se.getTokenTypeAt(xe)))}})},6313:function(tn,Xt,le){(function(re){re(le(89780),le(52730))})(function(re){re.defineOption("autoCloseTags",!1,function(Ce,pe,ht){if(ht!=re.Init&&ht&&Ce.removeKeyMap("autoCloseTags"),!!pe){var ye={name:"autoCloseTags"};(typeof pe!="object"||pe.whenClosing!==!1)&&(ye["'/'"]=function(pt){return ue(pt)}),(typeof pe!="object"||pe.whenOpening!==!1)&&(ye["'>'"]=function(pt){return Ue(pt)}),Ce.addKeyMap(ye)}});var Ge=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Oe=["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 Ue(Ce){if(Ce.getOption("disableInput"))return re.Pass;for(var pe=Ce.listSelections(),ht=[],ye=Ce.getOption("autoCloseTags"),pt=0;pt<pe.length;pt++){if(!pe[pt].empty())return re.Pass;var je=pe[pt].head,Se=Ce.getTokenAt(je),xe=re.innerMode(Ce.getMode(),Se.state),Ee=xe.state,Ye=xe.mode.xmlCurrentTag&&xe.mode.xmlCurrentTag(Ee),tt=Ye&&Ye.name;if(!tt)return re.Pass;var at=xe.mode.configuration=="html",we=typeof ye=="object"&&ye.dontCloseTags||at&&Ge,me=typeof ye=="object"&&ye.indentTags||at&&Oe;Se.end>je.ch&&(tt=tt.slice(0,tt.length-Se.end+je.ch));var Te=tt.toLowerCase();if(!tt||Se.type=="string"&&(Se.end!=je.ch||!/[\"\']/.test(Se.string.charAt(Se.string.length-1))||Se.string.length==1)||Se.type=="tag"&&Ye.close||Se.string.indexOf("/")==je.ch-Se.start-1||we&&Le(we,Te)>-1||ze(Ce,xe.mode.xmlCurrentContext&&xe.mode.xmlCurrentContext(Ee)||[],tt,je,!0))return re.Pass;var Ne=typeof ye=="object"&&ye.emptyTags;if(Ne&&Le(Ne,tt)>-1){ht[pt]={text:"/>",newPos:re.Pos(je.line,je.ch+2)};continue}var bt=me&&Le(me,Te)>-1;ht[pt]={indent:bt,text:">"+(bt?`
`:"")+"</"+tt+">",newPos:bt?re.Pos(je.line+1,0):re.Pos(je.line,je.ch+1)}}for(var Ae=typeof ye=="object"&&ye.dontIndentOnAutoClose,pt=pe.length-1;pt>=0;pt--){var ke=ht[pt];Ce.replaceRange(ke.text,pe[pt].head,pe[pt].anchor,"+insert");var Ie=Ce.listSelections().slice(0);Ie[pt]={head:ke.newPos,anchor:ke.newPos},Ce.setSelections(Ie),!Ae&&ke.indent&&(Ce.indentLine(ke.newPos.line,null,!0),Ce.indentLine(ke.newPos.line+1,null,!0))}}function be(Ce,pe){for(var ht=Ce.listSelections(),ye=[],pt=pe?"/":"</",je=Ce.getOption("autoCloseTags"),Se=typeof je=="object"&&je.dontIndentOnSlash,xe=0;xe<ht.length;xe++){if(!ht[xe].empty())return re.Pass;var Ee=ht[xe].head,Ye=Ce.getTokenAt(Ee),tt=re.innerMode(Ce.getMode(),Ye.state),at=tt.state;if(pe&&(Ye.type=="string"||Ye.string.charAt(0)!="<"||Ye.start!=Ee.ch-1))return re.Pass;var we,me=tt.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(me&&tt.mode.name=="javascript")we=pt+"script";else if(me&&tt.mode.name=="css")we=pt+"style";else{var Te=tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(at);if(!Te||Te.length&&ze(Ce,Te,Te[Te.length-1],Ee))return re.Pass;we=pt+Te[Te.length-1]}Ce.getLine(Ee.line).charAt(Ye.end)!=">"&&(we+=">"),ye[xe]=we}if(Ce.replaceSelections(ye),ht=Ce.listSelections(),!Se)for(var xe=0;xe<ht.length;xe++)(xe==ht.length-1||ht[xe].head.line<ht[xe+1].head.line)&&Ce.indentLine(ht[xe].head.line)}function ue(Ce){return Ce.getOption("disableInput")?re.Pass:be(Ce,!0)}re.commands.closeTag=function(Ce){return be(Ce)};function Le(Ce,pe){if(Ce.indexOf)return Ce.indexOf(pe);for(var ht=0,ye=Ce.length;ht<ye;++ht)if(Ce[ht]==pe)return ht;return-1}function ze(Ce,pe,ht,ye,pt){if(!re.scanForClosingTag)return!1;var je=Math.min(Ce.lastLine()+1,ye.line+500),Se=re.scanForClosingTag(Ce,ye,null,je);if(!Se||Se.tag!=ht)return!1;for(var xe=pt?1:0,Ee=pe.length-1;Ee>=0&&pe[Ee]==ht;Ee--)++xe;ye=Se.to;for(var Ee=1;Ee<xe;Ee++){var Ye=re.scanForClosingTag(Ce,ye,null,je);if(!Ye||Ye.tag!=ht)return!1;ye=Ye.to}return!0}})},52730:function(tn,Xt,le){(function(re){re(le(89780))})(function(re){"use strict";var Ge=re.Pos;function Oe(Ee,Ye){return Ee.line-Ye.line||Ee.ch-Ye.ch}var Ue="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",be=Ue+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ue=new RegExp("<(/?)(["+Ue+"]["+be+"]*)","g");function Le(Ee,Ye,tt,at){this.line=Ye,this.ch=tt,this.cm=Ee,this.text=Ee.getLine(Ye),this.min=at?Math.max(at.from,Ee.firstLine()):Ee.firstLine(),this.max=at?Math.min(at.to-1,Ee.lastLine()):Ee.lastLine()}function ze(Ee,Ye){var tt=Ee.cm.getTokenTypeAt(Ge(Ee.line,Ye));return tt&&/\btag\b/.test(tt)}function Ce(Ee){if(!(Ee.line>=Ee.max))return Ee.ch=0,Ee.text=Ee.cm.getLine(++Ee.line),!0}function pe(Ee){if(!(Ee.line<=Ee.min))return Ee.text=Ee.cm.getLine(--Ee.line),Ee.ch=Ee.text.length,!0}function ht(Ee){for(;;){var Ye=Ee.text.indexOf(">",Ee.ch);if(Ye==-1){if(Ce(Ee))continue;return}if(!ze(Ee,Ye+1)){Ee.ch=Ye+1;continue}var tt=Ee.text.lastIndexOf("/",Ye),at=tt>-1&&!/\S/.test(Ee.text.slice(tt+1,Ye));return Ee.ch=Ye+1,at?"selfClose":"regular"}}function ye(Ee){for(;;){var Ye=Ee.ch?Ee.text.lastIndexOf("<",Ee.ch-1):-1;if(Ye==-1){if(pe(Ee))continue;return}if(!ze(Ee,Ye+1)){Ee.ch=Ye;continue}ue.lastIndex=Ye,Ee.ch=Ye;var tt=ue.exec(Ee.text);if(tt&&tt.index==Ye)return tt}}function pt(Ee){for(;;){ue.lastIndex=Ee.ch;var Ye=ue.exec(Ee.text);if(!Ye){if(Ce(Ee))continue;return}if(!ze(Ee,Ye.index+1)){Ee.ch=Ye.index+1;continue}return Ee.ch=Ye.index+Ye[0].length,Ye}}function je(Ee){for(;;){var Ye=Ee.ch?Ee.text.lastIndexOf(">",Ee.ch-1):-1;if(Ye==-1){if(pe(Ee))continue;return}if(!ze(Ee,Ye+1)){Ee.ch=Ye;continue}var tt=Ee.text.lastIndexOf("/",Ye),at=tt>-1&&!/\S/.test(Ee.text.slice(tt+1,Ye));return Ee.ch=Ye+1,at?"selfClose":"regular"}}function Se(Ee,Ye){for(var tt=[];;){var at=pt(Ee),we,me=Ee.line,Te=Ee.ch-(at?at[0].length:0);if(!at||!(we=ht(Ee)))return;if(we!="selfClose")if(at[1]){for(var Ne=tt.length-1;Ne>=0;--Ne)if(tt[Ne]==at[2]){tt.length=Ne;break}if(Ne<0&&(!Ye||Ye==at[2]))return{tag:at[2],from:Ge(me,Te),to:Ge(Ee.line,Ee.ch)}}else tt.push(at[2])}}function xe(Ee,Ye){for(var tt=[];;){var at=je(Ee);if(!at)return;if(at=="selfClose"){ye(Ee);continue}var we=Ee.line,me=Ee.ch,Te=ye(Ee);if(!Te)return;if(Te[1])tt.push(Te[2]);else{for(var Ne=tt.length-1;Ne>=0;--Ne)if(tt[Ne]==Te[2]){tt.length=Ne;break}if(Ne<0&&(!Ye||Ye==Te[2]))return{tag:Te[2],from:Ge(Ee.line,Ee.ch),to:Ge(we,me)}}}}re.registerHelper("fold","xml",function(Ee,Ye){for(var tt=new Le(Ee,Ye.line,0);;){var at=pt(tt);if(!at||tt.line!=Ye.line)return;var we=ht(tt);if(!we)return;if(!at[1]&&we!="selfClose"){var me=Ge(tt.line,tt.ch),Te=Se(tt,at[2]);return Te&&Oe(Te.from,me)>0?{from:me,to:Te.from}:null}}}),re.findMatchingTag=function(Ee,Ye,tt){var at=new Le(Ee,Ye.line,Ye.ch,tt);if(!(at.text.indexOf(">")==-1&&at.text.indexOf("<")==-1)){var we=ht(at),me=we&&Ge(at.line,at.ch),Te=we&&ye(at);if(!(!we||!Te||Oe(at,Ye)>0)){var Ne={from:Ge(at.line,at.ch),to:me,tag:Te[2]};return we=="selfClose"?{open:Ne,close:null,at:"open"}:Te[1]?{open:xe(at,Te[2]),close:Ne,at:"close"}:(at=new Le(Ee,me.line,me.ch,tt),{open:Ne,close:Se(at,Te[2]),at:"open"})}}},re.findEnclosingTag=function(Ee,Ye,tt,at){for(var we=new Le(Ee,Ye.line,Ye.ch,tt);;){var me=xe(we,at);if(!me)break;var Te=new Le(Ee,Ye.line,Ye.ch,tt),Ne=Se(Te,me.tag);if(Ne)return{open:me,close:Ne}}},re.scanForClosingTag=function(Ee,Ye,tt,at){var we=new Le(Ee,Ye.line,Ye.ch,at?{from:0,to:at}:null);return Se(we,tt)}})},89780:function(tn){(function(Xt,le){tn.exports=le()})(this,function(){"use strict";var Xt=navigator.userAgent,le=navigator.platform,re=/gecko\/\d/i.test(Xt),Ge=/MSIE \d/.test(Xt),Oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xt),Ue=/Edge\/(\d+)/.exec(Xt),be=Ge||Oe||Ue,ue=be&&(Ge?document.documentMode||6:+(Ue||Oe)[1]),Le=!Ue&&/WebKit\//.test(Xt),ze=Le&&/Qt\/\d+\.\d+/.test(Xt),Ce=!Ue&&/Chrome\//.test(Xt),pe=/Opera\//.test(Xt),ht=/Apple Computer/.test(navigator.vendor),ye=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Xt),pt=/PhantomJS/.test(Xt),je=!Ue&&/AppleWebKit/.test(Xt)&&/Mobile\/\w+/.test(Xt),Se=/Android/.test(Xt),xe=je||Se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Xt),Ee=je||/Mac/.test(le),Ye=/\bCrOS\b/.test(Xt),tt=/win/i.test(le),at=pe&&Xt.match(/Version\/(\d*\.\d*)/);at&&(at=Number(at[1])),at&&at>=15&&(pe=!1,Le=!0);var we=Ee&&(ze||pe&&(at==null||at<12.11)),me=re||be&&ue>=9;function Te(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ne=function(a,y){var b=a.className,x=Te(y).exec(b);if(x){var E=b.slice(x.index+x[0].length);a.className=b.slice(0,x.index)+(E?x[1]+E:"")}};function bt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ae(a,y){return bt(a).appendChild(y)}function ke(a,y,b,x){var E=document.createElement(a);if(b&&(E.className=b),x&&(E.style.cssText=x),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var te=0;te<y.length;++te)E.appendChild(y[te]);return E}function Ie(a,y,b,x){var E=ke(a,y,b,x);return E.setAttribute("role","presentation"),E}var De;document.createRange?De=function(a,y,b,x){var E=document.createRange();return E.setEnd(x||a,b),E.setStart(a,y),E}:De=function(a,y,b){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(E){return x}return x.collapse(!0),x.moveEnd("character",b),x.moveStart("character",y),x};function Ke(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function Be(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Ve(a,y){var b=a.className;Te(y).test(b)||(a.className+=(b?" ":"")+y)}function It(a,y){for(var b=a.split(" "),x=0;x<b.length;x++)b[x]&&!Te(b[x]).test(y)&&(y+=" "+b[x]);return y}var mt=function(a){a.select()};je?mt=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:be&&(mt=function(a){try{a.select()}catch(y){}});function vt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ot(a,y,b){y||(y={});for(var x in a)a.hasOwnProperty(x)&&(b!==!1||!y.hasOwnProperty(x))&&(y[x]=a[x]);return y}function ge(a,y,b,x,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var te=x||0,oe=E||0;;){var de=a.indexOf(" ",te);if(de<0||de>=y)return oe+(y-te);oe+=de-te,oe+=b-oe%b,te=de+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=vt(this.onTimeout,this)};fe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},fe.prototype.set=function(a,y){this.f=y;var b=+new Date+a;(!this.id||b<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=b)};function He(a,y){for(var b=0;b<a.length;++b)if(a[b]==y)return b;return-1}var lt=50,st={toString:function(){return"CodeMirror.Pass"}},Pe={scroll:!1},rt={origin:"*mouse"},Qe={origin:"+move"};function Wt(a,y,b){for(var x=0,E=0;;){var te=a.indexOf(" ",x);te==-1&&(te=a.length);var oe=te-x;if(te==a.length||E+oe>=y)return x+Math.min(oe,y-E);if(E+=te-x,E+=b-E%b,x=te+1,E>=y)return x}}var Me=[""];function ut(a){for(;Me.length<=a;)Me.push(We(Me)+" ");return Me[a]}function We(a){return a[a.length-1]}function yt(a,y){for(var b=[],x=0;x<a.length;x++)b[x]=y(a[x],x);return b}function xt(a,y,b){for(var x=0,E=b(y);x<a.length&&b(a[x])<=E;)x++;a.splice(x,0,y)}function ae(){}function ee(a,y){var b;return Object.create?b=Object.create(a):(ae.prototype=a,b=new ae),y&&ot(y,b),b}var z=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||z.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&ie(a)?!0:y.test(a):ie(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ce=/[\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 Re(a){return a.charCodeAt(0)>=768&&ce.test(a)}function Et(a,y,b){for(;(b<0?y>0:y<a.length)&&Re(a.charAt(y));)y+=b;return y}function Pt(a,y,b){for(var x=y>b?-1:1;;){if(y==b)return y;var E=(y+b)/2,te=x<0?Math.ceil(E):Math.floor(E);if(te==y)return a(te)?y:b;a(te)?b=te:y=te+x}}function _e(a,y,b,x){if(!a)return x(y,b,"ltr",0);for(var E=!1,te=0;te<a.length;++te){var oe=a[te];(oe.from<b&&oe.to>y||y==b&&oe.to==y)&&(x(Math.max(oe.from,y),Math.min(oe.to,b),oe.level==1?"rtl":"ltr",te),E=!0)}E||x(y,b,"ltr")}var et=null;function qe(a,y,b){var x;et=null;for(var E=0;E<a.length;++E){var te=a[E];if(te.from<y&&te.to>y)return E;te.to==y&&(te.from!=te.to&&b=="before"?x=E:et=E),te.from==y&&(te.from!=te.to&&b!="before"?x=E:et=E)}return x!=null?x:et}var St=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function b(ve){return ve<=247?a.charAt(ve):1424<=ve&&ve<=1524?"R":1536<=ve&&ve<=1785?y.charAt(ve-1536):1774<=ve&&ve<=2220?"r":8192<=ve&&ve<=8203?"w":ve==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,te=/[LRr]/,oe=/[Lb1n]/,de=/[1n]/;function he(ve,Ze,Je){this.level=ve,this.from=Ze,this.to=Je}return function(ve,Ze){var Je=Ze=="ltr"?"L":"R";if(ve.length==0||Ze=="ltr"&&!x.test(ve))return!1;for(var Dt=ve.length,Ct=[],on=0;on<Dt;++on)Ct.push(b(ve.charCodeAt(on)));for(var vn=0,Pn=Je;vn<Dt;++vn){var Rn=Ct[vn];Rn=="m"?Ct[vn]=Pn:Pn=Rn}for(var jn=0,Fn=Je;jn<Dt;++jn){var Xn=Ct[jn];Xn=="1"&&Fn=="r"?Ct[jn]="n":te.test(Xn)&&(Fn=Xn,Xn=="r"&&(Ct[jn]="R"))}for(var wr=1,cr=Ct[0];wr<Dt-1;++wr){var zr=Ct[wr];zr=="+"&&cr=="1"&&Ct[wr+1]=="1"?Ct[wr]="1":zr==","&&cr==Ct[wr+1]&&(cr=="1"||cr=="n")&&(Ct[wr]=cr),cr=zr}for(var ci=0;ci<Dt;++ci){var Ii=Ct[ci];if(Ii==",")Ct[ci]="N";else if(Ii=="%"){var Ci=void 0;for(Ci=ci+1;Ci<Dt&&Ct[Ci]=="%";++Ci);for(var ao=ci&&Ct[ci-1]=="!"||Ci<Dt&&Ct[Ci]=="1"?"1":"N",eo=ci;eo<Ci;++eo)Ct[eo]=ao;ci=Ci-1}}for(var Li=0,to=Je;Li<Dt;++Li){var Wi=Ct[Li];to=="L"&&Wi=="1"?Ct[Li]="L":te.test(Wi)&&(to=Wi)}for(var Ni=0;Ni<Dt;++Ni)if(E.test(Ct[Ni])){var Ti=void 0;for(Ti=Ni+1;Ti<Dt&&E.test(Ct[Ti]);++Ti);for(var Ei=(Ni?Ct[Ni-1]:Je)=="L",no=(Ti<Dt?Ct[Ti]:Je)=="L",Ca=Ei==no?Ei?"L":"R":Je,Xo=Ni;Xo<Ti;++Xo)Ct[Xo]=Ca;Ni=Ti-1}for(var ji=[],So,_i=0;_i<Dt;)if(oe.test(Ct[_i])){var _l=_i;for(++_i;_i<Dt&&oe.test(Ct[_i]);++_i);ji.push(new he(0,_l,_i))}else{var Io=_i,ta=ji.length,na=Ze=="rtl"?1:0;for(++_i;_i<Dt&&Ct[_i]!="L";++_i);for(var Xi=Io;Xi<_i;)if(de.test(Ct[Xi])){Io<Xi&&(ji.splice(ta,0,new he(1,Io,Xi)),ta+=na);var wa=Xi;for(++Xi;Xi<_i&&de.test(Ct[Xi]);++Xi);ji.splice(ta,0,new he(2,wa,Xi)),ta+=na,Io=Xi}else++Xi;Io<_i&&ji.splice(ta,0,new he(1,Io,_i))}return Ze=="ltr"&&(ji[0].level==1&&(So=ve.match(/^\s+/))&&(ji[0].from=So[0].length,ji.unshift(new he(0,0,So[0].length))),We(ji).level==1&&(So=ve.match(/\s+$/))&&(We(ji).to-=So[0].length,ji.push(new he(0,Dt-So[0].length,Dt)))),Ze=="rtl"?ji.reverse():ji}}();function Zt(a,y){var b=a.order;return b==null&&(b=a.order=St(a.text,y)),b}var _t=[],At=function(a,y,b){if(a.addEventListener)a.addEventListener(y,b,!1);else if(a.attachEvent)a.attachEvent("on"+y,b);else{var x=a._handlers||(a._handlers={});x[y]=(x[y]||_t).concat(b)}};function an(a,y){return a._handlers&&a._handlers[y]||_t}function qt(a,y,b){if(a.removeEventListener)a.removeEventListener(y,b,!1);else if(a.detachEvent)a.detachEvent("on"+y,b);else{var x=a._handlers,E=x&&x[y];if(E){var te=He(E,b);te>-1&&(x[y]=E.slice(0,te).concat(E.slice(te+1)))}}}function Ht(a,y){var b=an(a,y);if(b.length)for(var x=Array.prototype.slice.call(arguments,2),E=0;E<b.length;++E)b[E].apply(null,x)}function it(a,y,b){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Ht(a,b||y.type,a,y),gt(y)||y.codemirrorIgnore}function ln(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var b=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<y.length;++x)He(b,y[x])==-1&&b.push(y[x])}function Ot(a,y){return an(a,y).length>0}function Yt(a){a.prototype.on=function(y,b){At(this,y,b)},a.prototype.off=function(y,b){qt(this,y,b)}}function dn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Tt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function gt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function pn(a){dn(a),Tt(a)}function Nn(a){return a.target||a.srcElement}function Tn(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ee&&a.ctrlKey&&y==1&&(y=3),y}var nr=function(){if(be&&ue<9)return!1;var a=ke("div");return"draggable"in a||"dragDrop"in a}(),fr;function br(a){if(fr==null){var y=ke("span","\u200B");Ae(a,ke("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(fr=y.offsetWidth<=1&&y.offsetHeight>2&&!(be&&ue<8))}var b=fr?ke("span","\u200B"):ke("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return b.setAttribute("cm-text",""),b}var Qn;function En(a){if(Qn!=null)return Qn;var y=Ae(a,document.createTextNode("A\u062EA")),b=De(y,0,1).getBoundingClientRect(),x=De(y,1,2).getBoundingClientRect();return bt(a),!b||b.left==b.right?!1:Qn=x.right-b.right<3}var sr=`
b`.split(/\n/).length!=3?function(a){for(var y=0,b=[],x=a.length;y<=x;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var te=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),oe=te.indexOf("\r");oe!=-1?(b.push(te.slice(0,oe)),y+=oe+1):(b.push(te),y=E+1)}return b}:function(a){return a.split(/\r\n?|\n/)},ur=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(b){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},Dn=function(){var a=ke("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),bn=null;function $t(a){if(bn!=null)return bn;var y=Ae(a,ke("span","x")),b=y.getBoundingClientRect(),x=De(y,0,1).getBoundingClientRect();return bn=Math.abs(b.left-x.left)>1}var fn={},zt={};function Jt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),fn[a]=y}function xn(a,y){zt[a]=y}function Sn(a){if(typeof a=="string"&&zt.hasOwnProperty(a))a=zt[a];else if(a&&typeof a.name=="string"&&zt.hasOwnProperty(a.name)){var y=zt[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 Sn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Sn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function An(a,y){y=Sn(y);var b=fn[y.name];if(!b)return An(a,"text/plain");var x=b(a,y);if(Kn.hasOwnProperty(y.name)){var E=Kn[y.name];for(var te in E)E.hasOwnProperty(te)&&(x.hasOwnProperty(te)&&(x["_"+te]=x[te]),x[te]=E[te])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var oe in y.modeProps)x[oe]=y.modeProps[oe];return x}var Kn={};function rr(a,y){var b=Kn.hasOwnProperty(a)?Kn[a]:Kn[a]={};ot(y,b)}function Jn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var b={};for(var x in y){var E=y[x];E instanceof Array&&(E=E.concat([])),b[x]=E}return b}function Zn(a,y){for(var b;a.innerMode&&(b=a.innerMode(y),!(!b||b.mode==a));)y=b.state,a=b.mode;return b||{mode:a,state:y}}function Gn(a,y,b){return a.startState?a.startState(y,b):!0}var sn=function(a,y,b){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=b};sn.prototype.eol=function(){return this.pos>=this.string.length},sn.prototype.sol=function(){return this.pos==this.lineStart},sn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sn.prototype.eat=function(a){var y=this.string.charAt(this.pos),b;if(typeof a=="string"?b=y==a:b=y&&(a.test?a.test(y):a(y)),b)return++this.pos,y},sn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},sn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},sn.prototype.skipToEnd=function(){this.pos=this.string.length},sn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},sn.prototype.backUp=function(a){this.pos-=a},sn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},sn.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},sn.prototype.match=function(a,y,b){if(typeof a=="string"){var x=function(oe){return b?oe.toLowerCase():oe},E=this.string.substr(this.pos,a.length);if(x(E)==x(a))return y!==!1&&(this.pos+=a.length),!0}else{var te=this.string.slice(this.pos).match(a);return te&&te.index>0?null:(te&&y!==!1&&(this.pos+=te[0].length),te)}},sn.prototype.current=function(){return this.string.slice(this.start,this.pos)},sn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},sn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},sn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Lt(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 b=a;!b.lines;)for(var x=0;;++x){var E=b.children[x],te=E.chunkSize();if(y<te){b=E;break}y-=te}return b.lines[y]}function yn(a,y,b){var x=[],E=y.line;return a.iter(y.line,b.line+1,function(te){var oe=te.text;E==b.line&&(oe=oe.slice(0,b.ch)),E==y.line&&(oe=oe.slice(y.ch)),x.push(oe),++E}),x}function Wn(a,y,b){var x=[];return a.iter(y,b,function(E){x.push(E.text)}),x}function qn(a,y){var b=y-a.height;if(b)for(var x=a;x;x=x.parent)x.height+=b}function Xe(a){if(a.parent==null)return null;for(var y=a.parent,b=He(y.lines,a),x=y.parent;x;y=x,x=x.parent)for(var E=0;x.children[E]!=y;++E)b+=x.children[E].chunkSize();return b+y.first}function $e(a,y){var b=a.first;e:do{for(var x=0;x<a.children.length;++x){var E=a.children[x],te=E.height;if(y<te){a=E;continue e}y-=te,b+=E.chunkSize()}return b}while(!a.lines);for(var oe=0;oe<a.lines.length;++oe){var de=a.lines[oe],he=de.height;if(y<he)break;y-=he}return b+oe}function un(a,y){return y>=a.first&&y<a.first+a.size}function Ut(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function ct(a,y,b){if(b===void 0&&(b=null),!(this instanceof ct))return new ct(a,y,b);this.line=a,this.ch=y,this.sticky=b}function en(a,y){return a.line-y.line||a.ch-y.ch}function hn(a,y){return a.sticky==y.sticky&&en(a,y)==0}function mn(a){return ct(a.line,a.ch)}function Cn(a,y){return en(a,y)<0?y:a}function gn(a,y){return en(a,y)<0?a:y}function wn(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function nt(a,y){if(y.line<a.first)return ct(a.first,0);var b=a.first+a.size-1;return y.line>b?ct(b,Lt(a,b).text.length):$n(y,Lt(a,y.line).text.length)}function $n(a,y){var b=a.ch;return b==null||b>y?ct(a.line,y):b<0?ct(a.line,0):a}function kn(a,y){for(var b=[],x=0;x<y.length;x++)b[x]=nt(a,y[x]);return b}var _n=function(a,y){this.state=a,this.lookAhead=y},zn=function(a,y,b,x){this.state=y,this.doc=a,this.line=b,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};zn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},zn.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}},zn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},zn.fromSaved=function(a,y,b){return y instanceof _n?new zn(a,Jn(a.mode,y.state),b,y.lookAhead):new zn(a,Jn(a.mode,y),b)},zn.prototype.save=function(a){var y=a!==!1?Jn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(y,this.maxLookAhead):y};function er(a,y,b,x){var E=[a.state.modeGen],te={};Ur(a,y.text,a.doc.mode,b,function(ve,Ze){return E.push(ve,Ze)},te,x);for(var oe=b.state,de=function(ve){b.baseTokens=E;var Ze=a.state.overlays[ve],Je=1,Dt=0;b.state=!0,Ur(a,y.text,Ze.mode,b,function(Ct,on){for(var vn=Je;Dt<Ct;){var Pn=E[Je];Pn>Ct&&E.splice(Je,1,Ct,E[Je+1],Pn),Je+=2,Dt=Math.min(Ct,Pn)}if(on)if(Ze.opaque)E.splice(vn,Je-vn,Ct,"overlay "+on),Je=vn+2;else for(;vn<Je;vn+=2){var Rn=E[vn+1];E[vn+1]=(Rn?Rn+" ":"")+"overlay "+on}},te),b.state=oe,b.baseTokens=null,b.baseTokenPos=1},he=0;he<a.state.overlays.length;++he)de(he);return{styles:E,classes:te.bgClass||te.textClass?te:null}}function dr(a,y,b){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=Wr(a,Xe(y)),E=y.text.length>a.options.maxHighlightLength&&Jn(a.doc.mode,x.state),te=er(a,y,x);E&&(x.state=E),y.stateAfter=x.save(!E),y.styles=te.styles,te.classes?y.styleClasses=te.classes:y.styleClasses&&(y.styleClasses=null),b===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Wr(a,y,b){var x=a.doc,E=a.display;if(!x.mode.startState)return new zn(x,!0,y);var te=jr(a,y,b),oe=te>x.first&&Lt(x,te-1).stateAfter,de=oe?zn.fromSaved(x,oe,te):new zn(x,Gn(x.mode),te);return x.iter(te,y,function(he){Ar(a,he.text,de);var ve=de.line;he.stateAfter=ve==y-1||ve%5==0||ve>=E.viewFrom&&ve<E.viewTo?de.save():null,de.nextLine()}),b&&(x.modeFrontier=de.line),de}function Ar(a,y,b,x){var E=a.doc.mode,te=new sn(y,a.options.tabSize,b);for(te.start=te.pos=x||0,y==""&&gr(E,b.state);!te.eol();)Zr(E,te,b.state),te.start=te.pos}function gr(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var b=Zn(a,y);if(b.mode.blankLine)return b.mode.blankLine(b.state)}}function Zr(a,y,b,x){for(var E=0;E<10;E++){x&&(x[0]=Zn(a,b).mode);var te=a.token(y,b);if(y.pos>y.start)return te}throw new Error("Mode "+a.name+" failed to advance stream.")}var vr=function(a,y,b){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=b};function Gr(a,y,b,x){var E=a.doc,te=E.mode,oe;y=nt(E,y);var de=Lt(E,y.line),he=Wr(a,y.line,b),ve=new sn(de.text,a.options.tabSize,he),Ze;for(x&&(Ze=[]);(x||ve.pos<y.ch)&&!ve.eol();)ve.start=ve.pos,oe=Zr(te,ve,he.state),x&&Ze.push(new vr(ve,oe,Jn(E.mode,he.state)));return x?Ze:new vr(ve,oe,he.state)}function qr(a,y){if(a)for(;;){var b=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!b)break;a=a.slice(0,b.index)+a.slice(b.index+b[0].length);var x=b[1]?"bgClass":"textClass";y[x]==null?y[x]=b[2]:new RegExp("(?:^|\\s)"+b[2]+"(?:$|\\s)").test(y[x])||(y[x]+=" "+b[2])}return a}function Ur(a,y,b,x,E,te,oe){var de=b.flattenSpans;de==null&&(de=a.options.flattenSpans);var he=0,ve=null,Ze=new sn(y,a.options.tabSize,x),Je,Dt=a.options.addModeClass&&[null];for(y==""&&qr(gr(b,x.state),te);!Ze.eol();){if(Ze.pos>a.options.maxHighlightLength?(de=!1,oe&&Ar(a,y,x,Ze.pos),Ze.pos=y.length,Je=null):Je=qr(Zr(b,Ze,x.state,Dt),te),Dt){var Ct=Dt[0].name;Ct&&(Je="m-"+(Je?Ct+" "+Je:Ct))}if(!de||ve!=Je){for(;he<Ze.start;)he=Math.min(Ze.start,he+5e3),E(he,ve);ve=Je}Ze.start=Ze.pos}for(;he<Ze.pos;){var on=Math.min(Ze.pos,he+5e3);E(on,ve),he=on}}function jr(a,y,b){for(var x,E,te=a.doc,oe=b?-1:y-(a.doc.mode.innerMode?1e3:100),de=y;de>oe;--de){if(de<=te.first)return te.first;var he=Lt(te,de-1),ve=he.stateAfter;if(ve&&(!b||de+(ve instanceof _n?ve.lookAhead:0)<=te.modeFrontier))return de;var Ze=ge(he.text,null,a.options.tabSize);(E==null||x>Ze)&&(E=de-1,x=Ze)}return E}function Yr(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var b=a.first,x=y-1;x>b;x--){var E=Lt(a,x).stateAfter;if(E&&(!(E instanceof _n)||x+E.lookAhead<y)){b=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,b)}}var Vr=!1,Br=!1;function $r(){Vr=!0}function Kr(){Br=!0}function On(a,y,b){this.marker=a,this.from=y,this.to=b}function ir(a,y){if(a)for(var b=0;b<a.length;++b){var x=a[b];if(x.marker==y)return x}}function Sr(a,y){for(var b,x=0;x<a.length;++x)a[x]!=y&&(b||(b=[])).push(a[x]);return b}function Rr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Nr(a,y,b){var x;if(a)for(var E=0;E<a.length;++E){var te=a[E],oe=te.marker,de=te.from==null||(oe.inclusiveLeft?te.from<=y:te.from<y);if(de||te.from==y&&oe.type=="bookmark"&&(!b||!te.marker.insertLeft)){var he=te.to==null||(oe.inclusiveRight?te.to>=y:te.to>y);(x||(x=[])).push(new On(oe,te.from,he?null:te.to))}}return x}function Ir(a,y,b){var x;if(a)for(var E=0;E<a.length;++E){var te=a[E],oe=te.marker,de=te.to==null||(oe.inclusiveRight?te.to>=y:te.to>y);if(de||te.from==y&&oe.type=="bookmark"&&(!b||te.marker.insertLeft)){var he=te.from==null||(oe.inclusiveLeft?te.from<=y:te.from<y);(x||(x=[])).push(new On(oe,he?null:te.from-y,te.to==null?null:te.to-y))}}return x}function si(a,y){if(y.full)return null;var b=un(a,y.from.line)&&Lt(a,y.from.line).markedSpans,x=un(a,y.to.line)&&Lt(a,y.to.line).markedSpans;if(!b&&!x)return null;var E=y.from.ch,te=y.to.ch,oe=en(y.from,y.to)==0,de=Nr(b,E,oe),he=Ir(x,te,oe),ve=y.text.length==1,Ze=We(y.text).length+(ve?E:0);if(de)for(var Je=0;Je<de.length;++Je){var Dt=de[Je];if(Dt.to==null){var Ct=ir(he,Dt.marker);Ct?ve&&(Dt.to=Ct.to==null?null:Ct.to+Ze):Dt.to=E}}if(he)for(var on=0;on<he.length;++on){var vn=he[on];if(vn.to!=null&&(vn.to+=Ze),vn.from==null){var Pn=ir(de,vn.marker);Pn||(vn.from=Ze,ve&&(de||(de=[])).push(vn))}else vn.from+=Ze,ve&&(de||(de=[])).push(vn)}de&&(de=Fe(de)),he&&he!=de&&(he=Fe(he));var Rn=[de];if(!ve){var jn=y.text.length-2,Fn;if(jn>0&&de)for(var Xn=0;Xn<de.length;++Xn)de[Xn].to==null&&(Fn||(Fn=[])).push(new On(de[Xn].marker,null,null));for(var wr=0;wr<jn;++wr)Rn.push(Fn);Rn.push(he)}return Rn}function Fe(a){for(var y=0;y<a.length;++y){var b=a[y];b.from!=null&&b.from==b.to&&b.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function wt(a,y,b){var x=null;if(a.iter(y.line,b.line+1,function(Ct){if(Ct.markedSpans)for(var on=0;on<Ct.markedSpans.length;++on){var vn=Ct.markedSpans[on].marker;vn.readOnly&&(!x||He(x,vn)==-1)&&(x||(x=[])).push(vn)}}),!x)return null;for(var E=[{from:y,to:b}],te=0;te<x.length;++te)for(var oe=x[te],de=oe.find(0),he=0;he<E.length;++he){var ve=E[he];if(!(en(ve.to,de.from)<0||en(ve.from,de.to)>0)){var Ze=[he,1],Je=en(ve.from,de.from),Dt=en(ve.to,de.to);(Je<0||!oe.inclusiveLeft&&!Je)&&Ze.push({from:ve.from,to:de.from}),(Dt>0||!oe.inclusiveRight&&!Dt)&&Ze.push({from:de.to,to:ve.to}),E.splice.apply(E,Ze),he+=Ze.length-3}}return E}function dt(a){var y=a.markedSpans;if(y){for(var b=0;b<y.length;++b)y[b].marker.detachLine(a);a.markedSpans=null}}function kt(a,y){if(y){for(var b=0;b<y.length;++b)y[b].marker.attachLine(a);a.markedSpans=y}}function Mt(a){return a.inclusiveLeft?-1:0}function jt(a){return a.inclusiveRight?1:0}function cn(a,y){var b=a.lines.length-y.lines.length;if(b!=0)return b;var x=a.find(),E=y.find(),te=en(x.from,E.from)||Mt(a)-Mt(y);if(te)return-te;var oe=en(x.to,E.to)||jt(a)-jt(y);return oe||y.id-a.id}function rn(a,y){var b=Br&&a.markedSpans,x;if(b)for(var E=void 0,te=0;te<b.length;++te)E=b[te],E.marker.collapsed&&(y?E.from:E.to)==null&&(!x||cn(x,E.marker)<0)&&(x=E.marker);return x}function Qt(a){return rn(a,!0)}function ft(a){return rn(a,!1)}function Nt(a,y){var b=Br&&a.markedSpans,x;if(b)for(var E=0;E<b.length;++E){var te=b[E];te.marker.collapsed&&(te.from==null||te.from<y)&&(te.to==null||te.to>y)&&(!x||cn(x,te.marker)<0)&&(x=te.marker)}return x}function Ft(a,y,b,x,E){var te=Lt(a,y),oe=Br&&te.markedSpans;if(oe)for(var de=0;de<oe.length;++de){var he=oe[de];if(he.marker.collapsed){var ve=he.marker.find(0),Ze=en(ve.from,b)||Mt(he.marker)-Mt(E),Je=en(ve.to,x)||jt(he.marker)-jt(E);if(!(Ze>=0&&Je<=0||Ze<=0&&Je>=0)&&(Ze<=0&&(he.marker.inclusiveRight&&E.inclusiveLeft?en(ve.to,b)>=0:en(ve.to,b)>0)||Ze>=0&&(he.marker.inclusiveRight&&E.inclusiveLeft?en(ve.from,x)<=0:en(ve.from,x)<0)))return!0}}}function Rt(a){for(var y;y=Qt(a);)a=y.find(-1,!0).line;return a}function Gt(a){for(var y;y=ft(a);)a=y.find(1,!0).line;return a}function Bt(a){for(var y,b;y=ft(a);)a=y.find(1,!0).line,(b||(b=[])).push(a);return b}function Kt(a,y){var b=Lt(a,y),x=Rt(b);return b==x?y:Xe(x)}function Vt(a,y){if(y>a.lastLine())return y;var b=Lt(a,y),x;if(!nn(a,b))return y;for(;x=ft(b);)b=x.find(1,!0).line;return Xe(b)+1}function nn(a,y){var b=Br&&y.markedSpans;if(b){for(var x=void 0,E=0;E<b.length;++E)if(x=b[E],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&Mn(a,y,x))return!0}}}function Mn(a,y,b){if(b.to==null){var x=b.marker.find(1,!0);return Mn(a,x.line,ir(x.line.markedSpans,b.marker))}if(b.marker.inclusiveRight&&b.to==y.text.length)return!0;for(var E=void 0,te=0;te<y.markedSpans.length;++te)if(E=y.markedSpans[te],E.marker.collapsed&&!E.marker.widgetNode&&E.from==b.to&&(E.to==null||E.to!=b.from)&&(E.marker.inclusiveLeft||b.marker.inclusiveRight)&&Mn(a,y,E))return!0}function Ln(a){a=Rt(a);for(var y=0,b=a.parent,x=0;x<b.lines.length;++x){var E=b.lines[x];if(E==a)break;y+=E.height}for(var te=b.parent;te;b=te,te=b.parent)for(var oe=0;oe<te.children.length;++oe){var de=te.children[oe];if(de==b)break;y+=de.height}return y}function Vn(a){if(a.height==0)return 0;for(var y=a.text.length,b,x=a;b=Qt(x);){var E=b.find(0,!0);x=E.from.line,y+=E.from.ch-E.to.ch}for(x=a;b=ft(x);){var te=b.find(0,!0);y-=x.text.length-te.from.ch,x=te.to.line,y+=x.text.length-te.to.ch}return y}function Bn(a){var y=a.display,b=a.doc;y.maxLine=Lt(b,b.first),y.maxLineLength=Vn(y.maxLine),y.maxLineChanged=!0,b.iter(function(x){var E=Vn(x);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=x)})}var tr=function(a,y,b){this.text=a,kt(this,y),this.height=b?b(this):1};tr.prototype.lineNo=function(){return Xe(this)},Yt(tr);function ar(a,y,b,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),dt(a),kt(a,b);var E=x?x(a):1;E!=a.height&&qn(a,E)}function yr(a){a.parent=null,dt(a)}var lr={},Er={};function Lr(a,y){if(!a||/^\s*$/.test(a))return null;var b=y.addModeClass?Er:lr;return b[a]||(b[a]=a.replace(/\S+/g,"cm-$&"))}function xr(a,y){var b=Ie("span",null,null,Le?"padding-right: .1px":null),x={pre:Ie("pre",[b],"CodeMirror-line"),content:b,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,oe=void 0;x.pos=0,x.addToken=or,En(a.display.measure)&&(oe=Zt(te,a.doc.direction))&&(x.addToken=Yn(x.addToken,oe)),x.map=[];var de=y!=a.display.externalMeasured&&Xe(te);kr(te,x,dr(a,te,de)),te.styleClasses&&(te.styleClasses.bgClass&&(x.bgClass=It(te.styleClasses.bgClass,x.bgClass||"")),te.styleClasses.textClass&&(x.textClass=It(te.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(br(a.display.measure))),E==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Le){var he=x.content.lastChild;(/\bcm-tab\b/.test(he.className)||he.querySelector&&he.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return Ht(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=It(x.pre.className,x.textClass||"")),x}function Dr(a){var y=ke("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function or(a,y,b,x,E,te,oe){if(y){var de=a.splitSpaces?In(y,a.trailingSpace):y,he=a.cm.state.specialChars,ve=!1,Ze;if(!he.test(y))a.col+=y.length,Ze=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,Ze),be&&ue<9&&(ve=!0),a.pos+=y.length;else{Ze=document.createDocumentFragment();for(var Je=0;;){he.lastIndex=Je;var Dt=he.exec(y),Ct=Dt?Dt.index-Je:y.length-Je;if(Ct){var on=document.createTextNode(de.slice(Je,Je+Ct));be&&ue<9?Ze.appendChild(ke("span",[on])):Ze.appendChild(on),a.map.push(a.pos,a.pos+Ct,on),a.col+=Ct,a.pos+=Ct}if(!Dt)break;Je+=Ct+1;var vn=void 0;if(Dt[0]==" "){var Pn=a.cm.options.tabSize,Rn=Pn-a.col%Pn;vn=Ze.appendChild(ke("span",ut(Rn),"cm-tab")),vn.setAttribute("role","presentation"),vn.setAttribute("cm-text"," "),a.col+=Rn}else Dt[0]=="\r"||Dt[0]==`
`?(vn=Ze.appendChild(ke("span",Dt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vn.setAttribute("cm-text",Dt[0]),a.col+=1):(vn=a.cm.options.specialCharPlaceholder(Dt[0]),vn.setAttribute("cm-text",Dt[0]),be&&ue<9?Ze.appendChild(ke("span",[vn])):Ze.appendChild(vn),a.col+=1);a.map.push(a.pos,a.pos+1,vn),a.pos++}}if(a.trailingSpace=de.charCodeAt(y.length-1)==32,b||x||E||ve||te||oe){var jn=b||"";x&&(jn+=x),E&&(jn+=E);var Fn=ke("span",[Ze],jn,te);if(oe)for(var Xn in oe)oe.hasOwnProperty(Xn)&&Xn!="style"&&Xn!="class"&&Fn.setAttribute(Xn,oe[Xn]);return a.content.appendChild(Fn)}a.content.appendChild(Ze)}}function In(a,y){if(a.length>1&&!/ /.test(a))return a;for(var b=y,x="",E=0;E<a.length;E++){var te=a.charAt(E);te==" "&&b&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(te="\xA0"),x+=te,b=te==" "}return x}function Yn(a,y){return function(b,x,E,te,oe,de,he){E=E?E+" cm-force-border":"cm-force-border";for(var ve=b.pos,Ze=ve+x.length;;){for(var Je=void 0,Dt=0;Dt<y.length&&(Je=y[Dt],!(Je.to>ve&&Je.from<=ve));Dt++);if(Je.to>=Ze)return a(b,x,E,te,oe,de,he);a(b,x.slice(0,Je.to-ve),E,te,null,de,he),te=null,x=x.slice(Je.to-ve),ve=Je.to}}}function Hn(a,y,b,x){var E=!x&&b.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!x&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",b.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function kr(a,y,b){var x=a.markedSpans,E=a.text,te=0;if(!x){for(var oe=1;oe<b.length;oe+=2)y.addToken(y,E.slice(te,te=b[oe]),Lr(b[oe+1],y.cm.options));return}for(var de=E.length,he=0,ve=1,Ze="",Je,Dt,Ct=0,on,vn,Pn,Rn,jn;;){if(Ct==he){on=vn=Pn=Dt="",jn=null,Rn=null,Ct=1/0;for(var Fn=[],Xn=void 0,wr=0;wr<x.length;++wr){var cr=x[wr],zr=cr.marker;if(zr.type=="bookmark"&&cr.from==he&&zr.widgetNode)Fn.push(zr);else if(cr.from<=he&&(cr.to==null||cr.to>he||zr.collapsed&&cr.to==he&&cr.from==he)){if(cr.to!=null&&cr.to!=he&&Ct>cr.to&&(Ct=cr.to,vn=""),zr.className&&(on+=" "+zr.className),zr.css&&(Dt=(Dt?Dt+";":"")+zr.css),zr.startStyle&&cr.from==he&&(Pn+=" "+zr.startStyle),zr.endStyle&&cr.to==Ct&&(Xn||(Xn=[])).push(zr.endStyle,cr.to),zr.title&&((jn||(jn={})).title=zr.title),zr.attributes)for(var ci in zr.attributes)(jn||(jn={}))[ci]=zr.attributes[ci];zr.collapsed&&(!Rn||cn(Rn.marker,zr)<0)&&(Rn=cr)}else cr.from>he&&Ct>cr.from&&(Ct=cr.from)}if(Xn)for(var Ii=0;Ii<Xn.length;Ii+=2)Xn[Ii+1]==Ct&&(vn+=" "+Xn[Ii]);if(!Rn||Rn.from==he)for(var Ci=0;Ci<Fn.length;++Ci)Hn(y,0,Fn[Ci]);if(Rn&&(Rn.from||0)==he){if(Hn(y,(Rn.to==null?de+1:Rn.to)-he,Rn.marker,Rn.from==null),Rn.to==null)return;Rn.to==he&&(Rn=!1)}}if(he>=de)break;for(var ao=Math.min(de,Ct);;){if(Ze){var eo=he+Ze.length;if(!Rn){var Li=eo>ao?Ze.slice(0,ao-he):Ze;y.addToken(y,Li,Je?Je+on:on,Pn,he+Li.length==Ct?vn:"",Dt,jn)}if(eo>=ao){Ze=Ze.slice(ao-he),he=ao;break}he=eo,Pn=""}Ze=E.slice(te,te=b[ve++]),Je=Lr(b[ve++],y.cm.options)}}}function Cr(a,y,b){this.line=y,this.rest=Bt(y),this.size=this.rest?Xe(We(this.rest))-b+1:1,this.node=this.text=null,this.hidden=nn(a,y)}function Pr(a,y,b){for(var x=[],E,te=y;te<b;te=E){var oe=new Cr(a.doc,Lt(a.doc,te),te);E=te+oe.size,x.push(oe)}return x}var Xr=null;function wi(a){Xr?Xr.ops.push(a):a.ownsGroup=Xr={ops:[a],delayedCallbacks:[]}}function oi(a){var y=a.delayedCallbacks,b=0;do{for(;b<y.length;b++)y[b].call(null);for(var x=0;x<a.ops.length;x++){var E=a.ops[x];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(b<y.length)}function Gi(a,y){var b=a.ownsGroup;if(b)try{oi(b)}finally{Xr=null,y(b)}}var Pi=null;function Jr(a,y){var b=an(a,y);if(b.length){var x=Array.prototype.slice.call(arguments,2),E;Xr?E=Xr.delayedCallbacks:Pi?E=Pi:(E=Pi=[],setTimeout(ei,0));for(var te=function(de){E.push(function(){return b[de].apply(null,x)})},oe=0;oe<b.length;++oe)te(oe)}}function ei(){var a=Pi;Pi=null;for(var y=0;y<a.length;++y)a[y]()}function ti(a,y,b,x){for(var E=0;E<y.changes.length;E++){var te=y.changes[E];te=="text"?ai(a,y):te=="gutter"?hr(a,y,b,x):te=="class"?Un(a,y):te=="widget"&&pr(a,y,x)}y.changes=null}function ki(a){return a.node==a.text&&(a.node=ke("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),be&&ue<8&&(a.node.style.zIndex=2)),a.node}function ii(a,y){var b=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(b&&(b+=" CodeMirror-linebackground"),y.background)b?y.background.className=b:(y.background.parentNode.removeChild(y.background),y.background=null);else if(b){var x=ki(y);y.background=x.insertBefore(ke("div",null,b),x.firstChild),a.display.input.setUneditable(y.background)}}function ui(a,y){var b=a.display.externalMeasured;return b&&b.line==y.line?(a.display.externalMeasured=null,y.measure=b.measure,b.built):xr(a,y)}function ai(a,y){var b=y.text.className,x=ui(a,y);y.text==y.node&&(y.node=x.pre),y.text.parentNode.replaceChild(x.pre,y.text),y.text=x.pre,x.bgClass!=y.bgClass||x.textClass!=y.textClass?(y.bgClass=x.bgClass,y.textClass=x.textClass,Un(a,y)):b&&(y.text.className=b)}function Un(a,y){ii(a,y),y.line.wrapClass?ki(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var b=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=b||""}function hr(a,y,b,x){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=ki(y);y.gutterBackground=ke("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var te=y.line.gutterMarkers;if(a.options.lineNumbers||te){var oe=ki(y),de=y.gutter=ke("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(de),oe.insertBefore(de,y.text),y.line.gutterClass&&(de.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(y.lineNumber=de.appendChild(ke("div",Ut(a.options,b),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),te)for(var he=0;he<a.display.gutterSpecs.length;++he){var ve=a.display.gutterSpecs[he].className,Ze=te.hasOwnProperty(ve)&&te[ve];Ze&&de.appendChild(ke("div",[Ze],"CodeMirror-gutter-elt","left: "+x.gutterLeft[ve]+"px; width: "+x.gutterWidth[ve]+"px"))}}}function pr(a,y,b){y.alignable&&(y.alignable=null);for(var x=Te("CodeMirror-linewidget"),E=y.node.firstChild,te=void 0;E;E=te)te=E.nextSibling,x.test(E.className)&&y.node.removeChild(E);Hr(a,y,b)}function mr(a,y,b,x){var E=ui(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),Un(a,y),hr(a,y,b,x),Hr(a,y,x),y.node}function Hr(a,y,b){if(Qr(a,y.line,y,b,!0),y.rest)for(var x=0;x<y.rest.length;x++)Qr(a,y.rest[x],y,b,!1)}function Qr(a,y,b,x,E){if(y.widgets)for(var te=ki(b),oe=0,de=y.widgets;oe<de.length;++oe){var he=de[oe],ve=ke("div",[he.node],"CodeMirror-linewidget"+(he.className?" "+he.className:""));he.handleMouseEvents||ve.setAttribute("cm-ignore-events","true"),zi(he,ve,b,x),a.display.input.setUneditable(ve),E&&he.above?te.insertBefore(ve,b.gutter||b.text):te.appendChild(ve),Jr(he,"redraw")}}function zi(a,y,b,x){if(a.noHScroll){(b.alignable||(b.alignable=[])).push(y);var E=x.wrapperWidth;y.style.left=x.fixedPos+"px",a.coverGutter||(E-=x.gutterTotalWidth,y.style.paddingLeft=x.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-x.gutterTotalWidth+"px"))}function fi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Ke(document.body,a.node)){var b="position: relative;";a.coverGutter&&(b+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(b+="width: "+y.display.wrapper.clientWidth+"px;"),Ae(y.display.measure,ke("div",[a.node],null,b))}return a.height=a.node.parentNode.offsetHeight}function di(a,y){for(var b=Nn(y);b!=a.wrapper;b=b.parentNode)if(!b||b.nodeType==1&&b.getAttribute("cm-ignore-events")=="true"||b.parentNode==a.sizer&&b!=a.mover)return!0}function Tr(a){return a.lineSpace.offsetTop}function xi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ui(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=Ae(a.measure,ke("pre","x","CodeMirror-line-like")),b=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,x={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function ni(a){return lt-a.display.nativeBarWidth}function lo(a){return a.display.scroller.clientWidth-ni(a)-a.display.barWidth}function Vi(a){return a.display.scroller.clientHeight-ni(a)-a.display.barHeight}function Ji(a,y,b){var x=a.options.lineWrapping,E=x&&lo(a);if(!y.measure.heights||x&&y.measure.width!=E){var te=y.measure.heights=[];if(x){y.measure.width=E;for(var oe=y.text.firstChild.getClientRects(),de=0;de<oe.length-1;de++){var he=oe[de],ve=oe[de+1];Math.abs(he.bottom-ve.bottom)>2&&te.push((he.bottom+ve.top)/2-b.top)}}te.push(b.bottom-b.top)}}function mi(a,y,b){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==y)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var E=0;E<a.rest.length;E++)if(Xe(a.rest[E])>b)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function ra(a,y){y=Rt(y);var b=Xe(y),x=a.display.externalMeasured=new Cr(a.doc,y,b);x.lineN=b;var E=x.built=xr(a,x);return x.text=E.pre,Ae(a.display.lineMeasure,E.pre),x}function Jo(a,y,b,x){return ro(a,mo(a,y),b,x)}function vo(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[Po(a,y)];var b=a.display.externalMeasured;if(b&&y>=b.lineN&&y<b.lineN+b.size)return b}function mo(a,y){var b=Xe(y),x=vo(a,b);x&&!x.text?x=null:x&&x.changes&&(ti(a,x,b,uo(a)),a.curOp.forceUpdate=!0),x||(x=ra(a,y));var E=mi(x,y,b);return{line:y,view:x,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function ro(a,y,b,x,E){y.before&&(b=-1);var te=b+(x||""),oe;return y.cache.hasOwnProperty(te)?oe=y.cache[te]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Ji(a,y.view,y.rect),y.hasHeights=!0),oe=aa(a,y,b,x),oe.bogus||(y.cache[te]=oe)),{left:oe.left,right:oe.right,top:E?oe.rtop:oe.top,bottom:E?oe.rbottom:oe.bottom}}var Eo={left:0,right:0,top:0,bottom:0};function ia(a,y,b){for(var x,E,te,oe,de,he,ve=0;ve<a.length;ve+=3)if(de=a[ve],he=a[ve+1],y<de?(E=0,te=1,oe="left"):y<he?(E=y-de,te=E+1):(ve==a.length-3||y==he&&a[ve+3]>y)&&(te=he-de,E=te-1,y>=he&&(oe="right")),E!=null){if(x=a[ve+2],de==he&&b==(x.insertLeft?"left":"right")&&(oe=b),b=="left"&&E==0)for(;ve&&a[ve-2]==a[ve-3]&&a[ve-1].insertLeft;)x=a[(ve-=3)+2],oe="left";if(b=="right"&&E==he-de)for(;ve<a.length-3&&a[ve+3]==a[ve+4]&&!a[ve+5].insertLeft;)x=a[(ve+=3)+2],oe="right";break}return{node:x,start:E,end:te,collapse:oe,coverStart:de,coverEnd:he}}function oa(a,y){var b=Eo;if(y=="left")for(var x=0;x<a.length&&(b=a[x]).left==b.right;x++);else for(var E=a.length-1;E>=0&&(b=a[E]).left==b.right;E--);return b}function aa(a,y,b,x){var E=ia(y.map,b,x),te=E.node,oe=E.start,de=E.end,he=E.collapse,ve;if(te.nodeType==3){for(var Ze=0;Ze<4;Ze++){for(;oe&&Re(y.line.text.charAt(E.coverStart+oe));)--oe;for(;E.coverStart+de<E.coverEnd&&Re(y.line.text.charAt(E.coverStart+de));)++de;if(be&&ue<9&&oe==0&&de==E.coverEnd-E.coverStart?ve=te.parentNode.getBoundingClientRect():ve=oa(De(te,oe,de).getClientRects(),x),ve.left||ve.right||oe==0)break;de=oe,oe=oe-1,he="right"}be&&ue<11&&(ve=_o(a.display.measure,ve))}else{oe>0&&(he=x="right");var Je;a.options.lineWrapping&&(Je=te.getClientRects()).length>1?ve=Je[x=="right"?Je.length-1:0]:ve=te.getBoundingClientRect()}if(be&&ue<9&&!oe&&(!ve||!ve.left&&!ve.right)){var Dt=te.parentNode.getClientRects()[0];Dt?ve={left:Dt.left,right:Dt.left+Qi(a.display),top:Dt.top,bottom:Dt.bottom}:ve=Eo}for(var Ct=ve.top-y.rect.top,on=ve.bottom-y.rect.top,vn=(Ct+on)/2,Pn=y.view.measure.heights,Rn=0;Rn<Pn.length-1&&!(vn<Pn[Rn]);Rn++);var jn=Rn?Pn[Rn-1]:0,Fn=Pn[Rn],Xn={left:(he=="right"?ve.right:ve.left)-y.rect.left,right:(he=="left"?ve.left:ve.right)-y.rect.left,top:jn,bottom:Fn};return!ve.left&&!ve.right&&(Xn.bogus=!0),a.options.singleCursorHeightPerLine||(Xn.rtop=Ct,Xn.rbottom=on),Xn}function _o(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!$t(a))return y;var b=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*b,right:y.right*b,top:y.top*x,bottom:y.bottom*x}}function Qo(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function Zo(a){a.display.externalMeasure=null,bt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Qo(a.display.view[y])}function ko(a){Zo(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function qo(){return Ce&&Se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function la(){return Ce&&Se?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ho(a){var y=0;if(a.widgets)for(var b=0;b<a.widgets.length;++b)a.widgets[b].above&&(y+=fi(a.widgets[b]));return y}function Ao(a,y,b,x,E){if(!E){var te=Ho(y);b.top+=te,b.bottom+=te}if(x=="line")return b;x||(x="local");var oe=Ln(y);if(x=="local"?oe+=Tr(a.display):oe-=a.display.viewOffset,x=="page"||x=="window"){var de=a.display.lineSpace.getBoundingClientRect();oe+=de.top+(x=="window"?0:la());var he=de.left+(x=="window"?0:qo());b.left+=he,b.right+=he}return b.top+=oe,b.bottom+=oe,b}function Do(a,y,b){if(b=="div")return y;var x=y.left,E=y.top;if(b=="page")x-=qo(),E-=la();else if(b=="local"||!b){var te=a.display.sizer.getBoundingClientRect();x+=te.left,E+=te.top}var oe=a.display.lineSpace.getBoundingClientRect();return{left:x-oe.left,top:E-oe.top}}function Zi(a,y,b,x,E){return x||(x=Lt(a.doc,y.line)),Ao(a,x,Jo(a,x,y.ch,E),b)}function hi(a,y,b,x,E,te){x=x||Lt(a.doc,y.line),E||(E=mo(a,x));function oe(on,vn){var Pn=ro(a,E,on,vn?"right":"left",te);return vn?Pn.left=Pn.right:Pn.right=Pn.left,Ao(a,x,Pn,b)}var de=Zt(x,a.doc.direction),he=y.ch,ve=y.sticky;if(he>=x.text.length?(he=x.text.length,ve="before"):he<=0&&(he=0,ve="after"),!de)return oe(ve=="before"?he-1:he,ve=="before");function Ze(on,vn,Pn){var Rn=de[vn],jn=Rn.level==1;return oe(Pn?on-1:on,jn!=Pn)}var Je=qe(de,he,ve),Dt=et,Ct=Ze(he,Je,ve=="before");return Dt!=null&&(Ct.other=Ze(he,Dt,ve!="before")),Ct}function _r(a,y){var b=0;y=nt(a.doc,y),a.options.lineWrapping||(b=Qi(a.display)*y.ch);var x=Lt(a.doc,y.line),E=Ln(x)+Tr(a.display);return{left:b,right:b,top:E,bottom:E+x.height}}function Mr(a,y,b,x,E){var te=ct(a,y,b);return te.xRel=E,x&&(te.outside=x),te}function gi(a,y,b){var x=a.doc;if(b+=a.display.viewOffset,b<0)return Mr(x.first,0,null,-1,-1);var E=$e(x,b),te=x.first+x.size-1;if(E>te)return Mr(x.first+x.size-1,Lt(x,te).text.length,null,1,1);y<0&&(y=0);for(var oe=Lt(x,E);;){var de=so(a,oe,E,y,b),he=Nt(oe,de.ch+(de.xRel>0||de.outside>0?1:0));if(!he)return de;var ve=he.find(1);if(ve.line==E)return ve;oe=Lt(x,E=ve.line)}}function pi(a,y,b,x){x-=Ho(y);var E=y.text.length,te=Pt(function(oe){return ro(a,b,oe-1).bottom<=x},E,0);return E=Pt(function(oe){return ro(a,b,oe).top>x},te,E),{begin:te,end:E}}function bi(a,y,b,x){b||(b=mo(a,y));var E=Ao(a,y,ro(a,b,x),"line").top;return pi(a,y,b,E)}function Ai(a,y,b,x){return a.bottom<=b?!1:a.top>b?!0:(x?a.left:a.right)>y}function so(a,y,b,x,E){E-=Ln(y);var te=mo(a,y),oe=Ho(y),de=0,he=y.text.length,ve=!0,Ze=Zt(y,a.doc.direction);if(Ze){var Je=(a.options.lineWrapping?go:io)(a,y,b,te,Ze,x,E);ve=Je.level!=1,de=ve?Je.from:Je.to-1,he=ve?Je.to:Je.from-1}var Dt=null,Ct=null,on=Pt(function(wr){var cr=ro(a,te,wr);return cr.top+=oe,cr.bottom+=oe,Ai(cr,x,E,!1)?(cr.top<=E&&cr.left<=x&&(Dt=wr,Ct=cr),!0):!1},de,he),vn,Pn,Rn=!1;if(Ct){var jn=x-Ct.left<Ct.right-x,Fn=jn==ve;on=Dt+(Fn?0:1),Pn=Fn?"after":"before",vn=jn?Ct.left:Ct.right}else{!ve&&(on==he||on==de)&&on++,Pn=on==0?"after":on==y.text.length?"before":ro(a,te,on-(ve?1:0)).bottom+oe<=E==ve?"after":"before";var Xn=hi(a,ct(b,on,Pn),"line",y,te);vn=Xn.left,Rn=E<Xn.top?-1:E>=Xn.bottom?1:0}return on=Et(y.text,on,1),Mr(b,on,Pn,Rn,x-vn)}function io(a,y,b,x,E,te,oe){var de=Pt(function(Je){var Dt=E[Je],Ct=Dt.level!=1;return Ai(hi(a,ct(b,Ct?Dt.to:Dt.from,Ct?"before":"after"),"line",y,x),te,oe,!0)},0,E.length-1),he=E[de];if(de>0){var ve=he.level!=1,Ze=hi(a,ct(b,ve?he.from:he.to,ve?"after":"before"),"line",y,x);Ai(Ze,te,oe,!0)&&Ze.top>oe&&(he=E[de-1])}return he}function go(a,y,b,x,E,te,oe){var de=pi(a,y,x,oe),he=de.begin,ve=de.end;/\s/.test(y.text.charAt(ve-1))&&ve--;for(var Ze=null,Je=null,Dt=0;Dt<E.length;Dt++){var Ct=E[Dt];if(!(Ct.from>=ve||Ct.to<=he)){var on=Ct.level!=1,vn=ro(a,x,on?Math.min(ve,Ct.to)-1:Math.max(he,Ct.from)).right,Pn=vn<te?te-vn+1e9:vn-te;(!Ze||Je>Pn)&&(Ze=Ct,Je=Pn)}}return Ze||(Ze=E[E.length-1]),Ze.from<he&&(Ze={from:he,to:Ze.to,level:Ze.level}),Ze.to>ve&&(Ze={from:Ze.from,to:ve,level:Ze.level}),Ze}var vi;function Mi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(vi==null){vi=ke("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)vi.appendChild(document.createTextNode("x")),vi.appendChild(ke("br"));vi.appendChild(document.createTextNode("x"))}Ae(a.measure,vi);var b=vi.offsetHeight/50;return b>3&&(a.cachedTextHeight=b),bt(a.measure),b||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ke("span","xxxxxxxxxx"),b=ke("pre",[y],"CodeMirror-line-like");Ae(a.measure,b);var x=y.getBoundingClientRect(),E=(x.right-x.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function uo(a){for(var y=a.display,b={},x={},E=y.gutters.clientLeft,te=y.gutters.firstChild,oe=0;te;te=te.nextSibling,++oe){var de=a.display.gutterSpecs[oe].className;b[de]=te.offsetLeft+te.clientLeft+E,x[de]=te.clientWidth}return{fixedPos:$o(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:b,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function $o(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Sa(a){var y=Mi(a.display),b=a.options.lineWrapping,x=b&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(nn(a.doc,E))return 0;var te=0;if(E.widgets)for(var oe=0;oe<E.widgets.length;oe++)E.widgets[oe].height&&(te+=E.widgets[oe].height);return b?te+(Math.ceil(E.text.length/x)||1)*y:te+y}}function Ea(a){var y=a.doc,b=Sa(a);y.iter(function(x){var E=b(x);E!=x.height&&qn(x,E)})}function Co(a,y,b,x){var E=a.display;if(!b&&Nn(y).getAttribute("cm-not-content")=="true")return null;var te,oe,de=E.lineSpace.getBoundingClientRect();try{te=y.clientX-de.left,oe=y.clientY-de.top}catch(Je){return null}var he=gi(a,te,oe),ve;if(x&&he.xRel>0&&(ve=Lt(a.doc,he.line).text).length==he.ch){var Ze=ge(ve,ve.length,a.options.tabSize)-ve.length;he=ct(he.line,Math.max(0,Math.round((te-Ui(a.display).left)/Qi(a.display))-Ze))}return he}function Po(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var b=a.display.view,x=0;x<b.length;x++)if(y-=b[x].size,y<0)return x}function Hi(a,y,b,x){y==null&&(y=a.doc.first),b==null&&(b=a.doc.first+a.doc.size),x||(x=0);var E=a.display;if(x&&b<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Br&&Kt(a.doc,y)<E.viewTo&&qi(a);else if(b<=E.viewFrom)Br&&Vt(a.doc,b+x)>E.viewFrom?qi(a):(E.viewFrom+=x,E.viewTo+=x);else if(y<=E.viewFrom&&b>=E.viewTo)qi(a);else if(y<=E.viewFrom){var te=sa(a,b,b+x,1);te?(E.view=E.view.slice(te.index),E.viewFrom=te.lineN,E.viewTo+=x):qi(a)}else if(b>=E.viewTo){var oe=sa(a,y,y,-1);oe?(E.view=E.view.slice(0,oe.index),E.viewTo=oe.lineN):qi(a)}else{var de=sa(a,y,y,-1),he=sa(a,b,b+x,1);de&&he?(E.view=E.view.slice(0,de.index).concat(Pr(a,de.lineN,he.lineN)).concat(E.view.slice(he.index)),E.viewTo+=x):qi(a)}var ve=E.externalMeasured;ve&&(b<ve.lineN?ve.lineN+=x:y<ve.lineN+ve.size&&(E.externalMeasured=null))}function co(a,y,b){a.curOp.viewChanged=!0;var x=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(x.externalMeasured=null),!(y<x.viewFrom||y>=x.viewTo)){var te=x.view[Po(a,y)];if(te.node!=null){var oe=te.changes||(te.changes=[]);He(oe,b)==-1&&oe.push(b)}}}function qi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function sa(a,y,b,x){var E=Po(a,y),te,oe=a.display.view;if(!Br||b==a.doc.first+a.doc.size)return{index:E,lineN:b};for(var de=a.display.viewFrom,he=0;he<E;he++)de+=oe[he].size;if(de!=y){if(x>0){if(E==oe.length-1)return null;te=de+oe[E].size-y,E++}else te=de-y;y+=te,b+=te}for(;Kt(a.doc,b)!=b;){if(E==(x<0?0:oe.length-1))return null;b+=x*oe[E-(x<0?1:0)].size,E+=x}return{index:E,lineN:b}}function Qa(a,y,b){var x=a.display,E=x.view;E.length==0||y>=x.viewTo||b<=x.viewFrom?(x.view=Pr(a,y,b),x.viewFrom=y):(x.viewFrom>y?x.view=Pr(a,y,x.viewFrom).concat(x.view):x.viewFrom<y&&(x.view=x.view.slice(Po(a,y))),x.viewFrom=y,x.viewTo<b?x.view=x.view.concat(Pr(a,x.viewTo,b)):x.viewTo>b&&(x.view=x.view.slice(0,Po(a,b)))),x.viewTo=b}function qa(a){for(var y=a.display.view,b=0,x=0;x<y.length;x++){var E=y[x];!E.hidden&&(!E.node||E.changes)&&++b}return b}function Wo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function $a(a,y){y===void 0&&(y=!0);for(var b=a.doc,x={},E=x.cursors=document.createDocumentFragment(),te=x.selection=document.createDocumentFragment(),oe=0;oe<b.sel.ranges.length;oe++)if(!(!y&&oe==b.sel.primIndex)){var de=b.sel.ranges[oe];if(!(de.from().line>=a.display.viewTo||de.to().line<a.display.viewFrom)){var he=de.empty();(he||a.options.showCursorWhenSelecting)&&ka(a,de.head,E),he||el(a,de,te)}}return x}function ka(a,y,b){var x=hi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=b.appendChild(ke("div","\xA0","CodeMirror-cursor"));if(E.style.left=x.left+"px",E.style.top=x.top+"px",E.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var te=b.appendChild(ke("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));te.style.display="",te.style.left=x.other.left+"px",te.style.top=x.other.top+"px",te.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function Lo(a,y){return a.top-y.top||a.left-y.left}function el(a,y,b){var x=a.display,E=a.doc,te=document.createDocumentFragment(),oe=Ui(a.display),de=oe.left,he=Math.max(x.sizerWidth,lo(a)-x.sizer.offsetLeft)-oe.right,ve=E.direction=="ltr";function Ze(Fn,Xn,wr,cr){Xn<0&&(Xn=0),Xn=Math.round(Xn),cr=Math.round(cr),te.appendChild(ke("div",null,"CodeMirror-selected","position: absolute; left: "+Fn+`px;
top: `+Xn+"px; width: "+(wr==null?he-Fn:wr)+`px;
height: `+(cr-Xn)+"px"))}function Je(Fn,Xn,wr){var cr=Lt(E,Fn),zr=cr.text.length,ci,Ii;function Ci(Li,to){return Zi(a,ct(Fn,Li),"div",cr,to)}function ao(Li,to,Wi){var Ni=bi(a,cr,null,Li),Ti=to=="ltr"==(Wi=="after")?"left":"right",Ei=Wi=="after"?Ni.begin:Ni.end-(/\s/.test(cr.text.charAt(Ni.end-1))?2:1);return Ci(Ei,Ti)[Ti]}var eo=Zt(cr,E.direction);return _e(eo,Xn||0,wr==null?zr:wr,function(Li,to,Wi,Ni){var Ti=Wi=="ltr",Ei=Ci(Li,Ti?"left":"right"),no=Ci(to-1,Ti?"right":"left"),Ca=Xn==null&&Li==0,Xo=wr==null&&to==zr,ji=Ni==0,So=!eo||Ni==eo.length-1;if(no.top-Ei.top<=3){var _i=(ve?Ca:Xo)&&ji,_l=(ve?Xo:Ca)&&So,Io=_i?de:(Ti?Ei:no).left,ta=_l?he:(Ti?no:Ei).right;Ze(Io,Ei.top,ta-Io,Ei.bottom)}else{var na,Xi,wa,Zl;Ti?(na=ve&&Ca&&ji?de:Ei.left,Xi=ve?he:ao(Li,Wi,"before"),wa=ve?de:ao(to,Wi,"after"),Zl=ve&&Xo&&So?he:no.right):(na=ve?ao(Li,Wi,"before"):de,Xi=!ve&&Ca&&ji?he:Ei.right,wa=!ve&&Xo&&So?de:no.left,Zl=ve?ao(to,Wi,"after"):he),Ze(na,Ei.top,Xi-na,Ei.bottom),Ei.bottom<no.top&&Ze(de,Ei.bottom,null,no.top),Ze(wa,no.top,Zl-wa,no.bottom)}(!ci||Lo(Ei,ci)<0)&&(ci=Ei),Lo(no,ci)<0&&(ci=no),(!Ii||Lo(Ei,Ii)<0)&&(Ii=Ei),Lo(no,Ii)<0&&(Ii=no)}),{start:ci,end:Ii}}var Dt=y.from(),Ct=y.to();if(Dt.line==Ct.line)Je(Dt.line,Dt.ch,Ct.ch);else{var on=Lt(E,Dt.line),vn=Lt(E,Ct.line),Pn=Rt(on)==Rt(vn),Rn=Je(Dt.line,Dt.ch,Pn?on.text.length+1:null).end,jn=Je(Ct.line,Pn?0:null,Ct.ch).start;Pn&&(Rn.top<jn.top-2?(Ze(Rn.right,Rn.top,null,Rn.bottom),Ze(de,jn.top,jn.left,jn.bottom)):Ze(Rn.right,Rn.top,jn.left-Rn.right,Rn.bottom)),Rn.bottom<jn.top&&Ze(de,Rn.bottom,null,jn.top)}b.appendChild(te)}function Aa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var b=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||zo(a),y.cursorDiv.style.visibility=(b=!b)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Da(a){a.state.focused||(a.display.input.focus(),La(a))}function Pa(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,zo(a))},100)}function La(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ht(a,"focus",a,y),a.state.focused=!0,Ve(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()),Aa(a))}function zo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Ht(a,"blur",a,y),a.state.focused=!1,Ne(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ua(a){for(var y=a.display,b=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var E=y.view[x],te=a.options.lineWrapping,oe=void 0,de=0;if(!E.hidden){if(be&&ue<8){var he=E.node.offsetTop+E.node.offsetHeight;oe=he-b,b=he}else{var ve=E.node.getBoundingClientRect();oe=ve.bottom-ve.top,!te&&E.text.firstChild&&(de=E.text.firstChild.getBoundingClientRect().right-ve.left-1)}var Ze=E.line.height-oe;if((Ze>.005||Ze<-.005)&&(qn(E.line,oe),Ta(E.line),E.rest))for(var Je=0;Je<E.rest.length;Je++)Ta(E.rest[Je]);if(de>a.display.sizerWidth){var Dt=Math.ceil(de/Qi(a.display));Dt>a.display.maxLineLength&&(a.display.maxLineLength=Dt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ta(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var b=a.widgets[y],x=b.node.parentNode;x&&(b.height=x.offsetHeight)}}function To(a,y,b){var x=b&&b.top!=null?Math.max(0,b.top):a.scroller.scrollTop;x=Math.floor(x-Tr(a));var E=b&&b.bottom!=null?b.bottom:x+a.wrapper.clientHeight,te=$e(y,x),oe=$e(y,E);if(b&&b.ensure){var de=b.ensure.from.line,he=b.ensure.to.line;de<te?(te=de,oe=$e(y,Ln(Lt(y,de))+a.wrapper.clientHeight)):Math.min(he,y.lastLine())>=oe&&(te=$e(y,Ln(Lt(y,he))-a.wrapper.clientHeight),oe=he)}return{from:te,to:Math.max(oe,te+1)}}function Ma(a,y){if(!it(a,"scrollCursorIntoView")){var b=a.display,x=b.sizer.getBoundingClientRect(),E=null;if(y.top+x.top<0?E=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!pt){var te=ke("div","\u200B",null,`position: absolute;
top: `+(y.top-b.viewOffset-Tr(a.display))+`px;
height: `+(y.bottom-y.top+ni(a)+b.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 Ba(a,y,b,x){x==null&&(x=0);var E;!a.options.lineWrapping&&y==b&&(y=y.ch?ct(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,b=y.sticky=="before"?ct(y.line,y.ch+1,"before"):y);for(var te=0;te<5;te++){var oe=!1,de=hi(a,y),he=!b||b==y?de:hi(a,b);E={left:Math.min(de.left,he.left),top:Math.min(de.top,he.top)-x,right:Math.max(de.left,he.left),bottom:Math.max(de.bottom,he.bottom)+x};var ve=ca(a,E),Ze=a.doc.scrollTop,Je=a.doc.scrollLeft;if(ve.scrollTop!=null&&(Bo(a,ve.scrollTop),Math.abs(a.doc.scrollTop-Ze)>1&&(oe=!0)),ve.scrollLeft!=null&&(No(a,ve.scrollLeft),Math.abs(a.doc.scrollLeft-Je)>1&&(oe=!0)),!oe)break}return E}function tl(a,y){var b=ca(a,y);b.scrollTop!=null&&Bo(a,b.scrollTop),b.scrollLeft!=null&&No(a,b.scrollLeft)}function ca(a,y){var b=a.display,x=Mi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:b.scroller.scrollTop,te=Vi(a),oe={};y.bottom-y.top>te&&(y.bottom=y.top+te);var de=a.doc.height+xi(b),he=y.top<x,ve=y.bottom>de-x;if(y.top<E)oe.scrollTop=he?0:y.top;else if(y.bottom>E+te){var Ze=Math.min(y.top,(ve?de:y.bottom)-te);Ze!=E&&(oe.scrollTop=Ze)}var Je=a.options.fixedGutter?0:b.gutters.offsetWidth,Dt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:b.scroller.scrollLeft-Je,Ct=lo(a)-b.gutters.offsetWidth,on=y.right-y.left>Ct;return on&&(y.right=y.left+Ct),y.left<10?oe.scrollLeft=0:y.left<Dt?oe.scrollLeft=Math.max(0,y.left+Je-(on?0:10)):y.right>Ct+Dt-3&&(oe.scrollLeft=y.right+(on?0:10)-Ct),oe}function da(a,y){y!=null&&(Ko(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Mo(a){Ko(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function ea(a,y,b){(y!=null||b!=null)&&Ko(a),y!=null&&(a.curOp.scrollLeft=y),b!=null&&(a.curOp.scrollTop=b)}function nl(a,y){Ko(a),a.curOp.scrollToPos=y}function Ko(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var b=_r(a,y.from),x=_r(a,y.to);Na(a,b,x,y.margin)}}function Na(a,y,b,x){var E=ca(a,{left:Math.min(y.left,b.left),top:Math.min(y.top,b.top)-x,right:Math.max(y.right,b.right),bottom:Math.max(y.bottom,b.bottom)+x});ea(a,E.scrollLeft,E.scrollTop)}function Bo(a,y){Math.abs(a.doc.scrollTop-y)<2||(re||xl(a,{top:y}),Ra(a,y,!0),re&&xl(a),Fa(a,100))}function Ra(a,y,b){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!b)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function No(a,y,b,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((b?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,Wl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function Fr(a){var y=a.display,b=y.gutters.offsetWidth,x=Math.round(a.doc.height+xi(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?b:0,docHeight:x,scrollHeight:x+ni(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:b}}var Or=function(a,y,b){this.cm=b;var x=this.vert=ke("div",[ke("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ke("div",[ke("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=E.tabIndex=-1,a(x),a(E),At(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),At(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&ue<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Or.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,b=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(b){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var E=a.viewHeight-(y?x: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=b?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var te=a.viewWidth-a.barLeft-(b?x: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&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:b?x:0,bottom:y?x:0}},Or.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Or.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Or.prototype.zeroWidthHack=function(){var a=Ee&&!ye?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new fe,this.disableVert=new fe},Or.prototype.enableZeroWidthBar=function(a,y,b){a.style.pointerEvents="auto";function x(){var E=a.getBoundingClientRect(),te=b=="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,x)}y.set(1e3,x)},Or.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Si=function(){};Si.prototype.update=function(){return{bottom:0,right:0}},Si.prototype.setScrollLeft=function(){},Si.prototype.setScrollTop=function(){},Si.prototype.clear=function(){};function Ri(a,y){y||(y=Fr(a));var b=a.display.barWidth,x=a.display.barHeight;Bi(a,y);for(var E=0;E<4&&b!=a.display.barWidth||x!=a.display.barHeight;E++)b!=a.display.barWidth&&a.options.lineWrapping&&ua(a),Bi(a,Fr(a)),b=a.display.barWidth,x=a.display.barHeight}function Bi(a,y){var b=a.display,x=b.scrollbars.update(y);b.sizer.style.paddingRight=(b.barWidth=x.right)+"px",b.sizer.style.paddingBottom=(b.barHeight=x.bottom)+"px",b.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=x.bottom+"px",b.scrollbarFiller.style.width=x.right+"px"):b.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=x.bottom+"px",b.gutterFiller.style.width=y.gutterWidth+"px"):b.gutterFiller.style.display=""}var Ro={native:Or,null:Si};function wo(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ne(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ro[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),At(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,b){b=="horizontal"?No(a,y):Bo(a,y)},a),a.display.scrollbars.addClass&&Ve(a.display.wrapper,a.display.scrollbars.addClass)}var Fo=0;function fo(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:++Fo},wi(a.curOp)}function yo(a){var y=a.curOp;y&&Gi(y,function(b){for(var x=0;x<b.ops.length;x++)b.ops[x].cm.curOp=null;Us(b)})}function Us(a){for(var y=a.ops,b=0;b<y.length;b++)Vs(y[b]);for(var x=0;x<y.length;x++)Ys(y[x]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var te=0;te<y.length;te++)Js(y[te]);for(var oe=0;oe<y.length;oe++)Qs(y[oe])}function Vs(a){var y=a.cm,b=y.display;$s(y),a.updateMaxLine&&Bn(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<b.viewFrom||a.scrollToPos.to.line>=b.viewTo)||b.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new rl(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ys(a){a.updatedDisplay=a.mustUpdate&&yl(a.cm,a.update)}function Xs(a){var y=a.cm,b=y.display;a.updatedDisplay&&ua(y),a.barMeasure=Fr(y),b.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Jo(y,b.maxLine,b.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(b.scroller.clientWidth,b.sizer.offsetLeft+a.adjustWidthTo+ni(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,b.sizer.offsetLeft+a.adjustWidthTo-lo(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=b.input.prepareSelection())}function Js(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&No(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var b=a.focus&&a.focus==Be();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,b),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Ri(y,a.barMeasure),a.updatedDisplay&&Cl(y,a.barMeasure),a.selectionChanged&&Aa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),b&&Da(a.cm)}function Qs(a){var y=a.cm,b=y.display,x=y.doc;if(a.updatedDisplay&&Hl(y,a.update),b.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(b.wheelStartX=b.wheelStartY=null),a.scrollTop!=null&&Ra(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&No(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=Ba(y,nt(x,a.scrollToPos.from),nt(x,a.scrollToPos.to),a.scrollToPos.margin);Ma(y,E)}var te=a.maybeHiddenMarkers,oe=a.maybeUnhiddenMarkers;if(te)for(var de=0;de<te.length;++de)te[de].lines.length||Ht(te[de],"hide");if(oe)for(var he=0;he<oe.length;++he)oe[he].lines.length&&Ht(oe[he],"unhide");b.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Ht(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function oo(a,y){if(a.curOp)return y();fo(a);try{return y()}finally{yo(a)}}function Fi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);fo(a);try{return y.apply(a,arguments)}finally{yo(a)}}}function Yi(a){return function(){if(this.curOp)return a.apply(this,arguments);fo(this);try{return a.apply(this,arguments)}finally{yo(this)}}}function Oi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);fo(y);try{return a.apply(this,arguments)}finally{yo(y)}}}function Fa(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,vt(qs,a))}function qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var b=+new Date+a.options.workTime,x=Wr(a,y.highlightFrontier),E=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(te){if(x.line>=a.display.viewFrom){var oe=te.styles,de=te.text.length>a.options.maxHighlightLength?Jn(y.mode,x.state):null,he=er(a,te,x,!0);de&&(x.state=de),te.styles=he.styles;var ve=te.styleClasses,Ze=he.classes;Ze?te.styleClasses=Ze:ve&&(te.styleClasses=null);for(var Je=!oe||oe.length!=te.styles.length||ve!=Ze&&(!ve||!Ze||ve.bgClass!=Ze.bgClass||ve.textClass!=Ze.textClass),Dt=0;!Je&&Dt<oe.length;++Dt)Je=oe[Dt]!=te.styles[Dt];Je&&E.push(x.line),te.stateAfter=x.save(),x.nextLine()}else te.text.length<=a.options.maxHighlightLength&&Ar(a,te.text,x),te.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>b)return Fa(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),E.length&&oo(a,function(){for(var te=0;te<E.length;te++)co(a,E[te],"text")})}}var rl=function(a,y,b){var x=a.display;this.viewport=y,this.visible=To(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=lo(a),this.force=b,this.dims=uo(a),this.events=[]};rl.prototype.signal=function(a,y){Ot(a,y)&&this.events.push(arguments)},rl.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ht.apply(null,this.events[a])};function $s(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=ni(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=ni(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=Be();if(!y||!Ke(a.display.lineDiv,y))return null;var b={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&Ke(a.display.lineDiv,x.anchorNode)&&(b.anchorNode=x.anchorNode,b.anchorOffset=x.anchorOffset,b.focusNode=x.focusNode,b.focusOffset=x.focusOffset)}return b}function tu(a){if(!(!a||!a.activeElt||a.activeElt==Be())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ke(document.body,a.anchorNode)&&Ke(document.body,a.focusNode))){var y=window.getSelection(),b=document.createRange();b.setEnd(a.anchorNode,a.anchorOffset),b.collapse(!1),y.removeAllRanges(),y.addRange(b),y.extend(a.focusNode,a.focusOffset)}}function yl(a,y){var b=a.display,x=a.doc;if(y.editorIsHidden)return qi(a),!1;if(!y.force&&y.visible.from>=b.viewFrom&&y.visible.to<=b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo)&&b.renderedView==b.view&&qa(a)==0)return!1;zl(a)&&(qi(a),y.dims=uo(a));var E=x.first+x.size,te=Math.max(y.visible.from-a.options.viewportMargin,x.first),oe=Math.min(E,y.visible.to+a.options.viewportMargin);b.viewFrom<te&&te-b.viewFrom<20&&(te=Math.max(x.first,b.viewFrom)),b.viewTo>oe&&b.viewTo-oe<20&&(oe=Math.min(E,b.viewTo)),Br&&(te=Kt(a.doc,te),oe=Vt(a.doc,oe));var de=te!=b.viewFrom||oe!=b.viewTo||b.lastWrapHeight!=y.wrapperHeight||b.lastWrapWidth!=y.wrapperWidth;Qa(a,te,oe),b.viewOffset=Ln(Lt(a.doc,b.viewFrom)),a.display.mover.style.top=b.viewOffset+"px";var he=qa(a);if(!de&&he==0&&!y.force&&b.renderedView==b.view&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo))return!1;var ve=eu(a);return he>4&&(b.lineDiv.style.display="none"),nu(a,b.updateLineNumbers,y.dims),he>4&&(b.lineDiv.style.display=""),b.renderedView=b.view,tu(ve),bt(b.cursorDiv),bt(b.selectionDiv),b.gutters.style.height=b.sizer.style.minHeight=0,de&&(b.lastWrapHeight=y.wrapperHeight,b.lastWrapWidth=y.wrapperWidth,Fa(a,400)),b.updateLineNumbers=null,!0}function Hl(a,y){for(var b=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==lo(a)){if(b&&b.top!=null&&(b={top:Math.min(a.doc.height+xi(a.display)-Vi(a),b.top)}),y.visible=To(a.display,a.doc,b),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=To(a.display,a.doc,b));if(!yl(a,y))break;ua(a);var E=Fr(a);Wo(a),Ri(a,E),Cl(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 xl(a,y){var b=new rl(a,y);if(yl(a,b)){ua(a),Hl(a,b);var x=Fr(a);Wo(a),Ri(a,x),Cl(a,x),b.finish()}}function nu(a,y,b){var x=a.display,E=a.options.lineNumbers,te=x.lineDiv,oe=te.firstChild;function de(on){var vn=on.nextSibling;return Le&&Ee&&a.display.currentWheelTarget==on?on.style.display="none":on.parentNode.removeChild(on),vn}for(var he=x.view,ve=x.viewFrom,Ze=0;Ze<he.length;Ze++){var Je=he[Ze];if(!Je.hidden)if(!Je.node||Je.node.parentNode!=te){var Dt=mr(a,Je,ve,b);te.insertBefore(Dt,oe)}else{for(;oe!=Je.node;)oe=de(oe);var Ct=E&&y!=null&&y<=ve&&Je.lineNumber;Je.changes&&(He(Je.changes,"gutter")>-1&&(Ct=!1),ti(a,Je,ve,b)),Ct&&(bt(Je.lineNumber),Je.lineNumber.appendChild(document.createTextNode(Ut(a.options,ve)))),oe=Je.node.nextSibling}ve+=Je.size}for(;oe;)oe=de(oe)}function bl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function Cl(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+ni(a)+"px"}function Wl(a){var y=a.display,b=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=$o(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,te=x+"px",oe=0;oe<b.length;oe++)if(!b[oe].hidden){a.options.fixedGutter&&(b[oe].gutter&&(b[oe].gutter.style.left=te),b[oe].gutterBackground&&(b[oe].gutterBackground.style.left=te));var de=b[oe].alignable;if(de)for(var he=0;he<de.length;he++)de[he].style.left=te}a.options.fixedGutter&&(y.gutters.style.left=x+E+"px")}}function zl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,b=Ut(a.options,y.first+y.size-1),x=a.display;if(b.length!=x.lineNumChars){var E=x.measure.appendChild(ke("div",[ke("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=E.firstChild.offsetWidth,oe=E.offsetWidth-te;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(te,x.lineGutter.offsetWidth-oe)+1,x.lineNumWidth=x.lineNumInnerWidth+oe,x.lineNumChars=x.lineNumInnerWidth?b.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",bl(a.display),!0}return!1}function wl(a,y){for(var b=[],x=!1,E=0;E<a.length;E++){var te=a[E],oe=null;if(typeof te!="string"&&(oe=te.style,te=te.className),te=="CodeMirror-linenumbers")if(y)x=!0;else continue;b.push({className:te,style:oe})}return y&&!x&&b.push({className:"CodeMirror-linenumbers",style:null}),b}function Kl(a){var y=a.gutters,b=a.gutterSpecs;bt(y),a.lineGutter=null;for(var x=0;x<b.length;++x){var E=b[x],te=E.className,oe=E.style,de=y.appendChild(ke("div",null,"CodeMirror-gutter "+te));oe&&(de.style.cssText=oe),te=="CodeMirror-linenumbers"&&(a.lineGutter=de,de.style.width=(a.lineNumWidth||1)+"px")}y.style.display=b.length?"":"none",bl(a)}function Oa(a){Kl(a.display),Hi(a),Wl(a)}function ru(a,y,b,x){var E=this;this.input=b,E.scrollbarFiller=ke("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=ke("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=Ie("div",null,"CodeMirror-code"),E.selectionDiv=ke("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=ke("div",null,"CodeMirror-cursors"),E.measure=ke("div",null,"CodeMirror-measure"),E.lineMeasure=ke("div",null,"CodeMirror-measure"),E.lineSpace=Ie("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var te=Ie("div",[E.lineSpace],"CodeMirror-lines");E.mover=ke("div",[te],null,"position: relative"),E.sizer=ke("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=ke("div",null,null,"position: absolute; height: "+lt+"px; width: 1px;"),E.gutters=ke("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=ke("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=ke("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),be&&ue<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Le&&!(re&&xe)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=wl(x.gutters,x.lineNumbers),Kl(E),b.init(E)}var il=0,ho=null;be?ho=-.53:re?ho=15:Ce?ho=-.7:ht&&(ho=-1/3);function jl(a){var y=a.wheelDeltaX,b=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),b==null&&a.detail&&a.axis==a.VERTICAL_AXIS?b=a.detail:b==null&&(b=a.wheelDelta),{x:y,y:b}}function iu(a){var y=jl(a);return y.x*=ho,y.y*=ho,y}function Gl(a,y){var b=jl(y),x=b.x,E=b.y,te=a.display,oe=te.scroller,de=oe.scrollWidth>oe.clientWidth,he=oe.scrollHeight>oe.clientHeight;if(x&&de||E&&he){if(E&&Ee&&Le){e:for(var ve=y.target,Ze=te.view;ve!=oe;ve=ve.parentNode)for(var Je=0;Je<Ze.length;Je++)if(Ze[Je].node==ve){a.display.currentWheelTarget=ve;break e}}if(x&&!re&&!pe&&ho!=null){E&&he&&Bo(a,Math.max(0,oe.scrollTop+E*ho)),No(a,Math.max(0,oe.scrollLeft+x*ho)),(!E||E&&he)&&dn(y),te.wheelStartX=null;return}if(E&&ho!=null){var Dt=E*ho,Ct=a.doc.scrollTop,on=Ct+te.wrapper.clientHeight;Dt<0?Ct=Math.max(0,Ct+Dt-50):on=Math.min(a.doc.height,on+Dt+50),xl(a,{top:Ct,bottom:on})}il<20&&(te.wheelStartX==null?(te.wheelStartX=oe.scrollLeft,te.wheelStartY=oe.scrollTop,te.wheelDX=x,te.wheelDY=E,setTimeout(function(){if(te.wheelStartX!=null){var vn=oe.scrollLeft-te.wheelStartX,Pn=oe.scrollTop-te.wheelStartY,Rn=Pn&&te.wheelDY&&Pn/te.wheelDY||vn&&te.wheelDX&&vn/te.wheelDX;te.wheelStartX=te.wheelStartY=null,Rn&&(ho=(ho*il+Rn)/(il+1),++il)}},200)):(te.wheelDX+=x,te.wheelDY+=E))}}var po=function(a,y){this.ranges=a,this.primIndex=y};po.prototype.primary=function(){return this.ranges[this.primIndex]},po.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var b=this.ranges[y],x=a.ranges[y];if(!hn(b.anchor,x.anchor)||!hn(b.head,x.head))return!1}return!0},po.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new ri(mn(this.ranges[y].anchor),mn(this.ranges[y].head));return new po(a,this.primIndex)},po.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},po.prototype.contains=function(a,y){y||(y=a);for(var b=0;b<this.ranges.length;b++){var x=this.ranges[b];if(en(y,x.from())>=0&&en(a,x.to())<=0)return b}return-1};var ri=function(a,y){this.anchor=a,this.head=y};ri.prototype.from=function(){return gn(this.anchor,this.head)},ri.prototype.to=function(){return Cn(this.anchor,this.head)},ri.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xo(a,y,b){var x=a&&a.options.selectionsMayTouch,E=y[b];y.sort(function(Dt,Ct){return en(Dt.from(),Ct.from())}),b=He(y,E);for(var te=1;te<y.length;te++){var oe=y[te],de=y[te-1],he=en(de.to(),oe.from());if(x&&!oe.empty()?he>0:he>=0){var ve=gn(de.from(),oe.from()),Ze=Cn(de.to(),oe.to()),Je=de.empty()?oe.from()==oe.head:de.from()==de.head;te<=b&&--b,y.splice(--te,2,new ri(Je?Ze:ve,Je?ve:Ze))}}return new po(y,b)}function jo(a,y){return new po([new ri(a,y||a)],0)}function Go(a){return a.text?ct(a.from.line+a.text.length-1,We(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ul(a,y){if(en(a,y.from)<0)return a;if(en(a,y.to)<=0)return Go(y);var b=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=Go(y).ch-y.to.ch),ct(b,x)}function Sl(a,y){for(var b=[],x=0;x<a.sel.ranges.length;x++){var E=a.sel.ranges[x];b.push(new ri(Ul(E.anchor,y),Ul(E.head,y)))}return xo(a.cm,b,a.sel.primIndex)}function Vl(a,y,b){return a.line==y.line?ct(b.line,a.ch-y.ch+b.ch):ct(b.line+(a.line-y.line),a.ch)}function ou(a,y,b){for(var x=[],E=ct(a.first,0),te=E,oe=0;oe<y.length;oe++){var de=y[oe],he=Vl(de.from,E,te),ve=Vl(Go(de),E,te);if(E=de.to,te=ve,b=="around"){var Ze=a.sel.ranges[oe],Je=en(Ze.head,Ze.anchor)<0;x[oe]=new ri(Je?ve:he,Je?he:ve)}else x[oe]=new ri(he,he)}return new po(x,a.sel.primIndex)}function El(a){a.doc.mode=An(a.options,a.doc.modeOption),Ia(a)}function Ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Fa(a,100),a.state.modeGen++,a.curOp&&Hi(a)}function Yl(a,y){return y.from.ch==0&&y.to.ch==0&&We(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function kl(a,y,b,x){function E(jn){return b?b[jn]:null}function te(jn,Fn,Xn){ar(jn,Fn,Xn,x),Jr(jn,"change",jn,y)}function oe(jn,Fn){for(var Xn=[],wr=jn;wr<Fn;++wr)Xn.push(new tr(ve[wr],E(wr),x));return Xn}var de=y.from,he=y.to,ve=y.text,Ze=Lt(a,de.line),Je=Lt(a,he.line),Dt=We(ve),Ct=E(ve.length-1),on=he.line-de.line;if(y.full)a.insert(0,oe(0,ve.length)),a.remove(ve.length,a.size-ve.length);else if(Yl(a,y)){var vn=oe(0,ve.length-1);te(Je,Je.text,Ct),on&&a.remove(de.line,on),vn.length&&a.insert(de.line,vn)}else if(Ze==Je)if(ve.length==1)te(Ze,Ze.text.slice(0,de.ch)+Dt+Ze.text.slice(he.ch),Ct);else{var Pn=oe(1,ve.length-1);Pn.push(new tr(Dt+Ze.text.slice(he.ch),Ct,x)),te(Ze,Ze.text.slice(0,de.ch)+ve[0],E(0)),a.insert(de.line+1,Pn)}else if(ve.length==1)te(Ze,Ze.text.slice(0,de.ch)+ve[0]+Je.text.slice(he.ch),E(0)),a.remove(de.line+1,on);else{te(Ze,Ze.text.slice(0,de.ch)+ve[0],E(0)),te(Je,Dt+Je.text.slice(he.ch),Ct);var Rn=oe(1,ve.length-1);on>1&&a.remove(de.line+1,on-1),a.insert(de.line+1,Rn)}Jr(a,"change",a,y)}function Uo(a,y,b){function x(E,te,oe){if(E.linked)for(var de=0;de<E.linked.length;++de){var he=E.linked[de];if(he.doc!=te){var ve=oe&&he.sharedHist;b&&!ve||(y(he.doc,ve),x(he.doc,E,ve))}}}x(a,null,!0)}function Xl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ea(a),El(a),Jl(a),a.options.lineWrapping||Bn(a),a.options.mode=y.modeOption,Hi(a)}function Jl(a){(a.doc.direction=="rtl"?Ve:Ne)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){oo(a,function(){Jl(a),Hi(a)})}function ol(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Al(a,y){var b={from:mn(y.from),to:Go(y),text:yn(a,y.from,y.to)};return $l(a,b,y.from.line,y.to.line+1),Uo(a,function(x){return $l(x,b,y.from.line,y.to.line+1)},!0),b}function Ql(a){for(;a.length;){var y=We(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Ql(a.done),We(a.done);if(a.done.length&&!We(a.done).ranges)return We(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),We(a.done)}function ql(a,y,b,x){var E=a.history;E.undone.length=0;var te=+new Date,oe,de;if((E.lastOp==x||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>te-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(oe=lu(E,E.lastOp==x)))de=We(oe.changes),en(y.from,y.to)==0&&en(y.from,de.to)==0?de.to=Go(y):oe.changes.push(Al(a,y));else{var he=We(E.done);for((!he||!he.ranges)&&al(a.sel,E.done),oe={changes:[Al(a,y)],generation:E.generation},E.done.push(oe);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(b),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=te,E.lastOp=E.lastSelOp=x,E.lastOrigin=E.lastSelOrigin=y.origin,de||Ht(a,"historyAdded")}function su(a,y,b,x){var E=y.charAt(0);return E=="*"||E=="+"&&b.ranges.length==x.ranges.length&&b.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,b,x){var E=a.history,te=x&&x.origin;b==E.lastSelOp||te&&E.lastSelOrigin==te&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==te||su(a,te,We(E.done),y))?E.done[E.done.length-1]=y:al(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=te,E.lastSelOp=b,x&&x.clearRedo!==!1&&Ql(E.undone)}function al(a,y){var b=We(y);b&&b.ranges&&b.equals(a)||y.push(a)}function $l(a,y,b,x){var E=y["spans_"+a.id],te=0;a.iter(Math.max(a.first,b),Math.min(a.first+a.size,x),function(oe){oe.markedSpans&&((E||(E=y["spans_"+a.id]={}))[te]=oe.markedSpans),++te})}function cu(a){if(!a)return null;for(var y,b=0;b<a.length;++b)a[b].marker.explicitlyCleared?y||(y=a.slice(0,b)):y&&y.push(a[b]);return y?y.length?y:null:a}function du(a,y){var b=y["spans_"+a.id];if(!b)return null;for(var x=[],E=0;E<y.text.length;++E)x.push(cu(b[E]));return x}function es(a,y){var b=du(a,y),x=si(a,y);if(!b)return x;if(!x)return b;for(var E=0;E<b.length;++E){var te=b[E],oe=x[E];if(te&&oe)e:for(var de=0;de<oe.length;++de){for(var he=oe[de],ve=0;ve<te.length;++ve)if(te[ve].marker==he.marker)continue e;te.push(he)}else oe&&(b[E]=oe)}return b}function fa(a,y,b){for(var x=[],E=0;E<a.length;++E){var te=a[E];if(te.ranges){x.push(b?po.prototype.deepCopy.call(te):te);continue}var oe=te.changes,de=[];x.push({changes:de});for(var he=0;he<oe.length;++he){var ve=oe[he],Ze=void 0;if(de.push({from:ve.from,to:ve.to,text:ve.text}),y)for(var Je in ve)(Ze=Je.match(/^spans_(\d+)$/))&&He(y,Number(Ze[1]))>-1&&(We(de)[Je]=ve[Je],delete ve[Je])}}return x}function Dl(a,y,b,x){if(x){var E=a.anchor;if(b){var te=en(y,E)<0;te!=en(b,E)<0?(E=y,y=b):te!=en(y,b)<0&&(y=b)}return new ri(E,y)}else return new ri(b||y,y)}function ll(a,y,b,x,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Ki(a,new po([Dl(a.sel.primary(),y,b,E)],0),x)}function ts(a,y,b){for(var x=[],E=a.cm&&(a.cm.display.shift||a.extend),te=0;te<a.sel.ranges.length;te++)x[te]=Dl(a.sel.ranges[te],y[te],null,E);var oe=xo(a.cm,x,a.sel.primIndex);Ki(a,oe,b)}function Pl(a,y,b,x){var E=a.sel.ranges.slice(0);E[y]=b,Ki(a,xo(a.cm,E,a.sel.primIndex),x)}function ns(a,y,b,x){Ki(a,jo(y,b),x)}function fu(a,y,b){var x={ranges:y.ranges,update:function(E){this.ranges=[];for(var te=0;te<E.length;te++)this.ranges[te]=new ri(nt(a,E[te].anchor),nt(a,E[te].head))},origin:b&&b.origin};return Ht(a,"beforeSelectionChange",a,x),a.cm&&Ht(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?xo(a.cm,x.ranges,x.ranges.length-1):y}function rs(a,y,b){var x=a.history.done,E=We(x);E&&E.ranges?(x[x.length-1]=y,sl(a,y,b)):Ki(a,y,b)}function Ki(a,y,b){sl(a,y,b),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,b)}function sl(a,y,b){(Ot(a,"beforeSelectionChange")||a.cm&&Ot(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,b));var x=b&&b.bias||(en(y.primary().head,a.sel.primary().head)<0?-1:1);is(a,as(a,y,x,!0)),!(b&&b.scroll===!1)&&a.cm&&Mo(a.cm)}function is(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,ln(a.cm)),Jr(a,"cursorActivity",a))}function os(a){is(a,as(a,a.sel,null,!1))}function as(a,y,b,x){for(var E,te=0;te<y.ranges.length;te++){var oe=y.ranges[te],de=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[te],he=ul(a,oe.anchor,de&&de.anchor,b,x),ve=ul(a,oe.head,de&&de.head,b,x);(E||he!=oe.anchor||ve!=oe.head)&&(E||(E=y.ranges.slice(0,te)),E[te]=new ri(he,ve))}return E?xo(a.cm,E,y.primIndex):y}function ha(a,y,b,x,E){var te=Lt(a,y.line);if(te.markedSpans)for(var oe=0;oe<te.markedSpans.length;++oe){var de=te.markedSpans[oe],he=de.marker,ve="selectLeft"in he?!he.selectLeft:he.inclusiveLeft,Ze="selectRight"in he?!he.selectRight:he.inclusiveRight;if((de.from==null||(ve?de.from<=y.ch:de.from<y.ch))&&(de.to==null||(Ze?de.to>=y.ch:de.to>y.ch))){if(E&&(Ht(he,"beforeCursorEnter"),he.explicitlyCleared))if(te.markedSpans){--oe;continue}else break;if(!he.atomic)continue;if(b){var Je=he.find(x<0?1:-1),Dt=void 0;if((x<0?Ze:ve)&&(Je=ls(a,Je,-x,Je&&Je.line==y.line?te:null)),Je&&Je.line==y.line&&(Dt=en(Je,b))&&(x<0?Dt<0:Dt>0))return ha(a,Je,y,x,E)}var Ct=he.find(x<0?-1:1);return(x<0?ve:Ze)&&(Ct=ls(a,Ct,x,Ct.line==y.line?te:null)),Ct?ha(a,Ct,y,x,E):null}}return y}function ul(a,y,b,x,E){var te=x||1,oe=ha(a,y,b,te,E)||!E&&ha(a,y,b,te,!0)||ha(a,y,b,-te,E)||!E&&ha(a,y,b,-te,!0);return oe||(a.cantEdit=!0,ct(a.first,0))}function ls(a,y,b,x){return b<0&&y.ch==0?y.line>a.first?nt(a,ct(y.line-1)):null:b>0&&y.ch==(x||Lt(a,y.line)).text.length?y.line<a.first+a.size-1?ct(y.line+1,0):null:new ct(y.line,y.ch+b)}function ss(a){a.setSelection(ct(a.firstLine(),0),ct(a.lastLine()),Pe)}function us(a,y,b){var x={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return x.canceled=!0}};return b&&(x.update=function(E,te,oe,de){E&&(x.from=nt(a,E)),te&&(x.to=nt(a,te)),oe&&(x.text=oe),de!==void 0&&(x.origin=de)}),Ht(a,"beforeChange",a,x),a.cm&&Ht(a.cm,"beforeChange",a.cm,x),x.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function pa(a,y,b){if(a.cm){if(!a.cm.curOp)return Fi(a.cm,pa)(a,y,b);if(a.cm.state.suppressEdits)return}if(!((Ot(a,"beforeChange")||a.cm&&Ot(a.cm,"beforeChange"))&&(y=us(a,y,!0),!y))){var x=Vr&&!b&&wt(a,y.from,y.to);if(x)for(var E=x.length-1;E>=0;--E)cs(a,{from:x[E].from,to:x[E].to,text:E?[""]:y.text,origin:y.origin});else cs(a,y)}}function cs(a,y){if(!(y.text.length==1&&y.text[0]==""&&en(y.from,y.to)==0)){var b=Sl(a,y);ql(a,y,b,a.cm?a.cm.curOp.id:NaN),_a(a,y,b,si(a,y));var x=[];Uo(a,function(E,te){!te&&He(x,E.history)==-1&&(ps(E.history,y),x.push(E.history)),_a(E,y,null,si(E,y))})}}function cl(a,y,b){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!b)){for(var E=a.history,te,oe=a.sel,de=y=="undo"?E.done:E.undone,he=y=="undo"?E.undone:E.done,ve=0;ve<de.length&&(te=de[ve],!(b?te.ranges&&!te.equals(a.sel):!te.ranges));ve++);if(ve!=de.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(te=de.pop(),te.ranges){if(al(te,he),b&&!te.equals(a.sel)){Ki(a,te,{clearRedo:!1});return}oe=te}else if(x){de.push(te);return}else break;var Ze=[];al(oe,he),he.push({changes:Ze,generation:E.generation}),E.generation=te.generation||++E.maxGeneration;for(var Je=Ot(a,"beforeChange")||a.cm&&Ot(a.cm,"beforeChange"),Dt=function(vn){var Pn=te.changes[vn];if(Pn.origin=y,Je&&!us(a,Pn,!1))return de.length=0,{};Ze.push(Al(a,Pn));var Rn=vn?Sl(a,Pn):We(de);_a(a,Pn,Rn,es(a,Pn)),!vn&&a.cm&&a.cm.scrollIntoView({from:Pn.from,to:Go(Pn)});var jn=[];Uo(a,function(Fn,Xn){!Xn&&He(jn,Fn.history)==-1&&(ps(Fn.history,Pn),jn.push(Fn.history)),_a(Fn,Pn,null,es(Fn,Pn))})},Ct=te.changes.length-1;Ct>=0;--Ct){var on=Dt(Ct);if(on)return on.v}}}}function ds(a,y){if(y!=0&&(a.first+=y,a.sel=new po(yt(a.sel.ranges,function(E){return new ri(ct(E.anchor.line+y,E.anchor.ch),ct(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Hi(a.cm,a.first,a.first-y,y);for(var b=a.cm.display,x=b.viewFrom;x<b.viewTo;x++)co(a.cm,x,"gutter")}}function _a(a,y,b,x){if(a.cm&&!a.cm.curOp)return Fi(a.cm,_a)(a,y,b,x);if(y.to.line<a.first){ds(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var E=y.text.length-1-(a.first-y.from.line);ds(a,E),y={from:ct(a.first,0),to:ct(y.to.line+E,y.to.ch),text:[We(y.text)],origin:y.origin}}var te=a.lastLine();y.to.line>te&&(y={from:y.from,to:ct(te,Lt(a,te).text.length),text:[y.text[0]],origin:y.origin}),y.removed=yn(a,y.from,y.to),b||(b=Sl(a,y)),a.cm?hu(a.cm,y,x):kl(a,y,x),sl(a,b,Pe),a.cantEdit&&ul(a,ct(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,b){var x=a.doc,E=a.display,te=y.from,oe=y.to,de=!1,he=te.line;a.options.lineWrapping||(he=Xe(Rt(Lt(x,te.line))),x.iter(he,oe.line+1,function(Ct){if(Ct==E.maxLine)return de=!0,!0})),x.sel.contains(y.from,y.to)>-1&&ln(a),kl(x,y,b,Sa(a)),a.options.lineWrapping||(x.iter(he,te.line+y.text.length,function(Ct){var on=Vn(Ct);on>E.maxLineLength&&(E.maxLine=Ct,E.maxLineLength=on,E.maxLineChanged=!0,de=!1)}),de&&(a.curOp.updateMaxLine=!0)),Yr(x,te.line),Fa(a,400);var ve=y.text.length-(oe.line-te.line)-1;y.full?Hi(a):te.line==oe.line&&y.text.length==1&&!Yl(a.doc,y)?co(a,te.line,"text"):Hi(a,te.line,oe.line+1,ve);var Ze=Ot(a,"changes"),Je=Ot(a,"change");if(Je||Ze){var Dt={from:te,to:oe,text:y.text,removed:y.removed,origin:y.origin};Je&&Jr(a,"change",a,Dt),Ze&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Dt)}a.display.selForContextMenu=null}function va(a,y,b,x,E){var te;x||(x=b),en(x,b)<0&&(te=[x,b],b=te[0],x=te[1]),typeof y=="string"&&(y=a.splitLines(y)),pa(a,{from:b,to:x,text:y,origin:E})}function fs(a,y,b,x){b<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function hs(a,y,b,x){for(var E=0;E<a.length;++E){var te=a[E],oe=!0;if(te.ranges){te.copied||(te=a[E]=te.deepCopy(),te.copied=!0);for(var de=0;de<te.ranges.length;de++)fs(te.ranges[de].anchor,y,b,x),fs(te.ranges[de].head,y,b,x);continue}for(var he=0;he<te.changes.length;++he){var ve=te.changes[he];if(b<ve.from.line)ve.from=ct(ve.from.line+x,ve.from.ch),ve.to=ct(ve.to.line+x,ve.to.ch);else if(y<=ve.to.line){oe=!1;break}}oe||(a.splice(0,E+1),E=0)}}function ps(a,y){var b=y.from.line,x=y.to.line,E=y.text.length-(x-b)-1;hs(a.done,b,x,E),hs(a.undone,b,x,E)}function Za(a,y,b,x){var E=y,te=y;return typeof y=="number"?te=Lt(a,wn(a,y)):E=Xe(y),E==null?null:(x(te,E)&&a.cm&&co(a.cm,E,b),te)}function Ha(a){this.lines=a,this.parent=null;for(var y=0,b=0;b<a.length;++b)a[b].parent=this,y+=a[b].height;this.height=y}Ha.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var b=a,x=a+y;b<x;++b){var E=this.lines[b];this.height-=E.height,yr(E),Jr(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,b){this.height+=b,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var x=0;x<y.length;++x)y[x].parent=this},iterN:function(a,y,b){for(var x=a+y;a<x;++a)if(b(this.lines[a]))return!0}};function Wa(a){this.children=a;for(var y=0,b=0,x=0;x<a.length;++x){var E=a[x];y+=E.chunkSize(),b+=E.height,E.parent=this}this.size=y,this.height=b,this.parent=null}Wa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var b=0;b<this.children.length;++b){var x=this.children[b],E=x.chunkSize();if(a<E){var te=Math.min(y,E-a),oe=x.height;if(x.removeInner(a,te),this.height-=oe-x.height,E==te&&(this.children.splice(b--,1),x.parent=null),(y-=te)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof Ha))){var de=[];this.collapse(de),this.children=[new Ha(de)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,b){this.size+=y.length,this.height+=b;for(var x=0;x<this.children.length;++x){var E=this.children[x],te=E.chunkSize();if(a<=te){if(E.insertInner(a,y,b),E.lines&&E.lines.length>50){for(var oe=E.lines.length%25+25,de=oe;de<E.lines.length;){var he=new Ha(E.lines.slice(de,de+=25));E.height-=he.height,this.children.splice(++x,0,he),he.parent=this}E.lines=E.lines.slice(0,oe),this.maybeSpill()}break}a-=te}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),b=new Wa(y);if(a.parent){a.size-=b.size,a.height-=b.height;var E=He(a.parent.children,a);a.parent.children.splice(E+1,0,b)}else{var x=new Wa(a.children);x.parent=a,a.children=[x,b],a=x}b.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,b){for(var x=0;x<this.children.length;++x){var E=this.children[x],te=E.chunkSize();if(a<te){var oe=Math.min(y,te-a);if(E.iterN(a,oe,b))return!0;if((y-=oe)==0)break;a=0}else a-=te}}};var za=function(a,y,b){if(b)for(var x in b)b.hasOwnProperty(x)&&(this[x]=b[x]);this.doc=a,this.node=y};za.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,b=this.line,x=Xe(b);if(!(x==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(b.widgets=null);var te=fi(this);qn(b,Math.max(0,b.height-te)),a&&(oo(a,function(){vs(a,b,-te),co(a,x,"widget")}),Jr(a,"lineWidgetCleared",a,this,x))}},za.prototype.changed=function(){var a=this,y=this.height,b=this.doc.cm,x=this.line;this.height=null;var E=fi(this)-y;E&&(nn(this.doc,x)||qn(x,x.height+E),b&&oo(b,function(){b.curOp.forceUpdate=!0,vs(b,x,E),Jr(b,"lineWidgetChanged",b,a,Xe(x))}))},Yt(za);function vs(a,y,b){Ln(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&da(a,b)}function pu(a,y,b,x){var E=new za(a,b,x),te=a.cm;return te&&E.noHScroll&&(te.display.alignWidgets=!0),Za(a,y,"widget",function(oe){var de=oe.widgets||(oe.widgets=[]);if(E.insertAt==null?de.push(E):de.splice(Math.min(de.length-1,Math.max(0,E.insertAt)),0,E),E.line=oe,te&&!nn(a,oe)){var he=Ln(oe)<a.scrollTop;qn(oe,oe.height+fi(E)),he&&da(te,E.height),te.curOp.forceUpdate=!0}return!0}),te&&Jr(te,"lineWidgetAdded",te,E,typeof y=="number"?y:Xe(y)),E}var ms=0,Vo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ms};Vo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&fo(a),Ot(this,"clear")){var b=this.find();b&&Jr(this,"clear",b.from,b.to)}for(var x=null,E=null,te=0;te<this.lines.length;++te){var oe=this.lines[te],de=ir(oe.markedSpans,this);a&&!this.collapsed?co(a,Xe(oe),"text"):a&&(de.to!=null&&(E=Xe(oe)),de.from!=null&&(x=Xe(oe))),oe.markedSpans=Sr(oe.markedSpans,de),de.from==null&&this.collapsed&&!nn(this.doc,oe)&&a&&qn(oe,Mi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var he=0;he<this.lines.length;++he){var ve=Rt(this.lines[he]),Ze=Vn(ve);Ze>a.display.maxLineLength&&(a.display.maxLine=ve,a.display.maxLineLength=Ze,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&Hi(a,x,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&os(a.doc)),a&&Jr(a,"markerCleared",a,this,x,E),y&&yo(a),this.parent&&this.parent.clear()}},Vo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var b,x,E=0;E<this.lines.length;++E){var te=this.lines[E],oe=ir(te.markedSpans,this);if(oe.from!=null&&(b=ct(y?te:Xe(te),oe.from),a==-1))return b;if(oe.to!=null&&(x=ct(y?te:Xe(te),oe.to),a==1))return x}return b&&{from:b,to:x}},Vo.prototype.changed=function(){var a=this,y=this.find(-1,!0),b=this,x=this.doc.cm;!y||!x||oo(x,function(){var E=y.line,te=Xe(y.line),oe=vo(x,te);if(oe&&(Qo(oe),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!nn(b.doc,E)&&b.height!=null){var de=b.height;b.height=null;var he=fi(b)-de;he&&qn(E,E.height+he)}Jr(x,"markerChanged",x,a)})},Vo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||He(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Vo.prototype.detachLine=function(a){if(this.lines.splice(He(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Yt(Vo);function ma(a,y,b,x,E){if(x&&x.shared)return vu(a,y,b,x,E);if(a.cm&&!a.cm.curOp)return Fi(a.cm,ma)(a,y,b,x,E);var te=new Vo(a,E),oe=en(y,b);if(x&&ot(x,te,!1),oe>0||oe==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=Ie("span",[te.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(Ft(a,y.line,y,b,te)||y.line!=b.line&&Ft(a,b.line,y,b,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Kr()}te.addToHistory&&ql(a,{from:y,to:b,origin:"markText"},a.sel,NaN);var de=y.line,he=a.cm,ve;if(a.iter(de,b.line+1,function(Je){he&&te.collapsed&&!he.options.lineWrapping&&Rt(Je)==he.display.maxLine&&(ve=!0),te.collapsed&&de!=y.line&&qn(Je,0),Rr(Je,new On(te,de==y.line?y.ch:null,de==b.line?b.ch:null)),++de}),te.collapsed&&a.iter(y.line,b.line+1,function(Je){nn(a,Je)&&qn(Je,0)}),te.clearOnEnter&&At(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&($r(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),te.collapsed&&(te.id=++ms,te.atomic=!0),he){if(ve&&(he.curOp.updateMaxLine=!0),te.collapsed)Hi(he,y.line,b.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var Ze=y.line;Ze<=b.line;Ze++)co(he,Ze,"text");te.atomic&&os(he.doc),Jr(he,"markerAdded",he,te)}return te}var Ka=function(a,y){this.markers=a,this.primary=y;for(var b=0;b<a.length;++b)a[b].parent=this};Ka.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Jr(this,"clear")}},Ka.prototype.find=function(a,y){return this.primary.find(a,y)},Yt(Ka);function vu(a,y,b,x,E){x=ot(x),x.shared=!1;var te=[ma(a,y,b,x,E)],oe=te[0],de=x.widgetNode;return Uo(a,function(he){de&&(x.widgetNode=de.cloneNode(!0)),te.push(ma(he,nt(he,y),nt(he,b),x,E));for(var ve=0;ve<he.linked.length;++ve)if(he.linked[ve].isParent)return;oe=We(te)}),new Ka(te,oe)}function gs(a){return a.findMarks(ct(a.first,0),a.clipPos(ct(a.lastLine())),function(y){return y.parent})}function mu(a,y){for(var b=0;b<y.length;b++){var x=y[b],E=x.find(),te=a.clipPos(E.from),oe=a.clipPos(E.to);if(en(te,oe)){var de=ma(a,te,oe,x.primary,x.primary.type);x.markers.push(de),de.parent=x}}}function gu(a){for(var y=function(x){var E=a[x],te=[E.primary.doc];Uo(E.primary.doc,function(he){return te.push(he)});for(var oe=0;oe<E.markers.length;oe++){var de=E.markers[oe];He(te,de.doc)==-1&&(de.parent=null,E.markers.splice(oe--,1))}},b=0;b<a.length;b++)y(b)}var yu=0,$i=function(a,y,b,x,E){if(!(this instanceof $i))return new $i(a,y,b,x,E);b==null&&(b=0),Wa.call(this,[new Ha([new tr("",null)])]),this.first=b,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=b;var te=ct(b,0);this.sel=jo(te),this.history=new ol(null),this.id=++yu,this.modeOption=y,this.lineSep=x,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),kl(this,{from:te,to:te,text:a}),Ki(this,jo(te),Pe)};$i.prototype=ee(Wa.prototype,{constructor:$i,iter:function(a,y,b){b?this.iterN(a-this.first,y-a,b):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var b=0,x=0;x<y.length;++x)b+=y[x].height;this.insertInner(a-this.first,y,b)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=Wn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:Oi(function(a){var y=ct(this.first,0),b=this.first+this.size-1;pa(this,{from:y,to:ct(b,Lt(this,b).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&ea(this.cm,0,0),Ki(this,jo(y),Pe)}),replaceRange:function(a,y,b,x){y=nt(this,y),b=b?nt(this,b):y,va(this,a,y,b,x)},getRange:function(a,y,b){var x=yn(this,nt(this,a),nt(this,y));return b===!1?x:x.join(b||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(un(this,a))return Lt(this,a)},getLineNumber:function(a){return Xe(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Lt(this,a)),Rt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return nt(this,a)},getCursor:function(a){var y=this.sel.primary(),b;return a==null||a=="head"?b=y.head:a=="anchor"?b=y.anchor:a=="end"||a=="to"||a===!1?b=y.to():b=y.from(),b},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Oi(function(a,y,b){ns(this,nt(this,typeof a=="number"?ct(a,y||0):a),null,b)}),setSelection:Oi(function(a,y,b){ns(this,nt(this,a),nt(this,y||a),b)}),extendSelection:Oi(function(a,y,b){ll(this,nt(this,a),y&&nt(this,y),b)}),extendSelections:Oi(function(a,y){ts(this,kn(this,a),y)}),extendSelectionsBy:Oi(function(a,y){var b=yt(this.sel.ranges,a);ts(this,kn(this,b),y)}),setSelections:Oi(function(a,y,b){if(a.length){for(var x=[],E=0;E<a.length;E++)x[E]=new ri(nt(this,a[E].anchor),nt(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Ki(this,xo(this.cm,x,y),b)}}),addSelection:Oi(function(a,y,b){var x=this.sel.ranges.slice(0);x.push(new ri(nt(this,a),nt(this,y||a))),Ki(this,xo(this.cm,x,x.length-1),b)}),getSelection:function(a){for(var y=this.sel.ranges,b,x=0;x<y.length;x++){var E=yn(this,y[x].from(),y[x].to());b=b?b.concat(E):E}return a===!1?b:b.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],b=this.sel.ranges,x=0;x<b.length;x++){var E=yn(this,b[x].from(),b[x].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[x]=E}return y},replaceSelection:function(a,y,b){for(var x=[],E=0;E<this.sel.ranges.length;E++)x[E]=a;this.replaceSelections(x,y,b||"+input")},replaceSelections:Oi(function(a,y,b){for(var x=[],E=this.sel,te=0;te<E.ranges.length;te++){var oe=E.ranges[te];x[te]={from:oe.from(),to:oe.to(),text:this.splitLines(a[te]),origin:b}}for(var de=y&&y!="end"&&ou(this,x,y),he=x.length-1;he>=0;he--)pa(this,x[he]);de?rs(this,de):this.cm&&Mo(this.cm)}),undo:Oi(function(){cl(this,"undo")}),redo:Oi(function(){cl(this,"redo")}),undoSelection:Oi(function(){cl(this,"undo",!0)}),redoSelection:Oi(function(){cl(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,b=0,x=0;x<a.done.length;x++)a.done[x].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++b;return{undo:y,redo:b}},clearHistory:function(){var a=this;this.history=new ol(this.history.maxGeneration),Uo(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:fa(this.history.done),undone:fa(this.history.undone)}},setHistory:function(a){var y=this.history=new ol(this.history.maxGeneration);y.done=fa(a.done.slice(0),null,!0),y.undone=fa(a.undone.slice(0),null,!0)},setGutterMarker:Oi(function(a,y,b){return Za(this,a,"gutter",function(x){var E=x.gutterMarkers||(x.gutterMarkers={});return E[y]=b,!b&&ne(E)&&(x.gutterMarkers=null),!0})}),clearGutter:Oi(function(a){var y=this;this.iter(function(b){b.gutterMarkers&&b.gutterMarkers[a]&&Za(y,b,"gutter",function(){return b.gutterMarkers[a]=null,ne(b.gutterMarkers)&&(b.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!un(this,a)||(y=a,a=Lt(this,a),!a))return null}else if(y=Xe(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Oi(function(a,y,b){return Za(this,a,y=="gutter"?"gutter":"class",function(x){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!x[E])x[E]=b;else{if(Te(b).test(x[E]))return!1;x[E]+=" "+b}return!0})}),removeLineClass:Oi(function(a,y,b){return Za(this,a,y=="gutter"?"gutter":"class",function(x){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",te=x[E];if(te)if(b==null)x[E]=null;else{var oe=te.match(Te(b));if(!oe)return!1;var de=oe.index+oe[0].length;x[E]=te.slice(0,oe.index)+(!oe.index||de==te.length?"":" ")+te.slice(de)||null}else return!1;return!0})}),addLineWidget:Oi(function(a,y,b){return pu(this,a,y,b)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,b){return ma(this,nt(this,a),nt(this,y),b,b&&b.type||"range")},setBookmark:function(a,y){var b={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=nt(this,a),ma(this,a,a,b,"bookmark")},findMarksAt:function(a){a=nt(this,a);var y=[],b=Lt(this,a.line).markedSpans;if(b)for(var x=0;x<b.length;++x){var E=b[x];(E.from==null||E.from<=a.ch)&&(E.to==null||E.to>=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,b){a=nt(this,a),y=nt(this,y);var x=[],E=a.line;return this.iter(a.line,y.line+1,function(te){var oe=te.markedSpans;if(oe)for(var de=0;de<oe.length;de++){var he=oe[de];!(he.to!=null&&E==a.line&&a.ch>=he.to||he.from==null&&E!=a.line||he.from!=null&&E==y.line&&he.from>=y.ch)&&(!b||b(he.marker))&&x.push(he.marker.parent||he.marker)}++E}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var b=y.markedSpans;if(b)for(var x=0;x<b.length;++x)b[x].from!=null&&a.push(b[x].marker)}),a},posFromIndex:function(a){var y,b=this.first,x=this.lineSeparator().length;return this.iter(function(E){var te=E.text.length+x;if(te>a)return y=a,!0;a-=te,++b}),nt(this,ct(b,y))},indexFromPos:function(a){a=nt(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var b=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){y+=x.text.length+b}),y},copy:function(a){var y=new $i(Wn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,b=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<b&&(b=a.to);var x=new $i(Wn(this,y,b),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:a.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],mu(x,gs(this)),x},unlinkDoc:function(a){if(a instanceof yi&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var b=this.linked[y];if(b.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),gu(gs(this));break}}if(a.history==this.history){var x=[a.id];Uo(a,function(E){return x.push(E.id)},!0),a.history=new ol(null),a.history.done=fa(this.history.done,x),a.history.undone=fa(this.history.undone,x)}},iterLinkedDocs:function(a){Uo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):sr(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Oi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),$i.prototype.eachLine=$i.prototype.iter;var ys=0;function xu(a){var y=this;if(xs(y),!(it(y,a)||di(y.display,a))){dn(a),be&&(ys=+new Date);var b=Co(y,a,!0),x=a.dataTransfer.files;if(!(!b||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var E=x.length,te=Array(E),oe=0,de=function(){++oe==E&&Fi(y,function(){b=nt(y.doc,b);var Ct={from:b,to:b,text:y.doc.splitLines(te.filter(function(on){return on!=null}).join(y.doc.lineSeparator())),origin:"paste"};pa(y.doc,Ct),rs(y.doc,jo(nt(y.doc,b),nt(y.doc,Go(Ct))))})()},he=function(Ct,on){if(y.options.allowDropFileTypes&&He(y.options.allowDropFileTypes,Ct.type)==-1){de();return}var vn=new FileReader;vn.onerror=function(){return de()},vn.onload=function(){var Pn=vn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Pn)){de();return}te[on]=Pn,de()},vn.readAsText(Ct)},ve=0;ve<x.length;ve++)he(x[ve],ve);else{if(y.state.draggingText&&y.doc.sel.contains(b)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ze=a.dataTransfer.getData("Text");if(Ze){var Je;if(y.state.draggingText&&!y.state.draggingText.copy&&(Je=y.listSelections()),sl(y.doc,jo(b,b)),Je)for(var Dt=0;Dt<Je.length;++Dt)va(y.doc,"",Je[Dt].anchor,Je[Dt].head,"drag");y.replaceSelection(Ze,"around","paste"),y.display.input.focus()}}catch(Ct){}}}}function bu(a,y){if(be&&(!a.state.draggingText||+new Date-ys<100)){pn(y);return}if(!(it(a,y)||di(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!ht)){var b=ke("img",null,null,"position: fixed; left: 0; top: 0;");b.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",pe&&(b.width=b.height=1,a.display.wrapper.appendChild(b),b._top=b.offsetTop),y.dataTransfer.setDragImage(b,0,0),pe&&b.parentNode.removeChild(b)}}function Cu(a,y){var b=Co(a,y);if(b){var x=document.createDocumentFragment();ka(a,b,x),a.display.dragCursor||(a.display.dragCursor=ke("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Ae(a.display.dragCursor,x)}}function xs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function bs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),b=[],x=0;x<y.length;x++){var E=y[x].CodeMirror;E&&b.push(E)}b.length&&b[0].operation(function(){for(var te=0;te<b.length;te++)a(b[te])})}}var Cs=!1;function wu(){Cs||(Su(),Cs=!0)}function Su(){var a;At(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,bs(Eu)},100))}),At(window,"blur",function(){return bs(zo)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Yo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ja=0;ja<10;ja++)Yo[ja+48]=Yo[ja+96]=String(ja);for(var dl=65;dl<=90;dl++)Yo[dl]=String.fromCharCode(dl);for(var Ga=1;Ga<=12;Ga++)Yo[Ga+111]=Yo[Ga+63235]="F"+Ga;var Oo={};Oo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Oo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Oo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Oo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Oo.default=Ee?Oo.macDefault:Oo.pcDefault;function ku(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var b,x,E,te,oe=0;oe<y.length-1;oe++){var de=y[oe];if(/^(cmd|meta|m)$/i.test(de))te=!0;else if(/^a(lt)?$/i.test(de))b=!0;else if(/^(c|ctrl|control)$/i.test(de))x=!0;else if(/^s(hift)?$/i.test(de))E=!0;else throw new Error("Unrecognized modifier name: "+de)}return b&&(a="Alt-"+a),x&&(a="Ctrl-"+a),te&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Au(a){var y={};for(var b in a)if(a.hasOwnProperty(b)){var x=a[b];if(/^(name|fallthrough|(de|at)tach)$/.test(b))continue;if(x=="..."){delete a[b];continue}for(var E=yt(b.split(" "),ku),te=0;te<E.length;te++){var oe=void 0,de=void 0;te==E.length-1?(de=E.join(" "),oe=x):(de=E.slice(0,te+1).join(" "),oe="...");var he=y[de];if(!he)y[de]=oe;else if(he!=oe)throw new Error("Inconsistent bindings for "+de)}delete a[b]}for(var ve in y)a[ve]=y[ve];return a}function ga(a,y,b,x){y=fl(y);var E=y.call?y.call(a,x):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&b(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return ga(a,y.fallthrough,b,x);for(var te=0;te<y.fallthrough.length;te++){var oe=ga(a,y.fallthrough[te],b,x);if(oe)return oe}}}function ws(a){var y=typeof a=="string"?a:Yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Ss(a,y,b){var x=a;return y.altKey&&x!="Alt"&&(a="Alt-"+a),(we?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(we?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!b&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function Es(a,y){if(pe&&a.keyCode==34&&a.char)return!1;var b=Yo[a.keyCode];return b==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(b=a.code),Ss(b,a,y))}function fl(a){return typeof a=="string"?Oo[a]:a}function ya(a,y){for(var b=a.doc.sel.ranges,x=[],E=0;E<b.length;E++){for(var te=y(b[E]);x.length&&en(te.from,We(x).to)<=0;){var oe=x.pop();if(en(oe.from,te.from)<0){te.from=oe.from;break}}x.push(te)}oo(a,function(){for(var de=x.length-1;de>=0;de--)va(a.doc,"",x[de].from,x[de].to,"+delete");Mo(a)})}function Ll(a,y,b){var x=Et(a.text,y+b,b);return x<0||x>a.text.length?null:x}function Tl(a,y,b){var x=Ll(a,y.ch,b);return x==null?null:new ct(y.line,x,b<0?"after":"before")}function Ml(a,y,b,x,E){if(a){y.doc.direction=="rtl"&&(E=-E);var te=Zt(b,y.doc.direction);if(te){var oe=E<0?We(te):te[0],de=E<0==(oe.level==1),he=de?"after":"before",ve;if(oe.level>0||y.doc.direction=="rtl"){var Ze=mo(y,b);ve=E<0?b.text.length-1:0;var Je=ro(y,Ze,ve).top;ve=Pt(function(Dt){return ro(y,Ze,Dt).top==Je},E<0==(oe.level==1)?oe.from:oe.to-1,ve),he=="before"&&(ve=Ll(b,ve,1))}else ve=E<0?oe.to:oe.from;return new ct(x,ve,he)}}return new ct(x,E<0?b.text.length:0,E<0?"before":"after")}function Du(a,y,b,x){var E=Zt(y,a.doc.direction);if(!E)return Tl(y,b,x);b.ch>=y.text.length?(b.ch=y.text.length,b.sticky="before"):b.ch<=0&&(b.ch=0,b.sticky="after");var te=qe(E,b.ch,b.sticky),oe=E[te];if(a.doc.direction=="ltr"&&oe.level%2==0&&(x>0?oe.to>b.ch:oe.from<b.ch))return Tl(y,b,x);var de=function(Rn,jn){return Ll(y,Rn instanceof ct?Rn.ch:Rn,jn)},he,ve=function(Rn){return a.options.lineWrapping?(he=he||mo(a,y),bi(a,y,he,Rn)):{begin:0,end:y.text.length}},Ze=ve(b.sticky=="before"?de(b,-1):b.ch);if(a.doc.direction=="rtl"||oe.level==1){var Je=oe.level==1==x<0,Dt=de(b,Je?1:-1);if(Dt!=null&&(Je?Dt<=oe.to&&Dt<=Ze.end:Dt>=oe.from&&Dt>=Ze.begin)){var Ct=Je?"before":"after";return new ct(b.line,Dt,Ct)}}var on=function(Rn,jn,Fn){for(var Xn=function(ci,Ii){return Ii?new ct(b.line,de(ci,1),"before"):new ct(b.line,ci,"after")};Rn>=0&&Rn<E.length;Rn+=jn){var wr=E[Rn],cr=jn>0==(wr.level!=1),zr=cr?Fn.begin:de(Fn.end,-1);if(wr.from<=zr&&zr<wr.to||(zr=cr?wr.from:de(wr.to,-1),Fn.begin<=zr&&zr<Fn.end))return Xn(zr,cr)}},vn=on(te+x,x,Ze);if(vn)return vn;var Pn=x>0?Ze.end:de(Ze.begin,-1);return Pn!=null&&!(x>0&&Pn==y.text.length)&&(vn=on(x>0?0:E.length-1,x,ve(Pn)),vn)?vn:null}var Ua={selectAll:ss,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Pe)},killLine:function(a){return ya(a,function(y){if(y.empty()){var b=Lt(a.doc,y.head.line).text.length;return y.head.ch==b&&y.head.line<a.lastLine()?{from:y.head,to:ct(y.head.line+1,0)}:{from:y.head,to:ct(y.head.line,b)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return ya(a,function(y){return{from:ct(y.from().line,0),to:nt(a.doc,ct(y.to().line+1,0))}})},delLineLeft:function(a){return ya(a,function(y){return{from:ct(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return ya(a,function(y){var b=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:b},"div");return{from:x,to:y.from()}})},delWrappedLineRight:function(a){return ya(a,function(y){var b=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div");return{from:y.from(),to:x}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ct(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ct(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ks(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return As(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Pu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var b=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div")},Qe)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var b=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:b},"div")},Qe)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var b=a.cursorCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:b},"div");return x.ch<a.getLine(x.line).search(/\S/)?As(a,y.head):x},Qe)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],b=a.listSelections(),x=a.options.tabSize,E=0;E<b.length;E++){var te=b[E].from(),oe=ge(a.getLine(te.line),te.ch,x);y.push(ut(x-oe%x))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return oo(a,function(){for(var y=a.listSelections(),b=[],x=0;x<y.length;x++)if(y[x].empty()){var E=y[x].head,te=Lt(a.doc,E.line).text;if(te){if(E.ch==te.length&&(E=new ct(E.line,E.ch-1)),E.ch>0)E=new ct(E.line,E.ch+1),a.replaceRange(te.charAt(E.ch-1)+te.charAt(E.ch-2),ct(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var oe=Lt(a.doc,E.line-1).text;oe&&(E=new ct(E.line,1),a.replaceRange(te.charAt(0)+a.doc.lineSeparator()+oe.charAt(oe.length-1),ct(E.line-1,oe.length-1),E,"+transpose"))}}b.push(new ri(E,E))}a.setSelections(b)})},newlineAndIndent:function(a){return oo(a,function(){for(var y=a.listSelections(),b=y.length-1;b>=0;b--)a.replaceRange(a.doc.lineSeparator(),y[b].anchor,y[b].head,"+input");y=a.listSelections();for(var x=0;x<y.length;x++)a.indentLine(y[x].from().line,null,!0);Mo(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ks(a,y){var b=Lt(a.doc,y),x=Rt(b);return x!=b&&(y=Xe(x)),Ml(!0,a,x,y,1)}function Pu(a,y){var b=Lt(a.doc,y),x=Gt(b);return x!=b&&(y=Xe(x)),Ml(!0,a,b,y,-1)}function As(a,y){var b=ks(a,y.line),x=Lt(a.doc,b.line),E=Zt(x,a.doc.direction);if(!E||E[0].level==0){var te=Math.max(b.ch,x.text.search(/\S/)),oe=y.line==b.line&&y.ch<=te&&y.ch;return ct(b.line,oe?0:te,b.sticky)}return b}function hl(a,y,b){if(typeof y=="string"&&(y=Ua[y],!y))return!1;a.display.input.ensurePolled();var x=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),b&&(a.display.shift=!1),E=y(a)!=st}finally{a.display.shift=x,a.state.suppressEdits=!1}return E}function Lu(a,y,b){for(var x=0;x<a.state.keyMaps.length;x++){var E=ga(y,a.state.keyMaps[x],b,a);if(E)return E}return a.options.extraKeys&&ga(y,a.options.extraKeys,b,a)||ga(y,a.options.keyMap,b,a)}var Tu=new fe;function Va(a,y,b,x){var E=a.state.keySeq;if(E){if(ws(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Tu.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),Ds(a,E+" "+y,b,x))return!0}return Ds(a,y,b,x)}function Ds(a,y,b,x){var E=Lu(a,y,x);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Jr(a,"keyHandled",a,y,b),(E=="handled"||E=="multi")&&(dn(b),Aa(a)),!!E}function Ps(a,y){var b=Es(y,!0);return b?y.shiftKey&&!a.state.keySeq?Va(a,"Shift-"+b,y,function(x){return hl(a,x,!0)})||Va(a,b,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return hl(a,x)}):Va(a,b,y,function(x){return hl(a,x)}):!1}function Mu(a,y,b){return Va(a,"'"+b+"'",y,function(x){return hl(a,x,!0)})}var Bl=null;function Ls(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Be(),!it(y,a))){be&&ue<11&&a.keyCode==27&&(a.returnValue=!1);var b=a.keyCode;y.display.shift=b==16||a.shiftKey;var x=Ps(y,a);pe&&(Bl=x?b:null,!x&&b==88&&!Dn&&(Ee?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),re&&!Ee&&!x&&b==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),b==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Bu(y)}}function Bu(a){var y=a.display.lineDiv;Ve(y,"CodeMirror-crosshair");function b(x){(x.keyCode==18||!x.altKey)&&(Ne(y,"CodeMirror-crosshair"),qt(document,"keyup",b),qt(document,"mouseover",b))}At(document,"keyup",b),At(document,"mouseover",b)}function Ts(a){a.keyCode==16&&(this.doc.sel.shift=!1),it(this,a)}function Ms(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(di(y.display,a)||it(y,a)||a.ctrlKey&&!a.altKey||Ee&&a.metaKey)){var b=a.keyCode,x=a.charCode;if(pe&&b==Bl){Bl=null,dn(a);return}if(!(pe&&(!a.which||a.which<10)&&Ps(y,a))){var E=String.fromCharCode(x==null?b:x);E!="\b"&&(Mu(y,a,E)||y.display.input.onKeyPress(a))}}}var Nu=400,Nl=function(a,y,b){this.time=a,this.pos=y,this.button=b};Nl.prototype.compare=function(a,y,b){return this.time+Nu>a&&en(y,this.pos)==0&&b==this.button};var Ya,Xa;function Ru(a,y){var b=+new Date;return Xa&&Xa.compare(b,a,y)?(Ya=Xa=null,"triple"):Ya&&Ya.compare(b,a,y)?(Xa=new Nl(b,a,y),Ya=null,"double"):(Ya=new Nl(b,a,y),Xa=null,"single")}function Bs(a){var y=this,b=y.display;if(!(it(y,a)||b.activeTouch&&b.input.supportsTouch())){if(b.input.ensurePolled(),b.shift=a.shiftKey,di(b,a)){Le||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));return}if(!Rl(y,a)){var x=Co(y,a),E=Tn(a),te=x?Ru(x,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&Fu(y,E,x,te,a))&&(E==1?x?Iu(y,x,te,a):Nn(a)==b.scroller&&dn(a):E==2?(x&&ll(y.doc,x),setTimeout(function(){return b.input.focus()},20)):E==3&&(me?y.display.input.onContextMenu(a):Pa(y)))}}}function Fu(a,y,b,x,E){var te="Click";return x=="double"?te="Double"+te:x=="triple"&&(te="Triple"+te),te=(y==1?"Left":y==2?"Middle":"Right")+te,Va(a,Ss(te,E),E,function(oe){if(typeof oe=="string"&&(oe=Ua[oe]),!oe)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=oe(a,b)!=st}finally{a.state.suppressEdits=!1}return de})}function Ou(a,y,b){var x=a.getOption("configureMouse"),E=x?x(a,y,b):{};if(E.unit==null){var te=Ye?b.shiftKey&&b.metaKey:b.altKey;E.unit=te?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||b.shiftKey),E.addNew==null&&(E.addNew=Ee?b.metaKey:b.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ee?b.altKey:b.ctrlKey)),E}function Iu(a,y,b,x){be?setTimeout(vt(Da,a),0):a.curOp.focus=Be();var E=Ou(a,b,x),te=a.doc.sel,oe;a.options.dragDrop&&nr&&!a.isReadOnly()&&b=="single"&&(oe=te.contains(y))>-1&&(en((oe=te.ranges[oe]).from(),y)<0||y.xRel>0)&&(en(oe.to(),y)>0||y.xRel<0)?_u(a,x,y,E):Zu(a,x,y,E)}function _u(a,y,b,x){var E=a.display,te=!1,oe=Fi(a,function(ve){Le&&(E.scroller.draggable=!1),a.state.draggingText=!1,qt(E.wrapper.ownerDocument,"mouseup",oe),qt(E.wrapper.ownerDocument,"mousemove",de),qt(E.scroller,"dragstart",he),qt(E.scroller,"drop",oe),te||(dn(ve),x.addNew||ll(a.doc,b,null,null,x.extend),Le&&!ht||be&&ue==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),de=function(ve){te=te||Math.abs(y.clientX-ve.clientX)+Math.abs(y.clientY-ve.clientY)>=10},he=function(){return te=!0};Le&&(E.scroller.draggable=!0),a.state.draggingText=oe,oe.copy=!x.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),At(E.wrapper.ownerDocument,"mouseup",oe),At(E.wrapper.ownerDocument,"mousemove",de),At(E.scroller,"dragstart",he),At(E.scroller,"drop",oe),Pa(a),setTimeout(function(){return E.input.focus()},20)}function Ns(a,y,b){if(b=="char")return new ri(y,y);if(b=="word")return a.findWordAt(y);if(b=="line")return new ri(ct(y.line,0),nt(a.doc,ct(y.line+1,0)));var x=b(a,y);return new ri(x.from,x.to)}function Zu(a,y,b,x){var E=a.display,te=a.doc;dn(y);var oe,de,he=te.sel,ve=he.ranges;if(x.addNew&&!x.extend?(de=te.sel.contains(b),de>-1?oe=ve[de]:oe=new ri(b,b)):(oe=te.sel.primary(),de=te.sel.primIndex),x.unit=="rectangle")x.addNew||(oe=new ri(b,b)),b=Co(a,y,!0,!0),de=-1;else{var Ze=Ns(a,b,x.unit);x.extend?oe=Dl(oe,Ze.anchor,Ze.head,x.extend):oe=Ze}x.addNew?de==-1?(de=ve.length,Ki(te,xo(a,ve.concat([oe]),de),{scroll:!1,origin:"*mouse"})):ve.length>1&&ve[de].empty()&&x.unit=="char"&&!x.extend?(Ki(te,xo(a,ve.slice(0,de).concat(ve.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),he=te.sel):Pl(te,de,oe,rt):(de=0,Ki(te,new po([oe],0),rt),he=te.sel);var Je=b;function Dt(Fn){if(en(Je,Fn)!=0)if(Je=Fn,x.unit=="rectangle"){for(var Xn=[],wr=a.options.tabSize,cr=ge(Lt(te,b.line).text,b.ch,wr),zr=ge(Lt(te,Fn.line).text,Fn.ch,wr),ci=Math.min(cr,zr),Ii=Math.max(cr,zr),Ci=Math.min(b.line,Fn.line),ao=Math.min(a.lastLine(),Math.max(b.line,Fn.line));Ci<=ao;Ci++){var eo=Lt(te,Ci).text,Li=Wt(eo,ci,wr);ci==Ii?Xn.push(new ri(ct(Ci,Li),ct(Ci,Li))):eo.length>Li&&Xn.push(new ri(ct(Ci,Li),ct(Ci,Wt(eo,Ii,wr))))}Xn.length||Xn.push(new ri(b,b)),Ki(te,xo(a,he.ranges.slice(0,de).concat(Xn),de),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Fn)}else{var to=oe,Wi=Ns(a,Fn,x.unit),Ni=to.anchor,Ti;en(Wi.anchor,Ni)>0?(Ti=Wi.head,Ni=gn(to.from(),Wi.anchor)):(Ti=Wi.anchor,Ni=Cn(to.to(),Wi.head));var Ei=he.ranges.slice(0);Ei[de]=Hu(a,new ri(nt(te,Ni),Ti)),Ki(te,xo(a,Ei,de),rt)}}var Ct=E.wrapper.getBoundingClientRect(),on=0;function vn(Fn){var Xn=++on,wr=Co(a,Fn,!0,x.unit=="rectangle");if(wr)if(en(wr,Je)!=0){a.curOp.focus=Be(),Dt(wr);var cr=To(E,te);(wr.line>=cr.to||wr.line<cr.from)&&setTimeout(Fi(a,function(){on==Xn&&vn(Fn)}),150)}else{var zr=Fn.clientY<Ct.top?-20:Fn.clientY>Ct.bottom?20:0;zr&&setTimeout(Fi(a,function(){on==Xn&&(E.scroller.scrollTop+=zr,vn(Fn))}),50)}}function Pn(Fn){a.state.selectingText=!1,on=1/0,Fn&&(dn(Fn),E.input.focus()),qt(E.wrapper.ownerDocument,"mousemove",Rn),qt(E.wrapper.ownerDocument,"mouseup",jn),te.history.lastSelOrigin=null}var Rn=Fi(a,function(Fn){Fn.buttons===0||!Tn(Fn)?Pn(Fn):vn(Fn)}),jn=Fi(a,Pn);a.state.selectingText=jn,At(E.wrapper.ownerDocument,"mousemove",Rn),At(E.wrapper.ownerDocument,"mouseup",jn)}function Hu(a,y){var b=y.anchor,x=y.head,E=Lt(a.doc,b.line);if(en(b,x)==0&&b.sticky==x.sticky)return y;var te=Zt(E);if(!te)return y;var oe=qe(te,b.ch,b.sticky),de=te[oe];if(de.from!=b.ch&&de.to!=b.ch)return y;var he=oe+(de.from==b.ch==(de.level!=1)?0:1);if(he==0||he==te.length)return y;var ve;if(x.line!=b.line)ve=(x.line-b.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ze=qe(te,x.ch,x.sticky),Je=Ze-oe||(x.ch-b.ch)*(de.level==1?-1:1);Ze==he-1||Ze==he?ve=Je<0:ve=Je>0}var Dt=te[he+(ve?-1:0)],Ct=ve==(Dt.level==1),on=Ct?Dt.from:Dt.to,vn=Ct?"after":"before";return b.ch==on&&b.sticky==vn?y:new ri(new ct(b.line,on,vn),x)}function Rs(a,y,b,x){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(Dt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&dn(y);var oe=a.display,de=oe.lineDiv.getBoundingClientRect();if(te>de.bottom||!Ot(a,b))return gt(y);te-=de.top-oe.viewOffset;for(var he=0;he<a.display.gutterSpecs.length;++he){var ve=oe.gutters.childNodes[he];if(ve&&ve.getBoundingClientRect().right>=E){var Ze=$e(a.doc,te),Je=a.display.gutterSpecs[he];return Ht(a,b,a,Ze,Je.className,y),gt(y)}}}function Rl(a,y){return Rs(a,y,"gutterClick",!0)}function Fs(a,y){di(a.display,y)||Wu(a,y)||it(a,y,"contextmenu")||me||a.display.input.onContextMenu(y)}function Wu(a,y){return Ot(a,"gutterContextMenu")?Rs(a,y,"gutterContextMenu",!1):!1}function Os(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ko(a)}var xa={toString:function(){return"CodeMirror.Init"}},Is={},pl={};function zu(a){var y=a.optionHandlers;function b(x,E,te,oe){a.defaults[x]=E,te&&(y[x]=oe?function(de,he,ve){ve!=xa&&te(de,he,ve)}:te)}a.defineOption=b,a.Init=xa,b("value","",function(x,E){return x.setValue(E)},!0),b("mode",null,function(x,E){x.doc.modeOption=E,El(x)},!0),b("indentUnit",2,El,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(x){Ia(x),ko(x),Hi(x)},!0),b("lineSeparator",null,function(x,E){if(x.doc.lineSep=E,!!E){var te=[],oe=x.doc.first;x.doc.iter(function(he){for(var ve=0;;){var Ze=he.text.indexOf(E,ve);if(Ze==-1)break;ve=Ze+E.length,te.push(ct(oe,Ze))}oe++});for(var de=te.length-1;de>=0;de--)va(x.doc,E,te[de],ct(te[de].line,te[de].ch+E.length))}}),b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,E,te){x.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),te!=xa&&x.refresh()}),b("specialCharPlaceholder",Dr,function(x){return x.refresh()},!0),b("electricChars",!0),b("inputStyle",xe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(x,E){return x.getInputField().spellcheck=E},!0),b("autocorrect",!1,function(x,E){return x.getInputField().autocorrect=E},!0),b("autocapitalize",!1,function(x,E){return x.getInputField().autocapitalize=E},!0),b("rtlMoveVisually",!tt),b("wholeLineUpdateBefore",!0),b("theme","default",function(x){Os(x),Oa(x)},!0),b("keyMap","default",function(x,E,te){var oe=fl(E),de=te!=xa&&fl(te);de&&de.detach&&de.detach(x,oe),oe.attach&&oe.attach(x,de||null)}),b("extraKeys",null),b("configureMouse",null),b("lineWrapping",!1,ju,!0),b("gutters",[],function(x,E){x.display.gutterSpecs=wl(E,x.options.lineNumbers),Oa(x)},!0),b("fixedGutter",!0,function(x,E){x.display.gutters.style.left=E?$o(x.display)+"px":"0",x.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(x){return Ri(x)},!0),b("scrollbarStyle","native",function(x){wo(x),Ri(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),b("lineNumbers",!1,function(x,E){x.display.gutterSpecs=wl(x.options.gutters,E),Oa(x)},!0),b("firstLineNumber",1,Oa,!0),b("lineNumberFormatter",function(x){return x},Oa,!0),b("showCursorWhenSelecting",!1,Wo,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("pasteLinesPerSelection",!0),b("selectionsMayTouch",!1),b("readOnly",!1,function(x,E){E=="nocursor"&&(zo(x),x.display.input.blur()),x.display.input.readOnlyChanged(E)}),b("screenReaderLabel",null,function(x,E){E=E===""?null:E,x.display.input.screenReaderLabelChanged(E)}),b("disableInput",!1,function(x,E){E||x.display.input.reset()},!0),b("dragDrop",!0,Ku),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,Wo,!0),b("singleCursorHeightPerLine",!0,Wo,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,Ia,!0),b("addModeClass",!1,Ia,!0),b("pollInterval",100),b("undoDepth",200,function(x,E){return x.doc.history.undoDepth=E}),b("historyEventDelay",1250),b("viewportMargin",10,function(x){return x.refresh()},!0),b("maxHighlightLength",1e4,Ia,!0),b("moveInputWithCursor",!0,function(x,E){E||x.display.input.resetPosition()}),b("tabindex",null,function(x,E){return x.display.input.getField().tabIndex=E||""}),b("autofocus",null),b("direction","ltr",function(x,E){return x.doc.setDirection(E)},!0),b("phrases",null)}function Ku(a,y,b){var x=b&&b!=xa;if(!y!=!x){var E=a.display.dragFunctions,te=y?At:qt;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 ju(a){a.options.lineWrapping?(Ve(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ne(a.display.wrapper,"CodeMirror-wrap"),Bn(a)),Ea(a),Hi(a),ko(a),setTimeout(function(){return Ri(a)},100)}function yi(a,y){var b=this;if(!(this instanceof yi))return new yi(a,y);this.options=y=y?ot(y):{},ot(Is,y,!1);var x=y.value;typeof x=="string"?x=new $i(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var E=new yi.inputStyles[y.inputStyle](this),te=this.display=new ru(a,x,E,y);te.wrapper.CodeMirror=this,Os(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new fe,keySeq:null,specialChars:null},y.autofocus&&!xe&&te.input.focus(),be&&ue<11&&setTimeout(function(){return b.display.input.reset(!0)},20),Gu(this),wu(),fo(this),this.curOp.forceUpdate=!0,Xl(this,x),y.autofocus&&!xe||this.hasFocus()?setTimeout(function(){b.hasFocus()&&!b.state.focused&&La(b)},20):zo(this);for(var oe in pl)pl.hasOwnProperty(oe)&&pl[oe](this,y[oe],xa);zl(this),y.finishInit&&y.finishInit(this);for(var de=0;de<Fl.length;++de)Fl[de](this);yo(this),Le&&y.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}yi.defaults=Is,yi.optionHandlers=pl;function Gu(a){var y=a.display;At(y.scroller,"mousedown",Fi(a,Bs)),be&&ue<11?At(y.scroller,"dblclick",Fi(a,function(he){if(!it(a,he)){var ve=Co(a,he);if(!(!ve||Rl(a,he)||di(a.display,he))){dn(he);var Ze=a.findWordAt(ve);ll(a.doc,Ze.anchor,Ze.head)}}})):At(y.scroller,"dblclick",function(he){return it(a,he)||dn(he)}),At(y.scroller,"contextmenu",function(he){return Fs(a,he)}),At(y.input.getField(),"contextmenu",function(he){y.scroller.contains(he.target)||Fs(a,he)});var b,x={end:0};function E(){y.activeTouch&&(b=setTimeout(function(){return y.activeTouch=null},1e3),x=y.activeTouch,x.end=+new Date)}function te(he){if(he.touches.length!=1)return!1;var ve=he.touches[0];return ve.radiusX<=1&&ve.radiusY<=1}function oe(he,ve){if(ve.left==null)return!0;var Ze=ve.left-he.left,Je=ve.top-he.top;return Ze*Ze+Je*Je>20*20}At(y.scroller,"touchstart",function(he){if(!it(a,he)&&!te(he)&&!Rl(a,he)){y.input.ensurePolled(),clearTimeout(b);var ve=+new Date;y.activeTouch={start:ve,moved:!1,prev:ve-x.end<=300?x:null},he.touches.length==1&&(y.activeTouch.left=he.touches[0].pageX,y.activeTouch.top=he.touches[0].pageY)}}),At(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),At(y.scroller,"touchend",function(he){var ve=y.activeTouch;if(ve&&!di(y,he)&&ve.left!=null&&!ve.moved&&new Date-ve.start<300){var Ze=a.coordsChar(y.activeTouch,"page"),Je;!ve.prev||oe(ve,ve.prev)?Je=new ri(Ze,Ze):!ve.prev.prev||oe(ve,ve.prev.prev)?Je=a.findWordAt(Ze):Je=new ri(ct(Ze.line,0),nt(a.doc,ct(Ze.line+1,0))),a.setSelection(Je.anchor,Je.head),a.focus(),dn(he)}E()}),At(y.scroller,"touchcancel",E),At(y.scroller,"scroll",function(){y.scroller.clientHeight&&(Bo(a,y.scroller.scrollTop),No(a,y.scroller.scrollLeft,!0),Ht(a,"scroll",a))}),At(y.scroller,"mousewheel",function(he){return Gl(a,he)}),At(y.scroller,"DOMMouseScroll",function(he){return Gl(a,he)}),At(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(he){it(a,he)||pn(he)},over:function(he){it(a,he)||(Cu(a,he),pn(he))},start:function(he){return bu(a,he)},drop:Fi(a,xu),leave:function(he){it(a,he)||xs(a)}};var de=y.input.getField();At(de,"keyup",function(he){return Ts.call(a,he)}),At(de,"keydown",Fi(a,Ls)),At(de,"keypress",Fi(a,Ms)),At(de,"focus",function(he){return La(a,he)}),At(de,"blur",function(he){return zo(a,he)})}var Fl=[];yi.defineInitHook=function(a){return Fl.push(a)};function Ja(a,y,b,x){var E=a.doc,te;b==null&&(b="add"),b=="smart"&&(E.mode.indent?te=Wr(a,y).state:b="prev");var oe=a.options.tabSize,de=Lt(E,y),he=ge(de.text,null,oe);de.stateAfter&&(de.stateAfter=null);var ve=de.text.match(/^\s*/)[0],Ze;if(!x&&!/\S/.test(de.text))Ze=0,b="not";else if(b=="smart"&&(Ze=E.mode.indent(te,de.text.slice(ve.length),de.text),Ze==st||Ze>150)){if(!x)return;b="prev"}b=="prev"?y>E.first?Ze=ge(Lt(E,y-1).text,null,oe):Ze=0:b=="add"?Ze=he+a.options.indentUnit:b=="subtract"?Ze=he-a.options.indentUnit:typeof b=="number"&&(Ze=he+b),Ze=Math.max(0,Ze);var Je="",Dt=0;if(a.options.indentWithTabs)for(var Ct=Math.floor(Ze/oe);Ct;--Ct)Dt+=oe,Je+=" ";if(Dt<Ze&&(Je+=ut(Ze-Dt)),Je!=ve)return va(E,Je,ct(y,0),ct(y,ve.length),"+input"),de.stateAfter=null,!0;for(var on=0;on<E.sel.ranges.length;on++){var vn=E.sel.ranges[on];if(vn.head.line==y&&vn.head.ch<ve.length){var Pn=ct(y,ve.length);Pl(E,on,new ri(Pn,Pn));break}}}var bo=null;function vl(a){bo=a}function Ol(a,y,b,x,E){var te=a.doc;a.display.shift=!1,x||(x=te.sel);var oe=+new Date-200,de=E=="paste"||a.state.pasteIncoming>oe,he=sr(y),ve=null;if(de&&x.ranges.length>1)if(bo&&bo.text.join(`
`)==y){if(x.ranges.length%bo.text.length==0){ve=[];for(var Ze=0;Ze<bo.text.length;Ze++)ve.push(te.splitLines(bo.text[Ze]))}}else he.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(ve=yt(he,function(Rn){return[Rn]}));for(var Je=a.curOp.updateInput,Dt=x.ranges.length-1;Dt>=0;Dt--){var Ct=x.ranges[Dt],on=Ct.from(),vn=Ct.to();Ct.empty()&&(b&&b>0?on=ct(on.line,on.ch-b):a.state.overwrite&&!de?vn=ct(vn.line,Math.min(Lt(te,vn.line).text.length,vn.ch+We(he).length)):de&&bo&&bo.lineWise&&bo.text.join(`
`)==he.join(`
`)&&(on=vn=ct(on.line,0)));var Pn={from:on,to:vn,text:ve?ve[Dt%ve.length]:he,origin:E||(de?"paste":a.state.cutIncoming>oe?"cut":"+input")};pa(a.doc,Pn),Jr(a,"inputRead",a,Pn)}y&&!de&&Zs(a,y),Mo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Je),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function _s(a,y){var b=a.clipboardData&&a.clipboardData.getData("Text");if(b)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&oo(y,function(){return Ol(y,b,0,null,"paste")}),!0}function Zs(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var b=a.doc.sel,x=b.ranges.length-1;x>=0;x--){var E=b.ranges[x];if(!(E.head.ch>100||x&&b.ranges[x-1].head.line==E.head.line)){var te=a.getModeAt(E.head),oe=!1;if(te.electricChars){for(var de=0;de<te.electricChars.length;de++)if(y.indexOf(te.electricChars.charAt(de))>-1){oe=Ja(a,E.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(Lt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(oe=Ja(a,E.head.line,"smart"));oe&&Jr(a,"electricInput",a,E.head.line)}}}function Hs(a){for(var y=[],b=[],x=0;x<a.doc.sel.ranges.length;x++){var E=a.doc.sel.ranges[x].head.line,te={anchor:ct(E,0),head:ct(E+1,0)};b.push(te),y.push(a.getRange(te.anchor,te.head))}return{text:y,ranges:b}}function Ws(a,y,b,x){a.setAttribute("autocorrect",b?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function zs(){var a=ke("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=ke("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Le?a.style.width="1000px":a.setAttribute("wrap","off"),je&&(a.style.border="1px solid black"),Ws(a),y}function Uu(a){var y=a.optionHandlers,b=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,E){var te=this.options,oe=te[x];te[x]==E&&x!="mode"||(te[x]=E,y.hasOwnProperty(x)&&Fi(this,y[x])(this,E,oe),Ht(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,E){this.state.keyMaps[E?"push":"unshift"](fl(x))},removeKeyMap:function(x){for(var E=this.state.keyMaps,te=0;te<E.length;++te)if(E[te]==x||E[te].name==x)return E.splice(te,1),!0},addOverlay:Yi(function(x,E){var te=x.token?x:a.getMode(this.options,x);if(te.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:te,modeSpec:x,opaque:E&&E.opaque,priority:E&&E.priority||0},function(oe){return oe.priority}),this.state.modeGen++,Hi(this)}),removeOverlay:Yi(function(x){for(var E=this.state.overlays,te=0;te<E.length;++te){var oe=E[te].modeSpec;if(oe==x||typeof x=="string"&&oe.name==x){E.splice(te,1),this.state.modeGen++,Hi(this);return}}}),indentLine:Yi(function(x,E,te){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),un(this.doc,x)&&Ja(this,x,E,te)}),indentSelection:Yi(function(x){for(var E=this.doc.sel.ranges,te=-1,oe=0;oe<E.length;oe++){var de=E[oe];if(de.empty())de.head.line>te&&(Ja(this,de.head.line,x,!0),te=de.head.line,oe==this.doc.sel.primIndex&&Mo(this));else{var he=de.from(),ve=de.to(),Ze=Math.max(te,he.line);te=Math.min(this.lastLine(),ve.line-(ve.ch?0:1))+1;for(var Je=Ze;Je<te;++Je)Ja(this,Je,x);var Dt=this.doc.sel.ranges;he.ch==0&&E.length==Dt.length&&Dt[oe].from().ch>0&&Pl(this.doc,oe,new ri(he,Dt[oe].to()),Pe)}}}),getTokenAt:function(x,E){return Gr(this,x,E)},getLineTokens:function(x,E){return Gr(this,ct(x),E,!0)},getTokenTypeAt:function(x){x=nt(this.doc,x);var E=dr(this,Lt(this.doc,x.line)),te=0,oe=(E.length-1)/2,de=x.ch,he;if(de==0)he=E[2];else for(;;){var ve=te+oe>>1;if((ve?E[ve*2-1]:0)>=de)oe=ve;else if(E[ve*2+1]<de)te=ve+1;else{he=E[ve*2+2];break}}var Ze=he?he.indexOf("overlay "):-1;return Ze<0?he:Ze==0?null:he.slice(0,Ze-1)},getModeAt:function(x){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(x).state).mode:E},getHelper:function(x,E){return this.getHelpers(x,E)[0]},getHelpers:function(x,E){var te=[];if(!b.hasOwnProperty(E))return te;var oe=b[E],de=this.getModeAt(x);if(typeof de[E]=="string")oe[de[E]]&&te.push(oe[de[E]]);else if(de[E])for(var he=0;he<de[E].length;he++){var ve=oe[de[E][he]];ve&&te.push(ve)}else de.helperType&&oe[de.helperType]?te.push(oe[de.helperType]):oe[de.name]&&te.push(oe[de.name]);for(var Ze=0;Ze<oe._global.length;Ze++){var Je=oe._global[Ze];Je.pred(de,this)&&He(te,Je.val)==-1&&te.push(Je.val)}return te},getStateAfter:function(x,E){var te=this.doc;return x=wn(te,x==null?te.first+te.size-1:x),Wr(this,x+1,E).state},cursorCoords:function(x,E){var te,oe=this.doc.sel.primary();return x==null?te=oe.head:typeof x=="object"?te=nt(this.doc,x):te=x?oe.from():oe.to(),hi(this,te,E||"page")},charCoords:function(x,E){return Zi(this,nt(this.doc,x),E||"page")},coordsChar:function(x,E){return x=Do(this,x,E||"page"),gi(this,x.left,x.top)},lineAtHeight:function(x,E){return x=Do(this,{top:x,left:0},E||"page").top,$e(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,E,te){var oe=!1,de;if(typeof x=="number"){var he=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>he&&(x=he,oe=!0),de=Lt(this.doc,x)}else de=x;return Ao(this,de,{top:0,left:0},E||"page",te||oe).top+(oe?this.doc.height-Ln(de):0)},defaultTextHeight:function(){return Mi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,E,te,oe,de){var he=this.display;x=hi(this,nt(this.doc,x));var ve=x.bottom,Ze=x.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),he.sizer.appendChild(E),oe=="over")ve=x.top;else if(oe=="above"||oe=="near"){var Je=Math.max(he.wrapper.clientHeight,this.doc.height),Dt=Math.max(he.sizer.clientWidth,he.lineSpace.clientWidth);(oe=="above"||x.bottom+E.offsetHeight>Je)&&x.top>E.offsetHeight?ve=x.top-E.offsetHeight:x.bottom+E.offsetHeight<=Je&&(ve=x.bottom),Ze+E.offsetWidth>Dt&&(Ze=Dt-E.offsetWidth)}E.style.top=ve+"px",E.style.left=E.style.right="",de=="right"?(Ze=he.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(de=="left"?Ze=0:de=="middle"&&(Ze=(he.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ze+"px"),te&&tl(this,{left:Ze,top:ve,right:Ze+E.offsetWidth,bottom:ve+E.offsetHeight})},triggerOnKeyDown:Yi(Ls),triggerOnKeyPress:Yi(Ms),triggerOnKeyUp:Ts,triggerOnMouseDown:Yi(Bs),execCommand:function(x){if(Ua.hasOwnProperty(x))return Ua[x].call(null,this)},triggerElectric:Yi(function(x){Zs(this,x)}),findPosH:function(x,E,te,oe){var de=1;E<0&&(de=-1,E=-E);for(var he=nt(this.doc,x),ve=0;ve<E&&(he=Il(this.doc,he,de,te,oe),!he.hitSide);++ve);return he},moveH:Yi(function(x,E){var te=this;this.extendSelectionsBy(function(oe){return te.display.shift||te.doc.extend||oe.empty()?Il(te.doc,oe.head,x,E,te.options.rtlMoveVisually):x<0?oe.from():oe.to()},Qe)}),deleteH:Yi(function(x,E){var te=this.doc.sel,oe=this.doc;te.somethingSelected()?oe.replaceSelection("",null,"+delete"):ya(this,function(de){var he=Il(oe,de.head,x,E,!1);return x<0?{from:he,to:de.head}:{from:de.head,to:he}})}),findPosV:function(x,E,te,oe){var de=1,he=oe;E<0&&(de=-1,E=-E);for(var ve=nt(this.doc,x),Ze=0;Ze<E;++Ze){var Je=hi(this,ve,"div");if(he==null?he=Je.left:Je.left=he,ve=Ks(this,Je,de,te),ve.hitSide)break}return ve},moveV:Yi(function(x,E){var te=this,oe=this.doc,de=[],he=!this.display.shift&&!oe.extend&&oe.sel.somethingSelected();if(oe.extendSelectionsBy(function(Ze){if(he)return x<0?Ze.from():Ze.to();var Je=hi(te,Ze.head,"div");Ze.goalColumn!=null&&(Je.left=Ze.goalColumn),de.push(Je.left);var Dt=Ks(te,Je,x,E);return E=="page"&&Ze==oe.sel.primary()&&da(te,Zi(te,Dt,"div").top-Je.top),Dt},Qe),de.length)for(var ve=0;ve<oe.sel.ranges.length;ve++)oe.sel.ranges[ve].goalColumn=de[ve]}),findWordAt:function(x){var E=this.doc,te=Lt(E,x.line).text,oe=x.ch,de=x.ch;if(te){var he=this.getHelper(x,"wordChars");(x.sticky=="before"||de==te.length)&&oe?--oe:++de;for(var ve=te.charAt(oe),Ze=se(ve,he)?function(Je){return se(Je,he)}:/\s/.test(ve)?function(Je){return/\s/.test(Je)}:function(Je){return!/\s/.test(Je)&&!se(Je)};oe>0&&Ze(te.charAt(oe-1));)--oe;for(;de<te.length&&Ze(te.charAt(de));)++de}return new ri(ct(x.line,oe),ct(x.line,de))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ve(this.display.cursorDiv,"CodeMirror-overwrite"):Ne(this.display.cursorDiv,"CodeMirror-overwrite"),Ht(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Be()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yi(function(x,E){ea(this,x,E)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-ni(this)-this.display.barHeight,width:x.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:lo(this)}},scrollIntoView:Yi(function(x,E){x==null?(x={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof x=="number"?x={from:ct(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=E||0,x.from.line!=null?nl(this,x):Na(this,x.from,x.to,x.margin)}),setSize:Yi(function(x,E){var te=this,oe=function(he){return typeof he=="number"||/^\d+$/.test(String(he))?he+"px":he};x!=null&&(this.display.wrapper.style.width=oe(x)),E!=null&&(this.display.wrapper.style.height=oe(E)),this.options.lineWrapping&&Zo(this);var de=this.display.viewFrom;this.doc.iter(de,this.display.viewTo,function(he){if(he.widgets){for(var ve=0;ve<he.widgets.length;ve++)if(he.widgets[ve].noHScroll){co(te,de,"widget");break}}++de}),this.curOp.forceUpdate=!0,Ht(this,"refresh",this)}),operation:function(x){return oo(this,x)},startOperation:function(){return fo(this)},endOperation:function(){return yo(this)},refresh:Yi(function(){var x=this.display.cachedTextHeight;Hi(this),this.curOp.forceUpdate=!0,ko(this),ea(this,this.doc.scrollLeft,this.doc.scrollTop),bl(this.display),(x==null||Math.abs(x-Mi(this.display))>.5||this.options.lineWrapping)&&Ea(this),Ht(this,"refresh",this)}),swapDoc:Yi(function(x){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Xl(this,x),ko(this),this.display.input.reset(),ea(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Jr(this,"swapDoc",this,E),E}),phrase:function(x){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,x)?E[x]:x},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}},Yt(a),a.registerHelper=function(x,E,te){b.hasOwnProperty(x)||(b[x]=a[x]={_global:[]}),b[x][E]=te},a.registerGlobalHelper=function(x,E,te,oe){a.registerHelper(x,E,oe),b[x]._global.push({pred:te,val:oe})}}function Il(a,y,b,x,E){var te=y,oe=b,de=Lt(a,y.line),he=E&&a.direction=="rtl"?-b:b;function ve(){var jn=y.line+he;return jn<a.first||jn>=a.first+a.size?!1:(y=new ct(jn,y.ch,y.sticky),de=Lt(a,jn))}function Ze(jn){var Fn;if(x=="codepoint"){var Xn=de.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(Xn)?Fn=null:Fn=new ct(y.line,Math.max(0,Math.min(de.text.length,y.ch+b*(Xn>=55296&&Xn<56320?2:1))),-b)}else E?Fn=Du(a.cm,de,y,b):Fn=Tl(de,y,b);if(Fn==null)if(!jn&&ve())y=Ml(E,a.cm,de,y.line,he);else return!1;else y=Fn;return!0}if(x=="char"||x=="codepoint")Ze();else if(x=="column")Ze(!0);else if(x=="word"||x=="group")for(var Je=null,Dt=x=="group",Ct=a.cm&&a.cm.getHelper(y,"wordChars"),on=!0;!(b<0&&!Ze(!on));on=!1){var vn=de.text.charAt(y.ch)||`
`,Pn=se(vn,Ct)?"w":Dt&&vn==`
`?"n":!Dt||/\s/.test(vn)?null:"p";if(Dt&&!on&&!Pn&&(Pn="s"),Je&&Je!=Pn){b<0&&(b=1,Ze(),y.sticky="after");break}if(Pn&&(Je=Pn),b>0&&!Ze(!on))break}var Rn=ul(a,y,te,oe,!0);return hn(te,Rn)&&(Rn.hitSide=!0),Rn}function Ks(a,y,b,x){var E=a.doc,te=y.left,oe;if(x=="page"){var de=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),he=Math.max(de-.5*Mi(a.display),3);oe=(b>0?y.bottom:y.top)+b*he}else x=="line"&&(oe=b>0?y.bottom+3:y.top-3);for(var ve;ve=gi(a,te,oe),!!ve.outside;){if(b<0?oe<=0:oe>=E.height){ve.hitSide=!0;break}oe+=b*5}return ve}var li=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};li.prototype.init=function(a){var y=this,b=this,x=b.cm,E=b.div=a.lineDiv;Ws(E,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function te(de){for(var he=de.target;he;he=he.parentNode){if(he==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(he.className))break}return!1}At(E,"paste",function(de){!te(de)||it(x,de)||_s(de,x)||ue<=11&&setTimeout(Fi(x,function(){return y.updateFromDOM()}),20)}),At(E,"compositionstart",function(de){y.composing={data:de.data,done:!1}}),At(E,"compositionupdate",function(de){y.composing||(y.composing={data:de.data,done:!1})}),At(E,"compositionend",function(de){y.composing&&(de.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),At(E,"touchstart",function(){return b.forceCompositionEnd()}),At(E,"input",function(){y.composing||y.readFromDOMSoon()});function oe(de){if(!(!te(de)||it(x,de))){if(x.somethingSelected())vl({lineWise:!1,text:x.getSelections()}),de.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var he=Hs(x);vl({lineWise:!0,text:he.text}),de.type=="cut"&&x.operation(function(){x.setSelections(he.ranges,0,Pe),x.replaceSelection("",null,"cut")})}else return;if(de.clipboardData){de.clipboardData.clearData();var ve=bo.text.join(`
`);if(de.clipboardData.setData("Text",ve),de.clipboardData.getData("Text")==ve){de.preventDefault();return}}var Ze=zs(),Je=Ze.firstChild;x.display.lineSpace.insertBefore(Ze,x.display.lineSpace.firstChild),Je.value=bo.text.join(`
`);var Dt=document.activeElement;mt(Je),setTimeout(function(){x.display.lineSpace.removeChild(Ze),Dt.focus(),Dt==E&&b.showPrimarySelection()},50)}}At(E,"copy",oe),At(E,"cut",oe)},li.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},li.prototype.prepareSelection=function(){var a=$a(this.cm,!1);return a.focus=document.activeElement==this.div,a},li.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},li.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},li.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,b=y.doc.sel.primary(),x=b.from(),E=b.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var te=ml(y,a.anchorNode,a.anchorOffset),oe=ml(y,a.focusNode,a.focusOffset);if(!(te&&!te.bad&&oe&&!oe.bad&&en(gn(te,oe),x)==0&&en(Cn(te,oe),E)==0)){var de=y.display.view,he=x.line>=y.display.viewFrom&&js(y,x)||{node:de[0].measure.map[2],offset:0},ve=E.line<y.display.viewTo&&js(y,E);if(!ve){var Ze=de[de.length-1].measure,Je=Ze.maps?Ze.maps[Ze.maps.length-1]:Ze.map;ve={node:Je[Je.length-1],offset:Je[Je.length-2]-Je[Je.length-3]}}if(!he||!ve){a.removeAllRanges();return}var Dt=a.rangeCount&&a.getRangeAt(0),Ct;try{Ct=De(he.node,he.offset,ve.offset,ve.node)}catch(on){}Ct&&(!re&&y.state.focused?(a.collapse(he.node,he.offset),Ct.collapsed||(a.removeAllRanges(),a.addRange(Ct))):(a.removeAllRanges(),a.addRange(Ct)),Dt&&a.anchorNode==null?a.addRange(Dt):re&&this.startGracePeriod()),this.rememberSelection()}},li.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},li.prototype.showMultipleSelections=function(a){Ae(this.cm.display.cursorDiv,a.cursors),Ae(this.cm.display.selectionDiv,a.selection)},li.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},li.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Ke(this.div,y)},li.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},li.prototype.blur=function(){this.div.blur()},li.prototype.getField=function(){return this.div},li.prototype.supportsTouch=function(){return!0},li.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():oo(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},li.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},li.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Se&&Ce&&this.cm.display.gutterSpecs.length&&Vu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var b=ml(y,a.anchorNode,a.anchorOffset),x=ml(y,a.focusNode,a.focusOffset);b&&x&&oo(y,function(){Ki(y.doc,jo(b,x),Pe),(b.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},li.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,b=a.doc.sel.primary(),x=b.from(),E=b.to();if(x.ch==0&&x.line>a.firstLine()&&(x=ct(x.line-1,Lt(a.doc,x.line-1).length)),E.ch==Lt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=ct(E.line+1,0)),x.line<y.viewFrom||E.line>y.viewTo-1)return!1;var te,oe,de;x.line==y.viewFrom||(te=Po(a,x.line))==0?(oe=Xe(y.view[0].line),de=y.view[0].node):(oe=Xe(y.view[te].line),de=y.view[te-1].node.nextSibling);var he=Po(a,E.line),ve,Ze;if(he==y.view.length-1?(ve=y.viewTo-1,Ze=y.lineDiv.lastChild):(ve=Xe(y.view[he+1].line)-1,Ze=y.view[he+1].node.previousSibling),!de)return!1;for(var Je=a.doc.splitLines(Yu(a,de,Ze,oe,ve)),Dt=yn(a.doc,ct(oe,0),ct(ve,Lt(a.doc,ve).text.length));Je.length>1&&Dt.length>1;)if(We(Je)==We(Dt))Je.pop(),Dt.pop(),ve--;else if(Je[0]==Dt[0])Je.shift(),Dt.shift(),oe++;else break;for(var Ct=0,on=0,vn=Je[0],Pn=Dt[0],Rn=Math.min(vn.length,Pn.length);Ct<Rn&&vn.charCodeAt(Ct)==Pn.charCodeAt(Ct);)++Ct;for(var jn=We(Je),Fn=We(Dt),Xn=Math.min(jn.length-(Je.length==1?Ct:0),Fn.length-(Dt.length==1?Ct:0));on<Xn&&jn.charCodeAt(jn.length-on-1)==Fn.charCodeAt(Fn.length-on-1);)++on;if(Je.length==1&&Dt.length==1&&oe==x.line)for(;Ct&&Ct>x.ch&&jn.charCodeAt(jn.length-on-1)==Fn.charCodeAt(Fn.length-on-1);)Ct--,on++;Je[Je.length-1]=jn.slice(0,jn.length-on).replace(/^\u200b+/,""),Je[0]=Je[0].slice(Ct).replace(/\u200b+$/,"");var wr=ct(oe,Ct),cr=ct(ve,Dt.length?We(Dt).length-on:0);if(Je.length>1||Je[0]||en(wr,cr))return va(a.doc,Je,wr,cr,"+input"),!0},li.prototype.ensurePolled=function(){this.forceCompositionEnd()},li.prototype.reset=function(){this.forceCompositionEnd()},li.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},li.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))},li.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&oo(this.cm,function(){return Hi(a.cm)})},li.prototype.setUneditable=function(a){a.contentEditable="false"},li.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Fi(this.cm,Ol)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},li.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},li.prototype.onContextMenu=function(){},li.prototype.resetPosition=function(){},li.prototype.needsContentAttribute=!0;function js(a,y){var b=vo(a,y.line);if(!b||b.hidden)return null;var x=Lt(a.doc,y.line),E=mi(b,x,y.line),te=Zt(x,a.doc.direction),oe="left";if(te){var de=qe(te,y.ch);oe=de%2?"right":"left"}var he=ia(E.map,y.ch,oe);return he.offset=he.collapse=="right"?he.end:he.start,he}function Vu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function ba(a,y){return y&&(a.bad=!0),a}function Yu(a,y,b,x,E){var te="",oe=!1,de=a.doc.lineSeparator(),he=!1;function ve(Ct){return function(on){return on.id==Ct}}function Ze(){oe&&(te+=de,he&&(te+=de),oe=he=!1)}function Je(Ct){Ct&&(Ze(),te+=Ct)}function Dt(Ct){if(Ct.nodeType==1){var on=Ct.getAttribute("cm-text");if(on){Je(on);return}var vn=Ct.getAttribute("cm-marker"),Pn;if(vn){var Rn=a.findMarks(ct(x,0),ct(E+1,0),ve(+vn));Rn.length&&(Pn=Rn[0].find(0))&&Je(yn(a.doc,Pn.from,Pn.to).join(de));return}if(Ct.getAttribute("contenteditable")=="false")return;var jn=/^(pre|div|p|li|table|br)$/i.test(Ct.nodeName);if(!/^br$/i.test(Ct.nodeName)&&Ct.textContent.length==0)return;jn&&Ze();for(var Fn=0;Fn<Ct.childNodes.length;Fn++)Dt(Ct.childNodes[Fn]);/^(pre|p)$/i.test(Ct.nodeName)&&(he=!0),jn&&(oe=!0)}else Ct.nodeType==3&&Je(Ct.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Dt(y),y!=b;)y=y.nextSibling,he=!1;return te}function ml(a,y,b){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[b],!x)return ba(a.clipPos(ct(a.display.viewTo-1)),!0);y=null,b=0}else for(x=y;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var te=a.display.view[E];if(te.node==x)return Xu(te,y,b)}}function Xu(a,y,b){var x=a.text.firstChild,E=!1;if(!y||!Ke(x,y))return ba(ct(Xe(a.line),0),!0);if(y==x&&(E=!0,y=x.childNodes[b],b=0,!y)){var te=a.rest?We(a.rest):a.line;return ba(ct(Xe(te),te.text.length),E)}var oe=y.nodeType==3?y:null,de=y;for(!oe&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(oe=y.firstChild,b&&(b=oe.nodeValue.length));de.parentNode!=x;)de=de.parentNode;var he=a.measure,ve=he.maps;function Ze(Pn,Rn,jn){for(var Fn=-1;Fn<(ve?ve.length:0);Fn++)for(var Xn=Fn<0?he.map:ve[Fn],wr=0;wr<Xn.length;wr+=3){var cr=Xn[wr+2];if(cr==Pn||cr==Rn){var zr=Xe(Fn<0?a.line:a.rest[Fn]),ci=Xn[wr]+jn;return(jn<0||cr!=Pn)&&(ci=Xn[wr+(jn?1:0)]),ct(zr,ci)}}}var Je=Ze(oe,de,b);if(Je)return ba(Je,E);for(var Dt=de.nextSibling,Ct=oe?oe.nodeValue.length-b:0;Dt;Dt=Dt.nextSibling){if(Je=Ze(Dt,Dt.firstChild,0),Je)return ba(ct(Je.line,Je.ch-Ct),E);Ct+=Dt.textContent.length}for(var on=de.previousSibling,vn=b;on;on=on.previousSibling){if(Je=Ze(on,on.firstChild,-1),Je)return ba(ct(Je.line,Je.ch+vn),E);vn+=on.textContent.length}}var Di=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};Di.prototype.init=function(a){var y=this,b=this,x=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),je&&(E.style.width="0px"),At(E,"input",function(){be&&ue>=9&&y.hasSelection&&(y.hasSelection=null),b.poll()}),At(E,"paste",function(oe){it(x,oe)||_s(oe,x)||(x.state.pasteIncoming=+new Date,b.fastPoll())});function te(oe){if(!it(x,oe)){if(x.somethingSelected())vl({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var de=Hs(x);vl({lineWise:!0,text:de.text}),oe.type=="cut"?x.setSelections(de.ranges,null,Pe):(b.prevInput="",E.value=de.text.join(`
`),mt(E))}else return;oe.type=="cut"&&(x.state.cutIncoming=+new Date)}}At(E,"cut",te),At(E,"copy",te),At(a.scroller,"paste",function(oe){if(!(di(a,oe)||it(x,oe))){if(!E.dispatchEvent){x.state.pasteIncoming=+new Date,b.focus();return}var de=new Event("paste");de.clipboardData=oe.clipboardData,E.dispatchEvent(de)}}),At(a.lineSpace,"selectstart",function(oe){di(a,oe)||dn(oe)}),At(E,"compositionstart",function(){var oe=x.getCursor("from");b.composing&&b.composing.range.clear(),b.composing={start:oe,range:x.markText(oe,x.getCursor("to"),{className:"CodeMirror-composing"})}}),At(E,"compositionend",function(){b.composing&&(b.poll(),b.composing.range.clear(),b.composing=null)})},Di.prototype.createField=function(a){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},Di.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Di.prototype.prepareSelection=function(){var a=this.cm,y=a.display,b=a.doc,x=$a(a);if(a.options.moveInputWithCursor){var E=hi(a,b.sel.primary().head,"div"),te=y.wrapper.getBoundingClientRect(),oe=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+oe.top-te.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+oe.left-te.left))}return x},Di.prototype.showSelection=function(a){var y=this.cm,b=y.display;Ae(b.cursorDiv,a.cursors),Ae(b.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Di.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var b=y.getSelection();this.textarea.value=b,y.state.focused&&mt(this.textarea),be&&ue>=9&&(this.hasSelection=b)}else a||(this.prevInput=this.textarea.value="",be&&ue>=9&&(this.hasSelection=null))}},Di.prototype.getField=function(){return this.textarea},Di.prototype.supportsTouch=function(){return!1},Di.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!xe||Be()!=this.textarea))try{this.textarea.focus()}catch(a){}},Di.prototype.blur=function(){this.textarea.blur()},Di.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Di.prototype.receivedFocus=function(){this.slowPoll()},Di.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Di.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function b(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,b)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,b)},Di.prototype.poll=function(){var a=this,y=this.cm,b=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||ur(b)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=b.value;if(E==x&&!y.somethingSelected())return!1;if(be&&ue>=9&&this.hasSelection===E||Ee&&/[\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&&!x&&(x="\u200B"),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var oe=0,de=Math.min(x.length,E.length);oe<de&&x.charCodeAt(oe)==E.charCodeAt(oe);)++oe;return oo(y,function(){Ol(y,E.slice(oe),x.length-oe,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
`)>-1?b.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},Di.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Di.prototype.onKeyPress=function(){be&&ue>=9&&(this.hasSelection=null),this.fastPoll()},Di.prototype.onContextMenu=function(a){var y=this,b=y.cm,x=b.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var te=Co(b,a),oe=x.scroller.scrollTop;if(!te||pe)return;var de=b.options.resetSelectionOnContextMenu;de&&b.doc.sel.contains(te)==-1&&Fi(b,Ki)(b.doc,jo(te),Pe);var he=E.style.cssText,ve=y.wrapper.style.cssText,Ze=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ze.top-5)+"px; left: "+(a.clientX-Ze.left-5)+`px;
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Je;Le&&(Je=window.scrollY),x.input.focus(),Le&&window.scrollTo(null,Je),x.input.reset(),b.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ct,x.selForContextMenu=b.doc.sel,clearTimeout(x.detectingSelectAll);function Dt(){if(E.selectionStart!=null){var vn=b.somethingSelected(),Pn="\u200B"+(vn?E.value:"");E.value="\u21DA",E.value=Pn,y.prevInput=vn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Pn.length,x.selForContextMenu=b.doc.sel}}function Ct(){if(y.contextMenuPending==Ct&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ve,E.style.cssText=he,be&&ue<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=oe),E.selectionStart!=null)){(!be||be&&ue<9)&&Dt();var vn=0,Pn=function(){x.selForContextMenu==b.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?Fi(b,ss)(b):vn++<10?x.detectingSelectAll=setTimeout(Pn,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Pn,200)}}if(be&&ue>=9&&Dt(),me){pn(a);var on=function(){qt(window,"mouseup",on),setTimeout(Ct,20)};At(window,"mouseup",on)}else setTimeout(Ct,50)},Di.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Di.prototype.setUneditable=function(){},Di.prototype.needsContentAttribute=!1;function Ju(a,y){if(y=y?ot(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 b=Be();y.autofocus=b==a||a.getAttribute("autofocus")!=null&&b==document.body}function x(){a.value=de.getValue()}var E;if(a.form&&(At(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var te=a.form;E=te.submit;try{var oe=te.submit=function(){x(),te.submit=E,te.submit(),te.submit=oe}}catch(he){}}y.finishInit=function(he){he.save=x,he.getTextArea=function(){return a},he.toTextArea=function(){he.toTextArea=isNaN,x(),a.parentNode.removeChild(he.getWrapperElement()),a.style.display="",a.form&&(qt(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var de=yi(function(he){return a.parentNode.insertBefore(he,a.nextSibling)},y);return de}function Qu(a){a.off=qt,a.on=At,a.wheelEventPixels=iu,a.Doc=$i,a.splitLines=sr,a.countColumn=ge,a.findColumn=Wt,a.isWordChar=ie,a.Pass=st,a.signal=Ht,a.Line=tr,a.changeEnd=Go,a.scrollbarModel=Ro,a.Pos=ct,a.cmpPos=en,a.modes=fn,a.mimeModes=zt,a.resolveMode=Sn,a.getMode=An,a.modeExtensions=Kn,a.extendMode=rr,a.copyState=Jn,a.startState=Gn,a.innerMode=Zn,a.commands=Ua,a.keyMap=Oo,a.keyName=Es,a.isModifierKey=ws,a.lookupKey=ga,a.normalizeKeyMap=Au,a.StringStream=sn,a.SharedTextMarker=Ka,a.TextMarker=Vo,a.LineWidget=za,a.e_preventDefault=dn,a.e_stopPropagation=Tt,a.e_stop=pn,a.addClass=Ve,a.contains=Ke,a.rmClass=Ne,a.keyNames=Yo}zu(yi),Uu(yi);var qu="iter insert remove copy getEditor constructor".split(" ");for(var gl in $i.prototype)$i.prototype.hasOwnProperty(gl)&&He(qu,gl)<0&&(yi.prototype[gl]=function(a){return function(){return a.apply(this.doc,arguments)}}($i.prototype[gl]));return Yt($i),yi.inputStyles={textarea:Di,contenteditable:li},yi.defineMode=function(a){!yi.defaults.mode&&a!="null"&&(yi.defaults.mode=a),Jt.apply(this,arguments)},yi.defineMIME=xn,yi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),yi.defineMIME("text/plain","null"),yi.defineExtension=function(a,y){yi.prototype[a]=y},yi.defineDocExtension=function(a,y){$i.prototype[a]=y},yi.fromTextArea=Ju,Qu(yi),yi.version="5.58.2",yi})},25419:function(tn,Xt,le){(function(re){re(le(89780),le(15525),le(98101))})(function(re){"use strict";re.defineMode("markdown",function(Ge,Oe){var Ue=re.getMode(Ge,"text/html"),be=Ue.name=="null";function ue(ge){if(re.findModeByName){var fe=re.findModeByName(ge);fe&&(ge=fe.mime||fe.mimes[0])}var He=re.getMode(Ge,ge);return He.name=="null"?null:He}Oe.highlightFormatting===void 0&&(Oe.highlightFormatting=!1),Oe.maxBlockquoteDepth===void 0&&(Oe.maxBlockquoteDepth=0),Oe.taskLists===void 0&&(Oe.taskLists=!1),Oe.strikethrough===void 0&&(Oe.strikethrough=!1),Oe.emoji===void 0&&(Oe.emoji=!1),Oe.fencedCodeBlockHighlighting===void 0&&(Oe.fencedCodeBlockHighlighting=!0),Oe.fencedCodeBlockDefaultMode===void 0&&(Oe.fencedCodeBlockDefaultMode="text/plain"),Oe.xml===void 0&&(Oe.xml=!0),Oe.tokenTypeOverrides===void 0&&(Oe.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 ze in Le)Le.hasOwnProperty(ze)&&Oe.tokenTypeOverrides[ze]&&(Le[ze]=Oe.tokenTypeOverrides[ze]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ht=/^\[(x| )\](?=\s)/i,ye=Oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,pt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,je=/^[^#!\[\]*_\\<>` "'(~:]+/,Se=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,xe=/^\s*\[[^\]]+?\]:.*$/,Ee=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ye=" ";function tt(ge,fe,He){return fe.f=fe.inline=He,He(ge,fe)}function at(ge,fe,He){return fe.f=fe.block=He,He(ge,fe)}function we(ge){return!ge||!/\S/.test(ge.string)}function me(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Ne){var fe=be;if(!fe){var He=re.innerMode(Ue,ge.htmlState);fe=He.mode.name=="xml"&&He.state.tagStart===null&&!He.state.context&&He.state.tokenize.isInText}fe&&(ge.f=Ie,ge.block=Te,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function Te(ge,fe){var He=ge.column()===fe.indentation,lt=we(fe.prevLine.stream),st=fe.indentedCode,Pe=fe.prevLine.hr,rt=fe.list!==!1,Qe=(fe.listStack[fe.listStack.length-1]||0)+3;fe.indentedCode=!1;var Wt=fe.indentation;if(fe.indentationDiff===null&&(fe.indentationDiff=fe.indentation,rt)){for(fe.list=null;Wt<fe.listStack[fe.listStack.length-1];)fe.listStack.pop(),fe.listStack.length?fe.indentation=fe.listStack[fe.listStack.length-1]:fe.list=!1;fe.list!==!1&&(fe.indentationDiff=Wt-fe.listStack[fe.listStack.length-1])}var Me=!lt&&!Pe&&!fe.prevLine.header&&(!rt||!st)&&!fe.prevLine.fencedCodeEnd,ut=(fe.list===!1||Pe||lt)&&fe.indentation<=Qe&&ge.match(Ce),We=null;if(fe.indentationDiff>=4&&(st||fe.prevLine.fencedCodeEnd||fe.prevLine.header||lt))return ge.skipToEnd(),fe.indentedCode=!0,Le.code;if(ge.eatSpace())return null;if(He&&fe.indentation<=Qe&&(We=ge.match(ye))&&We[1].length<=6)return fe.quote=0,fe.header=We[1].length,fe.thisLine.header=!0,Oe.highlightFormatting&&(fe.formatting="header"),fe.f=fe.inline,Ae(fe);if(fe.indentation<=Qe&&ge.eat(">"))return fe.quote=He?1:fe.quote+1,Oe.highlightFormatting&&(fe.formatting="quote"),ge.eatSpace(),Ae(fe);if(!ut&&!fe.setext&&He&&fe.indentation<=Qe&&(We=ge.match(pe))){var yt=We[1]?"ol":"ul";return fe.indentation=Wt+ge.current().length,fe.list=!0,fe.quote=0,fe.listStack.push(fe.indentation),fe.em=!1,fe.strong=!1,fe.code=!1,fe.strikethrough=!1,Oe.taskLists&&ge.match(ht,!1)&&(fe.taskList=!0),fe.f=fe.inline,Oe.highlightFormatting&&(fe.formatting=["list","list-"+yt]),Ae(fe)}else{if(He&&fe.indentation<=Qe&&(We=ge.match(Se,!0)))return fe.quote=0,fe.fencedEndRE=new RegExp(We[1]+"+ *$"),fe.localMode=Oe.fencedCodeBlockHighlighting&&ue(We[2]||Oe.fencedCodeBlockDefaultMode),fe.localMode&&(fe.localState=re.startState(fe.localMode)),fe.f=fe.block=bt,Oe.highlightFormatting&&(fe.formatting="code-block"),fe.code=-1,Ae(fe);if(fe.setext||(!Me||!rt)&&!fe.quote&&fe.list===!1&&!fe.code&&!ut&&!xe.test(ge.string)&&(We=ge.lookAhead(1))&&(We=We.match(pt)))return fe.setext?(fe.header=fe.setext,fe.setext=0,ge.skipToEnd(),Oe.highlightFormatting&&(fe.formatting="header")):(fe.header=We[0].charAt(0)=="="?1:2,fe.setext=fe.header),fe.thisLine.header=!0,fe.f=fe.inline,Ae(fe);if(ut)return ge.skipToEnd(),fe.hr=!0,fe.thisLine.hr=!0,Le.hr;if(ge.peek()==="[")return tt(ge,fe,It)}return tt(ge,fe,fe.inline)}function Ne(ge,fe){var He=Ue.token(ge,fe.htmlState);if(!be){var lt=re.innerMode(Ue,fe.htmlState);(lt.mode.name=="xml"&&lt.state.tagStart===null&&!lt.state.context&&lt.state.tokenize.isInText||fe.md_inside&&ge.current().indexOf(">")>-1)&&(fe.f=Ie,fe.block=Te,fe.htmlState=null)}return He}function bt(ge,fe){var He=fe.listStack[fe.listStack.length-1]||0,lt=fe.indentation<He,st=He+3;if(fe.fencedEndRE&&fe.indentation<=st&&(lt||ge.match(fe.fencedEndRE))){Oe.highlightFormatting&&(fe.formatting="code-block");var Pe;return lt||(Pe=Ae(fe)),fe.localMode=fe.localState=null,fe.block=Te,fe.f=Ie,fe.fencedEndRE=null,fe.code=0,fe.thisLine.fencedCodeEnd=!0,lt?at(ge,fe,fe.block):Pe}else return fe.localMode?fe.localMode.token(ge,fe.localState):(ge.skipToEnd(),Le.code)}function Ae(ge){var fe=[];if(ge.formatting){fe.push(Le.formatting),typeof ge.formatting=="string"&&(ge.formatting=[ge.formatting]);for(var He=0;He<ge.formatting.length;He++)fe.push(Le.formatting+"-"+ge.formatting[He]),ge.formatting[He]==="header"&&fe.push(Le.formatting+"-"+ge.formatting[He]+"-"+ge.header),ge.formatting[He]==="quote"&&(!Oe.maxBlockquoteDepth||Oe.maxBlockquoteDepth>=ge.quote?fe.push(Le.formatting+"-"+ge.formatting[He]+"-"+ge.quote):fe.push("error"))}if(ge.taskOpen)return fe.push("meta"),fe.length?fe.join(" "):null;if(ge.taskClosed)return fe.push("property"),fe.length?fe.join(" "):null;if(ge.linkHref?fe.push(Le.linkHref,"url"):(ge.strong&&fe.push(Le.strong),ge.em&&fe.push(Le.em),ge.strikethrough&&fe.push(Le.strikethrough),ge.emoji&&fe.push(Le.emoji),ge.linkText&&fe.push(Le.linkText),ge.code&&fe.push(Le.code),ge.image&&fe.push(Le.image),ge.imageAltText&&fe.push(Le.imageAltText,"link"),ge.imageMarker&&fe.push(Le.imageMarker)),ge.header&&fe.push(Le.header,Le.header+"-"+ge.header),ge.quote&&(fe.push(Le.quote),!Oe.maxBlockquoteDepth||Oe.maxBlockquoteDepth>=ge.quote?fe.push(Le.quote+"-"+ge.quote):fe.push(Le.quote+"-"+Oe.maxBlockquoteDepth)),ge.list!==!1){var lt=(ge.listStack.length-1)%3;lt?lt===1?fe.push(Le.list2):fe.push(Le.list3):fe.push(Le.list1)}return ge.trailingSpaceNewLine?fe.push("trailing-space-new-line"):ge.trailingSpace&&fe.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),fe.length?fe.join(" "):null}function ke(ge,fe){if(ge.match(je,!0))return Ae(fe)}function Ie(ge,fe){var He=fe.text(ge,fe);if(typeof He!="undefined")return He;if(fe.list)return fe.list=null,Ae(fe);if(fe.taskList){var lt=ge.match(ht,!0)[1]===" ";return lt?fe.taskOpen=!0:fe.taskClosed=!0,Oe.highlightFormatting&&(fe.formatting="task"),fe.taskList=!1,Ae(fe)}if(fe.taskOpen=!1,fe.taskClosed=!1,fe.header&&ge.match(/^#+$/,!0))return Oe.highlightFormatting&&(fe.formatting="header"),Ae(fe);var st=ge.next();if(fe.linkTitle){fe.linkTitle=!1;var Pe=st;st==="("&&(Pe=")"),Pe=(Pe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+Pe+"\\\\]+|\\\\\\\\|\\\\.)"+Pe;if(ge.match(new RegExp(rt),!0))return Le.linkHref}if(st==="`"){var Qe=fe.formatting;Oe.highlightFormatting&&(fe.formatting="code"),ge.eatWhile("`");var Wt=ge.current().length;if(fe.code==0&&(!fe.quote||Wt==1))return fe.code=Wt,Ae(fe);if(Wt==fe.code){var Me=Ae(fe);return fe.code=0,Me}else return fe.formatting=Qe,Ae(fe)}else if(fe.code)return Ae(fe);if(st==="\\"&&(ge.next(),Oe.highlightFormatting)){var ut=Ae(fe),We=Le.formatting+"-escape";return ut?ut+" "+We:We}if(st==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return fe.imageMarker=!0,fe.image=!0,Oe.highlightFormatting&&(fe.formatting="image"),Ae(fe);if(st==="["&&fe.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return fe.imageMarker=!1,fe.imageAltText=!0,Oe.highlightFormatting&&(fe.formatting="image"),Ae(fe);if(st==="]"&&fe.imageAltText){Oe.highlightFormatting&&(fe.formatting="image");var ut=Ae(fe);return fe.imageAltText=!1,fe.image=!1,fe.inline=fe.f=Ke,ut}if(st==="["&&!fe.image)return fe.linkText&&ge.match(/^.*?\]/)||(fe.linkText=!0,Oe.highlightFormatting&&(fe.formatting="link")),Ae(fe);if(st==="]"&&fe.linkText){Oe.highlightFormatting&&(fe.formatting="link");var ut=Ae(fe);return fe.linkText=!1,fe.inline=fe.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?Ke:Ie,ut}if(st==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=De,Oe.highlightFormatting&&(fe.formatting="link");var ut=Ae(fe);return ut?ut+=" ":ut="",ut+Le.linkInline}if(st==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=De,Oe.highlightFormatting&&(fe.formatting="link");var ut=Ae(fe);return ut?ut+=" ":ut="",ut+Le.linkEmail}if(Oe.xml&&st==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var yt=ge.string.indexOf(">",ge.pos);if(yt!=-1){var xt=ge.string.substring(ge.start,yt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(xt)&&(fe.md_inside=!0)}return ge.backUp(1),fe.htmlState=re.startState(Ue),at(ge,fe,Ne)}if(Oe.xml&&st==="<"&&ge.match(/^\/\w*?>/))return fe.md_inside=!1,"tag";if(st==="*"||st==="_"){for(var ae=1,ee=ge.pos==1?" ":ge.string.charAt(ge.pos-2);ae<3&&ge.eat(st);)ae++;var z=ge.peek()||" ",ie=!/\s/.test(z)&&(!Ee.test(z)||/\s/.test(ee)||Ee.test(ee)),se=!/\s/.test(ee)&&(!Ee.test(ee)||/\s/.test(z)||Ee.test(z)),ne=null,ce=null;if(ae%2&&(!fe.em&&ie&&(st==="*"||!se||Ee.test(ee))?ne=!0:fe.em==st&&se&&(st==="*"||!ie||Ee.test(z))&&(ne=!1)),ae>1&&(!fe.strong&&ie&&(st==="*"||!se||Ee.test(ee))?ce=!0:fe.strong==st&&se&&(st==="*"||!ie||Ee.test(z))&&(ce=!1)),ce!=null||ne!=null){Oe.highlightFormatting&&(fe.formatting=ne==null?"strong":ce==null?"em":"strong em"),ne===!0&&(fe.em=st),ce===!0&&(fe.strong=st);var Me=Ae(fe);return ne===!1&&(fe.em=!1),ce===!1&&(fe.strong=!1),Me}}else if(st===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return Ae(fe);ge.backUp(1)}if(Oe.strikethrough){if(st==="~"&&ge.eatWhile(st)){if(fe.strikethrough){Oe.highlightFormatting&&(fe.formatting="strikethrough");var Me=Ae(fe);return fe.strikethrough=!1,Me}else if(ge.match(/^[^\s]/,!1))return fe.strikethrough=!0,Oe.highlightFormatting&&(fe.formatting="strikethrough"),Ae(fe)}else if(st===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return Ae(fe);ge.backUp(2)}}if(Oe.emoji&&st===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){fe.emoji=!0,Oe.highlightFormatting&&(fe.formatting="emoji");var Re=Ae(fe);return fe.emoji=!1,Re}return st===" "&&(ge.match(/^ +$/,!1)?fe.trailingSpace++:fe.trailingSpace&&(fe.trailingSpaceNewLine=!0)),Ae(fe)}function De(ge,fe){var He=ge.next();if(He===">"){fe.f=fe.inline=Ie,Oe.highlightFormatting&&(fe.formatting="link");var lt=Ae(fe);return lt?lt+=" ":lt="",lt+Le.linkInline}return ge.match(/^[^>]+/,!0),Le.linkInline}function Ke(ge,fe){if(ge.eatSpace())return null;var He=ge.next();return He==="("||He==="["?(fe.f=fe.inline=Ve(He==="("?")":"]"),Oe.highlightFormatting&&(fe.formatting="link-string"),fe.linkHref=!0,Ae(fe)):"error"}var Be={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ve(ge){return function(fe,He){var lt=fe.next();if(lt===ge){He.f=He.inline=Ie,Oe.highlightFormatting&&(He.formatting="link-string");var st=Ae(He);return He.linkHref=!1,st}return fe.match(Be[ge]),He.linkHref=!0,Ae(He)}}function It(ge,fe){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(fe.f=mt,ge.next(),Oe.highlightFormatting&&(fe.formatting="link"),fe.linkText=!0,Ae(fe)):tt(ge,fe,Ie)}function mt(ge,fe){if(ge.match(/^\]:/,!0)){fe.f=fe.inline=vt,Oe.highlightFormatting&&(fe.formatting="link");var He=Ae(fe);return fe.linkText=!1,He}return ge.match(/^([^\]\\]|\\.)+/,!0),Le.linkText}function vt(ge,fe){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?fe.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),fe.f=fe.inline=Ie,Le.linkHref+" url")}var ot={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:Ie,text:ke,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(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&re.copyState(Ue,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?re.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,fe){if(fe.formatting=!1,ge!=fe.thisLine.stream){if(fe.header=0,fe.hr=!1,ge.match(/^\s*$/,!0))return me(fe),null;if(fe.prevLine=fe.thisLine,fe.thisLine={stream:ge},fe.taskList=!1,fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,!fe.localState&&(fe.f=fe.block,fe.f!=Ne)){var He=ge.match(/^\s*/,!0)[0].replace(/\t/g,Ye).length;if(fe.indentation=He,fe.indentationDiff=null,He>0)return null}}return fe.f(ge,fe)},innerMode:function(ge){return ge.block==Ne?{state:ge.htmlState,mode:Ue}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:ot}},indent:function(ge,fe,He){return ge.block==Ne&&Ue.indent?Ue.indent(ge.htmlState,fe,He):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,fe,He):re.Pass},blankLine:me,getType:Ae,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ot},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(tn,Xt,le){(function(re){re(le(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 Ge=0;Ge<re.modeInfo.length;Ge++){var Oe=re.modeInfo[Ge];Oe.mimes&&(Oe.mime=Oe.mimes[0])}re.findModeByMIME=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<re.modeInfo.length;be++){var ue=re.modeInfo[be];if(ue.mime==Ue)return ue;if(ue.mimes){for(var Le=0;Le<ue.mimes.length;Le++)if(ue.mimes[Le]==Ue)return ue}}if(/\+xml$/.test(Ue))return re.findModeByMIME("application/xml");if(/\+json$/.test(Ue))return re.findModeByMIME("application/json")},re.findModeByExtension=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<re.modeInfo.length;be++){var ue=re.modeInfo[be];if(ue.ext){for(var Le=0;Le<ue.ext.length;Le++)if(ue.ext[Le]==Ue)return ue}}},re.findModeByFileName=function(Ue){for(var be=0;be<re.modeInfo.length;be++){var ue=re.modeInfo[be];if(ue.file&&ue.file.test(Ue))return ue}var Le=Ue.lastIndexOf("."),ze=Le>-1&&Ue.substring(Le+1,Ue.length);if(ze)return re.findModeByExtension(ze)},re.findModeByName=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<re.modeInfo.length;be++){var ue=re.modeInfo[be];if(ue.name.toLowerCase()==Ue)return ue;if(ue.alias){for(var Le=0;Le<ue.alias.length;Le++)if(ue.alias[Le].toLowerCase()==Ue)return ue}}}})},67549:function(tn,Xt,le){(function(re){re(le(89780))})(function(re){"use strict";re.defineMode("stex",function(Ge,Oe){"use strict";function Ue(je,Se){je.cmdState.push(Se)}function be(je){return je.cmdState.length>0?je.cmdState[je.cmdState.length-1]:null}function ue(je){var Se=je.cmdState.pop();Se&&Se.closeBracket()}function Le(je){for(var Se=je.cmdState,xe=Se.length-1;xe>=0;xe--){var Ee=Se[xe];if(Ee.name!="DEFAULT")return Ee}return{styleIdentifier:function(){return null}}}function ze(je,Se,xe){return function(){this.name=je,this.bracketNo=0,this.style=Se,this.styles=xe,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=ze("importmodule","tag",["string","builtin"]),Ce.documentclass=ze("documentclass","tag",["","atom"]),Ce.usepackage=ze("usepackage","tag",["atom"]),Ce.begin=ze("begin","tag",["atom"]),Ce.end=ze("end","tag",["atom"]),Ce.label=ze("label","tag",["atom"]),Ce.ref=ze("ref","tag",["atom"]),Ce.eqref=ze("eqref","tag",["atom"]),Ce.cite=ze("cite","tag",["atom"]),Ce.bibitem=ze("bibitem","tag",["atom"]),Ce.Bibitem=ze("Bibitem","tag",["atom"]),Ce.RBibitem=ze("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function pe(je,Se){je.f=Se}function ht(je,Se){var xe;if(je.match(/^\\[a-zA-Z@]+/)){var Ee=je.current().slice(1);return xe=Ce.hasOwnProperty(Ee)?Ce[Ee]:Ce.DEFAULT,xe=new xe,Ue(Se,xe),pe(Se,pt),xe.style}if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/\\]/))return"tag";if(je.match("\\["))return pe(Se,function(tt,at){return ye(tt,at,"\\]")}),"keyword";if(je.match("\\("))return pe(Se,function(tt,at){return ye(tt,at,"\\)")}),"keyword";if(je.match("$$"))return pe(Se,function(tt,at){return ye(tt,at,"$$")}),"keyword";if(je.match("$"))return pe(Se,function(tt,at){return ye(tt,at,"$")}),"keyword";var Ye=je.next();if(Ye=="%")return je.skipToEnd(),"comment";if(Ye=="}"||Ye=="]"){if(xe=be(Se),xe)xe.closeBracket(Ye),pe(Se,pt);else return"error";return"bracket"}else return Ye=="{"||Ye=="["?(xe=Ce.DEFAULT,xe=new xe,Ue(Se,xe),"bracket"):/\d/.test(Ye)?(je.eatWhile(/[\w.%]/),"atom"):(je.eatWhile(/[\w\-_]/),xe=Le(Se),xe.name=="begin"&&(xe.argument=je.current()),xe.styleIdentifier())}function ye(je,Se,xe){if(je.eatSpace())return null;if(xe&&je.match(xe))return pe(Se,ht),"keyword";if(je.match(/^\\[a-zA-Z@]+/))return"tag";if(je.match(/^[a-zA-Z]+/))return"variable-2";if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/]/)||je.match(/^[\^_&]/))return"tag";if(je.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(je.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ee=je.next();return Ee=="{"||Ee=="}"||Ee=="["||Ee=="]"||Ee=="("||Ee==")"?"bracket":Ee=="%"?(je.skipToEnd(),"comment"):"error"}function pt(je,Se){var xe=je.peek(),Ee;return xe=="{"||xe=="["?(Ee=be(Se),Ee.openBracket(xe),je.eat(xe),pe(Se,ht),"bracket"):/[ \t\r]/.test(xe)?(je.eat(xe),null):(pe(Se,ht),ue(Se),ht(je,Se))}return{startState:function(){var je=Oe.inMathMode?function(Se,xe){return ye(Se,xe)}:ht;return{cmdState:[],f:je}},copyState:function(je){return{cmdState:je.cmdState.slice(),f:je.f}},token:function(je,Se){return Se.f(je,Se)},blankLine:function(je){je.f=ht,je.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(tn,Xt,le){(function(re){re(le(89780))})(function(re){"use strict";var Ge={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},Oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(Ue,be){var ue=Ue.indentUnit,Le={},ze=be.htmlMode?Ge:Oe;for(var Ce in ze)Le[Ce]=ze[Ce];for(var Ce in be)Le[Ce]=be[Ce];var pe,ht;function ye(De,Ke){function Be(mt){return Ke.tokenize=mt,mt(De,Ke)}var Ve=De.next();if(Ve=="<")return De.eat("!")?De.eat("[")?De.match("CDATA[")?Be(Se("atom","]]>")):null:De.match("--")?Be(Se("comment","-->")):De.match("DOCTYPE",!0,!0)?(De.eatWhile(/[\w\._\-]/),Be(xe(1))):null:De.eat("?")?(De.eatWhile(/[\w\._\-]/),Ke.tokenize=Se("meta","?>"),"meta"):(pe=De.eat("/")?"closeTag":"openTag",Ke.tokenize=pt,"tag bracket");if(Ve=="&"){var It;return De.eat("#")?De.eat("x")?It=De.eatWhile(/[a-fA-F\d]/)&&De.eat(";"):It=De.eatWhile(/[\d]/)&&De.eat(";"):It=De.eatWhile(/[\w\.\-:]/)&&De.eat(";"),It?"atom":"error"}else return De.eatWhile(/[^&<]/),null}ye.isInText=!0;function pt(De,Ke){var Be=De.next();if(Be==">"||Be=="/"&&De.eat(">"))return Ke.tokenize=ye,pe=Be==">"?"endTag":"selfcloseTag","tag bracket";if(Be=="=")return pe="equals",null;if(Be=="<"){Ke.tokenize=ye,Ke.state=at,Ke.tagName=Ke.tagStart=null;var Ve=Ke.tokenize(De,Ke);return Ve?Ve+" tag error":"tag error"}else return/[\'\"]/.test(Be)?(Ke.tokenize=je(Be),Ke.stringStartCol=De.column(),Ke.tokenize(De,Ke)):(De.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function je(De){var Ke=function(Be,Ve){for(;!Be.eol();)if(Be.next()==De){Ve.tokenize=pt;break}return"string"};return Ke.isInAttribute=!0,Ke}function Se(De,Ke){return function(Be,Ve){for(;!Be.eol();){if(Be.match(Ke)){Ve.tokenize=ye;break}Be.next()}return De}}function xe(De){return function(Ke,Be){for(var Ve;(Ve=Ke.next())!=null;){if(Ve=="<")return Be.tokenize=xe(De+1),Be.tokenize(Ke,Be);if(Ve==">")if(De==1){Be.tokenize=ye;break}else return Be.tokenize=xe(De-1),Be.tokenize(Ke,Be)}return"meta"}}function Ee(De,Ke,Be){this.prev=De.context,this.tagName=Ke,this.indent=De.indented,this.startOfLine=Be,(Le.doNotIndent.hasOwnProperty(Ke)||De.context&&De.context.noIndent)&&(this.noIndent=!0)}function Ye(De){De.context&&(De.context=De.context.prev)}function tt(De,Ke){for(var Be;;){if(!De.context||(Be=De.context.tagName,!Le.contextGrabbers.hasOwnProperty(Be)||!Le.contextGrabbers[Be].hasOwnProperty(Ke)))return;Ye(De)}}function at(De,Ke,Be){return De=="openTag"?(Be.tagStart=Ke.column(),we):De=="closeTag"?me:at}function we(De,Ke,Be){return De=="word"?(Be.tagName=Ke.current(),ht="tag",bt):Le.allowMissingTagName&&De=="endTag"?(ht="tag bracket",bt(De,Ke,Be)):(ht="error",we)}function me(De,Ke,Be){if(De=="word"){var Ve=Ke.current();return Be.context&&Be.context.tagName!=Ve&&Le.implicitlyClosed.hasOwnProperty(Be.context.tagName)&&Ye(Be),Be.context&&Be.context.tagName==Ve||Le.matchClosing===!1?(ht="tag",Te):(ht="tag error",Ne)}else return Le.allowMissingTagName&&De=="endTag"?(ht="tag bracket",Te(De,Ke,Be)):(ht="error",Ne)}function Te(De,Ke,Be){return De!="endTag"?(ht="error",Te):(Ye(Be),at)}function Ne(De,Ke,Be){return ht="error",Te(De,Ke,Be)}function bt(De,Ke,Be){if(De=="word")return ht="attribute",Ae;if(De=="endTag"||De=="selfcloseTag"){var Ve=Be.tagName,It=Be.tagStart;return Be.tagName=Be.tagStart=null,De=="selfcloseTag"||Le.autoSelfClosers.hasOwnProperty(Ve)?tt(Be,Ve):(tt(Be,Ve),Be.context=new Ee(Be,Ve,It==Be.indented)),at}return ht="error",bt}function Ae(De,Ke,Be){return De=="equals"?ke:(Le.allowMissing||(ht="error"),bt(De,Ke,Be))}function ke(De,Ke,Be){return De=="string"?Ie:De=="word"&&Le.allowUnquoted?(ht="string",bt):(ht="error",bt(De,Ke,Be))}function Ie(De,Ke,Be){return De=="string"?Ie:bt(De,Ke,Be)}return{startState:function(De){var Ke={tokenize:ye,state:at,indented:De||0,tagName:null,tagStart:null,context:null};return De!=null&&(Ke.baseIndent=De),Ke},token:function(De,Ke){if(!Ke.tagName&&De.sol()&&(Ke.indented=De.indentation()),De.eatSpace())return null;pe=null;var Be=Ke.tokenize(De,Ke);return(Be||pe)&&Be!="comment"&&(ht=null,Ke.state=Ke.state(pe||Be,De,Ke),ht&&(Be=ht=="error"?Be+" error":ht)),Be},indent:function(De,Ke,Be){var Ve=De.context;if(De.tokenize.isInAttribute)return De.tagStart==De.indented?De.stringStartCol+1:De.indented+ue;if(Ve&&Ve.noIndent)return re.Pass;if(De.tokenize!=pt&&De.tokenize!=ye)return Be?Be.match(/^(\s*)/)[0].length:0;if(De.tagName)return Le.multilineTagIndentPastTag!==!1?De.tagStart+De.tagName.length+2:De.tagStart+ue*(Le.multilineTagIndentFactor||1);if(Le.alignCDATA&&/<!\[CDATA\[/.test(Ke))return 0;var It=Ke&&/^<(\/)?([\w_:\.-]*)/.exec(Ke);if(It&&It[1])for(;Ve;)if(Ve.tagName==It[2]){Ve=Ve.prev;break}else if(Le.implicitlyClosed.hasOwnProperty(Ve.tagName))Ve=Ve.prev;else break;else if(It)for(;Ve;){var mt=Le.contextGrabbers[Ve.tagName];if(mt&&mt.hasOwnProperty(It[2]))Ve=Ve.prev;else break}for(;Ve&&Ve.prev&&!Ve.startOfLine;)Ve=Ve.prev;return Ve?Ve.indent+ue:De.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Le.htmlMode?"html":"xml",helperType:Le.htmlMode?"html":"xml",skipAttribute:function(De){De.state==ke&&(De.state=bt)},xmlCurrentTag:function(De){return De.tagName?{name:De.tagName,close:De.type=="closeTag"}:null},xmlCurrentContext:function(De){for(var Ke=[],Be=De.context;Be;Be=Be.prev)Be.tagName&&Ke.push(Be.tagName);return Ke.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(tn,Xt,le){"use strict";le.d(Xt,{hP:function(){return xt}});var re=function(ae,ee){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ie){z.__proto__=ie}||function(z,ie){for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&(z[se]=ie[se])})(ae,ee)};function Ge(ae,ee){function z(){this.constructor=ae}re(ae,ee),ae.prototype=ee===null?Object.create(ee):(z.prototype=ee.prototype,new z)}function Oe(ae,ee,z,ie){return new(z||(z=Promise))(function(se,ne){function ce(Pt){try{Et(ie.next(Pt))}catch(_e){ne(_e)}}function Re(Pt){try{Et(ie.throw(Pt))}catch(_e){ne(_e)}}function Et(Pt){var _e;Pt.done?se(Pt.value):(_e=Pt.value,_e instanceof z?_e:new z(function(et){et(_e)})).then(ce,Re)}Et((ie=ie.apply(ae,ee||[])).next())})}function Ue(ae,ee){var z,ie,se,ne,ce={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:Re(0),throw:Re(1),return:Re(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Re(Et){return function(Pt){return function(_e){if(z)throw new TypeError("Generator is already executing.");for(;ce;)try{if(z=1,ie&&(se=2&_e[0]?ie.return:_e[0]?ie.throw||((se=ie.return)&&se.call(ie),0):ie.next)&&!(se=se.call(ie,_e[1])).done)return se;switch(ie=0,se&&(_e=[2&_e[0],se.value]),_e[0]){case 0:case 1:se=_e;break;case 4:return ce.label++,{value:_e[1],done:!1};case 5:ce.label++,ie=_e[1],_e=[0];continue;case 7:_e=ce.ops.pop(),ce.trys.pop();continue;default:if(se=ce.trys,!((se=se.length>0&&se[se.length-1])||_e[0]!==6&&_e[0]!==2)){ce=0;continue}if(_e[0]===3&&(!se||_e[1]>se[0]&&_e[1]<se[3])){ce.label=_e[1];break}if(_e[0]===6&&ce.label<se[1]){ce.label=se[1],se=_e;break}if(se&&ce.label<se[2]){ce.label=se[2],ce.ops.push(_e);break}se[2]&&ce.ops.pop(),ce.trys.pop();continue}_e=ee.call(ae,ce)}catch(et){_e=[6,et],ie=0}finally{z=se=0}if(5&_e[0])throw _e[1];return{value:_e[0]?_e[1]:void 0,done:!0}}([Et,Pt])}}}function be(){for(var ae=0,ee=0,z=arguments.length;ee<z;ee++)ae+=arguments[ee].length;var ie=Array(ae),se=0;for(ee=0;ee<z;ee++)for(var ne=arguments[ee],ce=0,Re=ne.length;ce<Re;ce++,se++)ie[se]=ne[ce];return ie}var ue=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ee,z){for(var ie=0,se=z;ie<se.length;ie++){var ne=se[ie],ce=ne[0],Re=ne[1];ee.setAttribute(ce,Re)}},ae.createRect=function(ee,z,ie){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",ee.toString()),se.setAttribute("height",z.toString()),ie&&ae.setAttributes(se,ie),se},ae.createLine=function(ee,z,ie,se,ne){var ce=document.createElementNS("http://www.w3.org/2000/svg","line");return ce.setAttribute("x1",ee.toString()),ce.setAttribute("y1",z.toString()),ce.setAttribute("x2",ie.toString()),ce.setAttribute("y2",se.toString()),ne&&ae.setAttributes(ce,ne),ce},ae.createPolygon=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",ee),z&&ae.setAttributes(ie,z),ie},ae.createCircle=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(ee/2).toString()),ie.setAttribute("cy",(ee/2).toString()),ie.setAttribute("r",ee.toString()),z&&ae.setAttributes(ie,z),ie},ae.createEllipse=function(ee,z,ie){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(ee/2).toString()),se.setAttribute("cy",(z/2).toString()),se.setAttribute("rx",(ee/2).toString()),se.setAttribute("ry",(z/2).toString()),ie&&ae.setAttributes(se,ie),se},ae.createGroup=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","g");return ee&&ae.setAttributes(z,ee),z},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ee,z,ie,se,ne,ce,Re){var Et=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(Et,[["id",ee],["orient",z],["markerWidth",ie.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",ce.toString()]]),Et.appendChild(Re),Et},ae.createText=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","text");return z.setAttribute("x","0"),z.setAttribute("y","0"),ee&&ae.setAttributes(z,ee),z},ae.createTSpan=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=ee,z&&ae.setAttributes(ie,z),ie},ae.createImage=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","image");return ee&&ae.setAttributes(z,ee),z},ae.createPoint=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=ee,ie.y=z,ie},ae.createPath=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",ee),z&&ae.setAttributes(ie,z),ie},ae}(),Le=function(){function ae(){}return ae.addKey=function(ee){ae.key=ee},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),ze=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ee,z,ie){var se=this;return new Promise(function(ne){var ce=ie!==void 0?ie:document.createElement("canvas");ee===null&&(se.markersOnly=!0,se.naturalSize=!1);var Re=document.createElementNS("http://www.w3.org/2000/svg","svg");Re.setAttribute("xmlns","http://www.w3.org/2000/svg"),Re.setAttribute("width",z.width.baseVal.valueAsString),Re.setAttribute("height",z.height.baseVal.valueAsString),Re.setAttribute("viewBox","0 0 "+z.viewBox.baseVal.width.toString()+" "+z.viewBox.baseVal.height.toString()),Re.innerHTML=z.innerHTML,se.naturalSize===!0?(Re.width.baseVal.value=ee.naturalWidth,Re.height.baseVal.value=ee.naturalHeight):se.width!==void 0&&se.height!==void 0&&(Re.width.baseVal.value=se.width,Re.height.baseVal.value=se.height),ce.width=Re.width.baseVal.value,ce.height=Re.height.baseVal.value;var Et=Re.outerHTML,Pt=ce.getContext("2d");se.markersOnly!==!0&&Pt.drawImage(ee,0,0,ce.width,ce.height);var _e=window.URL,et=new Image(ce.width,ce.height);et.setAttribute("crossOrigin","anonymous");var qe=new Blob([Et],{type:"image/svg+xml"}),St=_e.createObjectURL(qe);et.onload=function(){Pt.drawImage(et,0,0),_e.revokeObjectURL(St);var Zt=ce.toDataURL(se.imageType,se.imageQuality);ne(Zt)},et.src=St})},ae}(),Ce=function(){},pe=function(){function ae(ee){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ee+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(ee){return this.styleSheet===void 0&&this.addStyleSheet(),ee.name=""+this.classNamePrefix+ee.localName,this.classes.push(ee),this.styleSheet.sheet.insertRule("."+ee.name+" {"+ee.style+"}",this.styleSheet.sheet.cssRules.length),ee},ae.prototype.addRule=function(ee){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ee),this.styleSheet.sheet.insertRule(ee.selector+" {"+ee.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ee;this.styleSheet=document.createElement("style"),((ee=this.styleSheetRoot)!==null&&ee!==void 0?ee:document.head).appendChild(this.styleSheet),this.addRule(new ht("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ht("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ht("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ye("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ye("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var ee;this.styleSheet&&(((ee=this.styleSheetRoot)!==null&&ee!==void 0?ee:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),ht=function(ae,ee){this.selector=ae,this.style=ee},ye=function(ae,ee){this.localName=ae,this.style=ee},pt=function(){function ae(ee,z,ie,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ee,this.displayMode=z,this.markerItems=ie,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(ee){var z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ie,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var ce=document.createElement("div");ce.className=""+z.toolbarButtonStyleClass.name,ce.setAttribute("data-type-name",ne.typeName),ce.innerHTML=ne.icon,ce.addEventListener("click",function(){z.markerToolbarButtonClicked(ce,ne)}),z.buttons.push(ce),z.markerButtons.push(ce)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var 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,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(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;z<this.markerButtons.length;z++)z<ee||z===ee&&this.markerButtons.length-1===ee?this.markerButtonBlock.appendChild(this.markerButtons[z]):(z===ee&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[z]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var ee=this;this.buttons.forEach(function(z){z.className=z.className.replace(ee.uiStyleSettings.toolbarButtonStyleColorsClassName?ee.uiStyleSettings.toolbarButtonStyleColorsClassName:ee.toolbarButtonStyleColorsClass.name,"").trim(),z.className=z.className.replace(ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ee.toolbarActiveButtonStyleColorsClass.name,"").trim(),z.className+=" "+(ee.uiStyleSettings.toolbarButtonStyleColorsClassName?ee.uiStyleSettings.toolbarButtonStyleColorsClassName:ee.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ee,z,ie){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=z,ne.setAttribute("data-action",ie),ne.addEventListener("click",function(){se.actionToolbarButtonClicked(ne,ie)}),ie){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}ee.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ye("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ye("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ye("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ye("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ye("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ye("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
padding: `+ee+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ye("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ye("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ht("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ht("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(ee,z){this.setActiveButton(ee),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ee,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("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(ie){return ie.getAttribute("data-type-name")===ee});z&&this.setActiveButton(z)},ae.prototype.setCurrentMarker=function(ee){var z=this;this.currentMarker=ee,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){z.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),je=function(){function ae(ee,z,ie,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=ee,this.displayMode=z,this.uiStyleSettings=ie,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ee;this.toolboxStyleClass=this.styles.addClass(new ye("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 ye("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ye("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ye("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ye("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 ye("toolbox-panel-row_colors",`
background-color: `+((ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ee!==void 0?ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ye("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 ye("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ye("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ht("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ht("."+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,ie,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+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var ce;ne.uiStyleSettings=se.uiStyleSettings;var Re=document.createElement("div");Re.className=se.toolboxButtonStyleClass.name+" "+((ce=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ce!==void 0?ce:se.toolboxButtonStyleColorsClass.name),Re.innerHTML=ne.icon,Re.title=ne.title,Re.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(Re),se.buttonRow.appendChild(Re)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ee){var z=this,ie=-1;if(ee!==this.activePanel){ie=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,ce){var Re,Et;ne.className=z.toolboxButtonStyleClass.name+" "+(ce===ie?""+((Re=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Re!==void 0?Re:z.toolboxActiveButtonStyleColorsClass.name):""+((Et=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Et!==void 0?Et:z.toolboxButtonStyleColorsClass.name))})},ae}(),Se=function(ae,ee){this.title=ae,this.icon=ee},xe=function(ae){function ee(z,ie,se,ne){var ce=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ce.colors=[],ce.addTransparent=!1,ce.colorBoxes=[],ce.colors=ie,ce.currentColor=se,ce.setCurrentColor=ce.setCurrentColor.bind(ce),ce.getColorBox=ce.getColorBox.bind(ce),ce}return Ge(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=z.getColorBox(se);ie.appendChild(ne),z.colorBoxes.push(ne)}),ie},ee.prototype.getColorBox=function(z){var ie=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,ce=document.createElement("div");ce.style.display="inline-block",ce.style.boxSizing="content-box",ce.style.width=ne-2+"px",ce.style.height=ne-2+"px",ce.style.padding="1px",ce.style.marginRight="2px",ce.style.marginBottom="2px",ce.style.borderWidth="2px",ce.style.borderStyle="solid",ce.style.borderRadius=(ne+2)/2+"px",ce.style.borderColor=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ce.addEventListener("click",function(){ie.setCurrentColor(z,ce)});var Re=document.createElement("div");return Re.style.display="inline-block",Re.style.width=ne-2+"px",Re.style.height=ne-2+"px",Re.style.backgroundColor=z,Re.style.borderRadius=ne/2+"px",z==="transparent"&&(Re.style.fill=this.uiStyleSettings.toolboxAccentColor,Re.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ce.appendChild(Re),ce},ee.prototype.setCurrentColor=function(z,ie){var se=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},ee}(Se),Ee=function(){function ae(ee,z,ie){this._state="new",this._isSelected=!1,this._container=ee,this._overlayContainer=z,this.globalSettings=ie,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}(),Ye=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}(),tt=function(){function ae(){this.GRIP_SIZE=10,this.visual=ue.createGroup(),this.visual.appendChild(ue.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ue.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}(),at=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}(),we=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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(ue.createTransform()),ne.setupControlBox(),ne}return Ge(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 ie=ue.createTransform();this._visual.transform.baseVal.appendItem(ie)},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,ie){ae.prototype.pointerDown.call(this,z,ie),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(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){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 ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ee.prototype.pointerUp=function(z){var ie=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",ie==="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 ie=this.unrotatePoint(z);this.state==="creating"?this.resize(z):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(z)},ee.prototype.resize=function(z){var ie=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,ce=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+z.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-ie;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,ce=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ce=this.manipulationStartHeight+z.y-this.manipulationStartY}se>=0?(this.left=ie,this.width=se):(this.left=ie+se,this.width=-se),ce>=0?(this.top=ne,this.height=ce):(this.top=ne+ce,this.height=-ce),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 ie=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*ie,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 ie=this.container.getCTM(),se=ue.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(ie)).x,y:se.y}},ee.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM();ie=ie.inverse();var se=ue.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(ie)).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=ue.createGroup();var z=ue.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=ue.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=ue.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 Ye,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 tt;return z.visual.transform.baseVal.appendItem(ue.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,ie=-z/2,se=ie,ne=(this.width+this.CB_DISTANCE)/2-z/2,ce=(this.height+this.CB_DISTANCE)/2-z/2,Re=this.height+this.CB_DISTANCE-z/2,Et=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,Et,se),this.positionGrip(this.controlGrips.centerLeft.visual,ie,ce),this.positionGrip(this.controlGrips.centerRight.visual,Et,ce),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Re),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Re),this.positionGrip(this.controlGrips.bottomRight.visual,Et,Re),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},ee.prototype.positionGrip=function(z,ie,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,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:at.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:at.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 ie=z;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*z,y:se.y*ie});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*ie,this.adjustControlBox()},ee}(Ee),me=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 Ge(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=ue.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,ie){ae.prototype.pointerDown.call(this,z,ie),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),ue.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&&ue.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&ue.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&ue.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&ue.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 ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.title="Rectangle marker",ee}(we),Te=function(ae){function ee(z,ie,se,ne){var ce=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ce.widths=[],ce.widthBoxes=[],ce.widths=ie,ce.currentWidth=se,ce.setCurrentWidth=ce.setCurrentWidth.bind(ce),ce}return Ge(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.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)}),ie.appendChild(ne);var ce=document.createElement("div");ce.innerText=se.toString(),ce.style.marginRight="5px",ne.appendChild(ce);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.display="flex",Re.style.alignItems="center";var Et=document.createElement("hr");Et.style.minWidth="20px",Et.style.border="0px",Et.style.borderTop=se+"px solid "+z.uiStyleSettings.toolboxColor,Et.style.flexGrow="2",Re.appendChild(Et),ne.appendChild(Re),z.widthBoxes.push(ne)}),ie},ee.prototype.setCurrentWidth=function(z,ie){var se=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ee}(Se),Ne=function(ae){function ee(z,ie,se,ne){var ce=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ce.styles=[],ce.styleBoxes=[],ce.styles=ie,ce.currentStyle=se,ce.setCurrentStyle=ce.setCurrentStyle.bind(ce),ce}return Ge(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.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)}),ie.appendChild(ne);var ce=document.createElement("div");ce.style.minHeight="20px",ce.style.flexGrow="2",ce.style.overflow="hidden";var Re=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;ce.innerHTML=Re,ne.appendChild(ce),z.styleBoxes.push(ne)}),ie},ee.prototype.setCurrentStyle=function(z,ie){var se=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ee}(Se),bt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new xe("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Te("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ne("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ge(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='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ee}(me),Ae=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"},ke=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 Ge(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,ie){ae.prototype.pointerDown.call(this,z,ie),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(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ee.prototype.pointerUp=function(z){var ie=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",ie==="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=ue.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 tt;return z.visual.transform.baseVal.appendItem(ue.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,ie,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,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 ie=z;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.x1=this.x1*z,this.y1=this.y1*ie,this.x2=this.x2*z,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},ee}(Ee),Ie=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 xe("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Te("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ne("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ge(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=ue.createGroup(),this.selectorLine=ue.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ue.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,ie){ae.prototype.pointerDown.call(this,z,ie),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()),ue.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ue.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ue.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 ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},ee.typeName="LineMarker",ee.title="Line marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ee}(ke),De=function(ae){function ee(z,ie,se,ne){var ce=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ce.fonts=[],ce.fontBoxes=[],ce.fonts=ie,ce.currentFont=se,ce.setCurrentFont=ce.setCurrentFont.bind(ce),ce}return Ge(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.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)}),ie.appendChild(ne);var ce=document.createElement("div");ce.style.display="flex",ce.style.minHeight="20px",ce.style.flexGrow="2",ce.style.fontFamily=se,ce.style.overflow="hidden";var Re=document.createElement("div");Re.style.whiteSpace="nowrap",Re.style.overflow="hidden",Re.style.textOverflow="ellipsis",Re.innerHTML="The quick brown fox jumps over the lazy dog",ce.appendChild(Re),ne.appendChild(ce),z.fontBoxes.push(ne)}),ie},ee.prototype.setCurrentFont=function(z,ie){var se=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ee}(Se),Ke=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 xe("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new De("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Ge(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 ie=!1;return this.textElement.childNodes.forEach(function(se){se===z&&(ie=!0)}),ie},ee.prototype.createVisual=function(){this.visual=ue.createGroup(),this.bgRectangle=ue.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ue.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ue.createTransform()),this.textElement.transform.baseVal.appendItem(ue.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),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(ie){z.textElement.appendChild(ue.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ee.prototype.getTextScale=function(){var z=this.textElement.getBBox(),ie=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;ie=Math.min(se,ne)}return ie},ee.prototype.getTextPosition=function(z){var ie=this.textElement.getBBox(),se=0,ne=0;return ie.width>0&&ie.height>0&&(se=(this.width-ie.width*z)/2,ne=this.height/2-ie.height*z/2),{x:se,y:ne}},ee.prototype.sizeText=function(){var z=this.textElement.getBBox(),ie=this.getTextScale(),se=this.getTextPosition(ie);se.y-=z.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},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&&(ue.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ue.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ee.prototype.pointerUp=function(z){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,z),this.setSize(),(ie==="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(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,z.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var se=ie.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),ie.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(),ie=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};ie.x-=ne.x/2,ie.y-=ne.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.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,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},ee.prototype.setColor=function(z){this.textElement&&ue.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&&ue.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 ie=z;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},ee.typeName="TextMarker",ee.title="Text marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ee}(we),Be=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 xe("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Te("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Ge(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=ue.createGroup(),this.drawingImage=ue.createImage(),this.visual.appendChild(this.drawingImage);var z=ue.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){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,ie)},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),ue.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ue.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),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=ie[0],ne=ie[1],ce=ie[2],Re=ie[3],Et=!1,Pt=0;Pt<this.canvasElement.height;Pt++)for(var _e=0;_e<this.canvasElement.width;_e++)z.data[Pt*this.canvasElement.width*4+4*_e+3]>0&&(Et=!0,Pt<ne&&(ne=Pt),_e<se&&(se=_e),Pt>Re&&(Re=Pt),_e>ce&&(ce=_e));if(Et){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(ce-se)/this.pixelRatio,this.height=(Re-ne)/this.pixelRatio;var et=document.createElement("canvas");et.width=ce-se,et.height=Re-ne,et.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,ce-se,Re-ne),0,0),this.drawingImgUrl=et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ee.prototype.setDrawingImage=function(){ue.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ue.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,ie){ae.prototype.scale.call(this,z,ie),this.setDrawingImage()},ee.typeName="FreehandMarker",ee.title="Freehand marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ee}(we),Ve=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=ie,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return Ge(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var se=function(Re){var Et="both";switch(Re){case 0:Et="both";break;case 1:Et="start";break;case 2:Et="end";break;case 3:Et="none"}var Pt=document.createElement("div");if(Pt.style.display="flex",Pt.style.flexGrow="2",Pt.style.alignItems="center",Pt.style.justifyContent="space-between",Pt.style.padding="5px",Pt.style.borderWidth="2px",Pt.style.borderStyle="solid",Pt.style.borderColor=Et===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Pt.addEventListener("click",function(){z.setCurrentType(Et,Pt)}),ie.appendChild(Pt),Et==="both"||Et==="start"){var _e=document.createElement("div");_e.style.display="flex",_e.style.alignItems="center",_e.style.minHeight="20px",_e.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,_e.style.marginLeft="5px",Pt.appendChild(_e)}var et=document.createElement("div");et.style.display="flex",et.style.alignItems="center",et.style.minHeight="20px",et.style.flexGrow="2";var qe=document.createElement("hr");if(qe.style.minWidth="20px",qe.style.border="0px",qe.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),qe.style.flexGrow="2",et.appendChild(qe),Pt.appendChild(et),Et==="both"||Et==="end"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,St.style.marginRight="5px",Pt.appendChild(St)}ne.typeBoxes.push(Pt)},ne=this,ce=0;ce<4;ce++)se(ce);return ie},ee.prototype.setCurrentType=function(z,ie){var se=this;this.currentType=z,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ee}(Se),It=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 Ve("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Ge(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,ie){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-se/2+","+(ie+ne/2)+" "+z+","+(ie-ne/2)+" "+(z+se/2)+","+(ie+ne/2)},ee.prototype.createTips=function(){this.arrow1=ue.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ue.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ue.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ue.createTransform()),this.visual.appendChild(this.arrow2)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),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",ue.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ue.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 ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,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 ie=z;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},ee.typeName="ArrowMarker",ee.title="Arrow marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ee}(Ie),mt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new xe("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Ge(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='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ee}(me),vt=function(ae){function ee(z,ie,se,ne){var ce=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ce.opacities=[],ce.opacityBoxes=[],ce.opacities=ie,ce.currentOpacity=se,ce.setCurrentOpacity=ce.setCurrentOpacity.bind(ce),ce}return Ge(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.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)}),ie.appendChild(ne);var ce=document.createElement("div");ce.innerText=100*se+"%",ne.appendChild(ce),z.opacityBoxes.push(ne)}),ie},ee.prototype.setCurrentOpacity=function(z,ie){var se=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ee}(Se),ot=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new xe("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new vt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ge(ee,ae),ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&ue.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='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ee}(mt),ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',fe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',He=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 xe("Text color",se.defaultColorSet,ne.color,ge),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new xe("Fill color",se.defaultColorSet,ne.bgColor,fe),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new De("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new tt,ne.tipGrip.visual.transform.baseVal.appendItem(ue.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Ge(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(){ue.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ue.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ee.prototype.pointerDown=function(z,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,z,ie)},ee.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,z);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,z),this.setTipPoints(ie),this.positionTip()}},ee.prototype.manipulate=function(z){if(this.tipMoving){var ie=this.unrotatePoint(z);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,z)},ee.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(ue.setAttributes(this.bgRectangle,[["fill",z]]),ue.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 ie=Math.min(this.height/2,15),se=this.height/5;z&&(this.tipPosition={x:ie+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.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+se,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-se,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-se,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-se},this.tipBase2Position={x:this.width,y:this.height-ie}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-se})},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.positionTip()},ee.prototype.positionTip=function(){ue.setAttributes(this.tip,[["points",this.getTipPoints()]]);var z=this.tipGrip.visual.transform.baseVal.getItem(0);z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(z,0)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ee.prototype.getState=function(){var z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ae.prototype.restoreState.call(this,z),this.createTip(),this.setTipPoints()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.tipPosition={x:this.tipPosition.x*z,y:this.tipPosition.y*ie},this.positionTip()},ee.typeName="CalloutMarker",ee.title="Callout marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ee}(Ke),lt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,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.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new xe("Line color",be(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new xe("Fill color",be(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Te("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ne("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new vt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ge(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=ue.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),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),ue.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&ue.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&ue.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&ue.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&ue.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&ue.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},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:this.opacity},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.typeName="EllipseMarker",ee.title="Ellipse marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ee}(we),st=function(ae){function ee(z,ie,se){return ae.call(this,z,ie,se)||this}return Ge(ee,ae),Object.defineProperty(ee.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.tip1&&z!==this.tip2)},ee.prototype.createTips=function(){this.tip1=ue.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ue.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ue.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ue.createTransform()),this.visual.appendChild(this.tip2)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"&&this.createTips()},ee.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ue.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ue.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,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='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ee}(Ie),Pe=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return Ge(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='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ee}(lt),rt=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,ie,se){var ne=ae.call(this,z,ie,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 xe("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Te("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ne("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ge(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=ue.createGroup(),this.selectorCurve=ue.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ue.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,ie){ae.prototype.pointerDown.call(this,z,ie),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(ie)&&(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()),ue.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ue.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ue.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=ue.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ue.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,ie){this.curveX=this.curveX*z,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,z,ie)},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 ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},ee.typeName="CurveMarker",ee.title="Curve marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ee}(ke),Wt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,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 xe("Line color",be(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new xe("Fill color",be(se.defaultColorSet,["transparent"]),ne.fillColor,fe),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Te("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ne("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new De("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new xe("Text color",se.defaultColorSet,ne.textColor,ge),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Ge(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=ue.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ue.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ue.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=ue.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,ie){ae.prototype.pointerDown.call(this,z,ie),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),ue.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')"]]),ue.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(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&z.finishTextEditing(z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.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&&ue.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&&ue.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),ue.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,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.frame&&ue.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.captionBg&&ue.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.frame&&ue.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.frame&&ue.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 ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.typeName="CaptionFrameMarker",ee.title="Caption frame marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ee}(we),Me=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}(),ut=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=ie,ne.state=se,ne}return Ge(ee,ae),ee}(Me),We=function(ae){function ee(z,ie,se){se===void 0&&(se=!1);var ne=ae.call(this,z,se)||this;return ne.marker=ie,ne}return Ge(ee,ae),ee}(Me),yt=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 ie=this[ee].indexOf(z);ie>-1&&this[ee].splice(ie,1)},ae}(),xt=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 Ae,this._isOpen=!1,this.undoRedoManager=new rt,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 yt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new pe(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[bt,Be,It,Ke,Pe,lt,ot,He,st,mt,Ie,Qe,Wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[bt,Be,It,Ke,lt,ot,He]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[bt,Be,It,Ke,ot]},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(ie){if(typeof ie=="string"){var se=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===ie});se!==void 0&&z._availableMarkerTypes.push(se)}else z._availableMarkerTypes.push(ie)})},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&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new Me(ee))})},ae.prototype.render=function(){return Oe(this,void 0,void 0,function(){var ee;return Ue(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(ee=new ze).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 ie=!1;ee||this.eventListeners.beforeclose.forEach(function(se){var ne=new Me(z,!0);se(ne),ne.defaultPrevented&&(ie=!0)}),ie||(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 Me(z))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ee,z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];(ee=this._availableMarkerTypes).push.apply(ee,z)},ae.prototype.addRenderEventListener=function(ee){this.addEventListener("render",function(z){ee(z.dataUrl,z.state)})},ae.prototype.removeRenderEventListener=function(ee){},ae.prototype.addCloseEventListener=function(ee){this.addEventListener("close",function(){ee()})},ae.prototype.removeCloseEventListener=function(ee){},ae.prototype.setupResizeObserver=function(){var ee=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ee.resize(ee.target.clientWidth,ee.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ee.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ee=1*this.target.clientWidth/this.target.clientHeight,z=this.editorCanvas.clientWidth/ee>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ee:this.editorCanvas.clientWidth,ie=z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ee;this.resize(z,ie)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ee,z){this._isResizing=!0;var ie=ee/this.imageWidth,se=z/this.imageHeight;this.imageWidth=Math.round(ee),this.imageHeight=Math.round(z),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ie,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(ee,z){var ie,se=this;this._currentMarker&&this._currentMarker instanceof Ke?this._currentMarker.scale(ee,z):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(ee,z)}),ie!==void 0&&this.setCurrentMarker(ie)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var ee=this.editingTarget.getBoundingClientRect(),z=this.editorCanvas.getBoundingClientRect();this.left=ee.left-z.left,this.top=ee.top-z.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var ee,z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];this.defs=ue.createDefs(),this.addDefsToImage(),(ee=this.defs).append.apply(ee,z)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ee=document.createElement("a");ee.href="https://markerjs.com/",ee.target="_blank",ee.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',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 pt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new je(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(ee){this.markerImage.removeChild(ee.container),this.markers.indexOf(ee)>-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 We(ee,ee._currentMarker,!0);se(ne),ne.defaultPrevented&&(z=!0)}),!z){var ie=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 We(ee,ie))})}}},ae.prototype.clear=function(){var ee=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ce){var Re=new We(ee,void 0,!0);ce(Re),Re.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var ie=function(ce){var Re=se.markers[ce];se.setCurrentMarker(se.markers[ce]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(Et){return Et(new We(ee,Re))})},se=this,ne=this.markers.length-1;ne>=0;ne--)ie(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(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===z.width&&ie.height===z.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Me(ee))})}else this.undoRedoManager.replaceLastUndoStep(z),this.eventListeners.statechange.forEach(function(ne){return ne(new Me(ee))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ee=this,z=this.undoRedoManager.undo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new Me(ee))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ee=this,z=this.undoRedoManager.redo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new Me(ee))}))},ae.prototype.stepZoom=function(){var ee=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ee<this.zoomSteps.length-1?this.zoomSteps[ee+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ee){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ee.x,top:this.prevPanPoint.y-ee.y}),this.prevPanPoint=ee},ae.prototype.startRenderAndClose=function(){return Oe(this,void 0,void 0,function(){var ee,z,ie=this;return Ue(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return ee=se.sent(),z=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new ut(ie,ee,z))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ee){ee===!0&&this.setCurrentMarker();var z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ie){return z.markers.push(ie.getState())}),z},ae.prototype.restoreState=function(ee){var z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ee.markers.forEach(function(ie){var se=z._availableMarkerTypes.find(function(ce){return ce.typeName===ie.typeName});if(se!==void 0){var ne=z.addNewMarker(se);ne.restoreState(ie),z.markers.push(ne)}}),ee.width&&ee.height&&(ee.width!==this.imageWidth||ee.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ee.width,this.imageHeight/ee.height),this.eventListeners.restorestate.forEach(function(ie){return ie(new Me(z))})},ae.prototype.addNewMarker=function(ee){var z=ue.createGroup();return this.markerImage.appendChild(z),new ee(z,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ee){var z,ie=this;(z=typeof ee=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===ee}):ee)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(z),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new We(ie,ie._currentMarker))}))},ae.prototype.markerCreated=function(ee){var z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ee),this.setCurrentMarker(ee),ee instanceof Be&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Be):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new We(z,z._currentMarker))})},ae.prototype.colorChanged=function(ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ee,this.settings.defaultStrokeColor=ee)},ae.prototype.fillColorChanged=function(ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ee)},ae.prototype.markerStateChanged=function(ee){var z=this;this.eventListeners.markerchange.forEach(function(ie){return ie(new We(z,ee))})},ae.prototype.setCurrentMarker=function(ee){var z=this;this._currentMarker!==ee&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ie){return ie(new We(z,z._currentMarker))})),this._currentMarker=ee,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ie){return ie(new We(z,z._currentMarker))}))},ae.prototype.onPointerDown=function(ee){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ee.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var z=this.markers.find(function(ie){return ie.ownsTarget(ee.target)});z!==void 0?(this.setCurrentMarker(z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ee.clientX,ee.clientY),ee.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ee.clientX,y:ee.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ee.clientX,ee.clientY))},ae.prototype.onDblClick=function(ee){if(this._isFocused||this.focus(),this.mode==="select"){var z=this.markers.find(function(ie){return ie.ownsTarget(ee.target)});z!==void 0&&z!==this._currentMarker&&this.setCurrentMarker(z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ee.clientX,ee.clientY),ee.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ee){this.touchPoints!==1&&ee.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ee.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ee.clientX,ee.clientY)):this.zoomLevel>1&&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 ie=this.markerImage.getBoundingClientRect();return{x:(ee-ie.left)/this.zoomLevel,y:(z-ie.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 Me(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 Me(ee))}))},ae.instanceCounter=0,ae}()},66042:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return Ke}});var re=le(27247),Ge=le(11913),Oe=le(43403),Ue=le(34280),be=le(59301),ue=be.createContext(null),Le=be.createContext({}),ze=ue,Ce=le(74430),pe=le(32855),ht=le(92310),ye=le.n(ht),pt=le(77900),je=le(10228),Se=le(26112),xe=le(43079),Ee=le(8654),Ye=["prefixCls","className","containerRef"],tt=function(Ve){var It=Ve.prefixCls,mt=Ve.className,vt=Ve.containerRef,ot=(0,xe.Z)(Ve,Ye),ge=be.useContext(Le),fe=ge.panel,He=(0,Ee.x1)(fe,vt);return be.createElement("div",(0,pe.Z)({className:ye()("".concat(It,"-content"),mt),role:"dialog",ref:He},(0,Se.Z)(Ve,{aria:!0}),{"aria-modal":"true"},ot))},at=tt,we=le(48736);function me(Be){return typeof Be=="string"&&String(Number(Be))===Be?((0,we.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Be)):Be}function Te(Be){warning(!("wrapperClassName"in Be),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Be.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ne={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function bt(Be,Ve){var It,mt,vt,ot=Be.prefixCls,ge=Be.open,fe=Be.placement,He=Be.inline,lt=Be.push,st=Be.forceRender,Pe=Be.autoFocus,rt=Be.keyboard,Qe=Be.classNames,Wt=Be.rootClassName,Me=Be.rootStyle,ut=Be.zIndex,We=Be.className,yt=Be.id,xt=Be.style,ae=Be.motion,ee=Be.width,z=Be.height,ie=Be.children,se=Be.mask,ne=Be.maskClosable,ce=Be.maskMotion,Re=Be.maskClassName,Et=Be.maskStyle,Pt=Be.afterOpenChange,_e=Be.onClose,et=Be.onMouseEnter,qe=Be.onMouseOver,St=Be.onMouseLeave,Zt=Be.onClick,_t=Be.onKeyDown,At=Be.onKeyUp,an=Be.styles,qt=Be.drawerRender,Ht=be.useRef(),it=be.useRef(),ln=be.useRef();be.useImperativeHandle(Ve,function(){return Ht.current});var Ot=function(bn){var $t=bn.keyCode,fn=bn.shiftKey;switch($t){case je.Z.TAB:{if($t===je.Z.TAB){if(!fn&&document.activeElement===ln.current){var zt;(zt=it.current)===null||zt===void 0||zt.focus({preventScroll:!0})}else if(fn&&document.activeElement===it.current){var Jt;(Jt=ln.current)===null||Jt===void 0||Jt.focus({preventScroll:!0})}}break}case je.Z.ESC:{_e&&rt&&(bn.stopPropagation(),_e(bn));break}}};be.useEffect(function(){if(ge&&Pe){var Dn;(Dn=Ht.current)===null||Dn===void 0||Dn.focus({preventScroll:!0})}},[ge]);var Yt=be.useState(!1),dn=(0,Ge.Z)(Yt,2),Tt=dn[0],gt=dn[1],pn=be.useContext(ze),Nn;typeof lt=="boolean"?Nn=lt?{}:{distance:0}:Nn=lt||{};var Tn=(It=(mt=(vt=Nn)===null||vt===void 0?void 0:vt.distance)!==null&&mt!==void 0?mt:pn==null?void 0:pn.pushDistance)!==null&&It!==void 0?It:180,nr=be.useMemo(function(){return{pushDistance:Tn,push:function(){gt(!0)},pull:function(){gt(!1)}}},[Tn]);be.useEffect(function(){if(ge){var Dn;pn==null||(Dn=pn.push)===null||Dn===void 0||Dn.call(pn)}else{var bn;pn==null||(bn=pn.pull)===null||bn===void 0||bn.call(pn)}},[ge]),be.useEffect(function(){return function(){var Dn;pn==null||(Dn=pn.pull)===null||Dn===void 0||Dn.call(pn)}},[]);var fr=se&&be.createElement(pt.default,(0,pe.Z)({key:"mask"},ce,{visible:ge}),function(Dn,bn){var $t=Dn.className,fn=Dn.style;return be.createElement("div",{className:ye()("".concat(ot,"-mask"),$t,Qe==null?void 0:Qe.mask,Re),style:(0,re.Z)((0,re.Z)((0,re.Z)({},fn),Et),an==null?void 0:an.mask),onClick:ne&&ge?_e:void 0,ref:bn})}),br=typeof ae=="function"?ae(fe):ae,Qn={};if(Tt&&Tn)switch(fe){case"top":Qn.transform="translateY(".concat(Tn,"px)");break;case"bottom":Qn.transform="translateY(".concat(-Tn,"px)");break;case"left":Qn.transform="translateX(".concat(Tn,"px)");break;default:Qn.transform="translateX(".concat(-Tn,"px)");break}fe==="left"||fe==="right"?Qn.width=me(ee):Qn.height=me(z);var En={onMouseEnter:et,onMouseOver:qe,onMouseLeave:St,onClick:Zt,onKeyDown:_t,onKeyUp:At},sr=be.createElement(pt.default,(0,pe.Z)({key:"panel"},br,{visible:ge,forceRender:st,onVisibleChanged:function(bn){Pt==null||Pt(bn)},removeOnLeave:!1,leavedClassName:"".concat(ot,"-content-wrapper-hidden")}),function(Dn,bn){var $t=Dn.className,fn=Dn.style,zt=be.createElement(at,(0,pe.Z)({id:yt,containerRef:bn,prefixCls:ot,className:ye()(We,Qe==null?void 0:Qe.content),style:(0,re.Z)((0,re.Z)({},xt),an==null?void 0:an.content)},(0,Se.Z)(Be,{aria:!0}),En),ie);return be.createElement("div",(0,pe.Z)({className:ye()("".concat(ot,"-content-wrapper"),Qe==null?void 0:Qe.wrapper,$t),style:(0,re.Z)((0,re.Z)((0,re.Z)({},Qn),fn),an==null?void 0:an.wrapper)},(0,Se.Z)(Be,{data:!0})),qt?qt(zt):zt)}),ur=(0,re.Z)({},Me);return ut&&(ur.zIndex=ut),be.createElement(ze.Provider,{value:nr},be.createElement("div",{className:ye()(ot,"".concat(ot,"-").concat(fe),Wt,(0,Ce.Z)((0,Ce.Z)({},"".concat(ot,"-open"),ge),"".concat(ot,"-inline"),He)),style:ur,tabIndex:-1,ref:Ht,onKeyDown:Ot},fr,be.createElement("div",{tabIndex:0,ref:it,style:Ne,"aria-hidden":"true","data-sentinel":"start"}),sr,be.createElement("div",{tabIndex:0,ref:ln,style:Ne,"aria-hidden":"true","data-sentinel":"end"})))}var Ae=be.forwardRef(bt),ke=Ae,Ie=function(Ve){var It=Ve.open,mt=It===void 0?!1:It,vt=Ve.prefixCls,ot=vt===void 0?"rc-drawer":vt,ge=Ve.placement,fe=ge===void 0?"right":ge,He=Ve.autoFocus,lt=He===void 0?!0:He,st=Ve.keyboard,Pe=st===void 0?!0:st,rt=Ve.width,Qe=rt===void 0?378:rt,Wt=Ve.mask,Me=Wt===void 0?!0:Wt,ut=Ve.maskClosable,We=ut===void 0?!0:ut,yt=Ve.getContainer,xt=Ve.forceRender,ae=Ve.afterOpenChange,ee=Ve.destroyOnClose,z=Ve.onMouseEnter,ie=Ve.onMouseOver,se=Ve.onMouseLeave,ne=Ve.onClick,ce=Ve.onKeyDown,Re=Ve.onKeyUp,Et=Ve.panelRef,Pt=be.useState(!1),_e=(0,Ge.Z)(Pt,2),et=_e[0],qe=_e[1],St=be.useState(!1),Zt=(0,Ge.Z)(St,2),_t=Zt[0],At=Zt[1];(0,Ue.Z)(function(){At(!0)},[]);var an=_t?mt:!1,qt=be.useRef(),Ht=be.useRef();(0,Ue.Z)(function(){an&&(Ht.current=document.activeElement)},[an]);var it=function(Tt){var gt;if(qe(Tt),ae==null||ae(Tt),!Tt&&Ht.current&&!((gt=qt.current)!==null&&gt!==void 0&&gt.contains(Ht.current))){var pn;(pn=Ht.current)===null||pn===void 0||pn.focus({preventScroll:!0})}},ln=be.useMemo(function(){return{panel:Et}},[Et]);if(!xt&&!et&&!an&&ee)return null;var Ot={onMouseEnter:z,onMouseOver:ie,onMouseLeave:se,onClick:ne,onKeyDown:ce,onKeyUp:Re},Yt=(0,re.Z)((0,re.Z)({},Ve),{},{open:an,prefixCls:ot,placement:fe,autoFocus:lt,keyboard:Pe,width:Qe,mask:Me,maskClosable:We,inline:yt===!1,afterOpenChange:it,ref:qt},Ot);return be.createElement(Le.Provider,{value:ln},be.createElement(Oe.Z,{open:an||xt||et,autoDestroy:!1,getContainer:yt,autoLock:Me&&(an||et)},be.createElement(ke,Yt)))},De=Ie,Ke=De},23425:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return Ne}});var re=le(74430),Ge=le(32855),Oe=le(34666),Ue=le(27247),be=le(11913),ue=le(92310),Le=le.n(ue),ze=le(18929),Ce=le(10228),pe=le(26112),ht=le(48736),ye=le(59301),pt=le(17119),je=[10,20,50,100],Se=function(Ae){var ke=Ae.pageSizeOptions,Ie=ke===void 0?je:ke,De=Ae.locale,Ke=Ae.changeSize,Be=Ae.pageSize,Ve=Ae.goButton,It=Ae.quickGo,mt=Ae.rootPrefixCls,vt=Ae.disabled,ot=Ae.buildOptionText,ge=Ae.showSizeChanger,fe=Ae.sizeChangerRender,He=ye.useState(""),lt=(0,be.Z)(He,2),st=lt[0],Pe=lt[1],rt=function(){return!st||Number.isNaN(st)?void 0:Number(st)},Qe=typeof ot=="function"?ot:function(z){return"".concat(z," ").concat(De.items_per_page)},Wt=function(ie){Pe(ie.target.value)},Me=function(ie){Ve||st===""||(Pe(""),!(ie.relatedTarget&&(ie.relatedTarget.className.indexOf("".concat(mt,"-item-link"))>=0||ie.relatedTarget.className.indexOf("".concat(mt,"-item"))>=0))&&(It==null||It(rt())))},ut=function(ie){st!==""&&(ie.keyCode===Ce.Z.ENTER||ie.type==="click")&&(Pe(""),It==null||It(rt()))},We=function(){return Ie.some(function(ie){return ie.toString()===Be.toString()})?Ie:Ie.concat([Be]).sort(function(ie,se){var ne=Number.isNaN(Number(ie))?0:Number(ie),ce=Number.isNaN(Number(se))?0:Number(se);return ne-ce})},yt="".concat(mt,"-options");if(!ge&&!It)return null;var xt=null,ae=null,ee=null;return ge&&fe&&(xt=fe({disabled:vt,size:Be,onSizeChange:function(ie){Ke==null||Ke(Number(ie))},"aria-label":De.page_size,className:"".concat(yt,"-size-changer"),options:We().map(function(z){return{label:Qe(z),value:z}})})),It&&(Ve&&(ee=typeof Ve=="boolean"?ye.createElement("button",{type:"button",onClick:ut,onKeyUp:ut,disabled:vt,className:"".concat(yt,"-quick-jumper-button")},De.jump_to_confirm):ye.createElement("span",{onClick:ut,onKeyUp:ut},Ve)),ae=ye.createElement("div",{className:"".concat(yt,"-quick-jumper")},De.jump_to,ye.createElement("input",{disabled:vt,type:"text",value:st,onChange:Wt,onKeyUp:ut,onBlur:Me,"aria-label":De.page}),De.page,ee)),ye.createElement("li",{className:yt},xt,ae)},xe=Se,Ee=function(Ae){var ke=Ae.rootPrefixCls,Ie=Ae.page,De=Ae.active,Ke=Ae.className,Be=Ae.showTitle,Ve=Ae.onClick,It=Ae.onKeyPress,mt=Ae.itemRender,vt="".concat(ke,"-item"),ot=Le()(vt,"".concat(vt,"-").concat(Ie),(0,re.Z)((0,re.Z)({},"".concat(vt,"-active"),De),"".concat(vt,"-disabled"),!Ie),Ke),ge=function(){Ve(Ie)},fe=function(st){It(st,Ve,Ie)},He=mt(Ie,"page",ye.createElement("a",{rel:"nofollow"},Ie));return He?ye.createElement("li",{title:Be?String(Ie):null,className:ot,onClick:ge,onKeyDown:fe,tabIndex:0},He):null},Ye=Ee,tt=function(Ae,ke,Ie){return Ie};function at(){}function we(bt){var Ae=Number(bt);return typeof Ae=="number"&&!Number.isNaN(Ae)&&isFinite(Ae)&&Math.floor(Ae)===Ae}function me(bt,Ae,ke){var Ie=typeof bt=="undefined"?Ae:bt;return Math.floor((ke-1)/Ie)+1}var Te=function(Ae){var ke=Ae.prefixCls,Ie=ke===void 0?"rc-pagination":ke,De=Ae.selectPrefixCls,Ke=De===void 0?"rc-select":De,Be=Ae.className,Ve=Ae.current,It=Ae.defaultCurrent,mt=It===void 0?1:It,vt=Ae.total,ot=vt===void 0?0:vt,ge=Ae.pageSize,fe=Ae.defaultPageSize,He=fe===void 0?10:fe,lt=Ae.onChange,st=lt===void 0?at:lt,Pe=Ae.hideOnSinglePage,rt=Ae.align,Qe=Ae.showPrevNextJumpers,Wt=Qe===void 0?!0:Qe,Me=Ae.showQuickJumper,ut=Ae.showLessItems,We=Ae.showTitle,yt=We===void 0?!0:We,xt=Ae.onShowSizeChange,ae=xt===void 0?at:xt,ee=Ae.locale,z=ee===void 0?pt.Z:ee,ie=Ae.style,se=Ae.totalBoundaryShowSizeChanger,ne=se===void 0?50:se,ce=Ae.disabled,Re=Ae.simple,Et=Ae.showTotal,Pt=Ae.showSizeChanger,_e=Pt===void 0?ot>ne:Pt,et=Ae.sizeChangerRender,qe=Ae.pageSizeOptions,St=Ae.itemRender,Zt=St===void 0?tt:St,_t=Ae.jumpPrevIcon,At=Ae.jumpNextIcon,an=Ae.prevIcon,qt=Ae.nextIcon,Ht=ye.useRef(null),it=(0,ze.Z)(10,{value:ge,defaultValue:He}),ln=(0,be.Z)(it,2),Ot=ln[0],Yt=ln[1],dn=(0,ze.Z)(1,{value:Ve,defaultValue:mt,postState:function(ir){return Math.max(1,Math.min(ir,me(void 0,Ot,ot)))}}),Tt=(0,be.Z)(dn,2),gt=Tt[0],pn=Tt[1],Nn=ye.useState(gt),Tn=(0,be.Z)(Nn,2),nr=Tn[0],fr=Tn[1];(0,ye.useEffect)(function(){fr(gt)},[gt]);var br=st!==at,Qn="current"in Ae,En=Math.max(1,gt-(ut?3:5)),sr=Math.min(me(void 0,Ot,ot),gt+(ut?3:5));function ur(On,ir){var Sr=On||ye.createElement("button",{type:"button","aria-label":ir,className:"".concat(Ie,"-item-link")});return typeof On=="function"&&(Sr=ye.createElement(On,(0,Ue.Z)({},Ae))),Sr}function Dn(On){var ir=On.target.value,Sr=me(void 0,Ot,ot),Rr;return ir===""?Rr=ir:Number.isNaN(Number(ir))?Rr=nr:ir>=Sr?Rr=Sr:Rr=Number(ir),Rr}function bn(On){return we(On)&&On!==gt&&we(ot)&&ot>0}var $t=ot>Ot?Me:!1;function fn(On){(On.keyCode===Ce.Z.UP||On.keyCode===Ce.Z.DOWN)&&On.preventDefault()}function zt(On){var ir=Dn(On);switch(ir!==nr&&fr(ir),On.keyCode){case Ce.Z.ENTER:Sn(ir);break;case Ce.Z.UP:Sn(ir-1);break;case Ce.Z.DOWN:Sn(ir+1);break;default:break}}function Jt(On){Sn(Dn(On))}function xn(On){var ir=me(On,Ot,ot),Sr=gt>ir&&ir!==0?ir:gt;Yt(On),fr(Sr),ae==null||ae(gt,On),pn(Sr),st==null||st(Sr,On)}function Sn(On){if(bn(On)&&!ce){var ir=me(void 0,Ot,ot),Sr=On;return On>ir?Sr=ir:On<1&&(Sr=1),Sr!==nr&&fr(Sr),pn(Sr),st==null||st(Sr,Ot),Sr}return gt}var An=gt>1,Kn=gt<me(void 0,Ot,ot);function rr(){An&&Sn(gt-1)}function Jn(){Kn&&Sn(gt+1)}function Zn(){Sn(En)}function Gn(){Sn(sr)}function sn(On,ir){if(On.key==="Enter"||On.charCode===Ce.Z.ENTER||On.keyCode===Ce.Z.ENTER){for(var Sr=arguments.length,Rr=new Array(Sr>2?Sr-2:0),Nr=2;Nr<Sr;Nr++)Rr[Nr-2]=arguments[Nr];ir.apply(void 0,Rr)}}function Lt(On){sn(On,rr)}function yn(On){sn(On,Jn)}function Wn(On){sn(On,Zn)}function qn(On){sn(On,Gn)}function Xe(On){var ir=Zt(On,"prev",ur(an,"prev page"));return ye.isValidElement(ir)?ye.cloneElement(ir,{disabled:!An}):ir}function $e(On){var ir=Zt(On,"next",ur(qt,"next page"));return ye.isValidElement(ir)?ye.cloneElement(ir,{disabled:!Kn}):ir}function un(On){(On.type==="click"||On.keyCode===Ce.Z.ENTER)&&Sn(nr)}var Ut=null,ct=(0,pe.Z)(Ae,{aria:!0,data:!0}),en=Et&&ye.createElement("li",{className:"".concat(Ie,"-total-text")},Et(ot,[ot===0?0:(gt-1)*Ot+1,gt*Ot>ot?ot:gt*Ot])),hn=null,mn=me(void 0,Ot,ot);if(Pe&&ot<=Ot)return null;var Cn=[],gn={rootPrefixCls:Ie,onClick:Sn,onKeyPress:sn,showTitle:yt,itemRender:Zt,page:-1},wn=gt-1>0?gt-1:0,nt=gt+1<mn?gt+1:mn,$n=Me&&Me.goButton,kn=(0,Oe.Z)(Re)==="object"?Re.readOnly:!Re,_n=$n,zn=null;Re&&($n&&(typeof $n=="boolean"?_n=ye.createElement("button",{type:"button",onClick:un,onKeyUp:un},z.jump_to_confirm):_n=ye.createElement("span",{onClick:un,onKeyUp:un},$n),_n=ye.createElement("li",{title:yt?"".concat(z.jump_to).concat(gt,"/").concat(mn):null,className:"".concat(Ie,"-simple-pager")},_n)),zn=ye.createElement("li",{title:yt?"".concat(gt,"/").concat(mn):null,className:"".concat(Ie,"-simple-pager")},kn?nr:ye.createElement("input",{type:"text","aria-label":z.jump_to,value:nr,disabled:ce,onKeyDown:fn,onKeyUp:zt,onChange:zt,onBlur:Jt,size:3}),ye.createElement("span",{className:"".concat(Ie,"-slash")},"/"),mn));var er=ut?1:2;if(mn<=3+er*2){mn||Cn.push(ye.createElement(Ye,(0,Ge.Z)({},gn,{key:"noPager",page:1,className:"".concat(Ie,"-item-disabled")})));for(var dr=1;dr<=mn;dr+=1)Cn.push(ye.createElement(Ye,(0,Ge.Z)({},gn,{key:dr,page:dr,active:gt===dr})))}else{var Wr=ut?z.prev_3:z.prev_5,Ar=ut?z.next_3:z.next_5,gr=Zt(En,"jump-prev",ur(_t,"prev page")),Zr=Zt(sr,"jump-next",ur(At,"next page"));Wt&&(Ut=gr?ye.createElement("li",{title:yt?Wr:null,key:"prev",onClick:Zn,tabIndex:0,onKeyDown:Wn,className:Le()("".concat(Ie,"-jump-prev"),(0,re.Z)({},"".concat(Ie,"-jump-prev-custom-icon"),!!_t))},gr):null,hn=Zr?ye.createElement("li",{title:yt?Ar:null,key:"next",onClick:Gn,tabIndex:0,onKeyDown:qn,className:Le()("".concat(Ie,"-jump-next"),(0,re.Z)({},"".concat(Ie,"-jump-next-custom-icon"),!!At))},Zr):null);var vr=Math.max(1,gt-er),Gr=Math.min(gt+er,mn);gt-1<=er&&(Gr=1+er*2),mn-gt<=er&&(vr=mn-er*2);for(var qr=vr;qr<=Gr;qr+=1)Cn.push(ye.createElement(Ye,(0,Ge.Z)({},gn,{key:qr,page:qr,active:gt===qr})));if(gt-1>=er*2&&gt!==3&&(Cn[0]=ye.cloneElement(Cn[0],{className:Le()("".concat(Ie,"-item-after-jump-prev"),Cn[0].props.className)}),Cn.unshift(Ut)),mn-gt>=er*2&&gt!==mn-2){var Ur=Cn[Cn.length-1];Cn[Cn.length-1]=ye.cloneElement(Ur,{className:Le()("".concat(Ie,"-item-before-jump-next"),Ur.props.className)}),Cn.push(hn)}vr!==1&&Cn.unshift(ye.createElement(Ye,(0,Ge.Z)({},gn,{key:1,page:1}))),Gr!==mn&&Cn.push(ye.createElement(Ye,(0,Ge.Z)({},gn,{key:mn,page:mn})))}var jr=Xe(wn);if(jr){var Yr=!An||!mn;jr=ye.createElement("li",{title:yt?z.prev_page:null,onClick:rr,tabIndex:Yr?null:0,onKeyDown:Lt,className:Le()("".concat(Ie,"-prev"),(0,re.Z)({},"".concat(Ie,"-disabled"),Yr)),"aria-disabled":Yr},jr)}var Vr=$e(nt);if(Vr){var Br,$r;Re?(Br=!Kn,$r=An?0:null):(Br=!Kn||!mn,$r=Br?null:0),Vr=ye.createElement("li",{title:yt?z.next_page:null,onClick:Jn,tabIndex:$r,onKeyDown:yn,className:Le()("".concat(Ie,"-next"),(0,re.Z)({},"".concat(Ie,"-disabled"),Br)),"aria-disabled":Br},Vr)}var Kr=Le()(Ie,Be,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(Ie,"-start"),rt==="start"),"".concat(Ie,"-center"),rt==="center"),"".concat(Ie,"-end"),rt==="end"),"".concat(Ie,"-simple"),Re),"".concat(Ie,"-disabled"),ce));return ye.createElement("ul",(0,Ge.Z)({className:Kr,style:ie,ref:Ht},ct),en,jr,Re?zn:Cn,Vr,ye.createElement(xe,{locale:z,rootPrefixCls:Ie,disabled:ce,selectPrefixCls:Ke,changeSize:xn,pageSize:Ot,pageSizeOptions:qe,quickGo:$t?Sn:null,goButton:_n,showSizeChanger:_e,sizeChangerRender:et}))},Ne=Te},25930:function(tn,Xt,le){"use strict";le.d(Xt,{Cd:function(){return Ie}});var re=le(32855),Ge=le(27247),Oe=le(43079),Ue=le(59301),be=le(92310),ue=le.n(be),Le={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ze=function(){var Be=(0,Ue.useRef)([]),Ve=(0,Ue.useRef)(null);return(0,Ue.useEffect)(function(){var It=Date.now(),mt=!1;Be.current.forEach(function(vt){if(vt){mt=!0;var ot=vt.style;ot.transitionDuration=".3s, .3s, .3s, .06s",Ve.current&&It-Ve.current<100&&(ot.transitionDuration="0s, 0s")}}),mt&&(Ve.current=Date.now())}),Be.current},Ce=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],pe=function(Be){var Ve=(0,Ge.Z)((0,Ge.Z)({},Le),Be),It=Ve.className,mt=Ve.percent,vt=Ve.prefixCls,ot=Ve.strokeColor,ge=Ve.strokeLinecap,fe=Ve.strokeWidth,He=Ve.style,lt=Ve.trailColor,st=Ve.trailWidth,Pe=Ve.transition,rt=(0,Oe.Z)(Ve,Ce);delete rt.gapPosition;var Qe=Array.isArray(mt)?mt:[mt],Wt=Array.isArray(ot)?ot:[ot],Me=ze(),ut=fe/2,We=100-fe/2,yt="M ".concat(ge==="round"?ut:0,",").concat(ut,`
L `).concat(ge==="round"?We:100,",").concat(ut),xt="0 0 100 ".concat(fe),ae=0;return Ue.createElement("svg",(0,re.Z)({className:ue()("".concat(vt,"-line"),It),viewBox:xt,preserveAspectRatio:"none",style:He},rt),Ue.createElement("path",{className:"".concat(vt,"-line-trail"),d:yt,strokeLinecap:ge,stroke:lt,strokeWidth:st||fe,fillOpacity:"0"}),Qe.map(function(ee,z){var ie=1;switch(ge){case"round":ie=1-fe/100;break;case"square":ie=1-fe/2/100;break;default:ie=1;break}var se={strokeDasharray:"".concat(ee*ie,"px, 100px"),strokeDashoffset:"-".concat(ae,"px"),transition:Pe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ne=Wt[z]||Wt[Wt.length-1];return ae+=ee,Ue.createElement("path",{key:z,className:"".concat(vt,"-line-path"),d:yt,strokeLinecap:ge,stroke:ne,strokeWidth:fe,fillOpacity:"0",ref:function(Re){Me[z]=Re},style:se})}))},ht=pe,ye=le(34666),pt=le(11913),je=le(47273),Se=0,xe=(0,je.Z)();function Ee(){var Ke;return xe?(Ke=Se,Se+=1):Ke="TEST_OR_SSR",Ke}var Ye=function(Ke){var Be=Ue.useState(),Ve=(0,pt.Z)(Be,2),It=Ve[0],mt=Ve[1];return Ue.useEffect(function(){mt("rc_progress_".concat(Ee()))},[]),Ke||It},tt=function(Be){var Ve=Be.bg,It=Be.children;return Ue.createElement("div",{style:{width:"100%",height:"100%",background:Ve}},It)};function at(Ke,Be){return Object.keys(Ke).map(function(Ve){var It=parseFloat(Ve),mt="".concat(Math.floor(It*Be),"%");return"".concat(Ke[Ve]," ").concat(mt)})}var we=Ue.forwardRef(function(Ke,Be){var Ve=Ke.prefixCls,It=Ke.color,mt=Ke.gradientId,vt=Ke.radius,ot=Ke.style,ge=Ke.ptg,fe=Ke.strokeLinecap,He=Ke.strokeWidth,lt=Ke.size,st=Ke.gapDegree,Pe=It&&(0,ye.Z)(It)==="object",rt=Pe?"#FFF":void 0,Qe=lt/2,Wt=Ue.createElement("circle",{className:"".concat(Ve,"-circle-path"),r:vt,cx:Qe,cy:Qe,stroke:rt,strokeLinecap:fe,strokeWidth:He,opacity:ge===0?0:1,style:ot,ref:Be});if(!Pe)return Wt;var Me="".concat(mt,"-conic"),ut=st?"".concat(180+st/2,"deg"):"0deg",We=at(It,(360-st)/360),yt=at(It,1),xt="conic-gradient(from ".concat(ut,", ").concat(We.join(", "),")"),ae="linear-gradient(to ".concat(st?"bottom":"top",", ").concat(yt.join(", "),")");return Ue.createElement(Ue.Fragment,null,Ue.createElement("mask",{id:Me},Wt),Ue.createElement("foreignObject",{x:0,y:0,width:lt,height:lt,mask:"url(#".concat(Me,")")},Ue.createElement(tt,{bg:ae},Ue.createElement(tt,{bg:xt}))))}),me=we,Te=100,Ne=function(Be,Ve,It,mt,vt,ot,ge,fe,He,lt){var st=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Pe=It/100*360*((360-ot)/360),rt=ot===0?0:{bottom:0,top:180,left:90,right:-90}[ge],Qe=(100-mt)/100*Ve;He==="round"&&mt!==100&&(Qe+=lt/2,Qe>=Ve&&(Qe=Ve-.01));var Wt=Te/2;return{stroke:typeof fe=="string"?fe:void 0,strokeDasharray:"".concat(Ve,"px ").concat(Be),strokeDashoffset:Qe+st,transform:"rotate(".concat(vt+Pe+rt,"deg)"),transformOrigin:"".concat(Wt,"px ").concat(Wt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ae(Ke){var Be=Ke!=null?Ke:[];return Array.isArray(Be)?Be:[Be]}var ke=function(Be){var Ve=(0,Ge.Z)((0,Ge.Z)({},Le),Be),It=Ve.id,mt=Ve.prefixCls,vt=Ve.steps,ot=Ve.strokeWidth,ge=Ve.trailWidth,fe=Ve.gapDegree,He=fe===void 0?0:fe,lt=Ve.gapPosition,st=Ve.trailColor,Pe=Ve.strokeLinecap,rt=Ve.style,Qe=Ve.className,Wt=Ve.strokeColor,Me=Ve.percent,ut=(0,Oe.Z)(Ve,bt),We=Te/2,yt=Ye(It),xt="".concat(yt,"-gradient"),ae=We-ot/2,ee=Math.PI*2*ae,z=He>0?90+He/2:-90,ie=ee*((360-He)/360),se=(0,ye.Z)(vt)==="object"?vt:{count:vt,gap:2},ne=se.count,ce=se.gap,Re=Ae(Me),Et=Ae(Wt),Pt=Et.find(function(At){return At&&(0,ye.Z)(At)==="object"}),_e=Pt&&(0,ye.Z)(Pt)==="object",et=_e?"butt":Pe,qe=Ne(ee,ie,0,100,z,He,lt,st,et,ot),St=ze(),Zt=function(){var an=0;return Re.map(function(qt,Ht){var it=Et[Ht]||Et[Et.length-1],ln=Ne(ee,ie,an,qt,z,He,lt,it,et,ot);return an+=qt,Ue.createElement(me,{key:Ht,color:it,ptg:qt,radius:ae,prefixCls:mt,gradientId:xt,style:ln,strokeLinecap:et,strokeWidth:ot,gapDegree:He,ref:function(Yt){St[Ht]=Yt},size:Te})}).reverse()},_t=function(){var an=Math.round(ne*(Re[0]/100)),qt=100/ne,Ht=0;return new Array(ne).fill(null).map(function(it,ln){var Ot=ln<=an-1?Et[0]:st,Yt=Ot&&(0,ye.Z)(Ot)==="object"?"url(#".concat(xt,")"):void 0,dn=Ne(ee,ie,Ht,qt,z,He,lt,Ot,"butt",ot,ce);return Ht+=(ie-dn.strokeDashoffset+ce)*100/ie,Ue.createElement("circle",{key:ln,className:"".concat(mt,"-circle-path"),r:ae,cx:We,cy:We,stroke:Yt,strokeWidth:ot,opacity:1,style:dn,ref:function(gt){St[ln]=gt}})})};return Ue.createElement("svg",(0,re.Z)({className:ue()("".concat(mt,"-circle"),Qe),viewBox:"0 0 ".concat(Te," ").concat(Te),style:rt,id:It,role:"presentation"},ut),!ne&&Ue.createElement("circle",{className:"".concat(mt,"-circle-trail"),r:ae,cx:We,cy:We,stroke:st,strokeLinecap:et,strokeWidth:ge||ot,style:qe}),ne?_t():Zt())},Ie=ke,De={Line:ht,Circle:Ie}},738:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return at}});var re=le(32855),Ge=le(74430),Oe=le(11913),Ue=le(43079),be=le(92310),ue=le.n(be),Le=le(18929),ze=le(10228),Ce=le(26112),pe=le(59301);function ht(we,me){var Te=we.disabled,Ne=we.prefixCls,bt=we.character,Ae=we.characterRender,ke=we.index,Ie=we.count,De=we.value,Ke=we.allowHalf,Be=we.focused,Ve=we.onHover,It=we.onClick,mt=function(Pe){Ve(Pe,ke)},vt=function(Pe){It(Pe,ke)},ot=function(Pe){Pe.keyCode===ze.Z.ENTER&&It(Pe,ke)},ge=ke+1,fe=new Set([Ne]);De===0&&ke===0&&Be?fe.add("".concat(Ne,"-focused")):Ke&&De+.5>=ge&&De<ge?(fe.add("".concat(Ne,"-half")),fe.add("".concat(Ne,"-active")),Be&&fe.add("".concat(Ne,"-focused"))):(ge<=De?fe.add("".concat(Ne,"-full")):fe.add("".concat(Ne,"-zero")),ge===De&&Be&&fe.add("".concat(Ne,"-focused")));var He=typeof bt=="function"?bt(we):bt,lt=pe.createElement("li",{className:ue()(Array.from(fe)),ref:me},pe.createElement("div",{onClick:Te?null:vt,onKeyDown:Te?null:ot,onMouseMove:Te?null:mt,role:"radio","aria-checked":De>ke?"true":"false","aria-posinset":ke+1,"aria-setsize":Ie,tabIndex:Te?-1:0},pe.createElement("div",{className:"".concat(Ne,"-first")},He),pe.createElement("div",{className:"".concat(Ne,"-second")},He)));return Ae&&(lt=Ae(lt,we)),lt}var ye=pe.forwardRef(ht);function pt(){var we=pe.useRef({});function me(Ne){return we.current[Ne]}function Te(Ne){return function(bt){we.current[Ne]=bt}}return[me,Te]}function je(we){var me=we.pageXOffset,Te="scrollLeft";if(typeof me!="number"){var Ne=we.document;me=Ne.documentElement[Te],typeof me!="number"&&(me=Ne.body[Te])}return me}function Se(we){var me,Te,Ne=we.ownerDocument,bt=Ne.body,Ae=Ne&&Ne.documentElement,ke=we.getBoundingClientRect();return me=ke.left,Te=ke.top,me-=Ae.clientLeft||bt.clientLeft||0,Te-=Ae.clientTop||bt.clientTop||0,{left:me,top:Te}}function xe(we){var me=Se(we),Te=we.ownerDocument,Ne=Te.defaultView||Te.parentWindow;return me.left+=je(Ne),me.left}var Ee=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ye(we,me){var Te=we.prefixCls,Ne=Te===void 0?"rc-rate":Te,bt=we.className,Ae=we.defaultValue,ke=we.value,Ie=we.count,De=Ie===void 0?5:Ie,Ke=we.allowHalf,Be=Ke===void 0?!1:Ke,Ve=we.allowClear,It=Ve===void 0?!0:Ve,mt=we.keyboard,vt=mt===void 0?!0:mt,ot=we.character,ge=ot===void 0?"\u2605":ot,fe=we.characterRender,He=we.disabled,lt=we.direction,st=lt===void 0?"ltr":lt,Pe=we.tabIndex,rt=Pe===void 0?0:Pe,Qe=we.autoFocus,Wt=we.onHoverChange,Me=we.onChange,ut=we.onFocus,We=we.onBlur,yt=we.onKeyDown,xt=we.onMouseLeave,ae=(0,Ue.Z)(we,Ee),ee=pt(),z=(0,Oe.Z)(ee,2),ie=z[0],se=z[1],ne=pe.useRef(null),ce=function(){if(!He){var En;(En=ne.current)===null||En===void 0||En.focus()}};pe.useImperativeHandle(me,function(){return{focus:ce,blur:function(){if(!He){var En;(En=ne.current)===null||En===void 0||En.blur()}}}});var Re=(0,Le.Z)(Ae||0,{value:ke}),Et=(0,Oe.Z)(Re,2),Pt=Et[0],_e=Et[1],et=(0,Le.Z)(null),qe=(0,Oe.Z)(et,2),St=qe[0],Zt=qe[1],_t=function(En,sr){var ur=st==="rtl",Dn=En+1;if(Be){var bn=ie(En),$t=xe(bn),fn=bn.clientWidth;(ur&&sr-$t>fn/2||!ur&&sr-$t<fn/2)&&(Dn-=.5)}return Dn},At=function(En){_e(En),Me==null||Me(En)},an=pe.useState(!1),qt=(0,Oe.Z)(an,2),Ht=qt[0],it=qt[1],ln=function(){it(!0),ut==null||ut()},Ot=function(){it(!1),We==null||We()},Yt=pe.useState(null),dn=(0,Oe.Z)(Yt,2),Tt=dn[0],gt=dn[1],pn=function(En,sr){var ur=_t(sr,En.pageX);ur!==St&&(gt(ur),Zt(null)),Wt==null||Wt(ur)},Nn=function(En){He||(gt(null),Zt(null),Wt==null||Wt(void 0)),En&&(xt==null||xt(En))},Tn=function(En,sr){var ur=_t(sr,En.pageX),Dn=!1;It&&(Dn=ur===Pt),Nn(),At(Dn?0:ur),Zt(Dn?ur:null)},nr=function(En){var sr=En.keyCode,ur=st==="rtl",Dn=Be?.5:1;vt&&(sr===ze.Z.RIGHT&&Pt<De&&!ur?(At(Pt+Dn),En.preventDefault()):sr===ze.Z.LEFT&&Pt>0&&!ur||sr===ze.Z.RIGHT&&Pt>0&&ur?(At(Pt-Dn),En.preventDefault()):sr===ze.Z.LEFT&&Pt<De&&ur&&(At(Pt+Dn),En.preventDefault())),yt==null||yt(En)};pe.useEffect(function(){Qe&&!He&&ce()},[]);var fr=new Array(De).fill(0).map(function(Qn,En){return pe.createElement(ye,{ref:se(En),index:En,count:De,disabled:He,prefixCls:"".concat(Ne,"-star"),allowHalf:Be,value:Tt===null?Pt:Tt,onClick:Tn,onHover:pn,key:Qn||En,character:ge,characterRender:fe,focused:Ht})}),br=ue()(Ne,bt,(0,Ge.Z)((0,Ge.Z)({},"".concat(Ne,"-disabled"),He),"".concat(Ne,"-rtl"),st==="rtl"));return pe.createElement("ul",(0,re.Z)({className:br,onMouseLeave:Nn,tabIndex:He?-1:rt,onFocus:He?null:ln,onBlur:He?null:Ot,onKeyDown:He?null:nr,ref:ne},(0,Ce.Z)(ae,{aria:!0,data:!0,attr:!0})),fr)}var tt=pe.forwardRef(Ye),at=tt},6551:function(tn,Xt,le){"use strict";le.d(Xt,{ZP:function(){return Le}});var re=le(11913),Ge=le(59301),Oe=le(47273),Ue=0,be=(0,Oe.Z)();function ue(){var ze;return be?(ze=Ue,Ue+=1):ze="TEST_OR_SSR",ze}function Le(ze){var Ce=Ge.useState(),pe=(0,re.Z)(Ce,2),ht=pe[0],ye=pe[1];return Ge.useEffect(function(){ye("rc_select_".concat(ue()))},[]),ze||ht}},37463:function(tn,Xt,le){"use strict";le.d(Xt,{Ac:function(){return it},Xo:function(){return Ot},Wx:function(){return dn},ZP:function(){return qn},lk:function(){return at}});var re=le(32855),Ge=le(3300),Oe=le(74430),Ue=le(27247),be=le(11913),ue=le(43079),Le=le(34666),ze=le(18929),Ce=le(48736),pe=le(59301),ht=le(92310),ye=le.n(ht),pt=le(34280),je=le(49658),Se=le(8654),xe=function($e){var un=$e.className,Ut=$e.customizeIcon,ct=$e.customizeIconProps,en=$e.children,hn=$e.onMouseDown,mn=$e.onClick,Cn=typeof Ut=="function"?Ut(ct):Ut;return pe.createElement("span",{className:un,onMouseDown:function(wn){wn.preventDefault(),hn==null||hn(wn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:mn,"aria-hidden":!0},Cn!==void 0?Cn:pe.createElement("span",{className:ye()(un.split(/\s+/).map(function(gn){return"".concat(gn,"-icon")}))},en))},Ee=xe,Ye=function($e,un,Ut,ct,en){var hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,mn=arguments.length>6?arguments[6]:void 0,Cn=arguments.length>7?arguments[7]:void 0,gn=pe.useMemo(function(){if((0,Le.Z)(ct)==="object")return ct.clearIcon;if(en)return en},[ct,en]),wn=pe.useMemo(function(){return!!(!hn&&ct&&(Ut.length||mn)&&!(Cn==="combobox"&&mn===""))},[ct,hn,Ut.length,mn,Cn]);return{allowClear:wn,clearIcon:pe.createElement(Ee,{className:"".concat($e,"-clear"),onMouseDown:un,customizeIcon:gn},"\xD7")}},tt=pe.createContext(null);function at(){return pe.useContext(tt)}function we(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$e=pe.useState(!1),un=(0,be.Z)($e,2),Ut=un[0],ct=un[1],en=pe.useRef(null),hn=function(){window.clearTimeout(en.current)};pe.useEffect(function(){return hn},[]);var mn=function(gn,wn){hn(),en.current=window.setTimeout(function(){ct(gn),wn&&wn()},Xe)};return[Ut,mn,hn]}function me(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$e=pe.useRef(null),un=pe.useRef(null);pe.useEffect(function(){return function(){window.clearTimeout(un.current)}},[]);function Ut(ct){(ct||$e.current===null)&&($e.current=ct),window.clearTimeout(un.current),un.current=window.setTimeout(function(){$e.current=null},Xe)}return[function(){return $e.current},Ut]}function Te(Xe,$e,un,Ut){var ct=pe.useRef(null);ct.current={open:$e,triggerOpen:un,customizedTrigger:Ut},pe.useEffect(function(){function en(hn){var mn;if(!((mn=ct.current)!==null&&mn!==void 0&&mn.customizedTrigger)){var Cn=hn.target;Cn.shadowRoot&&hn.composed&&(Cn=hn.composedPath()[0]||Cn),ct.current.open&&Xe().filter(function(gn){return gn}).every(function(gn){return!gn.contains(Cn)&&gn!==Cn})&&ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",en),function(){return window.removeEventListener("mousedown",en)}},[])}var Ne=le(10228);function bt(Xe){return Xe&&![Ne.Z.ESC,Ne.Z.SHIFT,Ne.Z.BACKSPACE,Ne.Z.TAB,Ne.Z.WIN_KEY,Ne.Z.ALT,Ne.Z.META,Ne.Z.WIN_KEY_RIGHT,Ne.Z.CTRL,Ne.Z.SEMICOLON,Ne.Z.EQUALS,Ne.Z.CAPS_LOCK,Ne.Z.CONTEXT_MENU,Ne.Z.F1,Ne.Z.F2,Ne.Z.F3,Ne.Z.F4,Ne.Z.F5,Ne.Z.F6,Ne.Z.F7,Ne.Z.F8,Ne.Z.F9,Ne.Z.F10,Ne.Z.F11,Ne.Z.F12].includes(Xe)}var Ae=le(26112),ke=le(11780);function Ie(Xe,$e,un){var Ut=(0,Ue.Z)((0,Ue.Z)({},Xe),un?$e:{});return Object.keys($e).forEach(function(ct){var en=$e[ct];typeof en=="function"&&(Ut[ct]=function(){for(var hn,mn=arguments.length,Cn=new Array(mn),gn=0;gn<mn;gn++)Cn[gn]=arguments[gn];return en.apply(void 0,Cn),(hn=Xe[ct])===null||hn===void 0?void 0:hn.call.apply(hn,[Xe].concat(Cn))})}),Ut}var De=Ie,Ke=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Be=function($e,un){var Ut=$e.prefixCls,ct=$e.id,en=$e.inputElement,hn=$e.autoFocus,mn=$e.autoComplete,Cn=$e.editable,gn=$e.activeDescendantId,wn=$e.value,nt=$e.open,$n=$e.attrs,kn=(0,ue.Z)($e,Ke),_n=en||pe.createElement("input",null),zn=_n,er=zn.ref,dr=zn.props;return(0,Ce.Kp)(!("maxLength"in _n.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_n=pe.cloneElement(_n,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({type:"search"},De(kn,dr,!0)),{},{id:ct,ref:(0,Se.sQ)(un,er),autoComplete:mn||"off",autoFocus:hn,className:ye()("".concat(Ut,"-selection-search-input"),dr==null?void 0:dr.className),role:"combobox","aria-expanded":nt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ct,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ct,"_list"),"aria-activedescendant":nt?gn:void 0},$n),{},{value:Cn?wn:"",readOnly:!Cn,unselectable:Cn?null:"on",style:(0,Ue.Z)((0,Ue.Z)({},dr.style),{},{opacity:Cn?null:0})})),_n},Ve=pe.forwardRef(Be),It=Ve;function mt(Xe){return Array.isArray(Xe)?Xe:Xe!==void 0?[Xe]:[]}var vt=typeof window!="undefined"&&window.document&&window.document.documentElement,ot=vt;function ge(Xe){return Xe!=null}function fe(Xe){return!Xe&&Xe!==0}function He(Xe){return["string","number"].includes((0,Le.Z)(Xe))}function lt(Xe){var $e=void 0;return Xe&&(He(Xe.title)?$e=Xe.title.toString():He(Xe.label)&&($e=Xe.label.toString())),$e}function st(Xe,$e){ot?pe.useLayoutEffect(Xe,$e):pe.useEffect(Xe,$e)}function Pe(Xe){var $e;return($e=Xe.key)!==null&&$e!==void 0?$e:Xe.value}var rt=function($e){$e.preventDefault(),$e.stopPropagation()},Qe=function($e){var un=$e.id,Ut=$e.prefixCls,ct=$e.values,en=$e.open,hn=$e.searchValue,mn=$e.autoClearSearchValue,Cn=$e.inputRef,gn=$e.placeholder,wn=$e.disabled,nt=$e.mode,$n=$e.showSearch,kn=$e.autoFocus,_n=$e.autoComplete,zn=$e.activeDescendantId,er=$e.tabIndex,dr=$e.removeIcon,Wr=$e.maxTagCount,Ar=$e.maxTagTextLength,gr=$e.maxTagPlaceholder,Zr=gr===void 0?function(Ft){return"+ ".concat(Ft.length," ...")}:gr,vr=$e.tagRender,Gr=$e.onToggleOpen,qr=$e.onRemove,Ur=$e.onInputChange,jr=$e.onInputPaste,Yr=$e.onInputKeyDown,Vr=$e.onInputMouseDown,Br=$e.onInputCompositionStart,$r=$e.onInputCompositionEnd,Kr=$e.onInputBlur,On=pe.useRef(null),ir=(0,pe.useState)(0),Sr=(0,be.Z)(ir,2),Rr=Sr[0],Nr=Sr[1],Ir=(0,pe.useState)(!1),si=(0,be.Z)(Ir,2),Fe=si[0],wt=si[1],dt="".concat(Ut,"-selection"),kt=en||nt==="multiple"&&mn===!1||nt==="tags"?hn:"",Mt=nt==="tags"||nt==="multiple"&&mn===!1||$n&&(en||Fe);st(function(){Nr(On.current.scrollWidth)},[kt]);var jt=function(Rt,Gt,Bt,Kt,Vt){return pe.createElement("span",{title:lt(Rt),className:ye()("".concat(dt,"-item"),(0,Oe.Z)({},"".concat(dt,"-item-disabled"),Bt))},pe.createElement("span",{className:"".concat(dt,"-item-content")},Gt),Kt&&pe.createElement(Ee,{className:"".concat(dt,"-item-remove"),onMouseDown:rt,onClick:Vt,customizeIcon:dr},"\xD7"))},cn=function(Rt,Gt,Bt,Kt,Vt,nn){var Mn=function(Vn){rt(Vn),Gr(!en)};return pe.createElement("span",{onMouseDown:Mn},vr({label:Gt,value:Rt,disabled:Bt,closable:Kt,onClose:Vt,isMaxTag:!!nn}))},rn=function(Rt){var Gt=Rt.disabled,Bt=Rt.label,Kt=Rt.value,Vt=!wn&&!Gt,nn=Bt;if(typeof Ar=="number"&&(typeof Bt=="string"||typeof Bt=="number")){var Mn=String(nn);Mn.length>Ar&&(nn="".concat(Mn.slice(0,Ar),"..."))}var Ln=function(Bn){Bn&&Bn.stopPropagation(),qr(Rt)};return typeof vr=="function"?cn(Kt,nn,Gt,Vt,Ln):jt(Rt,nn,Gt,Vt,Ln)},Qt=function(Rt){if(!ct.length)return null;var Gt=typeof Zr=="function"?Zr(Rt):Zr;return typeof vr=="function"?cn(void 0,Gt,!1,!1,void 0,!0):jt({title:Gt},Gt,!1)},ft=pe.createElement("div",{className:"".concat(dt,"-search"),style:{width:Rr},onFocus:function(){wt(!0)},onBlur:function(){wt(!1)}},pe.createElement(It,{ref:Cn,open:en,prefixCls:Ut,id:un,inputElement:null,disabled:wn,autoFocus:kn,autoComplete:_n,editable:Mt,activeDescendantId:zn,value:kt,onKeyDown:Yr,onMouseDown:Vr,onChange:Ur,onPaste:jr,onCompositionStart:Br,onCompositionEnd:$r,onBlur:Kr,tabIndex:er,attrs:(0,Ae.Z)($e,!0)}),pe.createElement("span",{ref:On,className:"".concat(dt,"-search-mirror"),"aria-hidden":!0},kt,"\xA0")),Nt=pe.createElement(ke.Z,{prefixCls:"".concat(dt,"-overflow"),data:ct,renderItem:rn,renderRest:Qt,suffix:ft,itemKey:Pe,maxCount:Wr});return pe.createElement("span",{className:"".concat(dt,"-wrap")},Nt,!ct.length&&!kt&&pe.createElement("span",{className:"".concat(dt,"-placeholder")},gn))},Wt=Qe,Me=function($e){var un=$e.inputElement,Ut=$e.prefixCls,ct=$e.id,en=$e.inputRef,hn=$e.disabled,mn=$e.autoFocus,Cn=$e.autoComplete,gn=$e.activeDescendantId,wn=$e.mode,nt=$e.open,$n=$e.values,kn=$e.placeholder,_n=$e.tabIndex,zn=$e.showSearch,er=$e.searchValue,dr=$e.activeValue,Wr=$e.maxLength,Ar=$e.onInputKeyDown,gr=$e.onInputMouseDown,Zr=$e.onInputChange,vr=$e.onInputPaste,Gr=$e.onInputCompositionStart,qr=$e.onInputCompositionEnd,Ur=$e.onInputBlur,jr=$e.title,Yr=pe.useState(!1),Vr=(0,be.Z)(Yr,2),Br=Vr[0],$r=Vr[1],Kr=wn==="combobox",On=Kr||zn,ir=$n[0],Sr=er||"";Kr&&dr&&!Br&&(Sr=dr),pe.useEffect(function(){Kr&&$r(!1)},[Kr,dr]);var Rr=wn!=="combobox"&&!nt&&!zn?!1:!!Sr,Nr=jr===void 0?lt(ir):jr,Ir=pe.useMemo(function(){return ir?null:pe.createElement("span",{className:"".concat(Ut,"-selection-placeholder"),style:Rr?{visibility:"hidden"}:void 0},kn)},[ir,Rr,kn,Ut]);return pe.createElement("span",{className:"".concat(Ut,"-selection-wrap")},pe.createElement("span",{className:"".concat(Ut,"-selection-search")},pe.createElement(It,{ref:en,prefixCls:Ut,id:ct,open:nt,inputElement:un,disabled:hn,autoFocus:mn,autoComplete:Cn,editable:On,activeDescendantId:gn,value:Sr,onKeyDown:Ar,onMouseDown:gr,onChange:function(Fe){$r(!0),Zr(Fe)},onPaste:vr,onCompositionStart:Gr,onCompositionEnd:qr,onBlur:Ur,tabIndex:_n,attrs:(0,Ae.Z)($e,!0),maxLength:Kr?Wr:void 0})),!Kr&&ir?pe.createElement("span",{className:"".concat(Ut,"-selection-item"),title:Nr,style:Rr?{visibility:"hidden"}:void 0},ir.label):null,Ir)},ut=Me,We=function($e,un){var Ut=(0,pe.useRef)(null),ct=(0,pe.useRef)(!1),en=$e.prefixCls,hn=$e.open,mn=$e.mode,Cn=$e.showSearch,gn=$e.tokenWithEnter,wn=$e.disabled,nt=$e.prefix,$n=$e.autoClearSearchValue,kn=$e.onSearch,_n=$e.onSearchSubmit,zn=$e.onToggleOpen,er=$e.onInputKeyDown,dr=$e.onInputBlur,Wr=$e.domRef;pe.useImperativeHandle(un,function(){return{focus:function(Nr){Ut.current.focus(Nr)},blur:function(){Ut.current.blur()}}});var Ar=me(0),gr=(0,be.Z)(Ar,2),Zr=gr[0],vr=gr[1],Gr=function(Nr){var Ir=Nr.which,si=Ut.current instanceof HTMLTextAreaElement;!si&&hn&&(Ir===Ne.Z.UP||Ir===Ne.Z.DOWN)&&Nr.preventDefault(),er&&er(Nr),Ir===Ne.Z.ENTER&&mn==="tags"&&!ct.current&&!hn&&(_n==null||_n(Nr.target.value)),!(si&&!hn&&~[Ne.Z.UP,Ne.Z.DOWN,Ne.Z.LEFT,Ne.Z.RIGHT].indexOf(Ir))&&bt(Ir)&&zn(!0)},qr=function(){vr(!0)},Ur=(0,pe.useRef)(null),jr=function(Nr){kn(Nr,!0,ct.current)!==!1&&zn(!0)},Yr=function(){ct.current=!0},Vr=function(Nr){ct.current=!1,mn!=="combobox"&&jr(Nr.target.value)},Br=function(Nr){var Ir=Nr.target.value;if(gn&&Ur.current&&/[\r\n]/.test(Ur.current)){var si=Ur.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ir=Ir.replace(si,Ur.current)}Ur.current=null,jr(Ir)},$r=function(Nr){var Ir=Nr.clipboardData,si=Ir==null?void 0:Ir.getData("text");Ur.current=si||""},Kr=function(Nr){var Ir=Nr.target;if(Ir!==Ut.current){var si=document.body.style.msTouchAction!==void 0;si?setTimeout(function(){Ut.current.focus()}):Ut.current.focus()}},On=function(Nr){var Ir=Zr();Nr.target!==Ut.current&&!Ir&&!(mn==="combobox"&&wn)&&Nr.preventDefault(),(mn!=="combobox"&&(!Cn||!Ir)||!hn)&&(hn&&$n!==!1&&kn("",!0,!1),zn())},ir={inputRef:Ut,onInputKeyDown:Gr,onInputMouseDown:qr,onInputChange:Br,onInputPaste:$r,onInputCompositionStart:Yr,onInputCompositionEnd:Vr,onInputBlur:dr},Sr=mn==="multiple"||mn==="tags"?pe.createElement(Wt,(0,re.Z)({},$e,ir)):pe.createElement(ut,(0,re.Z)({},$e,ir));return pe.createElement("div",{ref:Wr,className:"".concat(en,"-selector"),onClick:Kr,onMouseDown:On},nt&&pe.createElement("div",{className:"".concat(en,"-prefix")},nt),Sr)},yt=pe.forwardRef(We),xt=yt,ae=le(65030),ee=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function($e){var un=$e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:un,adjustY:1},htmlRegion:"scroll"}}},ie=function($e,un){var Ut=$e.prefixCls,ct=$e.disabled,en=$e.visible,hn=$e.children,mn=$e.popupElement,Cn=$e.animation,gn=$e.transitionName,wn=$e.dropdownStyle,nt=$e.dropdownClassName,$n=$e.direction,kn=$n===void 0?"ltr":$n,_n=$e.placement,zn=$e.builtinPlacements,er=$e.dropdownMatchSelectWidth,dr=$e.dropdownRender,Wr=$e.dropdownAlign,Ar=$e.getPopupContainer,gr=$e.empty,Zr=$e.getTriggerDOMNode,vr=$e.onPopupVisibleChange,Gr=$e.onPopupMouseEnter,qr=(0,ue.Z)($e,ee),Ur="".concat(Ut,"-dropdown"),jr=mn;dr&&(jr=dr(mn));var Yr=pe.useMemo(function(){return zn||z(er)},[zn,er]),Vr=Cn?"".concat(Ur,"-").concat(Cn):gn,Br=typeof er=="number",$r=pe.useMemo(function(){return Br?null:er===!1?"minWidth":"width"},[er,Br]),Kr=wn;Br&&(Kr=(0,Ue.Z)((0,Ue.Z)({},Kr),{},{width:er}));var On=pe.useRef(null);return pe.useImperativeHandle(un,function(){return{getPopupElement:function(){var Sr;return(Sr=On.current)===null||Sr===void 0?void 0:Sr.popupElement}}}),pe.createElement(ae.Z,(0,re.Z)({},qr,{showAction:vr?["click"]:[],hideAction:vr?["click"]:[],popupPlacement:_n||(kn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yr,prefixCls:Ur,popupTransitionName:Vr,popup:pe.createElement("div",{onMouseEnter:Gr},jr),ref:On,stretch:$r,popupAlign:Wr,popupVisible:en,getPopupContainer:Ar,popupClassName:ye()(nt,(0,Oe.Z)({},"".concat(Ur,"-empty"),gr)),popupStyle:Kr,getTriggerDOMNode:Zr,onPopupVisibleChange:vr}),hn)},se=pe.forwardRef(ie),ne=se,ce=le(40954);function Re(Xe,$e){var un=Xe.key,Ut;return"value"in Xe&&(Ut=Xe.value),un!=null?un:Ut!==void 0?Ut:"rc-index-key-".concat($e)}function Et(Xe){return typeof Xe!="undefined"&&!Number.isNaN(Xe)}function Pt(Xe,$e){var un=Xe||{},Ut=un.label,ct=un.value,en=un.options,hn=un.groupLabel,mn=Ut||($e?"children":"label");return{label:mn,value:ct||"value",options:en||"options",groupLabel:hn||mn}}function _e(Xe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=$e.fieldNames,Ut=$e.childrenAsData,ct=[],en=Pt(un,!1),hn=en.label,mn=en.value,Cn=en.options,gn=en.groupLabel;function wn(nt,$n){Array.isArray(nt)&&nt.forEach(function(kn){if($n||!(Cn in kn)){var _n=kn[mn];ct.push({key:Re(kn,ct.length),groupOption:$n,data:kn,label:kn[hn],value:_n})}else{var zn=kn[gn];zn===void 0&&Ut&&(zn=kn.label),ct.push({key:Re(kn,ct.length),group:!0,data:kn,label:zn}),wn(kn[Cn],!0)}})}return wn(Xe,!1),ct}function et(Xe){var $e=(0,Ue.Z)({},Xe);return"props"in $e||Object.defineProperty($e,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$e}}),$e}var qe=function($e,un,Ut){if(!un||!un.length)return null;var ct=!1,en=function mn(Cn,gn){var wn=(0,ce.Z)(gn),nt=wn[0],$n=wn.slice(1);if(!nt)return[Cn];var kn=Cn.split(nt);return ct=ct||kn.length>1,kn.reduce(function(_n,zn){return[].concat((0,Ge.Z)(_n),(0,Ge.Z)(mn(zn,$n)))},[]).filter(Boolean)},hn=en($e,un);return ct?typeof Ut!="undefined"?hn.slice(0,Ut):hn:null},St=pe.createContext(null),Zt=St;function _t(Xe){var $e=Xe.visible,un=Xe.values;if(!$e)return null;var Ut=50;return pe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(un.slice(0,Ut).map(function(ct){var en=ct.label,hn=ct.value;return["number","string"].includes((0,Le.Z)(en))?en:hn}).join(", ")),un.length>Ut?", ...":null)}var At=["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"],an=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],qt=function($e){return $e==="tags"||$e==="multiple"},Ht=pe.forwardRef(function(Xe,$e){var un,Ut=Xe.id,ct=Xe.prefixCls,en=Xe.className,hn=Xe.showSearch,mn=Xe.tagRender,Cn=Xe.direction,gn=Xe.omitDomProps,wn=Xe.displayValues,nt=Xe.onDisplayValuesChange,$n=Xe.emptyOptions,kn=Xe.notFoundContent,_n=kn===void 0?"Not Found":kn,zn=Xe.onClear,er=Xe.mode,dr=Xe.disabled,Wr=Xe.loading,Ar=Xe.getInputElement,gr=Xe.getRawInputElement,Zr=Xe.open,vr=Xe.defaultOpen,Gr=Xe.onDropdownVisibleChange,qr=Xe.activeValue,Ur=Xe.onActiveValueChange,jr=Xe.activeDescendantId,Yr=Xe.searchValue,Vr=Xe.autoClearSearchValue,Br=Xe.onSearch,$r=Xe.onSearchSplit,Kr=Xe.tokenSeparators,On=Xe.allowClear,ir=Xe.prefix,Sr=Xe.suffixIcon,Rr=Xe.clearIcon,Nr=Xe.OptionList,Ir=Xe.animation,si=Xe.transitionName,Fe=Xe.dropdownStyle,wt=Xe.dropdownClassName,dt=Xe.dropdownMatchSelectWidth,kt=Xe.dropdownRender,Mt=Xe.dropdownAlign,jt=Xe.placement,cn=Xe.builtinPlacements,rn=Xe.getPopupContainer,Qt=Xe.showAction,ft=Qt===void 0?[]:Qt,Nt=Xe.onFocus,Ft=Xe.onBlur,Rt=Xe.onKeyUp,Gt=Xe.onKeyDown,Bt=Xe.onMouseDown,Kt=(0,ue.Z)(Xe,At),Vt=qt(er),nn=(hn!==void 0?hn:Vt)||er==="combobox",Mn=(0,Ue.Z)({},Kt);an.forEach(function(_r){delete Mn[_r]}),gn==null||gn.forEach(function(_r){delete Mn[_r]});var Ln=pe.useState(!1),Vn=(0,be.Z)(Ln,2),Bn=Vn[0],tr=Vn[1];pe.useEffect(function(){tr((0,je.Z)())},[]);var ar=pe.useRef(null),yr=pe.useRef(null),lr=pe.useRef(null),Er=pe.useRef(null),Lr=pe.useRef(null),xr=pe.useRef(!1),Dr=we(),or=(0,be.Z)(Dr,3),In=or[0],Yn=or[1],Hn=or[2];pe.useImperativeHandle($e,function(){var _r,Mr;return{focus:(_r=Er.current)===null||_r===void 0?void 0:_r.focus,blur:(Mr=Er.current)===null||Mr===void 0?void 0:Mr.blur,scrollTo:function(pi){var bi;return(bi=Lr.current)===null||bi===void 0?void 0:bi.scrollTo(pi)},nativeElement:ar.current||yr.current}});var kr=pe.useMemo(function(){var _r;if(er!=="combobox")return Yr;var Mr=(_r=wn[0])===null||_r===void 0?void 0:_r.value;return typeof Mr=="string"||typeof Mr=="number"?String(Mr):""},[Yr,er,wn]),Cr=er==="combobox"&&typeof Ar=="function"&&Ar()||null,Pr=typeof gr=="function"&&gr(),Xr=(0,Se.x1)(yr,Pr==null||(un=Pr.props)===null||un===void 0?void 0:un.ref),wi=pe.useState(!1),oi=(0,be.Z)(wi,2),Gi=oi[0],Pi=oi[1];(0,pt.Z)(function(){Pi(!0)},[]);var Jr=(0,ze.Z)(!1,{defaultValue:vr,value:Zr}),ei=(0,be.Z)(Jr,2),ti=ei[0],ki=ei[1],ii=Gi?ti:!1,ui=!_n&&$n;(dr||ui&&ii&&er==="combobox")&&(ii=!1);var ai=ui?!1:ii,Un=pe.useCallback(function(_r){var Mr=_r!==void 0?_r:!ii;dr||(ki(Mr),ii!==Mr&&(Gr==null||Gr(Mr)))},[dr,ii,ki,Gr]),hr=pe.useMemo(function(){return(Kr||[]).some(function(_r){return[`
`,`\r
`].includes(_r)})},[Kr]),pr=pe.useContext(Zt)||{},mr=pr.maxCount,Hr=pr.rawValues,Qr=function(Mr,gi,pi){if(!(Vt&&Et(mr)&&(Hr==null?void 0:Hr.size)>=mr)){var bi=!0,Ai=Mr;Ur==null||Ur(null);var so=qe(Mr,Kr,Et(mr)?mr-Hr.size:void 0),io=pi?null:so;return er!=="combobox"&&io&&(Ai="",$r==null||$r(io),Un(!1),bi=!1),Br&&kr!==Ai&&Br(Ai,{source:gi?"typing":"effect"}),bi}},zi=function(Mr){!Mr||!Mr.trim()||Br(Mr,{source:"submit"})};pe.useEffect(function(){!ii&&!Vt&&er!=="combobox"&&Qr("",!1,!1)},[ii]),pe.useEffect(function(){ti&&dr&&ki(!1),dr&&!xr.current&&Yn(!1)},[dr]);var fi=me(),di=(0,be.Z)(fi,2),Tr=di[0],xi=di[1],Ui=pe.useRef(!1),ni=function(Mr){var gi=Tr(),pi=Mr.key,bi=pi==="Enter";if(bi&&(er!=="combobox"&&Mr.preventDefault(),ii||Un(!0)),xi(!!kr),pi==="Backspace"&&!gi&&Vt&&!kr&&wn.length){for(var Ai=(0,Ge.Z)(wn),so=null,io=Ai.length-1;io>=0;io-=1){var go=Ai[io];if(!go.disabled){Ai.splice(io,1),so=go;break}}so&&nt(Ai,{type:"remove",values:[so]})}for(var vi=arguments.length,Mi=new Array(vi>1?vi-1:0),Qi=1;Qi<vi;Qi++)Mi[Qi-1]=arguments[Qi];if(ii&&(!bi||!Ui.current)){var uo;bi&&(Ui.current=!0),(uo=Lr.current)===null||uo===void 0||uo.onKeyDown.apply(uo,[Mr].concat(Mi))}Gt==null||Gt.apply(void 0,[Mr].concat(Mi))},lo=function(Mr){for(var gi=arguments.length,pi=new Array(gi>1?gi-1:0),bi=1;bi<gi;bi++)pi[bi-1]=arguments[bi];if(ii){var Ai;(Ai=Lr.current)===null||Ai===void 0||Ai.onKeyUp.apply(Ai,[Mr].concat(pi))}Mr.key==="Enter"&&(Ui.current=!1),Rt==null||Rt.apply(void 0,[Mr].concat(pi))},Vi=function(Mr){var gi=wn.filter(function(pi){return pi!==Mr});nt(gi,{type:"remove",values:[Mr]})},Ji=function(){Ui.current=!1},mi=pe.useRef(!1),ra=function(){Yn(!0),dr||(Nt&&!mi.current&&Nt.apply(void 0,arguments),ft.includes("focus")&&Un(!0)),mi.current=!0},Jo=function(){xr.current=!0,Yn(!1,function(){mi.current=!1,xr.current=!1,Un(!1)}),!dr&&(kr&&(er==="tags"?Br(kr,{source:"submit"}):er==="multiple"&&Br("",{source:"blur"})),Ft&&Ft.apply(void 0,arguments))},vo=[];pe.useEffect(function(){return function(){vo.forEach(function(_r){return clearTimeout(_r)}),vo.splice(0,vo.length)}},[]);var mo=function(Mr){var gi,pi=Mr.target,bi=(gi=lr.current)===null||gi===void 0?void 0:gi.getPopupElement();if(bi&&bi.contains(pi)){var Ai=setTimeout(function(){var vi=vo.indexOf(Ai);if(vi!==-1&&vo.splice(vi,1),Hn(),!Bn&&!bi.contains(document.activeElement)){var Mi;(Mi=Er.current)===null||Mi===void 0||Mi.focus()}});vo.push(Ai)}for(var so=arguments.length,io=new Array(so>1?so-1:0),go=1;go<so;go++)io[go-1]=arguments[go];Bt==null||Bt.apply(void 0,[Mr].concat(io))},ro=pe.useState({}),Eo=(0,be.Z)(ro,2),ia=Eo[1];function oa(){ia({})}var aa;Pr&&(aa=function(Mr){Un(Mr)}),Te(function(){var _r;return[ar.current,(_r=lr.current)===null||_r===void 0?void 0:_r.getPopupElement()]},ai,Un,!!Pr);var _o=pe.useMemo(function(){return(0,Ue.Z)((0,Ue.Z)({},Xe),{},{notFoundContent:_n,open:ii,triggerOpen:ai,id:Ut,showSearch:nn,multiple:Vt,toggleOpen:Un})},[Xe,_n,ai,ii,Ut,nn,Vt,Un]),Qo=!!Sr||Wr,Zo;Qo&&(Zo=pe.createElement(Ee,{className:ye()("".concat(ct,"-arrow"),(0,Oe.Z)({},"".concat(ct,"-arrow-loading"),Wr)),customizeIcon:Sr,customizeIconProps:{loading:Wr,searchValue:kr,open:ii,focused:In,showSearch:nn}}));var ko=function(){var Mr;zn==null||zn(),(Mr=Er.current)===null||Mr===void 0||Mr.focus(),nt([],{type:"clear",values:wn}),Qr("",!1,!1)},qo=Ye(ct,ko,wn,On,Rr,dr,kr,er),la=qo.allowClear,Ho=qo.clearIcon,Ao=pe.createElement(Nr,{ref:Lr}),Do=ye()(ct,en,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat(ct,"-focused"),In),"".concat(ct,"-multiple"),Vt),"".concat(ct,"-single"),!Vt),"".concat(ct,"-allow-clear"),On),"".concat(ct,"-show-arrow"),Qo),"".concat(ct,"-disabled"),dr),"".concat(ct,"-loading"),Wr),"".concat(ct,"-open"),ii),"".concat(ct,"-customize-input"),Cr),"".concat(ct,"-show-search"),nn)),Zi=pe.createElement(ne,{ref:lr,disabled:dr,prefixCls:ct,visible:ai,popupElement:Ao,animation:Ir,transitionName:si,dropdownStyle:Fe,dropdownClassName:wt,direction:Cn,dropdownMatchSelectWidth:dt,dropdownRender:kt,dropdownAlign:Mt,placement:jt,builtinPlacements:cn,getPopupContainer:rn,empty:$n,getTriggerDOMNode:function(Mr){return yr.current||Mr},onPopupVisibleChange:aa,onPopupMouseEnter:oa},Pr?pe.cloneElement(Pr,{ref:Xr}):pe.createElement(xt,(0,re.Z)({},Xe,{domRef:yr,prefixCls:ct,inputElement:Cr,ref:Er,id:Ut,prefix:ir,showSearch:nn,autoClearSearchValue:Vr,mode:er,activeDescendantId:jr,tagRender:mn,values:wn,open:ii,onToggleOpen:Un,activeValue:qr,searchValue:kr,onSearch:Qr,onSearchSubmit:zi,onRemove:Vi,tokenWithEnter:hr,onInputBlur:Ji}))),hi;return Pr?hi=Zi:hi=pe.createElement("div",(0,re.Z)({className:Do},Mn,{ref:ar,onMouseDown:mo,onKeyDown:ni,onKeyUp:lo,onFocus:ra,onBlur:Jo}),pe.createElement(_t,{visible:In&&!ii,values:wn}),Zi,Zo,la&&Ho),pe.createElement(tt.Provider,{value:_o},hi)}),it=Ht,ln=function(){return null};ln.isSelectOptGroup=!0;var Ot=ln,Yt=function(){return null};Yt.isSelectOption=!0;var dn=Yt,Tt=le(80547),gt=le(2738),pn=le(6790);function Nn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Tn=["disabled","title","children","style","className"];function nr(Xe){return typeof Xe=="string"||typeof Xe=="number"}var fr=function($e,un){var Ut=at(),ct=Ut.prefixCls,en=Ut.id,hn=Ut.open,mn=Ut.multiple,Cn=Ut.mode,gn=Ut.searchValue,wn=Ut.toggleOpen,nt=Ut.notFoundContent,$n=Ut.onPopupScroll,kn=pe.useContext(Zt),_n=kn.maxCount,zn=kn.flattenOptions,er=kn.onActiveValue,dr=kn.defaultActiveFirstOption,Wr=kn.onSelect,Ar=kn.menuItemSelectedIcon,gr=kn.rawValues,Zr=kn.fieldNames,vr=kn.virtual,Gr=kn.direction,qr=kn.listHeight,Ur=kn.listItemHeight,jr=kn.optionRender,Yr="".concat(ct,"-item"),Vr=(0,Tt.Z)(function(){return zn},[hn,zn],function(Qt,ft){return ft[0]&&Qt[1]!==ft[1]}),Br=pe.useRef(null),$r=pe.useMemo(function(){return mn&&Et(_n)&&(gr==null?void 0:gr.size)>=_n},[mn,_n,gr==null?void 0:gr.size]),Kr=function(ft){ft.preventDefault()},On=function(ft){var Nt;(Nt=Br.current)===null||Nt===void 0||Nt.scrollTo(typeof ft=="number"?{index:ft}:ft)},ir=pe.useCallback(function(Qt){return Cn==="combobox"?!1:gr.has(Qt)},[Cn,(0,Ge.Z)(gr).toString(),gr.size]),Sr=function(ft){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ft=Vr.length,Rt=0;Rt<Ft;Rt+=1){var Gt=(ft+Rt*Nt+Ft)%Ft,Bt=Vr[Gt]||{},Kt=Bt.group,Vt=Bt.data;if(!Kt&&!(Vt!=null&&Vt.disabled)&&(ir(Vt.value)||!$r))return Gt}return-1},Rr=pe.useState(function(){return Sr(0)}),Nr=(0,be.Z)(Rr,2),Ir=Nr[0],si=Nr[1],Fe=function(ft){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;si(ft);var Ft={source:Nt?"keyboard":"mouse"},Rt=Vr[ft];if(!Rt){er(null,-1,Ft);return}er(Rt.value,ft,Ft)};(0,pe.useEffect)(function(){Fe(dr!==!1?Sr(0):-1)},[Vr.length,gn]);var wt=pe.useCallback(function(Qt){return Cn==="combobox"?String(Qt).toLowerCase()===gn.toLowerCase():gr.has(Qt)},[Cn,gn,(0,Ge.Z)(gr).toString(),gr.size]);(0,pe.useEffect)(function(){var Qt=setTimeout(function(){if(!mn&&hn&&gr.size===1){var Nt=Array.from(gr)[0],Ft=Vr.findIndex(function(Rt){var Gt=Rt.data;return gn?String(Gt.value).startsWith(gn):Gt.value===Nt});Ft!==-1&&(Fe(Ft),On(Ft))}});if(hn){var ft;(ft=Br.current)===null||ft===void 0||ft.scrollTo(void 0)}return function(){return clearTimeout(Qt)}},[hn,gn]);var dt=function(ft){ft!==void 0&&Wr(ft,{selected:!gr.has(ft)}),mn||wn(!1)};if(pe.useImperativeHandle(un,function(){return{onKeyDown:function(ft){var Nt=ft.which,Ft=ft.ctrlKey;switch(Nt){case Ne.Z.N:case Ne.Z.P:case Ne.Z.UP:case Ne.Z.DOWN:{var Rt=0;if(Nt===Ne.Z.UP?Rt=-1:Nt===Ne.Z.DOWN?Rt=1:Nn()&&Ft&&(Nt===Ne.Z.N?Rt=1:Nt===Ne.Z.P&&(Rt=-1)),Rt!==0){var Gt=Sr(Ir+Rt,Rt);On(Gt),Fe(Gt,!0)}break}case Ne.Z.TAB:case Ne.Z.ENTER:{var Bt,Kt=Vr[Ir];Kt&&!(Kt!=null&&(Bt=Kt.data)!==null&&Bt!==void 0&&Bt.disabled)&&!$r?dt(Kt.value):dt(void 0),hn&&ft.preventDefault();break}case Ne.Z.ESC:wn(!1),hn&&ft.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ft){On(ft)}}}),Vr.length===0)return pe.createElement("div",{role:"listbox",id:"".concat(en,"_list"),className:"".concat(Yr,"-empty"),onMouseDown:Kr},nt);var kt=Object.keys(Zr).map(function(Qt){return Zr[Qt]}),Mt=function(ft){return ft.label};function jt(Qt,ft){var Nt=Qt.group;return{role:Nt?"presentation":"option",id:"".concat(en,"_list_").concat(ft)}}var cn=function(ft){var Nt=Vr[ft];if(!Nt)return null;var Ft=Nt.data||{},Rt=Ft.value,Gt=Nt.group,Bt=(0,Ae.Z)(Ft,!0),Kt=Mt(Nt);return Nt?pe.createElement("div",(0,re.Z)({"aria-label":typeof Kt=="string"&&!Gt?Kt:null},Bt,{key:ft},jt(Nt,ft),{"aria-selected":wt(Rt)}),Rt):null},rn={role:"listbox",id:"".concat(en,"_list")};return pe.createElement(pe.Fragment,null,vr&&pe.createElement("div",(0,re.Z)({},rn,{style:{height:0,width:0,overflow:"hidden"}}),cn(Ir-1),cn(Ir),cn(Ir+1)),pe.createElement(pn.Z,{itemKey:"key",ref:Br,data:Vr,height:qr,itemHeight:Ur,fullHeight:!1,onMouseDown:Kr,onScroll:$n,virtual:vr,direction:Gr,innerProps:vr?null:rn},function(Qt,ft){var Nt=Qt.group,Ft=Qt.groupOption,Rt=Qt.data,Gt=Qt.label,Bt=Qt.value,Kt=Rt.key;if(Nt){var Vt,nn=(Vt=Rt.title)!==null&&Vt!==void 0?Vt:nr(Gt)?Gt.toString():void 0;return pe.createElement("div",{className:ye()(Yr,"".concat(Yr,"-group"),Rt.className),title:nn},Gt!==void 0?Gt:Kt)}var Mn=Rt.disabled,Ln=Rt.title,Vn=Rt.children,Bn=Rt.style,tr=Rt.className,ar=(0,ue.Z)(Rt,Tn),yr=(0,gt.Z)(ar,kt),lr=ir(Bt),Er=Mn||!lr&&$r,Lr="".concat(Yr,"-option"),xr=ye()(Yr,Lr,tr,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat(Lr,"-grouped"),Ft),"".concat(Lr,"-active"),Ir===ft&&!Er),"".concat(Lr,"-disabled"),Er),"".concat(Lr,"-selected"),lr)),Dr=Mt(Qt),or=!Ar||typeof Ar=="function"||lr,In=typeof Dr=="number"?Dr:Dr||Bt,Yn=nr(In)?In.toString():void 0;return Ln!==void 0&&(Yn=Ln),pe.createElement("div",(0,re.Z)({},(0,Ae.Z)(yr),vr?{}:jt(Qt,ft),{"aria-selected":wt(Bt),className:xr,title:Yn,onMouseMove:function(){Ir===ft||Er||Fe(ft)},onClick:function(){Er||dt(Bt)},style:Bn}),pe.createElement("div",{className:"".concat(Lr,"-content")},typeof jr=="function"?jr(Qt,{index:ft}):In),pe.isValidElement(Ar)||lr,or&&pe.createElement(Ee,{className:"".concat(Yr,"-option-state"),customizeIcon:Ar,customizeIconProps:{value:Bt,disabled:Er,isSelected:lr}},lr?"\u2713":null))}))},br=pe.forwardRef(fr),Qn=br,En=function(Xe,$e){var un=pe.useRef({values:new Map,options:new Map}),Ut=pe.useMemo(function(){var en=un.current,hn=en.values,mn=en.options,Cn=Xe.map(function(nt){if(nt.label===void 0){var $n;return(0,Ue.Z)((0,Ue.Z)({},nt),{},{label:($n=hn.get(nt.value))===null||$n===void 0?void 0:$n.label})}return nt}),gn=new Map,wn=new Map;return Cn.forEach(function(nt){gn.set(nt.value,nt),wn.set(nt.value,$e.get(nt.value)||mn.get(nt.value))}),un.current.values=gn,un.current.options=wn,Cn},[Xe,$e]),ct=pe.useCallback(function(en){return $e.get(en)||un.current.options.get(en)},[$e]);return[Ut,ct]};function sr(Xe,$e){return mt(Xe).join("").toUpperCase().includes($e)}var ur=function(Xe,$e,un,Ut,ct){return pe.useMemo(function(){if(!un||Ut===!1)return Xe;var en=$e.options,hn=$e.label,mn=$e.value,Cn=[],gn=typeof Ut=="function",wn=un.toUpperCase(),nt=gn?Ut:function(kn,_n){return ct?sr(_n[ct],wn):_n[en]?sr(_n[hn!=="children"?hn:"label"],wn):sr(_n[mn],wn)},$n=gn?function(kn){return et(kn)}:function(kn){return kn};return Xe.forEach(function(kn){if(kn[en]){var _n=nt(un,$n(kn));if(_n)Cn.push(kn);else{var zn=kn[en].filter(function(er){return nt(un,$n(er))});zn.length&&Cn.push((0,Ue.Z)((0,Ue.Z)({},kn),{},(0,Oe.Z)({},en,zn)))}return}nt(un,$n(kn))&&Cn.push(kn)}),Cn},[Xe,Ut,ct,un,$e])},Dn=le(6551),bn=le(11592),$t=["children","value"],fn=["children"];function zt(Xe){var $e=Xe,un=$e.key,Ut=$e.props,ct=Ut.children,en=Ut.value,hn=(0,ue.Z)(Ut,$t);return(0,Ue.Z)({key:un,value:en!==void 0?en:un,children:ct},hn)}function Jt(Xe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,bn.Z)(Xe).map(function(un,Ut){if(!pe.isValidElement(un)||!un.type)return null;var ct=un,en=ct.type.isSelectOptGroup,hn=ct.key,mn=ct.props,Cn=mn.children,gn=(0,ue.Z)(mn,fn);return $e||!en?zt(un):(0,Ue.Z)((0,Ue.Z)({key:"__RC_SELECT_GRP__".concat(hn===null?Ut:hn,"__"),label:hn},gn),{},{options:Jt(Cn)})}).filter(function(un){return un})}var xn=function($e,un,Ut,ct,en){return pe.useMemo(function(){var hn=$e,mn=!$e;mn&&(hn=Jt(un));var Cn=new Map,gn=new Map,wn=function(kn,_n,zn){zn&&typeof zn=="string"&&kn.set(_n[zn],_n)},nt=function $n(kn){for(var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zn=0;zn<kn.length;zn+=1){var er=kn[zn];!er[Ut.options]||_n?(Cn.set(er[Ut.value],er),wn(gn,er,Ut.label),wn(gn,er,ct),wn(gn,er,en)):$n(er[Ut.options],!0)}};return nt(hn),{options:hn,valueOptions:Cn,labelOptions:gn}},[$e,un,Ut,ct,en])},Sn=xn;function An(Xe){var $e=pe.useRef();$e.current=Xe;var un=pe.useCallback(function(){return $e.current.apply($e,arguments)},[]);return un}function Kn(Xe){var $e=Xe.mode,un=Xe.options,Ut=Xe.children,ct=Xe.backfill,en=Xe.allowClear,hn=Xe.placeholder,mn=Xe.getInputElement,Cn=Xe.showSearch,gn=Xe.onSearch,wn=Xe.defaultOpen,nt=Xe.autoFocus,$n=Xe.labelInValue,kn=Xe.value,_n=Xe.inputValue,zn=Xe.optionLabelProp,er=isMultiple($e),dr=Cn!==void 0?Cn:er||$e==="combobox",Wr=un||convertChildrenToData(Ut);if(warning($e!=="tags"||Wr.every(function(vr){return!vr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$e==="tags"||$e==="combobox"){var Ar=Wr.some(function(vr){return vr.options?vr.options.some(function(Gr){return typeof("value"in Gr?Gr.value:Gr.key)=="number"}):typeof("value"in vr?vr.value:vr.key)=="number"});warning(!Ar,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning($e!=="combobox"||!zn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning($e==="combobox"||!ct,"`backfill` only works with `combobox` mode."),warning($e==="combobox"||!mn,"`getInputElement` only work with `combobox` mode."),noteOnce($e!=="combobox"||!mn||!en||!hn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),gn&&!dr&&$e!=="combobox"&&$e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!wn||nt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),kn!=null){var gr=toArray(kn);warning(!$n||gr.every(function(vr){return _typeof(vr)==="object"&&("key"in vr||"value"in vr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!er||Array.isArray(kn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ut){var Zr=null;toNodeArray(Ut).some(function(vr){if(!React.isValidElement(vr)||!vr.type)return!1;var Gr=vr,qr=Gr.type;if(qr.isSelectOption)return!1;if(qr.isSelectOptGroup){var Ur=toNodeArray(vr.props.children).every(function(jr){return!React.isValidElement(jr)||!vr.type||jr.type.isSelectOption?!0:(Zr=jr.type,!1)});return!Ur}return Zr=qr,!0}),Zr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Zr.displayName||Zr.name||Zr,"`.")),warning(_n===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function rr(Xe,$e){if(Xe){var un=function Ut(ct){for(var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=0;hn<ct.length;hn++){var mn=ct[hn];if(mn[$e==null?void 0:$e.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!en&&Array.isArray(mn[$e==null?void 0:$e.options])&&Ut(mn[$e==null?void 0:$e.options],!0))break}};un(Xe)}}var Jn=null,Zn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Gn=["inputValue"];function sn(Xe){return!Xe||(0,Le.Z)(Xe)!=="object"}var Lt=pe.forwardRef(function(Xe,$e){var un=Xe.id,Ut=Xe.mode,ct=Xe.prefixCls,en=ct===void 0?"rc-select":ct,hn=Xe.backfill,mn=Xe.fieldNames,Cn=Xe.inputValue,gn=Xe.searchValue,wn=Xe.onSearch,nt=Xe.autoClearSearchValue,$n=nt===void 0?!0:nt,kn=Xe.onSelect,_n=Xe.onDeselect,zn=Xe.dropdownMatchSelectWidth,er=zn===void 0?!0:zn,dr=Xe.filterOption,Wr=Xe.filterSort,Ar=Xe.optionFilterProp,gr=Xe.optionLabelProp,Zr=Xe.options,vr=Xe.optionRender,Gr=Xe.children,qr=Xe.defaultActiveFirstOption,Ur=Xe.menuItemSelectedIcon,jr=Xe.virtual,Yr=Xe.direction,Vr=Xe.listHeight,Br=Vr===void 0?200:Vr,$r=Xe.listItemHeight,Kr=$r===void 0?20:$r,On=Xe.labelRender,ir=Xe.value,Sr=Xe.defaultValue,Rr=Xe.labelInValue,Nr=Xe.onChange,Ir=Xe.maxCount,si=(0,ue.Z)(Xe,Zn),Fe=(0,Dn.ZP)(un),wt=qt(Ut),dt=!!(!Zr&&Gr),kt=pe.useMemo(function(){return dr===void 0&&Ut==="combobox"?!1:dr},[dr,Ut]),Mt=pe.useMemo(function(){return Pt(mn,dt)},[JSON.stringify(mn),dt]),jt=(0,ze.Z)("",{value:gn!==void 0?gn:Cn,postState:function(hr){return hr||""}}),cn=(0,be.Z)(jt,2),rn=cn[0],Qt=cn[1],ft=Sn(Zr,Gr,Mt,Ar,gr),Nt=ft.valueOptions,Ft=ft.labelOptions,Rt=ft.options,Gt=pe.useCallback(function(Un){var hr=mt(Un);return hr.map(function(pr){var mr,Hr,Qr,zi,fi;if(sn(pr))mr=pr;else{var di;Qr=pr.key,Hr=pr.label,mr=(di=pr.value)!==null&&di!==void 0?di:Qr}var Tr=Nt.get(mr);if(Tr){var xi;if(Hr===void 0&&(Hr=Tr==null?void 0:Tr[gr||Mt.label]),Qr===void 0&&(Qr=(xi=Tr==null?void 0:Tr.key)!==null&&xi!==void 0?xi:mr),zi=Tr==null?void 0:Tr.disabled,fi=Tr==null?void 0:Tr.title,0)var Ui}return{label:Hr,value:mr,key:Qr,disabled:zi,title:fi}})},[Mt,gr,Nt]),Bt=(0,ze.Z)(Sr,{value:ir}),Kt=(0,be.Z)(Bt,2),Vt=Kt[0],nn=Kt[1],Mn=pe.useMemo(function(){var Un,hr=wt&&Vt===null?[]:Vt,pr=Gt(hr);return Ut==="combobox"&&fe((Un=pr[0])===null||Un===void 0?void 0:Un.value)?[]:pr},[Vt,Gt,Ut,wt]),Ln=En(Mn,Nt),Vn=(0,be.Z)(Ln,2),Bn=Vn[0],tr=Vn[1],ar=pe.useMemo(function(){if(!Ut&&Bn.length===1){var Un=Bn[0];if(Un.value===null&&(Un.label===null||Un.label===void 0))return[]}return Bn.map(function(hr){var pr;return(0,Ue.Z)((0,Ue.Z)({},hr),{},{label:(pr=typeof On=="function"?On(hr):hr.label)!==null&&pr!==void 0?pr:hr.value})})},[Ut,Bn,On]),yr=pe.useMemo(function(){return new Set(Bn.map(function(Un){return Un.value}))},[Bn]);pe.useEffect(function(){if(Ut==="combobox"){var Un,hr=(Un=Bn[0])===null||Un===void 0?void 0:Un.value;Qt(ge(hr)?String(hr):"")}},[Bn]);var lr=An(function(Un,hr){var pr=hr!=null?hr:Un;return(0,Oe.Z)((0,Oe.Z)({},Mt.value,Un),Mt.label,pr)}),Er=pe.useMemo(function(){if(Ut!=="tags")return Rt;var Un=(0,Ge.Z)(Rt),hr=function(mr){return Nt.has(mr)};return(0,Ge.Z)(Bn).sort(function(pr,mr){return pr.value<mr.value?-1:1}).forEach(function(pr){var mr=pr.value;hr(mr)||Un.push(lr(mr,pr.label))}),Un},[lr,Rt,Nt,Bn,Ut]),Lr=ur(Er,Mt,rn,kt,Ar),xr=pe.useMemo(function(){return Ut!=="tags"||!rn||Lr.some(function(Un){return Un[Ar||"value"]===rn})||Lr.some(function(Un){return Un[Mt.value]===rn})?Lr:[lr(rn)].concat((0,Ge.Z)(Lr))},[lr,Ar,Ut,Lr,rn,Mt]),Dr=function Un(hr){var pr=(0,Ge.Z)(hr).sort(function(mr,Hr){return Wr(mr,Hr,{searchValue:rn})});return pr.map(function(mr){return Array.isArray(mr.options)?(0,Ue.Z)((0,Ue.Z)({},mr),{},{options:mr.options.length>0?Un(mr.options):mr.options}):mr})},or=pe.useMemo(function(){return Wr?Dr(xr):xr},[xr,Wr,rn]),In=pe.useMemo(function(){return _e(or,{fieldNames:Mt,childrenAsData:dt})},[or,Mt,dt]),Yn=function(hr){var pr=Gt(hr);if(nn(pr),Nr&&(pr.length!==Bn.length||pr.some(function(Qr,zi){var fi;return((fi=Bn[zi])===null||fi===void 0?void 0:fi.value)!==(Qr==null?void 0:Qr.value)}))){var mr=Rr?pr:pr.map(function(Qr){return Qr.value}),Hr=pr.map(function(Qr){return et(tr(Qr.value))});Nr(wt?mr:mr[0],wt?Hr:Hr[0])}},Hn=pe.useState(null),kr=(0,be.Z)(Hn,2),Cr=kr[0],Pr=kr[1],Xr=pe.useState(0),wi=(0,be.Z)(Xr,2),oi=wi[0],Gi=wi[1],Pi=qr!==void 0?qr:Ut!=="combobox",Jr=pe.useCallback(function(Un,hr){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mr=pr.source,Hr=mr===void 0?"keyboard":mr;Gi(hr),hn&&Ut==="combobox"&&Un!==null&&Hr==="keyboard"&&Pr(String(Un))},[hn,Ut]),ei=function(hr,pr,mr){var Hr=function(){var Vi,Ji=tr(hr);return[Rr?{label:Ji==null?void 0:Ji[Mt.label],value:hr,key:(Vi=Ji==null?void 0:Ji.key)!==null&&Vi!==void 0?Vi:hr}:hr,et(Ji)]};if(pr&&kn){var Qr=Hr(),zi=(0,be.Z)(Qr,2),fi=zi[0],di=zi[1];kn(fi,di)}else if(!pr&&_n&&mr!=="clear"){var Tr=Hr(),xi=(0,be.Z)(Tr,2),Ui=xi[0],ni=xi[1];_n(Ui,ni)}},ti=An(function(Un,hr){var pr,mr=wt?hr.selected:!0;mr?pr=wt?[].concat((0,Ge.Z)(Bn),[Un]):[Un]:pr=Bn.filter(function(Hr){return Hr.value!==Un}),Yn(pr),ei(Un,mr),Ut==="combobox"?Pr(""):(!qt||$n)&&(Qt(""),Pr(""))}),ki=function(hr,pr){Yn(hr);var mr=pr.type,Hr=pr.values;(mr==="remove"||mr==="clear")&&Hr.forEach(function(Qr){ei(Qr.value,!1,mr)})},ii=function(hr,pr){if(Qt(hr),Pr(null),pr.source==="submit"){var mr=(hr||"").trim();if(mr){var Hr=Array.from(new Set([].concat((0,Ge.Z)(yr),[mr])));Yn(Hr),ei(mr,!0),Qt("")}return}pr.source!=="blur"&&(Ut==="combobox"&&Yn(hr),wn==null||wn(hr))},ui=function(hr){var pr=hr;Ut!=="tags"&&(pr=hr.map(function(Hr){var Qr=Ft.get(Hr);return Qr==null?void 0:Qr.value}).filter(function(Hr){return Hr!==void 0}));var mr=Array.from(new Set([].concat((0,Ge.Z)(yr),(0,Ge.Z)(pr))));Yn(mr),mr.forEach(function(Hr){ei(Hr,!0)})},ai=pe.useMemo(function(){var Un=jr!==!1&&er!==!1;return(0,Ue.Z)((0,Ue.Z)({},ft),{},{flattenOptions:In,onActiveValue:Jr,defaultActiveFirstOption:Pi,onSelect:ti,menuItemSelectedIcon:Ur,rawValues:yr,fieldNames:Mt,virtual:Un,direction:Yr,listHeight:Br,listItemHeight:Kr,childrenAsData:dt,maxCount:Ir,optionRender:vr})},[Ir,ft,In,Jr,Pi,ti,Ur,yr,Mt,jr,er,Yr,Br,Kr,dt,vr]);return pe.createElement(Zt.Provider,{value:ai},pe.createElement(it,(0,re.Z)({},si,{id:Fe,prefixCls:en,ref:$e,omitDomProps:Gn,mode:Ut,displayValues:ar,onDisplayValuesChange:ki,direction:Yr,searchValue:rn,onSearch:ii,autoClearSearchValue:$n,onSearchSplit:ui,dropdownMatchSelectWidth:er,OptionList:Qn,emptyOptions:!In.length,activeValue:Cr,activeDescendantId:"".concat(Fe,"_list_").concat(oi)})))}),yn=Lt;yn.Option=dn,yn.OptGroup=Ot;var Wn=yn,qn=Wn},63158:function(tn,Xt,le){"use strict";var re=le(32855),Ge=le(74430),Oe=le(11913),Ue=le(43079),be=le(59301),ue=le(92310),Le=le.n(ue),ze=le(18929),Ce=le(10228),pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ht=be.forwardRef(function(ye,pt){var je,Se=ye.prefixCls,xe=Se===void 0?"rc-switch":Se,Ee=ye.className,Ye=ye.checked,tt=ye.defaultChecked,at=ye.disabled,we=ye.loadingIcon,me=ye.checkedChildren,Te=ye.unCheckedChildren,Ne=ye.onClick,bt=ye.onChange,Ae=ye.onKeyDown,ke=(0,Ue.Z)(ye,pe),Ie=(0,ze.Z)(!1,{value:Ye,defaultValue:tt}),De=(0,Oe.Z)(Ie,2),Ke=De[0],Be=De[1];function Ve(ot,ge){var fe=Ke;return at||(fe=ot,Be(fe),bt==null||bt(fe,ge)),fe}function It(ot){ot.which===Ce.Z.LEFT?Ve(!1,ot):ot.which===Ce.Z.RIGHT&&Ve(!0,ot),Ae==null||Ae(ot)}function mt(ot){var ge=Ve(!Ke,ot);Ne==null||Ne(ge,ot)}var vt=Le()(xe,Ee,(je={},(0,Ge.Z)(je,"".concat(xe,"-checked"),Ke),(0,Ge.Z)(je,"".concat(xe,"-disabled"),at),je));return be.createElement("button",(0,re.Z)({},ke,{type:"button",role:"switch","aria-checked":Ke,disabled:at,className:vt,ref:pt,onKeyDown:It,onClick:mt}),we,be.createElement("span",{className:"".concat(xe,"-inner")},be.createElement("span",{className:"".concat(xe,"-inner-checked")},me),be.createElement("span",{className:"".concat(xe,"-inner-unchecked")},Te)))});ht.displayName="Switch",Xt.Z=ht},86351:function(tn,Xt,le){"use strict";le.d(Xt,{R:function(){return Ge},w:function(){return re}});var re={},Ge="rc-table-internal-hook"},97347:function(tn,Xt,le){"use strict";le.d(Xt,{L:function(){return xe},Z:function(){return we}});var re=le(11913),Ge=le(74430),Oe=le(3300),Ue=le(34666),be=le(27247),ue=le(43079),Le=le(11592),ze=le(48736),Ce=le(59301),pe=le(86351),ht=le(54451);function ye(me){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?me*parseFloat(Te)/100:null}function pt(me,Te,Ne){return Ce.useMemo(function(){if(Te&&Te>0){var bt=0,Ae=0;me.forEach(function(mt){var vt=ye(Te,mt.width);vt?bt+=vt:Ae+=1});var ke=Math.max(Te,Ne),Ie=Math.max(ke-bt,Ae),De=Ae,Ke=Ie/Ae,Be=0,Ve=me.map(function(mt){var vt=(0,be.Z)({},mt),ot=ye(Te,vt.width);if(ot)vt.width=ot;else{var ge=Math.floor(Ke);vt.width=De===1?Ie:ge,Ie-=ge,De-=1}return Be+=vt.width,vt});if(Be<ke){var It=ke/Be;Ie=ke,Ve.forEach(function(mt,vt){var ot=Math.floor(mt.width*It);mt.width=vt===Ve.length-1?Ie:ot,Ie-=ot})}return[Ve,Math.max(Be,ke)]}return[me,Te]},[me,Te,Ne])}var je=["children"],Se=["fixed"];function xe(me){return(0,Le.Z)(me).filter(function(Te){return Ce.isValidElement(Te)}).map(function(Te){var Ne=Te.key,bt=Te.props,Ae=bt.children,ke=(0,ue.Z)(bt,je),Ie=(0,be.Z)({key:Ne},ke);return Ae&&(Ie.children=xe(Ae)),Ie})}function Ee(me){return me.filter(function(Te){return Te&&(0,Ue.Z)(Te)==="object"&&!Te.hidden}).map(function(Te){var Ne=Te.children;return Ne&&Ne.length>0?(0,be.Z)((0,be.Z)({},Te),{},{children:Ee(Ne)}):Te})}function Ye(me){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return me.filter(function(Ne){return Ne&&(0,Ue.Z)(Ne)==="object"}).reduce(function(Ne,bt,Ae){var ke=bt.fixed,Ie=ke===!0?"left":ke,De="".concat(Te,"-").concat(Ae),Ke=bt.children;return Ke&&Ke.length>0?[].concat((0,Oe.Z)(Ne),(0,Oe.Z)(Ye(Ke,De).map(function(Be){return(0,be.Z)({fixed:Ie},Be)}))):[].concat((0,Oe.Z)(Ne),[(0,be.Z)((0,be.Z)({key:De},bt),{},{fixed:Ie})])},[])}function tt(me){return me.map(function(Te){var Ne=Te.fixed,bt=(0,ue.Z)(Te,Se),Ae=Ne;return Ne==="left"?Ae="right":Ne==="right"&&(Ae="left"),(0,be.Z)({fixed:Ae},bt)})}function at(me,Te){var Ne=me.prefixCls,bt=me.columns,Ae=me.children,ke=me.expandable,Ie=me.expandedKeys,De=me.columnTitle,Ke=me.getRowKey,Be=me.onTriggerExpand,Ve=me.expandIcon,It=me.rowExpandable,mt=me.expandIconColumnIndex,vt=me.direction,ot=me.expandRowByClick,ge=me.columnWidth,fe=me.fixed,He=me.scrollWidth,lt=me.clientWidth,st=Ce.useMemo(function(){var xt=bt||xe(Ae)||[];return Ee(xt.slice())},[bt,Ae]),Pe=Ce.useMemo(function(){if(ke){var xt=st.slice();if(!xt.includes(pe.w)){var ae=mt||0;ae>=0&&(ae||fe==="left"||!fe)&&xt.splice(ae,0,pe.w),fe==="right"&&xt.splice(st.length,0,pe.w)}var ee=xt.indexOf(pe.w);xt=xt.filter(function(ne,ce){return ne!==pe.w||ce===ee});var z=st[ee],ie;fe?ie=fe:ie=z?z.fixed:null;var se=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},ht.v,{className:"".concat(Ne,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",De),"fixed",ie),"className","".concat(Ne,"-row-expand-icon-cell")),"width",ge),"render",function(ce,Re,Et){var Pt=Ke(Re,Et),_e=Ie.has(Pt),et=It?It(Re):!0,qe=Ve({prefixCls:Ne,expanded:_e,expandable:et,record:Re,onExpand:Be});return ot?Ce.createElement("span",{onClick:function(Zt){return Zt.stopPropagation()}},qe):qe});return xt.map(function(ne){return ne===pe.w?se:ne})}return st.filter(function(ne){return ne!==pe.w})},[ke,st,Ke,Ie,Ve,vt]),rt=Ce.useMemo(function(){var xt=Pe;return Te&&(xt=Te(xt)),xt.length||(xt=[{render:function(){return null}}]),xt},[Te,Pe,vt]),Qe=Ce.useMemo(function(){return vt==="rtl"?tt(Ye(rt)):Ye(rt)},[rt,vt,He]),Wt=Ce.useMemo(function(){for(var xt=-1,ae=Qe.length-1;ae>=0;ae-=1){var ee=Qe[ae].fixed;if(ee==="left"||ee===!0){xt=ae;break}}if(xt>=0)for(var z=0;z<=xt;z+=1){var ie=Qe[z].fixed;if(ie!=="left"&&ie!==!0)return!0}var se=Qe.findIndex(function(Re){var Et=Re.fixed;return Et==="right"});if(se>=0)for(var ne=se;ne<Qe.length;ne+=1){var ce=Qe[ne].fixed;if(ce!=="right")return!0}return!1},[Qe]),Me=pt(Qe,He,lt),ut=(0,re.Z)(Me,2),We=ut[0],yt=ut[1];return[rt,We,yt,Wt]}var we=at},4030:function(tn,Xt,le){"use strict";le.d(Xt,{w2:function(){return re.w},vP:function(){return nr.v},RQ:function(){return re.R},ER:function(){return Pt},Q$:function(){return dr},TN:function(){return Nr}});var re=le(86351),Ge=le(11913),Oe=le(6089),Ue=le(34280),be=le(13697),ue=le(59301),Le=le(4676);function ze(Fe){var wt=ue.createContext(void 0),dt=function(Mt){var jt=Mt.value,cn=Mt.children,rn=ue.useRef(jt);rn.current=jt;var Qt=ue.useState(function(){return{getValue:function(){return rn.current},listeners:new Set}}),ft=(0,Ge.Z)(Qt,1),Nt=ft[0];return(0,Ue.Z)(function(){(0,Le.unstable_batchedUpdates)(function(){Nt.listeners.forEach(function(Ft){Ft(jt)})})},[jt]),ue.createElement(wt.Provider,{value:Nt},cn)};return{Context:wt,Provider:dt,defaultValue:Fe}}function Ce(Fe,wt){var dt=(0,Oe.Z)(typeof wt=="function"?wt:function(Ft){if(wt===void 0)return Ft;if(!Array.isArray(wt))return Ft[wt];var Rt={};return wt.forEach(function(Gt){Rt[Gt]=Ft[Gt]}),Rt}),kt=ue.useContext(Fe==null?void 0:Fe.Context),Mt=kt||{},jt=Mt.listeners,cn=Mt.getValue,rn=ue.useRef();rn.current=dt(kt?cn():Fe==null?void 0:Fe.defaultValue);var Qt=ue.useState({}),ft=(0,Ge.Z)(Qt,2),Nt=ft[1];return(0,Ue.Z)(function(){if(!kt)return;function Ft(Rt){var Gt=dt(Rt);(0,be.Z)(rn.current,Gt,!0)||Nt({})}return jt.add(Ft),function(){jt.delete(Ft)}},[kt]),rn.current}var pe=le(32855),ht=le(8654);function ye(){var Fe=ue.createContext(null);function wt(){return ue.useContext(Fe)}function dt(Mt,jt){var cn=(0,ht.Yr)(Mt),rn=function(ft,Nt){var Ft=cn?{ref:Nt}:{},Rt=ue.useRef(0),Gt=ue.useRef(ft),Bt=wt();return Bt!==null?ue.createElement(Mt,(0,pe.Z)({},ft,Ft)):((!jt||jt(Gt.current,ft))&&(Rt.current+=1),Gt.current=ft,ue.createElement(Fe.Provider,{value:Rt.current},ue.createElement(Mt,(0,pe.Z)({},ft,Ft))))};return cn?ue.forwardRef(rn):rn}function kt(Mt,jt){var cn=(0,ht.Yr)(Mt),rn=function(ft,Nt){var Ft=cn?{ref:Nt}:{};return wt(),ue.createElement(Mt,(0,pe.Z)({},ft,Ft))};return cn?ue.memo(ue.forwardRef(rn),jt):ue.memo(rn,jt)}return{makeImmutable:dt,responseImmutable:kt,useImmutableMark:wt}}var pt=ye(),je=pt.makeImmutable,Se=pt.responseImmutable,xe=pt.useImmutableMark,Ee=ye(),Ye=Ee.makeImmutable,tt=Ee.responseImmutable,at=Ee.useImmutableMark,we=ze(),me=we;function Te(Fe,wt){var dt=React.useRef(0);dt.current+=1;var kt=React.useRef(Fe),Mt=[];Object.keys(Fe||{}).map(function(cn){var rn;(Fe==null?void 0:Fe[cn])!==((rn=kt.current)===null||rn===void 0?void 0:rn[cn])&&Mt.push(cn)}),kt.current=Fe;var jt=React.useRef([]);return Mt.length&&(jt.current=Mt),React.useDebugValue(dt.current),React.useDebugValue(jt.current.join(", ")),wt&&console.log("".concat(wt,":"),dt.current,jt.current),dt.current}var Ne=null,bt=null,Ae=le(34666),ke=le(27247),Ie=le(74430),De=le(92310),Ke=le.n(De),Be=le(80547),Ve=le(97938),It=le(48736),mt=ue.createContext({renderWithProps:!1}),vt=mt,ot="RC_TABLE_KEY";function ge(Fe){return Fe==null?[]:Array.isArray(Fe)?Fe:[Fe]}function fe(Fe){var wt=[],dt={};return Fe.forEach(function(kt){for(var Mt=kt||{},jt=Mt.key,cn=Mt.dataIndex,rn=jt||ge(cn).join("-")||ot;dt[rn];)rn="".concat(rn,"_next");dt[rn]=!0,wt.push(rn)}),wt}function He(Fe){return Fe!=null}function lt(Fe){return typeof Fe=="number"&&!Number.isNaN(Fe)}function st(Fe){return Fe&&(0,Ae.Z)(Fe)==="object"&&!Array.isArray(Fe)&&!ue.isValidElement(Fe)}function Pe(Fe,wt,dt,kt,Mt,jt){var cn=ue.useContext(vt),rn=at(),Qt=(0,Be.Z)(function(){if(He(kt))return[kt];var ft=wt==null||wt===""?[]:Array.isArray(wt)?wt:[wt],Nt=(0,Ve.Z)(Fe,ft),Ft=Nt,Rt=void 0;if(Mt){var Gt=Mt(Nt,Fe,dt);st(Gt)?(Ft=Gt.children,Rt=Gt.props,cn.renderWithProps=!0):Ft=Gt}return[Ft,Rt]},[rn,Fe,kt,wt,Mt,dt],function(ft,Nt){if(jt){var Ft=(0,Ge.Z)(ft,2),Rt=Ft[1],Gt=(0,Ge.Z)(Nt,2),Bt=Gt[1];return jt(Bt,Rt)}return cn.renderWithProps?!0:!(0,be.Z)(ft,Nt,!0)});return Qt}function rt(Fe,wt,dt,kt){var Mt=Fe+wt-1;return Fe<=kt&&Mt>=dt}function Qe(Fe,wt){return Ce(me,function(dt){var kt=rt(Fe,wt||1,dt.hoverStartRow,dt.hoverEndRow);return[kt,dt.onHover]})}var Wt=le(70425),Me=function(wt){var dt=wt.ellipsis,kt=wt.rowType,Mt=wt.children,jt,cn=dt===!0?{showTitle:!0}:dt;return cn&&(cn.showTitle||kt==="header")&&(typeof Mt=="string"||typeof Mt=="number"?jt=Mt.toString():ue.isValidElement(Mt)&&typeof Mt.props.children=="string"&&(jt=Mt.props.children)),jt};function ut(Fe){var wt,dt,kt,Mt,jt,cn,rn,Qt,ft=Fe.component,Nt=Fe.children,Ft=Fe.ellipsis,Rt=Fe.scope,Gt=Fe.prefixCls,Bt=Fe.className,Kt=Fe.align,Vt=Fe.record,nn=Fe.render,Mn=Fe.dataIndex,Ln=Fe.renderIndex,Vn=Fe.shouldCellUpdate,Bn=Fe.index,tr=Fe.rowType,ar=Fe.colSpan,yr=Fe.rowSpan,lr=Fe.fixLeft,Er=Fe.fixRight,Lr=Fe.firstFixLeft,xr=Fe.lastFixLeft,Dr=Fe.firstFixRight,or=Fe.lastFixRight,In=Fe.appendNode,Yn=Fe.additionalProps,Hn=Yn===void 0?{}:Yn,kr=Fe.isSticky,Cr="".concat(Gt,"-cell"),Pr=Ce(me,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Xr=Pr.supportSticky,wi=Pr.allColumnsFixedLeft,oi=Pr.rowHoverable,Gi=Pe(Vt,Mn,Ln,Nt,nn,Vn),Pi=(0,Ge.Z)(Gi,2),Jr=Pi[0],ei=Pi[1],ti={},ki=typeof lr=="number"&&Xr,ii=typeof Er=="number"&&Xr;ki&&(ti.position="sticky",ti.left=lr),ii&&(ti.position="sticky",ti.right=Er);var ui=(wt=(dt=(kt=ei==null?void 0:ei.colSpan)!==null&&kt!==void 0?kt:Hn.colSpan)!==null&&dt!==void 0?dt:ar)!==null&&wt!==void 0?wt:1,ai=(Mt=(jt=(cn=ei==null?void 0:ei.rowSpan)!==null&&cn!==void 0?cn:Hn.rowSpan)!==null&&jt!==void 0?jt:yr)!==null&&Mt!==void 0?Mt:1,Un=Qe(Bn,ai),hr=(0,Ge.Z)(Un,2),pr=hr[0],mr=hr[1],Hr=(0,Wt.zX)(function(Ui){var ni;Vt&&mr(Bn,Bn+ai-1),Hn==null||(ni=Hn.onMouseEnter)===null||ni===void 0||ni.call(Hn,Ui)}),Qr=(0,Wt.zX)(function(Ui){var ni;Vt&&mr(-1,-1),Hn==null||(ni=Hn.onMouseLeave)===null||ni===void 0||ni.call(Hn,Ui)});if(ui===0||ai===0)return null;var zi=(rn=Hn.title)!==null&&rn!==void 0?rn:Me({rowType:tr,ellipsis:Ft,children:Jr}),fi=Ke()(Cr,Bt,(Qt={},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)(Qt,"".concat(Cr,"-fix-left"),ki&&Xr),"".concat(Cr,"-fix-left-first"),Lr&&Xr),"".concat(Cr,"-fix-left-last"),xr&&Xr),"".concat(Cr,"-fix-left-all"),xr&&wi&&Xr),"".concat(Cr,"-fix-right"),ii&&Xr),"".concat(Cr,"-fix-right-first"),Dr&&Xr),"".concat(Cr,"-fix-right-last"),or&&Xr),"".concat(Cr,"-ellipsis"),Ft),"".concat(Cr,"-with-append"),In),"".concat(Cr,"-fix-sticky"),(ki||ii)&&kr&&Xr),(0,Ie.Z)(Qt,"".concat(Cr,"-row-hover"),!ei&&pr)),Hn.className,ei==null?void 0:ei.className),di={};Kt&&(di.textAlign=Kt);var Tr=(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},ei==null?void 0:ei.style),ti),di),Hn.style),xi=Jr;return(0,Ae.Z)(xi)==="object"&&!Array.isArray(xi)&&!ue.isValidElement(xi)&&(xi=null),Ft&&(xr||Dr)&&(xi=ue.createElement("span",{className:"".concat(Cr,"-content")},xi)),ue.createElement(ft,(0,pe.Z)({},ei,Hn,{className:fi,style:Tr,title:zi,scope:Rt,onMouseEnter:oi?Hr:void 0,onMouseLeave:oi?Qr:void 0,colSpan:ui!==1?ui:null,rowSpan:ai!==1?ai:null}),In,xi)}var We=ue.memo(ut);function yt(Fe,wt,dt,kt,Mt){var jt=dt[Fe]||{},cn=dt[wt]||{},rn,Qt;jt.fixed==="left"?rn=kt.left[Mt==="rtl"?wt:Fe]:cn.fixed==="right"&&(Qt=kt.right[Mt==="rtl"?Fe:wt]);var ft=!1,Nt=!1,Ft=!1,Rt=!1,Gt=dt[wt+1],Bt=dt[Fe-1],Kt=Gt&&!Gt.fixed||Bt&&!Bt.fixed||dt.every(function(Vn){return Vn.fixed==="left"});if(Mt==="rtl"){if(rn!==void 0){var Vt=Bt&&Bt.fixed==="left";Rt=!Vt&&Kt}else if(Qt!==void 0){var nn=Gt&&Gt.fixed==="right";Ft=!nn&&Kt}}else if(rn!==void 0){var Mn=Gt&&Gt.fixed==="left";ft=!Mn&&Kt}else if(Qt!==void 0){var Ln=Bt&&Bt.fixed==="right";Nt=!Ln&&Kt}return{fixLeft:rn,fixRight:Qt,lastFixLeft:ft,firstFixRight:Nt,lastFixRight:Ft,firstFixLeft:Rt,isSticky:kt.isSticky}}var xt=ue.createContext({}),ae=xt;function ee(Fe){var wt=Fe.className,dt=Fe.index,kt=Fe.children,Mt=Fe.colSpan,jt=Mt===void 0?1:Mt,cn=Fe.rowSpan,rn=Fe.align,Qt=Ce(me,["prefixCls","direction"]),ft=Qt.prefixCls,Nt=Qt.direction,Ft=ue.useContext(ae),Rt=Ft.scrollColumnIndex,Gt=Ft.stickyOffsets,Bt=Ft.flattenColumns,Kt=dt+jt-1,Vt=Kt+1===Rt?jt+1:jt,nn=yt(dt,dt+Vt-1,Bt,Gt,Nt);return ue.createElement(We,(0,pe.Z)({className:wt,index:dt,component:"td",prefixCls:ft,record:null,dataIndex:null,align:rn,colSpan:Vt,rowSpan:cn,render:function(){return kt}},nn))}var z=le(43079),ie=["children"];function se(Fe){var wt=Fe.children,dt=(0,z.Z)(Fe,ie);return ue.createElement("tr",dt,wt)}function ne(Fe){var wt=Fe.children;return wt}ne.Row=se,ne.Cell=ee;var ce=ne;function Re(Fe){var wt=Fe.children,dt=Fe.stickyOffsets,kt=Fe.flattenColumns,Mt=Ce(me,"prefixCls"),jt=kt.length-1,cn=kt[jt],rn=ue.useMemo(function(){return{stickyOffsets:dt,flattenColumns:kt,scrollColumnIndex:cn!=null&&cn.scrollbar?jt:null}},[cn,kt,jt,dt]);return ue.createElement(ae.Provider,{value:rn},ue.createElement("tfoot",{className:"".concat(Mt,"-summary")},wt))}var Et=tt(Re),Pt=ce,_e=le(29301),et=le(24514),qe=le(75152),St=le(26112);function Zt(Fe,wt,dt,kt,Mt,jt,cn){Fe.push({record:wt,indent:dt,index:cn});var rn=jt(wt),Qt=Mt==null?void 0:Mt.has(rn);if(wt&&Array.isArray(wt[kt])&&Qt)for(var ft=0;ft<wt[kt].length;ft+=1)Zt(Fe,wt[kt][ft],dt+1,kt,Mt,jt,ft)}function _t(Fe,wt,dt,kt){var Mt=ue.useMemo(function(){if(dt!=null&&dt.size){for(var jt=[],cn=0;cn<(Fe==null?void 0:Fe.length);cn+=1){var rn=Fe[cn];Zt(jt,rn,0,wt,dt,kt,cn)}return jt}return Fe==null?void 0:Fe.map(function(Qt,ft){return{record:Qt,indent:0,index:ft}})},[Fe,wt,dt,kt]);return Mt}function At(Fe,wt,dt,kt){var Mt=Ce(me,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),jt=Mt.flattenColumns,cn=Mt.expandableType,rn=Mt.expandedKeys,Qt=Mt.childrenColumnName,ft=Mt.onTriggerExpand,Nt=Mt.rowExpandable,Ft=Mt.onRow,Rt=Mt.expandRowByClick,Gt=Mt.rowClassName,Bt=cn==="nest",Kt=cn==="row"&&(!Nt||Nt(Fe)),Vt=Kt||Bt,nn=rn&&rn.has(wt),Mn=Qt&&Fe&&Fe[Qt],Ln=(0,Wt.zX)(ft),Vn=Ft==null?void 0:Ft(Fe,dt),Bn=Vn==null?void 0:Vn.onClick,tr=function(Er){Rt&&Vt&&ft(Fe,Er);for(var Lr=arguments.length,xr=new Array(Lr>1?Lr-1:0),Dr=1;Dr<Lr;Dr++)xr[Dr-1]=arguments[Dr];Bn==null||Bn.apply(void 0,[Er].concat(xr))},ar;typeof Gt=="string"?ar=Gt:typeof Gt=="function"&&(ar=Gt(Fe,dt,kt));var yr=fe(jt);return(0,ke.Z)((0,ke.Z)({},Mt),{},{columnsKey:yr,nestExpandable:Bt,expanded:nn,hasNestChildren:Mn,record:Fe,onTriggerExpand:Ln,rowSupportExpand:Kt,expandable:Vt,rowProps:(0,ke.Z)((0,ke.Z)({},Vn),{},{className:Ke()(ar,Vn==null?void 0:Vn.className),onClick:tr})})}function an(Fe){var wt=Fe.prefixCls,dt=Fe.children,kt=Fe.component,Mt=Fe.cellComponent,jt=Fe.className,cn=Fe.expanded,rn=Fe.colSpan,Qt=Fe.isEmpty,ft=Ce(me,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Nt=ft.scrollbarSize,Ft=ft.fixHeader,Rt=ft.fixColumn,Gt=ft.componentWidth,Bt=ft.horizonScroll,Kt=dt;return(Qt?Bt&&Gt:Rt)&&(Kt=ue.createElement("div",{style:{width:Gt-(Ft&&!Qt?Nt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(wt,"-expanded-row-fixed")},Kt)),ue.createElement(kt,{className:jt,style:{display:cn?null:"none"}},ue.createElement(We,{component:Mt,prefixCls:wt,colSpan:rn},Kt))}var qt=an;function Ht(Fe){var wt=Fe.prefixCls,dt=Fe.record,kt=Fe.onExpand,Mt=Fe.expanded,jt=Fe.expandable,cn="".concat(wt,"-row-expand-icon");if(!jt)return ue.createElement("span",{className:Ke()(cn,"".concat(wt,"-row-spaced"))});var rn=function(ft){kt(dt,ft),ft.stopPropagation()};return ue.createElement("span",{className:Ke()(cn,(0,Ie.Z)((0,Ie.Z)({},"".concat(wt,"-row-expanded"),Mt),"".concat(wt,"-row-collapsed"),!Mt)),onClick:rn})}function it(Fe,wt,dt){var kt=[];function Mt(jt){(jt||[]).forEach(function(cn,rn){kt.push(wt(cn,rn)),Mt(cn[dt])})}return Mt(Fe),kt}function ln(Fe,wt,dt,kt){return typeof Fe=="string"?Fe:typeof Fe=="function"?Fe(wt,dt,kt):""}function Ot(Fe,wt,dt,kt,Mt){var jt=Fe.record,cn=Fe.prefixCls,rn=Fe.columnsKey,Qt=Fe.fixedInfoList,ft=Fe.expandIconColumnIndex,Nt=Fe.nestExpandable,Ft=Fe.indentSize,Rt=Fe.expandIcon,Gt=Fe.expanded,Bt=Fe.hasNestChildren,Kt=Fe.onTriggerExpand,Vt=rn[dt],nn=Qt[dt],Mn;dt===(ft||0)&&Nt&&(Mn=ue.createElement(ue.Fragment,null,ue.createElement("span",{style:{paddingLeft:"".concat(Ft*kt,"px")},className:"".concat(cn,"-row-indent indent-level-").concat(kt)}),Rt({prefixCls:cn,expanded:Gt,expandable:Bt,record:jt,onExpand:Kt})));var Ln;return wt.onCell&&(Ln=wt.onCell(jt,Mt)),{key:Vt,fixedInfo:nn,appendCellNode:Mn,additionalCellProps:Ln||{}}}function Yt(Fe){var wt=Fe.className,dt=Fe.style,kt=Fe.record,Mt=Fe.index,jt=Fe.renderIndex,cn=Fe.rowKey,rn=Fe.indent,Qt=rn===void 0?0:rn,ft=Fe.rowComponent,Nt=Fe.cellComponent,Ft=Fe.scopeCellComponent,Rt=At(kt,cn,Mt,Qt),Gt=Rt.prefixCls,Bt=Rt.flattenColumns,Kt=Rt.expandedRowClassName,Vt=Rt.expandedRowRender,nn=Rt.rowProps,Mn=Rt.expanded,Ln=Rt.rowSupportExpand,Vn=ue.useRef(!1);Vn.current||(Vn.current=Mn);var Bn=ln(Kt,kt,Mt,Qt),tr=ue.createElement(ft,(0,pe.Z)({},nn,{"data-row-key":cn,className:Ke()(wt,"".concat(Gt,"-row"),"".concat(Gt,"-row-level-").concat(Qt),nn==null?void 0:nn.className,(0,Ie.Z)({},Bn,Qt>=1)),style:(0,ke.Z)((0,ke.Z)({},dt),nn==null?void 0:nn.style)}),Bt.map(function(lr,Er){var Lr=lr.render,xr=lr.dataIndex,Dr=lr.className,or=Ot(Rt,lr,Er,Qt,Mt),In=or.key,Yn=or.fixedInfo,Hn=or.appendCellNode,kr=or.additionalCellProps;return ue.createElement(We,(0,pe.Z)({className:Dr,ellipsis:lr.ellipsis,align:lr.align,scope:lr.rowScope,component:lr.rowScope?Ft:Nt,prefixCls:Gt,key:In,record:kt,index:Mt,renderIndex:jt,dataIndex:xr,render:Lr,shouldCellUpdate:lr.shouldCellUpdate},Yn,{appendNode:Hn,additionalProps:kr}))})),ar;if(Ln&&(Vn.current||Mn)){var yr=Vt(kt,Mt,Qt+1,Mn);ar=ue.createElement(qt,{expanded:Mn,className:Ke()("".concat(Gt,"-expanded-row"),"".concat(Gt,"-expanded-row-level-").concat(Qt+1),Bn),prefixCls:Gt,component:ft,cellComponent:Nt,colSpan:Bt.length,isEmpty:!1},yr)}return ue.createElement(ue.Fragment,null,tr,ar)}var dn=tt(Yt);function Tt(Fe){var wt=Fe.columnKey,dt=Fe.onColumnResize,kt=ue.useRef();return(0,Ue.Z)(function(){kt.current&&dt(wt,kt.current.offsetWidth)},[]),ue.createElement(_e.Z,{data:wt},ue.createElement("td",{ref:kt,style:{padding:0,border:0,height:0}},ue.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var gt=le(29194);function pn(Fe){var wt=Fe.prefixCls,dt=Fe.columnsKey,kt=Fe.onColumnResize,Mt=ue.useRef(null);return ue.createElement("tr",{"aria-hidden":"true",className:"".concat(wt,"-measure-row"),style:{height:0,fontSize:0},ref:Mt},ue.createElement(_e.Z.Collection,{onBatchResize:function(cn){(0,gt.Z)(Mt.current)&&cn.forEach(function(rn){var Qt=rn.data,ft=rn.size;kt(Qt,ft.offsetWidth)})}},dt.map(function(jt){return ue.createElement(Tt,{key:jt,columnKey:jt,onColumnResize:kt})})))}function Nn(Fe){var wt=Fe.data,dt=Fe.measureColumnWidth,kt=Ce(me,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Mt=kt.prefixCls,jt=kt.getComponent,cn=kt.onColumnResize,rn=kt.flattenColumns,Qt=kt.getRowKey,ft=kt.expandedKeys,Nt=kt.childrenColumnName,Ft=kt.emptyNode,Rt=_t(wt,Nt,ft,Qt),Gt=ue.useRef({renderWithProps:!1}),Bt=jt(["body","wrapper"],"tbody"),Kt=jt(["body","row"],"tr"),Vt=jt(["body","cell"],"td"),nn=jt(["body","cell"],"th"),Mn;wt.length?Mn=Rt.map(function(Vn,Bn){var tr=Vn.record,ar=Vn.indent,yr=Vn.index,lr=Qt(tr,Bn);return ue.createElement(dn,{key:lr,rowKey:lr,record:tr,index:Bn,renderIndex:yr,rowComponent:Kt,cellComponent:Vt,scopeCellComponent:nn,indent:ar})}):Mn=ue.createElement(qt,{expanded:!0,className:"".concat(Mt,"-placeholder"),prefixCls:Mt,component:Kt,cellComponent:Vt,colSpan:rn.length,isEmpty:!0},Ft);var Ln=fe(rn);return ue.createElement(vt.Provider,{value:Gt.current},ue.createElement(Bt,{className:"".concat(Mt,"-tbody")},dt&&ue.createElement(pn,{prefixCls:Mt,columnsKey:Ln,onColumnResize:cn}),Mn))}var Tn=tt(Nn),nr=le(54451),fr=["columnType"];function br(Fe){for(var wt=Fe.colWidths,dt=Fe.columns,kt=Fe.columCount,Mt=Ce(me,["tableLayout"]),jt=Mt.tableLayout,cn=[],rn=kt||dt.length,Qt=!1,ft=rn-1;ft>=0;ft-=1){var Nt=wt[ft],Ft=dt&&dt[ft],Rt=void 0,Gt=void 0;if(Ft&&(Rt=Ft[nr.v],jt==="auto"&&(Gt=Ft.minWidth)),Nt||Gt||Rt||Qt){var Bt=Rt||{},Kt=Bt.columnType,Vt=(0,z.Z)(Bt,fr);cn.unshift(ue.createElement("col",(0,pe.Z)({key:ft,style:{width:Nt,minWidth:Gt}},Vt))),Qt=!0}}return ue.createElement("colgroup",null,cn)}var Qn=br,En=le(3300),sr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ur(Fe,wt){return(0,ue.useMemo)(function(){for(var dt=[],kt=0;kt<wt;kt+=1){var Mt=Fe[kt];if(Mt!==void 0)dt[kt]=Mt;else return null}return dt},[Fe.join("_"),wt])}var Dn=ue.forwardRef(function(Fe,wt){var dt=Fe.className,kt=Fe.noData,Mt=Fe.columns,jt=Fe.flattenColumns,cn=Fe.colWidths,rn=Fe.columCount,Qt=Fe.stickyOffsets,ft=Fe.direction,Nt=Fe.fixHeader,Ft=Fe.stickyTopOffset,Rt=Fe.stickyBottomOffset,Gt=Fe.stickyClassName,Bt=Fe.onScroll,Kt=Fe.maxContentScroll,Vt=Fe.children,nn=(0,z.Z)(Fe,sr),Mn=Ce(me,["prefixCls","scrollbarSize","isSticky","getComponent"]),Ln=Mn.prefixCls,Vn=Mn.scrollbarSize,Bn=Mn.isSticky,tr=Mn.getComponent,ar=tr(["header","table"],"table"),yr=Bn&&!Nt?0:Vn,lr=ue.useRef(null),Er=ue.useCallback(function(kr){(0,ht.mH)(wt,kr),(0,ht.mH)(lr,kr)},[]);ue.useEffect(function(){var kr;function Cr(Pr){var Xr=Pr,wi=Xr.currentTarget,oi=Xr.deltaX;oi&&(Bt({currentTarget:wi,scrollLeft:wi.scrollLeft+oi}),Pr.preventDefault())}return(kr=lr.current)===null||kr===void 0||kr.addEventListener("wheel",Cr,{passive:!1}),function(){var Pr;(Pr=lr.current)===null||Pr===void 0||Pr.removeEventListener("wheel",Cr)}},[]);var Lr=ue.useMemo(function(){return jt.every(function(kr){return kr.width})},[jt]),xr=jt[jt.length-1],Dr={fixed:xr?xr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ln,"-cell-scrollbar")}}},or=(0,ue.useMemo)(function(){return yr?[].concat((0,En.Z)(Mt),[Dr]):Mt},[yr,Mt]),In=(0,ue.useMemo)(function(){return yr?[].concat((0,En.Z)(jt),[Dr]):jt},[yr,jt]),Yn=(0,ue.useMemo)(function(){var kr=Qt.right,Cr=Qt.left;return(0,ke.Z)((0,ke.Z)({},Qt),{},{left:ft==="rtl"?[].concat((0,En.Z)(Cr.map(function(Pr){return Pr+yr})),[0]):Cr,right:ft==="rtl"?kr:[].concat((0,En.Z)(kr.map(function(Pr){return Pr+yr})),[0]),isSticky:Bn})},[yr,Qt,Bn]),Hn=ur(cn,rn);return ue.createElement("div",{style:(0,ke.Z)({overflow:"hidden"},Bn?{top:Ft,bottom:Rt}:{}),ref:Er,className:Ke()(dt,(0,Ie.Z)({},Gt,!!Gt))},ue.createElement(ar,{style:{tableLayout:"fixed",visibility:kt||Hn?null:"hidden"}},(!kt||!Kt||Lr)&&ue.createElement(Qn,{colWidths:Hn?[].concat((0,En.Z)(Hn),[yr]):[],columCount:rn+1,columns:In}),Vt((0,ke.Z)((0,ke.Z)({},nn),{},{stickyOffsets:Yn,columns:or,flattenColumns:In}))))}),bn=ue.memo(Dn),$t=function(wt){var dt=wt.cells,kt=wt.stickyOffsets,Mt=wt.flattenColumns,jt=wt.rowComponent,cn=wt.cellComponent,rn=wt.onHeaderRow,Qt=wt.index,ft=Ce(me,["prefixCls","direction"]),Nt=ft.prefixCls,Ft=ft.direction,Rt;rn&&(Rt=rn(dt.map(function(Bt){return Bt.column}),Qt));var Gt=fe(dt.map(function(Bt){return Bt.column}));return ue.createElement(jt,Rt,dt.map(function(Bt,Kt){var Vt=Bt.column,nn=yt(Bt.colStart,Bt.colEnd,Mt,kt,Ft),Mn;return Vt&&Vt.onHeaderCell&&(Mn=Bt.column.onHeaderCell(Vt)),ue.createElement(We,(0,pe.Z)({},Bt,{scope:Vt.title?Bt.colSpan>1?"colgroup":"col":null,ellipsis:Vt.ellipsis,align:Vt.align,component:cn,prefixCls:Nt,key:Gt[Kt]},nn,{additionalProps:Mn,rowType:"header"}))}))},fn=$t;function zt(Fe){var wt=[];function dt(cn,rn){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;wt[Qt]=wt[Qt]||[];var ft=rn,Nt=cn.filter(Boolean).map(function(Ft){var Rt={key:Ft.key,className:Ft.className||"",children:Ft.title,column:Ft,colStart:ft},Gt=1,Bt=Ft.children;return Bt&&Bt.length>0&&(Gt=dt(Bt,ft,Qt+1).reduce(function(Kt,Vt){return Kt+Vt},0),Rt.hasSubColumns=!0),"colSpan"in Ft&&(Gt=Ft.colSpan),"rowSpan"in Ft&&(Rt.rowSpan=Ft.rowSpan),Rt.colSpan=Gt,Rt.colEnd=Rt.colStart+Gt-1,wt[Qt].push(Rt),ft+=Gt,Gt});return Nt}dt(Fe,0);for(var kt=wt.length,Mt=function(rn){wt[rn].forEach(function(Qt){!("rowSpan"in Qt)&&!Qt.hasSubColumns&&(Qt.rowSpan=kt-rn)})},jt=0;jt<kt;jt+=1)Mt(jt);return wt}var Jt=function(wt){var dt=wt.stickyOffsets,kt=wt.columns,Mt=wt.flattenColumns,jt=wt.onHeaderRow,cn=Ce(me,["prefixCls","getComponent"]),rn=cn.prefixCls,Qt=cn.getComponent,ft=ue.useMemo(function(){return zt(kt)},[kt]),Nt=Qt(["header","wrapper"],"thead"),Ft=Qt(["header","row"],"tr"),Rt=Qt(["header","cell"],"th");return ue.createElement(Nt,{className:"".concat(rn,"-thead")},ft.map(function(Gt,Bt){var Kt=ue.createElement(fn,{key:Bt,flattenColumns:Mt,cells:Gt,stickyOffsets:dt,rowComponent:Ft,cellComponent:Rt,onHeaderRow:jt,index:Bt});return Kt}))},xn=tt(Jt),Sn=le(97347);function An(Fe,wt,dt){var kt=(0,nr.g)(Fe),Mt=kt.expandIcon,jt=kt.expandedRowKeys,cn=kt.defaultExpandedRowKeys,rn=kt.defaultExpandAllRows,Qt=kt.expandedRowRender,ft=kt.onExpand,Nt=kt.onExpandedRowsChange,Ft=kt.childrenColumnName,Rt=Mt||Ht,Gt=Ft||"children",Bt=ue.useMemo(function(){return Qt?"row":Fe.expandable&&Fe.internalHooks===re.R&&Fe.expandable.__PARENT_RENDER_ICON__||wt.some(function(Bn){return Bn&&(0,Ae.Z)(Bn)==="object"&&Bn[Gt]})?"nest":!1},[!!Qt,wt]),Kt=ue.useState(function(){return cn||(rn?it(wt,dt,Gt):[])}),Vt=(0,Ge.Z)(Kt,2),nn=Vt[0],Mn=Vt[1],Ln=ue.useMemo(function(){return new Set(jt||nn||[])},[jt,nn]),Vn=ue.useCallback(function(Bn){var tr=dt(Bn,wt.indexOf(Bn)),ar,yr=Ln.has(tr);yr?(Ln.delete(tr),ar=(0,En.Z)(Ln)):ar=[].concat((0,En.Z)(Ln),[tr]),Mn(ar),ft&&ft(!yr,Bn),Nt&&Nt(ar)},[dt,Ln,wt,ft,Nt]);return[kt,Bt,Ln,Rt,Gt,Vn]}function Kn(Fe,wt,dt){var kt=Fe.map(function(Mt,jt){return yt(jt,jt,Fe,wt,dt)});return(0,Be.Z)(function(){return kt},[kt],function(Mt,jt){return!(0,be.Z)(Mt,jt)})}function rr(Fe){var wt=(0,ue.useRef)(Fe),dt=(0,ue.useState)({}),kt=(0,Ge.Z)(dt,2),Mt=kt[1],jt=(0,ue.useRef)(null),cn=(0,ue.useRef)([]);function rn(Qt){cn.current.push(Qt);var ft=Promise.resolve();jt.current=ft,ft.then(function(){if(jt.current===ft){var Nt=cn.current,Ft=wt.current;cn.current=[],Nt.forEach(function(Rt){wt.current=Rt(wt.current)}),jt.current=null,Ft!==wt.current&&Mt({})}})}return(0,ue.useEffect)(function(){return function(){jt.current=null}},[]),[wt.current,rn]}function Jn(Fe){var wt=(0,ue.useRef)(Fe||null),dt=(0,ue.useRef)();function kt(){window.clearTimeout(dt.current)}function Mt(cn){wt.current=cn,kt(),dt.current=window.setTimeout(function(){wt.current=null,dt.current=void 0},100)}function jt(){return wt.current}return(0,ue.useEffect)(function(){return kt},[]),[Mt,jt]}function Zn(){var Fe=ue.useState(-1),wt=(0,Ge.Z)(Fe,2),dt=wt[0],kt=wt[1],Mt=ue.useState(-1),jt=(0,Ge.Z)(Mt,2),cn=jt[0],rn=jt[1],Qt=ue.useCallback(function(ft,Nt){kt(ft),rn(Nt)},[]);return[dt,cn,Qt]}var Gn=le(47273),sn=(0,Gn.Z)()?window:null;function Lt(Fe,wt){var dt=(0,Ae.Z)(Fe)==="object"?Fe:{},kt=dt.offsetHeader,Mt=kt===void 0?0:kt,jt=dt.offsetSummary,cn=jt===void 0?0:jt,rn=dt.offsetScroll,Qt=rn===void 0?0:rn,ft=dt.getContainer,Nt=ft===void 0?function(){return sn}:ft,Ft=Nt()||sn,Rt=!!Fe;return ue.useMemo(function(){return{isSticky:Rt,stickyClassName:Rt?"".concat(wt,"-sticky-holder"):"",offsetHeader:Mt,offsetSummary:cn,offsetScroll:Qt,container:Ft}},[Rt,Qt,Mt,cn,wt,Ft])}function yn(Fe,wt,dt){var kt=(0,ue.useMemo)(function(){var Mt=wt.length,jt=function(ft,Nt,Ft){for(var Rt=[],Gt=0,Bt=ft;Bt!==Nt;Bt+=Ft)Rt.push(Gt),wt[Bt].fixed&&(Gt+=Fe[Bt]||0);return Rt},cn=jt(0,Mt,1),rn=jt(Mt-1,-1,-1).reverse();return dt==="rtl"?{left:rn,right:cn}:{left:cn,right:rn}},[Fe,wt,dt]);return kt}var Wn=yn;function qn(Fe){var wt=Fe.className,dt=Fe.children;return ue.createElement("div",{className:wt},dt)}var Xe=qn,$e=le(8224),un=le(16089),Ut=le(76846);function ct(Fe){var wt=(0,Ut.bn)(Fe),dt=wt.getBoundingClientRect(),kt=document.documentElement;return{left:dt.left+(window.pageXOffset||kt.scrollLeft)-(kt.clientLeft||document.body.clientLeft||0),top:dt.top+(window.pageYOffset||kt.scrollTop)-(kt.clientTop||document.body.clientTop||0)}}var en=function(wt,dt){var kt,Mt,jt=wt.scrollBodyRef,cn=wt.onScroll,rn=wt.offsetScroll,Qt=wt.container,ft=wt.direction,Nt=Ce(me,"prefixCls"),Ft=((kt=jt.current)===null||kt===void 0?void 0:kt.scrollWidth)||0,Rt=((Mt=jt.current)===null||Mt===void 0?void 0:Mt.clientWidth)||0,Gt=Ft&&Rt*(Rt/Ft),Bt=ue.useRef(),Kt=rr({scrollLeft:0,isHiddenScrollBar:!0}),Vt=(0,Ge.Z)(Kt,2),nn=Vt[0],Mn=Vt[1],Ln=ue.useRef({delta:0,x:0}),Vn=ue.useState(!1),Bn=(0,Ge.Z)(Vn,2),tr=Bn[0],ar=Bn[1],yr=ue.useRef(null);ue.useEffect(function(){return function(){un.Z.cancel(yr.current)}},[]);var lr=function(){ar(!1)},Er=function(In){In.persist(),Ln.current.delta=In.pageX-nn.scrollLeft,Ln.current.x=0,ar(!0),In.preventDefault()},Lr=function(In){var Yn,Hn=In||((Yn=window)===null||Yn===void 0?void 0:Yn.event),kr=Hn.buttons;if(!tr||kr===0){tr&&ar(!1);return}var Cr=Ln.current.x+In.pageX-Ln.current.x-Ln.current.delta,Pr=ft==="rtl";Cr=Math.max(Pr?Gt-Rt:0,Math.min(Pr?0:Rt-Gt,Cr));var Xr=!Pr||Math.abs(Cr)+Math.abs(Gt)<Rt;Xr&&(cn({scrollLeft:Cr/Rt*(Ft+2)}),Ln.current.x=In.pageX)},xr=function(){un.Z.cancel(yr.current),yr.current=(0,un.Z)(function(){if(jt.current){var In=ct(jt.current).top,Yn=In+jt.current.offsetHeight,Hn=Qt===window?document.documentElement.scrollTop+window.innerHeight:ct(Qt).top+Qt.clientHeight;Yn-(0,qe.Z)()<=Hn||In>=Hn-rn?Mn(function(kr){return(0,ke.Z)((0,ke.Z)({},kr),{},{isHiddenScrollBar:!0})}):Mn(function(kr){return(0,ke.Z)((0,ke.Z)({},kr),{},{isHiddenScrollBar:!1})})}})},Dr=function(In){Mn(function(Yn){return(0,ke.Z)((0,ke.Z)({},Yn),{},{scrollLeft:In/Ft*Rt||0})})};return ue.useImperativeHandle(dt,function(){return{setScrollLeft:Dr,checkScrollBarVisible:xr}}),ue.useEffect(function(){var or=(0,$e.Z)(document.body,"mouseup",lr,!1),In=(0,$e.Z)(document.body,"mousemove",Lr,!1);return xr(),function(){or.remove(),In.remove()}},[Gt,tr]),ue.useEffect(function(){if(jt.current){for(var or=[],In=(0,Ut.bn)(jt.current);In;)or.push(In),In=In.parentElement;return or.forEach(function(Yn){return Yn.addEventListener("scroll",xr,!1)}),window.addEventListener("resize",xr,!1),window.addEventListener("scroll",xr,!1),Qt.addEventListener("scroll",xr,!1),function(){or.forEach(function(Yn){return Yn.removeEventListener("scroll",xr)}),window.removeEventListener("resize",xr),window.removeEventListener("scroll",xr),Qt.removeEventListener("scroll",xr)}}},[Qt]),ue.useEffect(function(){nn.isHiddenScrollBar||Mn(function(or){var In=jt.current;return In?(0,ke.Z)((0,ke.Z)({},or),{},{scrollLeft:In.scrollLeft/In.scrollWidth*In.clientWidth}):or})},[nn.isHiddenScrollBar]),Ft<=Rt||!Gt||nn.isHiddenScrollBar?null:ue.createElement("div",{style:{height:(0,qe.Z)(),width:Rt,bottom:rn},className:"".concat(Nt,"-sticky-scroll")},ue.createElement("div",{onMouseDown:Er,ref:Bt,className:Ke()("".concat(Nt,"-sticky-scroll-bar"),(0,Ie.Z)({},"".concat(Nt,"-sticky-scroll-bar-active"),tr)),style:{width:"".concat(Gt,"px"),transform:"translate3d(".concat(nn.scrollLeft,"px, 0, 0)")}}))},hn=ue.forwardRef(en);function mn(Fe){return null}var Cn=mn;function gn(Fe){return null}var wn=gn,nt="rc-table",$n=[],kn={};function _n(){return"No Data"}function zn(Fe,wt){var dt=(0,ke.Z)({rowKey:"key",prefixCls:nt,emptyText:_n},Fe),kt=dt.prefixCls,Mt=dt.className,jt=dt.rowClassName,cn=dt.style,rn=dt.data,Qt=dt.rowKey,ft=dt.scroll,Nt=dt.tableLayout,Ft=dt.direction,Rt=dt.title,Gt=dt.footer,Bt=dt.summary,Kt=dt.caption,Vt=dt.id,nn=dt.showHeader,Mn=dt.components,Ln=dt.emptyText,Vn=dt.onRow,Bn=dt.onHeaderRow,tr=dt.onScroll,ar=dt.internalHooks,yr=dt.transformColumns,lr=dt.internalRefs,Er=dt.tailor,Lr=dt.getContainerWidth,xr=dt.sticky,Dr=dt.rowHoverable,or=Dr===void 0?!0:Dr,In=rn||$n,Yn=!!In.length,Hn=ar===re.R,kr=ue.useCallback(function(Fr,Or){return(0,Ve.Z)(Mn,Fr)||Or},[Mn]),Cr=ue.useMemo(function(){return typeof Qt=="function"?Qt:function(Fr){var Or=Fr&&Fr[Qt];return Or}},[Qt]),Pr=kr(["body"]),Xr=Zn(),wi=(0,Ge.Z)(Xr,3),oi=wi[0],Gi=wi[1],Pi=wi[2],Jr=An(dt,In,Cr),ei=(0,Ge.Z)(Jr,6),ti=ei[0],ki=ei[1],ii=ei[2],ui=ei[3],ai=ei[4],Un=ei[5],hr=ft==null?void 0:ft.x,pr=ue.useState(0),mr=(0,Ge.Z)(pr,2),Hr=mr[0],Qr=mr[1],zi=(0,Sn.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({},dt),ti),{},{expandable:!!ti.expandedRowRender,columnTitle:ti.columnTitle,expandedKeys:ii,getRowKey:Cr,onTriggerExpand:Un,expandIcon:ui,expandIconColumnIndex:ti.expandIconColumnIndex,direction:Ft,scrollWidth:Hn&&Er&&typeof hr=="number"?hr:null,clientWidth:Hr}),Hn?yr:null),fi=(0,Ge.Z)(zi,4),di=fi[0],Tr=fi[1],xi=fi[2],Ui=fi[3],ni=xi!=null?xi:hr,lo=ue.useMemo(function(){return{columns:di,flattenColumns:Tr}},[di,Tr]),Vi=ue.useRef(),Ji=ue.useRef(),mi=ue.useRef(),ra=ue.useRef();ue.useImperativeHandle(wt,function(){return{nativeElement:Vi.current,scrollTo:function(Or){var Si;if(mi.current instanceof HTMLElement){var Ri=Or.index,Bi=Or.top,Ro=Or.key;if(lt(Bi)){var wo;(wo=mi.current)===null||wo===void 0||wo.scrollTo({top:Bi})}else{var Fo,fo=Ro!=null?Ro:Cr(In[Ri]);(Fo=mi.current.querySelector('[data-row-key="'.concat(fo,'"]')))===null||Fo===void 0||Fo.scrollIntoView()}}else(Si=mi.current)!==null&&Si!==void 0&&Si.scrollTo&&mi.current.scrollTo(Or)}}});var Jo=ue.useRef(),vo=ue.useState(!1),mo=(0,Ge.Z)(vo,2),ro=mo[0],Eo=mo[1],ia=ue.useState(!1),oa=(0,Ge.Z)(ia,2),aa=oa[0],_o=oa[1],Qo=ue.useState(new Map),Zo=(0,Ge.Z)(Qo,2),ko=Zo[0],qo=Zo[1],la=fe(Tr),Ho=la.map(function(Fr){return ko.get(Fr)}),Ao=ue.useMemo(function(){return Ho},[Ho.join("_")]),Do=Wn(Ao,Tr,Ft),Zi=ft&&He(ft.y),hi=ft&&He(ni)||!!ti.fixed,_r=hi&&Tr.some(function(Fr){var Or=Fr.fixed;return Or}),Mr=ue.useRef(),gi=Lt(xr,kt),pi=gi.isSticky,bi=gi.offsetHeader,Ai=gi.offsetSummary,so=gi.offsetScroll,io=gi.stickyClassName,go=gi.container,vi=ue.useMemo(function(){return Bt==null?void 0:Bt(In)},[Bt,In]),Mi=(Zi||pi)&&ue.isValidElement(vi)&&vi.type===ce&&vi.props.fixed,Qi,uo,$o;Zi&&(uo={overflowY:Yn?"scroll":"auto",maxHeight:ft.y}),hi&&(Qi={overflowX:"auto"},Zi||(uo={overflowY:"hidden"}),$o={width:ni===!0?"auto":ni,minWidth:"100%"});var Sa=ue.useCallback(function(Fr,Or){qo(function(Si){if(Si.get(Fr)!==Or){var Ri=new Map(Si);return Ri.set(Fr,Or),Ri}return Si})},[]),Ea=Jn(null),Co=(0,Ge.Z)(Ea,2),Po=Co[0],Hi=Co[1];function co(Fr,Or){Or&&(typeof Or=="function"?Or(Fr):Or.scrollLeft!==Fr&&(Or.scrollLeft=Fr,Or.scrollLeft!==Fr&&setTimeout(function(){Or.scrollLeft=Fr},0)))}var qi=(0,Oe.Z)(function(Fr){var Or=Fr.currentTarget,Si=Fr.scrollLeft,Ri=Ft==="rtl",Bi=typeof Si=="number"?Si:Or.scrollLeft,Ro=Or||kn;if(!Hi()||Hi()===Ro){var wo;Po(Ro),co(Bi,Ji.current),co(Bi,mi.current),co(Bi,Jo.current),co(Bi,(wo=Mr.current)===null||wo===void 0?void 0:wo.setScrollLeft)}var Fo=Or||Ji.current;if(Fo){var fo=Hn&&Er&&typeof ni=="number"?ni:Fo.scrollWidth,yo=Fo.clientWidth;if(fo===yo){Eo(!1),_o(!1);return}Ri?(Eo(-Bi<fo-yo),_o(-Bi>0)):(Eo(Bi>0),_o(Bi<fo-yo))}}),sa=(0,Oe.Z)(function(Fr){qi(Fr),tr==null||tr(Fr)}),Qa=function(){if(hi&&mi.current){var Or;qi({currentTarget:(0,Ut.bn)(mi.current),scrollLeft:(Or=mi.current)===null||Or===void 0?void 0:Or.scrollLeft})}else Eo(!1),_o(!1)},qa=function(Or){var Si,Ri=Or.width;(Si=Mr.current)===null||Si===void 0||Si.checkScrollBarVisible();var Bi=Vi.current?Vi.current.offsetWidth:Ri;Hn&&Lr&&Vi.current&&(Bi=Lr(Vi.current,Bi)||Bi),Bi!==Hr&&(Qa(),Qr(Bi))},Wo=ue.useRef(!1);ue.useEffect(function(){Wo.current&&Qa()},[hi,rn,di.length]),ue.useEffect(function(){Wo.current=!0},[]);var $a=ue.useState(0),ka=(0,Ge.Z)($a,2),Lo=ka[0],el=ka[1],Aa=ue.useState(!0),Da=(0,Ge.Z)(Aa,2),Pa=Da[0],La=Da[1];(0,Ue.Z)(function(){(!Er||!Hn)&&(mi.current instanceof Element?el((0,qe.o)(mi.current).width):el((0,qe.o)(ra.current).width)),La((0,et.G)("position","sticky"))},[]),ue.useEffect(function(){Hn&&lr&&(lr.body.current=mi.current)});var zo=ue.useCallback(function(Fr){return ue.createElement(ue.Fragment,null,ue.createElement(xn,Fr),Mi==="top"&&ue.createElement(Et,Fr,vi))},[Mi,vi]),ua=ue.useCallback(function(Fr){return ue.createElement(Et,Fr,vi)},[vi]),Ta=kr(["table"],"table"),To=ue.useMemo(function(){return Nt||(_r?ni==="max-content"?"auto":"fixed":Zi||pi||Tr.some(function(Fr){var Or=Fr.ellipsis;return Or})?"fixed":"auto")},[Zi,_r,Tr,Nt,pi]),Ma,Ba={colWidths:Ao,columCount:Tr.length,stickyOffsets:Do,onHeaderRow:Bn,fixHeader:Zi,scroll:ft},tl=ue.useMemo(function(){return Yn?null:typeof Ln=="function"?Ln():Ln},[Yn,Ln]),ca=ue.createElement(Tn,{data:In,measureColumnWidth:Zi||hi||pi}),da=ue.createElement(Qn,{colWidths:Tr.map(function(Fr){var Or=Fr.width;return Or}),columns:Tr}),Mo=Kt!=null?ue.createElement("caption",{className:"".concat(kt,"-caption")},Kt):void 0,ea=(0,St.Z)(dt,{data:!0}),nl=(0,St.Z)(dt,{aria:!0});if(Zi||pi){var Ko;typeof Pr=="function"?(Ko=Pr(In,{scrollbarSize:Lo,ref:mi,onScroll:qi}),Ba.colWidths=Tr.map(function(Fr,Or){var Si=Fr.width,Ri=Or===Tr.length-1?Si-Lo:Si;return typeof Ri=="number"&&!Number.isNaN(Ri)?Ri:0})):Ko=ue.createElement("div",{style:(0,ke.Z)((0,ke.Z)({},Qi),uo),onScroll:sa,ref:mi,className:Ke()("".concat(kt,"-body"))},ue.createElement(Ta,(0,pe.Z)({style:(0,ke.Z)((0,ke.Z)({},$o),{},{tableLayout:To})},nl),Mo,da,ca,!Mi&&vi&&ue.createElement(Et,{stickyOffsets:Do,flattenColumns:Tr},vi)));var Na=(0,ke.Z)((0,ke.Z)((0,ke.Z)({noData:!In.length,maxContentScroll:hi&&ni==="max-content"},Ba),lo),{},{direction:Ft,stickyClassName:io,onScroll:qi});Ma=ue.createElement(ue.Fragment,null,nn!==!1&&ue.createElement(bn,(0,pe.Z)({},Na,{stickyTopOffset:bi,className:"".concat(kt,"-header"),ref:Ji}),zo),Ko,Mi&&Mi!=="top"&&ue.createElement(bn,(0,pe.Z)({},Na,{stickyBottomOffset:Ai,className:"".concat(kt,"-summary"),ref:Jo}),ua),pi&&mi.current&&mi.current instanceof Element&&ue.createElement(hn,{ref:Mr,offsetScroll:so,scrollBodyRef:mi,onScroll:qi,container:go,direction:Ft}))}else Ma=ue.createElement("div",{style:(0,ke.Z)((0,ke.Z)({},Qi),uo),className:Ke()("".concat(kt,"-content")),onScroll:qi,ref:mi},ue.createElement(Ta,(0,pe.Z)({style:(0,ke.Z)((0,ke.Z)({},$o),{},{tableLayout:To})},nl),Mo,da,nn!==!1&&ue.createElement(xn,(0,pe.Z)({},Ba,lo)),ca,vi&&ue.createElement(Et,{stickyOffsets:Do,flattenColumns:Tr},vi)));var Bo=ue.createElement("div",(0,pe.Z)({className:Ke()(kt,Mt,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(kt,"-rtl"),Ft==="rtl"),"".concat(kt,"-ping-left"),ro),"".concat(kt,"-ping-right"),aa),"".concat(kt,"-layout-fixed"),Nt==="fixed"),"".concat(kt,"-fixed-header"),Zi),"".concat(kt,"-fixed-column"),_r),"".concat(kt,"-fixed-column-gapped"),_r&&Ui),"".concat(kt,"-scroll-horizontal"),hi),"".concat(kt,"-has-fix-left"),Tr[0]&&Tr[0].fixed),"".concat(kt,"-has-fix-right"),Tr[Tr.length-1]&&Tr[Tr.length-1].fixed==="right")),style:cn,id:Vt,ref:Vi},ea),Rt&&ue.createElement(Xe,{className:"".concat(kt,"-title")},Rt(In)),ue.createElement("div",{ref:ra,className:"".concat(kt,"-container")},Ma),Gt&&ue.createElement(Xe,{className:"".concat(kt,"-footer")},Gt(In)));hi&&(Bo=ue.createElement(_e.Z,{onResize:qa},Bo));var Ra=Kn(Tr,Do,Ft),No=ue.useMemo(function(){return{scrollX:ni,prefixCls:kt,getComponent:kr,scrollbarSize:Lo,direction:Ft,fixedInfoList:Ra,isSticky:pi,supportSticky:Pa,componentWidth:Hr,fixHeader:Zi,fixColumn:_r,horizonScroll:hi,tableLayout:To,rowClassName:jt,expandedRowClassName:ti.expandedRowClassName,expandIcon:ui,expandableType:ki,expandRowByClick:ti.expandRowByClick,expandedRowRender:ti.expandedRowRender,onTriggerExpand:Un,expandIconColumnIndex:ti.expandIconColumnIndex,indentSize:ti.indentSize,allColumnsFixedLeft:Tr.every(function(Fr){return Fr.fixed==="left"}),emptyNode:tl,columns:di,flattenColumns:Tr,onColumnResize:Sa,hoverStartRow:oi,hoverEndRow:Gi,onHover:Pi,rowExpandable:ti.rowExpandable,onRow:Vn,getRowKey:Cr,expandedKeys:ii,childrenColumnName:ai,rowHoverable:or}},[ni,kt,kr,Lo,Ft,Ra,pi,Pa,Hr,Zi,_r,hi,To,jt,ti.expandedRowClassName,ui,ki,ti.expandRowByClick,ti.expandedRowRender,Un,ti.expandIconColumnIndex,ti.indentSize,tl,di,Tr,Sa,oi,Gi,Pi,ti.rowExpandable,Vn,Cr,ii,ai,or]);return ue.createElement(me.Provider,{value:No},Bo)}var er=ue.forwardRef(zn);function dr(Fe){return Ye(er,Fe)}var Wr=dr();Wr.EXPAND_COLUMN=re.w,Wr.INTERNAL_HOOKS=re.R,Wr.Column=Cn,Wr.ColumnGroup=wn,Wr.Summary=Pt;var Ar=Wr,gr=le(6790),Zr=ze(null),vr=ze(null);function Gr(Fe,wt,dt){var kt=wt||1;return dt[Fe+kt]-(dt[Fe]||0)}function qr(Fe){var wt=Fe.rowInfo,dt=Fe.column,kt=Fe.colIndex,Mt=Fe.indent,jt=Fe.index,cn=Fe.component,rn=Fe.renderIndex,Qt=Fe.record,ft=Fe.style,Nt=Fe.className,Ft=Fe.inverse,Rt=Fe.getHeight,Gt=dt.render,Bt=dt.dataIndex,Kt=dt.className,Vt=dt.width,nn=Ce(vr,["columnsOffset"]),Mn=nn.columnsOffset,Ln=Ot(wt,dt,kt,Mt,jt),Vn=Ln.key,Bn=Ln.fixedInfo,tr=Ln.appendCellNode,ar=Ln.additionalCellProps,yr=ar.style,lr=ar.colSpan,Er=lr===void 0?1:lr,Lr=ar.rowSpan,xr=Lr===void 0?1:Lr,Dr=kt-1,or=Gr(Dr,Er,Mn),In=Er>1?Vt-or:0,Yn=(0,ke.Z)((0,ke.Z)((0,ke.Z)({},yr),ft),{},{flex:"0 0 ".concat(or,"px"),width:"".concat(or,"px"),marginRight:In,pointerEvents:"auto"}),Hn=ue.useMemo(function(){return Ft?xr<=1:Er===0||xr===0||xr>1},[xr,Er,Ft]);Hn?Yn.visibility="hidden":Ft&&(Yn.height=Rt==null?void 0:Rt(xr));var kr=Hn?function(){return null}:Gt,Cr={};return(xr===0||Er===0)&&(Cr.rowSpan=1,Cr.colSpan=1),ue.createElement(We,(0,pe.Z)({className:Ke()(Kt,Nt),ellipsis:dt.ellipsis,align:dt.align,scope:dt.rowScope,component:cn,prefixCls:wt.prefixCls,key:Vn,record:Qt,index:jt,renderIndex:rn,dataIndex:Bt,render:kr,shouldCellUpdate:dt.shouldCellUpdate},Bn,{appendNode:tr,additionalProps:(0,ke.Z)((0,ke.Z)({},ar),{},{style:Yn},Cr)}))}var Ur=qr,jr=["data","index","className","rowKey","style","extra","getHeight"],Yr=ue.forwardRef(function(Fe,wt){var dt=Fe.data,kt=Fe.index,Mt=Fe.className,jt=Fe.rowKey,cn=Fe.style,rn=Fe.extra,Qt=Fe.getHeight,ft=(0,z.Z)(Fe,jr),Nt=dt.record,Ft=dt.indent,Rt=dt.index,Gt=Ce(me,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Bt=Gt.scrollX,Kt=Gt.flattenColumns,Vt=Gt.prefixCls,nn=Gt.fixColumn,Mn=Gt.componentWidth,Ln=Ce(Zr,["getComponent"]),Vn=Ln.getComponent,Bn=At(Nt,jt,kt,Ft),tr=Vn(["body","row"],"div"),ar=Vn(["body","cell"],"div"),yr=Bn.rowSupportExpand,lr=Bn.expanded,Er=Bn.rowProps,Lr=Bn.expandedRowRender,xr=Bn.expandedRowClassName,Dr;if(yr&&lr){var or=Lr(Nt,kt,Ft+1,lr),In=ln(xr,Nt,kt,Ft),Yn={};nn&&(Yn={style:(0,Ie.Z)({},"--virtual-width","".concat(Mn,"px"))});var Hn="".concat(Vt,"-expanded-row-cell");Dr=ue.createElement(tr,{className:Ke()("".concat(Vt,"-expanded-row"),"".concat(Vt,"-expanded-row-level-").concat(Ft+1),In)},ue.createElement(We,{component:ar,prefixCls:Vt,className:Ke()(Hn,(0,Ie.Z)({},"".concat(Hn,"-fixed"),nn)),additionalProps:Yn},or))}var kr=(0,ke.Z)((0,ke.Z)({},cn),{},{width:Bt});rn&&(kr.position="absolute",kr.pointerEvents="none");var Cr=ue.createElement(tr,(0,pe.Z)({},Er,ft,{"data-row-key":jt,ref:yr?null:wt,className:Ke()(Mt,"".concat(Vt,"-row"),Er==null?void 0:Er.className,(0,Ie.Z)({},"".concat(Vt,"-row-extra"),rn)),style:(0,ke.Z)((0,ke.Z)({},kr),Er==null?void 0:Er.style)}),Kt.map(function(Pr,Xr){return ue.createElement(Ur,{key:Xr,component:ar,rowInfo:Bn,column:Pr,colIndex:Xr,indent:Ft,index:kt,renderIndex:Rt,record:Nt,inverse:rn,getHeight:Qt})}));return yr?ue.createElement("div",{ref:wt},Cr,Dr):Cr}),Vr=tt(Yr),Br=Vr,$r=ue.forwardRef(function(Fe,wt){var dt=Fe.data,kt=Fe.onScroll,Mt=Ce(me,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),jt=Mt.flattenColumns,cn=Mt.onColumnResize,rn=Mt.getRowKey,Qt=Mt.expandedKeys,ft=Mt.prefixCls,Nt=Mt.childrenColumnName,Ft=Mt.scrollX,Rt=Mt.direction,Gt=Ce(Zr),Bt=Gt.sticky,Kt=Gt.scrollY,Vt=Gt.listItemHeight,nn=Gt.getComponent,Mn=Gt.onScroll,Ln=ue.useRef(),Vn=_t(dt,Nt,Qt,rn),Bn=ue.useMemo(function(){var Dr=0;return jt.map(function(or){var In=or.width,Yn=or.key;return Dr+=In,[Yn,In,Dr]})},[jt]),tr=ue.useMemo(function(){return Bn.map(function(Dr){return Dr[2]})},[Bn]);ue.useEffect(function(){Bn.forEach(function(Dr){var or=(0,Ge.Z)(Dr,2),In=or[0],Yn=or[1];cn(In,Yn)})},[Bn]),ue.useImperativeHandle(wt,function(){var Dr,or={scrollTo:function(Yn){var Hn;(Hn=Ln.current)===null||Hn===void 0||Hn.scrollTo(Yn)},nativeElement:(Dr=Ln.current)===null||Dr===void 0?void 0:Dr.nativeElement};return Object.defineProperty(or,"scrollLeft",{get:function(){var Yn;return((Yn=Ln.current)===null||Yn===void 0?void 0:Yn.getScrollInfo().x)||0},set:function(Yn){var Hn;(Hn=Ln.current)===null||Hn===void 0||Hn.scrollTo({left:Yn})}}),or});var ar=function(or,In){var Yn,Hn=(Yn=Vn[In])===null||Yn===void 0?void 0:Yn.record,kr=or.onCell;if(kr){var Cr,Pr=kr(Hn,In);return(Cr=Pr==null?void 0:Pr.rowSpan)!==null&&Cr!==void 0?Cr:1}return 1},yr=function(or){var In=or.start,Yn=or.end,Hn=or.getSize,kr=or.offsetY;if(Yn<0)return null;for(var Cr=jt.filter(function(ui){return ar(ui,In)===0}),Pr=In,Xr=function(ai){if(Cr=Cr.filter(function(Un){return ar(Un,ai)===0}),!Cr.length)return Pr=ai,1},wi=In;wi>=0&&!Xr(wi);wi-=1);for(var oi=jt.filter(function(ui){return ar(ui,Yn)!==1}),Gi=Yn,Pi=function(ai){if(oi=oi.filter(function(Un){return ar(Un,ai)!==1}),!oi.length)return Gi=Math.max(ai-1,Yn),1},Jr=Yn;Jr<Vn.length&&!Pi(Jr);Jr+=1);for(var ei=[],ti=function(ai){var Un=Vn[ai];if(!Un)return 1;jt.some(function(hr){return ar(hr,ai)>1})&&ei.push(ai)},ki=Pr;ki<=Gi;ki+=1)ti(ki);var ii=ei.map(function(ui){var ai=Vn[ui],Un=rn(ai.record,ui),hr=function(Hr){var Qr=ui+Hr-1,zi=rn(Vn[Qr].record,Qr),fi=Hn(Un,zi);return fi.bottom-fi.top},pr=Hn(Un);return ue.createElement(Br,{key:ui,data:ai,rowKey:Un,index:ui,style:{top:-kr+pr.top},extra:!0,getHeight:hr})});return ii},lr=ue.useMemo(function(){return{columnsOffset:tr}},[tr]),Er="".concat(ft,"-tbody"),Lr=nn(["body","wrapper"]),xr={};return Bt&&(xr.position="sticky",xr.bottom=0,(0,Ae.Z)(Bt)==="object"&&Bt.offsetScroll&&(xr.bottom=Bt.offsetScroll)),ue.createElement(vr.Provider,{value:lr},ue.createElement(gr.Z,{fullHeight:!1,ref:Ln,prefixCls:"".concat(Er,"-virtual"),styles:{horizontalScrollBar:xr},className:Er,height:Kt,itemHeight:Vt||24,data:Vn,itemKey:function(or){return rn(or.record)},component:Lr,scrollWidth:Ft,direction:Rt,onVirtualScroll:function(or){var In,Yn=or.x;kt({currentTarget:(In=Ln.current)===null||In===void 0?void 0:In.nativeElement,scrollLeft:Yn})},onScroll:Mn,extraRender:yr},function(Dr,or,In){var Yn=rn(Dr.record,or);return ue.createElement(Br,{data:Dr,rowKey:Yn,index:or,style:In.style})}))}),Kr=tt($r),On=Kr,ir=function(wt,dt){var kt=dt.ref,Mt=dt.onScroll;return ue.createElement(On,{ref:kt,data:wt,onScroll:Mt})};function Sr(Fe,wt){var dt=Fe.data,kt=Fe.columns,Mt=Fe.scroll,jt=Fe.sticky,cn=Fe.prefixCls,rn=cn===void 0?nt:cn,Qt=Fe.className,ft=Fe.listItemHeight,Nt=Fe.components,Ft=Fe.onScroll,Rt=Mt||{},Gt=Rt.x,Bt=Rt.y;typeof Gt!="number"&&(Gt=1),typeof Bt!="number"&&(Bt=500);var Kt=(0,Wt.zX)(function(Mn,Ln){return(0,Ve.Z)(Nt,Mn)||Ln}),Vt=(0,Wt.zX)(Ft),nn=ue.useMemo(function(){return{sticky:jt,scrollY:Bt,listItemHeight:ft,getComponent:Kt,onScroll:Vt}},[jt,Bt,ft,Kt,Vt]);return ue.createElement(Zr.Provider,{value:nn},ue.createElement(Ar,(0,pe.Z)({},Fe,{className:Ke()(Qt,"".concat(rn,"-virtual")),scroll:(0,ke.Z)((0,ke.Z)({},Mt),{},{x:Gt}),components:(0,ke.Z)((0,ke.Z)({},Nt),{},{body:dt!=null&&dt.length?ir:void 0}),columns:kt,internalHooks:re.R,tailor:!0,ref:wt})))}var Rr=ue.forwardRef(Sr);function Nr(Fe){return Ye(Rr,Fe)}var Ir=Nr(),si=null},54451:function(tn,Xt,le){"use strict";le.d(Xt,{g:function(){return ue},v:function(){return be}});var re=le(27247),Ge=le(43079),Oe=le(48736),Ue=["expandable"],be="RC_TABLE_INTERNAL_COL_DEFINE";function ue(Le){var ze=Le.expandable,Ce=(0,Ge.Z)(Le,Ue),pe;return"expandable"in Le?pe=(0,re.Z)((0,re.Z)({},Ce),ze):pe=Ce,pe.showExpandColumn===!1&&(pe.expandIconColumnIndex=-1),pe}},22711:function(tn,Xt,le){"use strict";le.r(Xt),le.d(Xt,{ResizableTextArea:function(){return De},default:function(){return It}});var re=le(32855),Ge=le(74430),Oe=le(27247),Ue=le(3300),be=le(11913),ue=le(43079),Le=le(92310),ze=le.n(Le),Ce=le(36901),pe=le(66003),ht=le(30292),ye=le(18929),pt=le(59301),je=le(34666),Se=le(29301),xe=le(34280),Ee=le(16089),Ye=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,tt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],at={},we;function me(mt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=mt.getAttribute("id")||mt.getAttribute("data-reactid")||mt.getAttribute("name");if(vt&&at[ot])return at[ot];var ge=window.getComputedStyle(mt),fe=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),He=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),lt=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),st=tt.map(function(rt){return"".concat(rt,":").concat(ge.getPropertyValue(rt))}).join(";"),Pe={sizingStyle:st,paddingSize:He,borderSize:lt,boxSizing:fe};return vt&&ot&&(at[ot]=Pe),Pe}function Te(mt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),we.setAttribute("name","hiddenTextarea"),document.body.appendChild(we)),mt.getAttribute("wrap")?we.setAttribute("wrap",mt.getAttribute("wrap")):we.removeAttribute("wrap");var fe=me(mt,vt),He=fe.paddingSize,lt=fe.borderSize,st=fe.boxSizing,Pe=fe.sizingStyle;we.setAttribute("style","".concat(Pe,";").concat(Ye)),we.value=mt.value||mt.placeholder||"";var rt=void 0,Qe=void 0,Wt,Me=we.scrollHeight;if(st==="border-box"?Me+=lt:st==="content-box"&&(Me-=He),ot!==null||ge!==null){we.value=" ";var ut=we.scrollHeight-He;ot!==null&&(rt=ut*ot,st==="border-box"&&(rt=rt+He+lt),Me=Math.max(rt,Me)),ge!==null&&(Qe=ut*ge,st==="border-box"&&(Qe=Qe+He+lt),Wt=Me>Qe?"":"hidden",Me=Math.min(Qe,Me))}var We={height:Me,overflowY:Wt,resize:"none"};return rt&&(We.minHeight=rt),Qe&&(We.maxHeight=Qe),We}var Ne=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],bt=0,Ae=1,ke=2,Ie=pt.forwardRef(function(mt,vt){var ot=mt,ge=ot.prefixCls,fe=ot.defaultValue,He=ot.value,lt=ot.autoSize,st=ot.onResize,Pe=ot.className,rt=ot.style,Qe=ot.disabled,Wt=ot.onChange,Me=ot.onInternalAutoSize,ut=(0,ue.Z)(ot,Ne),We=(0,ye.Z)(fe,{value:He,postState:function(dn){return dn!=null?dn:""}}),yt=(0,be.Z)(We,2),xt=yt[0],ae=yt[1],ee=function(dn){ae(dn.target.value),Wt==null||Wt(dn)},z=pt.useRef();pt.useImperativeHandle(vt,function(){return{textArea:z.current}});var ie=pt.useMemo(function(){return lt&&(0,je.Z)(lt)==="object"?[lt.minRows,lt.maxRows]:[]},[lt]),se=(0,be.Z)(ie,2),ne=se[0],ce=se[1],Re=!!lt,Et=function(){try{if(document.activeElement===z.current){var dn=z.current,Tt=dn.selectionStart,gt=dn.selectionEnd,pn=dn.scrollTop;z.current.setSelectionRange(Tt,gt),z.current.scrollTop=pn}}catch(Nn){}},Pt=pt.useState(ke),_e=(0,be.Z)(Pt,2),et=_e[0],qe=_e[1],St=pt.useState(),Zt=(0,be.Z)(St,2),_t=Zt[0],At=Zt[1],an=function(){qe(bt)};(0,xe.Z)(function(){Re&&an()},[He,ne,ce,Re]),(0,xe.Z)(function(){if(et===bt)qe(Ae);else if(et===Ae){var Yt=Te(z.current,!1,ne,ce);qe(ke),At(Yt)}else Et()},[et]);var qt=pt.useRef(),Ht=function(){Ee.Z.cancel(qt.current)},it=function(dn){et===ke&&(st==null||st(dn),lt&&(Ht(),qt.current=(0,Ee.Z)(function(){an()})))};pt.useEffect(function(){return Ht},[]);var ln=Re?_t:null,Ot=(0,Oe.Z)((0,Oe.Z)({},rt),ln);return(et===bt||et===Ae)&&(Ot.overflowY="hidden",Ot.overflowX="hidden"),pt.createElement(Se.Z,{onResize:it,disabled:!(lt||st)},pt.createElement("textarea",(0,re.Z)({},ut,{ref:z,style:Ot,className:ze()(ge,Pe,(0,Ge.Z)({},"".concat(ge,"-disabled"),Qe)),disabled:Qe,value:xt,onChange:ee})))}),De=Ie,Ke=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Be=pt.forwardRef(function(mt,vt){var ot,ge=mt.defaultValue,fe=mt.value,He=mt.onFocus,lt=mt.onBlur,st=mt.onChange,Pe=mt.allowClear,rt=mt.maxLength,Qe=mt.onCompositionStart,Wt=mt.onCompositionEnd,Me=mt.suffix,ut=mt.prefixCls,We=ut===void 0?"rc-textarea":ut,yt=mt.showCount,xt=mt.count,ae=mt.className,ee=mt.style,z=mt.disabled,ie=mt.hidden,se=mt.classNames,ne=mt.styles,ce=mt.onResize,Re=mt.onClear,Et=mt.onPressEnter,Pt=mt.readOnly,_e=mt.autoSize,et=mt.onKeyDown,qe=(0,ue.Z)(mt,Ke),St=(0,ye.Z)(ge,{value:fe,defaultValue:ge}),Zt=(0,be.Z)(St,2),_t=Zt[0],At=Zt[1],an=_t==null?"":String(_t),qt=pt.useState(!1),Ht=(0,be.Z)(qt,2),it=Ht[0],ln=Ht[1],Ot=pt.useRef(!1),Yt=pt.useState(null),dn=(0,be.Z)(Yt,2),Tt=dn[0],gt=dn[1],pn=(0,pt.useRef)(null),Nn=(0,pt.useRef)(null),Tn=function(){var yn;return(yn=Nn.current)===null||yn===void 0?void 0:yn.textArea},nr=function(){Tn().focus()};(0,pt.useImperativeHandle)(vt,function(){var Lt;return{resizableTextArea:Nn.current,focus:nr,blur:function(){Tn().blur()},nativeElement:((Lt=pn.current)===null||Lt===void 0?void 0:Lt.nativeElement)||Tn()}}),(0,pt.useEffect)(function(){ln(function(Lt){return!z&&Lt})},[z]);var fr=pt.useState(null),br=(0,be.Z)(fr,2),Qn=br[0],En=br[1];pt.useEffect(function(){if(Qn){var Lt;(Lt=Tn()).setSelectionRange.apply(Lt,(0,Ue.Z)(Qn))}},[Qn]);var sr=(0,pe.Z)(xt,yt),ur=(ot=sr.max)!==null&&ot!==void 0?ot:rt,Dn=Number(ur)>0,bn=sr.strategy(an),$t=!!ur&&bn>ur,fn=function(yn,Wn){var qn=Wn;!Ot.current&&sr.exceedFormatter&&sr.max&&sr.strategy(Wn)>sr.max&&(qn=sr.exceedFormatter(Wn,{max:sr.max}),Wn!==qn&&En([Tn().selectionStart||0,Tn().selectionEnd||0])),At(qn),(0,ht.rJ)(yn.currentTarget,yn,st,qn)},zt=function(yn){Ot.current=!0,Qe==null||Qe(yn)},Jt=function(yn){Ot.current=!1,fn(yn,yn.currentTarget.value),Wt==null||Wt(yn)},xn=function(yn){fn(yn,yn.target.value)},Sn=function(yn){yn.key==="Enter"&&Et&&Et(yn),et==null||et(yn)},An=function(yn){ln(!0),He==null||He(yn)},Kn=function(yn){ln(!1),lt==null||lt(yn)},rr=function(yn){At(""),nr(),(0,ht.rJ)(Tn(),yn,st)},Jn=Me,Zn;sr.show&&(sr.showFormatter?Zn=sr.showFormatter({value:an,count:bn,maxLength:ur}):Zn="".concat(bn).concat(Dn?" / ".concat(ur):""),Jn=pt.createElement(pt.Fragment,null,Jn,pt.createElement("span",{className:ze()("".concat(We,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Zn)));var Gn=function(yn){var Wn;ce==null||ce(yn),(Wn=Tn())!==null&&Wn!==void 0&&Wn.style.height&&gt(!0)},sn=!_e&&!yt&&!Pe;return pt.createElement(Ce.BaseInput,{ref:pn,value:an,allowClear:Pe,handleReset:rr,suffix:Jn,prefixCls:We,classNames:(0,Oe.Z)((0,Oe.Z)({},se),{},{affixWrapper:ze()(se==null?void 0:se.affixWrapper,(0,Ge.Z)((0,Ge.Z)({},"".concat(We,"-show-count"),yt),"".concat(We,"-textarea-allow-clear"),Pe))}),disabled:z,focused:it,className:ze()(ae,$t&&"".concat(We,"-out-of-range")),style:(0,Oe.Z)((0,Oe.Z)({},ee),Tt&&!sn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Zn=="string"?Zn:void 0}},hidden:ie,readOnly:Pt,onClear:Re},pt.createElement(De,(0,re.Z)({},qe,{autoSize:_e,maxLength:rt,onKeyDown:Sn,onChange:xn,onFocus:An,onBlur:Kn,onCompositionStart:zt,onCompositionEnd:Jt,className:ze()(se==null?void 0:se.textarea),style:(0,Oe.Z)((0,Oe.Z)({},ne==null?void 0:ne.textarea),{},{resize:ee==null?void 0:ee.resize}),disabled:z,prefixCls:We,onResize:Gn,ref:Nn,readOnly:Pt})))}),Ve=Be,It=Ve},639:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return at}});var re=le(32855),Ge=le(74430),Oe=le(27247),Ue=le(11913),be=le(43079),ue=le(59301),Le=le(92310),ze=le.n(Le),Ce=le(26112),pe=le(30699),ht=function(me){for(var Te=me.prefixCls,Ne=me.level,bt=me.isStart,Ae=me.isEnd,ke="".concat(Te,"-indent-unit"),Ie=[],De=0;De<Ne;De+=1)Ie.push(ue.createElement("span",{key:De,className:ze()(ke,(0,Ge.Z)((0,Ge.Z)({},"".concat(ke,"-start"),bt[De]),"".concat(ke,"-end"),Ae[De]))}));return ue.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Ie)},ye=ue.memo(ht),pt=le(65065),je=le(34061),Se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],xe="open",Ee="close",Ye="---",tt=function(me){var Te,Ne,bt,Ae=me.eventKey,ke=me.className,Ie=me.style,De=me.dragOver,Ke=me.dragOverGapTop,Be=me.dragOverGapBottom,Ve=me.isLeaf,It=me.isStart,mt=me.isEnd,vt=me.expanded,ot=me.selected,ge=me.checked,fe=me.halfChecked,He=me.loading,lt=me.domRef,st=me.active,Pe=me.data,rt=me.onMouseMove,Qe=me.selectable,Wt=(0,be.Z)(me,Se),Me=ue.useContext(pe.k),ut=ue.useContext(pe.y),We=ue.useRef(null),yt=ue.useState(!1),xt=(0,Ue.Z)(yt,2),ae=xt[0],ee=xt[1],z=!!(Me.disabled||me.disabled||(Te=ut.nodeDisabled)!==null&&Te!==void 0&&Te.call(ut,Pe)),ie=ue.useMemo(function(){return!Me.checkable||me.checkable===!1?!1:Me.checkable},[Me.checkable,me.checkable]),se=function(bn){z||Me.onNodeSelect(bn,(0,je.F)(me))},ne=function(bn){z||!ie||me.disableCheckbox||Me.onNodeCheck(bn,(0,je.F)(me),!ge)},ce=ue.useMemo(function(){return typeof Qe=="boolean"?Qe:Me.selectable},[Qe,Me.selectable]),Re=function(bn){Me.onNodeClick(bn,(0,je.F)(me)),ce?se(bn):ne(bn)},Et=function(bn){Me.onNodeDoubleClick(bn,(0,je.F)(me))},Pt=function(bn){Me.onNodeMouseEnter(bn,(0,je.F)(me))},_e=function(bn){Me.onNodeMouseLeave(bn,(0,je.F)(me))},et=function(bn){Me.onNodeContextMenu(bn,(0,je.F)(me))},qe=ue.useMemo(function(){return!!(Me.draggable&&(!Me.draggable.nodeDraggable||Me.draggable.nodeDraggable(Pe)))},[Me.draggable,Pe]),St=function(bn){bn.stopPropagation(),ee(!0),Me.onNodeDragStart(bn,me);try{bn.dataTransfer.setData("text/plain","")}catch($t){}},Zt=function(bn){bn.preventDefault(),bn.stopPropagation(),Me.onNodeDragEnter(bn,me)},_t=function(bn){bn.preventDefault(),bn.stopPropagation(),Me.onNodeDragOver(bn,me)},At=function(bn){bn.stopPropagation(),Me.onNodeDragLeave(bn,me)},an=function(bn){bn.stopPropagation(),ee(!1),Me.onNodeDragEnd(bn,me)},qt=function(bn){bn.preventDefault(),bn.stopPropagation(),ee(!1),Me.onNodeDrop(bn,me)},Ht=function(bn){He||Me.onNodeExpand(bn,(0,je.F)(me))},it=ue.useMemo(function(){var Dn=(0,pt.Z)(Me.keyEntities,Ae)||{},bn=Dn.children;return!!(bn||[]).length},[Me.keyEntities,Ae]),ln=ue.useMemo(function(){return Ve===!1?!1:Ve||!Me.loadData&&!it||Me.loadData&&me.loaded&&!it},[Ve,Me.loadData,it,me.loaded]);ue.useEffect(function(){He||typeof Me.loadData=="function"&&vt&&!ln&&!me.loaded&&Me.onNodeLoad((0,je.F)(me))},[He,Me.loadData,Me.onNodeLoad,vt,ln,me]);var Ot=ue.useMemo(function(){var Dn;return(Dn=Me.draggable)!==null&&Dn!==void 0&&Dn.icon?ue.createElement("span",{className:"".concat(Me.prefixCls,"-draggable-icon")},Me.draggable.icon):null},[Me.draggable]),Yt=function(bn){var $t=me.switcherIcon||Me.switcherIcon;return typeof $t=="function"?$t((0,Oe.Z)((0,Oe.Z)({},me),{},{isLeaf:bn})):$t},dn=function(){if(ln){var bn=Yt(!0);return bn!==!1?ue.createElement("span",{className:ze()("".concat(Me.prefixCls,"-switcher"),"".concat(Me.prefixCls,"-switcher-noop"))},bn):null}var $t=Yt(!1);return $t!==!1?ue.createElement("span",{onClick:Ht,className:ze()("".concat(Me.prefixCls,"-switcher"),"".concat(Me.prefixCls,"-switcher_").concat(vt?xe:Ee))},$t):null},Tt=ue.useMemo(function(){if(!ie)return null;var Dn=typeof ie!="boolean"?ie:null;return ue.createElement("span",{className:ze()("".concat(Me.prefixCls,"-checkbox"),(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},"".concat(Me.prefixCls,"-checkbox-checked"),ge),"".concat(Me.prefixCls,"-checkbox-indeterminate"),!ge&&fe),"".concat(Me.prefixCls,"-checkbox-disabled"),z||me.disableCheckbox)),onClick:ne,role:"checkbox","aria-checked":fe?"mixed":ge,"aria-disabled":z||me.disableCheckbox,"aria-label":"Select ".concat(typeof me.title=="string"?me.title:"tree node")},Dn)},[ie,ge,fe,z,me.disableCheckbox,me.title]),gt=ue.useMemo(function(){return ln?null:vt?xe:Ee},[ln,vt]),pn=ue.useMemo(function(){return ue.createElement("span",{className:ze()("".concat(Me.prefixCls,"-iconEle"),"".concat(Me.prefixCls,"-icon__").concat(gt||"docu"),(0,Ge.Z)({},"".concat(Me.prefixCls,"-icon_loading"),He))})},[Me.prefixCls,gt,He]),Nn=ue.useMemo(function(){var Dn=!!Me.draggable,bn=!me.disabled&&Dn&&Me.dragOverNodeKey===Ae;return bn?Me.dropIndicatorRender({dropPosition:Me.dropPosition,dropLevelOffset:Me.dropLevelOffset,indent:Me.indent,prefixCls:Me.prefixCls,direction:Me.direction}):null},[Me.dropPosition,Me.dropLevelOffset,Me.indent,Me.prefixCls,Me.direction,Me.draggable,Me.dragOverNodeKey,Me.dropIndicatorRender]),Tn=ue.useMemo(function(){var Dn=me.title,bn=Dn===void 0?Ye:Dn,$t="".concat(Me.prefixCls,"-node-content-wrapper"),fn;if(Me.showIcon){var zt=me.icon||Me.icon;fn=zt?ue.createElement("span",{className:ze()("".concat(Me.prefixCls,"-iconEle"),"".concat(Me.prefixCls,"-icon__customize"))},typeof zt=="function"?zt(me):zt):pn}else Me.loadData&&He&&(fn=pn);var Jt;return typeof bn=="function"?Jt=bn(Pe):Me.titleRender?Jt=Me.titleRender(Pe):Jt=bn,ue.createElement("span",{ref:We,title:typeof bn=="string"?bn:"",className:ze()($t,"".concat($t,"-").concat(gt||"normal"),(0,Ge.Z)({},"".concat(Me.prefixCls,"-node-selected"),!z&&(ot||ae))),onMouseEnter:Pt,onMouseLeave:_e,onContextMenu:et,onClick:Re,onDoubleClick:Et},fn,ue.createElement("span",{className:"".concat(Me.prefixCls,"-title")},Jt),Nn)},[Me.prefixCls,Me.showIcon,me,Me.icon,pn,Me.titleRender,Pe,gt,Pt,_e,et,Re,Et]),nr=(0,Ce.Z)(Wt,{aria:!0,data:!0}),fr=(0,pt.Z)(Me.keyEntities,Ae)||{},br=fr.level,Qn=mt[mt.length-1],En=!z&&qe,sr=Me.draggingNodeKey===Ae,ur=Qe!==void 0?{"aria-selected":!!Qe}:void 0;return ue.createElement("div",(0,re.Z)({ref:lt,role:"treeitem","aria-expanded":Ve?void 0:vt,className:ze()(ke,"".concat(Me.prefixCls,"-treenode"),(bt={},(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)(bt,"".concat(Me.prefixCls,"-treenode-disabled"),z),"".concat(Me.prefixCls,"-treenode-switcher-").concat(vt?"open":"close"),!Ve),"".concat(Me.prefixCls,"-treenode-checkbox-checked"),ge),"".concat(Me.prefixCls,"-treenode-checkbox-indeterminate"),fe),"".concat(Me.prefixCls,"-treenode-selected"),ot),"".concat(Me.prefixCls,"-treenode-loading"),He),"".concat(Me.prefixCls,"-treenode-active"),st),"".concat(Me.prefixCls,"-treenode-leaf-last"),Qn),"".concat(Me.prefixCls,"-treenode-draggable"),qe),"dragging",sr),(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)(bt,"drop-target",Me.dropTargetKey===Ae),"drop-container",Me.dropContainerKey===Ae),"drag-over",!z&&De),"drag-over-gap-top",!z&&Ke),"drag-over-gap-bottom",!z&&Be),"filter-node",(Ne=Me.filterTreeNode)===null||Ne===void 0?void 0:Ne.call(Me,(0,je.F)(me))),"".concat(Me.prefixCls,"-treenode-leaf"),ln))),style:Ie,draggable:En,onDragStart:En?St:void 0,onDragEnter:qe?Zt:void 0,onDragOver:qe?_t:void 0,onDragLeave:qe?At:void 0,onDrop:qe?qt:void 0,onDragEnd:qe?an:void 0,onMouseMove:rt},ur,nr),ue.createElement(ye,{prefixCls:Me.prefixCls,level:br,isStart:It,isEnd:mt}),Ot,dn(),Tt,Tn)};tt.isTreeNode=1;var at=tt},30699:function(tn,Xt,le){"use strict";le.d(Xt,{k:function(){return Ge},y:function(){return Oe}});var re=le(59301),Ge=re.createContext(null),Oe=re.createContext({})},89149:function(tn,Xt,le){"use strict";le.d(Xt,{OF:function(){return Ae.Z},y6:function(){return Ee.y},ZP:function(){return z}});var re=le(32855),Ge=le(34666),Oe=le(27247),Ue=le(3300),be=le(33377),ue=le(93912),Le=le(83383),ze=le(18881),Ce=le(85461),pe=le(74430),ht=le(92310),ye=le.n(ht),pt=le(10228),je=le(26112),Se=le(48736),xe=le(59301),Ee=le(30699),Ye=function(se){var ne=se.dropPosition,ce=se.dropLevelOffset,Re=se.indent,Et={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ne){case-1:Et.top=0,Et.left=-ce*Re;break;case 1:Et.bottom=0,Et.left=-ce*Re;break;case 0:Et.bottom=0,Et.left=Re;break}return xe.createElement("div",{style:Et})},tt=Ye;function at(ie){if(ie==null)throw new TypeError("Cannot destructure "+ie)}var we=le(11913),me=le(43079),Te=le(34280),Ne=le(6790),bt=le(77900),Ae=le(639);function ke(ie,se){var ne=xe.useState(!1),ce=(0,we.Z)(ne,2),Re=ce[0],Et=ce[1];(0,Te.Z)(function(){if(Re)return ie(),function(){se()}},[Re]),(0,Te.Z)(function(){return Et(!0),function(){Et(!1)}},[])}var Ie=ke,De=le(34061),Ke=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Be=xe.forwardRef(function(ie,se){var ne=ie.className,ce=ie.style,Re=ie.motion,Et=ie.motionNodes,Pt=ie.motionType,_e=ie.onMotionStart,et=ie.onMotionEnd,qe=ie.active,St=ie.treeNodeRequiredProps,Zt=(0,me.Z)(ie,Ke),_t=xe.useState(!0),At=(0,we.Z)(_t,2),an=At[0],qt=At[1],Ht=xe.useContext(Ee.k),it=Ht.prefixCls,ln=Et&&Pt!=="hide";(0,Te.Z)(function(){Et&&ln!==an&&qt(ln)},[Et]);var Ot=function(){Et&&_e()},Yt=xe.useRef(!1),dn=function(){Et&&!Yt.current&&(Yt.current=!0,et())};Ie(Ot,dn);var Tt=function(pn){ln===pn&&dn()};return Et?xe.createElement(bt.default,(0,re.Z)({ref:se,visible:an},Re,{motionAppear:Pt==="show",onVisibleChanged:Tt}),function(gt,pn){var Nn=gt.className,Tn=gt.style;return xe.createElement("div",{ref:pn,className:ye()("".concat(it,"-treenode-motion"),Nn),style:Tn},Et.map(function(nr){var fr=Object.assign({},(at(nr.data),nr.data)),br=nr.title,Qn=nr.key,En=nr.isStart,sr=nr.isEnd;delete fr.children;var ur=(0,De.H8)(Qn,St);return xe.createElement(Ae.Z,(0,re.Z)({},fr,ur,{title:br,active:qe,data:nr.data,key:Qn,isStart:En,isEnd:sr}))}))}):xe.createElement(Ae.Z,(0,re.Z)({domRef:se,className:ne,style:ce},Zt,{active:qe}))}),Ve=Be;function It(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=ie.length,ce=se.length;if(Math.abs(ne-ce)!==1)return{add:!1,key:null};function Re(Et,Pt){var _e=new Map;Et.forEach(function(qe){_e.set(qe,!0)});var et=Pt.filter(function(qe){return!_e.has(qe)});return et.length===1?et[0]:null}return ne<ce?{add:!0,key:Re(ie,se)}:{add:!1,key:Re(se,ie)}}function mt(ie,se,ne){var ce=ie.findIndex(function(_e){return _e.key===ne}),Re=ie[ce+1],Et=se.findIndex(function(_e){return _e.key===ne});if(Re){var Pt=se.findIndex(function(_e){return _e.key===Re.key});return se.slice(Et+1,Pt)}return se.slice(Et+1)}var vt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ot={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ge=function(){},fe="RC_TREE_MOTION_".concat(Math.random()),He={key:fe},lt={key:fe,level:0,index:0,pos:"0",node:He,nodes:[He]},st={parent:null,children:[],pos:lt.pos,data:He,title:null,key:fe,isStart:[],isEnd:[]};function Pe(ie,se,ne,ce){return se===!1||!ne?ie:ie.slice(0,Math.ceil(ne/ce)+1)}function rt(ie){var se=ie.key,ne=ie.pos;return(0,De.km)(se,ne)}function Qe(ie){for(var se=String(ie.data.key),ne=ie;ne.parent;)ne=ne.parent,se="".concat(ne.data.key," > ").concat(se);return se}var Wt=xe.forwardRef(function(ie,se){var ne=ie.prefixCls,ce=ie.data,Re=ie.selectable,Et=ie.checkable,Pt=ie.expandedKeys,_e=ie.selectedKeys,et=ie.checkedKeys,qe=ie.loadedKeys,St=ie.loadingKeys,Zt=ie.halfCheckedKeys,_t=ie.keyEntities,At=ie.disabled,an=ie.dragging,qt=ie.dragOverNodeKey,Ht=ie.dropPosition,it=ie.motion,ln=ie.height,Ot=ie.itemHeight,Yt=ie.virtual,dn=ie.scrollWidth,Tt=ie.focusable,gt=ie.activeItem,pn=ie.focused,Nn=ie.tabIndex,Tn=ie.onKeyDown,nr=ie.onFocus,fr=ie.onBlur,br=ie.onActiveChange,Qn=ie.onListChangeStart,En=ie.onListChangeEnd,sr=(0,me.Z)(ie,vt),ur=xe.useRef(null),Dn=xe.useRef(null);xe.useImperativeHandle(se,function(){return{scrollTo:function(mn){ur.current.scrollTo(mn)},getIndentWidth:function(){return Dn.current.offsetWidth}}});var bn=xe.useState(Pt),$t=(0,we.Z)(bn,2),fn=$t[0],zt=$t[1],Jt=xe.useState(ce),xn=(0,we.Z)(Jt,2),Sn=xn[0],An=xn[1],Kn=xe.useState(ce),rr=(0,we.Z)(Kn,2),Jn=rr[0],Zn=rr[1],Gn=xe.useState([]),sn=(0,we.Z)(Gn,2),Lt=sn[0],yn=sn[1],Wn=xe.useState(null),qn=(0,we.Z)(Wn,2),Xe=qn[0],$e=qn[1],un=xe.useRef(ce);un.current=ce;function Ut(){var hn=un.current;An(hn),Zn(hn),yn([]),$e(null),En()}(0,Te.Z)(function(){zt(Pt);var hn=It(fn,Pt);if(hn.key!==null)if(hn.add){var mn=Sn.findIndex(function(kn){var _n=kn.key;return _n===hn.key}),Cn=Pe(mt(Sn,ce,hn.key),Yt,ln,Ot),gn=Sn.slice();gn.splice(mn+1,0,st),Zn(gn),yn(Cn),$e("show")}else{var wn=ce.findIndex(function(kn){var _n=kn.key;return _n===hn.key}),nt=Pe(mt(ce,Sn,hn.key),Yt,ln,Ot),$n=ce.slice();$n.splice(wn+1,0,st),Zn($n),yn(nt),$e("hide")}else Sn!==ce&&(An(ce),Zn(ce))},[Pt,ce]),xe.useEffect(function(){an||Ut()},[an]);var ct=it?Jn:ce,en={expandedKeys:Pt,selectedKeys:_e,loadedKeys:qe,loadingKeys:St,checkedKeys:et,halfCheckedKeys:Zt,dragOverNodeKey:qt,dropPosition:Ht,keyEntities:_t};return xe.createElement(xe.Fragment,null,pn&&gt&&xe.createElement("span",{style:ot,"aria-live":"assertive"},Qe(gt)),xe.createElement("div",null,xe.createElement("input",{style:ot,disabled:Tt===!1||At,tabIndex:Tt!==!1?Nn:null,onKeyDown:Tn,onFocus:nr,onBlur:fr,value:"",onChange:ge,"aria-label":"for screen reader"})),xe.createElement("div",{className:"".concat(ne,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},xe.createElement("div",{className:"".concat(ne,"-indent")},xe.createElement("div",{ref:Dn,className:"".concat(ne,"-indent-unit")}))),xe.createElement(Ne.Z,(0,re.Z)({},sr,{data:ct,itemKey:rt,height:ln,fullHeight:!1,virtual:Yt,itemHeight:Ot,scrollWidth:dn,prefixCls:"".concat(ne,"-list"),ref:ur,role:"tree",onVisibleChange:function(mn){mn.every(function(Cn){return rt(Cn)!==fe})&&Ut()}}),function(hn){var mn=hn.pos,Cn=Object.assign({},(at(hn.data),hn.data)),gn=hn.title,wn=hn.key,nt=hn.isStart,$n=hn.isEnd,kn=(0,De.km)(wn,mn);delete Cn.key,delete Cn.children;var _n=(0,De.H8)(kn,en);return xe.createElement(Ve,(0,re.Z)({},Cn,_n,{title:gn,active:!!gt&&wn===gt.key,pos:mn,data:hn.data,isStart:nt,isEnd:$n,motion:it,motionNodes:wn===fe?Lt:null,motionType:Xe,onMotionStart:Qn,onMotionEnd:Ut,treeNodeRequiredProps:en,onMouseMove:function(){br(null)}}))}))}),Me=Wt,ut=le(82661),We=le(34643),yt=le(65065),xt=10,ae=function(ie){(0,ze.Z)(ne,ie);var se=(0,Ce.Z)(ne);function ne(){var ce;(0,be.Z)(this,ne);for(var Re=arguments.length,Et=new Array(Re),Pt=0;Pt<Re;Pt++)Et[Pt]=arguments[Pt];return ce=se.call.apply(se,[this].concat(Et)),(0,pe.Z)((0,Le.Z)(ce),"destroyed",!1),(0,pe.Z)((0,Le.Z)(ce),"delayedDragEnterLogic",void 0),(0,pe.Z)((0,Le.Z)(ce),"loadingRetryTimes",{}),(0,pe.Z)((0,Le.Z)(ce),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,De.w$)()}),(0,pe.Z)((0,Le.Z)(ce),"dragStartMousePosition",null),(0,pe.Z)((0,Le.Z)(ce),"dragNodeProps",null),(0,pe.Z)((0,Le.Z)(ce),"currentMouseOverDroppableNodeKey",null),(0,pe.Z)((0,Le.Z)(ce),"listRef",xe.createRef()),(0,pe.Z)((0,Le.Z)(ce),"onNodeDragStart",function(_e,et){var qe=ce.state,St=qe.expandedKeys,Zt=qe.keyEntities,_t=ce.props.onDragStart,At=et.eventKey;ce.dragNodeProps=et,ce.dragStartMousePosition={x:_e.clientX,y:_e.clientY};var an=(0,ut._5)(St,At);ce.setState({draggingNodeKey:At,dragChildrenKeys:(0,ut.wA)(At,Zt),indent:ce.listRef.current.getIndentWidth()}),ce.setExpandedKeys(an),window.addEventListener("dragend",ce.onWindowDragEnd),_t==null||_t({event:_e,node:(0,De.F)(et)})}),(0,pe.Z)((0,Le.Z)(ce),"onNodeDragEnter",function(_e,et){var qe=ce.state,St=qe.expandedKeys,Zt=qe.keyEntities,_t=qe.dragChildrenKeys,At=qe.flattenNodes,an=qe.indent,qt=ce.props,Ht=qt.onDragEnter,it=qt.onExpand,ln=qt.allowDrop,Ot=qt.direction,Yt=et.pos,dn=et.eventKey;if(ce.currentMouseOverDroppableNodeKey!==dn&&(ce.currentMouseOverDroppableNodeKey=dn),!ce.dragNodeProps){ce.resetDragState();return}var Tt=(0,ut.OM)(_e,ce.dragNodeProps,et,an,ce.dragStartMousePosition,ln,At,Zt,St,Ot),gt=Tt.dropPosition,pn=Tt.dropLevelOffset,Nn=Tt.dropTargetKey,Tn=Tt.dropContainerKey,nr=Tt.dropTargetPos,fr=Tt.dropAllowed,br=Tt.dragOverNodeKey;if(_t.includes(Nn)||!fr){ce.resetDragState();return}if(ce.delayedDragEnterLogic||(ce.delayedDragEnterLogic={}),Object.keys(ce.delayedDragEnterLogic).forEach(function(Qn){clearTimeout(ce.delayedDragEnterLogic[Qn])}),ce.dragNodeProps.eventKey!==et.eventKey&&(_e.persist(),ce.delayedDragEnterLogic[Yt]=window.setTimeout(function(){if(ce.state.draggingNodeKey!==null){var Qn=(0,Ue.Z)(St),En=(0,yt.Z)(Zt,et.eventKey);En&&(En.children||[]).length&&(Qn=(0,ut.L0)(St,et.eventKey)),ce.props.hasOwnProperty("expandedKeys")||ce.setExpandedKeys(Qn),it==null||it(Qn,{node:(0,De.F)(et),expanded:!0,nativeEvent:_e.nativeEvent})}},800)),ce.dragNodeProps.eventKey===Nn&&pn===0){ce.resetDragState();return}ce.setState({dragOverNodeKey:br,dropPosition:gt,dropLevelOffset:pn,dropTargetKey:Nn,dropContainerKey:Tn,dropTargetPos:nr,dropAllowed:fr}),Ht==null||Ht({event:_e,node:(0,De.F)(et),expandedKeys:St})}),(0,pe.Z)((0,Le.Z)(ce),"onNodeDragOver",function(_e,et){var qe=ce.state,St=qe.dragChildrenKeys,Zt=qe.flattenNodes,_t=qe.keyEntities,At=qe.expandedKeys,an=qe.indent,qt=ce.props,Ht=qt.onDragOver,it=qt.allowDrop,ln=qt.direction;if(ce.dragNodeProps){var Ot=(0,ut.OM)(_e,ce.dragNodeProps,et,an,ce.dragStartMousePosition,it,Zt,_t,At,ln),Yt=Ot.dropPosition,dn=Ot.dropLevelOffset,Tt=Ot.dropTargetKey,gt=Ot.dropContainerKey,pn=Ot.dropTargetPos,Nn=Ot.dropAllowed,Tn=Ot.dragOverNodeKey;St.includes(Tt)||!Nn||(ce.dragNodeProps.eventKey===Tt&&dn===0?ce.state.dropPosition===null&&ce.state.dropLevelOffset===null&&ce.state.dropTargetKey===null&&ce.state.dropContainerKey===null&&ce.state.dropTargetPos===null&&ce.state.dropAllowed===!1&&ce.state.dragOverNodeKey===null||ce.resetDragState():Yt===ce.state.dropPosition&&dn===ce.state.dropLevelOffset&&Tt===ce.state.dropTargetKey&&gt===ce.state.dropContainerKey&&pn===ce.state.dropTargetPos&&Nn===ce.state.dropAllowed&&Tn===ce.state.dragOverNodeKey||ce.setState({dropPosition:Yt,dropLevelOffset:dn,dropTargetKey:Tt,dropContainerKey:gt,dropTargetPos:pn,dropAllowed:Nn,dragOverNodeKey:Tn}),Ht==null||Ht({event:_e,node:(0,De.F)(et)}))}}),(0,pe.Z)((0,Le.Z)(ce),"onNodeDragLeave",function(_e,et){ce.currentMouseOverDroppableNodeKey===et.eventKey&&!_e.currentTarget.contains(_e.relatedTarget)&&(ce.resetDragState(),ce.currentMouseOverDroppableNodeKey=null);var qe=ce.props.onDragLeave;qe==null||qe({event:_e,node:(0,De.F)(et)})}),(0,pe.Z)((0,Le.Z)(ce),"onWindowDragEnd",function(_e){ce.onNodeDragEnd(_e,null,!0),window.removeEventListener("dragend",ce.onWindowDragEnd)}),(0,pe.Z)((0,Le.Z)(ce),"onNodeDragEnd",function(_e,et){var qe=ce.props.onDragEnd;ce.setState({dragOverNodeKey:null}),ce.cleanDragState(),qe==null||qe({event:_e,node:(0,De.F)(et)}),ce.dragNodeProps=null,window.removeEventListener("dragend",ce.onWindowDragEnd)}),(0,pe.Z)((0,Le.Z)(ce),"onNodeDrop",function(_e,et){var qe,St=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Zt=ce.state,_t=Zt.dragChildrenKeys,At=Zt.dropPosition,an=Zt.dropTargetKey,qt=Zt.dropTargetPos,Ht=Zt.dropAllowed;if(Ht){var it=ce.props.onDrop;if(ce.setState({dragOverNodeKey:null}),ce.cleanDragState(),an!==null){var ln=(0,Oe.Z)((0,Oe.Z)({},(0,De.H8)(an,ce.getTreeNodeRequiredProps())),{},{active:((qe=ce.getActiveItem())===null||qe===void 0?void 0:qe.key)===an,data:(0,yt.Z)(ce.state.keyEntities,an).node}),Ot=_t.includes(an);(0,Se.ZP)(!Ot,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Yt=(0,ut.yx)(qt),dn={event:_e,node:(0,De.F)(ln),dragNode:ce.dragNodeProps?(0,De.F)(ce.dragNodeProps):null,dragNodesKeys:[ce.dragNodeProps.eventKey].concat(_t),dropToGap:At!==0,dropPosition:At+Number(Yt[Yt.length-1])};St||it==null||it(dn),ce.dragNodeProps=null}}}),(0,pe.Z)((0,Le.Z)(ce),"cleanDragState",function(){var _e=ce.state.draggingNodeKey;_e!==null&&ce.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ce.dragStartMousePosition=null,ce.currentMouseOverDroppableNodeKey=null}),(0,pe.Z)((0,Le.Z)(ce),"triggerExpandActionExpand",function(_e,et){var qe=ce.state,St=qe.expandedKeys,Zt=qe.flattenNodes,_t=et.expanded,At=et.key,an=et.isLeaf;if(!(an||_e.shiftKey||_e.metaKey||_e.ctrlKey)){var qt=Zt.filter(function(it){return it.key===At})[0],Ht=(0,De.F)((0,Oe.Z)((0,Oe.Z)({},(0,De.H8)(At,ce.getTreeNodeRequiredProps())),{},{data:qt.data}));ce.setExpandedKeys(_t?(0,ut._5)(St,At):(0,ut.L0)(St,At)),ce.onNodeExpand(_e,Ht)}}),(0,pe.Z)((0,Le.Z)(ce),"onNodeClick",function(_e,et){var qe=ce.props,St=qe.onClick,Zt=qe.expandAction;Zt==="click"&&ce.triggerExpandActionExpand(_e,et),St==null||St(_e,et)}),(0,pe.Z)((0,Le.Z)(ce),"onNodeDoubleClick",function(_e,et){var qe=ce.props,St=qe.onDoubleClick,Zt=qe.expandAction;Zt==="doubleClick"&&ce.triggerExpandActionExpand(_e,et),St==null||St(_e,et)}),(0,pe.Z)((0,Le.Z)(ce),"onNodeSelect",function(_e,et){var qe=ce.state.selectedKeys,St=ce.state,Zt=St.keyEntities,_t=St.fieldNames,At=ce.props,an=At.onSelect,qt=At.multiple,Ht=et.selected,it=et[_t.key],ln=!Ht;ln?qt?qe=(0,ut.L0)(qe,it):qe=[it]:qe=(0,ut._5)(qe,it);var Ot=qe.map(function(Yt){var dn=(0,yt.Z)(Zt,Yt);return dn?dn.node:null}).filter(Boolean);ce.setUncontrolledState({selectedKeys:qe}),an==null||an(qe,{event:"select",selected:ln,node:et,selectedNodes:Ot,nativeEvent:_e.nativeEvent})}),(0,pe.Z)((0,Le.Z)(ce),"onNodeCheck",function(_e,et,qe){var St=ce.state,Zt=St.keyEntities,_t=St.checkedKeys,At=St.halfCheckedKeys,an=ce.props,qt=an.checkStrictly,Ht=an.onCheck,it=et.key,ln,Ot={event:"check",node:et,checked:qe,nativeEvent:_e.nativeEvent};if(qt){var Yt=qe?(0,ut.L0)(_t,it):(0,ut._5)(_t,it),dn=(0,ut._5)(At,it);ln={checked:Yt,halfChecked:dn},Ot.checkedNodes=Yt.map(function(nr){return(0,yt.Z)(Zt,nr)}).filter(Boolean).map(function(nr){return nr.node}),ce.setUncontrolledState({checkedKeys:Yt})}else{var Tt=(0,We.S)([].concat((0,Ue.Z)(_t),[it]),!0,Zt),gt=Tt.checkedKeys,pn=Tt.halfCheckedKeys;if(!qe){var Nn=new Set(gt);Nn.delete(it);var Tn=(0,We.S)(Array.from(Nn),{checked:!1,halfCheckedKeys:pn},Zt);gt=Tn.checkedKeys,pn=Tn.halfCheckedKeys}ln=gt,Ot.checkedNodes=[],Ot.checkedNodesPositions=[],Ot.halfCheckedKeys=pn,gt.forEach(function(nr){var fr=(0,yt.Z)(Zt,nr);if(fr){var br=fr.node,Qn=fr.pos;Ot.checkedNodes.push(br),Ot.checkedNodesPositions.push({node:br,pos:Qn})}}),ce.setUncontrolledState({checkedKeys:gt},!1,{halfCheckedKeys:pn})}Ht==null||Ht(ln,Ot)}),(0,pe.Z)((0,Le.Z)(ce),"onNodeLoad",function(_e){var et,qe=_e.key,St=ce.state.keyEntities,Zt=(0,yt.Z)(St,qe);if(!(Zt!=null&&(et=Zt.children)!==null&&et!==void 0&&et.length)){var _t=new Promise(function(At,an){ce.setState(function(qt){var Ht=qt.loadedKeys,it=Ht===void 0?[]:Ht,ln=qt.loadingKeys,Ot=ln===void 0?[]:ln,Yt=ce.props,dn=Yt.loadData,Tt=Yt.onLoad;if(!dn||it.includes(qe)||Ot.includes(qe))return null;var gt=dn(_e);return gt.then(function(){var pn=ce.state.loadedKeys,Nn=(0,ut.L0)(pn,qe);Tt==null||Tt(Nn,{event:"load",node:_e}),ce.setUncontrolledState({loadedKeys:Nn}),ce.setState(function(Tn){return{loadingKeys:(0,ut._5)(Tn.loadingKeys,qe)}}),At()}).catch(function(pn){if(ce.setState(function(Tn){return{loadingKeys:(0,ut._5)(Tn.loadingKeys,qe)}}),ce.loadingRetryTimes[qe]=(ce.loadingRetryTimes[qe]||0)+1,ce.loadingRetryTimes[qe]>=xt){var Nn=ce.state.loadedKeys;(0,Se.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ce.setUncontrolledState({loadedKeys:(0,ut.L0)(Nn,qe)}),At()}an(pn)}),{loadingKeys:(0,ut.L0)(Ot,qe)}})});return _t.catch(function(){}),_t}}),(0,pe.Z)((0,Le.Z)(ce),"onNodeMouseEnter",function(_e,et){var qe=ce.props.onMouseEnter;qe==null||qe({event:_e,node:et})}),(0,pe.Z)((0,Le.Z)(ce),"onNodeMouseLeave",function(_e,et){var qe=ce.props.onMouseLeave;qe==null||qe({event:_e,node:et})}),(0,pe.Z)((0,Le.Z)(ce),"onNodeContextMenu",function(_e,et){var qe=ce.props.onRightClick;qe&&(_e.preventDefault(),qe({event:_e,node:et}))}),(0,pe.Z)((0,Le.Z)(ce),"onFocus",function(){var _e=ce.props.onFocus;ce.setState({focused:!0});for(var et=arguments.length,qe=new Array(et),St=0;St<et;St++)qe[St]=arguments[St];_e==null||_e.apply(void 0,qe)}),(0,pe.Z)((0,Le.Z)(ce),"onBlur",function(){var _e=ce.props.onBlur;ce.setState({focused:!1}),ce.onActiveChange(null);for(var et=arguments.length,qe=new Array(et),St=0;St<et;St++)qe[St]=arguments[St];_e==null||_e.apply(void 0,qe)}),(0,pe.Z)((0,Le.Z)(ce),"getTreeNodeRequiredProps",function(){var _e=ce.state,et=_e.expandedKeys,qe=_e.selectedKeys,St=_e.loadedKeys,Zt=_e.loadingKeys,_t=_e.checkedKeys,At=_e.halfCheckedKeys,an=_e.dragOverNodeKey,qt=_e.dropPosition,Ht=_e.keyEntities;return{expandedKeys:et||[],selectedKeys:qe||[],loadedKeys:St||[],loadingKeys:Zt||[],checkedKeys:_t||[],halfCheckedKeys:At||[],dragOverNodeKey:an,dropPosition:qt,keyEntities:Ht}}),(0,pe.Z)((0,Le.Z)(ce),"setExpandedKeys",function(_e){var et=ce.state,qe=et.treeData,St=et.fieldNames,Zt=(0,De.oH)(qe,_e,St);ce.setUncontrolledState({expandedKeys:_e,flattenNodes:Zt},!0)}),(0,pe.Z)((0,Le.Z)(ce),"onNodeExpand",function(_e,et){var qe=ce.state.expandedKeys,St=ce.state,Zt=St.listChanging,_t=St.fieldNames,At=ce.props,an=At.onExpand,qt=At.loadData,Ht=et.expanded,it=et[_t.key];if(!Zt){var ln=qe.includes(it),Ot=!Ht;if((0,Se.ZP)(Ht&&ln||!Ht&&!ln,"Expand state not sync with index check"),qe=Ot?(0,ut.L0)(qe,it):(0,ut._5)(qe,it),ce.setExpandedKeys(qe),an==null||an(qe,{node:et,expanded:Ot,nativeEvent:_e.nativeEvent}),Ot&&qt){var Yt=ce.onNodeLoad(et);Yt&&Yt.then(function(){var dn=(0,De.oH)(ce.state.treeData,qe,_t);ce.setUncontrolledState({flattenNodes:dn})}).catch(function(){var dn=ce.state.expandedKeys,Tt=(0,ut._5)(dn,it);ce.setExpandedKeys(Tt)})}}}),(0,pe.Z)((0,Le.Z)(ce),"onListChangeStart",function(){ce.setUncontrolledState({listChanging:!0})}),(0,pe.Z)((0,Le.Z)(ce),"onListChangeEnd",function(){setTimeout(function(){ce.setUncontrolledState({listChanging:!1})})}),(0,pe.Z)((0,Le.Z)(ce),"onActiveChange",function(_e){var et=ce.state.activeKey,qe=ce.props,St=qe.onActiveChange,Zt=qe.itemScrollOffset,_t=Zt===void 0?0:Zt;et!==_e&&(ce.setState({activeKey:_e}),_e!==null&&ce.scrollTo({key:_e,offset:_t}),St==null||St(_e))}),(0,pe.Z)((0,Le.Z)(ce),"getActiveItem",function(){var _e=ce.state,et=_e.activeKey,qe=_e.flattenNodes;return et===null?null:qe.find(function(St){var Zt=St.key;return Zt===et})||null}),(0,pe.Z)((0,Le.Z)(ce),"offsetActiveKey",function(_e){var et=ce.state,qe=et.flattenNodes,St=et.activeKey,Zt=qe.findIndex(function(an){var qt=an.key;return qt===St});Zt===-1&&_e<0&&(Zt=qe.length),Zt=(Zt+_e+qe.length)%qe.length;var _t=qe[Zt];if(_t){var At=_t.key;ce.onActiveChange(At)}else ce.onActiveChange(null)}),(0,pe.Z)((0,Le.Z)(ce),"onKeyDown",function(_e){var et=ce.state,qe=et.activeKey,St=et.expandedKeys,Zt=et.checkedKeys,_t=et.fieldNames,At=ce.props,an=At.onKeyDown,qt=At.checkable,Ht=At.selectable;switch(_e.which){case pt.Z.UP:{ce.offsetActiveKey(-1),_e.preventDefault();break}case pt.Z.DOWN:{ce.offsetActiveKey(1),_e.preventDefault();break}}var it=ce.getActiveItem();if(it&&it.data){var ln=ce.getTreeNodeRequiredProps(),Ot=it.data.isLeaf===!1||!!(it.data[_t.children]||[]).length,Yt=(0,De.F)((0,Oe.Z)((0,Oe.Z)({},(0,De.H8)(qe,ln)),{},{data:it.data,active:!0}));switch(_e.which){case pt.Z.LEFT:{Ot&&St.includes(qe)?ce.onNodeExpand({},Yt):it.parent&&ce.onActiveChange(it.parent.key),_e.preventDefault();break}case pt.Z.RIGHT:{Ot&&!St.includes(qe)?ce.onNodeExpand({},Yt):it.children&&it.children.length&&ce.onActiveChange(it.children[0].key),_e.preventDefault();break}case pt.Z.ENTER:case pt.Z.SPACE:{qt&&!Yt.disabled&&Yt.checkable!==!1&&!Yt.disableCheckbox?ce.onNodeCheck({},Yt,!Zt.includes(qe)):!qt&&Ht&&!Yt.disabled&&Yt.selectable!==!1&&ce.onNodeSelect({},Yt);break}}}an==null||an(_e)}),(0,pe.Z)((0,Le.Z)(ce),"setUncontrolledState",function(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ce.destroyed){var St=!1,Zt=!0,_t={};Object.keys(_e).forEach(function(At){if(ce.props.hasOwnProperty(At)){Zt=!1;return}St=!0,_t[At]=_e[At]}),St&&(!et||Zt)&&ce.setState((0,Oe.Z)((0,Oe.Z)({},_t),qe))}}),(0,pe.Z)((0,Le.Z)(ce),"scrollTo",function(_e){ce.listRef.current.scrollTo(_e)}),ce}return(0,ue.Z)(ne,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Re=this.props,Et=Re.activeKey,Pt=Re.itemScrollOffset,_e=Pt===void 0?0:Pt;Et!==void 0&&Et!==this.state.activeKey&&(this.setState({activeKey:Et}),Et!==null&&this.scrollTo({key:Et,offset:_e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Re=this.state,Et=Re.focused,Pt=Re.flattenNodes,_e=Re.keyEntities,et=Re.draggingNodeKey,qe=Re.activeKey,St=Re.dropLevelOffset,Zt=Re.dropContainerKey,_t=Re.dropTargetKey,At=Re.dropPosition,an=Re.dragOverNodeKey,qt=Re.indent,Ht=this.props,it=Ht.prefixCls,ln=Ht.className,Ot=Ht.style,Yt=Ht.showLine,dn=Ht.focusable,Tt=Ht.tabIndex,gt=Tt===void 0?0:Tt,pn=Ht.selectable,Nn=Ht.showIcon,Tn=Ht.icon,nr=Ht.switcherIcon,fr=Ht.draggable,br=Ht.checkable,Qn=Ht.checkStrictly,En=Ht.disabled,sr=Ht.motion,ur=Ht.loadData,Dn=Ht.filterTreeNode,bn=Ht.height,$t=Ht.itemHeight,fn=Ht.scrollWidth,zt=Ht.virtual,Jt=Ht.titleRender,xn=Ht.dropIndicatorRender,Sn=Ht.onContextMenu,An=Ht.onScroll,Kn=Ht.direction,rr=Ht.rootClassName,Jn=Ht.rootStyle,Zn=(0,je.Z)(this.props,{aria:!0,data:!0}),Gn;fr&&((0,Ge.Z)(fr)==="object"?Gn=fr:typeof fr=="function"?Gn={nodeDraggable:fr}:Gn={});var sn={prefixCls:it,selectable:pn,showIcon:Nn,icon:Tn,switcherIcon:nr,draggable:Gn,draggingNodeKey:et,checkable:br,checkStrictly:Qn,disabled:En,keyEntities:_e,dropLevelOffset:St,dropContainerKey:Zt,dropTargetKey:_t,dropPosition:At,dragOverNodeKey:an,indent:qt,direction:Kn,dropIndicatorRender:xn,loadData:ur,filterTreeNode:Dn,titleRender:Jt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return xe.createElement(Ee.k.Provider,{value:sn},xe.createElement("div",{className:ye()(it,ln,rr,(0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(it,"-show-line"),Yt),"".concat(it,"-focused"),Et),"".concat(it,"-active-focused"),qe!==null)),style:Jn},xe.createElement(Me,(0,re.Z)({ref:this.listRef,prefixCls:it,style:Ot,data:Pt,disabled:En,selectable:pn,checkable:!!br,motion:sr,dragging:et!==null,height:bn,itemHeight:$t,virtual:zt,focusable:dn,focused:Et,tabIndex:gt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Sn,onScroll:An,scrollWidth:fn},this.getTreeNodeRequiredProps(),Zn))))}}],[{key:"getDerivedStateFromProps",value:function(Re,Et){var Pt=Et.prevProps,_e={prevProps:Re};function et(gt){return!Pt&&Re.hasOwnProperty(gt)||Pt&&Pt[gt]!==Re[gt]}var qe,St=Et.fieldNames;if(et("fieldNames")&&(St=(0,De.w$)(Re.fieldNames),_e.fieldNames=St),et("treeData")?qe=Re.treeData:et("children")&&((0,Se.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),qe=(0,De.zn)(Re.children)),qe){_e.treeData=qe;var Zt=(0,De.I8)(qe,{fieldNames:St});_e.keyEntities=(0,Oe.Z)((0,pe.Z)({},fe,lt),Zt.keyEntities)}var _t=_e.keyEntities||Et.keyEntities;if(et("expandedKeys")||Pt&&et("autoExpandParent"))_e.expandedKeys=Re.autoExpandParent||!Pt&&Re.defaultExpandParent?(0,ut.r7)(Re.expandedKeys,_t):Re.expandedKeys;else if(!Pt&&Re.defaultExpandAll){var At=(0,Oe.Z)({},_t);delete At[fe];var an=[];Object.keys(At).forEach(function(gt){var pn=At[gt];pn.children&&pn.children.length&&an.push(pn.key)}),_e.expandedKeys=an}else!Pt&&Re.defaultExpandedKeys&&(_e.expandedKeys=Re.autoExpandParent||Re.defaultExpandParent?(0,ut.r7)(Re.defaultExpandedKeys,_t):Re.defaultExpandedKeys);if(_e.expandedKeys||delete _e.expandedKeys,qe||_e.expandedKeys){var qt=(0,De.oH)(qe||Et.treeData,_e.expandedKeys||Et.expandedKeys,St);_e.flattenNodes=qt}if(Re.selectable&&(et("selectedKeys")?_e.selectedKeys=(0,ut.BT)(Re.selectedKeys,Re):!Pt&&Re.defaultSelectedKeys&&(_e.selectedKeys=(0,ut.BT)(Re.defaultSelectedKeys,Re))),Re.checkable){var Ht;if(et("checkedKeys")?Ht=(0,ut.E6)(Re.checkedKeys)||{}:!Pt&&Re.defaultCheckedKeys?Ht=(0,ut.E6)(Re.defaultCheckedKeys)||{}:qe&&(Ht=(0,ut.E6)(Re.checkedKeys)||{checkedKeys:Et.checkedKeys,halfCheckedKeys:Et.halfCheckedKeys}),Ht){var it=Ht,ln=it.checkedKeys,Ot=ln===void 0?[]:ln,Yt=it.halfCheckedKeys,dn=Yt===void 0?[]:Yt;if(!Re.checkStrictly){var Tt=(0,We.S)(Ot,!0,_t);Ot=Tt.checkedKeys,dn=Tt.halfCheckedKeys}_e.checkedKeys=Ot,_e.halfCheckedKeys=dn}}return et("loadedKeys")&&(_e.loadedKeys=Re.loadedKeys),_e}}]),ne}(xe.Component);(0,pe.Z)(ae,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:tt,allowDrop:function(){return!0},expandAction:!1}),(0,pe.Z)(ae,"TreeNode",Ae.Z);var ee=ae,z=ee},82661:function(tn,Xt,le){"use strict";le.d(Xt,{BT:function(){return xe},E6:function(){return tt},L0:function(){return pe},OM:function(){return Se},_5:function(){return Ce},r7:function(){return at},wA:function(){return ye},yx:function(){return ht}});var re=le(3300),Ge=le(34666),Oe=le(48736),Ue=le(59301),be=le(639),ue=le(65065),Le=le(34061),ze=null;function Ce(we,me){if(!we)return[];var Te=we.slice(),Ne=Te.indexOf(me);return Ne>=0&&Te.splice(Ne,1),Te}function pe(we,me){var Te=(we||[]).slice();return Te.indexOf(me)===-1&&Te.push(me),Te}function ht(we){return we.split("-")}function ye(we,me){var Te=[],Ne=(0,ue.Z)(me,we);function bt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ae.forEach(function(ke){var Ie=ke.key,De=ke.children;Te.push(Ie),bt(De)})}return bt(Ne.children),Te}function pt(we){if(we.parent){var me=ht(we.pos);return Number(me[me.length-1])===we.parent.children.length-1}return!1}function je(we){var me=ht(we.pos);return Number(me[me.length-1])===0}function Se(we,me,Te,Ne,bt,Ae,ke,Ie,De,Ke){var Be,Ve=we.clientX,It=we.clientY,mt=we.target.getBoundingClientRect(),vt=mt.top,ot=mt.height,ge=(Ke==="rtl"?-1:1)*(((bt==null?void 0:bt.x)||0)-Ve),fe=(ge-12)/Ne,He=De.filter(function(z){var ie;return(ie=Ie[z])===null||ie===void 0||(ie=ie.children)===null||ie===void 0?void 0:ie.length}),lt=(0,ue.Z)(Ie,Te.eventKey);if(It<vt+ot/2){var st=ke.findIndex(function(z){return z.key===lt.key}),Pe=st<=0?0:st-1,rt=ke[Pe].key;lt=(0,ue.Z)(Ie,rt)}var Qe=lt.key,Wt=lt,Me=lt.key,ut=0,We=0;if(!He.includes(Qe))for(var yt=0;yt<fe&&pt(lt);yt+=1)lt=lt.parent,We+=1;var xt=me.data,ae=lt.node,ee=!0;return je(lt)&&lt.level===0&&It<vt+ot/2&&Ae({dragNode:xt,dropNode:ae,dropPosition:-1})&&lt.key===Te.eventKey?ut=-1:(Wt.children||[]).length&&He.includes(Me)?Ae({dragNode:xt,dropNode:ae,dropPosition:0})?ut=0:ee=!1:We===0?fe>-1.5?Ae({dragNode:xt,dropNode:ae,dropPosition:1})?ut=1:ee=!1:Ae({dragNode:xt,dropNode:ae,dropPosition:0})?ut=0:Ae({dragNode:xt,dropNode:ae,dropPosition:1})?ut=1:ee=!1:Ae({dragNode:xt,dropNode:ae,dropPosition:1})?ut=1:ee=!1,{dropPosition:ut,dropLevelOffset:We,dropTargetKey:lt.key,dropTargetPos:lt.pos,dragOverNodeKey:Me,dropContainerKey:ut===0?null:((Be=lt.parent)===null||Be===void 0?void 0:Be.key)||null,dropAllowed:ee}}function xe(we,me){if(we){var Te=me.multiple;return Te?we.slice():we.length?[we[0]]:we}}var Ee=function(me){return me};function Ye(we,me){if(!we)return[];var Te=me||{},Ne=Te.processProps,bt=Ne===void 0?Ee:Ne,Ae=Array.isArray(we)?we:[we];return Ae.map(function(ke){var Ie=ke.children,De=_objectWithoutProperties(ke,ze),Ke=Ye(Ie,me);return React.createElement(TreeNode,_extends({key:De.key},bt(De)),Ke)})}function tt(we){if(!we)return null;var me;if(Array.isArray(we))me={checkedKeys:we,halfCheckedKeys:void 0};else if((0,Ge.Z)(we)==="object")me={checkedKeys:we.checked||void 0,halfCheckedKeys:we.halfChecked||void 0};else return(0,Oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return me}function at(we,me){var Te=new Set;function Ne(bt){if(!Te.has(bt)){var Ae=(0,ue.Z)(me,bt);if(Ae){Te.add(bt);var ke=Ae.parent,Ie=Ae.node;Ie.disabled||ke&&Ne(ke.key)}}}return(we||[]).forEach(function(bt){Ne(bt)}),(0,re.Z)(Te)}},34643:function(tn,Xt,le){"use strict";le.d(Xt,{S:function(){return Le}});var re=le(48736),Ge=le(65065);function Oe(ze,Ce){var pe=new Set;return ze.forEach(function(ht){Ce.has(ht)||pe.add(ht)}),pe}function Ue(ze){var Ce=ze||{},pe=Ce.disabled,ht=Ce.disableCheckbox,ye=Ce.checkable;return!!(pe||ht)||ye===!1}function be(ze,Ce,pe,ht){for(var ye=new Set(ze),pt=new Set,je=0;je<=pe;je+=1){var Se=Ce.get(je)||new Set;Se.forEach(function(tt){var at=tt.key,we=tt.node,me=tt.children,Te=me===void 0?[]:me;ye.has(at)&&!ht(we)&&Te.filter(function(Ne){return!ht(Ne.node)}).forEach(function(Ne){ye.add(Ne.key)})})}for(var xe=new Set,Ee=pe;Ee>=0;Ee-=1){var Ye=Ce.get(Ee)||new Set;Ye.forEach(function(tt){var at=tt.parent,we=tt.node;if(!(ht(we)||!tt.parent||xe.has(tt.parent.key))){if(ht(tt.parent.node)){xe.add(at.key);return}var me=!0,Te=!1;(at.children||[]).filter(function(Ne){return!ht(Ne.node)}).forEach(function(Ne){var bt=Ne.key,Ae=ye.has(bt);me&&!Ae&&(me=!1),!Te&&(Ae||pt.has(bt))&&(Te=!0)}),me&&ye.add(at.key),Te&&pt.add(at.key),xe.add(at.key)}})}return{checkedKeys:Array.from(ye),halfCheckedKeys:Array.from(Oe(pt,ye))}}function ue(ze,Ce,pe,ht,ye){for(var pt=new Set(ze),je=new Set(Ce),Se=0;Se<=ht;Se+=1){var xe=pe.get(Se)||new Set;xe.forEach(function(at){var we=at.key,me=at.node,Te=at.children,Ne=Te===void 0?[]:Te;!pt.has(we)&&!je.has(we)&&!ye(me)&&Ne.filter(function(bt){return!ye(bt.node)}).forEach(function(bt){pt.delete(bt.key)})})}je=new Set;for(var Ee=new Set,Ye=ht;Ye>=0;Ye-=1){var tt=pe.get(Ye)||new Set;tt.forEach(function(at){var we=at.parent,me=at.node;if(!(ye(me)||!at.parent||Ee.has(at.parent.key))){if(ye(at.parent.node)){Ee.add(we.key);return}var Te=!0,Ne=!1;(we.children||[]).filter(function(bt){return!ye(bt.node)}).forEach(function(bt){var Ae=bt.key,ke=pt.has(Ae);Te&&!ke&&(Te=!1),!Ne&&(ke||je.has(Ae))&&(Ne=!0)}),Te||pt.delete(we.key),Ne&&je.add(we.key),Ee.add(we.key)}})}return{checkedKeys:Array.from(pt),halfCheckedKeys:Array.from(Oe(je,pt))}}function Le(ze,Ce,pe,ht){var ye=[],pt;ht?pt=ht:pt=Ue;var je=new Set(ze.filter(function(Ye){var tt=!!(0,Ge.Z)(pe,Ye);return tt||ye.push(Ye),tt})),Se=new Map,xe=0;Object.keys(pe).forEach(function(Ye){var tt=pe[Ye],at=tt.level,we=Se.get(at);we||(we=new Set,Se.set(at,we)),we.add(tt),xe=Math.max(xe,at)}),(0,re.ZP)(!ye.length,"Tree missing follow keys: ".concat(ye.slice(0,100).map(function(Ye){return"'".concat(Ye,"'")}).join(", ")));var Ee;return Ce===!0?Ee=be(je,Se,xe,pt):Ee=ue(je,Ce.halfCheckedKeys,Se,xe,pt),Ee}},65065:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return re}});function re(Ge,Oe){return Ge[Oe]}},34061:function(tn,Xt,le){"use strict";le.d(Xt,{F:function(){return at},H8:function(){return tt},I8:function(){return Ye},km:function(){return ye},oH:function(){return xe},w$:function(){return pt},zn:function(){return Se}});var re=le(34666),Ge=le(3300),Oe=le(27247),Ue=le(43079),be=le(11592),ue=le(2738),Le=le(48736),ze=le(65065),Ce=["children"];function pe(we,me){return"".concat(we,"-").concat(me)}function ht(we){return we&&we.type&&we.type.isTreeNode}function ye(we,me){return we!=null?we:me}function pt(we){var me=we||{},Te=me.title,Ne=me._title,bt=me.key,Ae=me.children,ke=Te||"title";return{title:ke,_title:Ne||[ke],key:bt||"key",children:Ae||"children"}}function je(we,me){var Te=new Map;function Ne(bt){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(bt||[]).forEach(function(ke){var Ie=ke[me.key],De=ke[me.children];warning(Ie!=null,"Tree node must have a certain key: [".concat(Ae).concat(Ie,"]"));var Ke=String(Ie);warning(!Te.has(Ke)||Ie===null||Ie===void 0,"Same 'key' exist in the Tree: ".concat(Ke)),Te.set(Ke,!0),Ne(De,"".concat(Ae).concat(Ke," > "))})}Ne(we)}function Se(we){function me(Te){var Ne=(0,be.Z)(Te);return Ne.map(function(bt){if(!ht(bt))return(0,Le.ZP)(!bt,"Tree/TreeNode can only accept TreeNode as children."),null;var Ae=bt.key,ke=bt.props,Ie=ke.children,De=(0,Ue.Z)(ke,Ce),Ke=(0,Oe.Z)({key:Ae},De),Be=me(Ie);return Be.length&&(Ke.children=Be),Ke}).filter(function(bt){return bt})}return me(we)}function xe(we,me,Te){var Ne=pt(Te),bt=Ne._title,Ae=Ne.key,ke=Ne.children,Ie=new Set(me===!0?[]:me),De=[];function Ke(Be){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Be.map(function(It,mt){for(var vt=pe(Ve?Ve.pos:"0",mt),ot=ye(It[Ae],vt),ge,fe=0;fe<bt.length;fe+=1){var He=bt[fe];if(It[He]!==void 0){ge=It[He];break}}var lt=Object.assign((0,ue.Z)(It,[].concat((0,Ge.Z)(bt),[Ae,ke])),{title:ge,key:ot,parent:Ve,pos:vt,children:null,data:It,isStart:[].concat((0,Ge.Z)(Ve?Ve.isStart:[]),[mt===0]),isEnd:[].concat((0,Ge.Z)(Ve?Ve.isEnd:[]),[mt===Be.length-1])});return De.push(lt),me===!0||Ie.has(ot)?lt.children=Ke(It[ke]||[],lt):lt.children=[],lt})}return Ke(we),De}function Ee(we,me,Te){var Ne={};(0,re.Z)(Te)==="object"?Ne=Te:Ne={externalGetKey:Te},Ne=Ne||{};var bt=Ne,Ae=bt.childrenPropName,ke=bt.externalGetKey,Ie=bt.fieldNames,De=pt(Ie),Ke=De.key,Be=De.children,Ve=Ae||Be,It;ke?typeof ke=="string"?It=function(ot){return ot[ke]}:typeof ke=="function"&&(It=function(ot){return ke(ot)}):It=function(ot,ge){return ye(ot[Ke],ge)};function mt(vt,ot,ge,fe){var He=vt?vt[Ve]:we,lt=vt?pe(ge.pos,ot):"0",st=vt?[].concat((0,Ge.Z)(fe),[vt]):[];if(vt){var Pe=It(vt,lt),rt={node:vt,index:ot,pos:lt,key:Pe,parentPos:ge.node?ge.pos:null,level:ge.level+1,nodes:st};me(rt)}He&&He.forEach(function(Qe,Wt){mt(Qe,Wt,{node:vt,pos:lt,level:ge?ge.level+1:-1},st)})}mt(null)}function Ye(we){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=me.initWrapper,Ne=me.processEntity,bt=me.onProcessFinished,Ae=me.externalGetKey,ke=me.childrenPropName,Ie=me.fieldNames,De=arguments.length>2?arguments[2]:void 0,Ke=Ae||De,Be={},Ve={},It={posEntities:Be,keyEntities:Ve};return Te&&(It=Te(It)||It),Ee(we,function(mt){var vt=mt.node,ot=mt.index,ge=mt.pos,fe=mt.key,He=mt.parentPos,lt=mt.level,st=mt.nodes,Pe={node:vt,nodes:st,index:ot,key:fe,pos:ge,level:lt},rt=ye(fe,ge);Be[ge]=Pe,Ve[rt]=Pe,Pe.parent=Be[He],Pe.parent&&(Pe.parent.children=Pe.parent.children||[],Pe.parent.children.push(Pe)),Ne&&Ne(Pe,It)},{externalGetKey:Ke,childrenPropName:ke,fieldNames:Ie}),bt&&bt(It),It}function tt(we,me){var Te=me.expandedKeys,Ne=me.selectedKeys,bt=me.loadedKeys,Ae=me.loadingKeys,ke=me.checkedKeys,Ie=me.halfCheckedKeys,De=me.dragOverNodeKey,Ke=me.dropPosition,Be=me.keyEntities,Ve=(0,ze.Z)(Be,we),It={eventKey:we,expanded:Te.indexOf(we)!==-1,selected:Ne.indexOf(we)!==-1,loaded:bt.indexOf(we)!==-1,loading:Ae.indexOf(we)!==-1,checked:ke.indexOf(we)!==-1,halfChecked:Ie.indexOf(we)!==-1,pos:String(Ve?Ve.pos:""),dragOver:De===we&&Ke===0,dragOverGapTop:De===we&&Ke===-1,dragOverGapBottom:De===we&&Ke===1};return It}function at(we){var me=we.data,Te=we.expanded,Ne=we.selected,bt=we.checked,Ae=we.loaded,ke=we.loading,Ie=we.halfChecked,De=we.dragOver,Ke=we.dragOverGapTop,Be=we.dragOverGapBottom,Ve=we.pos,It=we.active,mt=we.eventKey,vt=(0,Oe.Z)((0,Oe.Z)({},me),{},{expanded:Te,selected:Ne,checked:bt,loaded:Ae,loading:ke,halfChecked:Ie,dragOver:De,dragOverGapTop:Ke,dragOverGapBottom:Be,pos:Ve,active:It,key:mt});return"props"in vt||Object.defineProperty(vt,"props",{get:function(){return(0,Le.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),we}}),vt}},90472:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return mt}});var re=le(32855),Ge=le(33377),Oe=le(93912),Ue=le(83383),be=le(18881),ue=le(85461),Le=le(74430),ze=le(59301),Ce=le(27247),pe=le(43079),ht=le(34666),ye=le(13932),pt=le(68702),je=le(3300),Se=le(92310),xe=le.n(Se),Ee=le(26112),Ye=le(48736),tt=function(vt,ot){if(vt&&ot){var ge=Array.isArray(ot)?ot:ot.split(","),fe=vt.name||"",He=vt.type||"",lt=He.replace(/\/.*$/,"");return ge.some(function(st){var Pe=st.trim();if(/^\*(\/\*)?$/.test(st))return!0;if(Pe.charAt(0)==="."){var rt=fe.toLowerCase(),Qe=Pe.toLowerCase(),Wt=[Qe];return(Qe===".jpg"||Qe===".jpeg")&&(Wt=[".jpg",".jpeg"]),Wt.some(function(Me){return rt.endsWith(Me)})}return/\/\*$/.test(Pe)?lt===Pe.replace(/\/.*$/,""):He===Pe?!0:/^\w+$/.test(Pe)?((0,Ye.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Pe,"'.Skip for check.")),!0):!1})}return!0};function at(vt,ot){var ge="cannot ".concat(vt.method," ").concat(vt.action," ").concat(ot.status,"'"),fe=new Error(ge);return fe.status=ot.status,fe.method=vt.method,fe.url=vt.action,fe}function we(vt){var ot=vt.responseText||vt.response;if(!ot)return ot;try{return JSON.parse(ot)}catch(ge){return ot}}function me(vt){var ot=new XMLHttpRequest;vt.onProgress&&ot.upload&&(ot.upload.onprogress=function(lt){lt.total>0&&(lt.percent=lt.loaded/lt.total*100),vt.onProgress(lt)});var ge=new FormData;vt.data&&Object.keys(vt.data).forEach(function(He){var lt=vt.data[He];if(Array.isArray(lt)){lt.forEach(function(st){ge.append("".concat(He,"[]"),st)});return}ge.append(He,lt)}),vt.file instanceof Blob?ge.append(vt.filename,vt.file,vt.file.name):ge.append(vt.filename,vt.file),ot.onerror=function(lt){vt.onError(lt)},ot.onload=function(){return ot.status<200||ot.status>=300?vt.onError(at(vt,ot),we(ot)):vt.onSuccess(we(ot),ot)},ot.open(vt.method,vt.action,!0),vt.withCredentials&&"withCredentials"in ot&&(ot.withCredentials=!0);var fe=vt.headers||{};return fe["X-Requested-With"]!==null&&ot.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(fe).forEach(function(He){fe[He]!==null&&ot.setRequestHeader(He,fe[He])}),ot.send(ge),{abort:function(){ot.abort()}}}var Te=function(){var vt=(0,pt.Z)((0,ye.Z)().mark(function ot(ge,fe){var He,lt,st,Pe,rt,Qe,Wt,Me;return(0,ye.Z)().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:Qe=function(){return Qe=(0,pt.Z)((0,ye.Z)().mark(function xt(ae){return(0,ye.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",new Promise(function(ie){ae.file(function(se){fe(se)?(ae.fullPath&&!se.webkitRelativePath&&(Object.defineProperties(se,{webkitRelativePath:{writable:!0}}),se.webkitRelativePath=ae.fullPath.replace(/^\//,""),Object.defineProperties(se,{webkitRelativePath:{writable:!1}})),ie(se)):ie(null)})}));case 1:case"end":return z.stop()}},xt)})),Qe.apply(this,arguments)},rt=function(xt){return Qe.apply(this,arguments)},Pe=function(){return Pe=(0,pt.Z)((0,ye.Z)().mark(function xt(ae){var ee,z,ie,se,ne;return(0,ye.Z)().wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:ee=ae.createReader(),z=[];case 2:return Re.next=5,new Promise(function(Et){ee.readEntries(Et,function(){return Et([])})});case 5:if(ie=Re.sent,se=ie.length,se){Re.next=9;break}return Re.abrupt("break",12);case 9:for(ne=0;ne<se;ne++)z.push(ie[ne]);Re.next=2;break;case 12:return Re.abrupt("return",z);case 13:case"end":return Re.stop()}},xt)})),Pe.apply(this,arguments)},st=function(xt){return Pe.apply(this,arguments)},He=[],lt=[],ge.forEach(function(yt){return lt.push(yt.webkitGetAsEntry())}),Wt=function(){var yt=(0,pt.Z)((0,ye.Z)().mark(function xt(ae,ee){var z,ie;return(0,ye.Z)().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(ae){ne.next=2;break}return ne.abrupt("return");case 2:if(ae.path=ee||"",!ae.isFile){ne.next=10;break}return ne.next=6,rt(ae);case 6:z=ne.sent,z&&He.push(z),ne.next=15;break;case 10:if(!ae.isDirectory){ne.next=15;break}return ne.next=13,st(ae);case 13:ie=ne.sent,lt.push.apply(lt,(0,je.Z)(ie));case 15:case"end":return ne.stop()}},xt)}));return function(ae,ee){return yt.apply(this,arguments)}}(),Me=0;case 9:if(!(Me<lt.length)){We.next=15;break}return We.next=12,Wt(lt[Me]);case 12:Me++,We.next=9;break;case 15:return We.abrupt("return",He);case 16:case"end":return We.stop()}},ot)}));return function(ge,fe){return vt.apply(this,arguments)}}(),Ne=Te,bt=+new Date,Ae=0;function ke(){return"rc-upload-".concat(bt,"-").concat(++Ae)}var Ie=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],De=function(vt){(0,be.Z)(ge,vt);var ot=(0,ue.Z)(ge);function ge(){var fe;(0,Ge.Z)(this,ge);for(var He=arguments.length,lt=new Array(He),st=0;st<He;st++)lt[st]=arguments[st];return fe=ot.call.apply(ot,[this].concat(lt)),(0,Le.Z)((0,Ue.Z)(fe),"state",{uid:ke()}),(0,Le.Z)((0,Ue.Z)(fe),"reqs",{}),(0,Le.Z)((0,Ue.Z)(fe),"fileInput",void 0),(0,Le.Z)((0,Ue.Z)(fe),"_isMounted",void 0),(0,Le.Z)((0,Ue.Z)(fe),"onChange",function(Pe){var rt=fe.props,Qe=rt.accept,Wt=rt.directory,Me=Pe.target.files,ut=(0,je.Z)(Me).filter(function(We){return!Wt||tt(We,Qe)});fe.uploadFiles(ut),fe.reset()}),(0,Le.Z)((0,Ue.Z)(fe),"onClick",function(Pe){var rt=fe.fileInput;if(rt){var Qe=Pe.target,Wt=fe.props.onClick;if(Qe&&Qe.tagName==="BUTTON"){var Me=rt.parentNode;Me.focus(),Qe.blur()}rt.click(),Wt&&Wt(Pe)}}),(0,Le.Z)((0,Ue.Z)(fe),"onKeyDown",function(Pe){Pe.key==="Enter"&&fe.onClick(Pe)}),(0,Le.Z)((0,Ue.Z)(fe),"onFileDrop",function(){var Pe=(0,pt.Z)((0,ye.Z)().mark(function rt(Qe){var Wt,Me,ut;return(0,ye.Z)().wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(Wt=fe.props.multiple,Qe.preventDefault(),Qe.type!=="dragover"){yt.next=4;break}return yt.abrupt("return");case 4:if(!fe.props.directory){yt.next=11;break}return yt.next=7,Ne(Array.prototype.slice.call(Qe.dataTransfer.items),function(xt){return tt(xt,fe.props.accept)});case 7:Me=yt.sent,fe.uploadFiles(Me),yt.next=14;break;case 11:ut=(0,je.Z)(Qe.dataTransfer.files).filter(function(xt){return tt(xt,fe.props.accept)}),Wt===!1&&(ut=ut.slice(0,1)),fe.uploadFiles(ut);case 14:case"end":return yt.stop()}},rt)}));return function(rt){return Pe.apply(this,arguments)}}()),(0,Le.Z)((0,Ue.Z)(fe),"uploadFiles",function(Pe){var rt=(0,je.Z)(Pe),Qe=rt.map(function(Wt){return Wt.uid=ke(),fe.processFile(Wt,rt)});Promise.all(Qe).then(function(Wt){var Me=fe.props.onBatchStart;Me==null||Me(Wt.map(function(ut){var We=ut.origin,yt=ut.parsedFile;return{file:We,parsedFile:yt}})),Wt.filter(function(ut){return ut.parsedFile!==null}).forEach(function(ut){fe.post(ut)})})}),(0,Le.Z)((0,Ue.Z)(fe),"processFile",function(){var Pe=(0,pt.Z)((0,ye.Z)().mark(function rt(Qe,Wt){var Me,ut,We,yt,xt,ae,ee,z,ie;return(0,ye.Z)().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(Me=fe.props.beforeUpload,ut=Qe,!Me){ne.next=14;break}return ne.prev=3,ne.next=6,Me(Qe,Wt);case 6:ut=ne.sent,ne.next=12;break;case 9:ne.prev=9,ne.t0=ne.catch(3),ut=!1;case 12:if(ut!==!1){ne.next=14;break}return ne.abrupt("return",{origin:Qe,parsedFile:null,action:null,data:null});case 14:if(We=fe.props.action,typeof We!="function"){ne.next=21;break}return ne.next=18,We(Qe);case 18:yt=ne.sent,ne.next=22;break;case 21:yt=We;case 22:if(xt=fe.props.data,typeof xt!="function"){ne.next=29;break}return ne.next=26,xt(Qe);case 26:ae=ne.sent,ne.next=30;break;case 29:ae=xt;case 30:return ee=((0,ht.Z)(ut)==="object"||typeof ut=="string")&&ut?ut:Qe,ee instanceof File?z=ee:z=new File([ee],Qe.name,{type:Qe.type}),ie=z,ie.uid=Qe.uid,ne.abrupt("return",{origin:Qe,data:ae,parsedFile:ie,action:yt});case 35:case"end":return ne.stop()}},rt,null,[[3,9]])}));return function(rt,Qe){return Pe.apply(this,arguments)}}()),(0,Le.Z)((0,Ue.Z)(fe),"saveFileInput",function(Pe){fe.fileInput=Pe}),fe}return(0,Oe.Z)(ge,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(He){var lt=this,st=He.data,Pe=He.origin,rt=He.action,Qe=He.parsedFile;if(this._isMounted){var Wt=this.props,Me=Wt.onStart,ut=Wt.customRequest,We=Wt.name,yt=Wt.headers,xt=Wt.withCredentials,ae=Wt.method,ee=Pe.uid,z=ut||me,ie={action:rt,filename:We,data:st,file:Qe,headers:yt,withCredentials:xt,method:ae||"post",onProgress:function(ne){var ce=lt.props.onProgress;ce==null||ce(ne,Qe)},onSuccess:function(ne,ce){var Re=lt.props.onSuccess;Re==null||Re(ne,Qe,ce),delete lt.reqs[ee]},onError:function(ne,ce){var Re=lt.props.onError;Re==null||Re(ne,ce,Qe),delete lt.reqs[ee]}};Me(Pe),this.reqs[ee]=z(ie)}}},{key:"reset",value:function(){this.setState({uid:ke()})}},{key:"abort",value:function(He){var lt=this.reqs;if(He){var st=He.uid?He.uid:He;lt[st]&&lt[st].abort&&lt[st].abort(),delete lt[st]}else Object.keys(lt).forEach(function(Pe){lt[Pe]&&lt[Pe].abort&&lt[Pe].abort(),delete lt[Pe]})}},{key:"render",value:function(){var He=this.props,lt=He.component,st=He.prefixCls,Pe=He.className,rt=He.classNames,Qe=rt===void 0?{}:rt,Wt=He.disabled,Me=He.id,ut=He.name,We=He.style,yt=He.styles,xt=yt===void 0?{}:yt,ae=He.multiple,ee=He.accept,z=He.capture,ie=He.children,se=He.directory,ne=He.openFileDialogOnClick,ce=He.onMouseEnter,Re=He.onMouseLeave,Et=He.hasControlInside,Pt=(0,pe.Z)(He,Ie),_e=xe()((0,Le.Z)((0,Le.Z)((0,Le.Z)({},st,!0),"".concat(st,"-disabled"),Wt),Pe,Pe)),et=se?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},qe=Wt?{}:{onClick:ne?this.onClick:function(){},onKeyDown:ne?this.onKeyDown:function(){},onMouseEnter:ce,onMouseLeave:Re,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Et?void 0:"0"};return ze.createElement(lt,(0,re.Z)({},qe,{className:_e,role:Et?void 0:"button",style:We}),ze.createElement("input",(0,re.Z)({},(0,Ee.Z)(Pt,{aria:!0,data:!0}),{id:Me,name:ut,disabled:Wt,type:"file",ref:this.saveFileInput,onClick:function(Zt){return Zt.stopPropagation()},key:this.state.uid,style:(0,Ce.Z)({display:"none"},xt.input),className:Qe.input,accept:ee},et,{multiple:ae,onChange:this.onChange},z!=null?{capture:z}:{})),ie)}}]),ge}(ze.Component),Ke=De;function Be(){}var Ve=function(vt){(0,be.Z)(ge,vt);var ot=(0,ue.Z)(ge);function ge(){var fe;(0,Ge.Z)(this,ge);for(var He=arguments.length,lt=new Array(He),st=0;st<He;st++)lt[st]=arguments[st];return fe=ot.call.apply(ot,[this].concat(lt)),(0,Le.Z)((0,Ue.Z)(fe),"uploader",void 0),(0,Le.Z)((0,Ue.Z)(fe),"saveUploader",function(Pe){fe.uploader=Pe}),fe}return(0,Oe.Z)(ge,[{key:"abort",value:function(He){this.uploader.abort(He)}},{key:"render",value:function(){return ze.createElement(Ke,(0,re.Z)({},this.props,{ref:this.saveUploader}))}}]),ge}(ze.Component);(0,Le.Z)(Ve,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Be,onError:Be,onSuccess:Be,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var It=Ve,mt=It},8224:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return Ge}});var re=le(4676);function Ge(Oe,Ue,be,ue){var Le=re.unstable_batchedUpdates?function(Ce){re.unstable_batchedUpdates(be,Ce)}:be;return Oe!=null&&Oe.addEventListener&&Oe.addEventListener(Ue,Le,ue),{remove:function(){Oe!=null&&Oe.removeEventListener&&Oe.removeEventListener(Ue,Le,ue)}}}},24514:function(tn,Xt,le){"use strict";le.d(Xt,{G:function(){return Ue}});var re=le(47273),Ge=function(ue){if((0,re.Z)()&&window.document.documentElement){var Le=Array.isArray(ue)?ue:[ue],ze=window.document.documentElement;return Le.some(function(Ce){return Ce in ze.style})}return!1},Oe=function(ue,Le){if(!Ge(ue))return!1;var ze=document.createElement("div"),Ce=ze.style[ue];return ze.style[ue]=Le,ze.style[ue]!==Ce};function Ue(be,ue){return!Array.isArray(be)&&ue!==void 0?Oe(be,ue):Ge(be)}},6790:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return xt}});var re=le(32855),Ge=le(34666),Oe=le(27247),Ue=le(74430),be=le(11913),ue=le(43079),Le=le(92310),ze=le.n(Le),Ce=le(29301),pe=le(70425),ht=le(34280),ye=le(59301),pt=le(4676),je=ye.forwardRef(function(ae,ee){var z=ae.height,ie=ae.offsetY,se=ae.offsetX,ne=ae.children,ce=ae.prefixCls,Re=ae.onInnerResize,Et=ae.innerProps,Pt=ae.rtl,_e=ae.extra,et={},qe={display:"flex",flexDirection:"column"};return ie!==void 0&&(et={height:z,position:"relative",overflow:"hidden"},qe=(0,Oe.Z)((0,Oe.Z)({},qe),{},(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({transform:"translateY(".concat(ie,"px)")},Pt?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),ye.createElement("div",{style:et},ye.createElement(Ce.Z,{onResize:function(Zt){var _t=Zt.offsetHeight;_t&&Re&&Re()}},ye.createElement("div",(0,re.Z)({style:qe,className:ze()((0,Ue.Z)({},"".concat(ce,"-holder-inner"),ce)),ref:ee},Et),ne,_e)))});je.displayName="Filler";var Se=je;function xe(ae){var ee=ae.children,z=ae.setRef,ie=ye.useCallback(function(se){z(se)},[]);return ye.cloneElement(ee,{ref:ie})}function Ee(ae,ee,z,ie,se,ne,ce,Re){var Et=Re.getKey;return ae.slice(ee,z+1).map(function(Pt,_e){var et=ee+_e,qe=ce(Pt,et,{style:{width:ie},offsetX:se}),St=Et(Pt);return ye.createElement(xe,{key:St,setRef:function(_t){return ne(Pt,_t)}},qe)})}function Ye(ae,ee,z,ie){var se=z-ae,ne=ee-z,ce=Math.min(se,ne)*2;if(ie<=ce){var Re=Math.floor(ie/2);return ie%2?z+Re+1:z-Re}return se>ne?z-(ie-ne):z+(ie-se)}function tt(ae,ee,z){var ie=ae.length,se=ee.length,ne,ce;if(ie===0&&se===0)return null;ie<se?(ne=ae,ce=ee):(ne=ee,ce=ae);var Re={__EMPTY_ITEM__:!0};function Et(Zt){return Zt!==void 0?z(Zt):Re}for(var Pt=null,_e=Math.abs(ie-se)!==1,et=0;et<ce.length;et+=1){var qe=Et(ne[et]),St=Et(ce[et]);if(qe!==St){Pt=et,_e=_e||qe!==Et(ce[et+1]);break}}return Pt===null?null:{index:Pt,multiple:_e}}function at(ae,ee,z){var ie=ye.useState(ae),se=(0,be.Z)(ie,2),ne=se[0],ce=se[1],Re=ye.useState(null),Et=(0,be.Z)(Re,2),Pt=Et[0],_e=Et[1];return ye.useEffect(function(){var et=tt(ne||[],ae||[],ee);(et==null?void 0:et.index)!==void 0&&(z==null||z(et.index),_e(ae[et.index])),ce(ae)},[ae]),[Pt]}var we=le(16089),me=(typeof navigator=="undefined"?"undefined":(0,Ge.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Te=me,Ne=function(ae,ee,z,ie){var se=(0,ye.useRef)(!1),ne=(0,ye.useRef)(null);function ce(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var Re=(0,ye.useRef)({top:ae,bottom:ee,left:z,right:ie});return Re.current.top=ae,Re.current.bottom=ee,Re.current.left=z,Re.current.right=ie,function(Et,Pt){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,et=Et?Pt<0&&Re.current.left||Pt>0&&Re.current.right:Pt<0&&Re.current.top||Pt>0&&Re.current.bottom;return _e&&et?(clearTimeout(ne.current),se.current=!1):(!et||se.current)&&ce(),!se.current&&et}};function bt(ae,ee,z,ie,se,ne,ce){var Re=(0,ye.useRef)(0),Et=(0,ye.useRef)(null),Pt=(0,ye.useRef)(null),_e=(0,ye.useRef)(!1),et=Ne(ee,z,ie,se);function qe(qt,Ht){if(we.Z.cancel(Et.current),!et(!1,Ht)){var it=qt;if(!it._virtualHandled)it._virtualHandled=!0;else return;Re.current+=Ht,Pt.current=Ht,Te||it.preventDefault(),Et.current=(0,we.Z)(function(){var ln=_e.current?10:1;ce(Re.current*ln,!1),Re.current=0})}}function St(qt,Ht){ce(Ht,!0),Te||qt.preventDefault()}var Zt=(0,ye.useRef)(null),_t=(0,ye.useRef)(null);function At(qt){if(ae){we.Z.cancel(_t.current),_t.current=(0,we.Z)(function(){Zt.current=null},2);var Ht=qt.deltaX,it=qt.deltaY,ln=qt.shiftKey,Ot=Ht,Yt=it;(Zt.current==="sx"||!Zt.current&&ln&&it&&!Ht)&&(Ot=it,Yt=0,Zt.current="sx");var dn=Math.abs(Ot),Tt=Math.abs(Yt);Zt.current===null&&(Zt.current=ne&&dn>Tt?"x":"y"),Zt.current==="y"?qe(qt,Yt):St(qt,Ot)}}function an(qt){ae&&(_e.current=qt.detail===Pt.current)}return[At,an]}function Ae(ae,ee,z,ie){var se=ye.useMemo(function(){return[new Map,[]]},[ae,z.id,ie]),ne=(0,be.Z)(se,2),ce=ne[0],Re=ne[1],Et=function(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_e,qe=ce.get(_e),St=ce.get(et);if(qe===void 0||St===void 0)for(var Zt=ae.length,_t=Re.length;_t<Zt;_t+=1){var At,an=ae[_t],qt=ee(an);ce.set(qt,_t);var Ht=(At=z.get(qt))!==null&&At!==void 0?At:ie;if(Re[_t]=(Re[_t-1]||0)+Ht,qt===_e&&(qe=_t),qt===et&&(St=_t),qe!==void 0&&St!==void 0)break}return{top:Re[qe-1]||0,bottom:Re[St]}};return Et}var ke=le(33377),Ie=le(93912),De=function(){function ae(){(0,ke.Z)(this,ae),(0,Ue.Z)(this,"maps",void 0),(0,Ue.Z)(this,"id",0),(0,Ue.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ie.Z)(ae,[{key:"set",value:function(z,ie){this.diffRecords.set(z,this.maps[z]),this.maps[z]=ie,this.id+=1}},{key:"get",value:function(z){return this.maps[z]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),Ke=De;function Be(ae){var ee=parseFloat(ae);return isNaN(ee)?0:ee}function Ve(ae,ee,z){var ie=ye.useState(0),se=(0,be.Z)(ie,2),ne=se[0],ce=se[1],Re=(0,ye.useRef)(new Map),Et=(0,ye.useRef)(new Ke),Pt=(0,ye.useRef)(0);function _e(){Pt.current+=1}function et(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;_e();var Zt=function(){var an=!1;Re.current.forEach(function(qt,Ht){if(qt&&qt.offsetParent){var it=qt.offsetHeight,ln=getComputedStyle(qt),Ot=ln.marginTop,Yt=ln.marginBottom,dn=Be(Ot),Tt=Be(Yt),gt=it+dn+Tt;Et.current.get(Ht)!==gt&&(Et.current.set(Ht,gt),an=!0)}}),an&&ce(function(qt){return qt+1})};if(St)Zt();else{Pt.current+=1;var _t=Pt.current;Promise.resolve().then(function(){_t===Pt.current&&Zt()})}}function qe(St,Zt){var _t=ae(St),At=Re.current.get(_t);Zt?(Re.current.set(_t,Zt),et()):Re.current.delete(_t),!At!=!Zt&&(Zt?ee==null||ee(St):z==null||z(St))}return(0,ye.useEffect)(function(){return _e},[]),[qe,et,Et.current,ne]}var It=14/15;function mt(ae,ee,z){var ie=(0,ye.useRef)(!1),se=(0,ye.useRef)(0),ne=(0,ye.useRef)(0),ce=(0,ye.useRef)(null),Re=(0,ye.useRef)(null),Et,Pt=function(St){if(ie.current){var Zt=Math.ceil(St.touches[0].pageX),_t=Math.ceil(St.touches[0].pageY),At=se.current-Zt,an=ne.current-_t,qt=Math.abs(At)>Math.abs(an);qt?se.current=Zt:ne.current=_t;var Ht=z(qt,qt?At:an,!1,St);Ht&&St.preventDefault(),clearInterval(Re.current),Ht&&(Re.current=setInterval(function(){qt?At*=It:an*=It;var it=Math.floor(qt?At:an);(!z(qt,it,!0)||Math.abs(it)<=.1)&&clearInterval(Re.current)},16))}},_e=function(){ie.current=!1,Et()},et=function(St){Et(),St.touches.length===1&&!ie.current&&(ie.current=!0,se.current=Math.ceil(St.touches[0].pageX),ne.current=Math.ceil(St.touches[0].pageY),ce.current=St.target,ce.current.addEventListener("touchmove",Pt,{passive:!1}),ce.current.addEventListener("touchend",_e,{passive:!0}))};Et=function(){ce.current&&(ce.current.removeEventListener("touchmove",Pt),ce.current.removeEventListener("touchend",_e))},(0,ht.Z)(function(){return ae&&ee.current.addEventListener("touchstart",et,{passive:!0}),function(){var qe;(qe=ee.current)===null||qe===void 0||qe.removeEventListener("touchstart",et),Et(),clearInterval(Re.current)}},[ae])}function vt(ae){return Math.floor(Math.pow(ae,.5))}function ot(ae,ee){var z="touches"in ae?ae.touches[0]:ae;return z[ee?"pageX":"pageY"]-window[ee?"scrollX":"scrollY"]}function ge(ae,ee,z){ye.useEffect(function(){var ie=ee.current;if(ae&&ie){var se=!1,ne,ce,Re=function(){we.Z.cancel(ne)},Et=function qe(){Re(),ne=(0,we.Z)(function(){z(ce),qe()})},Pt=function(St){if(!(St.target.draggable||St.button!==0)){var Zt=St;Zt._virtualHandled||(Zt._virtualHandled=!0,se=!0)}},_e=function(){se=!1,Re()},et=function(St){if(se){var Zt=ot(St,!1),_t=ie.getBoundingClientRect(),At=_t.top,an=_t.bottom;if(Zt<=At){var qt=At-Zt;ce=-vt(qt),Et()}else if(Zt>=an){var Ht=Zt-an;ce=vt(Ht),Et()}else Re()}};return ie.addEventListener("mousedown",Pt),ie.ownerDocument.addEventListener("mouseup",_e),ie.ownerDocument.addEventListener("mousemove",et),function(){ie.removeEventListener("mousedown",Pt),ie.ownerDocument.removeEventListener("mouseup",_e),ie.ownerDocument.removeEventListener("mousemove",et),Re()}}},[ae])}var fe=10;function He(ae,ee,z,ie,se,ne,ce,Re){var Et=ye.useRef(),Pt=ye.useState(null),_e=(0,be.Z)(Pt,2),et=_e[0],qe=_e[1];return(0,ht.Z)(function(){if(et&&et.times<fe){if(!ae.current){qe(function(sr){return(0,Oe.Z)({},sr)});return}ne();var St=et.targetAlign,Zt=et.originAlign,_t=et.index,At=et.offset,an=ae.current.clientHeight,qt=!1,Ht=St,it=null;if(an){for(var ln=St||Zt,Ot=0,Yt=0,dn=0,Tt=Math.min(ee.length-1,_t),gt=0;gt<=Tt;gt+=1){var pn=se(ee[gt]);Yt=Ot;var Nn=z.get(pn);dn=Yt+(Nn===void 0?ie:Nn),Ot=dn}for(var Tn=ln==="top"?At:an-At,nr=Tt;nr>=0;nr-=1){var fr=se(ee[nr]),br=z.get(fr);if(br===void 0){qt=!0;break}if(Tn-=br,Tn<=0)break}switch(ln){case"top":it=Yt-At;break;case"bottom":it=dn-an+At;break;default:{var Qn=ae.current.scrollTop,En=Qn+an;Yt<Qn?Ht="top":dn>En&&(Ht="bottom")}}it!==null&&ce(it),it!==et.lastTop&&(qt=!0)}qt&&qe((0,Oe.Z)((0,Oe.Z)({},et),{},{times:et.times+1,targetAlign:Ht,lastTop:it}))}},[et,ae.current]),function(St){if(St==null){Re();return}if(we.Z.cancel(Et.current),typeof St=="number")ce(St);else if(St&&(0,Ge.Z)(St)==="object"){var Zt,_t=St.align;"index"in St?Zt=St.index:Zt=ee.findIndex(function(qt){return se(qt)===St.key});var At=St.offset,an=At===void 0?0:At;qe({times:0,index:Zt,offset:an,originAlign:_t})}}}var lt=ye.forwardRef(function(ae,ee){var z=ae.prefixCls,ie=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,ce=ae.onStartMove,Re=ae.onStopMove,Et=ae.onScroll,Pt=ae.horizontal,_e=ae.spinSize,et=ae.containerSize,qe=ae.style,St=ae.thumbStyle,Zt=ae.showScrollBar,_t=ye.useState(!1),At=(0,be.Z)(_t,2),an=At[0],qt=At[1],Ht=ye.useState(null),it=(0,be.Z)(Ht,2),ln=it[0],Ot=it[1],Yt=ye.useState(null),dn=(0,be.Z)(Yt,2),Tt=dn[0],gt=dn[1],pn=!ie,Nn=ye.useRef(),Tn=ye.useRef(),nr=ye.useState(Zt),fr=(0,be.Z)(nr,2),br=fr[0],Qn=fr[1],En=ye.useRef(),sr=function(){Zt===!0||Zt===!1||(clearTimeout(En.current),Qn(!0),En.current=setTimeout(function(){Qn(!1)},3e3))},ur=ne-et||0,Dn=et-_e||0,bn=ye.useMemo(function(){if(se===0||ur===0)return 0;var rr=se/ur;return rr*Dn},[se,ur,Dn]),$t=function(Jn){Jn.stopPropagation(),Jn.preventDefault()},fn=ye.useRef({top:bn,dragging:an,pageY:ln,startTop:Tt});fn.current={top:bn,dragging:an,pageY:ln,startTop:Tt};var zt=function(Jn){qt(!0),Ot(ot(Jn,Pt)),gt(fn.current.top),ce(),Jn.stopPropagation(),Jn.preventDefault()};ye.useEffect(function(){var rr=function(sn){sn.preventDefault()},Jn=Nn.current,Zn=Tn.current;return Jn.addEventListener("touchstart",rr,{passive:!1}),Zn.addEventListener("touchstart",zt,{passive:!1}),function(){Jn.removeEventListener("touchstart",rr),Zn.removeEventListener("touchstart",zt)}},[]);var Jt=ye.useRef();Jt.current=ur;var xn=ye.useRef();xn.current=Dn,ye.useEffect(function(){if(an){var rr,Jn=function(sn){var Lt=fn.current,yn=Lt.dragging,Wn=Lt.pageY,qn=Lt.startTop;we.Z.cancel(rr);var Xe=Nn.current.getBoundingClientRect(),$e=et/(Pt?Xe.width:Xe.height);if(yn){var un=(ot(sn,Pt)-Wn)*$e,Ut=qn;!pn&&Pt?Ut-=un:Ut+=un;var ct=Jt.current,en=xn.current,hn=en?Ut/en:0,mn=Math.ceil(hn*ct);mn=Math.max(mn,0),mn=Math.min(mn,ct),rr=(0,we.Z)(function(){Et(mn,Pt)})}},Zn=function(){qt(!1),Re()};return window.addEventListener("mousemove",Jn,{passive:!0}),window.addEventListener("touchmove",Jn,{passive:!0}),window.addEventListener("mouseup",Zn,{passive:!0}),window.addEventListener("touchend",Zn,{passive:!0}),function(){window.removeEventListener("mousemove",Jn),window.removeEventListener("touchmove",Jn),window.removeEventListener("mouseup",Zn),window.removeEventListener("touchend",Zn),we.Z.cancel(rr)}}},[an]),ye.useEffect(function(){return sr(),function(){clearTimeout(En.current)}},[se]),ye.useImperativeHandle(ee,function(){return{delayHidden:sr}});var Sn="".concat(z,"-scrollbar"),An={position:"absolute",visibility:br?null:"hidden"},Kn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Pt?(Object.assign(An,{height:8,left:0,right:0,bottom:0}),Object.assign(Kn,(0,Ue.Z)({height:"100%",width:_e},pn?"left":"right",bn))):(Object.assign(An,(0,Ue.Z)({width:8,top:0,bottom:0},pn?"right":"left",0)),Object.assign(Kn,{width:"100%",height:_e,top:bn})),ye.createElement("div",{ref:Nn,className:ze()(Sn,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Sn,"-horizontal"),Pt),"".concat(Sn,"-vertical"),!Pt),"".concat(Sn,"-visible"),br)),style:(0,Oe.Z)((0,Oe.Z)({},An),qe),onMouseDown:$t,onMouseMove:sr},ye.createElement("div",{ref:Tn,className:ze()("".concat(Sn,"-thumb"),(0,Ue.Z)({},"".concat(Sn,"-thumb-moving"),an)),style:(0,Oe.Z)((0,Oe.Z)({},Kn),St),onMouseDown:zt}))}),st=lt,Pe=20;function rt(){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,Pe),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"],Wt=[],Me={overflowY:"auto",overflowAnchor:"none"};function ut(ae,ee){var z=ae.prefixCls,ie=z===void 0?"rc-virtual-list":z,se=ae.className,ne=ae.height,ce=ae.itemHeight,Re=ae.fullHeight,Et=Re===void 0?!0:Re,Pt=ae.style,_e=ae.data,et=ae.children,qe=ae.itemKey,St=ae.virtual,Zt=ae.direction,_t=ae.scrollWidth,At=ae.component,an=At===void 0?"div":At,qt=ae.onScroll,Ht=ae.onVirtualScroll,it=ae.onVisibleChange,ln=ae.innerProps,Ot=ae.extraRender,Yt=ae.styles,dn=ae.showScrollBar,Tt=dn===void 0?"optional":dn,gt=(0,ue.Z)(ae,Qe),pn=ye.useCallback(function(ft){return typeof qe=="function"?qe(ft):ft==null?void 0:ft[qe]},[qe]),Nn=Ve(pn,null,null),Tn=(0,be.Z)(Nn,4),nr=Tn[0],fr=Tn[1],br=Tn[2],Qn=Tn[3],En=!!(St!==!1&&ne&&ce),sr=ye.useMemo(function(){return Object.values(br.maps).reduce(function(ft,Nt){return ft+Nt},0)},[br.id,br.maps]),ur=En&&_e&&(Math.max(ce*_e.length,sr)>ne||!!_t),Dn=Zt==="rtl",bn=ze()(ie,(0,Ue.Z)({},"".concat(ie,"-rtl"),Dn),se),$t=_e||Wt,fn=(0,ye.useRef)(),zt=(0,ye.useRef)(),Jt=(0,ye.useRef)(),xn=(0,ye.useState)(0),Sn=(0,be.Z)(xn,2),An=Sn[0],Kn=Sn[1],rr=(0,ye.useState)(0),Jn=(0,be.Z)(rr,2),Zn=Jn[0],Gn=Jn[1],sn=(0,ye.useState)(!1),Lt=(0,be.Z)(sn,2),yn=Lt[0],Wn=Lt[1],qn=function(){Wn(!0)},Xe=function(){Wn(!1)},$e={getKey:pn};function un(ft){Kn(function(Nt){var Ft;typeof ft=="function"?Ft=ft(Nt):Ft=ft;var Rt=qr(Ft);return fn.current.scrollTop=Rt,Rt})}var Ut=(0,ye.useRef)({start:0,end:$t.length}),ct=(0,ye.useRef)(),en=at($t,pn),hn=(0,be.Z)(en,1),mn=hn[0];ct.current=mn;var Cn=ye.useMemo(function(){if(!En)return{scrollHeight:void 0,start:0,end:$t.length-1,offset:void 0};if(!ur){var ft;return{scrollHeight:((ft=zt.current)===null||ft===void 0?void 0:ft.offsetHeight)||0,start:0,end:$t.length-1,offset:void 0}}for(var Nt=0,Ft,Rt,Gt,Bt=$t.length,Kt=0;Kt<Bt;Kt+=1){var Vt=$t[Kt],nn=pn(Vt),Mn=br.get(nn),Ln=Nt+(Mn===void 0?ce:Mn);Ln>=An&&Ft===void 0&&(Ft=Kt,Rt=Nt),Ln>An+ne&&Gt===void 0&&(Gt=Kt),Nt=Ln}return Ft===void 0&&(Ft=0,Rt=0,Gt=Math.ceil(ne/ce)),Gt===void 0&&(Gt=$t.length-1),Gt=Math.min(Gt+1,$t.length-1),{scrollHeight:Nt,start:Ft,end:Gt,offset:Rt}},[ur,En,An,$t,Qn,ne]),gn=Cn.scrollHeight,wn=Cn.start,nt=Cn.end,$n=Cn.offset;Ut.current.start=wn,Ut.current.end=nt,ye.useLayoutEffect(function(){var ft=br.getRecord();if(ft.size===1){var Nt=Array.from(ft.keys())[0],Ft=ft.get(Nt),Rt=$t[wn];if(Rt&&Ft===void 0){var Gt=pn(Rt);if(Gt===Nt){var Bt=br.get(Nt),Kt=Bt-ce;un(function(Vt){return Vt+Kt})}}}br.resetRecord()},[gn]);var kn=ye.useState({width:0,height:ne}),_n=(0,be.Z)(kn,2),zn=_n[0],er=_n[1],dr=function(Nt){er({width:Nt.offsetWidth,height:Nt.offsetHeight})},Wr=(0,ye.useRef)(),Ar=(0,ye.useRef)(),gr=ye.useMemo(function(){return rt(zn.width,_t)},[zn.width,_t]),Zr=ye.useMemo(function(){return rt(zn.height,gn)},[zn.height,gn]),vr=gn-ne,Gr=(0,ye.useRef)(vr);Gr.current=vr;function qr(ft){var Nt=ft;return Number.isNaN(Gr.current)||(Nt=Math.min(Nt,Gr.current)),Nt=Math.max(Nt,0),Nt}var Ur=An<=0,jr=An>=vr,Yr=Zn<=0,Vr=Zn>=_t,Br=Ne(Ur,jr,Yr,Vr),$r=function(){return{x:Dn?-Zn:Zn,y:An}},Kr=(0,ye.useRef)($r()),On=(0,pe.zX)(function(ft){if(Ht){var Nt=(0,Oe.Z)((0,Oe.Z)({},$r()),ft);(Kr.current.x!==Nt.x||Kr.current.y!==Nt.y)&&(Ht(Nt),Kr.current=Nt)}});function ir(ft,Nt){var Ft=ft;Nt?((0,pt.flushSync)(function(){Gn(Ft)}),On()):un(Ft)}function Sr(ft){var Nt=ft.currentTarget.scrollTop;Nt!==An&&un(Nt),qt==null||qt(ft),On()}var Rr=function(Nt){var Ft=Nt,Rt=_t?_t-zn.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,Rt),Ft},Nr=(0,pe.zX)(function(ft,Nt){Nt?((0,pt.flushSync)(function(){Gn(function(Ft){var Rt=Ft+(Dn?-ft:ft);return Rr(Rt)})}),On()):un(function(Ft){var Rt=Ft+ft;return Rt})}),Ir=bt(En,Ur,jr,Yr,Vr,!!_t,Nr),si=(0,be.Z)(Ir,2),Fe=si[0],wt=si[1];mt(En,fn,function(ft,Nt,Ft,Rt){var Gt=Rt;return Br(ft,Nt,Ft)?!1:!Gt||!Gt._virtualHandled?(Gt&&(Gt._virtualHandled=!0),Fe({preventDefault:function(){},deltaX:ft?Nt:0,deltaY:ft?0:Nt}),!0):!1}),ge(ur,fn,function(ft){un(function(Nt){return Nt+ft})}),(0,ht.Z)(function(){function ft(Ft){var Rt=Ur&&Ft.detail<0,Gt=jr&&Ft.detail>0;En&&!Rt&&!Gt&&Ft.preventDefault()}var Nt=fn.current;return Nt.addEventListener("wheel",Fe,{passive:!1}),Nt.addEventListener("DOMMouseScroll",wt,{passive:!0}),Nt.addEventListener("MozMousePixelScroll",ft,{passive:!1}),function(){Nt.removeEventListener("wheel",Fe),Nt.removeEventListener("DOMMouseScroll",wt),Nt.removeEventListener("MozMousePixelScroll",ft)}},[En,Ur,jr]),(0,ht.Z)(function(){if(_t){var ft=Rr(Zn);Gn(ft),On({x:ft})}},[zn.width,_t]);var dt=function(){var Nt,Ft;(Nt=Wr.current)===null||Nt===void 0||Nt.delayHidden(),(Ft=Ar.current)===null||Ft===void 0||Ft.delayHidden()},kt=He(fn,$t,br,ce,pn,function(){return fr(!0)},un,dt);ye.useImperativeHandle(ee,function(){return{nativeElement:Jt.current,getScrollInfo:$r,scrollTo:function(Nt){function Ft(Rt){return Rt&&(0,Ge.Z)(Rt)==="object"&&("left"in Rt||"top"in Rt)}Ft(Nt)?(Nt.left!==void 0&&Gn(Rr(Nt.left)),kt(Nt.top)):kt(Nt)}}}),(0,ht.Z)(function(){if(it){var ft=$t.slice(wn,nt+1);it(ft,$t)}},[wn,nt,$t]);var Mt=Ae($t,pn,br,ce),jt=Ot==null?void 0:Ot({start:wn,end:nt,virtual:ur,offsetX:Zn,offsetY:$n,rtl:Dn,getSize:Mt}),cn=Ee($t,wn,nt,_t,Zn,nr,et,$e),rn=null;ne&&(rn=(0,Oe.Z)((0,Ue.Z)({},Et?"height":"maxHeight",ne),Me),En&&(rn.overflowY="hidden",_t&&(rn.overflowX="hidden"),yn&&(rn.pointerEvents="none")));var Qt={};return Dn&&(Qt.dir="rtl"),ye.createElement("div",(0,re.Z)({ref:Jt,style:(0,Oe.Z)((0,Oe.Z)({},Pt),{},{position:"relative"}),className:bn},Qt,gt),ye.createElement(Ce.Z,{onResize:dr},ye.createElement(an,{className:"".concat(ie,"-holder"),style:rn,ref:fn,onScroll:Sr,onMouseEnter:dt},ye.createElement(Se,{prefixCls:ie,height:gn,offsetX:Zn,offsetY:$n,scrollWidth:_t,onInnerResize:fr,ref:zt,innerProps:ln,rtl:Dn,extra:jt},cn))),ur&&gn>ne&&ye.createElement(st,{ref:Wr,prefixCls:ie,scrollOffset:An,scrollRange:gn,rtl:Dn,onScroll:ir,onStartMove:qn,onStopMove:Xe,spinSize:Zr,containerSize:zn.height,style:Yt==null?void 0:Yt.verticalScrollBar,thumbStyle:Yt==null?void 0:Yt.verticalScrollBarThumb,showScrollBar:Tt}),ur&&_t>zn.width&&ye.createElement(st,{ref:Ar,prefixCls:ie,scrollOffset:Zn,scrollRange:_t,rtl:Dn,onScroll:ir,onStartMove:qn,onStopMove:Xe,spinSize:gr,containerSize:zn.width,horizontal:!0,style:Yt==null?void 0:Yt.horizontalScrollBar,thumbStyle:Yt==null?void 0:Yt.horizontalScrollBarThumb,showScrollBar:Tt}))}var We=ye.forwardRef(ut);We.displayName="List";var yt=We,xt=yt},93314:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0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ZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(tn,Xt,le){"use strict";le.d(Xt,{Z:function(){return ze}});const re=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,Ge=(Ce,pe)=>(!pe||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",Oe=(Ce,pe)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const ht=getComputedStyle(Ce,null);return Ge(ht.overflowY,pe)||Ge(ht.overflowX,pe)||(ye=>{const pt=(je=>{if(!je.ownerDocument||!je.ownerDocument.defaultView)return null;try{return je.ownerDocument.defaultView.frameElement}catch(Se){return null}})(ye);return!!pt&&(pt.clientHeight<ye.scrollHeight||pt.clientWidth<ye.scrollWidth)})(Ce)}return!1},Ue=(Ce,pe,ht,ye,pt,je,Se,xe)=>je<Ce&&Se>pe||je>Ce&&Se<pe?0:je<=Ce&&xe<=ht||Se>=pe&&xe>=ht?je-Ce-ye:Se>pe&&xe<ht||je<Ce&&xe>ht?Se-pe+pt:0,be=Ce=>{const pe=Ce.parentElement;return pe==null?Ce.getRootNode().host||null:pe},ue=(Ce,pe)=>{var ht,ye,pt,je;if(typeof document=="undefined")return[];const{scrollMode:Se,block:xe,inline:Ee,boundary:Ye,skipOverflowHiddenElements:tt}=pe,at=typeof Ye=="function"?Ye:st=>st!==Ye;if(!re(Ce))throw new TypeError("Invalid target");const we=document.scrollingElement||document.documentElement,me=[];let Te=Ce;for(;re(Te)&&at(Te);){if(Te=be(Te),Te===we){me.push(Te);break}Te!=null&&Te===document.body&&Oe(Te)&&!Oe(document.documentElement)||Te!=null&&Oe(Te,tt)&&me.push(Te)}const Ne=(ye=(ht=window.visualViewport)==null?void 0:ht.width)!=null?ye:innerWidth,bt=(je=(pt=window.visualViewport)==null?void 0:pt.height)!=null?je:innerHeight,{scrollX:Ae,scrollY:ke}=window,{height:Ie,width:De,top:Ke,right:Be,bottom:Ve,left:It}=Ce.getBoundingClientRect(),{top:mt,right:vt,bottom:ot,left:ge}=(st=>{const Pe=window.getComputedStyle(st);return{top:parseFloat(Pe.scrollMarginTop)||0,right:parseFloat(Pe.scrollMarginRight)||0,bottom:parseFloat(Pe.scrollMarginBottom)||0,left:parseFloat(Pe.scrollMarginLeft)||0}})(Ce);let fe=xe==="start"||xe==="nearest"?Ke-mt:xe==="end"?Ve+ot:Ke+Ie/2-mt+ot,He=Ee==="center"?It+De/2-ge+vt:Ee==="end"?Be+vt:It-ge;const lt=[];for(let st=0;st<me.length;st++){const Pe=me[st],{height:rt,width:Qe,top:Wt,right:Me,bottom:ut,left:We}=Pe.getBoundingClientRect();if(Se==="if-needed"&&Ke>=0&&It>=0&&Ve<=bt&&Be<=Ne&&(Pe===we&&!Oe(Pe)||Ke>=Wt&&Ve<=ut&&It>=We&&Be<=Me))return lt;const yt=getComputedStyle(Pe),xt=parseInt(yt.borderLeftWidth,10),ae=parseInt(yt.borderTopWidth,10),ee=parseInt(yt.borderRightWidth,10),z=parseInt(yt.borderBottomWidth,10);let ie=0,se=0;const ne="offsetWidth"in Pe?Pe.offsetWidth-Pe.clientWidth-xt-ee:0,ce="offsetHeight"in Pe?Pe.offsetHeight-Pe.clientHeight-ae-z:0,Re="offsetWidth"in Pe?Pe.offsetWidth===0?0:Qe/Pe.offsetWidth:0,Et="offsetHeight"in Pe?Pe.offsetHeight===0?0:rt/Pe.offsetHeight:0;if(we===Pe)ie=xe==="start"?fe:xe==="end"?fe-bt:xe==="nearest"?Ue(ke,ke+bt,bt,ae,z,ke+fe,ke+fe+Ie,Ie):fe-bt/2,se=Ee==="start"?He:Ee==="center"?He-Ne/2:Ee==="end"?He-Ne:Ue(Ae,Ae+Ne,Ne,xt,ee,Ae+He,Ae+He+De,De),ie=Math.max(0,ie+ke),se=Math.max(0,se+Ae);else{ie=xe==="start"?fe-Wt-ae:xe==="end"?fe-ut+z+ce:xe==="nearest"?Ue(Wt,ut,rt,ae,z+ce,fe,fe+Ie,Ie):fe-(Wt+rt/2)+ce/2,se=Ee==="start"?He-We-xt:Ee==="center"?He-(We+Qe/2)+ne/2:Ee==="end"?He-Me+ee+ne:Ue(We,Me,Qe,xt,ee+ne,He,He+De,De);const{scrollLeft:Pt,scrollTop:_e}=Pe;ie=Et===0?0:Math.max(0,Math.min(_e+ie/Et,Pe.scrollHeight-rt/Et+ce)),se=Re===0?0:Math.max(0,Math.min(Pt+se/Re,Pe.scrollWidth-Qe/Re+ne)),fe+=_e-ie,He+=Pt-se}lt.push({el:Pe,top:ie,left:se})}return lt},Le=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(pe=>pe===Object(pe)&&Object.keys(pe).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function ze(Ce,pe){if(!Ce.isConnected||!(pt=>{let je=pt;for(;je&&je.parentNode;){if(je.parentNode===document)return!0;je=je.parentNode instanceof ShadowRoot?je.parentNode.host:je.parentNode}return!1})(Ce))return;const ht=(pt=>{const je=window.getComputedStyle(pt);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(Ce);if((pt=>typeof pt=="object"&&typeof pt.behavior=="function")(pe))return pe.behavior(ue(Ce,pe));const ye=typeof pe=="boolean"||pe==null?void 0:pe.behavior;for(const{el:pt,top:je,left:Se}of ue(Ce,Le(pe))){const xe=je-ht.top+ht.bottom,Ee=Se-ht.left+ht.right;pt.scroll({top:xe,left:Ee,behavior:ye})}}}}]);