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__virtualSpaces__Lists__Kn...

1106 lines
720 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1045],{45559:function(){"use strict"},96408:function(Rt,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},70031:function(Rt,Zt){"use strict";Zt.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},93510: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 Rt={},Zt="5.0",de={},re=null,gt=!1,_e=!1,ze=null,me=!1,Ue=null,Ae=null,je=0;je<arguments.length;je++){var ge=arguments[je];if(ge!==null)switch(typeof ge){case"number":Zt=ge.toFixed(1);break;case"string":ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?Zt=ge:ze=ge;break;case"object":typeof ge.is3D!="undefined"?re=ge:de=ge;break;case"boolean":gt=ge,_e=!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},de.material_id!==void 0&&!_e&&(gt=!0)),ze!==null&&de.id===void 0&&(de.id=ze);var pe="",De="",xe=!1,mt=null,Ke=null,Oe=null,Ze=!1,Le=null,vt=null,ft=null,At=null,tt=null;de.height!==void 0&&(de.height=Math.round(de.height)),de.width!==void 0&&(de.width=Math.round(de.width));var Qe=function(be){return parseFloat(be)>4?parseFloat(be):5};Rt.setHTML5Codebase=function(be,Ne){Ae=be,Pe(be,Ne)},Rt.setJavaCodebase=Rt.setJavaCodebaseVersion=Rt.isCompiledInstalled=Rt.setPreCompiledScriptPath=Rt.setPreCompiledResourcePath=function(){},Rt.setHTML5CodebaseVersion=function(be,Ne){var Fe=parseFloat(be);if(Fe!==NaN&&Fe<5){console.log("The GeoGebra HTML5 codebase version "+Fe+" is deprecated. Using version latest instead.");return}Ue=be,le(be,Ne)},Rt.getHTML5CodebaseVersion=function(){return Ke},Rt.getParameters=function(){return de},Rt.setFontsCSSURL=function(be){At=be},Rt.setGiacJSURL=function(be){},Rt.setJNLPFile=function(be){pe=be},Rt.setJNLPBaseDir=function(be){},Rt.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ne="auto",Fe=de.id,Ct,it=!1,Se=0;Se<arguments.length;Se++){var ve=arguments[Se];typeof ve=="string"?(ve=ve.toLowerCase(),ve.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ne=ve:Fe=arguments[Se]):typeof ve=="boolean"?it=ve:ve instanceof HTMLElement&&(Ct=ve)}Ee();function Ee(){if(!me){setTimeout(Ee,200);return}Ne=at(Ne);var Ye=Ct||document.getElementById(Fe);if(!Ye){console.log("possibly bug on ajax loading? ");return}if(Rt.removeExistingApplet(Ye,!1),de.width===void 0&&Ye.clientWidth&&(de.width=Ye.clientWidth),de.height===void 0&&Ye.clientHeight&&(de.height=Ye.clientHeight),!(de.width&&de.height)&&Ne==="html5"&&(delete de.width,delete de.height),mt=Ne,Ne==="screenshot")Be(Ye,de);else{var we=!1;de.hasOwnProperty("playButton")&&de.playButton||de.hasOwnProperty("clickToLoad")&&de.clickToLoad?we=!0:de.hasOwnProperty("playButtonAutoDecide")&&de.playButtonAutoDecide&&(we=(!st()||be())&&et()),we?(mt="screenshot",Gt(Ye,de,it,Ne)):$e(Ye,de,it)}}};function st(){try{return window.self!==window.top}catch(be){return!0}}function et(){return de.hasOwnProperty("screenshotGenerator")&&de.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Rt.getViews=function(){return re},Rt.isJavaInstalled=function(){return!1};var jt=function(be){var Ne=function(Se){var ve=JSON.parse(Se),Ee=function(Ie){return Ie.type=="G"||Ie.type=="E"},Ye=ve.elements?ve.elements.filter(Ee)[0]:ve;if(!Ye||!Ye.url){Fe();return}de.fileName=Ye.url,We(Ye.settings||{}),re.is3D=!0;var we="https://www.geogebra.org/images/";Rt.setPreviewImage(Le||Ye.previewUrl,we+"GeoGebra_loading.png",we+"applet_play.png"),be()},Fe=function(){de.onError&&de.onError(),dt("Error: Fetching material (id "+de.material_id+") failed.",de)},Ct=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",it="/materials/"+de.material_id+"?scope=basic";Je("https://"+Ct+"/api/proxy.php?path="+encodeURIComponent(it),Ne,Fe)};function We(be){var Ne=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Fe){be[Fe]=!!be[Fe]}),Ne.forEach(function(Fe){de[Fe]===void 0&&be[Fe]!==void 0&&(de[Fe]=be[Fe])}),de.showToolBarHelp===void 0&&(de.showToolBarHelp=de.showToolBar)}function Je(be,Ne,Fe){var Ct=new XMLHttpRequest;Ct.open("GET",be),Ct.onload=function(){Ne(Ct.responseText)},Ct.onerror=Fe,Ct.send()}Rt.isHTML5Installed=function(){return!0},Rt.getLoadedAppletType=function(){return mt},Rt.setPreviewImage=function(be,Ne,Fe){Le=be,vt=Ne,ft=Fe},Rt.removeExistingApplet=function(be,Ne){var Fe;typeof be=="string"&&(be=document.getElementById(be)),mt=null;var Ct=null;for(Fe=0;Fe<be.childNodes.length;Fe++){var it=be.childNodes[Fe],Se=it.className;Se==="applet_screenshot"?Ne?(it.style.display="block",mt="screenshot"):it.style.display="none":Se!=="applet_scaler prerender"&&(be.removeChild(it),Ct=Se&&Se.indexOf("appletParameters")!=-1?it.id:null,Fe--)}var ve=de.id!==void 0?de.id:Ct,Ee=window[ve];Ee&&typeof Ee.getBase64=="function"&&(Ee.remove(),window[ve]=null)},Rt.refreshHitPoints=function(){if(Qe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=Rt.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Rt.startAnimation=function(){var be=Rt.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Rt.stopAnimation=function(){var be=Rt.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Rt.getAppletObject=function(){var be=de.id!==void 0?de.id:"ggbApplet";return window[be]},Rt.resize=function(){};var Dt=function(be,Ne,Fe){var Ct=document.createElement("param");Ct.setAttribute("name",Ne),Ct.setAttribute("value",Fe),be.appendChild(Ct)},Ce=function(be){return be&&be!=="false"},$e=function(be,Ne,Fe){Qe(Ke)<=4.2&&(Fe=!0);var Ct=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ke||ggbHTML5LoadedCodebaseIsWebSimple&&!Ze)&&(Ct=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var it=document.createElement("div");it.classList.add("appletParameters","notranslate");var Se=Ne.width,ve=Ne.height;if(Ne.disableAutoScale=Ne.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ne.disableAutoScale,Ne.width!==void 0)if(Qe(Ke)<=4.4)Ce(Ne.showToolBar)&&(Ne.height-=7),Ce(Ne.showAlgebraInput)&&(Ne.height-=37),Ne.width<605&&Ce(Ne.showToolBar)&&(Ne.width=605,Se=605);else{var Ee=100;(Ce(Ne.showToolBar)||Ce(Ne.showMenuBar))&&(Ne.hasOwnProperty("customToolBar")&&(Ne.customToolbar=Ne.customToolBar),Ee=Ce(Ne.showMenuBar)?245:155),Se<Ee&&(Ne.width=Ee,Se=Ee)}it.style.border="none",it.style.display="inline-block";for(var Ye in Ne)Ne.hasOwnProperty(Ye)&&Ye!=="appletOnLoad"&&it.setAttribute("data-param-"+Ye,Ne[Ye]);At&&it.setAttribute("data-param-fontscssurl",At),Rt.resize=function(){GGBAppletUtils.responsiveResize(be,Ne)},window.addEventListener("resize",function(ee){Rt.resize()});var we=typeof Ne.appletOnLoad=="function"?Ne.appletOnLoad:function(){};if(!Fe&&Ne.width!==void 0){Ne.hasOwnProperty("showSplash")||it.setAttribute("data-param-showSplash","false");var Ie=be.querySelector(".applet_scaler.prerender"),qe=Ie!==null;if(qe)var nt=Ie.querySelector(".ggb_preview");else{var nt=ht(Se,ve,Ne.borderColor,!1);Ie=document.createElement("div"),Ie.className="applet_scaler",Ie.style.position="relative",Ie.style.display="block",Ie.style.width=Se+"px",Ie.style.height=ve+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),Qe(Ke)>=5?(Ne.appletOnLoad=function(ee){var oe=be.querySelector(".ggb_preview");oe&&oe.parentNode.removeChild(oe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ie),window.GGBT_wsf_view&&$(window).trigger("resize"),we(ee)},qe||Ie.appendChild(nt)):it.appendChild(nt),Ie.appendChild(it),qe||be.appendChild(Ie),setTimeout(function(){Rt.resize()},1)}else{var ut=document.createElement("div");ut.className="applet_scaler",ut.style.position="relative",ut.style.display="block",ut.appendChild(it),be.appendChild(ut),Ne.appletOnLoad=function(ee){Rt.resize(),we(ee)}}function Ge(ee,oe){oe&&typeof oe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ee,oe.appletOnLoad):renderGGBElement(ee),dt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",oe)}function xt(ee,oe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ee,params:oe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ce){Ge(ce.article,ce.params)}),html5AppletsToProcess=null)},Qe(Ke)<5&&(ee.className+=" geogebraweb")):Ge(ee,oe)}if(Ct){scriptLoadStarted=!0;for(var kt=0;kt<it.childNodes.length;kt++){var Qt=it.childNodes[kt].tagName;Qt==="TABLE"&&(it.removeChild(it.childNodes[kt]),kt--)}if(ggbHTML5LoadedScript!==null){var It=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');It!=null&&It.parentNode.removeChild(It)}var se=document.createElement("script"),te=function(){xt(it,Ne)};se.src=De+Oe,ggbHTML5LoadedCodebaseIsWebSimple=Ze,ggbHTML5LoadedCodebaseVersion=Ke,ggbHTML5LoadedScript=se.src,dt("GeoGebra HTML5 codebase loaded: '"+De+"'.",Ne),!Ae&&(!Ue||Ue=="5.0")?(Ze?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),te()):De.requirejs?__webpack_require__.e(3861).then(function(){var ee=[__webpack_require__(40341)];te.apply(null,ee)}.bind(this)).catch(__webpack_require__.oe):(se.onload=te,be.appendChild(se))}else xt(it,Ne);Ne.height=ve,Ne.width=Se},Be=function(be,Ne,Fe){var Ct=ht(Ne.width,Ne.height,Ne.borderColor,Fe),it=document.createElement("div");it.style.position="relative",it.style.display="block",it.style.width=Ne.width+"px",it.style.height=Ne.height+"px",it.className="applet_screenshot applet_scaler"+(Fe?" applet_screenshot_play":""),it.appendChild(Ct);var Se=GGBAppletUtils.getScale(Ne,be,Fe);Fe?(be.appendChild(St()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(it,"66%"),be.appendChild(it),Se!==1&&!isNaN(Se)&&(GGBAppletUtils.scaleElement(it,Se),it.style.width=Ne.width+"px",it.style.height=Ne.height+"px",it.parentNode.style.width=Ne.width*Se+"px",it.parentNode.style.height=Ne.height*Se+"px"),Rt.resize=function(){Xe(be,Ct,it,Fe)},window.addEventListener("resize",function(ve){Rt.resize()}),Rt.resize()};function Xe(be,Ne,Fe,Ct){if(be.contains(Ne)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var it=GGBAppletUtils.getScale(de,be,Ct);Fe.parentNode!==null&&(!isNaN(it)&&it!==1?(GGBAppletUtils.scaleElement(Fe,it),Fe.parentNode.style.width=de.width*it+"px",Fe.parentNode.style.height=de.height*it+"px"):(GGBAppletUtils.scaleElement(Fe,1),Fe.parentNode.style.width=de.width+"px",Fe.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Rt.onExitFullscreen=function(be,Ne){Ne.appendChild(be)};var Gt=function(be,Ne,Fe,Ct){Be(be,Ne,!0);for(var it=function(){var Ee=[];for(ve=0;ve<be.childNodes.length;ve++)Ee.push(be.childNodes[ve]);if(window.GGBT_wsf_view){var Ye=window.GGBT_wsf_view.renderFullScreen(be,Ne.id),we=document.getElementById("fullscreencontainer"),Ie=jQuery(be).find(".fullscreencontent");Ie.length>0?(Ye.remove(),Ie.attr("id","fullscreencontent").show(),jQuery(we).append(Ie),window.dispatchEvent(new Event("resize"))):$e(Ye,Ne,!1),window.GGBT_wsf_view.launchFullScreen(we)}else mt=Ct,$e(be,Ne,!1);if(!window.GGBT_wsf_view)for(ve=0;ve<Ee.length;ve++)be.removeChild(Ee[ve])},Se=be.getElementsByClassName("ggb_preview_play"),ve=0;ve<Se.length;ve++)Se[ve].addEventListener("click",it,!1),Se[ve].addEventListener("ontouchstart",it,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),et()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},St=function(){var be=document.createElement("div");if(be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ne='.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");}',Fe=document.createElement("style");Fe.styleSheet?Fe.styleSheet.cssText=Ne:Fe.appendChild(document.createTextNode(Ne)),document.getElementsByTagName("head")[0].appendChild(Fe)}return be},ht=function(be,Ne,Fe,Ct){var it=document.createElement("div");it.className="ggb_preview",it.style.position="absolute",it.style.zIndex="90",it.style.width=be-2+"px",it.style.height=Ne-2+"px",it.style.top="0px",it.style.left="0px",it.style.overflow="hidden",it.style.backgroundColor="white";var Se="lightgrey";Fe!==void 0&&(Fe==="none"?Se="transparent":Se=Fe),it.style.border="1px solid "+Se;var ve=document.createElement("img");if(ve.style.position="relative",ve.style.zIndex="1000",ve.style.top="-1px",ve.style.left="-1px",Le!==null&&ve.setAttribute("src",Le),ve.style.opacity=.7,vt!==null){var Ee,Ye,we;if(!Ct){Ee=document.createElement("img"),Ee.style.position="absolute",Ee.style.zIndex="1001",Ee.style.opacity=1,ve.style.opacity=.3,Ye=360,Ye>be/4*3&&(Ye=be/4*3),we=Ye/5.8,Ee.setAttribute("src",vt),Ee.setAttribute("width",Ye),Ee.setAttribute("height",we);var Ie=(be-Ye)/2,qe=(Ne-we)/2;Ee.style.left=Ie+"px",Ee.style.top=qe+"px",it.appendChild(Ee)}}return it.appendChild(ve),it},at=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},he=["web","webSimple","web3d","tablet","tablet3d","phone"],le=function(be,Ne){if(Ke=be,Ne){Pe(Ke,!0);return}var Fe=!gt;if(Fe){var Ct=Qe(Ke);!isNaN(Ct)&&Ct<4.4&&(Fe=!1)}var it,Se;window.location.protocol.substr(0,4)==="http"?it=window.location.protocol:it="http:";var ve=Ke.indexOf("//");ve>0?Se=Ke:ve===0?Se=it+Ke:Se="https://www.geogebra.org/apps/5.2.814.0/";for(var Ee in he)if(Ke.slice(he[Ee].length*-1)===he[Ee]||Ke.slice((he[Ee].length+1)*-1)===he[Ee]+"/"){Pe(Se,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Fe&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!Ce(de.showToolBar)&&!Ce(de.showMenuBar)&&!Ce(de.showAlgebraInput)&&!Ce(de.enableRightClick)&&(!de.appName||de.appName=="classic")?Se+="webSimple/":Se+="web3d/",Pe(Se,!1)},Pe=function(be,Ne){if(be.requirejs){De=be;return}be.slice(-1)!=="/"&&(be+="/"),De=be,Ne===null&&(Ne=be.indexOf("http")===-1),xe=Ne,Oe="web.nocache.js",Ze=!1;var Fe=De.split("/");Fe.length>1&&(!Ne&&Fe[Fe.length-2]==="webSimple"?(Oe="webSimple.nocache.js",Ze=!0):he.indexOf(Fe[Fe.length-2])>=0&&(Oe=Fe[Fe.length-2]+".nocache.js")),Fe=be.split("/"),Ke=Fe[Fe.length-3],Ke.substr(0,4)==="test"?Ke=Ke.substr(4,1)+"."+Ke.substr(5,1):(Ke.substr(0,3)==="war"||Ke.substr(0,4)==="beta")&&(Ke="5.0");var Ct=parseFloat(Ke);Ct!==NaN&&Ct<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead."),le("5.0",Ne))},dt=function(be,Ne){window.console&&window.console.log&&(!Ne||typeof Ne.showLogging=="undefined"||Ne.showLogging&&Ne.showLogging!=="false")&&console.log(be)};de.material_id!==void 0?jt(ot):ot();function ot(){var be=Zt;Ue!==null?be=Ue:parseFloat(be)<5&&(be="5.0"),le(be,!1),Ae!==null&&Pe(Ae,xe),me=!0}return Rt},GGBAppletUtils=function(){"use strict";function Rt(){return window.GGBT_wsf_edit!==void 0}function Zt(me,Ue){Ue!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+Ue+","+Ue+")",me.style.webkitTransform="scale("+Ue+","+Ue+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function de(me,Ue,Ae,je,ge,pe){var De=null;if(pe!=null&&pe!="")for(var xe=me.parentNode;xe!=null;)if((" "+xe.className+" ").indexOf(" "+pe+" ")>-1){De=xe;break}else xe=xe.parentNode;var mt=0,Ke=0,Oe=0,Ze=0,Le=0,vt=0,ft=0;if(De)mt=De.offsetWidth,Ke=Math.max(je?De.offsetWidth:0,De.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(mt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ke=Math.min(window.innerHeight,document.documentElement.clientHeight),Oe=mt):(mt=window.innerWidth,Ke=window.innerHeight,Oe=window.innerWidth),me){var At=me.getBoundingClientRect();At.left>0&&At.left<=mt&&(ge===void 0||!ge)&&(document.dir==="rtl"?(Le=mt-At.width-At.left,vt=Oe<=480?10:30):(vt=At.left,Le=Oe<=480?10:30),Ze=vt+Le)}if(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var tt=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ze=40,ft=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ze=0,ft=40)}}return me&&((Ae===void 0||!Ae)&&Ue>0&&Ue+Ze<mt?mt=Ue:mt-=Ze,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae===void 0||!Ae)&&(Ke-=ft)),{width:mt,height:Ke}}function re(me,Ue,Ae,je,ge){if(me.isScreenshoGenerator)return 1;var pe=je!==void 0&&je,De=me.noScaleMargin!=null&&me.noScaleMargin,xe=function(tt){return tt&&tt!=="false"},mt=xe(me.autoHeight),Ke=de(Ue,me.width,Ae,mt,pe&&window.GGBT_wsf_view||De,ge),Oe=parseInt(Ke.width),Ze=me.width,Le=me.height;if(Ze===void 0){var vt=Ue.querySelector(".appletParameters");vt&&(Ze=vt.offsetWidth,Le=vt.offsetHeight)}var ft=Oe/Ze,At=pe?1:Ke.height/Le;return Ae!==void 0&&!Ae&&(ft=Math.min(1,ft),At=Math.min(1,At)),Math.min(ft,At)}function gt(me,Ue,Ae){var je=1,ge,pe=!1;if(me.hasOwnProperty("allowUpscale")&&(pe=me.allowUpscale),me.hasOwnProperty("scale")&&(je=parseFloat(me.scale),(isNaN(je)||je===null||je===0)&&(je=1),je>1&&(pe=!0)),Ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))ge=re(me,Ue,pe,Ae,me.scaleContainerClass);else return je;return pe&&(!me.hasOwnProperty("scale")||je===1)?ge:Math.min(je,ge)}function _e(me){var Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),Ae=Math.min(window.innerHeight,document.documentElement.clientHeight),je=me.getBoundingClientRect(),ge=(Ue-je.width)/2,pe=(Ae-je.height)/2;pe<0&&(pe=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ge<40?me.style.left="40px":me.style.left=ge+"px",me.style.top=pe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(pe<40?me.style.top="40px":me.style.top=pe+"px",me.style.left=ge+"px")}function ze(me,Ue){var Ae=me.querySelector(".appletParameters");if(Ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ue.id!==Ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(Ae.parentElement&&/fullscreen/.test(Ae.parentElement.className))return;var je=gt(Ue,me);Rt()&&Ae.setAttribute("data-param-scale",je);for(var ge=null,pe=0;pe<me.childNodes.length;pe++)if(me.childNodes[pe].className!==void 0&&me.childNodes[pe].className.match(/^applet_scaler/)){ge=me.childNodes[pe];break}if(ge!==null&&ge.querySelector(".noscale")!==null)return;var De=Ue.id!==void 0?Ue.id:"ggbApplet",xe=window[De];(xe==null||!xe.recalculateEnvironments)&&ge!==null&&!ge.className.match(/fullscreen/)&&(ge.parentNode.style.transform="",!isNaN(je)&&je!==1?(ge.parentNode.style.width=Ue.width*je+"px",ge.parentNode.style.height=Ue.height*je+"px",Zt(ge,je)):(Zt(ge,1),ge.parentNode.style.width=Ue.width+"px",ge.parentNode.style.height=Ue.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ae).parents(".content-added-content"))}}return{responsiveResize:ze,isFlexibleWorksheetEditor:Rt,positionCenter:_e,getScale:gt,scaleElement:Zt}}();__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 Rt=n.location.search;return Rt.indexOf(J)!=-1||Rt.indexOf(K)!=-1}function q(Rt,Zt){}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(Rt){var Zt=s[L].bindings;s[L].bindings=function(){for(var de=Zt?Zt():{},re=Rt[webModule.__softPermutationId],gt=O;gt<re.length;gt++){var _e=re[gt];de[_e[O]]=_e[P]}return de}};var t;function u(){return v(),t}function v(){if(!t){var Rt=o.createElement(Q);if(Rt.id=L,Rt.style.cssText=R+S,Rt.tabIndex=-1,o.body.appendChild(Rt),t=Rt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Zt=document.compatMode==U?V:W;t.write(Zt+X),t.close()}}}function w(Rt){function Zt(re){function gt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=gt();if(_e){re();return}function ze(){if(!_e){if(!gt())return;_e=!0,re(),o.removeEventListener&&o.removeEventListener(Z,ze,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,ze,!1);var me=setInterval(function(){ze()},$)}function de(re){var gt=u(),_e=gt.body,ze=gt.createElement(_);ze.language=ab,ze.crossOrigin=W,ze.src=re,webModule.__errFn&&(ze.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),_e.appendChild(ze)}Zt(function(){de(Rt)})}webModule.__startLoadingFragment=function(Rt){return C(Rt)},webModule.__installRunAsyncCode=function(Rt){var Zt=u(),de=Zt.body,re=Zt.createElement(_);re.language=ab,re.text=Rt,de.appendChild(re),de.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(Rt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rt){var Zt=c[Rt];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function Rt(me){var Ue=me.lastIndexOf(rb);Ue==-1&&(Ue=me.length);var Ae=me.indexOf(sb);Ae==-1&&(Ae=me.length);var je=me.lastIndexOf(tb,Math.min(Ae,Ue));return je>=O?me.substring(O,je+P):W}function Zt(me){if(!me.match(/^\w+:\/\//)){var Ue=o.createElement(ub);Ue.src=me+vb,me=Rt(Ue.src)}return me}function de(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function re(){for(var me=o.getElementsByTagName(_),Ue=O;Ue<me.length;++Ue)if(me[Ue].src.indexOf(xb)!=-1)return Rt(me[Ue].src);return W}function gt(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function _e(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var ze=de();return ze==W&&(ze=re()),ze==W&&(ze=gt()),ze==W&&_e()&&(ze=Rt(o.location.href)),ze=Zt(ze),ze}function C(Rt){return Rt.match(/^\//)||Rt.match(/^[a-zA-Z]+:\/\//)?Rt:webModule.__moduleBase+Rt}function D(){var Rt=[],Zt=O,de=[],re=[];function gt(me){var Ue=re[me](),Ae=de[me];if(Ue in Ae)return Ue;var je=[];for(var ge in Ae)je[Ae[ge]]=ge;throw r&&r(me,je,Ue),null}if(__gwt_isKnownPropertyValue=function(me,Ue){return Ue in de[me]},webModule.__getPropMap=function(){var me={};for(var Ue in de)de.hasOwnProperty(Ue)&&(me[Ue]=gt(Ue));return me},webModule.__computePropValue=gt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var ze=_e.indexOf(Db);ze!=-1&&(Zt=parseInt(_e.substring(ze+P),$),_e=_e.substring(O,ze))}catch(me){}return webModule.__softPermutationId=Zt,C(_e+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})()},28735:function(Rt,Zt,de){"use strict";de.d(Zt,{Ax:function(){return ze},Ds:function(){return me},KI:function(){return Ae},SI:function(){return _e},f1:function(){return gt}});var re=de(74128);function gt(je){let ge=!0;if(je.length>0){for(let pe=0;pe<je.length;pe++)if(je[pe].compile_success==0||!je[pe].compile_success){ge=!1;break}}else ge=!1;return ge}function _e(je,ge=""){let pe=[];for(let De=0;De<je.length;De++){let xe=je[De],mt=ge?`${ge}/${xe.name}`:`${xe.name}`;pe.push({title:xe.name,type:xe.type,isLeaf:xe.type!=="tree",key:mt})}return pe}function ze(je,ge,pe){for(let De=0;De<je.length;De++){let xe=je[De];if(xe.key===ge){xe.children=pe;break}xe.children&&ze(xe.children,ge,pe)}return je}function me(je,ge,pe){let De;return function(){let xe=this,mt=arguments,Ke=function(){De=null,pe||je.apply(xe,mt)},Oe=pe&&!De;clearTimeout(De),De=setTimeout(Ke,ge),Oe&&je.apply(xe,mt)}}const Ue=!0,Ae=re.Z.API_SERVER},53464:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return It}});var re=de(59301),gt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=de(92310),ze=de.n(_e),me=de(29787);var Ue=function(se,te){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&(ee[ce]=oe[ce])})(se,te)};function Ae(se,te){function ee(){this.constructor=se}Ue(se,te),se.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function je(se,te,ee,oe){return new(ee||(ee=Promise))(function(ce,ne){function ye(wt){try{bt(oe.next(wt))}catch(He){ne(He)}}function yt(wt){try{bt(oe.throw(wt))}catch(He){ne(He)}}function bt(wt){var He;wt.done?ce(wt.value):(He=wt.value,He instanceof ee?He:new ee(function(Yt){Yt(He)})).then(ye,yt)}bt((oe=oe.apply(se,te||[])).next())})}function ge(se,te){var ee,oe,ce,ne,ye={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return ne={next:yt(0),throw:yt(1),return:yt(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function yt(bt){return function(wt){return function(He){if(ee)throw new TypeError("Generator is already executing.");for(;ye;)try{if(ee=1,oe&&(ce=2&He[0]?oe.return:He[0]?oe.throw||((ce=oe.return)&&ce.call(oe),0):oe.next)&&!(ce=ce.call(oe,He[1])).done)return ce;switch(oe=0,ce&&(He=[2&He[0],ce.value]),He[0]){case 0:case 1:ce=He;break;case 4:return ye.label++,{value:He[1],done:!1};case 5:ye.label++,oe=He[1],He=[0];continue;case 7:He=ye.ops.pop(),ye.trys.pop();continue;default:if(ce=ye.trys,!((ce=ce.length>0&&ce[ce.length-1])||He[0]!==6&&He[0]!==2)){ye=0;continue}if(He[0]===3&&(!ce||He[1]>ce[0]&&He[1]<ce[3])){ye.label=He[1];break}if(He[0]===6&&ye.label<ce[1]){ye.label=ce[1],ce=He;break}if(ce&&ye.label<ce[2]){ye.label=ce[2],ye.ops.push(He);break}ce[2]&&ye.ops.pop(),ye.trys.pop();continue}He=te.call(se,ye)}catch(Yt){He=[6,Yt],oe=0}finally{ee=ce=0}if(5&He[0])throw He[1];return{value:He[0]?He[1]:void 0,done:!0}}([bt,wt])}}}function pe(){for(var se=0,te=0,ee=arguments.length;te<ee;te++)se+=arguments[te].length;var oe=Array(se),ce=0;for(te=0;te<ee;te++)for(var ne=arguments[te],ye=0,yt=ne.length;ye<yt;ye++,ce++)oe[ce]=ne[ye];return oe}var De=function(){function se(){}return se.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},se.setAttributes=function(te,ee){for(var oe=0,ce=ee;oe<ce.length;oe++){var ne=ce[oe],ye=ne[0],yt=ne[1];te.setAttribute(ye,yt)}},se.createRect=function(te,ee,oe){var ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return ce.setAttribute("width",te.toString()),ce.setAttribute("height",ee.toString()),oe&&se.setAttributes(ce,oe),ce},se.createLine=function(te,ee,oe,ce,ne){var ye=document.createElementNS("http://www.w3.org/2000/svg","line");return ye.setAttribute("x1",te.toString()),ye.setAttribute("y1",ee.toString()),ye.setAttribute("x2",oe.toString()),ye.setAttribute("y2",ce.toString()),ne&&se.setAttributes(ye,ne),ye},se.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&se.setAttributes(oe,ee),oe},se.createCircle=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(te/2).toString()),oe.setAttribute("cy",(te/2).toString()),oe.setAttribute("r",te.toString()),ee&&se.setAttributes(oe,ee),oe},se.createEllipse=function(te,ee,oe){var ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ce.setAttribute("cx",(te/2).toString()),ce.setAttribute("cy",(ee/2).toString()),ce.setAttribute("rx",(te/2).toString()),ce.setAttribute("ry",(ee/2).toString()),oe&&se.setAttributes(ce,oe),ce},se.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&se.setAttributes(ee,te),ee},se.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},se.createMarker=function(te,ee,oe,ce,ne,ye,yt){var bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return se.setAttributes(bt,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",ce.toString()],["refX",ne.toString()],["refY",ye.toString()]]),bt.appendChild(yt),bt},se.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&se.setAttributes(ee,te),ee},se.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&se.setAttributes(oe,ee),oe},se.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&se.setAttributes(ee,te),ee},se.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},se.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&se.setAttributes(oe,ee),oe},se}(),xe=function(){function se(){}return se.addKey=function(te){se.key=te},Object.defineProperty(se,"isLicensed",{get:function(){return!!se.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(se.key)},enumerable:!1,configurable:!0}),se}(),mt=function(){function se(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return se.prototype.rasterize=function(te,ee,oe){var ce=this;return new Promise(function(ne){var ye=oe!==void 0?oe:document.createElement("canvas");te===null&&(ce.markersOnly=!0,ce.naturalSize=!1);var yt=document.createElementNS("http://www.w3.org/2000/svg","svg");yt.setAttribute("xmlns","http://www.w3.org/2000/svg"),yt.setAttribute("width",ee.width.baseVal.valueAsString),yt.setAttribute("height",ee.height.baseVal.valueAsString),yt.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),yt.innerHTML=ee.innerHTML,ce.naturalSize===!0?(yt.width.baseVal.value=te.naturalWidth,yt.height.baseVal.value=te.naturalHeight):ce.width!==void 0&&ce.height!==void 0&&(yt.width.baseVal.value=ce.width,yt.height.baseVal.value=ce.height),ye.width=yt.width.baseVal.value,ye.height=yt.height.baseVal.value;var bt=yt.outerHTML,wt=ye.getContext("2d");ce.markersOnly!==!0&&wt.drawImage(te,0,0,ye.width,ye.height);var He=window.URL,Yt=new Image(ye.width,ye.height);Yt.setAttribute("crossOrigin","anonymous");var _t=new Blob([bt],{type:"image/svg+xml"}),Wt=He.createObjectURL(_t);Yt.onload=function(){wt.drawImage(Yt,0,0),He.revokeObjectURL(Wt);var ln=ye.toDataURL(ce.imageType,ce.imageQuality);ne(ln)},Yt.src=Wt})},se}(),Ke=function(){},Oe=function(){function se(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(se.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(se.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(se.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),se.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},se.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},se.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new Ze("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Le("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Le("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},se.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},se}(),Ze=function(se,te){this.selector=se,this.style=te},Le=function(se,te){this.localName=se,this.style=te},vt=function(){function se(te,ee,oe,ce,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=ce,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return se.prototype.show=function(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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 ye=document.createElement("div");ye.className=""+ee.toolbarButtonStyleClass.name,ye.setAttribute("data-type-name",ne.typeName),ye.innerHTML=ne.icon,ye.addEventListener("click",function(){ee.markerToolbarButtonClicked(ye,ne)}),ee.buttons.push(ye),ee.markerButtons.push(ye)}),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 ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ce),this.addActionButton(ce,'<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(ce,'<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()},se.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},se.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},se.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},se.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},se.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")},se.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},se.prototype.addActionButton=function(te,ee,oe){var ce=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){ce.actionToolbarButtonClicked(ne,oe)}),oe){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}te.appendChild(ne),this.buttons.push(ne)},se.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Le("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 Le("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Le("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Le("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 Le("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Le("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},se.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},se.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},se.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},se.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},se.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},se}(),ft=function(){function se(te,ee,oe,ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return se.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Le("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 Le("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Le("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Le("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Le("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 Le("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Le("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
padding: `+ee+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},se.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},se.prototype.setPanelButtons=function(te){var ee,oe,ce=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var ye;ne.uiStyleSettings=ce.uiStyleSettings;var yt=document.createElement("div");yt.className=ce.toolboxButtonStyleClass.name+" "+((ye=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ye!==void 0?ye:ce.toolboxButtonStyleColorsClass.name),yt.innerHTML=ne.icon,yt.title=ne.title,yt.addEventListener("click",function(){ce.panelButtonClick(ne)}),ce.panelButtons.push(yt),ce.buttonRow.appendChild(yt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},se.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var ce=te.getUi();ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,ye){var yt,bt;ne.className=ee.toolboxButtonStyleClass.name+" "+(ye===oe?""+((yt=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&yt!==void 0?yt:ee.toolboxActiveButtonStyleColorsClass.name):""+((bt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bt!==void 0?bt:ee.toolboxButtonStyleColorsClass.name))})},se}(),At=function(se,te){this.title=se,this.icon=te},tt=function(se){function te(ee,oe,ce,ne){var ye=se.call(this,ee,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 ye.colors=[],ye.addTransparent=!1,ye.colorBoxes=[],ye.colors=oe,ye.currentColor=ce,ye.setCurrentColor=ye.setCurrentColor.bind(ye),ye.getColorBox=ye.getColorBox.bind(ye),ye}return Ae(te,se),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ce){var ne=ee.getColorBox(ce);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ce=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ce,ye=document.createElement("div");ye.style.display="inline-block",ye.style.boxSizing="content-box",ye.style.width=ne-2+"px",ye.style.height=ne-2+"px",ye.style.padding="1px",ye.style.marginRight="2px",ye.style.marginBottom="2px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderRadius=(ne+2)/2+"px",ye.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){oe.setCurrentColor(ee,ye)});var yt=document.createElement("div");return yt.style.display="inline-block",yt.style.width=ne-2+"px",yt.style.height=ne-2+"px",yt.style.backgroundColor=ee,yt.style.borderRadius=ne/2+"px",ee==="transparent"&&(yt.style.fill=this.uiStyleSettings.toolboxAccentColor,yt.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>`),ye.appendChild(yt),ye},te.prototype.setCurrentColor=function(ee,oe){var ce=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(At),Qe=function(){function se(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(se.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),se.prototype.ownsTarget=function(te){return!1},Object.defineProperty(se.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),se.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},se.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},se.prototype.pointerDown=function(te,ee){},se.prototype.dblClick=function(te,ee){},se.prototype.manipulate=function(te){},se.prototype.pointerUp=function(te){this.stateChanged()},se.prototype.dispose=function(){},se.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},se.prototype.getState=function(){return{typeName:se.typeName,state:this.state,notes:this.notes}},se.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},se.prototype.scale=function(te,ee){},se.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},se.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},se.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},se.typeName="MarkerBase",se}(),st=function(){function se(){this.findGripByVisual=this.findGripByVisual.bind(this)}return se.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},se}(),et=function(){function se(){this.GRIP_SIZE=10,this.visual=De.createGroup(),this.visual.appendChild(De.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(De.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return se.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},se}(),jt=function(){function se(){}return se.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},se.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},se}(),We=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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(De.createTransform()),ne.setupControlBox(),ne}return Ae(te,se),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=De.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!se.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ce=this.unrotatePoint(ee);if(this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.offsetX=ce.x-this.left,this.offsetY=ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;se.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,ce=this.manipulationStartWidth,ne=this.manipulationStartTop,ye=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ce=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ce=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,ye=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ye=this.manipulationStartHeight+ee.y-this.manipulationStartY}ce>=0?(this.left=oe,this.width=ce):(this.left=oe+ce,this.width=-ce),ye>=0?(this.top=ne,this.height=ye):(this.top=ne+ye,this.height=-ye),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),ce=De.createPoint(ee.x,ee.y);return{x:(ce=ce.matrixTransform(oe)).x,y:ce.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ce=De.createPoint(ee.x,ee.y);return{x:(ce=ce.matrixTransform(oe)).x,y:ce.y}},te.prototype.select=function(){se.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){se.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=De.createGroup();var ee=De.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=De.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=De.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new st,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new et;return ee.visual.transform.baseVal.appendItem(De.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ce=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,ye=(this.height+this.CB_DISTANCE)/2-ee/2,yt=this.height+this.CB_DISTANCE-ee/2,bt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ce),this.positionGrip(this.controlGrips.topCenter.visual,ne,ce),this.positionGrip(this.controlGrips.topRight.visual,bt,ce),this.positionGrip(this.controlGrips.centerLeft.visual,oe,ye),this.positionGrip(this.controlGrips.centerRight.visual,bt,ye),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,yt),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,yt),this.positionGrip(this.controlGrips.bottomRight.visual,bt,yt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ce-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ce){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ce),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:jt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:jt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},se.prototype.getState.call(this))},te.prototype.restoreState=function(ee){se.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(jt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe);var ce=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ce.x*ee,y:ce.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(Qe),Je=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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 Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=De.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){se.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){se.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){se.prototype.setSize.call(this),De.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){se.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&De.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&De.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&De.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&De.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},se.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),se.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(We),Dt=function(se){function te(ee,oe,ce,ne){var ye=se.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ye.widths=[],ye.widthBoxes=[],ye.widths=oe,ye.currentWidth=ce,ye.setCurrentWidth=ye.setCurrentWidth.bind(ye),ye}return Ae(te,se),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ce){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=ce===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(ce,ne)}),oe.appendChild(ne);var ye=document.createElement("div");ye.innerText=ce.toString(),ye.style.marginRight="5px",ne.appendChild(ye);var yt=document.createElement("div");yt.style.minHeight="20px",yt.style.flexGrow="2",yt.style.display="flex",yt.style.alignItems="center";var bt=document.createElement("hr");bt.style.minWidth="20px",bt.style.border="0px",bt.style.borderTop=ce+"px solid "+ee.uiStyleSettings.toolboxColor,bt.style.flexGrow="2",yt.appendChild(bt),ne.appendChild(yt),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ce=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(At),Ce=function(se){function te(ee,oe,ce,ne){var ye=se.call(this,ee,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 ye.styles=[],ye.styleBoxes=[],ye.styles=oe,ye.currentStyle=ce,ye.setCurrentStyle=ye.setCurrentStyle.bind(ye),ye}return Ae(te,se),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=ce===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(ce,ne)}),oe.appendChild(ne);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.overflow="hidden";var yt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ce!==""?'stroke-dasharray="'+ce+'"':"")+` />
</svg>`;ye.innerHTML=yt,ne.appendChild(ye),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ce=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(At),$e=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||this;return ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new tt("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ce("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ae(te,se),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=se.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(Je),Be=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Xe=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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 Ae(te,se),te.prototype.ownsTarget=function(ee){return!!se.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;se.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){se.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){se.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=De.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new et;return ee.visual.transform.baseVal.appendItem(De.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,ce){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ce),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},se.prototype.getState.call(this))},te.prototype.restoreState=function(ee){se.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(Qe),Gt=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new tt("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ce("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=De.createGroup(),this.selectorLine=De.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=De.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),De.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),De.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),De.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){se.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(Xe),St=function(se){function te(ee,oe,ce,ne){var ye=se.call(this,ee,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 ye.fonts=[],ye.fontBoxes=[],ye.fonts=oe,ye.currentFont=ce,ye.setCurrentFont=ye.setCurrentFont.bind(ye),ye}return Ae(te,se),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ce){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=ce===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(ce,ne)}),oe.appendChild(ne);var ye=document.createElement("div");ye.style.display="flex",ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.fontFamily=ce,ye.style.overflow="hidden";var yt=document.createElement("div");yt.style.whiteSpace="nowrap",yt.style.overflow="hidden",yt.style.textOverflow="ellipsis",yt.innerHTML="The quick brown fox jumps over the lazy dog",ye.appendChild(yt),ne.appendChild(ye),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ce=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(At),ht=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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=ce.defaultColor,ne.fontFamily=ce.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 tt("Color",ce.defaultColorSet,ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new St("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){if(se.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ce){ce===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=De.createGroup(),this.bgRectangle=De.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=De.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(De.createTransform()),this.textElement.transform.baseVal.appendItem(De.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(De.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var ce=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(ce,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ce=0,ne=0;return oe.width>0&&oe.height>0&&(ce=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:ce,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ce=this.getTextPosition(oe);ce.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ce.x+"px, "+ce.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ce.x,ce.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){se.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){se.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){se.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(De.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),De.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),se.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var ce=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ce)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ce=this.textElement.getBBox(),ne={x:ce.width*ee,y:ce.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){se.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),se.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){se.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&De.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&De.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),se.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.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>',te}(We),at=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ce.defaultColor,ne.lineWidth=ce.defaultStrokeWidth,ne.pixelRatio=ce.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 tt("Color",ce.defaultColorSet,ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=De.createGroup(),this.drawingImage=De.createImage(),this.visual.appendChild(this.drawingImage);var ee=De.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):se.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):se.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){se.prototype.resize.call(this,ee),De.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),De.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):se.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),se.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),se.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ce=oe[0],ne=oe[1],ye=oe[2],yt=oe[3],bt=!1,wt=0;wt<this.canvasElement.height;wt++)for(var He=0;He<this.canvasElement.width;He++)ee.data[wt*this.canvasElement.width*4+4*He+3]>0&&(bt=!0,wt<ne&&(ne=wt),He<ce&&(ce=He),wt>yt&&(yt=wt),He>ye&&(ye=He));if(bt){this.left=ce/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(ye-ce)/this.pixelRatio,this.height=(yt-ne)/this.pixelRatio;var Yt=document.createElement("canvas");Yt.width=ye-ce,Yt.height=yt-ne,Yt.getContext("2d").putImageData(this.canvasContext.getImageData(ce,ne,ye-ce,yt-ne),0,0),this.drawingImgUrl=Yt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){De.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),De.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),se.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.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>',te}(We),he=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,ce||'<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=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return Ae(te,se),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ce=function(yt){var bt="both";switch(yt){case 0:bt="both";break;case 1:bt="start";break;case 2:bt="end";break;case 3:bt="none"}var wt=document.createElement("div");if(wt.style.display="flex",wt.style.flexGrow="2",wt.style.alignItems="center",wt.style.justifyContent="space-between",wt.style.padding="5px",wt.style.borderWidth="2px",wt.style.borderStyle="solid",wt.style.borderColor=bt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",wt.addEventListener("click",function(){ee.setCurrentType(bt,wt)}),oe.appendChild(wt),bt==="both"||bt==="start"){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.minHeight="20px",He.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>`,He.style.marginLeft="5px",wt.appendChild(He)}var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.style.flexGrow="2";var _t=document.createElement("hr");if(_t.style.minWidth="20px",_t.style.border="0px",_t.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),_t.style.flexGrow="2",Yt.appendChild(_t),wt.appendChild(Yt),bt==="both"||bt==="end"){var Wt=document.createElement("div");Wt.style.display="flex",Wt.style.alignItems="center",Wt.style.minHeight="20px",Wt.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>`,Wt.style.marginRight="5px",wt.appendChild(Wt)}ne.typeBoxes.push(wt)},ne=this,ye=0;ye<4;ye++)ce(ye);return oe},te.prototype.setCurrentType=function(ee,oe){var ce=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(At),le=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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 he("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var ce=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-ce/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+ce/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=De.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(De.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=De.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(De.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(se.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",De.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),De.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var ce=this.arrow2.transform.baseVal.getItem(0);ce.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ce,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){se.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(Gt),Pe=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||this;return ne.fillColor=ce.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new tt("Color",ce.defaultColorSet,ce.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Ae(te,se),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=se.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(Je),dt=function(se){function te(ee,oe,ce,ne){var ye=se.call(this,ee,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 ye.opacities=[],ye.opacityBoxes=[],ye.opacities=oe,ye.currentOpacity=ce,ye.setCurrentOpacity=ye.setCurrentOpacity.bind(ye),ye}return Ae(te,se),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ce){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=ce===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(ce,ne)}),oe.appendChild(ne);var ye=document.createElement("div");ye.innerText=100*ce+"%",ne.appendChild(ye),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ce=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(At),ot=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ce.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ce.defaultHighlightOpacity,ne.fillPanel=new tt("Color",ce.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new dt("Opacity",ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ae(te,se),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&De.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=se.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.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>',te}(Pe),be='<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>',Ne='<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>',Fe=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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=ce.defaultStrokeColor,ne.bgColor=ce.defaultFillColor,ne.fontFamily=ce.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 tt("Text color",ce.defaultColorSet,ne.color,be),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new tt("Fill color",ce.defaultColorSet,ne.bgColor,Ne),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new St("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new et,ne.tipGrip.visual.transform.baseVal.appendItem(De.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return se.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){De.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=De.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&se.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):se.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,se.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";se.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else se.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(De.setAttributes(this.bgRectangle,[["fill",ee]]),De.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),ce=this.height/5;ee&&(this.tipPosition={x:oe+ce/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))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ce,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ce}):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))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ce,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ce}):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))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ce,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ce},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ce})},te.prototype.resize=function(ee){se.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){De.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),se.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,se.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*oe},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.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>',te}(ht),Ct=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.fillColor=ce.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 tt("Line color",pe(ce.defaultColorSet,["transparent"]),ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new tt("Fill color",pe(ce.defaultColorSet,["transparent"]),ne.fillColor,Ne),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ce("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new dt("Opacity",ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=De.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)},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){se.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){se.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){se.prototype.setSize.call(this),De.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ee){se.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&De.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&De.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&De.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&De.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&De.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),se.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.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>',te}(We),it=function(se){function te(ee,oe,ce){return se.call(this,ee,oe,ce)||this}return Ae(te,se),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=De.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(De.createTransform()),this.visual.appendChild(this.tip1),this.tip2=De.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(De.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(se.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(De.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()]]),De.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 ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var ce=this.tip2.transform.baseVal.getItem(0);ce.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ce,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=se.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){se.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.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>',te}(Gt),Se=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||this;return ne.strokePanel.colors=ce.defaultColorSet,ne.fillColor="transparent",ne}return Ae(te,se),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=se.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.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>',te}(Ct),ve=function(){function se(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(se.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),se.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},se.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},se.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},se.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},se.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},se}(),Ee=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new tt("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ce("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=De.createGroup(),this.selectorCurve=De.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=De.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),De.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),De.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),De.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){se.prototype.setupControlBox.call(this),this.curveControlLine1=De.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=De.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,se.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){se.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),se.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),se.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,se.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},se.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){se.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<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>',te}(Xe),Ye=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,oe,ce)||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=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.fillColor=ce.defaultFillColor,ne.textColor=ce.defaultStrokeColor,ne.fontFamily=ce.defaultFontFamily,ne.fontSize=ce.defaultCaptionFontSize,ne.captionText=ce.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 tt("Line color",pe(ce.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new tt("Fill color",pe(ce.defaultColorSet,["transparent"]),ne.fillColor,Ne),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Dt("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ce("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new St("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new tt("Text color",ce.defaultColorSet,ne.textColor,be),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Ae(te,se),te.prototype.ownsTarget=function(ee){return!(!se.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=De.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=De.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=De.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=De.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){se.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){se.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){se.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),De.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')"]]),De.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&De.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&De.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){se.prototype.setSize.call(this),De.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){se.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){se.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&De.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&De.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&De.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&De.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},se.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),se.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){se.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.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>',te}(We),we=function(){function se(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(se.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),se.prototype.preventDefault=function(){this._defaultPrevented=!0},se}(),Ie=function(se){function te(ee,oe,ce){var ne=se.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=ce,ne}return Ae(te,se),te}(we),qe=function(se){function te(ee,oe,ce){ce===void 0&&(ce=!1);var ne=se.call(this,ee,ce)||this;return ne.marker=oe,ne}return Ae(te,se),te}(we),nt=function(){function se(){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 se.prototype.addEventListener=function(te,ee){this[te].push(ee)},se.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},se}(),ut=function(){function se(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Be,this._isOpen=!1,this.undoRedoManager=new ve,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 nt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=se.instanceCounter++,this.styles=new Oe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(se.prototype,"ALL_MARKER_TYPES",{get:function(){return[$e,at,le,ht,Se,Ct,ot,Fe,it,Pe,Gt,Ee,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$e,at,le,ht,Ct,ot,Fe]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$e,at,le,ht,ot]},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var ce=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});ce!==void 0&&ee._availableMarkerTypes.push(ce)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),se.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),xe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},se.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ke.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ke.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new we(te))})},se.prototype.render=function(){return je(this,void 0,void 0,function(){var te;return ge(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new mt).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},se.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(ce){var ne=new we(ee,!0);ce(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ce){return ce(new we(ee))}),this.detachEvents(),this._isOpen=!1)}},se.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},se.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},se.prototype.removeRenderEventListener=function(te){},se.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},se.prototype.removeCloseEventListener=function(te){},se.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},se.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},se.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},se.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,ce=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),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(oe,ce),this._isResizing=!1},se.prototype.scaleMarkers=function(te,ee){var oe,ce=this;this._currentMarker&&this._currentMarker instanceof ht?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==ce._currentMarker&&ne.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},se.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"},se.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},se.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)},se.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=De.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},se.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},se.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)},se.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},se.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},se.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)},se.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},se.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)},se.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 te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.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>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},se.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")},se.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"},se.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},se.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new vt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new ft(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},se.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},se.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},se.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())},se.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},se.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ce){var ne=new qe(te,te._currentMarker,!0);ce(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ce){return ce(new qe(te,oe))})}}},se.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ye){var yt=new qe(te,void 0,!0);ye(yt),yt.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(ye){var yt=ce.markers[ye];ce.setCurrentMarker(ce.markers[ye]),ce._currentMarker.dispose(),ce.markerImage.removeChild(ce._currentMarker.container),ce.markers.splice(ce.markers.indexOf(ce._currentMarker),1),ce.eventListeners.markerdelete.forEach(function(bt){return bt(new qe(te,yt))})},ce=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(se.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),se.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},se.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)},se.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},se.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new we(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new we(te))})}},se.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},se.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new we(te))}))},se.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},se.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new we(te))}))},se.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},se.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},se.prototype.startRenderAndClose=function(){return je(this,void 0,void 0,function(){var te,ee,oe=this;return ge(this,function(ce){switch(ce.label){case 0:return[4,this.render()];case 1:return te=ce.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new Ie(oe,te,ee))}),this.close(!0),[2]}})})},se.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},se.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var ce=ee._availableMarkerTypes.find(function(ye){return ye.typeName===oe.typeName});if(ce!==void 0){var ne=ee.addNewMarker(ce);ne.restoreState(oe),ee.markers.push(ne)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new we(ee))})},se.prototype.addNewMarker=function(te){var ee=De.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},se.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(ce){return ce.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),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(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ce){return ce(new qe(oe,oe._currentMarker))}))},se.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof at&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(at):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new qe(ee,ee._currentMarker))})},se.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},se.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},se.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new qe(ee,te))})},se.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new qe(ee,ee._currentMarker))})),this._currentMarker=te,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(oe){return oe(new qe(ee,ee._currentMarker))}))},se.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},se.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},se.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},se.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},se.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},se.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},se.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},se.prototype.onWindowResize=function(){this.positionUI()},se.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},se.prototype.addLicenseKey=function(te){xe.addKey(te)},se.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},se.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},se.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(se.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),se.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new we(te))}))},se.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new we(te))}))},se.instanceCounter=0,se}(),Ge=de(38147),xt=de(65862),kt=(se,te,ee)=>new Promise((oe,ce)=>{var ne=bt=>{try{yt(ee.next(bt))}catch(wt){ce(wt)}},ye=bt=>{try{yt(ee.throw(bt))}catch(wt){ce(wt)}},yt=bt=>bt.done?oe(bt.value):Promise.resolve(bt.value).then(ne,ye);yt((ee=ee.apply(se,te)).next())}),It=({data:se,className:te,fullWidth:ee,style:oe={},onClose:ce,onOk:ne,showFullTools:ye,noAssociationId:yt})=>{const bt=(0,re.useRef)(null),wt=(0,re.useRef)(null),He=(0,re.useRef)(null),Yt=(0,re.useRef)(null),[_t,Wt]=(0,re.useState)(!1),[ln,Pn]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>(He.current||(He.current=document.createElement("style"),document.head.appendChild(He.current)),se!=null&&se.visible?(document.body.setAttribute("data-custom","y-hidden"),He.current.innerHTML=" html { overflow-y: hidden; }",se!=null&&se.src&&pn()):(document.body.removeAttribute("data-custom"),He.current&&(document.head.removeChild(He.current),He.current=null)),()=>{document.body.removeAttribute("data-custom"),He.current&&(document.head.removeChild(He.current),He.current=null)}),[se==null?void 0:se.visible]);const pn=()=>kt(void 0,null,function*(){Wt(!0),Pn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ur=yield(0,xt.ZJ)(se==null?void 0:se.src);bt.current.src="",bt.current.src=ur,bt.current.onload=function(){jn()},Wt(!1),Pn("")}),Mn=ur=>kt(void 0,null,function*(){Wt(!0),Pn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const tr=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:se.title,file:ur.dataUrl}});tr!=null&&tr.id&&!yt?(yield(0,Ge.ZP)(`/api/attachments/${se.id}/add_subitem.json`,{method:"post",body:{subitem_id:tr==null?void 0:tr.id,settings:JSON.stringify(ur.state)}})).status===0&&ne():tr!=null&&tr.id&&ne(tr),Wt(!1),Pn("")}),er=()=>{const ur=document.querySelector('a[href="https://markerjs.com/"]');ur&&ur.parentNode&&(ur.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(or=>{const Gn=document.querySelector(or.name);Gn&&Gn.setAttribute("title",or.title)})},jn=()=>{wt.current=new ut(bt.current),wt.current.targetRoot=Yt.current,wt.current.addEventListener("render",Mn),wt.current.addEventListener("beforeclose",ce),ye&&(wt.current.availableMarkerTypes=wt.current.ALL_MARKER_TYPES,wt.current.uiStyleSettings.redoButtonVisible=!0,wt.current.uiStyleSettings.notesButtonVisible=!0,wt.current.uiStyleSettings.zoomButtonVisible=!0,wt.current.uiStyleSettings.zoomOutButtonVisible=!0,wt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=wt.current.uiStyleSettings,wt.current.show(),se!=null&&se.snapshotData&&wt.current.restoreState(se.snapshotData),setTimeout(()=>{window.scrollTo(0,0),er()},300)};return re.createElement(re.Fragment,null,(se==null?void 0:se.visible)&&re.createElement(me.Z,{spinning:_t,tip:ln,style:{position:"absolute",width:"100vw"}},re.createElement("div",{ref:Yt,className:ze()(gt.imageDimensions,te,ee?gt.fullWidth:""),style:oe},re.createElement("img",{className:gt.img,ref:bt}))))}},99298:function(Rt,Zt,de){"use strict";var re=de(59301),gt=de(77019),_e=de(5269),ze=de(20554),me=de(7939),Ue=de(95097),Ae=de(96408),je=de(48136),ge=de(59301);const pe=(0,re.forwardRef)(({callback:De,showSaveButton:xe,value:mt=""},Ke)=>{const Oe=(0,re.useRef)(),Ze=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Le=[{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}`}]}]}],vt=tt=>{Oe.current.setValue(Oe.current.getValue()+" "+tt.value+" ")},ft=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ge.createElement(gt.Z,{className:Ae.Z.lists,gutter:[10,10]},Ze.map((tt,Qe)=>ge.createElement(_e.Z,{flex:"110px",className:Ae.Z.item},ge.createElement("div",null,ge.createElement(Ue.Z,{value:`$$${tt.value}$$`}),tt.name),ge.createElement("div",{className:Ae.Z.children},tt.children.map((st,et)=>ge.createElement("div",{key:et},ge.createElement("h1",null,st.name),ge.createElement(gt.Z,{gutter:[10,10]},st.data.map((jt,We)=>ge.createElement(_e.Z,{key:We,onClick:()=>vt(jt),className:Ae.Z.diamond},ge.createElement(Ue.Z,{value:"`$$"+jt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ge.createElement(gt.Z,{className:Ae.Z.lists,gutter:[10,10]},Le.map((tt,Qe)=>ge.createElement(_e.Z,{flex:"110px",className:Ae.Z.item},ge.createElement("div",null,ge.createElement(Ue.Z,{value:"`$$"+tt.value+"$$`"}),tt.name),ge.createElement("div",{className:Ae.Z.children},tt.children.map((st,et)=>ge.createElement("div",{key:et},st.name&&ge.createElement("h1",null,st.name),ge.createElement(gt.Z,{gutter:[10,10]},st.data.map((jt,We)=>ge.createElement(_e.Z,{key:We,onClick:()=>vt(jt),className:Ae.Z.diamond},ge.createElement(Ue.Z,{value:"`$$"+jt.value+"$$`"}))))))))))}],At=()=>{var tt=document.createElement("div");tt.innerHTML=Oe.current.getValue();var Qe=tt.innerText;return De&&De(Qe),Qe};return(0,re.useImperativeHandle)(Ke,()=>({getData:At})),ge.createElement("div",{className:Ae.Z.mathWrap},ge.createElement(ze.default,{defaultActiveKey:"1",items:ft}),ge.createElement("math-field",{locale:"zh_cn",className:Ae.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Oe,style:{width:800,marginTop:30,fontSize:18}},mt||""),xe&&ge.createElement("div",{className:Ae.Z.button},ge.createElement(me.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=pe},2524:function(Rt,Zt,de){"use strict";var re=de(59301),gt=de(93314),_e=de(7939),ze=Object.defineProperty,me=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,pe=(Ke,Oe,Ze)=>Oe in Ke?ze(Ke,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ke[Oe]=Ze,De=(Ke,Oe)=>{for(var Ze in Oe||(Oe={}))je.call(Oe,Ze)&&pe(Ke,Ze,Oe[Ze]);if(Ae)for(var Ze of Ae(Oe))ge.call(Oe,Ze)&&pe(Ke,Ze,Oe[Ze]);return Ke},xe=(Ke,Oe)=>me(Ke,Ue(Oe));const mt=({img:Ke,buttonProps:Oe={},styles:Ze={},customText:Le,ButtonText:vt,ButtonClick:ft,Buttonclass:At,ButtonTwo:tt,imgStyles:Qe,loading:st=!1,className:et=""})=>re.createElement("section",{className:`tc animated fadeIn ${et}`,style:De({color:"#999",margin:"100px auto",visibility:st?"hidden":"visible"},Ze)},re.createElement("img",{src:Ke||gt,style:xe(De({},Qe),{pointerEvents:"none",userSelect:"none"})}),re.createElement("p",{className:"mt20 font14"},Le||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),vt&&re.createElement(_e.ZP,De({className:At,onClick:ft},Oe),vt),tt&&tt);Zt.Z=mt},52918:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return At}});var re=de(59301),gt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},_e=de(7939),ze=de(70557),me=de(50258),Ue=de(25399),Ae=de(65862),je=de(87513),ge=de(2524),pe=de(74128),De=de(7310),xe=de(59301),mt=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Le=(tt,Qe,st)=>Qe in tt?mt(tt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):tt[Qe]=st,vt=(tt,Qe)=>{for(var st in Qe||(Qe={}))Oe.call(Qe,st)&&Le(tt,st,Qe[st]);if(Ke)for(var st of Ke(Qe))Ze.call(Qe,st)&&Le(tt,st,Qe[st]);return tt},ft=(tt,Qe,st)=>new Promise((et,jt)=>{var We=Ce=>{try{Dt(st.next(Ce))}catch($e){jt($e)}},Je=Ce=>{try{Dt(st.throw(Ce))}catch($e){jt($e)}},Dt=Ce=>Ce.done?et(Ce.value):Promise.resolve(Ce.value).then(We,Je);Dt((st=st.apply(tt,Qe)).next())}),At=({editOffice:tt="view",data:Qe,issaver:st,onSaver:et,theme:jt,type:We,filename:Je,monacoEditor:Dt,className:Ce,style:$e,close:Be,onClose:Xe,hasMask:Gt,disabledDownload:St,onImgDimensions:ht,showNodata:at,recordInfo:he})=>{const[le,Pe]=(0,re.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[dt,ot]=(0,re.useState)(""),[be,Ne]=(0,re.useState)(),Fe=window.ENV==="build"?"/react/build":"",Ct=location.host.startsWith("localhost")?pe.Z.PROXY_SERVER:pe.Z.API_SERVER,Se=10*(1024*1024),ve=(0,re.useRef)();Qe!=null&&Qe.startsWith("/api")&&We!=="txt"&&(Qe=pe.Z.API_SERVER+Qe);const Ee=nt=>nt.substring(nt.lastIndexOf("/")+1).split(".").pop();Je&&Dt&&(Dt.filename=Je),(0,re.useEffect)(()=>{var nt,ut;const Ge=(ut=(nt=document.cookie)==null?void 0:nt.replace(/\s/g,""))==null?void 0:ut.split(";");Ge==null||Ge.map(xt=>{let kt=xt.split("=");kt[0]==="_educoder_session"&&ot(kt[1])})},[]),(0,re.useEffect)(()=>{We==="office"&&(Qe.indexOf("bigfilescdn.")>-1||Qe.indexOf("bigfiles1")>-1?Ne({url:Qe,fileType:Ee(Qe),model:Qe.indexOf("model=edit")?"edit":"view"}):we())},[We,Qe]);function Ye(nt){return ft(this,null,function*(){nt.data.type==="pdfdata"&&(et(nt.data.data),window.removeEventListener("message",Ye,!1)),console.log("mess---:",nt.data)})}const we=()=>ft(void 0,null,function*(){console.log("data:",Qe);let nt=Qe;Qe.startsWith("http")||(nt=location.origin+nt);let ut=new URL(nt).pathname.split("/").pop();const Ge=yield(0,je.gJ)({attachment_id:ut});Ge.url=Ct+Ge.url,Ne(Ge)}),Ie=()=>{if(Qe.startsWith("http")||Qe.startsWith("blob:")){qe();return}(0,Ae.Sv)(Je||"educoder",Qe,Je)},qe=()=>{he&&(0,De.fc)({id:he==null?void 0:he.id,watch_type:1,course_id:he==null?void 0:he.course_id}),(0,Ae.Nd)(Je||"educoder",decodeURIComponent(Qe))};return xe.createElement("div",{style:vt({},$e||{}),className:`${Gt&&gt.bgBlack} ${We?gt.wrp:"hide"}`},Be&&xe.createElement("div",{className:gt.close,ref:ve},!!ht&&xe.createElement(Ue.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ve.current},xe.createElement("span",{onClick:()=>{Xe(),ht()}},xe.createElement("i",{className:"icon-yulanpizhu"}))),!St&&xe.createElement(Ue.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ve.current},xe.createElement("span",{onClick:qe},xe.createElement("i",{className:"icon-quxiaozhiding"}))),st&&xe.createElement(Ue.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ve.current},xe.createElement("span",{className:"",onClick:()=>{const nt=document.getElementById("pdfiframe");window.addEventListener("message",Ye,!1),setTimeout(()=>{nt.contentWindow.postMessage("getData","*")},300)}},xe.createElement("i",{className:"icon-baocun"}))),xe.createElement(Ue.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ve.current},xe.createElement("span",{className:"",onClick:()=>{Xe()}},xe.createElement("i",{className:"icon-guanbi1"})))),xe.createElement("div",{className:`${gt[Ce]} ${Ce} ${gt.monaco} ${We==="txt"?"show":"hide"}`},We==="txt"&&xe.createElement(xe.Fragment,null,xe.createElement(me.ZP,vt({},Dt)))),We==="audio"&&xe.createElement("audio",{src:`${(Qe==null?void 0:Qe.indexOf("http://"))>-1||(Qe==null?void 0:Qe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Qe}`,autoPlay:!0}),We==="video"&&xe.createElement(xe.Fragment,null,(Qe==null?void 0:Qe.indexOf("http"))>-1?xe.createElement("video",{controls:!0,src:`${Qe}`,autoPlay:!0}):xe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Qe}`,autoPlay:!0})),We==="office"&&be&&xe.createElement("iframe",{src:`${Fe}/office.html?key=${be.key}&url=${btoa(be.url)}&callbackUrl=${Ct+(be.callbackUrl||"")}&fileType=${be.fileType}&title=${be.title||""}&model=${tt}&officeServer=${pe.Z.ONLYOFFICE}&disabledDownload=${!!St}`}),We==="html"&&xe.createElement("iframe",{src:Qe+"&disposition=inline"}),We==="pdf"&&xe.createElement("iframe",{id:"pdfiframe",src:`${Fe}/js/pdf/index.html?filename=${Je||"educoder.pdf"}&url=${encodeURIComponent(Qe)}&disabledDownload=${!!St}&model=${tt}`}),We==="image"&&xe.createElement("img",{src:`${(Qe==null?void 0:Qe.indexOf("http://"))>-1||(Qe==null?void 0:Qe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Qe}`}),(We==="other"||We==="download")&&xe.createElement(xe.Fragment,null,at?xe.createElement(ge.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xe.createElement(_e.ZP,{icon:xe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ie,disabled:St},"\u4E0B\u8F7D")}):xe.createElement(_e.ZP,{type:"primary",size:"middle",onClick:Ie,disabled:St},xe.createElement(ze.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),We==="flowChart"&&xe.createElement("div",{className:"embed"},xe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Qe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(Rt,Zt,de){"use strict";de.d(Zt,{z:function(){return Dt},Z:function(){return Ce}});var re=de(59301),gt=de(48850),_e=de(49142),ze=de(64018),me=de(80360),Ue=de(74128),Ae=de(65862),je=de(15342),ge=de(44104),pe=de(7939),De=de(1012),xe=de(52918),mt=de(59301),Oe=({html:$e})=>{const Be=(0,re.useRef)(null),Xe=(0,re.useRef)(null),Gt=`.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 St=Be.current.attachShadow({mode:"open"});Xe.current=document.createElement("div"),Xe.current.className="markdown-body",Xe.current.innerHTML=$e,St.appendChild(Xe.current);const ht=document.createElement("style");return ht.textContent=Gt,St.appendChild(ht),()=>{St.innerHTML=""}},[]),(0,re.useEffect)(()=>{Xe.current&&(Xe.current.innerHTML=$e)},[$e]),mt.createElement("div",{ref:Be})};function Ze($e){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"],Xe=new RegExp(`\\b(${Be.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return $e.replace(Xe,"").trim()}var Le={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},vt=Object.defineProperty,ft=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Qe=($e,Be,Xe)=>Be in $e?vt($e,Be,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):$e[Be]=Xe,st=($e,Be)=>{for(var Xe in Be||(Be={}))At.call(Be,Xe)&&Qe($e,Xe,Be[Xe]);if(ft)for(var Xe of ft(Be))tt.call(Be,Xe)&&Qe($e,Xe,Be[Xe]);return $e};const et="@\u2581\u2581@",jt="@\u2581@",We=/<pre[^>]*>/g;function Je($e){let Be=document.createElement("div");return Be.innerHTML=$e,Be.childNodes.length===0?"":Be.childNodes[0].nodeValue}const Dt=($e,Be)=>{$e=$e||"";const Xe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,St=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ht=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Be?$e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Xe,(at,he,le,Pe,dt,ot,be)=>{const Ne=he||Pe||ot,Fe=le||dt||be||"?";return Ue.Z.API_SERVER+"/api/attachments/"+Ne+Fe+"&t="+(0,Ae.Jn)(Ne,Date.now())+(at.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):($e=$e.replace(ht,(at,he,le,Pe,dt,ot,be)=>{const Ne=he||Pe||ot,Fe=le||dt||be||"?";return Ue.Z.API_SERVER+"/attachments/download/"+Ne+Fe+"&t="+(0,Ae.Jn)(Ne,Date.now())+(at.indexOf(")")>-1?")":"&")}).replace(Xe,(at,he,le,Pe,dt,ot,be)=>{const Ne=he||Pe||ot,Fe=le||dt||be||"?";return Ue.Z.API_SERVER+"/api/attachments/"+Ne+Fe+"&t="+(0,Ae.Jn)(Ne,Date.now())+(at.indexOf(")")>-1?")":"&")}).replace(Gt,(at,he,le,Pe,dt)=>{const ot=he||Pe,be=le||dt||"";return'"'+Ue.Z.API_SERVER+"/api/attachments/"+ot+be+ot+be+"&t="+(0,Ae.Jn)(ot,Date.now())}).replace(St,(at,he,le,Pe,dt)=>{const ot=he||Pe,be=le||dt||"";return"("+Ue.Z.API_SERVER+"/files/uploads/"+ot+be+ot+be+"&t="+(0,Ae.Jn)(ot,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),$e)};var Ce=({value:$e="",edit:Be=!1,className:Xe,showTextOnly:Gt,showLines:St,style:ht={},stylesPrev:at={},highlightKeywords:he,showProgramFill:le,isProgramFill:Pe,disabledFill:dt=!1,programFillValue:ot,openEditor:be=()=>{},onFillChange:Ne=it=>{},onFillBlur:Fe=()=>{},onFillFocus:Ct=()=>{}})=>{let it=Ze(String($e||""));const Se=(0,re.useRef)(),ve=(0,re.useRef)(),[Ee,Ye]=(0,re.useState)(""),[we,Ie]=(0,re.useState)("office"),[qe,nt]=(0,re.useState)([]),ut=(0,re.useRef)("a"+(0,De.Z)()),Ge={},xt=He=>/<style[\s\S]*?>/i.test(He||""),kt=(He,Yt,_t)=>{const Wt=document.createElement(He===jt?"input":"textarea");Wt.style.width="100%",Wt.style.height=He===jt?"40px":"151px",Wt.rows=5,Wt.spellcheck=!1,Wt.name="edu-program-fill",Wt.placeholder="\u8BF7\u8F93\u5165",Wt.dataset.id=Yt;const ln=Object.keys(Ge).length;return Ge[ln]=Wt,`<span class="edu-program-fill-wrap ${He===jt?"":"show"}" style="width:${He===jt?"600px":"100%"}" title=${_t||""}><span>${Wt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Qt(He){return He=He.replace(/!\[.*?\]\(.*?\)/g,""),He=He.replace(/\[.*?\]\(.*?\)/g,""),He=He.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),He=He.replace(/<embed.*?>/g,""),He=He.replace(/<img.*?>/g,""),He=He.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),He=He.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),He=He.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),He=He.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),He}const It=He=>!Gt&&xt(it)?He:He.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Yt,_t){let Wt=_t.replace(/(\n|\r)/g,"").split("}"),ln=[];return Wt.map(Pn=>{Pn!=""&&ln.push(`.${ut.current} ${Pn}`)}),`<style>${ln.join("}")}</style>`}),se=(0,re.useMemo)(()=>{try{const Wt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ln=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Pn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,pn=/\(\/attachments\/download\//g;it=it.replace(pn,"("+Ue.Z.API_SERVER+"/attachments/download/").replace(Wt,"("+Ue.Z.API_SERVER+"/api/attachments/").replace(ln,'"'+Ue.Z.API_SERVER+"/api/attachments/").replace(Pn,'"'+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,`
`),Se.current.style.display="none"}catch(Wt){}if(le){let Wt=-1;return it=it.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(ln,Pn,pn){var Mn;return++Wt,kt(ln,Wt,(Mn=ot==null?void 0:ot[Wt])==null?void 0:Mn.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${It(it||"")}</pre>`}let He=It(it);He=(0,_e.ZP)(He);const Yt=(0,_e.ez)();it.match(/\[TOC\]/)&&(He=He.replace("<p>[TOC]</p>",(0,_e.Qv)()),(0,_e.Iy)()),He=He.replace(/(__special_katext_id_\d+__)/g,(Wt,ln)=>{const{type:Pn,expression:pn}=Yt[ln];return(0,je.renderToString)(Je(pn)||"",{displayMode:Pn==="block",throwOnError:!1,output:"html"})}),He=He.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,_e.AL)();const _t=document.createElement("div");if(_t.innerHTML=He,Gt)return _t.innerText;if(he){const Wt=he.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ce(_t,Wt),_t.innerHTML}return setTimeout(()=>yt(),500),_t.innerHTML},[it,he]);(0,re.useEffect)(()=>{ne.current&&ne.current.querySelectorAll(["input","textarea"]).forEach(Yt=>{Yt.oninput=te,Yt.onblur=ee,Yt.onfocus=oe})},[qe]),(0,re.useEffect)(()=>{var He,Yt,_t,Wt,ln;if(ot!=null&&ot.length)try{const Pn=ne.current.querySelectorAll(".edu-program-fill-score"),pn=ne.current.querySelectorAll('[name="edu-program-fill"]');for(const[Mn,er]of pn.entries())er.value=((He=ot==null?void 0:ot[Mn])==null?void 0:He.value)||"",((Yt=ot==null?void 0:ot[Mn])==null?void 0:Yt.type)==="warning"?er.className="program-fill-warning":((_t=ot==null?void 0:ot[Mn])==null?void 0:_t.type)==="success"?er.className="program-fill-success":er.className="";for(const[Mn,er]of Pn.entries())er.innerHTML=(Wt=ot==null?void 0:ot[Mn])!=null&&Wt.score?`${(ln=ot==null?void 0:ot[Mn])==null?void 0:ln.score}\u5206`:"";nt(ot)}catch(Pn){console.log(Pn,"error")}},[ot]);const te=He=>{qe[He.target.dataset.id]=qe[He.target.dataset.id]||{},qe[He.target.dataset.id].value=He.target.value,nt([...qe]),Ne(qe,He.target.dataset.id)},ee=He=>{qe[He.target.dataset.id]=qe[He.target.dataset.id]||{},qe[He.target.dataset.id].value=He.target.value,nt([...qe]),Fe(qe,He.target.dataset.id)},oe=He=>{qe[He.target.dataset.id]=qe[He.target.dataset.id]||{},qe[He.target.dataset.id].value=He.target.value,nt([...qe]),Ct(qe,He.target.dataset.id)};function ce(He,Yt){return He.childNodes.forEach(_t=>{var Wt;if(_t.childNodes.length>0)ce(_t,Yt);else if(_t.nodeName!=="IMG")if(_t.innerHTML)_t.innerHTML=(Wt=_t.innerHTML)==null?void 0:Wt.replace(new RegExp(Yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ln=document.createElement("span");ln.innerHTML=_t.textContent.replace(new RegExp(Yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),_t.replaceWith(ln)}})}const ne=(0,re.useRef)();_e.jb.WebkitLineClamp=St,St&&(ht=st(st({},ht),_e.jb));function ye(He){let Yt=He.target;if(Yt.tagName.toUpperCase()==="A"){let _t=Yt.getAttribute("href");if(_t.indexOf("office")>-1)He.preventDefault(),Ye(_t),Ie("office");else if(_t.indexOf("application/pdf")>-1)He.preventDefault(),Ye(_t),Ie("pdf");else if(_t.indexOf("text/html")>-1)He.preventDefault(),Ye(_t),Ie("html");else if(_t.startsWith("#")){He.preventDefault();let Wt=document.getElementById(_t.replace("#",""));Wt&&Wt.scrollIntoView(!0)}}}const yt=()=>{var He;const Yt=(He=ne.current)==null?void 0:He.querySelectorAll("video");Yt==null||Yt.forEach(_t=>{if(_t.oncontextmenu=()=>!1,_t.src.indexOf(".m3u8")>-1&&!_t.canPlayType("application/vnd.apple.mpegurl")){if(me.ZP.isSupported()){var Wt=new me.ZP;Wt.loadSource(_t.src),Wt.attachMedia(_t)}}})};(0,re.useEffect)(()=>{if(ne.current&&se&&se.match(We)&&window.PR.prettyPrint(),ne.current)return ne.current.addEventListener("click",ye),()=>{var He;(He=ne.current)==null||He.removeEventListener("click",ye),(0,_e.AL)(),(0,_e.Iy)()}},[se,ne.current,ye]);const bt=He=>{He.target.nodeName==="IMG"&&He.target.className.indexOf("draw-flowchart")>-1?(Se.current.style.zIndex=1,Se.current.style.display="flex",Se.current.style.width=He.target.clientWidth+"px",Se.current.style.height=He.target.clientHeight+"px",Se.current.style.top=He.target.offsetTop+"px",Se.current.style.left=He.target.offsetLeft+"px",He.target.id&&(ve.current=He.target.id)):Se.current.style.display="none"},wt=()=>{Se.current.style.display="none"};return(0,re.useEffect)(()=>{var He;const Yt=_t=>{_t.preventDefault(),_t.clipboardData.setData("text",window.getSelection().toString())};return(He=ne.current)==null||He.addEventListener("copy",Yt),()=>{var _t;(_t=ne.current)==null||_t.removeEventListener("copy",Yt)}},[ne.current]),re.createElement("div",{style:{position:"relative"},onMouseLeave:wt},Gt&&re.createElement("div",{ref:ne,className:`${Le.mdBody} `},se),!Gt&&!xt(se)&&re.createElement("div",{ref:ne,style:st({},ht),onMouseOver:bt,className:`${Xe||""} ${dt?"disabled-fill":""} markdown-body ${Le.mdBody} ${ut.current}`,dangerouslySetInnerHTML:{__html:se}}),!Gt&&xt(se)&&re.createElement(Oe,{html:se}),re.createElement("div",{ref:Se,className:`${Le.button} ${Be?"":Le.previewFlowChart}`},re.createElement(ge.Z,null,re.createElement(pe.ZP,{onClick:()=>{Be?be(ve.current):(Ye(ve.current),Ie("flowChart"))}},Be?"\u7F16\u8F91":"\u9884\u89C8"))),re.createElement(xe.Z,{close:!0,data:Ee,type:Ee!=null&&Ee.length?we:"",style:st({},at),onClose:()=>Ye("")}))}},60537:function(Rt,Zt,de){"use strict";de.d(Zt,{h:function(){return tt},Z:function(){return At}});var re=de(59301),gt=de(82326),_e=de(28284),ze=de(7939),me=de(89780),Ue=de.n(me),Ae=de(45559),je=Object.defineProperty,ge=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Ke=(Qe,st,et)=>st in Qe?je(Qe,st,{enumerable:!0,configurable:!0,writable:!0,value:et}):Qe[st]=et,Oe=(Qe,st)=>{for(var et in st||(st={}))xe.call(st,et)&&Ke(Qe,et,st[et]);if(De)for(var et of De(st))mt.call(st,et)&&Ke(Qe,et,st[et]);return Qe},Ze=(Qe,st)=>ge(Qe,pe(st));const Le=gt.default.Option,vt={labelCol:{span:4},wrapperCol:{span:20}},ft={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"]};var At=({callback:Qe,onCancel:st})=>{const[et,jt]=(0,re.useState)("python");function We(Dt){jt(ft[Dt][1])}function Je(Dt){Qe(Dt)}return re.createElement(_e.default,Ze(Oe({},vt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Je,style:{width:500}}),re.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(gt.default,{getPopupContainer:Dt=>Dt.parentNode,onChange:We},Object.keys(ft).map(Dt=>re.createElement(Le,{key:Dt,value:Dt},ft[Dt][0])))),re.createElement(_e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(tt,{mode:et})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(ze.ZP,{type:"ghost",onClick:st},"\u53D6\u6D88")))};function tt({value:Qe,onChange:st,mode:et,options:jt={}}){const We=(0,re.useRef)(),[Je,Dt]=(0,re.useState)();return(0,re.useEffect)(()=>{if(Je){let Ce=function($e){const Be=$e.getValue();st&&st(Be)};return Je.on("change",Ce),()=>{Je.off("change",Ce)}}},[Je,st]),(0,re.useEffect)(()=>{Je&&Je.setOption("mode",et)},[Je,et]),(0,re.useEffect)(()=>{Je&&(Qe!==Je.getValue()||Qe==="")&&setTimeout(()=>{Je.setValue(Qe||"")},300)},[Je,Qe]),(0,re.useEffect)(()=>{if(We.current&&!Je){const Ce=Ue().fromTextArea(We.current,Oe({mode:et,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},jt));Dt(Ce)}},[We.current,Je]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:We}))}},25374:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return Vt}});var re=de(59301),gt=de(65582),_e=de(89780),ze=de.n(_e),me=de(76374),Ue=de(45559),Ae=de(6313),je=de(25717),ge=de(99498),pe=de(25419),De=de(67549),xe=de(95097),mt=({value:pt="",className:Bt,showTextOnly:en,showLines:vn,style:on={}})=>{const Ln=(0,re.useMemo)(()=>"",[pt]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:Ln}}))},Ke=Object.defineProperty,Oe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,At=(pt,Bt,en)=>Bt in pt?Ke(pt,Bt,{enumerable:!0,configurable:!0,writable:!0,value:en}):pt[Bt]=en,tt=(pt,Bt)=>{for(var en in Bt||(Bt={}))vt.call(Bt,en)&&At(pt,en,Bt[en]);if(Le)for(var en of Le(Bt))ft.call(Bt,en)&&At(pt,en,Bt[en]);return pt},Qe=(pt,Bt)=>Oe(pt,Ze(Bt));let st=[{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 et({onActionCallback:pt,title:Bt,icon:en,actionName:vn,className:on="",children:Ln}){function Rn(){pt(vn)}return re.createElement("a",{title:Bt,className:on,onClick:Rn},re.createElement("i",{className:`${en}`}),Ln)}var jt=({watch:pt,showNullButton:Bt,showNullProgramButton:en,onActionCallback:vn,fullScreen:on,insertTemp:Ln,hidetoolBar:Rn,extraUse:Nn})=>{const Cn=[...st,{title:`${pt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!Rn&&Cn.map((Un,Ot)=>re.createElement("li",{key:Ot},Un.actionName?re.createElement(et,Qe(tt({},Un),{onActionCallback:vn})):re.createElement("span",{className:"v-line"}))),Bt?re.createElement("li",null,re.createElement(et,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:vn},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,en?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(et,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:vn},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(et,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:vn},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ln&&re.createElement("li",null,re.createElement(et,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ln}`,onActionCallback:vn},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&re.createElement("li",null,Nn),re.createElement("li",{className:"btn-full-screen"},re.createElement(et,{icon:`${on?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:on?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:vn})))},We=de(57261),Je=de(28284),Dt=de(37568),Ce=de(7939),$e=Object.defineProperty,Be=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,at=(pt,Bt,en)=>Bt in pt?$e(pt,Bt,{enumerable:!0,configurable:!0,writable:!0,value:en}):pt[Bt]=en,he=(pt,Bt)=>{for(var en in Bt||(Bt={}))St.call(Bt,en)&&at(pt,en,Bt[en]);if(Gt)for(var en of Gt(Bt))ht.call(Bt,en)&&at(pt,en,Bt[en]);return pt},le=(pt,Bt)=>Be(pt,Xe(Bt));const Pe={labelCol:{span:4},wrapperCol:{span:20}};var dt=({callback:pt,onCancel:Bt})=>{function en(vn){pt(vn)}return re.createElement(Je.default,le(he({},Pe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:en,style:{width:500}}),re.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(Dt.default,null)),re.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(Dt.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Ce.ZP,{type:"ghost",onClick:Bt},"\u53D6\u6D88")))},ot=de(60537),be=de(45053),Ne=de(62957),Fe=de(77019),Ct=de(53464),it=de(59301),Se=({callback:pt,onCancel:Bt})=>{const en=document.createElement("canvas"),vn=en.getContext("2d");en.width=1e3,en.height=800,vn.fillStyle="#ffffff",vn.fillRect(0,0,en.width,en.height);const on=en.toDataURL("image/png");return it.createElement(Ne.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},it.createElement(Fe.Z,{style:{height:"100vh"}},it.createElement(Ct.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:on,visible:!0,title:String(Date.now())},onOk:Ln=>{pt({src:Ln.url})},onClose:Bt})))},ve=de(30641),Ee=de(5269),Ye=de(6767),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Ie=de(59301),nt=(0,re.forwardRef)(({onCancel:pt,editImgId:Bt,callback:en},vn)=>{let on=(0,re.useRef)(),Ln=(0,re.useRef)(),Rn=(0,re.useRef)(),Nn=(0,re.useRef)(!1);const Cn=(0,re.useRef)(!1);console.log("ref:",vn);const[Un,Ot]=(0,re.useState)(0),[ct,Nt]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{Ot(1)},[]),(0,re.useImperativeHandle)(vn,()=>({setHeight:Nt})),Ie.createElement("div",{ref:Cn,className:"body-overflow-initial"},Ie.createElement(ve.Z,{width:"100vw",height:ct,footer:null,closable:!0,placement:"bottom",open:!!Un,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${we.drawerWrap}`,onClose:()=>{window.saveDrawData(gn=>{en({src:`/api/attachments/${gn}`,id:gn})})},title:Ie.createElement(Fe.Z,{align:"middle"},Ie.createElement(Ee.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ie.createElement(Ee.Z,{onClick:()=>{Nt(ct==="60px"?"100vh":"60px")}},Ie.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Ie.createElement(Ee.Z,{onClick:()=>{window.saveDrawData(gn=>{if(gn===null){Ye.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ye.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),en({src:`/api/attachments/${gn}`,id:gn,disabledClose:!0})})}},Ie.createElement(Ce.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Ie.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Bt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ln})))}),ut=de(74128),Ge=de(47889),xt=de(71051);const kt=Ge.ZP.Group,Qt={margin:"0 8px"};var It=({callback:pt,onCancel:Bt})=>{function en(vn){pt(vn)}return re.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:en},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Qt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Qt},"\u884C\u6570"),re.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(xt.Z,null)),re.createElement("span",{style:Qt},"\u5217\u6570"),re.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(xt.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Qt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(Je.default.Item,{name:"align"},re.createElement(kt,null,re.createElement(Ge.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(Ge.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(Ge.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(Ge.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Ce.ZP,{type:"ghost",onClick:Bt},"\u53D6\u6D88")))},se=de(71411),te=de(93510),ee=de.n(te),ce=(0,re.forwardRef)(({use3d:pt,width:Bt,height:en,callback:vn,showSaveButton:on},Ln)=>{const Rn=(0,re.useRef)(),Nn=(0,re.useRef)(),[Cn,Un]=(0,re.useState)(!1),Ot=(0,re.useRef)({id:Rn,appName:"graphing",width:Bt||1e3,height:en||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)(()=>{Nn.current=new(ee())(Ot.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const ct=()=>{var Nt=window.ggbApplet.getPNGBase64(1,!0,72);return vn&&vn(Nt),Nt};return(0,re.useEffect)(()=>{Ot.current.appName=Cn?"3D":"graphing",Nn.current.inject("applet_container")},[Cn]),(0,re.useEffect)(()=>{Un(pt)},[pt]),(0,re.useImperativeHandle)(Ln,()=>({getImgData:ct})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Rn}),re.createElement(Fe.Z,{align:"middle"},re.createElement(Ee.Z,{flex:1},re.createElement(se.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:Nt=>Un(Nt)})),re.createElement(Ee.Z,null,re.createElement(Ce.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ne=de(99298);const ye="link",yt="upload-image",bt="add-flowchart",wt="draw-image",He="add-flowchart",Yt="code-block",_t="add-table",Wt="------------",ln={default:Wt,left:`:${Wt}`,center:`:${Wt}:`,right:`${Wt}:`};var Pn=de(31103),pn=de(65862);function Mn(){}let er=0;const jn=1e4,ur="\u2581",tr="@\u2581\u2581@",or="@\u2581@",Gn=`
**\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`,yn=["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 Vn(pt){return/^\d+$/.test(pt)?`${pt}px`:pt}const Tn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Qn={[Tn+"-B"]:"bold",[Tn+"-I"]:"italic"},Ft={[ye]:"\u6DFB\u52A0\u94FE\u63A5",[Yt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yt]:"\u6DFB\u52A0\u56FE\u7247",[wt]:"\u6DFB\u52A0\u753B\u56FE",[bt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Vt=({defaultValue:pt="",onChange:Bt,width:en="100%",height:vn=400,miniToolbar:on=!1,isFocus:Ln=!1,watch:Rn,insertTemp:Nn,mode:Cn="markdown",id:Un="markdown-editor-id",showResizeBar:Ot=!1,noStorage:ct=!1,showNullButton:Nt=!1,showNullProgramButton:gn=!1,hidetoolBar:Bn=!1,fullScreen:Te=!1,onBlur:Re,onCMBeforeChange:Ht,onFullScreen:Lt,className:Ve="",disablePaste:Mt=!1,disabled:tn=!1,disabledFill:sn=!1,placeholder:bn="",values:Xt="",extraUse:rn,onAddBlank:Pt})=>{const[Et,an]=(0,re.useState)(null),[Sn,kn]=(0,re.useState)(pt),[Fn,Jn]=(0,re.useState)(Rn),[ar,wn]=(0,re.useState)(Te),[Jt,En]=(0,re.useState)(""),[un,qn]=(0,re.useState)(0),[wr,sr]=(0,re.useState)(vn),[Dr,Lr]=(0,re.useState)(!1),[Cr,cr]=(0,re.useState)(0),[Fr,yr]=(0,re.useState)(0),dr=(0,re.useRef)(),Er=(0,re.useRef)(),Mr=(0,re.useRef)(),mr=(0,re.useRef)(),lr=(0,re.useRef)(),nr=(0,re.useRef)(),Pr=(0,gt.useDispatch)();(0,re.useEffect)(()=>{const qt=window.scrollY||window.pageYOffset;kn(Xt),Et==null||Et.setValue(Xt),window.scrollTo(0,qt)},[Xt]),(0,re.useEffect)(()=>{Lt==null||Lt(ar)},[ar]),(0,re.useEffect)(()=>{if(dr.current){let qt=function(cn,mn){var Hn;if(Mt){mn.preventDefault();return}const hr=mn.clipboardData;if(hr){const rr=hr.types.toString(),br=hr.items;if(rr==="Files"||hr.types.indexOf("Files")>-1){if(mn.preventDefault(),Cn=="stex")return;try{let xr=br[1];((Hn=br[0])==null?void 0:Hn.kind)==="file"&&(xr=br[0]);const Sr=xr.getAsFile(),Wr=Sr.name.split(".").pop();(0,be.I)(Sr,Br=>{var Or,ei,Di;Br.id?((Or=Sr==null?void 0:Sr.type)==null?void 0:Or.indexOf("image"))>-1?Ut.replaceSelection(`<img width="100%" src="/api/attachments/${Br.id}?type=${Br.content_type})" alt="" />`):((ei=Sr==null?void 0:Sr.type)==null?void 0:ei.indexOf("video"))>-1?Ut.replaceSelection(`<video width="100%" controls src="/api/attachments/${Br.id}"></video>`):((Di=Sr==null?void 0:Sr.type)==null?void 0:Di.indexOf("pdf"))>-1?Ut.replaceSelection(`<a href="/api/attachments/${Br.id}?type=${Sr.type}&disposition=inline" target="_blank">${Sr.name}</a>`):yn.includes(Wr)?Ut.replaceSelection(`<a href="/api/attachments/${Br.id}?type=office&disposition=inline" target="_blank">${Sr.name}</a>`):Ut.replaceSelection(`[${Sr.name}](/api/attachments/${Br.id}?type=${Br.content_type})`):(Br==null?void 0:Br.status)===401&&(document.location.href="/user/login")})}catch(xr){Ye.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ut=ze().fromTextArea(dr.current,{mode:Cn,lineNumbers:!on,lineWrapping:!0,value:pt,autoCloseTags:!0,autoCloseBrackets:!0});return Ut.on("keyup",function(cn,mn){mn.keyCode===8&&(cn.getValue()==""?Ut.setOption("placeholder",bn):Ut.setOption("placeholder",null))}),Ut.on("keydown",function(cn,mn){if(mn.keyCode===8){var Hn=Jr(cn);Hn&&mn.preventDefault()}}),Ln&&Ut.focus(),Ut.on("paste",qt),tn&&Ut.on("beforeChange",function(cn,mn){(mn.origin==="paste"||mn.origin==="+input")&&mn.cancel()}),an(Ut),()=>{Ut.off("paste",qt)}}},[]);const Vr=(0,re.useCallback)(()=>{if(Er.current)try{}catch(qt){console.log(qt,"---- to set md editor body height")}},[wr,Er,ar]);(0,re.useEffect)(()=>{function qt(){let Ut=new me.Z(cn=>{for(let mn of cn)(mn.target.offsetHeight>0||mn.target.offsetWidth>0)&&(Vr(),Et.setSize("100%","100%"),Et.refresh())});return Ut.observe(dr.current.parentElement),Ut}if(Et){const Ut=qt();return()=>{var cn,mn;(cn=dr.current)!=null&&cn.parentElement&&Ut.unobserve((mn=dr.current)==null?void 0:mn.parentElement)}}},[Et,Vr]),(0,re.useEffect)(()=>{if(Et){let qt=[];for(const[Ut,cn]of Object.entries(Qn)){let mn={[Ut]:()=>{Ar(cn)}};qt.push(mn),Et.addKeyMap(mn)}return()=>{for(let Ut of qt)Et.removeKeyMap(Ut)}}},[Et]),(0,re.useEffect)(()=>{Te!==ar&&wn(Te)},[Te]),(0,Pn.Z)(()=>{if(!ct&&un>0){let qt=new Date().getTime(),Ut=window.sessionStorage.getItem(Un);qt>=un+jn&&(!Ut||Ut!==Sn)&&(window.sessionStorage.setItem(Un,Sn),Lr(!0))}},jn),(0,re.useEffect)(()=>{Jn(Rn)},[Et,Rn]),(0,re.useEffect)(()=>{Et&&Ln&&Et.focus()},[Et,Ln]),(0,re.useEffect)(()=>{if(Fn&&Et){let qt=function(cn){let mn=cn.target;if(mr.current){let Hn=mn.scrollTop/mn.scrollHeight;mr.current.scrollTop=mr.current.scrollHeight*Hn}};const Ut=Et.getScrollerElement();return Ut.addEventListener("scroll",qt),()=>{Ut.removeEventListener("scroll",qt)}}},[Et,Fn]),(0,re.useEffect)(()=>{if(Et&&Ht){let qt=function(Ut,cn){Ht(Ut,cn)};return Et.on("beforeChange",qt),()=>{Et.off("beforeChange",qt)}}},[Et,Ht]),(0,re.useEffect)(()=>{if(Et&&Re){let qt=function(){Re(Et.getValue())};return Et.on("blur",qt),()=>{Et.off("blur",qt)}}},[Et,Re]);function Jr(qt,Ut){var cn=qt.getDoc(),mn=cn.getCursor(),Hn=cn.getLine(mn.line),hr=Hn.charAt(mn.ch-1),rr=Hn.lastIndexOf("@\u2581@",mn.ch),br=Hn.lastIndexOf("@\u2581\u2581@",mn.ch),xr=rr>br?rr:br,Sr=rr>br?3:4;if(tr.indexOf(hr)===-1)return null;if(console.log("change1:",Ut,qt,Hn,mn,xr,rr,br,hr),xr>=0&&mn.ch-xr<5){var Wr=xr+Sr;return cn.replaceRange("",{line:mn.line,ch:xr},{line:mn.line,ch:Wr}),{line:mn.line,ch:Wr}}return null}(0,re.useEffect)(()=>{if(Et){let qt=function(Ut,cn){const mn=Ut.getValue();kn(mn),qn(new Date().getTime()),Ut.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Bt&&(gn?Bt(mn,$t(mn)):Bt(mn))};return Et.on("change",qt),()=>{Et.off("change",qt)}}},[Et,Bt]),(0,re.useEffect)(()=>{if(Et)if(pt==null)Et.setValue(""),kn("");else{const qt=window.scrollY||window.pageYOffset;pt!==Et.getValue()&&(Et.setValue(pt),kn(pt),Et.setCursor(tn?1:Et.lineCount(),0),window.scrollTo(0,qt))}},[Et,pt]);const Ar=(0,re.useCallback)(qt=>{const Ut=Et.getCursor(),cn=Et.getSelection();let mn=cn.split(`
`);switch(qt){case"bold":return Et.replaceSelection("**"+cn+"**"),cn===""&&Et.setCursor(Ut.line,Ut.ch+2),Et.focus();case"italic":return Et.replaceSelection("*"+cn+"*"),cn===""&&Et.setCursor(Ut.line,Ut.ch+1),Et.focus();case"code":return Et.replaceSelection("`"+cn+"`"),cn===""&&Et.setCursor(Ut.line,Ut.ch+1),Et.focus();case"inline-latex":return(0,pn.Ye)(Pr)?void 0:(En("inline-latex"),Et.focus());case"latex":return Et.replaceSelection("```latex\n"+cn+"\n```"),Et.setCursor(Ut.line+1,cn.length+1),Et.focus();case"line-break":return Et.replaceSelection(`<br/>
`),Et.focus();case"list-ul":return cn===""?Et.replaceSelection("- "+cn):Et.replaceSelection(mn.map(Hn=>Hn===""?"":`- ${Hn}`).join(`
`)),Et.focus();case"list-ol":return cn===""?Et.replaceSelection("1. "+cn):Et.replaceSelection(mn.map((Hn,hr)=>Hn===""?"":`${hr+1}. ${Hn}`).join(`
`)),Et.focus();case"add-null-ch":Pt==null||Pt();return;case"add-signal":return cn===""&&Et.setCursor(Ut.line,Ut.ch),Et.replaceSelection(or),Et.focus();case"add-multiple":return cn===""&&Et.setCursor(Ut.line,Ut.ch),Et.replaceSelection(tr),Et.focus();case"inster-template-1":return cn===""&&Et.setCursor(Ut.line,Ut.ch),Et.replaceSelection(Gn),Et.focus();case"eraser":return Et.setValue(""),Et.focus();case"trigger-watch":return Jn(!Fn),Et.focus();case"trigger-full-screen":return wn(!ar),Et.focus();case ye:En(ye);return;case Yt:En(Yt);return;case yt:En(yt);return;case wt:En(wt);return;case"maths-latex":if((0,pn.Ye)(Pr))return;En("maths-latex");return;case bt:lr.current="",sessionStorage.removeItem("file_id"),En(bt);return;case _t:En(_t);return;default:throw new Error}},[Et,Fn,ar]),Hr=(0,re.useCallback)((qt,Ut)=>{var cn,mn,Hn,hr,rr,br;qt!=null&&qt.disabledClose||En("");const{src:xr,alt:Sr,id:Wr}=qt||{};switch(Jt){case ye:const{title:_i,link:xi}=qt;return Et.replaceSelection(`[${_i}](${xi})`),Et.focus();case Yt:const{language:vi,content:Xi}=qt;return Et.replaceSelection(["```"+vi,Xi,"```"].join(`
`)),Et.focus();case"maths-latex":for(var Br=atob(qt),Or=new Uint8Array(Br.length),ei=0;ei<Br.length;ei++)Or[ei]=Br.charCodeAt(ei);var Di=new Blob([Or],{type:"image/png"});(0,be.I)(Di,mi=>{mi.id?Et.replaceSelection(`![,](/api/attachments/${mi.id}?type=${mi.content_type})`):(mi==null?void 0:mi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,pn.Ye)(Pr))return;Et.replaceSelection("`$$"+qt+"$$`");break;case He:if(!Wr)return;Et.getValue().indexOf(xr)===-1?Et.replaceSelection(`<center><img id="${Wr}" width="80%" src="${xr}" class="draw-flowchart" alt="${Sr||""}" /></center>`):document.getElementById(Wr).src=ut.Z.API_SERVER+xr+"?t="+Date.now();break;case yt:case wt:const vr=Ut,to=(Hn=(mn=(cn=vr==null?void 0:vr.name)==null?void 0:cn.split("."))==null?void 0:mn.pop)==null?void 0:Hn.call(mn);return((hr=vr==null?void 0:vr.type)==null?void 0:hr.indexOf("image"))>-1||!(vr!=null&&vr.type)?vr!=null&&vr.align||vr!=null&&vr.width?Et.replaceSelection(`<p style="text-align:${vr.align||"initial"}"><img width="${vr.width?vr.width+"%":"initial"}" src="${xr}" alt="${Sr||""}" /></p>`):Et.replaceSelection(`<img width="100%" src="${xr}" alt="${Sr||""}" />`):((rr=vr==null?void 0:vr.type)==null?void 0:rr.indexOf("video"))>-1?Et.replaceSelection(`<video width="100%" controls src="${xr}"></video>`):((br=vr==null?void 0:vr.type)==null?void 0:br.indexOf("pdf"))>-1?Et.replaceSelection(`<a href="${xr}?type=${vr.type}&disposition=inline" target="_blank">${vr.name}</a>`):yn.includes(to)?Et.replaceSelection(`<a href="${xr}?type=office&disposition=inline" target="_blank">${vr.name}</a>`):Et.replaceSelection(`[${vr.name}](${xr})`),Et.focus();case _t:const{row:ti,col:Ni,align:ao}=qt;let Ji=`
`;for(let mi=0;mi<ti;mi++){let Fi=[],zr=[];for(let Oi=0;Oi<Ni;Oi++)mi===1&&zr.push(ln[ao]),Fi.push(" ");mi===1&&(Ji+=`| ${zr.join(" | ")} |
`),Ji+=`| ${Fi.join(Ni===1?"":" | ")} |
`}return Et.replaceSelection(Ji+`
`),Et.focus();default:throw new Error}},[Et,Jt]),Nr=(0,re.useMemo)(()=>{switch(Jt){case ye:return re.createElement(dt,{callback:Hr,onCancel:Zr});case Yt:return re.createElement(ot.Z,{callback:Hr,onCancel:Zr});case yt:return re.createElement(be.Z,{callback:Hr,onCancel:Zr});case bt:return re.createElement(nt,{editImgId:lr.current,callback:Hr,onCancel:Zr});case _t:return re.createElement(It,{callback:Hr,onCancel:Zr});case"maths-latex":return re.createElement(ce,{showSaveButton:!0,callback:Hr});case"inline-latex":return re.createElement(ne.Z,{showSaveButton:!0,callback:Hr});default:return null}},[Jt]);function Zr(){En("")}(0,re.useEffect)(()=>{if(Mr.current){let qt=function(rr){Hn=!0,hr=rr.pageY},Ut=function(){Hn=!1},cn=function(rr){if(Hn){let br=rr.pageY-hr;br<0&&(br=0),br>300&&(br=300);let xr=vn+br+"px";sr(xr)}},mn=Mr.current,Hn=!1,hr=0;return mn.addEventListener("mousedown",qt),document.addEventListener("mousemove",cn),document.addEventListener("mouseup",Ut),()=>{mn.removeEventListener("mousedown",qt),document.removeEventListener("mousemove",cn),document.removeEventListener("mouseup",Ut)}}},[Et,Mr]),(0,re.useEffect)(()=>{sr(vn)},[vn]);const ii=Vn(en),_r=Vn(wr),Yn={width:ii,height:_r},Kt=(0,re.useMemo)(()=>{if(un){let qt=new Date(un),Ut=qt.getHours(),cn=qt.getMinutes(),mn=qt.getSeconds();return Ut=Ut<10?"0"+Ut:Ut,cn=cn<10?"0"+cn:cn,mn=mn<10?"0"+mn:mn,`${Ut}:${cn}:${mn}`}return 0},[un]),$t=qt=>{const Ut=[];if(gn){let cn=-1;qt=qt.replace(/(@▁▁@|@▁@)/g,function(mn,Hn,hr){Ut.push({multiLine:mn!==or})})}return Ut};function An(){window.sessionStorage.removeItem(Un),Lr(!1),qn(0)}function dn(){Lr(!1),qn(0),Et.setValue(window.sessionStorage.getItem(Un))}(0,re.useEffect)(()=>{Ft[Jt]&&Jt!==wt&&Jt!==bt&&setTimeout(()=>{const qt=document.getElementsByClassName("markdown-popup-form")[0],Ut=window.innerWidth/2-qt.offsetWidth/2,cn=window.innerHeight/2-qt.offsetHeight/2;cr(Ut),yr(cn)},0)},[Jt]);const _n=qt=>{qt.preventDefault();const Ut=qt.clientX-Cr,cn=qt.clientY-Fr;document.body.onmousemove=mn=>{let Hn=mn.clientX-Ut,hr=mn.clientY-cn;const rr=document.getElementsByClassName("markdown-popup-form")[0],br=window.innerWidth-rr.offsetWidth,xr=window.innerHeight-rr.offsetHeight;Hn=Math.max(0,Math.min(Hn,br)),hr=Math.max(0,Math.min(hr,xr)),fr(mn.clientX,mn.clientY,Ut,cn)&&(cr(Hn),yr(hr))},document.body.onmouseup=function(){document.body.onmousemove=null}},fr=(qt,Ut,cn,mn)=>{const Hn=document.body.clientHeight,hr=document.body.clientWidth;return qt<20&&cn>qt||qt>hr-20&&cn<qt||Ut<20&&mn>Ut||Ut>Hn-20&&mn<Ut?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:Er},re.createElement("div",{className:`markdown-editor-container ${Ve} ${Fn?"on-preview":""} ${on?"mini":""} ${ar?"full-screen":""}`,style:Yn},re.createElement(jt,{insertTemp:Nn,watch:Fn,fullScreen:ar,showNullButton:Nt,showNullProgramButton:gn,onActionCallback:Ar,hidetoolBar:Bn,extraUse:rn}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:dr,placeholder:bn})),Fn?re.createElement("div",{ref:mr,className:"preview-container"},Cn==="stex"&&re.createElement(mt,{value:Sn}),Cn!=="stex"&&re.createElement(xe.Z,{edit:!0,disabledFill:sn,showProgramFill:gn,value:Sn,openEditor:qt=>{var Ut;lr.current=qt,(Ut=nr.current)==null||Ut.setHeight("100vh"),setTimeout(()=>{En("add-flowchart")},150)}})):null))),Ot?re.createElement("a",{ref:Mr,className:"editor-resize"}):null,Jt===wt&&re.createElement(Se,{callback:Hr,onCancel:Zr}),Jt===bt&&re.createElement(nt,{ref:nr,editImgId:lr.current,callback:Hr,onCancel:Zr}),re.createElement(We.Z,null,Ft[Jt]&&Jt!==wt&&Jt!==bt?re.createElement(Ne.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Cr,top:Fr},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:_n},Ft[Jt]),open:!0,onCancel:Zr,footer:null,destroyOnClose:!0,width:Jt===bt?"1200px":null,height:Jt===bt?"80vh":null,className:"markdown-popup-form"},Nr):null))}},45053:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return st},I:function(){return jt}});var re=de(28284),gt=de(6767),_e=de(37568),ze=de(44104),me=de(71051),Ue=de(47889),Ae=de(7939),je=de(28735),ge=de(59301),pe=de(59301),De=Object.defineProperty,xe=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Le=(We,Je,Dt)=>Je in We?De(We,Je,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):We[Je]=Dt,vt=(We,Je)=>{for(var Dt in Je||(Je={}))Oe.call(Je,Dt)&&Le(We,Dt,Je[Dt]);if(Ke)for(var Dt of Ke(Je))Ze.call(Je,Dt)&&Le(We,Dt,Je[Dt]);return We},ft=(We,Je)=>xe(We,mt(Je));const{useForm:At}=re.default,tt={width:280,marginRight:10},Qe={labelCol:{span:5},wrapperCol:{span:19}};var st=({callback:We,onCancel:Je})=>{const[Dt]=At();let Ce=(0,ge.useRef)();function $e(Gt){Ce.current.width=Dt.getFieldValue("width"),Ce.current.align=Dt.getFieldValue("align"),We(Gt,Ce.current)}function Be(Gt,St){if(Gt.status===-1){gt.ZP.error(Gt.message);return}Dt.setFieldsValue({src:`/api/attachments/${Gt.id}`,type:St.type})}function Xe(Gt){let St=Gt.target.files[0];Ce.current=St,jt(St,Be)}return pe.createElement(re.default,ft(vt({form:Dt},Qe),{className:"upload-image-panel",onFinish:$e,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(_e.default,{style:tt})),pe.createElement(et,{onFileChange:Xe}))),pe.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},pe.createElement(_e.default,{style:{width:264}})),pe.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},pe.createElement(ze.Z,null,pe.createElement(re.default.Item,{name:"width",style:{margin:0}},pe.createElement(me.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(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),pe.createElement(Ae.ZP,{type:"default",onClick:Je},"\u53D6\u6D88"))))};function et({onFileChange:We}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:We}))}function jt(We,Je){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");let Dt=new FormData;Dt.append("editormd-image-file",We),Dt.append("file_param_name","editormd-image-file"),Dt.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function($e){Je(JSON.parse($e.target.responseText),We)},!1),Ce.addEventListener("error",function($e){console.error($e)},!1),Ce.open("POST",`${je.KI}/api/attachments.json`),Ce.send(Dt)}},57261:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return _e}});var re=de(59301),gt=de(4676);class _e extends re.Component{constructor(me){super(me);const Ue=window.document;this.node=Ue.createElement("div"),Ue.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,gt.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(Rt,Zt,de){"use strict";de.d(Zt,{SV:function(){return Se},ZP:function(){return it}});var re=de(59301),gt=de(76374);const _e={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"]},ze={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"]},me={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(`
`)}]},Ae={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 je=de(53184),ge=de.n(je),pe=(ve,Ee,Ye)=>new Promise((we,Ie)=>{var qe=Ge=>{try{ut(Ye.next(Ge))}catch(xt){Ie(xt)}},nt=Ge=>{try{ut(Ye.throw(Ge))}catch(xt){Ie(xt)}},ut=Ge=>Ge.done?we(Ge.value):Promise.resolve(Ge.value).then(qe,nt);ut((Ye=Ye.apply(ve,Ee)).next())});const De={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"]}},xe=(ve,Ee,Ye,we)=>{const Ie=Ee.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Ye.lineNumber,endColumn:Ye.column});return Array.from(new Set(Ie.match(/\b\w{2,}\b/g)||[])).map(nt=>({label:nt,kind:ve.languages.CompletionItemKind.Text,insertText:nt,range:we}))},mt=(ve,Ee,Ye,we)=>{ve.languages.registerCompletionItemProvider(Ee,{provideCompletionItems(Ie,qe){const nt=Ie.getWordUntilPosition(qe),ut={startLineNumber:qe.lineNumber,endLineNumber:qe.lineNumber,startColumn:nt.startColumn,endColumn:nt.endColumn},Ge=Ie.getLineContent(qe.lineNumber).substring(nt.startColumn-2,nt.endColumn);return{suggestions:[...xe(ve,Ie,qe,ut),...Ye.map(kt=>({label:kt,kind:ve.languages.CompletionItemKind.Keyword,documentation:kt,insertText:kt,insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut})),...we.map(kt=>({label:kt.label,kind:ve.languages.CompletionItemKind.Snippet,documentation:kt.content,insertText:Ge.startsWith("#")?kt.content.replace(/#/,""):kt.content,insertTextRules:ve.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut}))]}}})};var Ke=ve=>{De.languages.forEach(Ee=>{ve.languages.registerDocumentFormattingEditProvider(Ee,{provideDocumentFormattingEdits(Ye){return pe(this,null,function*(){const we=ge()(Ye.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:Ye.getFullModelRange(),text:we}]})}})}),mt(ve,"java",ze.keywords,ze.quickKey),mt(ve,"cpp",me.keywords,me.quickKey),mt(ve,"c",_e.keywords,[]),mt(ve,"python",Ue.keywords,Ue.quickKey),mt(ve,"scala",Ae.keywords,Ae.quickKey)};const Oe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ze=Object.defineProperty,Le=(ve,Ee,Ye)=>Ee in ve?Ze(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ve[Ee]=Ye,vt=(ve,Ee,Ye)=>Le(ve,typeof Ee!="symbol"?Ee+"":Ee,Ye);const ft=class Ol{constructor(Ee,Ye,we){this.placeholder=Ee,this.editor=Ye,this.monaco=we,Ye.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ol.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)}};vt(ft,"ID","editor.widget.placeholderHint");var tt=ft,Qe=de(96236),st=de(6767),et=de(25399),jt=de(89392),We=de(77254),Je=de(56102),Dt=Object.defineProperty,Ce=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,St=(ve,Ee,Ye)=>Ee in ve?Dt(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):ve[Ee]=Ye,ht=(ve,Ee)=>{for(var Ye in Ee||(Ee={}))Xe.call(Ee,Ye)&&St(ve,Ye,Ee[Ye]);if(Be)for(var Ye of Be(Ee))Gt.call(Ee,Ye)&&St(ve,Ye,Ee[Ye]);return ve},at=(ve,Ee)=>Ce(ve,$e(Ee)),he=(ve,Ee)=>{var Ye={};for(var we in ve)Xe.call(ve,we)&&Ee.indexOf(we)<0&&(Ye[we]=ve[we]);if(ve!=null&&Be)for(var we of Be(ve))Ee.indexOf(we)<0&&Gt.call(ve,we)&&(Ye[we]=ve[we]);return Ye},le=(ve,Ee,Ye)=>new Promise((we,Ie)=>{var qe=Ge=>{try{ut(Ye.next(Ge))}catch(xt){Ie(xt)}},nt=Ge=>{try{ut(Ye.throw(Ge))}catch(xt){Ie(xt)}},ut=Ge=>Ge.done?we(Ge.value):Promise.resolve(Ge.value).then(qe,nt);ut((Ye=Ye.apply(ve,Ee)).next())});function Pe(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}function dt(){}let ot=!1;const be={"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 Ne(ve=[]){let Ee=ve;if(Array.isArray(ve)){for(let Ye=0;Ye<ve.length;Ye++){let we=be[ve[Ye]];if(we)return we}return Ee[0]}return be[Ee]||Ee}let Fe=null;const Ct=()=>le(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ve){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ve)}});var it=ve=>{var Ee=ve,{width:Ye="100%",height:we="100%",value:Ie,language:qe="javascript",style:nt={},options:ut={},overrideServices:Ge={},theme:xt="vs-dark",onEditBlur:kt,isCopy:Qt=!1,onSave:It,autoHeight:se=!1,forbidCopy:te=!1,onChange:ee=dt,editorDidMount:oe=dt,onFocus:ce=dt,onBreakPoint:ne=dt,breakPointValue:ye=[],filename:yt="educoder.txt",errorLine:bt,errorContent:wt="",highlightLine:He,openBreakPoint:Yt=!1,placeholder:_t="",showMiniMap:Wt=!0}=Ee,ln=he(Ee,["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 Pn=(0,re.useRef)(),pn=(0,re.useRef)({}),Mn=(0,re.useRef)(),er=(0,re.useRef)(),jn=(0,re.useRef)([]),ur=(0,re.useRef)(!1),tr=(0,re.useRef)(),or=(0,re.useRef)(),Gn=(0,re.useRef)(!1),[yn,Vn]=(0,re.useState)(!1);function zn(){let Ot;return Pn.current&&(Ot=new gt.Z(ct=>{for(let Nt of ct)(Nt.target.offsetHeight>0||Nt.target.offsetWidth>0)&&pn.current.instance.layout()}),Ot.observe(Pn.current)),Ot}function Tn(){st.ZP.warning({content:decodeURIComponent(Oe),key:"monaco-editor-tip"})}const Qn=()=>{let Ot=pn.current.instance;if(Ie!=null&&Ot&&yn){const ct=Ot.getModel();ct&&Ie!==ct.getValue()&&(ot=!0,ct.setValue(Ie),Ot.layout(),ot=!1)}};(0,re.useEffect)(()=>{const Ot=We.Z.subscribe("formatDocument",ct=>{var Nt;let gn=pn.current.instance;(Nt=gn==null?void 0:gn.getAction)==null||Nt.call(gn,"editor.action.formatDocument").run()});return window.updateMonacoValue=ct=>{ee(ct)},Ot},[]),(0,re.useEffect)(()=>{var Ot;let ct=pn.current.instance;er.current&&clearTimeout(er.current),er.current=setTimeout(()=>{Qn()},500),Ie&&(Ie!=null&&Ie.length)&&((Ot=ct==null?void 0:ct.updateOptions)==null||Ot.call(ct,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ie,yn,pn.current]),(0,re.useEffect)(()=>{if(bt&&pn.current&&pn.current.instance){let ct=pn.current.instance;ct.changeViewZones(function(Nt){var gn=document.createElement("div");gn.style.padding="10px 20px",gn.style.width="calc(100% - 20px)",gn.className="my-error-line-wrp",gn.innerHTML=wt,Nt.addZone({afterLineNumber:bt||11,heightInLines:3,domNode:gn})});var Ot={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ct.addOverlayWidget(Ot),ct.revealPositionInCenter({lineNumber:20,column:1})}},[bt,pn.current,yn]);const Ft=(Ot="",ct)=>{if(!Ot||Ot.trim()==="")return!0;const gn=pn.current.instance.getModel().getLineTokens(ct);let Bn=!1;for(let Te=0;Te<2;Te++)gn.getStandardTokenType(Te)===1&&(Bn=!0);return Bn};(0,re.useEffect)(()=>{var Ot;const ct=(Ot=pn.current)==null?void 0:Ot.instance;if(ct&&yn&&te){const Nt=ct.onDidBlurEditorWidget(()=>{Gn.current=!1}),gn=ct.onDidFocusEditorText(()=>{Gn.current=!0});return()=>{Nt.dispose(),gn.dispose()}}},[pn.current,yn,te]),(0,re.useEffect)(()=>{var Ot;if((Ot=pn.current)!=null&&Ot.instance&&yn&&Yt){let ct=pn.current.instance,Nt=ct.getModel();if(!Nt)return;(()=>{var Xt;let rn=[],Pt=[];const Et=Nt.getAllDecorations();for(let Sn of Et)Sn.options.className==="highlighted-line"&&(rn.push((Xt=Sn==null?void 0:Sn.range)==null?void 0:Xt.startLineNumber),Pt.push(Sn==null?void 0:Sn.id));if(He===rn[0])return;Nt.deltaDecorations(Pt,[]);const an=Nt.getLineCount();He&&He<=an&&(ct.deltaDecorations([],[{range:new Fe.Range(He,1,He,Nt.getLineMaxColumn(He)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ct.revealLineInCenter(He))})();const Bn=(Xt=!1)=>{var rn;let Pt=[],Et=[];const an=Nt.getAllDecorations();for(let Sn of an)Sn.options.linesDecorationsClassName==="breakpoints-select"&&(Pt.push((rn=Sn==null?void 0:Sn.range)==null?void 0:rn.startLineNumber),Et.push(Sn==null?void 0:Sn.id));if(Xt)return{lines:Pt,ids:Et};ne(Pt)},Te=Xt=>le(void 0,null,function*(){let rn={range:new Fe.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Nt.deltaDecorations([],[rn]),Bn()}),Re=Xt=>le(void 0,null,function*(){let rn=[];const Pt=ct.getLineDecorations(Xt);for(let Et of Pt)Et.options.linesDecorationsClassName==="breakpoints-select"&&rn.push(Et.id);yield Nt.deltaDecorations(rn,[]),Bn()}),Ht=Xt=>{let rn=ct.getLineDecorations(Xt);for(let Pt of rn)if(Pt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,jt.isEqual)(ye,Bn(!0).lines)){Nt.deltaDecorations(Bn(!0).ids,[]);const Xt=ye.map(rn=>({range:new Fe.Range(rn,1,rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Nt.deltaDecorations([],Xt)}const Lt=ct.onDidChangeModelContent(Xt=>{let rn=ct.getPosition();if(rn){let Pt=rn.lineNumber;clearTimeout(or.current),or.current=setTimeout(()=>{Ft(Nt.getLineContent(Pt),Pt)?Re(Pt):Ht(Pt)?(Re(Pt),Te(Pt)):Bn()},100)}}),Ve=ct.onMouseDown(Xt=>{var rn,Pt,Et;if(Xt.target.detail&&((Et=(Pt=(rn=Xt.target)==null?void 0:rn.element)==null?void 0:Pt.className)!=null&&Et.includes("line-numbers"))){let an=Xt.target.position.lineNumber;if(Ft(Nt.getLineContent(an),an))return;Ht(an)?Re(an):Te(an)}}),Mt=Xt=>{let rn={range:new Fe.Range(Xt,1,Xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};jn.current=ct.deltaDecorations(jn.current,[rn])},tn=()=>{jn.current=ct.deltaDecorations(jn.current,[])},sn=ct.onMouseMove(Xt=>{var rn,Pt,Et;if(tn(),Xt.target.detail&&((Et=(Pt=(rn=Xt.target)==null?void 0:rn.element)==null?void 0:Pt.className)!=null&&Et.includes("line-numbers"))){let an=Xt.target.position.lineNumber;if(Ft(Nt.getLineContent(an),an))return;Mt(an)}}),bn=ct.onMouseLeave(()=>{tn()});return()=>{Lt.dispose(),Ve.dispose(),sn.dispose(),bn.dispose()}}},[pn.current,yn,ye,He,Yt,qe]),(0,re.useEffect)(()=>{var Ot;(Ot=pn.current)!=null&&Ot.instance&&Yt&&pn.current.instance.setPosition({lineNumber:0,column:0})},[He]);function Vt(){let Ot=pn.current.instance;if(Ot){const ct=Ot.getSelection(),Nt=pn.current.pastePos||{},gn=new Fe.Range(Nt.startLineNumber||ct.endLineNumber,Nt.startColumn||ct.endColumn,Nt.endLineNumber||ct.endLineNumber,Nt.endColumn||ct.endColumn);setTimeout(()=>{Ot.executeEdits("",[{range:gn,text:""}])},300)}}function pt(Ot){(window.navigator.platform.match("Mac")?Ot.metaKey:Ot.ctrlKey)&&Ot.keyCode==83&&(Ot.preventDefault(),It())}const Bt=()=>{if(se&&pn.current.instance){const Ot=pn.current.instance.getContentHeight();Cn(Ot<we?we:Ot)}else Cn(we)};function en(Ot){var ct=document.createEvent("MouseEvents");ct.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ot.dispatchEvent(ct)}const vn=Ot=>{if(!Gn.current)return;const{keyCode:ct,ctrlKey:Nt,metaKey:gn,target:Bn,type:Te}=Ot;return(Te==="paste"||(ct===67||ct===86)&&(gn||Nt))&&Bn.nodeName==="TEXTAREA"&&(Tn(),Ot.preventDefault()),!1};function on(Ot,ct){var Nt=window.URL||window.webkitURL||window,gn=new Blob([ct]),Bn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Bn.href=Nt.createObjectURL(gn),Bn.download=Ot,en(Bn)}(0,re.useEffect)(()=>{Bt()},[Bt]),(0,re.useEffect)(()=>{Pn.current&&!yn&&Promise.all([de.e(8909),de.e(2460)]).then(de.bind(de,71448)).then(Ot=>{try{Fe=Ot,pn.current.instance=Fe.editor.create(Pn.current,{value:Ie,language:Ne(qe),theme:xt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Wt||!1}},Ge);const ct=pn.current.instance;let Bn=[...Qe.BH._menuItems].find(Lt=>Lt[0]._debugName=="EditorContext")[1],Te=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Re=(Lt,Ve)=>{var Mt,tn;let sn=Lt._first;do Ve.includes((tn=(Mt=sn.element)==null?void 0:Mt.command)==null?void 0:tn.id)&&Lt._remove(sn);while(sn=sn.next)};if(oe(ct,Fe),setTimeout(()=>{Bt(),pn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{on(yt||"educoder.txt",ct.getValue())}})},500),pn.current.subscription=ct.onDidChangeModelContent(Lt=>{ur.current?clearTimeout(tr.current):(Bt(),ee(ct.getValue(),Lt)),tr.current=setTimeout(()=>{ur.current=!1},500)}),window.Monaco||Ke(Fe,Ne(qe)),te&&(Re(Bn,Te),Pn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",vn),window.removeEventListener("paste",vn),window.addEventListener("keydown",vn),window.addEventListener("paste",vn)),window.Monaco=Fe,kt&&ct.onDidBlurEditorWidget(()=>{kt(ct.getValue())}),ce&&ct.onDidFocusEditorText(()=>{te&&Ct(),ce(ct.getValue())}),te){Ct();try{ct.onDidPaste(Lt=>{const Ve=ct.getSelection(),Mt=pn.current.pastePos||{},tn=new Fe.Range(Mt.startLineNumber||Ve.endLineNumber,Mt.startColumn||Ve.endColumn,Mt.endLineNumber||Ve.endLineNumber,Mt.endColumn||Ve.endColumn);ct.executeEdits("",[{range:Lt.range,text:""}])})}catch(Lt){}}let Ht=zn();return _t&&typeof _t=="string"&&new tt(_t,ct,Fe),Vn(!0),()=>{const Lt=pn.current.instance;Lt.dispose();const Ve=Lt.getModel();Ve&&Ve.dispose(),pn.current.subscription&&pn.current.subscription.dispose(),Ht.unobserve(Pn.current)}}catch(ct){}})},[]),(0,re.useEffect)(()=>{if(pn.current.instance&&yn)return document.addEventListener("keydown",pt,!1),()=>{document.removeEventListener("keydown",pt)}},[It,yn]),(0,re.useEffect)(()=>{let Ot=pn.current.instance;if(Ot&&yn){let ct=Ne(qe);Fe.editor.setModelLanguage(Ot.getModel(),ct)}},[qe,yn]),(0,re.useEffect)(()=>{pn.current.instance&&yn&&Fe.editor.setTheme(xt)},[xt,yn]),(0,re.useEffect)(()=>{let Ot=pn.current.instance;Mn.current=ut,Ot&&yn&&(Ot.updateOptions(ht({},ut)),setTimeout(()=>{Ot.getModel().updateOptions(ht({},ut))},200))},[JSON.stringify(ut),yn]),(0,re.useEffect)(()=>{let Ot=pn.current.instance;Ot&&yn&&Ot.layout()},[Ye,we,yn]);const[Ln,Rn]=(0,re.useState)(Pe(Ye)),[Nn,Cn]=(0,re.useState)(Pe(we)),Un=at(ht({},nt),{width:Ln,height:Nn,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:Pn,style:Un,onFocus:()=>{te&&Ct()}},Qt&&re.createElement(Je.CopyToClipboard,{text:Ie,onCopy:()=>st.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(et.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 Se({width:ve="100%",height:Ee="100%",original:Ye,modified:we,language:Ie,options:qe={}}){const nt=(0,re.useRef)(),[ut,Ge]=(0,re.useState)(null);function xt(se){let te;return nt.current&&(te=new gt.Z(ee=>{for(let oe of ee)(oe.target.offsetHeight>0||oe.target.offsetWidth>0)&&se.layout()}),te.observe(nt.current)),te}(0,re.useEffect)(()=>(nt.current&&Promise.all([de.e(8909),de.e(9404)]).then(de.bind(de,2550)).then(se=>{Fe=se;const te=Fe.editor.createDiffEditor(nt.current,at(ht({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},qe),{wordWrap:!0}));Ge(te);let ee=xt(te);return()=>{te.dispose();const oe=te.getModel();oe&&oe.dispose(),ee.unobserve(nt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{ut&&ut.setModel({original:Fe.editor.createModel(Ye,Ie),modified:Fe.editor.createModel(we,Ie)})},[Ye,we,Ie,ut]);const kt=Pe(ve),Qt=Pe(Ee),It={width:kt,height:Qt};return re.createElement("div",{className:"my-diff-editor",ref:nt,style:It})}},61584:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return De}});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",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},gt=de(29787),_e=de(25399),ze=de(60242),me=de(92310),Ue=de.n(me),Ae=de(65862),je=de(2524),ge=de(59301),De=({className:xe,dataSource:mt=[],col:Ke=4,right:Oe,bottom:Ze=23,precision:Le=0,wrapWidth:vt=1200,trackEventItems:ft,loading:At,onRemove:tt=()=>{},isCurrent:Qe=!0,showProgress:st=!1,showAlias:et=!1,category:jt,hiddenClick:We})=>{const Je=Math.floor((vt-(Ke-1)*Oe)/Ke),Dt=[{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 ge.createElement(gt.Z,{spinning:At},ge.createElement("div",{className:Ue()(re.list,xe)},!!(mt!=null&&mt.length)&&(mt==null?void 0:mt.map((Ce,$e)=>{var Be,Xe,Gt,St,ht,at,he,le,Pe,dt,ot,be,Ne;const{name:Fe,id:Ct,identifier:it,featured:Se,school_name:ve,image_url:Ee,excellent:Ye,is_plan:we}=Ce;return ge.createElement("div",{key:Ct,className:Qe&&st?re.wrapisCurrent:re.wrap,style:{width:Je,marginRight:(1+$e)%Ke===0?0:Oe+Le,marginBottom:Ze}},ge.createElement("a",{className:re.li,onClick:Ie=>{Ie.preventDefault(),Ie.stopPropagation(),ft&&(0,Ae.L9)([ft]),(0,Ae.xg)(`/paths/${it}`)}},ge.createElement("div",{className:re.img},ge.createElement("img",{className:re.cover,src:`${Ee}`}),(Be=Ce==null?void 0:Ce.subject_tags)==null?void 0:Be.map((Ie,qe)=>{var nt,ut;if(qe===0){const xt=(nt=Dt.find(kt=>kt.name==Ie))==null?void 0:nt.swimg;return ge.createElement("img",{className:re.sign,src:xt,style:{left:"-4px"}})}const Ge=(ut=Dt.find(xt=>xt.name==Ie))==null?void 0:ut.ptimg;return ge.createElement("img",{className:re.sign,src:Ge,style:{left:`${48+52*(qe-1)+2*qe}px`}})}),ge.createElement("div",{className:re.tagsDom},ge.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ce==null?void 0:Ce.excellent)&&ge.createElement("div",{className:re.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Xe=Ce==null?void 0:Ce.custom_tags)==null?void 0:Xe.length)>0&&ge.createElement(_e.Z,{title:(ht=(St=Ce==null?void 0:Ce.custom_tags)==null?void 0:St[((Gt=Ce==null?void 0:Ce.custom_tags)==null?void 0:Gt.length)-1])==null?void 0:ht.tag_name},ge.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},ge.createElement("span",{className:"multi-llipsis1e text-10px"},(le=(he=Ce==null?void 0:Ce.custom_tags)==null?void 0:he[((at=Ce==null?void 0:Ce.custom_tags)==null?void 0:at.length)-1])==null?void 0:le.tag_name))))),jt=="hide"&&(Ce==null?void 0:Ce.studying)&&Qe&&ge.createElement("div",{className:`${re.movebq} user-path-items`,onClick:Ie=>{Ie.stopPropagation(),tt(Ce)}},ge.createElement("i",{className:"iconfont icon-yichu1 font12"}),ge.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(jt)&&Qe&&ge.createElement("div",{className:`${re.hiddenbq} user-path-items`,onClick:Ie=>{Ie.stopPropagation(),We(Ce)}},ge.createElement("i",{className:`iconfont ${jt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),ge.createElement("span",null,jt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),ge.createElement("div",{className:re.name},ge.createElement(_e.Z,{title:et&&(Ce!=null&&Ce.excellent_alias_name)?ge.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Fe}`,ge.createElement("br",null),ge.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ce==null?void 0:Ce.excellent_alias_name}`)):Fe},ge.createElement("span",{className:re.e},et&&(Ce==null?void 0:Ce.excellent_alias_name)||Fe))),Qe&&st&&((Pe=Ce==null?void 0:Ce.progress)==null?void 0:Pe.all_score)!=0&&ge.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ge.createElement(ze.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((dt=Ce==null?void 0:Ce.progress)==null?void 0:dt.my_score)/((ot=Ce==null?void 0:Ce.progress)==null?void 0:ot.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(be=Ce==null?void 0:Ce.progress)==null?void 0:be.my_score,"/",(Ne=Ce==null?void 0:Ce.progress)==null?void 0:Ne.all_score),(!Qe||!st)&&ge.createElement(_e.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ve}`},ge.createElement("div",{className:re.unit},ge.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ve)),(!Qe||!st)&&ge.createElement("div",{className:re.tags},ge.createElement("div",null,ge.createElement(_e.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ge.createElement("span",null,Ce.stages_count))),ge.createElement(_e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ge.createElement("span",null,Ce.members_count)))))))})),!mt.length&&ge.createElement(je.Z,null)))}},82636:function(Rt,Zt,de){"use strict";de.d(Zt,{jL:function(){return me},w9:function(){return Pe},QD:function(){return bt},cQ:function(){return St.Z},op:function(){return ee},O5:function(){return Qn},_b:function(){return ln},t7:function(){return vt},Gi:function(){return Ct},YG:function(){return Ne},qp:function(){return De},vr:function(){return Yt},qE:function(){return ne},Je:function(){return tt},wb:function(){return Gt},cq:function(){return we},tp:function(){return Ke}});var re=de(59301),gt={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"},_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2S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33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",me=({dataSource:Ft=[],img:Vt,imgWidth:pt=346,title:Bt,sunTitle:en,bannerExtraContent:vn})=>re.createElement("div",{className:gt.banner},re.createElement("div",{className:gt.content},re.createElement("aside",null,re.createElement("p",null,re.createElement("b",null,Bt),re.createElement("span",null,en)),Ft.length>0&&re.createElement("div",{className:gt.btns},Ft.map((on,Ln)=>re.createElement("div",{key:Ln,onClick:on.click},on.name,on.sign?re.createElement("img",{src:_e,width:39}):null))),vn),Vt&&re.createElement("img",{style:{marginTop:33,marginRight:38},src:Vt,width:pt}))),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"},Ae=de(92310),je=de.n(Ae),ge=de(89392),De=({dataSource:Ft=[],value:Vt,onChange:pt,onTitleChange:Bt,className:en,title:vn,titleWidth:on=41,style:Ln={},fontColor:Rn="#6A7283",showCount:Nn})=>{const[Cn,Un]=(0,re.useState)(1),[Ot,ct]=(0,re.useState)(!1),Nt=(0,re.useRef)(null),gn=(0,re.useRef)(null);return(0,re.useEffect)(()=>{var Bn;Ft.length!==0&&(((Bn=Nt==null?void 0:Nt.current)==null?void 0:Bn.clientHeight)>97?Un(1):Un(0)),Ft.length===0&&Un(0),ct(!1)},[Ft]),re.createElement("div",{className:je()(Ue.row,en,"fadeIn","animated"),style:Ln},re.createElement("div",{onClick:(0,ge.throttle)(()=>Bt==null?void 0:Bt(),2e3),style:{width:on,marginTop:Ot?12:4},className:`${Ue.title} ${Bt?"current":""}`},vn),re.createElement("div",{className:Ot?`${Ue.tagsWrap} ${Ue.tagsBorderWrap}`:Ue.tagsWrap},re.createElement("div",{className:Ue.bar,ref:gn,style:Cn>0?{height:Cn===1?97:"auto",overflow:Cn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},re.createElement("div",{className:Ue.tag,ref:Nt},Ft==null?void 0:Ft.map(Bn=>re.createElement("span",{onClick:()=>pt(Bn.id),key:Bn.id,style:{color:Rn},className:Vt===Bn.id?Ue.active:""},re.createElement("span",{title:Bn.name,className:Ue.name},Bn.name),!!Nn&&re.createElement("span",{className:Ue.num},Bn.count))))),!!Cn&&re.createElement(re.Fragment,null,Cn===1?re.createElement("div",{onClick:()=>{var Bn;Un(2),((Bn=Nt==null?void 0:Nt.current)==null?void 0:Bn.clientHeight)>245?ct(!0):ct(!1)},className:Ue.action},"\u5C55\u5F00",re.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):re.createElement("div",{onClick:()=>{gn.current.scrollTop=0,Un(1),ct(!1)},className:Ue.action},"\u6536\u8D77",re.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},xe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ke=({dataSource:Ft=[],value:Vt,onChange:pt,className:Bt,style:en={}})=>re.createElement("div",{style:en,className:je()(xe.tabs,Bt)},Ft.map(vn=>re.createElement("span",{onClick:()=>pt(vn.id),className:Vt===vn.id?xe.active:"",key:vn.id},vn.name))),Oe={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"},Ze=de(37568),vt=({dataSource:Ft=[],value:Vt="",onChange:pt,onInputChange:Bt=()=>{},className:en,style:vn={},placeholder:on,allowClear:Ln=!1})=>{var Rn;const[Nn,Cn]=(0,re.useState)(""),[Un,Ot]=(0,re.useState)("");(0,re.useEffect)(()=>{var gn;let Bn=Vt;(gn=JSON.stringify(Vt))!=null&&gn.includes("{")&&(Cn(Vt.id),Bn=Vt.value||"");try{Ot(decodeURIComponent(Bn||""))}catch(Te){Ot(decodeURIComponent(Bn||""))}},[Vt]);const ct=()=>{pt(encodeURIComponent(Un),Nn||null)},Nt=gn=>{gn!==Nn&&(Cn(gn),pt(encodeURIComponent(Un),gn))};return re.createElement("div",{className:je()(Oe.input,en),style:vn},!!Ft.length&&re.createElement("div",{className:Oe.dropdown},re.createElement("div",{className:Oe.text},(Rn=Ft.find(gn=>gn.id===Nn))==null?void 0:Rn.name,re.createElement("i",{className:"iconfont icon-zhankai4"}),re.createElement("b",{className:Oe.b1}),re.createElement("b",{className:Oe.b2})),re.createElement("div",{className:Oe.menu},Ft.map((gn,Bn)=>re.createElement("div",{key:Bn,onClick:()=>Nt(gn.id)},gn.name)))),re.createElement(Ze.default,{onPressEnter:ct,value:Un,onChange:gn=>{Ot(gn.target.value),Bt(encodeURIComponent(gn.target.value),Nn||null)},placeholder:on,variant:"borderless",allowClear:Ln,onClear:()=>pt("",Nn||null)}),re.createElement("i",{onClick:ct,className:"iconfont icon-sousuo9 font14 current"}))},ft={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"},tt=({value:Ft,onChange:Vt,className:pt,total:Bt,pageSize:en,style:vn={}})=>{const on=Ft<2,Ln=Ft>=Math.ceil(Bt/en);return Bt<=en?re.createElement(re.Fragment,null):re.createElement("div",{className:je()(ft.quickPager,pt),style:vn},re.createElement("div",{onClick:()=>{on||Vt(Ft-1,"prev")},className:on?ft.disabled:""},"\u4E0A\u4E00\u9875"),re.createElement("div",{onClick:()=>{Ln||Vt(Ft+1,"next")},className:Ln?ft.disabled:""},"\u4E0B\u4E00\u9875"))},Qe={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"},st=de(29787),et=de(25399),jt=de(58018),We=de(74128),Je=de(65862),Dt=de(96908),Ce=de(57177),$e=de(81378),Be=de(2524),Gt=({className:Ft,dataSource:Vt=[],col:pt=4,right:Bt,bottom:en=23,precision:vn=0,wrapWidth:on=1200,trackEventItems:Ln,loading:Rn})=>{const Nn=Math.floor((on-(pt-1)*Bt)/pt);return re.createElement(st.Z,{spinning:Rn},re.createElement("div",{className:je()(Qe.list,Ft)},!!Vt.length&&Vt.map((Cn,Un)=>{const{name:Ot,id:ct,identifier:Nt,power:gn,cover_image_id:Bn,pic:Te}=Cn;return re.createElement("div",{className:Qe.wrap,key:ct,style:{width:Nn,marginRight:(1+Un)%pt===0?0:Bt+vn,marginBottom:en}},re.createElement("a",{target:"_blank",href:`/shixuns/${Nt}/challenges`,className:Qe.li,onClick:Re=>{Re.preventDefault(),Ln&&(0,Je.L9)([Ln]),gn&&(0,Je.xg)(`/shixuns/${Nt}/challenges`)}},re.createElement("div",{className:Qe.img},re.createElement("img",{className:Qe.cover,src:`${Te}`}),Cn.is_jupyter&&re.createElement("img",{className:Qe.sign,src:Dt}),Cn.is_jupyter_lab&&re.createElement("img",{className:Qe.sign,src:Ce}),Cn.is_unity_3d&&re.createElement("img",{className:Qe.sign,src:$e})),re.createElement("div",{className:Qe.name},re.createElement(et.Z,{title:Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:Qe.e},Ot||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{className:Qe.tags},re.createElement(et.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),re.createElement("span",null,Cn.challenges_count))),!!Cn.myshixuns_count&&re.createElement(et.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,Cn.myshixuns_count))),re.createElement(et.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},re.createElement("span",null,re.createElement("span",null,Cn.level))),re.createElement("div",{className:Qe.rate},re.createElement(jt.Z,{allowHalf:!0,disabled:!0,defaultValue:Cn.score_info}),re.createElement("span",null,"\xA0",Cn.score_info?`${Cn.score_info}\u5206`:"5\u5206")))),!gn&&re.createElement("div",{className:Qe.lockWrap},re.createElement("img",{src:`${We.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")))}),!Vt.length&&re.createElement(Be.Z,null)))},St=de(61584),ht={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1O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PZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",he=de(59301),Pe=({className:Ft,dataSource:Vt=[],col:pt=4,right:Bt,bottom:en=23,precision:vn=0,wrapWidth:on=1200,trackEventItems:Ln,loading:Rn,category:Nn,hiddenClick:Cn,handleVery:Un=()=>!0,isCurrent:Ot})=>{const ct=Math.floor((on-(pt-1)*Bt)/pt);return he.createElement(st.Z,{spinning:Rn},he.createElement("div",{className:je()(ht.list,Ft)},!!Vt.length&&Vt.map((Nt,gn)=>{const{subject_identifier:Bn,id:Te,identifier:Re,power:Ht}=Nt,Lt=Nt.is_public!=0&&Nt.is_public;return he.createElement("div",{className:ht.wrap,key:Te,style:{width:ct,marginRight:(1+gn)%pt===0?0:Bt+vn,marginBottom:en}},he.createElement("a",{className:ht.li,onClick:Ve=>{Ve.preventDefault(),Un(Nt==null?void 0:Nt.first_category_url)&&(Ln&&(0,Je.L9)([Ln]),(0,Je.xg)(Nt.first_category_url))}},he.createElement("div",{className:ht.top},he.createElement(et.Z,{title:Nt.name},he.createElement("div",{className:ht.name},Nt.name)),he.createElement("img",{className:ht.img,src:We.Z.IMG_SERVER+"/images/"+Nt.avatar_url}),he.createElement("div",{className:ht.text,title:Nt.creator},Nt.creator),Bn&&he.createElement("div",{className:ht.btns},he.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),he.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Lt&&he.createElement("div",{className:ht.sign},"\u516C\u5F00"),Ot&&he.createElement("div",{className:ht.hidden,onClick:Ve=>{Ve.stopPropagation(),Cn(Nt)}},he.createElement("i",{className:`iconfont ${Nn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Nn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),he.createElement("div",{className:ht.bottom},Nt.visits>0&&he.createElement(et.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-liulanyan"}),he.createElement("span",null,Nt.visits))),Nt.course_members_count>0&&he.createElement(et.Z,{title:"\u6210\u5458",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-chengyuan"}),Nt.course_members_count)),Nt.tasks_count>0&&he.createElement(et.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},he.createElement("span",null,he.createElement("i",{className:"iconfont icon-zuoye"}),Nt.tasks_count)),Nt.is_end?he.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):he.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Nt.is_accessible&&he.createElement("div",{className:ht.lockWrap},he.createElement("img",{src:`${We.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),he.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vt.length&&he.createElement(Be.Z,null)))},dt={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"},ot=de(65582),Ne=({dataSource:Ft=[],value:Vt,onChange:pt,className:Bt,style:en={},tabBarExtraContent:vn})=>re.createElement("div",{className:je()(dt.tabs,Bt),style:en},re.createElement("div",{className:dt.tabsWrap},Ft.map((on,Ln)=>!(on!=null&&on.hide)&&re.createElement("aside",{className:dt.tab,onClick:()=>{pt(on.id),on.link&&ot.history.push(on.link)},key:Ln},re.createElement("div",{className:Vt===on.id?dt.active:""},on.name),(on==null?void 0:on.resetCount)==null&&(on==null?void 0:on.total)!==void 0&&re.createElement("span",null,"\uFF08",on==null?void 0:on.total,"\uFF09"),(on==null?void 0:on.resetCount)!==void 0&&(on==null?void 0:on.total)!==void 0&&re.createElement(et.Z,{title:(on==null?void 0:on.tip)!=null?on==null?void 0:on.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},on==null?void 0:on.resetCount),"/",re.createElement("span",null,on==null?void 0:on.total),"\uFF09"))))),re.createElement("div",{className:dt.tabBar},vn)),Ct=({className:Ft,style:Vt={},children:pt})=>re.createElement("div",{className:je()(Ft),style:Vt},pt),it={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"},Se=de(75727),ve=de(93041);const Ee=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var we=({sortValue:Ft,dropValue:Vt,className:pt,onSort:Bt,onDrop:en,dataSource:vn=Ee})=>{var on;return re.createElement("div",{className:je()(it.orderWrap,pt)},re.createElement(Se.Z,{dropdownRender:()=>re.createElement(ve.default,null,vn.map((Ln,Rn)=>re.createElement(ve.default.Item,{key:Rn,onClick:()=>en(Ln.id)},Ln.name)))},re.createElement("span",{className:it.orderTextWrap},(on=vn.find(Ln=>Vt===Ln.id))==null?void 0:on.name)),re.createElement("span",{className:it.orderIconWrap},re.createElement("span",{className:it.orderAsc},re.createElement("i",{className:Ft==="asc"?`iconfont icon-sanjiaoxing-up font12 ${it.cursorPointer} ${it.active}`:`iconfont icon-sanjiaoxing-up font12 ${it.cursorPointer}`,onClick:()=>Bt(Ft==="asc"?"desc":"asc")})),re.createElement("span",{className:it.orderDesc},re.createElement("i",{className:Ft==="desc"?`iconfont icon-sanjiaoxing-down font12 ${it.cursorPointer} ${it.active}`:`iconfont icon-sanjiaoxing-down font12 ${it.cursorPointer}`,onClick:()=>Bt(Ft==="asc"?"desc":"asc")}))))},Ie={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"},qe=de(7939),nt=Object.defineProperty,ut=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,kt=(Ft,Vt,pt)=>Vt in Ft?nt(Ft,Vt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Ft[Vt]=pt,Qt=(Ft,Vt)=>{for(var pt in Vt||(Vt={}))Ge.call(Vt,pt)&&kt(Ft,pt,Vt[pt]);if(ut)for(var pt of ut(Vt))xt.call(Vt,pt)&&kt(Ft,pt,Vt[pt]);return Ft},It=(Ft,Vt)=>{var pt={};for(var Bt in Ft)Ge.call(Ft,Bt)&&Vt.indexOf(Bt)<0&&(pt[Bt]=Ft[Bt]);if(Ft!=null&&ut)for(var Bt of ut(Ft))Vt.indexOf(Bt)<0&&xt.call(Ft,Bt)&&(pt[Bt]=Ft[Bt]);return pt},se=(Ft,Vt,pt)=>new Promise((Bt,en)=>{var vn=Rn=>{try{Ln(pt.next(Rn))}catch(Nn){en(Nn)}},on=Rn=>{try{Ln(pt.throw(Rn))}catch(Nn){en(Nn)}},Ln=Rn=>Rn.done?Bt(Rn.value):Promise.resolve(Rn.value).then(vn,on);Ln((pt=pt.apply(Ft,Vt)).next())}),ee=Ft=>{var Vt=Ft,{className:pt,style:Bt,children:en,loading:vn=!1,openLoading:on,onClick:Ln=()=>{},size:Rn="middle",shape:Nn="round"}=Vt,Cn=It(Vt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Un,Ot]=(0,re.useState)(!1);return re.createElement(qe.ZP,Qt({onClick:(0,ge.throttle)(ct=>se(void 0,null,function*(){on&&Ot(!0);try{yield Ln(ct)}catch(Nt){console.log("error",Nt)}on&&Ot(!1)}),2e3,{leading:!0,trailing:!1}),className:je()(Ie.btn,Ie[`${Rn}-${Nn}`],pt),style:Bt,size:Rn,shape:Nn,loading:Un||vn},Cn),en)},oe={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"},ne=({className:Ft,style:Vt,children:pt=null,onClick:Bt,title:en})=>re.createElement("div",{className:je()(oe.head,Ft),style:Vt},re.createElement("span",{className:"primary-hover",onClick:Bt},re.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),re.createElement("b",{title:en},en),re.createElement("div",{className:oe.node},pt)),ye={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"},bt=({confirmShow:Ft=!0,confirmTitle:Vt,confirmClick:pt,cancelShow:Bt=!0,cancelTitle:en,cancelClick:vn,className:on,style:Ln,confirmLoading:Rn=!1})=>re.createElement("div",{className:je()(ye.btns,on),style:Ln},Ft&&re.createElement(qe.ZP,{loading:Rn,onClick:pt,type:"primary",className:ye.confirm},Vt),Bt&&re.createElement(qe.ZP,{onClick:vn,className:ye.cancel},en)),wt={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"},Yt=({className:Ft,style:Vt={},LeftContent:pt,children:Bt,RightContent:en})=>re.createElement("div",{className:je()(wt.fixedBottom,Ft),style:Vt},re.createElement("div",{className:wt.wrap},re.createElement("div",{className:wt.left},pt),re.createElement("div",{className:wt.center},Bt),re.createElement("div",{className:wt.right},en))),_t={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"},ln=({className:Ft,style:Vt={},dataSource:pt=[]})=>re.createElement("div",{className:je()(_t.crumbs,Ft),style:Vt},pt.map((Bt,en)=>en<pt.length-1?re.createElement(re.Fragment,{key:en},Bt.path||Bt.onClick?re.createElement("span",{className:_t.hover,onClick:Bt!=null&&Bt.onClick?Bt.onClick:()=>ot.history.push(Bt.path)},Bt.name):re.createElement("span",null,Bt.name),re.createElement("span",null,"\xA0",">","\xA0")):re.createElement("span",{key:en,style:{color:"#5F6368"}},Bt.name))),Pn=de(11938),pn=Object.defineProperty,Mn=Object.defineProperties,er=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,or=(Ft,Vt,pt)=>Vt in Ft?pn(Ft,Vt,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Ft[Vt]=pt,Gn=(Ft,Vt)=>{for(var pt in Vt||(Vt={}))ur.call(Vt,pt)&&or(Ft,pt,Vt[pt]);if(jn)for(var pt of jn(Vt))tr.call(Vt,pt)&&or(Ft,pt,Vt[pt]);return Ft},yn=(Ft,Vt)=>Mn(Ft,er(Vt)),Vn=(Ft,Vt)=>{var pt={};for(var Bt in Ft)ur.call(Ft,Bt)&&Vt.indexOf(Bt)<0&&(pt[Bt]=Ft[Bt]);if(Ft!=null&&jn)for(var Bt of jn(Ft))Vt.indexOf(Bt)<0&&tr.call(Ft,Bt)&&(pt[Bt]=Ft[Bt]);return pt};const{Countdown:zn}=Pn.default;var Qn=Ft=>{var Vt=Ft,{onChange:pt}=Vt,Bt=Vn(Vt,["onChange"]);const[en,vn]=(0,re.useState)(null);(0,re.useEffect)(()=>{typeof en=="number"&&en>=0&&pt(en)},[en]);const on=Ln=>{const Rn=Math.floor(Ln/1e3);vn(Rn)};return re.createElement(zn,yn(Gn({},Bt),{onChange:on}))}},31103:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return gt}});var re=de(59301);function gt(_e,ze){const me=(0,re.useRef)();(0,re.useEffect)(()=>{me.current=_e}),(0,re.useEffect)(()=>{function Ue(){me.current()}if(ze!==null){let Ae=setInterval(Ue,ze);return()=>clearInterval(Ae)}},[ze])}},18457:function(Rt,Zt,de){"use strict";de.r(Zt),de.d(Zt,{default:function(){return St}});var re=de(59301),gt=de(38147),_e={flex_box_center:"flex_box_center___XSfK9",flex_space_between:"flex_space_between___fNQw6",flex_box_vertical_center:"flex_box_vertical_center___lE1Os",flex_box_center_end:"flex_box_center_end___IyHt0",flex_box_column:"flex_box_column___s_S14",wrap:"wrap___jhaRK",title:"title___yHGiU",tags:"tags___NT3qR",tag:"tag___PxWDv",btns:"btns___NjqzR"},ze=de(6767),me=de(37568),Ue=de(71051),Ae={flex_box_center:"flex_box_center___yia5q",flex_space_between:"flex_space_between___WWLmb",flex_box_vertical_center:"flex_box_vertical_center___N_pbo",flex_box_center_end:"flex_box_center_end___DSwEA",flex_box_column:"flex_box_column___jCGMT",add:"add___QhmVz",row:"row___jUJhV",input:"input___rAwei",title:"title___IS6B6",list:"list___oafqL",listRow:"listRow___JbnHf",listNextRow:"listNextRow___zlQFB"},je=de(82636),ge=de(25374),pe=de(89392),De=de(65862),xe=de(65582),mt=(ht,at,he)=>new Promise((le,Pe)=>{var dt=Ne=>{try{be(he.next(Ne))}catch(Fe){Pe(Fe)}},ot=Ne=>{try{be(he.throw(Ne))}catch(Fe){Pe(Fe)}},be=Ne=>Ne.done?le(Ne.value):Promise.resolve(Ne.value).then(dt,ot);be((he=he.apply(ht,at)).next())}),Oe=({})=>{const ht=(0,xe.useParams)(),{virtual_spacesId:at,id:he}=ht,[le,Pe]=(0,re.useState)(""),[dt,ot]=(0,re.useState)([]),[be,Ne]=(0,re.useState)(!1);(0,re.useEffect)(()=>{he&&Fe()},[he]);const Fe=()=>mt(void 0,null,function*(){var Ee,Ye;const we=yield(0,gt.ZP)(`/api/virtual_classrooms/${ht.virtual_spacesId}/knowledge_systems/${he}/show_content.json`,{method:"get"});(we==null?void 0:we.status)!==-1&&(ot((Ee=we==null?void 0:we.members)==null?void 0:Ee.module_content),Pe((Ye=we==null?void 0:we.members)==null?void 0:Ye.module_name))}),Ct=()=>{const Ee={knowledge_point:"",content:"",target:"",class_hour:"",lesson_plan:""};ot([...dt,Ee])},it=Ee=>{const Ye=dt.filter((we,Ie)=>Ie!==Ee);ot(Ye)},Se=(Ee,Ye,we)=>{const Ie=(0,pe.cloneDeep)(dt);Ie[Ye][Ee]=we,ot(Ie)},ve=()=>mt(void 0,null,function*(){if(!le){ze.ZP.warning("\u8BF7\u8F93\u5165\u6A21\u5757\u540D\u79F0");return}if(!dt.length){ze.ZP.warning("\u8BF7\u6DFB\u52A0\u77E5\u8BC6\u70B9");return}Ne(!0);let Ee=`/api/virtual_classrooms/${ht.virtual_spacesId}/knowledge_systems/add_content.json`;he&&(Ee=`/api/virtual_classrooms/${ht.virtual_spacesId}/knowledge_systems/${he}/update_content.json`);const Ye=yield(0,gt.ZP)(Ee,{method:he?"put":"post",body:{module_content:dt,module_name:le,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});(Ye==null?void 0:Ye.status)!==-1&&(Ye==null?void 0:Ye.status)!==403&&(ze.ZP.success("\u64CD\u4F5C\u6210\u529F"),xe.history.push(`/${De.AS}/${ht.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)),Ne(!1)});return re.createElement("div",{style:{marginTop:he?30:0},className:Ae.add},re.createElement("div",{className:Ae.row},re.createElement("span",{className:"c-grey-666 font14 mr20"},"\u6A21\u5757\u540D\u79F0"),re.createElement(me.default,{placeholder:"\u8BF7\u8F93\u5165",onChange:Ee=>Pe(Ee.target.value),value:le,className:Ae.input})),re.createElement("div",{className:Ae.title},re.createElement("b",null),re.createElement("span",null,"\u6A21\u5757\u5185\u5BB9")),dt.map((Ee,Ye)=>{const{knowledge_point:we,content:Ie,target:qe,class_hour:nt,lesson_plan:ut}=Ee;return re.createElement("div",{className:Ae.list,key:Ye},re.createElement("div",{className:Ae.listRow},re.createElement("span",null,"\u77E5\u8BC6\u70B9"),re.createElement(me.default,{onChange:Ge=>Se("knowledge_point",Ye,Ge.target.value),value:we,placeholder:"\u8BF7\u8F93\u5165",className:Ae.input})),re.createElement("div",{className:Ae.listRow},re.createElement("span",null,"\u4E3B\u8981\u5185\u5BB9"),re.createElement(me.default.TextArea,{onChange:Ge=>Se("content",Ye,Ge.target.value),value:Ie,autoSize:{minRows:3,maxRows:6},className:Ae.input})),re.createElement("div",{className:Ae.listRow},re.createElement("span",null,"\u80FD\u529B\u76EE\u6807"),re.createElement(me.default.TextArea,{onChange:Ge=>Se("target",Ye,Ge.target.value),value:qe,autoSize:{minRows:3,maxRows:6},className:Ae.input})),re.createElement("div",{className:Ae.listRow},re.createElement("span",null,"\u53C2\u8003\u5B66\u65F6"),re.createElement(Ue.Z,{onChange:Ge=>Se("class_hour",Ye,Ge),precision:1,min:.1,value:nt,className:Ae.input})),re.createElement("div",{className:Ae.listNextRow},re.createElement("span",null,"\u6559\u6848"),re.createElement("div",{style:{flex:1}},re.createElement(ge.Z,{onChange:Ge=>Se("lesson_plan",Ye,Ge),defaultValue:ut,height:280,values:"2222"})),re.createElement("i",{onClick:()=>it(Ye),className:"iconfont icon-piliangshanchubeifen"})))}),re.createElement(je.op,{onClick:Ct,style:{display:"inline-block",marginTop:20}},re.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u65B0\u589E\u77E5\u8BC6\u70B9"),re.createElement(je.QD,{confirmTitle:"\u786E\u8BA4\u53D1\u5E03",confirmLoading:be,confirmClick:ve,cancelClick:()=>{xe.history.push(`/${De.AS}/${ht.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt20"}))},Ze=de(62957),Le=de(77019),vt=de(14566),ft={flex_box_center:"flex_box_center___MWmFU",flex_space_between:"flex_space_between___YKGNN",flex_box_vertical_center:"flex_box_vertical_center___DDTno",flex_box_center_end:"flex_box_center_end___nE28i",flex_box_column:"flex_box_column___OZbik"},At=de(74128),tt=de(70031),Qe=de(59301),st=Object.defineProperty,et=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Je=(ht,at,he)=>at in ht?st(ht,at,{enumerable:!0,configurable:!0,writable:!0,value:he}):ht[at]=he,Dt=(ht,at)=>{for(var he in at||(at={}))jt.call(at,he)&&Je(ht,he,at[he]);if(et)for(var he of et(at))We.call(at,he)&&Je(ht,he,at[he]);return ht},Ce=(ht,at,he)=>new Promise((le,Pe)=>{var dt=Ne=>{try{be(he.next(Ne))}catch(Fe){Pe(Fe)}},ot=Ne=>{try{be(he.throw(Ne))}catch(Fe){Pe(Fe)}},be=Ne=>Ne.done?le(Ne.value):Promise.resolve(Ne.value).then(dt,ot);be((he=he.apply(ht,at)).next())}),Be=({})=>{const ht=(0,xe.useParams)(),{virtual_spacesId:at}=ht,[he,le]=(0,re.useState)([]),[Pe,dt]=(0,re.useState)(!1),ot={onRemove:()=>{le([])},beforeUpload:Ne=>{var Fe,Ct,it;let Se=(it=Ne==null?void 0:Ne.name)==null?void 0:it.substring((Fe=Ne==null?void 0:Ne.name)==null?void 0:Fe.lastIndexOf("."),(Ct=Ne==null?void 0:Ne.name)==null?void 0:Ct.length);if(Se=Se==null?void 0:Se.toLowerCase(),Se!==".xls"&&Se!==".xlsx")return ze.ZP.error("\u53EA\u80FD\u4E0A\u4F20.xls,.xlsx\u683C\u5F0F\u7684\u6587\u6863"),Promise.reject();let ve=[];return ve.push(Ne),le([...ve]),Promise.reject()},fileList:he,accept:".xls,.xlsx"},be=()=>Ce(void 0,null,function*(){var Ne;if((he==null?void 0:he.length)<=0){ze.ZP.info("\u8BF7\u4E0A\u4F20\u6587\u4EF6");return}const Fe=new FormData;Fe.append("file",he[0]),Fe.append("virtual_module_id",window.localStorage.getItem("vtrsModuleId")),dt(!0);let Ct=`/api/virtual_classrooms/${ht.virtual_spacesId}/knowledge_systems/batch_import.json`;const it=yield(0,gt.ZP)(Ct,{method:"post",body:Fe},!0);(it==null?void 0:it.status)!==-1&&(it==null?void 0:it.status)!==403&&Ze.default.info({centered:!0,keyboard:!1,maskClosable:!1,okText:"\u786E\u5B9A",icon:null,title:"\u63D0\u793A",className:tt.Z.CustomTipsModalCss,content:Qe.createElement("div",null,Qe.createElement("div",null,"\u6210\u529F",it==null?void 0:it.success,"\u6761"),Qe.createElement("div",null,"\u5931\u8D25",((Ne=it==null?void 0:it.fail)==null?void 0:Ne.length)||0,"\u6761")),onOk:()=>{xe.history.push(`/${De.AS}/${ht.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}}),dt(!1)});return Qe.createElement("div",{className:ft.add},Qe.createElement(Le.Z,{className:"mt20"},Qe.createElement("div",{className:"c-grey-666 font14 mr20 pt5"},"\u4E0A\u4F20\u6587\u4EF6"),Qe.createElement("div",null,Qe.createElement(vt.default,Dt({},ot),Qe.createElement(je.op,{style:{borderRadius:2}},Qe.createElement("i",{className:"iconfont icon-tianjiashitixiaojiahao font14 mr5"}),"\u9009\u62E9\u6587\u4EF6")),Qe.createElement("div",{className:"c-grey-666 font14 mt35"},"\u6CE8\u610F\uFF1A"),Qe.createElement("div",{className:"c-grey-666 font14 pt5 pb5"},"1\u3001\u4EC5\u652F\u6301\u4E0A\u4F20.xlsx \u6216 .xls\u7C7B\u578B\u7684\u6587\u4EF6"),Qe.createElement("div",{className:"c-grey-666 font14"},"2\u3001\u9700\u6309\u7167\u6307\u5B9A\u6A21\u677F\u4E0A\u4F20\u6570\u636E ",Qe.createElement("a",{className:"ml5 mr5",onClick:()=>Ce(void 0,null,function*(){(0,De.FH)("",(0,De.NY)({url:At.Z.API_SERVER+"/api/virtual_classrooms/download_content_module_template",query:{}}))})},"\u70B9\u51FB\u4E0B\u8F7D\u6A21\u677F")))),Qe.createElement(je.QD,{confirmTitle:"\u786E\u8BA4\u4E0A\u4F20",confirmLoading:Pe,confirmClick:be,cancelClick:()=>{xe.history.push(`/${De.AS}/${ht.virtual_spacesId}/knowledge?active=desc&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},cancelTitle:"\u53D6\u6D88",className:"mb25 mt20"}))},Xe=(ht,at,he)=>new Promise((le,Pe)=>{var dt=Ne=>{try{be(he.next(Ne))}catch(Fe){Pe(Fe)}},ot=Ne=>{try{be(he.throw(Ne))}catch(Fe){Pe(Fe)}},be=Ne=>Ne.done?le(Ne.value):Promise.resolve(Ne.value).then(dt,ot);be((he=he.apply(ht,at)).next())}),St=({})=>{const ht=(0,xe.useParams)(),[at,he]=(0,re.useState)("1"),{virtual_spacesId:le,id:Pe}=ht,[dt,ot]=(0,re.useState)(!1);(0,re.useEffect)(()=>{Ne()},[]);const be=[{id:"1",name:"\u5355\u4E2A\u65B0\u589E"},{id:"2",name:"\u6279\u91CF\u5BFC\u5165"}],Ne=()=>Xe(void 0,null,function*(){(yield(0,gt.ZP)(`/api/virtual_classrooms/${le}/settings_auth.json`,{method:"get"})).status===0&&ot(!0)});return dt?re.createElement("div",{className:_e.wrap},re.createElement(je.qE,{title:Pe?"\u7F16\u8F91\u77E5\u8BC6\u70B9\u6A21\u5757":"\u65B0\u5EFA\u77E5\u8BC6\u70B9\u6A21\u5757",onClick:()=>xe.history.push(`/${De.AS}/${le}/knowledge?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}),!Pe&&re.createElement(je.qp,{titleWidth:56,dataSource:be,className:"mt25",title:"\u65B0\u589E\u6A21\u5F0F",value:at,onChange:Fe=>he(Fe)}),at==="1"&&re.createElement(Oe,null),at==="2"&&re.createElement(Be,null)):re.createElement(re.Fragment,null)}},49142:function(Rt,Zt,de){"use strict";de.d(Zt,{AL:function(){return tt},Iy:function(){return De},Qv:function(){return Ke},ez:function(){return At},jb:function(){return xe}});var re=de(32834),gt=de.n(re),_e=de(11690),ze=de.n(_e);let me=1;function Ue(We,Je){const Dt=We.match(/^(\s+)(?:```)/);if(Dt===null)return Je;const Ce=Dt[1];return Je.split(`
`).map($e=>{const Be=$e.match(/^\s+/);if(Be===null)return $e;const[Xe]=Be;return Xe.length>=Ce.length?$e.slice(Ce.length):$e}).join(`
`)}let Ae=[],je=["<ul>"];const ge=new(gt()).Renderer,pe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function De(){Ae.length=0,je=["<ul>"]}const xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function mt(We,Je,Dt,Ce){if(Je>=We.length||We[Je].level<=Dt)return Je;var $e=We[Je];Ce.push("<li><a href='#"+me+$e.anchor+"'>"+$e.text+"</a>"),Je++;var Be=[];return Je=mt(We,Je,$e.level,Be),Be.length>0&&(Ce.push("<ul>"),Be.forEach(function(Xe){Ce.push(Xe)}),Ce.push("</ul>")),Ce.push("</li>"),Je=mt(We,Je,Dt,Ce),Je}function Ke(){return mt(Ae,0,0,je),je.push("</ul>"),je.join("")}const Oe={heading(We){const Je=pe.exec(We);if(me+=1,Je)return{type:"heading",raw:Je[0],depth:Je[1].length,text:Je[2]}},fences(We){const Je=this.rules.block.fences.exec(We);if(Je){const Dt=Je[0];let Ce=Ue(Dt,Je[3]||"");const $e=Je[2]?Je[2].trim():Je[2];if(["latex","katex","math"].indexOf($e)>=0){const Be=vt(),Xe=Ce;Ce=Be,ft[Be]={type:"block",expression:Xe}}return{type:"code",raw:Dt,lang:$e,text:Ce}}}},Ze=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Le=0;const vt=()=>`__special_katext_id_${Le++}__`;let ft={};function At(){return ft}function tt(){Le=0,ft={}}function Qe(We){return We=We.replace(Ze,(Je,Dt)=>{const Ce=vt();return ft[Ce]={type:"inline",expression:Dt},Ce}),We}const st=ge.listitem;ge.listitem=function(We){return st(Qe(We))};const et=ge.paragraph;ge.paragraph=function(We){return et(Qe(We))};const jt=ge.tablecell;ge.tablecell=function(We,Je){return jt(Qe(We),Je)},ge.code=function(We,Je,Dt){const Ce=(Je||"").match(/\S*/)[0];return Ce?["latex","katex","math"].indexOf(Ce)>=0?`<p class='editormd-tex'>${We}</p>`:`<pre class="prettyprint linenums"><code class="language-${Je}">${Dt?We:(0,_e.escape)(We,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Dt?We:(0,_e.escape)(We,!0))+"</code></pre>"},ge.heading=function(We,Je,Dt){let Ce=this.options.headerPrefix+Dt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ae.push({anchor:Ce,level:Je,text:We}),"<h"+Je+' id="'+me+Ce+'">'+We+"</h"+Je+">"},gt().setOptions({silent:!0,gfm:!0,pedantic:!1}),gt().use({tokenizer:Oe,renderer:ge}),Zt.ZP=gt()},99498:function(Rt,Zt,de){(function(re){re(de(89780))})(function(re){re.defineOption("placeholder","",function(je,ge,pe){var De=pe&&pe!=re.Init;if(ge&&!De)je.on("blur",me),je.on("change",Ue),je.on("swapDoc",Ue),re.on(je.getInputField(),"compositionupdate",je.state.placeholderCompose=function(){ze(je)}),Ue(je);else if(!ge&&De){je.off("blur",me),je.off("change",Ue),je.off("swapDoc",Ue),re.off(je.getInputField(),"compositionupdate",je.state.placeholderCompose),gt(je);var xe=je.getWrapperElement();xe.className=xe.className.replace(" CodeMirror-empty","")}ge&&!je.hasFocus()&&me(je)});function gt(je){je.state.placeholder&&(je.state.placeholder.parentNode.removeChild(je.state.placeholder),je.state.placeholder=null)}function _e(je){gt(je);var ge=je.state.placeholder=document.createElement("pre");ge.style.cssText="height: 0; overflow: visible",ge.style.direction=je.getOption("direction"),ge.className="CodeMirror-placeholder CodeMirror-line-like";var pe=je.getOption("placeholder");typeof pe=="string"&&(pe=document.createTextNode(pe)),ge.appendChild(pe),je.display.lineSpace.insertBefore(ge,je.display.lineSpace.firstChild)}function ze(je){setTimeout(function(){var ge=!1,pe=je.getInputField();pe.nodeName=="TEXTAREA"?ge=!pe.value:je.lineCount()==1&&(ge=!/[^\u200b]/.test(pe.querySelector(".CodeMirror-line").textContent)),ge?_e(je):gt(je)},20)}function me(je){Ae(je)&&_e(je)}function Ue(je){var ge=je.getWrapperElement(),pe=Ae(je);ge.className=ge.className.replace(" CodeMirror-empty","")+(pe?" CodeMirror-empty":""),pe?_e(je):gt(je)}function Ae(je){return je.lineCount()===1&&je.getLine(0)===""}})},25717:function(Rt,Zt,de){(function(re){re(de(89780))})(function(re){var gt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},_e=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Oe,Ze,Le){Le&&Le!=re.Init&&(Oe.removeKeyMap(me),Oe.state.closeBrackets=null),Ze&&(Ue(ze(Ze,"pairs")),Oe.state.closeBrackets=Ze,Oe.addKeyMap(me))});function ze(Oe,Ze){return Ze=="pairs"&&typeof Oe=="string"?Oe:typeof Oe=="object"&&Oe[Ze]!=null?Oe[Ze]:gt[Ze]}var me={Backspace:ge,Enter:pe};function Ue(Oe){for(var Ze=0;Ze<Oe.length;Ze++){var Le=Oe.charAt(Ze),vt="'"+Le+"'";me[vt]||(me[vt]=Ae(Le))}}Ue(gt.pairs+"`");function Ae(Oe){return function(Ze){return xe(Ze,Oe)}}function je(Oe){var Ze=Oe.state.closeBrackets;if(!Ze||Ze.override)return Ze;var Le=Oe.getModeAt(Oe.getCursor());return Le.closeBrackets||Ze}function ge(Oe){var Ze=je(Oe);if(!Ze||Oe.getOption("disableInput"))return re.Pass;for(var Le=ze(Ze,"pairs"),vt=Oe.listSelections(),ft=0;ft<vt.length;ft++){if(!vt[ft].empty())return re.Pass;var At=mt(Oe,vt[ft].head);if(!At||Le.indexOf(At)%2!=0)return re.Pass}for(var ft=vt.length-1;ft>=0;ft--){var tt=vt[ft].head;Oe.replaceRange("",_e(tt.line,tt.ch-1),_e(tt.line,tt.ch+1),"+delete")}}function pe(Oe){var Ze=je(Oe),Le=Ze&&ze(Ze,"explode");if(!Le||Oe.getOption("disableInput"))return re.Pass;for(var vt=Oe.listSelections(),ft=0;ft<vt.length;ft++){if(!vt[ft].empty())return re.Pass;var At=mt(Oe,vt[ft].head);if(!At||Le.indexOf(At)%2!=0)return re.Pass}Oe.operation(function(){var tt=Oe.lineSeparator()||`
`;Oe.replaceSelection(tt+tt,null),Oe.execCommand("goCharLeft"),vt=Oe.listSelections();for(var Qe=0;Qe<vt.length;Qe++){var st=vt[Qe].head.line;Oe.indentLine(st,null,!0),Oe.indentLine(st+1,null,!0)}})}function De(Oe){var Ze=re.cmpPos(Oe.anchor,Oe.head)>0;return{anchor:new _e(Oe.anchor.line,Oe.anchor.ch+(Ze?-1:1)),head:new _e(Oe.head.line,Oe.head.ch+(Ze?1:-1))}}function xe(Oe,Ze){var Le=je(Oe);if(!Le||Oe.getOption("disableInput"))return re.Pass;var vt=ze(Le,"pairs"),ft=vt.indexOf(Ze);if(ft==-1)return re.Pass;for(var At=ze(Le,"closeBefore"),tt=ze(Le,"triples"),Qe=vt.charAt(ft+1)==Ze,st=Oe.listSelections(),et=ft%2==0,jt,We=0;We<st.length;We++){var Je=st[We],Dt=Je.head,Ce,$e=Oe.getRange(Dt,_e(Dt.line,Dt.ch+1));if(et&&!Je.empty())Ce="surround";else if((Qe||!et)&&$e==Ze)Qe&&Ke(Oe,Dt)?Ce="both":tt.indexOf(Ze)>=0&&Oe.getRange(Dt,_e(Dt.line,Dt.ch+3))==Ze+Ze+Ze?Ce="skipThree":Ce="skip";else if(Qe&&Dt.ch>1&&tt.indexOf(Ze)>=0&&Oe.getRange(_e(Dt.line,Dt.ch-2),Dt)==Ze+Ze){if(Dt.ch>2&&/\bstring/.test(Oe.getTokenTypeAt(_e(Dt.line,Dt.ch-2))))return re.Pass;Ce="addFour"}else if(Qe){var Be=Dt.ch==0?" ":Oe.getRange(_e(Dt.line,Dt.ch-1),Dt);if(!re.isWordChar($e)&&Be!=Ze&&!re.isWordChar(Be))Ce="both";else return re.Pass}else if(et&&($e.length===0||/\s/.test($e)||At.indexOf($e)>-1))Ce="both";else return re.Pass;if(!jt)jt=Ce;else if(jt!=Ce)return re.Pass}var Xe=ft%2?vt.charAt(ft-1):Ze,Gt=ft%2?Ze:vt.charAt(ft+1);Oe.operation(function(){if(jt=="skip")Oe.execCommand("goCharRight");else if(jt=="skipThree")for(var St=0;St<3;St++)Oe.execCommand("goCharRight");else if(jt=="surround"){for(var ht=Oe.getSelections(),St=0;St<ht.length;St++)ht[St]=Xe+ht[St]+Gt;Oe.replaceSelections(ht,"around"),ht=Oe.listSelections().slice();for(var St=0;St<ht.length;St++)ht[St]=De(ht[St]);Oe.setSelections(ht)}else jt=="both"?(Oe.replaceSelection(Xe+Gt,null),Oe.triggerElectric(Xe+Gt),Oe.execCommand("goCharLeft")):jt=="addFour"&&(Oe.replaceSelection(Xe+Xe+Xe+Xe,"before"),Oe.execCommand("goCharRight"))})}function mt(Oe,Ze){var Le=Oe.getRange(_e(Ze.line,Ze.ch-1),_e(Ze.line,Ze.ch+1));return Le.length==2?Le:null}function Ke(Oe,Ze){var Le=Oe.getTokenAt(_e(Ze.line,Ze.ch+1));return/\bstring/.test(Le.type)&&Le.start==Ze.ch&&(Ze.ch==0||!/\bstring/.test(Oe.getTokenTypeAt(Ze)))}})},6313:function(Rt,Zt,de){(function(re){re(de(89780),de(32855))})(function(re){re.defineOption("autoCloseTags",!1,function(ge,pe,De){if(De!=re.Init&&De&&ge.removeKeyMap("autoCloseTags"),!!pe){var xe={name:"autoCloseTags"};(typeof pe!="object"||pe.whenClosing!==!1)&&(xe["'/'"]=function(mt){return Ue(mt)}),(typeof pe!="object"||pe.whenOpening!==!1)&&(xe["'>'"]=function(mt){return ze(mt)}),ge.addKeyMap(xe)}});var gt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],_e=["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 ze(ge){if(ge.getOption("disableInput"))return re.Pass;for(var pe=ge.listSelections(),De=[],xe=ge.getOption("autoCloseTags"),mt=0;mt<pe.length;mt++){if(!pe[mt].empty())return re.Pass;var Ke=pe[mt].head,Oe=ge.getTokenAt(Ke),Ze=re.innerMode(ge.getMode(),Oe.state),Le=Ze.state,vt=Ze.mode.xmlCurrentTag&&Ze.mode.xmlCurrentTag(Le),ft=vt&&vt.name;if(!ft)return re.Pass;var At=Ze.mode.configuration=="html",tt=typeof xe=="object"&&xe.dontCloseTags||At&&gt,Qe=typeof xe=="object"&&xe.indentTags||At&&_e;Oe.end>Ke.ch&&(ft=ft.slice(0,ft.length-Oe.end+Ke.ch));var st=ft.toLowerCase();if(!ft||Oe.type=="string"&&(Oe.end!=Ke.ch||!/[\"\']/.test(Oe.string.charAt(Oe.string.length-1))||Oe.string.length==1)||Oe.type=="tag"&&vt.close||Oe.string.indexOf("/")==Ke.ch-Oe.start-1||tt&&Ae(tt,st)>-1||je(ge,Ze.mode.xmlCurrentContext&&Ze.mode.xmlCurrentContext(Le)||[],ft,Ke,!0))return re.Pass;var et=typeof xe=="object"&&xe.emptyTags;if(et&&Ae(et,ft)>-1){De[mt]={text:"/>",newPos:re.Pos(Ke.line,Ke.ch+2)};continue}var jt=Qe&&Ae(Qe,st)>-1;De[mt]={indent:jt,text:">"+(jt?`
`:"")+"</"+ft+">",newPos:jt?re.Pos(Ke.line+1,0):re.Pos(Ke.line,Ke.ch+1)}}for(var We=typeof xe=="object"&&xe.dontIndentOnAutoClose,mt=pe.length-1;mt>=0;mt--){var Je=De[mt];ge.replaceRange(Je.text,pe[mt].head,pe[mt].anchor,"+insert");var Dt=ge.listSelections().slice(0);Dt[mt]={head:Je.newPos,anchor:Je.newPos},ge.setSelections(Dt),!We&&Je.indent&&(ge.indentLine(Je.newPos.line,null,!0),ge.indentLine(Je.newPos.line+1,null,!0))}}function me(ge,pe){for(var De=ge.listSelections(),xe=[],mt=pe?"/":"</",Ke=ge.getOption("autoCloseTags"),Oe=typeof Ke=="object"&&Ke.dontIndentOnSlash,Ze=0;Ze<De.length;Ze++){if(!De[Ze].empty())return re.Pass;var Le=De[Ze].head,vt=ge.getTokenAt(Le),ft=re.innerMode(ge.getMode(),vt.state),At=ft.state;if(pe&&(vt.type=="string"||vt.string.charAt(0)!="<"||vt.start!=Le.ch-1))return re.Pass;var tt,Qe=ft.mode.name!="xml"&&ge.getMode().name=="htmlmixed";if(Qe&&ft.mode.name=="javascript")tt=mt+"script";else if(Qe&&ft.mode.name=="css")tt=mt+"style";else{var st=ft.mode.xmlCurrentContext&&ft.mode.xmlCurrentContext(At);if(!st||st.length&&je(ge,st,st[st.length-1],Le))return re.Pass;tt=mt+st[st.length-1]}ge.getLine(Le.line).charAt(vt.end)!=">"&&(tt+=">"),xe[Ze]=tt}if(ge.replaceSelections(xe),De=ge.listSelections(),!Oe)for(var Ze=0;Ze<De.length;Ze++)(Ze==De.length-1||De[Ze].head.line<De[Ze+1].head.line)&&ge.indentLine(De[Ze].head.line)}function Ue(ge){return ge.getOption("disableInput")?re.Pass:me(ge,!0)}re.commands.closeTag=function(ge){return me(ge)};function Ae(ge,pe){if(ge.indexOf)return ge.indexOf(pe);for(var De=0,xe=ge.length;De<xe;++De)if(ge[De]==pe)return De;return-1}function je(ge,pe,De,xe,mt){if(!re.scanForClosingTag)return!1;var Ke=Math.min(ge.lastLine()+1,xe.line+500),Oe=re.scanForClosingTag(ge,xe,null,Ke);if(!Oe||Oe.tag!=De)return!1;for(var Ze=mt?1:0,Le=pe.length-1;Le>=0&&pe[Le]==De;Le--)++Ze;xe=Oe.to;for(var Le=1;Le<Ze;Le++){var vt=re.scanForClosingTag(ge,xe,null,Ke);if(!vt||vt.tag!=De)return!1;xe=vt.to}return!0}})},32855:function(Rt,Zt,de){(function(re){re(de(89780))})(function(re){"use strict";var gt=re.Pos;function _e(Le,vt){return Le.line-vt.line||Le.ch-vt.ch}var ze="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",me=ze+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ue=new RegExp("<(/?)(["+ze+"]["+me+"]*)","g");function Ae(Le,vt,ft,At){this.line=vt,this.ch=ft,this.cm=Le,this.text=Le.getLine(vt),this.min=At?Math.max(At.from,Le.firstLine()):Le.firstLine(),this.max=At?Math.min(At.to-1,Le.lastLine()):Le.lastLine()}function je(Le,vt){var ft=Le.cm.getTokenTypeAt(gt(Le.line,vt));return ft&&/\btag\b/.test(ft)}function ge(Le){if(!(Le.line>=Le.max))return Le.ch=0,Le.text=Le.cm.getLine(++Le.line),!0}function pe(Le){if(!(Le.line<=Le.min))return Le.text=Le.cm.getLine(--Le.line),Le.ch=Le.text.length,!0}function De(Le){for(;;){var vt=Le.text.indexOf(">",Le.ch);if(vt==-1){if(ge(Le))continue;return}if(!je(Le,vt+1)){Le.ch=vt+1;continue}var ft=Le.text.lastIndexOf("/",vt),At=ft>-1&&!/\S/.test(Le.text.slice(ft+1,vt));return Le.ch=vt+1,At?"selfClose":"regular"}}function xe(Le){for(;;){var vt=Le.ch?Le.text.lastIndexOf("<",Le.ch-1):-1;if(vt==-1){if(pe(Le))continue;return}if(!je(Le,vt+1)){Le.ch=vt;continue}Ue.lastIndex=vt,Le.ch=vt;var ft=Ue.exec(Le.text);if(ft&&ft.index==vt)return ft}}function mt(Le){for(;;){Ue.lastIndex=Le.ch;var vt=Ue.exec(Le.text);if(!vt){if(ge(Le))continue;return}if(!je(Le,vt.index+1)){Le.ch=vt.index+1;continue}return Le.ch=vt.index+vt[0].length,vt}}function Ke(Le){for(;;){var vt=Le.ch?Le.text.lastIndexOf(">",Le.ch-1):-1;if(vt==-1){if(pe(Le))continue;return}if(!je(Le,vt+1)){Le.ch=vt;continue}var ft=Le.text.lastIndexOf("/",vt),At=ft>-1&&!/\S/.test(Le.text.slice(ft+1,vt));return Le.ch=vt+1,At?"selfClose":"regular"}}function Oe(Le,vt){for(var ft=[];;){var At=mt(Le),tt,Qe=Le.line,st=Le.ch-(At?At[0].length:0);if(!At||!(tt=De(Le)))return;if(tt!="selfClose")if(At[1]){for(var et=ft.length-1;et>=0;--et)if(ft[et]==At[2]){ft.length=et;break}if(et<0&&(!vt||vt==At[2]))return{tag:At[2],from:gt(Qe,st),to:gt(Le.line,Le.ch)}}else ft.push(At[2])}}function Ze(Le,vt){for(var ft=[];;){var At=Ke(Le);if(!At)return;if(At=="selfClose"){xe(Le);continue}var tt=Le.line,Qe=Le.ch,st=xe(Le);if(!st)return;if(st[1])ft.push(st[2]);else{for(var et=ft.length-1;et>=0;--et)if(ft[et]==st[2]){ft.length=et;break}if(et<0&&(!vt||vt==st[2]))return{tag:st[2],from:gt(Le.line,Le.ch),to:gt(tt,Qe)}}}}re.registerHelper("fold","xml",function(Le,vt){for(var ft=new Ae(Le,vt.line,0);;){var At=mt(ft);if(!At||ft.line!=vt.line)return;var tt=De(ft);if(!tt)return;if(!At[1]&&tt!="selfClose"){var Qe=gt(ft.line,ft.ch),st=Oe(ft,At[2]);return st&&_e(st.from,Qe)>0?{from:Qe,to:st.from}:null}}}),re.findMatchingTag=function(Le,vt,ft){var At=new Ae(Le,vt.line,vt.ch,ft);if(!(At.text.indexOf(">")==-1&&At.text.indexOf("<")==-1)){var tt=De(At),Qe=tt&&gt(At.line,At.ch),st=tt&&xe(At);if(!(!tt||!st||_e(At,vt)>0)){var et={from:gt(At.line,At.ch),to:Qe,tag:st[2]};return tt=="selfClose"?{open:et,close:null,at:"open"}:st[1]?{open:Ze(At,st[2]),close:et,at:"close"}:(At=new Ae(Le,Qe.line,Qe.ch,ft),{open:et,close:Oe(At,st[2]),at:"open"})}}},re.findEnclosingTag=function(Le,vt,ft,At){for(var tt=new Ae(Le,vt.line,vt.ch,ft);;){var Qe=Ze(tt,At);if(!Qe)break;var st=new Ae(Le,vt.line,vt.ch,ft),et=Oe(st,Qe.tag);if(et)return{open:Qe,close:et}}},re.scanForClosingTag=function(Le,vt,ft,At){var tt=new Ae(Le,vt.line,vt.ch,At?{from:0,to:At}:null);return Oe(tt,ft)}})},89780:function(Rt){(function(Zt,de){Rt.exports=de()})(this,function(){"use strict";var Zt=navigator.userAgent,de=navigator.platform,re=/gecko\/\d/i.test(Zt),gt=/MSIE \d/.test(Zt),_e=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),ze=/Edge\/(\d+)/.exec(Zt),me=gt||_e||ze,Ue=me&&(gt?document.documentMode||6:+(ze||_e)[1]),Ae=!ze&&/WebKit\//.test(Zt),je=Ae&&/Qt\/\d+\.\d+/.test(Zt),ge=!ze&&/Chrome\//.test(Zt),pe=/Opera\//.test(Zt),De=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),mt=/PhantomJS/.test(Zt),Ke=!ze&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),Oe=/Android/.test(Zt),Ze=Ke||Oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),Le=Ke||/Mac/.test(de),vt=/\bCrOS\b/.test(Zt),ft=/win/i.test(de),At=pe&&Zt.match(/Version\/(\d*\.\d*)/);At&&(At=Number(At[1])),At&&At>=15&&(pe=!1,Ae=!0);var tt=Le&&(je||pe&&(At==null||At<12.11)),Qe=re||me&&Ue>=9;function st(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var et=function(a,y){var x=a.className,b=st(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function jt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function We(a,y){return jt(a).appendChild(y)}function Je(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var z=0;z<y.length;++z)E.appendChild(y[z]);return E}function Dt(a,y,x,b){var E=Je(a,y,x,b);return E.setAttribute("role","presentation"),E}var Ce;document.createRange?Ce=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Ce=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(E){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function $e(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 Xe(a,y){var x=a.className;st(y).test(x)||(a.className+=(x?" ":"")+y)}function Gt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!st(x[b]).test(y)&&(y+=" "+x[b]);return y}var St=function(a){a.select()};Ke?St=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:me&&(St=function(a){try{a.select()}catch(y){}});function ht(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function at(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function he(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var z=b||0,ie=E||0;;){var ae=a.indexOf(" ",z);if(ae<0||ae>=y)return ie+(y-z);ie+=ae-z,ie+=x-ie%x,z=ae+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=ht(this.onTimeout,this)};le.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},le.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function Pe(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var dt=50,ot={toString:function(){return"CodeMirror.Pass"}},be={scroll:!1},Ne={origin:"*mouse"},Fe={origin:"+move"};function Ct(a,y,x){for(var b=0,E=0;;){var z=a.indexOf(" ",b);z==-1&&(z=a.length);var ie=z-b;if(z==a.length||E+ie>=y)return b+Math.min(ie,y-E);if(E+=z-b,E+=x-E%x,b=z+1,E>=y)return b}}var it=[""];function Se(a){for(;it.length<=a;)it.push(ve(it)+" ");return it[a]}function ve(a){return a[a.length-1]}function Ee(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function Ye(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function we(){}function Ie(a,y){var x;return Object.create?x=Object.create(a):(we.prototype=a,x=new we),y&&at(y,x),x}var qe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function nt(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||qe.test(a))}function ut(a,y){return y?y.source.indexOf("\\w")>-1&&nt(a)?!0:y.test(a):nt(a)}function Ge(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var xt=/[\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 kt(a){return a.charCodeAt(0)>=768&&xt.test(a)}function Qt(a,y,x){for(;(x<0?y>0:y<a.length)&&kt(a.charAt(y));)y+=x;return y}function It(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,z=b<0?Math.ceil(E):Math.floor(E);if(z==y)return a(z)?y:x;a(z)?x=z:y=z+b}}function se(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,z=0;z<a.length;++z){var ie=a[z];(ie.from<x&&ie.to>y||y==x&&ie.to==y)&&(b(Math.max(ie.from,y),Math.min(ie.to,x),ie.level==1?"rtl":"ltr",z),E=!0)}E||b(y,x,"ltr")}var te=null;function ee(a,y,x){var b;te=null;for(var E=0;E<a.length;++E){var z=a[E];if(z.from<y&&z.to>y)return E;z.to==y&&(z.from!=z.to&&x=="before"?b=E:te=E),z.from==y&&(z.from!=z.to&&x!="before"?b=E:te=E)}return b!=null?b:te}var oe=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(fe){return fe<=247?a.charAt(fe):1424<=fe&&fe<=1524?"R":1536<=fe&&fe<=1785?y.charAt(fe-1536):1774<=fe&&fe<=2220?"r":8192<=fe&&fe<=8203?"w":fe==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,z=/[LRr]/,ie=/[Lb1n]/,ae=/[1n]/;function ue(fe,ke,Me){this.level=fe,this.from=ke,this.to=Me}return function(fe,ke){var Me=ke=="ltr"?"L":"R";if(fe.length==0||ke=="ltr"&&!b.test(fe))return!1;for(var lt=fe.length,rt=[],Tt=0;Tt<lt;++Tt)rt.push(x(fe.charCodeAt(Tt)));for(var zt=0,nn=Me;zt<lt;++zt){var fn=rt[zt];fn=="m"?rt[zt]=nn:nn=fn}for(var xn=0,hn=Me;xn<lt;++xn){var Dn=rt[xn];Dn=="1"&&hn=="r"?rt[xn]="n":z.test(Dn)&&(hn=Dn,Dn=="r"&&(rt[xn]="R"))}for(var Wn=1,In=rt[0];Wn<lt-1;++Wn){var ir=rt[Wn];ir=="+"&&In=="1"&&rt[Wn+1]=="1"?rt[Wn]="1":ir==","&&In==rt[Wn+1]&&(In=="1"||In=="n")&&(rt[Wn]=In),In=ir}for(var Ir=0;Ir<lt;++Ir){var si=rt[Ir];if(si==",")rt[Ir]="N";else if(si=="%"){var Gr=void 0;for(Gr=Ir+1;Gr<lt&&rt[Gr]=="%";++Gr);for(var Pi=Ir&&rt[Ir-1]=="!"||Gr<lt&&rt[Gr]=="1"?"1":"N",ki=Ir;ki<Gr;++ki)rt[ki]=Pi;Ir=Gr-1}}for(var qr=0,Ei=Me;qr<lt;++qr){var di=rt[qr];Ei=="L"&&di=="1"?rt[qr]="L":z.test(di)&&(Ei=di)}for(var ri=0;ri<lt;++ri)if(E.test(rt[ri])){var $r=void 0;for($r=ri+1;$r<lt&&E.test(rt[$r]);++$r);for(var Ur=(ri?rt[ri-1]:Me)=="L",Ai=($r<lt?rt[$r]:Me)=="L",Vo=Ur==Ai?Ur?"L":"R":Me,bo=ri;bo<$r;++bo)rt[bo]=Vo;ri=$r-1}for(var pi=[],eo,li=0;li<lt;)if(ie.test(rt[li])){var bs=li;for(++li;li<lt&&ie.test(rt[li]);++li);pi.push(new ue(0,bs,li))}else{var oo=li,Lo=pi.length,Mo=ke=="rtl"?1:0;for(++li;li<lt&&rt[li]!="L";++li);for(var bi=oo;bi<li;)if(ae.test(rt[bi])){oo<bi&&(pi.splice(Lo,0,new ue(1,oo,bi)),Lo+=Mo);var Uo=bi;for(++bi;bi<li&&ae.test(rt[bi]);++bi);pi.splice(Lo,0,new ue(2,Uo,bi)),Lo+=Mo,oo=bi}else++bi;oo<li&&pi.splice(Lo,0,new ue(1,oo,li))}return ke=="ltr"&&(pi[0].level==1&&(eo=fe.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new ue(0,0,eo[0].length))),ve(pi).level==1&&(eo=fe.match(/\s+$/))&&(ve(pi).to-=eo[0].length,pi.push(new ue(0,lt-eo[0].length,lt)))),ke=="rtl"?pi.reverse():pi}}();function ce(a,y){var x=a.order;return x==null&&(x=a.order=oe(a.text,y)),x}var ne=[],ye=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||ne).concat(x)}};function yt(a,y){return a._handlers&&a._handlers[y]||ne}function bt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var z=Pe(E,x);z>-1&&(b[y]=E.slice(0,z).concat(E.slice(z+1)))}}}function wt(a,y){var x=yt(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E<x.length;++E)x[E].apply(null,b)}function He(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),wt(a,x||y.type,a,y),pn(y)||y.codemirrorIgnore}function Yt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)Pe(x,y[b])==-1&&x.push(y[b])}function _t(a,y){return yt(a,y).length>0}function Wt(a){a.prototype.on=function(y,x){ye(this,y,x)},a.prototype.off=function(y,x){bt(this,y,x)}}function ln(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Pn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function pn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Mn(a){ln(a),Pn(a)}function er(a){return a.target||a.srcElement}function jn(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Le&&a.ctrlKey&&y==1&&(y=3),y}var ur=function(){if(me&&Ue<9)return!1;var a=Je("div");return"draggable"in a||"dragDrop"in a}(),tr;function or(a){if(tr==null){var y=Je("span","\u200B");We(a,Je("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(tr=y.offsetWidth<=1&&y.offsetHeight>2&&!(me&&Ue<8))}var x=tr?Je("span","\u200B"):Je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Gn;function yn(a){if(Gn!=null)return Gn;var y=We(a,document.createTextNode("A\u062EA")),x=Ce(y,0,1).getBoundingClientRect(),b=Ce(y,1,2).getBoundingClientRect();return jt(a),!x||x.left==x.right?!1:Gn=b.right-x.right<3}var Vn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var z=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),ie=z.indexOf("\r");ie!=-1?(x.push(z.slice(0,ie)),y+=ie+1):(x.push(z),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},zn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},Tn=function(){var a=Je("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Qn=null;function Ft(a){if(Qn!=null)return Qn;var y=We(a,Je("span","x")),x=y.getBoundingClientRect(),b=Ce(y,0,1).getBoundingClientRect();return Qn=Math.abs(x.left-b.left)>1}var Vt={},pt={};function Bt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Vt[a]=y}function en(a,y){pt[a]=y}function vn(a){if(typeof a=="string"&&pt.hasOwnProperty(a))a=pt[a];else if(a&&typeof a.name=="string"&&pt.hasOwnProperty(a.name)){var y=pt[a.name];typeof y=="string"&&(y={name:y}),a=Ie(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return vn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return vn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function on(a,y){y=vn(y);var x=Vt[y.name];if(!x)return on(a,"text/plain");var b=x(a,y);if(Ln.hasOwnProperty(y.name)){var E=Ln[y.name];for(var z in E)E.hasOwnProperty(z)&&(b.hasOwnProperty(z)&&(b["_"+z]=b[z]),b[z]=E[z])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var ie in y.modeProps)b[ie]=y.modeProps[ie];return b}var Ln={};function Rn(a,y){var x=Ln.hasOwnProperty(a)?Ln[a]:Ln[a]={};at(y,x)}function Nn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Cn(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Un(a,y,x){return a.startState?a.startState(y,x):!0}var Ot=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Ot.prototype.eol=function(){return this.pos>=this.string.length},Ot.prototype.sol=function(){return this.pos==this.lineStart},Ot.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ot.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ot.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},Ot.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Ot.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Ot.prototype.skipToEnd=function(){this.pos=this.string.length},Ot.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Ot.prototype.backUp=function(a){this.pos-=a},Ot.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Ot.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Ot.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(ie){return x?ie.toLowerCase():ie},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var z=this.string.slice(this.pos).match(a);return z&&z.index>0?null:(z&&y!==!1&&(this.pos+=z[0].length),z)}},Ot.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ot.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Ot.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Ot.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function ct(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],z=E.chunkSize();if(y<z){x=E;break}y-=z}return x.lines[y]}function Nt(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(z){var ie=z.text;E==x.line&&(ie=ie.slice(0,x.ch)),E==y.line&&(ie=ie.slice(y.ch)),b.push(ie),++E}),b}function gn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function Bn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Te(a){if(a.parent==null)return null;for(var y=a.parent,x=Pe(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var E=0;b.children[E]!=y;++E)x+=b.children[E].chunkSize();return x+y.first}function Re(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],z=E.height;if(y<z){a=E;continue e}y-=z,x+=E.chunkSize()}return x}while(!a.lines);for(var ie=0;ie<a.lines.length;++ie){var ae=a.lines[ie],ue=ae.height;if(y<ue)break;y-=ue}return x+ie}function Ht(a,y){return y>=a.first&&y<a.first+a.size}function Lt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Ve(a,y,x){if(x===void 0&&(x=null),!(this instanceof Ve))return new Ve(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Mt(a,y){return a.line-y.line||a.ch-y.ch}function tn(a,y){return a.sticky==y.sticky&&Mt(a,y)==0}function sn(a){return Ve(a.line,a.ch)}function bn(a,y){return Mt(a,y)<0?y:a}function Xt(a,y){return Mt(a,y)<0?a:y}function rn(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Pt(a,y){if(y.line<a.first)return Ve(a.first,0);var x=a.first+a.size-1;return y.line>x?Ve(x,ct(a,x).text.length):Et(y,ct(a,y.line).text.length)}function Et(a,y){var x=a.ch;return x==null||x>y?Ve(a.line,y):x<0?Ve(a.line,0):a}function an(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Pt(a,y[b]);return x}var Sn=function(a,y){this.state=a,this.lookAhead=y},kn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};kn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},kn.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}},kn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kn.fromSaved=function(a,y,x){return y instanceof Sn?new kn(a,Nn(a.mode,y.state),x,y.lookAhead):new kn(a,Nn(a.mode,y),x)},kn.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Sn(y,this.maxLookAhead):y};function Fn(a,y,x,b){var E=[a.state.modeGen],z={};sr(a,y.text,a.doc.mode,x,function(fe,ke){return E.push(fe,ke)},z,b);for(var ie=x.state,ae=function(fe){x.baseTokens=E;var ke=a.state.overlays[fe],Me=1,lt=0;x.state=!0,sr(a,y.text,ke.mode,x,function(rt,Tt){for(var zt=Me;lt<rt;){var nn=E[Me];nn>rt&&E.splice(Me,1,rt,E[Me+1],nn),Me+=2,lt=Math.min(rt,nn)}if(Tt)if(ke.opaque)E.splice(zt,Me-zt,rt,"overlay "+Tt),Me=zt+2;else for(;zt<Me;zt+=2){var fn=E[zt+1];E[zt+1]=(fn?fn+" ":"")+"overlay "+Tt}},z),x.state=ie,x.baseTokens=null,x.baseTokenPos=1},ue=0;ue<a.state.overlays.length;++ue)ae(ue);return{styles:E,classes:z.bgClass||z.textClass?z:null}}function Jn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=ar(a,Te(y)),E=y.text.length>a.options.maxHighlightLength&&Nn(a.doc.mode,b.state),z=Fn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=z.styles,z.classes?y.styleClasses=z.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function ar(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new kn(b,!0,y);var z=Dr(a,y,x),ie=z>b.first&&ct(b,z-1).stateAfter,ae=ie?kn.fromSaved(b,ie,z):new kn(b,Un(b.mode),z);return b.iter(z,y,function(ue){wn(a,ue.text,ae);var fe=ae.line;ue.stateAfter=fe==y-1||fe%5==0||fe>=E.viewFrom&&fe<E.viewTo?ae.save():null,ae.nextLine()}),x&&(b.modeFrontier=ae.line),ae}function wn(a,y,x,b){var E=a.doc.mode,z=new Ot(y,a.options.tabSize,x);for(z.start=z.pos=b||0,y==""&&Jt(E,x.state);!z.eol();)En(E,z,x.state),z.start=z.pos}function Jt(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=Cn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function En(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=Cn(a,x).mode);var z=a.token(y,x);if(y.pos>y.start)return z}throw new Error("Mode "+a.name+" failed to advance stream.")}var un=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function qn(a,y,x,b){var E=a.doc,z=E.mode,ie;y=Pt(E,y);var ae=ct(E,y.line),ue=ar(a,y.line,x),fe=new Ot(ae.text,a.options.tabSize,ue),ke;for(b&&(ke=[]);(b||fe.pos<y.ch)&&!fe.eol();)fe.start=fe.pos,ie=En(z,fe,ue.state),b&&ke.push(new un(fe,ie,Nn(E.mode,ue.state)));return b?ke:new un(fe,ie,ue.state)}function wr(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function sr(a,y,x,b,E,z,ie){var ae=x.flattenSpans;ae==null&&(ae=a.options.flattenSpans);var ue=0,fe=null,ke=new Ot(y,a.options.tabSize,b),Me,lt=a.options.addModeClass&&[null];for(y==""&&wr(Jt(x,b.state),z);!ke.eol();){if(ke.pos>a.options.maxHighlightLength?(ae=!1,ie&&wn(a,y,b,ke.pos),ke.pos=y.length,Me=null):Me=wr(En(x,ke,b.state,lt),z),lt){var rt=lt[0].name;rt&&(Me="m-"+(Me?rt+" "+Me:rt))}if(!ae||fe!=Me){for(;ue<ke.start;)ue=Math.min(ke.start,ue+5e3),E(ue,fe);fe=Me}ke.start=ke.pos}for(;ue<ke.pos;){var Tt=Math.min(ke.pos,ue+5e3);E(Tt,fe),ue=Tt}}function Dr(a,y,x){for(var b,E,z=a.doc,ie=x?-1:y-(a.doc.mode.innerMode?1e3:100),ae=y;ae>ie;--ae){if(ae<=z.first)return z.first;var ue=ct(z,ae-1),fe=ue.stateAfter;if(fe&&(!x||ae+(fe instanceof Sn?fe.lookAhead:0)<=z.modeFrontier))return ae;var ke=he(ue.text,null,a.options.tabSize);(E==null||b>ke)&&(E=ae-1,b=ke)}return E}function Lr(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=ct(a,b).stateAfter;if(E&&(!(E instanceof Sn)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var Cr=!1,cr=!1;function Fr(){Cr=!0}function yr(){cr=!0}function dr(a,y,x){this.marker=a,this.from=y,this.to=x}function Er(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function Mr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function mr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function lr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var z=a[E],ie=z.marker,ae=z.from==null||(ie.inclusiveLeft?z.from<=y:z.from<y);if(ae||z.from==y&&ie.type=="bookmark"&&(!x||!z.marker.insertLeft)){var ue=z.to==null||(ie.inclusiveRight?z.to>=y:z.to>y);(b||(b=[])).push(new dr(ie,z.from,ue?null:z.to))}}return b}function nr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var z=a[E],ie=z.marker,ae=z.to==null||(ie.inclusiveRight?z.to>=y:z.to>y);if(ae||z.from==y&&ie.type=="bookmark"&&(!x||z.marker.insertLeft)){var ue=z.from==null||(ie.inclusiveLeft?z.from<=y:z.from<y);(b||(b=[])).push(new dr(ie,ue?null:z.from-y,z.to==null?null:z.to-y))}}return b}function Pr(a,y){if(y.full)return null;var x=Ht(a,y.from.line)&&ct(a,y.from.line).markedSpans,b=Ht(a,y.to.line)&&ct(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,z=y.to.ch,ie=Mt(y.from,y.to)==0,ae=lr(x,E,ie),ue=nr(b,z,ie),fe=y.text.length==1,ke=ve(y.text).length+(fe?E:0);if(ae)for(var Me=0;Me<ae.length;++Me){var lt=ae[Me];if(lt.to==null){var rt=Er(ue,lt.marker);rt?fe&&(lt.to=rt.to==null?null:rt.to+ke):lt.to=E}}if(ue)for(var Tt=0;Tt<ue.length;++Tt){var zt=ue[Tt];if(zt.to!=null&&(zt.to+=ke),zt.from==null){var nn=Er(ae,zt.marker);nn||(zt.from=ke,fe&&(ae||(ae=[])).push(zt))}else zt.from+=ke,fe&&(ae||(ae=[])).push(zt)}ae&&(ae=Vr(ae)),ue&&ue!=ae&&(ue=Vr(ue));var fn=[ae];if(!fe){var xn=y.text.length-2,hn;if(xn>0&&ae)for(var Dn=0;Dn<ae.length;++Dn)ae[Dn].to==null&&(hn||(hn=[])).push(new dr(ae[Dn].marker,null,null));for(var Wn=0;Wn<xn;++Wn)fn.push(hn);fn.push(ue)}return fn}function Vr(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Jr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(rt){if(rt.markedSpans)for(var Tt=0;Tt<rt.markedSpans.length;++Tt){var zt=rt.markedSpans[Tt].marker;zt.readOnly&&(!b||Pe(b,zt)==-1)&&(b||(b=[])).push(zt)}}),!b)return null;for(var E=[{from:y,to:x}],z=0;z<b.length;++z)for(var ie=b[z],ae=ie.find(0),ue=0;ue<E.length;++ue){var fe=E[ue];if(!(Mt(fe.to,ae.from)<0||Mt(fe.from,ae.to)>0)){var ke=[ue,1],Me=Mt(fe.from,ae.from),lt=Mt(fe.to,ae.to);(Me<0||!ie.inclusiveLeft&&!Me)&&ke.push({from:fe.from,to:ae.from}),(lt>0||!ie.inclusiveRight&&!lt)&&ke.push({from:ae.to,to:fe.to}),E.splice.apply(E,ke),ue+=ke.length-3}}return E}function Ar(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Hr(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function Nr(a){return a.inclusiveLeft?-1:0}function Zr(a){return a.inclusiveRight?1:0}function ii(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),z=Mt(b.from,E.from)||Nr(a)-Nr(y);if(z)return-z;var ie=Mt(b.to,E.to)||Zr(a)-Zr(y);return ie||y.id-a.id}function _r(a,y){var x=cr&&a.markedSpans,b;if(x)for(var E=void 0,z=0;z<x.length;++z)E=x[z],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||ii(b,E.marker)<0)&&(b=E.marker);return b}function Yn(a){return _r(a,!0)}function Kt(a){return _r(a,!1)}function $t(a,y){var x=cr&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var z=x[E];z.marker.collapsed&&(z.from==null||z.from<y)&&(z.to==null||z.to>y)&&(!b||ii(b,z.marker)<0)&&(b=z.marker)}return b}function An(a,y,x,b,E){var z=ct(a,y),ie=cr&&z.markedSpans;if(ie)for(var ae=0;ae<ie.length;++ae){var ue=ie[ae];if(ue.marker.collapsed){var fe=ue.marker.find(0),ke=Mt(fe.from,x)||Nr(ue.marker)-Nr(E),Me=Mt(fe.to,b)||Zr(ue.marker)-Zr(E);if(!(ke>=0&&Me<=0||ke<=0&&Me>=0)&&(ke<=0&&(ue.marker.inclusiveRight&&E.inclusiveLeft?Mt(fe.to,x)>=0:Mt(fe.to,x)>0)||ke>=0&&(ue.marker.inclusiveRight&&E.inclusiveLeft?Mt(fe.from,b)<=0:Mt(fe.from,b)<0)))return!0}}}function dn(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function _n(a){for(var y;y=Kt(a);)a=y.find(1,!0).line;return a}function fr(a){for(var y,x;y=Kt(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function qt(a,y){var x=ct(a,y),b=dn(x);return x==b?y:Te(b)}function Ut(a,y){if(y>a.lastLine())return y;var x=ct(a,y),b;if(!cn(a,x))return y;for(;b=Kt(x);)x=b.find(1,!0).line;return Te(x)+1}function cn(a,y){var x=cr&&y.markedSpans;if(x){for(var b=void 0,E=0;E<x.length;++E)if(b=x[E],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&mn(a,y,b))return!0}}}function mn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return mn(a,b.line,Er(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,z=0;z<y.markedSpans.length;++z)if(E=y.markedSpans[z],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&mn(a,y,E))return!0}function Hn(a){a=dn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var z=x.parent;z;x=z,z=x.parent)for(var ie=0;ie<z.children.length;++ie){var ae=z.children[ie];if(ae==x)break;y+=ae.height}return y}function hr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Yn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=Kt(b);){var z=x.find(0,!0);y-=b.text.length-z.from.ch,b=z.to.line,y+=b.text.length-z.to.ch}return y}function rr(a){var y=a.display,x=a.doc;y.maxLine=ct(x,x.first),y.maxLineLength=hr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=hr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var br=function(a,y,x){this.text=a,Hr(this,y),this.height=x?x(this):1};br.prototype.lineNo=function(){return Te(this)},Wt(br);function xr(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Ar(a),Hr(a,x);var E=b?b(a):1;E!=a.height&&Bn(a,E)}function Sr(a){a.parent=null,Ar(a)}var Wr={},Br={};function Or(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Br:Wr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ei(a,y){var x=Dt("span",null,null,Ae?"padding-right: .1px":null),b={pre:Dt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var z=E?y.rest[E-1]:y.line,ie=void 0;b.pos=0,b.addToken=_i,yn(a.display.measure)&&(ie=ce(z,a.doc.direction))&&(b.addToken=vi(b.addToken,ie)),b.map=[];var ae=y!=a.display.externalMeasured&&Te(z);vr(z,b,Jn(a,z,ae)),z.styleClasses&&(z.styleClasses.bgClass&&(b.bgClass=Gt(z.styleClasses.bgClass,b.bgClass||"")),z.styleClasses.textClass&&(b.textClass=Gt(z.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(or(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ae){var ue=b.content.lastChild;(/\bcm-tab\b/.test(ue.className)||ue.querySelector&&ue.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return wt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Gt(b.pre.className,b.textClass||"")),b}function Di(a){var y=Je("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function _i(a,y,x,b,E,z,ie){if(y){var ae=a.splitSpaces?xi(y,a.trailingSpace):y,ue=a.cm.state.specialChars,fe=!1,ke;if(!ue.test(y))a.col+=y.length,ke=document.createTextNode(ae),a.map.push(a.pos,a.pos+y.length,ke),me&&Ue<9&&(fe=!0),a.pos+=y.length;else{ke=document.createDocumentFragment();for(var Me=0;;){ue.lastIndex=Me;var lt=ue.exec(y),rt=lt?lt.index-Me:y.length-Me;if(rt){var Tt=document.createTextNode(ae.slice(Me,Me+rt));me&&Ue<9?ke.appendChild(Je("span",[Tt])):ke.appendChild(Tt),a.map.push(a.pos,a.pos+rt,Tt),a.col+=rt,a.pos+=rt}if(!lt)break;Me+=rt+1;var zt=void 0;if(lt[0]==" "){var nn=a.cm.options.tabSize,fn=nn-a.col%nn;zt=ke.appendChild(Je("span",Se(fn),"cm-tab")),zt.setAttribute("role","presentation"),zt.setAttribute("cm-text"," "),a.col+=fn}else lt[0]=="\r"||lt[0]==`
`?(zt=ke.appendChild(Je("span",lt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),zt.setAttribute("cm-text",lt[0]),a.col+=1):(zt=a.cm.options.specialCharPlaceholder(lt[0]),zt.setAttribute("cm-text",lt[0]),me&&Ue<9?ke.appendChild(Je("span",[zt])):ke.appendChild(zt),a.col+=1);a.map.push(a.pos,a.pos+1,zt),a.pos++}}if(a.trailingSpace=ae.charCodeAt(y.length-1)==32,x||b||E||fe||z||ie){var xn=x||"";b&&(xn+=b),E&&(xn+=E);var hn=Je("span",[ke],xn,z);if(ie)for(var Dn in ie)ie.hasOwnProperty(Dn)&&Dn!="style"&&Dn!="class"&&hn.setAttribute(Dn,ie[Dn]);return a.content.appendChild(hn)}a.content.appendChild(ke)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var z=a.charAt(E);z==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(z="\xA0"),b+=z,x=z==" "}return b}function vi(a,y){return function(x,b,E,z,ie,ae,ue){E=E?E+" cm-force-border":"cm-force-border";for(var fe=x.pos,ke=fe+b.length;;){for(var Me=void 0,lt=0;lt<y.length&&(Me=y[lt],!(Me.to>fe&&Me.from<=fe));lt++);if(Me.to>=ke)return a(x,b,E,z,ie,ae,ue);a(x,b.slice(0,Me.to-fe),E,z,null,ae,ue),z=null,b=b.slice(Me.to-fe),fe=Me.to}}}function Xi(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function vr(a,y,x){var b=a.markedSpans,E=a.text,z=0;if(!b){for(var ie=1;ie<x.length;ie+=2)y.addToken(y,E.slice(z,z=x[ie]),Or(x[ie+1],y.cm.options));return}for(var ae=E.length,ue=0,fe=1,ke="",Me,lt,rt=0,Tt,zt,nn,fn,xn;;){if(rt==ue){Tt=zt=nn=lt="",xn=null,fn=null,rt=1/0;for(var hn=[],Dn=void 0,Wn=0;Wn<b.length;++Wn){var In=b[Wn],ir=In.marker;if(ir.type=="bookmark"&&In.from==ue&&ir.widgetNode)hn.push(ir);else if(In.from<=ue&&(In.to==null||In.to>ue||ir.collapsed&&In.to==ue&&In.from==ue)){if(In.to!=null&&In.to!=ue&&rt>In.to&&(rt=In.to,zt=""),ir.className&&(Tt+=" "+ir.className),ir.css&&(lt=(lt?lt+";":"")+ir.css),ir.startStyle&&In.from==ue&&(nn+=" "+ir.startStyle),ir.endStyle&&In.to==rt&&(Dn||(Dn=[])).push(ir.endStyle,In.to),ir.title&&((xn||(xn={})).title=ir.title),ir.attributes)for(var Ir in ir.attributes)(xn||(xn={}))[Ir]=ir.attributes[Ir];ir.collapsed&&(!fn||ii(fn.marker,ir)<0)&&(fn=In)}else In.from>ue&&rt>In.from&&(rt=In.from)}if(Dn)for(var si=0;si<Dn.length;si+=2)Dn[si+1]==rt&&(zt+=" "+Dn[si]);if(!fn||fn.from==ue)for(var Gr=0;Gr<hn.length;++Gr)Xi(y,0,hn[Gr]);if(fn&&(fn.from||0)==ue){if(Xi(y,(fn.to==null?ae+1:fn.to)-ue,fn.marker,fn.from==null),fn.to==null)return;fn.to==ue&&(fn=!1)}}if(ue>=ae)break;for(var Pi=Math.min(ae,rt);;){if(ke){var ki=ue+ke.length;if(!fn){var qr=ki>Pi?ke.slice(0,Pi-ue):ke;y.addToken(y,qr,Me?Me+Tt:Tt,nn,ue+qr.length==rt?zt:"",lt,xn)}if(ki>=Pi){ke=ke.slice(Pi-ue),ue=Pi;break}ue=ki,nn=""}ke=E.slice(z,z=x[fe++]),Me=Or(x[fe++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=fr(y),this.size=this.rest?Te(ve(this.rest))-x+1:1,this.node=this.text=null,this.hidden=cn(a,y)}function ti(a,y,x){for(var b=[],E,z=y;z<x;z=E){var ie=new to(a.doc,ct(a.doc,z),z);E=z+ie.size,b.push(ie)}return b}var Ni=null;function ao(a){Ni?Ni.ops.push(a):a.ownsGroup=Ni={ops:[a],delayedCallbacks:[]}}function Ji(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var E=a.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<y.length)}function mi(a,y){var x=a.ownsGroup;if(x)try{Ji(x)}finally{Ni=null,y(x)}}var Fi=null;function zr(a,y){var x=yt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;Ni?E=Ni.delayedCallbacks:Fi?E=Fi:(E=Fi=[],setTimeout(Oi,0));for(var z=function(ae){E.push(function(){return x[ae].apply(null,b)})},ie=0;ie<x.length;++ie)z(ie)}}function Oi(){var a=Fi;Fi=null;for(var y=0;y<a.length;++y)a[y]()}function so(a,y,x,b){for(var E=0;E<y.changes.length;E++){var z=y.changes[E];z=="text"?lo(a,y):z=="gutter"?Xn(a,y,x,b):z=="class"?On(a,y):z=="widget"&&Zn(a,y,b)}y.changes=null}function Zi(a){return a.node==a.text&&(a.node=Je("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),me&&Ue<8&&(a.node.style.zIndex=2)),a.node}function Qr(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=Zi(y);y.background=b.insertBefore(Je("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):ei(a,y)}function lo(a,y){var x=y.text.className,b=xo(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,On(a,y)):x&&(y.text.className=x)}function On(a,y){Qr(a,y),y.line.wrapClass?Zi(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Xn(a,y,x,b){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=Zi(y);y.gutterBackground=Je("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var z=y.line.gutterMarkers;if(a.options.lineNumbers||z){var ie=Zi(y),ae=y.gutter=Je("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ae),ie.insertBefore(ae,y.text),y.line.gutterClass&&(ae.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!z||!z["CodeMirror-linenumbers"])&&(y.lineNumber=ae.appendChild(Je("div",Lt(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),z)for(var ue=0;ue<a.display.gutterSpecs.length;++ue){var fe=a.display.gutterSpecs[ue].className,ke=z.hasOwnProperty(fe)&&z[fe];ke&&ae.appendChild(Je("div",[ke],"CodeMirror-gutter-elt","left: "+b.gutterLeft[fe]+"px; width: "+b.gutterWidth[fe]+"px"))}}}function Zn(a,y,x){y.alignable&&(y.alignable=null);for(var b=st("CodeMirror-linewidget"),E=y.node.firstChild,z=void 0;E;E=z)z=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);gr(a,y,x)}function Kn(a,y,x,b){var E=xo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),On(a,y),Xn(a,y,x,b),gr(a,y,b),y.node}function gr(a,y,x){if(Rr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Rr(a,y.rest[b],y,x,!1)}function Rr(a,y,x,b,E){if(y.widgets)for(var z=Zi(x),ie=0,ae=y.widgets;ie<ae.length;++ie){var ue=ae[ie],fe=Je("div",[ue.node],"CodeMirror-linewidget"+(ue.className?" "+ue.className:""));ue.handleMouseEvents||fe.setAttribute("cm-ignore-events","true"),ji(ue,fe,x,b),a.display.input.setUneditable(fe),E&&ue.above?z.insertBefore(fe,x.gutter||x.text):z.appendChild(fe),zr(ue,"redraw")}}function ji(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var E=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(E-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function gi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!$e(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),We(y.display.measure,Je("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=er(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function Kr(a){return a.lineSpace.offsetTop}function Hi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=We(a.measure,Je("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Li(a){return dt-a.display.nativeBarWidth}function qi(a){return a.display.scroller.clientWidth-Li(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-Li(a)-a.display.barHeight}function Gi(a,y,x){var b=a.options.lineWrapping,E=b&&qi(a);if(!y.measure.heights||b&&y.measure.width!=E){var z=y.measure.heights=[];if(b){y.measure.width=E;for(var ie=y.text.firstChild.getClientRects(),ae=0;ae<ie.length-1;ae++){var ue=ie[ae],fe=ie[ae+1];Math.abs(ue.bottom-fe.bottom)>2&&z.push((ue.bottom+fe.top)/2-x.top)}}z.push(x.bottom-x.top)}}function Bo(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var E=0;E<a.rest.length;E++)if(Te(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=dn(y);var x=Te(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var E=b.built=ei(a,b);return b.text=E.pre,We(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Wi(a,uo(a,y),x,b)}function $i(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[So(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=Te(y),b=$i(a,x);b&&!b.text?b=null:b&&b.changes&&(so(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=Ga(a,y));var E=Bo(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Wi(a,y,x,b,E){y.before&&(x=-1);var z=x+(b||""),ie;return y.cache.hasOwnProperty(z)?ie=y.cache[z]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Gi(a,y.view,y.rect),y.hasHeights=!0),ie=wa(a,y,x,b),ie.bogus||(y.cache[z]=ie)),{left:ie.left,right:ie.right,top:E?ie.rtop:ie.top,bottom:E?ie.rbottom:ie.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,z,ie,ae,ue,fe=0;fe<a.length;fe+=3)if(ae=a[fe],ue=a[fe+1],y<ae?(E=0,z=1,ie="left"):y<ue?(E=y-ae,z=E+1):(fe==a.length-3||y==ue&&a[fe+3]>y)&&(z=ue-ae,E=z-1,y>=ue&&(ie="right")),E!=null){if(b=a[fe+2],ae==ue&&x==(b.insertLeft?"left":"right")&&(ie=x),x=="left"&&E==0)for(;fe&&a[fe-2]==a[fe-3]&&a[fe-1].insertLeft;)b=a[(fe-=3)+2],ie="left";if(x=="right"&&E==ue-ae)for(;fe<a.length-3&&a[fe+3]==a[fe+4]&&!a[fe+5].insertLeft;)b=a[(fe+=3)+2],ie="right";break}return{node:b,start:E,end:z,collapse:ie,coverStart:ae,coverEnd:ue}}function Va(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var E=a.length-1;E>=0&&(x=a[E]).left==x.right;E--);return x}function wa(a,y,x,b){var E=xa(y.map,x,b),z=E.node,ie=E.start,ae=E.end,ue=E.collapse,fe;if(z.nodeType==3){for(var ke=0;ke<4;ke++){for(;ie&&kt(y.line.text.charAt(E.coverStart+ie));)--ie;for(;E.coverStart+ae<E.coverEnd&&kt(y.line.text.charAt(E.coverStart+ae));)++ae;if(me&&Ue<9&&ie==0&&ae==E.coverEnd-E.coverStart?fe=z.parentNode.getBoundingClientRect():fe=Va(Ce(z,ie,ae).getClientRects(),b),fe.left||fe.right||ie==0)break;ae=ie,ie=ie-1,ue="right"}me&&Ue<11&&(fe=Ua(a.display.measure,fe))}else{ie>0&&(ue=b="right");var Me;a.options.lineWrapping&&(Me=z.getClientRects()).length>1?fe=Me[b=="right"?Me.length-1:0]:fe=z.getBoundingClientRect()}if(me&&Ue<9&&!ie&&(!fe||!fe.left&&!fe.right)){var lt=z.parentNode.getClientRects()[0];lt?fe={left:lt.left,right:lt.left+Ui(a.display),top:lt.top,bottom:lt.bottom}:fe=ba}for(var rt=fe.top-y.rect.top,Tt=fe.bottom-y.rect.top,zt=(rt+Tt)/2,nn=y.view.measure.heights,fn=0;fn<nn.length-1&&!(zt<nn[fn]);fn++);var xn=fn?nn[fn-1]:0,hn=nn[fn],Dn={left:(ue=="right"?fe.right:fe.left)-y.rect.left,right:(ue=="left"?fe.left:fe.right)-y.rect.left,top:xn,bottom:hn};return!fe.left&&!fe.right&&(Dn.bogus=!0),a.options.singleCursorHeightPerLine||(Dn.rtop=rt,Dn.rbottom=Tt),Dn}function Ua(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ft(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Ko(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 Yo(a){a.display.externalMeasure=null,jt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ko(a.display.view[y])}function wo(a){Yo(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return ge&&Oe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ca(){return ge&&Oe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Jo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=gi(a.widgets[x]));return y}function To(a,y,x,b,E){if(!E){var z=Jo(y);x.top+=z,x.bottom+=z}if(b=="line")return x;b||(b="local");var ie=Hn(y);if(b=="local"?ie+=Kr(a.display):ie-=a.display.viewOffset,b=="page"||b=="window"){var ae=a.display.lineSpace.getBoundingClientRect();ie+=ae.top+(b=="window"?0:Ca());var ue=ae.left+(b=="window"?0:Xo());x.left+=ue,x.right+=ue}return x.top+=ie,x.bottom+=ie,x}function Sa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Ca();else if(x=="local"||!x){var z=a.display.sizer.getBoundingClientRect();b+=z.left,E+=z.top}var ie=a.display.lineSpace.getBoundingClientRect();return{left:b-ie.left,top:E-ie.top}}function Po(a,y,x,b,E){return b||(b=ct(a.doc,y.line)),To(a,b,ya(a,b,y.ch,E),x)}function wi(a,y,x,b,E,z){b=b||ct(a.doc,y.line),E||(E=uo(a,b));function ie(Tt,zt){var nn=Wi(a,E,Tt,zt?"right":"left",z);return zt?nn.left=nn.right:nn.right=nn.left,To(a,b,nn,x)}var ae=ce(b,a.doc.direction),ue=y.ch,fe=y.sticky;if(ue>=b.text.length?(ue=b.text.length,fe="before"):ue<=0&&(ue=0,fe="after"),!ae)return ie(fe=="before"?ue-1:ue,fe=="before");function ke(Tt,zt,nn){var fn=ae[zt],xn=fn.level==1;return ie(nn?Tt-1:Tt,xn!=nn)}var Me=ee(ae,ue,fe),lt=te,rt=ke(ue,Me,fe=="before");return lt!=null&&(rt.other=ke(ue,lt,fe!="before")),rt}function pr(a,y){var x=0;y=Pt(a.doc,y),a.options.lineWrapping||(x=Ui(a.display)*y.ch);var b=ct(a.doc,y.line),E=Hn(b)+Kr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function $n(a,y,x,b,E){var z=Ve(a,y,x);return z.xRel=E,b&&(z.outside=b),z}function ci(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return $n(b.first,0,null,-1,-1);var E=Re(b,x),z=b.first+b.size-1;if(E>z)return $n(b.first+b.size-1,ct(b,z).text.length,null,1,1);y<0&&(y=0);for(var ie=ct(b,E);;){var ae=Vi(a,ie,E,y,x),ue=$t(ie,ae.ch+(ae.xRel>0||ae.outside>0?1:0));if(!ue)return ae;var fe=ue.find(1);if(fe.line==E)return fe;ie=ct(b,E=fe.line)}}function fi(a,y,x,b){b-=Jo(y);var E=y.text.length,z=It(function(ie){return Wi(a,x,ie-1).bottom<=b},E,0);return E=It(function(ie){return Wi(a,x,ie).top>b},z,E),{begin:z,end:E}}function Yr(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Wi(a,x,b),"line").top;return fi(a,y,x,E)}function ni(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,E){E-=Hn(y);var z=uo(a,y),ie=Jo(y),ae=0,ue=y.text.length,fe=!0,ke=ce(y,a.doc.direction);if(ke){var Me=(a.options.lineWrapping?ro:zi)(a,y,x,z,ke,b,E);fe=Me.level!=1,ae=fe?Me.from:Me.to-1,ue=fe?Me.to:Me.from-1}var lt=null,rt=null,Tt=It(function(Wn){var In=Wi(a,z,Wn);return In.top+=ie,In.bottom+=ie,ni(In,b,E,!1)?(In.top<=E&&In.left<=b&&(lt=Wn,rt=In),!0):!1},ae,ue),zt,nn,fn=!1;if(rt){var xn=b-rt.left<rt.right-b,hn=xn==fe;Tt=lt+(hn?0:1),nn=hn?"after":"before",zt=xn?rt.left:rt.right}else{!fe&&(Tt==ue||Tt==ae)&&Tt++,nn=Tt==0?"after":Tt==y.text.length?"before":Wi(a,z,Tt-(fe?1:0)).bottom+ie<=E==fe?"after":"before";var Dn=wi(a,Ve(x,Tt,nn),"line",y,z);zt=Dn.left,fn=E<Dn.top?-1:E>=Dn.bottom?1:0}return Tt=Qt(y.text,Tt,1),$n(x,Tt,nn,fn,b-zt)}function zi(a,y,x,b,E,z,ie){var ae=It(function(Me){var lt=E[Me],rt=lt.level!=1;return ni(wi(a,Ve(x,rt?lt.to:lt.from,rt?"before":"after"),"line",y,b),z,ie,!0)},0,E.length-1),ue=E[ae];if(ae>0){var fe=ue.level!=1,ke=wi(a,Ve(x,fe?ue.from:ue.to,fe?"after":"before"),"line",y,b);ni(ke,z,ie,!0)&&ke.top>ie&&(ue=E[ae-1])}return ue}function ro(a,y,x,b,E,z,ie){var ae=fi(a,y,b,ie),ue=ae.begin,fe=ae.end;/\s/.test(y.text.charAt(fe-1))&&fe--;for(var ke=null,Me=null,lt=0;lt<E.length;lt++){var rt=E[lt];if(!(rt.from>=fe||rt.to<=ue)){var Tt=rt.level!=1,zt=Wi(a,b,Tt?Math.min(fe,rt.to)-1:Math.max(ue,rt.from)).right,nn=zt<z?z-zt+1e9:zt-z;(!ke||Me>nn)&&(ke=rt,Me=nn)}}return ke||(ke=E[E.length-1]),ke.from<ue&&(ke={from:ue,to:ke.to,level:ke.level}),ke.to>fe&&(ke={from:ke.from,to:fe,level:ke.level}),ke}var Mi;function Bi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Mi==null){Mi=Je("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Mi.appendChild(document.createTextNode("x")),Mi.appendChild(Je("br"));Mi.appendChild(document.createTextNode("x"))}We(a.measure,Mi);var x=Mi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),jt(a.measure),x||1}function Ui(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Je("span","xxxxxxxxxx"),x=Je("pre",[y],"CodeMirror-line-like");We(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,z=y.gutters.firstChild,ie=0;z;z=z.nextSibling,++ie){var ae=a.display.gutterSpecs[ie].className;x[ae]=z.offsetLeft+z.clientLeft+E,b[ae]=z.clientWidth}return{fixedPos:Ka(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ka(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function ws(a){var y=Bi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ui(a.display)-3);return function(E){if(cn(a.doc,E))return 0;var z=0;if(E.widgets)for(var ie=0;ie<E.widgets.length;ie++)E.widgets[ie].height&&(z+=E.widgets[ie].height);return x?z+(Math.ceil(E.text.length/b)||1)*y:z+y}}function Ya(a){var y=a.doc,x=ws(a);y.iter(function(b){var E=x(b);E!=b.height&&Bn(b,E)})}function Co(a,y,x,b){var E=a.display;if(!x&&er(y).getAttribute("cm-not-content")=="true")return null;var z,ie,ae=E.lineSpace.getBoundingClientRect();try{z=y.clientX-ae.left,ie=y.clientY-ae.top}catch(Me){return null}var ue=ci(a,z,ie),fe;if(b&&ue.xRel>0&&(fe=ct(a.doc,ue.line).text).length==ue.ch){var ke=he(fe,fe.length,a.options.tabSize)-fe.length;ue=Ve(ue.line,Math.max(0,Math.round((z-Qi(a.display).left)/Ui(a.display))-ke))}return ue}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Ci(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)cr&&qt(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)cr&&Ut(a.doc,x+b)>E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var z=ka(a,x,x+b,1);z?(E.view=E.view.slice(z.index),E.viewFrom=z.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var ie=ka(a,y,y,-1);ie?(E.view=E.view.slice(0,ie.index),E.viewTo=ie.lineN):ho(a)}else{var ae=ka(a,y,y,-1),ue=ka(a,x,x+b,1);ae&&ue?(E.view=E.view.slice(0,ae.index).concat(ti(a,ae.lineN,ue.lineN)).concat(E.view.slice(ue.index)),E.viewTo+=b):ho(a)}var fe=E.externalMeasured;fe&&(x<fe.lineN?fe.lineN+=b:y<fe.lineN+fe.size&&(E.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var z=b.view[So(a,y)];if(z.node!=null){var ie=z.changes||(z.changes=[]);Pe(ie,x)==-1&&ie.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function ka(a,y,x,b){var E=So(a,y),z,ie=a.display.view;if(!cr||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ae=a.display.viewFrom,ue=0;ue<E;ue++)ae+=ie[ue].size;if(ae!=y){if(b>0){if(E==ie.length-1)return null;z=ae+ie[E].size-y,E++}else z=ae-y;y+=z,x+=z}for(;qt(a.doc,x)!=x;){if(E==(b<0?0:ie.length-1))return null;x+=b*ie[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Hl(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ti(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ti(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(So(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(ti(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function Cs(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Ss(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),z=b.selection=document.createDocumentFragment(),ie=0;ie<x.sel.ranges.length;ie++)if(!(!y&&ie==x.sel.primIndex)){var ae=x.sel.ranges[ie];if(!(ae.from().line>=a.display.viewTo||ae.to().line<a.display.viewFrom)){var ue=ae.empty();(ue||a.options.showCursorWhenSelecting)&&ks(a,ae.head,E),ue||Wl(a,ae,z)}}return b}function ks(a,y,x){var b=wi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(Je("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var z=x.appendChild(Je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));z.style.display="",z.style.left=b.other.left+"px",z.style.top=b.other.top+"px",z.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ea(a,y){return a.top-y.top||a.left-y.left}function Wl(a,y,x){var b=a.display,E=a.doc,z=document.createDocumentFragment(),ie=Qi(a.display),ae=ie.left,ue=Math.max(b.sizerWidth,qi(a)-b.sizer.offsetLeft)-ie.right,fe=E.direction=="ltr";function ke(hn,Dn,Wn,In){Dn<0&&(Dn=0),Dn=Math.round(Dn),In=Math.round(In),z.appendChild(Je("div",null,"CodeMirror-selected","position: absolute; left: "+hn+`px;
top: `+Dn+"px; width: "+(Wn==null?ue-hn:Wn)+`px;
height: `+(In-Dn)+"px"))}function Me(hn,Dn,Wn){var In=ct(E,hn),ir=In.text.length,Ir,si;function Gr(qr,Ei){return Po(a,Ve(hn,qr),"div",In,Ei)}function Pi(qr,Ei,di){var ri=Yr(a,In,null,qr),$r=Ei=="ltr"==(di=="after")?"left":"right",Ur=di=="after"?ri.begin:ri.end-(/\s/.test(In.text.charAt(ri.end-1))?2:1);return Gr(Ur,$r)[$r]}var ki=ce(In,E.direction);return se(ki,Dn||0,Wn==null?ir:Wn,function(qr,Ei,di,ri){var $r=di=="ltr",Ur=Gr(qr,$r?"left":"right"),Ai=Gr(Ei-1,$r?"right":"left"),Vo=Dn==null&&qr==0,bo=Wn==null&&Ei==ir,pi=ri==0,eo=!ki||ri==ki.length-1;if(Ai.top-Ur.top<=3){var li=(fe?Vo:bo)&&pi,bs=(fe?bo:Vo)&&eo,oo=li?ae:($r?Ur:Ai).left,Lo=bs?ue:($r?Ai:Ur).right;ke(oo,Ur.top,Lo-oo,Ur.bottom)}else{var Mo,bi,Uo,xs;$r?(Mo=fe&&Vo&&pi?ae:Ur.left,bi=fe?ue:Pi(qr,di,"before"),Uo=fe?ae:Pi(Ei,di,"after"),xs=fe&&bo&&eo?ue:Ai.right):(Mo=fe?Pi(qr,di,"before"):ae,bi=!fe&&Vo&&pi?ue:Ur.right,Uo=!fe&&bo&&eo?ae:Ai.left,xs=fe?Pi(Ei,di,"after"):ue),ke(Mo,Ur.top,bi-Mo,Ur.bottom),Ur.bottom<Ai.top&&ke(ae,Ur.bottom,null,Ai.top),ke(Uo,Ai.top,xs-Uo,Ai.bottom)}(!Ir||Ea(Ur,Ir)<0)&&(Ir=Ur),Ea(Ai,Ir)<0&&(Ir=Ai),(!si||Ea(Ur,si)<0)&&(si=Ur),Ea(Ai,si)<0&&(si=Ai)}),{start:Ir,end:si}}var lt=y.from(),rt=y.to();if(lt.line==rt.line)Me(lt.line,lt.ch,rt.ch);else{var Tt=ct(E,lt.line),zt=ct(E,rt.line),nn=dn(Tt)==dn(zt),fn=Me(lt.line,lt.ch,nn?Tt.text.length+1:null).end,xn=Me(rt.line,nn?0:null,rt.ch).start;nn&&(fn.top<xn.top-2?(ke(fn.right,fn.top,null,fn.bottom),ke(ae,xn.top,xn.left,xn.bottom)):ke(fn.right,fn.top,xn.left-fn.right,fn.bottom)),fn.bottom<xn.top&&ke(ae,fn.bottom,null,xn.top)}x.appendChild(z)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||No(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Es(a){a.state.focused||(a.display.input.focus(),Ja(a))}function As(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,No(a))},100)}function Ja(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(wt(a,"focus",a,y),a.state.focused=!0,Xe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ae&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function No(a,y){a.state.delayingBlurEvent||(a.state.focused&&(wt(a,"blur",a,y),a.state.focused=!1,et(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Aa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],z=a.options.lineWrapping,ie=void 0,ae=0;if(!E.hidden){if(me&&Ue<8){var ue=E.node.offsetTop+E.node.offsetHeight;ie=ue-x,x=ue}else{var fe=E.node.getBoundingClientRect();ie=fe.bottom-fe.top,!z&&E.text.firstChild&&(ae=E.text.firstChild.getBoundingClientRect().right-fe.left-1)}var ke=E.line.height-ie;if((ke>.005||ke<-.005)&&(Bn(E.line,ie),Ds(E.line),E.rest))for(var Me=0;Me<E.rest.length;Me++)Ds(E.rest[Me]);if(ae>a.display.sizerWidth){var lt=Math.ceil(ae/Ui(a.display));lt>a.display.maxLineLength&&(a.display.maxLineLength=lt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ds(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Da(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Kr(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,z=Re(y,b),ie=Re(y,E);if(x&&x.ensure){var ae=x.ensure.from.line,ue=x.ensure.to.line;ae<z?(z=ae,ie=Re(y,Hn(ct(y,ae))+a.wrapper.clientHeight)):Math.min(ue,y.lastLine())>=ie&&(z=Re(y,Hn(ct(y,ue))-a.wrapper.clientHeight),ie=ue)}return{from:z,to:Math.max(ie,z+1)}}function zl(a,y){if(!He(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!mt){var z=Je("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Kr(a.display))+`px;
height: `+(y.bottom-y.top+Li(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(z),z.scrollIntoView(E),a.display.lineSpace.removeChild(z)}}}function Zl(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Ve(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Ve(y.line,y.ch+1,"before"):y);for(var z=0;z<5;z++){var ie=!1,ae=wi(a,y),ue=!x||x==y?ae:wi(a,x);E={left:Math.min(ae.left,ue.left),top:Math.min(ae.top,ue.top)-b,right:Math.max(ae.left,ue.left),bottom:Math.max(ae.bottom,ue.bottom)+b};var fe=Qa(a,E),ke=a.doc.scrollTop,Me=a.doc.scrollLeft;if(fe.scrollTop!=null&&($o(a,fe.scrollTop),Math.abs(a.doc.scrollTop-ke)>1&&(ie=!0)),fe.scrollLeft!=null&&(ko(a,fe.scrollLeft),Math.abs(a.doc.scrollLeft-Me)>1&&(ie=!0)),!ie)break}return E}function jl(a,y){var x=Qa(a,y);x.scrollTop!=null&&$o(a,x.scrollTop),x.scrollLeft!=null&&ko(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Bi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,z=no(a),ie={};y.bottom-y.top>z&&(y.bottom=y.top+z);var ae=a.doc.height+Hi(x),ue=y.top<b,fe=y.bottom>ae-b;if(y.top<E)ie.scrollTop=ue?0:y.top;else if(y.bottom>E+z){var ke=Math.min(y.top,(fe?ae:y.bottom)-z);ke!=E&&(ie.scrollTop=ke)}var Me=a.options.fixedGutter?0:x.gutters.offsetWidth,lt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-Me,rt=qi(a)-x.gutters.offsetWidth,Tt=y.right-y.left>rt;return Tt&&(y.right=y.left+rt),y.left<10?ie.scrollLeft=0:y.left<lt?ie.scrollLeft=Math.max(0,y.left+Me-(Tt?0:10)):y.right>rt+lt-3&&(ie.scrollLeft=y.right+(Tt?0:10)-rt),ie}function qa(a,y){y!=null&&(La(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Fo(a){La(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function qo(a,y,x){(y!=null||x!=null)&&La(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gl(a,y){La(a),a.curOp.scrollToPos=y}function La(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=pr(a,y.from),b=pr(a,y.to);Ls(a,x,b,y.margin)}}function Ls(a,y,x,b){var E=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});qo(a,E.scrollLeft,E.scrollTop)}function $o(a,y){Math.abs(a.doc.scrollTop-y)<2||(re||es(a,{top:y}),Ms(a,y,!0),re&&es(a),na(a,100))}function Ms(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function ko(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Fs(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Hi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Li(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Eo=function(a,y,x){this.cm=x;var b=this.vert=Je("div",[Je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Je("div",[Je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),ye(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),ye(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,me&&Ue<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Eo.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var z=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Eo.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Eo.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Eo.prototype.zeroWidthHack=function(){var a=Le&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new le,this.disableVert=new le},Eo.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),z=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);z!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Eo.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function Ro(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Bs(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Aa(a),Bs(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Bs(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Ts={native:Eo,null:ta};function Ps(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&et(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ts[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),ye(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?ko(a,y):$o(a,y)},a),a.display.scrollbars.addClass&&Xe(a.display.wrapper,a.display.scrollbars.addClass)}var Vl=0;function Ao(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:++Vl},ao(a.curOp)}function Do(a){var y=a.curOp;y&&mi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Ul(x)})}function Ul(a){for(var y=a.ops,x=0;x<y.length;x++)Kl(y[x]);for(var b=0;b<y.length;b++)Yl(y[b]);for(var E=0;E<y.length;E++)Xl(y[E]);for(var z=0;z<y.length;z++)Jl(y[z]);for(var ie=0;ie<y.length;ie++)Ql(y[ie])}function Kl(a){var y=a.cm,x=y.display;$l(y),a.updateMaxLine&&rr(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Ma(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&$a(a.cm,a.update)}function Xl(a){var y=a.cm,x=y.display;a.updatedDisplay&&Aa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Li(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-qi(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Jl(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&ko(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==Be();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Ro(y,a.barMeasure),a.updatedDisplay&&ns(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Es(a.cm)}function Ql(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Ns(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Ms(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&ko(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=Zl(y,Pt(b,a.scrollToPos.from),Pt(b,a.scrollToPos.to),a.scrollToPos.margin);zl(y,E)}var z=a.maybeHiddenMarkers,ie=a.maybeUnhiddenMarkers;if(z)for(var ae=0;ae<z.length;++ae)z[ae].lines.length||wt(z[ae],"hide");if(ie)for(var ue=0;ue<ie.length;++ue)ie[ue].lines.length&&wt(ie[ue],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&wt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Ti(a,y){if(a.curOp)return y();Ao(a);try{return y()}finally{Do(a)}}function oi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Ao(a);try{return y.apply(a,arguments)}finally{Do(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);Ao(this);try{return a.apply(this,arguments)}finally{Do(this)}}}function ai(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Ao(y);try{return a.apply(this,arguments)}finally{Do(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,ht(ql,a))}function ql(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=ar(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(z){if(b.line>=a.display.viewFrom){var ie=z.styles,ae=z.text.length>a.options.maxHighlightLength?Nn(y.mode,b.state):null,ue=Fn(a,z,b,!0);ae&&(b.state=ae),z.styles=ue.styles;var fe=z.styleClasses,ke=ue.classes;ke?z.styleClasses=ke:fe&&(z.styleClasses=null);for(var Me=!ie||ie.length!=z.styles.length||fe!=ke&&(!fe||!ke||fe.bgClass!=ke.bgClass||fe.textClass!=ke.textClass),lt=0;!Me&&lt<ie.length;++lt)Me=ie[lt]!=z.styles[lt];Me&&E.push(b.line),z.stateAfter=b.save(),b.nextLine()}else z.text.length<=a.options.maxHighlightLength&&wn(a,z.text,b),z.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Ti(a,function(){for(var z=0;z<E.length;z++)fo(a,E[z],"text")})}}var Ma=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Da(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=qi(a),this.force=x,this.dims=co(a),this.events=[]};Ma.prototype.signal=function(a,y){_t(a,y)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var a=0;a<this.events.length;a++)wt.apply(null,this.events[a])};function $l(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Li(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Li(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=Be();if(!y||!$e(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&$e(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==Be())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&$e(document.body,a.anchorNode)&&$e(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function $a(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return ho(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Cs(a)==0)return!1;Rs(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,z=Math.max(y.visible.from-a.options.viewportMargin,b.first),ie=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<z&&z-x.viewFrom<20&&(z=Math.max(b.first,x.viewFrom)),x.viewTo>ie&&x.viewTo-ie<20&&(ie=Math.min(E,x.viewTo)),cr&&(z=qt(a.doc,z),ie=Ut(a.doc,ie));var ae=z!=x.viewFrom||ie!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hl(a,z,ie),x.viewOffset=Hn(ct(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ue=Cs(a);if(!ae&&ue==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var fe=eu(a);return ue>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),ue>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(fe),jt(x.cursorDiv),jt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ae&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Ns(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==qi(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Hi(a.display)-no(a),x.top)}),y.visible=Da(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Da(a.display,a.doc,x));if(!$a(a,y))break;Aa(a);var E=ea(a);Qo(a),Ro(a,E),ns(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 es(a,y){var x=new Ma(a,y);if($a(a,x)){Aa(a),Ns(a,x);var b=ea(a);Qo(a),Ro(a,b),ns(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,z=b.lineDiv,ie=z.firstChild;function ae(Tt){var zt=Tt.nextSibling;return Ae&&Le&&a.display.currentWheelTarget==Tt?Tt.style.display="none":Tt.parentNode.removeChild(Tt),zt}for(var ue=b.view,fe=b.viewFrom,ke=0;ke<ue.length;ke++){var Me=ue[ke];if(!Me.hidden)if(!Me.node||Me.node.parentNode!=z){var lt=Kn(a,Me,fe,x);z.insertBefore(lt,ie)}else{for(;ie!=Me.node;)ie=ae(ie);var rt=E&&y!=null&&y<=fe&&Me.lineNumber;Me.changes&&(Pe(Me.changes,"gutter")>-1&&(rt=!1),so(a,Me,fe,x)),rt&&(jt(Me.lineNumber),Me.lineNumber.appendChild(document.createTextNode(Lt(a.options,fe)))),ie=Me.node.nextSibling}fe+=Me.size}for(;ie;)ie=ae(ie)}function ts(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function ns(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+Li(a)+"px"}function Fs(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ka(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,z=b+"px",ie=0;ie<x.length;ie++)if(!x[ie].hidden){a.options.fixedGutter&&(x[ie].gutter&&(x[ie].gutter.style.left=z),x[ie].gutterBackground&&(x[ie].gutterBackground.style.left=z));var ae=x[ie].alignable;if(ae)for(var ue=0;ue<ae.length;ue++)ae[ue].style.left=z}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Rs(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Lt(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(Je("div",[Je("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),z=E.firstChild.offsetWidth,ie=E.offsetWidth-z;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(z,b.lineGutter.offsetWidth-ie)+1,b.lineNumWidth=b.lineNumInnerWidth+ie,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",ts(a.display),!0}return!1}function rs(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var z=a[E],ie=null;if(typeof z!="string"&&(ie=z.style,z=z.className),z=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:z,style:ie})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Is(a){var y=a.gutters,x=a.gutterSpecs;jt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],z=E.className,ie=E.style,ae=y.appendChild(Je("div",null,"CodeMirror-gutter "+z));ie&&(ae.style.cssText=ie),z=="CodeMirror-linenumbers"&&(a.lineGutter=ae,ae.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",ts(a)}function ra(a){Is(a.display),Ci(a),Fs(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=Je("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=Je("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=Dt("div",null,"CodeMirror-code"),E.selectionDiv=Je("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=Je("div",null,"CodeMirror-cursors"),E.measure=Je("div",null,"CodeMirror-measure"),E.lineMeasure=Je("div",null,"CodeMirror-measure"),E.lineSpace=Dt("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var z=Dt("div",[E.lineSpace],"CodeMirror-lines");E.mover=Je("div",[z],null,"position: relative"),E.sizer=Je("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=Je("div",null,null,"position: absolute; height: "+dt+"px; width: 1px;"),E.gutters=Je("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=Je("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=Je("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),me&&Ue<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ae&&!(re&&Ze)&&(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=rs(b.gutters,b.lineNumbers),Is(E),x.init(E)}var Ba=0,Ri=null;me?Ri=-.53:re?Ri=15:ge?Ri=-.7:De&&(Ri=-1/3);function _s(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=_s(a);return y.x*=Ri,y.y*=Ri,y}function Os(a,y){var x=_s(y),b=x.x,E=x.y,z=a.display,ie=z.scroller,ae=ie.scrollWidth>ie.clientWidth,ue=ie.scrollHeight>ie.clientHeight;if(b&&ae||E&&ue){if(E&&Le&&Ae){e:for(var fe=y.target,ke=z.view;fe!=ie;fe=fe.parentNode)for(var Me=0;Me<ke.length;Me++)if(ke[Me].node==fe){a.display.currentWheelTarget=fe;break e}}if(b&&!re&&!pe&&Ri!=null){E&&ue&&$o(a,Math.max(0,ie.scrollTop+E*Ri)),ko(a,Math.max(0,ie.scrollLeft+b*Ri)),(!E||E&&ue)&&ln(y),z.wheelStartX=null;return}if(E&&Ri!=null){var lt=E*Ri,rt=a.doc.scrollTop,Tt=rt+z.wrapper.clientHeight;lt<0?rt=Math.max(0,rt+lt-50):Tt=Math.min(a.doc.height,Tt+lt+50),es(a,{top:rt,bottom:Tt})}Ba<20&&(z.wheelStartX==null?(z.wheelStartX=ie.scrollLeft,z.wheelStartY=ie.scrollTop,z.wheelDX=b,z.wheelDY=E,setTimeout(function(){if(z.wheelStartX!=null){var zt=ie.scrollLeft-z.wheelStartX,nn=ie.scrollTop-z.wheelStartY,fn=nn&&z.wheelDY&&nn/z.wheelDY||zt&&z.wheelDX&&zt/z.wheelDX;z.wheelStartX=z.wheelStartY=null,fn&&(Ri=(Ri*Ba+fn)/(Ba+1),++Ba)}},200)):(z.wheelDX+=b,z.wheelDY+=E))}}var Ii=function(a,y){this.ranges=a,this.primIndex=y};Ii.prototype.primary=function(){return this.ranges[this.primIndex]},Ii.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 x=this.ranges[y],b=a.ranges[y];if(!tn(x.anchor,b.anchor)||!tn(x.head,b.head))return!1}return!0},Ii.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new kr(sn(this.ranges[y].anchor),sn(this.ranges[y].head));return new Ii(a,this.primIndex)},Ii.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ii.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Mt(y,b.from())>=0&&Mt(a,b.to())<=0)return x}return-1};var kr=function(a,y){this.anchor=a,this.head=y};kr.prototype.from=function(){return Xt(this.anchor,this.head)},kr.prototype.to=function(){return bn(this.anchor,this.head)},kr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ki(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(lt,rt){return Mt(lt.from(),rt.from())}),x=Pe(y,E);for(var z=1;z<y.length;z++){var ie=y[z],ae=y[z-1],ue=Mt(ae.to(),ie.from());if(b&&!ie.empty()?ue>0:ue>=0){var fe=Xt(ae.from(),ie.from()),ke=bn(ae.to(),ie.to()),Me=ae.empty()?ie.from()==ie.head:ae.from()==ae.head;z<=x&&--x,y.splice(--z,2,new kr(Me?ke:fe,Me?fe:ke))}}return new Ii(y,x)}function po(a,y){return new Ii([new kr(a,y||a)],0)}function vo(a){return a.text?Ve(a.from.line+a.text.length-1,ve(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hs(a,y){if(Mt(a,y.from)<0)return a;if(Mt(a,y.to)<=0)return vo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=vo(y).ch-y.to.ch),Ve(x,b)}function is(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new kr(Hs(E.anchor,y),Hs(E.head,y)))}return Ki(a.cm,x,a.sel.primIndex)}function Ws(a,y,x){return a.line==y.line?Ve(x.line,a.ch-y.ch+x.ch):Ve(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=Ve(a.first,0),z=E,ie=0;ie<y.length;ie++){var ae=y[ie],ue=Ws(ae.from,E,z),fe=Ws(vo(ae),E,z);if(E=ae.to,z=fe,x=="around"){var ke=a.sel.ranges[ie],Me=Mt(ke.head,ke.anchor)<0;b[ie]=new kr(Me?fe:ue,Me?ue:fe)}else b[ie]=new kr(ue,ue)}return new Ii(b,a.sel.primIndex)}function os(a){a.doc.mode=on(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,na(a,100),a.state.modeGen++,a.curOp&&Ci(a)}function zs(a,y){return y.from.ch==0&&y.to.ch==0&&ve(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function as(a,y,x,b){function E(xn){return x?x[xn]:null}function z(xn,hn,Dn){xr(xn,hn,Dn,b),zr(xn,"change",xn,y)}function ie(xn,hn){for(var Dn=[],Wn=xn;Wn<hn;++Wn)Dn.push(new br(fe[Wn],E(Wn),b));return Dn}var ae=y.from,ue=y.to,fe=y.text,ke=ct(a,ae.line),Me=ct(a,ue.line),lt=ve(fe),rt=E(fe.length-1),Tt=ue.line-ae.line;if(y.full)a.insert(0,ie(0,fe.length)),a.remove(fe.length,a.size-fe.length);else if(zs(a,y)){var zt=ie(0,fe.length-1);z(Me,Me.text,rt),Tt&&a.remove(ae.line,Tt),zt.length&&a.insert(ae.line,zt)}else if(ke==Me)if(fe.length==1)z(ke,ke.text.slice(0,ae.ch)+lt+ke.text.slice(ue.ch),rt);else{var nn=ie(1,fe.length-1);nn.push(new br(lt+ke.text.slice(ue.ch),rt,b)),z(ke,ke.text.slice(0,ae.ch)+fe[0],E(0)),a.insert(ae.line+1,nn)}else if(fe.length==1)z(ke,ke.text.slice(0,ae.ch)+fe[0]+Me.text.slice(ue.ch),E(0)),a.remove(ae.line+1,Tt);else{z(ke,ke.text.slice(0,ae.ch)+fe[0],E(0)),z(Me,lt+Me.text.slice(ue.ch),rt);var fn=ie(1,fe.length-1);Tt>1&&a.remove(ae.line+1,Tt-1),a.insert(ae.line+1,fn)}zr(a,"change",a,y)}function mo(a,y,x){function b(E,z,ie){if(E.linked)for(var ae=0;ae<E.linked.length;++ae){var ue=E.linked[ae];if(ue.doc!=z){var fe=ie&&ue.sharedHist;x&&!fe||(y(ue.doc,fe),b(ue.doc,E,fe))}}}b(a,null,!0)}function Zs(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ya(a),os(a),js(a),a.options.lineWrapping||rr(a),a.options.mode=y.modeOption,Ci(a)}function js(a){(a.doc.direction=="rtl"?Xe:et)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Ti(a,function(){js(a),Ci(a)})}function Ta(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 ss(a,y){var x={from:sn(y.from),to:vo(y),text:Nt(a,y.from,y.to)};return Us(a,x,y.from.line,y.to.line+1),mo(a,function(b){return Us(b,x,y.from.line,y.to.line+1)},!0),x}function Gs(a){for(;a.length;){var y=ve(a);if(y.ranges)a.pop();else break}}function su(a,y){if(y)return Gs(a.done),ve(a.done);if(a.done.length&&!ve(a.done).ranges)return ve(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ve(a.done)}function Vs(a,y,x,b){var E=a.history;E.undone.length=0;var z=+new Date,ie,ae;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>z-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(ie=su(E,E.lastOp==b)))ae=ve(ie.changes),Mt(y.from,y.to)==0&&Mt(y.from,ae.to)==0?ae.to=vo(y):ie.changes.push(ss(a,y));else{var ue=ve(E.done);for((!ue||!ue.ranges)&&Pa(a.sel,E.done),ie={changes:[ss(a,y)],generation:E.generation},E.done.push(ie);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=z,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ae||wt(a,"historyAdded")}function lu(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,z=b&&b.origin;x==E.lastSelOp||z&&E.lastSelOrigin==z&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==z||lu(a,z,ve(E.done),y))?E.done[E.done.length-1]=y:Pa(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=z,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gs(E.undone)}function Pa(a,y){var x=ve(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Us(a,y,x,b){var E=y["spans_"+a.id],z=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(ie){ie.markedSpans&&((E||(E=y["spans_"+a.id]={}))[z]=ie.markedSpans),++z})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function Ks(a,y){var x=du(a,y),b=Pr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var z=x[E],ie=b[E];if(z&&ie)e:for(var ae=0;ae<ie.length;++ae){for(var ue=ie[ae],fe=0;fe<z.length;++fe)if(z[fe].marker==ue.marker)continue e;z.push(ue)}else ie&&(x[E]=ie)}return x}function Io(a,y,x){for(var b=[],E=0;E<a.length;++E){var z=a[E];if(z.ranges){b.push(x?Ii.prototype.deepCopy.call(z):z);continue}var ie=z.changes,ae=[];b.push({changes:ae});for(var ue=0;ue<ie.length;++ue){var fe=ie[ue],ke=void 0;if(ae.push({from:fe.from,to:fe.to,text:fe.text}),y)for(var Me in fe)(ke=Me.match(/^spans_(\d+)$/))&&Pe(y,Number(ke[1]))>-1&&(ve(ae)[Me]=fe[Me],delete fe[Me])}}return b}function ls(a,y,x,b){if(b){var E=a.anchor;if(x){var z=Mt(y,E)<0;z!=Mt(x,E)<0?(E=y,y=x):z!=Mt(y,x)<0&&(y=x)}return new kr(E,y)}else return new kr(x||y,y)}function Na(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ii([ls(a.sel.primary(),y,x,E)],0),b)}function Ys(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),z=0;z<a.sel.ranges.length;z++)b[z]=ls(a.sel.ranges[z],y[z],null,E);var ie=Ki(a.cm,b,a.sel.primIndex);hi(a,ie,x)}function us(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,hi(a,Ki(a.cm,E,a.sel.primIndex),b)}function Xs(a,y,x,b){hi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var z=0;z<E.length;z++)this.ranges[z]=new kr(Pt(a,E[z].anchor),Pt(a,E[z].head))},origin:x&&x.origin};return wt(a,"beforeSelectionChange",a,b),a.cm&&wt(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ki(a.cm,b.ranges,b.ranges.length-1):y}function Js(a,y,x){var b=a.history.done,E=ve(b);E&&E.ranges?(b[b.length-1]=y,Fa(a,y,x)):hi(a,y,x)}function hi(a,y,x){Fa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Fa(a,y,x){(_t(a,"beforeSelectionChange")||a.cm&&_t(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Mt(y.primary().head,a.sel.primary().head)<0?-1:1);Qs(a,$s(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Fo(a.cm)}function Qs(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Yt(a.cm)),zr(a,"cursorActivity",a))}function qs(a){Qs(a,$s(a,a.sel,null,!1))}function $s(a,y,x,b){for(var E,z=0;z<y.ranges.length;z++){var ie=y.ranges[z],ae=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[z],ue=Ra(a,ie.anchor,ae&&ae.anchor,x,b),fe=Ra(a,ie.head,ae&&ae.head,x,b);(E||ue!=ie.anchor||fe!=ie.head)&&(E||(E=y.ranges.slice(0,z)),E[z]=new kr(ue,fe))}return E?Ki(a.cm,E,y.primIndex):y}function _o(a,y,x,b,E){var z=ct(a,y.line);if(z.markedSpans)for(var ie=0;ie<z.markedSpans.length;++ie){var ae=z.markedSpans[ie],ue=ae.marker,fe="selectLeft"in ue?!ue.selectLeft:ue.inclusiveLeft,ke="selectRight"in ue?!ue.selectRight:ue.inclusiveRight;if((ae.from==null||(fe?ae.from<=y.ch:ae.from<y.ch))&&(ae.to==null||(ke?ae.to>=y.ch:ae.to>y.ch))){if(E&&(wt(ue,"beforeCursorEnter"),ue.explicitlyCleared))if(z.markedSpans){--ie;continue}else break;if(!ue.atomic)continue;if(x){var Me=ue.find(b<0?1:-1),lt=void 0;if((b<0?ke:fe)&&(Me=el(a,Me,-b,Me&&Me.line==y.line?z:null)),Me&&Me.line==y.line&&(lt=Mt(Me,x))&&(b<0?lt<0:lt>0))return _o(a,Me,y,b,E)}var rt=ue.find(b<0?-1:1);return(b<0?fe:ke)&&(rt=el(a,rt,b,rt.line==y.line?z:null)),rt?_o(a,rt,y,b,E):null}}return y}function Ra(a,y,x,b,E){var z=b||1,ie=_o(a,y,x,z,E)||!E&&_o(a,y,x,z,!0)||_o(a,y,x,-z,E)||!E&&_o(a,y,x,-z,!0);return ie||(a.cantEdit=!0,Ve(a.first,0))}function el(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Pt(a,Ve(y.line-1)):null:x>0&&y.ch==(b||ct(a,y.line)).text.length?y.line<a.first+a.size-1?Ve(y.line+1,0):null:new Ve(y.line,y.ch+x)}function tl(a){a.setSelection(Ve(a.firstLine(),0),Ve(a.lastLine()),be)}function nl(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,z,ie,ae){E&&(b.from=Pt(a,E)),z&&(b.to=Pt(a,z)),ie&&(b.text=ie),ae!==void 0&&(b.origin=ae)}),wt(a,"beforeChange",a,b),a.cm&&wt(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function Oo(a,y,x){if(a.cm){if(!a.cm.curOp)return oi(a.cm,Oo)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((_t(a,"beforeChange")||a.cm&&_t(a.cm,"beforeChange"))&&(y=nl(a,y,!0),!y))){var b=Cr&&!x&&Jr(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rl(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rl(a,y)}}function rl(a,y){if(!(y.text.length==1&&y.text[0]==""&&Mt(y.from,y.to)==0)){var x=is(a,y);Vs(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,Pr(a,y));var b=[];mo(a,function(E,z){!z&&Pe(b,E.history)==-1&&(sl(E.history,y),b.push(E.history)),oa(E,y,null,Pr(E,y))})}}function Ia(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,z,ie=a.sel,ae=y=="undo"?E.done:E.undone,ue=y=="undo"?E.undone:E.done,fe=0;fe<ae.length&&(z=ae[fe],!(x?z.ranges&&!z.equals(a.sel):!z.ranges));fe++);if(fe!=ae.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(z=ae.pop(),z.ranges){if(Pa(z,ue),x&&!z.equals(a.sel)){hi(a,z,{clearRedo:!1});return}ie=z}else if(b){ae.push(z);return}else break;var ke=[];Pa(ie,ue),ue.push({changes:ke,generation:E.generation}),E.generation=z.generation||++E.maxGeneration;for(var Me=_t(a,"beforeChange")||a.cm&&_t(a.cm,"beforeChange"),lt=function(zt){var nn=z.changes[zt];if(nn.origin=y,Me&&!nl(a,nn,!1))return ae.length=0,{};ke.push(ss(a,nn));var fn=zt?is(a,nn):ve(ae);oa(a,nn,fn,Ks(a,nn)),!zt&&a.cm&&a.cm.scrollIntoView({from:nn.from,to:vo(nn)});var xn=[];mo(a,function(hn,Dn){!Dn&&Pe(xn,hn.history)==-1&&(sl(hn.history,nn),xn.push(hn.history)),oa(hn,nn,null,Ks(hn,nn))})},rt=z.changes.length-1;rt>=0;--rt){var Tt=lt(rt);if(Tt)return Tt.v}}}}function il(a,y){if(y!=0&&(a.first+=y,a.sel=new Ii(Ee(a.sel.ranges,function(E){return new kr(Ve(E.anchor.line+y,E.anchor.ch),Ve(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Ci(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)fo(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return oi(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){il(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);il(a,E),y={from:Ve(a.first,0),to:Ve(y.to.line+E,y.to.ch),text:[ve(y.text)],origin:y.origin}}var z=a.lastLine();y.to.line>z&&(y={from:y.from,to:Ve(z,ct(a,z).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Nt(a,y.from,y.to),x||(x=is(a,y)),a.cm?hu(a.cm,y,b):as(a,y,b),Fa(a,x,be),a.cantEdit&&Ra(a,Ve(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,z=y.from,ie=y.to,ae=!1,ue=z.line;a.options.lineWrapping||(ue=Te(dn(ct(b,z.line))),b.iter(ue,ie.line+1,function(rt){if(rt==E.maxLine)return ae=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Yt(a),as(b,y,x,ws(a)),a.options.lineWrapping||(b.iter(ue,z.line+y.text.length,function(rt){var Tt=hr(rt);Tt>E.maxLineLength&&(E.maxLine=rt,E.maxLineLength=Tt,E.maxLineChanged=!0,ae=!1)}),ae&&(a.curOp.updateMaxLine=!0)),Lr(b,z.line),na(a,400);var fe=y.text.length-(ie.line-z.line)-1;y.full?Ci(a):z.line==ie.line&&y.text.length==1&&!zs(a.doc,y)?fo(a,z.line,"text"):Ci(a,z.line,ie.line+1,fe);var ke=_t(a,"changes"),Me=_t(a,"change");if(Me||ke){var lt={from:z,to:ie,text:y.text,removed:y.removed,origin:y.origin};Me&&zr(a,"change",a,lt),ke&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(lt)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var z;b||(b=x),Mt(b,x)<0&&(z=[b,x],x=z[0],b=z[1]),typeof y=="string"&&(y=a.splitLines(y)),Oo(a,{from:x,to:b,text:y,origin:E})}function ol(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function al(a,y,x,b){for(var E=0;E<a.length;++E){var z=a[E],ie=!0;if(z.ranges){z.copied||(z=a[E]=z.deepCopy(),z.copied=!0);for(var ae=0;ae<z.ranges.length;ae++)ol(z.ranges[ae].anchor,y,x,b),ol(z.ranges[ae].head,y,x,b);continue}for(var ue=0;ue<z.changes.length;++ue){var fe=z.changes[ue];if(x<fe.from.line)fe.from=Ve(fe.from.line+b,fe.from.ch),fe.to=Ve(fe.to.line+b,fe.to.ch);else if(y<=fe.to.line){ie=!1;break}}ie||(a.splice(0,E+1),E=0)}}function sl(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;al(a.done,x,b,E),al(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,z=y;return typeof y=="number"?z=ct(a,rn(a,y)):E=Te(y),E==null?null:(b(z,E)&&a.cm&&fo(a.cm,E,x),z)}function sa(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Sr(E),zr(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function la(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}la.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var z=Math.min(y,E-a),ie=b.height;if(b.removeInner(a,z),this.height-=ie-b.height,E==z&&(this.children.splice(x--,1),b.parent=null),(y-=z)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var ae=[];this.collapse(ae),this.children=[new sa(ae)],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,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],z=E.chunkSize();if(a<=z){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var ie=E.lines.length%25+25,ae=ie;ae<E.lines.length;){var ue=new sa(E.lines.slice(ae,ae+=25));E.height-=ue.height,this.children.splice(++b,0,ue),ue.parent=this}E.lines=E.lines.slice(0,ie),this.maybeSpill()}break}a-=z}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new la(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=Pe(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new la(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],z=E.chunkSize();if(a<z){var ie=Math.min(y,z-a);if(E.iterN(a,ie,x))return!0;if((y-=ie)==0)break;a=0}else a-=z}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Te(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var z=gi(this);Bn(x,Math.max(0,x.height-z)),a&&(Ti(a,function(){ll(a,x,-z),fo(a,b,"widget")}),zr(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=gi(this)-y;E&&(cn(this.doc,b)||Bn(b,b.height+E),x&&Ti(x,function(){x.curOp.forceUpdate=!0,ll(x,b,E),zr(x,"lineWidgetChanged",x,a,Te(b))}))},Wt(ua);function ll(a,y,x){Hn(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&qa(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),z=a.cm;return z&&E.noHScroll&&(z.display.alignWidgets=!0),aa(a,y,"widget",function(ie){var ae=ie.widgets||(ie.widgets=[]);if(E.insertAt==null?ae.push(E):ae.splice(Math.min(ae.length-1,Math.max(0,E.insertAt)),0,E),E.line=ie,z&&!cn(a,ie)){var ue=Hn(ie)<a.scrollTop;Bn(ie,ie.height+gi(E)),ue&&qa(z,E.height),z.curOp.forceUpdate=!0}return!0}),z&&zr(z,"lineWidgetAdded",z,E,typeof y=="number"?y:Te(y)),E}var ul=0,go=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ul};go.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Ao(a),_t(this,"clear")){var x=this.find();x&&zr(this,"clear",x.from,x.to)}for(var b=null,E=null,z=0;z<this.lines.length;++z){var ie=this.lines[z],ae=Er(ie.markedSpans,this);a&&!this.collapsed?fo(a,Te(ie),"text"):a&&(ae.to!=null&&(E=Te(ie)),ae.from!=null&&(b=Te(ie))),ie.markedSpans=Mr(ie.markedSpans,ae),ae.from==null&&this.collapsed&&!cn(this.doc,ie)&&a&&Bn(ie,Bi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ue=0;ue<this.lines.length;++ue){var fe=dn(this.lines[ue]),ke=hr(fe);ke>a.display.maxLineLength&&(a.display.maxLine=fe,a.display.maxLineLength=ke,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Ci(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&qs(a.doc)),a&&zr(a,"markerCleared",a,this,b,E),y&&Do(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var z=this.lines[E],ie=Er(z.markedSpans,this);if(ie.from!=null&&(x=Ve(y?z:Te(z),ie.from),a==-1))return x;if(ie.to!=null&&(b=Ve(y?z:Te(z),ie.to),a==1))return b}return x&&{from:x,to:b}},go.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Ti(b,function(){var E=y.line,z=Te(y.line),ie=$i(b,z);if(ie&&(Ko(ie),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!cn(x.doc,E)&&x.height!=null){var ae=x.height;x.height=null;var ue=gi(x)-ae;ue&&Bn(E,E.height+ue)}zr(b,"markerChanged",b,a)})},go.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Pe(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(Pe(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Wt(go);function Wo(a,y,x,b,E){if(b&&b.shared)return vu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return oi(a.cm,Wo)(a,y,x,b,E);var z=new go(a,E),ie=Mt(y,x);if(b&&at(b,z,!1),ie>0||ie==0&&z.clearWhenEmpty!==!1)return z;if(z.replacedWith&&(z.collapsed=!0,z.widgetNode=Dt("span",[z.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||z.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(z.widgetNode.insertLeft=!0)),z.collapsed){if(An(a,y.line,y,x,z)||y.line!=x.line&&An(a,x.line,y,x,z))throw new Error("Inserting collapsed marker partially overlapping an existing one");yr()}z.addToHistory&&Vs(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ae=y.line,ue=a.cm,fe;if(a.iter(ae,x.line+1,function(Me){ue&&z.collapsed&&!ue.options.lineWrapping&&dn(Me)==ue.display.maxLine&&(fe=!0),z.collapsed&&ae!=y.line&&Bn(Me,0),mr(Me,new dr(z,ae==y.line?y.ch:null,ae==x.line?x.ch:null)),++ae}),z.collapsed&&a.iter(y.line,x.line+1,function(Me){cn(a,Me)&&Bn(Me,0)}),z.clearOnEnter&&ye(z,"beforeCursorEnter",function(){return z.clear()}),z.readOnly&&(Fr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),z.collapsed&&(z.id=++ul,z.atomic=!0),ue){if(fe&&(ue.curOp.updateMaxLine=!0),z.collapsed)Ci(ue,y.line,x.line+1);else if(z.className||z.startStyle||z.endStyle||z.css||z.attributes||z.title)for(var ke=y.line;ke<=x.line;ke++)fo(ue,ke,"text");z.atomic&&qs(ue.doc),zr(ue,"markerAdded",ue,z)}return z}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();zr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Wt(ca);function vu(a,y,x,b,E){b=at(b),b.shared=!1;var z=[Wo(a,y,x,b,E)],ie=z[0],ae=b.widgetNode;return mo(a,function(ue){ae&&(b.widgetNode=ae.cloneNode(!0)),z.push(Wo(ue,Pt(ue,y),Pt(ue,x),b,E));for(var fe=0;fe<ue.linked.length;++fe)if(ue.linked[fe].isParent)return;ie=ve(z)}),new ca(z,ie)}function cl(a){return a.findMarks(Ve(a.first,0),a.clipPos(Ve(a.lastLine())),function(y){return y.parent})}function mu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),z=a.clipPos(E.from),ie=a.clipPos(E.to);if(Mt(z,ie)){var ae=Wo(a,z,ie,b.primary,b.primary.type);b.markers.push(ae),ae.parent=b}}}function gu(a){for(var y=function(b){var E=a[b],z=[E.primary.doc];mo(E.primary.doc,function(ue){return z.push(ue)});for(var ie=0;ie<E.markers.length;ie++){var ae=E.markers[ie];Pe(z,ae.doc)==-1&&(ae.parent=null,E.markers.splice(ie--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,Si=function(a,y,x,b,E){if(!(this instanceof Si))return new Si(a,y,x,b,E);x==null&&(x=0),la.call(this,[new sa([new br("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var z=Ve(x,0);this.sel=po(z),this.history=new Ta(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),as(this,{from:z,to:z,text:a}),hi(this,po(z),be)};Si.prototype=Ie(la.prototype,{constructor:Si,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=gn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ai(function(a){var y=Ve(this.first,0),x=this.first+this.size-1;Oo(this,{from:y,to:Ve(x,ct(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qo(this.cm,0,0),hi(this,po(y),be)}),replaceRange:function(a,y,x,b){y=Pt(this,y),x=x?Pt(this,x):y,Ho(this,a,y,x,b)},getRange:function(a,y,x){var b=Nt(this,Pt(this,a),Pt(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Ht(this,a))return ct(this,a)},getLineNumber:function(a){return Te(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=ct(this,a)),dn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Pt(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ai(function(a,y,x){Xs(this,Pt(this,typeof a=="number"?Ve(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xs(this,Pt(this,a),Pt(this,y||a),x)}),extendSelection:ai(function(a,y,x){Na(this,Pt(this,a),y&&Pt(this,y),x)}),extendSelections:ai(function(a,y){Ys(this,an(this,a),y)}),extendSelectionsBy:ai(function(a,y){var x=Ee(this.sel.ranges,a);Ys(this,an(this,x),y)}),setSelections:ai(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new kr(Pt(this,a[E].anchor),Pt(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),hi(this,Ki(this.cm,b,y),x)}}),addSelection:ai(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new kr(Pt(this,a),Pt(this,y||a))),hi(this,Ki(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=Nt(this,y[b].from(),y[b].to());x=x?x.concat(E):E}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var E=Nt(this,x[b].from(),x[b].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[b]=E}return y},replaceSelection:function(a,y,x){for(var b=[],E=0;E<this.sel.ranges.length;E++)b[E]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:ai(function(a,y,x){for(var b=[],E=this.sel,z=0;z<E.ranges.length;z++){var ie=E.ranges[z];b[z]={from:ie.from(),to:ie.to(),text:this.splitLines(a[z]),origin:x}}for(var ae=y&&y!="end"&&ou(this,b,y),ue=b.length-1;ue>=0;ue--)Oo(this,b[ue]);ae?Js(this,ae):this.cm&&Fo(this.cm)}),undo:ai(function(){Ia(this,"undo")}),redo:ai(function(){Ia(this,"redo")}),undoSelection:ai(function(){Ia(this,"undo",!0)}),redoSelection:ai(function(){Ia(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Ta(this.history.maxGeneration),mo(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:Io(this.history.done),undone:Io(this.history.undone)}},setHistory:function(a){var y=this.history=new Ta(this.history.maxGeneration);y.done=Io(a.done.slice(0),null,!0),y.undone=Io(a.undone.slice(0),null,!0)},setGutterMarker:ai(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&Ge(E)&&(b.gutterMarkers=null),!0})}),clearGutter:ai(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,Ge(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Ht(this,a)||(y=a,a=ct(this,a),!a))return null}else if(y=Te(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:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(st(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",z=b[E];if(z)if(x==null)b[E]=null;else{var ie=z.match(st(x));if(!ie)return!1;var ae=ie.index+ie[0].length;b[E]=z.slice(0,ie.index)+(!ie.index||ae==z.length?"":" ")+z.slice(ae)||null}else return!1;return!0})}),addLineWidget:ai(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Wo(this,Pt(this,a),Pt(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Pt(this,a),Wo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Pt(this,a);var y=[],x=ct(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var E=x[b];(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,x){a=Pt(this,a),y=Pt(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(z){var ie=z.markedSpans;if(ie)for(var ae=0;ae<ie.length;ae++){var ue=ie[ae];!(ue.to!=null&&E==a.line&&a.ch>=ue.to||ue.from==null&&E!=a.line||ue.from!=null&&E==y.line&&ue.from>=y.ch)&&(!x||x(ue.marker))&&b.push(ue.marker.parent||ue.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var z=E.text.length+b;if(z>a)return y=a,!0;a-=z,++x}),Pt(this,Ve(x,y))},indexFromPos:function(a){a=Pt(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new Si(gn(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,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new Si(gn(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],mu(b,cl(this)),b},unlinkDoc:function(a){if(a instanceof jr&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),gu(cl(this));break}}if(a.history==this.history){var b=[a.id];mo(a,function(E){return b.push(E.id)},!0),a.history=new Ta(null),a.history.done=Io(this.history.done,b),a.history.undone=Io(this.history.undone,b)}},iterLinkedDocs:function(a){mo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Vn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ai(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))})}),Si.prototype.eachLine=Si.prototype.iter;var dl=0;function bu(a){var y=this;if(fl(y),!(He(y,a)||ui(y.display,a))){ln(a),me&&(dl=+new Date);var x=Co(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,z=Array(E),ie=0,ae=function(){++ie==E&&oi(y,function(){x=Pt(y.doc,x);var rt={from:x,to:x,text:y.doc.splitLines(z.filter(function(Tt){return Tt!=null}).join(y.doc.lineSeparator())),origin:"paste"};Oo(y.doc,rt),Js(y.doc,po(Pt(y.doc,x),Pt(y.doc,vo(rt))))})()},ue=function(rt,Tt){if(y.options.allowDropFileTypes&&Pe(y.options.allowDropFileTypes,rt.type)==-1){ae();return}var zt=new FileReader;zt.onerror=function(){return ae()},zt.onload=function(){var nn=zt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(nn)){ae();return}z[Tt]=nn,ae()},zt.readAsText(rt)},fe=0;fe<b.length;fe++)ue(b[fe],fe);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var ke=a.dataTransfer.getData("Text");if(ke){var Me;if(y.state.draggingText&&!y.state.draggingText.copy&&(Me=y.listSelections()),Fa(y.doc,po(x,x)),Me)for(var lt=0;lt<Me.length;++lt)Ho(y.doc,"",Me[lt].anchor,Me[lt].head,"drag");y.replaceSelection(ke,"around","paste"),y.display.input.focus()}}catch(rt){}}}}function xu(a,y){if(me&&(!a.state.draggingText||+new Date-dl<100)){Mn(y);return}if(!(He(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!De)){var x=Je("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",pe&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),pe&&x.parentNode.removeChild(x)}}function wu(a,y){var x=Co(a,y);if(x){var b=document.createDocumentFragment();ks(a,x,b),a.display.dragCursor||(a.display.dragCursor=Je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),We(a.display.dragCursor,b)}}function fl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hl(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var z=0;z<x.length;z++)a(x[z])})}}var pl=!1;function Cu(){pl||(Su(),pl=!0)}function Su(){var a;ye(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hl(ku)},100))}),ye(window,"blur",function(){return hl(No)})}function ku(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"},da=0;da<10;da++)yo[da+48]=yo[da+96]=String(da);for(var _a=65;_a<=90;_a++)yo[_a]=String.fromCharCode(_a);for(var fa=1;fa<=12;fa++)yo[fa+111]=yo[fa+63235]="F"+fa;var io={};io.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"},io.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"},io.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"},io.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"]},io.default=Le?io.macDefault:io.pcDefault;function Eu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,z,ie=0;ie<y.length-1;ie++){var ae=y[ie];if(/^(cmd|meta|m)$/i.test(ae))z=!0;else if(/^a(lt)?$/i.test(ae))x=!0;else if(/^(c|ctrl|control)$/i.test(ae))b=!0;else if(/^s(hift)?$/i.test(ae))E=!0;else throw new Error("Unrecognized modifier name: "+ae)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),z&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Au(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var E=Ee(x.split(" "),Eu),z=0;z<E.length;z++){var ie=void 0,ae=void 0;z==E.length-1?(ae=E.join(" "),ie=b):(ae=E.slice(0,z+1).join(" "),ie="...");var ue=y[ae];if(!ue)y[ae]=ie;else if(ue!=ie)throw new Error("Inconsistent bindings for "+ae)}delete a[x]}for(var fe in y)a[fe]=y[fe];return a}function zo(a,y,x,b){y=Oa(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return zo(a,y.fallthrough,x,b);for(var z=0;z<y.fallthrough.length;z++){var ie=zo(a,y.fallthrough[z],x,b);if(ie)return ie}}}function vl(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function ml(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(tt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(tt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gl(a,y){if(pe&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),ml(x,a,y))}function Oa(a){return typeof a=="string"?io[a]:a}function Zo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var z=y(x[E]);b.length&&Mt(z.from,ve(b).to)<=0;){var ie=b.pop();if(Mt(ie.from,z.from)<0){z.from=ie.from;break}}b.push(z)}Ti(a,function(){for(var ae=b.length-1;ae>=0;ae--)Ho(a.doc,"",b[ae].from,b[ae].to,"+delete");Fo(a)})}function cs(a,y,x){var b=Qt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function ds(a,y,x){var b=cs(a,y.ch,x);return b==null?null:new Ve(y.line,b,x<0?"after":"before")}function fs(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var z=ce(x,y.doc.direction);if(z){var ie=E<0?ve(z):z[0],ae=E<0==(ie.level==1),ue=ae?"after":"before",fe;if(ie.level>0||y.doc.direction=="rtl"){var ke=uo(y,x);fe=E<0?x.text.length-1:0;var Me=Wi(y,ke,fe).top;fe=It(function(lt){return Wi(y,ke,lt).top==Me},E<0==(ie.level==1)?ie.from:ie.to-1,fe),ue=="before"&&(fe=cs(x,fe,1))}else fe=E<0?ie.to:ie.from;return new Ve(b,fe,ue)}}return new Ve(b,E<0?x.text.length:0,E<0?"before":"after")}function Du(a,y,x,b){var E=ce(y,a.doc.direction);if(!E)return ds(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var z=ee(E,x.ch,x.sticky),ie=E[z];if(a.doc.direction=="ltr"&&ie.level%2==0&&(b>0?ie.to>x.ch:ie.from<x.ch))return ds(y,x,b);var ae=function(fn,xn){return cs(y,fn instanceof Ve?fn.ch:fn,xn)},ue,fe=function(fn){return a.options.lineWrapping?(ue=ue||uo(a,y),Yr(a,y,ue,fn)):{begin:0,end:y.text.length}},ke=fe(x.sticky=="before"?ae(x,-1):x.ch);if(a.doc.direction=="rtl"||ie.level==1){var Me=ie.level==1==b<0,lt=ae(x,Me?1:-1);if(lt!=null&&(Me?lt<=ie.to&&lt<=ke.end:lt>=ie.from&&lt>=ke.begin)){var rt=Me?"before":"after";return new Ve(x.line,lt,rt)}}var Tt=function(fn,xn,hn){for(var Dn=function(Ir,si){return si?new Ve(x.line,ae(Ir,1),"before"):new Ve(x.line,Ir,"after")};fn>=0&&fn<E.length;fn+=xn){var Wn=E[fn],In=xn>0==(Wn.level!=1),ir=In?hn.begin:ae(hn.end,-1);if(Wn.from<=ir&&ir<Wn.to||(ir=In?Wn.from:ae(Wn.to,-1),hn.begin<=ir&&ir<hn.end))return Dn(ir,In)}},zt=Tt(z+b,b,ke);if(zt)return zt;var nn=b>0?ke.end:ae(ke.begin,-1);return nn!=null&&!(b>0&&nn==y.text.length)&&(zt=Tt(b>0?0:E.length-1,b,fe(nn)),zt)?zt:null}var ha={selectAll:tl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),be)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=ct(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Ve(y.head.line+1,0)}:{from:y.head,to:Ve(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Zo(a,function(y){return{from:Ve(y.from().line,0),to:Pt(a.doc,Ve(y.to().line+1,0))}})},delLineLeft:function(a){return Zo(a,function(y){return{from:Ve(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Zo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return Zo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},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(Ve(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ve(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return yl(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bl(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Lu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},Fe)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},Fe)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bl(a,y.head):b},Fe)},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=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var z=x[E].from(),ie=he(a.getLine(z.line),z.ch,b);y.push(Se(b-ie%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ti(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,z=ct(a.doc,E.line).text;if(z){if(E.ch==z.length&&(E=new Ve(E.line,E.ch-1)),E.ch>0)E=new Ve(E.line,E.ch+1),a.replaceRange(z.charAt(E.ch-1)+z.charAt(E.ch-2),Ve(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var ie=ct(a.doc,E.line-1).text;ie&&(E=new Ve(E.line,1),a.replaceRange(z.charAt(0)+a.doc.lineSeparator()+ie.charAt(ie.length-1),Ve(E.line-1,ie.length-1),E,"+transpose"))}}x.push(new kr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Ti(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Fo(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function yl(a,y){var x=ct(a.doc,y),b=dn(x);return b!=x&&(y=Te(b)),fs(!0,a,b,y,1)}function Lu(a,y){var x=ct(a.doc,y),b=_n(x);return b!=x&&(y=Te(b)),fs(!0,a,x,y,-1)}function bl(a,y){var x=yl(a,y.line),b=ct(a.doc,x.line),E=ce(b,a.doc.direction);if(!E||E[0].level==0){var z=Math.max(x.ch,b.text.search(/\S/)),ie=y.line==x.line&&y.ch<=z&&y.ch;return Ve(x.line,ie?0:z,x.sticky)}return x}function Ha(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=ot}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function Mu(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=zo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&zo(y,a.options.extraKeys,x,a)||zo(y,a.options.keyMap,x,a)}var Bu=new le;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(vl(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Bu.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xl(a,E+" "+y,x,b))return!0}return xl(a,y,x,b)}function xl(a,y,x,b){var E=Mu(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&zr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(ln(x),Xa(a)),!!E}function wl(a,y){var x=gl(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return Ha(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return Ha(a,b)}):pa(a,x,y,function(b){return Ha(a,b)}):!1}function Tu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return Ha(a,b,!0)})}var hs=null;function Cl(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Be(),!He(y,a))){me&&Ue<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=wl(y,a);pe&&(hs=b?x:null,!b&&x==88&&!Tn&&(Le?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),re&&!Le&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Pu(y)}}function Pu(a){var y=a.display.lineDiv;Xe(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(et(y,"CodeMirror-crosshair"),bt(document,"keyup",x),bt(document,"mouseover",x))}ye(document,"keyup",x),ye(document,"mouseover",x)}function Sl(a){a.keyCode==16&&(this.doc.sel.shift=!1),He(this,a)}function kl(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||He(y,a)||a.ctrlKey&&!a.altKey||Le&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(pe&&x==hs){hs=null,ln(a);return}if(!(pe&&(!a.which||a.which<10)&&wl(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Tu(y,a,E)||y.display.input.onKeyPress(a))}}}var Nu=400,ps=function(a,y,x){this.time=a,this.pos=y,this.button=x};ps.prototype.compare=function(a,y,x){return this.time+Nu>a&&Mt(y,this.pos)==0&&x==this.button};var va,ma;function Fu(a,y){var x=+new Date;return ma&&ma.compare(x,a,y)?(va=ma=null,"triple"):va&&va.compare(x,a,y)?(ma=new ps(x,a,y),va=null,"double"):(va=new ps(x,a,y),ma=null,"single")}function El(a){var y=this,x=y.display;if(!(He(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Ae||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!vs(y,a)){var b=Co(y,a),E=jn(a),z=b?Fu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Ru(y,E,b,z,a))&&(E==1?b?_u(y,b,z,a):er(a)==x.scroller&&ln(a):E==2?(b&&Na(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Qe?y.display.input.onContextMenu(a):As(y)))}}}function Ru(a,y,x,b,E){var z="Click";return b=="double"?z="Double"+z:b=="triple"&&(z="Triple"+z),z=(y==1?"Left":y==2?"Middle":"Right")+z,pa(a,ml(z,E),E,function(ie){if(typeof ie=="string"&&(ie=ha[ie]),!ie)return!1;var ae=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ae=ie(a,x)!=ot}finally{a.state.suppressEdits=!1}return ae})}function Iu(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var z=vt?x.shiftKey&&x.metaKey:x.altKey;E.unit=z?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Le?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Le?x.altKey:x.ctrlKey)),E}function _u(a,y,x,b){me?setTimeout(ht(Es,a),0):a.curOp.focus=Be();var E=Iu(a,x,b),z=a.doc.sel,ie;a.options.dragDrop&&ur&&!a.isReadOnly()&&x=="single"&&(ie=z.contains(y))>-1&&(Mt((ie=z.ranges[ie]).from(),y)<0||y.xRel>0)&&(Mt(ie.to(),y)>0||y.xRel<0)?Ou(a,b,y,E):Hu(a,b,y,E)}function Ou(a,y,x,b){var E=a.display,z=!1,ie=oi(a,function(fe){Ae&&(E.scroller.draggable=!1),a.state.draggingText=!1,bt(E.wrapper.ownerDocument,"mouseup",ie),bt(E.wrapper.ownerDocument,"mousemove",ae),bt(E.scroller,"dragstart",ue),bt(E.scroller,"drop",ie),z||(ln(fe),b.addNew||Na(a.doc,x,null,null,b.extend),Ae&&!De||me&&Ue==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ae=function(fe){z=z||Math.abs(y.clientX-fe.clientX)+Math.abs(y.clientY-fe.clientY)>=10},ue=function(){return z=!0};Ae&&(E.scroller.draggable=!0),a.state.draggingText=ie,ie.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),ye(E.wrapper.ownerDocument,"mouseup",ie),ye(E.wrapper.ownerDocument,"mousemove",ae),ye(E.scroller,"dragstart",ue),ye(E.scroller,"drop",ie),As(a),setTimeout(function(){return E.input.focus()},20)}function Al(a,y,x){if(x=="char")return new kr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new kr(Ve(y.line,0),Pt(a.doc,Ve(y.line+1,0)));var b=x(a,y);return new kr(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,z=a.doc;ln(y);var ie,ae,ue=z.sel,fe=ue.ranges;if(b.addNew&&!b.extend?(ae=z.sel.contains(x),ae>-1?ie=fe[ae]:ie=new kr(x,x)):(ie=z.sel.primary(),ae=z.sel.primIndex),b.unit=="rectangle")b.addNew||(ie=new kr(x,x)),x=Co(a,y,!0,!0),ae=-1;else{var ke=Al(a,x,b.unit);b.extend?ie=ls(ie,ke.anchor,ke.head,b.extend):ie=ke}b.addNew?ae==-1?(ae=fe.length,hi(z,Ki(a,fe.concat([ie]),ae),{scroll:!1,origin:"*mouse"})):fe.length>1&&fe[ae].empty()&&b.unit=="char"&&!b.extend?(hi(z,Ki(a,fe.slice(0,ae).concat(fe.slice(ae+1)),0),{scroll:!1,origin:"*mouse"}),ue=z.sel):us(z,ae,ie,Ne):(ae=0,hi(z,new Ii([ie],0),Ne),ue=z.sel);var Me=x;function lt(hn){if(Mt(Me,hn)!=0)if(Me=hn,b.unit=="rectangle"){for(var Dn=[],Wn=a.options.tabSize,In=he(ct(z,x.line).text,x.ch,Wn),ir=he(ct(z,hn.line).text,hn.ch,Wn),Ir=Math.min(In,ir),si=Math.max(In,ir),Gr=Math.min(x.line,hn.line),Pi=Math.min(a.lastLine(),Math.max(x.line,hn.line));Gr<=Pi;Gr++){var ki=ct(z,Gr).text,qr=Ct(ki,Ir,Wn);Ir==si?Dn.push(new kr(Ve(Gr,qr),Ve(Gr,qr))):ki.length>qr&&Dn.push(new kr(Ve(Gr,qr),Ve(Gr,Ct(ki,si,Wn))))}Dn.length||Dn.push(new kr(x,x)),hi(z,Ki(a,ue.ranges.slice(0,ae).concat(Dn),ae),{origin:"*mouse",scroll:!1}),a.scrollIntoView(hn)}else{var Ei=ie,di=Al(a,hn,b.unit),ri=Ei.anchor,$r;Mt(di.anchor,ri)>0?($r=di.head,ri=Xt(Ei.from(),di.anchor)):($r=di.anchor,ri=bn(Ei.to(),di.head));var Ur=ue.ranges.slice(0);Ur[ae]=Wu(a,new kr(Pt(z,ri),$r)),hi(z,Ki(a,Ur,ae),Ne)}}var rt=E.wrapper.getBoundingClientRect(),Tt=0;function zt(hn){var Dn=++Tt,Wn=Co(a,hn,!0,b.unit=="rectangle");if(Wn)if(Mt(Wn,Me)!=0){a.curOp.focus=Be(),lt(Wn);var In=Da(E,z);(Wn.line>=In.to||Wn.line<In.from)&&setTimeout(oi(a,function(){Tt==Dn&&zt(hn)}),150)}else{var ir=hn.clientY<rt.top?-20:hn.clientY>rt.bottom?20:0;ir&&setTimeout(oi(a,function(){Tt==Dn&&(E.scroller.scrollTop+=ir,zt(hn))}),50)}}function nn(hn){a.state.selectingText=!1,Tt=1/0,hn&&(ln(hn),E.input.focus()),bt(E.wrapper.ownerDocument,"mousemove",fn),bt(E.wrapper.ownerDocument,"mouseup",xn),z.history.lastSelOrigin=null}var fn=oi(a,function(hn){hn.buttons===0||!jn(hn)?nn(hn):zt(hn)}),xn=oi(a,nn);a.state.selectingText=xn,ye(E.wrapper.ownerDocument,"mousemove",fn),ye(E.wrapper.ownerDocument,"mouseup",xn)}function Wu(a,y){var x=y.anchor,b=y.head,E=ct(a.doc,x.line);if(Mt(x,b)==0&&x.sticky==b.sticky)return y;var z=ce(E);if(!z)return y;var ie=ee(z,x.ch,x.sticky),ae=z[ie];if(ae.from!=x.ch&&ae.to!=x.ch)return y;var ue=ie+(ae.from==x.ch==(ae.level!=1)?0:1);if(ue==0||ue==z.length)return y;var fe;if(b.line!=x.line)fe=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ke=ee(z,b.ch,b.sticky),Me=ke-ie||(b.ch-x.ch)*(ae.level==1?-1:1);ke==ue-1||ke==ue?fe=Me<0:fe=Me>0}var lt=z[ue+(fe?-1:0)],rt=fe==(lt.level==1),Tt=rt?lt.from:lt.to,zt=rt?"after":"before";return x.ch==Tt&&x.sticky==zt?y:new kr(new Ve(x.line,Tt,zt),b)}function Dl(a,y,x,b){var E,z;if(y.touches)E=y.touches[0].clientX,z=y.touches[0].clientY;else try{E=y.clientX,z=y.clientY}catch(lt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&ln(y);var ie=a.display,ae=ie.lineDiv.getBoundingClientRect();if(z>ae.bottom||!_t(a,x))return pn(y);z-=ae.top-ie.viewOffset;for(var ue=0;ue<a.display.gutterSpecs.length;++ue){var fe=ie.gutters.childNodes[ue];if(fe&&fe.getBoundingClientRect().right>=E){var ke=Re(a.doc,z),Me=a.display.gutterSpecs[ue];return wt(a,x,a,ke,Me.className,y),pn(y)}}}function vs(a,y){return Dl(a,y,"gutterClick",!0)}function Ll(a,y){ui(a.display,y)||zu(a,y)||He(a,y,"contextmenu")||Qe||a.display.input.onContextMenu(y)}function zu(a,y){return _t(a,"gutterContextMenu")?Dl(a,y,"gutterContextMenu",!1):!1}function Ml(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),wo(a)}var jo={toString:function(){return"CodeMirror.Init"}},Bl={},Wa={};function Zu(a){var y=a.optionHandlers;function x(b,E,z,ie){a.defaults[b]=E,z&&(y[b]=ie?function(ae,ue,fe){fe!=jo&&z(ae,ue,fe)}:z)}a.defineOption=x,a.Init=jo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,os(b)},!0),x("indentUnit",2,os,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),wo(b),Ci(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var z=[],ie=b.doc.first;b.doc.iter(function(ue){for(var fe=0;;){var ke=ue.text.indexOf(E,fe);if(ke==-1)break;fe=ke+E.length,z.push(Ve(ie,ke))}ie++});for(var ae=z.length-1;ae>=0;ae--)Ho(b.doc,E,z[ae],Ve(z[ae].line,z[ae].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,z){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),z!=jo&&b.refresh()}),x("specialCharPlaceholder",Di,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ze?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!ft),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ml(b),ra(b)},!0),x("keyMap","default",function(b,E,z){var ie=Oa(E),ae=z!=jo&&Oa(z);ae&&ae.detach&&ae.detach(b,ie),ie.attach&&ie.attach(b,ae||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rs(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ka(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Ro(b)},!0),x("scrollbarStyle","native",function(b){Ps(b),Ro(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rs(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(No(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,ju),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function ju(a,y,x){var b=x&&x!=jo;if(!y!=!b){var E=a.display.dragFunctions,z=y?ye:bt;z(a.display.scroller,"dragstart",E.start),z(a.display.scroller,"dragenter",E.enter),z(a.display.scroller,"dragover",E.over),z(a.display.scroller,"dragleave",E.leave),z(a.display.scroller,"drop",E.drop)}}function Gu(a){a.options.lineWrapping?(Xe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(et(a.display.wrapper,"CodeMirror-wrap"),rr(a)),Ya(a),Ci(a),wo(a),setTimeout(function(){return Ro(a)},100)}function jr(a,y){var x=this;if(!(this instanceof jr))return new jr(a,y);this.options=y=y?at(y):{},at(Bl,y,!1);var b=y.value;typeof b=="string"?b=new Si(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new jr.inputStyles[y.inputStyle](this),z=this.display=new ru(a,b,E,y);z.wrapper.CodeMirror=this,Ml(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ps(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 le,keySeq:null,specialChars:null},y.autofocus&&!Ze&&z.input.focus(),me&&Ue<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Cu(),Ao(this),this.curOp.forceUpdate=!0,Zs(this,b),y.autofocus&&!Ze||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ja(x)},20):No(this);for(var ie in Wa)Wa.hasOwnProperty(ie)&&Wa[ie](this,y[ie],jo);Rs(this),y.finishInit&&y.finishInit(this);for(var ae=0;ae<ms.length;++ae)ms[ae](this);Do(this),Ae&&y.lineWrapping&&getComputedStyle(z.lineDiv).textRendering=="optimizelegibility"&&(z.lineDiv.style.textRendering="auto")}jr.defaults=Bl,jr.optionHandlers=Wa;function Vu(a){var y=a.display;ye(y.scroller,"mousedown",oi(a,El)),me&&Ue<11?ye(y.scroller,"dblclick",oi(a,function(ue){if(!He(a,ue)){var fe=Co(a,ue);if(!(!fe||vs(a,ue)||ui(a.display,ue))){ln(ue);var ke=a.findWordAt(fe);Na(a.doc,ke.anchor,ke.head)}}})):ye(y.scroller,"dblclick",function(ue){return He(a,ue)||ln(ue)}),ye(y.scroller,"contextmenu",function(ue){return Ll(a,ue)}),ye(y.input.getField(),"contextmenu",function(ue){y.scroller.contains(ue.target)||Ll(a,ue)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function z(ue){if(ue.touches.length!=1)return!1;var fe=ue.touches[0];return fe.radiusX<=1&&fe.radiusY<=1}function ie(ue,fe){if(fe.left==null)return!0;var ke=fe.left-ue.left,Me=fe.top-ue.top;return ke*ke+Me*Me>20*20}ye(y.scroller,"touchstart",function(ue){if(!He(a,ue)&&!z(ue)&&!vs(a,ue)){y.input.ensurePolled(),clearTimeout(x);var fe=+new Date;y.activeTouch={start:fe,moved:!1,prev:fe-b.end<=300?b:null},ue.touches.length==1&&(y.activeTouch.left=ue.touches[0].pageX,y.activeTouch.top=ue.touches[0].pageY)}}),ye(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),ye(y.scroller,"touchend",function(ue){var fe=y.activeTouch;if(fe&&!ui(y,ue)&&fe.left!=null&&!fe.moved&&new Date-fe.start<300){var ke=a.coordsChar(y.activeTouch,"page"),Me;!fe.prev||ie(fe,fe.prev)?Me=new kr(ke,ke):!fe.prev.prev||ie(fe,fe.prev.prev)?Me=a.findWordAt(ke):Me=new kr(Ve(ke.line,0),Pt(a.doc,Ve(ke.line+1,0))),a.setSelection(Me.anchor,Me.head),a.focus(),ln(ue)}E()}),ye(y.scroller,"touchcancel",E),ye(y.scroller,"scroll",function(){y.scroller.clientHeight&&($o(a,y.scroller.scrollTop),ko(a,y.scroller.scrollLeft,!0),wt(a,"scroll",a))}),ye(y.scroller,"mousewheel",function(ue){return Os(a,ue)}),ye(y.scroller,"DOMMouseScroll",function(ue){return Os(a,ue)}),ye(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ue){He(a,ue)||Mn(ue)},over:function(ue){He(a,ue)||(wu(a,ue),Mn(ue))},start:function(ue){return xu(a,ue)},drop:oi(a,bu),leave:function(ue){He(a,ue)||fl(a)}};var ae=y.input.getField();ye(ae,"keyup",function(ue){return Sl.call(a,ue)}),ye(ae,"keydown",oi(a,Cl)),ye(ae,"keypress",oi(a,kl)),ye(ae,"focus",function(ue){return Ja(a,ue)}),ye(ae,"blur",function(ue){return No(a,ue)})}var ms=[];jr.defineInitHook=function(a){return ms.push(a)};function ga(a,y,x,b){var E=a.doc,z;x==null&&(x="add"),x=="smart"&&(E.mode.indent?z=ar(a,y).state:x="prev");var ie=a.options.tabSize,ae=ct(E,y),ue=he(ae.text,null,ie);ae.stateAfter&&(ae.stateAfter=null);var fe=ae.text.match(/^\s*/)[0],ke;if(!b&&!/\S/.test(ae.text))ke=0,x="not";else if(x=="smart"&&(ke=E.mode.indent(z,ae.text.slice(fe.length),ae.text),ke==ot||ke>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?ke=he(ct(E,y-1).text,null,ie):ke=0:x=="add"?ke=ue+a.options.indentUnit:x=="subtract"?ke=ue-a.options.indentUnit:typeof x=="number"&&(ke=ue+x),ke=Math.max(0,ke);var Me="",lt=0;if(a.options.indentWithTabs)for(var rt=Math.floor(ke/ie);rt;--rt)lt+=ie,Me+=" ";if(lt<ke&&(Me+=Se(ke-lt)),Me!=fe)return Ho(E,Me,Ve(y,0),Ve(y,fe.length),"+input"),ae.stateAfter=null,!0;for(var Tt=0;Tt<E.sel.ranges.length;Tt++){var zt=E.sel.ranges[Tt];if(zt.head.line==y&&zt.head.ch<fe.length){var nn=Ve(y,fe.length);us(E,Tt,new kr(nn,nn));break}}}var Yi=null;function za(a){Yi=a}function gs(a,y,x,b,E){var z=a.doc;a.display.shift=!1,b||(b=z.sel);var ie=+new Date-200,ae=E=="paste"||a.state.pasteIncoming>ie,ue=Vn(y),fe=null;if(ae&&b.ranges.length>1)if(Yi&&Yi.text.join(`
`)==y){if(b.ranges.length%Yi.text.length==0){fe=[];for(var ke=0;ke<Yi.text.length;ke++)fe.push(z.splitLines(Yi.text[ke]))}}else ue.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(fe=Ee(ue,function(fn){return[fn]}));for(var Me=a.curOp.updateInput,lt=b.ranges.length-1;lt>=0;lt--){var rt=b.ranges[lt],Tt=rt.from(),zt=rt.to();rt.empty()&&(x&&x>0?Tt=Ve(Tt.line,Tt.ch-x):a.state.overwrite&&!ae?zt=Ve(zt.line,Math.min(ct(z,zt.line).text.length,zt.ch+ve(ue).length)):ae&&Yi&&Yi.lineWise&&Yi.text.join(`
`)==ue.join(`
`)&&(Tt=zt=Ve(Tt.line,0)));var nn={from:Tt,to:zt,text:fe?fe[lt%fe.length]:ue,origin:E||(ae?"paste":a.state.cutIncoming>ie?"cut":"+input")};Oo(a.doc,nn),zr(a,"inputRead",a,nn)}y&&!ae&&Pl(a,y),Fo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Me),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Tl(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ti(y,function(){return gs(y,x,0,null,"paste")}),!0}function Pl(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var z=a.getModeAt(E.head),ie=!1;if(z.electricChars){for(var ae=0;ae<z.electricChars.length;ae++)if(y.indexOf(z.electricChars.charAt(ae))>-1){ie=ga(a,E.head.line,"smart");break}}else z.electricInput&&z.electricInput.test(ct(a.doc,E.head.line).text.slice(0,E.head.ch))&&(ie=ga(a,E.head.line,"smart"));ie&&zr(a,"electricInput",a,E.head.line)}}}function Nl(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,z={anchor:Ve(E,0),head:Ve(E+1,0)};x.push(z),y.push(a.getRange(z.anchor,z.head))}return{text:y,ranges:x}}function Fl(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Rl(){var a=Je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Je("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ae?a.style.width="1000px":a.setAttribute("wrap","off"),Ke&&(a.style.border="1px solid black"),Fl(a),y}function Uu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var z=this.options,ie=z[b];z[b]==E&&b!="mode"||(z[b]=E,y.hasOwnProperty(b)&&oi(this,y[b])(this,E,ie),wt(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](Oa(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,z=0;z<E.length;++z)if(E[z]==b||E[z].name==b)return E.splice(z,1),!0},addOverlay:yi(function(b,E){var z=b.token?b:a.getMode(this.options,b);if(z.startState)throw new Error("Overlays may not be stateful.");Ye(this.state.overlays,{mode:z,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(ie){return ie.priority}),this.state.modeGen++,Ci(this)}),removeOverlay:yi(function(b){for(var E=this.state.overlays,z=0;z<E.length;++z){var ie=E[z].modeSpec;if(ie==b||typeof b=="string"&&ie.name==b){E.splice(z,1),this.state.modeGen++,Ci(this);return}}}),indentLine:yi(function(b,E,z){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Ht(this.doc,b)&&ga(this,b,E,z)}),indentSelection:yi(function(b){for(var E=this.doc.sel.ranges,z=-1,ie=0;ie<E.length;ie++){var ae=E[ie];if(ae.empty())ae.head.line>z&&(ga(this,ae.head.line,b,!0),z=ae.head.line,ie==this.doc.sel.primIndex&&Fo(this));else{var ue=ae.from(),fe=ae.to(),ke=Math.max(z,ue.line);z=Math.min(this.lastLine(),fe.line-(fe.ch?0:1))+1;for(var Me=ke;Me<z;++Me)ga(this,Me,b);var lt=this.doc.sel.ranges;ue.ch==0&&E.length==lt.length&&lt[ie].from().ch>0&&us(this.doc,ie,new kr(ue,lt[ie].to()),be)}}}),getTokenAt:function(b,E){return qn(this,b,E)},getLineTokens:function(b,E){return qn(this,Ve(b),E,!0)},getTokenTypeAt:function(b){b=Pt(this.doc,b);var E=Jn(this,ct(this.doc,b.line)),z=0,ie=(E.length-1)/2,ae=b.ch,ue;if(ae==0)ue=E[2];else for(;;){var fe=z+ie>>1;if((fe?E[fe*2-1]:0)>=ae)ie=fe;else if(E[fe*2+1]<ae)z=fe+1;else{ue=E[fe*2+2];break}}var ke=ue?ue.indexOf("overlay "):-1;return ke<0?ue:ke==0?null:ue.slice(0,ke-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var z=[];if(!x.hasOwnProperty(E))return z;var ie=x[E],ae=this.getModeAt(b);if(typeof ae[E]=="string")ie[ae[E]]&&z.push(ie[ae[E]]);else if(ae[E])for(var ue=0;ue<ae[E].length;ue++){var fe=ie[ae[E][ue]];fe&&z.push(fe)}else ae.helperType&&ie[ae.helperType]?z.push(ie[ae.helperType]):ie[ae.name]&&z.push(ie[ae.name]);for(var ke=0;ke<ie._global.length;ke++){var Me=ie._global[ke];Me.pred(ae,this)&&Pe(z,Me.val)==-1&&z.push(Me.val)}return z},getStateAfter:function(b,E){var z=this.doc;return b=rn(z,b==null?z.first+z.size-1:b),ar(this,b+1,E).state},cursorCoords:function(b,E){var z,ie=this.doc.sel.primary();return b==null?z=ie.head:typeof b=="object"?z=Pt(this.doc,b):z=b?ie.from():ie.to(),wi(this,z,E||"page")},charCoords:function(b,E){return Po(this,Pt(this.doc,b),E||"page")},coordsChar:function(b,E){return b=Sa(this,b,E||"page"),ci(this,b.left,b.top)},lineAtHeight:function(b,E){return b=Sa(this,{top:b,left:0},E||"page").top,Re(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,z){var ie=!1,ae;if(typeof b=="number"){var ue=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>ue&&(b=ue,ie=!0),ae=ct(this.doc,b)}else ae=b;return To(this,ae,{top:0,left:0},E||"page",z||ie).top+(ie?this.doc.height-Hn(ae):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return Ui(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,z,ie,ae){var ue=this.display;b=wi(this,Pt(this.doc,b));var fe=b.bottom,ke=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),ue.sizer.appendChild(E),ie=="over")fe=b.top;else if(ie=="above"||ie=="near"){var Me=Math.max(ue.wrapper.clientHeight,this.doc.height),lt=Math.max(ue.sizer.clientWidth,ue.lineSpace.clientWidth);(ie=="above"||b.bottom+E.offsetHeight>Me)&&b.top>E.offsetHeight?fe=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=Me&&(fe=b.bottom),ke+E.offsetWidth>lt&&(ke=lt-E.offsetWidth)}E.style.top=fe+"px",E.style.left=E.style.right="",ae=="right"?(ke=ue.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ae=="left"?ke=0:ae=="middle"&&(ke=(ue.sizer.clientWidth-E.offsetWidth)/2),E.style.left=ke+"px"),z&&jl(this,{left:ke,top:fe,right:ke+E.offsetWidth,bottom:fe+E.offsetHeight})},triggerOnKeyDown:yi(Cl),triggerOnKeyPress:yi(kl),triggerOnKeyUp:Sl,triggerOnMouseDown:yi(El),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Pl(this,b)}),findPosH:function(b,E,z,ie){var ae=1;E<0&&(ae=-1,E=-E);for(var ue=Pt(this.doc,b),fe=0;fe<E&&(ue=ys(this.doc,ue,ae,z,ie),!ue.hitSide);++fe);return ue},moveH:yi(function(b,E){var z=this;this.extendSelectionsBy(function(ie){return z.display.shift||z.doc.extend||ie.empty()?ys(z.doc,ie.head,b,E,z.options.rtlMoveVisually):b<0?ie.from():ie.to()},Fe)}),deleteH:yi(function(b,E){var z=this.doc.sel,ie=this.doc;z.somethingSelected()?ie.replaceSelection("",null,"+delete"):Zo(this,function(ae){var ue=ys(ie,ae.head,b,E,!1);return b<0?{from:ue,to:ae.head}:{from:ae.head,to:ue}})}),findPosV:function(b,E,z,ie){var ae=1,ue=ie;E<0&&(ae=-1,E=-E);for(var fe=Pt(this.doc,b),ke=0;ke<E;++ke){var Me=wi(this,fe,"div");if(ue==null?ue=Me.left:Me.left=ue,fe=Il(this,Me,ae,z),fe.hitSide)break}return fe},moveV:yi(function(b,E){var z=this,ie=this.doc,ae=[],ue=!this.display.shift&&!ie.extend&&ie.sel.somethingSelected();if(ie.extendSelectionsBy(function(ke){if(ue)return b<0?ke.from():ke.to();var Me=wi(z,ke.head,"div");ke.goalColumn!=null&&(Me.left=ke.goalColumn),ae.push(Me.left);var lt=Il(z,Me,b,E);return E=="page"&&ke==ie.sel.primary()&&qa(z,Po(z,lt,"div").top-Me.top),lt},Fe),ae.length)for(var fe=0;fe<ie.sel.ranges.length;fe++)ie.sel.ranges[fe].goalColumn=ae[fe]}),findWordAt:function(b){var E=this.doc,z=ct(E,b.line).text,ie=b.ch,ae=b.ch;if(z){var ue=this.getHelper(b,"wordChars");(b.sticky=="before"||ae==z.length)&&ie?--ie:++ae;for(var fe=z.charAt(ie),ke=ut(fe,ue)?function(Me){return ut(Me,ue)}:/\s/.test(fe)?function(Me){return/\s/.test(Me)}:function(Me){return!/\s/.test(Me)&&!ut(Me)};ie>0&&ke(z.charAt(ie-1));)--ie;for(;ae<z.length&&ke(z.charAt(ae));)++ae}return new kr(Ve(b.line,ie),Ve(b.line,ae))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Xe(this.display.cursorDiv,"CodeMirror-overwrite"):et(this.display.cursorDiv,"CodeMirror-overwrite"),wt(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(b,E){qo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Li(this)-this.display.barHeight,width:b.scrollWidth-Li(this)-this.display.barWidth,clientHeight:no(this),clientWidth:qi(this)}},scrollIntoView:yi(function(b,E){b==null?(b={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof b=="number"?b={from:Ve(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=E||0,b.from.line!=null?Gl(this,b):Ls(this,b.from,b.to,b.margin)}),setSize:yi(function(b,E){var z=this,ie=function(ue){return typeof ue=="number"||/^\d+$/.test(String(ue))?ue+"px":ue};b!=null&&(this.display.wrapper.style.width=ie(b)),E!=null&&(this.display.wrapper.style.height=ie(E)),this.options.lineWrapping&&Yo(this);var ae=this.display.viewFrom;this.doc.iter(ae,this.display.viewTo,function(ue){if(ue.widgets){for(var fe=0;fe<ue.widgets.length;fe++)if(ue.widgets[fe].noHScroll){fo(z,ae,"widget");break}}++ae}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(b){return Ti(this,b)},startOperation:function(){return Ao(this)},endOperation:function(){return Do(this)},refresh:yi(function(){var b=this.display.cachedTextHeight;Ci(this),this.curOp.forceUpdate=!0,wo(this),qo(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(b==null||Math.abs(b-Bi(this.display))>.5||this.options.lineWrapping)&&Ya(this),wt(this,"refresh",this)}),swapDoc:yi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Zs(this,b),wo(this),this.display.input.reset(),qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,zr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Wt(a),a.registerHelper=function(b,E,z){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=z},a.registerGlobalHelper=function(b,E,z,ie){a.registerHelper(b,E,ie),x[b]._global.push({pred:z,val:ie})}}function ys(a,y,x,b,E){var z=y,ie=x,ae=ct(a,y.line),ue=E&&a.direction=="rtl"?-x:x;function fe(){var xn=y.line+ue;return xn<a.first||xn>=a.first+a.size?!1:(y=new Ve(xn,y.ch,y.sticky),ae=ct(a,xn))}function ke(xn){var hn;if(b=="codepoint"){var Dn=ae.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Dn)?hn=null:hn=new Ve(y.line,Math.max(0,Math.min(ae.text.length,y.ch+x*(Dn>=55296&&Dn<56320?2:1))),-x)}else E?hn=Du(a.cm,ae,y,x):hn=ds(ae,y,x);if(hn==null)if(!xn&&fe())y=fs(E,a.cm,ae,y.line,ue);else return!1;else y=hn;return!0}if(b=="char"||b=="codepoint")ke();else if(b=="column")ke(!0);else if(b=="word"||b=="group")for(var Me=null,lt=b=="group",rt=a.cm&&a.cm.getHelper(y,"wordChars"),Tt=!0;!(x<0&&!ke(!Tt));Tt=!1){var zt=ae.text.charAt(y.ch)||`
`,nn=ut(zt,rt)?"w":lt&&zt==`
`?"n":!lt||/\s/.test(zt)?null:"p";if(lt&&!Tt&&!nn&&(nn="s"),Me&&Me!=nn){x<0&&(x=1,ke(),y.sticky="after");break}if(nn&&(Me=nn),x>0&&!ke(!Tt))break}var fn=Ra(a,y,z,ie,!0);return tn(z,fn)&&(fn.hitSide=!0),fn}function Il(a,y,x,b){var E=a.doc,z=y.left,ie;if(b=="page"){var ae=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ue=Math.max(ae-.5*Bi(a.display),3);ie=(x>0?y.bottom:y.top)+x*ue}else b=="line"&&(ie=x>0?y.bottom+3:y.top-3);for(var fe;fe=ci(a,z,ie),!!fe.outside;){if(x<0?ie<=0:ie>=E.height){fe.hitSide=!0;break}ie+=x*5}return fe}var Tr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Tr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Fl(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function z(ae){for(var ue=ae.target;ue;ue=ue.parentNode){if(ue==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ue.className))break}return!1}ye(E,"paste",function(ae){!z(ae)||He(b,ae)||Tl(ae,b)||Ue<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),ye(E,"compositionstart",function(ae){y.composing={data:ae.data,done:!1}}),ye(E,"compositionupdate",function(ae){y.composing||(y.composing={data:ae.data,done:!1})}),ye(E,"compositionend",function(ae){y.composing&&(ae.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),ye(E,"touchstart",function(){return x.forceCompositionEnd()}),ye(E,"input",function(){y.composing||y.readFromDOMSoon()});function ie(ae){if(!(!z(ae)||He(b,ae))){if(b.somethingSelected())za({lineWise:!1,text:b.getSelections()}),ae.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ue=Nl(b);za({lineWise:!0,text:ue.text}),ae.type=="cut"&&b.operation(function(){b.setSelections(ue.ranges,0,be),b.replaceSelection("",null,"cut")})}else return;if(ae.clipboardData){ae.clipboardData.clearData();var fe=Yi.text.join(`
`);if(ae.clipboardData.setData("Text",fe),ae.clipboardData.getData("Text")==fe){ae.preventDefault();return}}var ke=Rl(),Me=ke.firstChild;b.display.lineSpace.insertBefore(ke,b.display.lineSpace.firstChild),Me.value=Yi.text.join(`
`);var lt=document.activeElement;St(Me),setTimeout(function(){b.display.lineSpace.removeChild(ke),lt.focus(),lt==E&&x.showPrimarySelection()},50)}}ye(E,"copy",ie),ye(E,"cut",ie)},Tr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Tr.prototype.prepareSelection=function(){var a=Ss(this.cm,!1);return a.focus=document.activeElement==this.div,a},Tr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Tr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Tr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var z=Za(y,a.anchorNode,a.anchorOffset),ie=Za(y,a.focusNode,a.focusOffset);if(!(z&&!z.bad&&ie&&!ie.bad&&Mt(Xt(z,ie),b)==0&&Mt(bn(z,ie),E)==0)){var ae=y.display.view,ue=b.line>=y.display.viewFrom&&_l(y,b)||{node:ae[0].measure.map[2],offset:0},fe=E.line<y.display.viewTo&&_l(y,E);if(!fe){var ke=ae[ae.length-1].measure,Me=ke.maps?ke.maps[ke.maps.length-1]:ke.map;fe={node:Me[Me.length-1],offset:Me[Me.length-2]-Me[Me.length-3]}}if(!ue||!fe){a.removeAllRanges();return}var lt=a.rangeCount&&a.getRangeAt(0),rt;try{rt=Ce(ue.node,ue.offset,fe.offset,fe.node)}catch(Tt){}rt&&(!re&&y.state.focused?(a.collapse(ue.node,ue.offset),rt.collapsed||(a.removeAllRanges(),a.addRange(rt))):(a.removeAllRanges(),a.addRange(rt)),lt&&a.anchorNode==null?a.addRange(lt):re&&this.startGracePeriod()),this.rememberSelection()}},Tr.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)},Tr.prototype.showMultipleSelections=function(a){We(this.cm.display.cursorDiv,a.cursors),We(this.cm.display.selectionDiv,a.selection)},Tr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Tr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return $e(this.div,y)},Tr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Tr.prototype.blur=function(){this.div.blur()},Tr.prototype.getField=function(){return this.div},Tr.prototype.supportsTouch=function(){return!0},Tr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Ti(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)},Tr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Tr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Oe&&ge&&this.cm.display.gutterSpecs.length&&Ku(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Za(y,a.anchorNode,a.anchorOffset),b=Za(y,a.focusNode,a.focusOffset);x&&b&&Ti(y,function(){hi(y.doc,po(x,b),be),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Tr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=Ve(b.line-1,ct(a.doc,b.line-1).length)),E.ch==ct(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=Ve(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var z,ie,ae;b.line==y.viewFrom||(z=So(a,b.line))==0?(ie=Te(y.view[0].line),ae=y.view[0].node):(ie=Te(y.view[z].line),ae=y.view[z-1].node.nextSibling);var ue=So(a,E.line),fe,ke;if(ue==y.view.length-1?(fe=y.viewTo-1,ke=y.lineDiv.lastChild):(fe=Te(y.view[ue+1].line)-1,ke=y.view[ue+1].node.previousSibling),!ae)return!1;for(var Me=a.doc.splitLines(Yu(a,ae,ke,ie,fe)),lt=Nt(a.doc,Ve(ie,0),Ve(fe,ct(a.doc,fe).text.length));Me.length>1&&lt.length>1;)if(ve(Me)==ve(lt))Me.pop(),lt.pop(),fe--;else if(Me[0]==lt[0])Me.shift(),lt.shift(),ie++;else break;for(var rt=0,Tt=0,zt=Me[0],nn=lt[0],fn=Math.min(zt.length,nn.length);rt<fn&&zt.charCodeAt(rt)==nn.charCodeAt(rt);)++rt;for(var xn=ve(Me),hn=ve(lt),Dn=Math.min(xn.length-(Me.length==1?rt:0),hn.length-(lt.length==1?rt:0));Tt<Dn&&xn.charCodeAt(xn.length-Tt-1)==hn.charCodeAt(hn.length-Tt-1);)++Tt;if(Me.length==1&&lt.length==1&&ie==b.line)for(;rt&&rt>b.ch&&xn.charCodeAt(xn.length-Tt-1)==hn.charCodeAt(hn.length-Tt-1);)rt--,Tt++;Me[Me.length-1]=xn.slice(0,xn.length-Tt).replace(/^\u200b+/,""),Me[0]=Me[0].slice(rt).replace(/\u200b+$/,"");var Wn=Ve(ie,rt),In=Ve(fe,lt.length?ve(lt).length-Tt:0);if(Me.length>1||Me[0]||Mt(Wn,In))return Ho(a.doc,Me,Wn,In,"+input"),!0},Tr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Tr.prototype.reset=function(){this.forceCompositionEnd()},Tr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Tr.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))},Tr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ti(this.cm,function(){return Ci(a.cm)})},Tr.prototype.setUneditable=function(a){a.contentEditable="false"},Tr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||oi(this.cm,gs)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Tr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Tr.prototype.onContextMenu=function(){},Tr.prototype.resetPosition=function(){},Tr.prototype.needsContentAttribute=!0;function _l(a,y){var x=$i(a,y.line);if(!x||x.hidden)return null;var b=ct(a.doc,y.line),E=Bo(x,b,y.line),z=ce(b,a.doc.direction),ie="left";if(z){var ae=ee(z,y.ch);ie=ae%2?"right":"left"}var ue=xa(E.map,y.ch,ie);return ue.offset=ue.collapse=="right"?ue.end:ue.start,ue}function Ku(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Go(a,y){return y&&(a.bad=!0),a}function Yu(a,y,x,b,E){var z="",ie=!1,ae=a.doc.lineSeparator(),ue=!1;function fe(rt){return function(Tt){return Tt.id==rt}}function ke(){ie&&(z+=ae,ue&&(z+=ae),ie=ue=!1)}function Me(rt){rt&&(ke(),z+=rt)}function lt(rt){if(rt.nodeType==1){var Tt=rt.getAttribute("cm-text");if(Tt){Me(Tt);return}var zt=rt.getAttribute("cm-marker"),nn;if(zt){var fn=a.findMarks(Ve(b,0),Ve(E+1,0),fe(+zt));fn.length&&(nn=fn[0].find(0))&&Me(Nt(a.doc,nn.from,nn.to).join(ae));return}if(rt.getAttribute("contenteditable")=="false")return;var xn=/^(pre|div|p|li|table|br)$/i.test(rt.nodeName);if(!/^br$/i.test(rt.nodeName)&&rt.textContent.length==0)return;xn&&ke();for(var hn=0;hn<rt.childNodes.length;hn++)lt(rt.childNodes[hn]);/^(pre|p)$/i.test(rt.nodeName)&&(ue=!0),xn&&(ie=!0)}else rt.nodeType==3&&Me(rt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;lt(y),y!=x;)y=y.nextSibling,ue=!1;return z}function Za(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Go(a.clipPos(Ve(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var z=a.display.view[E];if(z.node==b)return Xu(z,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!$e(b,y))return Go(Ve(Te(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var z=a.rest?ve(a.rest):a.line;return Go(Ve(Te(z),z.text.length),E)}var ie=y.nodeType==3?y:null,ae=y;for(!ie&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(ie=y.firstChild,x&&(x=ie.nodeValue.length));ae.parentNode!=b;)ae=ae.parentNode;var ue=a.measure,fe=ue.maps;function ke(nn,fn,xn){for(var hn=-1;hn<(fe?fe.length:0);hn++)for(var Dn=hn<0?ue.map:fe[hn],Wn=0;Wn<Dn.length;Wn+=3){var In=Dn[Wn+2];if(In==nn||In==fn){var ir=Te(hn<0?a.line:a.rest[hn]),Ir=Dn[Wn]+xn;return(xn<0||In!=nn)&&(Ir=Dn[Wn+(xn?1:0)]),Ve(ir,Ir)}}}var Me=ke(ie,ae,x);if(Me)return Go(Me,E);for(var lt=ae.nextSibling,rt=ie?ie.nodeValue.length-x:0;lt;lt=lt.nextSibling){if(Me=ke(lt,lt.firstChild,0),Me)return Go(Ve(Me.line,Me.ch-rt),E);rt+=lt.textContent.length}for(var Tt=ae.previousSibling,zt=x;Tt;Tt=Tt.previousSibling){if(Me=ke(Tt,Tt.firstChild,-1),Me)return Go(Ve(Me.line,Me.ch+zt),E);zt+=Tt.textContent.length}}var Xr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null};Xr.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ke&&(E.style.width="0px"),ye(E,"input",function(){me&&Ue>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),ye(E,"paste",function(ie){He(b,ie)||Tl(ie,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function z(ie){if(!He(b,ie)){if(b.somethingSelected())za({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ae=Nl(b);za({lineWise:!0,text:ae.text}),ie.type=="cut"?b.setSelections(ae.ranges,null,be):(x.prevInput="",E.value=ae.text.join(`
`),St(E))}else return;ie.type=="cut"&&(b.state.cutIncoming=+new Date)}}ye(E,"cut",z),ye(E,"copy",z),ye(a.scroller,"paste",function(ie){if(!(ui(a,ie)||He(b,ie))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ae=new Event("paste");ae.clipboardData=ie.clipboardData,E.dispatchEvent(ae)}}),ye(a.lineSpace,"selectstart",function(ie){ui(a,ie)||ln(ie)}),ye(E,"compositionstart",function(){var ie=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:ie,range:b.markText(ie,b.getCursor("to"),{className:"CodeMirror-composing"})}}),ye(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Xr.prototype.createField=function(a){this.wrapper=Rl(),this.textarea=this.wrapper.firstChild},Xr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Xr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Ss(a);if(a.options.moveInputWithCursor){var E=wi(a,x.sel.primary().head,"div"),z=y.wrapper.getBoundingClientRect(),ie=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+ie.top-z.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+ie.left-z.left))}return b},Xr.prototype.showSelection=function(a){var y=this.cm,x=y.display;We(x.cursorDiv,a.cursors),We(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Xr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&St(this.textarea),me&&Ue>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",me&&Ue>=9&&(this.hasSelection=null))}},Xr.prototype.getField=function(){return this.textarea},Xr.prototype.supportsTouch=function(){return!1},Xr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ze||Be()!=this.textarea))try{this.textarea.focus()}catch(a){}},Xr.prototype.blur=function(){this.textarea.blur()},Xr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xr.prototype.receivedFocus=function(){this.slowPoll()},Xr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Xr.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Xr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||zn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(me&&Ue>=9&&this.hasSelection===E||Le&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var z=E.charCodeAt(0);if(z==8203&&!b&&(b="\u200B"),z==8666)return this.reset(),this.cm.execCommand("undo")}for(var ie=0,ae=Math.min(b.length,E.length);ie<ae&&b.charCodeAt(ie)==E.charCodeAt(ie);)++ie;return Ti(y,function(){gs(y,E.slice(ie),b.length-ie,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Xr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xr.prototype.onKeyPress=function(){me&&Ue>=9&&(this.hasSelection=null),this.fastPoll()},Xr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var z=Co(x,a),ie=b.scroller.scrollTop;if(!z||pe)return;var ae=x.options.resetSelectionOnContextMenu;ae&&x.doc.sel.contains(z)==-1&&oi(x,hi)(x.doc,po(z),be);var ue=E.style.cssText,fe=y.wrapper.style.cssText,ke=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-ke.top-5)+"px; left: "+(a.clientX-ke.left-5)+`px;
z-index: 1000; background: `+(me?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Me;Ae&&(Me=window.scrollY),b.input.focus(),Ae&&window.scrollTo(null,Me),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=rt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function lt(){if(E.selectionStart!=null){var zt=x.somethingSelected(),nn="\u200B"+(zt?E.value:"");E.value="\u21DA",E.value=nn,y.prevInput=zt?"":"\u200B",E.selectionStart=1,E.selectionEnd=nn.length,b.selForContextMenu=x.doc.sel}}function rt(){if(y.contextMenuPending==rt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=fe,E.style.cssText=ue,me&&Ue<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=ie),E.selectionStart!=null)){(!me||me&&Ue<9)&&lt();var zt=0,nn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,tl)(x):zt++<10?b.detectingSelectAll=setTimeout(nn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(nn,200)}}if(me&&Ue>=9&&lt(),Qe){Mn(a);var Tt=function(){bt(window,"mouseup",Tt),setTimeout(rt,20)};ye(window,"mouseup",Tt)}else setTimeout(rt,50)},Xr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Xr.prototype.setUneditable=function(){},Xr.prototype.needsContentAttribute=!1;function Ju(a,y){if(y=y?at(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Be();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ae.getValue()}var E;if(a.form&&(ye(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var z=a.form;E=z.submit;try{var ie=z.submit=function(){b(),z.submit=E,z.submit(),z.submit=ie}}catch(ue){}}y.finishInit=function(ue){ue.save=b,ue.getTextArea=function(){return a},ue.toTextArea=function(){ue.toTextArea=isNaN,b(),a.parentNode.removeChild(ue.getWrapperElement()),a.style.display="",a.form&&(bt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ae=jr(function(ue){return a.parentNode.insertBefore(ue,a.nextSibling)},y);return ae}function Qu(a){a.off=bt,a.on=ye,a.wheelEventPixels=iu,a.Doc=Si,a.splitLines=Vn,a.countColumn=he,a.findColumn=Ct,a.isWordChar=nt,a.Pass=ot,a.signal=wt,a.Line=br,a.changeEnd=vo,a.scrollbarModel=Ts,a.Pos=Ve,a.cmpPos=Mt,a.modes=Vt,a.mimeModes=pt,a.resolveMode=vn,a.getMode=on,a.modeExtensions=Ln,a.extendMode=Rn,a.copyState=Nn,a.startState=Un,a.innerMode=Cn,a.commands=ha,a.keyMap=io,a.keyName=gl,a.isModifierKey=vl,a.lookupKey=zo,a.normalizeKeyMap=Au,a.StringStream=Ot,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=ln,a.e_stopPropagation=Pn,a.e_stop=Mn,a.addClass=Xe,a.contains=$e,a.rmClass=et,a.keyNames=yo}Zu(jr),Uu(jr);var qu="iter insert remove copy getEditor constructor".split(" ");for(var ja in Si.prototype)Si.prototype.hasOwnProperty(ja)&&Pe(qu,ja)<0&&(jr.prototype[ja]=function(a){return function(){return a.apply(this.doc,arguments)}}(Si.prototype[ja]));return Wt(Si),jr.inputStyles={textarea:Xr,contenteditable:Tr},jr.defineMode=function(a){!jr.defaults.mode&&a!="null"&&(jr.defaults.mode=a),Bt.apply(this,arguments)},jr.defineMIME=en,jr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),jr.defineMIME("text/plain","null"),jr.defineExtension=function(a,y){jr.prototype[a]=y},jr.defineDocExtension=function(a,y){Si.prototype[a]=y},jr.fromTextArea=Ju,Qu(jr),jr.version="5.58.2",jr})},25419:function(Rt,Zt,de){(function(re){re(de(89780),de(15525),de(98101))})(function(re){"use strict";re.defineMode("markdown",function(gt,_e){var ze=re.getMode(gt,"text/html"),me=ze.name=="null";function Ue(he){if(re.findModeByName){var le=re.findModeByName(he);le&&(he=le.mime||le.mimes[0])}var Pe=re.getMode(gt,he);return Pe.name=="null"?null:Pe}_e.highlightFormatting===void 0&&(_e.highlightFormatting=!1),_e.maxBlockquoteDepth===void 0&&(_e.maxBlockquoteDepth=0),_e.taskLists===void 0&&(_e.taskLists=!1),_e.strikethrough===void 0&&(_e.strikethrough=!1),_e.emoji===void 0&&(_e.emoji=!1),_e.fencedCodeBlockHighlighting===void 0&&(_e.fencedCodeBlockHighlighting=!0),_e.fencedCodeBlockDefaultMode===void 0&&(_e.fencedCodeBlockDefaultMode="text/plain"),_e.xml===void 0&&(_e.xml=!0),_e.tokenTypeOverrides===void 0&&(_e.tokenTypeOverrides={});var Ae={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 je in Ae)Ae.hasOwnProperty(je)&&_e.tokenTypeOverrides[je]&&(Ae[je]=_e.tokenTypeOverrides[je]);var ge=/^([*\-_])(?:\s*\1){2,}\s*$/,pe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,De=/^\[(x| )\](?=\s)/i,xe=_e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,mt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ke=/^[^#!\[\]*_\\<>` "'(~:]+/,Oe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ze=/^\s*\[[^\]]+?\]:.*$/,Le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,vt=" ";function ft(he,le,Pe){return le.f=le.inline=Pe,Pe(he,le)}function At(he,le,Pe){return le.f=le.block=Pe,Pe(he,le)}function tt(he){return!he||!/\S/.test(he.string)}function Qe(he){if(he.linkTitle=!1,he.linkHref=!1,he.linkText=!1,he.em=!1,he.strong=!1,he.strikethrough=!1,he.quote=0,he.indentedCode=!1,he.f==et){var le=me;if(!le){var Pe=re.innerMode(ze,he.htmlState);le=Pe.mode.name=="xml"&&Pe.state.tagStart===null&&!Pe.state.context&&Pe.state.tokenize.isInText}le&&(he.f=Dt,he.block=st,he.htmlState=null)}return he.trailingSpace=0,he.trailingSpaceNewLine=!1,he.prevLine=he.thisLine,he.thisLine={stream:null},null}function st(he,le){var Pe=he.column()===le.indentation,dt=tt(le.prevLine.stream),ot=le.indentedCode,be=le.prevLine.hr,Ne=le.list!==!1,Fe=(le.listStack[le.listStack.length-1]||0)+3;le.indentedCode=!1;var Ct=le.indentation;if(le.indentationDiff===null&&(le.indentationDiff=le.indentation,Ne)){for(le.list=null;Ct<le.listStack[le.listStack.length-1];)le.listStack.pop(),le.listStack.length?le.indentation=le.listStack[le.listStack.length-1]:le.list=!1;le.list!==!1&&(le.indentationDiff=Ct-le.listStack[le.listStack.length-1])}var it=!dt&&!be&&!le.prevLine.header&&(!Ne||!ot)&&!le.prevLine.fencedCodeEnd,Se=(le.list===!1||be||dt)&&le.indentation<=Fe&&he.match(ge),ve=null;if(le.indentationDiff>=4&&(ot||le.prevLine.fencedCodeEnd||le.prevLine.header||dt))return he.skipToEnd(),le.indentedCode=!0,Ae.code;if(he.eatSpace())return null;if(Pe&&le.indentation<=Fe&&(ve=he.match(xe))&&ve[1].length<=6)return le.quote=0,le.header=ve[1].length,le.thisLine.header=!0,_e.highlightFormatting&&(le.formatting="header"),le.f=le.inline,We(le);if(le.indentation<=Fe&&he.eat(">"))return le.quote=Pe?1:le.quote+1,_e.highlightFormatting&&(le.formatting="quote"),he.eatSpace(),We(le);if(!Se&&!le.setext&&Pe&&le.indentation<=Fe&&(ve=he.match(pe))){var Ee=ve[1]?"ol":"ul";return le.indentation=Ct+he.current().length,le.list=!0,le.quote=0,le.listStack.push(le.indentation),le.em=!1,le.strong=!1,le.code=!1,le.strikethrough=!1,_e.taskLists&&he.match(De,!1)&&(le.taskList=!0),le.f=le.inline,_e.highlightFormatting&&(le.formatting=["list","list-"+Ee]),We(le)}else{if(Pe&&le.indentation<=Fe&&(ve=he.match(Oe,!0)))return le.quote=0,le.fencedEndRE=new RegExp(ve[1]+"+ *$"),le.localMode=_e.fencedCodeBlockHighlighting&&Ue(ve[2]||_e.fencedCodeBlockDefaultMode),le.localMode&&(le.localState=re.startState(le.localMode)),le.f=le.block=jt,_e.highlightFormatting&&(le.formatting="code-block"),le.code=-1,We(le);if(le.setext||(!it||!Ne)&&!le.quote&&le.list===!1&&!le.code&&!Se&&!Ze.test(he.string)&&(ve=he.lookAhead(1))&&(ve=ve.match(mt)))return le.setext?(le.header=le.setext,le.setext=0,he.skipToEnd(),_e.highlightFormatting&&(le.formatting="header")):(le.header=ve[0].charAt(0)=="="?1:2,le.setext=le.header),le.thisLine.header=!0,le.f=le.inline,We(le);if(Se)return he.skipToEnd(),le.hr=!0,le.thisLine.hr=!0,Ae.hr;if(he.peek()==="[")return ft(he,le,Gt)}return ft(he,le,le.inline)}function et(he,le){var Pe=ze.token(he,le.htmlState);if(!me){var dt=re.innerMode(ze,le.htmlState);(dt.mode.name=="xml"&&dt.state.tagStart===null&&!dt.state.context&&dt.state.tokenize.isInText||le.md_inside&&he.current().indexOf(">")>-1)&&(le.f=Dt,le.block=st,le.htmlState=null)}return Pe}function jt(he,le){var Pe=le.listStack[le.listStack.length-1]||0,dt=le.indentation<Pe,ot=Pe+3;if(le.fencedEndRE&&le.indentation<=ot&&(dt||he.match(le.fencedEndRE))){_e.highlightFormatting&&(le.formatting="code-block");var be;return dt||(be=We(le)),le.localMode=le.localState=null,le.block=st,le.f=Dt,le.fencedEndRE=null,le.code=0,le.thisLine.fencedCodeEnd=!0,dt?At(he,le,le.block):be}else return le.localMode?le.localMode.token(he,le.localState):(he.skipToEnd(),Ae.code)}function We(he){var le=[];if(he.formatting){le.push(Ae.formatting),typeof he.formatting=="string"&&(he.formatting=[he.formatting]);for(var Pe=0;Pe<he.formatting.length;Pe++)le.push(Ae.formatting+"-"+he.formatting[Pe]),he.formatting[Pe]==="header"&&le.push(Ae.formatting+"-"+he.formatting[Pe]+"-"+he.header),he.formatting[Pe]==="quote"&&(!_e.maxBlockquoteDepth||_e.maxBlockquoteDepth>=he.quote?le.push(Ae.formatting+"-"+he.formatting[Pe]+"-"+he.quote):le.push("error"))}if(he.taskOpen)return le.push("meta"),le.length?le.join(" "):null;if(he.taskClosed)return le.push("property"),le.length?le.join(" "):null;if(he.linkHref?le.push(Ae.linkHref,"url"):(he.strong&&le.push(Ae.strong),he.em&&le.push(Ae.em),he.strikethrough&&le.push(Ae.strikethrough),he.emoji&&le.push(Ae.emoji),he.linkText&&le.push(Ae.linkText),he.code&&le.push(Ae.code),he.image&&le.push(Ae.image),he.imageAltText&&le.push(Ae.imageAltText,"link"),he.imageMarker&&le.push(Ae.imageMarker)),he.header&&le.push(Ae.header,Ae.header+"-"+he.header),he.quote&&(le.push(Ae.quote),!_e.maxBlockquoteDepth||_e.maxBlockquoteDepth>=he.quote?le.push(Ae.quote+"-"+he.quote):le.push(Ae.quote+"-"+_e.maxBlockquoteDepth)),he.list!==!1){var dt=(he.listStack.length-1)%3;dt?dt===1?le.push(Ae.list2):le.push(Ae.list3):le.push(Ae.list1)}return he.trailingSpaceNewLine?le.push("trailing-space-new-line"):he.trailingSpace&&le.push("trailing-space-"+(he.trailingSpace%2?"a":"b")),le.length?le.join(" "):null}function Je(he,le){if(he.match(Ke,!0))return We(le)}function Dt(he,le){var Pe=le.text(he,le);if(typeof Pe!="undefined")return Pe;if(le.list)return le.list=null,We(le);if(le.taskList){var dt=he.match(De,!0)[1]===" ";return dt?le.taskOpen=!0:le.taskClosed=!0,_e.highlightFormatting&&(le.formatting="task"),le.taskList=!1,We(le)}if(le.taskOpen=!1,le.taskClosed=!1,le.header&&he.match(/^#+$/,!0))return _e.highlightFormatting&&(le.formatting="header"),We(le);var ot=he.next();if(le.linkTitle){le.linkTitle=!1;var be=ot;ot==="("&&(be=")"),be=(be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ne="^\\s*(?:[^"+be+"\\\\]+|\\\\\\\\|\\\\.)"+be;if(he.match(new RegExp(Ne),!0))return Ae.linkHref}if(ot==="`"){var Fe=le.formatting;_e.highlightFormatting&&(le.formatting="code"),he.eatWhile("`");var Ct=he.current().length;if(le.code==0&&(!le.quote||Ct==1))return le.code=Ct,We(le);if(Ct==le.code){var it=We(le);return le.code=0,it}else return le.formatting=Fe,We(le)}else if(le.code)return We(le);if(ot==="\\"&&(he.next(),_e.highlightFormatting)){var Se=We(le),ve=Ae.formatting+"-escape";return Se?Se+" "+ve:ve}if(ot==="!"&&he.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return le.imageMarker=!0,le.image=!0,_e.highlightFormatting&&(le.formatting="image"),We(le);if(ot==="["&&le.imageMarker&&he.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return le.imageMarker=!1,le.imageAltText=!0,_e.highlightFormatting&&(le.formatting="image"),We(le);if(ot==="]"&&le.imageAltText){_e.highlightFormatting&&(le.formatting="image");var Se=We(le);return le.imageAltText=!1,le.image=!1,le.inline=le.f=$e,Se}if(ot==="["&&!le.image)return le.linkText&&he.match(/^.*?\]/)||(le.linkText=!0,_e.highlightFormatting&&(le.formatting="link")),We(le);if(ot==="]"&&le.linkText){_e.highlightFormatting&&(le.formatting="link");var Se=We(le);return le.linkText=!1,le.inline=le.f=he.match(/\(.*?\)| ?\[.*?\]/,!1)?$e:Dt,Se}if(ot==="<"&&he.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){le.f=le.inline=Ce,_e.highlightFormatting&&(le.formatting="link");var Se=We(le);return Se?Se+=" ":Se="",Se+Ae.linkInline}if(ot==="<"&&he.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){le.f=le.inline=Ce,_e.highlightFormatting&&(le.formatting="link");var Se=We(le);return Se?Se+=" ":Se="",Se+Ae.linkEmail}if(_e.xml&&ot==="<"&&he.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ee=he.string.indexOf(">",he.pos);if(Ee!=-1){var Ye=he.string.substring(he.start,Ee);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ye)&&(le.md_inside=!0)}return he.backUp(1),le.htmlState=re.startState(ze),At(he,le,et)}if(_e.xml&&ot==="<"&&he.match(/^\/\w*?>/))return le.md_inside=!1,"tag";if(ot==="*"||ot==="_"){for(var we=1,Ie=he.pos==1?" ":he.string.charAt(he.pos-2);we<3&&he.eat(ot);)we++;var qe=he.peek()||" ",nt=!/\s/.test(qe)&&(!Le.test(qe)||/\s/.test(Ie)||Le.test(Ie)),ut=!/\s/.test(Ie)&&(!Le.test(Ie)||/\s/.test(qe)||Le.test(qe)),Ge=null,xt=null;if(we%2&&(!le.em&&nt&&(ot==="*"||!ut||Le.test(Ie))?Ge=!0:le.em==ot&&ut&&(ot==="*"||!nt||Le.test(qe))&&(Ge=!1)),we>1&&(!le.strong&&nt&&(ot==="*"||!ut||Le.test(Ie))?xt=!0:le.strong==ot&&ut&&(ot==="*"||!nt||Le.test(qe))&&(xt=!1)),xt!=null||Ge!=null){_e.highlightFormatting&&(le.formatting=Ge==null?"strong":xt==null?"em":"strong em"),Ge===!0&&(le.em=ot),xt===!0&&(le.strong=ot);var it=We(le);return Ge===!1&&(le.em=!1),xt===!1&&(le.strong=!1),it}}else if(ot===" "&&(he.eat("*")||he.eat("_"))){if(he.peek()===" ")return We(le);he.backUp(1)}if(_e.strikethrough){if(ot==="~"&&he.eatWhile(ot)){if(le.strikethrough){_e.highlightFormatting&&(le.formatting="strikethrough");var it=We(le);return le.strikethrough=!1,it}else if(he.match(/^[^\s]/,!1))return le.strikethrough=!0,_e.highlightFormatting&&(le.formatting="strikethrough"),We(le)}else if(ot===" "&&he.match(/^~~/,!0)){if(he.peek()===" ")return We(le);he.backUp(2)}}if(_e.emoji&&ot===":"&&he.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){le.emoji=!0,_e.highlightFormatting&&(le.formatting="emoji");var kt=We(le);return le.emoji=!1,kt}return ot===" "&&(he.match(/^ +$/,!1)?le.trailingSpace++:le.trailingSpace&&(le.trailingSpaceNewLine=!0)),We(le)}function Ce(he,le){var Pe=he.next();if(Pe===">"){le.f=le.inline=Dt,_e.highlightFormatting&&(le.formatting="link");var dt=We(le);return dt?dt+=" ":dt="",dt+Ae.linkInline}return he.match(/^[^>]+/,!0),Ae.linkInline}function $e(he,le){if(he.eatSpace())return null;var Pe=he.next();return Pe==="("||Pe==="["?(le.f=le.inline=Xe(Pe==="("?")":"]"),_e.highlightFormatting&&(le.formatting="link-string"),le.linkHref=!0,We(le)):"error"}var Be={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Xe(he){return function(le,Pe){var dt=le.next();if(dt===he){Pe.f=Pe.inline=Dt,_e.highlightFormatting&&(Pe.formatting="link-string");var ot=We(Pe);return Pe.linkHref=!1,ot}return le.match(Be[he]),Pe.linkHref=!0,We(Pe)}}function Gt(he,le){return he.match(/^([^\]\\]|\\.)*\]:/,!1)?(le.f=St,he.next(),_e.highlightFormatting&&(le.formatting="link"),le.linkText=!0,We(le)):ft(he,le,Dt)}function St(he,le){if(he.match(/^\]:/,!0)){le.f=le.inline=ht,_e.highlightFormatting&&(le.formatting="link");var Pe=We(le);return le.linkText=!1,Pe}return he.match(/^([^\]\\]|\\.)+/,!0),Ae.linkText}function ht(he,le){return he.eatSpace()?null:(he.match(/^[^\s]+/,!0),he.peek()===void 0?le.linkTitle=!0:he.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),le.f=le.inline=Dt,Ae.linkHref+" url")}var at={startState:function(){return{f:st,prevLine:{stream:null},thisLine:{stream:null},block:st,htmlState:null,indentation:0,inline:Dt,text:Je,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(he){return{f:he.f,prevLine:he.prevLine,thisLine:he.thisLine,block:he.block,htmlState:he.htmlState&&re.copyState(ze,he.htmlState),indentation:he.indentation,localMode:he.localMode,localState:he.localMode?re.copyState(he.localMode,he.localState):null,inline:he.inline,text:he.text,formatting:!1,linkText:he.linkText,linkTitle:he.linkTitle,linkHref:he.linkHref,code:he.code,em:he.em,strong:he.strong,strikethrough:he.strikethrough,emoji:he.emoji,header:he.header,setext:he.setext,hr:he.hr,taskList:he.taskList,list:he.list,listStack:he.listStack.slice(0),quote:he.quote,indentedCode:he.indentedCode,trailingSpace:he.trailingSpace,trailingSpaceNewLine:he.trailingSpaceNewLine,md_inside:he.md_inside,fencedEndRE:he.fencedEndRE}},token:function(he,le){if(le.formatting=!1,he!=le.thisLine.stream){if(le.header=0,le.hr=!1,he.match(/^\s*$/,!0))return Qe(le),null;if(le.prevLine=le.thisLine,le.thisLine={stream:he},le.taskList=!1,le.trailingSpace=0,le.trailingSpaceNewLine=!1,!le.localState&&(le.f=le.block,le.f!=et)){var Pe=he.match(/^\s*/,!0)[0].replace(/\t/g,vt).length;if(le.indentation=Pe,le.indentationDiff=null,Pe>0)return null}}return le.f(he,le)},innerMode:function(he){return he.block==et?{state:he.htmlState,mode:ze}:he.localState?{state:he.localState,mode:he.localMode}:{state:he,mode:at}},indent:function(he,le,Pe){return he.block==et&&ze.indent?ze.indent(he.htmlState,le,Pe):he.localState&&he.localMode.indent?he.localMode.indent(he.localState,le,Pe):re.Pass},blankLine:Qe,getType:We,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return at},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(Rt,Zt,de){(function(re){re(de(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 gt=0;gt<re.modeInfo.length;gt++){var _e=re.modeInfo[gt];_e.mimes&&(_e.mime=_e.mimes[0])}re.findModeByMIME=function(ze){ze=ze.toLowerCase();for(var me=0;me<re.modeInfo.length;me++){var Ue=re.modeInfo[me];if(Ue.mime==ze)return Ue;if(Ue.mimes){for(var Ae=0;Ae<Ue.mimes.length;Ae++)if(Ue.mimes[Ae]==ze)return Ue}}if(/\+xml$/.test(ze))return re.findModeByMIME("application/xml");if(/\+json$/.test(ze))return re.findModeByMIME("application/json")},re.findModeByExtension=function(ze){ze=ze.toLowerCase();for(var me=0;me<re.modeInfo.length;me++){var Ue=re.modeInfo[me];if(Ue.ext){for(var Ae=0;Ae<Ue.ext.length;Ae++)if(Ue.ext[Ae]==ze)return Ue}}},re.findModeByFileName=function(ze){for(var me=0;me<re.modeInfo.length;me++){var Ue=re.modeInfo[me];if(Ue.file&&Ue.file.test(ze))return Ue}var Ae=ze.lastIndexOf("."),je=Ae>-1&&ze.substring(Ae+1,ze.length);if(je)return re.findModeByExtension(je)},re.findModeByName=function(ze){ze=ze.toLowerCase();for(var me=0;me<re.modeInfo.length;me++){var Ue=re.modeInfo[me];if(Ue.name.toLowerCase()==ze)return Ue;if(Ue.alias){for(var Ae=0;Ae<Ue.alias.length;Ae++)if(Ue.alias[Ae].toLowerCase()==ze)return Ue}}}})},67549:function(Rt,Zt,de){(function(re){re(de(89780))})(function(re){"use strict";re.defineMode("stex",function(gt,_e){"use strict";function ze(Ke,Oe){Ke.cmdState.push(Oe)}function me(Ke){return Ke.cmdState.length>0?Ke.cmdState[Ke.cmdState.length-1]:null}function Ue(Ke){var Oe=Ke.cmdState.pop();Oe&&Oe.closeBracket()}function Ae(Ke){for(var Oe=Ke.cmdState,Ze=Oe.length-1;Ze>=0;Ze--){var Le=Oe[Ze];if(Le.name!="DEFAULT")return Le}return{styleIdentifier:function(){return null}}}function je(Ke,Oe,Ze){return function(){this.name=Ke,this.bracketNo=0,this.style=Oe,this.styles=Ze,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ge={};ge.importmodule=je("importmodule","tag",["string","builtin"]),ge.documentclass=je("documentclass","tag",["","atom"]),ge.usepackage=je("usepackage","tag",["atom"]),ge.begin=je("begin","tag",["atom"]),ge.end=je("end","tag",["atom"]),ge.label=je("label","tag",["atom"]),ge.ref=je("ref","tag",["atom"]),ge.eqref=je("eqref","tag",["atom"]),ge.cite=je("cite","tag",["atom"]),ge.bibitem=je("bibitem","tag",["atom"]),ge.Bibitem=je("Bibitem","tag",["atom"]),ge.RBibitem=je("RBibitem","tag",["atom"]),ge.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function pe(Ke,Oe){Ke.f=Oe}function De(Ke,Oe){var Ze;if(Ke.match(/^\\[a-zA-Z@]+/)){var Le=Ke.current().slice(1);return Ze=ge.hasOwnProperty(Le)?ge[Le]:ge.DEFAULT,Ze=new Ze,ze(Oe,Ze),pe(Oe,mt),Ze.style}if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/\\]/))return"tag";if(Ke.match("\\["))return pe(Oe,function(ft,At){return xe(ft,At,"\\]")}),"keyword";if(Ke.match("\\("))return pe(Oe,function(ft,At){return xe(ft,At,"\\)")}),"keyword";if(Ke.match("$$"))return pe(Oe,function(ft,At){return xe(ft,At,"$$")}),"keyword";if(Ke.match("$"))return pe(Oe,function(ft,At){return xe(ft,At,"$")}),"keyword";var vt=Ke.next();if(vt=="%")return Ke.skipToEnd(),"comment";if(vt=="}"||vt=="]"){if(Ze=me(Oe),Ze)Ze.closeBracket(vt),pe(Oe,mt);else return"error";return"bracket"}else return vt=="{"||vt=="["?(Ze=ge.DEFAULT,Ze=new Ze,ze(Oe,Ze),"bracket"):/\d/.test(vt)?(Ke.eatWhile(/[\w.%]/),"atom"):(Ke.eatWhile(/[\w\-_]/),Ze=Ae(Oe),Ze.name=="begin"&&(Ze.argument=Ke.current()),Ze.styleIdentifier())}function xe(Ke,Oe,Ze){if(Ke.eatSpace())return null;if(Ze&&Ke.match(Ze))return pe(Oe,De),"keyword";if(Ke.match(/^\\[a-zA-Z@]+/))return"tag";if(Ke.match(/^[a-zA-Z]+/))return"variable-2";if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/]/)||Ke.match(/^[\^_&]/))return"tag";if(Ke.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ke.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Le=Ke.next();return Le=="{"||Le=="}"||Le=="["||Le=="]"||Le=="("||Le==")"?"bracket":Le=="%"?(Ke.skipToEnd(),"comment"):"error"}function mt(Ke,Oe){var Ze=Ke.peek(),Le;return Ze=="{"||Ze=="["?(Le=me(Oe),Le.openBracket(Ze),Ke.eat(Ze),pe(Oe,De),"bracket"):/[ \t\r]/.test(Ze)?(Ke.eat(Ze),null):(pe(Oe,De),Ue(Oe),De(Ke,Oe))}return{startState:function(){var Ke=_e.inMathMode?function(Oe,Ze){return xe(Oe,Ze)}:De;return{cmdState:[],f:Ke}},copyState:function(Ke){return{cmdState:Ke.cmdState.slice(),f:Ke.f}},token:function(Ke,Oe){return Oe.f(Ke,Oe)},blankLine:function(Ke){Ke.f=De,Ke.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(Rt,Zt,de){(function(re){re(de(89780))})(function(re){"use strict";var gt={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},_e={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(ze,me){var Ue=ze.indentUnit,Ae={},je=me.htmlMode?gt:_e;for(var ge in je)Ae[ge]=je[ge];for(var ge in me)Ae[ge]=me[ge];var pe,De;function xe(Ce,$e){function Be(St){return $e.tokenize=St,St(Ce,$e)}var Xe=Ce.next();if(Xe=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?Be(Oe("atom","]]>")):null:Ce.match("--")?Be(Oe("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),Be(Ze(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),$e.tokenize=Oe("meta","?>"),"meta"):(pe=Ce.eat("/")?"closeTag":"openTag",$e.tokenize=mt,"tag bracket");if(Xe=="&"){var Gt;return Ce.eat("#")?Ce.eat("x")?Gt=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):Gt=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):Gt=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),Gt?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}xe.isInText=!0;function mt(Ce,$e){var Be=Ce.next();if(Be==">"||Be=="/"&&Ce.eat(">"))return $e.tokenize=xe,pe=Be==">"?"endTag":"selfcloseTag","tag bracket";if(Be=="=")return pe="equals",null;if(Be=="<"){$e.tokenize=xe,$e.state=At,$e.tagName=$e.tagStart=null;var Xe=$e.tokenize(Ce,$e);return Xe?Xe+" tag error":"tag error"}else return/[\'\"]/.test(Be)?($e.tokenize=Ke(Be),$e.stringStartCol=Ce.column(),$e.tokenize(Ce,$e)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ke(Ce){var $e=function(Be,Xe){for(;!Be.eol();)if(Be.next()==Ce){Xe.tokenize=mt;break}return"string"};return $e.isInAttribute=!0,$e}function Oe(Ce,$e){return function(Be,Xe){for(;!Be.eol();){if(Be.match($e)){Xe.tokenize=xe;break}Be.next()}return Ce}}function Ze(Ce){return function($e,Be){for(var Xe;(Xe=$e.next())!=null;){if(Xe=="<")return Be.tokenize=Ze(Ce+1),Be.tokenize($e,Be);if(Xe==">")if(Ce==1){Be.tokenize=xe;break}else return Be.tokenize=Ze(Ce-1),Be.tokenize($e,Be)}return"meta"}}function Le(Ce,$e,Be){this.prev=Ce.context,this.tagName=$e,this.indent=Ce.indented,this.startOfLine=Be,(Ae.doNotIndent.hasOwnProperty($e)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function vt(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function ft(Ce,$e){for(var Be;;){if(!Ce.context||(Be=Ce.context.tagName,!Ae.contextGrabbers.hasOwnProperty(Be)||!Ae.contextGrabbers[Be].hasOwnProperty($e)))return;vt(Ce)}}function At(Ce,$e,Be){return Ce=="openTag"?(Be.tagStart=$e.column(),tt):Ce=="closeTag"?Qe:At}function tt(Ce,$e,Be){return Ce=="word"?(Be.tagName=$e.current(),De="tag",jt):Ae.allowMissingTagName&&Ce=="endTag"?(De="tag bracket",jt(Ce,$e,Be)):(De="error",tt)}function Qe(Ce,$e,Be){if(Ce=="word"){var Xe=$e.current();return Be.context&&Be.context.tagName!=Xe&&Ae.implicitlyClosed.hasOwnProperty(Be.context.tagName)&&vt(Be),Be.context&&Be.context.tagName==Xe||Ae.matchClosing===!1?(De="tag",st):(De="tag error",et)}else return Ae.allowMissingTagName&&Ce=="endTag"?(De="tag bracket",st(Ce,$e,Be)):(De="error",et)}function st(Ce,$e,Be){return Ce!="endTag"?(De="error",st):(vt(Be),At)}function et(Ce,$e,Be){return De="error",st(Ce,$e,Be)}function jt(Ce,$e,Be){if(Ce=="word")return De="attribute",We;if(Ce=="endTag"||Ce=="selfcloseTag"){var Xe=Be.tagName,Gt=Be.tagStart;return Be.tagName=Be.tagStart=null,Ce=="selfcloseTag"||Ae.autoSelfClosers.hasOwnProperty(Xe)?ft(Be,Xe):(ft(Be,Xe),Be.context=new Le(Be,Xe,Gt==Be.indented)),At}return De="error",jt}function We(Ce,$e,Be){return Ce=="equals"?Je:(Ae.allowMissing||(De="error"),jt(Ce,$e,Be))}function Je(Ce,$e,Be){return Ce=="string"?Dt:Ce=="word"&&Ae.allowUnquoted?(De="string",jt):(De="error",jt(Ce,$e,Be))}function Dt(Ce,$e,Be){return Ce=="string"?Dt:jt(Ce,$e,Be)}return{startState:function(Ce){var $e={tokenize:xe,state:At,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&($e.baseIndent=Ce),$e},token:function(Ce,$e){if(!$e.tagName&&Ce.sol()&&($e.indented=Ce.indentation()),Ce.eatSpace())return null;pe=null;var Be=$e.tokenize(Ce,$e);return(Be||pe)&&Be!="comment"&&(De=null,$e.state=$e.state(pe||Be,Ce,$e),De&&(Be=De=="error"?Be+" error":De)),Be},indent:function(Ce,$e,Be){var Xe=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+Ue;if(Xe&&Xe.noIndent)return re.Pass;if(Ce.tokenize!=mt&&Ce.tokenize!=xe)return Be?Be.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return Ae.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+Ue*(Ae.multilineTagIndentFactor||1);if(Ae.alignCDATA&&/<!\[CDATA\[/.test($e))return 0;var Gt=$e&&/^<(\/)?([\w_:\.-]*)/.exec($e);if(Gt&&Gt[1])for(;Xe;)if(Xe.tagName==Gt[2]){Xe=Xe.prev;break}else if(Ae.implicitlyClosed.hasOwnProperty(Xe.tagName))Xe=Xe.prev;else break;else if(Gt)for(;Xe;){var St=Ae.contextGrabbers[Xe.tagName];if(St&&St.hasOwnProperty(Gt[2]))Xe=Xe.prev;else break}for(;Xe&&Xe.prev&&!Xe.startOfLine;)Xe=Xe.prev;return Xe?Xe.indent+Ue:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ae.htmlMode?"html":"xml",helperType:Ae.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==Je&&(Ce.state=jt)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var $e=[],Be=Ce.context;Be;Be=Be.prev)Be.tagName&&$e.push(Be.tagName);return $e.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},66042:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return $e}});var re=de(33885),gt=de(42978),_e=de(43403),ze=de(34280),me=de(59301),Ue=me.createContext(null),Ae=me.createContext({}),je=Ue,ge=de(20068),pe=de(54476),De=de(92310),xe=de.n(De),mt=de(77900),Ke=de(10228),Oe=de(26112),Ze=de(75931),Le=de(8654),vt=["prefixCls","className","containerRef"],ft=function(Xe){var Gt=Xe.prefixCls,St=Xe.className,ht=Xe.containerRef,at=(0,Ze.Z)(Xe,vt),he=me.useContext(Ae),le=he.panel,Pe=(0,Le.x1)(le,ht);return me.createElement("div",(0,pe.Z)({className:xe()("".concat(Gt,"-content"),St),role:"dialog",ref:Pe},(0,Oe.Z)(Xe,{aria:!0}),{"aria-modal":"true"},at))},At=ft,tt=de(48736);function Qe(Be){return typeof Be=="string"&&String(Number(Be))===Be?((0,tt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Be)):Be}function st(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 et={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function jt(Be,Xe){var Gt,St,ht,at=Be.prefixCls,he=Be.open,le=Be.placement,Pe=Be.inline,dt=Be.push,ot=Be.forceRender,be=Be.autoFocus,Ne=Be.keyboard,Fe=Be.classNames,Ct=Be.rootClassName,it=Be.rootStyle,Se=Be.zIndex,ve=Be.className,Ee=Be.id,Ye=Be.style,we=Be.motion,Ie=Be.width,qe=Be.height,nt=Be.children,ut=Be.mask,Ge=Be.maskClosable,xt=Be.maskMotion,kt=Be.maskClassName,Qt=Be.maskStyle,It=Be.afterOpenChange,se=Be.onClose,te=Be.onMouseEnter,ee=Be.onMouseOver,oe=Be.onMouseLeave,ce=Be.onClick,ne=Be.onKeyDown,ye=Be.onKeyUp,yt=Be.styles,bt=Be.drawerRender,wt=me.useRef(),He=me.useRef(),Yt=me.useRef();me.useImperativeHandle(Xe,function(){return wt.current});var _t=function(Qn){var Ft=Qn.keyCode,Vt=Qn.shiftKey;switch(Ft){case Ke.Z.TAB:{if(Ft===Ke.Z.TAB){if(!Vt&&document.activeElement===Yt.current){var pt;(pt=He.current)===null||pt===void 0||pt.focus({preventScroll:!0})}else if(Vt&&document.activeElement===He.current){var Bt;(Bt=Yt.current)===null||Bt===void 0||Bt.focus({preventScroll:!0})}}break}case Ke.Z.ESC:{se&&Ne&&(Qn.stopPropagation(),se(Qn));break}}};me.useEffect(function(){if(he&&be){var Tn;(Tn=wt.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}},[he]);var Wt=me.useState(!1),ln=(0,gt.Z)(Wt,2),Pn=ln[0],pn=ln[1],Mn=me.useContext(je),er;typeof dt=="boolean"?er=dt?{}:{distance:0}:er=dt||{};var jn=(Gt=(St=(ht=er)===null||ht===void 0?void 0:ht.distance)!==null&&St!==void 0?St:Mn==null?void 0:Mn.pushDistance)!==null&&Gt!==void 0?Gt:180,ur=me.useMemo(function(){return{pushDistance:jn,push:function(){pn(!0)},pull:function(){pn(!1)}}},[jn]);me.useEffect(function(){if(he){var Tn;Mn==null||(Tn=Mn.push)===null||Tn===void 0||Tn.call(Mn)}else{var Qn;Mn==null||(Qn=Mn.pull)===null||Qn===void 0||Qn.call(Mn)}},[he]),me.useEffect(function(){return function(){var Tn;Mn==null||(Tn=Mn.pull)===null||Tn===void 0||Tn.call(Mn)}},[]);var tr=ut&&me.createElement(mt.default,(0,pe.Z)({key:"mask"},xt,{visible:he}),function(Tn,Qn){var Ft=Tn.className,Vt=Tn.style;return me.createElement("div",{className:xe()("".concat(at,"-mask"),Ft,Fe==null?void 0:Fe.mask,kt),style:(0,re.Z)((0,re.Z)((0,re.Z)({},Vt),Qt),yt==null?void 0:yt.mask),onClick:Ge&&he?se:void 0,ref:Qn})}),or=typeof we=="function"?we(le):we,Gn={};if(Pn&&jn)switch(le){case"top":Gn.transform="translateY(".concat(jn,"px)");break;case"bottom":Gn.transform="translateY(".concat(-jn,"px)");break;case"left":Gn.transform="translateX(".concat(jn,"px)");break;default:Gn.transform="translateX(".concat(-jn,"px)");break}le==="left"||le==="right"?Gn.width=Qe(Ie):Gn.height=Qe(qe);var yn={onMouseEnter:te,onMouseOver:ee,onMouseLeave:oe,onClick:ce,onKeyDown:ne,onKeyUp:ye},Vn=me.createElement(mt.default,(0,pe.Z)({key:"panel"},or,{visible:he,forceRender:ot,onVisibleChanged:function(Qn){It==null||It(Qn)},removeOnLeave:!1,leavedClassName:"".concat(at,"-content-wrapper-hidden")}),function(Tn,Qn){var Ft=Tn.className,Vt=Tn.style,pt=me.createElement(At,(0,pe.Z)({id:Ee,containerRef:Qn,prefixCls:at,className:xe()(ve,Fe==null?void 0:Fe.content),style:(0,re.Z)((0,re.Z)({},Ye),yt==null?void 0:yt.content)},(0,Oe.Z)(Be,{aria:!0}),yn),nt);return me.createElement("div",(0,pe.Z)({className:xe()("".concat(at,"-content-wrapper"),Fe==null?void 0:Fe.wrapper,Ft),style:(0,re.Z)((0,re.Z)((0,re.Z)({},Gn),Vt),yt==null?void 0:yt.wrapper)},(0,Oe.Z)(Be,{data:!0})),bt?bt(pt):pt)}),zn=(0,re.Z)({},it);return Se&&(zn.zIndex=Se),me.createElement(je.Provider,{value:ur},me.createElement("div",{className:xe()(at,"".concat(at,"-").concat(le),Ct,(0,ge.Z)((0,ge.Z)({},"".concat(at,"-open"),he),"".concat(at,"-inline"),Pe)),style:zn,tabIndex:-1,ref:wt,onKeyDown:_t},tr,me.createElement("div",{tabIndex:0,ref:He,style:et,"aria-hidden":"true","data-sentinel":"start"}),Vn,me.createElement("div",{tabIndex:0,ref:Yt,style:et,"aria-hidden":"true","data-sentinel":"end"})))}var We=me.forwardRef(jt),Je=We,Dt=function(Xe){var Gt=Xe.open,St=Gt===void 0?!1:Gt,ht=Xe.prefixCls,at=ht===void 0?"rc-drawer":ht,he=Xe.placement,le=he===void 0?"right":he,Pe=Xe.autoFocus,dt=Pe===void 0?!0:Pe,ot=Xe.keyboard,be=ot===void 0?!0:ot,Ne=Xe.width,Fe=Ne===void 0?378:Ne,Ct=Xe.mask,it=Ct===void 0?!0:Ct,Se=Xe.maskClosable,ve=Se===void 0?!0:Se,Ee=Xe.getContainer,Ye=Xe.forceRender,we=Xe.afterOpenChange,Ie=Xe.destroyOnClose,qe=Xe.onMouseEnter,nt=Xe.onMouseOver,ut=Xe.onMouseLeave,Ge=Xe.onClick,xt=Xe.onKeyDown,kt=Xe.onKeyUp,Qt=Xe.panelRef,It=me.useState(!1),se=(0,gt.Z)(It,2),te=se[0],ee=se[1],oe=me.useState(!1),ce=(0,gt.Z)(oe,2),ne=ce[0],ye=ce[1];(0,ze.Z)(function(){ye(!0)},[]);var yt=ne?St:!1,bt=me.useRef(),wt=me.useRef();(0,ze.Z)(function(){yt&&(wt.current=document.activeElement)},[yt]);var He=function(Pn){var pn;if(ee(Pn),we==null||we(Pn),!Pn&&wt.current&&!((pn=bt.current)!==null&&pn!==void 0&&pn.contains(wt.current))){var Mn;(Mn=wt.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}},Yt=me.useMemo(function(){return{panel:Qt}},[Qt]);if(!Ye&&!te&&!yt&&Ie)return null;var _t={onMouseEnter:qe,onMouseOver:nt,onMouseLeave:ut,onClick:Ge,onKeyDown:xt,onKeyUp:kt},Wt=(0,re.Z)((0,re.Z)({},Xe),{},{open:yt,prefixCls:at,placement:le,autoFocus:dt,keyboard:be,width:Fe,mask:it,maskClosable:ve,inline:Ee===!1,afterOpenChange:He,ref:bt},_t);return me.createElement(Ae.Provider,{value:Yt},me.createElement(_e.Z,{open:yt||Ye||te,autoDestroy:!1,getContainer:Ee,autoLock:it&&(yt||te)},me.createElement(Je,Wt)))},Ce=Dt,$e=Ce},20922:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return it}});var re=de(54476),gt=de(20068),_e=de(76190),ze=de(42978),me=de(75931),Ue=de(67732),Ae=de(83652);function je(){return typeof BigInt=="function"}function ge(Se){return!Se&&Se!==0&&!Number.isNaN(Se)||!String(Se).trim()}function pe(Se){var ve=Se.trim(),Ee=ve.startsWith("-");Ee&&(ve=ve.slice(1)),ve=ve.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ve.startsWith(".")&&(ve="0".concat(ve));var Ye=ve||"0",we=Ye.split("."),Ie=we[0]||"0",qe=we[1]||"0";Ie==="0"&&qe==="0"&&(Ee=!1);var nt=Ee?"-":"";return{negative:Ee,negativeStr:nt,trimStr:Ye,integerStr:Ie,decimalStr:qe,fullStr:"".concat(nt).concat(Ye)}}function De(Se){var ve=String(Se);return!Number.isNaN(Number(ve))&&ve.includes("e")}function xe(Se){var ve=String(Se);if(De(Se)){var Ee=Number(ve.slice(ve.indexOf("e-")+2)),Ye=ve.match(/\.(\d+)/);return Ye!=null&&Ye[1]&&(Ee+=Ye[1].length),Ee}return ve.includes(".")&&Ke(ve)?ve.length-ve.indexOf(".")-1:0}function mt(Se){var ve=String(Se);if(De(Se)){if(Se>Number.MAX_SAFE_INTEGER)return String(je()?BigInt(Se).toString():Number.MAX_SAFE_INTEGER);if(Se<Number.MIN_SAFE_INTEGER)return String(je()?BigInt(Se).toString():Number.MIN_SAFE_INTEGER);ve=Se.toFixed(xe(ve))}return pe(ve).fullStr}function Ke(Se){return typeof Se=="number"?!Number.isNaN(Se):Se?/^\s*-?\d+(\.\d+)?\s*$/.test(Se)||/^\s*-?\d+\.\s*$/.test(Se)||/^\s*-?\.\d+\s*$/.test(Se):!1}var Oe=function(){function Se(ve){if((0,Ue.Z)(this,Se),(0,gt.Z)(this,"origin",""),(0,gt.Z)(this,"negative",void 0),(0,gt.Z)(this,"integer",void 0),(0,gt.Z)(this,"decimal",void 0),(0,gt.Z)(this,"decimalLen",void 0),(0,gt.Z)(this,"empty",void 0),(0,gt.Z)(this,"nan",void 0),ge(ve)){this.empty=!0;return}if(this.origin=String(ve),ve==="-"||Number.isNaN(ve)){this.nan=!0;return}var Ee=ve;if(De(Ee)&&(Ee=Number(Ee)),Ee=typeof Ee=="string"?Ee:mt(Ee),Ke(Ee)){var Ye=pe(Ee);this.negative=Ye.negative;var we=Ye.trimStr.split(".");this.integer=BigInt(we[0]);var Ie=we[1]||"0";this.decimal=BigInt(Ie),this.decimalLen=Ie.length}else this.nan=!0}return(0,Ae.Z)(Se,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Ee){var Ye="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Ee,"0"));return BigInt(Ye)}},{key:"negate",value:function(){var Ee=new Se(this.toString());return Ee.negative=!Ee.negative,Ee}},{key:"cal",value:function(Ee,Ye,we){var Ie=Math.max(this.getDecimalStr().length,Ee.getDecimalStr().length),qe=this.alignDecimal(Ie),nt=Ee.alignDecimal(Ie),ut=Ye(qe,nt).toString(),Ge=we(Ie),xt=pe(ut),kt=xt.negativeStr,Qt=xt.trimStr,It="".concat(kt).concat(Qt.padStart(Ge+1,"0"));return new Se("".concat(It.slice(0,-Ge),".").concat(It.slice(-Ge)))}},{key:"add",value:function(Ee){if(this.isInvalidate())return new Se(Ee);var Ye=new Se(Ee);return Ye.isInvalidate()?this:this.cal(Ye,function(we,Ie){return we+Ie},function(we){return we})}},{key:"multi",value:function(Ee){var Ye=new Se(Ee);return this.isInvalidate()||Ye.isInvalidate()?new Se(NaN):this.cal(Ye,function(we,Ie){return we*Ie},function(we){return we*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Ee){return this.toString()===(Ee==null?void 0:Ee.toString())}},{key:"lessEquals",value:function(Ee){return this.add(Ee.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ee?this.isInvalidate()?"":pe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Se}(),Ze=function(){function Se(ve){if((0,Ue.Z)(this,Se),(0,gt.Z)(this,"origin",""),(0,gt.Z)(this,"number",void 0),(0,gt.Z)(this,"empty",void 0),ge(ve)){this.empty=!0;return}this.origin=String(ve),this.number=Number(ve)}return(0,Ae.Z)(Se,[{key:"negate",value:function(){return new Se(-this.toNumber())}},{key:"add",value:function(Ee){if(this.isInvalidate())return new Se(Ee);var Ye=Number(Ee);if(Number.isNaN(Ye))return this;var we=this.number+Ye;if(we>Number.MAX_SAFE_INTEGER)return new Se(Number.MAX_SAFE_INTEGER);if(we<Number.MIN_SAFE_INTEGER)return new Se(Number.MIN_SAFE_INTEGER);var Ie=Math.max(xe(this.number),xe(Ye));return new Se(we.toFixed(Ie))}},{key:"multi",value:function(Ee){var Ye=Number(Ee);if(this.isInvalidate()||Number.isNaN(Ye))return new Se(NaN);var we=this.number*Ye;if(we>Number.MAX_SAFE_INTEGER)return new Se(Number.MAX_SAFE_INTEGER);if(we<Number.MIN_SAFE_INTEGER)return new Se(Number.MIN_SAFE_INTEGER);var Ie=Math.max(xe(this.number),xe(Ye));return new Se(we.toFixed(Ie))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Ee){return this.toNumber()===(Ee==null?void 0:Ee.toNumber())}},{key:"lessEquals",value:function(Ee){return this.add(Ee.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ee?this.isInvalidate()?"":mt(this.number):this.origin}}]),Se}();function Le(Se){return je()?new Oe(Se):new Ze(Se)}function vt(Se,ve,Ee){var Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Se==="")return"";var we=pe(Se),Ie=we.negativeStr,qe=we.integerStr,nt=we.decimalStr,ut="".concat(ve).concat(nt),Ge="".concat(Ie).concat(qe);if(Ee>=0){var xt=Number(nt[Ee]);if(xt>=5&&!Ye){var kt=Le(Se).add("".concat(Ie,"0.").concat("0".repeat(Ee)).concat(10-xt));return vt(kt.toString(),ve,Ee,Ye)}return Ee===0?Ge:"".concat(Ge).concat(ve).concat(nt.padEnd(Ee,"0").slice(0,Ee))}return ut===".0"?Ge:"".concat(Ge).concat(ut)}var ft=Le,At=de(92310),tt=de.n(At),Qe=de(36901),st=de(34280);function et(Se,ve){return typeof Proxy!="undefined"&&Se?new Proxy(Se,{get:function(Ye,we){if(ve[we])return ve[we];var Ie=Ye[we];return typeof Ie=="function"?Ie.bind(Ye):Ie}}):Se}var jt=de(8654),We=de(59301),Je=de(48736);function Dt(Se,ve){var Ee=(0,We.useRef)(null);function Ye(){try{var Ie=Se.selectionStart,qe=Se.selectionEnd,nt=Se.value,ut=nt.substring(0,Ie),Ge=nt.substring(qe);Ee.current={start:Ie,end:qe,value:nt,beforeTxt:ut,afterTxt:Ge}}catch(xt){}}function we(){if(Se&&Ee.current&&ve)try{var Ie=Se.value,qe=Ee.current,nt=qe.beforeTxt,ut=qe.afterTxt,Ge=qe.start,xt=Ie.length;if(Ie.startsWith(nt))xt=nt.length;else if(Ie.endsWith(ut))xt=Ie.length-Ee.current.afterTxt.length;else{var kt=nt[Ge-1],Qt=Ie.indexOf(kt,Ge-1);Qt!==-1&&(xt=Qt+1)}Se.setSelectionRange(xt,xt)}catch(It){(0,Je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(It.message))}}return[Ye,we]}var Ce=de(49658),$e=function(){var ve=(0,We.useState)(!1),Ee=(0,ze.Z)(ve,2),Ye=Ee[0],we=Ee[1];return(0,st.Z)(function(){we((0,Ce.Z)())},[]),Ye},Be=$e,Xe=de(16089),Gt=200,St=600;function ht(Se){var ve=Se.prefixCls,Ee=Se.upNode,Ye=Se.downNode,we=Se.upDisabled,Ie=Se.downDisabled,qe=Se.onStep,nt=We.useRef(),ut=We.useRef([]),Ge=We.useRef();Ge.current=qe;var xt=function(){clearTimeout(nt.current)},kt=function(ne,ye){ne.preventDefault(),xt(),Ge.current(ye);function yt(){Ge.current(ye),nt.current=setTimeout(yt,Gt)}nt.current=setTimeout(yt,St)};We.useEffect(function(){return function(){xt(),ut.current.forEach(function(ce){return Xe.Z.cancel(ce)})}},[]);var Qt=Be();if(Qt)return null;var It="".concat(ve,"-handler"),se=tt()(It,"".concat(It,"-up"),(0,gt.Z)({},"".concat(It,"-up-disabled"),we)),te=tt()(It,"".concat(It,"-down"),(0,gt.Z)({},"".concat(It,"-down-disabled"),Ie)),ee=function(){return ut.current.push((0,Xe.Z)(xt))},oe={unselectable:"on",role:"button",onMouseUp:ee,onMouseLeave:ee};return We.createElement("div",{className:"".concat(It,"-wrap")},We.createElement("span",(0,re.Z)({},oe,{onMouseDown:function(ne){kt(ne,!0)},"aria-label":"Increase Value","aria-disabled":we,className:se}),Ee||We.createElement("span",{unselectable:"on",className:"".concat(ve,"-handler-up-inner")})),We.createElement("span",(0,re.Z)({},oe,{onMouseDown:function(ne){kt(ne,!1)},"aria-label":"Decrease Value","aria-disabled":Ie,className:te}),Ye||We.createElement("span",{unselectable:"on",className:"".concat(ve,"-handler-down-inner")})))}function at(Se){var ve=typeof Se=="number"?mt(Se):pe(Se).fullStr,Ee=ve.includes(".");return Ee?pe(ve.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Se+"0"}var he=de(30292),le=function(){var Se=(0,We.useRef)(0),ve=function(){Xe.Z.cancel(Se.current)};return(0,We.useEffect)(function(){return ve},[]),function(Ee){ve(),Se.current=(0,Xe.Z)(function(){Ee()})}},Pe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],dt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ot=function(ve,Ee){return ve||Ee.isEmpty()?Ee.toString():Ee.toNumber()},be=function(ve){var Ee=ft(ve);return Ee.isInvalidate()?null:Ee},Ne=We.forwardRef(function(Se,ve){var Ee=Se.prefixCls,Ye=Se.className,we=Se.style,Ie=Se.min,qe=Se.max,nt=Se.step,ut=nt===void 0?1:nt,Ge=Se.defaultValue,xt=Se.value,kt=Se.disabled,Qt=Se.readOnly,It=Se.upHandler,se=Se.downHandler,te=Se.keyboard,ee=Se.changeOnWheel,oe=ee===void 0?!1:ee,ce=Se.controls,ne=ce===void 0?!0:ce,ye=Se.classNames,yt=Se.stringMode,bt=Se.parser,wt=Se.formatter,He=Se.precision,Yt=Se.decimalSeparator,_t=Se.onChange,Wt=Se.onInput,ln=Se.onPressEnter,Pn=Se.onStep,pn=Se.changeOnBlur,Mn=pn===void 0?!0:pn,er=Se.domRef,jn=(0,me.Z)(Se,Pe),ur="".concat(Ee,"-input"),tr=We.useRef(null),or=We.useState(!1),Gn=(0,ze.Z)(or,2),yn=Gn[0],Vn=Gn[1],zn=We.useRef(!1),Tn=We.useRef(!1),Qn=We.useRef(!1),Ft=We.useState(function(){return ft(xt!=null?xt:Ge)}),Vt=(0,ze.Z)(Ft,2),pt=Vt[0],Bt=Vt[1];function en(wn){xt===void 0&&Bt(wn)}var vn=We.useCallback(function(wn,Jt){if(!Jt)return He>=0?He:Math.max(xe(wn),xe(ut))},[He,ut]),on=We.useCallback(function(wn){var Jt=String(wn);if(bt)return bt(Jt);var En=Jt;return Yt&&(En=En.replace(Yt,".")),En.replace(/[^\w.-]+/g,"")},[bt,Yt]),Ln=We.useRef(""),Rn=We.useCallback(function(wn,Jt){if(wt)return wt(wn,{userTyping:Jt,input:String(Ln.current)});var En=typeof wn=="number"?mt(wn):wn;if(!Jt){var un=vn(En,Jt);if(Ke(En)&&(Yt||un>=0)){var qn=Yt||".";En=vt(En,qn,un)}}return En},[wt,vn,Yt]),Nn=We.useState(function(){var wn=Ge!=null?Ge:xt;return pt.isInvalidate()&&["string","number"].includes((0,_e.Z)(wn))?Number.isNaN(wn)?"":wn:Rn(pt.toString(),!1)}),Cn=(0,ze.Z)(Nn,2),Un=Cn[0],Ot=Cn[1];Ln.current=Un;function ct(wn,Jt){Ot(Rn(wn.isInvalidate()?wn.toString(!1):wn.toString(!Jt),Jt))}var Nt=We.useMemo(function(){return be(qe)},[qe,He]),gn=We.useMemo(function(){return be(Ie)},[Ie,He]),Bn=We.useMemo(function(){return!Nt||!pt||pt.isInvalidate()?!1:Nt.lessEquals(pt)},[Nt,pt]),Te=We.useMemo(function(){return!gn||!pt||pt.isInvalidate()?!1:pt.lessEquals(gn)},[gn,pt]),Re=Dt(tr.current,yn),Ht=(0,ze.Z)(Re,2),Lt=Ht[0],Ve=Ht[1],Mt=function(Jt){return Nt&&!Jt.lessEquals(Nt)?Nt:gn&&!gn.lessEquals(Jt)?gn:null},tn=function(Jt){return!Mt(Jt)},sn=function(Jt,En){var un=Jt,qn=tn(un)||un.isEmpty();if(!un.isEmpty()&&!En&&(un=Mt(un)||un,qn=!0),!Qt&&!kt&&qn){var wr=un.toString(),sr=vn(wr,En);return sr>=0&&(un=ft(vt(wr,".",sr)),tn(un)||(un=ft(vt(wr,".",sr,!0)))),un.equals(pt)||(en(un),_t==null||_t(un.isEmpty()?null:ot(yt,un)),xt===void 0&&ct(un,En)),un}return pt},bn=le(),Xt=function wn(Jt){if(Lt(),Ln.current=Jt,Ot(Jt),!Tn.current){var En=on(Jt),un=ft(En);un.isNaN()||sn(un,!0)}Wt==null||Wt(Jt),bn(function(){var qn=Jt;bt||(qn=Jt.replace(/。/g,".")),qn!==Jt&&wn(qn)})},rn=function(){Tn.current=!0},Pt=function(){Tn.current=!1,Xt(tr.current.value)},Et=function(Jt){Xt(Jt.target.value)},an=function(Jt){var En;if(!(Jt&&Bn||!Jt&&Te)){zn.current=!1;var un=ft(Qn.current?at(ut):ut);Jt||(un=un.negate());var qn=(pt||ft(0)).add(un.toString()),wr=sn(qn,!1);Pn==null||Pn(ot(yt,wr),{offset:Qn.current?at(ut):ut,type:Jt?"up":"down"}),(En=tr.current)===null||En===void 0||En.focus()}},Sn=function(Jt){var En=ft(on(Un)),un;En.isNaN()?un=sn(pt,Jt):un=sn(En,Jt),xt!==void 0?ct(pt,!1):un.isNaN()||ct(un,!1)},kn=function(){zn.current=!0},Fn=function(Jt){var En=Jt.key,un=Jt.shiftKey;zn.current=!0,Qn.current=un,En==="Enter"&&(Tn.current||(zn.current=!1),Sn(!1),ln==null||ln(Jt)),te!==!1&&!Tn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(En)&&(an(En==="Up"||En==="ArrowUp"),Jt.preventDefault())},Jn=function(){zn.current=!1,Qn.current=!1};We.useEffect(function(){if(oe&&yn){var wn=function(un){an(un.deltaY<0),un.preventDefault()},Jt=tr.current;if(Jt)return Jt.addEventListener("wheel",wn,{passive:!1}),function(){return Jt.removeEventListener("wheel",wn)}}});var ar=function(){Mn&&Sn(!1),Vn(!1),zn.current=!1};return(0,st.o)(function(){pt.isInvalidate()||ct(pt,!1)},[He,wt]),(0,st.o)(function(){var wn=ft(xt);Bt(wn);var Jt=ft(on(Un));(!wn.equals(Jt)||!zn.current||wt)&&ct(wn,zn.current)},[xt]),(0,st.o)(function(){wt&&Ve()},[Un]),We.createElement("div",{ref:er,className:tt()(Ee,Ye,(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)({},"".concat(Ee,"-focused"),yn),"".concat(Ee,"-disabled"),kt),"".concat(Ee,"-readonly"),Qt),"".concat(Ee,"-not-a-number"),pt.isNaN()),"".concat(Ee,"-out-of-range"),!pt.isInvalidate()&&!tn(pt))),style:we,onFocus:function(){Vn(!0)},onBlur:ar,onKeyDown:Fn,onKeyUp:Jn,onCompositionStart:rn,onCompositionEnd:Pt,onBeforeInput:kn},ne&&We.createElement(ht,{prefixCls:Ee,upNode:It,downNode:se,upDisabled:Bn,downDisabled:Te,onStep:an}),We.createElement("div",{className:"".concat(ur,"-wrap")},We.createElement("input",(0,re.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Ie,"aria-valuemax":qe,"aria-valuenow":pt.isInvalidate()?null:pt.toString(),step:ut},jn,{ref:(0,jt.sQ)(tr,ve),className:ur,value:Un,onChange:Et,disabled:kt,readOnly:Qt}))))}),Fe=We.forwardRef(function(Se,ve){var Ee=Se.disabled,Ye=Se.style,we=Se.prefixCls,Ie=we===void 0?"rc-input-number":we,qe=Se.value,nt=Se.prefix,ut=Se.suffix,Ge=Se.addonBefore,xt=Se.addonAfter,kt=Se.className,Qt=Se.classNames,It=(0,me.Z)(Se,dt),se=We.useRef(null),te=We.useRef(null),ee=We.useRef(null),oe=function(ne){ee.current&&(0,he.nH)(ee.current,ne)};return We.useImperativeHandle(ve,function(){return et(ee.current,{focus:oe,nativeElement:se.current.nativeElement||te.current})}),We.createElement(Qe.BaseInput,{className:kt,triggerFocus:oe,prefixCls:Ie,value:qe,disabled:Ee,style:Ye,prefix:nt,suffix:ut,addonAfter:xt,addonBefore:Ge,classNames:Qt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:se},We.createElement(Ne,(0,re.Z)({prefixCls:Ie,disabled:Ee,ref:ee,domRef:te,className:Qt==null?void 0:Qt.input},It)))}),Ct=Fe,it=Ct},25930:function(Rt,Zt,de){"use strict";de.d(Zt,{Cd:function(){return Dt}});var re=de(54476),gt=de(33885),_e=de(75931),ze=de(59301),me=de(92310),Ue=de.n(me),Ae={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},je=function(){var Be=(0,ze.useRef)([]),Xe=(0,ze.useRef)(null);return(0,ze.useEffect)(function(){var Gt=Date.now(),St=!1;Be.current.forEach(function(ht){if(ht){St=!0;var at=ht.style;at.transitionDuration=".3s, .3s, .3s, .06s",Xe.current&&Gt-Xe.current<100&&(at.transitionDuration="0s, 0s")}}),St&&(Xe.current=Date.now())}),Be.current},ge=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],pe=function(Be){var Xe=(0,gt.Z)((0,gt.Z)({},Ae),Be),Gt=Xe.className,St=Xe.percent,ht=Xe.prefixCls,at=Xe.strokeColor,he=Xe.strokeLinecap,le=Xe.strokeWidth,Pe=Xe.style,dt=Xe.trailColor,ot=Xe.trailWidth,be=Xe.transition,Ne=(0,_e.Z)(Xe,ge);delete Ne.gapPosition;var Fe=Array.isArray(St)?St:[St],Ct=Array.isArray(at)?at:[at],it=je(),Se=le/2,ve=100-le/2,Ee="M ".concat(he==="round"?Se:0,",").concat(Se,`
L `).concat(he==="round"?ve:100,",").concat(Se),Ye="0 0 100 ".concat(le),we=0;return ze.createElement("svg",(0,re.Z)({className:Ue()("".concat(ht,"-line"),Gt),viewBox:Ye,preserveAspectRatio:"none",style:Pe},Ne),ze.createElement("path",{className:"".concat(ht,"-line-trail"),d:Ee,strokeLinecap:he,stroke:dt,strokeWidth:ot||le,fillOpacity:"0"}),Fe.map(function(Ie,qe){var nt=1;switch(he){case"round":nt=1-le/100;break;case"square":nt=1-le/2/100;break;default:nt=1;break}var ut={strokeDasharray:"".concat(Ie*nt,"px, 100px"),strokeDashoffset:"-".concat(we,"px"),transition:be||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ge=Ct[qe]||Ct[Ct.length-1];return we+=Ie,ze.createElement("path",{key:qe,className:"".concat(ht,"-line-path"),d:Ee,strokeLinecap:he,stroke:Ge,strokeWidth:le,fillOpacity:"0",ref:function(kt){it[qe]=kt},style:ut})}))},De=pe,xe=de(76190),mt=de(42978),Ke=de(47273),Oe=0,Ze=(0,Ke.Z)();function Le(){var $e;return Ze?($e=Oe,Oe+=1):$e="TEST_OR_SSR",$e}var vt=function($e){var Be=ze.useState(),Xe=(0,mt.Z)(Be,2),Gt=Xe[0],St=Xe[1];return ze.useEffect(function(){St("rc_progress_".concat(Le()))},[]),$e||Gt},ft=function(Be){var Xe=Be.bg,Gt=Be.children;return ze.createElement("div",{style:{width:"100%",height:"100%",background:Xe}},Gt)};function At($e,Be){return Object.keys($e).map(function(Xe){var Gt=parseFloat(Xe),St="".concat(Math.floor(Gt*Be),"%");return"".concat($e[Xe]," ").concat(St)})}var tt=ze.forwardRef(function($e,Be){var Xe=$e.prefixCls,Gt=$e.color,St=$e.gradientId,ht=$e.radius,at=$e.style,he=$e.ptg,le=$e.strokeLinecap,Pe=$e.strokeWidth,dt=$e.size,ot=$e.gapDegree,be=Gt&&(0,xe.Z)(Gt)==="object",Ne=be?"#FFF":void 0,Fe=dt/2,Ct=ze.createElement("circle",{className:"".concat(Xe,"-circle-path"),r:ht,cx:Fe,cy:Fe,stroke:Ne,strokeLinecap:le,strokeWidth:Pe,opacity:he===0?0:1,style:at,ref:Be});if(!be)return Ct;var it="".concat(St,"-conic"),Se=ot?"".concat(180+ot/2,"deg"):"0deg",ve=At(Gt,(360-ot)/360),Ee=At(Gt,1),Ye="conic-gradient(from ".concat(Se,", ").concat(ve.join(", "),")"),we="linear-gradient(to ".concat(ot?"bottom":"top",", ").concat(Ee.join(", "),")");return ze.createElement(ze.Fragment,null,ze.createElement("mask",{id:it},Ct),ze.createElement("foreignObject",{x:0,y:0,width:dt,height:dt,mask:"url(#".concat(it,")")},ze.createElement(ft,{bg:we},ze.createElement(ft,{bg:Ye}))))}),Qe=tt,st=100,et=function(Be,Xe,Gt,St,ht,at,he,le,Pe,dt){var ot=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,be=Gt/100*360*((360-at)/360),Ne=at===0?0:{bottom:0,top:180,left:90,right:-90}[he],Fe=(100-St)/100*Xe;Pe==="round"&&St!==100&&(Fe+=dt/2,Fe>=Xe&&(Fe=Xe-.01));var Ct=st/2;return{stroke:typeof le=="string"?le:void 0,strokeDasharray:"".concat(Xe,"px ").concat(Be),strokeDashoffset:Fe+ot,transform:"rotate(".concat(ht+be+Ne,"deg)"),transformOrigin:"".concat(Ct,"px ").concat(Ct,"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}},jt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function We($e){var Be=$e!=null?$e:[];return Array.isArray(Be)?Be:[Be]}var Je=function(Be){var Xe=(0,gt.Z)((0,gt.Z)({},Ae),Be),Gt=Xe.id,St=Xe.prefixCls,ht=Xe.steps,at=Xe.strokeWidth,he=Xe.trailWidth,le=Xe.gapDegree,Pe=le===void 0?0:le,dt=Xe.gapPosition,ot=Xe.trailColor,be=Xe.strokeLinecap,Ne=Xe.style,Fe=Xe.className,Ct=Xe.strokeColor,it=Xe.percent,Se=(0,_e.Z)(Xe,jt),ve=st/2,Ee=vt(Gt),Ye="".concat(Ee,"-gradient"),we=ve-at/2,Ie=Math.PI*2*we,qe=Pe>0?90+Pe/2:-90,nt=Ie*((360-Pe)/360),ut=(0,xe.Z)(ht)==="object"?ht:{count:ht,gap:2},Ge=ut.count,xt=ut.gap,kt=We(it),Qt=We(Ct),It=Qt.find(function(ye){return ye&&(0,xe.Z)(ye)==="object"}),se=It&&(0,xe.Z)(It)==="object",te=se?"butt":be,ee=et(Ie,nt,0,100,qe,Pe,dt,ot,te,at),oe=je(),ce=function(){var yt=0;return kt.map(function(bt,wt){var He=Qt[wt]||Qt[Qt.length-1],Yt=et(Ie,nt,yt,bt,qe,Pe,dt,He,te,at);return yt+=bt,ze.createElement(Qe,{key:wt,color:He,ptg:bt,radius:we,prefixCls:St,gradientId:Ye,style:Yt,strokeLinecap:te,strokeWidth:at,gapDegree:Pe,ref:function(Wt){oe[wt]=Wt},size:st})}).reverse()},ne=function(){var yt=Math.round(Ge*(kt[0]/100)),bt=100/Ge,wt=0;return new Array(Ge).fill(null).map(function(He,Yt){var _t=Yt<=yt-1?Qt[0]:ot,Wt=_t&&(0,xe.Z)(_t)==="object"?"url(#".concat(Ye,")"):void 0,ln=et(Ie,nt,wt,bt,qe,Pe,dt,_t,"butt",at,xt);return wt+=(nt-ln.strokeDashoffset+xt)*100/nt,ze.createElement("circle",{key:Yt,className:"".concat(St,"-circle-path"),r:we,cx:ve,cy:ve,stroke:Wt,strokeWidth:at,opacity:1,style:ln,ref:function(pn){oe[Yt]=pn}})})};return ze.createElement("svg",(0,re.Z)({className:Ue()("".concat(St,"-circle"),Fe),viewBox:"0 0 ".concat(st," ").concat(st),style:Ne,id:Gt,role:"presentation"},Se),!Ge&&ze.createElement("circle",{className:"".concat(St,"-circle-trail"),r:we,cx:ve,cy:ve,stroke:ot,strokeLinecap:te,strokeWidth:he||at,style:ee}),Ge?ne():ce())},Dt=Je,Ce={Line:De,Circle:Dt}},738:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return At}});var re=de(54476),gt=de(20068),_e=de(42978),ze=de(75931),me=de(92310),Ue=de.n(me),Ae=de(18929),je=de(10228),ge=de(26112),pe=de(59301);function De(tt,Qe){var st=tt.disabled,et=tt.prefixCls,jt=tt.character,We=tt.characterRender,Je=tt.index,Dt=tt.count,Ce=tt.value,$e=tt.allowHalf,Be=tt.focused,Xe=tt.onHover,Gt=tt.onClick,St=function(be){Xe(be,Je)},ht=function(be){Gt(be,Je)},at=function(be){be.keyCode===je.Z.ENTER&&Gt(be,Je)},he=Je+1,le=new Set([et]);Ce===0&&Je===0&&Be?le.add("".concat(et,"-focused")):$e&&Ce+.5>=he&&Ce<he?(le.add("".concat(et,"-half")),le.add("".concat(et,"-active")),Be&&le.add("".concat(et,"-focused"))):(he<=Ce?le.add("".concat(et,"-full")):le.add("".concat(et,"-zero")),he===Ce&&Be&&le.add("".concat(et,"-focused")));var Pe=typeof jt=="function"?jt(tt):jt,dt=pe.createElement("li",{className:Ue()(Array.from(le)),ref:Qe},pe.createElement("div",{onClick:st?null:ht,onKeyDown:st?null:at,onMouseMove:st?null:St,role:"radio","aria-checked":Ce>Je?"true":"false","aria-posinset":Je+1,"aria-setsize":Dt,tabIndex:st?-1:0},pe.createElement("div",{className:"".concat(et,"-first")},Pe),pe.createElement("div",{className:"".concat(et,"-second")},Pe)));return We&&(dt=We(dt,tt)),dt}var xe=pe.forwardRef(De);function mt(){var tt=pe.useRef({});function Qe(et){return tt.current[et]}function st(et){return function(jt){tt.current[et]=jt}}return[Qe,st]}function Ke(tt){var Qe=tt.pageXOffset,st="scrollLeft";if(typeof Qe!="number"){var et=tt.document;Qe=et.documentElement[st],typeof Qe!="number"&&(Qe=et.body[st])}return Qe}function Oe(tt){var Qe,st,et=tt.ownerDocument,jt=et.body,We=et&&et.documentElement,Je=tt.getBoundingClientRect();return Qe=Je.left,st=Je.top,Qe-=We.clientLeft||jt.clientLeft||0,st-=We.clientTop||jt.clientTop||0,{left:Qe,top:st}}function Ze(tt){var Qe=Oe(tt),st=tt.ownerDocument,et=st.defaultView||st.parentWindow;return Qe.left+=Ke(et),Qe.left}var Le=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function vt(tt,Qe){var st=tt.prefixCls,et=st===void 0?"rc-rate":st,jt=tt.className,We=tt.defaultValue,Je=tt.value,Dt=tt.count,Ce=Dt===void 0?5:Dt,$e=tt.allowHalf,Be=$e===void 0?!1:$e,Xe=tt.allowClear,Gt=Xe===void 0?!0:Xe,St=tt.keyboard,ht=St===void 0?!0:St,at=tt.character,he=at===void 0?"\u2605":at,le=tt.characterRender,Pe=tt.disabled,dt=tt.direction,ot=dt===void 0?"ltr":dt,be=tt.tabIndex,Ne=be===void 0?0:be,Fe=tt.autoFocus,Ct=tt.onHoverChange,it=tt.onChange,Se=tt.onFocus,ve=tt.onBlur,Ee=tt.onKeyDown,Ye=tt.onMouseLeave,we=(0,ze.Z)(tt,Le),Ie=mt(),qe=(0,_e.Z)(Ie,2),nt=qe[0],ut=qe[1],Ge=pe.useRef(null),xt=function(){if(!Pe){var yn;(yn=Ge.current)===null||yn===void 0||yn.focus()}};pe.useImperativeHandle(Qe,function(){return{focus:xt,blur:function(){if(!Pe){var yn;(yn=Ge.current)===null||yn===void 0||yn.blur()}}}});var kt=(0,Ae.Z)(We||0,{value:Je}),Qt=(0,_e.Z)(kt,2),It=Qt[0],se=Qt[1],te=(0,Ae.Z)(null),ee=(0,_e.Z)(te,2),oe=ee[0],ce=ee[1],ne=function(yn,Vn){var zn=ot==="rtl",Tn=yn+1;if(Be){var Qn=nt(yn),Ft=Ze(Qn),Vt=Qn.clientWidth;(zn&&Vn-Ft>Vt/2||!zn&&Vn-Ft<Vt/2)&&(Tn-=.5)}return Tn},ye=function(yn){se(yn),it==null||it(yn)},yt=pe.useState(!1),bt=(0,_e.Z)(yt,2),wt=bt[0],He=bt[1],Yt=function(){He(!0),Se==null||Se()},_t=function(){He(!1),ve==null||ve()},Wt=pe.useState(null),ln=(0,_e.Z)(Wt,2),Pn=ln[0],pn=ln[1],Mn=function(yn,Vn){var zn=ne(Vn,yn.pageX);zn!==oe&&(pn(zn),ce(null)),Ct==null||Ct(zn)},er=function(yn){Pe||(pn(null),ce(null),Ct==null||Ct(void 0)),yn&&(Ye==null||Ye(yn))},jn=function(yn,Vn){var zn=ne(Vn,yn.pageX),Tn=!1;Gt&&(Tn=zn===It),er(),ye(Tn?0:zn),ce(Tn?zn:null)},ur=function(yn){var Vn=yn.keyCode,zn=ot==="rtl",Tn=Be?.5:1;ht&&(Vn===je.Z.RIGHT&&It<Ce&&!zn?(ye(It+Tn),yn.preventDefault()):Vn===je.Z.LEFT&&It>0&&!zn||Vn===je.Z.RIGHT&&It>0&&zn?(ye(It-Tn),yn.preventDefault()):Vn===je.Z.LEFT&&It<Ce&&zn&&(ye(It+Tn),yn.preventDefault())),Ee==null||Ee(yn)};pe.useEffect(function(){Fe&&!Pe&&xt()},[]);var tr=new Array(Ce).fill(0).map(function(Gn,yn){return pe.createElement(xe,{ref:ut(yn),index:yn,count:Ce,disabled:Pe,prefixCls:"".concat(et,"-star"),allowHalf:Be,value:Pn===null?It:Pn,onClick:jn,onHover:Mn,key:Gn||yn,character:he,characterRender:le,focused:wt})}),or=Ue()(et,jt,(0,gt.Z)((0,gt.Z)({},"".concat(et,"-disabled"),Pe),"".concat(et,"-rtl"),ot==="rtl"));return pe.createElement("ul",(0,re.Z)({className:or,onMouseLeave:er,tabIndex:Pe?-1:Ne,onFocus:Pe?null:Yt,onBlur:Pe?null:_t,onKeyDown:Pe?null:ur,ref:Ge},(0,ge.Z)(we,{aria:!0,data:!0,attr:!0})),tr)}var ft=pe.forwardRef(vt),At=ft},6551:function(Rt,Zt,de){"use strict";de.d(Zt,{ZP:function(){return Ae}});var re=de(42978),gt=de(59301),_e=de(47273),ze=0,me=(0,_e.Z)();function Ue(){var je;return me?(je=ze,ze+=1):je="TEST_OR_SSR",je}function Ae(je){var ge=gt.useState(),pe=(0,re.Z)(ge,2),De=pe[0],xe=pe[1];return gt.useEffect(function(){xe("rc_select_".concat(Ue()))},[]),je||De}},37463:function(Rt,Zt,de){"use strict";de.d(Zt,{Ac:function(){return He},Xo:function(){return _t},Wx:function(){return ln},ZP:function(){return Bn},lk:function(){return At}});var re=de(54476),gt=de(94480),_e=de(20068),ze=de(33885),me=de(42978),Ue=de(75931),Ae=de(76190),je=de(18929),ge=de(48736),pe=de(59301),De=de(92310),xe=de.n(De),mt=de(34280),Ke=de(49658),Oe=de(8654),Ze=function(Re){var Ht=Re.className,Lt=Re.customizeIcon,Ve=Re.customizeIconProps,Mt=Re.children,tn=Re.onMouseDown,sn=Re.onClick,bn=typeof Lt=="function"?Lt(Ve):Lt;return pe.createElement("span",{className:Ht,onMouseDown:function(rn){rn.preventDefault(),tn==null||tn(rn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:sn,"aria-hidden":!0},bn!==void 0?bn:pe.createElement("span",{className:xe()(Ht.split(/\s+/).map(function(Xt){return"".concat(Xt,"-icon")}))},Mt))},Le=Ze,vt=function(Re,Ht,Lt,Ve,Mt){var tn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,sn=arguments.length>6?arguments[6]:void 0,bn=arguments.length>7?arguments[7]:void 0,Xt=pe.useMemo(function(){if((0,Ae.Z)(Ve)==="object")return Ve.clearIcon;if(Mt)return Mt},[Ve,Mt]),rn=pe.useMemo(function(){return!!(!tn&&Ve&&(Lt.length||sn)&&!(bn==="combobox"&&sn===""))},[Ve,tn,Lt.length,sn,bn]);return{allowClear:rn,clearIcon:pe.createElement(Le,{className:"".concat(Re,"-clear"),onMouseDown:Ht,customizeIcon:Xt},"\xD7")}},ft=pe.createContext(null);function At(){return pe.useContext(ft)}function tt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Re=pe.useState(!1),Ht=(0,me.Z)(Re,2),Lt=Ht[0],Ve=Ht[1],Mt=pe.useRef(null),tn=function(){window.clearTimeout(Mt.current)};pe.useEffect(function(){return tn},[]);var sn=function(Xt,rn){tn(),Mt.current=window.setTimeout(function(){Ve(Xt),rn&&rn()},Te)};return[Lt,sn,tn]}function Qe(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Re=pe.useRef(null),Ht=pe.useRef(null);pe.useEffect(function(){return function(){window.clearTimeout(Ht.current)}},[]);function Lt(Ve){(Ve||Re.current===null)&&(Re.current=Ve),window.clearTimeout(Ht.current),Ht.current=window.setTimeout(function(){Re.current=null},Te)}return[function(){return Re.current},Lt]}function st(Te,Re,Ht,Lt){var Ve=pe.useRef(null);Ve.current={open:Re,triggerOpen:Ht,customizedTrigger:Lt},pe.useEffect(function(){function Mt(tn){var sn;if(!((sn=Ve.current)!==null&&sn!==void 0&&sn.customizedTrigger)){var bn=tn.target;bn.shadowRoot&&tn.composed&&(bn=tn.composedPath()[0]||bn),Ve.current.open&&Te().filter(function(Xt){return Xt}).every(function(Xt){return!Xt.contains(bn)&&Xt!==bn})&&Ve.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Mt),function(){return window.removeEventListener("mousedown",Mt)}},[])}var et=de(10228);function jt(Te){return Te&&![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(Te)}var We=de(26112),Je=de(83836);function Dt(Te,Re,Ht){var Lt=(0,ze.Z)((0,ze.Z)({},Te),Ht?Re:{});return Object.keys(Re).forEach(function(Ve){var Mt=Re[Ve];typeof Mt=="function"&&(Lt[Ve]=function(){for(var tn,sn=arguments.length,bn=new Array(sn),Xt=0;Xt<sn;Xt++)bn[Xt]=arguments[Xt];return Mt.apply(void 0,bn),(tn=Te[Ve])===null||tn===void 0?void 0:tn.call.apply(tn,[Te].concat(bn))})}),Lt}var Ce=Dt,$e=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Be=function(Re,Ht){var Lt=Re.prefixCls,Ve=Re.id,Mt=Re.inputElement,tn=Re.autoFocus,sn=Re.autoComplete,bn=Re.editable,Xt=Re.activeDescendantId,rn=Re.value,Pt=Re.open,Et=Re.attrs,an=(0,Ue.Z)(Re,$e),Sn=Mt||pe.createElement("input",null),kn=Sn,Fn=kn.ref,Jn=kn.props;return(0,ge.Kp)(!("maxLength"in Sn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Sn=pe.cloneElement(Sn,(0,ze.Z)((0,ze.Z)((0,ze.Z)({type:"search"},Ce(an,Jn,!0)),{},{id:Ve,ref:(0,Oe.sQ)(Ht,Fn),autoComplete:sn||"off",autoFocus:tn,className:xe()("".concat(Lt,"-selection-search-input"),Jn==null?void 0:Jn.className),role:"combobox","aria-expanded":Pt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ve,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ve,"_list"),"aria-activedescendant":Pt?Xt:void 0},Et),{},{value:bn?rn:"",readOnly:!bn,unselectable:bn?null:"on",style:(0,ze.Z)((0,ze.Z)({},Jn.style),{},{opacity:bn?null:0})})),Sn},Xe=pe.forwardRef(Be),Gt=Xe;function St(Te){return Array.isArray(Te)?Te:Te!==void 0?[Te]:[]}var ht=typeof window!="undefined"&&window.document&&window.document.documentElement,at=ht;function he(Te){return Te!=null}function le(Te){return!Te&&Te!==0}function Pe(Te){return["string","number"].includes((0,Ae.Z)(Te))}function dt(Te){var Re=void 0;return Te&&(Pe(Te.title)?Re=Te.title.toString():Pe(Te.label)&&(Re=Te.label.toString())),Re}function ot(Te,Re){at?pe.useLayoutEffect(Te,Re):pe.useEffect(Te,Re)}function be(Te){var Re;return(Re=Te.key)!==null&&Re!==void 0?Re:Te.value}var Ne=function(Re){Re.preventDefault(),Re.stopPropagation()},Fe=function(Re){var Ht=Re.id,Lt=Re.prefixCls,Ve=Re.values,Mt=Re.open,tn=Re.searchValue,sn=Re.autoClearSearchValue,bn=Re.inputRef,Xt=Re.placeholder,rn=Re.disabled,Pt=Re.mode,Et=Re.showSearch,an=Re.autoFocus,Sn=Re.autoComplete,kn=Re.activeDescendantId,Fn=Re.tabIndex,Jn=Re.removeIcon,ar=Re.maxTagCount,wn=Re.maxTagTextLength,Jt=Re.maxTagPlaceholder,En=Jt===void 0?function(An){return"+ ".concat(An.length," ...")}:Jt,un=Re.tagRender,qn=Re.onToggleOpen,wr=Re.onRemove,sr=Re.onInputChange,Dr=Re.onInputPaste,Lr=Re.onInputKeyDown,Cr=Re.onInputMouseDown,cr=Re.onInputCompositionStart,Fr=Re.onInputCompositionEnd,yr=Re.onInputBlur,dr=pe.useRef(null),Er=(0,pe.useState)(0),Mr=(0,me.Z)(Er,2),mr=Mr[0],lr=Mr[1],nr=(0,pe.useState)(!1),Pr=(0,me.Z)(nr,2),Vr=Pr[0],Jr=Pr[1],Ar="".concat(Lt,"-selection"),Hr=Mt||Pt==="multiple"&&sn===!1||Pt==="tags"?tn:"",Nr=Pt==="tags"||Pt==="multiple"&&sn===!1||Et&&(Mt||Vr);ot(function(){lr(dr.current.scrollWidth)},[Hr]);var Zr=function(dn,_n,fr,qt,Ut){return pe.createElement("span",{title:dt(dn),className:xe()("".concat(Ar,"-item"),(0,_e.Z)({},"".concat(Ar,"-item-disabled"),fr))},pe.createElement("span",{className:"".concat(Ar,"-item-content")},_n),qt&&pe.createElement(Le,{className:"".concat(Ar,"-item-remove"),onMouseDown:Ne,onClick:Ut,customizeIcon:Jn},"\xD7"))},ii=function(dn,_n,fr,qt,Ut,cn){var mn=function(hr){Ne(hr),qn(!Mt)};return pe.createElement("span",{onMouseDown:mn},un({label:_n,value:dn,disabled:fr,closable:qt,onClose:Ut,isMaxTag:!!cn}))},_r=function(dn){var _n=dn.disabled,fr=dn.label,qt=dn.value,Ut=!rn&&!_n,cn=fr;if(typeof wn=="number"&&(typeof fr=="string"||typeof fr=="number")){var mn=String(cn);mn.length>wn&&(cn="".concat(mn.slice(0,wn),"..."))}var Hn=function(rr){rr&&rr.stopPropagation(),wr(dn)};return typeof un=="function"?ii(qt,cn,_n,Ut,Hn):Zr(dn,cn,_n,Ut,Hn)},Yn=function(dn){if(!Ve.length)return null;var _n=typeof En=="function"?En(dn):En;return typeof un=="function"?ii(void 0,_n,!1,!1,void 0,!0):Zr({title:_n},_n,!1)},Kt=pe.createElement("div",{className:"".concat(Ar,"-search"),style:{width:mr},onFocus:function(){Jr(!0)},onBlur:function(){Jr(!1)}},pe.createElement(Gt,{ref:bn,open:Mt,prefixCls:Lt,id:Ht,inputElement:null,disabled:rn,autoFocus:an,autoComplete:Sn,editable:Nr,activeDescendantId:kn,value:Hr,onKeyDown:Lr,onMouseDown:Cr,onChange:sr,onPaste:Dr,onCompositionStart:cr,onCompositionEnd:Fr,onBlur:yr,tabIndex:Fn,attrs:(0,We.Z)(Re,!0)}),pe.createElement("span",{ref:dr,className:"".concat(Ar,"-search-mirror"),"aria-hidden":!0},Hr,"\xA0")),$t=pe.createElement(Je.Z,{prefixCls:"".concat(Ar,"-overflow"),data:Ve,renderItem:_r,renderRest:Yn,suffix:Kt,itemKey:be,maxCount:ar});return pe.createElement("span",{className:"".concat(Ar,"-wrap")},$t,!Ve.length&&!Hr&&pe.createElement("span",{className:"".concat(Ar,"-placeholder")},Xt))},Ct=Fe,it=function(Re){var Ht=Re.inputElement,Lt=Re.prefixCls,Ve=Re.id,Mt=Re.inputRef,tn=Re.disabled,sn=Re.autoFocus,bn=Re.autoComplete,Xt=Re.activeDescendantId,rn=Re.mode,Pt=Re.open,Et=Re.values,an=Re.placeholder,Sn=Re.tabIndex,kn=Re.showSearch,Fn=Re.searchValue,Jn=Re.activeValue,ar=Re.maxLength,wn=Re.onInputKeyDown,Jt=Re.onInputMouseDown,En=Re.onInputChange,un=Re.onInputPaste,qn=Re.onInputCompositionStart,wr=Re.onInputCompositionEnd,sr=Re.onInputBlur,Dr=Re.title,Lr=pe.useState(!1),Cr=(0,me.Z)(Lr,2),cr=Cr[0],Fr=Cr[1],yr=rn==="combobox",dr=yr||kn,Er=Et[0],Mr=Fn||"";yr&&Jn&&!cr&&(Mr=Jn),pe.useEffect(function(){yr&&Fr(!1)},[yr,Jn]);var mr=rn!=="combobox"&&!Pt&&!kn?!1:!!Mr,lr=Dr===void 0?dt(Er):Dr,nr=pe.useMemo(function(){return Er?null:pe.createElement("span",{className:"".concat(Lt,"-selection-placeholder"),style:mr?{visibility:"hidden"}:void 0},an)},[Er,mr,an,Lt]);return pe.createElement("span",{className:"".concat(Lt,"-selection-wrap")},pe.createElement("span",{className:"".concat(Lt,"-selection-search")},pe.createElement(Gt,{ref:Mt,prefixCls:Lt,id:Ve,open:Pt,inputElement:Ht,disabled:tn,autoFocus:sn,autoComplete:bn,editable:dr,activeDescendantId:Xt,value:Mr,onKeyDown:wn,onMouseDown:Jt,onChange:function(Vr){Fr(!0),En(Vr)},onPaste:un,onCompositionStart:qn,onCompositionEnd:wr,onBlur:sr,tabIndex:Sn,attrs:(0,We.Z)(Re,!0),maxLength:yr?ar:void 0})),!yr&&Er?pe.createElement("span",{className:"".concat(Lt,"-selection-item"),title:lr,style:mr?{visibility:"hidden"}:void 0},Er.label):null,nr)},Se=it,ve=function(Re,Ht){var Lt=(0,pe.useRef)(null),Ve=(0,pe.useRef)(!1),Mt=Re.prefixCls,tn=Re.open,sn=Re.mode,bn=Re.showSearch,Xt=Re.tokenWithEnter,rn=Re.disabled,Pt=Re.prefix,Et=Re.autoClearSearchValue,an=Re.onSearch,Sn=Re.onSearchSubmit,kn=Re.onToggleOpen,Fn=Re.onInputKeyDown,Jn=Re.onInputBlur,ar=Re.domRef;pe.useImperativeHandle(Ht,function(){return{focus:function(lr){Lt.current.focus(lr)},blur:function(){Lt.current.blur()}}});var wn=Qe(0),Jt=(0,me.Z)(wn,2),En=Jt[0],un=Jt[1],qn=function(lr){var nr=lr.which,Pr=Lt.current instanceof HTMLTextAreaElement;!Pr&&tn&&(nr===et.Z.UP||nr===et.Z.DOWN)&&lr.preventDefault(),Fn&&Fn(lr),nr===et.Z.ENTER&&sn==="tags"&&!Ve.current&&!tn&&(Sn==null||Sn(lr.target.value)),!(Pr&&!tn&&~[et.Z.UP,et.Z.DOWN,et.Z.LEFT,et.Z.RIGHT].indexOf(nr))&&jt(nr)&&kn(!0)},wr=function(){un(!0)},sr=(0,pe.useRef)(null),Dr=function(lr){an(lr,!0,Ve.current)!==!1&&kn(!0)},Lr=function(){Ve.current=!0},Cr=function(lr){Ve.current=!1,sn!=="combobox"&&Dr(lr.target.value)},cr=function(lr){var nr=lr.target.value;if(Xt&&sr.current&&/[\r\n]/.test(sr.current)){var Pr=sr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");nr=nr.replace(Pr,sr.current)}sr.current=null,Dr(nr)},Fr=function(lr){var nr=lr.clipboardData,Pr=nr==null?void 0:nr.getData("text");sr.current=Pr||""},yr=function(lr){var nr=lr.target;if(nr!==Lt.current){var Pr=document.body.style.msTouchAction!==void 0;Pr?setTimeout(function(){Lt.current.focus()}):Lt.current.focus()}},dr=function(lr){var nr=En();lr.target!==Lt.current&&!nr&&!(sn==="combobox"&&rn)&&lr.preventDefault(),(sn!=="combobox"&&(!bn||!nr)||!tn)&&(tn&&Et!==!1&&an("",!0,!1),kn())},Er={inputRef:Lt,onInputKeyDown:qn,onInputMouseDown:wr,onInputChange:cr,onInputPaste:Fr,onInputCompositionStart:Lr,onInputCompositionEnd:Cr,onInputBlur:Jn},Mr=sn==="multiple"||sn==="tags"?pe.createElement(Ct,(0,re.Z)({},Re,Er)):pe.createElement(Se,(0,re.Z)({},Re,Er));return pe.createElement("div",{ref:ar,className:"".concat(Mt,"-selector"),onClick:yr,onMouseDown:dr},Pt&&pe.createElement("div",{className:"".concat(Mt,"-prefix")},Pt),Mr)},Ee=pe.forwardRef(ve),Ye=Ee,we=de(65030),Ie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],qe=function(Re){var Ht=Re===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ht,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ht,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ht,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ht,adjustY:1},htmlRegion:"scroll"}}},nt=function(Re,Ht){var Lt=Re.prefixCls,Ve=Re.disabled,Mt=Re.visible,tn=Re.children,sn=Re.popupElement,bn=Re.animation,Xt=Re.transitionName,rn=Re.dropdownStyle,Pt=Re.dropdownClassName,Et=Re.direction,an=Et===void 0?"ltr":Et,Sn=Re.placement,kn=Re.builtinPlacements,Fn=Re.dropdownMatchSelectWidth,Jn=Re.dropdownRender,ar=Re.dropdownAlign,wn=Re.getPopupContainer,Jt=Re.empty,En=Re.getTriggerDOMNode,un=Re.onPopupVisibleChange,qn=Re.onPopupMouseEnter,wr=(0,Ue.Z)(Re,Ie),sr="".concat(Lt,"-dropdown"),Dr=sn;Jn&&(Dr=Jn(sn));var Lr=pe.useMemo(function(){return kn||qe(Fn)},[kn,Fn]),Cr=bn?"".concat(sr,"-").concat(bn):Xt,cr=typeof Fn=="number",Fr=pe.useMemo(function(){return cr?null:Fn===!1?"minWidth":"width"},[Fn,cr]),yr=rn;cr&&(yr=(0,ze.Z)((0,ze.Z)({},yr),{},{width:Fn}));var dr=pe.useRef(null);return pe.useImperativeHandle(Ht,function(){return{getPopupElement:function(){var Mr;return(Mr=dr.current)===null||Mr===void 0?void 0:Mr.popupElement}}}),pe.createElement(we.Z,(0,re.Z)({},wr,{showAction:un?["click"]:[],hideAction:un?["click"]:[],popupPlacement:Sn||(an==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Lr,prefixCls:sr,popupTransitionName:Cr,popup:pe.createElement("div",{onMouseEnter:qn},Dr),ref:dr,stretch:Fr,popupAlign:ar,popupVisible:Mt,getPopupContainer:wn,popupClassName:xe()(Pt,(0,_e.Z)({},"".concat(sr,"-empty"),Jt)),popupStyle:yr,getTriggerDOMNode:En,onPopupVisibleChange:un}),tn)},ut=pe.forwardRef(nt),Ge=ut,xt=de(66712);function kt(Te,Re){var Ht=Te.key,Lt;return"value"in Te&&(Lt=Te.value),Ht!=null?Ht:Lt!==void 0?Lt:"rc-index-key-".concat(Re)}function Qt(Te){return typeof Te!="undefined"&&!Number.isNaN(Te)}function It(Te,Re){var Ht=Te||{},Lt=Ht.label,Ve=Ht.value,Mt=Ht.options,tn=Ht.groupLabel,sn=Lt||(Re?"children":"label");return{label:sn,value:Ve||"value",options:Mt||"options",groupLabel:tn||sn}}function se(Te){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=Re.fieldNames,Lt=Re.childrenAsData,Ve=[],Mt=It(Ht,!1),tn=Mt.label,sn=Mt.value,bn=Mt.options,Xt=Mt.groupLabel;function rn(Pt,Et){Array.isArray(Pt)&&Pt.forEach(function(an){if(Et||!(bn in an)){var Sn=an[sn];Ve.push({key:kt(an,Ve.length),groupOption:Et,data:an,label:an[tn],value:Sn})}else{var kn=an[Xt];kn===void 0&&Lt&&(kn=an.label),Ve.push({key:kt(an,Ve.length),group:!0,data:an,label:kn}),rn(an[bn],!0)}})}return rn(Te,!1),Ve}function te(Te){var Re=(0,ze.Z)({},Te);return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return(0,ge.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Re}}),Re}var ee=function(Re,Ht,Lt){if(!Ht||!Ht.length)return null;var Ve=!1,Mt=function sn(bn,Xt){var rn=(0,xt.Z)(Xt),Pt=rn[0],Et=rn.slice(1);if(!Pt)return[bn];var an=bn.split(Pt);return Ve=Ve||an.length>1,an.reduce(function(Sn,kn){return[].concat((0,gt.Z)(Sn),(0,gt.Z)(sn(kn,Et)))},[]).filter(Boolean)},tn=Mt(Re,Ht);return Ve?typeof Lt!="undefined"?tn.slice(0,Lt):tn:null},oe=pe.createContext(null),ce=oe;function ne(Te){var Re=Te.visible,Ht=Te.values;if(!Re)return null;var Lt=50;return pe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ht.slice(0,Lt).map(function(Ve){var Mt=Ve.label,tn=Ve.value;return["number","string"].includes((0,Ae.Z)(Mt))?Mt:tn}).join(", ")),Ht.length>Lt?", ...":null)}var ye=["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"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bt=function(Re){return Re==="tags"||Re==="multiple"},wt=pe.forwardRef(function(Te,Re){var Ht,Lt=Te.id,Ve=Te.prefixCls,Mt=Te.className,tn=Te.showSearch,sn=Te.tagRender,bn=Te.direction,Xt=Te.omitDomProps,rn=Te.displayValues,Pt=Te.onDisplayValuesChange,Et=Te.emptyOptions,an=Te.notFoundContent,Sn=an===void 0?"Not Found":an,kn=Te.onClear,Fn=Te.mode,Jn=Te.disabled,ar=Te.loading,wn=Te.getInputElement,Jt=Te.getRawInputElement,En=Te.open,un=Te.defaultOpen,qn=Te.onDropdownVisibleChange,wr=Te.activeValue,sr=Te.onActiveValueChange,Dr=Te.activeDescendantId,Lr=Te.searchValue,Cr=Te.autoClearSearchValue,cr=Te.onSearch,Fr=Te.onSearchSplit,yr=Te.tokenSeparators,dr=Te.allowClear,Er=Te.prefix,Mr=Te.suffixIcon,mr=Te.clearIcon,lr=Te.OptionList,nr=Te.animation,Pr=Te.transitionName,Vr=Te.dropdownStyle,Jr=Te.dropdownClassName,Ar=Te.dropdownMatchSelectWidth,Hr=Te.dropdownRender,Nr=Te.dropdownAlign,Zr=Te.placement,ii=Te.builtinPlacements,_r=Te.getPopupContainer,Yn=Te.showAction,Kt=Yn===void 0?[]:Yn,$t=Te.onFocus,An=Te.onBlur,dn=Te.onKeyUp,_n=Te.onKeyDown,fr=Te.onMouseDown,qt=(0,Ue.Z)(Te,ye),Ut=bt(Fn),cn=(tn!==void 0?tn:Ut)||Fn==="combobox",mn=(0,ze.Z)({},qt);yt.forEach(function(pr){delete mn[pr]}),Xt==null||Xt.forEach(function(pr){delete mn[pr]});var Hn=pe.useState(!1),hr=(0,me.Z)(Hn,2),rr=hr[0],br=hr[1];pe.useEffect(function(){br((0,Ke.Z)())},[]);var xr=pe.useRef(null),Sr=pe.useRef(null),Wr=pe.useRef(null),Br=pe.useRef(null),Or=pe.useRef(null),ei=pe.useRef(!1),Di=tt(),_i=(0,me.Z)(Di,3),xi=_i[0],vi=_i[1],Xi=_i[2];pe.useImperativeHandle(Re,function(){var pr,$n;return{focus:(pr=Br.current)===null||pr===void 0?void 0:pr.focus,blur:($n=Br.current)===null||$n===void 0?void 0:$n.blur,scrollTo:function(fi){var Yr;return(Yr=Or.current)===null||Yr===void 0?void 0:Yr.scrollTo(fi)},nativeElement:xr.current||Sr.current}});var vr=pe.useMemo(function(){var pr;if(Fn!=="combobox")return Lr;var $n=(pr=rn[0])===null||pr===void 0?void 0:pr.value;return typeof $n=="string"||typeof $n=="number"?String($n):""},[Lr,Fn,rn]),to=Fn==="combobox"&&typeof wn=="function"&&wn()||null,ti=typeof Jt=="function"&&Jt(),Ni=(0,Oe.x1)(Sr,ti==null||(Ht=ti.props)===null||Ht===void 0?void 0:Ht.ref),ao=pe.useState(!1),Ji=(0,me.Z)(ao,2),mi=Ji[0],Fi=Ji[1];(0,mt.Z)(function(){Fi(!0)},[]);var zr=(0,je.Z)(!1,{defaultValue:un,value:En}),Oi=(0,me.Z)(zr,2),so=Oi[0],Zi=Oi[1],Qr=mi?so:!1,xo=!Sn&&Et;(Jn||xo&&Qr&&Fn==="combobox")&&(Qr=!1);var lo=xo?!1:Qr,On=pe.useCallback(function(pr){var $n=pr!==void 0?pr:!Qr;Jn||(Zi($n),Qr!==$n&&(qn==null||qn($n)))},[Jn,Qr,Zi,qn]),Xn=pe.useMemo(function(){return(yr||[]).some(function(pr){return[`
`,`\r
`].includes(pr)})},[yr]),Zn=pe.useContext(ce)||{},Kn=Zn.maxCount,gr=Zn.rawValues,Rr=function($n,ci,fi){if(!(Ut&&Qt(Kn)&&(gr==null?void 0:gr.size)>=Kn)){var Yr=!0,ni=$n;sr==null||sr(null);var Vi=ee($n,yr,Qt(Kn)?Kn-gr.size:void 0),zi=fi?null:Vi;return Fn!=="combobox"&&zi&&(ni="",Fr==null||Fr(zi),On(!1),Yr=!1),cr&&vr!==ni&&cr(ni,{source:ci?"typing":"effect"}),Yr}},ji=function($n){!$n||!$n.trim()||cr($n,{source:"submit"})};pe.useEffect(function(){!Qr&&!Ut&&Fn!=="combobox"&&Rr("",!1,!1)},[Qr]),pe.useEffect(function(){so&&Jn&&Zi(!1),Jn&&!ei.current&&vi(!1)},[Jn]);var gi=Qe(),ui=(0,me.Z)(gi,2),Kr=ui[0],Hi=ui[1],Qi=pe.useRef(!1),Li=function($n){var ci=Kr(),fi=$n.key,Yr=fi==="Enter";if(Yr&&(Fn!=="combobox"&&$n.preventDefault(),Qr||On(!0)),Hi(!!vr),fi==="Backspace"&&!ci&&Ut&&!vr&&rn.length){for(var ni=(0,gt.Z)(rn),Vi=null,zi=ni.length-1;zi>=0;zi-=1){var ro=ni[zi];if(!ro.disabled){ni.splice(zi,1),Vi=ro;break}}Vi&&Pt(ni,{type:"remove",values:[Vi]})}for(var Mi=arguments.length,Bi=new Array(Mi>1?Mi-1:0),Ui=1;Ui<Mi;Ui++)Bi[Ui-1]=arguments[Ui];if(Qr&&(!Yr||!Qi.current)){var co;Yr&&(Qi.current=!0),(co=Or.current)===null||co===void 0||co.onKeyDown.apply(co,[$n].concat(Bi))}_n==null||_n.apply(void 0,[$n].concat(Bi))},qi=function($n){for(var ci=arguments.length,fi=new Array(ci>1?ci-1:0),Yr=1;Yr<ci;Yr++)fi[Yr-1]=arguments[Yr];if(Qr){var ni;(ni=Or.current)===null||ni===void 0||ni.onKeyUp.apply(ni,[$n].concat(fi))}$n.key==="Enter"&&(Qi.current=!1),dn==null||dn.apply(void 0,[$n].concat(fi))},no=function($n){var ci=rn.filter(function(fi){return fi!==$n});Pt(ci,{type:"remove",values:[$n]})},Gi=function(){Qi.current=!1},Bo=pe.useRef(!1),Ga=function(){vi(!0),Jn||($t&&!Bo.current&&$t.apply(void 0,arguments),Kt.includes("focus")&&On(!0)),Bo.current=!0},ya=function(){ei.current=!0,vi(!1,function(){Bo.current=!1,ei.current=!1,On(!1)}),!Jn&&(vr&&(Fn==="tags"?cr(vr,{source:"submit"}):Fn==="multiple"&&cr("",{source:"blur"})),An&&An.apply(void 0,arguments))},$i=[];pe.useEffect(function(){return function(){$i.forEach(function(pr){return clearTimeout(pr)}),$i.splice(0,$i.length)}},[]);var uo=function($n){var ci,fi=$n.target,Yr=(ci=Wr.current)===null||ci===void 0?void 0:ci.getPopupElement();if(Yr&&Yr.contains(fi)){var ni=setTimeout(function(){var Mi=$i.indexOf(ni);if(Mi!==-1&&$i.splice(Mi,1),Xi(),!rr&&!Yr.contains(document.activeElement)){var Bi;(Bi=Br.current)===null||Bi===void 0||Bi.focus()}});$i.push(ni)}for(var Vi=arguments.length,zi=new Array(Vi>1?Vi-1:0),ro=1;ro<Vi;ro++)zi[ro-1]=arguments[ro];fr==null||fr.apply(void 0,[$n].concat(zi))},Wi=pe.useState({}),ba=(0,me.Z)(Wi,2),xa=ba[1];function Va(){xa({})}var wa;ti&&(wa=function($n){On($n)}),st(function(){var pr;return[xr.current,(pr=Wr.current)===null||pr===void 0?void 0:pr.getPopupElement()]},lo,On,!!ti);var Ua=pe.useMemo(function(){return(0,ze.Z)((0,ze.Z)({},Te),{},{notFoundContent:Sn,open:Qr,triggerOpen:lo,id:Lt,showSearch:cn,multiple:Ut,toggleOpen:On})},[Te,Sn,lo,Qr,Lt,cn,Ut,On]),Ko=!!Mr||ar,Yo;Ko&&(Yo=pe.createElement(Le,{className:xe()("".concat(Ve,"-arrow"),(0,_e.Z)({},"".concat(Ve,"-arrow-loading"),ar)),customizeIcon:Mr,customizeIconProps:{loading:ar,searchValue:vr,open:Qr,focused:xi,showSearch:cn}}));var wo=function(){var $n;kn==null||kn(),($n=Br.current)===null||$n===void 0||$n.focus(),Pt([],{type:"clear",values:rn}),Rr("",!1,!1)},Xo=vt(Ve,wo,rn,dr,mr,Jn,vr,Fn),Ca=Xo.allowClear,Jo=Xo.clearIcon,To=pe.createElement(lr,{ref:Or}),Sa=xe()(Ve,Mt,(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(Ve,"-focused"),xi),"".concat(Ve,"-multiple"),Ut),"".concat(Ve,"-single"),!Ut),"".concat(Ve,"-allow-clear"),dr),"".concat(Ve,"-show-arrow"),Ko),"".concat(Ve,"-disabled"),Jn),"".concat(Ve,"-loading"),ar),"".concat(Ve,"-open"),Qr),"".concat(Ve,"-customize-input"),to),"".concat(Ve,"-show-search"),cn)),Po=pe.createElement(Ge,{ref:Wr,disabled:Jn,prefixCls:Ve,visible:lo,popupElement:To,animation:nr,transitionName:Pr,dropdownStyle:Vr,dropdownClassName:Jr,direction:bn,dropdownMatchSelectWidth:Ar,dropdownRender:Hr,dropdownAlign:Nr,placement:Zr,builtinPlacements:ii,getPopupContainer:_r,empty:Et,getTriggerDOMNode:function($n){return Sr.current||$n},onPopupVisibleChange:wa,onPopupMouseEnter:Va},ti?pe.cloneElement(ti,{ref:Ni}):pe.createElement(Ye,(0,re.Z)({},Te,{domRef:Sr,prefixCls:Ve,inputElement:to,ref:Br,id:Lt,prefix:Er,showSearch:cn,autoClearSearchValue:Cr,mode:Fn,activeDescendantId:Dr,tagRender:sn,values:rn,open:Qr,onToggleOpen:On,activeValue:wr,searchValue:vr,onSearch:Rr,onSearchSubmit:ji,onRemove:no,tokenWithEnter:Xn,onInputBlur:Gi}))),wi;return ti?wi=Po:wi=pe.createElement("div",(0,re.Z)({className:Sa},mn,{ref:xr,onMouseDown:uo,onKeyDown:Li,onKeyUp:qi,onFocus:Ga,onBlur:ya}),pe.createElement(ne,{visible:xi&&!Qr,values:rn}),Po,Yo,Ca&&Jo),pe.createElement(ft.Provider,{value:Ua},wi)}),He=wt,Yt=function(){return null};Yt.isSelectOptGroup=!0;var _t=Yt,Wt=function(){return null};Wt.isSelectOption=!0;var ln=Wt,Pn=de(80547),pn=de(2738),Mn=de(48911);function er(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var jn=["disabled","title","children","style","className"];function ur(Te){return typeof Te=="string"||typeof Te=="number"}var tr=function(Re,Ht){var Lt=At(),Ve=Lt.prefixCls,Mt=Lt.id,tn=Lt.open,sn=Lt.multiple,bn=Lt.mode,Xt=Lt.searchValue,rn=Lt.toggleOpen,Pt=Lt.notFoundContent,Et=Lt.onPopupScroll,an=pe.useContext(ce),Sn=an.maxCount,kn=an.flattenOptions,Fn=an.onActiveValue,Jn=an.defaultActiveFirstOption,ar=an.onSelect,wn=an.menuItemSelectedIcon,Jt=an.rawValues,En=an.fieldNames,un=an.virtual,qn=an.direction,wr=an.listHeight,sr=an.listItemHeight,Dr=an.optionRender,Lr="".concat(Ve,"-item"),Cr=(0,Pn.Z)(function(){return kn},[tn,kn],function(Yn,Kt){return Kt[0]&&Yn[1]!==Kt[1]}),cr=pe.useRef(null),Fr=pe.useMemo(function(){return sn&&Qt(Sn)&&(Jt==null?void 0:Jt.size)>=Sn},[sn,Sn,Jt==null?void 0:Jt.size]),yr=function(Kt){Kt.preventDefault()},dr=function(Kt){var $t;($t=cr.current)===null||$t===void 0||$t.scrollTo(typeof Kt=="number"?{index:Kt}:Kt)},Er=pe.useCallback(function(Yn){return bn==="combobox"?!1:Jt.has(Yn)},[bn,(0,gt.Z)(Jt).toString(),Jt.size]),Mr=function(Kt){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,An=Cr.length,dn=0;dn<An;dn+=1){var _n=(Kt+dn*$t+An)%An,fr=Cr[_n]||{},qt=fr.group,Ut=fr.data;if(!qt&&!(Ut!=null&&Ut.disabled)&&(Er(Ut.value)||!Fr))return _n}return-1},mr=pe.useState(function(){return Mr(0)}),lr=(0,me.Z)(mr,2),nr=lr[0],Pr=lr[1],Vr=function(Kt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Pr(Kt);var An={source:$t?"keyboard":"mouse"},dn=Cr[Kt];if(!dn){Fn(null,-1,An);return}Fn(dn.value,Kt,An)};(0,pe.useEffect)(function(){Vr(Jn!==!1?Mr(0):-1)},[Cr.length,Xt]);var Jr=pe.useCallback(function(Yn){return bn==="combobox"?String(Yn).toLowerCase()===Xt.toLowerCase():Jt.has(Yn)},[bn,Xt,(0,gt.Z)(Jt).toString(),Jt.size]);(0,pe.useEffect)(function(){var Yn=setTimeout(function(){if(!sn&&tn&&Jt.size===1){var $t=Array.from(Jt)[0],An=Cr.findIndex(function(dn){var _n=dn.data;return Xt?String(_n.value).startsWith(Xt):_n.value===$t});An!==-1&&(Vr(An),dr(An))}});if(tn){var Kt;(Kt=cr.current)===null||Kt===void 0||Kt.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[tn,Xt]);var Ar=function(Kt){Kt!==void 0&&ar(Kt,{selected:!Jt.has(Kt)}),sn||rn(!1)};if(pe.useImperativeHandle(Ht,function(){return{onKeyDown:function(Kt){var $t=Kt.which,An=Kt.ctrlKey;switch($t){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var dn=0;if($t===et.Z.UP?dn=-1:$t===et.Z.DOWN?dn=1:er()&&An&&($t===et.Z.N?dn=1:$t===et.Z.P&&(dn=-1)),dn!==0){var _n=Mr(nr+dn,dn);dr(_n),Vr(_n,!0)}break}case et.Z.TAB:case et.Z.ENTER:{var fr,qt=Cr[nr];qt&&!(qt!=null&&(fr=qt.data)!==null&&fr!==void 0&&fr.disabled)&&!Fr?Ar(qt.value):Ar(void 0),tn&&Kt.preventDefault();break}case et.Z.ESC:rn(!1),tn&&Kt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Kt){dr(Kt)}}}),Cr.length===0)return pe.createElement("div",{role:"listbox",id:"".concat(Mt,"_list"),className:"".concat(Lr,"-empty"),onMouseDown:yr},Pt);var Hr=Object.keys(En).map(function(Yn){return En[Yn]}),Nr=function(Kt){return Kt.label};function Zr(Yn,Kt){var $t=Yn.group;return{role:$t?"presentation":"option",id:"".concat(Mt,"_list_").concat(Kt)}}var ii=function(Kt){var $t=Cr[Kt];if(!$t)return null;var An=$t.data||{},dn=An.value,_n=$t.group,fr=(0,We.Z)(An,!0),qt=Nr($t);return $t?pe.createElement("div",(0,re.Z)({"aria-label":typeof qt=="string"&&!_n?qt:null},fr,{key:Kt},Zr($t,Kt),{"aria-selected":Jr(dn)}),dn):null},_r={role:"listbox",id:"".concat(Mt,"_list")};return pe.createElement(pe.Fragment,null,un&&pe.createElement("div",(0,re.Z)({},_r,{style:{height:0,width:0,overflow:"hidden"}}),ii(nr-1),ii(nr),ii(nr+1)),pe.createElement(Mn.Z,{itemKey:"key",ref:cr,data:Cr,height:wr,itemHeight:sr,fullHeight:!1,onMouseDown:yr,onScroll:Et,virtual:un,direction:qn,innerProps:un?null:_r},function(Yn,Kt){var $t=Yn.group,An=Yn.groupOption,dn=Yn.data,_n=Yn.label,fr=Yn.value,qt=dn.key;if($t){var Ut,cn=(Ut=dn.title)!==null&&Ut!==void 0?Ut:ur(_n)?_n.toString():void 0;return pe.createElement("div",{className:xe()(Lr,"".concat(Lr,"-group"),dn.className),title:cn},_n!==void 0?_n:qt)}var mn=dn.disabled,Hn=dn.title,hr=dn.children,rr=dn.style,br=dn.className,xr=(0,Ue.Z)(dn,jn),Sr=(0,pn.Z)(xr,Hr),Wr=Er(fr),Br=mn||!Wr&&Fr,Or="".concat(Lr,"-option"),ei=xe()(Lr,Or,br,(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(Or,"-grouped"),An),"".concat(Or,"-active"),nr===Kt&&!Br),"".concat(Or,"-disabled"),Br),"".concat(Or,"-selected"),Wr)),Di=Nr(Yn),_i=!wn||typeof wn=="function"||Wr,xi=typeof Di=="number"?Di:Di||fr,vi=ur(xi)?xi.toString():void 0;return Hn!==void 0&&(vi=Hn),pe.createElement("div",(0,re.Z)({},(0,We.Z)(Sr),un?{}:Zr(Yn,Kt),{"aria-selected":Jr(fr),className:ei,title:vi,onMouseMove:function(){nr===Kt||Br||Vr(Kt)},onClick:function(){Br||Ar(fr)},style:rr}),pe.createElement("div",{className:"".concat(Or,"-content")},typeof Dr=="function"?Dr(Yn,{index:Kt}):xi),pe.isValidElement(wn)||Wr,_i&&pe.createElement(Le,{className:"".concat(Lr,"-option-state"),customizeIcon:wn,customizeIconProps:{value:fr,disabled:Br,isSelected:Wr}},Wr?"\u2713":null))}))},or=pe.forwardRef(tr),Gn=or,yn=function(Te,Re){var Ht=pe.useRef({values:new Map,options:new Map}),Lt=pe.useMemo(function(){var Mt=Ht.current,tn=Mt.values,sn=Mt.options,bn=Te.map(function(Pt){if(Pt.label===void 0){var Et;return(0,ze.Z)((0,ze.Z)({},Pt),{},{label:(Et=tn.get(Pt.value))===null||Et===void 0?void 0:Et.label})}return Pt}),Xt=new Map,rn=new Map;return bn.forEach(function(Pt){Xt.set(Pt.value,Pt),rn.set(Pt.value,Re.get(Pt.value)||sn.get(Pt.value))}),Ht.current.values=Xt,Ht.current.options=rn,bn},[Te,Re]),Ve=pe.useCallback(function(Mt){return Re.get(Mt)||Ht.current.options.get(Mt)},[Re]);return[Lt,Ve]};function Vn(Te,Re){return St(Te).join("").toUpperCase().includes(Re)}var zn=function(Te,Re,Ht,Lt,Ve){return pe.useMemo(function(){if(!Ht||Lt===!1)return Te;var Mt=Re.options,tn=Re.label,sn=Re.value,bn=[],Xt=typeof Lt=="function",rn=Ht.toUpperCase(),Pt=Xt?Lt:function(an,Sn){return Ve?Vn(Sn[Ve],rn):Sn[Mt]?Vn(Sn[tn!=="children"?tn:"label"],rn):Vn(Sn[sn],rn)},Et=Xt?function(an){return te(an)}:function(an){return an};return Te.forEach(function(an){if(an[Mt]){var Sn=Pt(Ht,Et(an));if(Sn)bn.push(an);else{var kn=an[Mt].filter(function(Fn){return Pt(Ht,Et(Fn))});kn.length&&bn.push((0,ze.Z)((0,ze.Z)({},an),{},(0,_e.Z)({},Mt,kn)))}return}Pt(Ht,Et(an))&&bn.push(an)}),bn},[Te,Lt,Ve,Ht,Re])},Tn=de(6551),Qn=de(11592),Ft=["children","value"],Vt=["children"];function pt(Te){var Re=Te,Ht=Re.key,Lt=Re.props,Ve=Lt.children,Mt=Lt.value,tn=(0,Ue.Z)(Lt,Ft);return(0,ze.Z)({key:Ht,value:Mt!==void 0?Mt:Ht,children:Ve},tn)}function Bt(Te){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qn.Z)(Te).map(function(Ht,Lt){if(!pe.isValidElement(Ht)||!Ht.type)return null;var Ve=Ht,Mt=Ve.type.isSelectOptGroup,tn=Ve.key,sn=Ve.props,bn=sn.children,Xt=(0,Ue.Z)(sn,Vt);return Re||!Mt?pt(Ht):(0,ze.Z)((0,ze.Z)({key:"__RC_SELECT_GRP__".concat(tn===null?Lt:tn,"__"),label:tn},Xt),{},{options:Bt(bn)})}).filter(function(Ht){return Ht})}var en=function(Re,Ht,Lt,Ve,Mt){return pe.useMemo(function(){var tn=Re,sn=!Re;sn&&(tn=Bt(Ht));var bn=new Map,Xt=new Map,rn=function(an,Sn,kn){kn&&typeof kn=="string"&&an.set(Sn[kn],Sn)},Pt=function Et(an){for(var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kn=0;kn<an.length;kn+=1){var Fn=an[kn];!Fn[Lt.options]||Sn?(bn.set(Fn[Lt.value],Fn),rn(Xt,Fn,Lt.label),rn(Xt,Fn,Ve),rn(Xt,Fn,Mt)):Et(Fn[Lt.options],!0)}};return Pt(tn),{options:tn,valueOptions:bn,labelOptions:Xt}},[Re,Ht,Lt,Ve,Mt])},vn=en;function on(Te){var Re=pe.useRef();Re.current=Te;var Ht=pe.useCallback(function(){return Re.current.apply(Re,arguments)},[]);return Ht}function Ln(Te){var Re=Te.mode,Ht=Te.options,Lt=Te.children,Ve=Te.backfill,Mt=Te.allowClear,tn=Te.placeholder,sn=Te.getInputElement,bn=Te.showSearch,Xt=Te.onSearch,rn=Te.defaultOpen,Pt=Te.autoFocus,Et=Te.labelInValue,an=Te.value,Sn=Te.inputValue,kn=Te.optionLabelProp,Fn=isMultiple(Re),Jn=bn!==void 0?bn:Fn||Re==="combobox",ar=Ht||convertChildrenToData(Lt);if(warning(Re!=="tags"||ar.every(function(un){return!un.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Re==="tags"||Re==="combobox"){var wn=ar.some(function(un){return un.options?un.options.some(function(qn){return typeof("value"in qn?qn.value:qn.key)=="number"}):typeof("value"in un?un.value:un.key)=="number"});warning(!wn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Re!=="combobox"||!kn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Re==="combobox"||!Ve,"`backfill` only works with `combobox` mode."),warning(Re==="combobox"||!sn,"`getInputElement` only work with `combobox` mode."),noteOnce(Re!=="combobox"||!sn||!Mt||!tn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xt&&!Jn&&Re!=="combobox"&&Re!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rn||Pt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),an!=null){var Jt=toArray(an);warning(!Et||Jt.every(function(un){return _typeof(un)==="object"&&("key"in un||"value"in un)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Fn||Array.isArray(an),"`value` should be array when `mode` is `multiple` or `tags`")}if(Lt){var En=null;toNodeArray(Lt).some(function(un){if(!React.isValidElement(un)||!un.type)return!1;var qn=un,wr=qn.type;if(wr.isSelectOption)return!1;if(wr.isSelectOptGroup){var sr=toNodeArray(un.props.children).every(function(Dr){return!React.isValidElement(Dr)||!un.type||Dr.type.isSelectOption?!0:(En=Dr.type,!1)});return!sr}return En=wr,!0}),En&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(En.displayName||En.name||En,"`.")),warning(Sn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Rn(Te,Re){if(Te){var Ht=function Lt(Ve){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tn=0;tn<Ve.length;tn++){var sn=Ve[tn];if(sn[Re==null?void 0:Re.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Mt&&Array.isArray(sn[Re==null?void 0:Re.options])&&Lt(sn[Re==null?void 0:Re.options],!0))break}};Ht(Te)}}var Nn=null,Cn=["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"],Un=["inputValue"];function Ot(Te){return!Te||(0,Ae.Z)(Te)!=="object"}var ct=pe.forwardRef(function(Te,Re){var Ht=Te.id,Lt=Te.mode,Ve=Te.prefixCls,Mt=Ve===void 0?"rc-select":Ve,tn=Te.backfill,sn=Te.fieldNames,bn=Te.inputValue,Xt=Te.searchValue,rn=Te.onSearch,Pt=Te.autoClearSearchValue,Et=Pt===void 0?!0:Pt,an=Te.onSelect,Sn=Te.onDeselect,kn=Te.dropdownMatchSelectWidth,Fn=kn===void 0?!0:kn,Jn=Te.filterOption,ar=Te.filterSort,wn=Te.optionFilterProp,Jt=Te.optionLabelProp,En=Te.options,un=Te.optionRender,qn=Te.children,wr=Te.defaultActiveFirstOption,sr=Te.menuItemSelectedIcon,Dr=Te.virtual,Lr=Te.direction,Cr=Te.listHeight,cr=Cr===void 0?200:Cr,Fr=Te.listItemHeight,yr=Fr===void 0?20:Fr,dr=Te.labelRender,Er=Te.value,Mr=Te.defaultValue,mr=Te.labelInValue,lr=Te.onChange,nr=Te.maxCount,Pr=(0,Ue.Z)(Te,Cn),Vr=(0,Tn.ZP)(Ht),Jr=bt(Lt),Ar=!!(!En&&qn),Hr=pe.useMemo(function(){return Jn===void 0&&Lt==="combobox"?!1:Jn},[Jn,Lt]),Nr=pe.useMemo(function(){return It(sn,Ar)},[JSON.stringify(sn),Ar]),Zr=(0,je.Z)("",{value:Xt!==void 0?Xt:bn,postState:function(Xn){return Xn||""}}),ii=(0,me.Z)(Zr,2),_r=ii[0],Yn=ii[1],Kt=vn(En,qn,Nr,wn,Jt),$t=Kt.valueOptions,An=Kt.labelOptions,dn=Kt.options,_n=pe.useCallback(function(On){var Xn=St(On);return Xn.map(function(Zn){var Kn,gr,Rr,ji,gi;if(Ot(Zn))Kn=Zn;else{var ui;Rr=Zn.key,gr=Zn.label,Kn=(ui=Zn.value)!==null&&ui!==void 0?ui:Rr}var Kr=$t.get(Kn);if(Kr){var Hi;if(gr===void 0&&(gr=Kr==null?void 0:Kr[Jt||Nr.label]),Rr===void 0&&(Rr=(Hi=Kr==null?void 0:Kr.key)!==null&&Hi!==void 0?Hi:Kn),ji=Kr==null?void 0:Kr.disabled,gi=Kr==null?void 0:Kr.title,0)var Qi}return{label:gr,value:Kn,key:Rr,disabled:ji,title:gi}})},[Nr,Jt,$t]),fr=(0,je.Z)(Mr,{value:Er}),qt=(0,me.Z)(fr,2),Ut=qt[0],cn=qt[1],mn=pe.useMemo(function(){var On,Xn=Jr&&Ut===null?[]:Ut,Zn=_n(Xn);return Lt==="combobox"&&le((On=Zn[0])===null||On===void 0?void 0:On.value)?[]:Zn},[Ut,_n,Lt,Jr]),Hn=yn(mn,$t),hr=(0,me.Z)(Hn,2),rr=hr[0],br=hr[1],xr=pe.useMemo(function(){if(!Lt&&rr.length===1){var On=rr[0];if(On.value===null&&(On.label===null||On.label===void 0))return[]}return rr.map(function(Xn){var Zn;return(0,ze.Z)((0,ze.Z)({},Xn),{},{label:(Zn=typeof dr=="function"?dr(Xn):Xn.label)!==null&&Zn!==void 0?Zn:Xn.value})})},[Lt,rr,dr]),Sr=pe.useMemo(function(){return new Set(rr.map(function(On){return On.value}))},[rr]);pe.useEffect(function(){if(Lt==="combobox"){var On,Xn=(On=rr[0])===null||On===void 0?void 0:On.value;Yn(he(Xn)?String(Xn):"")}},[rr]);var Wr=on(function(On,Xn){var Zn=Xn!=null?Xn:On;return(0,_e.Z)((0,_e.Z)({},Nr.value,On),Nr.label,Zn)}),Br=pe.useMemo(function(){if(Lt!=="tags")return dn;var On=(0,gt.Z)(dn),Xn=function(Kn){return $t.has(Kn)};return(0,gt.Z)(rr).sort(function(Zn,Kn){return Zn.value<Kn.value?-1:1}).forEach(function(Zn){var Kn=Zn.value;Xn(Kn)||On.push(Wr(Kn,Zn.label))}),On},[Wr,dn,$t,rr,Lt]),Or=zn(Br,Nr,_r,Hr,wn),ei=pe.useMemo(function(){return Lt!=="tags"||!_r||Or.some(function(On){return On[wn||"value"]===_r})||Or.some(function(On){return On[Nr.value]===_r})?Or:[Wr(_r)].concat((0,gt.Z)(Or))},[Wr,wn,Lt,Or,_r,Nr]),Di=function On(Xn){var Zn=(0,gt.Z)(Xn).sort(function(Kn,gr){return ar(Kn,gr,{searchValue:_r})});return Zn.map(function(Kn){return Array.isArray(Kn.options)?(0,ze.Z)((0,ze.Z)({},Kn),{},{options:Kn.options.length>0?On(Kn.options):Kn.options}):Kn})},_i=pe.useMemo(function(){return ar?Di(ei):ei},[ei,ar,_r]),xi=pe.useMemo(function(){return se(_i,{fieldNames:Nr,childrenAsData:Ar})},[_i,Nr,Ar]),vi=function(Xn){var Zn=_n(Xn);if(cn(Zn),lr&&(Zn.length!==rr.length||Zn.some(function(Rr,ji){var gi;return((gi=rr[ji])===null||gi===void 0?void 0:gi.value)!==(Rr==null?void 0:Rr.value)}))){var Kn=mr?Zn:Zn.map(function(Rr){return Rr.value}),gr=Zn.map(function(Rr){return te(br(Rr.value))});lr(Jr?Kn:Kn[0],Jr?gr:gr[0])}},Xi=pe.useState(null),vr=(0,me.Z)(Xi,2),to=vr[0],ti=vr[1],Ni=pe.useState(0),ao=(0,me.Z)(Ni,2),Ji=ao[0],mi=ao[1],Fi=wr!==void 0?wr:Lt!=="combobox",zr=pe.useCallback(function(On,Xn){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Kn=Zn.source,gr=Kn===void 0?"keyboard":Kn;mi(Xn),tn&&Lt==="combobox"&&On!==null&&gr==="keyboard"&&ti(String(On))},[tn,Lt]),Oi=function(Xn,Zn,Kn){var gr=function(){var no,Gi=br(Xn);return[mr?{label:Gi==null?void 0:Gi[Nr.label],value:Xn,key:(no=Gi==null?void 0:Gi.key)!==null&&no!==void 0?no:Xn}:Xn,te(Gi)]};if(Zn&&an){var Rr=gr(),ji=(0,me.Z)(Rr,2),gi=ji[0],ui=ji[1];an(gi,ui)}else if(!Zn&&Sn&&Kn!=="clear"){var Kr=gr(),Hi=(0,me.Z)(Kr,2),Qi=Hi[0],Li=Hi[1];Sn(Qi,Li)}},so=on(function(On,Xn){var Zn,Kn=Jr?Xn.selected:!0;Kn?Zn=Jr?[].concat((0,gt.Z)(rr),[On]):[On]:Zn=rr.filter(function(gr){return gr.value!==On}),vi(Zn),Oi(On,Kn),Lt==="combobox"?ti(""):(!bt||Et)&&(Yn(""),ti(""))}),Zi=function(Xn,Zn){vi(Xn);var Kn=Zn.type,gr=Zn.values;(Kn==="remove"||Kn==="clear")&&gr.forEach(function(Rr){Oi(Rr.value,!1,Kn)})},Qr=function(Xn,Zn){if(Yn(Xn),ti(null),Zn.source==="submit"){var Kn=(Xn||"").trim();if(Kn){var gr=Array.from(new Set([].concat((0,gt.Z)(Sr),[Kn])));vi(gr),Oi(Kn,!0),Yn("")}return}Zn.source!=="blur"&&(Lt==="combobox"&&vi(Xn),rn==null||rn(Xn))},xo=function(Xn){var Zn=Xn;Lt!=="tags"&&(Zn=Xn.map(function(gr){var Rr=An.get(gr);return Rr==null?void 0:Rr.value}).filter(function(gr){return gr!==void 0}));var Kn=Array.from(new Set([].concat((0,gt.Z)(Sr),(0,gt.Z)(Zn))));vi(Kn),Kn.forEach(function(gr){Oi(gr,!0)})},lo=pe.useMemo(function(){var On=Dr!==!1&&Fn!==!1;return(0,ze.Z)((0,ze.Z)({},Kt),{},{flattenOptions:xi,onActiveValue:zr,defaultActiveFirstOption:Fi,onSelect:so,menuItemSelectedIcon:sr,rawValues:Sr,fieldNames:Nr,virtual:On,direction:Lr,listHeight:cr,listItemHeight:yr,childrenAsData:Ar,maxCount:nr,optionRender:un})},[nr,Kt,xi,zr,Fi,so,sr,Sr,Nr,Dr,Fn,Lr,cr,yr,Ar,un]);return pe.createElement(ce.Provider,{value:lo},pe.createElement(He,(0,re.Z)({},Pr,{id:Vr,prefixCls:Mt,ref:Re,omitDomProps:Un,mode:Lt,displayValues:xr,onDisplayValuesChange:Zi,direction:Lr,searchValue:_r,onSearch:Qr,autoClearSearchValue:Et,onSearchSplit:xo,dropdownMatchSelectWidth:Fn,OptionList:Gn,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Vr,"_list_").concat(Ji)})))}),Nt=ct;Nt.Option=ln,Nt.OptGroup=_t;var gn=Nt,Bn=gn},63158:function(Rt,Zt,de){"use strict";var re=de(54476),gt=de(20068),_e=de(42978),ze=de(75931),me=de(59301),Ue=de(92310),Ae=de.n(Ue),je=de(18929),ge=de(10228),pe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],De=me.forwardRef(function(xe,mt){var Ke,Oe=xe.prefixCls,Ze=Oe===void 0?"rc-switch":Oe,Le=xe.className,vt=xe.checked,ft=xe.defaultChecked,At=xe.disabled,tt=xe.loadingIcon,Qe=xe.checkedChildren,st=xe.unCheckedChildren,et=xe.onClick,jt=xe.onChange,We=xe.onKeyDown,Je=(0,ze.Z)(xe,pe),Dt=(0,je.Z)(!1,{value:vt,defaultValue:ft}),Ce=(0,_e.Z)(Dt,2),$e=Ce[0],Be=Ce[1];function Xe(at,he){var le=$e;return At||(le=at,Be(le),jt==null||jt(le,he)),le}function Gt(at){at.which===ge.Z.LEFT?Xe(!1,at):at.which===ge.Z.RIGHT&&Xe(!0,at),We==null||We(at)}function St(at){var he=Xe(!$e,at);et==null||et(he,at)}var ht=Ae()(Ze,Le,(Ke={},(0,gt.Z)(Ke,"".concat(Ze,"-checked"),$e),(0,gt.Z)(Ke,"".concat(Ze,"-disabled"),At),Ke));return me.createElement("button",(0,re.Z)({},Je,{type:"button",role:"switch","aria-checked":$e,disabled:At,className:ht,ref:mt,onKeyDown:Gt,onClick:St}),tt,me.createElement("span",{className:"".concat(Ze,"-inner")},me.createElement("span",{className:"".concat(Ze,"-inner-checked")},Qe),me.createElement("span",{className:"".concat(Ze,"-inner-unchecked")},st)))});De.displayName="Switch",Zt.Z=De},22711:function(Rt,Zt,de){"use strict";de.r(Zt),de.d(Zt,{ResizableTextArea:function(){return Ce},default:function(){return Gt}});var re=de(54476),gt=de(20068),_e=de(33885),ze=de(94480),me=de(42978),Ue=de(75931),Ae=de(92310),je=de.n(Ae),ge=de(36901),pe=de(66003),De=de(30292),xe=de(18929),mt=de(59301),Ke=de(76190),Oe=de(29301),Ze=de(34280),Le=de(16089),vt=`
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;
`,ft=["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={},tt;function Qe(St){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=St.getAttribute("id")||St.getAttribute("data-reactid")||St.getAttribute("name");if(ht&&At[at])return At[at];var he=window.getComputedStyle(St),le=he.getPropertyValue("box-sizing")||he.getPropertyValue("-moz-box-sizing")||he.getPropertyValue("-webkit-box-sizing"),Pe=parseFloat(he.getPropertyValue("padding-bottom"))+parseFloat(he.getPropertyValue("padding-top")),dt=parseFloat(he.getPropertyValue("border-bottom-width"))+parseFloat(he.getPropertyValue("border-top-width")),ot=ft.map(function(Ne){return"".concat(Ne,":").concat(he.getPropertyValue(Ne))}).join(";"),be={sizingStyle:ot,paddingSize:Pe,borderSize:dt,boxSizing:le};return ht&&at&&(At[at]=be),be}function st(St){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;tt||(tt=document.createElement("textarea"),tt.setAttribute("tab-index","-1"),tt.setAttribute("aria-hidden","true"),tt.setAttribute("name","hiddenTextarea"),document.body.appendChild(tt)),St.getAttribute("wrap")?tt.setAttribute("wrap",St.getAttribute("wrap")):tt.removeAttribute("wrap");var le=Qe(St,ht),Pe=le.paddingSize,dt=le.borderSize,ot=le.boxSizing,be=le.sizingStyle;tt.setAttribute("style","".concat(be,";").concat(vt)),tt.value=St.value||St.placeholder||"";var Ne=void 0,Fe=void 0,Ct,it=tt.scrollHeight;if(ot==="border-box"?it+=dt:ot==="content-box"&&(it-=Pe),at!==null||he!==null){tt.value=" ";var Se=tt.scrollHeight-Pe;at!==null&&(Ne=Se*at,ot==="border-box"&&(Ne=Ne+Pe+dt),it=Math.max(Ne,it)),he!==null&&(Fe=Se*he,ot==="border-box"&&(Fe=Fe+Pe+dt),Ct=it>Fe?"":"hidden",it=Math.min(Fe,it))}var ve={height:it,overflowY:Ct,resize:"none"};return Ne&&(ve.minHeight=Ne),Fe&&(ve.maxHeight=Fe),ve}var et=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],jt=0,We=1,Je=2,Dt=mt.forwardRef(function(St,ht){var at=St,he=at.prefixCls,le=at.defaultValue,Pe=at.value,dt=at.autoSize,ot=at.onResize,be=at.className,Ne=at.style,Fe=at.disabled,Ct=at.onChange,it=at.onInternalAutoSize,Se=(0,Ue.Z)(at,et),ve=(0,xe.Z)(le,{value:Pe,postState:function(ln){return ln!=null?ln:""}}),Ee=(0,me.Z)(ve,2),Ye=Ee[0],we=Ee[1],Ie=function(ln){we(ln.target.value),Ct==null||Ct(ln)},qe=mt.useRef();mt.useImperativeHandle(ht,function(){return{textArea:qe.current}});var nt=mt.useMemo(function(){return dt&&(0,Ke.Z)(dt)==="object"?[dt.minRows,dt.maxRows]:[]},[dt]),ut=(0,me.Z)(nt,2),Ge=ut[0],xt=ut[1],kt=!!dt,Qt=function(){try{if(document.activeElement===qe.current){var ln=qe.current,Pn=ln.selectionStart,pn=ln.selectionEnd,Mn=ln.scrollTop;qe.current.setSelectionRange(Pn,pn),qe.current.scrollTop=Mn}}catch(er){}},It=mt.useState(Je),se=(0,me.Z)(It,2),te=se[0],ee=se[1],oe=mt.useState(),ce=(0,me.Z)(oe,2),ne=ce[0],ye=ce[1],yt=function(){ee(jt)};(0,Ze.Z)(function(){kt&&yt()},[Pe,Ge,xt,kt]),(0,Ze.Z)(function(){if(te===jt)ee(We);else if(te===We){var Wt=st(qe.current,!1,Ge,xt);ee(Je),ye(Wt)}else Qt()},[te]);var bt=mt.useRef(),wt=function(){Le.Z.cancel(bt.current)},He=function(ln){te===Je&&(ot==null||ot(ln),dt&&(wt(),bt.current=(0,Le.Z)(function(){yt()})))};mt.useEffect(function(){return wt},[]);var Yt=kt?ne:null,_t=(0,_e.Z)((0,_e.Z)({},Ne),Yt);return(te===jt||te===We)&&(_t.overflowY="hidden",_t.overflowX="hidden"),mt.createElement(Oe.Z,{onResize:He,disabled:!(dt||ot)},mt.createElement("textarea",(0,re.Z)({},Se,{ref:qe,style:_t,className:je()(he,be,(0,gt.Z)({},"".concat(he,"-disabled"),Fe)),disabled:Fe,value:Ye,onChange:Ie})))}),Ce=Dt,$e=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Be=mt.forwardRef(function(St,ht){var at,he=St.defaultValue,le=St.value,Pe=St.onFocus,dt=St.onBlur,ot=St.onChange,be=St.allowClear,Ne=St.maxLength,Fe=St.onCompositionStart,Ct=St.onCompositionEnd,it=St.suffix,Se=St.prefixCls,ve=Se===void 0?"rc-textarea":Se,Ee=St.showCount,Ye=St.count,we=St.className,Ie=St.style,qe=St.disabled,nt=St.hidden,ut=St.classNames,Ge=St.styles,xt=St.onResize,kt=St.onClear,Qt=St.onPressEnter,It=St.readOnly,se=St.autoSize,te=St.onKeyDown,ee=(0,Ue.Z)(St,$e),oe=(0,xe.Z)(he,{value:le,defaultValue:he}),ce=(0,me.Z)(oe,2),ne=ce[0],ye=ce[1],yt=ne==null?"":String(ne),bt=mt.useState(!1),wt=(0,me.Z)(bt,2),He=wt[0],Yt=wt[1],_t=mt.useRef(!1),Wt=mt.useState(null),ln=(0,me.Z)(Wt,2),Pn=ln[0],pn=ln[1],Mn=(0,mt.useRef)(null),er=(0,mt.useRef)(null),jn=function(){var Nt;return(Nt=er.current)===null||Nt===void 0?void 0:Nt.textArea},ur=function(){jn().focus()};(0,mt.useImperativeHandle)(ht,function(){var ct;return{resizableTextArea:er.current,focus:ur,blur:function(){jn().blur()},nativeElement:((ct=Mn.current)===null||ct===void 0?void 0:ct.nativeElement)||jn()}}),(0,mt.useEffect)(function(){Yt(function(ct){return!qe&&ct})},[qe]);var tr=mt.useState(null),or=(0,me.Z)(tr,2),Gn=or[0],yn=or[1];mt.useEffect(function(){if(Gn){var ct;(ct=jn()).setSelectionRange.apply(ct,(0,ze.Z)(Gn))}},[Gn]);var Vn=(0,pe.Z)(Ye,Ee),zn=(at=Vn.max)!==null&&at!==void 0?at:Ne,Tn=Number(zn)>0,Qn=Vn.strategy(yt),Ft=!!zn&&Qn>zn,Vt=function(Nt,gn){var Bn=gn;!_t.current&&Vn.exceedFormatter&&Vn.max&&Vn.strategy(gn)>Vn.max&&(Bn=Vn.exceedFormatter(gn,{max:Vn.max}),gn!==Bn&&yn([jn().selectionStart||0,jn().selectionEnd||0])),ye(Bn),(0,De.rJ)(Nt.currentTarget,Nt,ot,Bn)},pt=function(Nt){_t.current=!0,Fe==null||Fe(Nt)},Bt=function(Nt){_t.current=!1,Vt(Nt,Nt.currentTarget.value),Ct==null||Ct(Nt)},en=function(Nt){Vt(Nt,Nt.target.value)},vn=function(Nt){Nt.key==="Enter"&&Qt&&Qt(Nt),te==null||te(Nt)},on=function(Nt){Yt(!0),Pe==null||Pe(Nt)},Ln=function(Nt){Yt(!1),dt==null||dt(Nt)},Rn=function(Nt){ye(""),ur(),(0,De.rJ)(jn(),Nt,ot)},Nn=it,Cn;Vn.show&&(Vn.showFormatter?Cn=Vn.showFormatter({value:yt,count:Qn,maxLength:zn}):Cn="".concat(Qn).concat(Tn?" / ".concat(zn):""),Nn=mt.createElement(mt.Fragment,null,Nn,mt.createElement("span",{className:je()("".concat(ve,"-data-count"),ut==null?void 0:ut.count),style:Ge==null?void 0:Ge.count},Cn)));var Un=function(Nt){var gn;xt==null||xt(Nt),(gn=jn())!==null&&gn!==void 0&&gn.style.height&&pn(!0)},Ot=!se&&!Ee&&!be;return mt.createElement(ge.BaseInput,{ref:Mn,value:yt,allowClear:be,handleReset:Rn,suffix:Nn,prefixCls:ve,classNames:(0,_e.Z)((0,_e.Z)({},ut),{},{affixWrapper:je()(ut==null?void 0:ut.affixWrapper,(0,gt.Z)((0,gt.Z)({},"".concat(ve,"-show-count"),Ee),"".concat(ve,"-textarea-allow-clear"),be))}),disabled:qe,focused:He,className:je()(we,Ft&&"".concat(ve,"-out-of-range")),style:(0,_e.Z)((0,_e.Z)({},Ie),Pn&&!Ot?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Cn=="string"?Cn:void 0}},hidden:nt,readOnly:It,onClear:kt},mt.createElement(Ce,(0,re.Z)({},ee,{autoSize:se,maxLength:Ne,onKeyDown:vn,onChange:en,onFocus:on,onBlur:Ln,onCompositionStart:pt,onCompositionEnd:Bt,className:je()(ut==null?void 0:ut.textarea),style:(0,_e.Z)((0,_e.Z)({},Ge==null?void 0:Ge.textarea),{},{resize:Ie==null?void 0:Ie.resize}),disabled:qe,prefixCls:ve,onResize:Un,ref:er,readOnly:It})))}),Xe=Be,Gt=Xe},90472:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return St}});var re=de(54476),gt=de(67732),_e=de(83652),ze=de(31226),me=de(42403),Ue=de(158),Ae=de(20068),je=de(59301),ge=de(33885),pe=de(75931),De=de(76190),xe=de(75044),mt=de(3202),Ke=de(94480),Oe=de(92310),Ze=de.n(Oe),Le=de(26112),vt=de(48736),ft=function(ht,at){if(ht&&at){var he=Array.isArray(at)?at:at.split(","),le=ht.name||"",Pe=ht.type||"",dt=Pe.replace(/\/.*$/,"");return he.some(function(ot){var be=ot.trim();if(/^\*(\/\*)?$/.test(ot))return!0;if(be.charAt(0)==="."){var Ne=le.toLowerCase(),Fe=be.toLowerCase(),Ct=[Fe];return(Fe===".jpg"||Fe===".jpeg")&&(Ct=[".jpg",".jpeg"]),Ct.some(function(it){return Ne.endsWith(it)})}return/\/\*$/.test(be)?dt===be.replace(/\/.*$/,""):Pe===be?!0:/^\w+$/.test(be)?((0,vt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(be,"'.Skip for check.")),!0):!1})}return!0};function At(ht,at){var he="cannot ".concat(ht.method," ").concat(ht.action," ").concat(at.status,"'"),le=new Error(he);return le.status=at.status,le.method=ht.method,le.url=ht.action,le}function tt(ht){var at=ht.responseText||ht.response;if(!at)return at;try{return JSON.parse(at)}catch(he){return at}}function Qe(ht){var at=new XMLHttpRequest;ht.onProgress&&at.upload&&(at.upload.onprogress=function(dt){dt.total>0&&(dt.percent=dt.loaded/dt.total*100),ht.onProgress(dt)});var he=new FormData;ht.data&&Object.keys(ht.data).forEach(function(Pe){var dt=ht.data[Pe];if(Array.isArray(dt)){dt.forEach(function(ot){he.append("".concat(Pe,"[]"),ot)});return}he.append(Pe,dt)}),ht.file instanceof Blob?he.append(ht.filename,ht.file,ht.file.name):he.append(ht.filename,ht.file),at.onerror=function(dt){ht.onError(dt)},at.onload=function(){return at.status<200||at.status>=300?ht.onError(At(ht,at),tt(at)):ht.onSuccess(tt(at),at)},at.open(ht.method,ht.action,!0),ht.withCredentials&&"withCredentials"in at&&(at.withCredentials=!0);var le=ht.headers||{};return le["X-Requested-With"]!==null&&at.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(le).forEach(function(Pe){le[Pe]!==null&&at.setRequestHeader(Pe,le[Pe])}),at.send(he),{abort:function(){at.abort()}}}var st=function(){var ht=(0,mt.Z)((0,xe.Z)().mark(function at(he,le){var Pe,dt,ot,be,Ne,Fe,Ct,it;return(0,xe.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:Fe=function(){return Fe=(0,mt.Z)((0,xe.Z)().mark(function Ye(we){return(0,xe.Z)().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.abrupt("return",new Promise(function(nt){we.file(function(ut){le(ut)?(we.fullPath&&!ut.webkitRelativePath&&(Object.defineProperties(ut,{webkitRelativePath:{writable:!0}}),ut.webkitRelativePath=we.fullPath.replace(/^\//,""),Object.defineProperties(ut,{webkitRelativePath:{writable:!1}})),nt(ut)):nt(null)})}));case 1:case"end":return qe.stop()}},Ye)})),Fe.apply(this,arguments)},Ne=function(Ye){return Fe.apply(this,arguments)},be=function(){return be=(0,mt.Z)((0,xe.Z)().mark(function Ye(we){var Ie,qe,nt,ut,Ge;return(0,xe.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:Ie=we.createReader(),qe=[];case 2:return kt.next=5,new Promise(function(Qt){Ie.readEntries(Qt,function(){return Qt([])})});case 5:if(nt=kt.sent,ut=nt.length,ut){kt.next=9;break}return kt.abrupt("break",12);case 9:for(Ge=0;Ge<ut;Ge++)qe.push(nt[Ge]);kt.next=2;break;case 12:return kt.abrupt("return",qe);case 13:case"end":return kt.stop()}},Ye)})),be.apply(this,arguments)},ot=function(Ye){return be.apply(this,arguments)},Pe=[],dt=[],he.forEach(function(Ee){return dt.push(Ee.webkitGetAsEntry())}),Ct=function(){var Ee=(0,mt.Z)((0,xe.Z)().mark(function Ye(we,Ie){var qe,nt;return(0,xe.Z)().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(we){Ge.next=2;break}return Ge.abrupt("return");case 2:if(we.path=Ie||"",!we.isFile){Ge.next=10;break}return Ge.next=6,Ne(we);case 6:qe=Ge.sent,qe&&Pe.push(qe),Ge.next=15;break;case 10:if(!we.isDirectory){Ge.next=15;break}return Ge.next=13,ot(we);case 13:nt=Ge.sent,dt.push.apply(dt,(0,Ke.Z)(nt));case 15:case"end":return Ge.stop()}},Ye)}));return function(we,Ie){return Ee.apply(this,arguments)}}(),it=0;case 9:if(!(it<dt.length)){ve.next=15;break}return ve.next=12,Ct(dt[it]);case 12:it++,ve.next=9;break;case 15:return ve.abrupt("return",Pe);case 16:case"end":return ve.stop()}},at)}));return function(he,le){return ht.apply(this,arguments)}}(),et=st,jt=+new Date,We=0;function Je(){return"rc-upload-".concat(jt,"-").concat(++We)}var Dt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Ce=function(ht){(0,me.Z)(he,ht);var at=(0,Ue.Z)(he);function he(){var le;(0,gt.Z)(this,he);for(var Pe=arguments.length,dt=new Array(Pe),ot=0;ot<Pe;ot++)dt[ot]=arguments[ot];return le=at.call.apply(at,[this].concat(dt)),(0,Ae.Z)((0,ze.Z)(le),"state",{uid:Je()}),(0,Ae.Z)((0,ze.Z)(le),"reqs",{}),(0,Ae.Z)((0,ze.Z)(le),"fileInput",void 0),(0,Ae.Z)((0,ze.Z)(le),"_isMounted",void 0),(0,Ae.Z)((0,ze.Z)(le),"onChange",function(be){var Ne=le.props,Fe=Ne.accept,Ct=Ne.directory,it=be.target.files,Se=(0,Ke.Z)(it).filter(function(ve){return!Ct||ft(ve,Fe)});le.uploadFiles(Se),le.reset()}),(0,Ae.Z)((0,ze.Z)(le),"onClick",function(be){var Ne=le.fileInput;if(Ne){var Fe=be.target,Ct=le.props.onClick;if(Fe&&Fe.tagName==="BUTTON"){var it=Ne.parentNode;it.focus(),Fe.blur()}Ne.click(),Ct&&Ct(be)}}),(0,Ae.Z)((0,ze.Z)(le),"onKeyDown",function(be){be.key==="Enter"&&le.onClick(be)}),(0,Ae.Z)((0,ze.Z)(le),"onFileDrop",function(){var be=(0,mt.Z)((0,xe.Z)().mark(function Ne(Fe){var Ct,it,Se;return(0,xe.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Ct=le.props.multiple,Fe.preventDefault(),Fe.type!=="dragover"){Ee.next=4;break}return Ee.abrupt("return");case 4:if(!le.props.directory){Ee.next=11;break}return Ee.next=7,et(Array.prototype.slice.call(Fe.dataTransfer.items),function(Ye){return ft(Ye,le.props.accept)});case 7:it=Ee.sent,le.uploadFiles(it),Ee.next=14;break;case 11:Se=(0,Ke.Z)(Fe.dataTransfer.files).filter(function(Ye){return ft(Ye,le.props.accept)}),Ct===!1&&(Se=Se.slice(0,1)),le.uploadFiles(Se);case 14:case"end":return Ee.stop()}},Ne)}));return function(Ne){return be.apply(this,arguments)}}()),(0,Ae.Z)((0,ze.Z)(le),"uploadFiles",function(be){var Ne=(0,Ke.Z)(be),Fe=Ne.map(function(Ct){return Ct.uid=Je(),le.processFile(Ct,Ne)});Promise.all(Fe).then(function(Ct){var it=le.props.onBatchStart;it==null||it(Ct.map(function(Se){var ve=Se.origin,Ee=Se.parsedFile;return{file:ve,parsedFile:Ee}})),Ct.filter(function(Se){return Se.parsedFile!==null}).forEach(function(Se){le.post(Se)})})}),(0,Ae.Z)((0,ze.Z)(le),"processFile",function(){var be=(0,mt.Z)((0,xe.Z)().mark(function Ne(Fe,Ct){var it,Se,ve,Ee,Ye,we,Ie,qe,nt;return(0,xe.Z)().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(it=le.props.beforeUpload,Se=Fe,!it){Ge.next=14;break}return Ge.prev=3,Ge.next=6,it(Fe,Ct);case 6:Se=Ge.sent,Ge.next=12;break;case 9:Ge.prev=9,Ge.t0=Ge.catch(3),Se=!1;case 12:if(Se!==!1){Ge.next=14;break}return Ge.abrupt("return",{origin:Fe,parsedFile:null,action:null,data:null});case 14:if(ve=le.props.action,typeof ve!="function"){Ge.next=21;break}return Ge.next=18,ve(Fe);case 18:Ee=Ge.sent,Ge.next=22;break;case 21:Ee=ve;case 22:if(Ye=le.props.data,typeof Ye!="function"){Ge.next=29;break}return Ge.next=26,Ye(Fe);case 26:we=Ge.sent,Ge.next=30;break;case 29:we=Ye;case 30:return Ie=((0,De.Z)(Se)==="object"||typeof Se=="string")&&Se?Se:Fe,Ie instanceof File?qe=Ie:qe=new File([Ie],Fe.name,{type:Fe.type}),nt=qe,nt.uid=Fe.uid,Ge.abrupt("return",{origin:Fe,data:we,parsedFile:nt,action:Ee});case 35:case"end":return Ge.stop()}},Ne,null,[[3,9]])}));return function(Ne,Fe){return be.apply(this,arguments)}}()),(0,Ae.Z)((0,ze.Z)(le),"saveFileInput",function(be){le.fileInput=be}),le}return(0,_e.Z)(he,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Pe){var dt=this,ot=Pe.data,be=Pe.origin,Ne=Pe.action,Fe=Pe.parsedFile;if(this._isMounted){var Ct=this.props,it=Ct.onStart,Se=Ct.customRequest,ve=Ct.name,Ee=Ct.headers,Ye=Ct.withCredentials,we=Ct.method,Ie=be.uid,qe=Se||Qe,nt={action:Ne,filename:ve,data:ot,file:Fe,headers:Ee,withCredentials:Ye,method:we||"post",onProgress:function(Ge){var xt=dt.props.onProgress;xt==null||xt(Ge,Fe)},onSuccess:function(Ge,xt){var kt=dt.props.onSuccess;kt==null||kt(Ge,Fe,xt),delete dt.reqs[Ie]},onError:function(Ge,xt){var kt=dt.props.onError;kt==null||kt(Ge,xt,Fe),delete dt.reqs[Ie]}};it(be),this.reqs[Ie]=qe(nt)}}},{key:"reset",value:function(){this.setState({uid:Je()})}},{key:"abort",value:function(Pe){var dt=this.reqs;if(Pe){var ot=Pe.uid?Pe.uid:Pe;dt[ot]&&dt[ot].abort&&dt[ot].abort(),delete dt[ot]}else Object.keys(dt).forEach(function(be){dt[be]&&dt[be].abort&&dt[be].abort(),delete dt[be]})}},{key:"render",value:function(){var Pe=this.props,dt=Pe.component,ot=Pe.prefixCls,be=Pe.className,Ne=Pe.classNames,Fe=Ne===void 0?{}:Ne,Ct=Pe.disabled,it=Pe.id,Se=Pe.name,ve=Pe.style,Ee=Pe.styles,Ye=Ee===void 0?{}:Ee,we=Pe.multiple,Ie=Pe.accept,qe=Pe.capture,nt=Pe.children,ut=Pe.directory,Ge=Pe.openFileDialogOnClick,xt=Pe.onMouseEnter,kt=Pe.onMouseLeave,Qt=Pe.hasControlInside,It=(0,pe.Z)(Pe,Dt),se=Ze()((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},ot,!0),"".concat(ot,"-disabled"),Ct),be,be)),te=ut?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ee=Ct?{}:{onClick:Ge?this.onClick:function(){},onKeyDown:Ge?this.onKeyDown:function(){},onMouseEnter:xt,onMouseLeave:kt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Qt?void 0:"0"};return je.createElement(dt,(0,re.Z)({},ee,{className:se,role:Qt?void 0:"button",style:ve}),je.createElement("input",(0,re.Z)({},(0,Le.Z)(It,{aria:!0,data:!0}),{id:it,name:Se,disabled:Ct,type:"file",ref:this.saveFileInput,onClick:function(ce){return ce.stopPropagation()},key:this.state.uid,style:(0,ge.Z)({display:"none"},Ye.input),className:Fe.input,accept:Ie},te,{multiple:we,onChange:this.onChange},qe!=null?{capture:qe}:{})),nt)}}]),he}(je.Component),$e=Ce;function Be(){}var Xe=function(ht){(0,me.Z)(he,ht);var at=(0,Ue.Z)(he);function he(){var le;(0,gt.Z)(this,he);for(var Pe=arguments.length,dt=new Array(Pe),ot=0;ot<Pe;ot++)dt[ot]=arguments[ot];return le=at.call.apply(at,[this].concat(dt)),(0,Ae.Z)((0,ze.Z)(le),"uploader",void 0),(0,Ae.Z)((0,ze.Z)(le),"saveUploader",function(be){le.uploader=be}),le}return(0,_e.Z)(he,[{key:"abort",value:function(Pe){this.uploader.abort(Pe)}},{key:"render",value:function(){return je.createElement($e,(0,re.Z)({},this.props,{ref:this.saveUploader}))}}]),he}(je.Component);(0,Ae.Z)(Xe,"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 Gt=Xe,St=Gt},48911:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return Ye}});var re=de(54476),gt=de(76190),_e=de(33885),ze=de(20068),me=de(42978),Ue=de(75931),Ae=de(92310),je=de.n(Ae),ge=de(29301),pe=de(70425),De=de(34280),xe=de(59301),mt=de(4676),Ke=xe.forwardRef(function(we,Ie){var qe=we.height,nt=we.offsetY,ut=we.offsetX,Ge=we.children,xt=we.prefixCls,kt=we.onInnerResize,Qt=we.innerProps,It=we.rtl,se=we.extra,te={},ee={display:"flex",flexDirection:"column"};return nt!==void 0&&(te={height:qe,position:"relative",overflow:"hidden"},ee=(0,_e.Z)((0,_e.Z)({},ee),{},(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({transform:"translateY(".concat(nt,"px)")},It?"marginRight":"marginLeft",-ut),"position","absolute"),"left",0),"right",0),"top",0))),xe.createElement("div",{style:te},xe.createElement(ge.Z,{onResize:function(ce){var ne=ce.offsetHeight;ne&&kt&&kt()}},xe.createElement("div",(0,re.Z)({style:ee,className:je()((0,ze.Z)({},"".concat(xt,"-holder-inner"),xt)),ref:Ie},Qt),Ge,se)))});Ke.displayName="Filler";var Oe=Ke;function Ze(we){var Ie=we.children,qe=we.setRef,nt=xe.useCallback(function(ut){qe(ut)},[]);return xe.cloneElement(Ie,{ref:nt})}function Le(we,Ie,qe,nt,ut,Ge,xt,kt){var Qt=kt.getKey;return we.slice(Ie,qe+1).map(function(It,se){var te=Ie+se,ee=xt(It,te,{style:{width:nt},offsetX:ut}),oe=Qt(It);return xe.createElement(Ze,{key:oe,setRef:function(ne){return Ge(It,ne)}},ee)})}function vt(we,Ie,qe,nt){var ut=qe-we,Ge=Ie-qe,xt=Math.min(ut,Ge)*2;if(nt<=xt){var kt=Math.floor(nt/2);return nt%2?qe+kt+1:qe-kt}return ut>Ge?qe-(nt-Ge):qe+(nt-ut)}function ft(we,Ie,qe){var nt=we.length,ut=Ie.length,Ge,xt;if(nt===0&&ut===0)return null;nt<ut?(Ge=we,xt=Ie):(Ge=Ie,xt=we);var kt={__EMPTY_ITEM__:!0};function Qt(ce){return ce!==void 0?qe(ce):kt}for(var It=null,se=Math.abs(nt-ut)!==1,te=0;te<xt.length;te+=1){var ee=Qt(Ge[te]),oe=Qt(xt[te]);if(ee!==oe){It=te,se=se||ee!==Qt(xt[te+1]);break}}return It===null?null:{index:It,multiple:se}}function At(we,Ie,qe){var nt=xe.useState(we),ut=(0,me.Z)(nt,2),Ge=ut[0],xt=ut[1],kt=xe.useState(null),Qt=(0,me.Z)(kt,2),It=Qt[0],se=Qt[1];return xe.useEffect(function(){var te=ft(Ge||[],we||[],Ie);(te==null?void 0:te.index)!==void 0&&(qe==null||qe(te.index),se(we[te.index])),xt(we)},[we]),[It]}var tt=de(16089),Qe=(typeof navigator=="undefined"?"undefined":(0,gt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),st=Qe,et=function(we,Ie,qe,nt){var ut=(0,xe.useRef)(!1),Ge=(0,xe.useRef)(null);function xt(){clearTimeout(Ge.current),ut.current=!0,Ge.current=setTimeout(function(){ut.current=!1},50)}var kt=(0,xe.useRef)({top:we,bottom:Ie,left:qe,right:nt});return kt.current.top=we,kt.current.bottom=Ie,kt.current.left=qe,kt.current.right=nt,function(Qt,It){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,te=Qt?It<0&&kt.current.left||It>0&&kt.current.right:It<0&&kt.current.top||It>0&&kt.current.bottom;return se&&te?(clearTimeout(Ge.current),ut.current=!1):(!te||ut.current)&&xt(),!ut.current&&te}};function jt(we,Ie,qe,nt,ut,Ge,xt){var kt=(0,xe.useRef)(0),Qt=(0,xe.useRef)(null),It=(0,xe.useRef)(null),se=(0,xe.useRef)(!1),te=et(Ie,qe,nt,ut);function ee(bt,wt){if(tt.Z.cancel(Qt.current),!te(!1,wt)){var He=bt;if(!He._virtualHandled)He._virtualHandled=!0;else return;kt.current+=wt,It.current=wt,st||He.preventDefault(),Qt.current=(0,tt.Z)(function(){var Yt=se.current?10:1;xt(kt.current*Yt,!1),kt.current=0})}}function oe(bt,wt){xt(wt,!0),st||bt.preventDefault()}var ce=(0,xe.useRef)(null),ne=(0,xe.useRef)(null);function ye(bt){if(we){tt.Z.cancel(ne.current),ne.current=(0,tt.Z)(function(){ce.current=null},2);var wt=bt.deltaX,He=bt.deltaY,Yt=bt.shiftKey,_t=wt,Wt=He;(ce.current==="sx"||!ce.current&&Yt&&He&&!wt)&&(_t=He,Wt=0,ce.current="sx");var ln=Math.abs(_t),Pn=Math.abs(Wt);ce.current===null&&(ce.current=Ge&&ln>Pn?"x":"y"),ce.current==="y"?ee(bt,Wt):oe(bt,_t)}}function yt(bt){we&&(se.current=bt.detail===It.current)}return[ye,yt]}function We(we,Ie,qe,nt){var ut=xe.useMemo(function(){return[new Map,[]]},[we,qe.id,nt]),Ge=(0,me.Z)(ut,2),xt=Ge[0],kt=Ge[1],Qt=function(se){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se,ee=xt.get(se),oe=xt.get(te);if(ee===void 0||oe===void 0)for(var ce=we.length,ne=kt.length;ne<ce;ne+=1){var ye,yt=we[ne],bt=Ie(yt);xt.set(bt,ne);var wt=(ye=qe.get(bt))!==null&&ye!==void 0?ye:nt;if(kt[ne]=(kt[ne-1]||0)+wt,bt===se&&(ee=ne),bt===te&&(oe=ne),ee!==void 0&&oe!==void 0)break}return{top:kt[ee-1]||0,bottom:kt[oe]}};return Qt}var Je=de(67732),Dt=de(83652),Ce=function(){function we(){(0,Je.Z)(this,we),(0,ze.Z)(this,"maps",void 0),(0,ze.Z)(this,"id",0),(0,ze.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Dt.Z)(we,[{key:"set",value:function(qe,nt){this.diffRecords.set(qe,this.maps[qe]),this.maps[qe]=nt,this.id+=1}},{key:"get",value:function(qe){return this.maps[qe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),we}(),$e=Ce;function Be(we){var Ie=parseFloat(we);return isNaN(Ie)?0:Ie}function Xe(we,Ie,qe){var nt=xe.useState(0),ut=(0,me.Z)(nt,2),Ge=ut[0],xt=ut[1],kt=(0,xe.useRef)(new Map),Qt=(0,xe.useRef)(new $e),It=(0,xe.useRef)(0);function se(){It.current+=1}function te(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;se();var ce=function(){var yt=!1;kt.current.forEach(function(bt,wt){if(bt&&bt.offsetParent){var He=bt.offsetHeight,Yt=getComputedStyle(bt),_t=Yt.marginTop,Wt=Yt.marginBottom,ln=Be(_t),Pn=Be(Wt),pn=He+ln+Pn;Qt.current.get(wt)!==pn&&(Qt.current.set(wt,pn),yt=!0)}}),yt&&xt(function(bt){return bt+1})};if(oe)ce();else{It.current+=1;var ne=It.current;Promise.resolve().then(function(){ne===It.current&&ce()})}}function ee(oe,ce){var ne=we(oe),ye=kt.current.get(ne);ce?(kt.current.set(ne,ce),te()):kt.current.delete(ne),!ye!=!ce&&(ce?Ie==null||Ie(oe):qe==null||qe(oe))}return(0,xe.useEffect)(function(){return se},[]),[ee,te,Qt.current,Ge]}var Gt=14/15;function St(we,Ie,qe){var nt=(0,xe.useRef)(!1),ut=(0,xe.useRef)(0),Ge=(0,xe.useRef)(0),xt=(0,xe.useRef)(null),kt=(0,xe.useRef)(null),Qt,It=function(oe){if(nt.current){var ce=Math.ceil(oe.touches[0].pageX),ne=Math.ceil(oe.touches[0].pageY),ye=ut.current-ce,yt=Ge.current-ne,bt=Math.abs(ye)>Math.abs(yt);bt?ut.current=ce:Ge.current=ne;var wt=qe(bt,bt?ye:yt,!1,oe);wt&&oe.preventDefault(),clearInterval(kt.current),wt&&(kt.current=setInterval(function(){bt?ye*=Gt:yt*=Gt;var He=Math.floor(bt?ye:yt);(!qe(bt,He,!0)||Math.abs(He)<=.1)&&clearInterval(kt.current)},16))}},se=function(){nt.current=!1,Qt()},te=function(oe){Qt(),oe.touches.length===1&&!nt.current&&(nt.current=!0,ut.current=Math.ceil(oe.touches[0].pageX),Ge.current=Math.ceil(oe.touches[0].pageY),xt.current=oe.target,xt.current.addEventListener("touchmove",It,{passive:!1}),xt.current.addEventListener("touchend",se,{passive:!0}))};Qt=function(){xt.current&&(xt.current.removeEventListener("touchmove",It),xt.current.removeEventListener("touchend",se))},(0,De.Z)(function(){return we&&Ie.current.addEventListener("touchstart",te,{passive:!0}),function(){var ee;(ee=Ie.current)===null||ee===void 0||ee.removeEventListener("touchstart",te),Qt(),clearInterval(kt.current)}},[we])}function ht(we){return Math.floor(Math.pow(we,.5))}function at(we,Ie){var qe="touches"in we?we.touches[0]:we;return qe[Ie?"pageX":"pageY"]-window[Ie?"scrollX":"scrollY"]}function he(we,Ie,qe){xe.useEffect(function(){var nt=Ie.current;if(we&&nt){var ut=!1,Ge,xt,kt=function(){tt.Z.cancel(Ge)},Qt=function ee(){kt(),Ge=(0,tt.Z)(function(){qe(xt),ee()})},It=function(){ut=!1,kt()},se=function(oe){if(!(oe.target.draggable||oe.button!==0)){var ce=oe;ce._virtualHandled||(ce._virtualHandled=!0,ut=!0)}},te=function(oe){if(ut){var ce=at(oe,!1),ne=nt.getBoundingClientRect(),ye=ne.top,yt=ne.bottom;if(ce<=ye){var bt=ye-ce;xt=-ht(bt),Qt()}else if(ce>=yt){var wt=ce-yt;xt=ht(wt),Qt()}else kt()}};return nt.addEventListener("mousedown",se),nt.ownerDocument.addEventListener("mouseup",It),nt.ownerDocument.addEventListener("mousemove",te),nt.ownerDocument.addEventListener("dragend",It),function(){nt.removeEventListener("mousedown",se),nt.ownerDocument.removeEventListener("mouseup",It),nt.ownerDocument.removeEventListener("mousemove",te),nt.ownerDocument.removeEventListener("dragend",It),kt()}}},[we])}var le=10;function Pe(we,Ie,qe,nt,ut,Ge,xt,kt){var Qt=xe.useRef(),It=xe.useState(null),se=(0,me.Z)(It,2),te=se[0],ee=se[1];return(0,De.Z)(function(){if(te&&te.times<le){if(!we.current){ee(function(Vn){return(0,_e.Z)({},Vn)});return}Ge();var oe=te.targetAlign,ce=te.originAlign,ne=te.index,ye=te.offset,yt=we.current.clientHeight,bt=!1,wt=oe,He=null;if(yt){for(var Yt=oe||ce,_t=0,Wt=0,ln=0,Pn=Math.min(Ie.length-1,ne),pn=0;pn<=Pn;pn+=1){var Mn=ut(Ie[pn]);Wt=_t;var er=qe.get(Mn);ln=Wt+(er===void 0?nt:er),_t=ln}for(var jn=Yt==="top"?ye:yt-ye,ur=Pn;ur>=0;ur-=1){var tr=ut(Ie[ur]),or=qe.get(tr);if(or===void 0){bt=!0;break}if(jn-=or,jn<=0)break}switch(Yt){case"top":He=Wt-ye;break;case"bottom":He=ln-yt+ye;break;default:{var Gn=we.current.scrollTop,yn=Gn+yt;Wt<Gn?wt="top":ln>yn&&(wt="bottom")}}He!==null&&xt(He),He!==te.lastTop&&(bt=!0)}bt&&ee((0,_e.Z)((0,_e.Z)({},te),{},{times:te.times+1,targetAlign:wt,lastTop:He}))}},[te,we.current]),function(oe){if(oe==null){kt();return}if(tt.Z.cancel(Qt.current),typeof oe=="number")xt(oe);else if(oe&&(0,gt.Z)(oe)==="object"){var ce,ne=oe.align;"index"in oe?ce=oe.index:ce=Ie.findIndex(function(bt){return ut(bt)===oe.key});var ye=oe.offset,yt=ye===void 0?0:ye;ee({times:0,index:ce,offset:yt,originAlign:ne})}}}var dt=xe.forwardRef(function(we,Ie){var qe=we.prefixCls,nt=we.rtl,ut=we.scrollOffset,Ge=we.scrollRange,xt=we.onStartMove,kt=we.onStopMove,Qt=we.onScroll,It=we.horizontal,se=we.spinSize,te=we.containerSize,ee=we.style,oe=we.thumbStyle,ce=we.showScrollBar,ne=xe.useState(!1),ye=(0,me.Z)(ne,2),yt=ye[0],bt=ye[1],wt=xe.useState(null),He=(0,me.Z)(wt,2),Yt=He[0],_t=He[1],Wt=xe.useState(null),ln=(0,me.Z)(Wt,2),Pn=ln[0],pn=ln[1],Mn=!nt,er=xe.useRef(),jn=xe.useRef(),ur=xe.useState(ce),tr=(0,me.Z)(ur,2),or=tr[0],Gn=tr[1],yn=xe.useRef(),Vn=function(){ce===!0||ce===!1||(clearTimeout(yn.current),Gn(!0),yn.current=setTimeout(function(){Gn(!1)},3e3))},zn=Ge-te||0,Tn=te-se||0,Qn=xe.useMemo(function(){if(ut===0||zn===0)return 0;var Rn=ut/zn;return Rn*Tn},[ut,zn,Tn]),Ft=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},Vt=xe.useRef({top:Qn,dragging:yt,pageY:Yt,startTop:Pn});Vt.current={top:Qn,dragging:yt,pageY:Yt,startTop:Pn};var pt=function(Nn){bt(!0),_t(at(Nn,It)),pn(Vt.current.top),xt(),Nn.stopPropagation(),Nn.preventDefault()};xe.useEffect(function(){var Rn=function(Ot){Ot.preventDefault()},Nn=er.current,Cn=jn.current;return Nn.addEventListener("touchstart",Rn,{passive:!1}),Cn.addEventListener("touchstart",pt,{passive:!1}),function(){Nn.removeEventListener("touchstart",Rn),Cn.removeEventListener("touchstart",pt)}},[]);var Bt=xe.useRef();Bt.current=zn;var en=xe.useRef();en.current=Tn,xe.useEffect(function(){if(yt){var Rn,Nn=function(Ot){var ct=Vt.current,Nt=ct.dragging,gn=ct.pageY,Bn=ct.startTop;tt.Z.cancel(Rn);var Te=er.current.getBoundingClientRect(),Re=te/(It?Te.width:Te.height);if(Nt){var Ht=(at(Ot,It)-gn)*Re,Lt=Bn;!Mn&&It?Lt-=Ht:Lt+=Ht;var Ve=Bt.current,Mt=en.current,tn=Mt?Lt/Mt:0,sn=Math.ceil(tn*Ve);sn=Math.max(sn,0),sn=Math.min(sn,Ve),Rn=(0,tt.Z)(function(){Qt(sn,It)})}},Cn=function(){bt(!1),kt()};return window.addEventListener("mousemove",Nn,{passive:!0}),window.addEventListener("touchmove",Nn,{passive:!0}),window.addEventListener("mouseup",Cn,{passive:!0}),window.addEventListener("touchend",Cn,{passive:!0}),function(){window.removeEventListener("mousemove",Nn),window.removeEventListener("touchmove",Nn),window.removeEventListener("mouseup",Cn),window.removeEventListener("touchend",Cn),tt.Z.cancel(Rn)}}},[yt]),xe.useEffect(function(){return Vn(),function(){clearTimeout(yn.current)}},[ut]),xe.useImperativeHandle(Ie,function(){return{delayHidden:Vn}});var vn="".concat(qe,"-scrollbar"),on={position:"absolute",visibility:or?null:"hidden"},Ln={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return It?(Object.assign(on,{height:8,left:0,right:0,bottom:0}),Object.assign(Ln,(0,ze.Z)({height:"100%",width:se},Mn?"left":"right",Qn))):(Object.assign(on,(0,ze.Z)({width:8,top:0,bottom:0},Mn?"right":"left",0)),Object.assign(Ln,{width:"100%",height:se,top:Qn})),xe.createElement("div",{ref:er,className:je()(vn,(0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(vn,"-horizontal"),It),"".concat(vn,"-vertical"),!It),"".concat(vn,"-visible"),or)),style:(0,_e.Z)((0,_e.Z)({},on),ee),onMouseDown:Ft,onMouseMove:Vn},xe.createElement("div",{ref:jn,className:je()("".concat(vn,"-thumb"),(0,ze.Z)({},"".concat(vn,"-thumb-moving"),yt)),style:(0,_e.Z)((0,_e.Z)({},Ln),oe),onMouseDown:pt}))}),ot=dt,be=20;function Ne(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,qe=we/Ie*we;return isNaN(qe)&&(qe=0),qe=Math.max(qe,be),Math.floor(qe)}var Fe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ct=[],it={overflowY:"auto",overflowAnchor:"none"};function Se(we,Ie){var qe=we.prefixCls,nt=qe===void 0?"rc-virtual-list":qe,ut=we.className,Ge=we.height,xt=we.itemHeight,kt=we.fullHeight,Qt=kt===void 0?!0:kt,It=we.style,se=we.data,te=we.children,ee=we.itemKey,oe=we.virtual,ce=we.direction,ne=we.scrollWidth,ye=we.component,yt=ye===void 0?"div":ye,bt=we.onScroll,wt=we.onVirtualScroll,He=we.onVisibleChange,Yt=we.innerProps,_t=we.extraRender,Wt=we.styles,ln=we.showScrollBar,Pn=ln===void 0?"optional":ln,pn=(0,Ue.Z)(we,Fe),Mn=xe.useCallback(function(Kt){return typeof ee=="function"?ee(Kt):Kt==null?void 0:Kt[ee]},[ee]),er=Xe(Mn,null,null),jn=(0,me.Z)(er,4),ur=jn[0],tr=jn[1],or=jn[2],Gn=jn[3],yn=!!(oe!==!1&&Ge&&xt),Vn=xe.useMemo(function(){return Object.values(or.maps).reduce(function(Kt,$t){return Kt+$t},0)},[or.id,or.maps]),zn=yn&&se&&(Math.max(xt*se.length,Vn)>Ge||!!ne),Tn=ce==="rtl",Qn=je()(nt,(0,ze.Z)({},"".concat(nt,"-rtl"),Tn),ut),Ft=se||Ct,Vt=(0,xe.useRef)(),pt=(0,xe.useRef)(),Bt=(0,xe.useRef)(),en=(0,xe.useState)(0),vn=(0,me.Z)(en,2),on=vn[0],Ln=vn[1],Rn=(0,xe.useState)(0),Nn=(0,me.Z)(Rn,2),Cn=Nn[0],Un=Nn[1],Ot=(0,xe.useState)(!1),ct=(0,me.Z)(Ot,2),Nt=ct[0],gn=ct[1],Bn=function(){gn(!0)},Te=function(){gn(!1)},Re={getKey:Mn};function Ht(Kt){Ln(function($t){var An;typeof Kt=="function"?An=Kt($t):An=Kt;var dn=wr(An);return Vt.current.scrollTop=dn,dn})}var Lt=(0,xe.useRef)({start:0,end:Ft.length}),Ve=(0,xe.useRef)(),Mt=At(Ft,Mn),tn=(0,me.Z)(Mt,1),sn=tn[0];Ve.current=sn;var bn=xe.useMemo(function(){if(!yn)return{scrollHeight:void 0,start:0,end:Ft.length-1,offset:void 0};if(!zn){var Kt;return{scrollHeight:((Kt=pt.current)===null||Kt===void 0?void 0:Kt.offsetHeight)||0,start:0,end:Ft.length-1,offset:void 0}}for(var $t=0,An,dn,_n,fr=Ft.length,qt=0;qt<fr;qt+=1){var Ut=Ft[qt],cn=Mn(Ut),mn=or.get(cn),Hn=$t+(mn===void 0?xt:mn);Hn>=on&&An===void 0&&(An=qt,dn=$t),Hn>on+Ge&&_n===void 0&&(_n=qt),$t=Hn}return An===void 0&&(An=0,dn=0,_n=Math.ceil(Ge/xt)),_n===void 0&&(_n=Ft.length-1),_n=Math.min(_n+1,Ft.length-1),{scrollHeight:$t,start:An,end:_n,offset:dn}},[zn,yn,on,Ft,Gn,Ge]),Xt=bn.scrollHeight,rn=bn.start,Pt=bn.end,Et=bn.offset;Lt.current.start=rn,Lt.current.end=Pt,xe.useLayoutEffect(function(){var Kt=or.getRecord();if(Kt.size===1){var $t=Array.from(Kt.keys())[0],An=Kt.get($t),dn=Ft[rn];if(dn&&An===void 0){var _n=Mn(dn);if(_n===$t){var fr=or.get($t),qt=fr-xt;Ht(function(Ut){return Ut+qt})}}}or.resetRecord()},[Xt]);var an=xe.useState({width:0,height:Ge}),Sn=(0,me.Z)(an,2),kn=Sn[0],Fn=Sn[1],Jn=function($t){Fn({width:$t.offsetWidth,height:$t.offsetHeight})},ar=(0,xe.useRef)(),wn=(0,xe.useRef)(),Jt=xe.useMemo(function(){return Ne(kn.width,ne)},[kn.width,ne]),En=xe.useMemo(function(){return Ne(kn.height,Xt)},[kn.height,Xt]),un=Xt-Ge,qn=(0,xe.useRef)(un);qn.current=un;function wr(Kt){var $t=Kt;return Number.isNaN(qn.current)||($t=Math.min($t,qn.current)),$t=Math.max($t,0),$t}var sr=on<=0,Dr=on>=un,Lr=Cn<=0,Cr=Cn>=ne,cr=et(sr,Dr,Lr,Cr),Fr=function(){return{x:Tn?-Cn:Cn,y:on}},yr=(0,xe.useRef)(Fr()),dr=(0,pe.zX)(function(Kt){if(wt){var $t=(0,_e.Z)((0,_e.Z)({},Fr()),Kt);(yr.current.x!==$t.x||yr.current.y!==$t.y)&&(wt($t),yr.current=$t)}});function Er(Kt,$t){var An=Kt;$t?((0,mt.flushSync)(function(){Un(An)}),dr()):Ht(An)}function Mr(Kt){var $t=Kt.currentTarget.scrollTop;$t!==on&&Ht($t),bt==null||bt(Kt),dr()}var mr=function($t){var An=$t,dn=ne?ne-kn.width:0;return An=Math.max(An,0),An=Math.min(An,dn),An},lr=(0,pe.zX)(function(Kt,$t){$t?((0,mt.flushSync)(function(){Un(function(An){var dn=An+(Tn?-Kt:Kt);return mr(dn)})}),dr()):Ht(function(An){var dn=An+Kt;return dn})}),nr=jt(yn,sr,Dr,Lr,Cr,!!ne,lr),Pr=(0,me.Z)(nr,2),Vr=Pr[0],Jr=Pr[1];St(yn,Vt,function(Kt,$t,An,dn){var _n=dn;return cr(Kt,$t,An)?!1:!_n||!_n._virtualHandled?(_n&&(_n._virtualHandled=!0),Vr({preventDefault:function(){},deltaX:Kt?$t:0,deltaY:Kt?0:$t}),!0):!1}),he(zn,Vt,function(Kt){Ht(function($t){return $t+Kt})}),(0,De.Z)(function(){function Kt(An){var dn=sr&&An.detail<0,_n=Dr&&An.detail>0;yn&&!dn&&!_n&&An.preventDefault()}var $t=Vt.current;return $t.addEventListener("wheel",Vr,{passive:!1}),$t.addEventListener("DOMMouseScroll",Jr,{passive:!0}),$t.addEventListener("MozMousePixelScroll",Kt,{passive:!1}),function(){$t.removeEventListener("wheel",Vr),$t.removeEventListener("DOMMouseScroll",Jr),$t.removeEventListener("MozMousePixelScroll",Kt)}},[yn,sr,Dr]),(0,De.Z)(function(){if(ne){var Kt=mr(Cn);Un(Kt),dr({x:Kt})}},[kn.width,ne]);var Ar=function(){var $t,An;($t=ar.current)===null||$t===void 0||$t.delayHidden(),(An=wn.current)===null||An===void 0||An.delayHidden()},Hr=Pe(Vt,Ft,or,xt,Mn,function(){return tr(!0)},Ht,Ar);xe.useImperativeHandle(Ie,function(){return{nativeElement:Bt.current,getScrollInfo:Fr,scrollTo:function($t){function An(dn){return dn&&(0,gt.Z)(dn)==="object"&&("left"in dn||"top"in dn)}An($t)?($t.left!==void 0&&Un(mr($t.left)),Hr($t.top)):Hr($t)}}}),(0,De.Z)(function(){if(He){var Kt=Ft.slice(rn,Pt+1);He(Kt,Ft)}},[rn,Pt,Ft]);var Nr=We(Ft,Mn,or,xt),Zr=_t==null?void 0:_t({start:rn,end:Pt,virtual:zn,offsetX:Cn,offsetY:Et,rtl:Tn,getSize:Nr}),ii=Le(Ft,rn,Pt,ne,Cn,ur,te,Re),_r=null;Ge&&(_r=(0,_e.Z)((0,ze.Z)({},Qt?"height":"maxHeight",Ge),it),yn&&(_r.overflowY="hidden",ne&&(_r.overflowX="hidden"),Nt&&(_r.pointerEvents="none")));var Yn={};return Tn&&(Yn.dir="rtl"),xe.createElement("div",(0,re.Z)({ref:Bt,style:(0,_e.Z)((0,_e.Z)({},It),{},{position:"relative"}),className:Qn},Yn,pn),xe.createElement(ge.Z,{onResize:Jn},xe.createElement(yt,{className:"".concat(nt,"-holder"),style:_r,ref:Vt,onScroll:Mr,onMouseEnter:Ar},xe.createElement(Oe,{prefixCls:nt,height:Xt,offsetX:Cn,offsetY:Et,scrollWidth:ne,onInnerResize:tr,ref:pt,innerProps:Yt,rtl:Tn,extra:Zr},ii))),zn&&Xt>Ge&&xe.createElement(ot,{ref:ar,prefixCls:nt,scrollOffset:on,scrollRange:Xt,rtl:Tn,onScroll:Er,onStartMove:Bn,onStopMove:Te,spinSize:En,containerSize:kn.height,style:Wt==null?void 0:Wt.verticalScrollBar,thumbStyle:Wt==null?void 0:Wt.verticalScrollBarThumb,showScrollBar:Pn}),zn&&ne>kn.width&&xe.createElement(ot,{ref:wn,prefixCls:nt,scrollOffset:Cn,scrollRange:ne,rtl:Tn,onScroll:Er,onStartMove:Bn,onStopMove:Te,spinSize:Jt,containerSize:kn.width,horizontal:!0,style:Wt==null?void 0:Wt.horizontalScrollBar,thumbStyle:Wt==null?void 0:Wt.horizontalScrollBarThumb,showScrollBar:Pn}))}var ve=xe.forwardRef(Se);ve.displayName="List";var Ee=ve,Ye=Ee},93314:function(Rt){"use strict";Rt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcB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54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Rt,Zt,de){"use strict";de.d(Zt,{Z:function(){return je}});const re=ge=>typeof ge=="object"&&ge!=null&&ge.nodeType===1,gt=(ge,pe)=>(!pe||ge!=="hidden")&&ge!=="visible"&&ge!=="clip",_e=(ge,pe)=>{if(ge.clientHeight<ge.scrollHeight||ge.clientWidth<ge.scrollWidth){const De=getComputedStyle(ge,null);return gt(De.overflowY,pe)||gt(De.overflowX,pe)||(xe=>{const mt=(Ke=>{if(!Ke.ownerDocument||!Ke.ownerDocument.defaultView)return null;try{return Ke.ownerDocument.defaultView.frameElement}catch(Oe){return null}})(xe);return!!mt&&(mt.clientHeight<xe.scrollHeight||mt.clientWidth<xe.scrollWidth)})(ge)}return!1},ze=(ge,pe,De,xe,mt,Ke,Oe,Ze)=>Ke<ge&&Oe>pe||Ke>ge&&Oe<pe?0:Ke<=ge&&Ze<=De||Oe>=pe&&Ze>=De?Ke-ge-xe:Oe>pe&&Ze<De||Ke<ge&&Ze>De?Oe-pe+mt:0,me=ge=>{const pe=ge.parentElement;return pe==null?ge.getRootNode().host||null:pe},Ue=(ge,pe)=>{var De,xe,mt,Ke;if(typeof document=="undefined")return[];const{scrollMode:Oe,block:Ze,inline:Le,boundary:vt,skipOverflowHiddenElements:ft}=pe,At=typeof vt=="function"?vt:ot=>ot!==vt;if(!re(ge))throw new TypeError("Invalid target");const tt=document.scrollingElement||document.documentElement,Qe=[];let st=ge;for(;re(st)&&At(st);){if(st=me(st),st===tt){Qe.push(st);break}st!=null&&st===document.body&&_e(st)&&!_e(document.documentElement)||st!=null&&_e(st,ft)&&Qe.push(st)}const et=(xe=(De=window.visualViewport)==null?void 0:De.width)!=null?xe:innerWidth,jt=(Ke=(mt=window.visualViewport)==null?void 0:mt.height)!=null?Ke:innerHeight,{scrollX:We,scrollY:Je}=window,{height:Dt,width:Ce,top:$e,right:Be,bottom:Xe,left:Gt}=ge.getBoundingClientRect(),{top:St,right:ht,bottom:at,left:he}=(ot=>{const be=window.getComputedStyle(ot);return{top:parseFloat(be.scrollMarginTop)||0,right:parseFloat(be.scrollMarginRight)||0,bottom:parseFloat(be.scrollMarginBottom)||0,left:parseFloat(be.scrollMarginLeft)||0}})(ge);let le=Ze==="start"||Ze==="nearest"?$e-St:Ze==="end"?Xe+at:$e+Dt/2-St+at,Pe=Le==="center"?Gt+Ce/2-he+ht:Le==="end"?Be+ht:Gt-he;const dt=[];for(let ot=0;ot<Qe.length;ot++){const be=Qe[ot],{height:Ne,width:Fe,top:Ct,right:it,bottom:Se,left:ve}=be.getBoundingClientRect();if(Oe==="if-needed"&&$e>=0&&Gt>=0&&Xe<=jt&&Be<=et&&(be===tt&&!_e(be)||$e>=Ct&&Xe<=Se&&Gt>=ve&&Be<=it))return dt;const Ee=getComputedStyle(be),Ye=parseInt(Ee.borderLeftWidth,10),we=parseInt(Ee.borderTopWidth,10),Ie=parseInt(Ee.borderRightWidth,10),qe=parseInt(Ee.borderBottomWidth,10);let nt=0,ut=0;const Ge="offsetWidth"in be?be.offsetWidth-be.clientWidth-Ye-Ie:0,xt="offsetHeight"in be?be.offsetHeight-be.clientHeight-we-qe:0,kt="offsetWidth"in be?be.offsetWidth===0?0:Fe/be.offsetWidth:0,Qt="offsetHeight"in be?be.offsetHeight===0?0:Ne/be.offsetHeight:0;if(tt===be)nt=Ze==="start"?le:Ze==="end"?le-jt:Ze==="nearest"?ze(Je,Je+jt,jt,we,qe,Je+le,Je+le+Dt,Dt):le-jt/2,ut=Le==="start"?Pe:Le==="center"?Pe-et/2:Le==="end"?Pe-et:ze(We,We+et,et,Ye,Ie,We+Pe,We+Pe+Ce,Ce),nt=Math.max(0,nt+Je),ut=Math.max(0,ut+We);else{nt=Ze==="start"?le-Ct-we:Ze==="end"?le-Se+qe+xt:Ze==="nearest"?ze(Ct,Se,Ne,we,qe+xt,le,le+Dt,Dt):le-(Ct+Ne/2)+xt/2,ut=Le==="start"?Pe-ve-Ye:Le==="center"?Pe-(ve+Fe/2)+Ge/2:Le==="end"?Pe-it+Ie+Ge:ze(ve,it,Fe,Ye,Ie+Ge,Pe,Pe+Ce,Ce);const{scrollLeft:It,scrollTop:se}=be;nt=Qt===0?0:Math.max(0,Math.min(se+nt/Qt,be.scrollHeight-Ne/Qt+xt)),ut=kt===0?0:Math.max(0,Math.min(It+ut/kt,be.scrollWidth-Fe/kt+Ge)),le+=se-nt,Pe+=It-ut}dt.push({el:be,top:nt,left:ut})}return dt},Ae=ge=>ge===!1?{block:"end",inline:"nearest"}:(pe=>pe===Object(pe)&&Object.keys(pe).length!==0)(ge)?ge:{block:"start",inline:"nearest"};function je(ge,pe){if(!ge.isConnected||!(mt=>{let Ke=mt;for(;Ke&&Ke.parentNode;){if(Ke.parentNode===document)return!0;Ke=Ke.parentNode instanceof ShadowRoot?Ke.parentNode.host:Ke.parentNode}return!1})(ge))return;const De=(mt=>{const Ke=window.getComputedStyle(mt);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(ge);if((mt=>typeof mt=="object"&&typeof mt.behavior=="function")(pe))return pe.behavior(Ue(ge,pe));const xe=typeof pe=="boolean"||pe==null?void 0:pe.behavior;for(const{el:mt,top:Ke,left:Oe}of Ue(ge,Ae(pe))){const Ze=Ke-De.top+De.bottom,Le=Oe-De.left+De.right;mt.scroll({top:Ze,left:Le,behavior:xe})}}}}]);