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

1189 lines
828 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[5043],{40001:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},73331:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},15277:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},33853:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},32134:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},61485:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},47472:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},87395:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(60499),qe=ie(59301),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(fe,Ge){return qe.createElement(xe.Z,(0,z.Z)({},fe,{ref:Ge,icon:He}))},Ee=qe.forwardRef(Ce),Be=Ee},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Ut,Ft){"use strict";Ft.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(Ut,Ft){"use strict";Ft.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ut={},Ft="5.0",ie={},z=null,qe=!1,ve=!1,He=null,xe=!1,Ce=null,Ee=null,Be=0;Be<arguments.length;Be++){var Oe=arguments[Be];if(Oe!==null)switch(typeof Oe){case"number":Ft=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ft=Oe:He=Oe;break;case"object":typeof Oe.is3D!="undefined"?z=Oe:ie=Oe;break;case"boolean":qe=Oe,ve=!0;break}}z===null&&(z={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!ve&&(qe=!0)),He!==null&&ie.id===void 0&&(ie.id=He);var fe="",Ge="",Ie=!1,yt=null,Je=null,Te=null,Ne=!1,De=null,Ke=null,pt=null,Et=null,gt=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var ct=function(ke){return parseFloat(ke)>4?parseFloat(ke):5};Ut.setHTML5Codebase=function(ke,Ue){Ee=ke,tt(ke,Ue)},Ut.setJavaCodebase=Ut.setJavaCodebaseVersion=Ut.isCompiledInstalled=Ut.setPreCompiledScriptPath=Ut.setPreCompiledResourcePath=function(){},Ut.setHTML5CodebaseVersion=function(ke,Ue){var Xe=parseFloat(ke);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}Ce=ke,ce(ke,Ue)},Ut.getHTML5CodebaseVersion=function(){return Je},Ut.getParameters=function(){return ie},Ut.setFontsCSSURL=function(ke){Et=ke},Ut.setGiacJSURL=function(ke){},Ut.setJNLPFile=function(ke){fe=ke},Ut.setJNLPBaseDir=function(ke){},Ut.inject=function(){function ke(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",Xe=ie.id,Jt,Bt=!1,Ht=0;Ht<arguments.length;Ht++){var Fe=arguments[Ht];typeof Fe=="string"?(Fe=Fe.toLowerCase(),Fe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=Fe:Xe=arguments[Ht]):typeof Fe=="boolean"?Bt=Fe:Fe instanceof HTMLElement&&(Jt=Fe)}Rt();function Rt(){if(!xe){setTimeout(Rt,200);return}Ue=It(Ue);var ht=Jt||document.getElementById(Xe);if(!ht){console.log("possibly bug on ajax loading? ");return}if(Ut.removeExistingApplet(ht,!1),ie.width===void 0&&ht.clientWidth&&(ie.width=ht.clientWidth),ie.height===void 0&&ht.clientHeight&&(ie.height=ht.clientHeight),!(ie.width&&ie.height)&&Ue==="html5"&&(delete ie.width,delete ie.height),yt=Ue,Ue==="screenshot")nt(ht,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!st()||ke())&&Ve()),ae?(yt="screenshot",Tt(ht,ie,Bt,Ue)):rt(ht,ie,Bt)}}};function st(){try{return window.self!==window.top}catch(ke){return!0}}function Ve(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ut.getViews=function(){return z},Ut.isJavaInstalled=function(){return!1};var Dt=function(ke){var Ue=function(Ht){var Fe=JSON.parse(Ht),Rt=function(te){return te.type=="G"||te.type=="E"},ht=Fe.elements?Fe.elements.filter(Rt)[0]:Fe;if(!ht||!ht.url){Xe();return}ie.fileName=ht.url,dt(ht.settings||{}),z.is3D=!0;var ae="https://www.geogebra.org/images/";Ut.setPreviewImage(De||ht.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ke()},Xe=function(){ie.onError&&ie.onError(),At("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Jt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Bt="/materials/"+ie.material_id+"?scope=basic";Ye("https://"+Jt+"/api/proxy.php?path="+encodeURIComponent(Bt),Ue,Xe)};function dt(ke){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Xe){ke[Xe]=!!ke[Xe]}),Ue.forEach(function(Xe){ie[Xe]===void 0&&ke[Xe]!==void 0&&(ie[Xe]=ke[Xe])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function Ye(ke,Ue,Xe){var Jt=new XMLHttpRequest;Jt.open("GET",ke),Jt.onload=function(){Ue(Jt.responseText)},Jt.onerror=Xe,Jt.send()}Ut.isHTML5Installed=function(){return!0},Ut.getLoadedAppletType=function(){return yt},Ut.setPreviewImage=function(ke,Ue,Xe){De=ke,Ke=Ue,pt=Xe},Ut.removeExistingApplet=function(ke,Ue){var Xe;typeof ke=="string"&&(ke=document.getElementById(ke)),yt=null;var Jt=null;for(Xe=0;Xe<ke.childNodes.length;Xe++){var Bt=ke.childNodes[Xe],Ht=Bt.className;Ht==="applet_screenshot"?Ue?(Bt.style.display="block",yt="screenshot"):Bt.style.display="none":Ht!=="applet_scaler prerender"&&(ke.removeChild(Bt),Jt=Ht&&Ht.indexOf("appletParameters")!=-1?Bt.id:null,Xe--)}var Fe=ie.id!==void 0?ie.id:Jt,Rt=window[Fe];Rt&&typeof Rt.getBase64=="function"&&(Rt.remove(),window[Fe]=null)},Ut.refreshHitPoints=function(){if(ct(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ke=Ut.getAppletObject();return ke&&typeof ke.recalculateEnvironments=="function"?(ke.recalculateEnvironments(),!0):!1},Ut.startAnimation=function(){var ke=Ut.getAppletObject();return ke&&typeof ke.startAnimation=="function"?(ke.startAnimation(),!0):!1},Ut.stopAnimation=function(){var ke=Ut.getAppletObject();return ke&&typeof ke.stopAnimation=="function"?(ke.stopAnimation(),!0):!1},Ut.getAppletObject=function(){var ke=ie.id!==void 0?ie.id:"ggbApplet";return window[ke]},Ut.resize=function(){};var vt=function(ke,Ue,Xe){var Jt=document.createElement("param");Jt.setAttribute("name",Ue),Jt.setAttribute("value",Xe),ke.appendChild(Jt)},Re=function(ke){return ke&&ke!=="false"},rt=function(ke,Ue,Xe){ct(Je)<=4.2&&(Xe=!0);var Jt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Je||ggbHTML5LoadedCodebaseIsWebSimple&&!Ne)&&(Jt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Bt=document.createElement("div");Bt.classList.add("appletParameters","notranslate");var Ht=Ue.width,Fe=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(ct(Je)<=4.4)Re(Ue.showToolBar)&&(Ue.height-=7),Re(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&Re(Ue.showToolBar)&&(Ue.width=605,Ht=605);else{var Rt=100;(Re(Ue.showToolBar)||Re(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Rt=Re(Ue.showMenuBar)?245:155),Ht<Rt&&(Ue.width=Rt,Ht=Rt)}Bt.style.border="none",Bt.style.display="inline-block";for(var ht in Ue)Ue.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&Bt.setAttribute("data-param-"+ht,Ue[ht]);Et&&Bt.setAttribute("data-param-fontscssurl",Et),Ut.resize=function(){GGBAppletUtils.responsiveResize(ke,Ue)},window.addEventListener("resize",function(wt){Ut.resize()});var ae=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!Xe&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||Bt.setAttribute("data-param-showSplash","false");var te=ke.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=je(Ht,Fe,Ue.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Ht+"px",te.style.height=Fe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),ct(Je)>=5?(Ue.appletOnLoad=function(wt){var mt=ke.querySelector(".ggb_preview");mt&&mt.parentNode.removeChild(mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(wt)},ee||te.appendChild(oe)):Bt.appendChild(oe),te.appendChild(Bt),ee||ke.appendChild(te),setTimeout(function(){Ut.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Bt),ke.appendChild(se),Ue.appletOnLoad=function(wt){Ut.resize(),ae(wt)}}function ne(wt,mt){mt&&typeof mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,mt.appletOnLoad):renderGGBElement(wt),At("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mt)}function he(wt,mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(at){ne(at.article,at.params)}),html5AppletsToProcess=null)},ct(Je)<5&&(wt.className+=" geogebraweb")):ne(wt,mt)}if(Jt){scriptLoadStarted=!0;for(var ye=0;ye<Bt.childNodes.length;ye++){var ot=Bt.childNodes[ye].tagName;ot==="TABLE"&&(Bt.removeChild(Bt.childNodes[ye]),ye--)}if(ggbHTML5LoadedScript!==null){var we=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');we!=null&&we.parentNode.removeChild(we)}var We=document.createElement("script"),it=function(){he(Bt,Ue)};We.src=Ge+Te,ggbHTML5LoadedCodebaseIsWebSimple=Ne,ggbHTML5LoadedCodebaseVersion=Je,ggbHTML5LoadedScript=We.src,At("GeoGebra HTML5 codebase loaded: '"+Ge+"'.",Ue),!Ee&&(!Ce||Ce=="5.0")?(Ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),it()):Ge.requirejs?__webpack_require__.e(4510).then(function(){var wt=[__webpack_require__(4510)];it.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(We.onload=it,ke.appendChild(We))}else he(Bt,Ue);Ue.height=Fe,Ue.width=Ht},nt=function(ke,Ue,Xe){var Jt=je(Ue.width,Ue.height,Ue.borderColor,Xe),Bt=document.createElement("div");Bt.style.position="relative",Bt.style.display="block",Bt.style.width=Ue.width+"px",Bt.style.height=Ue.height+"px",Bt.className="applet_screenshot applet_scaler"+(Xe?" applet_screenshot_play":""),Bt.appendChild(Jt);var Ht=GGBAppletUtils.getScale(Ue,ke,Xe);Xe?(ke.appendChild(Le()),window.GGBT_wsf_view||(ke.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bt,"66%"),ke.appendChild(Bt),Ht!==1&&!isNaN(Ht)&&(GGBAppletUtils.scaleElement(Bt,Ht),Bt.style.width=Ue.width+"px",Bt.style.height=Ue.height+"px",Bt.parentNode.style.width=Ue.width*Ht+"px",Bt.parentNode.style.height=Ue.height*Ht+"px"),Ut.resize=function(){pe(ke,Jt,Bt,Xe)},window.addEventListener("resize",function(Fe){Ut.resize()}),Ut.resize()};function pe(ke,Ue,Xe,Jt){if(ke.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ke)}var Bt=GGBAppletUtils.getScale(ie,ke,Jt);Xe.parentNode!==null&&(!isNaN(Bt)&&Bt!==1?(GGBAppletUtils.scaleElement(Xe,Bt),Xe.parentNode.style.width=ie.width*Bt+"px",Xe.parentNode.style.height=ie.height*Bt+"px"):(GGBAppletUtils.scaleElement(Xe,1),Xe.parentNode.style.width=ie.width+"px",Xe.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ke),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ut.onExitFullscreen=function(ke,Ue){Ue.appendChild(ke)};var Tt=function(ke,Ue,Xe,Jt){nt(ke,Ue,!0);for(var Bt=function(){var Rt=[];for(Fe=0;Fe<ke.childNodes.length;Fe++)Rt.push(ke.childNodes[Fe]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(ke,Ue.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(ke).find(".fullscreencontent");te.length>0?(ht.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):rt(ht,Ue,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else yt=Jt,rt(ke,Ue,!1);if(!window.GGBT_wsf_view)for(Fe=0;Fe<Rt.length;Fe++)ke.removeChild(Rt[Fe])},Ht=ke.getElementsByClassName("ggb_preview_play"),Fe=0;Fe<Ht.length;Fe++)Ht[Fe].addEventListener("click",Bt,!1),Ht[Fe].addEventListener("ontouchstart",Bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ke),Ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Le=function(){var ke=document.createElement("div");if(ke.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.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");}',Xe=document.createElement("style");Xe.styleSheet?Xe.styleSheet.cssText=Ue:Xe.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(Xe)}return ke},je=function(ke,Ue,Xe,Jt){var Bt=document.createElement("div");Bt.className="ggb_preview",Bt.style.position="absolute",Bt.style.zIndex="90",Bt.style.width=ke-2+"px",Bt.style.height=Ue-2+"px",Bt.style.top="0px",Bt.style.left="0px",Bt.style.overflow="hidden",Bt.style.backgroundColor="white";var Ht="lightgrey";Xe!==void 0&&(Xe==="none"?Ht="transparent":Ht=Xe),Bt.style.border="1px solid "+Ht;var Fe=document.createElement("img");if(Fe.style.position="relative",Fe.style.zIndex="1000",Fe.style.top="-1px",Fe.style.left="-1px",De!==null&&Fe.setAttribute("src",De),Fe.style.opacity=.7,Ke!==null){var Rt,ht,ae;if(!Jt){Rt=document.createElement("img"),Rt.style.position="absolute",Rt.style.zIndex="1001",Rt.style.opacity=1,Fe.style.opacity=.3,ht=360,ht>ke/4*3&&(ht=ke/4*3),ae=ht/5.8,Rt.setAttribute("src",Ke),Rt.setAttribute("width",ht),Rt.setAttribute("height",ae);var te=(ke-ht)/2,ee=(Ue-ae)/2;Rt.style.left=te+"px",Rt.style.top=ee+"px",Bt.appendChild(Rt)}}return Bt.appendChild(Fe),Bt},It=function(ke){return ke=ke.toLowerCase(),ke==="html5"||ke==="screenshot"?ke:"html5"},ge=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ke,Ue){if(Je=ke,Ue){tt(Je,!0);return}var Xe=!qe;if(Xe){var Jt=ct(Je);!isNaN(Jt)&&Jt<4.4&&(Xe=!1)}var Bt,Ht;window.location.protocol.substr(0,4)==="http"?Bt=window.location.protocol:Bt="http:";var Fe=Je.indexOf("//");Fe>0?Ht=Je:Fe===0?Ht=Bt+Je:Ht="https://www.geogebra.org/apps/5.2.814.0/";for(var Rt in ge)if(Je.slice(ge[Rt].length*-1)===ge[Rt]||Je.slice((ge[Rt].length+1)*-1)===ge[Rt]+"/"){tt(Ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Re(ie.showToolBar)&&!Re(ie.showMenuBar)&&!Re(ie.showAlgebraInput)&&!Re(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?Ht+="webSimple/":Ht+="web3d/",tt(Ht,!1)},tt=function(ke,Ue){if(ke.requirejs){Ge=ke;return}ke.slice(-1)!=="/"&&(ke+="/"),Ge=ke,Ue===null&&(Ue=ke.indexOf("http")===-1),Ie=Ue,Te="web.nocache.js",Ne=!1;var Xe=Ge.split("/");Xe.length>1&&(!Ue&&Xe[Xe.length-2]==="webSimple"?(Te="webSimple.nocache.js",Ne=!0):ge.indexOf(Xe[Xe.length-2])>=0&&(Te=Xe[Xe.length-2]+".nocache.js")),Xe=ke.split("/"),Je=Xe[Xe.length-3],Je.substr(0,4)==="test"?Je=Je.substr(4,1)+"."+Je.substr(5,1):(Je.substr(0,3)==="war"||Je.substr(0,4)==="beta")&&(Je="5.0");var Jt=parseFloat(Je);Jt!==NaN&&Jt<5&&ke.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Jt+" is deprecated. Using version latest instead."),ce("5.0",Ue))},At=function(ke,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(ke)};ie.material_id!==void 0?Dt(St):St();function St(){var ke=Ft;Ce!==null?ke=Ce:parseFloat(ke)<5&&(ke="5.0"),ce(ke,!1),Ee!==null&&tt(Ee,Ie),xe=!0}return Ut},GGBAppletUtils=function(){"use strict";function Ut(){return window.GGBT_wsf_edit!==void 0}function Ft(xe,Ce){Ce!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Ce+","+Ce+")",xe.style.webkitTransform="scale("+Ce+","+Ce+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ie(xe,Ce,Ee,Be,Oe,fe){var Ge=null;if(fe!=null&&fe!="")for(var Ie=xe.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+fe+" ")>-1){Ge=Ie;break}else Ie=Ie.parentNode;var yt=0,Je=0,Te=0,Ne=0,De=0,Ke=0,pt=0;if(Ge)yt=Ge.offsetWidth,Je=Math.max(Be?Ge.offsetWidth:0,Ge.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(yt=Math.min(window.innerWidth,document.documentElement.clientWidth),Je=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=yt):(yt=window.innerWidth,Je=window.innerHeight,Te=window.innerWidth),xe){var Et=xe.getBoundingClientRect();Et.left>0&&Et.left<=yt&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(De=yt-Et.width-Et.left,Ke=Te<=480?10:30):(Ke=Et.left,De=Te<=480?10:30),Ne=Ke+De)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var gt=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne=0,pt=40)}}return xe&&((Ee===void 0||!Ee)&&Ce>0&&Ce+Ne<yt?yt=Ce:yt-=Ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(Je-=pt)),{width:yt,height:Je}}function z(xe,Ce,Ee,Be,Oe){if(xe.isScreenshoGenerator)return 1;var fe=Be!==void 0&&Be,Ge=xe.noScaleMargin!=null&&xe.noScaleMargin,Ie=function(gt){return gt&&gt!=="false"},yt=Ie(xe.autoHeight),Je=ie(Ce,xe.width,Ee,yt,fe&&window.GGBT_wsf_view||Ge,Oe),Te=parseInt(Je.width),Ne=xe.width,De=xe.height;if(Ne===void 0){var Ke=Ce.querySelector(".appletParameters");Ke&&(Ne=Ke.offsetWidth,De=Ke.offsetHeight)}var pt=Te/Ne,Et=fe?1:Je.height/De;return Ee!==void 0&&!Ee&&(pt=Math.min(1,pt),Et=Math.min(1,Et)),Math.min(pt,Et)}function qe(xe,Ce,Ee){var Be=1,Oe,fe=!1;if(xe.hasOwnProperty("allowUpscale")&&(fe=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Be=parseFloat(xe.scale),(isNaN(Be)||Be===null||Be===0)&&(Be=1),Be>1&&(fe=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Oe=z(xe,Ce,fe,Ee,xe.scaleContainerClass);else return Be;return fe&&(!xe.hasOwnProperty("scale")||Be===1)?Oe:Math.min(Be,Oe)}function ve(xe){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),Be=xe.getBoundingClientRect(),Oe=(Ce-Be.width)/2,fe=(Ee-Be.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?xe.style.left="40px":xe.style.left=Oe+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=Oe+"px")}function He(xe,Ce){var Ee=xe.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var Be=qe(Ce,xe);Ut()&&Ee.setAttribute("data-param-scale",Be);for(var Oe=null,fe=0;fe<xe.childNodes.length;fe++)if(xe.childNodes[fe].className!==void 0&&xe.childNodes[fe].className.match(/^applet_scaler/)){Oe=xe.childNodes[fe];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ge=Ce.id!==void 0?Ce.id:"ggbApplet",Ie=window[Ge];(Ie==null||!Ie.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Be)&&Be!==1?(Oe.parentNode.style.width=Ce.width*Be+"px",Oe.parentNode.style.height=Ce.height*Be+"px",Ft(Oe,Be)):(Ft(Oe,1),Oe.parentNode.style.width=Ce.width+"px",Oe.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ve(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:He,isFlexibleWorksheetEditor:Ut,positionCenter:ve,getScale:qe,scaleElement:Ft}}();__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 Ut=n.location.search;return Ut.indexOf(J)!=-1||Ut.indexOf(K)!=-1}function q(Ut,Ft){}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(Ut){var Ft=s[L].bindings;s[L].bindings=function(){for(var ie=Ft?Ft():{},z=Ut[webModule.__softPermutationId],qe=O;qe<z.length;qe++){var ve=z[qe];ie[ve[O]]=ve[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Ut=o.createElement(Q);if(Ut.id=L,Ut.style.cssText=R+S,Ut.tabIndex=-1,o.body.appendChild(Ut),t=Ut.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ft=document.compatMode==U?V:W;t.write(Ft+X),t.close()}}}function w(Ut){function Ft(z){function qe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ve=qe();if(ve){z();return}function He(){if(!ve){if(!qe())return;ve=!0,z(),o.removeEventListener&&o.removeEventListener(Z,He,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,He,!1);var xe=setInterval(function(){He()},$)}function ie(z){var qe=u(),ve=qe.body,He=qe.createElement(_);He.language=ab,He.crossOrigin=W,He.src=z,webModule.__errFn&&(He.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ve.appendChild(He)}Ft(function(){ie(Ut)})}webModule.__startLoadingFragment=function(Ut){return C(Ut)},webModule.__installRunAsyncCode=function(Ut){var Ft=u(),ie=Ft.body,z=Ft.createElement(_);z.language=ab,z.text=Ut,ie.appendChild(z),ie.removeChild(z)};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(Ut){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ut){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ut){var Ft=c[Ut];return Ft==null?null:Ft},r=d,webModule.__errFn=e}function B(){function Ut(xe){var Ce=xe.lastIndexOf(rb);Ce==-1&&(Ce=xe.length);var Ee=xe.indexOf(sb);Ee==-1&&(Ee=xe.length);var Be=xe.lastIndexOf(tb,Math.min(Ee,Ce));return Be>=O?xe.substring(O,Be+P):W}function Ft(xe){if(!xe.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=xe+vb,xe=Ut(Ce.src)}return xe}function ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function z(){for(var xe=o.getElementsByTagName(_),Ce=O;Ce<xe.length;++Ce)if(xe[Ce].src.indexOf(xb)!=-1)return Ut(xe[Ce].src);return W}function qe(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ve(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var He=ie();return He==W&&(He=z()),He==W&&(He=qe()),He==W&&ve()&&(He=Ut(o.location.href)),He=Ft(He),He}function C(Ut){return Ut.match(/^\//)||Ut.match(/^[a-zA-Z]+:\/\//)?Ut:webModule.__moduleBase+Ut}function D(){var Ut=[],Ft=O,ie=[],z=[];function qe(xe){var Ce=z[xe](),Ee=ie[xe];if(Ce in Ee)return Ce;var Be=[];for(var Oe in Ee)Be[Ee[Oe]]=Oe;throw r&&r(xe,Be,Ce),null}if(__gwt_isKnownPropertyValue=function(xe,Ce){return Ce in ie[xe]},webModule.__getPropMap=function(){var xe={};for(var Ce in ie)ie.hasOwnProperty(Ce)&&(xe[Ce]=qe(Ce));return xe},webModule.__computePropValue=qe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ve;try{ve=Cb;var He=ve.indexOf(Db);He!=-1&&(Ft=parseInt(ve.substring(He+P),$),ve=ve.substring(O,He))}catch(xe){}return webModule.__softPermutationId=Ft,C(ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Ax:function(){return He},Ds:function(){return xe},KI:function(){return Ee},SI:function(){return ve},f1:function(){return qe}});var z=ie(14185);function qe(Be){let Oe=!0;if(Be.length>0){for(let fe=0;fe<Be.length;fe++)if(Be[fe].compile_success==0||!Be[fe].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function ve(Be,Oe=""){let fe=[];for(let Ge=0;Ge<Be.length;Ge++){let Ie=Be[Ge],yt=Oe?`${Oe}/${Ie.name}`:`${Ie.name}`;fe.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:yt})}return fe}function He(Be,Oe,fe){for(let Ge=0;Ge<Be.length;Ge++){let Ie=Be[Ge];if(Ie.key===Oe){Ie.children=fe;break}Ie.children&&He(Ie.children,Oe,fe)}return Be}function xe(Be,Oe,fe){let Ge;return function(){let Ie=this,yt=arguments,Je=function(){Ge=null,fe||Be.apply(Ie,yt)},Te=fe&&!Ge;clearTimeout(Ge),Ge=setTimeout(Je,Oe),Te&&Be.apply(Ie,yt)}}const Ce=!0,Ee=z.Z.API_SERVER},40254:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ge}});var z=ie(59301),qe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ve=ie(92310),He=ie.n(ve),xe=ie(29787),Ce=ie(2859),Ee=ie(49317),Be=ie(76406),Oe=(Ie,yt,Je)=>new Promise((Te,Ne)=>{var De=Et=>{try{pt(Je.next(Et))}catch(gt){Ne(gt)}},Ke=Et=>{try{pt(Je.throw(Et))}catch(gt){Ne(gt)}},pt=Et=>Et.done?Te(Et.value):Promise.resolve(Et.value).then(De,Ke);pt((Je=Je.apply(Ie,yt)).next())}),Ge=({data:Ie,className:yt,fullWidth:Je,style:Te={},onClose:Ne,onOk:De,showFullTools:Ke,noAssociationId:pt})=>{const Et=(0,z.useRef)(null),gt=(0,z.useRef)(null),ct=(0,z.useRef)(null),st=(0,z.useRef)(null),[Ve,Dt]=(0,z.useState)(!1),[dt,Ye]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(ct.current||(ct.current=document.createElement("style"),document.head.appendChild(ct.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),ct.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&vt()):(document.body.removeAttribute("data-custom"),ct.current&&(document.head.removeChild(ct.current),ct.current=null)),()=>{document.body.removeAttribute("data-custom"),ct.current&&(document.head.removeChild(ct.current),ct.current=null)}),[Ie==null?void 0:Ie.visible]);const vt=()=>Oe(void 0,null,function*(){Dt(!0),Ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Be.ZJ)(Ie==null?void 0:Ie.src);Et.current.src="",Et.current.src=pe,Et.current.onload=function(){nt()},Dt(!1),Ye("")}),Re=pe=>Oe(void 0,null,function*(){Dt(!0),Ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tt=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:pe.dataUrl}});Tt!=null&&Tt.id&&!pt?(yield(0,Ee.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tt==null?void 0:Tt.id,settings:JSON.stringify(pe.state)}})).status===0&&De():Tt!=null&&Tt.id&&De(Tt),Dt(!1),Ye("")}),rt=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Le=>{const je=document.querySelector(Le.name);je&&je.setAttribute("title",Le.title)})},nt=()=>{gt.current=new Ce.hP(Et.current),gt.current.targetRoot=st.current,gt.current.addEventListener("render",Re),gt.current.addEventListener("beforeclose",Ne),Ke&&(gt.current.availableMarkerTypes=gt.current.ALL_MARKER_TYPES,gt.current.uiStyleSettings.redoButtonVisible=!0,gt.current.uiStyleSettings.notesButtonVisible=!0,gt.current.uiStyleSettings.zoomButtonVisible=!0,gt.current.uiStyleSettings.zoomOutButtonVisible=!0,gt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=gt.current.uiStyleSettings,gt.current.show(),Ie!=null&&Ie.snapshotData&&gt.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),rt()},300)};return z.createElement(z.Fragment,null,(Ie==null?void 0:Ie.visible)&&z.createElement(xe.Z,{spinning:Ve,tip:dt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:st,className:He()(qe.imageDimensions,yt,Je?qe.fullWidth:""),style:Te},z.createElement("img",{className:qe.img,ref:Et}))))}},9057:function(Ut,Ft,ie){"use strict";var z=ie(59301),qe=ie(77019),ve=ie(5269),He=ie(31691),xe=ie(7939),Ce=ie(35883),Ee=ie(74501),Be=ie(48136),Oe=ie(59301);const fe=(0,z.forwardRef)(({callback:Ge,showSaveButton:Ie,value:yt=""},Je)=>{const Te=(0,z.useRef)(),Ne=[{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 "}]}]}],De=[{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}`}]}]}],Ke=gt=>{Te.current.setValue(Te.current.getValue()+" "+gt.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(qe.Z,{className:Ee.Z.lists,gutter:[10,10]},Ne.map((gt,ct)=>Oe.createElement(ve.Z,{flex:"110px",className:Ee.Z.item},Oe.createElement("div",null,Oe.createElement(Ce.Z,{value:`$$${gt.value}$$`}),gt.name),Oe.createElement("div",{className:Ee.Z.children},gt.children.map((st,Ve)=>Oe.createElement("div",{key:Ve},Oe.createElement("h1",null,st.name),Oe.createElement(qe.Z,{gutter:[10,10]},st.data.map((Dt,dt)=>Oe.createElement(ve.Z,{key:dt,onClick:()=>Ke(Dt),className:Ee.Z.diamond},Oe.createElement(Ce.Z,{value:"`$$"+Dt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(qe.Z,{className:Ee.Z.lists,gutter:[10,10]},De.map((gt,ct)=>Oe.createElement(ve.Z,{flex:"110px",className:Ee.Z.item},Oe.createElement("div",null,Oe.createElement(Ce.Z,{value:"`$$"+gt.value+"$$`"}),gt.name),Oe.createElement("div",{className:Ee.Z.children},gt.children.map((st,Ve)=>Oe.createElement("div",{key:Ve},st.name&&Oe.createElement("h1",null,st.name),Oe.createElement(qe.Z,{gutter:[10,10]},st.data.map((Dt,dt)=>Oe.createElement(ve.Z,{key:dt,onClick:()=>Ke(Dt),className:Ee.Z.diamond},Oe.createElement(Ce.Z,{value:"`$$"+Dt.value+"$$`"}))))))))))}],Et=()=>{var gt=document.createElement("div");gt.innerHTML=Te.current.getValue();var ct=gt.innerText;return Ge&&Ge(ct),ct};return(0,z.useImperativeHandle)(Je,()=>({getData:Et})),Oe.createElement("div",{className:Ee.Z.mathWrap},Oe.createElement(He.default,{defaultActiveKey:"1",items:pt}),Oe.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},yt||""),Ie&&Oe.createElement("div",{className:Ee.Z.button},Oe.createElement(xe.ZP,{size:"large",onClick:Et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ft.Z=fe},90736:function(Ut,Ft,ie){"use strict";var z=ie(59301),qe=ie(4977),ve=ie(7939),He=Object.defineProperty,xe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,fe=(Je,Te,Ne)=>Te in Je?He(Je,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Je[Te]=Ne,Ge=(Je,Te)=>{for(var Ne in Te||(Te={}))Be.call(Te,Ne)&&fe(Je,Ne,Te[Ne]);if(Ee)for(var Ne of Ee(Te))Oe.call(Te,Ne)&&fe(Je,Ne,Te[Ne]);return Je},Ie=(Je,Te)=>xe(Je,Ce(Te));const yt=({img:Je,buttonProps:Te={},styles:Ne={},customText:De,ButtonText:Ke,ButtonClick:pt,Buttonclass:Et,ButtonTwo:gt,imgStyles:ct,loading:st=!1,className:Ve=""})=>z.createElement("section",{className:`tc animated fadeIn ${Ve}`,style:Ge({color:"#999",margin:"100px auto",visibility:st?"hidden":"visible"},Ne)},z.createElement("img",{src:Je||qe,style:Ie(Ge({},ct),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},De||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ke&&z.createElement(ve.ZP,Ge({className:Et,onClick:pt},Te),Ke),gt&&gt);Ft.Z=yt},86974:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Et}});var z=ie(59301),qe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ve=ie(7939),He=ie(70557),xe=ie(34728),Ce=ie(25399),Ee=ie(76406),Be=ie(84849),Oe=ie(90736),fe=ie(14185),Ge=ie(52078),Ie=ie(59301),yt=Object.defineProperty,Je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,De=(gt,ct,st)=>ct in gt?yt(gt,ct,{enumerable:!0,configurable:!0,writable:!0,value:st}):gt[ct]=st,Ke=(gt,ct)=>{for(var st in ct||(ct={}))Te.call(ct,st)&&De(gt,st,ct[st]);if(Je)for(var st of Je(ct))Ne.call(ct,st)&&De(gt,st,ct[st]);return gt},pt=(gt,ct,st)=>new Promise((Ve,Dt)=>{var dt=Re=>{try{vt(st.next(Re))}catch(rt){Dt(rt)}},Ye=Re=>{try{vt(st.throw(Re))}catch(rt){Dt(rt)}},vt=Re=>Re.done?Ve(Re.value):Promise.resolve(Re.value).then(dt,Ye);vt((st=st.apply(gt,ct)).next())}),Et=({editOffice:gt="view",data:ct,issaver:st,onSaver:Ve,theme:Dt,type:dt,filename:Ye,monacoEditor:vt,className:Re,style:rt,close:nt,onClose:pe,hasMask:Tt,disabledDownload:Le,onImgDimensions:je,showNodata:It,recordInfo:ge})=>{const[ce,tt]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[At,St]=(0,z.useState)(""),[ke,Ue]=(0,z.useState)(),Xe=window.ENV==="build"?"/react/build":"",Jt=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Ht=10*(1024*1024),Fe=(0,z.useRef)();ct!=null&&ct.startsWith("/api")&&dt!=="txt"&&(ct=fe.Z.API_SERVER+ct);const Rt=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();Ye&&vt&&(vt.filename=Ye),(0,z.useEffect)(()=>{var se,ne;const he=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");he==null||he.map(ye=>{let ot=ye.split("=");ot[0]==="_educoder_session"&&St(ot[1])})},[]),(0,z.useEffect)(()=>{dt==="office"&&(ct.indexOf("bigfilescdn.")>-1||ct.indexOf("bigfiles1")>-1?Ue({url:ct,fileType:Rt(ct),model:ct.indexOf("model=edit")?"edit":"view"}):ct.indexOf("coze")>-1?Ue({url:ct,fileType:"doc",model:"view"}):ae())},[dt,ct]);function ht(se){return pt(this,null,function*(){se.data.type==="pdfdata"&&(Ve(se.data.data),window.removeEventListener("message",ht,!1)),console.log("mess---:",se.data)})}const ae=()=>pt(void 0,null,function*(){console.log("data:",ct);let se=ct;ct.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const he=yield(0,Be.gJ)({attachment_id:ne});he.url=Jt+he.url,Ue(he)}),te=()=>{if(ct.startsWith("http")||ct.startsWith("blob:")){ee();return}(0,Ee.Sv)(Ye||"educoder",ct,Ye)},ee=()=>{ge&&(0,Ge.fc)({id:ge==null?void 0:ge.id,watch_type:1,course_id:ge==null?void 0:ge.course_id}),(0,Ee.Nd)(Ye||"educoder",decodeURIComponent(ct))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&pe()};return Ie.createElement("div",{style:Ke({},rt||{}),className:`${Tt&&qe.bgBlack} ${dt?qe.wrp:"hide"}`},!!dt&&nt&&Ie.createElement("div",{id:"closePop",className:qe.close,ref:Fe},!!je&&Ie.createElement(Ce.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Fe.current},Ie.createElement("span",{onClick:()=>{pe(),je()}},Ie.createElement("i",{className:"icon-yulanpizhu"}))),!Le&&window.parent===window&&Ie.createElement(Ce.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Fe.current},Ie.createElement("span",{onClick:ee},Ie.createElement("i",{className:"icon-quxiaozhiding"}))),st&&Ie.createElement(Ce.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Fe.current},Ie.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",ht,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ie.createElement("i",{className:"icon-baocun"}))),Ie.createElement(Ce.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Fe.current},Ie.createElement("span",{className:"",onClick:()=>{pe()}},Ie.createElement("i",{className:"icon-guanbi1"})))),Ie.createElement("div",{className:`${qe[Re]} ${Re} ${qe.monaco} ${dt==="txt"?"show":"hide"}`},dt==="txt"&&Ie.createElement(Ie.Fragment,null,Ie.createElement(xe.ZP,Ke({},vt)))),dt==="audio"&&Ie.createElement("audio",{controls:!0,src:`${(ct==null?void 0:ct.indexOf("http://"))>-1||(ct==null?void 0:ct.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ct}`,autoPlay:!0}),dt==="video"&&Ie.createElement(Ie.Fragment,null,(ct==null?void 0:ct.indexOf("http"))>-1?Ie.createElement("video",{controls:!0,src:`${ct}`,autoPlay:!0}):Ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ct}`,autoPlay:!0})),dt==="office"&&ke&&Ie.createElement("iframe",{src:`${Xe}/office.html?key=${ke.key}&url=${btoa(ke.url)}&callbackUrl=${Jt+(ke.callbackUrl||"")}&fileType=${ke.fileType}&title=${ke.title||""}&model=${gt}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Le}`}),dt==="html"&&Ie.createElement("iframe",{src:ct+"&disposition=inline"}),dt==="pdf"&&Ie.createElement("iframe",{id:"pdfiframe",src:`${Xe}/js/pdf/index.html?filename=${Ye||"educoder.pdf"}&url=${encodeURIComponent(ct)}&disabledDownload=${!!Le}&model=${gt}`}),dt==="image"&&Ie.createElement("img",{src:`${(ct==null?void 0:ct.indexOf("http://"))>-1||(ct==null?void 0:ct.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ct}`}),(dt==="other"||dt==="download")&&Ie.createElement(Ie.Fragment,null,It?Ie.createElement(Oe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ie.createElement(ve.ZP,{icon:Ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Le},"\u4E0B\u8F7D")}):Ie.createElement(ve.ZP,{type:"primary",size:"middle",onClick:te,disabled:Le},Ie.createElement(He.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),dt==="flowChart"&&Ie.createElement("div",{className:"embed"},Ie.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ct||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},78130:function(Ut,Ft,ie){"use strict";ie.d(Ft,{h:function(){return Te},x:function(){return Ne}});var z=ie(39116),qe=ie(42168),ve=ie(35883),He=ie(59301),xe=Object.defineProperty,Ce=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Ge=(De,Ke,pt)=>Ke in De?xe(De,Ke,{enumerable:!0,configurable:!0,writable:!0,value:pt}):De[Ke]=pt,Ie=(De,Ke)=>{for(var pt in Ke||(Ke={}))Oe.call(Ke,pt)&&Ge(De,pt,Ke[pt]);if(Be)for(var pt of Be(Ke))fe.call(Ke,pt)&&Ge(De,pt,Ke[pt]);return De},yt=(De,Ke)=>Ce(De,Ee(Ke)),Je=(De,Ke)=>{var pt={};for(var Et in De)Oe.call(De,Et)&&Ke.indexOf(Et)<0&&(pt[Et]=De[Et]);if(De!=null&&Be)for(var Et of Be(De))Ke.indexOf(Et)<0&&fe.call(De,Et)&&(pt[Et]=De[Et]);return pt};const Te=De=>{var Ke=De,{value:pt,onChange:Et,scrollId:gt}=Ke,ct=Je(Ke,["value","onChange","scrollId"]);return He.createElement("div",{id:gt||""},He.createElement(z.Z,yt(Ie({},ct),{defaultValue:pt,onChange:(st,Ve)=>{Ve!=null&&Ve.length?Et(st,Ve):Et(st)}})))},Ne=({value:De,onChange:Ke,placeholder:pt,height:Et=140,isEdit:gt,miniToolbar:ct,watch:st=!0})=>gt?He.createElement(z.Z,{watch:st,isFocus:!0,height:Et||void 0,placeholder:pt,defaultValue:De,onChange:Ke,miniToolbar:ct}):He.createElement("div",{style:{cursor:"pointer"}},De?He.createElement(ve.Z,{className:qe.Z.inputBorder,value:De}):He.createElement("div",{className:`${qe.Z.inputBorder} ${qe.Z.placeholder} inputBorderError`},pt))},35883:function(Ut,Ft,ie){"use strict";ie.d(Ft,{z:function(){return vt},Z:function(){return Re}});var z=ie(59301),qe=ie(46214),ve=ie(20047),He=ie(64018),xe=ie(16471),Ce=ie(14185),Ee=ie(76406),Be=ie(15342),Oe=ie(44104),fe=ie(7939),Ge=ie(1012),Ie=ie(86974),yt=ie(59301),Te=({html:rt})=>{const nt=(0,z.useRef)(null),pe=(0,z.useRef)(null),Tt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,z.useEffect)(()=>{const Le=nt.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=rt,Le.appendChild(pe.current);const je=document.createElement("style");return je.textContent=Tt,Le.appendChild(je),()=>{Le.innerHTML=""}},[]),(0,z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=rt)},[rt]),yt.createElement("div",{ref:nt})};function Ne(rt){const nt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],pe=new RegExp(`\\b(${nt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Tt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return rt.replace(pe,"").replace(Tt,"").trim()}var De={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ke=Object.defineProperty,pt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ct=(rt,nt,pe)=>nt in rt?Ke(rt,nt,{enumerable:!0,configurable:!0,writable:!0,value:pe}):rt[nt]=pe,st=(rt,nt)=>{for(var pe in nt||(nt={}))Et.call(nt,pe)&&ct(rt,pe,nt[pe]);if(pt)for(var pe of pt(nt))gt.call(nt,pe)&&ct(rt,pe,nt[pe]);return rt};const Ve="@\u2581\u2581@",Dt="@\u2581@",dt=/<pre[^>]*>/g;function Ye(rt){let nt=document.createElement("div");return nt.innerHTML=rt,nt.childNodes.length===0?"":nt.childNodes[0].nodeValue}const vt=(rt,nt)=>{rt=rt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Le=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return nt?rt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(It,ge,ce,tt,At,St,ke)=>{const Ue=ge||tt||St,Xe=ce||At||ke||"?";return Ce.Z.API_SERVER+"/api/attachments/"+Ue+Xe+"&t="+(0,Ee.Jn)(Ue,Date.now())+(It.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(rt=rt.replace(je,(It,ge,ce,tt,At,St,ke)=>{const Ue=ge||tt||St,Xe=ce||At||ke||"?";return Ce.Z.API_SERVER+"/attachments/download/"+Ue+Xe+"&t="+(0,Ee.Jn)(Ue,Date.now())+(It.indexOf(")")>-1?")":"&")}).replace(pe,(It,ge,ce,tt,At,St,ke)=>{const Ue=ge||tt||St,Xe=ce||At||ke||"?";return Ce.Z.API_SERVER+"/api/attachments/"+Ue+Xe+"&t="+(0,Ee.Jn)(Ue,Date.now())+(It.indexOf(")")>-1?")":"&")}).replace(Tt,(It,ge,ce,tt,At)=>{const St=ge||tt,ke=ce||At||"";return'"'+Ce.Z.API_SERVER+"/api/attachments/"+St+ke+St+ke+"&t="+(0,Ee.Jn)(St,Date.now())}).replace(Le,(It,ge,ce,tt,At)=>{const St=ge||tt,ke=ce||At||"";return"("+Ce.Z.API_SERVER+"/files/uploads/"+St+ke+St+ke+"&t="+(0,Ee.Jn)(St,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),rt)};var Re=({value:rt="",edit:nt=!1,className:pe,showTextOnly:Tt,showLines:Le,style:je={},stylesPrev:It={},highlightKeywords:ge,showProgramFill:ce,isProgramFill:tt,disabledFill:At=!1,programFillValue:St,openEditor:ke=()=>{},onFillChange:Ue=Bt=>{},onFillBlur:Xe=()=>{},onFillFocus:Jt=()=>{}})=>{let Bt=Ne(String(rt||""));const Ht=(0,z.useRef)(),Fe=(0,z.useRef)(),[Rt,ht]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,Ge.Z)()),ne={},he=ft=>/<style[\s\S]*?>/i.test(ft||""),ye=(ft,$t,Me)=>{const Nt=document.createElement(ft===Dt?"input":"textarea");Nt.style.width="100%",Nt.style.height=ft===Dt?"40px":"151px",Nt.rows=5,Nt.spellcheck=!1,Nt.name="edu-program-fill",Nt.placeholder="\u8BF7\u8F93\u5165",Nt.dataset.id=$t;const Vt=Object.keys(ne).length;return ne[Vt]=Nt,`<span class="edu-program-fill-wrap ${ft===Dt?"":"show"}" style="width:${ft===Dt?"600px":"100%"}" title=${Me||""}><span>${Nt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ot(ft){return ft=ft.replace(/!\[.*?\]\(.*?\)/g,""),ft=ft.replace(/\[.*?\]\(.*?\)/g,""),ft=ft.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ft=ft.replace(/<embed.*?>/g,""),ft=ft.replace(/<img.*?>/g,""),ft=ft.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ft=ft.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ft=ft.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ft=ft.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ft}const we=ft=>!Tt&&he(Bt)?ft:ft.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function($t,Me){let Nt=Me.replace(/(\n|\r)/g,"").split("}"),Vt=[];return Nt.map(xn=>{xn!=""&&Vt.push(`.${se.current} ${xn}`)}),`<style>${Vt.join("}")}</style>`}),We=(0,z.useMemo)(()=>{(0,ve.Iy)();try{const Nt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Vt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,xn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xt=/\(\/attachments\/download\//g;Bt=Bt.replace(Xt,"("+Ce.Z.API_SERVER+"/attachments/download/").replace(Nt,"("+Ce.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+Ce.Z.API_SERVER+"/api/attachments/").replace(xn,'"'+Ce.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,`
`),Ht.current.style.display="none"}catch(Nt){}if(ce){let Nt=-1;return Bt=Bt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Vt,xn,Xt){var Pe;return++Nt,ye(Vt,Nt,(Pe=St==null?void 0:St[Nt])==null?void 0:Pe.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${we(Bt||"")}</pre>`}let ft=we(Bt);ft=(0,ve.ZP)(ft);const $t=(0,ve.ez)();Bt.match(/\[TOC\]/)&&(ft=ft.replace("<p>[TOC]</p>",(0,ve.Qv)()),(0,ve.Iy)()),ft=ft.replace(/(__special_katext_id_\d+__)/g,(Nt,Vt)=>{const{type:xn,expression:Xt}=$t[Vt];return(0,Be.renderToString)(Ye(Xt)||"",{displayMode:xn==="block",throwOnError:!1,output:"html"})}),ft=ft.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ve.AL)();const Me=document.createElement("div");if(Me.innerHTML=ft,Tt)return Me.innerText;if(ge){const Nt=ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return at(Me,Nt),Me.innerHTML}return setTimeout(()=>Mt(),500),Me.innerHTML},[Bt,ge]);(0,z.useEffect)(()=>{ut.current&&ut.current.querySelectorAll(["input","textarea"]).forEach($t=>{$t.oninput=it,$t.onblur=wt,$t.onfocus=mt})},[ee]),(0,z.useEffect)(()=>{var ft,$t,Me,Nt,Vt;if(St!=null&&St.length)try{const xn=ut.current.querySelectorAll(".edu-program-fill-score"),Xt=ut.current.querySelectorAll('[name="edu-program-fill"]');for(const[Pe,lt]of Xt.entries())lt.value=((ft=St==null?void 0:St[Pe])==null?void 0:ft.value)||"",(($t=St==null?void 0:St[Pe])==null?void 0:$t.type)==="warning"?lt.className="program-fill-warning":((Me=St==null?void 0:St[Pe])==null?void 0:Me.type)==="success"?lt.className="program-fill-success":lt.className="";for(const[Pe,lt]of xn.entries())lt.innerHTML=(Nt=St==null?void 0:St[Pe])!=null&&Nt.score?`${(Vt=St==null?void 0:St[Pe])==null?void 0:Vt.score}\u5206`:"";oe(St)}catch(xn){console.log(xn,"error")}},[St]);const it=ft=>{ee[ft.target.dataset.id]=ee[ft.target.dataset.id]||{},ee[ft.target.dataset.id].value=ft.target.value,oe([...ee]),Ue(ee,ft.target.dataset.id)},wt=ft=>{ee[ft.target.dataset.id]=ee[ft.target.dataset.id]||{},ee[ft.target.dataset.id].value=ft.target.value,oe([...ee]),Xe(ee,ft.target.dataset.id)},mt=ft=>{ee[ft.target.dataset.id]=ee[ft.target.dataset.id]||{},ee[ft.target.dataset.id].value=ft.target.value,oe([...ee]),Jt(ee,ft.target.dataset.id)};function at(ft,$t){return ft.childNodes.forEach(Me=>{var Nt;if(Me.childNodes.length>0)at(Me,$t);else if(Me.nodeName!=="IMG")if(Me.innerHTML)Me.innerHTML=(Nt=Me.innerHTML)==null?void 0:Nt.replace(new RegExp($t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Vt=document.createElement("span");Vt.innerHTML=Me.textContent.replace(new RegExp($t,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Me.replaceWith(Vt)}})}const ut=(0,z.useRef)();ve.jb.WebkitLineClamp=Le,Le&&(je=st(st({},je),ve.jb));function _e(ft){let $t=ft.target;if($t.tagName.toUpperCase()==="A"){let Me=$t.getAttribute("href");if(Me.indexOf("office")>-1)ft.preventDefault(),ht(Me),te("office");else if(Me.indexOf("application/pdf")>-1)ft.preventDefault(),ht(Me),te("pdf");else if(Me.indexOf("text/html")>-1)ft.preventDefault(),ht(Me),te("html");else if(Me.startsWith("#")){ft.preventDefault();let Nt=document.getElementById(Me.replace("#",""));Nt&&Nt.scrollIntoView(!0)}}}const Mt=()=>{var ft;const $t=(ft=ut.current)==null?void 0:ft.querySelectorAll("video");$t==null||$t.forEach(Me=>{if(Me.oncontextmenu=()=>!1,Me.src.indexOf(".m3u8")>-1&&!Me.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Nt=new xe.ZP;Nt.loadSource(Me.src),Nt.attachMedia(Me)}}})};(0,z.useEffect)(()=>{if(ut.current&&We&&We.match(dt)&&window.PR.prettyPrint(),ut.current)return ut.current.addEventListener("click",_e),()=>{var ft;(ft=ut.current)==null||ft.removeEventListener("click",_e),(0,ve.AL)(),(0,ve.Iy)()}},[We,ut.current,_e]);const Wt=ft=>{ft.target.nodeName==="IMG"&&ft.target.className.indexOf("draw-flowchart")>-1?(Ht.current.style.zIndex=1,Ht.current.style.display="flex",Ht.current.style.width=ft.target.clientWidth+"px",Ht.current.style.height=ft.target.clientHeight+"px",Ht.current.style.top=ft.target.offsetTop+"px",Ht.current.style.left=ft.target.offsetLeft+"px",ft.target.id&&(Fe.current=ft.target.id)):Ht.current.style.display="none"},_t=()=>{Ht.current.style.display="none"};return(0,z.useEffect)(()=>{var ft;const $t=Me=>{Me.preventDefault(),Me.clipboardData.setData("text",window.getSelection().toString())};return(ft=ut.current)==null||ft.addEventListener("copy",$t),()=>{var Me;(Me=ut.current)==null||Me.removeEventListener("copy",$t)}},[ut.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:_t},Tt&&z.createElement("div",{ref:ut,className:`${De.mdBody} `},We),!Tt&&!he(We)&&z.createElement("div",{ref:ut,style:st({},je),onMouseOver:Wt,className:`${pe||""} ${At?"disabled-fill":""} markdown-body ${De.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:We}}),!Tt&&he(We)&&z.createElement(Te,{html:We}),z.createElement("div",{ref:Ht,className:`${De.button} ${nt?"":De.previewFlowChart}`},z.createElement(Oe.Z,null,z.createElement(fe.ZP,{onClick:()=>{nt?ke(Fe.current):(ht(Fe.current),te("flowChart"))}},nt?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(Ie.Z,{close:!0,data:Rt,type:Rt!=null&&Rt.length?ae:"",style:st({},It),onClose:()=>ht("")}))}},28267:function(Ut,Ft,ie){"use strict";ie.d(Ft,{h:function(){return gt}});var z=ie(59301),qe=ie(82326),ve=ie(28284),He=ie(7939),xe=ie(89780),Ce=ie.n(xe),Ee=ie(88319),Be=ie(94896),Oe=Object.defineProperty,fe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Te=(ct,st,Ve)=>st in ct?Oe(ct,st,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):ct[st]=Ve,Ne=(ct,st)=>{for(var Ve in st||(st={}))yt.call(st,Ve)&&Te(ct,Ve,st[Ve]);if(Ie)for(var Ve of Ie(st))Je.call(st,Ve)&&Te(ct,Ve,st[Ve]);return ct},De=(ct,st)=>fe(ct,Ge(st));const Ke=qe.default.Option,pt={labelCol:{span:4},wrapperCol:{span:20}},Et={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"]};Ft.Z=({callback:ct,onCancel:st})=>{const[Ve,Dt]=(0,z.useState)("python");function dt(vt){Dt(Et[vt][1])}function Ye(vt){ct(vt)}return z.createElement(ve.default,De(Ne({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ye,style:{width:500}}),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(qe.default,{getPopupContainer:vt=>vt.parentNode,onChange:dt},Object.keys(Et).map(vt=>z.createElement(Ke,{key:vt,value:vt},Et[vt][0])))),z.createElement(ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(gt,{mode:Ve})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(He.ZP,{type:"ghost",onClick:st},"\u53D6\u6D88")))};function gt({value:ct,onChange:st,mode:Ve,options:Dt={}}){const dt=(0,z.useRef)(),[Ye,vt]=(0,z.useState)();return(0,z.useEffect)(()=>{if(Ye){let Re=function(rt){const nt=rt.getValue();st&&st(nt)};return Ye.on("change",Re),()=>{Ye.off("change",Re)}}},[Ye,st]),(0,z.useEffect)(()=>{Ye&&Ye.setOption("mode",Ve)},[Ye,Ve]),(0,z.useEffect)(()=>{Ye&&(ct!==Ye.getValue()||ct==="")&&setTimeout(()=>{Ye.setValue(ct||"")},300)},[Ye,ct]),(0,z.useEffect)(()=>{if(dt.current&&!Ye){const Re=Ce().fromTextArea(dt.current,Ne({mode:Ve,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Dt));vt(Re)}},[dt.current,Ye]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:dt}))}},39116:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return yn}});var z=ie(59301),qe=ie(44283),ve=ie(89780),He=ie.n(ve),xe=ie(76374),Ce=ie(88319),Ee=ie(6313),Be=ie(25717),Oe=ie(99498),fe=ie(25419),Ge=ie(67549),Ie=ie(35883),yt=({value:Zt="",className:bn,showTextOnly:fn,showLines:Bn,style:Zn={}})=>{const Pn=(0,z.useMemo)(()=>"",[Zt]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Pn}}))},Je=Object.defineProperty,Te=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Et=(Zt,bn,fn)=>bn in Zt?Je(Zt,bn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):Zt[bn]=fn,gt=(Zt,bn)=>{for(var fn in bn||(bn={}))Ke.call(bn,fn)&&Et(Zt,fn,bn[fn]);if(De)for(var fn of De(bn))pt.call(bn,fn)&&Et(Zt,fn,bn[fn]);return Zt},ct=(Zt,bn)=>Te(Zt,Ne(bn));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 Ve({onActionCallback:Zt,title:bn,icon:fn,actionName:Bn,className:Zn="",children:Pn}){function On(){Zt(Bn)}return z.createElement("a",{title:bn,className:Zn,onClick:On},z.createElement("i",{className:`${fn}`}),Pn)}var Dt=({watch:Zt,showNullButton:bn,showNullProgramButton:fn,onActionCallback:Bn,fullScreen:Zn,insertTemp:Pn,hidetoolBar:On,extraUse:Nn})=>{const Cn=[...st,{title:`${Zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!On&&Cn.map((mn,gn)=>z.createElement("li",{key:gn},mn.actionName?z.createElement(Ve,ct(gt({},mn),{onActionCallback:Bn})):z.createElement("span",{className:"v-line"}))),bn?z.createElement("li",null,z.createElement(Ve,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Bn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,fn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(Ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Bn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(Ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Bn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Pn&&z.createElement("li",null,z.createElement(Ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pn}`,onActionCallback:Bn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Nn&&z.createElement("li",null,Nn),z.createElement("li",{className:"btn-full-screen"},z.createElement(Ve,{icon:`${Zn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Zn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Bn})))},dt=ie(88487),Ye=ie(28284),vt=ie(37568),Re=ie(7939),rt=Object.defineProperty,nt=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,It=(Zt,bn,fn)=>bn in Zt?rt(Zt,bn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):Zt[bn]=fn,ge=(Zt,bn)=>{for(var fn in bn||(bn={}))Le.call(bn,fn)&&It(Zt,fn,bn[fn]);if(Tt)for(var fn of Tt(bn))je.call(bn,fn)&&It(Zt,fn,bn[fn]);return Zt},ce=(Zt,bn)=>nt(Zt,pe(bn));const tt={labelCol:{span:4},wrapperCol:{span:20}};var At=({callback:Zt,onCancel:bn})=>{function fn(Bn){Zt(Bn)}return z.createElement(Ye.default,ce(ge({},tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fn,style:{width:500}}),z.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(vt.default,null)),z.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(vt.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Re.ZP,{type:"ghost",onClick:bn},"\u53D6\u6D88")))},St=ie(28267),ke=ie(53332),Ue=ie(62957),Xe=ie(77019),Jt=ie(40254),Bt=ie(59301),Ht=({callback:Zt,onCancel:bn})=>{const fn=document.createElement("canvas"),Bn=fn.getContext("2d");fn.width=1e3,fn.height=800,Bn.fillStyle="#ffffff",Bn.fillRect(0,0,fn.width,fn.height);const Zn=fn.toDataURL("image/png");return Bt.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Bt.createElement(Xe.Z,{style:{height:"100vh"}},Bt.createElement(Jt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Zn,visible:!0,title:String(Date.now())},onOk:Pn=>{Zt({src:Pn.url})},onClose:bn})))},Fe=ie(36207),Rt=ie(5269),ht=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:Zt,editImgId:bn,callback:fn},Bn)=>{let Zn=(0,z.useRef)(),Pn=(0,z.useRef)(),On=(0,z.useRef)(),Nn=(0,z.useRef)(!1);const Cn=(0,z.useRef)(!1);console.log("ref:",Bn);const[mn,gn]=(0,z.useState)(0),[Ct,Gt]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{gn(1)},[]),(0,z.useImperativeHandle)(Bn,()=>({setHeight:Gt})),te.createElement("div",{ref:Cn,className:"body-overflow-initial"},te.createElement(Fe.Z,{width:"100vw",height:Ct,footer:null,closable:!0,placement:"bottom",open:!!mn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Sn=>{fn({src:`/api/attachments/${Sn}`,id:Sn})})},title:te.createElement(Xe.Z,{align:"middle"},te.createElement(Rt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Rt.Z,{onClick:()=>{Gt(Ct==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Rt.Z,{onClick:()=>{window.saveDrawData(Sn=>{if(Sn===null){ht.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}ht.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),fn({src:`/api/attachments/${Sn}`,id:Sn,disabledClose:!0})})}},te.createElement(Re.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${bn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Pn})))}),se=ie(14185),ne=ie(47889),he=ie(4875);const ye=ne.ZP.Group,ot={margin:"0 8px"};var we=({callback:Zt,onCancel:bn})=>{function fn(Bn){Zt(Bn)}return z.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:ot},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:ot},"\u884C\u6570"),z.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(he.Z,null)),z.createElement("span",{style:ot},"\u5217\u6570"),z.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(he.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(Ye.default.Item,{name:"align"},z.createElement(ye,null,z.createElement(ne.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(ne.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(ne.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(ne.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Re.ZP,{type:"ghost",onClick:bn},"\u53D6\u6D88")))},We=ie(58755),it=ie(84915),wt=ie.n(it),at=(0,z.forwardRef)(({use3d:Zt,width:bn,height:fn,callback:Bn,showSaveButton:Zn},Pn)=>{const On=(0,z.useRef)(),Nn=(0,z.useRef)(),[Cn,mn]=(0,z.useState)(!1),gn=(0,z.useRef)({id:On,appName:"graphing",width:bn||1e3,height:fn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{Nn.current=new(wt())(gn.current,!0),window.onload=function(){Nn.current.inject("applet_container")}},[]);const Ct=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return Bn&&Bn(Gt),Gt};return(0,z.useEffect)(()=>{gn.current.appName=Cn?"3D":"graphing",Nn.current.inject("applet_container")},[Cn]),(0,z.useEffect)(()=>{mn(Zt)},[Zt]),(0,z.useImperativeHandle)(Pn,()=>({getImgData:Ct})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:On}),z.createElement(Xe.Z,{align:"middle"},z.createElement(Rt.Z,{flex:1},z.createElement(We.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cn,onChange:Gt=>mn(Gt)})),z.createElement(Rt.Z,null,z.createElement(Re.ZP,{size:"large",onClick:Ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ut=ie(9057);const _e="link",Mt="upload-image",Wt="add-flowchart",_t="draw-image",ft="add-flowchart",$t="code-block",Me="add-table",Nt="------------",Vt={default:Nt,left:`:${Nt}`,center:`:${Nt}:`,right:`${Nt}:`};var xn=ie(79006),Xt=ie(76406);function Pe(){}let lt=0;const xt=1e4,zt="\u2581",tn="@\u2581\u2581@",sn="@\u2581@",Tn=`
**\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`,In=["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 ln(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}const nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[nn+"-B"]:"bold",[nn+"-I"]:"italic"},cn={[_e]:"\u6DFB\u52A0\u94FE\u63A5",[$t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mt]:"\u6DFB\u52A0\u56FE\u7247",[_t]:"\u6DFB\u52A0\u753B\u56FE",[Wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Me]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var yn=({defaultValue:Zt="",onChange:bn,width:fn="100%",height:Bn=400,miniToolbar:Zn=!1,isFocus:Pn=!1,watch:On,insertTemp:Nn,mode:Cn="markdown",id:mn="markdown-editor-id",showResizeBar:gn=!1,noStorage:Ct=!1,showNullButton:Gt=!1,showNullProgramButton:Sn=!1,hidetoolBar:jn=!1,fullScreen:Ae=!1,onBlur:Qe,onCMBeforeChange:be,onFullScreen:$e,className:Se="",disablePaste:ze=!1,disabled:bt=!1,disabledFill:Yt=!1,placeholder:Qt="",values:hn="",extraUse:jt,onAddBlank:Pt})=>{const[kt,en]=(0,z.useState)(null),[kn,wn]=(0,z.useState)(Zt),[En,Xn]=(0,z.useState)(On),[Jn,Qn]=(0,z.useState)(Ae),[_n,Rn]=(0,z.useState)(""),[Hn,Un]=(0,z.useState)(0),[ur,qn]=(0,z.useState)(Bn),[lr,ir]=(0,z.useState)(!1),[er,tr]=(0,z.useState)(0),[gr,mr]=(0,z.useState)(0),cr=(0,z.useRef)(),vr=(0,z.useRef)(),Cr=(0,z.useRef)(),or=(0,z.useRef)(),dr=(0,z.useRef)(),Vn=(0,z.useRef)(),Sr=(0,qe.useDispatch)();(0,z.useEffect)(()=>{const on=window.scrollY||window.pageYOffset;wn(hn),kt==null||kt.setValue(hn),window.scrollTo(0,on)},[hn]),(0,z.useEffect)(()=>{$e==null||$e(Jn)},[Jn]),(0,z.useEffect)(()=>{if(cr.current){let on=function(Ln,An){var rr;if(ze){An.preventDefault();return}const kr=An.clipboardData;if(kr){const br=kr.types.toString(),Mr=kr.items;if(br==="Files"||kr.types.indexOf("Files")>-1){if(An.preventDefault(),Cn=="stex")return;try{let Or=Mr[1];((rr=Mr[0])==null?void 0:rr.kind)==="file"&&(Or=Mr[0]);const Br=Or.getAsFile(),zr=Br.name.split(".").pop();(0,ke.I)(Br,Tr=>{var _r,ti,Oi;Tr.id?((_r=Br==null?void 0:Br.type)==null?void 0:_r.indexOf("image"))>-1?un.replaceSelection(`<img width="100%" src="/api/attachments/${Tr.id}?type=${Tr.content_type})" alt="" />`):((ti=Br==null?void 0:Br.type)==null?void 0:ti.indexOf("video"))>-1?un.replaceSelection(`<video width="100%" controls src="/api/attachments/${Tr.id}"></video>`):((Oi=Br==null?void 0:Br.type)==null?void 0:Oi.indexOf("pdf"))>-1?un.replaceSelection(`<a href="/api/attachments/${Tr.id}?type=${Br.type}&disposition=inline" target="_blank">${Br.name}</a>`):In.includes(zr)?un.replaceSelection(`<a href="/api/attachments/${Tr.id}?type=office&disposition=inline" target="_blank">${Br.name}</a>`):un.replaceSelection(`[${Br.name}](/api/attachments/${Tr.id}?type=${Tr.content_type})`):(Tr==null?void 0:Tr.status)===401&&(document.location.href="/user/login")})}catch(Or){ht.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const un=He().fromTextArea(cr.current,{mode:Cn,lineNumbers:!Zn,lineWrapping:!0,value:Zt,autoCloseTags:!0,autoCloseBrackets:!0});return un.on("keyup",function(Ln,An){An.keyCode===8&&(Ln.getValue()==""?un.setOption("placeholder",Qt):un.setOption("placeholder",null))}),un.on("keydown",function(Ln,An){if(An.keyCode===8){var rr=Wr(Ln);rr&&An.preventDefault()}}),Pn&&un.focus(),un.on("paste",on),bt&&un.on("beforeChange",function(Ln,An){(An.origin==="paste"||An.origin==="+input")&&An.cancel()}),en(un),()=>{un.off("paste",on)}}},[]);const Rr=(0,z.useCallback)(()=>{if(vr.current)try{}catch(on){console.log(on,"---- to set md editor body height")}},[ur,vr,Jn]);(0,z.useEffect)(()=>{function on(){let un=new xe.Z(Ln=>{for(let An of Ln)(An.target.offsetHeight>0||An.target.offsetWidth>0)&&(Rr(),kt.setSize("100%","100%"),kt.refresh())});return un.observe(cr.current.parentElement),un}if(kt){const un=on();return()=>{var Ln,An;(Ln=cr.current)!=null&&Ln.parentElement&&un.unobserve((An=cr.current)==null?void 0:An.parentElement)}}},[kt,Rr]),(0,z.useEffect)(()=>{if(kt){let on=[];for(const[un,Ln]of Object.entries(Mn)){let An={[un]:()=>{Er(Ln)}};on.push(An),kt.addKeyMap(An)}return()=>{for(let un of on)kt.removeKeyMap(un)}}},[kt]),(0,z.useEffect)(()=>{Ae!==Jn&&Qn(Ae)},[Ae]),(0,xn.Z)(()=>{if(!Ct&&Hn>0){let on=new Date().getTime(),un=window.sessionStorage.getItem(mn);on>=Hn+xt&&(!un||un!==kn)&&(window.sessionStorage.setItem(mn,kn),ir(!0))}},xt),(0,z.useEffect)(()=>{Xn(On)},[kt,On]),(0,z.useEffect)(()=>{kt&&Pn&&kt.focus()},[kt,Pn]),(0,z.useEffect)(()=>{if(En&&kt){let on=function(Ln){let An=Ln.target;if(or.current){let rr=An.scrollTop/An.scrollHeight;or.current.scrollTop=or.current.scrollHeight*rr}};const un=kt.getScrollerElement();return un.addEventListener("scroll",on),()=>{un.removeEventListener("scroll",on)}}},[kt,En]),(0,z.useEffect)(()=>{if(kt&&be){let on=function(un,Ln){be(un,Ln)};return kt.on("beforeChange",on),()=>{kt.off("beforeChange",on)}}},[kt,be]),(0,z.useEffect)(()=>{if(kt&&Qe){let on=function(){Qe(kt.getValue())};return kt.on("blur",on),()=>{kt.off("blur",on)}}},[kt,Qe]);function Wr(on,un){var Ln=on.getDoc(),An=Ln.getCursor(),rr=Ln.getLine(An.line),kr=rr.charAt(An.ch-1),br=rr.lastIndexOf("@\u2581@",An.ch),Mr=rr.lastIndexOf("@\u2581\u2581@",An.ch),Or=br>Mr?br:Mr,Br=br>Mr?3:4;if(tn.indexOf(kr)===-1)return null;if(console.log("change1:",un,on,rr,An,Or,br,Mr,kr),Or>=0&&An.ch-Or<5){var zr=Or+Br;return Ln.replaceRange("",{line:An.line,ch:Or},{line:An.line,ch:zr}),{line:An.line,ch:zr}}return null}(0,z.useEffect)(()=>{if(kt){let on=function(un,Ln){const An=un.getValue();wn(An),Un(new Date().getTime()),un.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),bn&&(Sn?bn(An,pn(An)):bn(An))};return kt.on("change",on),()=>{kt.off("change",on)}}},[kt,bn]),(0,z.useEffect)(()=>{if(kt)if(Zt==null)kt.setValue(""),wn("");else{const on=window.scrollY||window.pageYOffset;Zt!==kt.getValue()&&(kt.setValue(Zt),wn(Zt),kt.setCursor(bt?1:kt.lineCount(),0),window.scrollTo(0,on))}},[kt,Zt]);const Er=(0,z.useCallback)(on=>{const un=kt.getCursor(),Ln=kt.getSelection();let An=Ln.split(`
`);switch(on){case"bold":return kt.replaceSelection("**"+Ln+"**"),Ln===""&&kt.setCursor(un.line,un.ch+2),kt.focus();case"italic":return kt.replaceSelection("*"+Ln+"*"),Ln===""&&kt.setCursor(un.line,un.ch+1),kt.focus();case"code":return kt.replaceSelection("`"+Ln+"`"),Ln===""&&kt.setCursor(un.line,un.ch+1),kt.focus();case"inline-latex":return(0,Xt.Ye)(Sr)?void 0:(Rn("inline-latex"),kt.focus());case"latex":return kt.replaceSelection("```latex\n"+Ln+"\n```"),kt.setCursor(un.line+1,Ln.length+1),kt.focus();case"line-break":return kt.replaceSelection(`<br/>
`),kt.focus();case"list-ul":return Ln===""?kt.replaceSelection("- "+Ln):kt.replaceSelection(An.map(rr=>rr===""?"":`- ${rr}`).join(`
`)),kt.focus();case"list-ol":return Ln===""?kt.replaceSelection("1. "+Ln):kt.replaceSelection(An.map((rr,kr)=>rr===""?"":`${kr+1}. ${rr}`).join(`
`)),kt.focus();case"add-null-ch":Pt==null||Pt();return;case"add-signal":return Ln===""&&kt.setCursor(un.line,un.ch),kt.replaceSelection(sn),kt.focus();case"add-multiple":return Ln===""&&kt.setCursor(un.line,un.ch),kt.replaceSelection(tn),kt.focus();case"inster-template-1":return Ln===""&&kt.setCursor(un.line,un.ch),kt.replaceSelection(Tn),kt.focus();case"eraser":return kt.setValue(""),kt.focus();case"trigger-watch":return Xn(!En),kt.focus();case"trigger-full-screen":return Qn(!Jn),kt.focus();case _e:Rn(_e);return;case $t:Rn($t);return;case Mt:Rn(Mt);return;case _t:Rn(_t);return;case"maths-latex":if((0,Xt.Ye)(Sr))return;Rn("maths-latex");return;case Wt:dr.current="",sessionStorage.removeItem("file_id"),Rn(Wt);return;case Me:Rn(Me);return;default:throw new Error}},[kt,En,Jn]),Ar=(0,z.useCallback)((on,un)=>{var Ln,An,rr,kr,br,Mr;on!=null&&on.disabledClose||Rn("");const{src:Or,alt:Br,id:zr}=on||{};switch(_n){case _e:const{title:Fi,link:xi}=on;return kt.replaceSelection(`[${Fi}](${xi})`),kt.focus();case $t:const{language:mi,content:Xi}=on;return kt.replaceSelection(["```"+mi,Xi,"```"].join(`
`)),kt.focus();case"maths-latex":for(var Tr=atob(on),_r=new Uint8Array(Tr.length),ti=0;ti<Tr.length;ti++)_r[ti]=Tr.charCodeAt(ti);var Oi=new Blob([_r],{type:"image/png"});return(0,ke.I)(Oi,vi=>{vi.id?kt.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")}),kt.focus();case"inline-latex":return(0,Xt.Ye)(Sr)?void 0:(kt.replaceSelection("`$$"+on+"$$`"),kt.focus());case ft:return zr?(kt.getValue().indexOf(Or)===-1?kt.replaceSelection(`<center><img id="${zr}" width="80%" src="${Or}" class="draw-flowchart" alt="${Br||""}" /></center>`):document.getElementById(zr).src=se.Z.API_SERVER+Or+"?t="+Date.now(),kt.focus()):void 0;case Mt:case _t:const Lr=un,to=(rr=(An=(Ln=Lr==null?void 0:Lr.name)==null?void 0:Ln.split("."))==null?void 0:An.pop)==null?void 0:rr.call(An);return((kr=Lr==null?void 0:Lr.type)==null?void 0:kr.indexOf("image"))>-1||!(Lr!=null&&Lr.type)?Lr!=null&&Lr.align||Lr!=null&&Lr.width?kt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${Or}" alt="${Br||""}" /></p>`):kt.replaceSelection(`<img width="100%" src="${Or}" alt="${Br||""}" />`):((br=Lr==null?void 0:Lr.type)==null?void 0:br.indexOf("video"))>-1?kt.replaceSelection(`<video width="100%" controls src="${Or}"></video>`):((Mr=Lr==null?void 0:Lr.type)==null?void 0:Mr.indexOf("pdf"))>-1?kt.replaceSelection(`<a href="${Or}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):In.includes(to)?kt.replaceSelection(`<a href="${Or}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):kt.replaceSelection(`[${Lr.name}](${Or})`),kt.focus();case Me:const{row:ni,col:Li,align:ao}=on;let Yi=`
`;for(let vi=0;vi<ni;vi++){let Ai=[],Gr=[];for(let $i=0;$i<Li;$i++)vi===1&&Gr.push(Vt[ao]),Ai.push(" ");vi===1&&(Yi+=`| ${Gr.join(" | ")} |
`),Yi+=`| ${Ai.join(Li===1?"":" | ")} |
`}return kt.replaceSelection(Yi+`
`),kt.focus();default:throw new Error}},[kt,_n]),Ir=(0,z.useMemo)(()=>{switch(_n){case _e:return z.createElement(At,{callback:Ar,onCancel:Dr});case $t:return z.createElement(St.Z,{callback:Ar,onCancel:Dr});case Mt:return z.createElement(ke.Z,{callback:Ar,onCancel:Dr});case Wt:return z.createElement(oe,{editImgId:dr.current,callback:Ar,onCancel:Dr});case Me:return z.createElement(we,{callback:Ar,onCancel:Dr});case"maths-latex":return z.createElement(at,{showSaveButton:!0,callback:Ar});case"inline-latex":return z.createElement(ut.Z,{showSaveButton:!0,callback:Ar});default:return null}},[_n]);function Dr(){Rn("")}(0,z.useEffect)(()=>{if(Cr.current){let on=function(br){rr=!0,kr=br.pageY},un=function(){rr=!1},Ln=function(br){if(rr){let Mr=br.pageY-kr;Mr<0&&(Mr=0),Mr>300&&(Mr=300);let Or=Bn+Mr+"px";qn(Or)}},An=Cr.current,rr=!1,kr=0;return An.addEventListener("mousedown",on),document.addEventListener("mousemove",Ln),document.addEventListener("mouseup",un),()=>{An.removeEventListener("mousedown",on),document.removeEventListener("mousemove",Ln),document.removeEventListener("mouseup",un)}}},[kt,Cr]),(0,z.useEffect)(()=>{qn(Bn)},[Bn]);const $r=ln(fn),fr=ln(ur),Yn={width:$r,height:fr},rn=(0,z.useMemo)(()=>{if(Hn){let on=new Date(Hn),un=on.getHours(),Ln=on.getMinutes(),An=on.getSeconds();return un=un<10?"0"+un:un,Ln=Ln<10?"0"+Ln:Ln,An=An<10?"0"+An:An,`${un}:${Ln}:${An}`}return 0},[Hn]),pn=on=>{const un=[];if(Sn){let Ln=-1;on=on.replace(/(@▁▁@|@▁@)/g,function(An,rr,kr){un.push({multiLine:An!==sn})})}return un};function dn(){window.sessionStorage.removeItem(mn),ir(!1),Un(0)}function Kt(){ir(!1),Un(0),kt.setValue(window.sessionStorage.getItem(mn))}(0,z.useEffect)(()=>{cn[_n]&&_n!==_t&&_n!==Wt&&setTimeout(()=>{const on=document.getElementsByClassName("markdown-popup-form")[0],un=window.innerWidth/2-on.offsetWidth/2,Ln=window.innerHeight/2-on.offsetHeight/2;tr(un),mr(Ln)},0)},[_n]);const Fn=on=>{on.preventDefault();const un=on.clientX-er,Ln=on.clientY-gr;document.body.onmousemove=An=>{let rr=An.clientX-un,kr=An.clientY-Ln;const br=document.getElementsByClassName("markdown-popup-form")[0],Mr=window.innerWidth-br.offsetWidth,Or=window.innerHeight-br.offsetHeight;rr=Math.max(0,Math.min(rr,Mr)),kr=Math.max(0,Math.min(kr,Or)),Wn(An.clientX,An.clientY,un,Ln)&&(tr(rr),mr(kr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wn=(on,un,Ln,An)=>{const rr=document.body.clientHeight,kr=document.body.clientWidth;return on<20&&Ln>on||on>kr-20&&Ln<on||un<20&&An>un||un>rr-20&&An<un?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:vr},z.createElement("div",{className:`markdown-editor-container ${Se} ${En?"on-preview":""} ${Zn?"mini":""} ${Jn?"full-screen":""}`,style:Yn},z.createElement(Dt,{insertTemp:Nn,watch:En,fullScreen:Jn,showNullButton:Gt,showNullProgramButton:Sn,onActionCallback:Er,hidetoolBar:jn,extraUse:jt}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:cr,placeholder:Qt})),En?z.createElement("div",{ref:or,className:"preview-container"},Cn==="stex"&&z.createElement(yt,{value:kn}),Cn!=="stex"&&z.createElement(Ie.Z,{edit:!0,disabledFill:Yt,showProgramFill:Sn,value:kn,openEditor:on=>{var un;dr.current=on,(un=Vn.current)==null||un.setHeight("100vh"),setTimeout(()=>{Rn("add-flowchart")},150)}})):null))),gn?z.createElement("a",{ref:Cr,className:"editor-resize"}):null,_n===_t&&z.createElement(Ht,{callback:Ar,onCancel:Dr}),_n===Wt&&z.createElement(oe,{ref:Vn,editImgId:dr.current,callback:Ar,onCancel:Dr}),z.createElement(dt.Z,null,cn[_n]&&_n!==_t&&_n!==Wt?z.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:gr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Fn},cn[_n]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:_n===Wt?"1200px":null,height:_n===Wt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return st},I:function(){return Dt}});var z=ie(28284),qe=ie(6767),ve=ie(37568),He=ie(44104),xe=ie(4875),Ce=ie(47889),Ee=ie(7939),Be=ie(23216),Oe=ie(59301),fe=ie(59301),Ge=Object.defineProperty,Ie=Object.defineProperties,yt=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,De=(dt,Ye,vt)=>Ye in dt?Ge(dt,Ye,{enumerable:!0,configurable:!0,writable:!0,value:vt}):dt[Ye]=vt,Ke=(dt,Ye)=>{for(var vt in Ye||(Ye={}))Te.call(Ye,vt)&&De(dt,vt,Ye[vt]);if(Je)for(var vt of Je(Ye))Ne.call(Ye,vt)&&De(dt,vt,Ye[vt]);return dt},pt=(dt,Ye)=>Ie(dt,yt(Ye));const{useForm:Et}=z.default,gt={width:280,marginRight:10},ct={labelCol:{span:5},wrapperCol:{span:19}};var st=({callback:dt,onCancel:Ye})=>{const[vt]=Et();let Re=(0,Oe.useRef)();function rt(Tt){Re.current.width=vt.getFieldValue("width"),Re.current.align=vt.getFieldValue("align"),dt(Tt,Re.current)}function nt(Tt,Le){if(Tt.status===-1){qe.ZP.error(Tt.message);return}vt.setFieldsValue({src:`/api/attachments/${Tt.id}`,type:Le.type})}function pe(Tt){let Le=Tt.target.files[0];Re.current=Le,Dt(Le,nt)}return fe.createElement(z.default,pt(Ke({form:vt},ct),{className:"upload-image-panel",onFinish:rt,style:{width:470,overflow:"hidden"}}),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(ve.default,{style:gt})),fe.createElement(Ve,{onFileChange:pe}))),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(ve.default,{style:{width:264}})),fe.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(He.Z,null,fe.createElement(z.default.Item,{name:"width",style:{margin:0}},fe.createElement(xe.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(Ce.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),fe.createElement("aside",null,fe.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Ee.ZP,{type:"default",onClick:Ye},"\u53D6\u6D88"))))};function Ve({onFileChange:dt}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:dt}))}function Dt(dt,Ye){if(!dt)throw new String("\u6CA1\u6709\u6587\u4EF6");let vt=new FormData;vt.append("editormd-image-file",dt),vt.append("file_param_name","editormd-image-file"),vt.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(rt){Ye(JSON.parse(rt.target.responseText),dt)},!1),Re.addEventListener("error",function(rt){console.error(rt)},!1),Re.open("POST",`${Be.KI}/api/attachments.json`),Re.send(vt)}},88487:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return ve}});var z=ie(59301),qe=ie(4676);class ve extends z.Component{constructor(xe){super(xe);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,qe.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Ut,Ft,ie){"use strict";ie.d(Ft,{SV:function(){return Ht},ZP:function(){return Bt}});var z=ie(59301),qe=ie(76374);const ve={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},He={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},xe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <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(`
`)}]},Ce={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(`
`)}]},Ee={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var Be=ie(53184),Oe=ie.n(Be),fe=(Fe,Rt,ht)=>new Promise((ae,te)=>{var ee=ne=>{try{se(ht.next(ne))}catch(he){te(he)}},oe=ne=>{try{se(ht.throw(ne))}catch(he){te(he)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((ht=ht.apply(Fe,Rt)).next())});const Ge={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ie=(Fe,Rt,ht,ae)=>{const te=Rt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ht.lineNumber,endColumn:ht.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Fe.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},yt=(Fe,Rt,ht,ae)=>{Fe.languages.registerCompletionItemProvider(Rt,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ie(Fe,te,ee,se),...ht.map(ye=>({label:ye,kind:Fe.languages.CompletionItemKind.Keyword,documentation:ye,insertText:ye,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(ye=>({label:ye.label,kind:Fe.languages.CompletionItemKind.Snippet,documentation:ye.content,insertText:ne.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Je=Fe=>{Ge.languages.forEach(Rt=>{Fe.languages.registerDocumentFormattingEditProvider(Rt,{provideDocumentFormattingEdits(ht){return fe(this,null,function*(){const ae=Oe()(ht.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:ht.getFullModelRange(),text:ae}]})}})}),yt(Fe,"java",He.keywords,He.quickKey),yt(Fe,"cpp",xe.keywords,xe.quickKey),yt(Fe,"c",ve.keywords,[]),yt(Fe,"python",Ce.keywords,Ce.quickKey),yt(Fe,"scala",Ee.keywords,Ee.quickKey)};const Te="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,De=(Fe,Rt,ht)=>Rt in Fe?Ne(Fe,Rt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Fe[Rt]=ht,Ke=(Fe,Rt,ht)=>De(Fe,typeof Rt!="symbol"?Rt+"":Rt,ht);const pt=class $s{constructor(Rt,ht,ae){this.placeholder=Rt,this.editor=ht,this.monaco=ae,ht.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ke(pt,"ID","editor.widget.placeholderHint");var gt=pt,ct=ie(96236),st=ie(6767),Ve=ie(25399),Dt=ie(78267),dt=ie(33156),Ye=ie(56102),vt=Object.defineProperty,Re=Object.defineProperties,rt=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Le=(Fe,Rt,ht)=>Rt in Fe?vt(Fe,Rt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Fe[Rt]=ht,je=(Fe,Rt)=>{for(var ht in Rt||(Rt={}))pe.call(Rt,ht)&&Le(Fe,ht,Rt[ht]);if(nt)for(var ht of nt(Rt))Tt.call(Rt,ht)&&Le(Fe,ht,Rt[ht]);return Fe},It=(Fe,Rt)=>Re(Fe,rt(Rt)),ge=(Fe,Rt)=>{var ht={};for(var ae in Fe)pe.call(Fe,ae)&&Rt.indexOf(ae)<0&&(ht[ae]=Fe[ae]);if(Fe!=null&&nt)for(var ae of nt(Fe))Rt.indexOf(ae)<0&&Tt.call(Fe,ae)&&(ht[ae]=Fe[ae]);return ht},ce=(Fe,Rt,ht)=>new Promise((ae,te)=>{var ee=ne=>{try{se(ht.next(ne))}catch(he){te(he)}},oe=ne=>{try{se(ht.throw(ne))}catch(he){te(he)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((ht=ht.apply(Fe,Rt)).next())});function tt(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}function At(){}let St=!1;const ke={"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 Ue(Fe=[]){let Rt=Fe;if(Array.isArray(Fe)){for(let ht=0;ht<Fe.length;ht++){let ae=ke[Fe[ht]];if(ae)return ae}return Rt[0]}return ke[Rt]||Rt}let Xe=null;const Jt=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Fe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Fe)}});var Bt=Fe=>{var Rt=Fe,{width:ht="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:he="vs-dark",onEditBlur:ye,isCopy:ot=!1,onSave:we,autoHeight:We=!1,forbidCopy:it=!1,forbidCopyTips:wt,onChange:mt=At,editorDidMount:at=At,onFocus:ut=At,onBreakPoint:_e=At,breakPointValue:Mt=[],filename:Wt="educoder.txt",errorLine:_t,errorContent:ft="",highlightLine:$t,openBreakPoint:Me=!1,placeholder:Nt="",showMiniMap:Vt=!0}=Rt,xn=ge(Rt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Xt=(0,z.useRef)(),Pe=(0,z.useRef)({}),lt=(0,z.useRef)(),xt=(0,z.useRef)(),zt=(0,z.useRef)([]),tn=(0,z.useRef)(!1),sn=(0,z.useRef)(),Tn=(0,z.useRef)(),In=(0,z.useRef)(!1),[ln,an]=(0,z.useState)(!1);function nn(){let Ct;return Xt.current&&(Ct=new qe.Z(Gt=>{for(let Sn of Gt)(Sn.target.offsetHeight>0||Sn.target.offsetWidth>0)&&Pe.current.instance.layout()}),Ct.observe(Xt.current)),Ct}function Mn(){st.ZP.warning({content:decodeURIComponent(wt||Te),key:"monaco-editor-tip"})}const cn=()=>{let Ct=Pe.current.instance;if(te!=null&&Ct&&ln){const Gt=Ct.getModel();Gt&&te!==Gt.getValue()&&(St=!0,Gt.setValue(te),Ct.layout(),St=!1)}};(0,z.useEffect)(()=>{const Ct=dt.Z.subscribe("formatDocument",Gt=>{var Sn;let jn=Pe.current.instance;(Sn=jn==null?void 0:jn.getAction)==null||Sn.call(jn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Gt=>{mt(Gt)},Ct},[]),(0,z.useEffect)(()=>{var Ct;let Gt=Pe.current.instance;xt.current&&clearTimeout(xt.current),xt.current=setTimeout(()=>{cn()},500),te&&(te!=null&&te.length)&&((Ct=Gt==null?void 0:Gt.updateOptions)==null||Ct.call(Gt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,ln,Pe.current]),(0,z.useEffect)(()=>{if(_t&&Pe.current&&Pe.current.instance){let Gt=Pe.current.instance;Gt.changeViewZones(function(Sn){var jn=document.createElement("div");jn.style.padding="10px 20px",jn.style.width="calc(100% - 20px)",jn.className="my-error-line-wrp",jn.innerHTML=ft,Sn.addZone({afterLineNumber:_t||11,heightInLines:3,domNode:jn})});var Ct={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}};Gt.addOverlayWidget(Ct),Gt.revealPositionInCenter({lineNumber:20,column:1})}},[_t,Pe.current,ln]);const yn=(Ct="",Gt)=>{if(!Ct||Ct.trim()==="")return!0;const jn=Pe.current.instance.getModel().getLineTokens(Gt);let Ae=!1;for(let Qe=0;Qe<2;Qe++)jn.getStandardTokenType(Qe)===1&&(Ae=!0);return Ae};(0,z.useEffect)(()=>{var Ct;const Gt=(Ct=Pe.current)==null?void 0:Ct.instance;if(Gt&&ln&&it){const Sn=Gt.onDidBlurEditorWidget(()=>{In.current=!1}),jn=Gt.onDidFocusEditorText(()=>{In.current=!0});return()=>{Sn.dispose(),jn.dispose()}}},[Pe.current,ln,it]),(0,z.useEffect)(()=>{var Ct;if((Ct=Pe.current)!=null&&Ct.instance&&ln&&Me){let Gt=Pe.current.instance,Sn=Gt.getModel();if(!Sn)return;(()=>{var jt;let Pt=[],kt=[];const en=Sn.getAllDecorations();for(let wn of en)wn.options.className==="highlighted-line"&&(Pt.push((jt=wn==null?void 0:wn.range)==null?void 0:jt.startLineNumber),kt.push(wn==null?void 0:wn.id));if($t===Pt[0])return;Sn.deltaDecorations(kt,[]);const kn=Sn.getLineCount();$t&&$t<=kn&&(Gt.deltaDecorations([],[{range:new Xe.Range($t,1,$t,Sn.getLineMaxColumn($t)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Gt.revealLineInCenter($t))})();const Ae=(jt=!1)=>{var Pt;let kt=[],en=[];const kn=Sn.getAllDecorations();for(let wn of kn)wn.options.linesDecorationsClassName==="breakpoints-select"&&(kt.push((Pt=wn==null?void 0:wn.range)==null?void 0:Pt.startLineNumber),en.push(wn==null?void 0:wn.id));if(jt)return{lines:kt,ids:en};_e(kt)},Qe=jt=>ce(void 0,null,function*(){let Pt={range:new Xe.Range(jt,1,jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Sn.deltaDecorations([],[Pt]),Ae()}),be=jt=>ce(void 0,null,function*(){let Pt=[];const kt=Gt.getLineDecorations(jt);for(let en of kt)en.options.linesDecorationsClassName==="breakpoints-select"&&Pt.push(en.id);yield Sn.deltaDecorations(Pt,[]),Ae()}),$e=jt=>{let Pt=Gt.getLineDecorations(jt);for(let kt of Pt)if(kt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Dt.isEqual)(Mt,Ae(!0).lines)){Sn.deltaDecorations(Ae(!0).ids,[]);const jt=Mt.map(Pt=>({range:new Xe.Range(Pt,1,Pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Sn.deltaDecorations([],jt)}const Se=Gt.onDidChangeModelContent(jt=>{let Pt=Gt.getPosition();if(Pt){let kt=Pt.lineNumber;clearTimeout(Tn.current),Tn.current=setTimeout(()=>{yn(Sn.getLineContent(kt),kt)?be(kt):$e(kt)?(be(kt),Qe(kt)):Ae()},100)}}),ze=Gt.onMouseDown(jt=>{var Pt,kt,en;if(jt.target.detail&&((en=(kt=(Pt=jt.target)==null?void 0:Pt.element)==null?void 0:kt.className)!=null&&en.includes("line-numbers"))){let kn=jt.target.position.lineNumber;if(yn(Sn.getLineContent(kn),kn))return;$e(kn)?be(kn):Qe(kn)}}),bt=jt=>{let Pt={range:new Xe.Range(jt,1,jt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};zt.current=Gt.deltaDecorations(zt.current,[Pt])},Yt=()=>{zt.current=Gt.deltaDecorations(zt.current,[])},Qt=Gt.onMouseMove(jt=>{var Pt,kt,en;if(Yt(),jt.target.detail&&((en=(kt=(Pt=jt.target)==null?void 0:Pt.element)==null?void 0:kt.className)!=null&&en.includes("line-numbers"))){let kn=jt.target.position.lineNumber;if(yn(Sn.getLineContent(kn),kn))return;bt(kn)}}),hn=Gt.onMouseLeave(()=>{Yt()});return()=>{Se.dispose(),ze.dispose(),Qt.dispose(),hn.dispose()}}},[Pe.current,ln,Mt,$t,Me,ee]),(0,z.useEffect)(()=>{var Ct;(Ct=Pe.current)!=null&&Ct.instance&&Me&&Pe.current.instance.setPosition({lineNumber:0,column:0})},[$t]);function Zt(){let Ct=Pe.current.instance;if(Ct){const Gt=Ct.getSelection(),Sn=Pe.current.pastePos||{},jn=new Xe.Range(Sn.startLineNumber||Gt.endLineNumber,Sn.startColumn||Gt.endColumn,Sn.endLineNumber||Gt.endLineNumber,Sn.endColumn||Gt.endColumn);setTimeout(()=>{Ct.executeEdits("",[{range:jn,text:""}])},300)}}function bn(Ct){(window.navigator.platform.match("Mac")?Ct.metaKey:Ct.ctrlKey)&&Ct.keyCode==83&&(Ct.preventDefault(),we())}const fn=()=>{if(We&&Pe.current.instance){const Ct=Pe.current.instance.getContentHeight();mn(Ct<ae?ae:Ct)}else mn(ae)};function Bn(Ct){var Gt=document.createEvent("MouseEvents");Gt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ct.dispatchEvent(Gt)}const Zn=Ct=>{if(!In.current)return;const{keyCode:Gt,ctrlKey:Sn,metaKey:jn,target:Ae,type:Qe}=Ct;return(Qe==="paste"||(Gt===67||Gt===86)&&(jn||Sn))&&Ae.nodeName==="TEXTAREA"&&(Mn(),Ct.preventDefault()),!1};function Pn(Ct,Gt){var Sn=window.URL||window.webkitURL||window,jn=new Blob([Gt]),Ae=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ae.href=Sn.createObjectURL(jn),Ae.download=Ct,Bn(Ae)}(0,z.useEffect)(()=>{fn()},[fn]),(0,z.useEffect)(()=>{Xt.current&&!ln&&Promise.all([ie.e(8909),ie.e(5977)]).then(ie.bind(ie,71448)).then(Ct=>{try{Xe=Ct,Pe.current.instance=Xe.editor.create(Xt.current,{value:te,language:Ue(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Vt||!1}},ne);const Gt=Pe.current.instance;let Ae=[...ct.BH._menuItems].find(Se=>Se[0]._debugName=="EditorContext")[1],Qe=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],be=(Se,ze)=>{var bt,Yt;let Qt=Se._first;do ze.includes((Yt=(bt=Qt.element)==null?void 0:bt.command)==null?void 0:Yt.id)&&Se._remove(Qt);while(Qt=Qt.next)};if(at(Gt,Xe),setTimeout(()=>{fn(),Pe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(Wt||"educoder.txt",Gt.getValue())}})},500),Pe.current.subscription=Gt.onDidChangeModelContent(Se=>{tn.current?clearTimeout(sn.current):(fn(),mt(Gt.getValue(),Se)),sn.current=setTimeout(()=>{tn.current=!1},500)}),window.Monaco||Je(Xe,Ue(ee)),it&&(be(Ae,Qe),Xt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Zn),window.removeEventListener("paste",Zn),window.addEventListener("keydown",Zn),window.addEventListener("paste",Zn)),window.Monaco=Xe,ye&&Gt.onDidBlurEditorWidget(()=>{ye(Gt.getValue())}),ut&&Gt.onDidFocusEditorText(()=>{it&&Jt(),ut(Gt.getValue())}),it){Jt();try{Gt.onDidPaste(Se=>{const ze=Gt.getSelection(),bt=Pe.current.pastePos||{},Yt=new Xe.Range(bt.startLineNumber||ze.endLineNumber,bt.startColumn||ze.endColumn,bt.endLineNumber||ze.endLineNumber,bt.endColumn||ze.endColumn);Gt.executeEdits("",[{range:Se.range,text:""}])})}catch(Se){}}let $e=nn();return Nt&&typeof Nt=="string"&&new gt(Nt,Gt,Xe),an(!0),()=>{const Se=Pe.current.instance;Se.dispose();const ze=Se.getModel();ze&&ze.dispose(),Pe.current.subscription&&Pe.current.subscription.dispose(),$e.unobserve(Xt.current)}}catch(Gt){}})},[]),(0,z.useEffect)(()=>{if(Pe.current.instance&&ln)return document.addEventListener("keydown",bn,!1),()=>{document.removeEventListener("keydown",bn)}},[we,ln]),(0,z.useEffect)(()=>{let Ct=Pe.current.instance;if(Ct&&ln){let Gt=Ue(ee);Xe.editor.setModelLanguage(Ct.getModel(),Gt)}},[ee,ln]),(0,z.useEffect)(()=>{Pe.current.instance&&ln&&Xe.editor.setTheme(he)},[he,ln]),(0,z.useEffect)(()=>{let Ct=Pe.current.instance;lt.current=se,Ct&&ln&&(Ct.updateOptions(je({},se)),setTimeout(()=>{Ct.getModel().updateOptions(je({},se))},200))},[JSON.stringify(se),ln]),(0,z.useEffect)(()=>{let Ct=Pe.current.instance;Ct&&ln&&Ct.layout()},[ht,ae,ln]);const[On,Nn]=(0,z.useState)(tt(ht)),[Cn,mn]=(0,z.useState)(tt(ae)),gn=It(je({},oe),{width:On,height:Cn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:Xt,style:gn,onFocus:()=>{it&&Jt()}},ot&&z.createElement(Ye.CopyToClipboard,{text:te,onCopy:()=>st.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(Ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ht({width:Fe="100%",height:Rt="100%",original:ht,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,ne]=(0,z.useState)(null);function he(We){let it;return oe.current&&(it=new qe.Z(wt=>{for(let mt of wt)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&We.layout()}),it.observe(oe.current)),it}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(We=>{Xe=We;const it=Xe.editor.createDiffEditor(oe.current,It(je({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ne(it);let wt=he(it);return()=>{it.dispose();const mt=it.getModel();mt&&mt.dispose(),wt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:Xe.editor.createModel(ht,te),modified:Xe.editor.createModel(ae,te)})},[ht,ae,te,se]);const ye=tt(Fe),ot=tt(Rt),we={width:ye,height:ot};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:we})}},79006:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return qe}});var z=ie(59301);function qe(ve,He){const xe=(0,z.useRef)();(0,z.useEffect)(()=>{xe.current=ve}),(0,z.useEffect)(()=>{function Ce(){xe.current()}if(He!==null){let Ee=setInterval(Ce,He);return()=>clearInterval(Ee)}},[He])}},73567:function(Ut,Ft,ie){"use strict";ie.r(Ft),ie.d(Ft,{default:function(){return mt}});var z=ie(59301),qe=ie(44283),ve=ie(28284),He=ie(6767),xe=ie(37285),Ce=ie(91882),Ee=ie(77019),Be=ie(5269),Oe=ie(25399),fe=ie(37568),Ge=ie(7939),Ie=ie(32134),yt=ie(92216),Je=ie(62957),Te=ie(62673),Ne=ie(82326),De=ie(35883),Ke={flex_box_center:"flex_box_center___z7AIK",flex_space_between:"flex_space_between___zcbqj",flex_box_vertical_center:"flex_box_vertical_center___dTgjR",flex_box_center_end:"flex_box_center_end___z9WhB",flex_box_column:"flex_box_column___fDtsr",wrap:"wrap___fuJ7x",modal:"modal___Gq9oV",titleWrap:"titleWrap___T__HP",required:"required___CzJ8q",title:"title___PM33R",colorGray:"colorGray___jFiKo",choiceWrap:"choiceWrap___Htfyz",answer:"answer___AW61F",activeAnswer:"activeAnswer___Bt5i9",deleteIcon:"deleteIcon___mbWjv",addIcon:"addIcon___K4tkj",editorWrap:"editorWrap___RqcyT",htmlWrap:"htmlWrap___QqgN2",radio:"radio___UBWFG",color333:"color333___bOiTN",color999:"color999___ead_D",questionType:"questionType___VkggW",questionChoices:"questionChoices___Erma4"},pt=Object.defineProperty,Et=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,st=(at,ut,_e)=>ut in at?pt(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:_e}):at[ut]=_e,Ve=(at,ut)=>{for(var _e in ut||(ut={}))gt.call(ut,_e)&&st(at,_e,ut[_e]);if(Et)for(var _e of Et(ut))ct.call(ut,_e)&&st(at,_e,ut[_e]);return at},Dt=(at,ut)=>{var _e={};for(var Mt in at)gt.call(at,Mt)&&ut.indexOf(Mt)<0&&(_e[Mt]=at[Mt]);if(at!=null&&Et)for(var Mt of Et(at))ut.indexOf(Mt)<0&&ct.call(at,Mt)&&(_e[Mt]=at[Mt]);return _e},dt=(at,ut,_e)=>new Promise((Mt,Wt)=>{var _t=Me=>{try{$t(_e.next(Me))}catch(Nt){Wt(Nt)}},ft=Me=>{try{$t(_e.throw(Me))}catch(Nt){Wt(Nt)}},$t=Me=>Me.done?Mt(Me.value):Promise.resolve(Me.value).then(_t,ft);$t((_e=_e.apply(at,ut)).next())});const Ye=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],vt=(at,ut)=>{var _e=at,{problemset:Mt,globalSetting:Wt,loading:_t,dispatch:ft,onRef:$t=()=>{},editData:Me,editKey:Nt,callback:Vt}=_e,xn=Dt(_e,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback"]);const[Xt,Pe]=(0,z.useState)([]),[lt,xt]=(0,z.useState)(),[zt,tn]=(0,z.useState)([]),[sn,Tn]=(0,z.useState)(""),[In,ln]=(0,z.useState)(0),[an,nn]=(0,z.useState)(!0),[Mn,cn]=(0,z.useState)(!1),yn=(0,qe.useParams)(),[Zt,bn]=(0,z.useState)(""),[fn,Bn]=(0,z.useState)("");(0,z.useEffect)(()=>{var mn,gn,Ct,Gt,Sn,jn,Ae,Qe;if(!((mn=Me==null?void 0:Me.question)!=null&&mn.question_title)){Pe([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),nn(!0),Tn(""),cn(!1);return}bn((gn=Me==null?void 0:Me.question)==null?void 0:gn.max_choices),Bn((Ct=Me==null?void 0:Me.question)==null?void 0:Ct.min_choices),Tn((Gt=Me==null?void 0:Me.question)==null?void 0:Gt.question_title),nn(!!((Sn=Me==null?void 0:Me.question)!=null&&Sn.is_necessary)),Pe((jn=Me==null?void 0:Me.question)==null?void 0:jn.answers.map(be=>({value:be.answer_text,disabled:be.answer_text==="\u5176\u5B83"}))),cn(!!((Qe=(Ae=Me==null?void 0:Me.question)==null?void 0:Ae.answers)!=null&&Qe.find(be=>be.answer_text==="\u5176\u5B83")))},[Me]),(0,z.useImperativeHandle)(ut,()=>({onSave:Zn}));const Zn=mn=>dt(void 0,null,function*(){var gn;if(Zt&&!fn||!Zt&&fn){He.ZP.info('\u53EF\u9009\uFF1A\u6700\u5C0F\u548C\u6700\u5927\u9650\u5236\u987B\u540C\u65F6\u4E3A\u6570\u503C\u6216\u8005\u201C--"');return}if(fn>Zt){He.ZP.info("\u53EF\u9009\u7684\u6700\u5927\u9650\u5236\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u9650\u5236");return}if(!sn)return He.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Ct=Xt.findIndex(jn=>!jn.value);if(Ct>-1)return He.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ye[Ct]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let Gt;const Sn={question_title:sn,question_type:2,insert_id:Me.insert_id,is_necessary:Math.ceil(an),max_choices:Zt,min_choices:fn,question_answers:Xt.map(jn=>jn.value)};if((gn=Me.question)!=null&&gn.id?Gt=yield(0,yt.wo)(Ve({pollsId:Me.question.id},Sn)):Gt=yield(0,yt.Fd)(Ve({exercise_bank_id:yn.topicId},Sn)),Gt.status===0){He.ZP.success("\u4FDD\u5B58\u6210\u529F"),Vt("edit",-1);const jn=yield ft({type:"polls/getExerciseBanks",payload:Ve({},yn)});if(mn){Sn.answers=Sn.question_answers.map(Qe=>({answer_text:Qe}));const Ae=[...jn==null?void 0:jn.questions,{question:Ve({type:2,insert_id:Me.question.id,key:Me.key,question_type:2},Sn)}];Vt("addContinue",{editData:Ae})}}}),Pn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],On=mn=>dt(void 0,null,function*(){var gn,Ct;switch(mn.id){case"del":let Gt;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return dt(this,null,function*(){var Sn;yield(0,yt.x$)({pollsId:(Sn=Me==null?void 0:Me.question)==null?void 0:Sn.id}),ft({type:"polls/getExerciseBanks",payload:Ve({},yn)})})}});break;case"up":case"down":yield(0,yt.vf)({pollsId:(gn=Me==null?void 0:Me.question)==null?void 0:gn.id,opr:mn.id}),ft({type:"polls/getExerciseBanks",payload:Ve({},yn)});break;case"edit":Vt("edit",Me.key);break;case"add":Vt("add",{type:2,key:Me.key,insert_id:(Ct=Me==null?void 0:Me.question)==null?void 0:Ct.id,question_type:2});break}}),Nn=()=>{var mn,gn,Ct,Gt;return z.createElement("aside",null,z.createElement("div",{className:Ke.questionType},z.createElement("div",null,z.createElement("span",{className:"font16"},"\u7B2C",Me.key,"\u9898"),z.createElement("span",{className:"font16 c-light-black ml10"},"\u591A\u9009\u9898"),z.createElement("span",{className:"tag-grey-eae ml10 mr10"},((mn=Me==null?void 0:Me.question)==null?void 0:mn.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"),"\u53EF\u9009",(gn=Me==null?void 0:Me.question)==null?void 0:gn.min_choices,"-",(Ct=Me==null?void 0:Me.question)==null?void 0:Ct.max_choices,"\u9879"),Pn.map(function(Sn,jn){return Sn.id==="up"&&Me.key===1||Sn.id==="down"&&Me.key===Me.len?null:z.createElement(Oe.Z,{key:jn,placement:"bottom",title:Sn.name},z.createElement("span",{onClick:()=>On(Sn),className:Sn.icon}))})),z.createElement("div",{className:"mt5"},z.createElement(De.Z,{value:Me.question.question_title})),z.createElement("div",{className:Ke.questionChoices},(Gt=Me==null?void 0:Me.question.answers)==null?void 0:Gt.map(function(Sn,jn){return z.createElement(Ee.Z,null,z.createElement(Be.Z,null,z.createElement(Te.default,{key:jn,disabled:!0},z.createElement("span",{className:"c-black font14"},Sn.answer_text))))})))},Cn=()=>z.createElement("aside",null,z.createElement("div",{className:Ke.questionType},z.createElement("div",null,z.createElement("span",{className:"font16 c-blue"},"\u591A\u9009\u9898")," ",z.createElement(Te.default,{checked:!!an,className:"ml10",onChange:mn=>nn(mn.target.checked)},"\u5FC5\u7B54"))),z.createElement("p",{className:Ke.titleWrap},z.createElement(fe.default.TextArea,{autoSize:{maxRows:5},rows:1,value:sn,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:mn=>Tn(mn.target.value)})),Xt.map((mn,gn)=>z.createElement(Ee.Z,{className:Ke.choiceWrap,key:gn,gutter:[12,12]},z.createElement(Be.Z,null,z.createElement("span",{className:"font16"},"\u9009\u9879")),z.createElement(Be.Z,{className:Ke.editorWrap,flex:"1"},z.createElement(fe.default.TextArea,{autoSize:{maxRows:5},value:Xt[gn].value,rows:1,disabled:!!mn.disabled,onChange:Ct=>{Xt[gn].value=Ct.target.value,Pe([...Xt])}})),z.createElement(Be.Z,null,gn>1&&z.createElement(Oe.Z,{title:"\u5220\u9664"},z.createElement("i",{className:`${Ke.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Pe(Xt.filter((Ct,Gt)=>Gt!==gn)),mn.disabled&&cn(!1)}}))))),z.createElement(Ee.Z,{gutter:[12,12]},z.createElement(Be.Z,null,"\u53EF\u9009"),z.createElement(Be.Z,null,z.createElement(Ne.default,{value:fn||"",style:{width:120},onChange:mn=>Bn(mn)},z.createElement(Ne.default.Option,{value:""},"--"),Xt.map(function(mn,gn){return z.createElement(Ne.default.Option,{value:String(gn+1)},gn+1)})),z.createElement("span",{className:"ml10 mr10"},"~"),z.createElement(Ne.default,{style:{width:120},value:Zt||"",onChange:mn=>bn(mn)},z.createElement(Ne.default.Option,{value:""},"--"),Xt.map(function(mn,gn){return z.createElement(Ne.default.Option,{value:String(gn+1)},gn+1)})),z.createElement("span",{className:"font14 c-grey-999"},"\uFF08\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u7CFB\u7EDF\u5BF9\u5176\u9009\u62E9\u7684\u9009\u9879\u4E2A\u6570\u8FDB\u884C\u9650\u5236\uFF0C--\u8868\u793A\u4E0D\u9650\u5236\uFF09"))),z.createElement(Ee.Z,{gutter:[12,12]},z.createElement(Be.Z,{flex:"1"},z.createElement(Ge.ZP,{type:"default",onClick:()=>{Xt.find(mn=>mn.value==="\u5176\u5B83")?Pe([...Xt.filter(mn=>mn.value!=="\u5176\u5B83"),{value:""},{value:"\u5176\u5B83",disabled:!0}]):Pe([...Xt,{value:""}])}},"\u65B0\u589E\u9009\u9879"),!Mn&&z.createElement(Ge.ZP,{type:"default",className:"ml20",onClick:()=>{Pe([...Xt,{disabled:!0,value:"\u5176\u5B83"}]),cn(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),z.createElement(Be.Z,{className:"tl"},z.createElement(Ge.ZP,{type:"default",onClick:()=>{var mn;(mn=Me.question)!=null&&mn.id?Vt("edit",-1):Vt("del",Me.key)}},"\u53D6\u6D88"),z.createElement(Ge.ZP,{className:"ml20",type:"primary",onClick:()=>Zn()},"\u4FDD\u5B58"),z.createElement(Ge.ZP,{className:"ml20",type:"primary",onClick:()=>Zn(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return z.createElement("section",{className:Ke.wrap},Nt!==Me.key&&Nn(),Nt===Me.key&&Cn())};var Re=(0,qe.connect)(({problemset:at,loading:ut,globalSetting:_e})=>({problemset:at,globalSetting:_e,loading:ut.effects}),null,null,{forwardRef:!0})((0,z.forwardRef)(vt)),rt=ie(47889),nt=Object.defineProperty,pe=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,je=(at,ut,_e)=>ut in at?nt(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:_e}):at[ut]=_e,It=(at,ut)=>{for(var _e in ut||(ut={}))Tt.call(ut,_e)&&je(at,_e,ut[_e]);if(pe)for(var _e of pe(ut))Le.call(ut,_e)&&je(at,_e,ut[_e]);return at},ge=(at,ut)=>{var _e={};for(var Mt in at)Tt.call(at,Mt)&&ut.indexOf(Mt)<0&&(_e[Mt]=at[Mt]);if(at!=null&&pe)for(var Mt of pe(at))ut.indexOf(Mt)<0&&Le.call(at,Mt)&&(_e[Mt]=at[Mt]);return _e},ce=(at,ut,_e)=>new Promise((Mt,Wt)=>{var _t=Me=>{try{$t(_e.next(Me))}catch(Nt){Wt(Nt)}},ft=Me=>{try{$t(_e.throw(Me))}catch(Nt){Wt(Nt)}},$t=Me=>Me.done?Mt(Me.value):Promise.resolve(Me.value).then(_t,ft);$t((_e=_e.apply(at,ut)).next())});const tt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],At=(at,ut)=>{var _e=at,{problemset:Mt,globalSetting:Wt,loading:_t,dispatch:ft,onRef:$t=()=>{},editData:Me,editKey:Nt,callback:Vt}=_e,xn=ge(_e,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback"]);const[Xt,Pe]=(0,z.useState)([]),[lt,xt]=(0,z.useState)(),[zt,tn]=(0,z.useState)([]),[sn,Tn]=(0,z.useState)(""),[In,ln]=(0,z.useState)(0),[an,nn]=(0,z.useState)(!1),[Mn,cn]=(0,z.useState)(!1),yn=(0,qe.useParams)();(0,z.useEffect)(()=>{var Pn,On,Nn,Cn,mn,gn;if(!((Pn=Me==null?void 0:Me.question)!=null&&Pn.question_title)){Pe([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),nn(!1),Tn(""),cn(!1);return}Tn((On=Me==null?void 0:Me.question)==null?void 0:On.question_title),nn(!!((Nn=Me==null?void 0:Me.question)!=null&&Nn.is_necessary)),Pe((Cn=Me==null?void 0:Me.question)==null?void 0:Cn.answers.map(Ct=>({value:Ct.answer_text,disabled:Ct.answer_text==="\u5176\u5B83"}))),cn(!!((gn=(mn=Me==null?void 0:Me.question)==null?void 0:mn.answers)!=null&&gn.find(Ct=>Ct.answer_text==="\u5176\u5B83")))},[Me]),(0,z.useImperativeHandle)(ut,()=>({onSave:Zt}));const Zt=Pn=>ce(void 0,null,function*(){var On;if(!sn)return He.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const Nn=Xt.findIndex(gn=>!gn.value);if(Nn>-1)return He.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${tt[Nn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let Cn;const mn={question_title:sn,question_type:1,insert_id:Me.insert_id,is_necessary:Math.ceil(an),question_answers:Xt.map(gn=>gn.value)};if((On=Me.question)!=null&&On.id?Cn=yield(0,yt.wo)(It({pollsId:Me.question.id},mn)):Cn=yield(0,yt.Fd)(It({exercise_bank_id:yn.topicId},mn)),Cn.status===0){He.ZP.success("\u4FDD\u5B58\u6210\u529F"),Vt("edit",-1);const gn=yield ft({type:"polls/getExerciseBanks",payload:It({},yn)});if(Pn){mn.answers=mn.question_answers.map(Gt=>({answer_text:Gt}));const Ct=[...gn==null?void 0:gn.questions,{question:It({type:1,insert_id:Me.question.id,key:Me.key,question_type:1},mn)}];Vt("addContinue",{editData:Ct})}}}),bn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],fn=Pn=>ce(void 0,null,function*(){var On,Nn;switch(Pn.id){case"del":let Cn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return ce(this,null,function*(){var mn;yield(0,yt.x$)({pollsId:(mn=Me==null?void 0:Me.question)==null?void 0:mn.id}),ft({type:"polls/getExerciseBanks",payload:It({},yn)})})}});break;case"up":case"down":yield(0,yt.vf)({pollsId:(On=Me==null?void 0:Me.question)==null?void 0:On.id,opr:Pn.id}),ft({type:"polls/getExerciseBanks",payload:It({},yn)});break;case"edit":Vt("edit",Me.key);break;case"add":Vt("add",{type:1,key:Me.key,insert_id:(Nn=Me==null?void 0:Me.question)==null?void 0:Nn.id,question_type:1});break}}),Bn=()=>{var Pn,On;return z.createElement("aside",null,z.createElement("div",{className:Ke.questionType},z.createElement("div",null,z.createElement("span",{className:"font16"},"\u7B2C",Me.key,"\u9898"),z.createElement("span",{className:"font16 c-light-black ml10"},"\u5355\u9009\u9898"),z.createElement("span",{className:"tag-grey-eae ml10"},((Pn=Me==null?void 0:Me.question)==null?void 0:Pn.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54")),bn.map(function(Nn,Cn){return Nn.id==="up"&&Me.key===1||Nn.id==="down"&&Me.key===Me.len?null:z.createElement(Oe.Z,{key:Cn,placement:"bottom",title:Nn.name},z.createElement("span",{onClick:()=>fn(Nn),className:Nn.icon}))})),z.createElement("div",{className:"mt5"},z.createElement(De.Z,{value:Me.question.question_title})),z.createElement("div",{className:Ke.questionChoices},(On=Me==null?void 0:Me.question.answers)==null?void 0:On.map(function(Nn,Cn){return z.createElement(Ee.Z,null,z.createElement(Be.Z,null,z.createElement(rt.ZP,{key:Cn,disabled:!0})),z.createElement(Be.Z,{flex:"1"},z.createElement("span",{className:"c-black font14"},Nn.answer_text)))})))},Zn=()=>z.createElement("aside",null,z.createElement("div",{className:Ke.questionType},z.createElement("div",null,z.createElement("span",{className:"font16 c-blue"},"\u5355\u9009\u9898")," ",z.createElement(Te.default,{checked:!!an,className:"ml10",onChange:Pn=>nn(Pn.target.checked)},"\u5FC5\u7B54"))),z.createElement("p",{className:Ke.titleWrap},z.createElement(fe.default.TextArea,{autoSize:{maxRows:5},rows:1,value:sn,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:Pn=>Tn(Pn.target.value)})),Xt.map((Pn,On)=>z.createElement(Ee.Z,{className:Ke.choiceWrap,key:On,gutter:[12,12]},z.createElement(Be.Z,null,z.createElement("span",{className:"font16"},"\u9009\u9879")),z.createElement(Be.Z,{className:Ke.editorWrap,flex:"1"},z.createElement(fe.default.TextArea,{autoSize:{maxRows:5},value:Xt[On].value,rows:1,disabled:!!Pn.disabled,onChange:Nn=>{Xt[On].value=Nn.target.value,Pe([...Xt])}})),z.createElement(Be.Z,null,On>1&&z.createElement(Oe.Z,{title:"\u5220\u9664"},z.createElement("i",{className:`${Ke.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{Pe(Xt.filter((Nn,Cn)=>Cn!==On)),Pn.disabled&&cn(!1)}}))))),z.createElement(Ee.Z,{gutter:[12,12]},z.createElement(Be.Z,{flex:"1"},z.createElement(Ge.ZP,{type:"default",onClick:()=>{Xt.find(Pn=>Pn.value==="\u5176\u5B83")?Pe([...Xt.filter(Pn=>Pn.value!=="\u5176\u5B83"),{value:""},{value:"\u5176\u5B83",disabled:!0}]):Pe([...Xt,{value:""}])}},"\u65B0\u589E\u9009\u9879"),!Mn&&z.createElement(Ge.ZP,{type:"default",className:"ml20",onClick:()=>{Pe([...Xt,{disabled:!0,value:"\u5176\u5B83"}]),cn(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),z.createElement(Be.Z,{className:"tl"},z.createElement(Ge.ZP,{type:"default",onClick:()=>{var Pn;(Pn=Me.question)!=null&&Pn.id?Vt("edit",-1):Vt("del",Me.key)}},"\u53D6\u6D88"),z.createElement(Ge.ZP,{className:"ml20",type:"primary",onClick:()=>Zt()},"\u4FDD\u5B58"),z.createElement(Ge.ZP,{className:"ml20",type:"primary",onClick:()=>Zt(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return z.createElement("section",{className:Ke.wrap},Nt!==Me.key&&Bn(),Nt===Me.key&&Zn())};var St=(0,qe.connect)(({problemset:at,loading:ut,globalSetting:_e})=>({problemset:at,globalSetting:_e,loading:ut.effects}),null,null,{forwardRef:!0})((0,z.forwardRef)(At)),ke=Object.defineProperty,Ue=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,Bt=(at,ut,_e)=>ut in at?ke(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:_e}):at[ut]=_e,Ht=(at,ut)=>{for(var _e in ut||(ut={}))Xe.call(ut,_e)&&Bt(at,_e,ut[_e]);if(Ue)for(var _e of Ue(ut))Jt.call(ut,_e)&&Bt(at,_e,ut[_e]);return at},Fe=(at,ut)=>{var _e={};for(var Mt in at)Xe.call(at,Mt)&&ut.indexOf(Mt)<0&&(_e[Mt]=at[Mt]);if(at!=null&&Ue)for(var Mt of Ue(at))ut.indexOf(Mt)<0&&Jt.call(at,Mt)&&(_e[Mt]=at[Mt]);return _e},Rt=(at,ut,_e)=>new Promise((Mt,Wt)=>{var _t=Me=>{try{$t(_e.next(Me))}catch(Nt){Wt(Nt)}},ft=Me=>{try{$t(_e.throw(Me))}catch(Nt){Wt(Nt)}},$t=Me=>Me.done?Mt(Me.value):Promise.resolve(Me.value).then(_t,ft);$t((_e=_e.apply(at,ut)).next())});const ht=null,ae=(at,ut)=>{var _e=at,{problemset:Mt,globalSetting:Wt,loading:_t,dispatch:ft,onRef:$t=()=>{},editData:Me,editKey:Nt,callback:Vt}=_e,xn=Fe(_e,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback"]);const[Xt,Pe]=(0,z.useState)(""),[lt,xt]=(0,z.useState)(!0),zt=(0,qe.useParams)();(0,z.useEffect)(()=>{var an,nn,Mn;if(!((an=Me==null?void 0:Me.question)!=null&&an.question_title)){xt(!0),Pe("");return}Pe((nn=Me==null?void 0:Me.question)==null?void 0:nn.question_title),xt(!!((Mn=Me==null?void 0:Me.question)!=null&&Mn.is_necessary))},[Me]),(0,z.useImperativeHandle)(ut,()=>({onSave:tn}));const tn=an=>Rt(void 0,null,function*(){var nn;if(!Xt)return He.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;let Mn;const cn={question_title:Xt,question_type:3,insert_id:Me.insert_id,is_necessary:Math.ceil(lt)};if((nn=Me.question)!=null&&nn.id?Mn=yield(0,yt.wo)(Ht({pollsId:Me.question.id},cn)):Mn=yield(0,yt.Fd)(Ht({exercise_bank_id:zt.topicId},cn)),Mn.status===0){He.ZP.success("\u4FDD\u5B58\u6210\u529F"),Vt("edit",-1);const yn=yield ft({type:"polls/getExerciseBanks",payload:Ht({},zt)});if(an){const Zt=[...yn==null?void 0:yn.questions,{question:Ht({type:3,insert_id:Me.question.id,key:Me.key,question_type:3},cn)}];Vt("addContinue",{editData:Zt})}}}),sn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],Tn=an=>Rt(void 0,null,function*(){var nn,Mn;switch(an.id){case"del":let cn;Je.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Rt(this,null,function*(){var yn;yield(0,yt.x$)({pollsId:(yn=Me==null?void 0:Me.question)==null?void 0:yn.id}),ft({type:"polls/getExerciseBanks",payload:Ht({},zt)})})}});break;case"up":case"down":yield(0,yt.vf)({pollsId:(nn=Me==null?void 0:Me.question)==null?void 0:nn.id,opr:an.id}),ft({type:"polls/getExerciseBanks",payload:Ht({},zt)});break;case"edit":Vt("edit",Me.key);break;case"add":Vt("add",{type:3,key:Me.key,insert_id:(Mn=Me==null?void 0:Me.question)==null?void 0:Mn.id,question_type:3});break}}),In=()=>{var an,nn;return z.createElement("aside",null,z.createElement("div",{className:Ke.questionType},z.createElement("div",null,z.createElement("span",{className:"font16"},"\u7B2C",Me.key,"\u9898"),z.createElement("span",{className:"font16 c-light-black ml10"},"\u4E3B\u89C2\u9898"),z.createElement("span",{className:"tag-grey-eae ml10 mr10"},((an=Me==null?void 0:Me.question)==null?void 0:an.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54")),sn.map(function(Mn,cn){return Mn.id==="up"&&Me.key===1||Mn.id==="down"&&Me.key===Me.len?null:z.createElement(Oe.Z,{key:cn,placement:"bottom",title:Mn.name},z.createElement("span",{onClick:()=>Tn(Mn),className:Mn.icon}))})),z.createElement("div",{className:"mt5"},z.createElement(De.Z,{value:Me.question.question_title}),z.createElement("div",{className:"mt15"},z.createElement(fe.default.TextArea,{placeholder:"\u5728\u6B64\u586B\u5165\u7B54\u6848",rows:5,disabled:!0}))),z.createElement("div",{className:Ke.questionChoices},(nn=Me==null?void 0:Me.question.answers)==null?void 0:nn.map(function(Mn,cn){return z.createElement(Ee.Z,null,z.createElement(Be.Z,null,z.createElement(Te.default,{key:cn,disabled:!0},z.createElement("span",{className:"c-black font14"},Mn.answer_text))))})))},ln=()=>z.createElement("aside",null,z.createElement("div",{className:Ke.questionType},z.createElement("div",null,z.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898")," ",z.createElement(Te.default,{checked:!!lt,className:"ml10",onChange:an=>xt(an.target.checked)},"\u5FC5\u7B54"))),z.createElement("p",{className:Ke.titleWrap},z.createElement(fe.default.TextArea,{autoSize:{maxRows:5},rows:1,value:Xt,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:an=>Pe(an.target.value)})),z.createElement(Ee.Z,{gutter:[12,12]},z.createElement(Be.Z,{flex:"1"}),z.createElement(Be.Z,{className:"tl"},z.createElement(Ge.ZP,{type:"default",onClick:()=>{var an;(an=Me.question)!=null&&an.id?Vt("edit",-1):Vt("del",Me.key)}},"\u53D6\u6D88"),z.createElement(Ge.ZP,{className:"ml20",type:"primary",onClick:()=>tn()},"\u4FDD\u5B58"),z.createElement(Ge.ZP,{className:"ml20",type:"primary",onClick:()=>tn(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return z.createElement("section",{className:Ke.wrap},Nt!==Me.key&&In(),Nt===Me.key&&ln())};var te=(0,qe.connect)(({problemset:at,loading:ut,globalSetting:_e})=>({problemset:at,globalSetting:_e,loading:ut.effects}),null,null,{forwardRef:!0})((0,z.forwardRef)(ae)),ee={flex_box_center:"flex_box_center___jFb53",flex_space_between:"flex_space_between___eaFhb",flex_box_vertical_center:"flex_box_vertical_center___Rp5aN",flex_box_center_end:"flex_box_center_end___EpEQ2",flex_box_column:"flex_box_column___hEFHr",bg:"bg___Y7Bmz",containerTitle:"containerTitle___xdxGQ",containerDesc:"containerDesc___pXaV0",listItem:"listItem___P0Hq4",info:"info___nZ3vt",title:"title___p_v5i",titleLeft:"titleLeft___d8_hx",titleRight:"titleRight___xz4zW",acitons:"acitons___BCczQ"},oe=ie(78130),se=Object.defineProperty,ne=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ot=(at,ut,_e)=>ut in at?se(at,ut,{enumerable:!0,configurable:!0,writable:!0,value:_e}):at[ut]=_e,we=(at,ut)=>{for(var _e in ut||(ut={}))he.call(ut,_e)&&ot(at,_e,ut[_e]);if(ne)for(var _e of ne(ut))ye.call(ut,_e)&&ot(at,_e,ut[_e]);return at},We=(at,ut)=>{var _e={};for(var Mt in at)he.call(at,Mt)&&ut.indexOf(Mt)<0&&(_e[Mt]=at[Mt]);if(at!=null&&ne)for(var Mt of ne(at))ut.indexOf(Mt)<0&&ye.call(at,Mt)&&(_e[Mt]=at[Mt]);return _e},it=(at,ut,_e)=>new Promise((Mt,Wt)=>{var _t=Me=>{try{$t(_e.next(Me))}catch(Nt){Wt(Nt)}},ft=Me=>{try{$t(_e.throw(Me))}catch(Nt){Wt(Nt)}},$t=Me=>Me.done?Mt(Me.value):Promise.resolve(Me.value).then(_t,ft);$t((_e=_e.apply(at,ut)).next())});const wt=at=>{var ut=at,{polls:_e,globalSetting:Mt,loading:Wt,user:_t,dispatch:ft}=ut,$t=We(ut,["polls","globalSetting","loading","user","dispatch"]),Me,Nt,Vt,xn,Xt,Pe,lt,xt,zt,tn,sn,Tn;const In=(0,qe.useParams)(),{userInfo:ln}=_t,[an]=ve.default.useForm(),[nn,Mn]=(0,z.useState)([]),[cn,yn]=(0,z.useState)(!1);let[Zt,bn]=(0,z.useState)(-1);const fn=[{name:"\u5355\u9009\u9898",id:1},{name:"\u591A\u9009\u9898",id:2},{name:"\u4E3B\u89C2\u9898",id:3}],Bn=(0,z.useRef)();(0,z.useEffect)(()=>{var Cn,mn,gn,Ct,Gt,Sn;(Cn=_e.exerciseBanks)!=null&&Cn.questions&&(Mn([...(mn=_e.exerciseBanks)==null?void 0:mn.questions]),an.setFieldsValue({exercise_name:(Ct=(gn=_e.exerciseBanks)==null?void 0:gn.poll)==null?void 0:Ct.name,exercise_description:(Sn=(Gt=_e.exerciseBanks)==null?void 0:Gt.poll)==null?void 0:Sn.description}))},[_e.exerciseBanks]),(0,z.useEffect)(()=>{ft({type:"polls/getExerciseBanks",payload:we({},In)})},[In.categoryId]);const Zn=()=>it(void 0,null,function*(){yield an.validateFields();const Cn=an.getFieldValue();Cn.is_md=!0,Cn.topicId=In.topicId,yn(!1),yield(0,yt.hO)(we({},Cn)),ft({type:"polls/getExerciseBanks",payload:we({},In)})}),Pn=Cn=>it(void 0,null,function*(){const mn=Bn==null?void 0:Bn.current;if(Zt!==-1){He.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}bn(nn.length+1),Mn([...nn,{question:{question_type:Cn}}])}),On=(Cn,mn,gn)=>{var Ct;switch(Cn){case"edit":if(mn!==-1&&Zt!==-1&&mn!==Zt){He.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}bn(mn);return;case"add":if(Zt!=-1){He.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}bn(-1);break;case"addContinue":Mn([...mn==null?void 0:mn.editData]),bn((Ct=mn==null?void 0:mn.editData)==null?void 0:Ct.length);break;case"del":nn.splice(mn-1,1),Mn([...nn]),bn(-1);break}},Nn=function(){return nn==null?void 0:nn.map((Cn,mn)=>{var gn;if(Cn.key=mn+1,Cn.len=nn.length,Cn.question.question_type===1)return z.createElement("aside",{key:Cn.id},z.createElement(St,{ref:Bn,editKey:Zt,callback:On,editData:Cn}),z.createElement(xe.Z,null));if(Cn.question.question_type===2)return z.createElement("aside",{key:Cn.id},z.createElement(Re,{ref:Bn,editKey:Zt,callback:On,editData:Cn}),z.createElement(xe.Z,null));if(((gn=Cn.question)==null?void 0:gn.question_type)===3)return z.createElement("aside",{key:Cn.id},z.createElement(te,{ref:Bn,editKey:Zt,callback:On,editData:Cn}),z.createElement(xe.Z,null))})};return z.createElement("section",{className:"edu-container"},z.createElement("section",{className:"animated fadeIn"},z.createElement("aside",{className:"mt10"},ln&&z.createElement(Ce.Z,{separator:">"},z.createElement(Ce.Z.Item,null,z.createElement(qe.Link,{to:`/users/${In.username}/${In.topictype==="personal"?"topics":"topicbank"}/${In.topictype}`},In.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),z.createElement(Ce.Z.Item,null,z.createElement(qe.Link,{to:`/users/${ln==null?void 0:ln.login}/topics/${In.topicId}/${In.topictype}/poll/detail`},"\u8BE6\u60C5")),z.createElement(Ce.Z.Item,null,"\u7F16\u8F91"))),z.createElement("aside",{className:[ee.title,"mt20"].join(" ")},z.createElement(Ee.Z,{style:{width:"100%"}},z.createElement(Be.Z,{flex:"1"},z.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91")),z.createElement(Be.Z,null,z.createElement(qe.Link,{className:"font16 c-light-black",to:`/users/${ln.login}/topics/${In.topictype}`},"\u8FD4\u56DE"))))),z.createElement("section",{className:[ee.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!cn&&z.createElement("aside",null,z.createElement("div",{className:ee.containerDesc},z.createElement("div",null,(Nt=(Me=_e.exerciseBanks)==null?void 0:Me.poll)==null?void 0:Nt.name),z.createElement("div",null,z.createElement(Oe.Z,{title:"\u7F16\u8F91"},z.createElement("span",{onClick:()=>yn(!0),className:"iconfont c-green ml30 icon-bianjidaibeijing"})))),z.createElement(De.Z,{className:"c-light-black",value:(xn=(Vt=_e.exerciseBanks)==null?void 0:Vt.poll)==null?void 0:xn.description})),cn&&z.createElement(ve.default,{layout:"vertical",form:an},z.createElement(ve.default.Item,{name:"exercise_name",label:"\u95EE\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u95EE\u5377\u6807\u9898"}]},z.createElement(fe.default,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),z.createElement(ve.default.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},z.createElement(oe.h,{scrollId:"exercise_description",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),z.createElement(ve.default.Item,{className:"tr"},z.createElement(Ge.ZP,{type:"primary",onClick:()=>{Zn()}},"\u4FDD\u5B58")))),z.createElement("section",{className:"mt20"},z.createElement(Ee.Z,null,z.createElement(Be.Z,{flex:1},z.createElement("span",{className:"c-light-black mr20"},"\u5355\u9009\u9898 ",(Pe=(Xt=_e.exerciseBanks)==null?void 0:Xt.question_types)==null?void 0:Pe.q_singles," \u9898"),z.createElement("span",{className:"c-light-black mr20"},"\u591A\u9009\u9898 ",(xt=(lt=_e.exerciseBanks)==null?void 0:lt.question_types)==null?void 0:xt.q_doubles," \u9898"),z.createElement("span",{className:"c-light-black"},"\u4E3B\u89C2\u9898 ",(tn=(zt=_e.exerciseBanks)==null?void 0:zt.question_types)==null?void 0:tn.q_mains," \u9898")),z.createElement(Be.Z,{className:"c-light-black"},"\u5408\u8BA1 ",z.createElement("span",{className:"c-orange"},(Tn=(sn=_e.exerciseBanks)==null?void 0:sn.question_types)==null?void 0:Tn.q_counts)," \u9898"))),nn!=""&&z.createElement("section",{className:[ee.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Nn()),z.createElement("section",{className:[ee.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},fn.map(function(Cn,mn){return z.createElement(Ge.ZP,{className:"mr20",type:"primary",onClick:()=>Pn(Cn.id)},z.createElement(Ie.Z,{className:"mr5"}),Cn.name)})))};var mt=(0,qe.connect)(({polls:at,loading:ut,user:_e,globalSetting:Mt})=>({polls:at,globalSetting:Mt,user:_e,loading:ut.effects}))(wt)},20047:function(Ut,Ft,ie){"use strict";ie.d(Ft,{AL:function(){return gt},Iy:function(){return Ge},Qv:function(){return Je},ez:function(){return Et},jb:function(){return Ie}});var z=ie(32834),qe=ie.n(z),ve=ie(11690),He=ie.n(ve);let xe=1;function Ce(dt,Ye){const vt=dt.match(/^(\s+)(?:```)/);if(vt===null)return Ye;const Re=vt[1];return Ye.split(`
`).map(rt=>{const nt=rt.match(/^\s+/);if(nt===null)return rt;const[pe]=nt;return pe.length>=Re.length?rt.slice(Re.length):rt}).join(`
`)}let Ee=[],Be=["<ul>"];const Oe=new(qe()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ge(){Ee.length=0,Be=["<ul>"]}const Ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function yt(dt,Ye,vt,Re){if(Ye>=dt.length||dt[Ye].level<=vt)return Ye;var rt=dt[Ye];Re.push("<li><a href='#"+xe+rt.anchor+"'>"+rt.text+"</a>"),Ye++;var nt=[];return Ye=yt(dt,Ye,rt.level,nt),nt.length>0&&(Re.push("<ul>"),nt.forEach(function(pe){Re.push(pe)}),Re.push("</ul>")),Re.push("</li>"),Ye=yt(dt,Ye,vt,Re),Ye}function Je(){return yt(Ee,0,0,Be),Be.push("</ul>"),Be.join("")}const Te={heading(dt){const Ye=fe.exec(dt);if(xe+=1,Ye)return{type:"heading",raw:Ye[0],depth:Ye[1].length,text:Ye[2]}},fences(dt){const Ye=this.rules.block.fences.exec(dt);if(Ye){const vt=Ye[0];let Re=Ce(vt,Ye[3]||"");const rt=Ye[2]?Ye[2].trim():Ye[2];if(["latex","katex","math"].indexOf(rt)>=0){const nt=Ke(),pe=Re;Re=nt,pt[nt]={type:"block",expression:pe}}return{type:"code",raw:vt,lang:rt,text:Re}}}},Ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let De=0;const Ke=()=>`__special_katext_id_${De++}__`;let pt={};function Et(){return pt}function gt(){De=0,pt={}}function ct(dt){return dt=dt.replace(Ne,(Ye,vt)=>{const Re=Ke();return pt[Re]={type:"inline",expression:vt},Re}),dt}const st=Oe.listitem;Oe.listitem=function(dt){return st(ct(dt))};const Ve=Oe.paragraph;Oe.paragraph=function(dt){return Ve(ct(dt))};const Dt=Oe.tablecell;Oe.tablecell=function(dt,Ye){return Dt(ct(dt),Ye)},Oe.code=function(dt,Ye,vt){const Re=(Ye||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${dt}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ye}">${vt?dt:(0,ve.escape)(dt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(vt?dt:(0,ve.escape)(dt,!0))+"</code></pre>"},Oe.heading=function(dt,Ye,vt){let Re=this.options.headerPrefix+vt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:Re,level:Ye,text:dt}),"<h"+Ye+' id="'+xe+Re+'">'+dt+"</h"+Ye+">"},qe().setOptions({silent:!0,gfm:!0,pedantic:!1}),qe().use({tokenizer:Te,renderer:Oe}),Ft.ZP=qe()},86013:function(Ut,Ft,ie){"use strict";var z=ie(59301),qe=ie(19248);const ve=He=>{let xe;return typeof He=="object"&&(He!=null&&He.clearIcon)?xe=He:He&&(xe={clearIcon:z.createElement(qe.Z,null)}),xe};Ft.Z=ve},91882:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Le}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(11592),xe=ie(26112),Ce=ie(22703),Ee=ie(48755),Be=ie(84105),Oe=ie(19563);const fe=je=>{let{children:It}=je;const{getPrefixCls:ge}=z.useContext(Ee.E_),ce=ge("breadcrumb");return z.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},It===""?It:It||"/")};fe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ge=fe,Ie=function(je,It){var ge={};for(var ce in je)Object.prototype.hasOwnProperty.call(je,ce)&&It.indexOf(ce)<0&&(ge[ce]=je[ce]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ce=Object.getOwnPropertySymbols(je);tt<ce.length;tt++)It.indexOf(ce[tt])<0&&Object.prototype.propertyIsEnumerable.call(je,ce[tt])&&(ge[ce[tt]]=je[ce[tt]]);return ge};function yt(je,It){if(je.title===void 0||je.title===null)return null;const ge=Object.keys(It).join("|");return typeof je.title=="object"?je.title:String(je.title).replace(new RegExp(`:(${ge})`,"g"),(ce,tt)=>It[tt]||ce)}function Je(je,It,ge,ce){if(ge==null)return null;const{className:tt,onClick:At}=It,St=Ie(It,["className","onClick"]),ke=Object.assign(Object.assign({},(0,xe.Z)(St,{data:!0,aria:!0})),{onClick:At});return ce!==void 0?z.createElement("a",Object.assign({},ke,{className:ve()(`${je}-link`,tt),href:ce}),ge):z.createElement("span",Object.assign({},ke,{className:ve()(`${je}-link`,tt)}),ge)}function Te(je,It){return(ce,tt,At,St,ke)=>{if(It)return It(ce,tt,At,St);const Ue=yt(ce,tt);return Je(je,ce,Ue,ke)}}var Ne=function(je,It){var ge={};for(var ce in je)Object.prototype.hasOwnProperty.call(je,ce)&&It.indexOf(ce)<0&&(ge[ce]=je[ce]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ce=Object.getOwnPropertySymbols(je);tt<ce.length;tt++)It.indexOf(ce[tt])<0&&Object.prototype.propertyIsEnumerable.call(je,ce[tt])&&(ge[ce[tt]]=je[ce[tt]]);return ge};const De=je=>{const{prefixCls:It,separator:ge="/",children:ce,menu:tt,overlay:At,dropdownProps:St,href:ke}=je,Xe=(Jt=>{if(tt||At){const Bt=Object.assign({},St);if(tt){const Ht=tt||{},{items:Fe}=Ht,Rt=Ne(Ht,["items"]);Bt.menu=Object.assign(Object.assign({},Rt),{items:Fe==null?void 0:Fe.map((ht,ae)=>{var{key:te,title:ee,label:oe,path:se}=ht,ne=Ne(ht,["key","title","label","path"]);let he=oe!=null?oe:ee;return se&&(he=z.createElement("a",{href:`${ke}${se}`},he)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:he})})})}else At&&(Bt.overlay=At);return z.createElement(Oe.Z,Object.assign({placement:"bottom"},Bt),z.createElement("span",{className:`${It}-overlay-link`},Jt,z.createElement(Be.Z,null)))}return Jt})(ce);return Xe!=null?z.createElement(z.Fragment,null,z.createElement("li",null,Xe),ge&&z.createElement(Ge,null,ge)):null},Ke=je=>{const{prefixCls:It,children:ge,href:ce}=je,tt=Ne(je,["prefixCls","children","href"]),{getPrefixCls:At}=z.useContext(Ee.E_),St=At("breadcrumb",It);return z.createElement(De,Object.assign({},tt,{prefixCls:St}),Je(St,tt,ge,ce))};Ke.__ANT_BREADCRUMB_ITEM=!0;var pt=Ke,Et=ie(36237),gt=ie(63356),ct=ie(16931),st=ie(51636);const Ve=je=>{const{componentCls:It,iconCls:ge,calc:ce}=je;return{[It]:Object.assign(Object.assign({},(0,gt.Wf)(je)),{color:je.itemColor,fontSize:je.fontSize,[ge]:{fontSize:je.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:je.linkColor,transition:`color ${je.motionDurationMid}`,padding:`0 ${(0,Et.unit)(je.paddingXXS)}`,borderRadius:je.borderRadiusSM,height:je.fontHeight,display:"inline-block",marginInline:ce(je.marginXXS).mul(-1).equal(),"&:hover":{color:je.linkHoverColor,backgroundColor:je.colorBgTextHover}},(0,gt.Qy)(je)),"li:last-child":{color:je.lastItemColor},[`${It}-separator`]:{marginInline:je.separatorMargin,color:je.separatorColor},[`${It}-link`]:{[`
> ${ge} + span,
> ${ge} + a
`]:{marginInlineStart:je.marginXXS}},[`${It}-overlay-link`]:{borderRadius:je.borderRadiusSM,height:je.fontHeight,display:"inline-block",padding:`0 ${(0,Et.unit)(je.paddingXXS)}`,marginInline:ce(je.marginXXS).mul(-1).equal(),[`> ${ge}`]:{marginInlineStart:je.marginXXS,fontSize:je.fontSizeIcon},"&:hover":{color:je.linkHoverColor,backgroundColor:je.colorBgTextHover,a:{color:je.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${je.componentCls}-rtl`]:{direction:"rtl"}})}},Dt=je=>({itemColor:je.colorTextDescription,lastItemColor:je.colorText,iconFontSize:je.fontSize,linkColor:je.colorTextDescription,linkHoverColor:je.colorText,separatorColor:je.colorTextDescription,separatorMargin:je.marginXS});var dt=(0,ct.I$)("Breadcrumb",je=>{const It=(0,st.mergeToken)(je,{});return Ve(It)},Dt),Ye=function(je,It){var ge={};for(var ce in je)Object.prototype.hasOwnProperty.call(je,ce)&&It.indexOf(ce)<0&&(ge[ce]=je[ce]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ce=Object.getOwnPropertySymbols(je);tt<ce.length;tt++)It.indexOf(ce[tt])<0&&Object.prototype.propertyIsEnumerable.call(je,ce[tt])&&(ge[ce[tt]]=je[ce[tt]]);return ge};function vt(je){const{breadcrumbName:It,children:ge}=je,ce=Ye(je,["breadcrumbName","children"]),tt=Object.assign({title:It},ce);return ge&&(tt.menu={items:ge.map(At=>{var{breadcrumbName:St}=At,ke=Ye(At,["breadcrumbName"]);return Object.assign(Object.assign({},ke),{title:St})})}),tt}function Re(je,It){return(0,z.useMemo)(()=>je||(It?It.map(vt):null),[je,It])}var rt=function(je,It){var ge={};for(var ce in je)Object.prototype.hasOwnProperty.call(je,ce)&&It.indexOf(ce)<0&&(ge[ce]=je[ce]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ce=Object.getOwnPropertySymbols(je);tt<ce.length;tt++)It.indexOf(ce[tt])<0&&Object.prototype.propertyIsEnumerable.call(je,ce[tt])&&(ge[ce[tt]]=je[ce[tt]]);return ge};const nt=(je,It)=>{if(It===void 0)return It;let ge=(It||"").replace(/^\//,"");return Object.keys(je).forEach(ce=>{ge=ge.replace(`:${ce}`,je[ce])}),ge},pe=je=>{const{prefixCls:It,separator:ge="/",style:ce,className:tt,rootClassName:At,routes:St,items:ke,children:Ue,itemRender:Xe,params:Jt={}}=je,Bt=rt(je,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ht,direction:Fe,breadcrumb:Rt}=z.useContext(Ee.E_);let ht;const ae=Ht("breadcrumb",It),[te,ee,oe]=dt(ae),se=Re(ke,St),ne=Te(ae,Xe);if(se&&se.length>0){const ot=[],we=ke||St;ht=se.map((We,it)=>{const{path:wt,key:mt,type:at,menu:ut,overlay:_e,onClick:Mt,className:Wt,separator:_t,dropdownProps:ft}=We,$t=nt(Jt,wt);$t!==void 0&&ot.push($t);const Me=mt!=null?mt:it;if(at==="separator")return z.createElement(Ge,{key:Me},_t);const Nt={},Vt=it===se.length-1;ut?Nt.menu=ut:_e&&(Nt.overlay=_e);let{href:xn}=We;return ot.length&&$t!==void 0&&(xn=`#/${ot.join("/")}`),z.createElement(De,Object.assign({key:Me},Nt,(0,xe.Z)(We,{data:!0,aria:!0}),{className:Wt,dropdownProps:ft,href:xn,separator:Vt?"":ge,onClick:Mt,prefixCls:ae}),ne(We,Jt,we,ot,xn))})}else if(Ue){const ot=(0,He.Z)(Ue).length;ht=(0,He.Z)(Ue).map((we,We)=>{if(!we)return we;const it=We===ot-1;return(0,Ce.Tm)(we,{separator:it?"":ge,key:We})})}const he=ve()(ae,Rt==null?void 0:Rt.className,{[`${ae}-rtl`]:Fe==="rtl"},tt,At,ee,oe),ye=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ce);return te(z.createElement("nav",Object.assign({className:he,style:ye},Bt),z.createElement("ol",null,ht)))};pe.Item=pt,pe.Separator=Ge;var Tt=pe,Le=Tt},62673:function(Ut,Ft,ie){"use strict";ie.d(Ft,{default:function(){return dt}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(16632),xe=ie(8654),Ce=ie(12919),Ee=ie(63872),Be=ie(48755),Oe=ie(2171),fe=ie(83397),Ge=ie(56553),yt=z.createContext(null),Je=ie(36170),Te=ie(74632),Ne=function(Ye,vt){var Re={};for(var rt in Ye)Object.prototype.hasOwnProperty.call(Ye,rt)&&vt.indexOf(rt)<0&&(Re[rt]=Ye[rt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(Ye);nt<rt.length;nt++)vt.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,rt[nt])&&(Re[rt[nt]]=Ye[rt[nt]]);return Re};const De=(Ye,vt)=>{var Re;const{prefixCls:rt,className:nt,rootClassName:pe,children:Tt,indeterminate:Le=!1,style:je,onMouseEnter:It,onMouseLeave:ge,skipGroup:ce=!1,disabled:tt}=Ye,At=Ne(Ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:ke,checkbox:Ue}=z.useContext(Be.E_),Xe=z.useContext(yt),{isFormItemInput:Jt}=z.useContext(Ge.aM),Bt=z.useContext(Oe.Z),Ht=(Re=(Xe==null?void 0:Xe.disabled)||tt)!==null&&Re!==void 0?Re:Bt,Fe=z.useRef(At.value),Rt=z.useRef(null),ht=(0,xe.sQ)(vt,Rt);z.useEffect(()=>{Xe==null||Xe.registerValue(At.value)},[]),z.useEffect(()=>{if(!ce)return At.value!==Fe.current&&(Xe==null||Xe.cancelValue(Fe.current),Xe==null||Xe.registerValue(At.value),Fe.current=At.value),()=>Xe==null?void 0:Xe.cancelValue(At.value)},[At.value]),z.useEffect(()=>{var We;!((We=Rt.current)===null||We===void 0)&&We.input&&(Rt.current.input.indeterminate=Le)},[Le]);const ae=St("checkbox",rt),te=(0,fe.Z)(ae),[ee,oe,se]=(0,Je.ZP)(ae,te),ne=Object.assign({},At);Xe&&!ce&&(ne.onChange=function(){At.onChange&&At.onChange.apply(At,arguments),Xe.toggleOption&&Xe.toggleOption({label:Tt,value:At.value})},ne.name=Xe.name,ne.checked=Xe.value.includes(At.value));const he=ve()(`${ae}-wrapper`,{[`${ae}-rtl`]:ke==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Ht,[`${ae}-wrapper-in-form-item`]:Jt},Ue==null?void 0:Ue.className,nt,pe,se,te,oe),ye=ve()({[`${ae}-indeterminate`]:Le},Ee.A,oe),[ot,we]=(0,Te.Z)(ne.onClick);return ee(z.createElement(Ce.Z,{component:"Checkbox",disabled:Ht},z.createElement("label",{className:he,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),je),onMouseEnter:It,onMouseLeave:ge,onClick:ot},z.createElement(He.Z,Object.assign({},ne,{onClick:we,prefixCls:ae,className:ye,disabled:Ht,ref:ht})),Tt!==void 0&&z.createElement("span",{className:`${ae}-label`},Tt))))};var pt=z.forwardRef(De),Et=ie(77654),gt=ie(2738),ct=function(Ye,vt){var Re={};for(var rt in Ye)Object.prototype.hasOwnProperty.call(Ye,rt)&&vt.indexOf(rt)<0&&(Re[rt]=Ye[rt]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols(Ye);nt<rt.length;nt++)vt.indexOf(rt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ye,rt[nt])&&(Re[rt[nt]]=Ye[rt[nt]]);return Re},Ve=z.forwardRef((Ye,vt)=>{const{defaultValue:Re,children:rt,options:nt=[],prefixCls:pe,className:Tt,rootClassName:Le,style:je,onChange:It}=Ye,ge=ct(Ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:tt}=z.useContext(Be.E_),[At,St]=z.useState(ge.value||Re||[]),[ke,Ue]=z.useState([]);z.useEffect(()=>{"value"in ge&&St(ge.value||[])},[ge.value]);const Xe=z.useMemo(()=>nt.map(ye=>typeof ye=="string"||typeof ye=="number"?{label:ye,value:ye}:ye),[nt]),Jt=ye=>{Ue(ot=>ot.filter(we=>we!==ye))},Bt=ye=>{Ue(ot=>[].concat((0,Et.Z)(ot),[ye]))},Ht=ye=>{const ot=At.indexOf(ye.value),we=(0,Et.Z)(At);ot===-1?we.push(ye.value):we.splice(ot,1),"value"in ge||St(we),It==null||It(we.filter(We=>ke.includes(We)).sort((We,it)=>{const wt=Xe.findIndex(at=>at.value===We),mt=Xe.findIndex(at=>at.value===it);return wt-mt}))},Fe=ce("checkbox",pe),Rt=`${Fe}-group`,ht=(0,fe.Z)(Fe),[ae,te,ee]=(0,Je.ZP)(Fe,ht),oe=(0,gt.Z)(ge,["value","disabled"]),se=nt.length?Xe.map(ye=>z.createElement(pt,{prefixCls:Fe,key:ye.value.toString(),disabled:"disabled"in ye?ye.disabled:ge.disabled,value:ye.value,checked:At.includes(ye.value),onChange:ye.onChange,className:`${Rt}-item`,style:ye.style,title:ye.title,id:ye.id,required:ye.required},ye.label)):rt,ne={toggleOption:Ht,value:At,disabled:ge.disabled,name:ge.name,registerValue:Bt,cancelValue:Jt},he=ve()(Rt,{[`${Rt}-rtl`]:tt==="rtl"},Tt,Le,ee,ht,te);return ae(z.createElement("div",Object.assign({className:he,style:je},oe,{ref:vt}),z.createElement(yt.Provider,{value:ne},se)))});const Dt=pt;Dt.Group=Ve,Dt.__ANT_CHECKBOX=!0;var dt=Dt},36170:function(Ut,Ft,ie){"use strict";ie.d(Ft,{C2:function(){return Ce}});var z=ie(36237),qe=ie(63356),ve=ie(51636),He=ie(16931);const xe=Ee=>{const{checkboxCls:Be}=Ee,Oe=`${Be}-wrapper`;return[{[`${Be}-group`]:Object.assign(Object.assign({},(0,qe.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Oe]:Object.assign(Object.assign({},(0,qe.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Oe}`]:{marginInlineStart:0},[`&${Oe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Be]:Object.assign(Object.assign({},(0,qe.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${Be}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Be}-inner`]:Object.assign({},(0,qe.oN)(Ee))},[`${Be}-inner`]:{boxSizing:"border-box",display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${(0,z.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ee.calc(Ee.checkboxSize).div(14).mul(5).equal(),height:Ee.calc(Ee.checkboxSize).div(14).mul(8).equal(),border:`${(0,z.unit)(Ee.lineWidthBold)} solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${Oe}:not(${Oe}-disabled),
${Be}:not(${Be}-disabled)
`]:{[`&:hover ${Be}-inner`]:{borderColor:Ee.colorPrimary}},[`${Oe}:not(${Oe}-disabled)`]:{[`&:hover ${Be}-checked:not(${Be}-disabled) ${Be}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Be}-checked:not(${Be}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${Be}-checked`]:{[`${Be}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${Oe}-checked:not(${Oe}-disabled),
${Be}-checked:not(${Be}-disabled)
`]:{[`&:hover ${Be}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[Be]:{"&-indeterminate":{[`${Be}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.calc(Ee.fontSizeLG).div(2).equal(),height:Ee.calc(Ee.fontSizeLG).div(2).equal(),backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Be}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorPrimary} !important`}}}},{[`${Oe}-disabled`]:{cursor:"not-allowed"},[`${Be}-disabled`]:{[`&, ${Be}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Be}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${Be}-indeterminate ${Be}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function Ce(Ee,Be){const Oe=(0,ve.mergeToken)(Be,{checkboxCls:`.${Ee}`,checkboxSize:Be.controlInteractiveSize});return[xe(Oe)]}Ft.ZP=(0,He.I$)("Checkbox",(Ee,Be)=>{let{prefixCls:Oe}=Be;return[Ce(Oe,Ee)]})},38406:function(Ut,Ft,ie){"use strict";var z=ie(59301),qe=ie(48755),ve=ie(584);const He=xe=>{const{componentName:Ce}=xe,{getPrefixCls:Ee}=(0,z.useContext)(qe.E_),Be=Ee("empty");switch(Ce){case"Table":case"List":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ve.Z,{image:ve.Z.PRESENTED_IMAGE_SIMPLE,className:`${Be}-small`});case"Table.filter":return null;default:return z.createElement(ve.Z,null)}};Ft.Z=He},37285:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Je}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(48755),xe=ie(36237),Ce=ie(63356),Ee=ie(16931),Be=ie(51636);const Oe=Te=>{const{componentCls:Ne,sizePaddingEdgeHorizontal:De,colorSplit:Ke,lineWidth:pt,textPaddingInline:Et,orientationMargin:gt,verticalMarginInline:ct}=Te;return{[Ne]:Object.assign(Object.assign({},(0,Ce.Wf)(Te)),{borderBlockStart:`${(0,xe.unit)(pt)} solid ${Ke}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ct,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,xe.unit)(pt)} solid ${Ke}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,xe.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,xe.unit)(Te.dividerHorizontalWithTextGutterMargin)} 0`,color:Te.colorTextHeading,fontWeight:500,fontSize:Te.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ke}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,xe.unit)(pt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ne}-with-text-start`]:{"&::before":{width:`calc(${gt} * 100%)`},"&::after":{width:`calc(100% - ${gt} * 100%)`}},[`&-horizontal${Ne}-with-text-end`]:{"&::before":{width:`calc(100% - ${gt} * 100%)`},"&::after":{width:`calc(${gt} * 100%)`}},[`${Ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Et},"&-dashed":{background:"none",borderColor:Ke,borderStyle:"dashed",borderWidth:`${(0,xe.unit)(pt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ne}-dashed`]:{borderInlineStartWidth:pt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ke,borderStyle:"dotted",borderWidth:`${(0,xe.unit)(pt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ne}-dotted`]:{borderInlineStartWidth:pt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ne}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${Ne}-with-text-start${Ne}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ne}-inner-text`]:{paddingInlineStart:De}},[`&-horizontal${Ne}-with-text-end${Ne}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ne}-inner-text`]:{paddingInlineEnd:De}}})}},fe=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var Ge=(0,Ee.I$)("Divider",Te=>{const Ne=(0,Be.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[Oe(Ne)]},fe,{unitless:{orientationMargin:!0}}),Ie=function(Te,Ne){var De={};for(var Ke in Te)Object.prototype.hasOwnProperty.call(Te,Ke)&&Ne.indexOf(Ke)<0&&(De[Ke]=Te[Ke]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Ke=Object.getOwnPropertySymbols(Te);pt<Ke.length;pt++)Ne.indexOf(Ke[pt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Ke[pt])&&(De[Ke[pt]]=Te[Ke[pt]]);return De},Je=Te=>{const{getPrefixCls:Ne,direction:De,className:Ke,style:pt}=(0,He.dj)("divider"),{prefixCls:Et,type:gt="horizontal",orientation:ct="center",orientationMargin:st,className:Ve,rootClassName:Dt,children:dt,dashed:Ye,variant:vt="solid",plain:Re,style:rt}=Te,nt=Ie(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),pe=Ne("divider",Et),[Tt,Le,je]=Ge(pe),It=!!dt,ge=z.useMemo(()=>ct==="left"?De==="rtl"?"end":"start":ct==="right"?De==="rtl"?"start":"end":ct,[De,ct]),ce=ge==="start"&&st!=null,tt=ge==="end"&&st!=null,At=ve()(pe,Ke,Le,je,`${pe}-${gt}`,{[`${pe}-with-text`]:It,[`${pe}-with-text-${ge}`]:It,[`${pe}-dashed`]:!!Ye,[`${pe}-${vt}`]:vt!=="solid",[`${pe}-plain`]:!!Re,[`${pe}-rtl`]:De==="rtl",[`${pe}-no-default-orientation-margin-start`]:ce,[`${pe}-no-default-orientation-margin-end`]:tt},Ve,Dt),St=z.useMemo(()=>typeof st=="number"?st:/^\d+$/.test(st)?Number(st):st,[st]),ke={marginInlineStart:ce?St:void 0,marginInlineEnd:tt?St:void 0};return Tt(z.createElement("div",Object.assign({className:At,style:Object.assign(Object.assign({},pt),rt)},nt,{role:"separator"}),dt&&gt!=="vertical"&&z.createElement("span",{className:`${pe}-inner-text`,style:ke},dt)))}},36207:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return ot}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(85899),xe=ie(72190),Ce=ie(43403),Ee=ie(34280),Be=z.createContext(null),Oe=z.createContext({}),fe=Be,Ge=ie(18642),Ie=ie(60499),yt=ie(77900),Je=ie(10228),Te=ie(26112),Ne=ie(42244),De=ie(8654),Ke=["prefixCls","className","containerRef"],pt=function(We){var it=We.prefixCls,wt=We.className,mt=We.containerRef,at=(0,Ne.Z)(We,Ke),ut=z.useContext(Oe),_e=ut.panel,Mt=(0,De.x1)(_e,mt);return z.createElement("div",(0,Ie.Z)({className:ve()("".concat(it,"-content"),wt),role:"dialog",ref:Mt},(0,Te.Z)(We,{aria:!0}),{"aria-modal":"true"},at))},Et=pt,gt=ie(48736);function ct(we){return typeof we=="string"&&String(Number(we))===we?((0,gt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(we)):we}function st(we){warning(!("wrapperClassName"in we),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!we.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Dt(we,We){var it,wt,mt,at=we.prefixCls,ut=we.open,_e=we.placement,Mt=we.inline,Wt=we.push,_t=we.forceRender,ft=we.autoFocus,$t=we.keyboard,Me=we.classNames,Nt=we.rootClassName,Vt=we.rootStyle,xn=we.zIndex,Xt=we.className,Pe=we.id,lt=we.style,xt=we.motion,zt=we.width,tn=we.height,sn=we.children,Tn=we.mask,In=we.maskClosable,ln=we.maskMotion,an=we.maskClassName,nn=we.maskStyle,Mn=we.afterOpenChange,cn=we.onClose,yn=we.onMouseEnter,Zt=we.onMouseOver,bn=we.onMouseLeave,fn=we.onClick,Bn=we.onKeyDown,Zn=we.onKeyUp,Pn=we.styles,On=we.drawerRender,Nn=z.useRef(),Cn=z.useRef(),mn=z.useRef();z.useImperativeHandle(We,function(){return Nn.current});var gn=function(Pt){var kt=Pt.keyCode,en=Pt.shiftKey;switch(kt){case Je.Z.TAB:{if(kt===Je.Z.TAB){if(!en&&document.activeElement===mn.current){var kn;(kn=Cn.current)===null||kn===void 0||kn.focus({preventScroll:!0})}else if(en&&document.activeElement===Cn.current){var wn;(wn=mn.current)===null||wn===void 0||wn.focus({preventScroll:!0})}}break}case Je.Z.ESC:{cn&&$t&&(Pt.stopPropagation(),cn(Pt));break}}};z.useEffect(function(){if(ut&&ft){var jt;(jt=Nn.current)===null||jt===void 0||jt.focus({preventScroll:!0})}},[ut]);var Ct=z.useState(!1),Gt=(0,xe.Z)(Ct,2),Sn=Gt[0],jn=Gt[1],Ae=z.useContext(fe),Qe;typeof Wt=="boolean"?Qe=Wt?{}:{distance:0}:Qe=Wt||{};var be=(it=(wt=(mt=Qe)===null||mt===void 0?void 0:mt.distance)!==null&&wt!==void 0?wt:Ae==null?void 0:Ae.pushDistance)!==null&&it!==void 0?it:180,$e=z.useMemo(function(){return{pushDistance:be,push:function(){jn(!0)},pull:function(){jn(!1)}}},[be]);z.useEffect(function(){if(ut){var jt;Ae==null||(jt=Ae.push)===null||jt===void 0||jt.call(Ae)}else{var Pt;Ae==null||(Pt=Ae.pull)===null||Pt===void 0||Pt.call(Ae)}},[ut]),z.useEffect(function(){return function(){var jt;Ae==null||(jt=Ae.pull)===null||jt===void 0||jt.call(Ae)}},[]);var Se=Tn&&z.createElement(yt.default,(0,Ie.Z)({key:"mask"},ln,{visible:ut}),function(jt,Pt){var kt=jt.className,en=jt.style;return z.createElement("div",{className:ve()("".concat(at,"-mask"),kt,Me==null?void 0:Me.mask,an),style:(0,He.Z)((0,He.Z)((0,He.Z)({},en),nn),Pn==null?void 0:Pn.mask),onClick:In&&ut?cn:void 0,ref:Pt})}),ze=typeof xt=="function"?xt(_e):xt,bt={};if(Sn&&be)switch(_e){case"top":bt.transform="translateY(".concat(be,"px)");break;case"bottom":bt.transform="translateY(".concat(-be,"px)");break;case"left":bt.transform="translateX(".concat(be,"px)");break;default:bt.transform="translateX(".concat(-be,"px)");break}_e==="left"||_e==="right"?bt.width=ct(zt):bt.height=ct(tn);var Yt={onMouseEnter:yn,onMouseOver:Zt,onMouseLeave:bn,onClick:fn,onKeyDown:Bn,onKeyUp:Zn},Qt=z.createElement(yt.default,(0,Ie.Z)({key:"panel"},ze,{visible:ut,forceRender:_t,onVisibleChanged:function(Pt){Mn==null||Mn(Pt)},removeOnLeave:!1,leavedClassName:"".concat(at,"-content-wrapper-hidden")}),function(jt,Pt){var kt=jt.className,en=jt.style,kn=z.createElement(Et,(0,Ie.Z)({id:Pe,containerRef:Pt,prefixCls:at,className:ve()(Xt,Me==null?void 0:Me.content),style:(0,He.Z)((0,He.Z)({},lt),Pn==null?void 0:Pn.content)},(0,Te.Z)(we,{aria:!0}),Yt),sn);return z.createElement("div",(0,Ie.Z)({className:ve()("".concat(at,"-content-wrapper"),Me==null?void 0:Me.wrapper,kt),style:(0,He.Z)((0,He.Z)((0,He.Z)({},bt),en),Pn==null?void 0:Pn.wrapper)},(0,Te.Z)(we,{data:!0})),On?On(kn):kn)}),hn=(0,He.Z)({},Vt);return xn&&(hn.zIndex=xn),z.createElement(fe.Provider,{value:$e},z.createElement("div",{className:ve()(at,"".concat(at,"-").concat(_e),Nt,(0,Ge.Z)((0,Ge.Z)({},"".concat(at,"-open"),ut),"".concat(at,"-inline"),Mt)),style:hn,tabIndex:-1,ref:Nn,onKeyDown:gn},Se,z.createElement("div",{tabIndex:0,ref:Cn,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),Qt,z.createElement("div",{tabIndex:0,ref:mn,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var dt=z.forwardRef(Dt),Ye=dt,vt=function(We){var it=We.open,wt=it===void 0?!1:it,mt=We.prefixCls,at=mt===void 0?"rc-drawer":mt,ut=We.placement,_e=ut===void 0?"right":ut,Mt=We.autoFocus,Wt=Mt===void 0?!0:Mt,_t=We.keyboard,ft=_t===void 0?!0:_t,$t=We.width,Me=$t===void 0?378:$t,Nt=We.mask,Vt=Nt===void 0?!0:Nt,xn=We.maskClosable,Xt=xn===void 0?!0:xn,Pe=We.getContainer,lt=We.forceRender,xt=We.afterOpenChange,zt=We.destroyOnClose,tn=We.onMouseEnter,sn=We.onMouseOver,Tn=We.onMouseLeave,In=We.onClick,ln=We.onKeyDown,an=We.onKeyUp,nn=We.panelRef,Mn=z.useState(!1),cn=(0,xe.Z)(Mn,2),yn=cn[0],Zt=cn[1],bn=z.useState(!1),fn=(0,xe.Z)(bn,2),Bn=fn[0],Zn=fn[1];(0,Ee.Z)(function(){Zn(!0)},[]);var Pn=Bn?wt:!1,On=z.useRef(),Nn=z.useRef();(0,Ee.Z)(function(){Pn&&(Nn.current=document.activeElement)},[Pn]);var Cn=function(Sn){var jn;if(Zt(Sn),xt==null||xt(Sn),!Sn&&Nn.current&&!((jn=On.current)!==null&&jn!==void 0&&jn.contains(Nn.current))){var Ae;(Ae=Nn.current)===null||Ae===void 0||Ae.focus({preventScroll:!0})}},mn=z.useMemo(function(){return{panel:nn}},[nn]);if(!lt&&!yn&&!Pn&&zt)return null;var gn={onMouseEnter:tn,onMouseOver:sn,onMouseLeave:Tn,onClick:In,onKeyDown:ln,onKeyUp:an},Ct=(0,He.Z)((0,He.Z)({},We),{},{open:Pn,prefixCls:at,placement:_e,autoFocus:Wt,keyboard:ft,width:Me,mask:Vt,maskClosable:Xt,inline:Pe===!1,afterOpenChange:Cn,ref:On},gn);return z.createElement(Oe.Provider,{value:mn},z.createElement(Ce.Z,{open:Pn||lt||yn,autoDestroy:!1,getContainer:Pe,autoLock:Vt&&(Pn||yn)},z.createElement(Ye,Ct)))},Re=vt,rt=Re,nt=ie(62487),pe=ie(75030),Tt=ie(86641),Le=ie(55743),je=ie(48755),It=ie(91190),ge=ie(78776),ce=ie(458),At=we=>{var We,it;const{prefixCls:wt,title:mt,footer:at,extra:ut,loading:_e,onClose:Mt,headerStyle:Wt,bodyStyle:_t,footerStyle:ft,children:$t,classNames:Me,styles:Nt}=we,Vt=(0,je.dj)("drawer"),xn=z.useCallback(zt=>z.createElement("button",{type:"button",onClick:Mt,"aria-label":"Close",className:`${wt}-close`},zt),[Mt]),[Xt,Pe]=(0,ge.Z)((0,ge.w)(we),(0,ge.w)(Vt),{closable:!0,closeIconRender:xn}),lt=z.useMemo(()=>{var zt,tn;return!mt&&!Xt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(zt=Vt.styles)===null||zt===void 0?void 0:zt.header),Wt),Nt==null?void 0:Nt.header),className:ve()(`${wt}-header`,{[`${wt}-header-close-only`]:Xt&&!mt&&!ut},(tn=Vt.classNames)===null||tn===void 0?void 0:tn.header,Me==null?void 0:Me.header)},z.createElement("div",{className:`${wt}-header-title`},Pe,mt&&z.createElement("div",{className:`${wt}-title`},mt)),ut&&z.createElement("div",{className:`${wt}-extra`},ut))},[Xt,Pe,ut,Wt,wt,mt]),xt=z.useMemo(()=>{var zt,tn;if(!at)return null;const sn=`${wt}-footer`;return z.createElement("div",{className:ve()(sn,(zt=Vt.classNames)===null||zt===void 0?void 0:zt.footer,Me==null?void 0:Me.footer),style:Object.assign(Object.assign(Object.assign({},(tn=Vt.styles)===null||tn===void 0?void 0:tn.footer),ft),Nt==null?void 0:Nt.footer)},at)},[at,ft,wt]);return z.createElement(z.Fragment,null,lt,z.createElement("div",{className:ve()(`${wt}-body`,Me==null?void 0:Me.body,(We=Vt.classNames)===null||We===void 0?void 0:We.body),style:Object.assign(Object.assign(Object.assign({},(it=Vt.styles)===null||it===void 0?void 0:it.body),_t),Nt==null?void 0:Nt.body)},_e?z.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${wt}-body-skeleton`}):$t),xt)},St=ie(36237),ke=ie(63356),Ue=ie(16931),Xe=ie(51636);const Jt=we=>{const We="100%";return{left:`translateX(-${We})`,right:`translateX(${We})`,top:`translateY(-${We})`,bottom:`translateY(${We})`}[we]},Bt=(we,We)=>({"&-enter, &-appear":Object.assign(Object.assign({},we),{"&-active":We}),"&-leave":Object.assign(Object.assign({},We),{"&-active":we})}),Ht=(we,We)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${We}`}}},Bt({opacity:we},{opacity:1})),Fe=(we,We)=>[Ht(.7,We),Bt({transform:Jt(we)},{transform:"none"})];var ht=we=>{const{componentCls:We,motionDurationSlow:it}=we;return{[We]:{[`${We}-mask-motion`]:Ht(0,it),[`${We}-panel-motion`]:["left","right","top","bottom"].reduce((wt,mt)=>Object.assign(Object.assign({},wt),{[`&-${mt}`]:Fe(mt,it)}),{})}}};const ae=we=>{const{borderRadiusSM:We,componentCls:it,zIndexPopup:wt,colorBgMask:mt,colorBgElevated:at,motionDurationSlow:ut,motionDurationMid:_e,paddingXS:Mt,padding:Wt,paddingLG:_t,fontSizeLG:ft,lineHeightLG:$t,lineWidth:Me,lineType:Nt,colorSplit:Vt,marginXS:xn,colorIcon:Xt,colorIconHover:Pe,colorBgTextHover:lt,colorBgTextActive:xt,colorText:zt,fontWeightStrong:tn,footerPaddingBlock:sn,footerPaddingInline:Tn,calc:In}=we,ln=`${it}-content-wrapper`;return{[it]:{position:"fixed",inset:0,zIndex:wt,pointerEvents:"none",color:zt,"&-pure":{position:"relative",background:at,display:"flex",flexDirection:"column",[`&${it}-left`]:{boxShadow:we.boxShadowDrawerLeft},[`&${it}-right`]:{boxShadow:we.boxShadowDrawerRight},[`&${it}-top`]:{boxShadow:we.boxShadowDrawerUp},[`&${it}-bottom`]:{boxShadow:we.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${it}-mask`]:{position:"absolute",inset:0,zIndex:wt,background:mt,pointerEvents:"auto"},[ln]:{position:"absolute",zIndex:wt,maxWidth:"100vw",transition:`all ${ut}`,"&-hidden":{display:"none"}},[`&-left > ${ln}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:we.boxShadowDrawerLeft},[`&-right > ${ln}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:we.boxShadowDrawerRight},[`&-top > ${ln}`]:{top:0,insetInline:0,boxShadow:we.boxShadowDrawerUp},[`&-bottom > ${ln}`]:{bottom:0,insetInline:0,boxShadow:we.boxShadowDrawerDown},[`${it}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:at,pointerEvents:"auto"},[`${it}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,St.unit)(Wt)} ${(0,St.unit)(_t)}`,fontSize:ft,lineHeight:$t,borderBottom:`${(0,St.unit)(Me)} ${Nt} ${Vt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${it}-extra`]:{flex:"none"},[`${it}-close`]:Object.assign({display:"inline-flex",width:In(ft).add(Mt).equal(),height:In(ft).add(Mt).equal(),borderRadius:We,justifyContent:"center",alignItems:"center",marginInlineEnd:xn,color:Xt,fontWeight:tn,fontSize:ft,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${_e}`,textRendering:"auto","&:hover":{color:Pe,backgroundColor:lt,textDecoration:"none"},"&:active":{backgroundColor:xt}},(0,ke.Qy)(we)),[`${it}-title`]:{flex:1,margin:0,fontWeight:we.fontWeightStrong,fontSize:ft,lineHeight:$t},[`${it}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_t,overflow:"auto",[`${it}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${it}-footer`]:{flexShrink:0,padding:`${(0,St.unit)(sn)} ${(0,St.unit)(Tn)}`,borderTop:`${(0,St.unit)(Me)} ${Nt} ${Vt}`},"&-rtl":{direction:"rtl"}}}},te=we=>({zIndexPopup:we.zIndexPopupBase,footerPaddingBlock:we.paddingXS,footerPaddingInline:we.padding});var ee=(0,Ue.I$)("Drawer",we=>{const We=(0,Xe.mergeToken)(we,{});return[ae(We),ht(We)]},te),oe=function(we,We){var it={};for(var wt in we)Object.prototype.hasOwnProperty.call(we,wt)&&We.indexOf(wt)<0&&(it[wt]=we[wt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,wt=Object.getOwnPropertySymbols(we);mt<wt.length;mt++)We.indexOf(wt[mt])<0&&Object.prototype.propertyIsEnumerable.call(we,wt[mt])&&(it[wt[mt]]=we[wt[mt]]);return it};const se=null,ne={distance:180},he=we=>{var We;const{rootClassName:it,width:wt,height:mt,size:at="default",mask:ut=!0,push:_e=ne,open:Mt,afterOpenChange:Wt,onClose:_t,prefixCls:ft,getContainer:$t,style:Me,className:Nt,visible:Vt,afterVisibleChange:xn,maskStyle:Xt,drawerStyle:Pe,contentWrapperStyle:lt}=we,xt=oe(we,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:zt,getPrefixCls:tn,direction:sn,className:Tn,style:In,classNames:ln,styles:an}=(0,je.dj)("drawer"),nn=tn("drawer",ft),[Mn,cn,yn]=ee(nn),Zt=$t===void 0&&zt?()=>zt(document.body):$t,bn=ve()({"no-mask":!ut,[`${nn}-rtl`]:sn==="rtl"},it,cn,yn),fn=z.useMemo(()=>wt!=null?wt:at==="large"?736:378,[wt,at]),Bn=z.useMemo(()=>mt!=null?mt:at==="large"?736:378,[mt,at]),Zn={motionName:(0,Tt.m)(nn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Pn=Ct=>({motionName:(0,Tt.m)(nn,`panel-motion-${Ct}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),On=(0,It.H)(),[Nn,Cn]=(0,pe.Cn)("Drawer",xt.zIndex),{classNames:mn={},styles:gn={}}=xt;return Mn(z.createElement(nt.Z,{form:!0,space:!0},z.createElement(Le.Z.Provider,{value:Cn},z.createElement(rt,Object.assign({prefixCls:nn,onClose:_t,maskMotion:Zn,motion:Pn},xt,{classNames:{mask:ve()(mn.mask,ln.mask),content:ve()(mn.content,ln.content),wrapper:ve()(mn.wrapper,ln.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},gn.mask),Xt),an.mask),content:Object.assign(Object.assign(Object.assign({},gn.content),Pe),an.content),wrapper:Object.assign(Object.assign(Object.assign({},gn.wrapper),lt),an.wrapper)},open:Mt!=null?Mt:Vt,mask:ut,push:_e,width:fn,height:Bn,style:Object.assign(Object.assign({},In),Me),className:ve()(Tn,Nt),rootClassName:bn,getContainer:Zt,afterOpenChange:Wt!=null?Wt:xn,panelRef:On,zIndex:Nn}),z.createElement(At,Object.assign({prefixCls:nn},xt,{onClose:_t}))))))},ye=we=>{const{prefixCls:We,style:it,className:wt,placement:mt="right"}=we,at=oe(we,["prefixCls","style","className","placement"]),{getPrefixCls:ut}=z.useContext(je.E_),_e=ut("drawer",We),[Mt,Wt,_t]=ee(_e),ft=ve()(_e,`${_e}-pure`,`${_e}-${mt}`,Wt,_t,wt);return Mt(z.createElement("div",{className:ft,style:it},z.createElement(At,Object.assign({prefixCls:_e},at))))};he._InternalPanelDoNotUseOrYouWillBeFired=ye;var ot=he},19563:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return St}});var z=ie(59301),qe=ie(33853),ve=ie(38819),He=ie(92310),xe=ie.n(He),Ce=ie(96478),Ee=ie(6089),Be=ie(18929),Oe=ie(2738),fe=ie(75030),Ie=ke=>typeof ke!="object"&&typeof ke!="function"||ke===null,yt=ie(52838),Je=ie(45915),Te=ie(22703),Ne=ie(32383),De=ie(55743),Ke=ie(48755),pt=ie(83397),Et=ie(93041),gt=ie(78857),ct=ie(57700),st=ie(36237),Ve=ie(63356),Dt=ie(46e3),dt=ie(93873),Ye=ie(34925),vt=ie(37645),Re=ie(36305),rt=ie(16931),nt=ie(51636),Tt=ke=>{const{componentCls:Ue,menuCls:Xe,colorError:Jt,colorTextLightSolid:Bt}=ke,Ht=`${Xe}-item`;return{[`${Ue}, ${Ue}-menu-submenu`]:{[`${Xe} ${Ht}`]:{[`&${Ht}-danger:not(${Ht}-disabled)`]:{color:Jt,"&:hover":{color:Bt,backgroundColor:Jt}}}}}};const Le=ke=>{const{componentCls:Ue,menuCls:Xe,zIndexPopup:Jt,dropdownArrowDistance:Bt,sizePopupArrow:Ht,antCls:Fe,iconCls:Rt,motionDurationMid:ht,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:he}=ke;return[{[Ue]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Jt,display:"block","&::before":{position:"absolute",insetBlock:ke.calc(Ht).div(2).sub(Bt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Fe}-btn`]:{[`& > ${Rt}-down, & > ${Fe}-btn-icon > ${Rt}-down`]:{fontSize:se}},[`${Ue}-wrap`]:{position:"relative",[`${Fe}-btn > ${Rt}-down`]:{fontSize:se},[`${Rt}-down::before`]:{transition:`transform ${ht}`}},[`${Ue}-wrap-open`]:{[`${Rt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Ue}-placement-bottomLeft,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Ue}-placement-bottomLeft,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Ue}-placement-bottom,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Ue}-placement-bottom,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Ue}-placement-bottomRight,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Ue}-placement-bottomRight`]:{animationName:Dt.fJ},[`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Ue}-placement-topLeft,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Ue}-placement-topLeft,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Ue}-placement-top,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Ue}-placement-top,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Ue}-placement-topRight,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Ue}-placement-topRight`]:{animationName:Dt.Qt},[`&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Ue}-placement-bottomLeft,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Ue}-placement-bottom,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Ue}-placement-bottomRight`]:{animationName:Dt.Uw},[`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Ue}-placement-topLeft,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Ue}-placement-top,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Ue}-placement-topRight`]:{animationName:Dt.ly}}},(0,vt.ZP)(ke,he,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ue} ${Xe}`]:{position:"relative",margin:0},[`${Xe}-submenu-popup`]:{position:"absolute",zIndex:Jt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ue}, ${Ue}-menu-submenu`]:Object.assign(Object.assign({},(0,Ve.Wf)(ke)),{[Xe]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:he,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,Ve.Qy)(ke)),{"&:empty":{padding:0,boxShadow:"none"},[`${Xe}-item-group-title`]:{padding:`${(0,st.unit)(ae)} ${(0,st.unit)(ne)}`,color:ke.colorTextDescription,transition:`all ${ht}`},[`${Xe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Xe}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${Xe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${ht}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Xe}-item-extra`]:{paddingInlineStart:ke.padding,marginInlineStart:"auto",fontSize:ke.fontSizeSM,color:ke.colorTextDescription}},[`${Xe}-item, ${Xe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,st.unit)(ae)} ${(0,st.unit)(ne)}`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${ht}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,Ve.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:he,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,st.unit)(ke.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${Ue}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${Ue}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${Xe}-item-group-list`]:{margin:`0 ${(0,st.unit)(ke.marginXS)}`,padding:0,listStyle:"none"},[`${Xe}-submenu-title`]:{paddingInlineEnd:ke.calc(ne).add(ke.fontSizeSM).equal()},[`${Xe}-submenu-vertical`]:{position:"relative"},[`${Xe}-submenu${Xe}-submenu-disabled ${Ue}-menu-submenu-title`]:{[`&, ${Ue}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:he,cursor:"not-allowed"}},[`${Xe}-submenu-selected ${Ue}-menu-submenu-title`]:{color:ke.colorPrimary}})})},[(0,Dt.oN)(ke,"slide-up"),(0,Dt.oN)(ke,"slide-down"),(0,dt.Fm)(ke,"move-up"),(0,dt.Fm)(ke,"move-down"),(0,Ye._y)(ke,"zoom-big")]]},je=ke=>Object.assign(Object.assign({zIndexPopup:ke.zIndexPopupBase+50,paddingBlock:(ke.controlHeight-ke.fontSize*ke.lineHeight)/2},(0,vt.wZ)({contentRadius:ke.borderRadiusLG,limitVerticalRadius:!0})),(0,Re.w)(ke));var It=(0,rt.I$)("Dropdown",ke=>{const{marginXXS:Ue,sizePopupArrow:Xe,paddingXXS:Jt,componentCls:Bt}=ke,Ht=(0,nt.mergeToken)(ke,{menuCls:`${Bt}-menu`,dropdownArrowDistance:ke.calc(Xe).div(2).add(Ue).equal(),dropdownEdgeChildPadding:Jt});return[Le(Ht),Tt(Ht)]},je,{resetStyle:!1});const ge=null,ce=ke=>{var Ue;const{menu:Xe,arrow:Jt,prefixCls:Bt,children:Ht,trigger:Fe,disabled:Rt,dropdownRender:ht,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:he,onVisibleChange:ye,mouseEnterDelay:ot=.15,mouseLeaveDelay:we=.1,autoAdjustOverflow:We=!0,placement:it="",overlay:wt,transitionName:mt}=ke,{getPopupContainer:at,getPrefixCls:ut,direction:_e,dropdown:Mt}=z.useContext(Ke.E_),Wt=(0,Ne.ln)("Dropdown"),_t=z.useMemo(()=>{const Zt=ut();return mt!==void 0?mt:it.includes("top")?`${Zt}-slide-down`:`${Zt}-slide-up`},[ut,it,mt]),ft=z.useMemo(()=>it?it.includes("Center")?it.slice(0,it.indexOf("Center")):it:_e==="rtl"?"bottomRight":"bottomLeft",[it,_e]),$t=ut("dropdown",Bt),Me=(0,pt.Z)($t),[Nt,Vt,xn]=It($t,Me),[,Xt]=(0,ct.ZP)(),Pe=z.Children.only(Ie(Ht)?z.createElement("span",null,Ht):Ht),lt=(0,Te.Tm)(Pe,{className:xe()(`${$t}-trigger`,{[`${$t}-rtl`]:_e==="rtl"},Pe.props.className),disabled:(Ue=Pe.props.disabled)!==null&&Ue!==void 0?Ue:Rt}),xt=Rt?[]:Fe,zt=!!(xt!=null&&xt.includes("contextMenu")),[tn,sn]=(0,Be.Z)(!1,{value:se!=null?se:he}),Tn=(0,Ee.Z)(Zt=>{ne==null||ne(Zt,{source:"trigger"}),ye==null||ye(Zt),sn(Zt)}),In=xe()(te,ee,Vt,xn,Me,Mt==null?void 0:Mt.className,{[`${$t}-rtl`]:_e==="rtl"}),ln=(0,yt.Z)({arrowPointAtCenter:typeof Jt=="object"&&Jt.pointAtCenter,autoAdjustOverflow:We,offset:Xt.marginXXS,arrowWidth:Jt?Xt.sizePopupArrow:0,borderRadius:Xt.borderRadius}),an=z.useCallback(()=>{Xe!=null&&Xe.selectable&&(Xe!=null&&Xe.multiple)||(ne==null||ne(!1,{source:"menu"}),sn(!1))},[Xe==null?void 0:Xe.selectable,Xe==null?void 0:Xe.multiple]),nn=()=>{let Zt;return Xe!=null&&Xe.items?Zt=z.createElement(Et.default,Object.assign({},Xe)):typeof wt=="function"?Zt=wt():Zt=wt,ht&&(Zt=ht(Zt)),Zt=z.Children.only(typeof Zt=="string"?z.createElement("span",null,Zt):Zt),z.createElement(gt.J,{prefixCls:`${$t}-menu`,rootClassName:xe()(xn,Me),expandIcon:z.createElement("span",{className:`${$t}-menu-submenu-arrow`},_e==="rtl"?z.createElement(qe.Z,{className:`${$t}-menu-submenu-arrow-icon`}):z.createElement(ve.Z,{className:`${$t}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:an,validator:bn=>{let{mode:fn}=bn}},Zt)},[Mn,cn]=(0,fe.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let yn=z.createElement(Ce.Z,Object.assign({alignPoint:zt},(0,Oe.Z)(ke,["rootClassName"]),{mouseEnterDelay:ot,mouseLeaveDelay:we,visible:tn,builtinPlacements:ln,arrow:!!Jt,overlayClassName:In,prefixCls:$t,getPopupContainer:ae||at,transitionName:_t,trigger:xt,overlay:nn,placement:ft,onVisibleChange:Tn,overlayStyle:Object.assign(Object.assign(Object.assign({},Mt==null?void 0:Mt.style),oe),{zIndex:Mn})}),lt);return Mn&&(yn=z.createElement(De.Z.Provider,{value:cn},yn)),Nt(yn)},tt=(0,Je.Z)(ce,"align",void 0,"dropdown",ke=>ke),At=ke=>z.createElement(tt,Object.assign({},ke),z.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=At;var St=ce},584:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Et}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(9017),xe=ie(17835),Ce=ie(57700),Be=()=>{const[,gt]=(0,Ce.ZP)(),[ct]=(0,He.Z)("Empty"),Ve=new xe.FastColor(gt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:Ve,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(ct==null?void 0:ct.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,gt]=(0,Ce.ZP)(),[ct]=(0,He.Z)("Empty"),{colorFill:st,colorFillTertiary:Ve,colorFillQuaternary:Dt,colorBgContainer:dt}=gt,{borderColor:Ye,shadowColor:vt,contentColor:Re}=(0,z.useMemo)(()=>({borderColor:new xe.FastColor(st).onBackground(dt).toHexString(),shadowColor:new xe.FastColor(Ve).onBackground(dt).toHexString(),contentColor:new xe.FastColor(Dt).onBackground(dt).toHexString()}),[st,Ve,Dt,dt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(ct==null?void 0:ct.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:vt,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:Ye},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Re}))))},Ge=ie(16931),Ie=ie(51636);const yt=gt=>{const{componentCls:ct,margin:st,marginXS:Ve,marginXL:Dt,fontSize:dt,lineHeight:Ye}=gt;return{[ct]:{marginInline:Ve,fontSize:dt,lineHeight:Ye,textAlign:"center",[`${ct}-image`]:{height:gt.emptyImgHeight,marginBottom:Ve,opacity:gt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${ct}-description`]:{color:gt.colorTextDescription},[`${ct}-footer`]:{marginTop:st},"&-normal":{marginBlock:Dt,color:gt.colorTextDescription,[`${ct}-description`]:{color:gt.colorTextDescription},[`${ct}-image`]:{height:gt.emptyImgHeightMD}},"&-small":{marginBlock:Ve,color:gt.colorTextDescription,[`${ct}-image`]:{height:gt.emptyImgHeightSM}}}}};var Je=(0,Ge.I$)("Empty",gt=>{const{componentCls:ct,controlHeightLG:st,calc:Ve}=gt,Dt=(0,Ie.mergeToken)(gt,{emptyImgCls:`${ct}-img`,emptyImgHeight:Ve(st).mul(2.5).equal(),emptyImgHeightMD:st,emptyImgHeightSM:Ve(st).mul(.875).equal()});return[yt(Dt)]}),Te=ie(48755),Ne=function(gt,ct){var st={};for(var Ve in gt)Object.prototype.hasOwnProperty.call(gt,Ve)&&ct.indexOf(Ve)<0&&(st[Ve]=gt[Ve]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Ve=Object.getOwnPropertySymbols(gt);Dt<Ve.length;Dt++)ct.indexOf(Ve[Dt])<0&&Object.prototype.propertyIsEnumerable.call(gt,Ve[Dt])&&(st[Ve[Dt]]=gt[Ve[Dt]]);return st};const De=z.createElement(Be,null),Ke=z.createElement(fe,null),pt=gt=>{const{className:ct,rootClassName:st,prefixCls:Ve,image:Dt=De,description:dt,children:Ye,imageStyle:vt,style:Re,classNames:rt,styles:nt}=gt,pe=Ne(gt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Tt,direction:Le,className:je,style:It,classNames:ge,styles:ce}=(0,Te.dj)("empty"),tt=Tt("empty",Ve),[At,St,ke]=Je(tt),[Ue]=(0,He.Z)("Empty"),Xe=typeof dt!="undefined"?dt:Ue==null?void 0:Ue.description,Jt=typeof Xe=="string"?Xe:"empty";let Bt=null;return typeof Dt=="string"?Bt=z.createElement("img",{alt:Jt,src:Dt}):Bt=Dt,At(z.createElement("div",Object.assign({className:ve()(St,ke,tt,je,{[`${tt}-normal`]:Dt===Ke,[`${tt}-rtl`]:Le==="rtl"},ct,st,ge.root,rt==null?void 0:rt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),It),nt==null?void 0:nt.root),Re)},pe),z.createElement("div",{className:ve()(`${tt}-image`,ge.image,rt==null?void 0:rt.image),style:Object.assign(Object.assign(Object.assign({},vt),ce.image),nt==null?void 0:nt.image)},Bt),Xe&&z.createElement("div",{className:ve()(`${tt}-description`,ge.description,rt==null?void 0:rt.description),style:Object.assign(Object.assign({},ce.description),nt==null?void 0:nt.description)},Xe),Ye&&z.createElement("div",{className:ve()(`${tt}-footer`,ge.footer,rt==null?void 0:rt.footer),style:Object.assign(Object.assign({},ce.footer),nt==null?void 0:nt.footer)},Ye)))};pt.PRESENTED_IMAGE_DEFAULT=De,pt.PRESENTED_IMAGE_SIMPLE=Ke;var Et=pt},28284:function(Ut,Ft,ie){"use strict";ie.d(Ft,{default:function(){return Qe}});var z=ie(56553),qe=ie(77654),ve=ie(59301),He=ie(92310),xe=ie.n(He),Ce=ie(77900),Ee=ie(86641),Be=ie(83397);function Oe(be){const[$e,Se]=ve.useState(be);return ve.useEffect(()=>{const ze=setTimeout(()=>{Se(be)},be.length?0:10);return()=>{clearTimeout(ze)}},[be]),$e}var fe=ie(36237),Ge=ie(63356),Ie=ie(34925),yt=ie(34961),Je=ie(51636),Te=ie(16931),De=be=>{const{componentCls:$e}=be,Se=`${$e}-show-help`,ze=`${$e}-show-help-item`;return{[Se]:{transition:`opacity ${be.motionDurationFast} ${be.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ze]:{overflow:"hidden",transition:`height ${be.motionDurationFast} ${be.motionEaseInOut},
opacity ${be.motionDurationFast} ${be.motionEaseInOut},
transform ${be.motionDurationFast} ${be.motionEaseInOut} !important`,[`&${ze}-appear, &${ze}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ze}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ke=be=>({legend:{display:"block",width:"100%",marginBottom:be.marginLG,padding:0,color:be.colorTextDescription,fontSize:be.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(be.lineWidth)} ${be.lineType} ${be.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,fe.unit)(be.controlOutlineWidth)} ${be.controlOutline}`},output:{display:"block",paddingTop:15,color:be.colorText,fontSize:be.fontSize,lineHeight:be.lineHeight}}),pt=(be,$e)=>{const{formItemCls:Se}=be;return{[Se]:{[`${Se}-label > label`]:{height:$e},[`${Se}-control-input`]:{minHeight:$e}}}},Et=be=>{const{componentCls:$e}=be;return{[be.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(be)),Ke(be)),{[`${$e}-text`]:{display:"inline-block",paddingInlineEnd:be.paddingSM},"&-small":Object.assign({},pt(be,be.controlHeightSM)),"&-large":Object.assign({},pt(be,be.controlHeightLG))})}},gt=be=>{const{formItemCls:$e,iconCls:Se,rootPrefixCls:ze,antCls:bt,labelRequiredMarkColor:Yt,labelColor:Qt,labelFontSize:hn,labelHeight:jt,labelColonMarginInlineStart:Pt,labelColonMarginInlineEnd:kt,itemMarginBottom:en}=be;return{[$e]:Object.assign(Object.assign({},(0,Ge.Wf)(be)),{marginBottom:en,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${bt}-row`]:{display:"none"},"&-has-warning":{[`${$e}-split`]:{color:be.colorError}},"&-has-error":{[`${$e}-split`]:{color:be.colorWarning}},[`${$e}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:be.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:jt,color:Qt,fontSize:hn,[`> ${Se}`]:{fontSize:be.fontSize,verticalAlign:"top"},[`&${$e}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:be.marginXXS,color:Yt,fontSize:be.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${$e}-required-mark-hidden, &${$e}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${$e}-optional`]:{display:"inline-block",marginInlineStart:be.marginXXS,color:be.colorTextDescription,[`&${$e}-required-mark-hidden`]:{display:"none"}},[`${$e}-tooltip`]:{color:be.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:be.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Pt,marginInlineEnd:kt},[`&${$e}-no-colon::after`]:{content:'"\\a0"'}}},[`${$e}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${ze}-col-'"]):not([class*="' ${ze}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:be.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[$e]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:be.colorTextDescription,fontSize:be.fontSize,lineHeight:be.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:be.controlHeightSM,transition:`color ${be.motionDurationMid} ${be.motionEaseOut}`},"&-explain":{"&-error":{color:be.colorError},"&-warning":{color:be.colorWarning}}},[`&-with-help ${$e}-explain`]:{height:"auto",opacity:1},[`${$e}-feedback-icon`]:{fontSize:be.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:be.motionDurationMid,animationTimingFunction:be.motionEaseOutBack,pointerEvents:"none","&-success":{color:be.colorSuccess},"&-error":{color:be.colorError},"&-warning":{color:be.colorWarning},"&-validating":{color:be.colorPrimary}}})}},ct=(be,$e)=>{const{formItemCls:Se}=be;return{[`${$e}-horizontal`]:{[`${Se}-label`]:{flexGrow:0},[`${Se}-control`]:{flex:"1 1 0",minWidth:0},[`${Se}-label[class$='-24'], ${Se}-label[class*='-24 ']`]:{[`& + ${Se}-control`]:{minWidth:"unset"}}}}},st=be=>{const{componentCls:$e,formItemCls:Se,inlineItemMarginBottom:ze}=be;return{[`${$e}-inline`]:{display:"flex",flexWrap:"wrap",[Se]:{flex:"none",marginInlineEnd:be.margin,marginBottom:ze,"&-row":{flexWrap:"nowrap"},[`> ${Se}-label,
> ${Se}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Se}-label`]:{flex:"none"},[`${$e}-text`]:{display:"inline-block"},[`${Se}-has-feedback`]:{display:"inline-block"}}}}},Ve=be=>({padding:be.verticalLabelPadding,margin:be.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Dt=be=>{const{componentCls:$e,formItemCls:Se,rootPrefixCls:ze}=be;return{[`${Se} ${Se}-label`]:Ve(be),[`${$e}:not(${$e}-inline)`]:{[Se]:{flexWrap:"wrap",[`${Se}-label, ${Se}-control`]:{[`&:not([class*=" ${ze}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},dt=be=>{const{componentCls:$e,formItemCls:Se,antCls:ze}=be;return{[`${$e}-vertical`]:{[`${Se}:not(${Se}-horizontal)`]:{[`${Se}-row`]:{flexDirection:"column"},[`${Se}-label > label`]:{height:"auto"},[`${Se}-control`]:{width:"100%"},[`${Se}-label,
${ze}-col-24${Se}-label,
${ze}-col-xl-24${Se}-label`]:Ve(be)}},[`@media (max-width: ${(0,fe.unit)(be.screenXSMax)})`]:[Dt(be),{[$e]:{[`${Se}:not(${Se}-horizontal)`]:{[`${ze}-col-xs-24${Se}-label`]:Ve(be)}}}],[`@media (max-width: ${(0,fe.unit)(be.screenSMMax)})`]:{[$e]:{[`${Se}:not(${Se}-horizontal)`]:{[`${ze}-col-sm-24${Se}-label`]:Ve(be)}}},[`@media (max-width: ${(0,fe.unit)(be.screenMDMax)})`]:{[$e]:{[`${Se}:not(${Se}-horizontal)`]:{[`${ze}-col-md-24${Se}-label`]:Ve(be)}}},[`@media (max-width: ${(0,fe.unit)(be.screenLGMax)})`]:{[$e]:{[`${Se}:not(${Se}-horizontal)`]:{[`${ze}-col-lg-24${Se}-label`]:Ve(be)}}}}},Ye=be=>{const{formItemCls:$e,antCls:Se}=be;return{[`${$e}-vertical`]:{[`${$e}-row`]:{flexDirection:"column"},[`${$e}-label > label`]:{height:"auto"},[`${$e}-control`]:{width:"100%"}},[`${$e}-vertical ${$e}-label,
${Se}-col-24${$e}-label,
${Se}-col-xl-24${$e}-label`]:Ve(be),[`@media (max-width: ${(0,fe.unit)(be.screenXSMax)})`]:[Dt(be),{[$e]:{[`${Se}-col-xs-24${$e}-label`]:Ve(be)}}],[`@media (max-width: ${(0,fe.unit)(be.screenSMMax)})`]:{[$e]:{[`${Se}-col-sm-24${$e}-label`]:Ve(be)}},[`@media (max-width: ${(0,fe.unit)(be.screenMDMax)})`]:{[$e]:{[`${Se}-col-md-24${$e}-label`]:Ve(be)}},[`@media (max-width: ${(0,fe.unit)(be.screenLGMax)})`]:{[$e]:{[`${Se}-col-lg-24${$e}-label`]:Ve(be)}}}},vt=be=>({labelRequiredMarkColor:be.colorError,labelColor:be.colorTextHeading,labelFontSize:be.fontSize,labelHeight:be.controlHeight,labelColonMarginInlineStart:be.marginXXS/2,labelColonMarginInlineEnd:be.marginXS,itemMarginBottom:be.marginLG,verticalLabelPadding:`0 0 ${be.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Re=(be,$e)=>(0,Je.mergeToken)(be,{formItemCls:`${be.componentCls}-item`,rootPrefixCls:$e});var rt=(0,Te.I$)("Form",(be,$e)=>{let{rootPrefixCls:Se}=$e;const ze=Re(be,Se);return[Et(ze),gt(ze),De(ze),ct(ze,ze.componentCls),ct(ze,ze.formItemCls),st(ze),dt(ze),Ye(ze),(0,yt.Z)(ze),Ie.kr]},vt,{order:-1e3});const nt=[];function pe(be,$e,Se){let ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof be=="string"?be:`${$e}-${ze}`,error:be,errorStatus:Se}}var Le=be=>{let{help:$e,helpStatus:Se,errors:ze=nt,warnings:bt=nt,className:Yt,fieldId:Qt,onVisibleChanged:hn}=be;const{prefixCls:jt}=ve.useContext(z.Rk),Pt=`${jt}-item-explain`,kt=(0,Be.Z)(jt),[en,kn,wn]=rt(jt,kt),En=ve.useMemo(()=>(0,Ee.Z)(jt),[jt]),Xn=Oe(ze),Jn=Oe(bt),Qn=ve.useMemo(()=>$e!=null?[pe($e,"help",Se)]:[].concat((0,qe.Z)(Xn.map((Hn,Un)=>pe(Hn,"error","error",Un))),(0,qe.Z)(Jn.map((Hn,Un)=>pe(Hn,"warning","warning",Un)))),[$e,Se,Xn,Jn]),_n=ve.useMemo(()=>{const Hn={};return Qn.forEach(Un=>{let{key:ur}=Un;Hn[ur]=(Hn[ur]||0)+1}),Qn.map((Un,ur)=>Object.assign(Object.assign({},Un),{key:Hn[Un.key]>1?`${Un.key}-fallback-${ur}`:Un.key}))},[Qn]),Rn={};return Qt&&(Rn.id=`${Qt}_help`),en(ve.createElement(Ce.default,{motionDeadline:En.motionDeadline,motionName:`${jt}-show-help`,visible:!!_n.length,onVisibleChanged:hn},Hn=>{const{className:Un,style:ur}=Hn;return ve.createElement("div",Object.assign({},Rn,{className:xe()(Pt,Un,wn,kt,Yt,kn),style:ur}),ve.createElement(Ce.CSSMotionList,Object.assign({keys:_n},(0,Ee.Z)(jt),{motionName:`${jt}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:gr}=qn;return ve.createElement("div",{key:lr,className:xe()(tr,{[`${Pt}-${er}`]:er}),style:gr},ir)}))}))},je=ie(69180),It=ie(48755),ge=ie(2171),ce=ie(31756),tt=ie(23069),At=ie(76846),St=ie(16722);const ke=["parentNode"],Ue="form_item";function Xe(be){return be===void 0||be===!1?[]:Array.isArray(be)?be:[be]}function Jt(be,$e){if(!be.length)return;const Se=be.join("_");return $e?`${$e}_${Se}`:ke.includes(Se)?`${Ue}_${Se}`:Se}function Bt(be,$e,Se,ze,bt,Yt){let Qt=ze;return Yt!==void 0?Qt=Yt:Se.validating?Qt="validating":be.length?Qt="error":$e.length?Qt="warning":(Se.touched||bt&&Se.validated)&&(Qt="success"),Qt}var Ht=function(be,$e){var Se={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&$e.indexOf(ze)<0&&(Se[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ze=Object.getOwnPropertySymbols(be);bt<ze.length;bt++)$e.indexOf(ze[bt])<0&&Object.prototype.propertyIsEnumerable.call(be,ze[bt])&&(Se[ze[bt]]=be[ze[bt]]);return Se};function Fe(be){return Xe(be).join("_")}function Rt(be,$e){const Se=$e.getFieldInstance(be),ze=(0,At.bn)(Se);if(ze)return ze;const bt=Jt(Xe(be),$e.__INTERNAL__.name);if(bt)return document.getElementById(bt)}function ht(be){const[$e]=(0,je.useForm)(),Se=ve.useRef({}),ze=ve.useMemo(()=>be!=null?be:Object.assign(Object.assign({},$e),{__INTERNAL__:{itemRef:bt=>Yt=>{const Qt=Fe(bt);Yt?Se.current[Qt]=Yt:delete Se.current[Qt]}},scrollToField:function(bt){let Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Qt}=Yt,hn=Ht(Yt,["focus"]),jt=Rt(bt,ze);jt&&((0,St.Z)(jt,Object.assign({scrollMode:"if-needed",block:"nearest"},hn)),Qt&&ze.focusField(bt))},focusField:bt=>{var Yt,Qt;const hn=ze.getFieldInstance(bt);typeof(hn==null?void 0:hn.focus)=="function"?hn.focus():(Qt=(Yt=Rt(bt,ze))===null||Yt===void 0?void 0:Yt.focus)===null||Qt===void 0||Qt.call(Yt)},getFieldInstance:bt=>{const Yt=Fe(bt);return Se.current[Yt]}}),[be,$e]);return[ze]}var ae=ie(98350),te=function(be,$e){var Se={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&$e.indexOf(ze)<0&&(Se[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ze=Object.getOwnPropertySymbols(be);bt<ze.length;bt++)$e.indexOf(ze[bt])<0&&Object.prototype.propertyIsEnumerable.call(be,ze[bt])&&(Se[ze[bt]]=be[ze[bt]]);return Se};const ee=(be,$e)=>{const Se=ve.useContext(ge.Z),{getPrefixCls:ze,direction:bt,requiredMark:Yt,colon:Qt,scrollToFirstError:hn,className:jt,style:Pt}=(0,It.dj)("form"),{prefixCls:kt,className:en,rootClassName:kn,size:wn,disabled:En=Se,form:Xn,colon:Jn,labelAlign:Qn,labelWrap:_n,labelCol:Rn,wrapperCol:Hn,hideRequiredMark:Un,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:gr,variant:mr}=be,cr=te(be,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),vr=(0,ce.Z)(wn),Cr=ve.useContext(ae.Z),or=ve.useMemo(()=>lr!==void 0?lr:Un?!1:Yt!==void 0?Yt:!0,[Un,lr,Yt]),dr=Jn!=null?Jn:Qt,Vn=ze("form",kt),Sr=(0,Be.Z)(Vn),[Rr,Wr,Er]=rt(Vn,Sr),Ar=xe()(Vn,`${Vn}-${ur}`,{[`${Vn}-hide-required-mark`]:or===!1,[`${Vn}-rtl`]:bt==="rtl",[`${Vn}-${vr}`]:vr},Er,Sr,Wr,jt,en,kn),[Ir]=ht(Xn),{__INTERNAL__:Dr}=Ir;Dr.name=er;const $r=ve.useMemo(()=>({name:er,labelAlign:Qn,labelCol:Rn,labelWrap:_n,wrapperCol:Hn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Dr.itemRef,form:Ir,feedbackIcons:gr}),[er,Qn,Rn,Hn,ur,dr,or,Ir,gr]),fr=ve.useRef(null);ve.useImperativeHandle($e,()=>{var pn;return Object.assign(Object.assign({},Ir),{nativeElement:(pn=fr.current)===null||pn===void 0?void 0:pn.nativeElement})});const Yn=(pn,dn)=>{if(pn){let Kt={block:"nearest"};typeof pn=="object"&&(Kt=Object.assign(Object.assign({},Kt),pn)),Ir.scrollToField(dn,Kt)}},rn=pn=>{if(ir==null||ir(pn),pn.errorFields.length){const dn=pn.errorFields[0].name;if(qn!==void 0){Yn(qn,dn);return}hn!==void 0&&Yn(hn,dn)}};return Rr(ve.createElement(z.pg.Provider,{value:mr},ve.createElement(ge.n,{disabled:En},ve.createElement(tt.Z.Provider,{value:vr},ve.createElement(z.RV,{validateMessages:Cr},ve.createElement(z.q3.Provider,{value:$r},ve.createElement(je.default,Object.assign({id:er},cr,{name:er,onFinishFailed:rn,form:Ir,ref:fr,style:Object.assign(Object.assign({},Pt),tr),className:Ar}))))))))};var se=ve.forwardRef(ee),ne=ie(41799),he=ie(8654),ye=ie(22703),ot=ie(32383),we=ie(11592);function We(be){if(typeof be=="function")return be;const $e=(0,we.Z)(be);return $e.length<=1?$e[0]:$e}const it=()=>{const{status:be,errors:$e=[],warnings:Se=[]}=ve.useContext(z.aM);return{status:be,errors:$e,warnings:Se}};it.Context=z.aM;var wt=it,mt=ie(16089);function at(be){const[$e,Se]=ve.useState(be),ze=ve.useRef(null),bt=ve.useRef([]),Yt=ve.useRef(!1);ve.useEffect(()=>(Yt.current=!1,()=>{Yt.current=!0,mt.Z.cancel(ze.current),ze.current=null}),[]);function Qt(hn){Yt.current||(ze.current===null&&(bt.current=[],ze.current=(0,mt.Z)(()=>{ze.current=null,Se(jt=>{let Pt=jt;return bt.current.forEach(kt=>{Pt=kt(Pt)}),Pt})})),bt.current.push(hn))}return[$e,Qt]}function ut(){const{itemRef:be}=ve.useContext(z.q3),$e=ve.useRef({});function Se(ze,bt){const Yt=bt&&typeof bt=="object"&&(0,he.C4)(bt),Qt=ze.join("_");return($e.current.name!==Qt||$e.current.originRef!==Yt)&&($e.current.name=Qt,$e.current.originRef=Yt,$e.current.ref=(0,he.sQ)(be(ze),Yt)),$e.current.ref}return Se}var _e=ie(29194),Mt=ie(34280),Wt=ie(2738),_t=ie(65970),ft=ie(70425),$t=ie(5472);const Me=be=>{const{formItemCls:$e}=be;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${$e}-control`]:{display:"flex"}}}};var Nt=(0,Te.bk)(["Form","item-item"],(be,$e)=>{let{rootPrefixCls:Se}=$e;const ze=Re(be,Se);return[Me(ze)]}),Vt=function(be,$e){var Se={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&$e.indexOf(ze)<0&&(Se[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ze=Object.getOwnPropertySymbols(be);bt<ze.length;bt++)$e.indexOf(ze[bt])<0&&Object.prototype.propertyIsEnumerable.call(be,ze[bt])&&(Se[ze[bt]]=be[ze[bt]]);return Se};const xn=24;var Pe=be=>{const{prefixCls:$e,status:Se,labelCol:ze,wrapperCol:bt,children:Yt,errors:Qt,warnings:hn,_internalItemRender:jt,extra:Pt,help:kt,fieldId:en,marginBottom:kn,onErrorVisibleChanged:wn,label:En}=be,Xn=`${$e}-item`,Jn=ve.useContext(z.q3),Qn=ve.useMemo(()=>{let cr=Object.assign({},bt||Jn.wrapperCol||{});return En===null&&!ze&&!bt&&Jn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,ft.U2)(Jn.labelCol,or),Vn=typeof dr=="object"?dr:{},Sr=(0,ft.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Vn&&!("offset"in Rr)&&Vn.span<xn&&(cr=(0,ft.t8)(cr,[].concat(or,["offset"]),Vn.span))}),cr},[bt,Jn]),_n=xe()(`${Xn}-control`,Qn.className),Rn=ve.useMemo(()=>{const{labelCol:cr,wrapperCol:vr}=Jn;return Vt(Jn,["labelCol","wrapperCol"])},[Jn]),Hn=ve.useRef(null),[Un,ur]=ve.useState(0);(0,Mt.Z)(()=>{Pt&&Hn.current?ur(Hn.current.clientHeight):ur(0)},[Pt]);const qn=ve.createElement("div",{className:`${Xn}-control-input`},ve.createElement("div",{className:`${Xn}-control-input-content`},Yt)),lr=ve.useMemo(()=>({prefixCls:$e,status:Se}),[$e,Se]),ir=kn!==null||Qt.length||hn.length?ve.createElement(z.Rk.Provider,{value:lr},ve.createElement(Le,{fieldId:en,errors:Qt,warnings:hn,help:kt,helpStatus:Se,className:`${Xn}-explain-connected`,onVisibleChanged:wn})):null,er={};en&&(er.id=`${en}_extra`);const tr=Pt?ve.createElement("div",Object.assign({},er,{className:`${Xn}-extra`,ref:Hn}),Pt):null,gr=ir||tr?ve.createElement("div",{className:`${Xn}-additional`,style:kn?{minHeight:kn+Un}:{}},ir,tr):null,mr=jt&&jt.mark==="pro_table_render"&&jt.render?jt.render(be,{input:qn,errorList:ir,extra:tr}):ve.createElement(ve.Fragment,null,qn,gr);return ve.createElement(z.q3.Provider,{value:Rn},ve.createElement($t.Z,Object.assign({},Qn,{className:_n}),mr),ve.createElement(Nt,{prefixCls:$e}))},lt=ie(61485),xt=ie(9017),zt=ie(85981),tn=ie(25399),sn=function(be,$e){var Se={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&$e.indexOf(ze)<0&&(Se[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ze=Object.getOwnPropertySymbols(be);bt<ze.length;bt++)$e.indexOf(ze[bt])<0&&Object.prototype.propertyIsEnumerable.call(be,ze[bt])&&(Se[ze[bt]]=be[ze[bt]]);return Se};function Tn(be){return be?typeof be=="object"&&!ve.isValidElement(be)?be:{title:be}:null}var ln=be=>{let{prefixCls:$e,label:Se,htmlFor:ze,labelCol:bt,labelAlign:Yt,colon:Qt,required:hn,requiredMark:jt,tooltip:Pt,vertical:kt}=be;var en;const[kn]=(0,xt.Z)("Form"),{labelAlign:wn,labelCol:En,labelWrap:Xn,colon:Jn}=ve.useContext(z.q3);if(!Se)return null;const Qn=bt||En||{},_n=Yt||wn,Rn=`${$e}-item-label`,Hn=xe()(Rn,_n==="left"&&`${Rn}-left`,Qn.className,{[`${Rn}-wrap`]:!!Xn});let Un=Se;const ur=Qt===!0||Jn!==!1&&Qt!==!1;ur&&!kt&&typeof Se=="string"&&Se.trim()&&(Un=Se.replace(/[:|]\s*$/,""));const lr=Tn(Pt);if(lr){const{icon:cr=ve.createElement(lt.Z,null)}=lr,vr=sn(lr,["icon"]),Cr=ve.createElement(tn.Z,Object.assign({},vr),ve.cloneElement(cr,{className:`${$e}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Un=ve.createElement(ve.Fragment,null,Un,Cr)}const ir=jt==="optional",er=typeof jt=="function",tr=jt===!1;er?Un=jt(Un,{required:!!hn}):ir&&!hn&&(Un=ve.createElement(ve.Fragment,null,Un,ve.createElement("span",{className:`${$e}-item-optional`,title:""},(kn==null?void 0:kn.optional)||((en=zt.Z.Form)===null||en===void 0?void 0:en.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=xe()({[`${$e}-item-required`]:hn,[`${$e}-item-required-mark-${gr}`]:gr,[`${$e}-item-no-colon`]:!ur});return ve.createElement($t.Z,Object.assign({},Qn,{className:Hn}),ve.createElement("label",{htmlFor:ze,className:mr,title:typeof Se=="string"?Se:""},Un))},an=ie(29679),nn=ie(19248),Mn=ie(96512),cn=ie(58617);const yn={success:an.Z,warning:Mn.Z,error:nn.Z,validating:cn.Z};function Zt(be){let{children:$e,errors:Se,warnings:ze,hasFeedback:bt,validateStatus:Yt,prefixCls:Qt,meta:hn,noStyle:jt}=be;const Pt=`${Qt}-item`,{feedbackIcons:kt}=ve.useContext(z.q3),en=Bt(Se,ze,hn,null,!!bt,Yt),{isFormItemInput:kn,status:wn,hasFeedback:En,feedbackIcon:Xn}=ve.useContext(z.aM),Jn=ve.useMemo(()=>{var Qn;let _n;if(bt){const Hn=bt!==!0&&bt.icons||kt,Un=en&&((Qn=Hn==null?void 0:Hn({status:en,errors:Se,warnings:ze}))===null||Qn===void 0?void 0:Qn[en]),ur=en&&yn[en];_n=Un!==!1&&ur?ve.createElement("span",{className:xe()(`${Pt}-feedback-icon`,`${Pt}-feedback-icon-${en}`)},Un||ve.createElement(ur,null)):null}const Rn={status:en||"",errors:Se,warnings:ze,hasFeedback:!!bt,feedbackIcon:_n,isFormItemInput:!0};return jt&&(Rn.status=(en!=null?en:wn)||"",Rn.isFormItemInput=kn,Rn.hasFeedback=!!(bt!=null?bt:En),Rn.feedbackIcon=bt!==void 0?Rn.feedbackIcon:Xn),Rn},[en,bt,jt,kn,wn]);return ve.createElement(z.aM.Provider,{value:Jn},$e)}var bn=function(be,$e){var Se={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&$e.indexOf(ze)<0&&(Se[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ze=Object.getOwnPropertySymbols(be);bt<ze.length;bt++)$e.indexOf(ze[bt])<0&&Object.prototype.propertyIsEnumerable.call(be,ze[bt])&&(Se[ze[bt]]=be[ze[bt]]);return Se};function fn(be){const{prefixCls:$e,className:Se,rootClassName:ze,style:bt,help:Yt,errors:Qt,warnings:hn,validateStatus:jt,meta:Pt,hasFeedback:kt,hidden:en,children:kn,fieldId:wn,required:En,isRequired:Xn,onSubItemMetaChange:Jn,layout:Qn}=be,_n=bn(be,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Rn=`${$e}-item`,{requiredMark:Hn,vertical:Un}=ve.useContext(z.q3),ur=Un||Qn==="vertical",qn=ve.useRef(null),lr=Oe(Qt),ir=Oe(hn),er=Yt!=null,tr=!!(er||Qt.length||hn.length),gr=!!qn.current&&(0,_e.Z)(qn.current),[mr,cr]=ve.useState(null);(0,Mt.Z)(()=>{if(tr&&qn.current){const Vn=getComputedStyle(qn.current);cr(parseInt(Vn.marginBottom,10))}},[tr,gr]);const vr=Vn=>{Vn||cr(null)},or=function(){let Vn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Sr=Vn?lr:Pt.errors,Rr=Vn?ir:Pt.warnings;return Bt(Sr,Rr,Pt,"",!!kt,jt)}(),dr=xe()(Rn,Se,ze,{[`${Rn}-with-help`]:er||lr.length||ir.length,[`${Rn}-has-feedback`]:or&&kt,[`${Rn}-has-success`]:or==="success",[`${Rn}-has-warning`]:or==="warning",[`${Rn}-has-error`]:or==="error",[`${Rn}-is-validating`]:or==="validating",[`${Rn}-hidden`]:en,[`${Rn}-${Qn}`]:Qn});return ve.createElement("div",{className:dr,style:bt,ref:qn},ve.createElement(_t.Z,Object.assign({className:`${Rn}-row`},(0,Wt.Z)(_n,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ve.createElement(ln,Object.assign({htmlFor:wn},be,{requiredMark:Hn,required:En!=null?En:Xn,prefixCls:$e,vertical:ur})),ve.createElement(Pe,Object.assign({},be,Pt,{errors:lr,warnings:ir,prefixCls:$e,status:or,help:Yt,marginBottom:mr,onErrorVisibleChanged:vr}),ve.createElement(z.qI.Provider,{value:Jn},ve.createElement(Zt,{prefixCls:$e,meta:Pt,errors:Pt.errors,warnings:Pt.warnings,hasFeedback:kt,validateStatus:or},kn)))),!!mr&&ve.createElement("div",{className:`${Rn}-margin-offset`,style:{marginBottom:-mr}}))}const Bn="__SPLIT__",Zn=null;function Pn(be,$e){const Se=Object.keys(be),ze=Object.keys($e);return Se.length===ze.length&&Se.every(bt=>{const Yt=be[bt],Qt=$e[bt];return Yt===Qt||typeof Yt=="function"||typeof Qt=="function"})}const On=ve.memo(be=>{let{children:$e}=be;return $e},(be,$e)=>Pn(be.control,$e.control)&&be.update===$e.update&&be.childProps.length===$e.childProps.length&&be.childProps.every((Se,ze)=>Se===$e.childProps[ze]));function Nn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Cn(be){const{name:$e,noStyle:Se,className:ze,dependencies:bt,prefixCls:Yt,shouldUpdate:Qt,rules:hn,children:jt,required:Pt,label:kt,messageVariables:en,trigger:kn="onChange",validateTrigger:wn,hidden:En,help:Xn,layout:Jn}=be,{getPrefixCls:Qn}=ve.useContext(It.E_),{name:_n}=ve.useContext(z.q3),Rn=We(jt),Hn=typeof Rn=="function",Un=ve.useContext(z.qI),{validateTrigger:ur}=ve.useContext(je.FieldContext),qn=wn!==void 0?wn:ur,lr=$e!=null,ir=Qn("form",Yt),er=(0,Be.Z)(ir),[tr,gr,mr]=rt(ir,er),cr=(0,ot.ln)("Form.Item"),vr=ve.useContext(je.ListContext),Cr=ve.useRef(null),[or,dr]=at({}),[Vn,Sr]=(0,ne.Z)(()=>Nn()),Rr=fr=>{const Yn=vr==null?void 0:vr.getKey(fr.name);if(Sr(fr.destroy?Nn():fr,!0),Se&&Xn!==!1&&Un){let rn=fr.name;if(fr.destroy)rn=Cr.current||rn;else if(Yn!==void 0){const[pn,dn]=Yn;rn=[pn].concat((0,qe.Z)(dn)),Cr.current=rn}Un(fr,rn)}},Wr=(fr,Yn)=>{dr(rn=>{const pn=Object.assign({},rn),Kt=[].concat((0,qe.Z)(fr.name.slice(0,-1)),(0,qe.Z)(Yn)).join(Bn);return fr.destroy?delete pn[Kt]:pn[Kt]=fr,pn})},[Er,Ar]=ve.useMemo(()=>{const fr=(0,qe.Z)(Vn.errors),Yn=(0,qe.Z)(Vn.warnings);return Object.values(or).forEach(rn=>{fr.push.apply(fr,(0,qe.Z)(rn.errors||[])),Yn.push.apply(Yn,(0,qe.Z)(rn.warnings||[]))}),[fr,Yn]},[or,Vn.errors,Vn.warnings]),Ir=ut();function Dr(fr,Yn,rn){return Se&&!En?ve.createElement(Zt,{prefixCls:ir,hasFeedback:be.hasFeedback,validateStatus:be.validateStatus,meta:Vn,errors:Er,warnings:Ar,noStyle:!0},fr):ve.createElement(fn,Object.assign({key:"row"},be,{className:xe()(ze,mr,er,gr),prefixCls:ir,fieldId:Yn,isRequired:rn,errors:Er,warnings:Ar,meta:Vn,onSubItemMetaChange:Wr,layout:Jn}),fr)}if(!lr&&!Hn&&!bt)return tr(Dr(Rn));let $r={};return typeof kt=="string"?$r.label=kt:$e&&($r.label=String($e)),en&&($r=Object.assign(Object.assign({},$r),en)),tr(ve.createElement(je.Field,Object.assign({},be,{messageVariables:$r,trigger:kn,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,rn)=>{const pn=Xe($e).length&&Yn?Yn.name:[],dn=Jt(pn,_n),Kt=Pt!==void 0?Pt:!!(hn!=null&&hn.some(on=>{if(on&&typeof on=="object"&&on.required&&!on.warningOnly)return!0;if(typeof on=="function"){const un=on(rn);return(un==null?void 0:un.required)&&!(un!=null&&un.warningOnly)}return!1})),Fn=Object.assign({},fr);let Wn=null;if(Array.isArray(Rn)&&lr)Wn=Rn;else if(!(Hn&&(!(Qt||bt)||lr))){if(!(bt&&!Hn&&!lr))if(ve.isValidElement(Rn)){const on=Object.assign(Object.assign({},Rn.props),Fn);if(on.id||(on.id=dn),Xn||Er.length>0||Ar.length>0||be.extra){const An=[];(Xn||Er.length>0)&&An.push(`${dn}_help`),be.extra&&An.push(`${dn}_extra`),on["aria-describedby"]=An.join(" ")}Er.length>0&&(on["aria-invalid"]="true"),Kt&&(on["aria-required"]="true"),(0,he.Yr)(Rn)&&(on.ref=Ir(pn,Rn)),new Set([].concat((0,qe.Z)(Xe(kn)),(0,qe.Z)(Xe(qn)))).forEach(An=>{on[An]=function(){for(var rr,kr,br,Mr,Or,Br=arguments.length,zr=new Array(Br),Tr=0;Tr<Br;Tr++)zr[Tr]=arguments[Tr];(br=Fn[An])===null||br===void 0||(rr=br).call.apply(rr,[Fn].concat(zr)),(Or=(Mr=Rn.props)[An])===null||Or===void 0||(kr=Or).call.apply(kr,[Mr].concat(zr))}});const Ln=[on["aria-required"],on["aria-invalid"],on["aria-describedby"]];Wn=ve.createElement(On,{control:Fn,update:Rn,childProps:Ln},(0,ye.Tm)(Rn,on))}else Hn&&(Qt||bt)&&!lr?Wn=Rn(rn):Wn=Rn}return Dr(Wn,dn,Kt)}))}const mn=Cn;mn.useStatus=wt;var gn=mn,Ct=function(be,$e){var Se={};for(var ze in be)Object.prototype.hasOwnProperty.call(be,ze)&&$e.indexOf(ze)<0&&(Se[ze]=be[ze]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,ze=Object.getOwnPropertySymbols(be);bt<ze.length;bt++)$e.indexOf(ze[bt])<0&&Object.prototype.propertyIsEnumerable.call(be,ze[bt])&&(Se[ze[bt]]=be[ze[bt]]);return Se},Sn=be=>{var{prefixCls:$e,children:Se}=be,ze=Ct(be,["prefixCls","children"]);const{getPrefixCls:bt}=ve.useContext(It.E_),Yt=bt("form",$e),Qt=ve.useMemo(()=>({prefixCls:Yt,status:"error"}),[Yt]);return ve.createElement(je.List,Object.assign({},ze),(hn,jt,Pt)=>ve.createElement(z.Rk.Provider,{value:Qt},Se(hn.map(kt=>Object.assign(Object.assign({},kt),{fieldKey:kt.key})),jt,{errors:Pt.errors,warnings:Pt.warnings})))};function jn(){const{form:be}=ve.useContext(z.q3);return be}const Ae=se;Ae.Item=gn,Ae.List=Sn,Ae.ErrorList=Le,Ae.useForm=ht,Ae.useFormInstance=jn,Ae.useWatch=je.useWatch,Ae.Provider=z.RV,Ae.create=()=>{};var Qe=Ae},4875:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Xt}});var z=ie(59301),qe=ie(84105),ve=ie(87395),He=ie(92310),xe=ie.n(He),Ce=ie(60499),Ee=ie(18642),Be=ie(43749),Oe=ie(72190),fe=ie(42244),Ge=ie(38705),Ie=ie(17212);function yt(){return typeof BigInt=="function"}function Je(Pe){return!Pe&&Pe!==0&&!Number.isNaN(Pe)||!String(Pe).trim()}function Te(Pe){var lt=Pe.trim(),xt=lt.startsWith("-");xt&&(lt=lt.slice(1)),lt=lt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),lt.startsWith(".")&&(lt="0".concat(lt));var zt=lt||"0",tn=zt.split("."),sn=tn[0]||"0",Tn=tn[1]||"0";sn==="0"&&Tn==="0"&&(xt=!1);var In=xt?"-":"";return{negative:xt,negativeStr:In,trimStr:zt,integerStr:sn,decimalStr:Tn,fullStr:"".concat(In).concat(zt)}}function Ne(Pe){var lt=String(Pe);return!Number.isNaN(Number(lt))&&lt.includes("e")}function De(Pe){var lt=String(Pe);if(Ne(Pe)){var xt=Number(lt.slice(lt.indexOf("e-")+2)),zt=lt.match(/\.(\d+)/);return zt!=null&&zt[1]&&(xt+=zt[1].length),xt}return lt.includes(".")&&pt(lt)?lt.length-lt.indexOf(".")-1:0}function Ke(Pe){var lt=String(Pe);if(Ne(Pe)){if(Pe>Number.MAX_SAFE_INTEGER)return String(yt()?BigInt(Pe).toString():Number.MAX_SAFE_INTEGER);if(Pe<Number.MIN_SAFE_INTEGER)return String(yt()?BigInt(Pe).toString():Number.MIN_SAFE_INTEGER);lt=Pe.toFixed(De(lt))}return Te(lt).fullStr}function pt(Pe){return typeof Pe=="number"?!Number.isNaN(Pe):Pe?/^\s*-?\d+(\.\d+)?\s*$/.test(Pe)||/^\s*-?\d+\.\s*$/.test(Pe)||/^\s*-?\.\d+\s*$/.test(Pe):!1}var Et=function(){function Pe(lt){if((0,Ge.Z)(this,Pe),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),Je(lt)){this.empty=!0;return}if(this.origin=String(lt),lt==="-"||Number.isNaN(lt)){this.nan=!0;return}var xt=lt;if(Ne(xt)&&(xt=Number(xt)),xt=typeof xt=="string"?xt:Ke(xt),pt(xt)){var zt=Te(xt);this.negative=zt.negative;var tn=zt.trimStr.split(".");this.integer=BigInt(tn[0]);var sn=tn[1]||"0";this.decimal=BigInt(sn),this.decimalLen=sn.length}else this.nan=!0}return(0,Ie.Z)(Pe,[{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(xt){var zt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(xt,"0"));return BigInt(zt)}},{key:"negate",value:function(){var xt=new Pe(this.toString());return xt.negative=!xt.negative,xt}},{key:"cal",value:function(xt,zt,tn){var sn=Math.max(this.getDecimalStr().length,xt.getDecimalStr().length),Tn=this.alignDecimal(sn),In=xt.alignDecimal(sn),ln=zt(Tn,In).toString(),an=tn(sn),nn=Te(ln),Mn=nn.negativeStr,cn=nn.trimStr,yn="".concat(Mn).concat(cn.padStart(an+1,"0"));return new Pe("".concat(yn.slice(0,-an),".").concat(yn.slice(-an)))}},{key:"add",value:function(xt){if(this.isInvalidate())return new Pe(xt);var zt=new Pe(xt);return zt.isInvalidate()?this:this.cal(zt,function(tn,sn){return tn+sn},function(tn){return tn})}},{key:"multi",value:function(xt){var zt=new Pe(xt);return this.isInvalidate()||zt.isInvalidate()?new Pe(NaN):this.cal(zt,function(tn,sn){return tn*sn},function(tn){return tn*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(xt){return this.toString()===(xt==null?void 0:xt.toString())}},{key:"lessEquals",value:function(xt){return this.add(xt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return xt?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Pe}(),gt=function(){function Pe(lt){if((0,Ge.Z)(this,Pe),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),Je(lt)){this.empty=!0;return}this.origin=String(lt),this.number=Number(lt)}return(0,Ie.Z)(Pe,[{key:"negate",value:function(){return new Pe(-this.toNumber())}},{key:"add",value:function(xt){if(this.isInvalidate())return new Pe(xt);var zt=Number(xt);if(Number.isNaN(zt))return this;var tn=this.number+zt;if(tn>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(tn<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var sn=Math.max(De(this.number),De(zt));return new Pe(tn.toFixed(sn))}},{key:"multi",value:function(xt){var zt=Number(xt);if(this.isInvalidate()||Number.isNaN(zt))return new Pe(NaN);var tn=this.number*zt;if(tn>Number.MAX_SAFE_INTEGER)return new Pe(Number.MAX_SAFE_INTEGER);if(tn<Number.MIN_SAFE_INTEGER)return new Pe(Number.MIN_SAFE_INTEGER);var sn=Math.max(De(this.number),De(zt));return new Pe(tn.toFixed(sn))}},{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(xt){return this.toNumber()===(xt==null?void 0:xt.toNumber())}},{key:"lessEquals",value:function(xt){return this.add(xt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return xt?this.isInvalidate()?"":Ke(this.number):this.origin}}]),Pe}();function ct(Pe){return yt()?new Et(Pe):new gt(Pe)}function st(Pe,lt,xt){var zt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Pe==="")return"";var tn=Te(Pe),sn=tn.negativeStr,Tn=tn.integerStr,In=tn.decimalStr,ln="".concat(lt).concat(In),an="".concat(sn).concat(Tn);if(xt>=0){var nn=Number(In[xt]);if(nn>=5&&!zt){var Mn=ct(Pe).add("".concat(sn,"0.").concat("0".repeat(xt)).concat(10-nn));return st(Mn.toString(),lt,xt,zt)}return xt===0?an:"".concat(an).concat(lt).concat(In.padEnd(xt,"0").slice(0,xt))}return ln===".0"?an:"".concat(an).concat(ln)}var Ve=ct,Dt=ie(36901),dt=ie(34280);function Ye(Pe,lt){return typeof Proxy!="undefined"&&Pe?new Proxy(Pe,{get:function(zt,tn){if(lt[tn])return lt[tn];var sn=zt[tn];return typeof sn=="function"?sn.bind(zt):sn}}):Pe}var vt=ie(8654),Re=ie(48736);function rt(Pe,lt){var xt=(0,z.useRef)(null);function zt(){try{var sn=Pe.selectionStart,Tn=Pe.selectionEnd,In=Pe.value,ln=In.substring(0,sn),an=In.substring(Tn);xt.current={start:sn,end:Tn,value:In,beforeTxt:ln,afterTxt:an}}catch(nn){}}function tn(){if(Pe&&xt.current&&lt)try{var sn=Pe.value,Tn=xt.current,In=Tn.beforeTxt,ln=Tn.afterTxt,an=Tn.start,nn=sn.length;if(sn.startsWith(In))nn=In.length;else if(sn.endsWith(ln))nn=sn.length-xt.current.afterTxt.length;else{var Mn=In[an-1],cn=sn.indexOf(Mn,an-1);cn!==-1&&(nn=cn+1)}Pe.setSelectionRange(nn,nn)}catch(yn){(0,Re.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(yn.message))}}return[zt,tn]}var nt=ie(49658),pe=function(){var lt=(0,z.useState)(!1),xt=(0,Oe.Z)(lt,2),zt=xt[0],tn=xt[1];return(0,dt.Z)(function(){tn((0,nt.Z)())},[]),zt},Tt=pe,Le=ie(16089),je=200,It=600;function ge(Pe){var lt=Pe.prefixCls,xt=Pe.upNode,zt=Pe.downNode,tn=Pe.upDisabled,sn=Pe.downDisabled,Tn=Pe.onStep,In=z.useRef(),ln=z.useRef([]),an=z.useRef();an.current=Tn;var nn=function(){clearTimeout(In.current)},Mn=function(Pn,On){Pn.preventDefault(),nn(),an.current(On);function Nn(){an.current(On),In.current=setTimeout(Nn,je)}In.current=setTimeout(Nn,It)};z.useEffect(function(){return function(){nn(),ln.current.forEach(function(Zn){return Le.Z.cancel(Zn)})}},[]);var cn=Tt();if(cn)return null;var yn="".concat(lt,"-handler"),Zt=xe()(yn,"".concat(yn,"-up"),(0,Ee.Z)({},"".concat(yn,"-up-disabled"),tn)),bn=xe()(yn,"".concat(yn,"-down"),(0,Ee.Z)({},"".concat(yn,"-down-disabled"),sn)),fn=function(){return ln.current.push((0,Le.Z)(nn))},Bn={unselectable:"on",role:"button",onMouseUp:fn,onMouseLeave:fn};return z.createElement("div",{className:"".concat(yn,"-wrap")},z.createElement("span",(0,Ce.Z)({},Bn,{onMouseDown:function(Pn){Mn(Pn,!0)},"aria-label":"Increase Value","aria-disabled":tn,className:Zt}),xt||z.createElement("span",{unselectable:"on",className:"".concat(lt,"-handler-up-inner")})),z.createElement("span",(0,Ce.Z)({},Bn,{onMouseDown:function(Pn){Mn(Pn,!1)},"aria-label":"Decrease Value","aria-disabled":sn,className:bn}),zt||z.createElement("span",{unselectable:"on",className:"".concat(lt,"-handler-down-inner")})))}function ce(Pe){var lt=typeof Pe=="number"?Ke(Pe):Te(Pe).fullStr,xt=lt.includes(".");return xt?Te(lt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Pe+"0"}var tt=ie(30292),At=function(){var Pe=(0,z.useRef)(0),lt=function(){Le.Z.cancel(Pe.current)};return(0,z.useEffect)(function(){return lt},[]),function(xt){lt(),Pe.current=(0,Le.Z)(function(){xt()})}},St=["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"],ke=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ue=function(lt,xt){return lt||xt.isEmpty()?xt.toString():xt.toNumber()},Xe=function(lt){var xt=Ve(lt);return xt.isInvalidate()?null:xt},Jt=z.forwardRef(function(Pe,lt){var xt=Pe.prefixCls,zt=Pe.className,tn=Pe.style,sn=Pe.min,Tn=Pe.max,In=Pe.step,ln=In===void 0?1:In,an=Pe.defaultValue,nn=Pe.value,Mn=Pe.disabled,cn=Pe.readOnly,yn=Pe.upHandler,Zt=Pe.downHandler,bn=Pe.keyboard,fn=Pe.changeOnWheel,Bn=fn===void 0?!1:fn,Zn=Pe.controls,Pn=Zn===void 0?!0:Zn,On=Pe.classNames,Nn=Pe.stringMode,Cn=Pe.parser,mn=Pe.formatter,gn=Pe.precision,Ct=Pe.decimalSeparator,Gt=Pe.onChange,Sn=Pe.onInput,jn=Pe.onPressEnter,Ae=Pe.onStep,Qe=Pe.changeOnBlur,be=Qe===void 0?!0:Qe,$e=Pe.domRef,Se=(0,fe.Z)(Pe,St),ze="".concat(xt,"-input"),bt=z.useRef(null),Yt=z.useState(!1),Qt=(0,Oe.Z)(Yt,2),hn=Qt[0],jt=Qt[1],Pt=z.useRef(!1),kt=z.useRef(!1),en=z.useRef(!1),kn=z.useState(function(){return Ve(nn!=null?nn:an)}),wn=(0,Oe.Z)(kn,2),En=wn[0],Xn=wn[1];function Jn(dn){nn===void 0&&Xn(dn)}var Qn=z.useCallback(function(dn,Kt){if(!Kt)return gn>=0?gn:Math.max(De(dn),De(ln))},[gn,ln]),_n=z.useCallback(function(dn){var Kt=String(dn);if(Cn)return Cn(Kt);var Fn=Kt;return Ct&&(Fn=Fn.replace(Ct,".")),Fn.replace(/[^\w.-]+/g,"")},[Cn,Ct]),Rn=z.useRef(""),Hn=z.useCallback(function(dn,Kt){if(mn)return mn(dn,{userTyping:Kt,input:String(Rn.current)});var Fn=typeof dn=="number"?Ke(dn):dn;if(!Kt){var Wn=Qn(Fn,Kt);if(pt(Fn)&&(Ct||Wn>=0)){var on=Ct||".";Fn=st(Fn,on,Wn)}}return Fn},[mn,Qn,Ct]),Un=z.useState(function(){var dn=an!=null?an:nn;return En.isInvalidate()&&["string","number"].includes((0,Be.Z)(dn))?Number.isNaN(dn)?"":dn:Hn(En.toString(),!1)}),ur=(0,Oe.Z)(Un,2),qn=ur[0],lr=ur[1];Rn.current=qn;function ir(dn,Kt){lr(Hn(dn.isInvalidate()?dn.toString(!1):dn.toString(!Kt),Kt))}var er=z.useMemo(function(){return Xe(Tn)},[Tn,gn]),tr=z.useMemo(function(){return Xe(sn)},[sn,gn]),gr=z.useMemo(function(){return!er||!En||En.isInvalidate()?!1:er.lessEquals(En)},[er,En]),mr=z.useMemo(function(){return!tr||!En||En.isInvalidate()?!1:En.lessEquals(tr)},[tr,En]),cr=rt(bt.current,hn),vr=(0,Oe.Z)(cr,2),Cr=vr[0],or=vr[1],dr=function(Kt){return er&&!Kt.lessEquals(er)?er:tr&&!tr.lessEquals(Kt)?tr:null},Vn=function(Kt){return!dr(Kt)},Sr=function(Kt,Fn){var Wn=Kt,on=Vn(Wn)||Wn.isEmpty();if(!Wn.isEmpty()&&!Fn&&(Wn=dr(Wn)||Wn,on=!0),!cn&&!Mn&&on){var un=Wn.toString(),Ln=Qn(un,Fn);return Ln>=0&&(Wn=Ve(st(un,".",Ln)),Vn(Wn)||(Wn=Ve(st(un,".",Ln,!0)))),Wn.equals(En)||(Jn(Wn),Gt==null||Gt(Wn.isEmpty()?null:Ue(Nn,Wn)),nn===void 0&&ir(Wn,Fn)),Wn}return En},Rr=At(),Wr=function dn(Kt){if(Cr(),Rn.current=Kt,lr(Kt),!kt.current){var Fn=_n(Kt),Wn=Ve(Fn);Wn.isNaN()||Sr(Wn,!0)}Sn==null||Sn(Kt),Rr(function(){var on=Kt;Cn||(on=Kt.replace(/。/g,".")),on!==Kt&&dn(on)})},Er=function(){kt.current=!0},Ar=function(){kt.current=!1,Wr(bt.current.value)},Ir=function(Kt){Wr(Kt.target.value)},Dr=function(Kt){var Fn;if(!(Kt&&gr||!Kt&&mr)){Pt.current=!1;var Wn=Ve(en.current?ce(ln):ln);Kt||(Wn=Wn.negate());var on=(En||Ve(0)).add(Wn.toString()),un=Sr(on,!1);Ae==null||Ae(Ue(Nn,un),{offset:en.current?ce(ln):ln,type:Kt?"up":"down"}),(Fn=bt.current)===null||Fn===void 0||Fn.focus()}},$r=function(Kt){var Fn=Ve(_n(qn)),Wn;Fn.isNaN()?Wn=Sr(En,Kt):Wn=Sr(Fn,Kt),nn!==void 0?ir(En,!1):Wn.isNaN()||ir(Wn,!1)},fr=function(){Pt.current=!0},Yn=function(Kt){var Fn=Kt.key,Wn=Kt.shiftKey;Pt.current=!0,en.current=Wn,Fn==="Enter"&&(kt.current||(Pt.current=!1),$r(!1),jn==null||jn(Kt)),bn!==!1&&!kt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Fn)&&(Dr(Fn==="Up"||Fn==="ArrowUp"),Kt.preventDefault())},rn=function(){Pt.current=!1,en.current=!1};z.useEffect(function(){if(Bn&&hn){var dn=function(Wn){Dr(Wn.deltaY<0),Wn.preventDefault()},Kt=bt.current;if(Kt)return Kt.addEventListener("wheel",dn,{passive:!1}),function(){return Kt.removeEventListener("wheel",dn)}}});var pn=function(){be&&$r(!1),jt(!1),Pt.current=!1};return(0,dt.o)(function(){En.isInvalidate()||ir(En,!1)},[gn,mn]),(0,dt.o)(function(){var dn=Ve(nn);Xn(dn);var Kt=Ve(_n(qn));(!dn.equals(Kt)||!Pt.current||mn)&&ir(dn,Pt.current)},[nn]),(0,dt.o)(function(){mn&&or()},[qn]),z.createElement("div",{ref:$e,className:xe()(xt,zt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(xt,"-focused"),hn),"".concat(xt,"-disabled"),Mn),"".concat(xt,"-readonly"),cn),"".concat(xt,"-not-a-number"),En.isNaN()),"".concat(xt,"-out-of-range"),!En.isInvalidate()&&!Vn(En))),style:tn,onFocus:function(){jt(!0)},onBlur:pn,onKeyDown:Yn,onKeyUp:rn,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:fr},Pn&&z.createElement(ge,{prefixCls:xt,upNode:yn,downNode:Zt,upDisabled:gr,downDisabled:mr,onStep:Dr}),z.createElement("div",{className:"".concat(ze,"-wrap")},z.createElement("input",(0,Ce.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":sn,"aria-valuemax":Tn,"aria-valuenow":En.isInvalidate()?null:En.toString(),step:ln},Se,{ref:(0,vt.sQ)(bt,lt),className:ze,value:qn,onChange:Ir,disabled:Mn,readOnly:cn}))))}),Bt=z.forwardRef(function(Pe,lt){var xt=Pe.disabled,zt=Pe.style,tn=Pe.prefixCls,sn=tn===void 0?"rc-input-number":tn,Tn=Pe.value,In=Pe.prefix,ln=Pe.suffix,an=Pe.addonBefore,nn=Pe.addonAfter,Mn=Pe.className,cn=Pe.classNames,yn=(0,fe.Z)(Pe,ke),Zt=z.useRef(null),bn=z.useRef(null),fn=z.useRef(null),Bn=function(Pn){fn.current&&(0,tt.nH)(fn.current,Pn)};return z.useImperativeHandle(lt,function(){return Ye(fn.current,{focus:Bn,nativeElement:Zt.current.nativeElement||bn.current})}),z.createElement(Dt.BaseInput,{className:Mn,triggerFocus:Bn,prefixCls:sn,value:Tn,disabled:xt,style:zt,prefix:In,suffix:ln,addonAfter:nn,addonBefore:an,classNames:cn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Zt},z.createElement(Jt,(0,Ce.Z)({prefixCls:sn,disabled:xt,ref:fn,domRef:bn,className:cn==null?void 0:cn.input},yn)))}),Ht=Bt,Fe=Ht,Rt=ie(62487),ht=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),he=ie(24971),ye=ie(70045),ot=ie(36237),we=ie(53075),We=ie(64910),it=ie(39082),wt=ie(63356),mt=ie(56119),at=ie(16931),ut=ie(51636),_e=ie(17835);const Mt=Pe=>{var lt;const xt=(lt=Pe.handleVisible)!==null&&lt!==void 0?lt:"auto",zt=Pe.controlHeightSM-Pe.lineWidth*2;return Object.assign(Object.assign({},(0,We.T)(Pe)),{controlWidth:90,handleWidth:zt,handleFontSize:Pe.fontSize/2,handleVisible:xt,handleActiveBg:Pe.colorFillAlter,handleBg:Pe.colorBgContainer,filledHandleBg:new _e.FastColor(Pe.colorFillSecondary).onBackground(Pe.colorBgContainer).toHexString(),handleHoverColor:Pe.colorPrimary,handleBorderColor:Pe.colorBorder,handleOpacity:xt===!0?1:0,handleVisibleWidth:xt===!0?zt:0})},Wt=(Pe,lt)=>{let{componentCls:xt,borderRadiusSM:zt,borderRadiusLG:tn}=Pe;const sn=lt==="lg"?tn:zt;return{[`&-${lt}`]:{[`${xt}-handler-wrap`]:{borderStartEndRadius:sn,borderEndEndRadius:sn},[`${xt}-handler-up`]:{borderStartEndRadius:sn},[`${xt}-handler-down`]:{borderEndEndRadius:sn}}}},_t=Pe=>{const{componentCls:lt,lineWidth:xt,lineType:zt,borderRadius:tn,inputFontSizeSM:sn,inputFontSizeLG:Tn,controlHeightLG:In,controlHeightSM:ln,colorError:an,paddingInlineSM:nn,paddingBlockSM:Mn,paddingBlockLG:cn,paddingInlineLG:yn,colorTextDescription:Zt,motionDurationMid:bn,handleHoverColor:fn,handleOpacity:Bn,paddingInline:Zn,paddingBlock:Pn,handleBg:On,handleActiveBg:Nn,colorTextDisabled:Cn,borderRadiusSM:mn,borderRadiusLG:gn,controlWidth:Ct,handleBorderColor:Gt,filledHandleBg:Sn,lineHeightLG:jn,calc:Ae}=Pe;return[{[lt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Pe)),(0,we.ik)(Pe)),{display:"inline-block",width:Ct,margin:0,padding:0,borderRadius:tn}),(0,it.qG)(Pe,{[`${lt}-handler-wrap`]:{background:On,[`${lt}-handler-down`]:{borderBlockStart:`${(0,ot.unit)(xt)} ${zt} ${Gt}`}}})),(0,it.H8)(Pe,{[`${lt}-handler-wrap`]:{background:Sn,[`${lt}-handler-down`]:{borderBlockStart:`${(0,ot.unit)(xt)} ${zt} ${Gt}`}},"&:focus-within":{[`${lt}-handler-wrap`]:{background:On}}})),(0,it.vc)(Pe,{[`${lt}-handler-wrap`]:{background:On,[`${lt}-handler-down`]:{borderBlockStart:`${(0,ot.unit)(xt)} ${zt} ${Gt}`}}})),(0,it.Mu)(Pe)),{"&-rtl":{direction:"rtl",[`${lt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Tn,lineHeight:jn,borderRadius:gn,[`input${lt}-input`]:{height:Ae(In).sub(Ae(xt).mul(2)).equal(),padding:`${(0,ot.unit)(cn)} ${(0,ot.unit)(yn)}`}},"&-sm":{padding:0,fontSize:sn,borderRadius:mn,[`input${lt}-input`]:{height:Ae(ln).sub(Ae(xt).mul(2)).equal(),padding:`${(0,ot.unit)(Mn)} ${(0,ot.unit)(nn)}`}},"&-out-of-range":{[`${lt}-input-wrap`]:{input:{color:an}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Pe)),(0,we.s7)(Pe)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${lt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${lt}-group-addon`]:{borderRadius:gn,fontSize:Pe.fontSizeLG}},"&-sm":{[`${lt}-group-addon`]:{borderRadius:mn}}},(0,it.ir)(Pe)),(0,it.S5)(Pe)),{[`&:not(${lt}-compact-first-item):not(${lt}-compact-last-item)${lt}-compact-item`]:{[`${lt}, ${lt}-group-addon`]:{borderRadius:0}},[`&:not(${lt}-compact-last-item)${lt}-compact-first-item`]:{[`${lt}, ${lt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${lt}-compact-first-item)${lt}-compact-last-item`]:{[`${lt}, ${lt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${lt}-input`]:{cursor:"not-allowed"},[lt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Pe)),{width:"100%",padding:`${(0,ot.unit)(Pn)} ${(0,ot.unit)(Zn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:tn,outline:0,transition:`all ${bn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,we.nz)(Pe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${lt}-handler-wrap, &-focused ${lt}-handler-wrap`]:{width:Pe.handleWidth,opacity:1}})},{[lt]:Object.assign(Object.assign(Object.assign({[`${lt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Pe.handleVisibleWidth,opacity:Bn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:tn,borderEndEndRadius:tn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${bn}`,overflow:"hidden",[`${lt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${lt}-handler-up-inner,
${lt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Pe.handleFontSize}}},[`${lt}-handler`]:{height:"50%",overflow:"hidden",color:Zt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ot.unit)(xt)} ${zt} ${Gt}`,transition:`all ${bn} linear`,"&:active":{background:Nn},"&:hover":{height:"60%",[`
${lt}-handler-up-inner,
${lt}-handler-down-inner
`]:{color:fn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,wt.Ro)()),{color:Zt,transition:`all ${bn} linear`,userSelect:"none"})},[`${lt}-handler-up`]:{borderStartEndRadius:tn},[`${lt}-handler-down`]:{borderEndEndRadius:tn}},Wt(Pe,"lg")),Wt(Pe,"sm")),{"&-disabled, &-readonly":{[`${lt}-handler-wrap`]:{display:"none"},[`${lt}-input`]:{color:"inherit"}},[`
${lt}-handler-up-disabled,
${lt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${lt}-handler-up-disabled:hover &-handler-up-inner,
${lt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Cn}})}]},ft=Pe=>{const{componentCls:lt,paddingBlock:xt,paddingInline:zt,inputAffixPadding:tn,controlWidth:sn,borderRadiusLG:Tn,borderRadiusSM:In,paddingInlineLG:ln,paddingInlineSM:an,paddingBlockLG:nn,paddingBlockSM:Mn,motionDurationMid:cn}=Pe;return{[`${lt}-affix-wrapper`]:Object.assign(Object.assign({[`input${lt}-input`]:{padding:`${(0,ot.unit)(xt)} 0`}},(0,we.ik)(Pe)),{position:"relative",display:"inline-flex",alignItems:"center",width:sn,padding:0,paddingInlineStart:zt,"&-lg":{borderRadius:Tn,paddingInlineStart:ln,[`input${lt}-input`]:{padding:`${(0,ot.unit)(nn)} 0`}},"&-sm":{borderRadius:In,paddingInlineStart:an,[`input${lt}-input`]:{padding:`${(0,ot.unit)(Mn)} 0`}},[`&:not(${lt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${lt}-disabled`]:{background:"transparent"},[`> div${lt}`]:{width:"100%",border:"none",outline:"none",[`&${lt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${lt}-handler-wrap`]:{zIndex:2},[lt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:tn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:zt,marginInlineStart:tn,transition:`margin ${cn}`}},[`&:hover ${lt}-handler-wrap, &-focused ${lt}-handler-wrap`]:{width:Pe.handleWidth,opacity:1},[`&:not(${lt}-affix-wrapper-without-controls):hover ${lt}-suffix`]:{marginInlineEnd:Pe.calc(Pe.handleWidth).add(zt).equal()}})}};var $t=(0,at.I$)("InputNumber",Pe=>{const lt=(0,ut.mergeToken)(Pe,(0,We.e)(Pe));return[_t(lt),ft(lt),(0,mt.c)(lt)]},Mt,{unitless:{handleOpacity:!0}}),Me=function(Pe,lt){var xt={};for(var zt in Pe)Object.prototype.hasOwnProperty.call(Pe,zt)&&lt.indexOf(zt)<0&&(xt[zt]=Pe[zt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,zt=Object.getOwnPropertySymbols(Pe);tn<zt.length;tn++)lt.indexOf(zt[tn])<0&&Object.prototype.propertyIsEnumerable.call(Pe,zt[tn])&&(xt[zt[tn]]=Pe[zt[tn]]);return xt};const Nt=z.forwardRef((Pe,lt)=>{const{getPrefixCls:xt,direction:zt}=z.useContext(ae.E_),tn=z.useRef(null);z.useImperativeHandle(lt,()=>tn.current);const{className:sn,rootClassName:Tn,size:In,disabled:ln,prefixCls:an,addonBefore:nn,addonAfter:Mn,prefix:cn,suffix:yn,bordered:Zt,readOnly:bn,status:fn,controls:Bn,variant:Zn}=Pe,Pn=Me(Pe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),On=xt("input-number",an),Nn=(0,oe.Z)(On),[Cn,mn,gn]=$t(On,Nn),{compactSize:Ct,compactItemClassnames:Gt}=(0,ye.ri)(On,zt);let Sn=z.createElement(ve.Z,{className:`${On}-handler-up-inner`}),jn=z.createElement(qe.Z,{className:`${On}-handler-down-inner`});const Ae=typeof Bn=="boolean"?Bn:void 0;typeof Bn=="object"&&(Sn=typeof Bn.upIcon=="undefined"?Sn:z.createElement("span",{className:`${On}-handler-up-inner`},Bn.upIcon),jn=typeof Bn.downIcon=="undefined"?jn:z.createElement("span",{className:`${On}-handler-down-inner`},Bn.downIcon));const{hasFeedback:Qe,status:be,isFormItemInput:$e,feedbackIcon:Se}=z.useContext(ne.aM),ze=(0,ht.F)(be,fn),bt=(0,se.Z)(wn=>{var En;return(En=In!=null?In:Ct)!==null&&En!==void 0?En:wn}),Yt=z.useContext(ee.Z),Qt=ln!=null?ln:Yt,[hn,jt]=(0,he.Z)("inputNumber",Zn,Zt),Pt=Qe&&z.createElement(z.Fragment,null,Se),kt=xe()({[`${On}-lg`]:bt==="large",[`${On}-sm`]:bt==="small",[`${On}-rtl`]:zt==="rtl",[`${On}-in-form-item`]:$e},mn),en=`${On}-group`,kn=z.createElement(Fe,Object.assign({ref:tn,disabled:Qt,className:xe()(gn,Nn,sn,Tn,Gt),upHandler:Sn,downHandler:jn,prefixCls:On,readOnly:bn,controls:Ae,prefix:cn,suffix:Pt||yn,addonBefore:nn&&z.createElement(Rt.Z,{form:!0,space:!0},nn),addonAfter:Mn&&z.createElement(Rt.Z,{form:!0,space:!0},Mn),classNames:{input:kt,variant:xe()({[`${On}-${hn}`]:jt},(0,ht.Z)(On,ze,Qe)),affixWrapper:xe()({[`${On}-affix-wrapper-sm`]:bt==="small",[`${On}-affix-wrapper-lg`]:bt==="large",[`${On}-affix-wrapper-rtl`]:zt==="rtl",[`${On}-affix-wrapper-without-controls`]:Bn===!1||Qt},mn),wrapper:xe()({[`${en}-rtl`]:zt==="rtl"},mn),groupWrapper:xe()({[`${On}-group-wrapper-sm`]:bt==="small",[`${On}-group-wrapper-lg`]:bt==="large",[`${On}-group-wrapper-rtl`]:zt==="rtl",[`${On}-group-wrapper-${hn}`]:jt},(0,ht.Z)(`${On}-group-wrapper`,ze,Qe),mn)}},Pn));return Cn(kn)}),Vt=Nt,xn=Pe=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Nt,Object.assign({},Pe)));Vt._InternalPanelDoNotUseOrYouWillBeFired=xn;var Xt=Vt},49397:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return gt}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(36901),xe=ie(8654),Ce=ie(62487),Ee=ie(86013),Be=ie(82855),Oe=ie(48755),fe=ie(2171),Ge=ie(83397),Ie=ie(31756),yt=ie(56553),Je=ie(24971),Te=ie(70045),Ne=ie(23826),De=ie(53075);function Ke(ct){return!!(ct.prefix||ct.suffix||ct.allowClear||ct.showCount)}var pt=function(ct,st){var Ve={};for(var Dt in ct)Object.prototype.hasOwnProperty.call(ct,Dt)&&st.indexOf(Dt)<0&&(Ve[Dt]=ct[Dt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Dt=Object.getOwnPropertySymbols(ct);dt<Dt.length;dt++)st.indexOf(Dt[dt])<0&&Object.prototype.propertyIsEnumerable.call(ct,Dt[dt])&&(Ve[Dt[dt]]=ct[Dt[dt]]);return Ve},gt=(0,z.forwardRef)((ct,st)=>{const{prefixCls:Ve,bordered:Dt=!0,status:dt,size:Ye,disabled:vt,onBlur:Re,onFocus:rt,suffix:nt,allowClear:pe,addonAfter:Tt,addonBefore:Le,className:je,style:It,styles:ge,rootClassName:ce,onChange:tt,classNames:At,variant:St}=ct,ke=pt(ct,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ue,direction:Xe,allowClear:Jt,autoComplete:Bt,className:Ht,style:Fe,classNames:Rt,styles:ht}=(0,Oe.dj)("input"),ae=Ue("input",Ve),te=(0,z.useRef)(null),ee=(0,Ge.Z)(ae),[oe,se,ne]=(0,De.TI)(ae,ce),[he]=(0,De.ZP)(ae,ee),{compactSize:ye,compactItemClassnames:ot}=(0,Te.ri)(ae,Xe),we=(0,Ie.Z)(Xt=>{var Pe;return(Pe=Ye!=null?Ye:ye)!==null&&Pe!==void 0?Pe:Xt}),We=z.useContext(fe.Z),it=vt!=null?vt:We,{status:wt,hasFeedback:mt,feedbackIcon:at}=(0,z.useContext)(yt.aM),ut=(0,Be.F)(wt,dt),_e=Ke(ct)||!!mt,Mt=(0,z.useRef)(_e),Wt=(0,Ne.Z)(te,!0),_t=Xt=>{Wt(),Re==null||Re(Xt)},ft=Xt=>{Wt(),rt==null||rt(Xt)},$t=Xt=>{Wt(),tt==null||tt(Xt)},Me=(mt||nt)&&z.createElement(z.Fragment,null,nt,mt&&at),Nt=(0,Ee.Z)(pe!=null?pe:Jt),[Vt,xn]=(0,Je.Z)("input",St,Dt);return oe(he(z.createElement(He.default,Object.assign({ref:(0,xe.sQ)(st,te),prefixCls:ae,autoComplete:Bt},ke,{disabled:it,onBlur:_t,onFocus:ft,style:Object.assign(Object.assign({},Fe),It),styles:Object.assign(Object.assign({},ht),ge),suffix:Me,allowClear:Nt,className:ve()(je,ce,ne,ee,ot,Ht),onChange:$t,addonBefore:Le&&z.createElement(Ce.Z,{form:!0,space:!0},Le),addonAfter:Tt&&z.createElement(Ce.Z,{form:!0,space:!0},Tt),classNames:Object.assign(Object.assign(Object.assign({},At),Rt),{input:ve()({[`${ae}-sm`]:we==="small",[`${ae}-lg`]:we==="large",[`${ae}-rtl`]:Xe==="rtl"},At==null?void 0:At.input,Rt.input,se),variant:ve()({[`${ae}-${Vt}`]:xn},(0,Be.Z)(ae,ut)),affixWrapper:ve()({[`${ae}-affix-wrapper-sm`]:we==="small",[`${ae}-affix-wrapper-lg`]:we==="large",[`${ae}-affix-wrapper-rtl`]:Xe==="rtl"},se),wrapper:ve()({[`${ae}-group-rtl`]:Xe==="rtl"},se),groupWrapper:ve()({[`${ae}-group-wrapper-sm`]:we==="small",[`${ae}-group-wrapper-lg`]:we==="large",[`${ae}-group-wrapper-rtl`]:Xe==="rtl",[`${ae}-group-wrapper-${Vt}`]:xn},(0,Be.Z)(`${ae}-group-wrapper`,ut,mt),se)})}))))})},79809:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return st}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(22711),xe=ie(86013),Ce=ie(82855),Ee=ie(48755),Be=ie(2171),Oe=ie(83397),fe=ie(31756),Ge=ie(56553),Ie=ie(24971),yt=ie(70045),Je=ie(30292),Te=ie(53075),Ne=ie(16931),De=ie(51636),Ke=ie(64910);const pt=Ve=>{const{componentCls:Dt,paddingLG:dt}=Ve,Ye=`${Dt}-textarea`;return{[`textarea${Dt}`]:{maxWidth:"100%",height:"auto",minHeight:Ve.controlHeight,lineHeight:Ve.lineHeight,verticalAlign:"bottom",transition:`all ${Ve.motionDurationSlow}`,resize:"vertical",[`&${Dt}-mouse-active`]:{transition:`all ${Ve.motionDurationSlow}, height 0s, width 0s`}},[`${Dt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ye]:{position:"relative","&-show-count":{[`> ${Dt}`]:{height:"100%"},[`${Dt}-data-count`]:{position:"absolute",bottom:Ve.calc(Ve.fontSize).mul(Ve.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${Dt},
&-affix-wrapper${Ye}-has-feedback ${Dt}
`]:{paddingInlineEnd:dt},[`&-affix-wrapper${Dt}-affix-wrapper`]:{padding:0,[`> textarea${Dt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ve.calc(Ve.controlHeight).sub(Ve.calc(Ve.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Dt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Dt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingInline,insetBlockStart:Ve.paddingXS},[`${Ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Dt}-affix-wrapper-sm`]:{[`${Dt}-suffix`]:{[`${Dt}-clear-icon`]:{insetInlineEnd:Ve.paddingInlineSM}}}}}};var Et=(0,Ne.I$)(["Input","TextArea"],Ve=>{const Dt=(0,De.mergeToken)(Ve,(0,Ke.e)(Ve));return[pt(Dt)]},Ke.T,{resetFont:!1}),gt=function(Ve,Dt){var dt={};for(var Ye in Ve)Object.prototype.hasOwnProperty.call(Ve,Ye)&&Dt.indexOf(Ye)<0&&(dt[Ye]=Ve[Ye]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ye=Object.getOwnPropertySymbols(Ve);vt<Ye.length;vt++)Dt.indexOf(Ye[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ye[vt])&&(dt[Ye[vt]]=Ve[Ye[vt]]);return dt},st=(0,z.forwardRef)((Ve,Dt)=>{var dt;const{prefixCls:Ye,bordered:vt=!0,size:Re,disabled:rt,status:nt,allowClear:pe,classNames:Tt,rootClassName:Le,className:je,style:It,styles:ge,variant:ce,showCount:tt,onMouseDown:At,onResize:St}=Ve,ke=gt(Ve,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ue,direction:Xe,allowClear:Jt,autoComplete:Bt,className:Ht,style:Fe,classNames:Rt,styles:ht}=(0,Ee.dj)("textArea"),ae=z.useContext(Be.Z),te=rt!=null?rt:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(Ge.aM),ne=(0,Ce.F)(ee,nt),he=z.useRef(null);z.useImperativeHandle(Dt,()=>{var xn;return{resizableTextArea:(xn=he.current)===null||xn===void 0?void 0:xn.resizableTextArea,focus:Xt=>{var Pe,lt;(0,Je.nH)((lt=(Pe=he.current)===null||Pe===void 0?void 0:Pe.resizableTextArea)===null||lt===void 0?void 0:lt.textArea,Xt)},blur:()=>{var Xt;return(Xt=he.current)===null||Xt===void 0?void 0:Xt.blur()}}});const ye=Ue("input",Ye),ot=(0,Oe.Z)(ye),[we,We,it]=(0,Te.TI)(ye,Le),[wt]=Et(ye,ot),{compactSize:mt,compactItemClassnames:at}=(0,yt.ri)(ye,Xe),ut=(0,fe.Z)(xn=>{var Xt;return(Xt=Re!=null?Re:mt)!==null&&Xt!==void 0?Xt:xn}),[_e,Mt]=(0,Ie.Z)("textArea",ce,vt),Wt=(0,xe.Z)(pe!=null?pe:Jt),[_t,ft]=z.useState(!1),[$t,Me]=z.useState(!1),Nt=xn=>{ft(!0),At==null||At(xn);const Xt=()=>{ft(!1),document.removeEventListener("mouseup",Xt)};document.addEventListener("mouseup",Xt)},Vt=xn=>{var Xt,Pe;if(St==null||St(xn),_t&&typeof getComputedStyle=="function"){const lt=(Pe=(Xt=he.current)===null||Xt===void 0?void 0:Xt.nativeElement)===null||Pe===void 0?void 0:Pe.querySelector("textarea");lt&&getComputedStyle(lt).resize==="both"&&Me(!0)}};return we(wt(z.createElement(He.default,Object.assign({autoComplete:Bt},ke,{style:Object.assign(Object.assign({},Fe),It),styles:Object.assign(Object.assign({},ht),ge),disabled:te,allowClear:Wt,className:ve()(it,ot,je,Le,at,Ht,$t&&`${ye}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Tt),Rt),{textarea:ve()({[`${ye}-sm`]:ut==="small",[`${ye}-lg`]:ut==="large"},We,Tt==null?void 0:Tt.textarea,Rt.textarea,_t&&`${ye}-mouse-active`),variant:ve()({[`${ye}-${_e}`]:Mt},(0,Ce.Z)(ye,ne)),affixWrapper:ve()(`${ye}-textarea-affix-wrapper`,{[`${ye}-affix-wrapper-rtl`]:Xe==="rtl",[`${ye}-affix-wrapper-sm`]:ut==="small",[`${ye}-affix-wrapper-lg`]:ut==="large",[`${ye}-textarea-show-count`]:tt||((dt=Ve.count)===null||dt===void 0?void 0:dt.show)},We)}),prefixCls:ye,suffix:oe&&z.createElement("span",{className:`${ye}-textarea-suffix`},se),showCount:tt,ref:he,onResize:Vt,onMouseDown:Nt}))))})},23826:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return qe}});var z=ie(59301);function qe(ve,He){const xe=(0,z.useRef)([]),Ce=()=>{xe.current.push(setTimeout(()=>{var Ee,Be,Oe,fe;!((Ee=ve.current)===null||Ee===void 0)&&Ee.input&&((Be=ve.current)===null||Be===void 0?void 0:Be.input.getAttribute("type"))==="password"&&(!((Oe=ve.current)===null||Oe===void 0)&&Oe.input.hasAttribute("value"))&&((fe=ve.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(He&&Ce(),()=>xe.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),Ce}},37568:function(Ut,Ft,ie){"use strict";ie.d(Ft,{default:function(){return Rt}});var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(48755),xe=ie(56553),Ce=ie(53075),Be=ht=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(He.E_),{prefixCls:ee,className:oe}=ht,se=ae("input-group",ee),ne=ae("input"),[he,ye,ot]=(0,Ce.ZP)(ne),we=ve()(se,ot,{[`${se}-lg`]:ht.size==="large",[`${se}-sm`]:ht.size==="small",[`${se}-compact`]:ht.compact,[`${se}-rtl`]:te==="rtl"},ye,oe),We=(0,z.useContext)(xe.aM),it=(0,z.useMemo)(()=>Object.assign(Object.assign({},We),{isFormItemInput:!1}),[We]);return he(z.createElement("span",{className:we,style:ht.style,onMouseEnter:ht.onMouseEnter,onMouseLeave:ht.onMouseLeave,onFocus:ht.onFocus,onBlur:ht.onBlur},z.createElement(xe.aM.Provider,{value:it},ht.children)))},Oe=ie(49397),fe=ie(77654),Ge=ie(6089),Ie=ie(26112),yt=ie(82855),Je=ie(31756),Te=ie(16931),Ne=ie(51636),De=ie(64910);const Ke=ht=>{const{componentCls:ae,paddingXS:te}=ht;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:ht.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:ht.calc(ht.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:ht.paddingXS}}}};var pt=(0,Te.I$)(["Input","OTP"],ht=>{const ae=(0,Ne.mergeToken)(ht,(0,De.e)(ht));return[Ke(ae)]},De.T),Et=ie(16089),gt=function(ht,ae){var te={};for(var ee in ht)Object.prototype.hasOwnProperty.call(ht,ee)&&ae.indexOf(ee)<0&&(te[ee]=ht[ee]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ht);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ht,ee[oe])&&(te[ee[oe]]=ht[ee[oe]]);return te},st=z.forwardRef((ht,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=ht,he=gt(ht,["value","onChange","onActiveChange","index","mask"]),ye=te&&typeof ne=="string"?ne:te,ot=mt=>{ee(se,mt.target.value)},we=z.useRef(null);z.useImperativeHandle(ae,()=>we.current);const We=()=>{(0,Et.Z)(()=>{var mt;const at=(mt=we.current)===null||mt===void 0?void 0:mt.input;document.activeElement===at&&at&&at.select()})},it=mt=>{const{key:at,ctrlKey:ut,metaKey:_e}=mt;at==="ArrowLeft"?oe(se-1):at==="ArrowRight"?oe(se+1):at==="z"&&(ut||_e)&&mt.preventDefault(),We()},wt=mt=>{mt.key==="Backspace"&&!te&&oe(se-1),We()};return z.createElement(Oe.Z,Object.assign({type:ne===!0?"password":"text"},he,{ref:we,value:ye,onInput:ot,onFocus:We,onKeyDown:it,onKeyUp:wt,onMouseDown:We,onMouseUp:We}))}),Ve=function(ht,ae){var te={};for(var ee in ht)Object.prototype.hasOwnProperty.call(ht,ee)&&ae.indexOf(ee)<0&&(te[ee]=ht[ee]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ht);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ht,ee[oe])&&(te[ee[oe]]=ht[ee[oe]]);return te};function Dt(ht){return(ht||"").split("")}const dt=ht=>{const{index:ae,prefixCls:te,separator:ee}=ht,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var vt=z.forwardRef((ht,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:he,formatter:ye,separator:ot,variant:we,disabled:We,status:it,autoFocus:wt,mask:mt,type:at,onInput:ut,inputMode:_e}=ht,Mt=Ve(ht,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Wt,direction:_t}=z.useContext(He.E_),ft=Wt("otp",te),$t=(0,Ie.Z)(Mt,{aria:!0,data:!0,attr:!0}),[Me,Nt,Vt]=pt(ft),xn=(0,Je.Z)(cn=>oe!=null?oe:cn),Xt=z.useContext(xe.aM),Pe=(0,yt.F)(Xt.status,it),lt=z.useMemo(()=>Object.assign(Object.assign({},Xt),{status:Pe,hasFeedback:!1,feedbackIcon:null}),[Xt,Pe]),xt=z.useRef(null),zt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var cn;(cn=zt.current[0])===null||cn===void 0||cn.focus()},blur:()=>{var cn;for(let yn=0;yn<ee;yn+=1)(cn=zt.current[yn])===null||cn===void 0||cn.blur()},nativeElement:xt.current}));const tn=cn=>ye?ye(cn):cn,[sn,Tn]=z.useState(()=>Dt(tn(se||"")));z.useEffect(()=>{ne!==void 0&&Tn(Dt(ne))},[ne]);const In=(0,Ge.Z)(cn=>{Tn(cn),ut&&ut(cn),he&&cn.length===ee&&cn.every(yn=>yn)&&cn.some((yn,Zt)=>sn[Zt]!==yn)&&he(cn.join(""))}),ln=(0,Ge.Z)((cn,yn)=>{let Zt=(0,fe.Z)(sn);for(let fn=0;fn<cn;fn+=1)Zt[fn]||(Zt[fn]="");yn.length<=1?Zt[cn]=yn:Zt=Zt.slice(0,cn).concat(Dt(yn)),Zt=Zt.slice(0,ee);for(let fn=Zt.length-1;fn>=0&&!Zt[fn];fn-=1)Zt.pop();const bn=tn(Zt.map(fn=>fn||" ").join(""));return Zt=Dt(bn).map((fn,Bn)=>fn===" "&&!Zt[Bn]?Zt[Bn]:fn),Zt}),an=(cn,yn)=>{var Zt;const bn=ln(cn,yn),fn=Math.min(cn+yn.length,ee-1);fn!==cn&&bn[cn]!==void 0&&((Zt=zt.current[fn])===null||Zt===void 0||Zt.focus()),In(bn)},nn=cn=>{var yn;(yn=zt.current[cn])===null||yn===void 0||yn.focus()},Mn={variant:we,disabled:We,status:Pe,mask:mt,type:at,inputMode:_e};return Me(z.createElement("div",Object.assign({},$t,{ref:xt,className:ve()(ft,{[`${ft}-sm`]:xn==="small",[`${ft}-lg`]:xn==="large",[`${ft}-rtl`]:_t==="rtl"},Vt,Nt)}),z.createElement(xe.aM.Provider,{value:lt},Array.from({length:ee}).map((cn,yn)=>{const Zt=`otp-${yn}`,bn=sn[yn]||"";return z.createElement(z.Fragment,{key:Zt},z.createElement(st,Object.assign({ref:fn=>{zt.current[yn]=fn},index:yn,size:xn,htmlSize:1,className:`${ft}-input`,onChange:an,value:bn,onActiveChange:nn,autoFocus:yn===0&&wt},Mn)),yn<ee-1&&z.createElement(dt,{separator:ot,index:yn,prefixCls:ft}))}))))}),Re=ie(73331),rt=ie(15277),nt=ie(2738),pe=ie(8654),Tt=ie(2171),Le=ie(23826),je=function(ht,ae){var te={};for(var ee in ht)Object.prototype.hasOwnProperty.call(ht,ee)&&ae.indexOf(ee)<0&&(te[ee]=ht[ee]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ht);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ht,ee[oe])&&(te[ee[oe]]=ht[ee[oe]]);return te};const It=ht=>ht?z.createElement(rt.Z,null):z.createElement(Re.Z,null),ge={click:"onClick",hover:"onMouseOver"};var tt=z.forwardRef((ht,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=It}=ht,ne=z.useContext(Tt.Z),he=te!=null?te:ne,ye=typeof oe=="object"&&oe.visible!==void 0,[ot,we]=(0,z.useState)(()=>ye?oe.visible:!1),We=(0,z.useRef)(null);z.useEffect(()=>{ye&&we(oe.visible)},[ye,oe]);const it=(0,Le.Z)(We),wt=()=>{var xn;if(he)return;ot&&it();const Xt=!ot;we(Xt),typeof oe=="object"&&((xn=oe.onVisibleChange)===null||xn===void 0||xn.call(oe,Xt))},mt=xn=>{const Xt=ge[ee]||"",Pe=se(ot),lt={[Xt]:wt,className:`${xn}-icon`,key:"passwordIcon",onMouseDown:xt=>{xt.preventDefault()},onMouseUp:xt=>{xt.preventDefault()}};return z.cloneElement(z.isValidElement(Pe)?Pe:z.createElement("span",null,Pe),lt)},{className:at,prefixCls:ut,inputPrefixCls:_e,size:Mt}=ht,Wt=je(ht,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_t}=z.useContext(He.E_),ft=_t("input",_e),$t=_t("input-password",ut),Me=oe&&mt($t),Nt=ve()($t,at,{[`${$t}-${Mt}`]:!!Mt}),Vt=Object.assign(Object.assign({},(0,nt.Z)(Wt,["suffix","iconRender","visibilityToggle"])),{type:ot?"text":"password",className:Nt,prefixCls:ft,suffix:Me});return Mt&&(Vt.size=Mt),z.createElement(Oe.Z,Object.assign({ref:(0,pe.sQ)(ae,We)},Vt))}),At=ie(47472),St=ie(22703),ke=ie(7939),Ue=ie(70045),Xe=function(ht,ae){var te={};for(var ee in ht)Object.prototype.hasOwnProperty.call(ht,ee)&&ae.indexOf(ee)<0&&(te[ee]=ht[ee]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ht);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ht,ee[oe])&&(te[ee[oe]]=ht[ee[oe]]);return te},Bt=z.forwardRef((ht,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:he=!1,addonAfter:ye,loading:ot,disabled:we,onSearch:We,onChange:it,onCompositionStart:wt,onCompositionEnd:mt}=ht,at=Xe(ht,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ut,direction:_e}=z.useContext(He.E_),Mt=z.useRef(!1),Wt=ut("input-search",te),_t=ut("input",ee),{compactSize:ft}=(0,Ue.ri)(Wt,_e),$t=(0,Je.Z)(an=>{var nn;return(nn=se!=null?se:ft)!==null&&nn!==void 0?nn:an}),Me=z.useRef(null),Nt=an=>{an!=null&&an.target&&an.type==="click"&&We&&We(an.target.value,an,{source:"clear"}),it==null||it(an)},Vt=an=>{var nn;document.activeElement===((nn=Me.current)===null||nn===void 0?void 0:nn.input)&&an.preventDefault()},xn=an=>{var nn,Mn;We&&We((Mn=(nn=Me.current)===null||nn===void 0?void 0:nn.input)===null||Mn===void 0?void 0:Mn.value,an,{source:"input"})},Xt=an=>{Mt.current||ot||xn(an)},Pe=typeof he=="boolean"?z.createElement(At.Z,null):null,lt=`${Wt}-button`;let xt;const zt=he||{},tn=zt.type&&zt.type.__ANT_BUTTON===!0;tn||zt.type==="button"?xt=(0,St.Tm)(zt,Object.assign({onMouseDown:Vt,onClick:an=>{var nn,Mn;(Mn=(nn=zt==null?void 0:zt.props)===null||nn===void 0?void 0:nn.onClick)===null||Mn===void 0||Mn.call(nn,an),xn(an)},key:"enterButton"},tn?{className:lt,size:$t}:{})):xt=z.createElement(ke.ZP,{className:lt,type:he?"primary":void 0,size:$t,disabled:we,key:"enterButton",onMouseDown:Vt,onClick:xn,loading:ot,icon:Pe},he),ye&&(xt=[xt,(0,St.Tm)(ye,{key:"addonAfter"})]);const sn=ve()(Wt,{[`${Wt}-rtl`]:_e==="rtl",[`${Wt}-${$t}`]:!!$t,[`${Wt}-with-button`]:!!he},oe),Tn=Object.assign(Object.assign({},at),{className:sn,prefixCls:_t,type:"search"}),In=an=>{Mt.current=!0,wt==null||wt(an)},ln=an=>{Mt.current=!1,mt==null||mt(an)};return z.createElement(Oe.Z,Object.assign({ref:(0,pe.sQ)(Me,ae),onPressEnter:Xt},Tn,{size:$t,onCompositionStart:In,onCompositionEnd:ln,addonAfter:xt,suffix:ne,onChange:Nt,disabled:we}))}),Ht=ie(79809);const Fe=Oe.Z;Fe.Group=Be,Fe.Search=Bt,Fe.TextArea=Ht.Z,Fe.Password=tt,Fe.OTP=vt;var Rt=Fe},24303:function(Ut,Ft,ie){"use strict";ie.d(Ft,{D:function(){return Ve},Z:function(){return Ye}});var z=ie(59301),qe=ie(60499),ve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},He=ve,xe=ie(7657),Ce=function(Re,rt){return z.createElement(xe.Z,(0,qe.Z)({},Re,{ref:rt,icon:He}))},Ee=z.forwardRef(Ce),Be=Ee,Oe=ie(33853),fe=ie(38819),Ge=ie(92310),Ie=ie.n(Ge),yt=ie(2738),Je=ie(48755),Te=ie(6989),Ne=ie(36237),De=ie(48923),Ke=ie(16931);const pt=vt=>{const{componentCls:Re,siderBg:rt,motionDurationMid:nt,motionDurationSlow:pe,antCls:Tt,triggerHeight:Le,triggerColor:je,triggerBg:It,headerHeight:ge,zeroTriggerWidth:ce,zeroTriggerHeight:tt,borderRadiusLG:At,lightSiderBg:St,lightTriggerColor:ke,lightTriggerBg:Ue,bodyBg:Xe}=vt;return{[Re]:{position:"relative",minWidth:0,background:rt,transition:`all ${nt}, background 0s`,"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},[`${Re}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Tt}-menu${Tt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Re}-children`]:{overflow:"hidden"},[`${Re}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Le,color:je,lineHeight:(0,Ne.unit)(Le),textAlign:"center",background:It,cursor:"pointer",transition:`all ${nt}`},[`${Re}-zero-width-trigger`]:{position:"absolute",top:ge,insetInlineEnd:vt.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:tt,color:je,fontSize:vt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderRadius:`0 ${(0,Ne.unit)(At)} ${(0,Ne.unit)(At)} 0`,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:vt.calc(ce).mul(-1).equal(),borderRadius:`${(0,Ne.unit)(At)} 0 0 ${(0,Ne.unit)(At)}`}},"&-light":{background:St,[`${Re}-trigger`]:{color:ke,background:Ue},[`${Re}-zero-width-trigger`]:{color:ke,background:Ue,border:`1px solid ${Xe}`,borderInlineStart:0}}}}};var Et=(0,Ke.I$)(["Layout","Sider"],vt=>[pt(vt)],De.eh,{deprecatedTokens:De.jn}),gt=function(vt,Re){var rt={};for(var nt in vt)Object.prototype.hasOwnProperty.call(vt,nt)&&Re.indexOf(nt)<0&&(rt[nt]=vt[nt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,nt=Object.getOwnPropertySymbols(vt);pe<nt.length;pe++)Re.indexOf(nt[pe])<0&&Object.prototype.propertyIsEnumerable.call(vt,nt[pe])&&(rt[nt[pe]]=vt[nt[pe]]);return rt};const ct={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},st=vt=>!Number.isNaN(Number.parseFloat(vt))&&isFinite(vt),Ve=z.createContext({}),Dt=(()=>{let vt=0;return function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return vt+=1,`${Re}${vt}`}})();var Ye=z.forwardRef((vt,Re)=>{const{prefixCls:rt,className:nt,trigger:pe,children:Tt,defaultCollapsed:Le=!1,theme:je="dark",style:It={},collapsible:ge=!1,reverseArrow:ce=!1,width:tt=200,collapsedWidth:At=80,zeroWidthTriggerStyle:St,breakpoint:ke,onCollapse:Ue,onBreakpoint:Xe}=vt,Jt=gt(vt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Bt}=(0,z.useContext)(Te.V),[Ht,Fe]=(0,z.useState)("collapsed"in vt?vt.collapsed:Le),[Rt,ht]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in vt&&Fe(vt.collapsed)},[vt.collapsed]);const ae=($t,Me)=>{"collapsed"in vt||Fe($t),Ue==null||Ue($t,Me)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(Je.E_),oe=te("layout-sider",rt),[se,ne,he]=Et(oe),ye=(0,z.useRef)(null);ye.current=$t=>{ht($t.matches),Xe==null||Xe($t.matches),Ht!==$t.matches&&ae($t.matches,"responsive")},(0,z.useEffect)(()=>{function $t(Nt){return ye.current(Nt)}let Me;if(typeof window!="undefined"){const{matchMedia:Nt}=window;if(Nt&&ke&&ke in ct){Me=Nt(`screen and (max-width: ${ct[ke]})`);try{Me.addEventListener("change",$t)}catch(Vt){Me.addListener($t)}$t(Me)}}return()=>{try{Me==null||Me.removeEventListener("change",$t)}catch(Nt){Me==null||Me.removeListener($t)}}},[ke]),(0,z.useEffect)(()=>{const $t=Dt("ant-sider-");return Bt.addSider($t),()=>Bt.removeSider($t)},[]);const ot=()=>{ae(!Ht,"clickTrigger")},we=(0,yt.Z)(Jt,["collapsed"]),We=Ht?At:tt,it=st(We)?`${We}px`:String(We),wt=parseFloat(String(At||0))===0?z.createElement("span",{onClick:ot,className:Ie()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:St},pe||z.createElement(Be,null)):null,mt=ee==="rtl"==!ce,_e={expanded:mt?z.createElement(fe.Z,null):z.createElement(Oe.Z,null),collapsed:mt?z.createElement(Oe.Z,null):z.createElement(fe.Z,null)}[Ht?"collapsed":"expanded"],Mt=pe!==null?wt||z.createElement("div",{className:`${oe}-trigger`,onClick:ot,style:{width:it}},pe||_e):null,Wt=Object.assign(Object.assign({},It),{flex:`0 0 ${it}`,maxWidth:it,minWidth:it,width:it}),_t=Ie()(oe,`${oe}-${je}`,{[`${oe}-collapsed`]:!!Ht,[`${oe}-has-trigger`]:ge&&pe!==null&&!wt,[`${oe}-below`]:!!Rt,[`${oe}-zero-width`]:parseFloat(it)===0},nt,ne,he),ft=z.useMemo(()=>({siderCollapsed:Ht}),[Ht]);return se(z.createElement(Ve.Provider,{value:ft},z.createElement("aside",Object.assign({className:_t},we,{style:Wt,ref:Re}),z.createElement("div",{className:`${oe}-children`},Tt),ge||Rt&&wt?Mt:null)))})},6989:function(Ut,Ft,ie){"use strict";ie.d(Ft,{V:function(){return qe}});var z=ie(59301);const qe=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Ut,Ft,ie){"use strict";ie.d(Ft,{eh:function(){return He},jn:function(){return xe}});var z=ie(36237),qe=ie(16931);const ve=Ce=>{const{antCls:Ee,componentCls:Be,colorText:Oe,footerBg:fe,headerHeight:Ge,headerPadding:Ie,headerColor:yt,footerPadding:Je,fontSize:Te,bodyBg:Ne,headerBg:De}=Ce;return{[Be]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ne,"&, *":{boxSizing:"border-box"},[`&${Be}-has-sider`]:{flexDirection:"row",[`> ${Be}, > ${Be}-content`]:{width:0}},[`${Be}-header, &${Be}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Be}-header`]:{height:Ge,padding:Ie,color:yt,lineHeight:(0,z.unit)(Ge),background:De,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${Be}-footer`]:{padding:Je,color:Oe,fontSize:Te,background:fe},[`${Be}-content`]:{flex:"auto",color:Oe,minHeight:0}}},He=Ce=>{const{colorBgLayout:Ee,controlHeight:Be,controlHeightLG:Oe,colorText:fe,controlHeightSM:Ge,marginXXS:Ie,colorTextLightSolid:yt,colorBgContainer:Je}=Ce,Te=Oe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:Be*2,headerPadding:`0 ${Te}px`,headerColor:fe,footerPadding:`${Ge}px ${Te}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Oe+Ie*2,triggerBg:"#002140",triggerColor:yt,zeroTriggerWidth:Oe,zeroTriggerHeight:Oe,lightSiderBg:Je,lightTriggerBg:Je,lightTriggerColor:fe}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ft.ZP=(0,qe.I$)("Layout",Ce=>[ve(Ce)],He,{deprecatedTokens:xe})},78857:function(Ut,Ft,ie){"use strict";ie.d(Ft,{J:function(){return Ce}});var z=ie(59301),qe=ie(8654),ve=ie(62487),He=function(Ee,Be){var Oe={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&Be.indexOf(fe)<0&&(Oe[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,fe=Object.getOwnPropertySymbols(Ee);Ge<fe.length;Ge++)Be.indexOf(fe[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Ee,fe[Ge])&&(Oe[fe[Ge]]=Ee[fe[Ge]]);return Oe};const xe=z.createContext(null),Ce=z.forwardRef((Ee,Be)=>{const{children:Oe}=Ee,fe=He(Ee,["children"]),Ge=z.useContext(xe),Ie=z.useMemo(()=>Object.assign(Object.assign({},Ge),fe),[Ge,fe.prefixCls,fe.mode,fe.selectable,fe.rootClassName]),yt=(0,qe.t4)(Oe),Je=(0,qe.x1)(Be,yt?(0,qe.C4)(Oe):null);return z.createElement(xe.Provider,{value:Ie},z.createElement(ve.Z,{space:!0},yt?z.cloneElement(Oe,{ref:Je}):Oe))});Ft.Z=xe},93041:function(Ut,Ft,ie){"use strict";ie.d(Ft,{default:function(){return se}});var z=ie(59301),qe=ie(28321),ve=ie(24303),He=ie(18785),xe=ie(92310),Ce=ie.n(xe),Ee=ie(6089),Be=ie(2738),Oe=ie(86641),fe=ie(22703),Ge=ie(48755),Ie=ie(83397),Je=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(ne,he){var ye={};for(var ot in ne)Object.prototype.hasOwnProperty.call(ne,ot)&&he.indexOf(ot)<0&&(ye[ot]=ne[ot]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ot=Object.getOwnPropertySymbols(ne);we<ot.length;we++)he.indexOf(ot[we])<0&&Object.prototype.propertyIsEnumerable.call(ne,ot[we])&&(ye[ot[we]]=ne[ot[we]]);return ye},De=ne=>{const{prefixCls:he,className:ye,dashed:ot}=ne,we=Te(ne,["prefixCls","className","dashed"]),{getPrefixCls:We}=z.useContext(Ge.E_),it=We("menu",he),wt=Ce()({[`${it}-item-divider-dashed`]:!!ot},ye);return z.createElement(qe.iz,Object.assign({className:wt},we))},Ke=ie(11592),pt=ie(25399),gt=ne=>{var he;const{className:ye,children:ot,icon:we,title:We,danger:it,extra:wt}=ne,{prefixCls:mt,firstLevel:at,direction:ut,disableMenuItemTitleTooltip:_e,inlineCollapsed:Mt}=z.useContext(Je),Wt=Vt=>{const xn=ot==null?void 0:ot[0],Xt=z.createElement("span",{className:Ce()(`${mt}-title-content`,{[`${mt}-title-content-with-extra`]:!!wt||wt===0})},ot);return(!we||z.isValidElement(ot)&&ot.type==="span")&&ot&&Vt&&at&&typeof xn=="string"?z.createElement("div",{className:`${mt}-inline-collapsed-noicon`},xn.charAt(0)):Xt},{siderCollapsed:_t}=z.useContext(ve.D);let ft=We;typeof We=="undefined"?ft=at?ot:"":We===!1&&(ft="");const $t={title:ft};!_t&&!Mt&&($t.title=null,$t.open=!1);const Me=(0,Ke.Z)(ot).length;let Nt=z.createElement(qe.ck,Object.assign({},(0,Be.Z)(ne,["title","icon","danger"]),{className:Ce()({[`${mt}-item-danger`]:it,[`${mt}-item-only-child`]:(we?Me+1:Me)===1},ye),title:typeof We=="string"?We:void 0}),(0,fe.Tm)(we,{className:Ce()(z.isValidElement(we)?(he=we.props)===null||he===void 0?void 0:he.className:"",`${mt}-item-icon`)}),Wt(Mt));return _e||(Nt=z.createElement(pt.Z,Object.assign({},$t,{placement:ut==="rtl"?"left":"right",classNames:{root:`${mt}-inline-collapsed-tooltip`}}),Nt)),Nt},ct=ie(78857),st=ie(36237),Ve=ie(17835),Dt=ie(63356),dt=ie(34961),Ye=ie(46e3),vt=ie(34925),Re=ie(16931),rt=ie(51636),pe=ne=>{const{componentCls:he,motionDurationSlow:ye,horizontalLineHeight:ot,colorSplit:we,lineWidth:We,lineType:it,itemPaddingInline:wt}=ne;return{[`${he}-horizontal`]:{lineHeight:ot,border:0,borderBottom:`${(0,st.unit)(We)} ${it} ${we}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${he}-item:hover,
> ${he}-item-active,
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Le=ne=>{let{componentCls:he,menuArrowOffset:ye,calc:ot}=ne;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,st.unit)(ot(ye).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,st.unit)(ye)})`}}}}};const je=ne=>Object.assign({},(0,Dt.oN)(ne));var ge=(ne,he)=>{const{componentCls:ye,itemColor:ot,itemSelectedColor:we,subMenuItemSelectedColor:We,groupTitleColor:it,itemBg:wt,subMenuItemBg:mt,itemSelectedBg:at,activeBarHeight:ut,activeBarWidth:_e,activeBarBorderWidth:Mt,motionDurationSlow:Wt,motionEaseInOut:_t,motionEaseOut:ft,itemPaddingInline:$t,motionDurationMid:Me,itemHoverColor:Nt,lineType:Vt,colorSplit:xn,itemDisabledColor:Xt,dangerItemColor:Pe,dangerItemHoverColor:lt,dangerItemSelectedColor:xt,dangerItemActiveBg:zt,dangerItemSelectedBg:tn,popupBg:sn,itemHoverBg:Tn,itemActiveBg:In,menuSubMenuBg:ln,horizontalItemSelectedColor:an,horizontalItemSelectedBg:nn,horizontalItemBorderRadius:Mn,horizontalItemHoverBg:cn}=ne;return{[`${ye}-${he}, ${ye}-${he} > ${ye}`]:{color:ot,background:wt,[`&${ye}-root:focus-visible`]:Object.assign({},je(ne)),[`${ye}-item`]:{"&-group-title, &-extra":{color:it}},[`${ye}-submenu-selected > ${ye}-submenu-title`]:{color:We},[`${ye}-item, ${ye}-submenu-title`]:{color:ot,[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},je(ne))},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${Xt} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Nt}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:In}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Tn},"&:active":{backgroundColor:In}}},[`${ye}-item-danger`]:{color:Pe,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:lt}},[`&${ye}-item:active`]:{background:zt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:we,[`&${ye}-item-danger`]:{color:xt},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:at,[`&${ye}-item-danger`]:{backgroundColor:tn}},[`&${ye}-submenu > ${ye}`]:{backgroundColor:ln},[`&${ye}-popup > ${ye}`]:{backgroundColor:sn},[`&${ye}-submenu-popup > ${ye}`]:{backgroundColor:sn},[`&${ye}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Mt,marginTop:ne.calc(Mt).mul(-1).equal(),marginBottom:0,borderRadius:Mn,"&::after":{position:"absolute",insetInline:$t,bottom:0,borderBottom:`${(0,st.unit)(ut)} solid transparent`,transition:`border-color ${Wt} ${_t}`,content:'""'},"&:hover, &-active, &-open":{background:cn,"&::after":{borderBottomWidth:ut,borderBottomColor:an}},"&-selected":{color:an,backgroundColor:nn,"&:hover":{backgroundColor:nn},"&::after":{borderBottomWidth:ut,borderBottomColor:an}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${(0,st.unit)(Mt)} ${Vt} ${xn}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:mt},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,st.unit)(_e)} solid ${we}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Me} ${ft}`,`opacity ${Me} ${ft}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:xt}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Me} ${_t}`,`opacity ${Me} ${_t}`].join(",")}}}}}};const ce=ne=>{const{componentCls:he,itemHeight:ye,itemMarginInline:ot,padding:we,menuArrowSize:We,marginXS:it,itemMarginBlock:wt,itemWidth:mt,itemPaddingInline:at}=ne,ut=ne.calc(We).add(we).add(it).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:ye,lineHeight:(0,st.unit)(ye),paddingInline:at,overflow:"hidden",textOverflow:"ellipsis",marginInline:ot,marginBlock:wt,width:mt},[`> ${he}-item,
> ${he}-submenu > ${he}-submenu-title`]:{height:ye,lineHeight:(0,st.unit)(ye)},[`${he}-item-group-list ${he}-submenu-title,
${he}-submenu-title`]:{paddingInlineEnd:ut}}};var At=ne=>{const{componentCls:he,iconCls:ye,itemHeight:ot,colorTextLightSolid:we,dropdownWidth:We,controlHeightLG:it,motionEaseOut:wt,paddingXL:mt,itemMarginInline:at,fontSizeLG:ut,motionDurationFast:_e,motionDurationSlow:Mt,paddingXS:Wt,boxShadowSecondary:_t,collapsedWidth:ft,collapsedIconSize:$t}=ne,Me={height:ot,lineHeight:(0,st.unit)(ot),listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},ce(ne))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},ce(ne)),{boxShadow:_t})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:We,maxHeight:`calc(100vh - ${(0,st.unit)(ne.calc(it).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Mt}`,`background ${Mt}`,`padding ${_e} ${wt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:Me,[`& ${he}-item-group-title`]:{paddingInlineStart:mt}},[`${he}-item`]:Me}},{[`${he}-inline-collapsed`]:{width:ft,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:ut,textAlign:"center"}}},[`> ${he}-item,
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,st.unit)(ne.calc($t).div(2).equal())} - ${(0,st.unit)(at)})`,textOverflow:"clip",[`
${he}-submenu-arrow,
${he}-submenu-expand-icon
`]:{opacity:0},[`${he}-item-icon, ${ye}`]:{margin:0,fontSize:$t,lineHeight:(0,st.unit)(ot),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:we}},[`${he}-item-group-title`]:Object.assign(Object.assign({},Dt.vS),{paddingInline:Wt})}}]};const St=ne=>{const{componentCls:he,motionDurationSlow:ye,motionDurationMid:ot,motionEaseInOut:we,motionEaseOut:We,iconCls:it,iconSize:wt,iconMarginInlineEnd:mt}=ne;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding calc(${ye} + 0.1s) ${we}`].join(","),[`${he}-item-icon, ${it}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${ot} ${We}`,`margin ${ye} ${we}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${ye} ${we}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,Dt.Ro)()),[`&${he}-item-only-child`]:{[`> ${it}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ke=ne=>{const{componentCls:he,motionDurationSlow:ye,motionEaseInOut:ot,borderRadius:we,menuArrowSize:We,menuArrowOffset:it}=ne;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:We,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${ot}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(We).mul(.6).equal(),height:ne.calc(We).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:we,transition:[`background ${ye} ${ot}`,`transform ${ye} ${ot}`,`top ${ye} ${ot}`,`color ${ye} ${ot}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,st.unit)(ne.calc(it).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,st.unit)(it)})`}}}}},Ue=ne=>{const{antCls:he,componentCls:ye,fontSize:ot,motionDurationSlow:we,motionDurationMid:We,motionEaseInOut:it,paddingXS:wt,padding:mt,colorSplit:at,lineWidth:ut,zIndexPopup:_e,borderRadiusLG:Mt,subMenuItemBorderRadius:Wt,menuArrowSize:_t,menuArrowOffset:ft,lineType:$t,groupTitleLineHeight:Me,groupTitleFontSize:Nt}=ne;return[{"":{[ye]:Object.assign(Object.assign({},(0,Dt.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(ne)),(0,Dt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ot,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${we} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${(0,st.unit)(wt)} ${(0,st.unit)(mt)}`,fontSize:Nt,lineHeight:Me,transition:`all ${we}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${we} ${it}`,`background ${we} ${it}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${we} ${it}`,`background ${we} ${it}`,`padding ${We} ${it}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${we} ${it}`,`padding ${we} ${it}`].join(",")},[`${ye}-title-content`]:{transition:`color ${we}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ye}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:at,borderStyle:$t,borderWidth:0,borderTopWidth:ut,marginBlock:ut,padding:0,"&-dashed":{borderStyle:"dashed"}}}),St(ne)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${(0,st.unit)(ne.calc(ot).mul(2).equal())} ${(0,st.unit)(mt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_e,borderRadius:Mt,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:Mt},St(ne)),ke(ne)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Wt},[`${ye}-submenu-title::after`]:{transition:`transform ${we} ${it}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),ke(ne)),{[`&-inline-collapsed ${ye}-submenu-arrow,
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,st.unit)(ft)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,st.unit)(ne.calc(ft).mul(-1).equal())})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(${(0,st.unit)(ne.calc(_t).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,st.unit)(ne.calc(ft).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,st.unit)(ft)})`}}})},{[`${he}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]},Xe=ne=>{var he,ye,ot;const{colorPrimary:we,colorError:We,colorTextDisabled:it,colorErrorBg:wt,colorText:mt,colorTextDescription:at,colorBgContainer:ut,colorFillAlter:_e,colorFillContent:Mt,lineWidth:Wt,lineWidthBold:_t,controlItemBgActive:ft,colorBgTextHover:$t,controlHeightLG:Me,lineHeight:Nt,colorBgElevated:Vt,marginXXS:xn,padding:Xt,fontSize:Pe,controlHeightSM:lt,fontSizeLG:xt,colorTextLightSolid:zt,colorErrorHover:tn}=ne,sn=(he=ne.activeBarWidth)!==null&&he!==void 0?he:0,Tn=(ye=ne.activeBarBorderWidth)!==null&&ye!==void 0?ye:Wt,In=(ot=ne.itemMarginInline)!==null&&ot!==void 0?ot:ne.marginXXS,ln=new Ve.FastColor(zt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:we,horizontalItemHoverColor:we,colorGroupTitle:at,groupTitleColor:at,colorItemTextSelected:we,itemSelectedColor:we,subMenuItemSelectedColor:we,colorItemTextSelectedHorizontal:we,horizontalItemSelectedColor:we,colorItemBg:ut,itemBg:ut,colorItemBgHover:$t,itemHoverBg:$t,colorItemBgActive:Mt,itemActiveBg:ft,colorSubItemBg:_e,subMenuItemBg:_e,colorItemBgSelected:ft,itemSelectedBg:ft,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:sn,colorActiveBarHeight:_t,activeBarHeight:_t,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Tn,colorItemTextDisabled:it,itemDisabledColor:it,colorDangerItemText:We,dangerItemColor:We,colorDangerItemTextHover:We,dangerItemHoverColor:We,colorDangerItemTextSelected:We,dangerItemSelectedColor:We,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:In,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Me,groupTitleLineHeight:Nt,collapsedWidth:Me*2,popupBg:Vt,itemMarginBlock:xn,itemPaddingInline:Xt,horizontalLineHeight:`${Me*1.15}px`,iconSize:Pe,iconMarginInlineEnd:lt-Pe,collapsedIconSize:xt,groupTitleFontSize:Pe,darkItemDisabledColor:new Ve.FastColor(zt).setA(.25).toRgbString(),darkItemColor:ln,darkDangerItemColor:We,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zt,darkItemSelectedBg:we,darkDangerItemSelectedBg:We,darkItemHoverBg:"transparent",darkGroupTitleColor:ln,darkItemHoverColor:zt,darkDangerItemHoverColor:tn,darkDangerItemSelectedColor:zt,darkDangerItemActiveBg:We,itemWidth:sn?`calc(100% + ${Tn}px)`:`calc(100% - ${In*2}px)`}};var Jt=function(ne){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Re.I$)("Menu",we=>{const{colorBgElevated:We,controlHeightLG:it,fontSize:wt,darkItemColor:mt,darkDangerItemColor:at,darkItemBg:ut,darkSubMenuItemBg:_e,darkItemSelectedColor:Mt,darkItemSelectedBg:Wt,darkDangerItemSelectedBg:_t,darkItemHoverBg:ft,darkGroupTitleColor:$t,darkItemHoverColor:Me,darkItemDisabledColor:Nt,darkDangerItemHoverColor:Vt,darkDangerItemSelectedColor:xn,darkDangerItemActiveBg:Xt,popupBg:Pe,darkPopupBg:lt}=we,xt=we.calc(wt).div(7).mul(5).equal(),zt=(0,rt.mergeToken)(we,{menuArrowSize:xt,menuHorizontalHeight:we.calc(it).mul(1.15).equal(),menuArrowOffset:we.calc(xt).mul(.25).equal(),menuSubMenuBg:We,calc:we.calc,popupBg:Pe}),tn=(0,rt.mergeToken)(zt,{itemColor:mt,itemHoverColor:Me,groupTitleColor:$t,itemSelectedColor:Mt,subMenuItemSelectedColor:Mt,itemBg:ut,popupBg:lt,subMenuItemBg:_e,itemActiveBg:"transparent",itemSelectedBg:Wt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ft,itemDisabledColor:Nt,dangerItemColor:at,dangerItemHoverColor:Vt,dangerItemSelectedColor:xn,dangerItemActiveBg:Xt,dangerItemSelectedBg:_t,menuSubMenuBg:_e,horizontalItemSelectedColor:Mt,horizontalItemSelectedBg:Wt});return[Ue(zt),pe(zt),At(zt),ge(zt,"light"),ge(tn,"dark"),Le(zt),(0,dt.Z)(zt),(0,Ye.oN)(zt,"slide-up"),(0,Ye.oN)(zt,"slide-down"),(0,vt._y)(zt,"zoom-big")]},Xe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:ye,unitless:{groupTitleLineHeight:!0}})(ne,he)},Bt=ie(75030),Fe=ne=>{var he;const{popupClassName:ye,icon:ot,title:we,theme:We}=ne,it=z.useContext(Je),{prefixCls:wt,inlineCollapsed:mt,theme:at}=it,ut=(0,qe.Xl)();let _e;if(!ot)_e=mt&&!ut.length&&we&&typeof we=="string"?z.createElement("div",{className:`${wt}-inline-collapsed-noicon`},we.charAt(0)):z.createElement("span",{className:`${wt}-title-content`},we);else{const _t=z.isValidElement(we)&&we.type==="span";_e=z.createElement(z.Fragment,null,(0,fe.Tm)(ot,{className:Ce()(z.isValidElement(ot)?(he=ot.props)===null||he===void 0?void 0:he.className:"",`${wt}-item-icon`)}),_t?we:z.createElement("span",{className:`${wt}-title-content`},we))}const Mt=z.useMemo(()=>Object.assign(Object.assign({},it),{firstLevel:!1}),[it]),[Wt]=(0,Bt.Cn)("Menu");return z.createElement(Je.Provider,{value:Mt},z.createElement(qe.Wd,Object.assign({},(0,Be.Z)(ne,["icon"]),{title:_e,popupClassName:Ce()(wt,ye,`${wt}-${We||at}`),popupStyle:Object.assign({zIndex:Wt},ne.popupStyle)})))},Rt=function(ne,he){var ye={};for(var ot in ne)Object.prototype.hasOwnProperty.call(ne,ot)&&he.indexOf(ot)<0&&(ye[ot]=ne[ot]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,ot=Object.getOwnPropertySymbols(ne);we<ot.length;we++)he.indexOf(ot[we])<0&&Object.prototype.propertyIsEnumerable.call(ne,ot[we])&&(ye[ot[we]]=ne[ot[we]]);return ye};function ht(ne){return ne===null||ne===!1}const ae={item:gt,submenu:Fe,divider:De};var ee=(0,z.forwardRef)((ne,he)=>{var ye;const ot=z.useContext(ct.Z),we=ot||{},{getPrefixCls:We,getPopupContainer:it,direction:wt,menu:mt}=z.useContext(Ge.E_),at=We(),{prefixCls:ut,className:_e,style:Mt,theme:Wt="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:ft,inlineCollapsed:$t,siderCollapsed:Me,rootClassName:Nt,mode:Vt,selectable:xn,onClick:Xt,overflowedIndicatorPopupClassName:Pe}=ne,lt=Rt(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),xt=(0,Be.Z)(lt,["collapsedWidth"]);(ye=we.validator)===null||ye===void 0||ye.call(we,{mode:Vt});const zt=(0,Ee.Z)(function(){var fn;Xt==null||Xt.apply(void 0,arguments),(fn=we.onClick)===null||fn===void 0||fn.call(we)}),tn=we.mode||Vt,sn=xn!=null?xn:we.selectable,Tn=$t!=null?$t:Me,In={horizontal:{motionName:`${at}-slide-up`},inline:(0,Oe.Z)(at),other:{motionName:`${at}-zoom-big`}},ln=We("menu",ut||we.prefixCls),an=(0,Ie.Z)(ln),[nn,Mn,cn]=Jt(ln,an,!ot),yn=Ce()(`${ln}-${Wt}`,mt==null?void 0:mt.className,_e),Zt=z.useMemo(()=>{var fn,Bn;if(typeof _t=="function"||ht(_t))return _t||null;if(typeof we.expandIcon=="function"||ht(we.expandIcon))return we.expandIcon||null;if(typeof(mt==null?void 0:mt.expandIcon)=="function"||ht(mt==null?void 0:mt.expandIcon))return(mt==null?void 0:mt.expandIcon)||null;const Zn=(fn=_t!=null?_t:we==null?void 0:we.expandIcon)!==null&&fn!==void 0?fn:mt==null?void 0:mt.expandIcon;return(0,fe.Tm)(Zn,{className:Ce()(`${ln}-submenu-expand-icon`,z.isValidElement(Zn)?(Bn=Zn.props)===null||Bn===void 0?void 0:Bn.className:void 0)})},[_t,we==null?void 0:we.expandIcon,mt==null?void 0:mt.expandIcon,ln]),bn=z.useMemo(()=>({prefixCls:ln,inlineCollapsed:Tn||!1,direction:wt,firstLevel:!0,theme:Wt,mode:tn,disableMenuItemTitleTooltip:ft}),[ln,Tn,wt,ft,Wt]);return nn(z.createElement(ct.Z.Provider,{value:null},z.createElement(Je.Provider,{value:bn},z.createElement(qe.ZP,Object.assign({getPopupContainer:it,overflowedIndicator:z.createElement(He.Z,null),overflowedIndicatorPopupClassName:Ce()(ln,`${ln}-${Wt}`,Pe),mode:tn,selectable:sn,onClick:zt},xt,{inlineCollapsed:Tn,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Mt),className:yn,prefixCls:ln,direction:wt,defaultMotions:In,expandIcon:Zt,ref:he,rootClassName:Ce()(Nt,Mn,we.rootClassName,cn,an),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((ne,he)=>{const ye=(0,z.useRef)(null),ot=z.useContext(ve.D);return(0,z.useImperativeHandle)(he,()=>({menu:ye.current,focus:we=>{var We;(We=ye.current)===null||We===void 0||We.focus(we)}})),z.createElement(ee,Object.assign({ref:ye},ne,ot))});oe.Item=gt,oe.SubMenu=Fe,oe.Divider=De,oe.ItemGroup=qe.BW;var se=oe},82326:function(Ut,Ft,ie){"use strict";var z=ie(59301),qe=ie(92310),ve=ie.n(qe),He=ie(37463),xe=ie(2738),Ce=ie(75030),Ee=ie(86641),Be=ie(45915),Oe=ie(82855),fe=ie(48755),Ge=ie(38406),Ie=ie(2171),yt=ie(83397),Je=ie(31756),Te=ie(56553),Ne=ie(24971),De=ie(70045),Ke=ie(57700),pt=ie(1722),Et=ie(90376),gt=ie(68525),ct=ie(90005),st=function(vt,Re){var rt={};for(var nt in vt)Object.prototype.hasOwnProperty.call(vt,nt)&&Re.indexOf(nt)<0&&(rt[nt]=vt[nt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,nt=Object.getOwnPropertySymbols(vt);pe<nt.length;pe++)Re.indexOf(nt[pe])<0&&Object.prototype.propertyIsEnumerable.call(vt,nt[pe])&&(rt[nt[pe]]=vt[nt[pe]]);return rt};const Ve="SECRET_COMBOBOX_MODE_DO_NOT_USE",Dt=(vt,Re)=>{var rt;const{prefixCls:nt,bordered:pe,className:Tt,rootClassName:Le,getPopupContainer:je,popupClassName:It,dropdownClassName:ge,listHeight:ce=256,placement:tt,listItemHeight:At,size:St,disabled:ke,notFoundContent:Ue,status:Xe,builtinPlacements:Jt,dropdownMatchSelectWidth:Bt,popupMatchSelectWidth:Ht,direction:Fe,style:Rt,allowClear:ht,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=vt,he=st(vt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:ye,getPrefixCls:ot,renderEmpty:we,direction:We,virtual:it,popupMatchSelectWidth:wt,popupOverflow:mt}=z.useContext(fe.E_),at=(0,fe.dj)("select"),[,ut]=(0,Ke.ZP)(),_e=At!=null?At:ut==null?void 0:ut.controlHeight,Mt=ot("select",nt),Wt=ot(),_t=Fe!=null?Fe:We,{compactSize:ft,compactItemClassnames:$t}=(0,De.ri)(Mt,_t),[Me,Nt]=(0,Ne.Z)("select",ae,pe),Vt=(0,yt.Z)(Mt),[xn,Xt,Pe]=(0,Et.Z)(Mt,Vt),lt=z.useMemo(()=>{const{mode:gn}=vt;if(gn!=="combobox")return gn===Ve?"combobox":gn},[vt.mode]),xt=lt==="multiple"||lt==="tags",zt=(0,ct.Z)(vt.suffixIcon,vt.showArrow),tn=(rt=Ht!=null?Ht:Bt)!==null&&rt!==void 0?rt:wt,{status:sn,hasFeedback:Tn,isFormItemInput:In,feedbackIcon:ln}=z.useContext(Te.aM),an=(0,Oe.F)(sn,Xe);let nn;Ue!==void 0?nn=Ue:lt==="combobox"?nn=null:nn=(we==null?void 0:we("Select"))||z.createElement(Ge.Z,{componentName:"Select"});const{suffixIcon:Mn,itemIcon:cn,removeIcon:yn,clearIcon:Zt}=(0,gt.Z)(Object.assign(Object.assign({},he),{multiple:xt,hasFeedback:Tn,feedbackIcon:ln,showSuffixIcon:zt,prefixCls:Mt,componentName:"Select"})),bn=ht===!0?{clearIcon:Zt}:ht,fn=(0,xe.Z)(he,["suffixIcon","itemIcon"]),Bn=ve()(It||ge,{[`${Mt}-dropdown-${_t}`]:_t==="rtl"},Le,Pe,Vt,Xt),Zn=(0,Je.Z)(gn=>{var Ct;return(Ct=St!=null?St:ft)!==null&&Ct!==void 0?Ct:gn}),Pn=z.useContext(Ie.Z),On=ke!=null?ke:Pn,Nn=ve()({[`${Mt}-lg`]:Zn==="large",[`${Mt}-sm`]:Zn==="small",[`${Mt}-rtl`]:_t==="rtl",[`${Mt}-${Me}`]:Nt,[`${Mt}-in-form-item`]:In},(0,Oe.Z)(Mt,an,Tn),$t,at.className,Tt,Le,Pe,Vt,Xt),Cn=z.useMemo(()=>tt!==void 0?tt:_t==="rtl"?"bottomRight":"bottomLeft",[tt,_t]),[mn]=(0,Ce.Cn)("SelectLike",te==null?void 0:te.zIndex);return xn(z.createElement(He.ZP,Object.assign({ref:Re,virtual:it,showSearch:at.showSearch},fn,{style:Object.assign(Object.assign({},at.style),Rt),dropdownMatchSelectWidth:tn,transitionName:(0,Ee.m)(Wt,"slide-up",ee),builtinPlacements:(0,pt.Z)(Jt,mt),listHeight:ce,listItemHeight:_e,mode:lt,prefixCls:Mt,placement:Cn,direction:_t,prefix:ne,suffixIcon:Mn,menuItemSelectedIcon:cn,removeIcon:yn,allowClear:bn,notFoundContent:nn,className:Nn,getPopupContainer:je||ye,dropdownClassName:Bn,disabled:On,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:mn}),maxCount:xt?se:void 0,tagRender:xt?oe:void 0})))},dt=z.forwardRef(Dt),Ye=(0,Be.Z)(dt,"dropdownAlign");dt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ve,dt.Option=He.Wx,dt.OptGroup=He.Xo,dt._InternalPanelDoNotUseOrYouWillBeFired=Ye,Ft.default=dt},1722:function(Ut,Ft){"use strict";const ie=qe=>{const He={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:qe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},He),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},He),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},He),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},He),{points:["br","tr"],offset:[0,-4]})}};function z(qe,ve){return qe||ie(ve)}Ft.Z=z},90376:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return nt}});var z=ie(63356),qe=ie(56119),ve=ie(16931),He=ie(51636),xe=ie(46e3),Ce=ie(93873);const Ee=pe=>{const{optionHeight:Tt,optionFontSize:Le,optionLineHeight:je,optionPadding:It}=pe;return{position:"relative",display:"block",minHeight:Tt,padding:It,color:pe.colorText,fontWeight:"normal",fontSize:Le,lineHeight:je,boxSizing:"border-box"}};var Oe=pe=>{const{antCls:Tt,componentCls:Le}=pe,je=`${Le}-item`,It=`&${Tt}-slide-up-enter${Tt}-slide-up-enter-active`,ge=`&${Tt}-slide-up-appear${Tt}-slide-up-appear-active`,ce=`&${Tt}-slide-up-leave${Tt}-slide-up-leave-active`,tt=`${Le}-dropdown-placement-`,At=`${je}-option-selected`;return[{[`${Le}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[`
${It}${tt}bottomLeft,
${ge}${tt}bottomLeft
`]:{animationName:xe.fJ},[`
${It}${tt}topLeft,
${ge}${tt}topLeft,
${It}${tt}topRight,
${ge}${tt}topRight
`]:{animationName:xe.Qt},[`${ce}${tt}bottomLeft`]:{animationName:xe.Uw},[`
${ce}${tt}topLeft,
${ce}${tt}topRight
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[je]:Object.assign(Object.assign({},Ee(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${je}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${je}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${je}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${je}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ee(pe)),{color:pe.colorTextDisabled})}),[`${At}:has(+ ${At})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${At}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(pe,"slide-up"),(0,xe.oN)(pe,"slide-down"),(0,Ce.Fm)(pe,"move-up"),(0,Ce.Fm)(pe,"move-down")]},fe=ie(26743),Ge=ie(36237);function Ie(pe,Tt){const{componentCls:Le,inputPaddingHorizontalBase:je,borderRadius:It}=pe,ge=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),ce=Tt?`${Le}-${Tt}`:"";return{[`${Le}-single${ce}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${Le}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(pe,!0)),{display:"flex",borderRadius:It,flex:"1 1 auto",[`${Le}-selection-wrap:after`]:{lineHeight:(0,Ge.unit)(ge)},[`${Le}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Le}-selection-item,
${Le}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Ge.unit)(ge),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Le}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Le}-selection-item:empty:after`,`${Le}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Le}-show-arrow ${Le}-selection-item,
&${Le}-show-arrow ${Le}-selection-search,
&${Le}-show-arrow ${Le}-selection-placeholder
`]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${Le}-open ${Le}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${Le}-customize-input)`]:{[`${Le}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ge.unit)(je)}`,[`${Le}-selection-search-input`]:{height:ge,fontSize:pe.fontSize},"&:after":{lineHeight:(0,Ge.unit)(ge)}}},[`&${Le}-customize-input`]:{[`${Le}-selector`]:{"&:after":{display:"none"},[`${Le}-selection-search`]:{position:"static",width:"100%"},[`${Le}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ge.unit)(je)}`,"&:after":{display:"none"}}}}}}}function yt(pe){const{componentCls:Tt}=pe,Le=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[Ie(pe),Ie((0,He.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${Tt}-single${Tt}-sm`]:{[`&:not(${Tt}-customize-input)`]:{[`${Tt}-selector`]:{padding:`0 ${(0,Ge.unit)(Le)}`},[`&${Tt}-show-arrow ${Tt}-selection-search`]:{insetInlineEnd:pe.calc(Le).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[`
&${Tt}-show-arrow ${Tt}-selection-item,
&${Tt}-show-arrow ${Tt}-selection-placeholder
`]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},Ie((0,He.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const Je=pe=>{const{fontSize:Tt,lineHeight:Le,lineWidth:je,controlHeight:It,controlHeightSM:ge,controlHeightLG:ce,paddingXXS:tt,controlPaddingHorizontal:At,zIndexPopupBase:St,colorText:ke,fontWeightStrong:Ue,controlItemBgActive:Xe,controlItemBgHover:Jt,colorBgContainer:Bt,colorFillSecondary:Ht,colorBgContainerDisabled:Fe,colorTextDisabled:Rt,colorPrimaryHover:ht,colorPrimary:ae,controlOutline:te}=pe,ee=tt*2,oe=je*2,se=Math.min(It-ee,It-oe),ne=Math.min(ge-ee,ge-oe),he=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(tt/2),zIndexPopup:St+50,optionSelectedColor:ke,optionSelectedFontWeight:Ue,optionSelectedBg:Xe,optionActiveBg:Jt,optionPadding:`${(It-Tt*Le)/2}px ${At}px`,optionFontSize:Tt,optionLineHeight:Le,optionHeight:It,selectorBg:Bt,clearBg:Bt,singleItemHeightLG:ce,multipleItemBg:Ht,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:he,multipleSelectorBgDisabled:Fe,multipleItemColorDisabled:Rt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:ht,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:tt}},Te=(pe,Tt)=>{const{componentCls:Le,antCls:je,controlOutlineWidth:It}=pe;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${Tt.borderColor}`,background:pe.selectorBg},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:Tt.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:Tt.activeBorderColor,boxShadow:`0 0 0 ${(0,Ge.unit)(It)} ${Tt.activeOutlineColor}`,outline:0},[`${Le}-prefix`]:{color:Tt.color}}}},Ne=(pe,Tt)=>({[`&${pe.componentCls}-status-${Tt.status}`]:Object.assign({},Te(pe,Tt))}),De=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),Ne(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),Ne(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),Ke=(pe,Tt)=>{const{componentCls:Le,antCls:je}=pe;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{background:Tt.bg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:Tt.color},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{background:Tt.hoverBg},[`${Le}-focused& ${Le}-selector`]:{background:pe.selectorBg,borderColor:Tt.activeBorderColor,outline:0}}}},pt=(pe,Tt)=>({[`&${pe.componentCls}-status-${Tt.status}`]:Object.assign({},Ke(pe,Tt))}),Et=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ke(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),pt(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),pt(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),gt=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),ct=(pe,Tt)=>{const{componentCls:Le,antCls:je}=pe;return{[`&:not(${Le}-customize-input) ${Le}-selector`]:{borderWidth:`0 0 ${(0,Ge.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:Tt.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${Le}-disabled):not(${Le}-customize-input):not(${je}-pagination-size-changer)`]:{[`&:hover ${Le}-selector`]:{borderColor:Tt.hoverBorderHover},[`${Le}-focused& ${Le}-selector`]:{borderColor:Tt.activeBorderColor,outline:0},[`${Le}-prefix`]:{color:Tt.color}}}},st=(pe,Tt)=>({[`&${pe.componentCls}-status-${Tt.status}`]:Object.assign({},ct(pe,Tt))}),Ve=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},ct(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),st(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),st(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var dt=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},De(pe)),Et(pe)),gt(pe)),Ve(pe))});const Ye=pe=>{const{componentCls:Tt}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Tt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Tt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},vt=pe=>{const{componentCls:Tt}=pe;return{[`${Tt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Re=pe=>{const{antCls:Tt,componentCls:Le,inputPaddingHorizontalBase:je,iconCls:It}=pe;return{[Le]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Le}-customize-input) ${Le}-selector`]:Object.assign(Object.assign({},Ye(pe)),vt(pe)),[`${Le}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${Tt}-typography`]:{display:"inline"}}),[`${Le}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Le}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[It]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Le}-suffix)`]:{pointerEvents:"auto"}},[`${Le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Le}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Le}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${Le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${Le}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${Le}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Le}-has-feedback`]:{[`${Le}-clear`]:{insetInlineEnd:pe.calc(je).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},rt=pe=>{const{componentCls:Tt}=pe;return[{[Tt]:{[`&${Tt}-in-form-item`]:{width:"100%"}}},Re(pe),yt(pe),(0,fe.ZP)(pe),Oe(pe),{[`${Tt}-rtl`]:{direction:"rtl"}},(0,qe.c)(pe,{borderElCls:`${Tt}-selector`,focusElCls:`${Tt}-focused`})]};var nt=(0,ve.I$)("Select",(pe,Tt)=>{let{rootPrefixCls:Le}=Tt;const je=(0,He.mergeToken)(pe,{rootPrefixCls:Le,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[rt(je),dt(je)]},Je,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Ut,Ft,ie){"use strict";ie.d(Ft,{_z:function(){return Ce},gp:function(){return He}});var z=ie(36237),qe=ie(63356),ve=ie(51636);const He=fe=>{const{multipleSelectItemHeight:Ge,paddingXXS:Ie,lineWidth:yt,INTERNAL_FIXED_ITEM_MARGIN:Je}=fe,Te=fe.max(fe.calc(Ie).sub(yt).equal(),0),Ne=fe.max(fe.calc(Te).sub(Je).equal(),0);return{basePadding:Te,containerPadding:Ne,itemHeight:(0,z.unit)(Ge),itemLineHeight:(0,z.unit)(fe.calc(Ge).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:Ge,selectHeight:Ie,lineWidth:yt}=fe;return fe.calc(Ie).sub(Ge).div(2).sub(yt).equal()},Ce=fe=>{const{componentCls:Ge,iconCls:Ie,borderRadiusSM:yt,motionDurationSlow:Je,paddingXS:Te,multipleItemColorDisabled:Ne,multipleItemBorderColorDisabled:De,colorIcon:Ke,colorIconHover:pt,INTERNAL_FIXED_ITEM_MARGIN:Et}=fe;return{[`${Ge}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ge}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Et,borderRadius:yt,cursor:"default",transition:`font-size ${Je}, line-height ${Je}, height ${Je}`,marginInlineEnd:fe.calc(Et).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:fe.calc(Te).div(2).equal(),[`${Ge}-disabled&`]:{color:Ne,borderColor:De,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,qe.Ro)()),{display:"inline-flex",alignItems:"center",color:Ke,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ie}`]:{verticalAlign:"-0.2em"},"&:hover":{color:pt}})}}}},Ee=(fe,Ge)=>{const{componentCls:Ie,INTERNAL_FIXED_ITEM_MARGIN:yt}=fe,Je=`${Ie}-selection-overflow`,Te=fe.multipleSelectItemHeight,Ne=xe(fe),De=Ge?`${Ie}-${Ge}`:"",Ke=He(fe);return{[`${Ie}-multiple${De}`]:Object.assign(Object.assign({},Ce(fe)),{[`${Ie}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ke.basePadding,paddingBlock:Ke.containerPadding,borderRadius:fe.borderRadius,[`${Ie}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(yt)} 0`,lineHeight:(0,z.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${Ie}-selection-item`]:{height:Ke.itemHeight,lineHeight:(0,z.unit)(Ke.itemLineHeight)},[`${Ie}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Te),marginBlock:yt}},[`${Ie}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ke.basePadding).equal()},[`${Je}-item + ${Je}-item,
${Ie}-prefix + ${Ie}-selection-wrap
`]:{[`${Ie}-selection-search`]:{marginInlineStart:0},[`${Ie}-selection-placeholder`]:{insetInlineStart:0}},[`${Je}-item-suffix`]:{minHeight:Ke.itemHeight,marginBlock:yt},[`${Ie}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ne).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:fe.fontFamily,lineHeight:(0,z.unit)(Te),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ie}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(Ke.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Be(fe,Ge){const{componentCls:Ie}=fe,yt=Ge?`${Ie}-${Ge}`:"",Je={[`${Ie}-multiple${yt}`]:{fontSize:fe.fontSize,[`${Ie}-selector`]:{[`${Ie}-show-search&`]:{cursor:"text"}},[`
&${Ie}-show-arrow ${Ie}-selector,
&${Ie}-allow-clear ${Ie}-selector
`]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Ee(fe,Ge),Je]}const Oe=fe=>{const{componentCls:Ge}=fe,Ie=(0,ve.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),yt=(0,ve.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Be(fe),Be(Ie,"sm"),{[`${Ge}-multiple${Ge}-sm`]:{[`${Ge}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Ge}-selection-search`]:{marginInlineStart:2}}},Be(yt,"lg")]};Ft.ZP=Oe},68525:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});var z=ie(59301),qe=ie(40001),ve=ie(19248),He=ie(99267),xe=ie(84105),Ce=ie(58617),Ee=ie(47472);function Be(Oe){let{suffixIcon:fe,clearIcon:Ge,menuItemSelectedIcon:Ie,removeIcon:yt,loading:Je,multiple:Te,hasFeedback:Ne,prefixCls:De,showSuffixIcon:Ke,feedbackIcon:pt,showArrow:Et,componentName:gt}=Oe;const ct=Ge!=null?Ge:z.createElement(ve.Z,null),st=Ye=>fe===null&&!Ne&&!Et?null:z.createElement(z.Fragment,null,Ke!==!1&&Ye,Ne&&pt);let Ve=null;if(fe!==void 0)Ve=st(fe);else if(Je)Ve=st(z.createElement(Ce.Z,{spin:!0}));else{const Ye=`${De}-suffix`;Ve=vt=>{let{open:Re,showSearch:rt}=vt;return st(Re&&rt?z.createElement(Ee.Z,{className:Ye}):z.createElement(xe.Z,{className:Ye}))}}let Dt=null;Ie!==void 0?Dt=Ie:Te?Dt=z.createElement(qe.Z,null):Dt=null;let dt=null;return yt!==void 0?dt=yt:dt=z.createElement(He.Z,null),{clearIcon:ct,suffixIcon:Ve,itemIcon:Dt,removeIcon:dt}}},90005:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return z}});function z(qe,ve){return ve!==void 0?ve:qe!==null}},58755:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Tt}});var z=ie(59301),qe=ie(58617),ve=ie(92310),He=ie.n(ve),xe=ie(60499),Ce=ie(18642),Ee=ie(72190),Be=ie(42244),Oe=ie(18929),fe=ie(10228),Ge=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=z.forwardRef(function(Le,je){var It,ge=Le.prefixCls,ce=ge===void 0?"rc-switch":ge,tt=Le.className,At=Le.checked,St=Le.defaultChecked,ke=Le.disabled,Ue=Le.loadingIcon,Xe=Le.checkedChildren,Jt=Le.unCheckedChildren,Bt=Le.onClick,Ht=Le.onChange,Fe=Le.onKeyDown,Rt=(0,Be.Z)(Le,Ge),ht=(0,Oe.Z)(!1,{value:At,defaultValue:St}),ae=(0,Ee.Z)(ht,2),te=ae[0],ee=ae[1];function oe(ye,ot){var we=te;return ke||(we=ye,ee(we),Ht==null||Ht(we,ot)),we}function se(ye){ye.which===fe.Z.LEFT?oe(!1,ye):ye.which===fe.Z.RIGHT&&oe(!0,ye),Fe==null||Fe(ye)}function ne(ye){var ot=oe(!te,ye);Bt==null||Bt(ot,ye)}var he=He()(ce,tt,(It={},(0,Ce.Z)(It,"".concat(ce,"-checked"),te),(0,Ce.Z)(It,"".concat(ce,"-disabled"),ke),It));return z.createElement("button",(0,xe.Z)({},Rt,{type:"button",role:"switch","aria-checked":te,disabled:ke,className:he,ref:je,onKeyDown:se,onClick:ne}),Ue,z.createElement("span",{className:"".concat(ce,"-inner")},z.createElement("span",{className:"".concat(ce,"-inner-checked")},Xe),z.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Jt)))});Ie.displayName="Switch";var yt=Ie,Je=ie(12919),Te=ie(48755),Ne=ie(2171),De=ie(31756),Ke=ie(36237),pt=ie(17835),Et=ie(63356),gt=ie(16931),ct=ie(51636);const st=Le=>{const{componentCls:je,trackHeightSM:It,trackPadding:ge,trackMinWidthSM:ce,innerMinMarginSM:tt,innerMaxMarginSM:At,handleSizeSM:St,calc:ke}=Le,Ue=`${je}-inner`,Xe=(0,Ke.unit)(ke(St).add(ke(ge).mul(2)).equal()),Jt=(0,Ke.unit)(ke(At).mul(2).equal());return{[je]:{[`&${je}-small`]:{minWidth:ce,height:It,lineHeight:(0,Ke.unit)(It),[`${je}-inner`]:{paddingInlineStart:At,paddingInlineEnd:tt,[`${Ue}-checked, ${Ue}-unchecked`]:{minHeight:It},[`${Ue}-checked`]:{marginInlineStart:`calc(-100% + ${Xe} - ${Jt})`,marginInlineEnd:`calc(100% - ${Xe} + ${Jt})`},[`${Ue}-unchecked`]:{marginTop:ke(It).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${je}-handle`]:{width:St,height:St},[`${je}-loading-icon`]:{top:ke(ke(St).sub(Le.switchLoadingIconSize)).div(2).equal(),fontSize:Le.switchLoadingIconSize},[`&${je}-checked`]:{[`${je}-inner`]:{paddingInlineStart:tt,paddingInlineEnd:At,[`${Ue}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ue}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe} + ${Jt})`,marginInlineEnd:`calc(-100% + ${Xe} - ${Jt})`}},[`${je}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ke.unit)(ke(St).add(ge).equal())})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${Ue}`]:{[`${Ue}-unchecked`]:{marginInlineStart:ke(Le.marginXXS).div(2).equal(),marginInlineEnd:ke(Le.marginXXS).mul(-1).div(2).equal()}},[`&${je}-checked ${Ue}`]:{[`${Ue}-checked`]:{marginInlineStart:ke(Le.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ke(Le.marginXXS).div(2).equal()}}}}}}},Ve=Le=>{const{componentCls:je,handleSize:It,calc:ge}=Le;return{[je]:{[`${je}-loading-icon${Le.iconCls}`]:{position:"relative",top:ge(ge(It).sub(Le.fontSize)).div(2).equal(),color:Le.switchLoadingIconColor,verticalAlign:"top"},[`&${je}-checked ${je}-loading-icon`]:{color:Le.switchColor}}}},Dt=Le=>{const{componentCls:je,trackPadding:It,handleBg:ge,handleShadow:ce,handleSize:tt,calc:At}=Le,St=`${je}-handle`;return{[je]:{[St]:{position:"absolute",top:It,insetInlineStart:It,width:tt,height:tt,transition:`all ${Le.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ge,borderRadius:At(tt).div(2).equal(),boxShadow:ce,transition:`all ${Le.switchDuration} ease-in-out`,content:'""'}},[`&${je}-checked ${St}`]:{insetInlineStart:`calc(100% - ${(0,Ke.unit)(At(tt).add(It).equal())})`},[`&:not(${je}-disabled):active`]:{[`${St}::before`]:{insetInlineEnd:Le.switchHandleActiveInset,insetInlineStart:0},[`&${je}-checked ${St}::before`]:{insetInlineEnd:0,insetInlineStart:Le.switchHandleActiveInset}}}}},dt=Le=>{const{componentCls:je,trackHeight:It,trackPadding:ge,innerMinMargin:ce,innerMaxMargin:tt,handleSize:At,calc:St}=Le,ke=`${je}-inner`,Ue=(0,Ke.unit)(St(At).add(St(ge).mul(2)).equal()),Xe=(0,Ke.unit)(St(tt).mul(2).equal());return{[je]:{[ke]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:tt,paddingInlineEnd:ce,transition:`padding-inline-start ${Le.switchDuration} ease-in-out, padding-inline-end ${Le.switchDuration} ease-in-out`,[`${ke}-checked, ${ke}-unchecked`]:{display:"block",color:Le.colorTextLightSolid,fontSize:Le.fontSizeSM,transition:`margin-inline-start ${Le.switchDuration} ease-in-out, margin-inline-end ${Le.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:It},[`${ke}-checked`]:{marginInlineStart:`calc(-100% + ${Ue} - ${Xe})`,marginInlineEnd:`calc(100% - ${Ue} + ${Xe})`},[`${ke}-unchecked`]:{marginTop:St(It).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${je}-checked ${ke}`]:{paddingInlineStart:ce,paddingInlineEnd:tt,[`${ke}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ke}-unchecked`]:{marginInlineStart:`calc(100% - ${Ue} + ${Xe})`,marginInlineEnd:`calc(-100% + ${Ue} - ${Xe})`}},[`&:not(${je}-disabled):active`]:{[`&:not(${je}-checked) ${ke}`]:{[`${ke}-unchecked`]:{marginInlineStart:St(ge).mul(2).equal(),marginInlineEnd:St(ge).mul(-1).mul(2).equal()}},[`&${je}-checked ${ke}`]:{[`${ke}-checked`]:{marginInlineStart:St(ge).mul(-1).mul(2).equal(),marginInlineEnd:St(ge).mul(2).equal()}}}}}},Ye=Le=>{const{componentCls:je,trackHeight:It,trackMinWidth:ge}=Le;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(Le)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ge,height:It,lineHeight:(0,Ke.unit)(It),verticalAlign:"middle",background:Le.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,userSelect:"none",[`&:hover:not(${je}-disabled)`]:{background:Le.colorTextTertiary}}),(0,Et.Qy)(Le)),{[`&${je}-checked`]:{background:Le.switchColor,[`&:hover:not(${je}-disabled)`]:{background:Le.colorPrimaryHover}},[`&${je}-loading, &${je}-disabled`]:{cursor:"not-allowed",opacity:Le.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${je}-rtl`]:{direction:"rtl"}})}},vt=Le=>{const{fontSize:je,lineHeight:It,controlHeight:ge,colorWhite:ce}=Le,tt=je*It,At=ge/2,St=2,ke=tt-St*2,Ue=At-St*2;return{trackHeight:tt,trackHeightSM:At,trackMinWidth:ke*2+St*4,trackMinWidthSM:Ue*2+St*2,trackPadding:St,handleBg:ce,handleSize:ke,handleSizeSM:Ue,handleShadow:`0 2px 4px 0 ${new pt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ke/2,innerMaxMargin:ke+St+St*2,innerMinMarginSM:Ue/2,innerMaxMarginSM:Ue+St+St*2}};var Re=(0,gt.I$)("Switch",Le=>{const je=(0,ct.mergeToken)(Le,{switchDuration:Le.motionDurationMid,switchColor:Le.colorPrimary,switchDisabledOpacity:Le.opacityLoading,switchLoadingIconSize:Le.calc(Le.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Le.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ye(je),dt(je),Dt(je),Ve(je),st(je)]},vt),rt=function(Le,je){var It={};for(var ge in Le)Object.prototype.hasOwnProperty.call(Le,ge)&&je.indexOf(ge)<0&&(It[ge]=Le[ge]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ge=Object.getOwnPropertySymbols(Le);ce<ge.length;ce++)je.indexOf(ge[ce])<0&&Object.prototype.propertyIsEnumerable.call(Le,ge[ce])&&(It[ge[ce]]=Le[ge[ce]]);return It};const pe=z.forwardRef((Le,je)=>{const{prefixCls:It,size:ge,disabled:ce,loading:tt,className:At,rootClassName:St,style:ke,checked:Ue,value:Xe,defaultChecked:Jt,defaultValue:Bt,onChange:Ht}=Le,Fe=rt(Le,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Rt,ht]=(0,Oe.Z)(!1,{value:Ue!=null?Ue:Xe,defaultValue:Jt!=null?Jt:Bt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Te.E_),oe=z.useContext(Ne.Z),se=(ce!=null?ce:oe)||tt,ne=ae("switch",It),he=z.createElement("div",{className:`${ne}-handle`},tt&&z.createElement(qe.Z,{className:`${ne}-loading-icon`})),[ye,ot,we]=Re(ne),We=(0,De.Z)(ge),it=He()(ee==null?void 0:ee.className,{[`${ne}-small`]:We==="small",[`${ne}-loading`]:tt,[`${ne}-rtl`]:te==="rtl"},At,St,ot,we),wt=Object.assign(Object.assign({},ee==null?void 0:ee.style),ke),mt=function(){ht(arguments.length<=0?void 0:arguments[0]),Ht==null||Ht.apply(void 0,arguments)};return ye(z.createElement(Je.Z,{component:"Switch"},z.createElement(yt,Object.assign({},Fe,{checked:Rt,onChange:mt,prefixCls:ne,className:it,style:wt,disabled:se,ref:je,loadingIcon:he}))))});pe.__ANT_SWITCH=!0;var Tt=pe},99498:function(Ut,Ft,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Be,Oe,fe){var Ge=fe&&fe!=z.Init;if(Oe&&!Ge)Be.on("blur",xe),Be.on("change",Ce),Be.on("swapDoc",Ce),z.on(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose=function(){He(Be)}),Ce(Be);else if(!Oe&&Ge){Be.off("blur",xe),Be.off("change",Ce),Be.off("swapDoc",Ce),z.off(Be.getInputField(),"compositionupdate",Be.state.placeholderCompose),qe(Be);var Ie=Be.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}Oe&&!Be.hasFocus()&&xe(Be)});function qe(Be){Be.state.placeholder&&(Be.state.placeholder.parentNode.removeChild(Be.state.placeholder),Be.state.placeholder=null)}function ve(Be){qe(Be);var Oe=Be.state.placeholder=document.createElement("pre");Oe.style.cssText="height: 0; overflow: visible",Oe.style.direction=Be.getOption("direction"),Oe.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Be.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Oe.appendChild(fe),Be.display.lineSpace.insertBefore(Oe,Be.display.lineSpace.firstChild)}function He(Be){setTimeout(function(){var Oe=!1,fe=Be.getInputField();fe.nodeName=="TEXTAREA"?Oe=!fe.value:Be.lineCount()==1&&(Oe=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Oe?ve(Be):qe(Be)},20)}function xe(Be){Ee(Be)&&ve(Be)}function Ce(Be){var Oe=Be.getWrapperElement(),fe=Ee(Be);Oe.className=Oe.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?ve(Be):qe(Be)}function Ee(Be){return Be.lineCount()===1&&Be.getLine(0)===""}})},25717:function(Ut,Ft,ie){(function(z){z(ie(89780))})(function(z){var qe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ve=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Te,Ne,De){De&&De!=z.Init&&(Te.removeKeyMap(xe),Te.state.closeBrackets=null),Ne&&(Ce(He(Ne,"pairs")),Te.state.closeBrackets=Ne,Te.addKeyMap(xe))});function He(Te,Ne){return Ne=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[Ne]!=null?Te[Ne]:qe[Ne]}var xe={Backspace:Oe,Enter:fe};function Ce(Te){for(var Ne=0;Ne<Te.length;Ne++){var De=Te.charAt(Ne),Ke="'"+De+"'";xe[Ke]||(xe[Ke]=Ee(De))}}Ce(qe.pairs+"`");function Ee(Te){return function(Ne){return Ie(Ne,Te)}}function Be(Te){var Ne=Te.state.closeBrackets;if(!Ne||Ne.override)return Ne;var De=Te.getModeAt(Te.getCursor());return De.closeBrackets||Ne}function Oe(Te){var Ne=Be(Te);if(!Ne||Te.getOption("disableInput"))return z.Pass;for(var De=He(Ne,"pairs"),Ke=Te.listSelections(),pt=0;pt<Ke.length;pt++){if(!Ke[pt].empty())return z.Pass;var Et=yt(Te,Ke[pt].head);if(!Et||De.indexOf(Et)%2!=0)return z.Pass}for(var pt=Ke.length-1;pt>=0;pt--){var gt=Ke[pt].head;Te.replaceRange("",ve(gt.line,gt.ch-1),ve(gt.line,gt.ch+1),"+delete")}}function fe(Te){var Ne=Be(Te),De=Ne&&He(Ne,"explode");if(!De||Te.getOption("disableInput"))return z.Pass;for(var Ke=Te.listSelections(),pt=0;pt<Ke.length;pt++){if(!Ke[pt].empty())return z.Pass;var Et=yt(Te,Ke[pt].head);if(!Et||De.indexOf(Et)%2!=0)return z.Pass}Te.operation(function(){var gt=Te.lineSeparator()||`
`;Te.replaceSelection(gt+gt,null),Te.execCommand("goCharLeft"),Ke=Te.listSelections();for(var ct=0;ct<Ke.length;ct++){var st=Ke[ct].head.line;Te.indentLine(st,null,!0),Te.indentLine(st+1,null,!0)}})}function Ge(Te){var Ne=z.cmpPos(Te.anchor,Te.head)>0;return{anchor:new ve(Te.anchor.line,Te.anchor.ch+(Ne?-1:1)),head:new ve(Te.head.line,Te.head.ch+(Ne?1:-1))}}function Ie(Te,Ne){var De=Be(Te);if(!De||Te.getOption("disableInput"))return z.Pass;var Ke=He(De,"pairs"),pt=Ke.indexOf(Ne);if(pt==-1)return z.Pass;for(var Et=He(De,"closeBefore"),gt=He(De,"triples"),ct=Ke.charAt(pt+1)==Ne,st=Te.listSelections(),Ve=pt%2==0,Dt,dt=0;dt<st.length;dt++){var Ye=st[dt],vt=Ye.head,Re,rt=Te.getRange(vt,ve(vt.line,vt.ch+1));if(Ve&&!Ye.empty())Re="surround";else if((ct||!Ve)&&rt==Ne)ct&&Je(Te,vt)?Re="both":gt.indexOf(Ne)>=0&&Te.getRange(vt,ve(vt.line,vt.ch+3))==Ne+Ne+Ne?Re="skipThree":Re="skip";else if(ct&&vt.ch>1&&gt.indexOf(Ne)>=0&&Te.getRange(ve(vt.line,vt.ch-2),vt)==Ne+Ne){if(vt.ch>2&&/\bstring/.test(Te.getTokenTypeAt(ve(vt.line,vt.ch-2))))return z.Pass;Re="addFour"}else if(ct){var nt=vt.ch==0?" ":Te.getRange(ve(vt.line,vt.ch-1),vt);if(!z.isWordChar(rt)&&nt!=Ne&&!z.isWordChar(nt))Re="both";else return z.Pass}else if(Ve&&(rt.length===0||/\s/.test(rt)||Et.indexOf(rt)>-1))Re="both";else return z.Pass;if(!Dt)Dt=Re;else if(Dt!=Re)return z.Pass}var pe=pt%2?Ke.charAt(pt-1):Ne,Tt=pt%2?Ne:Ke.charAt(pt+1);Te.operation(function(){if(Dt=="skip")Te.execCommand("goCharRight");else if(Dt=="skipThree")for(var Le=0;Le<3;Le++)Te.execCommand("goCharRight");else if(Dt=="surround"){for(var je=Te.getSelections(),Le=0;Le<je.length;Le++)je[Le]=pe+je[Le]+Tt;Te.replaceSelections(je,"around"),je=Te.listSelections().slice();for(var Le=0;Le<je.length;Le++)je[Le]=Ge(je[Le]);Te.setSelections(je)}else Dt=="both"?(Te.replaceSelection(pe+Tt,null),Te.triggerElectric(pe+Tt),Te.execCommand("goCharLeft")):Dt=="addFour"&&(Te.replaceSelection(pe+pe+pe+pe,"before"),Te.execCommand("goCharRight"))})}function yt(Te,Ne){var De=Te.getRange(ve(Ne.line,Ne.ch-1),ve(Ne.line,Ne.ch+1));return De.length==2?De:null}function Je(Te,Ne){var De=Te.getTokenAt(ve(Ne.line,Ne.ch+1));return/\bstring/.test(De.type)&&De.start==Ne.ch&&(Ne.ch==0||!/\bstring/.test(Te.getTokenTypeAt(Ne)))}})},6313:function(Ut,Ft,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(Oe,fe,Ge){if(Ge!=z.Init&&Ge&&Oe.removeKeyMap("autoCloseTags"),!!fe){var Ie={name:"autoCloseTags"};(typeof fe!="object"||fe.whenClosing!==!1)&&(Ie["'/'"]=function(yt){return Ce(yt)}),(typeof fe!="object"||fe.whenOpening!==!1)&&(Ie["'>'"]=function(yt){return He(yt)}),Oe.addKeyMap(Ie)}});var qe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ve=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function He(Oe){if(Oe.getOption("disableInput"))return z.Pass;for(var fe=Oe.listSelections(),Ge=[],Ie=Oe.getOption("autoCloseTags"),yt=0;yt<fe.length;yt++){if(!fe[yt].empty())return z.Pass;var Je=fe[yt].head,Te=Oe.getTokenAt(Je),Ne=z.innerMode(Oe.getMode(),Te.state),De=Ne.state,Ke=Ne.mode.xmlCurrentTag&&Ne.mode.xmlCurrentTag(De),pt=Ke&&Ke.name;if(!pt)return z.Pass;var Et=Ne.mode.configuration=="html",gt=typeof Ie=="object"&&Ie.dontCloseTags||Et&&qe,ct=typeof Ie=="object"&&Ie.indentTags||Et&&ve;Te.end>Je.ch&&(pt=pt.slice(0,pt.length-Te.end+Je.ch));var st=pt.toLowerCase();if(!pt||Te.type=="string"&&(Te.end!=Je.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Ke.close||Te.string.indexOf("/")==Je.ch-Te.start-1||gt&&Ee(gt,st)>-1||Be(Oe,Ne.mode.xmlCurrentContext&&Ne.mode.xmlCurrentContext(De)||[],pt,Je,!0))return z.Pass;var Ve=typeof Ie=="object"&&Ie.emptyTags;if(Ve&&Ee(Ve,pt)>-1){Ge[yt]={text:"/>",newPos:z.Pos(Je.line,Je.ch+2)};continue}var Dt=ct&&Ee(ct,st)>-1;Ge[yt]={indent:Dt,text:">"+(Dt?`
`:"")+"</"+pt+">",newPos:Dt?z.Pos(Je.line+1,0):z.Pos(Je.line,Je.ch+1)}}for(var dt=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,yt=fe.length-1;yt>=0;yt--){var Ye=Ge[yt];Oe.replaceRange(Ye.text,fe[yt].head,fe[yt].anchor,"+insert");var vt=Oe.listSelections().slice(0);vt[yt]={head:Ye.newPos,anchor:Ye.newPos},Oe.setSelections(vt),!dt&&Ye.indent&&(Oe.indentLine(Ye.newPos.line,null,!0),Oe.indentLine(Ye.newPos.line+1,null,!0))}}function xe(Oe,fe){for(var Ge=Oe.listSelections(),Ie=[],yt=fe?"/":"</",Je=Oe.getOption("autoCloseTags"),Te=typeof Je=="object"&&Je.dontIndentOnSlash,Ne=0;Ne<Ge.length;Ne++){if(!Ge[Ne].empty())return z.Pass;var De=Ge[Ne].head,Ke=Oe.getTokenAt(De),pt=z.innerMode(Oe.getMode(),Ke.state),Et=pt.state;if(fe&&(Ke.type=="string"||Ke.string.charAt(0)!="<"||Ke.start!=De.ch-1))return z.Pass;var gt,ct=pt.mode.name!="xml"&&Oe.getMode().name=="htmlmixed";if(ct&&pt.mode.name=="javascript")gt=yt+"script";else if(ct&&pt.mode.name=="css")gt=yt+"style";else{var st=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(Et);if(!st||st.length&&Be(Oe,st,st[st.length-1],De))return z.Pass;gt=yt+st[st.length-1]}Oe.getLine(De.line).charAt(Ke.end)!=">"&&(gt+=">"),Ie[Ne]=gt}if(Oe.replaceSelections(Ie),Ge=Oe.listSelections(),!Te)for(var Ne=0;Ne<Ge.length;Ne++)(Ne==Ge.length-1||Ge[Ne].head.line<Ge[Ne+1].head.line)&&Oe.indentLine(Ge[Ne].head.line)}function Ce(Oe){return Oe.getOption("disableInput")?z.Pass:xe(Oe,!0)}z.commands.closeTag=function(Oe){return xe(Oe)};function Ee(Oe,fe){if(Oe.indexOf)return Oe.indexOf(fe);for(var Ge=0,Ie=Oe.length;Ge<Ie;++Ge)if(Oe[Ge]==fe)return Ge;return-1}function Be(Oe,fe,Ge,Ie,yt){if(!z.scanForClosingTag)return!1;var Je=Math.min(Oe.lastLine()+1,Ie.line+500),Te=z.scanForClosingTag(Oe,Ie,null,Je);if(!Te||Te.tag!=Ge)return!1;for(var Ne=yt?1:0,De=fe.length-1;De>=0&&fe[De]==Ge;De--)++Ne;Ie=Te.to;for(var De=1;De<Ne;De++){var Ke=z.scanForClosingTag(Oe,Ie,null,Je);if(!Ke||Ke.tag!=Ge)return!1;Ie=Ke.to}return!0}})},32855:function(Ut,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";var qe=z.Pos;function ve(De,Ke){return De.line-Ke.line||De.ch-Ke.ch}var He="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",xe=He+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ce=new RegExp("<(/?)(["+He+"]["+xe+"]*)","g");function Ee(De,Ke,pt,Et){this.line=Ke,this.ch=pt,this.cm=De,this.text=De.getLine(Ke),this.min=Et?Math.max(Et.from,De.firstLine()):De.firstLine(),this.max=Et?Math.min(Et.to-1,De.lastLine()):De.lastLine()}function Be(De,Ke){var pt=De.cm.getTokenTypeAt(qe(De.line,Ke));return pt&&/\btag\b/.test(pt)}function Oe(De){if(!(De.line>=De.max))return De.ch=0,De.text=De.cm.getLine(++De.line),!0}function fe(De){if(!(De.line<=De.min))return De.text=De.cm.getLine(--De.line),De.ch=De.text.length,!0}function Ge(De){for(;;){var Ke=De.text.indexOf(">",De.ch);if(Ke==-1){if(Oe(De))continue;return}if(!Be(De,Ke+1)){De.ch=Ke+1;continue}var pt=De.text.lastIndexOf("/",Ke),Et=pt>-1&&!/\S/.test(De.text.slice(pt+1,Ke));return De.ch=Ke+1,Et?"selfClose":"regular"}}function Ie(De){for(;;){var Ke=De.ch?De.text.lastIndexOf("<",De.ch-1):-1;if(Ke==-1){if(fe(De))continue;return}if(!Be(De,Ke+1)){De.ch=Ke;continue}Ce.lastIndex=Ke,De.ch=Ke;var pt=Ce.exec(De.text);if(pt&&pt.index==Ke)return pt}}function yt(De){for(;;){Ce.lastIndex=De.ch;var Ke=Ce.exec(De.text);if(!Ke){if(Oe(De))continue;return}if(!Be(De,Ke.index+1)){De.ch=Ke.index+1;continue}return De.ch=Ke.index+Ke[0].length,Ke}}function Je(De){for(;;){var Ke=De.ch?De.text.lastIndexOf(">",De.ch-1):-1;if(Ke==-1){if(fe(De))continue;return}if(!Be(De,Ke+1)){De.ch=Ke;continue}var pt=De.text.lastIndexOf("/",Ke),Et=pt>-1&&!/\S/.test(De.text.slice(pt+1,Ke));return De.ch=Ke+1,Et?"selfClose":"regular"}}function Te(De,Ke){for(var pt=[];;){var Et=yt(De),gt,ct=De.line,st=De.ch-(Et?Et[0].length:0);if(!Et||!(gt=Ge(De)))return;if(gt!="selfClose")if(Et[1]){for(var Ve=pt.length-1;Ve>=0;--Ve)if(pt[Ve]==Et[2]){pt.length=Ve;break}if(Ve<0&&(!Ke||Ke==Et[2]))return{tag:Et[2],from:qe(ct,st),to:qe(De.line,De.ch)}}else pt.push(Et[2])}}function Ne(De,Ke){for(var pt=[];;){var Et=Je(De);if(!Et)return;if(Et=="selfClose"){Ie(De);continue}var gt=De.line,ct=De.ch,st=Ie(De);if(!st)return;if(st[1])pt.push(st[2]);else{for(var Ve=pt.length-1;Ve>=0;--Ve)if(pt[Ve]==st[2]){pt.length=Ve;break}if(Ve<0&&(!Ke||Ke==st[2]))return{tag:st[2],from:qe(De.line,De.ch),to:qe(gt,ct)}}}}z.registerHelper("fold","xml",function(De,Ke){for(var pt=new Ee(De,Ke.line,0);;){var Et=yt(pt);if(!Et||pt.line!=Ke.line)return;var gt=Ge(pt);if(!gt)return;if(!Et[1]&&gt!="selfClose"){var ct=qe(pt.line,pt.ch),st=Te(pt,Et[2]);return st&&ve(st.from,ct)>0?{from:ct,to:st.from}:null}}}),z.findMatchingTag=function(De,Ke,pt){var Et=new Ee(De,Ke.line,Ke.ch,pt);if(!(Et.text.indexOf(">")==-1&&Et.text.indexOf("<")==-1)){var gt=Ge(Et),ct=gt&&qe(Et.line,Et.ch),st=gt&&Ie(Et);if(!(!gt||!st||ve(Et,Ke)>0)){var Ve={from:qe(Et.line,Et.ch),to:ct,tag:st[2]};return gt=="selfClose"?{open:Ve,close:null,at:"open"}:st[1]?{open:Ne(Et,st[2]),close:Ve,at:"close"}:(Et=new Ee(De,ct.line,ct.ch,pt),{open:Ve,close:Te(Et,st[2]),at:"open"})}}},z.findEnclosingTag=function(De,Ke,pt,Et){for(var gt=new Ee(De,Ke.line,Ke.ch,pt);;){var ct=Ne(gt,Et);if(!ct)break;var st=new Ee(De,Ke.line,Ke.ch,pt),Ve=Te(st,ct.tag);if(Ve)return{open:ct,close:Ve}}},z.scanForClosingTag=function(De,Ke,pt,Et){var gt=new Ee(De,Ke.line,Ke.ch,Et?{from:0,to:Et}:null);return Te(gt,pt)}})},89780:function(Ut){(function(Ft,ie){Ut.exports=ie()})(this,function(){"use strict";var Ft=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Ft),qe=/MSIE \d/.test(Ft),ve=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ft),He=/Edge\/(\d+)/.exec(Ft),xe=qe||ve||He,Ce=xe&&(qe?document.documentMode||6:+(He||ve)[1]),Ee=!He&&/WebKit\//.test(Ft),Be=Ee&&/Qt\/\d+\.\d+/.test(Ft),Oe=!He&&/Chrome\//.test(Ft),fe=/Opera\//.test(Ft),Ge=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ft),yt=/PhantomJS/.test(Ft),Je=!He&&/AppleWebKit/.test(Ft)&&/Mobile\/\w+/.test(Ft),Te=/Android/.test(Ft),Ne=Je||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ft),De=Je||/Mac/.test(ie),Ke=/\bCrOS\b/.test(Ft),pt=/win/i.test(ie),Et=fe&&Ft.match(/Version\/(\d*\.\d*)/);Et&&(Et=Number(Et[1])),Et&&Et>=15&&(fe=!1,Ee=!0);var gt=De&&(Be||fe&&(Et==null||Et<12.11)),ct=z||xe&&Ce>=9;function st(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ve=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 Dt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function dt(a,y){return Dt(a).appendChild(y)}function Ye(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var re=0;re<y.length;++re)E.appendChild(y[re]);return E}function vt(a,y,x,b){var E=Ye(a,y,x,b);return E.setAttribute("role","presentation"),E}var Re;document.createRange?Re=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:Re=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 rt(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 nt(){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 pe(a,y){var x=a.className;st(y).test(x)||(a.className+=(x?" ":"")+y)}function Tt(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 Le=function(a){a.select()};Je?Le=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(Le=function(a){try{a.select()}catch(y){}});function je(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function It(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 ge(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var re=b||0,le=E||0;;){var ue=a.indexOf(" ",re);if(ue<0||ue>=y)return le+(y-re);le+=ue-re,le+=x-le%x,re=ue+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function tt(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var At=50,St={toString:function(){return"CodeMirror.Pass"}},ke={scroll:!1},Ue={origin:"*mouse"},Xe={origin:"+move"};function Jt(a,y,x){for(var b=0,E=0;;){var re=a.indexOf(" ",b);re==-1&&(re=a.length);var le=re-b;if(re==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=re-b,E+=x-E%x,b=re+1,E>=y)return b}}var Bt=[""];function Ht(a){for(;Bt.length<=a;)Bt.push(Fe(Bt)+" ");return Bt[a]}function Fe(a){return a[a.length-1]}function Rt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function ht(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function ae(){}function te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&It(y,x),x}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var he=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ye(a){return a.charCodeAt(0)>=768&&he.test(a)}function ot(a,y,x){for(;(x<0?y>0:y<a.length)&&ye(a.charAt(y));)y+=x;return y}function we(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,re=b<0?Math.ceil(E):Math.floor(E);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function We(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,re=0;re<a.length;++re){var le=a[re];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),E=!0)}E||b(y,x,"ltr")}var it=null;function wt(a,y,x){var b;it=null;for(var E=0;E<a.length;++E){var re=a[E];if(re.from<y&&re.to>y)return E;re.to==y&&(re.from!=re.to&&x=="before"?b=E:it=E),re.from==y&&(re.from!=re.to&&x!="before"?b=E:it=E)}return b!=null?b:it}var mt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(me){return me<=247?a.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?y.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ue=/[1n]/;function de(me,Ze,et){this.level=me,this.from=Ze,this.to=et}return function(me,Ze){var et=Ze=="ltr"?"L":"R";if(me.length==0||Ze=="ltr"&&!b.test(me))return!1;for(var Lt=me.length,Ot=[],qt=0;qt<Lt;++qt)Ot.push(x(me.charCodeAt(qt)));for(var vn=0,Dn=et;vn<Lt;++vn){var $n=Ot[vn];$n=="m"?Ot[vn]=Dn:Dn=$n}for(var Gn=0,zn=et;Gn<Lt;++Gn){var Kn=Ot[Gn];Kn=="1"&&zn=="r"?Ot[Gn]="n":re.test(Kn)&&(zn=Kn,Kn=="r"&&(Ot[Gn]="R"))}for(var sr=1,nr=Ot[0];sr<Lt-1;++sr){var wr=Ot[sr];wr=="+"&&nr=="1"&&Ot[sr+1]=="1"?Ot[sr]="1":wr==","&&nr==Ot[sr+1]&&(nr=="1"||nr=="n")&&(Ot[sr]=nr),nr=wr}for(var Zr=0;Zr<Lt;++Zr){var li=Ot[Zr];if(li==",")Ot[Zr]="N";else if(li=="%"){var Ur=void 0;for(Ur=Zr+1;Ur<Lt&&Ot[Ur]=="%";++Ur);for(var Ti=Zr&&Ot[Zr-1]=="!"||Ur<Lt&&Ot[Ur]=="1"?"1":"N",Ei=Zr;Ei<Ur;++Ei)Ot[Ei]=Ti;Zr=Ur-1}}for(var qr=0,Ii=et;qr<Lt;++qr){var di=Ot[qr];Ii=="L"&&di=="1"?Ot[qr]="L":re.test(di)&&(Ii=di)}for(var ii=0;ii<Lt;++ii)if(E.test(Ot[ii])){var ei=void 0;for(ei=ii+1;ei<Lt&&E.test(Ot[ei]);++ei);for(var Kr=(ii?Ot[ii-1]:et)=="L",ki=(ei<Lt?Ot[ei]:et)=="L",Go=Kr==ki?Kr?"L":"R":et,bo=ii;bo<ei;++bo)Ot[bo]=Go;ii=ei-1}for(var pi=[],eo,si=0;si<Lt;)if(le.test(Ot[si])){var bl=si;for(++si;si<Lt&&le.test(Ot[si]);++si);pi.push(new de(0,bl,si))}else{var oo=si,Po=pi.length,Mo=Ze=="rtl"?1:0;for(++si;si<Lt&&Ot[si]!="L";++si);for(var bi=oo;bi<si;)if(ue.test(Ot[bi])){oo<bi&&(pi.splice(Po,0,new de(1,oo,bi)),Po+=Mo);var Vo=bi;for(++bi;bi<si&&ue.test(Ot[bi]);++bi);pi.splice(Po,0,new de(2,Vo,bi)),Po+=Mo,oo=bi}else++bi;oo<si&&pi.splice(Po,0,new de(1,oo,si))}return Ze=="ltr"&&(pi[0].level==1&&(eo=me.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new de(0,0,eo[0].length))),Fe(pi).level==1&&(eo=me.match(/\s+$/))&&(Fe(pi).to-=eo[0].length,pi.push(new de(0,Lt-eo[0].length,Lt)))),Ze=="rtl"?pi.reverse():pi}}();function at(a,y){var x=a.order;return x==null&&(x=a.order=mt(a.text,y)),x}var ut=[],_e=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]||ut).concat(x)}};function Mt(a,y){return a._handlers&&a._handlers[y]||ut}function Wt(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 re=tt(E,x);re>-1&&(b[y]=E.slice(0,re).concat(E.slice(re+1)))}}}function _t(a,y){var x=Mt(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 ft(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),_t(a,x||y.type,a,y),Xt(y)||y.codemirrorIgnore}function $t(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)tt(x,y[b])==-1&&x.push(y[b])}function Me(a,y){return Mt(a,y).length>0}function Nt(a){a.prototype.on=function(y,x){_e(this,y,x)},a.prototype.off=function(y,x){Wt(this,y,x)}}function Vt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function xn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Xt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Pe(a){Vt(a),xn(a)}function lt(a){return a.target||a.srcElement}function xt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),De&&a.ctrlKey&&y==1&&(y=3),y}var zt=function(){if(xe&&Ce<9)return!1;var a=Ye("div");return"draggable"in a||"dragDrop"in a}(),tn;function sn(a){if(tn==null){var y=Ye("span","\u200B");dt(a,Ye("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(tn=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Ce<8))}var x=tn?Ye("span","\u200B"):Ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Tn;function In(a){if(Tn!=null)return Tn;var y=dt(a,document.createTextNode("A\u062EA")),x=Re(y,0,1).getBoundingClientRect(),b=Re(y,1,2).getBoundingClientRect();return Dt(a),!x||x.left==x.right?!1:Tn=b.right-x.right<3}var ln=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var re=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},an=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},nn=function(){var a=Ye("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Mn=null;function cn(a){if(Mn!=null)return Mn;var y=dt(a,Ye("span","x")),x=y.getBoundingClientRect(),b=Re(y,0,1).getBoundingClientRect();return Mn=Math.abs(x.left-b.left)>1}var yn={},Zt={};function bn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),yn[a]=y}function fn(a,y){Zt[a]=y}function Bn(a){if(typeof a=="string"&&Zt.hasOwnProperty(a))a=Zt[a];else if(a&&typeof a.name=="string"&&Zt.hasOwnProperty(a.name)){var y=Zt[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Bn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Bn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Zn(a,y){y=Bn(y);var x=yn[y.name];if(!x)return Zn(a,"text/plain");var b=x(a,y);if(Pn.hasOwnProperty(y.name)){var E=Pn[y.name];for(var re in E)E.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=E[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var Pn={};function On(a,y){var x=Pn.hasOwnProperty(a)?Pn[a]:Pn[a]={};It(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 mn(a,y,x){return a.startState?a.startState(y,x):!0}var gn=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};gn.prototype.eol=function(){return this.pos>=this.string.length},gn.prototype.sol=function(){return this.pos==this.lineStart},gn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gn.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},gn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},gn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},gn.prototype.skipToEnd=function(){this.pos=this.string.length},gn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},gn.prototype.backUp=function(a){this.pos-=a},gn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},gn.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},gn.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var re=this.string.slice(this.pos).match(a);return re&&re.index>0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},gn.prototype.current=function(){return this.string.slice(this.start,this.pos)},gn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},gn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},gn.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],re=E.chunkSize();if(y<re){x=E;break}y-=re}return x.lines[y]}function Gt(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(re){var le=re.text;E==x.line&&(le=le.slice(0,x.ch)),E==y.line&&(le=le.slice(y.ch)),b.push(le),++E}),b}function Sn(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function jn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Ae(a){if(a.parent==null)return null;for(var y=a.parent,x=tt(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 Qe(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],re=E.height;if(y<re){a=E;continue e}y-=re,x+=E.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ue=a.lines[le],de=ue.height;if(y<de)break;y-=de}return x+le}function be(a,y){return y>=a.first&&y<a.first+a.size}function $e(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Se(a,y,x){if(x===void 0&&(x=null),!(this instanceof Se))return new Se(a,y,x);this.line=a,this.ch=y,this.sticky=x}function ze(a,y){return a.line-y.line||a.ch-y.ch}function bt(a,y){return a.sticky==y.sticky&&ze(a,y)==0}function Yt(a){return Se(a.line,a.ch)}function Qt(a,y){return ze(a,y)<0?y:a}function hn(a,y){return ze(a,y)<0?a:y}function jt(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 Se(a.first,0);var x=a.first+a.size-1;return y.line>x?Se(x,Ct(a,x).text.length):kt(y,Ct(a,y.line).text.length)}function kt(a,y){var x=a.ch;return x==null||x>y?Se(a.line,y):x<0?Se(a.line,0):a}function en(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Pt(a,y[b]);return x}var kn=function(a,y){this.state=a,this.lookAhead=y},wn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};wn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},wn.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}},wn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wn.fromSaved=function(a,y,x){return y instanceof kn?new wn(a,Nn(a.mode,y.state),x,y.lookAhead):new wn(a,Nn(a.mode,y),x)},wn.prototype.save=function(a){var y=a!==!1?Nn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new kn(y,this.maxLookAhead):y};function En(a,y,x,b){var E=[a.state.modeGen],re={};qn(a,y.text,a.doc.mode,x,function(me,Ze){return E.push(me,Ze)},re,b);for(var le=x.state,ue=function(me){x.baseTokens=E;var Ze=a.state.overlays[me],et=1,Lt=0;x.state=!0,qn(a,y.text,Ze.mode,x,function(Ot,qt){for(var vn=et;Lt<Ot;){var Dn=E[et];Dn>Ot&&E.splice(et,1,Ot,E[et+1],Dn),et+=2,Lt=Math.min(Ot,Dn)}if(qt)if(Ze.opaque)E.splice(vn,et-vn,Ot,"overlay "+qt),et=vn+2;else for(;vn<et;vn+=2){var $n=E[vn+1];E[vn+1]=($n?$n+" ":"")+"overlay "+qt}},re),x.state=le,x.baseTokens=null,x.baseTokenPos=1},de=0;de<a.state.overlays.length;++de)ue(de);return{styles:E,classes:re.bgClass||re.textClass?re:null}}function Xn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Jn(a,Ae(y)),E=y.text.length>a.options.maxHighlightLength&&Nn(a.doc.mode,b.state),re=En(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=re.styles,re.classes?y.styleClasses=re.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Jn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new wn(b,!0,y);var re=lr(a,y,x),le=re>b.first&&Ct(b,re-1).stateAfter,ue=le?wn.fromSaved(b,le,re):new wn(b,mn(b.mode),re);return b.iter(re,y,function(de){Qn(a,de.text,ue);var me=ue.line;de.stateAfter=me==y-1||me%5==0||me>=E.viewFrom&&me<E.viewTo?ue.save():null,ue.nextLine()}),x&&(b.modeFrontier=ue.line),ue}function Qn(a,y,x,b){var E=a.doc.mode,re=new gn(y,a.options.tabSize,x);for(re.start=re.pos=b||0,y==""&&_n(E,x.state);!re.eol();)Rn(E,re,x.state),re.start=re.pos}function _n(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 Rn(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=Cn(a,x).mode);var re=a.token(y,x);if(y.pos>y.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var Hn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Un(a,y,x,b){var E=a.doc,re=E.mode,le;y=Pt(E,y);var ue=Ct(E,y.line),de=Jn(a,y.line,x),me=new gn(ue.text,a.options.tabSize,de),Ze;for(b&&(Ze=[]);(b||me.pos<y.ch)&&!me.eol();)me.start=me.pos,le=Rn(re,me,de.state),b&&Ze.push(new Hn(me,le,Nn(E.mode,de.state)));return b?Ze:new Hn(me,le,de.state)}function ur(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 qn(a,y,x,b,E,re,le){var ue=x.flattenSpans;ue==null&&(ue=a.options.flattenSpans);var de=0,me=null,Ze=new gn(y,a.options.tabSize,b),et,Lt=a.options.addModeClass&&[null];for(y==""&&ur(_n(x,b.state),re);!Ze.eol();){if(Ze.pos>a.options.maxHighlightLength?(ue=!1,le&&Qn(a,y,b,Ze.pos),Ze.pos=y.length,et=null):et=ur(Rn(x,Ze,b.state,Lt),re),Lt){var Ot=Lt[0].name;Ot&&(et="m-"+(et?Ot+" "+et:Ot))}if(!ue||me!=et){for(;de<Ze.start;)de=Math.min(Ze.start,de+5e3),E(de,me);me=et}Ze.start=Ze.pos}for(;de<Ze.pos;){var qt=Math.min(Ze.pos,de+5e3);E(qt,me),de=qt}}function lr(a,y,x){for(var b,E,re=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ue=y;ue>le;--ue){if(ue<=re.first)return re.first;var de=Ct(re,ue-1),me=de.stateAfter;if(me&&(!x||ue+(me instanceof kn?me.lookAhead:0)<=re.modeFrontier))return ue;var Ze=ge(de.text,null,a.options.tabSize);(E==null||b>Ze)&&(E=ue-1,b=Ze)}return E}function ir(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 kn)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var er=!1,tr=!1;function gr(){er=!0}function mr(){tr=!0}function cr(a,y,x){this.marker=a,this.from=y,this.to=x}function vr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function Cr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function or(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function dr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ue=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);if(ue||re.from==y&&le.type=="bookmark"&&(!x||!re.marker.insertLeft)){var de=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);(b||(b=[])).push(new cr(le,re.from,de?null:re.to))}}return b}function Vn(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var re=a[E],le=re.marker,ue=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);if(ue||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var de=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);(b||(b=[])).push(new cr(le,de?null:re.from-y,re.to==null?null:re.to-y))}}return b}function Sr(a,y){if(y.full)return null;var x=be(a,y.from.line)&&Ct(a,y.from.line).markedSpans,b=be(a,y.to.line)&&Ct(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,re=y.to.ch,le=ze(y.from,y.to)==0,ue=dr(x,E,le),de=Vn(b,re,le),me=y.text.length==1,Ze=Fe(y.text).length+(me?E:0);if(ue)for(var et=0;et<ue.length;++et){var Lt=ue[et];if(Lt.to==null){var Ot=vr(de,Lt.marker);Ot?me&&(Lt.to=Ot.to==null?null:Ot.to+Ze):Lt.to=E}}if(de)for(var qt=0;qt<de.length;++qt){var vn=de[qt];if(vn.to!=null&&(vn.to+=Ze),vn.from==null){var Dn=vr(ue,vn.marker);Dn||(vn.from=Ze,me&&(ue||(ue=[])).push(vn))}else vn.from+=Ze,me&&(ue||(ue=[])).push(vn)}ue&&(ue=Rr(ue)),de&&de!=ue&&(de=Rr(de));var $n=[ue];if(!me){var Gn=y.text.length-2,zn;if(Gn>0&&ue)for(var Kn=0;Kn<ue.length;++Kn)ue[Kn].to==null&&(zn||(zn=[])).push(new cr(ue[Kn].marker,null,null));for(var sr=0;sr<Gn;++sr)$n.push(zn);$n.push(de)}return $n}function Rr(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 Wr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Ot){if(Ot.markedSpans)for(var qt=0;qt<Ot.markedSpans.length;++qt){var vn=Ot.markedSpans[qt].marker;vn.readOnly&&(!b||tt(b,vn)==-1)&&(b||(b=[])).push(vn)}}),!b)return null;for(var E=[{from:y,to:x}],re=0;re<b.length;++re)for(var le=b[re],ue=le.find(0),de=0;de<E.length;++de){var me=E[de];if(!(ze(me.to,ue.from)<0||ze(me.from,ue.to)>0)){var Ze=[de,1],et=ze(me.from,ue.from),Lt=ze(me.to,ue.to);(et<0||!le.inclusiveLeft&&!et)&&Ze.push({from:me.from,to:ue.from}),(Lt>0||!le.inclusiveRight&&!Lt)&&Ze.push({from:ue.to,to:me.to}),E.splice.apply(E,Ze),de+=Ze.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Ar(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function Ir(a){return a.inclusiveLeft?-1:0}function Dr(a){return a.inclusiveRight?1:0}function $r(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),re=ze(b.from,E.from)||Ir(a)-Ir(y);if(re)return-re;var le=ze(b.to,E.to)||Dr(a)-Dr(y);return le||y.id-a.id}function fr(a,y){var x=tr&&a.markedSpans,b;if(x)for(var E=void 0,re=0;re<x.length;++re)E=x[re],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||$r(b,E.marker)<0)&&(b=E.marker);return b}function Yn(a){return fr(a,!0)}function rn(a){return fr(a,!1)}function pn(a,y){var x=tr&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var re=x[E];re.marker.collapsed&&(re.from==null||re.from<y)&&(re.to==null||re.to>y)&&(!b||$r(b,re.marker)<0)&&(b=re.marker)}return b}function dn(a,y,x,b,E){var re=Ct(a,y),le=tr&&re.markedSpans;if(le)for(var ue=0;ue<le.length;++ue){var de=le[ue];if(de.marker.collapsed){var me=de.marker.find(0),Ze=ze(me.from,x)||Ir(de.marker)-Ir(E),et=ze(me.to,b)||Dr(de.marker)-Dr(E);if(!(Ze>=0&&et<=0||Ze<=0&&et>=0)&&(Ze<=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?ze(me.to,x)>=0:ze(me.to,x)>0)||Ze>=0&&(de.marker.inclusiveRight&&E.inclusiveLeft?ze(me.from,b)<=0:ze(me.from,b)<0)))return!0}}}function Kt(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function Fn(a){for(var y;y=rn(a);)a=y.find(1,!0).line;return a}function Wn(a){for(var y,x;y=rn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function on(a,y){var x=Ct(a,y),b=Kt(x);return x==b?y:Ae(b)}function un(a,y){if(y>a.lastLine())return y;var x=Ct(a,y),b;if(!Ln(a,x))return y;for(;b=rn(x);)x=b.find(1,!0).line;return Ae(x)+1}function Ln(a,y){var x=tr&&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&&An(a,y,b))return!0}}}function An(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return An(a,b.line,vr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,re=0;re<y.markedSpans.length;++re)if(E=y.markedSpans[re],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&An(a,y,E))return!0}function rr(a){a=Kt(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 re=x.parent;re;x=re,re=x.parent)for(var le=0;le<re.children.length;++le){var ue=re.children[le];if(ue==x)break;y+=ue.height}return y}function kr(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=rn(b);){var re=x.find(0,!0);y-=b.text.length-re.from.ch,b=re.to.line,y+=b.text.length-re.to.ch}return y}function br(a){var y=a.display,x=a.doc;y.maxLine=Ct(x,x.first),y.maxLineLength=kr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=kr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Mr=function(a,y,x){this.text=a,Ar(this,y),this.height=x?x(this):1};Mr.prototype.lineNo=function(){return Ae(this)},Nt(Mr);function Or(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Ar(a,x);var E=b?b(a):1;E!=a.height&&jn(a,E)}function Br(a){a.parent=null,Er(a)}var zr={},Tr={};function _r(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Tr:zr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=vt("span",null,null,Ee?"padding-right: .1px":null),b={pre:vt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var re=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Fi,In(a.display.measure)&&(le=at(re,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var ue=y!=a.display.externalMeasured&&Ae(re);Lr(re,b,Xn(a,re,ue)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=Tt(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=Tt(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(sn(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(Ee){var de=b.content.lastChild;(/\bcm-tab\b/.test(de.className)||de.querySelector&&de.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return _t(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Tt(b.pre.className,b.textClass||"")),b}function Oi(a){var y=Ye("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,E,re,le){if(y){var ue=a.splitSpaces?xi(y,a.trailingSpace):y,de=a.cm.state.specialChars,me=!1,Ze;if(!de.test(y))a.col+=y.length,Ze=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Ze),xe&&Ce<9&&(me=!0),a.pos+=y.length;else{Ze=document.createDocumentFragment();for(var et=0;;){de.lastIndex=et;var Lt=de.exec(y),Ot=Lt?Lt.index-et:y.length-et;if(Ot){var qt=document.createTextNode(ue.slice(et,et+Ot));xe&&Ce<9?Ze.appendChild(Ye("span",[qt])):Ze.appendChild(qt),a.map.push(a.pos,a.pos+Ot,qt),a.col+=Ot,a.pos+=Ot}if(!Lt)break;et+=Ot+1;var vn=void 0;if(Lt[0]==" "){var Dn=a.cm.options.tabSize,$n=Dn-a.col%Dn;vn=Ze.appendChild(Ye("span",Ht($n),"cm-tab")),vn.setAttribute("role","presentation"),vn.setAttribute("cm-text"," "),a.col+=$n}else Lt[0]=="\r"||Lt[0]==`
`?(vn=Ze.appendChild(Ye("span",Lt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vn.setAttribute("cm-text",Lt[0]),a.col+=1):(vn=a.cm.options.specialCharPlaceholder(Lt[0]),vn.setAttribute("cm-text",Lt[0]),xe&&Ce<9?Ze.appendChild(Ye("span",[vn])):Ze.appendChild(vn),a.col+=1);a.map.push(a.pos,a.pos+1,vn),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||me||re||le){var Gn=x||"";b&&(Gn+=b),E&&(Gn+=E);var zn=Ye("span",[Ze],Gn,re);if(le)for(var Kn in le)le.hasOwnProperty(Kn)&&Kn!="style"&&Kn!="class"&&zn.setAttribute(Kn,le[Kn]);return a.content.appendChild(zn)}a.content.appendChild(Ze)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var re=a.charAt(E);re==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(re="\xA0"),b+=re,x=re==" "}return b}function mi(a,y){return function(x,b,E,re,le,ue,de){E=E?E+" cm-force-border":"cm-force-border";for(var me=x.pos,Ze=me+b.length;;){for(var et=void 0,Lt=0;Lt<y.length&&(et=y[Lt],!(et.to>me&&et.from<=me));Lt++);if(et.to>=Ze)return a(x,b,E,re,le,ue,de);a(x,b.slice(0,et.to-me),E,re,null,ue,de),re=null,b=b.slice(et.to-me),me=et.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 Lr(a,y,x){var b=a.markedSpans,E=a.text,re=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(re,re=x[le]),_r(x[le+1],y.cm.options));return}for(var ue=E.length,de=0,me=1,Ze="",et,Lt,Ot=0,qt,vn,Dn,$n,Gn;;){if(Ot==de){qt=vn=Dn=Lt="",Gn=null,$n=null,Ot=1/0;for(var zn=[],Kn=void 0,sr=0;sr<b.length;++sr){var nr=b[sr],wr=nr.marker;if(wr.type=="bookmark"&&nr.from==de&&wr.widgetNode)zn.push(wr);else if(nr.from<=de&&(nr.to==null||nr.to>de||wr.collapsed&&nr.to==de&&nr.from==de)){if(nr.to!=null&&nr.to!=de&&Ot>nr.to&&(Ot=nr.to,vn=""),wr.className&&(qt+=" "+wr.className),wr.css&&(Lt=(Lt?Lt+";":"")+wr.css),wr.startStyle&&nr.from==de&&(Dn+=" "+wr.startStyle),wr.endStyle&&nr.to==Ot&&(Kn||(Kn=[])).push(wr.endStyle,nr.to),wr.title&&((Gn||(Gn={})).title=wr.title),wr.attributes)for(var Zr in wr.attributes)(Gn||(Gn={}))[Zr]=wr.attributes[Zr];wr.collapsed&&(!$n||$r($n.marker,wr)<0)&&($n=nr)}else nr.from>de&&Ot>nr.from&&(Ot=nr.from)}if(Kn)for(var li=0;li<Kn.length;li+=2)Kn[li+1]==Ot&&(vn+=" "+Kn[li]);if(!$n||$n.from==de)for(var Ur=0;Ur<zn.length;++Ur)Xi(y,0,zn[Ur]);if($n&&($n.from||0)==de){if(Xi(y,($n.to==null?ue+1:$n.to)-de,$n.marker,$n.from==null),$n.to==null)return;$n.to==de&&($n=!1)}}if(de>=ue)break;for(var Ti=Math.min(ue,Ot);;){if(Ze){var Ei=de+Ze.length;if(!$n){var qr=Ei>Ti?Ze.slice(0,Ti-de):Ze;y.addToken(y,qr,et?et+qt:qt,Dn,de+qr.length==Ot?vn:"",Lt,Gn)}if(Ei>=Ti){Ze=Ze.slice(Ti-de),de=Ti;break}de=Ei,Dn=""}Ze=E.slice(re,re=x[me++]),et=_r(x[me++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=Wn(y),this.size=this.rest?Ae(Fe(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Ln(a,y)}function ni(a,y,x){for(var b=[],E,re=y;re<x;re=E){var le=new to(a.doc,Ct(a.doc,re),re);E=re+le.size,b.push(le)}return b}var Li=null;function ao(a){Li?Li.ops.push(a):a.ownsGroup=Li={ops:[a],delayedCallbacks:[]}}function Yi(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 vi(a,y){var x=a.ownsGroup;if(x)try{Yi(x)}finally{Li=null,y(x)}}var Ai=null;function Gr(a,y){var x=Mt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;Li?E=Li.delayedCallbacks:Ai?E=Ai:(E=Ai=[],setTimeout($i,0));for(var re=function(ue){E.push(function(){return x[ue].apply(null,b)})},le=0;le<x.length;++le)re(le)}}function $i(){var a=Ai;Ai=null;for(var y=0;y<a.length;++y)a[y]()}function lo(a,y,x,b){for(var E=0;E<y.changes.length;E++){var re=y.changes[E];re=="text"?so(a,y):re=="gutter"?yr(a,y,x,b):re=="class"?ar(a,y):re=="widget"&&hr(a,y,b)}y.changes=null}function ji(a){return a.node==a.text&&(a.node=Ye("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&Ce<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=ji(y);y.background=b.insertBefore(Ye("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):ti(a,y)}function so(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,ar(a,y)):x&&(y.text.className=x)}function ar(a,y){Qr(a,y),y.line.wrapClass?ji(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 yr(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=ji(y);y.gutterBackground=Ye("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 re=y.line.gutterMarkers;if(a.options.lineNumbers||re){var le=ji(y),ue=y.gutter=Ye("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ue),le.insertBefore(ue,y.text),y.line.gutterClass&&(ue.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(y.lineNumber=ue.appendChild(Ye("div",$e(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),re)for(var de=0;de<a.display.gutterSpecs.length;++de){var me=a.display.gutterSpecs[de].className,Ze=re.hasOwnProperty(me)&&re[me];Ze&&ue.appendChild(Ye("div",[Ze],"CodeMirror-gutter-elt","left: "+b.gutterLeft[me]+"px; width: "+b.gutterWidth[me]+"px"))}}}function hr(a,y,x){y.alignable&&(y.alignable=null);for(var b=st("CodeMirror-linewidget"),E=y.node.firstChild,re=void 0;E;E=re)re=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);Nr(a,y,x)}function pr(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),ar(a,y),yr(a,y,x,b),Nr(a,y,b),y.node}function Nr(a,y,x){if(jr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)jr(a,y.rest[b],y,x,!1)}function jr(a,y,x,b,E){if(y.widgets)for(var re=ji(x),le=0,ue=y.widgets;le<ue.length;++le){var de=ue[le],me=Ye("div",[de.node],"CodeMirror-linewidget"+(de.className?" "+de.className:""));de.handleMouseEvents||me.setAttribute("cm-ignore-events","true"),Zi(de,me,x,b),a.display.input.setUneditable(me),E&&de.above?re.insertBefore(me,x.gutter||x.text):re.appendChild(me),Gr(de,"redraw")}}function Zi(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(!rt(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;"),dt(y.display.measure,Ye("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=lt(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 Xr(a){return a.lineSpace.offsetTop}function zi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ji(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=dt(a.measure,Ye("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 Pi(a){return At-a.display.nativeBarWidth}function Qi(a){return a.display.scroller.clientWidth-Pi(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-Pi(a)-a.display.barHeight}function _i(a,y,x){var b=a.options.lineWrapping,E=b&&Qi(a);if(!y.measure.heights||b&&y.measure.width!=E){var re=y.measure.heights=[];if(b){y.measure.width=E;for(var le=y.text.firstChild.getClientRects(),ue=0;ue<le.length-1;ue++){var de=le[ue],me=le[ue+1];Math.abs(de.bottom-me.bottom)>2&&re.push((de.bottom+me.top)/2-x.top)}}re.push(x.bottom-x.top)}}function Do(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;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(Ae(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function _a(a,y){y=Kt(y);var x=Ae(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,dt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Hi(a,uo(a,y),x,b)}function qi(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(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=Ae(y),b=qi(a,x);b&&!b.text?b=null:b&&b.changes&&(lo(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=_a(a,y));var E=Do(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Hi(a,y,x,b,E){y.before&&(x=-1);var re=x+(b||""),le;return y.cache.hasOwnProperty(re)?le=y.cache[re]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(_i(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[re]=le)),{left:le.left,right:le.right,top:E?le.rtop:le.top,bottom:E?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,re,le,ue,de,me=0;me<a.length;me+=3)if(ue=a[me],de=a[me+1],y<ue?(E=0,re=1,le="left"):y<de?(E=y-ue,re=E+1):(me==a.length-3||y==de&&a[me+3]>y)&&(re=de-ue,E=re-1,y>=de&&(le="right")),E!=null){if(b=a[me+2],ue==de&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;me&&a[me-2]==a[me-3]&&a[me-1].insertLeft;)b=a[(me-=3)+2],le="left";if(x=="right"&&E==de-ue)for(;me<a.length-3&&a[me+3]==a[me+4]&&!a[me+5].insertLeft;)b=a[(me+=3)+2],le="right";break}return{node:b,start:E,end:re,collapse:le,coverStart:ue,coverEnd:de}}function Ga(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 Ca(a,y,x,b){var E=xa(y.map,x,b),re=E.node,le=E.start,ue=E.end,de=E.collapse,me;if(re.nodeType==3){for(var Ze=0;Ze<4;Ze++){for(;le&&ye(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ue<E.coverEnd&&ye(y.line.text.charAt(E.coverStart+ue));)++ue;if(xe&&Ce<9&&le==0&&ue==E.coverEnd-E.coverStart?me=re.parentNode.getBoundingClientRect():me=Ga(Re(re,le,ue).getClientRects(),b),me.left||me.right||le==0)break;ue=le,le=le-1,de="right"}xe&&Ce<11&&(me=Va(a.display.measure,me))}else{le>0&&(de=b="right");var et;a.options.lineWrapping&&(et=re.getClientRects()).length>1?me=et[b=="right"?et.length-1:0]:me=re.getBoundingClientRect()}if(xe&&Ce<9&&!le&&(!me||!me.left&&!me.right)){var Lt=re.parentNode.getClientRects()[0];Lt?me={left:Lt.left,right:Lt.left+Vi(a.display),top:Lt.top,bottom:Lt.bottom}:me=ba}for(var Ot=me.top-y.rect.top,qt=me.bottom-y.rect.top,vn=(Ot+qt)/2,Dn=y.view.measure.heights,$n=0;$n<Dn.length-1&&!(vn<Dn[$n]);$n++);var Gn=$n?Dn[$n-1]:0,zn=Dn[$n],Kn={left:(de=="right"?me.right:me.left)-y.rect.left,right:(de=="left"?me.left:me.right)-y.rect.left,top:Gn,bottom:zn};return!me.left&&!me.right&&(Kn.bogus=!0),a.options.singleCursorHeightPerLine||(Kn.rtop=Ot,Kn.rbottom=qt),Kn}function Va(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!cn(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 Uo(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 Ko(a){a.display.externalMeasure=null,Dt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Uo(a.display.view[y])}function Co(a){Ko(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 Oe&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Oe&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(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 Bo(a,y,x,b,E){if(!E){var re=Yo(y);x.top+=re,x.bottom+=re}if(b=="line")return x;b||(b="local");var le=rr(y);if(b=="local"?le+=Xr(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ue=a.display.lineSpace.getBoundingClientRect();le+=ue.top+(b=="window"?0:Sa());var de=ue.left+(b=="window"?0:Xo());x.left+=de,x.right+=de}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Sa();else if(x=="local"||!x){var re=a.display.sizer.getBoundingClientRect();b+=re.left,E+=re.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:E-le.top}}function To(a,y,x,b,E){return b||(b=Ct(a.doc,y.line)),Bo(a,b,ya(a,b,y.ch,E),x)}function Ci(a,y,x,b,E,re){b=b||Ct(a.doc,y.line),E||(E=uo(a,b));function le(qt,vn){var Dn=Hi(a,E,qt,vn?"right":"left",re);return vn?Dn.left=Dn.right:Dn.right=Dn.left,Bo(a,b,Dn,x)}var ue=at(b,a.doc.direction),de=y.ch,me=y.sticky;if(de>=b.text.length?(de=b.text.length,me="before"):de<=0&&(de=0,me="after"),!ue)return le(me=="before"?de-1:de,me=="before");function Ze(qt,vn,Dn){var $n=ue[vn],Gn=$n.level==1;return le(Dn?qt-1:qt,Gn!=Dn)}var et=wt(ue,de,me),Lt=it,Ot=Ze(de,et,me=="before");return Lt!=null&&(Ot.other=Ze(de,Lt,me!="before")),Ot}function Pr(a,y){var x=0;y=Pt(a.doc,y),a.options.lineWrapping||(x=Vi(a.display)*y.ch);var b=Ct(a.doc,y.line),E=rr(b)+Xr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function xr(a,y,x,b,E){var re=Se(a,y,x);return re.xRel=E,b&&(re.outside=b),re}function ci(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return xr(b.first,0,null,-1,-1);var E=Qe(b,x),re=b.first+b.size-1;if(E>re)return xr(b.first+b.size-1,Ct(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=Ct(b,E);;){var ue=Gi(a,le,E,y,x),de=pn(le,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!de)return ue;var me=de.find(1);if(me.line==E)return me;le=Ct(b,E=me.line)}}function fi(a,y,x,b){b-=Yo(y);var E=y.text.length,re=we(function(le){return Hi(a,x,le-1).bottom<=b},E,0);return E=we(function(le){return Hi(a,x,le).top>b},re,E),{begin:re,end:E}}function Yr(a,y,x,b){x||(x=uo(a,y));var E=Bo(a,y,Hi(a,x,b),"line").top;return fi(a,y,x,E)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Gi(a,y,x,b,E){E-=rr(y);var re=uo(a,y),le=Yo(y),ue=0,de=y.text.length,me=!0,Ze=at(y,a.doc.direction);if(Ze){var et=(a.options.lineWrapping?ro:Wi)(a,y,x,re,Ze,b,E);me=et.level!=1,ue=me?et.from:et.to-1,de=me?et.to:et.from-1}var Lt=null,Ot=null,qt=we(function(sr){var nr=Hi(a,re,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,E,!1)?(nr.top<=E&&nr.left<=b&&(Lt=sr,Ot=nr),!0):!1},ue,de),vn,Dn,$n=!1;if(Ot){var Gn=b-Ot.left<Ot.right-b,zn=Gn==me;qt=Lt+(zn?0:1),Dn=zn?"after":"before",vn=Gn?Ot.left:Ot.right}else{!me&&(qt==de||qt==ue)&&qt++,Dn=qt==0?"after":qt==y.text.length?"before":Hi(a,re,qt-(me?1:0)).bottom+le<=E==me?"after":"before";var Kn=Ci(a,Se(x,qt,Dn),"line",y,re);vn=Kn.left,$n=E<Kn.top?-1:E>=Kn.bottom?1:0}return qt=ot(y.text,qt,1),xr(x,qt,Dn,$n,b-vn)}function Wi(a,y,x,b,E,re,le){var ue=we(function(et){var Lt=E[et],Ot=Lt.level!=1;return ri(Ci(a,Se(x,Ot?Lt.to:Lt.from,Ot?"before":"after"),"line",y,b),re,le,!0)},0,E.length-1),de=E[ue];if(ue>0){var me=de.level!=1,Ze=Ci(a,Se(x,me?de.from:de.to,me?"after":"before"),"line",y,b);ri(Ze,re,le,!0)&&Ze.top>le&&(de=E[ue-1])}return de}function ro(a,y,x,b,E,re,le){var ue=fi(a,y,b,le),de=ue.begin,me=ue.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Ze=null,et=null,Lt=0;Lt<E.length;Lt++){var Ot=E[Lt];if(!(Ot.from>=me||Ot.to<=de)){var qt=Ot.level!=1,vn=Hi(a,b,qt?Math.min(me,Ot.to)-1:Math.max(de,Ot.from)).right,Dn=vn<re?re-vn+1e9:vn-re;(!Ze||et>Dn)&&(Ze=Ot,et=Dn)}}return Ze||(Ze=E[E.length-1]),Ze.from<de&&(Ze={from:de,to:Ze.to,level:Ze.level}),Ze.to>me&&(Ze={from:Ze.from,to:me,level:Ze.level}),Ze}var Mi;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Mi==null){Mi=Ye("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Mi.appendChild(document.createTextNode("x")),Mi.appendChild(Ye("br"));Mi.appendChild(document.createTextNode("x"))}dt(a.measure,Mi);var x=Mi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Dt(a.measure),x||1}function Vi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ye("span","xxxxxxxxxx"),x=Ye("pre",[y],"CodeMirror-line-like");dt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ue=a.display.gutterSpecs[le].className;x[ue]=re.offsetLeft+re.clientLeft+E,b[ue]=re.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Di(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Vi(a.display)-3);return function(E){if(Ln(a.doc,E))return 0;var re=0;if(E.widgets)for(var le=0;le<E.widgets.length;le++)E.widgets[le].height&&(re+=E.widgets[le].height);return x?re+(Math.ceil(E.text.length/b)||1)*y:re+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&jn(b,E)})}function So(a,y,x,b){var E=a.display;if(!x&&lt(y).getAttribute("cm-not-content")=="true")return null;var re,le,ue=E.lineSpace.getBoundingClientRect();try{re=y.clientX-ue.left,le=y.clientY-ue.top}catch(et){return null}var de=ci(a,re,le),me;if(b&&de.xRel>0&&(me=Ct(a.doc,de.line).text).length==de.ch){var Ze=ge(me,me.length,a.options.tabSize)-me.length;de=Se(de.line,Math.max(0,Math.round((re-Ji(a.display).left)/Vi(a.display))-Ze))}return de}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Si(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)tr&&on(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)tr&&un(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 re=Ea(a,x,x+b,1);re?(E.view=E.view.slice(re.index),E.viewFrom=re.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ue=Ea(a,y,y,-1),de=Ea(a,x,x+b,1);ue&&de?(E.view=E.view.slice(0,ue.index).concat(ni(a,ue.lineN,de.lineN)).concat(E.view.slice(de.index)),E.viewTo+=b):ho(a)}var me=E.externalMeasured;me&&(x<me.lineN?me.lineN+=b:y<me.lineN+me.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 re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);tt(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=wo(a,y),re,le=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ue=a.display.viewFrom,de=0;de<E;de++)ue+=le[de].size;if(ue!=y){if(b>0){if(E==le.length-1)return null;re=ue+le[E].size-y,E++}else re=ue-y;y+=re,x+=re}for(;on(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ni(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ni(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(ni(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Jo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),re=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var ue=x.sel.ranges[le];if(!(ue.from().line>=a.display.viewTo||ue.to().line<a.display.viewFrom)){var de=ue.empty();(de||a.options.showCursorWhenSelecting)&&El(a,ue.head,E),de||Hs(a,ue,re)}}return b}function El(a,y,x){var b=Ci(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(Ye("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 re=x.appendChild(Ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));re.style.display="",re.style.left=b.other.left+"px",re.style.top=b.other.top+"px",re.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function Hs(a,y,x){var b=a.display,E=a.doc,re=document.createDocumentFragment(),le=Ji(a.display),ue=le.left,de=Math.max(b.sizerWidth,Qi(a)-b.sizer.offsetLeft)-le.right,me=E.direction=="ltr";function Ze(zn,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),re.appendChild(Ye("div",null,"CodeMirror-selected","position: absolute; left: "+zn+`px;
top: `+Kn+"px; width: "+(sr==null?de-zn:sr)+`px;
height: `+(nr-Kn)+"px"))}function et(zn,Kn,sr){var nr=Ct(E,zn),wr=nr.text.length,Zr,li;function Ur(qr,Ii){return To(a,Se(zn,qr),"div",nr,Ii)}function Ti(qr,Ii,di){var ii=Yr(a,nr,null,qr),ei=Ii=="ltr"==(di=="after")?"left":"right",Kr=di=="after"?ii.begin:ii.end-(/\s/.test(nr.text.charAt(ii.end-1))?2:1);return Ur(Kr,ei)[ei]}var Ei=at(nr,E.direction);return We(Ei,Kn||0,sr==null?wr:sr,function(qr,Ii,di,ii){var ei=di=="ltr",Kr=Ur(qr,ei?"left":"right"),ki=Ur(Ii-1,ei?"right":"left"),Go=Kn==null&&qr==0,bo=sr==null&&Ii==wr,pi=ii==0,eo=!Ei||ii==Ei.length-1;if(ki.top-Kr.top<=3){var si=(me?Go:bo)&&pi,bl=(me?bo:Go)&&eo,oo=si?ue:(ei?Kr:ki).left,Po=bl?de:(ei?ki:Kr).right;Ze(oo,Kr.top,Po-oo,Kr.bottom)}else{var Mo,bi,Vo,xl;ei?(Mo=me&&Go&&pi?ue:Kr.left,bi=me?de:Ti(qr,di,"before"),Vo=me?ue:Ti(Ii,di,"after"),xl=me&&bo&&eo?de:ki.right):(Mo=me?Ti(qr,di,"before"):ue,bi=!me&&Go&&pi?de:Kr.right,Vo=!me&&bo&&eo?ue:ki.left,xl=me?Ti(Ii,di,"after"):de),Ze(Mo,Kr.top,bi-Mo,Kr.bottom),Kr.bottom<ki.top&&Ze(ue,Kr.bottom,null,ki.top),Ze(Vo,ki.top,xl-Vo,ki.bottom)}(!Zr||Ia(Kr,Zr)<0)&&(Zr=Kr),Ia(ki,Zr)<0&&(Zr=ki),(!li||Ia(Kr,li)<0)&&(li=Kr),Ia(ki,li)<0&&(li=ki)}),{start:Zr,end:li}}var Lt=y.from(),Ot=y.to();if(Lt.line==Ot.line)et(Lt.line,Lt.ch,Ot.ch);else{var qt=Ct(E,Lt.line),vn=Ct(E,Ot.line),Dn=Kt(qt)==Kt(vn),$n=et(Lt.line,Lt.ch,Dn?qt.text.length+1:null).end,Gn=et(Ot.line,Dn?0:null,Ot.ch).start;Dn&&($n.top<Gn.top-2?(Ze($n.right,$n.top,null,$n.bottom),Ze(ue,Gn.top,Gn.left,Gn.bottom)):Ze($n.right,$n.top,Gn.left-$n.right,$n.bottom)),$n.bottom<Gn.top&&Ze(ue,$n.bottom,null,Gn.top)}x.appendChild(re)}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()||Lo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function kl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Lo(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(_t(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ee&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Lo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(_t(a,"blur",a,y),a.state.focused=!1,Ve(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ka(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],re=a.options.lineWrapping,le=void 0,ue=0;if(!E.hidden){if(xe&&Ce<8){var de=E.node.offsetTop+E.node.offsetHeight;le=de-x,x=de}else{var me=E.node.getBoundingClientRect();le=me.bottom-me.top,!re&&E.text.firstChild&&(ue=E.text.firstChild.getBoundingClientRect().right-me.left-1)}var Ze=E.line.height-le;if((Ze>.005||Ze<-.005)&&(jn(E.line,le),Ol(E.line),E.rest))for(var et=0;et<E.rest.length;et++)Ol(E.rest[et]);if(ue>a.display.sizerWidth){var Lt=Math.ceil(ue/Vi(a.display));Lt>a.display.maxLineLength&&(a.display.maxLineLength=Lt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ol(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 Oa(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-Xr(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,re=Qe(y,b),le=Qe(y,E);if(x&&x.ensure){var ue=x.ensure.from.line,de=x.ensure.to.line;ue<re?(re=ue,le=Qe(y,rr(Ct(y,ue))+a.wrapper.clientHeight)):Math.min(de,y.lastLine())>=le&&(re=Qe(y,rr(Ct(y,de))-a.wrapper.clientHeight),le=de)}return{from:re,to:Math.max(le,re+1)}}function Ws(a,y){if(!ft(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&&!yt){var re=Ye("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Xr(a.display))+`px;
height: `+(y.bottom-y.top+Pi(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(E),a.display.lineSpace.removeChild(re)}}}function js(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?Se(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Se(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ue=Ci(a,y),de=!x||x==y?ue:Ci(a,x);E={left:Math.min(ue.left,de.left),top:Math.min(ue.top,de.top)-b,right:Math.max(ue.left,de.left),bottom:Math.max(ue.bottom,de.bottom)+b};var me=Ja(a,E),Ze=a.doc.scrollTop,et=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Ze)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-et)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=Di(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=no(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ue=a.doc.height+zi(x),de=y.top<b,me=y.bottom>ue-b;if(y.top<E)le.scrollTop=de?0:y.top;else if(y.bottom>E+re){var Ze=Math.min(y.top,(me?ue:y.bottom)-re);Ze!=E&&(le.scrollTop=Ze)}var et=a.options.fixedGutter?0:x.gutters.offsetWidth,Lt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-et,Ot=Qi(a)-x.gutters.offsetWidth,qt=y.right-y.left>Ot;return qt&&(y.right=y.left+Ot),y.left<10?le.scrollLeft=0:y.left<Lt?le.scrollLeft=Math.max(0,y.left+et-(qt?0:10)):y.right>Ot+Lt-3&&(le.scrollLeft=y.right+(qt?0:10)-Ot),le}function Qa(a,y){y!=null&&(Pa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Pa(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)&&Pa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Pa(a),a.curOp.scrollToPos=y}function Pa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Pr(a,y.from),b=Pr(a,y.to);Pl(a,x,b,y.margin)}}function Pl(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),Ml(a,y,!0),z&&el(a),na(a,100))}function Ml(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+zi(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+Pi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=Ye("div",[Ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Ye("div",[Ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),_e(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),_e(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Ce<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=De&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Dl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&ka(a),Dl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Dl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Bl={native:Io,null:ta};function Tl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ve(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Bl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),_e(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Gs=0;function ko(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gs},ao(a.curOp)}function Oo(a){var y=a.curOp;y&&vi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Vs(x)})}function Vs(a){for(var y=a.ops,x=0;x<y.length;x++)Us(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var re=0;re<y.length;re++)Ys(y[re]);for(var le=0;le<y.length;le++)Js(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&br(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 Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&ka(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Pi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Qi(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==nt();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&No(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Ll(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Ml(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=js(y,Pt(b,a.scrollToPos.from),Pt(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,E)}var re=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(re)for(var ue=0;ue<re.length;++ue)re[ue].lines.length||_t(re[ue],"hide");if(le)for(var de=0;de<le.length;++de)le[de].lines.length&&_t(le[de],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&_t(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Bi(a,y){if(a.curOp)return y();ko(a);try{return y()}finally{Oo(a)}}function oi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ko(a);try{return y.apply(a,arguments)}finally{Oo(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);ko(this);try{return a.apply(this,arguments)}finally{Oo(this)}}}function ai(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);ko(y);try{return a.apply(this,arguments)}finally{Oo(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,je(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Jn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ue=re.text.length>a.options.maxHighlightLength?Nn(y.mode,b.state):null,de=En(a,re,b,!0);ue&&(b.state=ue),re.styles=de.styles;var me=re.styleClasses,Ze=de.classes;Ze?re.styleClasses=Ze:me&&(re.styleClasses=null);for(var et=!le||le.length!=re.styles.length||me!=Ze&&(!me||!Ze||me.bgClass!=Ze.bgClass||me.textClass!=Ze.textClass),Lt=0;!et&&Lt<le.length;++Lt)et=le[Lt]!=re.styles[Lt];et&&E.push(b.line),re.stateAfter=b.save(),b.nextLine()}else re.text.length<=a.options.maxHighlightLength&&Qn(a,re.text,b),re.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&&Bi(a,function(){for(var re=0;re<E.length;re++)fo(a,E[re],"text")})}}var Ma=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Oa(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){Me(a,y)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var a=0;a<this.events.length;a++)_t.apply(null,this.events[a])};function qs(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Pi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Pi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=nt();if(!y||!rt(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&rt(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==nt())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&rt(document.body,a.anchorNode)&&rt(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 qa(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&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<re&&re-x.viewFrom<20&&(re=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),tr&&(re=on(a.doc,re),le=un(a.doc,le));var ue=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=rr(Ct(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var de=Sl(a);if(!ue&&de==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var me=eu(a);return de>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),de>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(me),Dt(x.cursorDiv),Dt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ue&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Ll(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+zi(a.display)-no(a),x.top)}),y.visible=Oa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Oa(a.display,a.doc,x));if(!qa(a,y))break;ka(a);var E=ea(a);Jo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Ma(a,y);if(qa(a,x)){ka(a),Ll(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ue(qt){var vn=qt.nextSibling;return Ee&&De&&a.display.currentWheelTarget==qt?qt.style.display="none":qt.parentNode.removeChild(qt),vn}for(var de=b.view,me=b.viewFrom,Ze=0;Ze<de.length;Ze++){var et=de[Ze];if(!et.hidden)if(!et.node||et.node.parentNode!=re){var Lt=pr(a,et,me,x);re.insertBefore(Lt,le)}else{for(;le!=et.node;)le=ue(le);var Ot=E&&y!=null&&y<=me&&et.lineNumber;et.changes&&(tt(et.changes,"gutter")>-1&&(Ot=!1),lo(a,et,me,x)),Ot&&(Dt(et.lineNumber),et.lineNumber.appendChild(document.createTextNode($e(a.options,me)))),le=et.node.nextSibling}me+=et.size}for(;le;)le=ue(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Pi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,re=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=re),x[le].gutterBackground&&(x[le].gutterBackground.style.left=re));var ue=x[le].alignable;if(ue)for(var de=0;de<ue.length;de++)ue[de].style.left=re}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=$e(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(Ye("div",[Ye("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=E.firstChild.offsetWidth,le=E.offsetWidth-re;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(re,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var re=a[E],le=null;if(typeof re!="string"&&(le=re.style,re=re.className),re=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:re,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;Dt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],re=E.className,le=E.style,ue=y.appendChild(Ye("div",null,"CodeMirror-gutter "+re));le&&(ue.style.cssText=le),re=="CodeMirror-linenumbers"&&(a.lineGutter=ue,ue.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Si(a),Al(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=Ye("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=Ye("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=vt("div",null,"CodeMirror-code"),E.selectionDiv=Ye("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=Ye("div",null,"CodeMirror-cursors"),E.measure=Ye("div",null,"CodeMirror-measure"),E.lineMeasure=Ye("div",null,"CodeMirror-measure"),E.lineSpace=vt("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var re=vt("div",[E.lineSpace],"CodeMirror-lines");E.mover=Ye("div",[re],null,"position: relative"),E.sizer=Ye("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=Ye("div",null,null,"position: absolute; height: "+At+"px; width: 1px;"),E.gutters=Ye("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=Ye("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=Ye("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),xe&&Ce<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ee&&!(z&&Ne)&&(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=rl(b.gutters,b.lineNumbers),Rl(E),x.init(E)}var Da=0,Ni=null;xe?Ni=-.53:z?Ni=15:Oe?Ni=-.7:Ge&&(Ni=-1/3);function Fl(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=Fl(a);return y.x*=Ni,y.y*=Ni,y}function $l(a,y){var x=Fl(y),b=x.x,E=x.y,re=a.display,le=re.scroller,ue=le.scrollWidth>le.clientWidth,de=le.scrollHeight>le.clientHeight;if(b&&ue||E&&de){if(E&&De&&Ee){e:for(var me=y.target,Ze=re.view;me!=le;me=me.parentNode)for(var et=0;et<Ze.length;et++)if(Ze[et].node==me){a.display.currentWheelTarget=me;break e}}if(b&&!z&&!fe&&Ni!=null){E&&de&&qo(a,Math.max(0,le.scrollTop+E*Ni)),Eo(a,Math.max(0,le.scrollLeft+b*Ni)),(!E||E&&de)&&Vt(y),re.wheelStartX=null;return}if(E&&Ni!=null){var Lt=E*Ni,Ot=a.doc.scrollTop,qt=Ot+re.wrapper.clientHeight;Lt<0?Ot=Math.max(0,Ot+Lt-50):qt=Math.min(a.doc.height,qt+Lt+50),el(a,{top:Ot,bottom:qt})}Da<20&&(re.wheelStartX==null?(re.wheelStartX=le.scrollLeft,re.wheelStartY=le.scrollTop,re.wheelDX=b,re.wheelDY=E,setTimeout(function(){if(re.wheelStartX!=null){var vn=le.scrollLeft-re.wheelStartX,Dn=le.scrollTop-re.wheelStartY,$n=Dn&&re.wheelDY&&Dn/re.wheelDY||vn&&re.wheelDX&&vn/re.wheelDX;re.wheelStartX=re.wheelStartY=null,$n&&(Ni=(Ni*Da+$n)/(Da+1),++Da)}},200)):(re.wheelDX+=b,re.wheelDY+=E))}}var Ri=function(a,y){this.ranges=a,this.primIndex=y};Ri.prototype.primary=function(){return this.ranges[this.primIndex]},Ri.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(!bt(x.anchor,b.anchor)||!bt(x.head,b.head))return!1}return!0},Ri.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Fr(Yt(this.ranges[y].anchor),Yt(this.ranges[y].head));return new Ri(a,this.primIndex)},Ri.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ri.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(ze(y,b.from())>=0&&ze(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return hn(this.anchor,this.head)},Fr.prototype.to=function(){return Qt(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ui(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Lt,Ot){return ze(Lt.from(),Ot.from())}),x=tt(y,E);for(var re=1;re<y.length;re++){var le=y[re],ue=y[re-1],de=ze(ue.to(),le.from());if(b&&!le.empty()?de>0:de>=0){var me=hn(ue.from(),le.from()),Ze=Qt(ue.to(),le.to()),et=ue.empty()?le.from()==le.head:ue.from()==ue.head;re<=x&&--x,y.splice(--re,2,new Fr(et?Ze:me,et?me:Ze))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?Se(a.from.line+a.text.length-1,Fe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(ze(a,y.from)<0)return a;if(ze(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),Se(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new Fr(zl(E.anchor,y),zl(E.head,y)))}return Ui(a.cm,x,a.sel.primIndex)}function Hl(a,y,x){return a.line==y.line?Se(x.line,a.ch-y.ch+x.ch):Se(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=Se(a.first,0),re=E,le=0;le<y.length;le++){var ue=y[le],de=Hl(ue.from,E,re),me=Hl(mo(ue),E,re);if(E=ue.to,re=me,x=="around"){var Ze=a.sel.ranges[le],et=ze(Ze.head,Ze.anchor)<0;b[le]=new Fr(et?me:de,et?de:me)}else b[le]=new Fr(de,de)}return new Ri(b,a.sel.primIndex)}function ol(a){a.doc.mode=Zn(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&&Si(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&Fe(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(Gn){return x?x[Gn]:null}function re(Gn,zn,Kn){Or(Gn,zn,Kn,b),Gr(Gn,"change",Gn,y)}function le(Gn,zn){for(var Kn=[],sr=Gn;sr<zn;++sr)Kn.push(new Mr(me[sr],E(sr),b));return Kn}var ue=y.from,de=y.to,me=y.text,Ze=Ct(a,ue.line),et=Ct(a,de.line),Lt=Fe(me),Ot=E(me.length-1),qt=de.line-ue.line;if(y.full)a.insert(0,le(0,me.length)),a.remove(me.length,a.size-me.length);else if(Wl(a,y)){var vn=le(0,me.length-1);re(et,et.text,Ot),qt&&a.remove(ue.line,qt),vn.length&&a.insert(ue.line,vn)}else if(Ze==et)if(me.length==1)re(Ze,Ze.text.slice(0,ue.ch)+Lt+Ze.text.slice(de.ch),Ot);else{var Dn=le(1,me.length-1);Dn.push(new Mr(Lt+Ze.text.slice(de.ch),Ot,b)),re(Ze,Ze.text.slice(0,ue.ch)+me[0],E(0)),a.insert(ue.line+1,Dn)}else if(me.length==1)re(Ze,Ze.text.slice(0,ue.ch)+me[0]+et.text.slice(de.ch),E(0)),a.remove(ue.line+1,qt);else{re(Ze,Ze.text.slice(0,ue.ch)+me[0],E(0)),re(et,Lt+et.text.slice(de.ch),Ot);var $n=le(1,me.length-1);qt>1&&a.remove(ue.line+1,qt-1),a.insert(ue.line+1,$n)}Gr(a,"change",a,y)}function vo(a,y,x){function b(E,re,le){if(E.linked)for(var ue=0;ue<E.linked.length;++ue){var de=E.linked[ue];if(de.doc!=re){var me=le&&de.sharedHist;x&&!me||(y(de.doc,me),b(de.doc,E,me))}}}b(a,null,!0)}function jl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),Zl(a),a.options.lineWrapping||br(a),a.options.mode=y.modeOption,Si(a)}function Zl(a){(a.doc.direction=="rtl"?pe:Ve)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Bi(a,function(){Zl(a),Si(a)})}function Ba(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 ll(a,y){var x={from:Yt(y.from),to:mo(y),text:Gt(a,y.from,y.to)};return Vl(a,x,y.from.line,y.to.line+1),vo(a,function(b){return Vl(b,x,y.from.line,y.to.line+1)},!0),x}function _l(a){for(;a.length;){var y=Fe(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return _l(a.done),Fe(a.done);if(a.done.length&&!Fe(a.done).ranges)return Fe(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Fe(a.done)}function Gl(a,y,x,b){var E=a.history;E.undone.length=0;var re=+new Date,le,ue;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ue=Fe(le.changes),ze(y.from,y.to)==0&&ze(y.from,ue.to)==0?ue.to=mo(y):le.changes.push(ll(a,y));else{var de=Fe(E.done);for((!de||!de.ranges)&&Ta(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=re,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ue||_t(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,re=b&&b.origin;x==E.lastSelOp||re&&E.lastSelOrigin==re&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==re||su(a,re,Fe(E.done),y))?E.done[E.done.length-1]=y:Ta(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=re,E.lastSelOp=x,b&&b.clearRedo!==!1&&_l(E.undone)}function Ta(a,y){var x=Fe(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Vl(a,y,x,b){var E=y["spans_"+a.id],re=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x<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 Ul(a,y){var x=du(a,y),b=Sr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var re=x[E],le=b[E];if(re&&le)e:for(var ue=0;ue<le.length;++ue){for(var de=le[ue],me=0;me<re.length;++me)if(re[me].marker==de.marker)continue e;re.push(de)}else le&&(x[E]=le)}return x}function Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var re=a[E];if(re.ranges){b.push(x?Ri.prototype.deepCopy.call(re):re);continue}var le=re.changes,ue=[];b.push({changes:ue});for(var de=0;de<le.length;++de){var me=le[de],Ze=void 0;if(ue.push({from:me.from,to:me.to,text:me.text}),y)for(var et in me)(Ze=et.match(/^spans_(\d+)$/))&&tt(y,Number(Ze[1]))>-1&&(Fe(ue)[et]=me[et],delete me[et])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var re=ze(y,E)<0;re!=ze(x,E)<0?(E=y,y=x):re!=ze(y,x)<0&&(y=x)}return new Fr(E,y)}else return new Fr(x||y,y)}function La(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),re=0;re<a.sel.ranges.length;re++)b[re]=sl(a.sel.ranges[re],y[re],null,E);var le=Ui(a.cm,b,a.sel.primIndex);hi(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,hi(a,Ui(a.cm,E,a.sel.primIndex),b)}function Xl(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 re=0;re<E.length;re++)this.ranges[re]=new Fr(Pt(a,E[re].anchor),Pt(a,E[re].head))},origin:x&&x.origin};return _t(a,"beforeSelectionChange",a,b),a.cm&&_t(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ui(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,E=Fe(b);E&&E.ranges?(b[b.length-1]=y,Aa(a,y,x)):hi(a,y,x)}function hi(a,y,x){Aa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Aa(a,y,x){(Me(a,"beforeSelectionChange")||a.cm&&Me(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(ze(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Ao(a.cm)}function Jl(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,$t(a.cm)),Gr(a,"cursorActivity",a))}function Ql(a){Jl(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,re=0;re<y.ranges.length;re++){var le=y.ranges[re],ue=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[re],de=Na(a,le.anchor,ue&&ue.anchor,x,b),me=Na(a,le.head,ue&&ue.head,x,b);(E||de!=le.anchor||me!=le.head)&&(E||(E=y.ranges.slice(0,re)),E[re]=new Fr(de,me))}return E?Ui(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var re=Ct(a,y.line);if(re.markedSpans)for(var le=0;le<re.markedSpans.length;++le){var ue=re.markedSpans[le],de=ue.marker,me="selectLeft"in de?!de.selectLeft:de.inclusiveLeft,Ze="selectRight"in de?!de.selectRight:de.inclusiveRight;if((ue.from==null||(me?ue.from<=y.ch:ue.from<y.ch))&&(ue.to==null||(Ze?ue.to>=y.ch:ue.to>y.ch))){if(E&&(_t(de,"beforeCursorEnter"),de.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!de.atomic)continue;if(x){var et=de.find(b<0?1:-1),Lt=void 0;if((b<0?Ze:me)&&(et=es(a,et,-b,et&&et.line==y.line?re:null)),et&&et.line==y.line&&(Lt=ze(et,x))&&(b<0?Lt<0:Lt>0))return Fo(a,et,y,b,E)}var Ot=de.find(b<0?-1:1);return(b<0?me:Ze)&&(Ot=es(a,Ot,b,Ot.line==y.line?re:null)),Ot?Fo(a,Ot,y,b,E):null}}return y}function Na(a,y,x,b,E){var re=b||1,le=Fo(a,y,x,re,E)||!E&&Fo(a,y,x,re,!0)||Fo(a,y,x,-re,E)||!E&&Fo(a,y,x,-re,!0);return le||(a.cantEdit=!0,Se(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Pt(a,Se(y.line-1)):null:x>0&&y.ch==(b||Ct(a,y.line)).text.length?y.line<a.first+a.size-1?Se(y.line+1,0):null:new Se(y.line,y.ch+x)}function ts(a){a.setSelection(Se(a.firstLine(),0),Se(a.lastLine()),ke)}function ns(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,re,le,ue){E&&(b.from=Pt(a,E)),re&&(b.to=Pt(a,re)),le&&(b.text=le),ue!==void 0&&(b.origin=ue)}),_t(a,"beforeChange",a,b),a.cm&&_t(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 $o(a,y,x){if(a.cm){if(!a.cm.curOp)return oi(a.cm,$o)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Me(a,"beforeChange")||a.cm&&Me(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=er&&!x&&Wr(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&ze(y.from,y.to)==0)){var x=il(a,y);Gl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,Sr(a,y));var b=[];vo(a,function(E,re){!re&&tt(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,Sr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,re,le=a.sel,ue=y=="undo"?E.done:E.undone,de=y=="undo"?E.undone:E.done,me=0;me<ue.length&&(re=ue[me],!(x?re.ranges&&!re.equals(a.sel):!re.ranges));me++);if(me!=ue.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(re=ue.pop(),re.ranges){if(Ta(re,de),x&&!re.equals(a.sel)){hi(a,re,{clearRedo:!1});return}le=re}else if(b){ue.push(re);return}else break;var Ze=[];Ta(le,de),de.push({changes:Ze,generation:E.generation}),E.generation=re.generation||++E.maxGeneration;for(var et=Me(a,"beforeChange")||a.cm&&Me(a.cm,"beforeChange"),Lt=function(vn){var Dn=re.changes[vn];if(Dn.origin=y,et&&!ns(a,Dn,!1))return ue.length=0,{};Ze.push(ll(a,Dn));var $n=vn?il(a,Dn):Fe(ue);oa(a,Dn,$n,Ul(a,Dn)),!vn&&a.cm&&a.cm.scrollIntoView({from:Dn.from,to:mo(Dn)});var Gn=[];vo(a,function(zn,Kn){!Kn&&tt(Gn,zn.history)==-1&&(ls(zn.history,Dn),Gn.push(zn.history)),oa(zn,Dn,null,Ul(zn,Dn))})},Ot=re.changes.length-1;Ot>=0;--Ot){var qt=Lt(Ot);if(qt)return qt.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(Rt(a.sel.ranges,function(E){return new Fr(Se(E.anchor.line+y,E.anchor.ch),Se(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Si(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){is(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);is(a,E),y={from:Se(a.first,0),to:Se(y.to.line+E,y.to.ch),text:[Fe(y.text)],origin:y.origin}}var re=a.lastLine();y.to.line>re&&(y={from:y.from,to:Se(re,Ct(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Gt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,ke),a.cantEdit&&Na(a,Se(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,re=y.from,le=y.to,ue=!1,de=re.line;a.options.lineWrapping||(de=Ae(Kt(Ct(b,re.line))),b.iter(de,le.line+1,function(Ot){if(Ot==E.maxLine)return ue=!0,!0})),b.sel.contains(y.from,y.to)>-1&&$t(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(de,re.line+y.text.length,function(Ot){var qt=kr(Ot);qt>E.maxLineLength&&(E.maxLine=Ot,E.maxLineLength=qt,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),ir(b,re.line),na(a,400);var me=y.text.length-(le.line-re.line)-1;y.full?Si(a):re.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?fo(a,re.line,"text"):Si(a,re.line,le.line+1,me);var Ze=Me(a,"changes"),et=Me(a,"change");if(et||Ze){var Lt={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};et&&Gr(a,"change",a,Lt),Ze&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Lt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var re;b||(b=x),ze(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var E=0;E<a.length;++E){var re=a[E],le=!0;if(re.ranges){re.copied||(re=a[E]=re.deepCopy(),re.copied=!0);for(var ue=0;ue<re.ranges.length;ue++)os(re.ranges[ue].anchor,y,x,b),os(re.ranges[ue].head,y,x,b);continue}for(var de=0;de<re.changes.length;++de){var me=re.changes[de];if(x<me.from.line)me.from=Se(me.from.line+b,me.from.ch),me.to=Se(me.to.line+b,me.to.ch);else if(y<=me.to.line){le=!1;break}}le||(a.splice(0,E+1),E=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;as(a.done,x,b,E),as(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,re=y;return typeof y=="number"?re=Ct(a,jt(a,y)):E=Ae(y),E==null?null:(b(re,E)&&a.cm&&fo(a.cm,E,x),re)}function la(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}la.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,Br(E),Gr(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 sa(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}sa.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 re=Math.min(y,E-a),le=b.height;if(b.removeInner(a,re),this.height-=le-b.height,E==re&&(this.children.splice(x--,1),b.parent=null),(y-=re)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ue=[];this.collapse(ue),this.children=[new la(ue)],this.children[0].parent=this}},collapse:function(a){for(var y=0;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],re=E.chunkSize();if(a<=re){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var le=E.lines.length%25+25,ue=le;ue<E.lines.length;){var de=new la(E.lines.slice(ue,ue+=25));E.height-=de.height,this.children.splice(++b,0,de),de.parent=this}E.lines=E.lines.slice(0,le),this.maybeSpill()}break}a-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=tt(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(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],re=E.chunkSize();if(a<re){var le=Math.min(y,re-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=re}}};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=Ae(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 re=gi(this);jn(x,Math.max(0,x.height-re)),a&&(Bi(a,function(){ss(a,x,-re),fo(a,b,"widget")}),Gr(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&&(Ln(this.doc,b)||jn(b,b.height+E),x&&Bi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Gr(x,"lineWidgetChanged",x,a,Ae(b))}))},Nt(ua);function ss(a,y,x){rr(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),re=a.cm;return re&&E.noHScroll&&(re.display.alignWidgets=!0),aa(a,y,"widget",function(le){var ue=le.widgets||(le.widgets=[]);if(E.insertAt==null?ue.push(E):ue.splice(Math.min(ue.length-1,Math.max(0,E.insertAt)),0,E),E.line=le,re&&!Ln(a,le)){var de=rr(le)<a.scrollTop;jn(le,le.height+gi(E)),de&&Qa(re,E.height),re.curOp.forceUpdate=!0}return!0}),re&&Gr(re,"lineWidgetAdded",re,E,typeof y=="number"?y:Ae(y)),E}var us=0,go=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};go.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&ko(a),Me(this,"clear")){var x=this.find();x&&Gr(this,"clear",x.from,x.to)}for(var b=null,E=null,re=0;re<this.lines.length;++re){var le=this.lines[re],ue=vr(le.markedSpans,this);a&&!this.collapsed?fo(a,Ae(le),"text"):a&&(ue.to!=null&&(E=Ae(le)),ue.from!=null&&(b=Ae(le))),le.markedSpans=Cr(le.markedSpans,ue),ue.from==null&&this.collapsed&&!Ln(this.doc,le)&&a&&jn(le,Di(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var de=0;de<this.lines.length;++de){var me=Kt(this.lines[de]),Ze=kr(me);Ze>a.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Ze,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Si(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Gr(a,"markerCleared",a,this,b,E),y&&Oo(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 re=this.lines[E],le=vr(re.markedSpans,this);if(le.from!=null&&(x=Se(y?re:Ae(re),le.from),a==-1))return x;if(le.to!=null&&(b=Se(y?re:Ae(re),le.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||Bi(b,function(){var E=y.line,re=Ae(y.line),le=qi(b,re);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Ln(x.doc,E)&&x.height!=null){var ue=x.height;x.height=null;var de=gi(x)-ue;de&&jn(E,E.height+de)}Gr(b,"markerChanged",b,a)})},go.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||tt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(tt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Nt(go);function Ho(a,y,x,b,E){if(b&&b.shared)return mu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return oi(a.cm,Ho)(a,y,x,b,E);var re=new go(a,E),le=ze(y,x);if(b&&It(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=vt("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(dn(a,y.line,y,x,re)||y.line!=x.line&&dn(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}re.addToHistory&&Gl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ue=y.line,de=a.cm,me;if(a.iter(ue,x.line+1,function(et){de&&re.collapsed&&!de.options.lineWrapping&&Kt(et)==de.display.maxLine&&(me=!0),re.collapsed&&ue!=y.line&&jn(et,0),or(et,new cr(re,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),re.collapsed&&a.iter(y.line,x.line+1,function(et){Ln(a,et)&&jn(et,0)}),re.clearOnEnter&&_e(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(gr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),de){if(me&&(de.curOp.updateMaxLine=!0),re.collapsed)Si(de,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ze=y.line;Ze<=x.line;Ze++)fo(de,Ze,"text");re.atomic&&Ql(de.doc),Gr(de,"markerAdded",de,re)}return re}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();Gr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Nt(ca);function mu(a,y,x,b,E){b=It(b),b.shared=!1;var re=[Ho(a,y,x,b,E)],le=re[0],ue=b.widgetNode;return vo(a,function(de){ue&&(b.widgetNode=ue.cloneNode(!0)),re.push(Ho(de,Pt(de,y),Pt(de,x),b,E));for(var me=0;me<de.linked.length;++me)if(de.linked[me].isParent)return;le=Fe(re)}),new ca(re,le)}function cs(a){return a.findMarks(Se(a.first,0),a.clipPos(Se(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),re=a.clipPos(E.from),le=a.clipPos(E.to);if(ze(re,le)){var ue=Ho(a,re,le,b.primary,b.primary.type);b.markers.push(ue),ue.parent=b}}}function gu(a){for(var y=function(b){var E=a[b],re=[E.primary.doc];vo(E.primary.doc,function(de){return re.push(de)});for(var le=0;le<E.markers.length;le++){var ue=E.markers[le];tt(re,ue.doc)==-1&&(ue.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,wi=function(a,y,x,b,E){if(!(this instanceof wi))return new wi(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new Mr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var re=Se(x,0);this.sel=po(re),this.history=new Ba(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)),al(this,{from:re,to:re,text:a}),hi(this,po(re),ke)};wi.prototype=te(sa.prototype,{constructor:wi,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=Sn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ai(function(a){var y=Se(this.first,0),x=this.first+this.size-1;$o(this,{from:y,to:Se(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),ke)}),replaceRange:function(a,y,x,b){y=Pt(this,y),x=x?Pt(this,x):y,zo(this,a,y,x,b)},getRange:function(a,y,x){var b=Gt(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(be(this,a))return Ct(this,a)},getLineNumber:function(a){return Ae(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Ct(this,a)),Kt(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){Xl(this,Pt(this,typeof a=="number"?Se(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xl(this,Pt(this,a),Pt(this,y||a),x)}),extendSelection:ai(function(a,y,x){La(this,Pt(this,a),y&&Pt(this,y),x)}),extendSelections:ai(function(a,y){Kl(this,en(this,a),y)}),extendSelectionsBy:ai(function(a,y){var x=Rt(this.sel.ranges,a);Kl(this,en(this,x),y)}),setSelections:ai(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Fr(Pt(this,a[E].anchor),Pt(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),hi(this,Ui(this.cm,b,y),x)}}),addSelection:ai(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Fr(Pt(this,a),Pt(this,y||a))),hi(this,Ui(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=Gt(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=Gt(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,re=0;re<E.ranges.length;re++){var le=E.ranges[re];b[re]={from:le.from(),to:le.to(),text:this.splitLines(a[re]),origin:x}}for(var ue=y&&y!="end"&&ou(this,b,y),de=b.length-1;de>=0;de--)$o(this,b[de]);ue?Yl(this,ue):this.cm&&Ao(this.cm)}),undo:ai(function(){Ra(this,"undo")}),redo:ai(function(){Ra(this,"redo")}),undoSelection:ai(function(){Ra(this,"undo",!0)}),redoSelection:ai(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.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 Ba(this.history.maxGeneration),vo(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:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(a){var y=this.history=new Ba(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(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&&ne(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,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!be(this,a)||(y=a,a=Ct(this,a),!a))return null}else if(y=Ae(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",re=b[E];if(re)if(x==null)b[E]=null;else{var le=re.match(st(x));if(!le)return!1;var ue=le.index+le[0].length;b[E]=re.slice(0,le.index)+(!le.index||ue==re.length?"":" ")+re.slice(ue)||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 Ho(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),Ho(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(re){var le=re.markedSpans;if(le)for(var ue=0;ue<le.length;ue++){var de=le[ue];!(de.to!=null&&E==a.line&&a.ch>=de.to||de.from==null&&E!=a.line||de.from!=null&&E==y.line&&de.from>=y.ch)&&(!x||x(de.marker))&&b.push(de.marker.parent||de.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;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 re=E.text.length+b;if(re>a)return y=a,!0;a-=re,++x}),Pt(this,Se(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 wi(Sn(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 wi(Sn(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}],vu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Vr&&(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(cs(this));break}}if(a.history==this.history){var b=[a.id];vo(a,function(E){return b.push(E.id)},!0),a.history=new Ba(null),a.history.done=Ro(this.history.done,b),a.history.undone=Ro(this.history.undone,b)}},iterLinkedDocs:function(a){vo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):ln(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))})}),wi.prototype.eachLine=wi.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(ft(y,a)||ui(y.display,a))){Vt(a),xe&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,re=Array(E),le=0,ue=function(){++le==E&&oi(y,function(){x=Pt(y.doc,x);var Ot={from:x,to:x,text:y.doc.splitLines(re.filter(function(qt){return qt!=null}).join(y.doc.lineSeparator())),origin:"paste"};$o(y.doc,Ot),Yl(y.doc,po(Pt(y.doc,x),Pt(y.doc,mo(Ot))))})()},de=function(Ot,qt){if(y.options.allowDropFileTypes&&tt(y.options.allowDropFileTypes,Ot.type)==-1){ue();return}var vn=new FileReader;vn.onerror=function(){return ue()},vn.onload=function(){var Dn=vn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Dn)){ue();return}re[qt]=Dn,ue()},vn.readAsText(Ot)},me=0;me<b.length;me++)de(b[me],me);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 Ze=a.dataTransfer.getData("Text");if(Ze){var et;if(y.state.draggingText&&!y.state.draggingText.copy&&(et=y.listSelections()),Aa(y.doc,po(x,x)),et)for(var Lt=0;Lt<et.length;++Lt)zo(y.doc,"",et[Lt].anchor,et[Lt].head,"drag");y.replaceSelection(Ze,"around","paste"),y.display.input.focus()}}catch(Ot){}}}}function xu(a,y){if(xe&&(!a.state.draggingText||+new Date-ds<100)){Pe(y);return}if(!(ft(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Ge)){var x=Ye("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",fe&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),fe&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=Ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),dt(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(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 re=0;re<x.length;re++)a(x[re])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;_e(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),_e(window,"blur",function(){return hs(Lo)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var yo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},da=0;da<10;da++)yo[da+48]=yo[da+96]=String(da);for(var Fa=65;Fa<=90;Fa++)yo[Fa]=String.fromCharCode(Fa);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=De?io.macDefault:io.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,re,le=0;le<y.length-1;le++){var ue=y[le];if(/^(cmd|meta|m)$/i.test(ue))re=!0;else if(/^a(lt)?$/i.test(ue))x=!0;else if(/^(c|ctrl|control)$/i.test(ue))b=!0;else if(/^s(hift)?$/i.test(ue))E=!0;else throw new Error("Unrecognized modifier name: "+ue)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),re&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function ku(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=Rt(x.split(" "),Iu),re=0;re<E.length;re++){var le=void 0,ue=void 0;re==E.length-1?(ue=E.join(" "),le=b):(ue=E.slice(0,re+1).join(" "),le="...");var de=y[ue];if(!de)y[ue]=le;else if(de!=le)throw new Error("Inconsistent bindings for "+ue)}delete a[x]}for(var me in y)a[me]=y[me];return a}function Wo(a,y,x,b){y=$a(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 Wo(a,y.fallthrough,x,b);for(var re=0;re<y.fallthrough.length;re++){var le=Wo(a,y.fallthrough[re],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function vs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(gt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(gt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gs(a,y){if(fe&&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),vs(x,a,y))}function $a(a){return typeof a=="string"?io[a]:a}function jo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var re=y(x[E]);b.length&&ze(re.from,Fe(b).to)<=0;){var le=b.pop();if(ze(le.from,re.from)<0){re.from=le.from;break}}b.push(re)}Bi(a,function(){for(var ue=b.length-1;ue>=0;ue--)zo(a.doc,"",b[ue].from,b[ue].to,"+delete");Ao(a)})}function cl(a,y,x){var b=ot(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new Se(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var re=at(x,y.doc.direction);if(re){var le=E<0?Fe(re):re[0],ue=E<0==(le.level==1),de=ue?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Ze=uo(y,x);me=E<0?x.text.length-1:0;var et=Hi(y,Ze,me).top;me=we(function(Lt){return Hi(y,Ze,Lt).top==et},E<0==(le.level==1)?le.from:le.to-1,me),de=="before"&&(me=cl(x,me,1))}else me=E<0?le.to:le.from;return new Se(b,me,de)}}return new Se(b,E<0?x.text.length:0,E<0?"before":"after")}function Ou(a,y,x,b){var E=at(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var re=wt(E,x.ch,x.sticky),le=E[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var ue=function($n,Gn){return cl(y,$n instanceof Se?$n.ch:$n,Gn)},de,me=function($n){return a.options.lineWrapping?(de=de||uo(a,y),Yr(a,y,de,$n)):{begin:0,end:y.text.length}},Ze=me(x.sticky=="before"?ue(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var et=le.level==1==b<0,Lt=ue(x,et?1:-1);if(Lt!=null&&(et?Lt<=le.to&&Lt<=Ze.end:Lt>=le.from&&Lt>=Ze.begin)){var Ot=et?"before":"after";return new Se(x.line,Lt,Ot)}}var qt=function($n,Gn,zn){for(var Kn=function(Zr,li){return li?new Se(x.line,ue(Zr,1),"before"):new Se(x.line,Zr,"after")};$n>=0&&$n<E.length;$n+=Gn){var sr=E[$n],nr=Gn>0==(sr.level!=1),wr=nr?zn.begin:ue(zn.end,-1);if(sr.from<=wr&&wr<sr.to||(wr=nr?sr.from:ue(sr.to,-1),zn.begin<=wr&&wr<zn.end))return Kn(wr,nr)}},vn=qt(re+b,b,Ze);if(vn)return vn;var Dn=b>0?Ze.end:ue(Ze.begin,-1);return Dn!=null&&!(b>0&&Dn==y.text.length)&&(vn=qt(b>0?0:E.length-1,b,me(Dn)),vn)?vn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ke)},killLine:function(a){return jo(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:Se(y.head.line+1,0)}:{from:y.head,to:Se(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return jo(a,function(y){return{from:Se(y.from().line,0),to:Pt(a.doc,Se(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:Se(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return jo(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 jo(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(Se(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Se(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ys(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bs(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Pu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},Xe)},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")},Xe)},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/)?bs(a,y.head):b},Xe)},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 re=x[E].from(),le=ge(a.getLine(re.line),re.ch,b);y.push(Ht(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Bi(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,re=Ct(a.doc,E.line).text;if(re){if(E.ch==re.length&&(E=new Se(E.line,E.ch-1)),E.ch>0)E=new Se(E.line,E.ch+1),a.replaceRange(re.charAt(E.ch-1)+re.charAt(E.ch-2),Se(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Ct(a.doc,E.line-1).text;le&&(E=new Se(E.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Se(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Fr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Bi(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);Ao(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=Ct(a.doc,y),b=Kt(x);return b!=x&&(y=Ae(b)),fl(!0,a,b,y,1)}function Pu(a,y){var x=Ct(a.doc,y),b=Fn(x);return b!=x&&(y=Ae(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Ct(a.doc,x.line),E=at(b,a.doc.direction);if(!E||E[0].level==0){var re=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=re&&y.ch;return Se(x.line,le?0:re,x.sticky)}return x}function za(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)!=St}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=Wo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&Wo(y,a.options.extraKeys,x,a)||Wo(y,a.options.keyMap,x,a)}var Du=new ce;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Du.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,E+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var E=Mu(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Gr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(Vt(x),Xa(a)),!!E}function Cs(a,y){var x=gs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return za(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return za(a,b)}):pa(a,x,y,function(b){return za(a,b)}):!1}function Bu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return za(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=nt(),!ft(y,a))){xe&&Ce<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);fe&&(hl=b?x:null,!b&&x==88&&!nn&&(De?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!De&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Tu(y)}}function Tu(a){var y=a.display.lineDiv;pe(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ve(y,"CodeMirror-crosshair"),Wt(document,"keyup",x),Wt(document,"mouseover",x))}_e(document,"keyup",x),_e(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),ft(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||ft(y,a)||a.ctrlKey&&!a.altKey||De&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(fe&&x==hl){hl=null,Vt(a);return}if(!(fe&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Bu(y,a,E)||y.display.input.onKeyPress(a))}}}var Lu=400,pl=function(a,y,x){this.time=a,this.pos=y,this.button=x};pl.prototype.compare=function(a,y,x){return this.time+Lu>a&&ze(y,this.pos)==0&&x==this.button};var ma,va;function Au(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function Is(a){var y=this,x=y.display;if(!(ft(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Ee||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=xt(a),re=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,re,a))&&(E==1?b?Fu(y,b,re,a):lt(a)==x.scroller&&Vt(a):E==2?(b&&La(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(ct?y.display.input.onContextMenu(a):kl(y)))}}}function Nu(a,y,x,b,E){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,vs(re,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=le(a,x)!=St}finally{a.state.suppressEdits=!1}return ue})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var re=Ke?x.shiftKey&&x.metaKey:x.altKey;E.unit=re?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=De?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(De?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(je(Il,a),0):a.curOp.focus=nt();var E=Ru(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&zt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(ze((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(ze(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,re=!1,le=oi(a,function(me){Ee&&(E.scroller.draggable=!1),a.state.draggingText=!1,Wt(E.wrapper.ownerDocument,"mouseup",le),Wt(E.wrapper.ownerDocument,"mousemove",ue),Wt(E.scroller,"dragstart",de),Wt(E.scroller,"drop",le),re||(Vt(me),b.addNew||La(a.doc,x,null,null,b.extend),Ee&&!Ge||xe&&Ce==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(me){re=re||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},de=function(){return re=!0};Ee&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),_e(E.wrapper.ownerDocument,"mouseup",le),_e(E.wrapper.ownerDocument,"mousemove",ue),_e(E.scroller,"dragstart",de),_e(E.scroller,"drop",le),kl(a),setTimeout(function(){return E.input.focus()},20)}function ks(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(Se(y.line,0),Pt(a.doc,Se(y.line+1,0)));var b=x(a,y);return new Fr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,re=a.doc;Vt(y);var le,ue,de=re.sel,me=de.ranges;if(b.addNew&&!b.extend?(ue=re.sel.contains(x),ue>-1?le=me[ue]:le=new Fr(x,x)):(le=re.sel.primary(),ue=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=So(a,y,!0,!0),ue=-1;else{var Ze=ks(a,x,b.unit);b.extend?le=sl(le,Ze.anchor,Ze.head,b.extend):le=Ze}b.addNew?ue==-1?(ue=me.length,hi(re,Ui(a,me.concat([le]),ue),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ue].empty()&&b.unit=="char"&&!b.extend?(hi(re,Ui(a,me.slice(0,ue).concat(me.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),de=re.sel):ul(re,ue,le,Ue):(ue=0,hi(re,new Ri([le],0),Ue),de=re.sel);var et=x;function Lt(zn){if(ze(et,zn)!=0)if(et=zn,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=ge(Ct(re,x.line).text,x.ch,sr),wr=ge(Ct(re,zn.line).text,zn.ch,sr),Zr=Math.min(nr,wr),li=Math.max(nr,wr),Ur=Math.min(x.line,zn.line),Ti=Math.min(a.lastLine(),Math.max(x.line,zn.line));Ur<=Ti;Ur++){var Ei=Ct(re,Ur).text,qr=Jt(Ei,Zr,sr);Zr==li?Kn.push(new Fr(Se(Ur,qr),Se(Ur,qr))):Ei.length>qr&&Kn.push(new Fr(Se(Ur,qr),Se(Ur,Jt(Ei,li,sr))))}Kn.length||Kn.push(new Fr(x,x)),hi(re,Ui(a,de.ranges.slice(0,ue).concat(Kn),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(zn)}else{var Ii=le,di=ks(a,zn,b.unit),ii=Ii.anchor,ei;ze(di.anchor,ii)>0?(ei=di.head,ii=hn(Ii.from(),di.anchor)):(ei=di.anchor,ii=Qt(Ii.to(),di.head));var Kr=de.ranges.slice(0);Kr[ue]=Hu(a,new Fr(Pt(re,ii),ei)),hi(re,Ui(a,Kr,ue),Ue)}}var Ot=E.wrapper.getBoundingClientRect(),qt=0;function vn(zn){var Kn=++qt,sr=So(a,zn,!0,b.unit=="rectangle");if(sr)if(ze(sr,et)!=0){a.curOp.focus=nt(),Lt(sr);var nr=Oa(E,re);(sr.line>=nr.to||sr.line<nr.from)&&setTimeout(oi(a,function(){qt==Kn&&vn(zn)}),150)}else{var wr=zn.clientY<Ot.top?-20:zn.clientY>Ot.bottom?20:0;wr&&setTimeout(oi(a,function(){qt==Kn&&(E.scroller.scrollTop+=wr,vn(zn))}),50)}}function Dn(zn){a.state.selectingText=!1,qt=1/0,zn&&(Vt(zn),E.input.focus()),Wt(E.wrapper.ownerDocument,"mousemove",$n),Wt(E.wrapper.ownerDocument,"mouseup",Gn),re.history.lastSelOrigin=null}var $n=oi(a,function(zn){zn.buttons===0||!xt(zn)?Dn(zn):vn(zn)}),Gn=oi(a,Dn);a.state.selectingText=Gn,_e(E.wrapper.ownerDocument,"mousemove",$n),_e(E.wrapper.ownerDocument,"mouseup",Gn)}function Hu(a,y){var x=y.anchor,b=y.head,E=Ct(a.doc,x.line);if(ze(x,b)==0&&x.sticky==b.sticky)return y;var re=at(E);if(!re)return y;var le=wt(re,x.ch,x.sticky),ue=re[le];if(ue.from!=x.ch&&ue.to!=x.ch)return y;var de=le+(ue.from==x.ch==(ue.level!=1)?0:1);if(de==0||de==re.length)return y;var me;if(b.line!=x.line)me=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ze=wt(re,b.ch,b.sticky),et=Ze-le||(b.ch-x.ch)*(ue.level==1?-1:1);Ze==de-1||Ze==de?me=et<0:me=et>0}var Lt=re[de+(me?-1:0)],Ot=me==(Lt.level==1),qt=Ot?Lt.from:Lt.to,vn=Ot?"after":"before";return x.ch==qt&&x.sticky==vn?y:new Fr(new Se(x.line,qt,vn),b)}function Os(a,y,x,b){var E,re;if(y.touches)E=y.touches[0].clientX,re=y.touches[0].clientY;else try{E=y.clientX,re=y.clientY}catch(Lt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&Vt(y);var le=a.display,ue=le.lineDiv.getBoundingClientRect();if(re>ue.bottom||!Me(a,x))return Xt(y);re-=ue.top-le.viewOffset;for(var de=0;de<a.display.gutterSpecs.length;++de){var me=le.gutters.childNodes[de];if(me&&me.getBoundingClientRect().right>=E){var Ze=Qe(a.doc,re),et=a.display.gutterSpecs[de];return _t(a,x,a,Ze,et.className,y),Xt(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function Ps(a,y){ui(a.display,y)||Wu(a,y)||ft(a,y,"contextmenu")||ct||a.display.input.onContextMenu(y)}function Wu(a,y){return Me(a,"gutterContextMenu")?Os(a,y,"gutterContextMenu",!1):!1}function Ms(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Zo={toString:function(){return"CodeMirror.Init"}},Ds={},Ha={};function ju(a){var y=a.optionHandlers;function x(b,E,re,le){a.defaults[b]=E,re&&(y[b]=le?function(ue,de,me){me!=Zo&&re(ue,de,me)}:re)}a.defineOption=x,a.Init=Zo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Si(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var re=[],le=b.doc.first;b.doc.iter(function(de){for(var me=0;;){var Ze=de.text.indexOf(E,me);if(Ze==-1)break;me=Ze+E.length,re.push(Se(le,Ze))}le++});for(var ue=re.length-1;ue>=0;ue--)zo(b.doc,E,re[ue],Se(re[ue].line,re[ue].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,re){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",Oi,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ne?"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",!pt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,E,re){var le=$a(E),ue=re!=Zo&&$a(re);ue&&ue.detach&&ue.detach(b,le),le.attach&&le.attach(b,ue||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Tl(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Lo(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,re=y?_e:Wt;re(a.display.scroller,"dragstart",E.start),re(a.display.scroller,"dragenter",E.enter),re(a.display.scroller,"dragover",E.over),re(a.display.scroller,"dragleave",E.leave),re(a.display.scroller,"drop",E.drop)}}function _u(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ve(a.display.wrapper,"CodeMirror-wrap"),br(a)),Ka(a),Si(a),Co(a),setTimeout(function(){return No(a)},100)}function Vr(a,y){var x=this;if(!(this instanceof Vr))return new Vr(a,y);this.options=y=y?It(y):{},It(Ds,y,!1);var b=y.value;typeof b=="string"?b=new wi(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Vr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,E,y);re.wrapper.CodeMirror=this,Ms(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},y.autofocus&&!Ne&&re.input.focus(),xe&&Ce<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Gu(this),Su(),ko(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!Ne||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Lo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue<vl.length;++ue)vl[ue](this);Oo(this),Ee&&y.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}Vr.defaults=Ds,Vr.optionHandlers=Ha;function Gu(a){var y=a.display;_e(y.scroller,"mousedown",oi(a,Is)),xe&&Ce<11?_e(y.scroller,"dblclick",oi(a,function(de){if(!ft(a,de)){var me=So(a,de);if(!(!me||ml(a,de)||ui(a.display,de))){Vt(de);var Ze=a.findWordAt(me);La(a.doc,Ze.anchor,Ze.head)}}})):_e(y.scroller,"dblclick",function(de){return ft(a,de)||Vt(de)}),_e(y.scroller,"contextmenu",function(de){return Ps(a,de)}),_e(y.input.getField(),"contextmenu",function(de){y.scroller.contains(de.target)||Ps(a,de)});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 re(de){if(de.touches.length!=1)return!1;var me=de.touches[0];return me.radiusX<=1&&me.radiusY<=1}function le(de,me){if(me.left==null)return!0;var Ze=me.left-de.left,et=me.top-de.top;return Ze*Ze+et*et>20*20}_e(y.scroller,"touchstart",function(de){if(!ft(a,de)&&!re(de)&&!ml(a,de)){y.input.ensurePolled(),clearTimeout(x);var me=+new Date;y.activeTouch={start:me,moved:!1,prev:me-b.end<=300?b:null},de.touches.length==1&&(y.activeTouch.left=de.touches[0].pageX,y.activeTouch.top=de.touches[0].pageY)}}),_e(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),_e(y.scroller,"touchend",function(de){var me=y.activeTouch;if(me&&!ui(y,de)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Ze=a.coordsChar(y.activeTouch,"page"),et;!me.prev||le(me,me.prev)?et=new Fr(Ze,Ze):!me.prev.prev||le(me,me.prev.prev)?et=a.findWordAt(Ze):et=new Fr(Se(Ze.line,0),Pt(a.doc,Se(Ze.line+1,0))),a.setSelection(et.anchor,et.head),a.focus(),Vt(de)}E()}),_e(y.scroller,"touchcancel",E),_e(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),_t(a,"scroll",a))}),_e(y.scroller,"mousewheel",function(de){return $l(a,de)}),_e(y.scroller,"DOMMouseScroll",function(de){return $l(a,de)}),_e(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(de){ft(a,de)||Pe(de)},over:function(de){ft(a,de)||(Cu(a,de),Pe(de))},start:function(de){return xu(a,de)},drop:oi(a,bu),leave:function(de){ft(a,de)||fs(a)}};var ue=y.input.getField();_e(ue,"keyup",function(de){return ws.call(a,de)}),_e(ue,"keydown",oi(a,Ss)),_e(ue,"keypress",oi(a,Es)),_e(ue,"focus",function(de){return Ya(a,de)}),_e(ue,"blur",function(de){return Lo(a,de)})}var vl=[];Vr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var E=a.doc,re;x==null&&(x="add"),x=="smart"&&(E.mode.indent?re=Jn(a,y).state:x="prev");var le=a.options.tabSize,ue=Ct(E,y),de=ge(ue.text,null,le);ue.stateAfter&&(ue.stateAfter=null);var me=ue.text.match(/^\s*/)[0],Ze;if(!b&&!/\S/.test(ue.text))Ze=0,x="not";else if(x=="smart"&&(Ze=E.mode.indent(re,ue.text.slice(me.length),ue.text),Ze==St||Ze>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ze=ge(Ct(E,y-1).text,null,le):Ze=0:x=="add"?Ze=de+a.options.indentUnit:x=="subtract"?Ze=de-a.options.indentUnit:typeof x=="number"&&(Ze=de+x),Ze=Math.max(0,Ze);var et="",Lt=0;if(a.options.indentWithTabs)for(var Ot=Math.floor(Ze/le);Ot;--Ot)Lt+=le,et+=" ";if(Lt<Ze&&(et+=Ht(Ze-Lt)),et!=me)return zo(E,et,Se(y,0),Se(y,me.length),"+input"),ue.stateAfter=null,!0;for(var qt=0;qt<E.sel.ranges.length;qt++){var vn=E.sel.ranges[qt];if(vn.head.line==y&&vn.head.ch<me.length){var Dn=Se(y,me.length);ul(E,qt,new Fr(Dn,Dn));break}}}var Ki=null;function Wa(a){Ki=a}function gl(a,y,x,b,E){var re=a.doc;a.display.shift=!1,b||(b=re.sel);var le=+new Date-200,ue=E=="paste"||a.state.pasteIncoming>le,de=ln(y),me=null;if(ue&&b.ranges.length>1)if(Ki&&Ki.text.join(`
`)==y){if(b.ranges.length%Ki.text.length==0){me=[];for(var Ze=0;Ze<Ki.text.length;Ze++)me.push(re.splitLines(Ki.text[Ze]))}}else de.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(me=Rt(de,function($n){return[$n]}));for(var et=a.curOp.updateInput,Lt=b.ranges.length-1;Lt>=0;Lt--){var Ot=b.ranges[Lt],qt=Ot.from(),vn=Ot.to();Ot.empty()&&(x&&x>0?qt=Se(qt.line,qt.ch-x):a.state.overwrite&&!ue?vn=Se(vn.line,Math.min(Ct(re,vn.line).text.length,vn.ch+Fe(de).length)):ue&&Ki&&Ki.lineWise&&Ki.text.join(`
`)==de.join(`
`)&&(qt=vn=Se(qt.line,0)));var Dn={from:qt,to:vn,text:me?me[Lt%me.length]:de,origin:E||(ue?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Dn),Gr(a,"inputRead",a,Dn)}y&&!ue&&Ts(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=et),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Bs(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Bi(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ts(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var re=a.getModeAt(E.head),le=!1;if(re.electricChars){for(var ue=0;ue<re.electricChars.length;ue++)if(y.indexOf(re.electricChars.charAt(ue))>-1){le=ga(a,E.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(Ct(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=ga(a,E.head.line,"smart"));le&&Gr(a,"electricInput",a,E.head.line)}}}function Ls(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,re={anchor:Se(E,0),head:Se(E+1,0)};x.push(re),y.push(a.getRange(re.anchor,re.head))}return{text:y,ranges:x}}function As(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=Ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ye("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?a.style.width="1000px":a.setAttribute("wrap","off"),Je&&(a.style.border="1px solid black"),As(a),y}function Vu(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 re=this.options,le=re[b];re[b]==E&&b!="mode"||(re[b]=E,y.hasOwnProperty(b)&&oi(this,y[b])(this,E,le),_t(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"]($a(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,re=0;re<E.length;++re)if(E[re]==b||E[re].name==b)return E.splice(re,1),!0},addOverlay:yi(function(b,E){var re=b.token?b:a.getMode(this.options,b);if(re.startState)throw new Error("Overlays may not be stateful.");ht(this.state.overlays,{mode:re,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var E=this.state.overlays,re=0;re<E.length;++re){var le=E[re].modeSpec;if(le==b||typeof b=="string"&&le.name==b){E.splice(re,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(b,E,re){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),be(this.doc,b)&&ga(this,b,E,re)}),indentSelection:yi(function(b){for(var E=this.doc.sel.ranges,re=-1,le=0;le<E.length;le++){var ue=E[le];if(ue.empty())ue.head.line>re&&(ga(this,ue.head.line,b,!0),re=ue.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var de=ue.from(),me=ue.to(),Ze=Math.max(re,de.line);re=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var et=Ze;et<re;++et)ga(this,et,b);var Lt=this.doc.sel.ranges;de.ch==0&&E.length==Lt.length&&Lt[le].from().ch>0&&ul(this.doc,le,new Fr(de,Lt[le].to()),ke)}}}),getTokenAt:function(b,E){return Un(this,b,E)},getLineTokens:function(b,E){return Un(this,Se(b),E,!0)},getTokenTypeAt:function(b){b=Pt(this.doc,b);var E=Xn(this,Ct(this.doc,b.line)),re=0,le=(E.length-1)/2,ue=b.ch,de;if(ue==0)de=E[2];else for(;;){var me=re+le>>1;if((me?E[me*2-1]:0)>=ue)le=me;else if(E[me*2+1]<ue)re=me+1;else{de=E[me*2+2];break}}var Ze=de?de.indexOf("overlay "):-1;return Ze<0?de:Ze==0?null:de.slice(0,Ze-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 re=[];if(!x.hasOwnProperty(E))return re;var le=x[E],ue=this.getModeAt(b);if(typeof ue[E]=="string")le[ue[E]]&&re.push(le[ue[E]]);else if(ue[E])for(var de=0;de<ue[E].length;de++){var me=le[ue[E][de]];me&&re.push(me)}else ue.helperType&&le[ue.helperType]?re.push(le[ue.helperType]):le[ue.name]&&re.push(le[ue.name]);for(var Ze=0;Ze<le._global.length;Ze++){var et=le._global[Ze];et.pred(ue,this)&&tt(re,et.val)==-1&&re.push(et.val)}return re},getStateAfter:function(b,E){var re=this.doc;return b=jt(re,b==null?re.first+re.size-1:b),Jn(this,b+1,E).state},cursorCoords:function(b,E){var re,le=this.doc.sel.primary();return b==null?re=le.head:typeof b=="object"?re=Pt(this.doc,b):re=b?le.from():le.to(),Ci(this,re,E||"page")},charCoords:function(b,E){return To(this,Pt(this.doc,b),E||"page")},coordsChar:function(b,E){return b=wa(this,b,E||"page"),ci(this,b.left,b.top)},lineAtHeight:function(b,E){return b=wa(this,{top:b,left:0},E||"page").top,Qe(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,re){var le=!1,ue;if(typeof b=="number"){var de=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>de&&(b=de,le=!0),ue=Ct(this.doc,b)}else ue=b;return Bo(this,ue,{top:0,left:0},E||"page",re||le).top+(le?this.doc.height-rr(ue):0)},defaultTextHeight:function(){return Di(this.display)},defaultCharWidth:function(){return Vi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,re,le,ue){var de=this.display;b=Ci(this,Pt(this.doc,b));var me=b.bottom,Ze=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),de.sizer.appendChild(E),le=="over")me=b.top;else if(le=="above"||le=="near"){var et=Math.max(de.wrapper.clientHeight,this.doc.height),Lt=Math.max(de.sizer.clientWidth,de.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>et)&&b.top>E.offsetHeight?me=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=et&&(me=b.bottom),Ze+E.offsetWidth>Lt&&(Ze=Lt-E.offsetWidth)}E.style.top=me+"px",E.style.left=E.style.right="",ue=="right"?(Ze=de.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Ze=0:ue=="middle"&&(Ze=(de.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ze+"px"),re&&Zs(this,{left:Ze,top:me,right:Ze+E.offsetWidth,bottom:me+E.offsetHeight})},triggerOnKeyDown:yi(Ss),triggerOnKeyPress:yi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:yi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Ts(this,b)}),findPosH:function(b,E,re,le){var ue=1;E<0&&(ue=-1,E=-E);for(var de=Pt(this.doc,b),me=0;me<E&&(de=yl(this.doc,de,ue,re,le),!de.hitSide);++me);return de},moveH:yi(function(b,E){var re=this;this.extendSelectionsBy(function(le){return re.display.shift||re.doc.extend||le.empty()?yl(re.doc,le.head,b,E,re.options.rtlMoveVisually):b<0?le.from():le.to()},Xe)}),deleteH:yi(function(b,E){var re=this.doc.sel,le=this.doc;re.somethingSelected()?le.replaceSelection("",null,"+delete"):jo(this,function(ue){var de=yl(le,ue.head,b,E,!1);return b<0?{from:de,to:ue.head}:{from:ue.head,to:de}})}),findPosV:function(b,E,re,le){var ue=1,de=le;E<0&&(ue=-1,E=-E);for(var me=Pt(this.doc,b),Ze=0;Ze<E;++Ze){var et=Ci(this,me,"div");if(de==null?de=et.left:et.left=de,me=Rs(this,et,ue,re),me.hitSide)break}return me},moveV:yi(function(b,E){var re=this,le=this.doc,ue=[],de=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(Ze){if(de)return b<0?Ze.from():Ze.to();var et=Ci(re,Ze.head,"div");Ze.goalColumn!=null&&(et.left=Ze.goalColumn),ue.push(et.left);var Lt=Rs(re,et,b,E);return E=="page"&&Ze==le.sel.primary()&&Qa(re,To(re,Lt,"div").top-et.top),Lt},Xe),ue.length)for(var me=0;me<le.sel.ranges.length;me++)le.sel.ranges[me].goalColumn=ue[me]}),findWordAt:function(b){var E=this.doc,re=Ct(E,b.line).text,le=b.ch,ue=b.ch;if(re){var de=this.getHelper(b,"wordChars");(b.sticky=="before"||ue==re.length)&&le?--le:++ue;for(var me=re.charAt(le),Ze=se(me,de)?function(et){return se(et,de)}:/\s/.test(me)?function(et){return/\s/.test(et)}:function(et){return!/\s/.test(et)&&!se(et)};le>0&&Ze(re.charAt(le-1));)--le;for(;ue<re.length&&Ze(re.charAt(ue));)++ue}return new Fr(Se(b.line,le),Se(b.line,ue))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?pe(this.display.cursorDiv,"CodeMirror-overwrite"):Ve(this.display.cursorDiv,"CodeMirror-overwrite"),_t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nt()},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-Pi(this)-this.display.barHeight,width:b.scrollWidth-Pi(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:Se(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?_s(this,b):Pl(this,b.from,b.to,b.margin)}),setSize:yi(function(b,E){var re=this,le=function(de){return typeof de=="number"||/^\d+$/.test(String(de))?de+"px":de};b!=null&&(this.display.wrapper.style.width=le(b)),E!=null&&(this.display.wrapper.style.height=le(E)),this.options.lineWrapping&&Ko(this);var ue=this.display.viewFrom;this.doc.iter(ue,this.display.viewTo,function(de){if(de.widgets){for(var me=0;me<de.widgets.length;me++)if(de.widgets[me].noHScroll){fo(re,ue,"widget");break}}++ue}),this.curOp.forceUpdate=!0,_t(this,"refresh",this)}),operation:function(b){return Bi(this,b)},startOperation:function(){return ko(this)},endOperation:function(){return Oo(this)},refresh:yi(function(){var b=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,Co(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Di(this.display))>.5||this.options.lineWrapping)&&Ka(this),_t(this,"refresh",this)}),swapDoc:yi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Gr(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}},Nt(a),a.registerHelper=function(b,E,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=re},a.registerGlobalHelper=function(b,E,re,le){a.registerHelper(b,E,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,E){var re=y,le=x,ue=Ct(a,y.line),de=E&&a.direction=="rtl"?-x:x;function me(){var Gn=y.line+de;return Gn<a.first||Gn>=a.first+a.size?!1:(y=new Se(Gn,y.ch,y.sticky),ue=Ct(a,Gn))}function Ze(Gn){var zn;if(b=="codepoint"){var Kn=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kn)?zn=null:zn=new Se(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(Kn>=55296&&Kn<56320?2:1))),-x)}else E?zn=Ou(a.cm,ue,y,x):zn=dl(ue,y,x);if(zn==null)if(!Gn&&me())y=fl(E,a.cm,ue,y.line,de);else return!1;else y=zn;return!0}if(b=="char"||b=="codepoint")Ze();else if(b=="column")Ze(!0);else if(b=="word"||b=="group")for(var et=null,Lt=b=="group",Ot=a.cm&&a.cm.getHelper(y,"wordChars"),qt=!0;!(x<0&&!Ze(!qt));qt=!1){var vn=ue.text.charAt(y.ch)||`
`,Dn=se(vn,Ot)?"w":Lt&&vn==`
`?"n":!Lt||/\s/.test(vn)?null:"p";if(Lt&&!qt&&!Dn&&(Dn="s"),et&&et!=Dn){x<0&&(x=1,Ze(),y.sticky="after");break}if(Dn&&(et=Dn),x>0&&!Ze(!qt))break}var $n=Na(a,y,re,le,!0);return bt(re,$n)&&($n.hitSide=!0),$n}function Rs(a,y,x,b){var E=a.doc,re=y.left,le;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),de=Math.max(ue-.5*Di(a.display),3);le=(x>0?y.bottom:y.top)+x*de}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var me;me=ci(a,re,le),!!me.outside;){if(x<0?le<=0:le>=E.height){me.hitSide=!0;break}le+=x*5}return me}var Hr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Hr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;As(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ue){for(var de=ue.target;de;de=de.parentNode){if(de==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(de.className))break}return!1}_e(E,"paste",function(ue){!re(ue)||ft(b,ue)||Bs(ue,b)||Ce<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),_e(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),_e(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),_e(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),_e(E,"touchstart",function(){return x.forceCompositionEnd()}),_e(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ue){if(!(!re(ue)||ft(b,ue))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var de=Ls(b);Wa({lineWise:!0,text:de.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(de.ranges,0,ke),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var me=Ki.text.join(`
`);if(ue.clipboardData.setData("Text",me),ue.clipboardData.getData("Text")==me){ue.preventDefault();return}}var Ze=Ns(),et=Ze.firstChild;b.display.lineSpace.insertBefore(Ze,b.display.lineSpace.firstChild),et.value=Ki.text.join(`
`);var Lt=document.activeElement;Le(et),setTimeout(function(){b.display.lineSpace.removeChild(Ze),Lt.focus(),Lt==E&&x.showPrimarySelection()},50)}}_e(E,"copy",le),_e(E,"cut",le)},Hr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Hr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Hr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Hr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Hr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var re=ja(y,a.anchorNode,a.anchorOffset),le=ja(y,a.focusNode,a.focusOffset);if(!(re&&!re.bad&&le&&!le.bad&&ze(hn(re,le),b)==0&&ze(Qt(re,le),E)==0)){var ue=y.display.view,de=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ue[0].measure.map[2],offset:0},me=E.line<y.display.viewTo&&Fs(y,E);if(!me){var Ze=ue[ue.length-1].measure,et=Ze.maps?Ze.maps[Ze.maps.length-1]:Ze.map;me={node:et[et.length-1],offset:et[et.length-2]-et[et.length-3]}}if(!de||!me){a.removeAllRanges();return}var Lt=a.rangeCount&&a.getRangeAt(0),Ot;try{Ot=Re(de.node,de.offset,me.offset,me.node)}catch(qt){}Ot&&(!z&&y.state.focused?(a.collapse(de.node,de.offset),Ot.collapsed||(a.removeAllRanges(),a.addRange(Ot))):(a.removeAllRanges(),a.addRange(Ot)),Lt&&a.anchorNode==null?a.addRange(Lt):z&&this.startGracePeriod()),this.rememberSelection()}},Hr.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)},Hr.prototype.showMultipleSelections=function(a){dt(this.cm.display.cursorDiv,a.cursors),dt(this.cm.display.selectionDiv,a.selection)},Hr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Hr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return rt(this.div,y)},Hr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Hr.prototype.blur=function(){this.div.blur()},Hr.prototype.getField=function(){return this.div},Hr.prototype.supportsTouch=function(){return!0},Hr.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Bi(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)},Hr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Hr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Te&&Oe&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=ja(y,a.anchorNode,a.anchorOffset),b=ja(y,a.focusNode,a.focusOffset);x&&b&&Bi(y,function(){hi(y.doc,po(x,b),ke),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Hr.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=Se(b.line-1,Ct(a.doc,b.line-1).length)),E.ch==Ct(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=Se(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var re,le,ue;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=Ae(y.view[0].line),ue=y.view[0].node):(le=Ae(y.view[re].line),ue=y.view[re-1].node.nextSibling);var de=wo(a,E.line),me,Ze;if(de==y.view.length-1?(me=y.viewTo-1,Ze=y.lineDiv.lastChild):(me=Ae(y.view[de+1].line)-1,Ze=y.view[de+1].node.previousSibling),!ue)return!1;for(var et=a.doc.splitLines(Ku(a,ue,Ze,le,me)),Lt=Gt(a.doc,Se(le,0),Se(me,Ct(a.doc,me).text.length));et.length>1&&Lt.length>1;)if(Fe(et)==Fe(Lt))et.pop(),Lt.pop(),me--;else if(et[0]==Lt[0])et.shift(),Lt.shift(),le++;else break;for(var Ot=0,qt=0,vn=et[0],Dn=Lt[0],$n=Math.min(vn.length,Dn.length);Ot<$n&&vn.charCodeAt(Ot)==Dn.charCodeAt(Ot);)++Ot;for(var Gn=Fe(et),zn=Fe(Lt),Kn=Math.min(Gn.length-(et.length==1?Ot:0),zn.length-(Lt.length==1?Ot:0));qt<Kn&&Gn.charCodeAt(Gn.length-qt-1)==zn.charCodeAt(zn.length-qt-1);)++qt;if(et.length==1&&Lt.length==1&&le==b.line)for(;Ot&&Ot>b.ch&&Gn.charCodeAt(Gn.length-qt-1)==zn.charCodeAt(zn.length-qt-1);)Ot--,qt++;et[et.length-1]=Gn.slice(0,Gn.length-qt).replace(/^\u200b+/,""),et[0]=et[0].slice(Ot).replace(/\u200b+$/,"");var sr=Se(le,Ot),nr=Se(me,Lt.length?Fe(Lt).length-qt:0);if(et.length>1||et[0]||ze(sr,nr))return zo(a.doc,et,sr,nr,"+input"),!0},Hr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Hr.prototype.reset=function(){this.forceCompositionEnd()},Hr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Hr.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Hr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Bi(this.cm,function(){return Si(a.cm)})},Hr.prototype.setUneditable=function(a){a.contentEditable="false"},Hr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||oi(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Hr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Hr.prototype.onContextMenu=function(){},Hr.prototype.resetPosition=function(){},Hr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=Ct(a.doc,y.line),E=Do(x,b,y.line),re=at(b,a.doc.direction),le="left";if(re){var ue=wt(re,y.ch);le=ue%2?"right":"left"}var de=xa(E.map,y.ch,le);return de.offset=de.collapse=="right"?de.end:de.start,de}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var re="",le=!1,ue=a.doc.lineSeparator(),de=!1;function me(Ot){return function(qt){return qt.id==Ot}}function Ze(){le&&(re+=ue,de&&(re+=ue),le=de=!1)}function et(Ot){Ot&&(Ze(),re+=Ot)}function Lt(Ot){if(Ot.nodeType==1){var qt=Ot.getAttribute("cm-text");if(qt){et(qt);return}var vn=Ot.getAttribute("cm-marker"),Dn;if(vn){var $n=a.findMarks(Se(b,0),Se(E+1,0),me(+vn));$n.length&&(Dn=$n[0].find(0))&&et(Gt(a.doc,Dn.from,Dn.to).join(ue));return}if(Ot.getAttribute("contenteditable")=="false")return;var Gn=/^(pre|div|p|li|table|br)$/i.test(Ot.nodeName);if(!/^br$/i.test(Ot.nodeName)&&Ot.textContent.length==0)return;Gn&&Ze();for(var zn=0;zn<Ot.childNodes.length;zn++)Lt(Ot.childNodes[zn]);/^(pre|p)$/i.test(Ot.nodeName)&&(de=!0),Gn&&(le=!0)}else Ot.nodeType==3&&et(Ot.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Lt(y),y!=x;)y=y.nextSibling,de=!1;return re}function ja(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return _o(a.clipPos(Se(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 re=a.display.view[E];if(re.node==b)return Xu(re,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!rt(b,y))return _o(Se(Ae(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var re=a.rest?Fe(a.rest):a.line;return _o(Se(Ae(re),re.text.length),E)}var le=y.nodeType==3?y:null,ue=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ue.parentNode!=b;)ue=ue.parentNode;var de=a.measure,me=de.maps;function Ze(Dn,$n,Gn){for(var zn=-1;zn<(me?me.length:0);zn++)for(var Kn=zn<0?de.map:me[zn],sr=0;sr<Kn.length;sr+=3){var nr=Kn[sr+2];if(nr==Dn||nr==$n){var wr=Ae(zn<0?a.line:a.rest[zn]),Zr=Kn[sr]+Gn;return(Gn<0||nr!=Dn)&&(Zr=Kn[sr+(Gn?1:0)]),Se(wr,Zr)}}}var et=Ze(le,ue,x);if(et)return _o(et,E);for(var Lt=ue.nextSibling,Ot=le?le.nodeValue.length-x:0;Lt;Lt=Lt.nextSibling){if(et=Ze(Lt,Lt.firstChild,0),et)return _o(Se(et.line,et.ch-Ot),E);Ot+=Lt.textContent.length}for(var qt=ue.previousSibling,vn=x;qt;qt=qt.previousSibling){if(et=Ze(qt,qt.firstChild,-1),et)return _o(Se(et.line,et.ch+vn),E);vn+=qt.textContent.length}}var Jr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};Jr.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),Je&&(E.style.width="0px"),_e(E,"input",function(){xe&&Ce>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),_e(E,"paste",function(le){ft(b,le)||Bs(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!ft(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=Ls(b);Wa({lineWise:!0,text:ue.text}),le.type=="cut"?b.setSelections(ue.ranges,null,ke):(x.prevInput="",E.value=ue.text.join(`
`),Le(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}_e(E,"cut",re),_e(E,"copy",re),_e(a.scroller,"paste",function(le){if(!(ui(a,le)||ft(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ue=new Event("paste");ue.clipboardData=le.clipboardData,E.dispatchEvent(ue)}}),_e(a.lineSpace,"selectstart",function(le){ui(a,le)||Vt(le)}),_e(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),_e(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Jr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Jr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Jr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=Ci(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-re.left))}return b},Jr.prototype.showSelection=function(a){var y=this.cm,x=y.display;dt(x.cursorDiv,a.cursors),dt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Jr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Le(this.textarea),xe&&Ce>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&Ce>=9&&(this.hasSelection=null))}},Jr.prototype.getField=function(){return this.textarea},Jr.prototype.supportsTouch=function(){return!1},Jr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||nt()!=this.textarea))try{this.textarea.focus()}catch(a){}},Jr.prototype.blur=function(){this.textarea.blur()},Jr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Jr.prototype.receivedFocus=function(){this.slowPoll()},Jr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Jr.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Jr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||an(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(xe&&Ce>=9&&this.hasSelection===E||De&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=E.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ue=Math.min(b.length,E.length);le<ue&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return Bi(y,function(){gl(y,E.slice(le),b.length-le,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},Jr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Jr.prototype.onKeyPress=function(){xe&&Ce>=9&&(this.hasSelection=null),this.fastPoll()},Jr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=So(x,a),le=b.scroller.scrollTop;if(!re||fe)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(re)==-1&&oi(x,hi)(x.doc,po(re),ke);var de=E.style.cssText,me=y.wrapper.style.cssText,Ze=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ze.top-5)+"px; left: "+(a.clientX-Ze.left-5)+`px;
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var et;Ee&&(et=window.scrollY),b.input.focus(),Ee&&window.scrollTo(null,et),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ot,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Lt(){if(E.selectionStart!=null){var vn=x.somethingSelected(),Dn="\u200B"+(vn?E.value:"");E.value="\u21DA",E.value=Dn,y.prevInput=vn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Dn.length,b.selForContextMenu=x.doc.sel}}function Ot(){if(y.contextMenuPending==Ot&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,E.style.cssText=de,xe&&Ce<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Ce<9)&&Lt();var vn=0,Dn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):vn++<10?b.detectingSelectAll=setTimeout(Dn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Dn,200)}}if(xe&&Ce>=9&&Lt(),ct){Pe(a);var qt=function(){Wt(window,"mouseup",qt),setTimeout(Ot,20)};_e(window,"mouseup",qt)}else setTimeout(Ot,50)},Jr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Jr.prototype.setUneditable=function(){},Jr.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?It(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=nt();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(_e(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;E=re.submit;try{var le=re.submit=function(){b(),re.submit=E,re.submit(),re.submit=le}}catch(de){}}y.finishInit=function(de){de.save=b,de.getTextArea=function(){return a},de.toTextArea=function(){de.toTextArea=isNaN,b(),a.parentNode.removeChild(de.getWrapperElement()),a.style.display="",a.form&&(Wt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=Vr(function(de){return a.parentNode.insertBefore(de,a.nextSibling)},y);return ue}function Ju(a){a.off=Wt,a.on=_e,a.wheelEventPixels=iu,a.Doc=wi,a.splitLines=ln,a.countColumn=ge,a.findColumn=Jt,a.isWordChar=oe,a.Pass=St,a.signal=_t,a.Line=Mr,a.changeEnd=mo,a.scrollbarModel=Bl,a.Pos=Se,a.cmpPos=ze,a.modes=yn,a.mimeModes=Zt,a.resolveMode=Bn,a.getMode=Zn,a.modeExtensions=Pn,a.extendMode=On,a.copyState=Nn,a.startState=mn,a.innerMode=Cn,a.commands=ha,a.keyMap=io,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=ku,a.StringStream=gn,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=Vt,a.e_stopPropagation=xn,a.e_stop=Pe,a.addClass=pe,a.contains=rt,a.rmClass=Ve,a.keyNames=yo}ju(Vr),Vu(Vr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in wi.prototype)wi.prototype.hasOwnProperty(Za)&&tt(Qu,Za)<0&&(Vr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(wi.prototype[Za]));return Nt(wi),Vr.inputStyles={textarea:Jr,contenteditable:Hr},Vr.defineMode=function(a){!Vr.defaults.mode&&a!="null"&&(Vr.defaults.mode=a),bn.apply(this,arguments)},Vr.defineMIME=fn,Vr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Vr.defineMIME("text/plain","null"),Vr.defineExtension=function(a,y){Vr.prototype[a]=y},Vr.defineDocExtension=function(a,y){wi.prototype[a]=y},Vr.fromTextArea=Yu,Ju(Vr),Vr.version="5.58.2",Vr})},25419:function(Ut,Ft,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(qe,ve){var He=z.getMode(qe,"text/html"),xe=He.name=="null";function Ce(ge){if(z.findModeByName){var ce=z.findModeByName(ge);ce&&(ge=ce.mime||ce.mimes[0])}var tt=z.getMode(qe,ge);return tt.name=="null"?null:tt}ve.highlightFormatting===void 0&&(ve.highlightFormatting=!1),ve.maxBlockquoteDepth===void 0&&(ve.maxBlockquoteDepth=0),ve.taskLists===void 0&&(ve.taskLists=!1),ve.strikethrough===void 0&&(ve.strikethrough=!1),ve.emoji===void 0&&(ve.emoji=!1),ve.fencedCodeBlockHighlighting===void 0&&(ve.fencedCodeBlockHighlighting=!0),ve.fencedCodeBlockDefaultMode===void 0&&(ve.fencedCodeBlockDefaultMode="text/plain"),ve.xml===void 0&&(ve.xml=!0),ve.tokenTypeOverrides===void 0&&(ve.tokenTypeOverrides={});var Ee={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Be in Ee)Ee.hasOwnProperty(Be)&&ve.tokenTypeOverrides[Be]&&(Ee[Be]=ve.tokenTypeOverrides[Be]);var Oe=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ge=/^\[(x| )\](?=\s)/i,Ie=ve.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,yt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Je=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ne=/^\s*\[[^\]]+?\]:.*$/,De=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ke=" ";function pt(ge,ce,tt){return ce.f=ce.inline=tt,tt(ge,ce)}function Et(ge,ce,tt){return ce.f=ce.block=tt,tt(ge,ce)}function gt(ge){return!ge||!/\S/.test(ge.string)}function ct(ge){if(ge.linkTitle=!1,ge.linkHref=!1,ge.linkText=!1,ge.em=!1,ge.strong=!1,ge.strikethrough=!1,ge.quote=0,ge.indentedCode=!1,ge.f==Ve){var ce=xe;if(!ce){var tt=z.innerMode(He,ge.htmlState);ce=tt.mode.name=="xml"&&tt.state.tagStart===null&&!tt.state.context&&tt.state.tokenize.isInText}ce&&(ge.f=vt,ge.block=st,ge.htmlState=null)}return ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,ge.prevLine=ge.thisLine,ge.thisLine={stream:null},null}function st(ge,ce){var tt=ge.column()===ce.indentation,At=gt(ce.prevLine.stream),St=ce.indentedCode,ke=ce.prevLine.hr,Ue=ce.list!==!1,Xe=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Jt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,Ue)){for(ce.list=null;Jt<ce.listStack[ce.listStack.length-1];)ce.listStack.pop(),ce.listStack.length?ce.indentation=ce.listStack[ce.listStack.length-1]:ce.list=!1;ce.list!==!1&&(ce.indentationDiff=Jt-ce.listStack[ce.listStack.length-1])}var Bt=!At&&!ke&&!ce.prevLine.header&&(!Ue||!St)&&!ce.prevLine.fencedCodeEnd,Ht=(ce.list===!1||ke||At)&&ce.indentation<=Xe&&ge.match(Oe),Fe=null;if(ce.indentationDiff>=4&&(St||ce.prevLine.fencedCodeEnd||ce.prevLine.header||At))return ge.skipToEnd(),ce.indentedCode=!0,Ee.code;if(ge.eatSpace())return null;if(tt&&ce.indentation<=Xe&&(Fe=ge.match(Ie))&&Fe[1].length<=6)return ce.quote=0,ce.header=Fe[1].length,ce.thisLine.header=!0,ve.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,dt(ce);if(ce.indentation<=Xe&&ge.eat(">"))return ce.quote=tt?1:ce.quote+1,ve.highlightFormatting&&(ce.formatting="quote"),ge.eatSpace(),dt(ce);if(!Ht&&!ce.setext&&tt&&ce.indentation<=Xe&&(Fe=ge.match(fe))){var Rt=Fe[1]?"ol":"ul";return ce.indentation=Jt+ge.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,ve.taskLists&&ge.match(Ge,!1)&&(ce.taskList=!0),ce.f=ce.inline,ve.highlightFormatting&&(ce.formatting=["list","list-"+Rt]),dt(ce)}else{if(tt&&ce.indentation<=Xe&&(Fe=ge.match(Te,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Fe[1]+"+ *$"),ce.localMode=ve.fencedCodeBlockHighlighting&&Ce(Fe[2]||ve.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=z.startState(ce.localMode)),ce.f=ce.block=Dt,ve.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,dt(ce);if(ce.setext||(!Bt||!Ue)&&!ce.quote&&ce.list===!1&&!ce.code&&!Ht&&!Ne.test(ge.string)&&(Fe=ge.lookAhead(1))&&(Fe=Fe.match(yt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ge.skipToEnd(),ve.highlightFormatting&&(ce.formatting="header")):(ce.header=Fe[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,dt(ce);if(Ht)return ge.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Ee.hr;if(ge.peek()==="[")return pt(ge,ce,Tt)}return pt(ge,ce,ce.inline)}function Ve(ge,ce){var tt=He.token(ge,ce.htmlState);if(!xe){var At=z.innerMode(He,ce.htmlState);(At.mode.name=="xml"&&At.state.tagStart===null&&!At.state.context&&At.state.tokenize.isInText||ce.md_inside&&ge.current().indexOf(">")>-1)&&(ce.f=vt,ce.block=st,ce.htmlState=null)}return tt}function Dt(ge,ce){var tt=ce.listStack[ce.listStack.length-1]||0,At=ce.indentation<tt,St=tt+3;if(ce.fencedEndRE&&ce.indentation<=St&&(At||ge.match(ce.fencedEndRE))){ve.highlightFormatting&&(ce.formatting="code-block");var ke;return At||(ke=dt(ce)),ce.localMode=ce.localState=null,ce.block=st,ce.f=vt,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,At?Et(ge,ce,ce.block):ke}else return ce.localMode?ce.localMode.token(ge,ce.localState):(ge.skipToEnd(),Ee.code)}function dt(ge){var ce=[];if(ge.formatting){ce.push(Ee.formatting),typeof ge.formatting=="string"&&(ge.formatting=[ge.formatting]);for(var tt=0;tt<ge.formatting.length;tt++)ce.push(Ee.formatting+"-"+ge.formatting[tt]),ge.formatting[tt]==="header"&&ce.push(Ee.formatting+"-"+ge.formatting[tt]+"-"+ge.header),ge.formatting[tt]==="quote"&&(!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=ge.quote?ce.push(Ee.formatting+"-"+ge.formatting[tt]+"-"+ge.quote):ce.push("error"))}if(ge.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(ge.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(ge.linkHref?ce.push(Ee.linkHref,"url"):(ge.strong&&ce.push(Ee.strong),ge.em&&ce.push(Ee.em),ge.strikethrough&&ce.push(Ee.strikethrough),ge.emoji&&ce.push(Ee.emoji),ge.linkText&&ce.push(Ee.linkText),ge.code&&ce.push(Ee.code),ge.image&&ce.push(Ee.image),ge.imageAltText&&ce.push(Ee.imageAltText,"link"),ge.imageMarker&&ce.push(Ee.imageMarker)),ge.header&&ce.push(Ee.header,Ee.header+"-"+ge.header),ge.quote&&(ce.push(Ee.quote),!ve.maxBlockquoteDepth||ve.maxBlockquoteDepth>=ge.quote?ce.push(Ee.quote+"-"+ge.quote):ce.push(Ee.quote+"-"+ve.maxBlockquoteDepth)),ge.list!==!1){var At=(ge.listStack.length-1)%3;At?At===1?ce.push(Ee.list2):ce.push(Ee.list3):ce.push(Ee.list1)}return ge.trailingSpaceNewLine?ce.push("trailing-space-new-line"):ge.trailingSpace&&ce.push("trailing-space-"+(ge.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function Ye(ge,ce){if(ge.match(Je,!0))return dt(ce)}function vt(ge,ce){var tt=ce.text(ge,ce);if(typeof tt!="undefined")return tt;if(ce.list)return ce.list=null,dt(ce);if(ce.taskList){var At=ge.match(Ge,!0)[1]===" ";return At?ce.taskOpen=!0:ce.taskClosed=!0,ve.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,dt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ge.match(/^#+$/,!0))return ve.highlightFormatting&&(ce.formatting="header"),dt(ce);var St=ge.next();if(ce.linkTitle){ce.linkTitle=!1;var ke=St;St==="("&&(ke=")"),ke=(ke+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+ke+"\\\\]+|\\\\\\\\|\\\\.)"+ke;if(ge.match(new RegExp(Ue),!0))return Ee.linkHref}if(St==="`"){var Xe=ce.formatting;ve.highlightFormatting&&(ce.formatting="code"),ge.eatWhile("`");var Jt=ge.current().length;if(ce.code==0&&(!ce.quote||Jt==1))return ce.code=Jt,dt(ce);if(Jt==ce.code){var Bt=dt(ce);return ce.code=0,Bt}else return ce.formatting=Xe,dt(ce)}else if(ce.code)return dt(ce);if(St==="\\"&&(ge.next(),ve.highlightFormatting)){var Ht=dt(ce),Fe=Ee.formatting+"-escape";return Ht?Ht+" "+Fe:Fe}if(St==="!"&&ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ve.highlightFormatting&&(ce.formatting="image"),dt(ce);if(St==="["&&ce.imageMarker&&ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ve.highlightFormatting&&(ce.formatting="image"),dt(ce);if(St==="]"&&ce.imageAltText){ve.highlightFormatting&&(ce.formatting="image");var Ht=dt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=rt,Ht}if(St==="["&&!ce.image)return ce.linkText&&ge.match(/^.*?\]/)||(ce.linkText=!0,ve.highlightFormatting&&(ce.formatting="link")),dt(ce);if(St==="]"&&ce.linkText){ve.highlightFormatting&&(ce.formatting="link");var Ht=dt(ce);return ce.linkText=!1,ce.inline=ce.f=ge.match(/\(.*?\)| ?\[.*?\]/,!1)?rt:vt,Ht}if(St==="<"&&ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Re,ve.highlightFormatting&&(ce.formatting="link");var Ht=dt(ce);return Ht?Ht+=" ":Ht="",Ht+Ee.linkInline}if(St==="<"&&ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Re,ve.highlightFormatting&&(ce.formatting="link");var Ht=dt(ce);return Ht?Ht+=" ":Ht="",Ht+Ee.linkEmail}if(ve.xml&&St==="<"&&ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Rt=ge.string.indexOf(">",ge.pos);if(Rt!=-1){var ht=ge.string.substring(ge.start,Rt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ht)&&(ce.md_inside=!0)}return ge.backUp(1),ce.htmlState=z.startState(He),Et(ge,ce,Ve)}if(ve.xml&&St==="<"&&ge.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(St==="*"||St==="_"){for(var ae=1,te=ge.pos==1?" ":ge.string.charAt(ge.pos-2);ae<3&&ge.eat(St);)ae++;var ee=ge.peek()||" ",oe=!/\s/.test(ee)&&(!De.test(ee)||/\s/.test(te)||De.test(te)),se=!/\s/.test(te)&&(!De.test(te)||/\s/.test(ee)||De.test(ee)),ne=null,he=null;if(ae%2&&(!ce.em&&oe&&(St==="*"||!se||De.test(te))?ne=!0:ce.em==St&&se&&(St==="*"||!oe||De.test(ee))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(St==="*"||!se||De.test(te))?he=!0:ce.strong==St&&se&&(St==="*"||!oe||De.test(ee))&&(he=!1)),he!=null||ne!=null){ve.highlightFormatting&&(ce.formatting=ne==null?"strong":he==null?"em":"strong em"),ne===!0&&(ce.em=St),he===!0&&(ce.strong=St);var Bt=dt(ce);return ne===!1&&(ce.em=!1),he===!1&&(ce.strong=!1),Bt}}else if(St===" "&&(ge.eat("*")||ge.eat("_"))){if(ge.peek()===" ")return dt(ce);ge.backUp(1)}if(ve.strikethrough){if(St==="~"&&ge.eatWhile(St)){if(ce.strikethrough){ve.highlightFormatting&&(ce.formatting="strikethrough");var Bt=dt(ce);return ce.strikethrough=!1,Bt}else if(ge.match(/^[^\s]/,!1))return ce.strikethrough=!0,ve.highlightFormatting&&(ce.formatting="strikethrough"),dt(ce)}else if(St===" "&&ge.match(/^~~/,!0)){if(ge.peek()===" ")return dt(ce);ge.backUp(2)}}if(ve.emoji&&St===":"&&ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ve.highlightFormatting&&(ce.formatting="emoji");var ye=dt(ce);return ce.emoji=!1,ye}return St===" "&&(ge.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),dt(ce)}function Re(ge,ce){var tt=ge.next();if(tt===">"){ce.f=ce.inline=vt,ve.highlightFormatting&&(ce.formatting="link");var At=dt(ce);return At?At+=" ":At="",At+Ee.linkInline}return ge.match(/^[^>]+/,!0),Ee.linkInline}function rt(ge,ce){if(ge.eatSpace())return null;var tt=ge.next();return tt==="("||tt==="["?(ce.f=ce.inline=pe(tt==="("?")":"]"),ve.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,dt(ce)):"error"}var nt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(ge){return function(ce,tt){var At=ce.next();if(At===ge){tt.f=tt.inline=vt,ve.highlightFormatting&&(tt.formatting="link-string");var St=dt(tt);return tt.linkHref=!1,St}return ce.match(nt[ge]),tt.linkHref=!0,dt(tt)}}function Tt(ge,ce){return ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Le,ge.next(),ve.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,dt(ce)):pt(ge,ce,vt)}function Le(ge,ce){if(ge.match(/^\]:/,!0)){ce.f=ce.inline=je,ve.highlightFormatting&&(ce.formatting="link");var tt=dt(ce);return ce.linkText=!1,tt}return ge.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function je(ge,ce){return ge.eatSpace()?null:(ge.match(/^[^\s]+/,!0),ge.peek()===void 0?ce.linkTitle=!0:ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=vt,Ee.linkHref+" url")}var It={startState:function(){return{f:st,prevLine:{stream:null},thisLine:{stream:null},block:st,htmlState:null,indentation:0,inline:vt,text:Ye,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(ge){return{f:ge.f,prevLine:ge.prevLine,thisLine:ge.thisLine,block:ge.block,htmlState:ge.htmlState&&z.copyState(He,ge.htmlState),indentation:ge.indentation,localMode:ge.localMode,localState:ge.localMode?z.copyState(ge.localMode,ge.localState):null,inline:ge.inline,text:ge.text,formatting:!1,linkText:ge.linkText,linkTitle:ge.linkTitle,linkHref:ge.linkHref,code:ge.code,em:ge.em,strong:ge.strong,strikethrough:ge.strikethrough,emoji:ge.emoji,header:ge.header,setext:ge.setext,hr:ge.hr,taskList:ge.taskList,list:ge.list,listStack:ge.listStack.slice(0),quote:ge.quote,indentedCode:ge.indentedCode,trailingSpace:ge.trailingSpace,trailingSpaceNewLine:ge.trailingSpaceNewLine,md_inside:ge.md_inside,fencedEndRE:ge.fencedEndRE}},token:function(ge,ce){if(ce.formatting=!1,ge!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,ge.match(/^\s*$/,!0))return ct(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:ge},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Ve)){var tt=ge.match(/^\s*/,!0)[0].replace(/\t/g,Ke).length;if(ce.indentation=tt,ce.indentationDiff=null,tt>0)return null}}return ce.f(ge,ce)},innerMode:function(ge){return ge.block==Ve?{state:ge.htmlState,mode:He}:ge.localState?{state:ge.localState,mode:ge.localMode}:{state:ge,mode:It}},indent:function(ge,ce,tt){return ge.block==Ve&&He.indent?He.indent(ge.htmlState,ce,tt):ge.localState&&ge.localMode.indent?ge.localMode.indent(ge.localState,ce,tt):z.Pass},blankLine:ct,getType:dt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return It},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(Ut,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var qe=0;qe<z.modeInfo.length;qe++){var ve=z.modeInfo[qe];ve.mimes&&(ve.mime=ve.mimes[0])}z.findModeByMIME=function(He){He=He.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Ce=z.modeInfo[xe];if(Ce.mime==He)return Ce;if(Ce.mimes){for(var Ee=0;Ee<Ce.mimes.length;Ee++)if(Ce.mimes[Ee]==He)return Ce}}if(/\+xml$/.test(He))return z.findModeByMIME("application/xml");if(/\+json$/.test(He))return z.findModeByMIME("application/json")},z.findModeByExtension=function(He){He=He.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Ce=z.modeInfo[xe];if(Ce.ext){for(var Ee=0;Ee<Ce.ext.length;Ee++)if(Ce.ext[Ee]==He)return Ce}}},z.findModeByFileName=function(He){for(var xe=0;xe<z.modeInfo.length;xe++){var Ce=z.modeInfo[xe];if(Ce.file&&Ce.file.test(He))return Ce}var Ee=He.lastIndexOf("."),Be=Ee>-1&&He.substring(Ee+1,He.length);if(Be)return z.findModeByExtension(Be)},z.findModeByName=function(He){He=He.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Ce=z.modeInfo[xe];if(Ce.name.toLowerCase()==He)return Ce;if(Ce.alias){for(var Ee=0;Ee<Ce.alias.length;Ee++)if(Ce.alias[Ee].toLowerCase()==He)return Ce}}}})},67549:function(Ut,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(qe,ve){"use strict";function He(Je,Te){Je.cmdState.push(Te)}function xe(Je){return Je.cmdState.length>0?Je.cmdState[Je.cmdState.length-1]:null}function Ce(Je){var Te=Je.cmdState.pop();Te&&Te.closeBracket()}function Ee(Je){for(var Te=Je.cmdState,Ne=Te.length-1;Ne>=0;Ne--){var De=Te[Ne];if(De.name!="DEFAULT")return De}return{styleIdentifier:function(){return null}}}function Be(Je,Te,Ne){return function(){this.name=Je,this.bracketNo=0,this.style=Te,this.styles=Ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Oe={};Oe.importmodule=Be("importmodule","tag",["string","builtin"]),Oe.documentclass=Be("documentclass","tag",["","atom"]),Oe.usepackage=Be("usepackage","tag",["atom"]),Oe.begin=Be("begin","tag",["atom"]),Oe.end=Be("end","tag",["atom"]),Oe.label=Be("label","tag",["atom"]),Oe.ref=Be("ref","tag",["atom"]),Oe.eqref=Be("eqref","tag",["atom"]),Oe.cite=Be("cite","tag",["atom"]),Oe.bibitem=Be("bibitem","tag",["atom"]),Oe.Bibitem=Be("Bibitem","tag",["atom"]),Oe.RBibitem=Be("RBibitem","tag",["atom"]),Oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(Je,Te){Je.f=Te}function Ge(Je,Te){var Ne;if(Je.match(/^\\[a-zA-Z@]+/)){var De=Je.current().slice(1);return Ne=Oe.hasOwnProperty(De)?Oe[De]:Oe.DEFAULT,Ne=new Ne,He(Te,Ne),fe(Te,yt),Ne.style}if(Je.match(/^\\[$&%#{}_]/)||Je.match(/^\\[,;!\/\\]/))return"tag";if(Je.match("\\["))return fe(Te,function(pt,Et){return Ie(pt,Et,"\\]")}),"keyword";if(Je.match("\\("))return fe(Te,function(pt,Et){return Ie(pt,Et,"\\)")}),"keyword";if(Je.match("$$"))return fe(Te,function(pt,Et){return Ie(pt,Et,"$$")}),"keyword";if(Je.match("$"))return fe(Te,function(pt,Et){return Ie(pt,Et,"$")}),"keyword";var Ke=Je.next();if(Ke=="%")return Je.skipToEnd(),"comment";if(Ke=="}"||Ke=="]"){if(Ne=xe(Te),Ne)Ne.closeBracket(Ke),fe(Te,yt);else return"error";return"bracket"}else return Ke=="{"||Ke=="["?(Ne=Oe.DEFAULT,Ne=new Ne,He(Te,Ne),"bracket"):/\d/.test(Ke)?(Je.eatWhile(/[\w.%]/),"atom"):(Je.eatWhile(/[\w\-_]/),Ne=Ee(Te),Ne.name=="begin"&&(Ne.argument=Je.current()),Ne.styleIdentifier())}function Ie(Je,Te,Ne){if(Je.eatSpace())return null;if(Ne&&Je.match(Ne))return fe(Te,Ge),"keyword";if(Je.match(/^\\[a-zA-Z@]+/))return"tag";if(Je.match(/^[a-zA-Z]+/))return"variable-2";if(Je.match(/^\\[$&%#{}_]/)||Je.match(/^\\[,;!\/]/)||Je.match(/^[\^_&]/))return"tag";if(Je.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Je.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var De=Je.next();return De=="{"||De=="}"||De=="["||De=="]"||De=="("||De==")"?"bracket":De=="%"?(Je.skipToEnd(),"comment"):"error"}function yt(Je,Te){var Ne=Je.peek(),De;return Ne=="{"||Ne=="["?(De=xe(Te),De.openBracket(Ne),Je.eat(Ne),fe(Te,Ge),"bracket"):/[ \t\r]/.test(Ne)?(Je.eat(Ne),null):(fe(Te,Ge),Ce(Te),Ge(Je,Te))}return{startState:function(){var Je=ve.inMathMode?function(Te,Ne){return Ie(Te,Ne)}:Ge;return{cmdState:[],f:Je}},copyState:function(Je){return{cmdState:Je.cmdState.slice(),f:Je.f}},token:function(Je,Te){return Te.f(Je,Te)},blankLine:function(Je){Je.f=Ge,Je.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(Ut,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";var qe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ve={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(He,xe){var Ce=He.indentUnit,Ee={},Be=xe.htmlMode?qe:ve;for(var Oe in Be)Ee[Oe]=Be[Oe];for(var Oe in xe)Ee[Oe]=xe[Oe];var fe,Ge;function Ie(Re,rt){function nt(Le){return rt.tokenize=Le,Le(Re,rt)}var pe=Re.next();if(pe=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?nt(Te("atom","]]>")):null:Re.match("--")?nt(Te("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),nt(Ne(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),rt.tokenize=Te("meta","?>"),"meta"):(fe=Re.eat("/")?"closeTag":"openTag",rt.tokenize=yt,"tag bracket");if(pe=="&"){var Tt;return Re.eat("#")?Re.eat("x")?Tt=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):Tt=Re.eatWhile(/[\d]/)&&Re.eat(";"):Tt=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),Tt?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}Ie.isInText=!0;function yt(Re,rt){var nt=Re.next();if(nt==">"||nt=="/"&&Re.eat(">"))return rt.tokenize=Ie,fe=nt==">"?"endTag":"selfcloseTag","tag bracket";if(nt=="=")return fe="equals",null;if(nt=="<"){rt.tokenize=Ie,rt.state=Et,rt.tagName=rt.tagStart=null;var pe=rt.tokenize(Re,rt);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(nt)?(rt.tokenize=Je(nt),rt.stringStartCol=Re.column(),rt.tokenize(Re,rt)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Je(Re){var rt=function(nt,pe){for(;!nt.eol();)if(nt.next()==Re){pe.tokenize=yt;break}return"string"};return rt.isInAttribute=!0,rt}function Te(Re,rt){return function(nt,pe){for(;!nt.eol();){if(nt.match(rt)){pe.tokenize=Ie;break}nt.next()}return Re}}function Ne(Re){return function(rt,nt){for(var pe;(pe=rt.next())!=null;){if(pe=="<")return nt.tokenize=Ne(Re+1),nt.tokenize(rt,nt);if(pe==">")if(Re==1){nt.tokenize=Ie;break}else return nt.tokenize=Ne(Re-1),nt.tokenize(rt,nt)}return"meta"}}function De(Re,rt,nt){this.prev=Re.context,this.tagName=rt,this.indent=Re.indented,this.startOfLine=nt,(Ee.doNotIndent.hasOwnProperty(rt)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function Ke(Re){Re.context&&(Re.context=Re.context.prev)}function pt(Re,rt){for(var nt;;){if(!Re.context||(nt=Re.context.tagName,!Ee.contextGrabbers.hasOwnProperty(nt)||!Ee.contextGrabbers[nt].hasOwnProperty(rt)))return;Ke(Re)}}function Et(Re,rt,nt){return Re=="openTag"?(nt.tagStart=rt.column(),gt):Re=="closeTag"?ct:Et}function gt(Re,rt,nt){return Re=="word"?(nt.tagName=rt.current(),Ge="tag",Dt):Ee.allowMissingTagName&&Re=="endTag"?(Ge="tag bracket",Dt(Re,rt,nt)):(Ge="error",gt)}function ct(Re,rt,nt){if(Re=="word"){var pe=rt.current();return nt.context&&nt.context.tagName!=pe&&Ee.implicitlyClosed.hasOwnProperty(nt.context.tagName)&&Ke(nt),nt.context&&nt.context.tagName==pe||Ee.matchClosing===!1?(Ge="tag",st):(Ge="tag error",Ve)}else return Ee.allowMissingTagName&&Re=="endTag"?(Ge="tag bracket",st(Re,rt,nt)):(Ge="error",Ve)}function st(Re,rt,nt){return Re!="endTag"?(Ge="error",st):(Ke(nt),Et)}function Ve(Re,rt,nt){return Ge="error",st(Re,rt,nt)}function Dt(Re,rt,nt){if(Re=="word")return Ge="attribute",dt;if(Re=="endTag"||Re=="selfcloseTag"){var pe=nt.tagName,Tt=nt.tagStart;return nt.tagName=nt.tagStart=null,Re=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(pe)?pt(nt,pe):(pt(nt,pe),nt.context=new De(nt,pe,Tt==nt.indented)),Et}return Ge="error",Dt}function dt(Re,rt,nt){return Re=="equals"?Ye:(Ee.allowMissing||(Ge="error"),Dt(Re,rt,nt))}function Ye(Re,rt,nt){return Re=="string"?vt:Re=="word"&&Ee.allowUnquoted?(Ge="string",Dt):(Ge="error",Dt(Re,rt,nt))}function vt(Re,rt,nt){return Re=="string"?vt:Dt(Re,rt,nt)}return{startState:function(Re){var rt={tokenize:Ie,state:Et,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(rt.baseIndent=Re),rt},token:function(Re,rt){if(!rt.tagName&&Re.sol()&&(rt.indented=Re.indentation()),Re.eatSpace())return null;fe=null;var nt=rt.tokenize(Re,rt);return(nt||fe)&&nt!="comment"&&(Ge=null,rt.state=rt.state(fe||nt,Re,rt),Ge&&(nt=Ge=="error"?nt+" error":Ge)),nt},indent:function(Re,rt,nt){var pe=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+Ce;if(pe&&pe.noIndent)return z.Pass;if(Re.tokenize!=yt&&Re.tokenize!=Ie)return nt?nt.match(/^(\s*)/)[0].length:0;if(Re.tagName)return Ee.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+Ce*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(rt))return 0;var Tt=rt&&/^<(\/)?([\w_:\.-]*)/.exec(rt);if(Tt&&Tt[1])for(;pe;)if(pe.tagName==Tt[2]){pe=pe.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(pe.tagName))pe=pe.prev;else break;else if(Tt)for(;pe;){var Le=Ee.contextGrabbers[pe.tagName];if(Le&&Le.hasOwnProperty(Tt[2]))pe=pe.prev;else break}for(;pe&&pe.prev&&!pe.startOfLine;)pe=pe.prev;return pe?pe.indent+Ce:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==Ye&&(Re.state=Dt)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var rt=[],nt=Re.context;nt;nt=nt.prev)nt.tagName&&rt.push(nt.tagName);return rt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(Ut,Ft,ie){"use strict";ie.d(Ft,{hP:function(){return ht}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function qe(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ve(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function he(we){try{ot(oe.next(we))}catch(We){ne(We)}}function ye(we){try{ot(oe.throw(we))}catch(We){ne(We)}}function ot(we){var We;we.done?se(we.value):(We=we.value,We instanceof ee?We:new ee(function(it){it(We)})).then(he,ye)}ot((oe=oe.apply(ae,te||[])).next())})}function He(ae,te){var ee,oe,se,ne,he={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function ye(ot){return function(we){return function(We){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,oe&&(se=2&We[0]?oe.return:We[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,We[1])).done)return se;switch(oe=0,se&&(We=[2&We[0],se.value]),We[0]){case 0:case 1:se=We;break;case 4:return he.label++,{value:We[1],done:!1};case 5:he.label++,oe=We[1],We=[0];continue;case 7:We=he.ops.pop(),he.trys.pop();continue;default:if(se=he.trys,!((se=se.length>0&&se[se.length-1])||We[0]!==6&&We[0]!==2)){he=0;continue}if(We[0]===3&&(!se||We[1]>se[0]&&We[1]<se[3])){he.label=We[1];break}if(We[0]===6&&he.label<se[1]){he.label=se[1],se=We;break}if(se&&he.label<se[2]){he.label=se[2],he.ops.push(We);break}se[2]&&he.ops.pop(),he.trys.pop();continue}We=te.call(ae,he)}catch(it){We=[6,it],oe=0}finally{ee=se=0}if(5&We[0])throw We[1];return{value:We[0]?We[1]:void 0,done:!0}}([ot,we])}}}function xe(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),se=0;for(te=0;te<ee;te++)for(var ne=arguments[te],he=0,ye=ne.length;he<ye;he++,se++)oe[se]=ne[he];return oe}var Ce=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,ee){for(var oe=0,se=ee;oe<se.length;oe++){var ne=se[oe],he=ne[0],ye=ne[1];te.setAttribute(he,ye)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,ne){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",te.toString()),he.setAttribute("y1",ee.toString()),he.setAttribute("x2",oe.toString()),he.setAttribute("y2",se.toString()),ne&&ae.setAttributes(he,ne),he},ae.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&ae.setAttributes(oe,ee),oe},ae.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&&ae.setAttributes(oe,ee),oe},ae.createEllipse=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(te/2).toString()),se.setAttribute("cy",(ee/2).toString()),se.setAttribute("rx",(te/2).toString()),se.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(se,oe),se},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,se,ne,he,ye){var ot=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ot,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",he.toString()]]),ot.appendChild(ye),ot},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),Ee=function(){function ae(){}return ae.addKey=function(te){ae.key=te},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),Be=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(ne){var he=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var ye=document.createElementNS("http://www.w3.org/2000/svg","svg");ye.setAttribute("xmlns","http://www.w3.org/2000/svg"),ye.setAttribute("width",ee.width.baseVal.valueAsString),ye.setAttribute("height",ee.height.baseVal.valueAsString),ye.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),ye.innerHTML=ee.innerHTML,se.naturalSize===!0?(ye.width.baseVal.value=te.naturalWidth,ye.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(ye.width.baseVal.value=se.width,ye.height.baseVal.value=se.height),he.width=ye.width.baseVal.value,he.height=ye.height.baseVal.value;var ot=ye.outerHTML,we=he.getContext("2d");se.markersOnly!==!0&&we.drawImage(te,0,0,he.width,he.height);var We=window.URL,it=new Image(he.width,he.height);it.setAttribute("crossOrigin","anonymous");var wt=new Blob([ot],{type:"image/svg+xml"}),mt=We.createObjectURL(wt);it.onload=function(){we.drawImage(it,0,0),We.revokeObjectURL(mt);var at=he.toDataURL(se.imageType,se.imageQuality);ne(at)},it.src=mt})},ae}(),Oe=function(){},fe=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(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},ae.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)},ae.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 Ge("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ge("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Ge("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ie("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ie("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),Ge=function(ae,te){this.selector=ae,this.style=te},Ie=function(ae,te){this.localName=ae,this.style=te},yt=function(){function ae(te,ee,oe,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(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 he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ne.typeName),he.innerHTML=ne.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,ne)}),ee.buttons.push(he),ee.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;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]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var 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)})},ae.prototype.addActionButton=function(te,ee,oe){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){se.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)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ie("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ge("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Ge("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.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"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Je=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var he;ne.uiStyleSettings=se.uiStyleSettings;var ye=document.createElement("div");ye.className=se.toolboxButtonStyleClass.name+" "+((he=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:se.toolboxButtonStyleColorsClass.name),ye.innerHTML=ne.icon,ye.title=ne.title,ye.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(ye),se.buttonRow.appendChild(ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,he){var ye,ot;ne.className=ee.toolboxButtonStyleClass.name+" "+(he===oe?""+((ye=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ye!==void 0?ye:ee.toolboxActiveButtonStyleColorsClass.name):""+((ot=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Te=function(ae,te){this.title=ae,this.icon=te},Ne=function(ae){function te(ee,oe,se,ne){var he=ae.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 he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=oe,he.currentColor=se,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=ee.getColorBox(se);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=ne-2+"px",he.style.height=ne-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(ne+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(ee,he)});var ye=document.createElement("div");return ye.style.display="inline-block",ye.style.width=ne-2+"px",ye.style.height=ne-2+"px",ye.style.backgroundColor=ee,ye.style.borderRadius=ne/2+"px",ee==="transparent"&&(ye.style.fill=this.uiStyleSettings.toolboxAccentColor,ye.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>`),he.appendChild(ye),he},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Te),De=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(te){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Ke=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),pt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ce.createGroup(),this.visual.appendChild(Ce.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ce.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),Et=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),gt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Ce.createTransform()),ne.setupControlBox(),ne}return qe(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Ce.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),he>=0?(this.top=ne,this.height=he):(this.top=ne+he,this.height=-he),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Ce.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Ce.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ce.createGroup();var ee=Ce.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Ce.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=Ce.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 Ke,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 pt;return ee.visual.transform.baseVal.appendItem(Ce.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,he=(this.height+this.CB_DISTANCE)/2-ee/2,ye=this.height+this.CB_DISTANCE-ee/2,ot=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,ot,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,ot,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ye),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,ye),this.positionGrip(this.controlGrips.bottomRight.visual,ot,ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Et.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Et.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Et.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(De),ct=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ce.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ce.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(gt),st=function(ae){function te(ee,oe,se,ne){var he=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=se,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=se.toString(),he.style.marginRight="5px",ne.appendChild(he);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.display="flex",ye.style.alignItems="center";var ot=document.createElement("hr");ot.style.minWidth="20px",ot.style.border="0px",ot.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,ot.style.flexGrow="2",ye.appendChild(ot),ne.appendChild(ye),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Te),Ve=function(ae){function te(ee,oe,se,ne){var he=ae.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 he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=se,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var ye=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;he.innerHTML=ye,ne.appendChild(he),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Te),Dt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new st("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(ct),dt=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"},Ye=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Ce.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 pt;return ee.visual.transform.baseVal.appendItem(Ce.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(De),vt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new st("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.selectorLine=Ce.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ce.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ce.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ce.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ce.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(Ye),Re=function(ae){function te(ee,oe,se,ne){var he=ae.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 he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=se,he.setCurrentFont=he.setCurrentFont.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=se,he.style.overflow="hidden";var ye=document.createElement("div");ye.style.whiteSpace="nowrap",ye.style.overflow="hidden",ye.style.textOverflow="ellipsis",ye.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(ye),ne.appendChild(he),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Te),rt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ne("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Re("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.bgRectangle=Ce.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ce.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ce.createTransform()),this.textElement.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(oe){ee.textElement.appendChild(Ce.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:se,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*ee,y:se.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Ce.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&&Ce.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<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}(gt),nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ne("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new st("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.drawingImage=Ce.createImage(),this.visual.appendChild(this.drawingImage);var ee=Ce.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],ne=oe[1],he=oe[2],ye=oe[3],ot=!1,we=0;we<this.canvasElement.height;we++)for(var We=0;We<this.canvasElement.width;We++)ee.data[we*this.canvasElement.width*4+4*We+3]>0&&(ot=!0,we<ne&&(ne=we),We<se&&(se=We),we>ye&&(ye=we),We>he&&(he=We));if(ot){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(he-se)/this.pixelRatio,this.height=(ye-ne)/this.pixelRatio;var it=document.createElement("canvas");it.width=he-se,it.height=ye-ne,it.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,he-se,ye-ne),0,0),this.drawingImgUrl=it.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Ce.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<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}(gt),pe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(ye){var ot="both";switch(ye){case 0:ot="both";break;case 1:ot="start";break;case 2:ot="end";break;case 3:ot="none"}var we=document.createElement("div");if(we.style.display="flex",we.style.flexGrow="2",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=ot===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ee.setCurrentType(ot,we)}),oe.appendChild(we),ot==="both"||ot==="start"){var We=document.createElement("div");We.style.display="flex",We.style.alignItems="center",We.style.minHeight="20px",We.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>`,We.style.marginLeft="5px",we.appendChild(We)}var it=document.createElement("div");it.style.display="flex",it.style.alignItems="center",it.style.minHeight="20px",it.style.flexGrow="2";var wt=document.createElement("hr");if(wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),wt.style.flexGrow="2",it.appendChild(wt),we.appendChild(it),ot==="both"||ot==="end"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.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>`,mt.style.marginRight="5px",we.appendChild(mt)}ne.typeBoxes.push(we)},ne=this,he=0;he<4;he++)se(he);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Te),Tt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new pe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+se/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=Ce.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ce.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ce.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ce.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(vt),Le=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ne("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(ct),je=function(ae){function te(ee,oe,se,ne){var he=ae.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 he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=se,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return qe(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var he=document.createElement("div");he.innerText=100*se+"%",ne.appendChild(he),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Te),It=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ne("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new je("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return qe(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ce.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<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}(Le),ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',ce='<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>',tt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ne("Text color",se.defaultColorSet,ne.color,ge),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ne("Fill color",se.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Re("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new pt,ne.tipGrip.visual.transform.baseVal.appendItem(Ce.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Ce.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ce.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Ce.setAttributes(this.bgRectangle,[["fill",ee]]),Ce.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Ce.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(),ae.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.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,ae.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){ae.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}(rt),At=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ne("Line color",xe(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ne("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new st("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new je("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Ce.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){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.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){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Ce.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Ce.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Ce.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},ae.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(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="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}(gt),St=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return qe(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=Ce.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(Ce.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ce.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(Ce.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ce.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()]]),Ce.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 se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<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}(vt),ke=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return qe(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<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}(At),Ue=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),Xe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new st("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.selectorCurve=Ce.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ce.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ce.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ce.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ce.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ce.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ce.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<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}(Ye),Jt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ne("Line color",xe(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ne("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new st("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ve("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Re("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ne("Text color",se.defaultColorSet,ne.textColor,ge),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return qe(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ce.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ce.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=Ce.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ce.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')"]]),Ce.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&&Ce.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&&Ce.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Ce.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Ce.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Ce.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Ce.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ae.prototype.getState.call(this));return ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<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}(gt),Bt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Ht=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return qe(te,ae),te}(Bt),Fe=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,ee,se)||this;return ne.marker=oe,ne}return qe(te,ae),te}(Bt),Rt=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),ht=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new dt,this._isOpen=!1,this.undoRedoManager=new Ue,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 Rt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Dt,nt,Tt,rt,ke,At,It,tt,St,Le,vt,Xe,Jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Dt,nt,Tt,rt,At,It,tt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Dt,nt,Tt,rt,It]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Bt(te))})},ae.prototype.render=function(){return ve(this,void 0,void 0,function(){var te;return He(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Be).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var ne=new Bt(ee,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Bt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.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))},ae.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)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,se=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,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof rt?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=Ce.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ae.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var 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()},ae.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ae.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new yt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Je(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Fe(te,te._currentMarker,!0);se(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Fe(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var ye=new Fe(te,void 0,!0);he(ye),ye.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(he){var ye=se.markers[he];se.setCurrentMarker(se.markers[he]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(ot){return ot(new Fe(te,ye))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Bt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new Bt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.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 Bt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.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 Bt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return ve(this,void 0,void 0,function(){var te,ee,oe=this;return He(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return te=se.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new Ht(oe,te,ee))}),this.close(!0),[2]}})})},ae.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},ae.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 se=ee._availableMarkerTypes.find(function(he){return he.typeName===oe.typeName});if(se!==void 0){var ne=ee.addNewMarker(se);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 Bt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Ce.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(se){return se.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(se){return se(new Fe(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof nt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(nt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new Fe(ee,te))})},ae.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 Fe(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 Fe(ee,ee._currentMarker))}))},ae.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))},ae.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()}},ae.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}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Ee.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Bt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new Bt(te))}))},ae.instanceCounter=0,ae}()},6551:function(Ut,Ft,ie){"use strict";ie.d(Ft,{ZP:function(){return Ee}});var z=ie(72190),qe=ie(59301),ve=ie(47273),He=0,xe=(0,ve.Z)();function Ce(){var Be;return xe?(Be=He,He+=1):Be="TEST_OR_SSR",Be}function Ee(Be){var Oe=qe.useState(),fe=(0,z.Z)(Oe,2),Ge=fe[0],Ie=fe[1];return qe.useEffect(function(){Ie("rc_select_".concat(Ce()))},[]),Be||Ge}},37463:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Ac:function(){return ft},Xo:function(){return Me},Wx:function(){return Vt},ZP:function(){return jn},lk:function(){return Et}});var z=ie(60499),qe=ie(77654),ve=ie(18642),He=ie(85899),xe=ie(72190),Ce=ie(42244),Ee=ie(43749),Be=ie(18929),Oe=ie(48736),fe=ie(59301),Ge=ie(92310),Ie=ie.n(Ge),yt=ie(34280),Je=ie(49658),Te=ie(8654),Ne=function(Qe){var be=Qe.className,$e=Qe.customizeIcon,Se=Qe.customizeIconProps,ze=Qe.children,bt=Qe.onMouseDown,Yt=Qe.onClick,Qt=typeof $e=="function"?$e(Se):$e;return fe.createElement("span",{className:be,onMouseDown:function(jt){jt.preventDefault(),bt==null||bt(jt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yt,"aria-hidden":!0},Qt!==void 0?Qt:fe.createElement("span",{className:Ie()(be.split(/\s+/).map(function(hn){return"".concat(hn,"-icon")}))},ze))},De=Ne,Ke=function(Qe,be,$e,Se,ze){var bt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Yt=arguments.length>6?arguments[6]:void 0,Qt=arguments.length>7?arguments[7]:void 0,hn=fe.useMemo(function(){if((0,Ee.Z)(Se)==="object")return Se.clearIcon;if(ze)return ze},[Se,ze]),jt=fe.useMemo(function(){return!!(!bt&&Se&&($e.length||Yt)&&!(Qt==="combobox"&&Yt===""))},[Se,bt,$e.length,Yt,Qt]);return{allowClear:jt,clearIcon:fe.createElement(De,{className:"".concat(Qe,"-clear"),onMouseDown:be,customizeIcon:hn},"\xD7")}},pt=fe.createContext(null);function Et(){return fe.useContext(pt)}function gt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Qe=fe.useState(!1),be=(0,xe.Z)(Qe,2),$e=be[0],Se=be[1],ze=fe.useRef(null),bt=function(){window.clearTimeout(ze.current)};fe.useEffect(function(){return bt},[]);var Yt=function(hn,jt){bt(),ze.current=window.setTimeout(function(){Se(hn),jt&&jt()},Ae)};return[$e,Yt,bt]}function ct(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Qe=fe.useRef(null),be=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(be.current)}},[]);function $e(Se){(Se||Qe.current===null)&&(Qe.current=Se),window.clearTimeout(be.current),be.current=window.setTimeout(function(){Qe.current=null},Ae)}return[function(){return Qe.current},$e]}function st(Ae,Qe,be,$e){var Se=fe.useRef(null);Se.current={open:Qe,triggerOpen:be,customizedTrigger:$e},fe.useEffect(function(){function ze(bt){var Yt;if(!((Yt=Se.current)!==null&&Yt!==void 0&&Yt.customizedTrigger)){var Qt=bt.target;Qt.shadowRoot&&bt.composed&&(Qt=bt.composedPath()[0]||Qt),Se.current.open&&Ae().filter(function(hn){return hn}).every(function(hn){return!hn.contains(Qt)&&hn!==Qt})&&Se.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ze),function(){return window.removeEventListener("mousedown",ze)}},[])}var Ve=ie(10228);function Dt(Ae){return Ae&&![Ve.Z.ESC,Ve.Z.SHIFT,Ve.Z.BACKSPACE,Ve.Z.TAB,Ve.Z.WIN_KEY,Ve.Z.ALT,Ve.Z.META,Ve.Z.WIN_KEY_RIGHT,Ve.Z.CTRL,Ve.Z.SEMICOLON,Ve.Z.EQUALS,Ve.Z.CAPS_LOCK,Ve.Z.CONTEXT_MENU,Ve.Z.F1,Ve.Z.F2,Ve.Z.F3,Ve.Z.F4,Ve.Z.F5,Ve.Z.F6,Ve.Z.F7,Ve.Z.F8,Ve.Z.F9,Ve.Z.F10,Ve.Z.F11,Ve.Z.F12].includes(Ae)}var dt=ie(26112),Ye=ie(83836);function vt(Ae,Qe,be){var $e=(0,He.Z)((0,He.Z)({},Ae),be?Qe:{});return Object.keys(Qe).forEach(function(Se){var ze=Qe[Se];typeof ze=="function"&&($e[Se]=function(){for(var bt,Yt=arguments.length,Qt=new Array(Yt),hn=0;hn<Yt;hn++)Qt[hn]=arguments[hn];return ze.apply(void 0,Qt),(bt=Ae[Se])===null||bt===void 0?void 0:bt.call.apply(bt,[Ae].concat(Qt))})}),$e}var Re=vt,rt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],nt=function(Qe,be){var $e=Qe.prefixCls,Se=Qe.id,ze=Qe.inputElement,bt=Qe.autoFocus,Yt=Qe.autoComplete,Qt=Qe.editable,hn=Qe.activeDescendantId,jt=Qe.value,Pt=Qe.open,kt=Qe.attrs,en=(0,Ce.Z)(Qe,rt),kn=ze||fe.createElement("input",null),wn=kn,En=wn.ref,Xn=wn.props;return(0,Oe.Kp)(!("maxLength"in kn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),kn=fe.cloneElement(kn,(0,He.Z)((0,He.Z)((0,He.Z)({type:"search"},Re(en,Xn,!0)),{},{id:Se,ref:(0,Te.sQ)(be,En),autoComplete:Yt||"off",autoFocus:bt,className:Ie()("".concat($e,"-selection-search-input"),Xn==null?void 0:Xn.className),role:"combobox","aria-expanded":Pt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Se,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Se,"_list"),"aria-activedescendant":Pt?hn:void 0},kt),{},{value:Qt?jt:"",readOnly:!Qt,unselectable:Qt?null:"on",style:(0,He.Z)((0,He.Z)({},Xn.style),{},{opacity:Qt?null:0})})),kn},pe=fe.forwardRef(nt),Tt=pe;function Le(Ae){return Array.isArray(Ae)?Ae:Ae!==void 0?[Ae]:[]}var je=typeof window!="undefined"&&window.document&&window.document.documentElement,It=je;function ge(Ae){return Ae!=null}function ce(Ae){return!Ae&&Ae!==0}function tt(Ae){return["string","number"].includes((0,Ee.Z)(Ae))}function At(Ae){var Qe=void 0;return Ae&&(tt(Ae.title)?Qe=Ae.title.toString():tt(Ae.label)&&(Qe=Ae.label.toString())),Qe}function St(Ae,Qe){It?fe.useLayoutEffect(Ae,Qe):fe.useEffect(Ae,Qe)}function ke(Ae){var Qe;return(Qe=Ae.key)!==null&&Qe!==void 0?Qe:Ae.value}var Ue=function(Qe){Qe.preventDefault(),Qe.stopPropagation()},Xe=function(Qe){var be=Qe.id,$e=Qe.prefixCls,Se=Qe.values,ze=Qe.open,bt=Qe.searchValue,Yt=Qe.autoClearSearchValue,Qt=Qe.inputRef,hn=Qe.placeholder,jt=Qe.disabled,Pt=Qe.mode,kt=Qe.showSearch,en=Qe.autoFocus,kn=Qe.autoComplete,wn=Qe.activeDescendantId,En=Qe.tabIndex,Xn=Qe.removeIcon,Jn=Qe.maxTagCount,Qn=Qe.maxTagTextLength,_n=Qe.maxTagPlaceholder,Rn=_n===void 0?function(dn){return"+ ".concat(dn.length," ...")}:_n,Hn=Qe.tagRender,Un=Qe.onToggleOpen,ur=Qe.onRemove,qn=Qe.onInputChange,lr=Qe.onInputPaste,ir=Qe.onInputKeyDown,er=Qe.onInputMouseDown,tr=Qe.onInputCompositionStart,gr=Qe.onInputCompositionEnd,mr=Qe.onInputBlur,cr=fe.useRef(null),vr=(0,fe.useState)(0),Cr=(0,xe.Z)(vr,2),or=Cr[0],dr=Cr[1],Vn=(0,fe.useState)(!1),Sr=(0,xe.Z)(Vn,2),Rr=Sr[0],Wr=Sr[1],Er="".concat($e,"-selection"),Ar=ze||Pt==="multiple"&&Yt===!1||Pt==="tags"?bt:"",Ir=Pt==="tags"||Pt==="multiple"&&Yt===!1||kt&&(ze||Rr);St(function(){dr(cr.current.scrollWidth)},[Ar]);var Dr=function(Kt,Fn,Wn,on,un){return fe.createElement("span",{title:At(Kt),className:Ie()("".concat(Er,"-item"),(0,ve.Z)({},"".concat(Er,"-item-disabled"),Wn))},fe.createElement("span",{className:"".concat(Er,"-item-content")},Fn),on&&fe.createElement(De,{className:"".concat(Er,"-item-remove"),onMouseDown:Ue,onClick:un,customizeIcon:Xn},"\xD7"))},$r=function(Kt,Fn,Wn,on,un,Ln){var An=function(kr){Ue(kr),Un(!ze)};return fe.createElement("span",{onMouseDown:An},Hn({label:Fn,value:Kt,disabled:Wn,closable:on,onClose:un,isMaxTag:!!Ln}))},fr=function(Kt){var Fn=Kt.disabled,Wn=Kt.label,on=Kt.value,un=!jt&&!Fn,Ln=Wn;if(typeof Qn=="number"&&(typeof Wn=="string"||typeof Wn=="number")){var An=String(Ln);An.length>Qn&&(Ln="".concat(An.slice(0,Qn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(Kt)};return typeof Hn=="function"?$r(on,Ln,Fn,un,rr):Dr(Kt,Ln,Fn,un,rr)},Yn=function(Kt){if(!Se.length)return null;var Fn=typeof Rn=="function"?Rn(Kt):Rn;return typeof Hn=="function"?$r(void 0,Fn,!1,!1,void 0,!0):Dr({title:Fn},Fn,!1)},rn=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){Wr(!0)},onBlur:function(){Wr(!1)}},fe.createElement(Tt,{ref:Qt,open:ze,prefixCls:$e,id:be,inputElement:null,disabled:jt,autoFocus:en,autoComplete:kn,editable:Ir,activeDescendantId:wn,value:Ar,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:gr,onBlur:mr,tabIndex:En,attrs:(0,dt.Z)(Qe,!0)}),fe.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),pn=fe.createElement(Ye.Z,{prefixCls:"".concat(Er,"-overflow"),data:Se,renderItem:fr,renderRest:Yn,suffix:rn,itemKey:ke,maxCount:Jn});return fe.createElement("span",{className:"".concat(Er,"-wrap")},pn,!Se.length&&!Ar&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},hn))},Jt=Xe,Bt=function(Qe){var be=Qe.inputElement,$e=Qe.prefixCls,Se=Qe.id,ze=Qe.inputRef,bt=Qe.disabled,Yt=Qe.autoFocus,Qt=Qe.autoComplete,hn=Qe.activeDescendantId,jt=Qe.mode,Pt=Qe.open,kt=Qe.values,en=Qe.placeholder,kn=Qe.tabIndex,wn=Qe.showSearch,En=Qe.searchValue,Xn=Qe.activeValue,Jn=Qe.maxLength,Qn=Qe.onInputKeyDown,_n=Qe.onInputMouseDown,Rn=Qe.onInputChange,Hn=Qe.onInputPaste,Un=Qe.onInputCompositionStart,ur=Qe.onInputCompositionEnd,qn=Qe.onInputBlur,lr=Qe.title,ir=fe.useState(!1),er=(0,xe.Z)(ir,2),tr=er[0],gr=er[1],mr=jt==="combobox",cr=mr||wn,vr=kt[0],Cr=En||"";mr&&Xn&&!tr&&(Cr=Xn),fe.useEffect(function(){mr&&gr(!1)},[mr,Xn]);var or=jt!=="combobox"&&!Pt&&!wn?!1:!!Cr,dr=lr===void 0?At(vr):lr,Vn=fe.useMemo(function(){return vr?null:fe.createElement("span",{className:"".concat($e,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},en)},[vr,or,en,$e]);return fe.createElement("span",{className:"".concat($e,"-selection-wrap")},fe.createElement("span",{className:"".concat($e,"-selection-search")},fe.createElement(Tt,{ref:ze,prefixCls:$e,id:Se,open:Pt,inputElement:be,disabled:bt,autoFocus:Yt,autoComplete:Qt,editable:cr,activeDescendantId:hn,value:Cr,onKeyDown:Qn,onMouseDown:_n,onChange:function(Rr){gr(!0),Rn(Rr)},onPaste:Hn,onCompositionStart:Un,onCompositionEnd:ur,onBlur:qn,tabIndex:kn,attrs:(0,dt.Z)(Qe,!0),maxLength:mr?Jn:void 0})),!mr&&vr?fe.createElement("span",{className:"".concat($e,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Vn)},Ht=Bt,Fe=function(Qe,be){var $e=(0,fe.useRef)(null),Se=(0,fe.useRef)(!1),ze=Qe.prefixCls,bt=Qe.open,Yt=Qe.mode,Qt=Qe.showSearch,hn=Qe.tokenWithEnter,jt=Qe.disabled,Pt=Qe.prefix,kt=Qe.autoClearSearchValue,en=Qe.onSearch,kn=Qe.onSearchSubmit,wn=Qe.onToggleOpen,En=Qe.onInputKeyDown,Xn=Qe.onInputBlur,Jn=Qe.domRef;fe.useImperativeHandle(be,function(){return{focus:function(dr){$e.current.focus(dr)},blur:function(){$e.current.blur()}}});var Qn=ct(0),_n=(0,xe.Z)(Qn,2),Rn=_n[0],Hn=_n[1],Un=function(dr){var Vn=dr.which,Sr=$e.current instanceof HTMLTextAreaElement;!Sr&&bt&&(Vn===Ve.Z.UP||Vn===Ve.Z.DOWN)&&dr.preventDefault(),En&&En(dr),Vn===Ve.Z.ENTER&&Yt==="tags"&&!Se.current&&!bt&&(kn==null||kn(dr.target.value)),!(Sr&&!bt&&~[Ve.Z.UP,Ve.Z.DOWN,Ve.Z.LEFT,Ve.Z.RIGHT].indexOf(Vn))&&Dt(Vn)&&wn(!0)},ur=function(){Hn(!0)},qn=(0,fe.useRef)(null),lr=function(dr){en(dr,!0,Se.current)!==!1&&wn(!0)},ir=function(){Se.current=!0},er=function(dr){Se.current=!1,Yt!=="combobox"&&lr(dr.target.value)},tr=function(dr){var Vn=dr.target.value;if(hn&&qn.current&&/[\r\n]/.test(qn.current)){var Sr=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Vn=Vn.replace(Sr,qn.current)}qn.current=null,lr(Vn)},gr=function(dr){var Vn=dr.clipboardData,Sr=Vn==null?void 0:Vn.getData("text");qn.current=Sr||""},mr=function(dr){var Vn=dr.target;if(Vn!==$e.current){var Sr=document.body.style.msTouchAction!==void 0;Sr?setTimeout(function(){$e.current.focus()}):$e.current.focus()}},cr=function(dr){var Vn=Rn();dr.target!==$e.current&&!Vn&&!(Yt==="combobox"&&jt)&&dr.preventDefault(),(Yt!=="combobox"&&(!Qt||!Vn)||!bt)&&(bt&&kt!==!1&&en("",!0,!1),wn())},vr={inputRef:$e,onInputKeyDown:Un,onInputMouseDown:ur,onInputChange:tr,onInputPaste:gr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Xn},Cr=Yt==="multiple"||Yt==="tags"?fe.createElement(Jt,(0,z.Z)({},Qe,vr)):fe.createElement(Ht,(0,z.Z)({},Qe,vr));return fe.createElement("div",{ref:Jn,className:"".concat(ze,"-selector"),onClick:mr,onMouseDown:cr},Pt&&fe.createElement("div",{className:"".concat(ze,"-prefix")},Pt),Cr)},Rt=fe.forwardRef(Fe),ht=Rt,ae=ie(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(Qe){var be=Qe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:be,adjustY:1},htmlRegion:"scroll"}}},oe=function(Qe,be){var $e=Qe.prefixCls,Se=Qe.disabled,ze=Qe.visible,bt=Qe.children,Yt=Qe.popupElement,Qt=Qe.animation,hn=Qe.transitionName,jt=Qe.dropdownStyle,Pt=Qe.dropdownClassName,kt=Qe.direction,en=kt===void 0?"ltr":kt,kn=Qe.placement,wn=Qe.builtinPlacements,En=Qe.dropdownMatchSelectWidth,Xn=Qe.dropdownRender,Jn=Qe.dropdownAlign,Qn=Qe.getPopupContainer,_n=Qe.empty,Rn=Qe.getTriggerDOMNode,Hn=Qe.onPopupVisibleChange,Un=Qe.onPopupMouseEnter,ur=(0,Ce.Z)(Qe,te),qn="".concat($e,"-dropdown"),lr=Yt;Xn&&(lr=Xn(Yt));var ir=fe.useMemo(function(){return wn||ee(En)},[wn,En]),er=Qt?"".concat(qn,"-").concat(Qt):hn,tr=typeof En=="number",gr=fe.useMemo(function(){return tr?null:En===!1?"minWidth":"width"},[En,tr]),mr=jt;tr&&(mr=(0,He.Z)((0,He.Z)({},mr),{},{width:En}));var cr=fe.useRef(null);return fe.useImperativeHandle(be,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),fe.createElement(ae.Z,(0,z.Z)({},ur,{showAction:Hn?["click"]:[],hideAction:Hn?["click"]:[],popupPlacement:kn||(en==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Un},lr),ref:cr,stretch:gr,popupAlign:Jn,popupVisible:ze,getPopupContainer:Qn,popupClassName:Ie()(Pt,(0,ve.Z)({},"".concat(qn,"-empty"),_n)),popupStyle:mr,getTriggerDOMNode:Rn,onPopupVisibleChange:Hn}),bt)},se=fe.forwardRef(oe),ne=se,he=ie(48745);function ye(Ae,Qe){var be=Ae.key,$e;return"value"in Ae&&($e=Ae.value),be!=null?be:$e!==void 0?$e:"rc-index-key-".concat(Qe)}function ot(Ae){return typeof Ae!="undefined"&&!Number.isNaN(Ae)}function we(Ae,Qe){var be=Ae||{},$e=be.label,Se=be.value,ze=be.options,bt=be.groupLabel,Yt=$e||(Qe?"children":"label");return{label:Yt,value:Se||"value",options:ze||"options",groupLabel:bt||Yt}}function We(Ae){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=Qe.fieldNames,$e=Qe.childrenAsData,Se=[],ze=we(be,!1),bt=ze.label,Yt=ze.value,Qt=ze.options,hn=ze.groupLabel;function jt(Pt,kt){Array.isArray(Pt)&&Pt.forEach(function(en){if(kt||!(Qt in en)){var kn=en[Yt];Se.push({key:ye(en,Se.length),groupOption:kt,data:en,label:en[bt],value:kn})}else{var wn=en[hn];wn===void 0&&$e&&(wn=en.label),Se.push({key:ye(en,Se.length),group:!0,data:en,label:wn}),jt(en[Qt],!0)}})}return jt(Ae,!1),Se}function it(Ae){var Qe=(0,He.Z)({},Ae);return"props"in Qe||Object.defineProperty(Qe,"props",{get:function(){return(0,Oe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Qe}}),Qe}var wt=function(Qe,be,$e){if(!be||!be.length)return null;var Se=!1,ze=function Yt(Qt,hn){var jt=(0,he.Z)(hn),Pt=jt[0],kt=jt.slice(1);if(!Pt)return[Qt];var en=Qt.split(Pt);return Se=Se||en.length>1,en.reduce(function(kn,wn){return[].concat((0,qe.Z)(kn),(0,qe.Z)(Yt(wn,kt)))},[]).filter(Boolean)},bt=ze(Qe,be);return Se?typeof $e!="undefined"?bt.slice(0,$e):bt:null},mt=fe.createContext(null),at=mt;function ut(Ae){var Qe=Ae.visible,be=Ae.values;if(!Qe)return null;var $e=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(be.slice(0,$e).map(function(Se){var ze=Se.label,bt=Se.value;return["number","string"].includes((0,Ee.Z)(ze))?ze:bt}).join(", ")),be.length>$e?", ...":null)}var _e=["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"],Mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Wt=function(Qe){return Qe==="tags"||Qe==="multiple"},_t=fe.forwardRef(function(Ae,Qe){var be,$e=Ae.id,Se=Ae.prefixCls,ze=Ae.className,bt=Ae.showSearch,Yt=Ae.tagRender,Qt=Ae.direction,hn=Ae.omitDomProps,jt=Ae.displayValues,Pt=Ae.onDisplayValuesChange,kt=Ae.emptyOptions,en=Ae.notFoundContent,kn=en===void 0?"Not Found":en,wn=Ae.onClear,En=Ae.mode,Xn=Ae.disabled,Jn=Ae.loading,Qn=Ae.getInputElement,_n=Ae.getRawInputElement,Rn=Ae.open,Hn=Ae.defaultOpen,Un=Ae.onDropdownVisibleChange,ur=Ae.activeValue,qn=Ae.onActiveValueChange,lr=Ae.activeDescendantId,ir=Ae.searchValue,er=Ae.autoClearSearchValue,tr=Ae.onSearch,gr=Ae.onSearchSplit,mr=Ae.tokenSeparators,cr=Ae.allowClear,vr=Ae.prefix,Cr=Ae.suffixIcon,or=Ae.clearIcon,dr=Ae.OptionList,Vn=Ae.animation,Sr=Ae.transitionName,Rr=Ae.dropdownStyle,Wr=Ae.dropdownClassName,Er=Ae.dropdownMatchSelectWidth,Ar=Ae.dropdownRender,Ir=Ae.dropdownAlign,Dr=Ae.placement,$r=Ae.builtinPlacements,fr=Ae.getPopupContainer,Yn=Ae.showAction,rn=Yn===void 0?[]:Yn,pn=Ae.onFocus,dn=Ae.onBlur,Kt=Ae.onKeyUp,Fn=Ae.onKeyDown,Wn=Ae.onMouseDown,on=(0,Ce.Z)(Ae,_e),un=Wt(En),Ln=(bt!==void 0?bt:un)||En==="combobox",An=(0,He.Z)({},on);Mt.forEach(function(Pr){delete An[Pr]}),hn==null||hn.forEach(function(Pr){delete An[Pr]});var rr=fe.useState(!1),kr=(0,xe.Z)(rr,2),br=kr[0],Mr=kr[1];fe.useEffect(function(){Mr((0,Je.Z)())},[]);var Or=fe.useRef(null),Br=fe.useRef(null),zr=fe.useRef(null),Tr=fe.useRef(null),_r=fe.useRef(null),ti=fe.useRef(!1),Oi=gt(),Fi=(0,xe.Z)(Oi,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];fe.useImperativeHandle(Qe,function(){var Pr,xr;return{focus:(Pr=Tr.current)===null||Pr===void 0?void 0:Pr.focus,blur:(xr=Tr.current)===null||xr===void 0?void 0:xr.blur,scrollTo:function(fi){var Yr;return(Yr=_r.current)===null||Yr===void 0?void 0:Yr.scrollTo(fi)},nativeElement:Or.current||Br.current}});var Lr=fe.useMemo(function(){var Pr;if(En!=="combobox")return ir;var xr=(Pr=jt[0])===null||Pr===void 0?void 0:Pr.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,En,jt]),to=En==="combobox"&&typeof Qn=="function"&&Qn()||null,ni=typeof _n=="function"&&_n(),Li=(0,Te.x1)(Br,ni==null||(be=ni.props)===null||be===void 0?void 0:be.ref),ao=fe.useState(!1),Yi=(0,xe.Z)(ao,2),vi=Yi[0],Ai=Yi[1];(0,yt.Z)(function(){Ai(!0)},[]);var Gr=(0,Be.Z)(!1,{defaultValue:Hn,value:Rn}),$i=(0,xe.Z)(Gr,2),lo=$i[0],ji=$i[1],Qr=vi?lo:!1,xo=!kn&&kt;(Xn||xo&&Qr&&En==="combobox")&&(Qr=!1);var so=xo?!1:Qr,ar=fe.useCallback(function(Pr){var xr=Pr!==void 0?Pr:!Qr;Xn||(ji(xr),Qr!==xr&&(Un==null||Un(xr)))},[Xn,Qr,ji,Un]),yr=fe.useMemo(function(){return(mr||[]).some(function(Pr){return[`
`,`\r
`].includes(Pr)})},[mr]),hr=fe.useContext(at)||{},pr=hr.maxCount,Nr=hr.rawValues,jr=function(xr,ci,fi){if(!(un&&ot(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Gi=wt(xr,mr,ot(pr)?pr-Nr.size:void 0),Wi=fi?null:Gi;return En!=="combobox"&&Wi&&(ri="",gr==null||gr(Wi),ar(!1),Yr=!1),tr&&Lr!==ri&&tr(ri,{source:ci?"typing":"effect"}),Yr}},Zi=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};fe.useEffect(function(){!Qr&&!un&&En!=="combobox"&&jr("",!1,!1)},[Qr]),fe.useEffect(function(){lo&&Xn&&ji(!1),Xn&&!ti.current&&mi(!1)},[Xn]);var gi=ct(),ui=(0,xe.Z)(gi,2),Xr=ui[0],zi=ui[1],Ji=fe.useRef(!1),Pi=function(xr){var ci=Xr(),fi=xr.key,Yr=fi==="Enter";if(Yr&&(En!=="combobox"&&xr.preventDefault(),Qr||ar(!0)),zi(!!Lr),fi==="Backspace"&&!ci&&un&&!Lr&&jt.length){for(var ri=(0,qe.Z)(jt),Gi=null,Wi=ri.length-1;Wi>=0;Wi-=1){var ro=ri[Wi];if(!ro.disabled){ri.splice(Wi,1),Gi=ro;break}}Gi&&Pt(ri,{type:"remove",values:[Gi]})}for(var Mi=arguments.length,Di=new Array(Mi>1?Mi-1:0),Vi=1;Vi<Mi;Vi++)Di[Vi-1]=arguments[Vi];if(Qr&&(!Yr||!Ji.current)){var co;Yr&&(Ji.current=!0),(co=_r.current)===null||co===void 0||co.onKeyDown.apply(co,[xr].concat(Di))}Fn==null||Fn.apply(void 0,[xr].concat(Di))},Qi=function(xr){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 ri;(ri=_r.current)===null||ri===void 0||ri.onKeyUp.apply(ri,[xr].concat(fi))}xr.key==="Enter"&&(Ji.current=!1),Kt==null||Kt.apply(void 0,[xr].concat(fi))},no=function(xr){var ci=jt.filter(function(fi){return fi!==xr});Pt(ci,{type:"remove",values:[xr]})},_i=function(){Ji.current=!1},Do=fe.useRef(!1),_a=function(){mi(!0),Xn||(pn&&!Do.current&&pn.apply(void 0,arguments),rn.includes("focus")&&ar(!0)),Do.current=!0},ya=function(){ti.current=!0,mi(!1,function(){Do.current=!1,ti.current=!1,ar(!1)}),!Xn&&(Lr&&(En==="tags"?tr(Lr,{source:"submit"}):En==="multiple"&&tr("",{source:"blur"})),dn&&dn.apply(void 0,arguments))},qi=[];fe.useEffect(function(){return function(){qi.forEach(function(Pr){return clearTimeout(Pr)}),qi.splice(0,qi.length)}},[]);var uo=function(xr){var ci,fi=xr.target,Yr=(ci=zr.current)===null||ci===void 0?void 0:ci.getPopupElement();if(Yr&&Yr.contains(fi)){var ri=setTimeout(function(){var Mi=qi.indexOf(ri);if(Mi!==-1&&qi.splice(Mi,1),Xi(),!br&&!Yr.contains(document.activeElement)){var Di;(Di=Tr.current)===null||Di===void 0||Di.focus()}});qi.push(ri)}for(var Gi=arguments.length,Wi=new Array(Gi>1?Gi-1:0),ro=1;ro<Gi;ro++)Wi[ro-1]=arguments[ro];Wn==null||Wn.apply(void 0,[xr].concat(Wi))},Hi=fe.useState({}),ba=(0,xe.Z)(Hi,2),xa=ba[1];function Ga(){xa({})}var Ca;ni&&(Ca=function(xr){ar(xr)}),st(function(){var Pr;return[Or.current,(Pr=zr.current)===null||Pr===void 0?void 0:Pr.getPopupElement()]},so,ar,!!ni);var Va=fe.useMemo(function(){return(0,He.Z)((0,He.Z)({},Ae),{},{notFoundContent:kn,open:Qr,triggerOpen:so,id:$e,showSearch:Ln,multiple:un,toggleOpen:ar})},[Ae,kn,so,Qr,$e,Ln,un,ar]),Uo=!!Cr||Jn,Ko;Uo&&(Ko=fe.createElement(De,{className:Ie()("".concat(Se,"-arrow"),(0,ve.Z)({},"".concat(Se,"-arrow-loading"),Jn)),customizeIcon:Cr,customizeIconProps:{loading:Jn,searchValue:Lr,open:Qr,focused:xi,showSearch:Ln}}));var Co=function(){var xr;wn==null||wn(),(xr=Tr.current)===null||xr===void 0||xr.focus(),Pt([],{type:"clear",values:jt}),jr("",!1,!1)},Xo=Ke(Se,Co,jt,cr,or,Xn,Lr,En),Sa=Xo.allowClear,Yo=Xo.clearIcon,Bo=fe.createElement(dr,{ref:_r}),wa=Ie()(Se,ze,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(Se,"-focused"),xi),"".concat(Se,"-multiple"),un),"".concat(Se,"-single"),!un),"".concat(Se,"-allow-clear"),cr),"".concat(Se,"-show-arrow"),Uo),"".concat(Se,"-disabled"),Xn),"".concat(Se,"-loading"),Jn),"".concat(Se,"-open"),Qr),"".concat(Se,"-customize-input"),to),"".concat(Se,"-show-search"),Ln)),To=fe.createElement(ne,{ref:zr,disabled:Xn,prefixCls:Se,visible:so,popupElement:Bo,animation:Vn,transitionName:Sr,dropdownStyle:Rr,dropdownClassName:Wr,direction:Qt,dropdownMatchSelectWidth:Er,dropdownRender:Ar,dropdownAlign:Ir,placement:Dr,builtinPlacements:$r,getPopupContainer:fr,empty:kt,getTriggerDOMNode:function(xr){return Br.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Ga},ni?fe.cloneElement(ni,{ref:Li}):fe.createElement(ht,(0,z.Z)({},Ae,{domRef:Br,prefixCls:Se,inputElement:to,ref:Tr,id:$e,prefix:vr,showSearch:Ln,autoClearSearchValue:er,mode:En,activeDescendantId:lr,tagRender:Yt,values:jt,open:Qr,onToggleOpen:ar,activeValue:ur,searchValue:Lr,onSearch:jr,onSearchSubmit:Zi,onRemove:no,tokenWithEnter:yr,onInputBlur:_i}))),Ci;return ni?Ci=To:Ci=fe.createElement("div",(0,z.Z)({className:wa},An,{ref:Or,onMouseDown:uo,onKeyDown:Pi,onKeyUp:Qi,onFocus:_a,onBlur:ya}),fe.createElement(ut,{visible:xi&&!Qr,values:jt}),To,Ko,Sa&&Yo),fe.createElement(pt.Provider,{value:Va},Ci)}),ft=_t,$t=function(){return null};$t.isSelectOptGroup=!0;var Me=$t,Nt=function(){return null};Nt.isSelectOption=!0;var Vt=Nt,xn=ie(80547),Xt=ie(2738),Pe=ie(48911);function lt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var xt=["disabled","title","children","style","className"];function zt(Ae){return typeof Ae=="string"||typeof Ae=="number"}var tn=function(Qe,be){var $e=Et(),Se=$e.prefixCls,ze=$e.id,bt=$e.open,Yt=$e.multiple,Qt=$e.mode,hn=$e.searchValue,jt=$e.toggleOpen,Pt=$e.notFoundContent,kt=$e.onPopupScroll,en=fe.useContext(at),kn=en.maxCount,wn=en.flattenOptions,En=en.onActiveValue,Xn=en.defaultActiveFirstOption,Jn=en.onSelect,Qn=en.menuItemSelectedIcon,_n=en.rawValues,Rn=en.fieldNames,Hn=en.virtual,Un=en.direction,ur=en.listHeight,qn=en.listItemHeight,lr=en.optionRender,ir="".concat(Se,"-item"),er=(0,xn.Z)(function(){return wn},[bt,wn],function(Yn,rn){return rn[0]&&Yn[1]!==rn[1]}),tr=fe.useRef(null),gr=fe.useMemo(function(){return Yt&&ot(kn)&&(_n==null?void 0:_n.size)>=kn},[Yt,kn,_n==null?void 0:_n.size]),mr=function(rn){rn.preventDefault()},cr=function(rn){var pn;(pn=tr.current)===null||pn===void 0||pn.scrollTo(typeof rn=="number"?{index:rn}:rn)},vr=fe.useCallback(function(Yn){return Qt==="combobox"?!1:_n.has(Yn)},[Qt,(0,qe.Z)(_n).toString(),_n.size]),Cr=function(rn){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,dn=er.length,Kt=0;Kt<dn;Kt+=1){var Fn=(rn+Kt*pn+dn)%dn,Wn=er[Fn]||{},on=Wn.group,un=Wn.data;if(!on&&!(un!=null&&un.disabled)&&(vr(un.value)||!gr))return Fn}return-1},or=fe.useState(function(){return Cr(0)}),dr=(0,xe.Z)(or,2),Vn=dr[0],Sr=dr[1],Rr=function(rn){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(rn);var dn={source:pn?"keyboard":"mouse"},Kt=er[rn];if(!Kt){En(null,-1,dn);return}En(Kt.value,rn,dn)};(0,fe.useEffect)(function(){Rr(Xn!==!1?Cr(0):-1)},[er.length,hn]);var Wr=fe.useCallback(function(Yn){return Qt==="combobox"?String(Yn).toLowerCase()===hn.toLowerCase():_n.has(Yn)},[Qt,hn,(0,qe.Z)(_n).toString(),_n.size]);(0,fe.useEffect)(function(){var Yn=setTimeout(function(){if(!Yt&&bt&&_n.size===1){var pn=Array.from(_n)[0],dn=er.findIndex(function(Kt){var Fn=Kt.data;return hn?String(Fn.value).startsWith(hn):Fn.value===pn});dn!==-1&&(Rr(dn),cr(dn))}});if(bt){var rn;(rn=tr.current)===null||rn===void 0||rn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[bt,hn]);var Er=function(rn){rn!==void 0&&Jn(rn,{selected:!_n.has(rn)}),Yt||jt(!1)};if(fe.useImperativeHandle(be,function(){return{onKeyDown:function(rn){var pn=rn.which,dn=rn.ctrlKey;switch(pn){case Ve.Z.N:case Ve.Z.P:case Ve.Z.UP:case Ve.Z.DOWN:{var Kt=0;if(pn===Ve.Z.UP?Kt=-1:pn===Ve.Z.DOWN?Kt=1:lt()&&dn&&(pn===Ve.Z.N?Kt=1:pn===Ve.Z.P&&(Kt=-1)),Kt!==0){var Fn=Cr(Vn+Kt,Kt);cr(Fn),Rr(Fn,!0)}break}case Ve.Z.TAB:case Ve.Z.ENTER:{var Wn,on=er[Vn];on&&!(on!=null&&(Wn=on.data)!==null&&Wn!==void 0&&Wn.disabled)&&!gr?Er(on.value):Er(void 0),bt&&rn.preventDefault();break}case Ve.Z.ESC:jt(!1),bt&&rn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(rn){cr(rn)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(ze,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},Pt);var Ar=Object.keys(Rn).map(function(Yn){return Rn[Yn]}),Ir=function(rn){return rn.label};function Dr(Yn,rn){var pn=Yn.group;return{role:pn?"presentation":"option",id:"".concat(ze,"_list_").concat(rn)}}var $r=function(rn){var pn=er[rn];if(!pn)return null;var dn=pn.data||{},Kt=dn.value,Fn=pn.group,Wn=(0,dt.Z)(dn,!0),on=Ir(pn);return pn?fe.createElement("div",(0,z.Z)({"aria-label":typeof on=="string"&&!Fn?on:null},Wn,{key:rn},Dr(pn,rn),{"aria-selected":Wr(Kt)}),Kt):null},fr={role:"listbox",id:"".concat(ze,"_list")};return fe.createElement(fe.Fragment,null,Hn&&fe.createElement("div",(0,z.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),$r(Vn-1),$r(Vn),$r(Vn+1)),fe.createElement(Pe.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:kt,virtual:Hn,direction:Un,innerProps:Hn?null:fr},function(Yn,rn){var pn=Yn.group,dn=Yn.groupOption,Kt=Yn.data,Fn=Yn.label,Wn=Yn.value,on=Kt.key;if(pn){var un,Ln=(un=Kt.title)!==null&&un!==void 0?un:zt(Fn)?Fn.toString():void 0;return fe.createElement("div",{className:Ie()(ir,"".concat(ir,"-group"),Kt.className),title:Ln},Fn!==void 0?Fn:on)}var An=Kt.disabled,rr=Kt.title,kr=Kt.children,br=Kt.style,Mr=Kt.className,Or=(0,Ce.Z)(Kt,xt),Br=(0,Xt.Z)(Or,Ar),zr=vr(Wn),Tr=An||!zr&&gr,_r="".concat(ir,"-option"),ti=Ie()(ir,_r,Mr,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(_r,"-grouped"),dn),"".concat(_r,"-active"),Vn===rn&&!Tr),"".concat(_r,"-disabled"),Tr),"".concat(_r,"-selected"),zr)),Oi=Ir(Yn),Fi=!Qn||typeof Qn=="function"||zr,xi=typeof Oi=="number"?Oi:Oi||Wn,mi=zt(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),fe.createElement("div",(0,z.Z)({},(0,dt.Z)(Br),Hn?{}:Dr(Yn,rn),{"aria-selected":Wr(Wn),className:ti,title:mi,onMouseMove:function(){Vn===rn||Tr||Rr(rn)},onClick:function(){Tr||Er(Wn)},style:br}),fe.createElement("div",{className:"".concat(_r,"-content")},typeof lr=="function"?lr(Yn,{index:rn}):xi),fe.isValidElement(Qn)||zr,Fi&&fe.createElement(De,{className:"".concat(ir,"-option-state"),customizeIcon:Qn,customizeIconProps:{value:Wn,disabled:Tr,isSelected:zr}},zr?"\u2713":null))}))},sn=fe.forwardRef(tn),Tn=sn,In=function(Ae,Qe){var be=fe.useRef({values:new Map,options:new Map}),$e=fe.useMemo(function(){var ze=be.current,bt=ze.values,Yt=ze.options,Qt=Ae.map(function(Pt){if(Pt.label===void 0){var kt;return(0,He.Z)((0,He.Z)({},Pt),{},{label:(kt=bt.get(Pt.value))===null||kt===void 0?void 0:kt.label})}return Pt}),hn=new Map,jt=new Map;return Qt.forEach(function(Pt){hn.set(Pt.value,Pt),jt.set(Pt.value,Qe.get(Pt.value)||Yt.get(Pt.value))}),be.current.values=hn,be.current.options=jt,Qt},[Ae,Qe]),Se=fe.useCallback(function(ze){return Qe.get(ze)||be.current.options.get(ze)},[Qe]);return[$e,Se]};function ln(Ae,Qe){return Le(Ae).join("").toUpperCase().includes(Qe)}var an=function(Ae,Qe,be,$e,Se){return fe.useMemo(function(){if(!be||$e===!1)return Ae;var ze=Qe.options,bt=Qe.label,Yt=Qe.value,Qt=[],hn=typeof $e=="function",jt=be.toUpperCase(),Pt=hn?$e:function(en,kn){return Se?ln(kn[Se],jt):kn[ze]?ln(kn[bt!=="children"?bt:"label"],jt):ln(kn[Yt],jt)},kt=hn?function(en){return it(en)}:function(en){return en};return Ae.forEach(function(en){if(en[ze]){var kn=Pt(be,kt(en));if(kn)Qt.push(en);else{var wn=en[ze].filter(function(En){return Pt(be,kt(En))});wn.length&&Qt.push((0,He.Z)((0,He.Z)({},en),{},(0,ve.Z)({},ze,wn)))}return}Pt(be,kt(en))&&Qt.push(en)}),Qt},[Ae,$e,Se,be,Qe])},nn=ie(6551),Mn=ie(11592),cn=["children","value"],yn=["children"];function Zt(Ae){var Qe=Ae,be=Qe.key,$e=Qe.props,Se=$e.children,ze=$e.value,bt=(0,Ce.Z)($e,cn);return(0,He.Z)({key:be,value:ze!==void 0?ze:be,children:Se},bt)}function bn(Ae){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Mn.Z)(Ae).map(function(be,$e){if(!fe.isValidElement(be)||!be.type)return null;var Se=be,ze=Se.type.isSelectOptGroup,bt=Se.key,Yt=Se.props,Qt=Yt.children,hn=(0,Ce.Z)(Yt,yn);return Qe||!ze?Zt(be):(0,He.Z)((0,He.Z)({key:"__RC_SELECT_GRP__".concat(bt===null?$e:bt,"__"),label:bt},hn),{},{options:bn(Qt)})}).filter(function(be){return be})}var fn=function(Qe,be,$e,Se,ze){return fe.useMemo(function(){var bt=Qe,Yt=!Qe;Yt&&(bt=bn(be));var Qt=new Map,hn=new Map,jt=function(en,kn,wn){wn&&typeof wn=="string"&&en.set(kn[wn],kn)},Pt=function kt(en){for(var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn=0;wn<en.length;wn+=1){var En=en[wn];!En[$e.options]||kn?(Qt.set(En[$e.value],En),jt(hn,En,$e.label),jt(hn,En,Se),jt(hn,En,ze)):kt(En[$e.options],!0)}};return Pt(bt),{options:bt,valueOptions:Qt,labelOptions:hn}},[Qe,be,$e,Se,ze])},Bn=fn;function Zn(Ae){var Qe=fe.useRef();Qe.current=Ae;var be=fe.useCallback(function(){return Qe.current.apply(Qe,arguments)},[]);return be}function Pn(Ae){var Qe=Ae.mode,be=Ae.options,$e=Ae.children,Se=Ae.backfill,ze=Ae.allowClear,bt=Ae.placeholder,Yt=Ae.getInputElement,Qt=Ae.showSearch,hn=Ae.onSearch,jt=Ae.defaultOpen,Pt=Ae.autoFocus,kt=Ae.labelInValue,en=Ae.value,kn=Ae.inputValue,wn=Ae.optionLabelProp,En=isMultiple(Qe),Xn=Qt!==void 0?Qt:En||Qe==="combobox",Jn=be||convertChildrenToData($e);if(warning(Qe!=="tags"||Jn.every(function(Hn){return!Hn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Qe==="tags"||Qe==="combobox"){var Qn=Jn.some(function(Hn){return Hn.options?Hn.options.some(function(Un){return typeof("value"in Un?Un.value:Un.key)=="number"}):typeof("value"in Hn?Hn.value:Hn.key)=="number"});warning(!Qn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Qe!=="combobox"||!wn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Qe==="combobox"||!Se,"`backfill` only works with `combobox` mode."),warning(Qe==="combobox"||!Yt,"`getInputElement` only work with `combobox` mode."),noteOnce(Qe!=="combobox"||!Yt||!ze||!bt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),hn&&!Xn&&Qe!=="combobox"&&Qe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!jt||Pt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),en!=null){var _n=toArray(en);warning(!kt||_n.every(function(Hn){return _typeof(Hn)==="object"&&("key"in Hn||"value"in Hn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!En||Array.isArray(en),"`value` should be array when `mode` is `multiple` or `tags`")}if($e){var Rn=null;toNodeArray($e).some(function(Hn){if(!React.isValidElement(Hn)||!Hn.type)return!1;var Un=Hn,ur=Un.type;if(ur.isSelectOption)return!1;if(ur.isSelectOptGroup){var qn=toNodeArray(Hn.props.children).every(function(lr){return!React.isValidElement(lr)||!Hn.type||lr.type.isSelectOption?!0:(Rn=lr.type,!1)});return!qn}return Rn=ur,!0}),Rn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Rn.displayName||Rn.name||Rn,"`.")),warning(kn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function On(Ae,Qe){if(Ae){var be=function $e(Se){for(var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=0;bt<Se.length;bt++){var Yt=Se[bt];if(Yt[Qe==null?void 0:Qe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ze&&Array.isArray(Yt[Qe==null?void 0:Qe.options])&&$e(Yt[Qe==null?void 0:Qe.options],!0))break}};be(Ae)}}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"],mn=["inputValue"];function gn(Ae){return!Ae||(0,Ee.Z)(Ae)!=="object"}var Ct=fe.forwardRef(function(Ae,Qe){var be=Ae.id,$e=Ae.mode,Se=Ae.prefixCls,ze=Se===void 0?"rc-select":Se,bt=Ae.backfill,Yt=Ae.fieldNames,Qt=Ae.inputValue,hn=Ae.searchValue,jt=Ae.onSearch,Pt=Ae.autoClearSearchValue,kt=Pt===void 0?!0:Pt,en=Ae.onSelect,kn=Ae.onDeselect,wn=Ae.dropdownMatchSelectWidth,En=wn===void 0?!0:wn,Xn=Ae.filterOption,Jn=Ae.filterSort,Qn=Ae.optionFilterProp,_n=Ae.optionLabelProp,Rn=Ae.options,Hn=Ae.optionRender,Un=Ae.children,ur=Ae.defaultActiveFirstOption,qn=Ae.menuItemSelectedIcon,lr=Ae.virtual,ir=Ae.direction,er=Ae.listHeight,tr=er===void 0?200:er,gr=Ae.listItemHeight,mr=gr===void 0?20:gr,cr=Ae.labelRender,vr=Ae.value,Cr=Ae.defaultValue,or=Ae.labelInValue,dr=Ae.onChange,Vn=Ae.maxCount,Sr=(0,Ce.Z)(Ae,Cn),Rr=(0,nn.ZP)(be),Wr=Wt($e),Er=!!(!Rn&&Un),Ar=fe.useMemo(function(){return Xn===void 0&&$e==="combobox"?!1:Xn},[Xn,$e]),Ir=fe.useMemo(function(){return we(Yt,Er)},[JSON.stringify(Yt),Er]),Dr=(0,Be.Z)("",{value:hn!==void 0?hn:Qt,postState:function(yr){return yr||""}}),$r=(0,xe.Z)(Dr,2),fr=$r[0],Yn=$r[1],rn=Bn(Rn,Un,Ir,Qn,_n),pn=rn.valueOptions,dn=rn.labelOptions,Kt=rn.options,Fn=fe.useCallback(function(ar){var yr=Le(ar);return yr.map(function(hr){var pr,Nr,jr,Zi,gi;if(gn(hr))pr=hr;else{var ui;jr=hr.key,Nr=hr.label,pr=(ui=hr.value)!==null&&ui!==void 0?ui:jr}var Xr=pn.get(pr);if(Xr){var zi;if(Nr===void 0&&(Nr=Xr==null?void 0:Xr[_n||Ir.label]),jr===void 0&&(jr=(zi=Xr==null?void 0:Xr.key)!==null&&zi!==void 0?zi:pr),Zi=Xr==null?void 0:Xr.disabled,gi=Xr==null?void 0:Xr.title,0)var Ji}return{label:Nr,value:pr,key:jr,disabled:Zi,title:gi}})},[Ir,_n,pn]),Wn=(0,Be.Z)(Cr,{value:vr}),on=(0,xe.Z)(Wn,2),un=on[0],Ln=on[1],An=fe.useMemo(function(){var ar,yr=Wr&&un===null?[]:un,hr=Fn(yr);return $e==="combobox"&&ce((ar=hr[0])===null||ar===void 0?void 0:ar.value)?[]:hr},[un,Fn,$e,Wr]),rr=In(An,pn),kr=(0,xe.Z)(rr,2),br=kr[0],Mr=kr[1],Or=fe.useMemo(function(){if(!$e&&br.length===1){var ar=br[0];if(ar.value===null&&(ar.label===null||ar.label===void 0))return[]}return br.map(function(yr){var hr;return(0,He.Z)((0,He.Z)({},yr),{},{label:(hr=typeof cr=="function"?cr(yr):yr.label)!==null&&hr!==void 0?hr:yr.value})})},[$e,br,cr]),Br=fe.useMemo(function(){return new Set(br.map(function(ar){return ar.value}))},[br]);fe.useEffect(function(){if($e==="combobox"){var ar,yr=(ar=br[0])===null||ar===void 0?void 0:ar.value;Yn(ge(yr)?String(yr):"")}},[br]);var zr=Zn(function(ar,yr){var hr=yr!=null?yr:ar;return(0,ve.Z)((0,ve.Z)({},Ir.value,ar),Ir.label,hr)}),Tr=fe.useMemo(function(){if($e!=="tags")return Kt;var ar=(0,qe.Z)(Kt),yr=function(pr){return pn.has(pr)};return(0,qe.Z)(br).sort(function(hr,pr){return hr.value<pr.value?-1:1}).forEach(function(hr){var pr=hr.value;yr(pr)||ar.push(zr(pr,hr.label))}),ar},[zr,Kt,pn,br,$e]),_r=an(Tr,Ir,fr,Ar,Qn),ti=fe.useMemo(function(){return $e!=="tags"||!fr||_r.some(function(ar){return ar[Qn||"value"]===fr})||_r.some(function(ar){return ar[Ir.value]===fr})?_r:[zr(fr)].concat((0,qe.Z)(_r))},[zr,Qn,$e,_r,fr,Ir]),Oi=function ar(yr){var hr=(0,qe.Z)(yr).sort(function(pr,Nr){return Jn(pr,Nr,{searchValue:fr})});return hr.map(function(pr){return Array.isArray(pr.options)?(0,He.Z)((0,He.Z)({},pr),{},{options:pr.options.length>0?ar(pr.options):pr.options}):pr})},Fi=fe.useMemo(function(){return Jn?Oi(ti):ti},[ti,Jn,fr]),xi=fe.useMemo(function(){return We(Fi,{fieldNames:Ir,childrenAsData:Er})},[Fi,Ir,Er]),mi=function(yr){var hr=Fn(yr);if(Ln(hr),dr&&(hr.length!==br.length||hr.some(function(jr,Zi){var gi;return((gi=br[Zi])===null||gi===void 0?void 0:gi.value)!==(jr==null?void 0:jr.value)}))){var pr=or?hr:hr.map(function(jr){return jr.value}),Nr=hr.map(function(jr){return it(Mr(jr.value))});dr(Wr?pr:pr[0],Wr?Nr:Nr[0])}},Xi=fe.useState(null),Lr=(0,xe.Z)(Xi,2),to=Lr[0],ni=Lr[1],Li=fe.useState(0),ao=(0,xe.Z)(Li,2),Yi=ao[0],vi=ao[1],Ai=ur!==void 0?ur:$e!=="combobox",Gr=fe.useCallback(function(ar,yr){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=hr.source,Nr=pr===void 0?"keyboard":pr;vi(yr),bt&&$e==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[bt,$e]),$i=function(yr,hr,pr){var Nr=function(){var no,_i=Mr(yr);return[or?{label:_i==null?void 0:_i[Ir.label],value:yr,key:(no=_i==null?void 0:_i.key)!==null&&no!==void 0?no:yr}:yr,it(_i)]};if(hr&&en){var jr=Nr(),Zi=(0,xe.Z)(jr,2),gi=Zi[0],ui=Zi[1];en(gi,ui)}else if(!hr&&kn&&pr!=="clear"){var Xr=Nr(),zi=(0,xe.Z)(Xr,2),Ji=zi[0],Pi=zi[1];kn(Ji,Pi)}},lo=Zn(function(ar,yr){var hr,pr=Wr?yr.selected:!0;pr?hr=Wr?[].concat((0,qe.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),$i(ar,pr),$e==="combobox"?ni(""):(!Wt||kt)&&(Yn(""),ni(""))}),ji=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(jr){$i(jr.value,!1,pr)})},Qr=function(yr,hr){if(Yn(yr),ni(null),hr.source==="submit"){var pr=(yr||"").trim();if(pr){var Nr=Array.from(new Set([].concat((0,qe.Z)(Br),[pr])));mi(Nr),$i(pr,!0),Yn("")}return}hr.source!=="blur"&&($e==="combobox"&&mi(yr),jt==null||jt(yr))},xo=function(yr){var hr=yr;$e!=="tags"&&(hr=yr.map(function(Nr){var jr=dn.get(Nr);return jr==null?void 0:jr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,qe.Z)(Br),(0,qe.Z)(hr))));mi(pr),pr.forEach(function(Nr){$i(Nr,!0)})},so=fe.useMemo(function(){var ar=lr!==!1&&En!==!1;return(0,He.Z)((0,He.Z)({},rn),{},{flattenOptions:xi,onActiveValue:Gr,defaultActiveFirstOption:Ai,onSelect:lo,menuItemSelectedIcon:qn,rawValues:Br,fieldNames:Ir,virtual:ar,direction:ir,listHeight:tr,listItemHeight:mr,childrenAsData:Er,maxCount:Vn,optionRender:Hn})},[Vn,rn,xi,Gr,Ai,lo,qn,Br,Ir,lr,En,ir,tr,mr,Er,Hn]);return fe.createElement(at.Provider,{value:so},fe.createElement(ft,(0,z.Z)({},Sr,{id:Rr,prefixCls:ze,ref:Qe,omitDomProps:mn,mode:$e,displayValues:Or,onDisplayValuesChange:ji,direction:ir,searchValue:fr,onSearch:Qr,autoClearSearchValue:kt,onSearchSplit:xo,dropdownMatchSelectWidth:En,OptionList:Tn,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Gt=Ct;Gt.Option=Vt,Gt.OptGroup=Me;var Sn=Gt,jn=Sn},22711:function(Ut,Ft,ie){"use strict";ie.r(Ft),ie.d(Ft,{ResizableTextArea:function(){return Re},default:function(){return Tt}});var z=ie(60499),qe=ie(18642),ve=ie(85899),He=ie(77654),xe=ie(72190),Ce=ie(42244),Ee=ie(92310),Be=ie.n(Ee),Oe=ie(36901),fe=ie(66003),Ge=ie(30292),Ie=ie(18929),yt=ie(59301),Je=ie(43749),Te=ie(29301),Ne=ie(34280),De=ie(16089),Ke=`
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;
`,pt=["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"],Et={},gt;function ct(Le){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=Le.getAttribute("id")||Le.getAttribute("data-reactid")||Le.getAttribute("name");if(je&&Et[It])return Et[It];var ge=window.getComputedStyle(Le),ce=ge.getPropertyValue("box-sizing")||ge.getPropertyValue("-moz-box-sizing")||ge.getPropertyValue("-webkit-box-sizing"),tt=parseFloat(ge.getPropertyValue("padding-bottom"))+parseFloat(ge.getPropertyValue("padding-top")),At=parseFloat(ge.getPropertyValue("border-bottom-width"))+parseFloat(ge.getPropertyValue("border-top-width")),St=pt.map(function(Ue){return"".concat(Ue,":").concat(ge.getPropertyValue(Ue))}).join(";"),ke={sizingStyle:St,paddingSize:tt,borderSize:At,boxSizing:ce};return je&&It&&(Et[It]=ke),ke}function st(Le){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;gt||(gt=document.createElement("textarea"),gt.setAttribute("tab-index","-1"),gt.setAttribute("aria-hidden","true"),gt.setAttribute("name","hiddenTextarea"),document.body.appendChild(gt)),Le.getAttribute("wrap")?gt.setAttribute("wrap",Le.getAttribute("wrap")):gt.removeAttribute("wrap");var ce=ct(Le,je),tt=ce.paddingSize,At=ce.borderSize,St=ce.boxSizing,ke=ce.sizingStyle;gt.setAttribute("style","".concat(ke,";").concat(Ke)),gt.value=Le.value||Le.placeholder||"";var Ue=void 0,Xe=void 0,Jt,Bt=gt.scrollHeight;if(St==="border-box"?Bt+=At:St==="content-box"&&(Bt-=tt),It!==null||ge!==null){gt.value=" ";var Ht=gt.scrollHeight-tt;It!==null&&(Ue=Ht*It,St==="border-box"&&(Ue=Ue+tt+At),Bt=Math.max(Ue,Bt)),ge!==null&&(Xe=Ht*ge,St==="border-box"&&(Xe=Xe+tt+At),Jt=Bt>Xe?"":"hidden",Bt=Math.min(Xe,Bt))}var Fe={height:Bt,overflowY:Jt,resize:"none"};return Ue&&(Fe.minHeight=Ue),Xe&&(Fe.maxHeight=Xe),Fe}var Ve=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Dt=0,dt=1,Ye=2,vt=yt.forwardRef(function(Le,je){var It=Le,ge=It.prefixCls,ce=It.defaultValue,tt=It.value,At=It.autoSize,St=It.onResize,ke=It.className,Ue=It.style,Xe=It.disabled,Jt=It.onChange,Bt=It.onInternalAutoSize,Ht=(0,Ce.Z)(It,Ve),Fe=(0,Ie.Z)(ce,{value:tt,postState:function(Vt){return Vt!=null?Vt:""}}),Rt=(0,xe.Z)(Fe,2),ht=Rt[0],ae=Rt[1],te=function(Vt){ae(Vt.target.value),Jt==null||Jt(Vt)},ee=yt.useRef();yt.useImperativeHandle(je,function(){return{textArea:ee.current}});var oe=yt.useMemo(function(){return At&&(0,Je.Z)(At)==="object"?[At.minRows,At.maxRows]:[]},[At]),se=(0,xe.Z)(oe,2),ne=se[0],he=se[1],ye=!!At,ot=function(){try{if(document.activeElement===ee.current){var Vt=ee.current,xn=Vt.selectionStart,Xt=Vt.selectionEnd,Pe=Vt.scrollTop;ee.current.setSelectionRange(xn,Xt),ee.current.scrollTop=Pe}}catch(lt){}},we=yt.useState(Ye),We=(0,xe.Z)(we,2),it=We[0],wt=We[1],mt=yt.useState(),at=(0,xe.Z)(mt,2),ut=at[0],_e=at[1],Mt=function(){wt(Dt)};(0,Ne.Z)(function(){ye&&Mt()},[tt,ne,he,ye]),(0,Ne.Z)(function(){if(it===Dt)wt(dt);else if(it===dt){var Nt=st(ee.current,!1,ne,he);wt(Ye),_e(Nt)}else ot()},[it]);var Wt=yt.useRef(),_t=function(){De.Z.cancel(Wt.current)},ft=function(Vt){it===Ye&&(St==null||St(Vt),At&&(_t(),Wt.current=(0,De.Z)(function(){Mt()})))};yt.useEffect(function(){return _t},[]);var $t=ye?ut:null,Me=(0,ve.Z)((0,ve.Z)({},Ue),$t);return(it===Dt||it===dt)&&(Me.overflowY="hidden",Me.overflowX="hidden"),yt.createElement(Te.Z,{onResize:ft,disabled:!(At||St)},yt.createElement("textarea",(0,z.Z)({},Ht,{ref:ee,style:Me,className:Be()(ge,ke,(0,qe.Z)({},"".concat(ge,"-disabled"),Xe)),disabled:Xe,value:ht,onChange:te})))}),Re=vt,rt=["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"],nt=yt.forwardRef(function(Le,je){var It,ge=Le.defaultValue,ce=Le.value,tt=Le.onFocus,At=Le.onBlur,St=Le.onChange,ke=Le.allowClear,Ue=Le.maxLength,Xe=Le.onCompositionStart,Jt=Le.onCompositionEnd,Bt=Le.suffix,Ht=Le.prefixCls,Fe=Ht===void 0?"rc-textarea":Ht,Rt=Le.showCount,ht=Le.count,ae=Le.className,te=Le.style,ee=Le.disabled,oe=Le.hidden,se=Le.classNames,ne=Le.styles,he=Le.onResize,ye=Le.onClear,ot=Le.onPressEnter,we=Le.readOnly,We=Le.autoSize,it=Le.onKeyDown,wt=(0,Ce.Z)(Le,rt),mt=(0,Ie.Z)(ge,{value:ce,defaultValue:ge}),at=(0,xe.Z)(mt,2),ut=at[0],_e=at[1],Mt=ut==null?"":String(ut),Wt=yt.useState(!1),_t=(0,xe.Z)(Wt,2),ft=_t[0],$t=_t[1],Me=yt.useRef(!1),Nt=yt.useState(null),Vt=(0,xe.Z)(Nt,2),xn=Vt[0],Xt=Vt[1],Pe=(0,yt.useRef)(null),lt=(0,yt.useRef)(null),xt=function(){var Gt;return(Gt=lt.current)===null||Gt===void 0?void 0:Gt.textArea},zt=function(){xt().focus()};(0,yt.useImperativeHandle)(je,function(){var Ct;return{resizableTextArea:lt.current,focus:zt,blur:function(){xt().blur()},nativeElement:((Ct=Pe.current)===null||Ct===void 0?void 0:Ct.nativeElement)||xt()}}),(0,yt.useEffect)(function(){$t(function(Ct){return!ee&&Ct})},[ee]);var tn=yt.useState(null),sn=(0,xe.Z)(tn,2),Tn=sn[0],In=sn[1];yt.useEffect(function(){if(Tn){var Ct;(Ct=xt()).setSelectionRange.apply(Ct,(0,He.Z)(Tn))}},[Tn]);var ln=(0,fe.Z)(ht,Rt),an=(It=ln.max)!==null&&It!==void 0?It:Ue,nn=Number(an)>0,Mn=ln.strategy(Mt),cn=!!an&&Mn>an,yn=function(Gt,Sn){var jn=Sn;!Me.current&&ln.exceedFormatter&&ln.max&&ln.strategy(Sn)>ln.max&&(jn=ln.exceedFormatter(Sn,{max:ln.max}),Sn!==jn&&In([xt().selectionStart||0,xt().selectionEnd||0])),_e(jn),(0,Ge.rJ)(Gt.currentTarget,Gt,St,jn)},Zt=function(Gt){Me.current=!0,Xe==null||Xe(Gt)},bn=function(Gt){Me.current=!1,yn(Gt,Gt.currentTarget.value),Jt==null||Jt(Gt)},fn=function(Gt){yn(Gt,Gt.target.value)},Bn=function(Gt){Gt.key==="Enter"&&ot&&ot(Gt),it==null||it(Gt)},Zn=function(Gt){$t(!0),tt==null||tt(Gt)},Pn=function(Gt){$t(!1),At==null||At(Gt)},On=function(Gt){_e(""),zt(),(0,Ge.rJ)(xt(),Gt,St)},Nn=Bt,Cn;ln.show&&(ln.showFormatter?Cn=ln.showFormatter({value:Mt,count:Mn,maxLength:an}):Cn="".concat(Mn).concat(nn?" / ".concat(an):""),Nn=yt.createElement(yt.Fragment,null,Nn,yt.createElement("span",{className:Be()("".concat(Fe,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Cn)));var mn=function(Gt){var Sn;he==null||he(Gt),(Sn=xt())!==null&&Sn!==void 0&&Sn.style.height&&Xt(!0)},gn=!We&&!Rt&&!ke;return yt.createElement(Oe.BaseInput,{ref:Pe,value:Mt,allowClear:ke,handleReset:On,suffix:Nn,prefixCls:Fe,classNames:(0,ve.Z)((0,ve.Z)({},se),{},{affixWrapper:Be()(se==null?void 0:se.affixWrapper,(0,qe.Z)((0,qe.Z)({},"".concat(Fe,"-show-count"),Rt),"".concat(Fe,"-textarea-allow-clear"),ke))}),disabled:ee,focused:ft,className:Be()(ae,cn&&"".concat(Fe,"-out-of-range")),style:(0,ve.Z)((0,ve.Z)({},te),xn&&!gn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Cn=="string"?Cn:void 0}},hidden:oe,readOnly:we,onClear:ye},yt.createElement(Re,(0,z.Z)({},wt,{autoSize:We,maxLength:Ue,onKeyDown:Bn,onChange:fn,onFocus:Zn,onBlur:Pn,onCompositionStart:Zt,onCompositionEnd:bn,className:Be()(se==null?void 0:se.textarea),style:(0,ve.Z)((0,ve.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Fe,onResize:mn,ref:lt,readOnly:we})))}),pe=nt,Tt=pe},48911:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return ht}});var z=ie(60499),qe=ie(43749),ve=ie(85899),He=ie(18642),xe=ie(72190),Ce=ie(42244),Ee=ie(92310),Be=ie.n(Ee),Oe=ie(29301),fe=ie(70425),Ge=ie(34280),Ie=ie(59301),yt=ie(4676),Je=Ie.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,he=ae.prefixCls,ye=ae.onInnerResize,ot=ae.innerProps,we=ae.rtl,We=ae.extra,it={},wt={display:"flex",flexDirection:"column"};return oe!==void 0&&(it={height:ee,position:"relative",overflow:"hidden"},wt=(0,ve.Z)((0,ve.Z)({},wt),{},(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({transform:"translateY(".concat(oe,"px)")},we?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ie.createElement("div",{style:it},Ie.createElement(Oe.Z,{onResize:function(at){var ut=at.offsetHeight;ut&&ye&&ye()}},Ie.createElement("div",(0,z.Z)({style:wt,className:Be()((0,He.Z)({},"".concat(he,"-holder-inner"),he)),ref:te},ot),ne,We)))});Je.displayName="Filler";var Te=Je;function Ne(ae){var te=ae.children,ee=ae.setRef,oe=Ie.useCallback(function(se){ee(se)},[]);return Ie.cloneElement(te,{ref:oe})}function De(ae,te,ee,oe,se,ne,he,ye){var ot=ye.getKey;return ae.slice(te,ee+1).map(function(we,We){var it=te+We,wt=he(we,it,{style:{width:oe},offsetX:se}),mt=ot(we);return Ie.createElement(Ne,{key:mt,setRef:function(ut){return ne(we,ut)}},wt)})}function Ke(ae,te,ee,oe){var se=ee-ae,ne=te-ee,he=Math.min(se,ne)*2;if(oe<=he){var ye=Math.floor(oe/2);return oe%2?ee+ye+1:ee-ye}return se>ne?ee-(oe-ne):ee+(oe-se)}function pt(ae,te,ee){var oe=ae.length,se=te.length,ne,he;if(oe===0&&se===0)return null;oe<se?(ne=ae,he=te):(ne=te,he=ae);var ye={__EMPTY_ITEM__:!0};function ot(at){return at!==void 0?ee(at):ye}for(var we=null,We=Math.abs(oe-se)!==1,it=0;it<he.length;it+=1){var wt=ot(ne[it]),mt=ot(he[it]);if(wt!==mt){we=it,We=We||wt!==ot(he[it+1]);break}}return we===null?null:{index:we,multiple:We}}function Et(ae,te,ee){var oe=Ie.useState(ae),se=(0,xe.Z)(oe,2),ne=se[0],he=se[1],ye=Ie.useState(null),ot=(0,xe.Z)(ye,2),we=ot[0],We=ot[1];return Ie.useEffect(function(){var it=pt(ne||[],ae||[],te);(it==null?void 0:it.index)!==void 0&&(ee==null||ee(it.index),We(ae[it.index])),he(ae)},[ae]),[we]}var gt=ie(16089),ct=(typeof navigator=="undefined"?"undefined":(0,qe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),st=ct,Ve=function(ae,te,ee,oe){var se=(0,Ie.useRef)(!1),ne=(0,Ie.useRef)(null);function he(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var ye=(0,Ie.useRef)({top:ae,bottom:te,left:ee,right:oe});return ye.current.top=ae,ye.current.bottom=te,ye.current.left=ee,ye.current.right=oe,function(ot,we){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,it=ot?we<0&&ye.current.left||we>0&&ye.current.right:we<0&&ye.current.top||we>0&&ye.current.bottom;return We&&it?(clearTimeout(ne.current),se.current=!1):(!it||se.current)&&he(),!se.current&&it}};function Dt(ae,te,ee,oe,se,ne,he){var ye=(0,Ie.useRef)(0),ot=(0,Ie.useRef)(null),we=(0,Ie.useRef)(null),We=(0,Ie.useRef)(!1),it=Ve(te,ee,oe,se);function wt(Wt,_t){if(gt.Z.cancel(ot.current),!it(!1,_t)){var ft=Wt;if(!ft._virtualHandled)ft._virtualHandled=!0;else return;ye.current+=_t,we.current=_t,st||ft.preventDefault(),ot.current=(0,gt.Z)(function(){var $t=We.current?10:1;he(ye.current*$t,!1),ye.current=0})}}function mt(Wt,_t){he(_t,!0),st||Wt.preventDefault()}var at=(0,Ie.useRef)(null),ut=(0,Ie.useRef)(null);function _e(Wt){if(ae){gt.Z.cancel(ut.current),ut.current=(0,gt.Z)(function(){at.current=null},2);var _t=Wt.deltaX,ft=Wt.deltaY,$t=Wt.shiftKey,Me=_t,Nt=ft;(at.current==="sx"||!at.current&&$t&&ft&&!_t)&&(Me=ft,Nt=0,at.current="sx");var Vt=Math.abs(Me),xn=Math.abs(Nt);at.current===null&&(at.current=ne&&Vt>xn?"x":"y"),at.current==="y"?wt(Wt,Nt):mt(Wt,Me)}}function Mt(Wt){ae&&(We.current=Wt.detail===we.current)}return[_e,Mt]}function dt(ae,te,ee,oe){var se=Ie.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,xe.Z)(se,2),he=ne[0],ye=ne[1],ot=function(We){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We,wt=he.get(We),mt=he.get(it);if(wt===void 0||mt===void 0)for(var at=ae.length,ut=ye.length;ut<at;ut+=1){var _e,Mt=ae[ut],Wt=te(Mt);he.set(Wt,ut);var _t=(_e=ee.get(Wt))!==null&&_e!==void 0?_e:oe;if(ye[ut]=(ye[ut-1]||0)+_t,Wt===We&&(wt=ut),Wt===it&&(mt=ut),wt!==void 0&&mt!==void 0)break}return{top:ye[wt-1]||0,bottom:ye[mt]}};return ot}var Ye=ie(38705),vt=ie(17212),Re=function(){function ae(){(0,Ye.Z)(this,ae),(0,He.Z)(this,"maps",void 0),(0,He.Z)(this,"id",0),(0,He.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,vt.Z)(ae,[{key:"set",value:function(ee,oe){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=oe,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),rt=Re;function nt(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function pe(ae,te,ee){var oe=Ie.useState(0),se=(0,xe.Z)(oe,2),ne=se[0],he=se[1],ye=(0,Ie.useRef)(new Map),ot=(0,Ie.useRef)(new rt),we=(0,Ie.useRef)(0);function We(){we.current+=1}function it(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;We();var at=function(){var Mt=!1;ye.current.forEach(function(Wt,_t){if(Wt&&Wt.offsetParent){var ft=Wt.offsetHeight,$t=getComputedStyle(Wt),Me=$t.marginTop,Nt=$t.marginBottom,Vt=nt(Me),xn=nt(Nt),Xt=ft+Vt+xn;ot.current.get(_t)!==Xt&&(ot.current.set(_t,Xt),Mt=!0)}}),Mt&&he(function(Wt){return Wt+1})};if(mt)at();else{we.current+=1;var ut=we.current;Promise.resolve().then(function(){ut===we.current&&at()})}}function wt(mt,at){var ut=ae(mt),_e=ye.current.get(ut);at?(ye.current.set(ut,at),it()):ye.current.delete(ut),!_e!=!at&&(at?te==null||te(mt):ee==null||ee(mt))}return(0,Ie.useEffect)(function(){return We},[]),[wt,it,ot.current,ne]}var Tt=14/15;function Le(ae,te,ee){var oe=(0,Ie.useRef)(!1),se=(0,Ie.useRef)(0),ne=(0,Ie.useRef)(0),he=(0,Ie.useRef)(null),ye=(0,Ie.useRef)(null),ot,we=function(mt){if(oe.current){var at=Math.ceil(mt.touches[0].pageX),ut=Math.ceil(mt.touches[0].pageY),_e=se.current-at,Mt=ne.current-ut,Wt=Math.abs(_e)>Math.abs(Mt);Wt?se.current=at:ne.current=ut;var _t=ee(Wt,Wt?_e:Mt,!1,mt);_t&&mt.preventDefault(),clearInterval(ye.current),_t&&(ye.current=setInterval(function(){Wt?_e*=Tt:Mt*=Tt;var ft=Math.floor(Wt?_e:Mt);(!ee(Wt,ft,!0)||Math.abs(ft)<=.1)&&clearInterval(ye.current)},16))}},We=function(){oe.current=!1,ot()},it=function(mt){ot(),mt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(mt.touches[0].pageX),ne.current=Math.ceil(mt.touches[0].pageY),he.current=mt.target,he.current.addEventListener("touchmove",we,{passive:!1}),he.current.addEventListener("touchend",We,{passive:!0}))};ot=function(){he.current&&(he.current.removeEventListener("touchmove",we),he.current.removeEventListener("touchend",We))},(0,Ge.Z)(function(){return ae&&te.current.addEventListener("touchstart",it,{passive:!0}),function(){var wt;(wt=te.current)===null||wt===void 0||wt.removeEventListener("touchstart",it),ot(),clearInterval(ye.current)}},[ae])}function je(ae){return Math.floor(Math.pow(ae,.5))}function It(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ge(ae,te,ee){Ie.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,he,ye=function(){gt.Z.cancel(ne)},ot=function wt(){ye(),ne=(0,gt.Z)(function(){ee(he),wt()})},we=function(){se=!1,ye()},We=function(mt){if(!(mt.target.draggable||mt.button!==0)){var at=mt;at._virtualHandled||(at._virtualHandled=!0,se=!0)}},it=function(mt){if(se){var at=It(mt,!1),ut=oe.getBoundingClientRect(),_e=ut.top,Mt=ut.bottom;if(at<=_e){var Wt=_e-at;he=-je(Wt),ot()}else if(at>=Mt){var _t=at-Mt;he=je(_t),ot()}else ye()}};return oe.addEventListener("mousedown",We),oe.ownerDocument.addEventListener("mouseup",we),oe.ownerDocument.addEventListener("mousemove",it),oe.ownerDocument.addEventListener("dragend",we),function(){oe.removeEventListener("mousedown",We),oe.ownerDocument.removeEventListener("mouseup",we),oe.ownerDocument.removeEventListener("mousemove",it),oe.ownerDocument.removeEventListener("dragend",we),ye()}}},[ae])}var ce=10;function tt(ae,te,ee,oe,se,ne,he,ye){var ot=Ie.useRef(),we=Ie.useState(null),We=(0,xe.Z)(we,2),it=We[0],wt=We[1];return(0,Ge.Z)(function(){if(it&&it.times<ce){if(!ae.current){wt(function(ln){return(0,ve.Z)({},ln)});return}ne();var mt=it.targetAlign,at=it.originAlign,ut=it.index,_e=it.offset,Mt=ae.current.clientHeight,Wt=!1,_t=mt,ft=null;if(Mt){for(var $t=mt||at,Me=0,Nt=0,Vt=0,xn=Math.min(te.length-1,ut),Xt=0;Xt<=xn;Xt+=1){var Pe=se(te[Xt]);Nt=Me;var lt=ee.get(Pe);Vt=Nt+(lt===void 0?oe:lt),Me=Vt}for(var xt=$t==="top"?_e:Mt-_e,zt=xn;zt>=0;zt-=1){var tn=se(te[zt]),sn=ee.get(tn);if(sn===void 0){Wt=!0;break}if(xt-=sn,xt<=0)break}switch($t){case"top":ft=Nt-_e;break;case"bottom":ft=Vt-Mt+_e;break;default:{var Tn=ae.current.scrollTop,In=Tn+Mt;Nt<Tn?_t="top":Vt>In&&(_t="bottom")}}ft!==null&&he(ft),ft!==it.lastTop&&(Wt=!0)}Wt&&wt((0,ve.Z)((0,ve.Z)({},it),{},{times:it.times+1,targetAlign:_t,lastTop:ft}))}},[it,ae.current]),function(mt){if(mt==null){ye();return}if(gt.Z.cancel(ot.current),typeof mt=="number")he(mt);else if(mt&&(0,qe.Z)(mt)==="object"){var at,ut=mt.align;"index"in mt?at=mt.index:at=te.findIndex(function(Wt){return se(Wt)===mt.key});var _e=mt.offset,Mt=_e===void 0?0:_e;wt({times:0,index:at,offset:Mt,originAlign:ut})}}}var At=Ie.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,he=ae.onStartMove,ye=ae.onStopMove,ot=ae.onScroll,we=ae.horizontal,We=ae.spinSize,it=ae.containerSize,wt=ae.style,mt=ae.thumbStyle,at=ae.showScrollBar,ut=Ie.useState(!1),_e=(0,xe.Z)(ut,2),Mt=_e[0],Wt=_e[1],_t=Ie.useState(null),ft=(0,xe.Z)(_t,2),$t=ft[0],Me=ft[1],Nt=Ie.useState(null),Vt=(0,xe.Z)(Nt,2),xn=Vt[0],Xt=Vt[1],Pe=!oe,lt=Ie.useRef(),xt=Ie.useRef(),zt=Ie.useState(at),tn=(0,xe.Z)(zt,2),sn=tn[0],Tn=tn[1],In=Ie.useRef(),ln=function(){at===!0||at===!1||(clearTimeout(In.current),Tn(!0),In.current=setTimeout(function(){Tn(!1)},3e3))},an=ne-it||0,nn=it-We||0,Mn=Ie.useMemo(function(){if(se===0||an===0)return 0;var On=se/an;return On*nn},[se,an,nn]),cn=function(Nn){Nn.stopPropagation(),Nn.preventDefault()},yn=Ie.useRef({top:Mn,dragging:Mt,pageY:$t,startTop:xn});yn.current={top:Mn,dragging:Mt,pageY:$t,startTop:xn};var Zt=function(Nn){Wt(!0),Me(It(Nn,we)),Xt(yn.current.top),he(),Nn.stopPropagation(),Nn.preventDefault()};Ie.useEffect(function(){var On=function(gn){gn.preventDefault()},Nn=lt.current,Cn=xt.current;return Nn.addEventListener("touchstart",On,{passive:!1}),Cn.addEventListener("touchstart",Zt,{passive:!1}),function(){Nn.removeEventListener("touchstart",On),Cn.removeEventListener("touchstart",Zt)}},[]);var bn=Ie.useRef();bn.current=an;var fn=Ie.useRef();fn.current=nn,Ie.useEffect(function(){if(Mt){var On,Nn=function(gn){var Ct=yn.current,Gt=Ct.dragging,Sn=Ct.pageY,jn=Ct.startTop;gt.Z.cancel(On);var Ae=lt.current.getBoundingClientRect(),Qe=it/(we?Ae.width:Ae.height);if(Gt){var be=(It(gn,we)-Sn)*Qe,$e=jn;!Pe&&we?$e-=be:$e+=be;var Se=bn.current,ze=fn.current,bt=ze?$e/ze:0,Yt=Math.ceil(bt*Se);Yt=Math.max(Yt,0),Yt=Math.min(Yt,Se),On=(0,gt.Z)(function(){ot(Yt,we)})}},Cn=function(){Wt(!1),ye()};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),gt.Z.cancel(On)}}},[Mt]),Ie.useEffect(function(){return ln(),function(){clearTimeout(In.current)}},[se]),Ie.useImperativeHandle(te,function(){return{delayHidden:ln}});var Bn="".concat(ee,"-scrollbar"),Zn={position:"absolute",visibility:sn?null:"hidden"},Pn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return we?(Object.assign(Zn,{height:8,left:0,right:0,bottom:0}),Object.assign(Pn,(0,He.Z)({height:"100%",width:We},Pe?"left":"right",Mn))):(Object.assign(Zn,(0,He.Z)({width:8,top:0,bottom:0},Pe?"right":"left",0)),Object.assign(Pn,{width:"100%",height:We,top:Mn})),Ie.createElement("div",{ref:lt,className:Be()(Bn,(0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(Bn,"-horizontal"),we),"".concat(Bn,"-vertical"),!we),"".concat(Bn,"-visible"),sn)),style:(0,ve.Z)((0,ve.Z)({},Zn),wt),onMouseDown:cn,onMouseMove:ln},Ie.createElement("div",{ref:xt,className:Be()("".concat(Bn,"-thumb"),(0,He.Z)({},"".concat(Bn,"-thumb-moving"),Mt)),style:(0,ve.Z)((0,ve.Z)({},Pn),mt),onMouseDown:Zt}))}),St=At,ke=20;function Ue(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,ke),Math.floor(ee)}var Xe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Jt=[],Bt={overflowY:"auto",overflowAnchor:"none"};function Ht(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,he=ae.itemHeight,ye=ae.fullHeight,ot=ye===void 0?!0:ye,we=ae.style,We=ae.data,it=ae.children,wt=ae.itemKey,mt=ae.virtual,at=ae.direction,ut=ae.scrollWidth,_e=ae.component,Mt=_e===void 0?"div":_e,Wt=ae.onScroll,_t=ae.onVirtualScroll,ft=ae.onVisibleChange,$t=ae.innerProps,Me=ae.extraRender,Nt=ae.styles,Vt=ae.showScrollBar,xn=Vt===void 0?"optional":Vt,Xt=(0,Ce.Z)(ae,Xe),Pe=Ie.useCallback(function(rn){return typeof wt=="function"?wt(rn):rn==null?void 0:rn[wt]},[wt]),lt=pe(Pe,null,null),xt=(0,xe.Z)(lt,4),zt=xt[0],tn=xt[1],sn=xt[2],Tn=xt[3],In=!!(mt!==!1&&ne&&he),ln=Ie.useMemo(function(){return Object.values(sn.maps).reduce(function(rn,pn){return rn+pn},0)},[sn.id,sn.maps]),an=In&&We&&(Math.max(he*We.length,ln)>ne||!!ut),nn=at==="rtl",Mn=Be()(oe,(0,He.Z)({},"".concat(oe,"-rtl"),nn),se),cn=We||Jt,yn=(0,Ie.useRef)(),Zt=(0,Ie.useRef)(),bn=(0,Ie.useRef)(),fn=(0,Ie.useState)(0),Bn=(0,xe.Z)(fn,2),Zn=Bn[0],Pn=Bn[1],On=(0,Ie.useState)(0),Nn=(0,xe.Z)(On,2),Cn=Nn[0],mn=Nn[1],gn=(0,Ie.useState)(!1),Ct=(0,xe.Z)(gn,2),Gt=Ct[0],Sn=Ct[1],jn=function(){Sn(!0)},Ae=function(){Sn(!1)},Qe={getKey:Pe};function be(rn){Pn(function(pn){var dn;typeof rn=="function"?dn=rn(pn):dn=rn;var Kt=ur(dn);return yn.current.scrollTop=Kt,Kt})}var $e=(0,Ie.useRef)({start:0,end:cn.length}),Se=(0,Ie.useRef)(),ze=Et(cn,Pe),bt=(0,xe.Z)(ze,1),Yt=bt[0];Se.current=Yt;var Qt=Ie.useMemo(function(){if(!In)return{scrollHeight:void 0,start:0,end:cn.length-1,offset:void 0};if(!an){var rn;return{scrollHeight:((rn=Zt.current)===null||rn===void 0?void 0:rn.offsetHeight)||0,start:0,end:cn.length-1,offset:void 0}}for(var pn=0,dn,Kt,Fn,Wn=cn.length,on=0;on<Wn;on+=1){var un=cn[on],Ln=Pe(un),An=sn.get(Ln),rr=pn+(An===void 0?he:An);rr>=Zn&&dn===void 0&&(dn=on,Kt=pn),rr>Zn+ne&&Fn===void 0&&(Fn=on),pn=rr}return dn===void 0&&(dn=0,Kt=0,Fn=Math.ceil(ne/he)),Fn===void 0&&(Fn=cn.length-1),Fn=Math.min(Fn+1,cn.length-1),{scrollHeight:pn,start:dn,end:Fn,offset:Kt}},[an,In,Zn,cn,Tn,ne]),hn=Qt.scrollHeight,jt=Qt.start,Pt=Qt.end,kt=Qt.offset;$e.current.start=jt,$e.current.end=Pt,Ie.useLayoutEffect(function(){var rn=sn.getRecord();if(rn.size===1){var pn=Array.from(rn.keys())[0],dn=rn.get(pn),Kt=cn[jt];if(Kt&&dn===void 0){var Fn=Pe(Kt);if(Fn===pn){var Wn=sn.get(pn),on=Wn-he;be(function(un){return un+on})}}}sn.resetRecord()},[hn]);var en=Ie.useState({width:0,height:ne}),kn=(0,xe.Z)(en,2),wn=kn[0],En=kn[1],Xn=function(pn){En({width:pn.offsetWidth,height:pn.offsetHeight})},Jn=(0,Ie.useRef)(),Qn=(0,Ie.useRef)(),_n=Ie.useMemo(function(){return Ue(wn.width,ut)},[wn.width,ut]),Rn=Ie.useMemo(function(){return Ue(wn.height,hn)},[wn.height,hn]),Hn=hn-ne,Un=(0,Ie.useRef)(Hn);Un.current=Hn;function ur(rn){var pn=rn;return Number.isNaN(Un.current)||(pn=Math.min(pn,Un.current)),pn=Math.max(pn,0),pn}var qn=Zn<=0,lr=Zn>=Hn,ir=Cn<=0,er=Cn>=ut,tr=Ve(qn,lr,ir,er),gr=function(){return{x:nn?-Cn:Cn,y:Zn}},mr=(0,Ie.useRef)(gr()),cr=(0,fe.zX)(function(rn){if(_t){var pn=(0,ve.Z)((0,ve.Z)({},gr()),rn);(mr.current.x!==pn.x||mr.current.y!==pn.y)&&(_t(pn),mr.current=pn)}});function vr(rn,pn){var dn=rn;pn?((0,yt.flushSync)(function(){mn(dn)}),cr()):be(dn)}function Cr(rn){var pn=rn.currentTarget.scrollTop;pn!==Zn&&be(pn),Wt==null||Wt(rn),cr()}var or=function(pn){var dn=pn,Kt=ut?ut-wn.width:0;return dn=Math.max(dn,0),dn=Math.min(dn,Kt),dn},dr=(0,fe.zX)(function(rn,pn){pn?((0,yt.flushSync)(function(){mn(function(dn){var Kt=dn+(nn?-rn:rn);return or(Kt)})}),cr()):be(function(dn){var Kt=dn+rn;return Kt})}),Vn=Dt(In,qn,lr,ir,er,!!ut,dr),Sr=(0,xe.Z)(Vn,2),Rr=Sr[0],Wr=Sr[1];Le(In,yn,function(rn,pn,dn,Kt){var Fn=Kt;return tr(rn,pn,dn)?!1:!Fn||!Fn._virtualHandled?(Fn&&(Fn._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:rn?pn:0,deltaY:rn?0:pn}),!0):!1}),ge(an,yn,function(rn){be(function(pn){return pn+rn})}),(0,Ge.Z)(function(){function rn(dn){var Kt=qn&&dn.detail<0,Fn=lr&&dn.detail>0;In&&!Kt&&!Fn&&dn.preventDefault()}var pn=yn.current;return pn.addEventListener("wheel",Rr,{passive:!1}),pn.addEventListener("DOMMouseScroll",Wr,{passive:!0}),pn.addEventListener("MozMousePixelScroll",rn,{passive:!1}),function(){pn.removeEventListener("wheel",Rr),pn.removeEventListener("DOMMouseScroll",Wr),pn.removeEventListener("MozMousePixelScroll",rn)}},[In,qn,lr]),(0,Ge.Z)(function(){if(ut){var rn=or(Cn);mn(rn),cr({x:rn})}},[wn.width,ut]);var Er=function(){var pn,dn;(pn=Jn.current)===null||pn===void 0||pn.delayHidden(),(dn=Qn.current)===null||dn===void 0||dn.delayHidden()},Ar=tt(yn,cn,sn,he,Pe,function(){return tn(!0)},be,Er);Ie.useImperativeHandle(te,function(){return{nativeElement:bn.current,getScrollInfo:gr,scrollTo:function(pn){function dn(Kt){return Kt&&(0,qe.Z)(Kt)==="object"&&("left"in Kt||"top"in Kt)}dn(pn)?(pn.left!==void 0&&mn(or(pn.left)),Ar(pn.top)):Ar(pn)}}}),(0,Ge.Z)(function(){if(ft){var rn=cn.slice(jt,Pt+1);ft(rn,cn)}},[jt,Pt,cn]);var Ir=dt(cn,Pe,sn,he),Dr=Me==null?void 0:Me({start:jt,end:Pt,virtual:an,offsetX:Cn,offsetY:kt,rtl:nn,getSize:Ir}),$r=De(cn,jt,Pt,ut,Cn,zt,it,Qe),fr=null;ne&&(fr=(0,ve.Z)((0,He.Z)({},ot?"height":"maxHeight",ne),Bt),In&&(fr.overflowY="hidden",ut&&(fr.overflowX="hidden"),Gt&&(fr.pointerEvents="none")));var Yn={};return nn&&(Yn.dir="rtl"),Ie.createElement("div",(0,z.Z)({ref:bn,style:(0,ve.Z)((0,ve.Z)({},we),{},{position:"relative"}),className:Mn},Yn,Xt),Ie.createElement(Oe.Z,{onResize:Xn},Ie.createElement(Mt,{className:"".concat(oe,"-holder"),style:fr,ref:yn,onScroll:Cr,onMouseEnter:Er},Ie.createElement(Te,{prefixCls:oe,height:hn,offsetX:Cn,offsetY:kt,scrollWidth:ut,onInnerResize:tn,ref:Zt,innerProps:$t,rtl:nn,extra:Dr},$r))),an&&hn>ne&&Ie.createElement(St,{ref:Jn,prefixCls:oe,scrollOffset:Zn,scrollRange:hn,rtl:nn,onScroll:vr,onStartMove:jn,onStopMove:Ae,spinSize:Rn,containerSize:wn.height,style:Nt==null?void 0:Nt.verticalScrollBar,thumbStyle:Nt==null?void 0:Nt.verticalScrollBarThumb,showScrollBar:xn}),an&&ut>wn.width&&Ie.createElement(St,{ref:Qn,prefixCls:oe,scrollOffset:Cn,scrollRange:ut,rtl:nn,onScroll:vr,onStartMove:jn,onStopMove:Ae,spinSize:_n,containerSize:wn.width,horizontal:!0,style:Nt==null?void 0:Nt.horizontalScrollBar,thumbStyle:Nt==null?void 0:Nt.horizontalScrollBarThumb,showScrollBar:xn}))}var Fe=Ie.forwardRef(Ht);Fe.displayName="List";var Rt=Fe,ht=Rt},4977:function(Ut){"use strict";Ut.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Ut,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Be}});const z=Oe=>typeof Oe=="object"&&Oe!=null&&Oe.nodeType===1,qe=(Oe,fe)=>(!fe||Oe!=="hidden")&&Oe!=="visible"&&Oe!=="clip",ve=(Oe,fe)=>{if(Oe.clientHeight<Oe.scrollHeight||Oe.clientWidth<Oe.scrollWidth){const Ge=getComputedStyle(Oe,null);return qe(Ge.overflowY,fe)||qe(Ge.overflowX,fe)||(Ie=>{const yt=(Je=>{if(!Je.ownerDocument||!Je.ownerDocument.defaultView)return null;try{return Je.ownerDocument.defaultView.frameElement}catch(Te){return null}})(Ie);return!!yt&&(yt.clientHeight<Ie.scrollHeight||yt.clientWidth<Ie.scrollWidth)})(Oe)}return!1},He=(Oe,fe,Ge,Ie,yt,Je,Te,Ne)=>Je<Oe&&Te>fe||Je>Oe&&Te<fe?0:Je<=Oe&&Ne<=Ge||Te>=fe&&Ne>=Ge?Je-Oe-Ie:Te>fe&&Ne<Ge||Je<Oe&&Ne>Ge?Te-fe+yt:0,xe=Oe=>{const fe=Oe.parentElement;return fe==null?Oe.getRootNode().host||null:fe},Ce=(Oe,fe)=>{var Ge,Ie,yt,Je;if(typeof document=="undefined")return[];const{scrollMode:Te,block:Ne,inline:De,boundary:Ke,skipOverflowHiddenElements:pt}=fe,Et=typeof Ke=="function"?Ke:St=>St!==Ke;if(!z(Oe))throw new TypeError("Invalid target");const gt=document.scrollingElement||document.documentElement,ct=[];let st=Oe;for(;z(st)&&Et(st);){if(st=xe(st),st===gt){ct.push(st);break}st!=null&&st===document.body&&ve(st)&&!ve(document.documentElement)||st!=null&&ve(st,pt)&&ct.push(st)}const Ve=(Ie=(Ge=window.visualViewport)==null?void 0:Ge.width)!=null?Ie:innerWidth,Dt=(Je=(yt=window.visualViewport)==null?void 0:yt.height)!=null?Je:innerHeight,{scrollX:dt,scrollY:Ye}=window,{height:vt,width:Re,top:rt,right:nt,bottom:pe,left:Tt}=Oe.getBoundingClientRect(),{top:Le,right:je,bottom:It,left:ge}=(St=>{const ke=window.getComputedStyle(St);return{top:parseFloat(ke.scrollMarginTop)||0,right:parseFloat(ke.scrollMarginRight)||0,bottom:parseFloat(ke.scrollMarginBottom)||0,left:parseFloat(ke.scrollMarginLeft)||0}})(Oe);let ce=Ne==="start"||Ne==="nearest"?rt-Le:Ne==="end"?pe+It:rt+vt/2-Le+It,tt=De==="center"?Tt+Re/2-ge+je:De==="end"?nt+je:Tt-ge;const At=[];for(let St=0;St<ct.length;St++){const ke=ct[St],{height:Ue,width:Xe,top:Jt,right:Bt,bottom:Ht,left:Fe}=ke.getBoundingClientRect();if(Te==="if-needed"&&rt>=0&&Tt>=0&&pe<=Dt&&nt<=Ve&&(ke===gt&&!ve(ke)||rt>=Jt&&pe<=Ht&&Tt>=Fe&&nt<=Bt))return At;const Rt=getComputedStyle(ke),ht=parseInt(Rt.borderLeftWidth,10),ae=parseInt(Rt.borderTopWidth,10),te=parseInt(Rt.borderRightWidth,10),ee=parseInt(Rt.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in ke?ke.offsetWidth-ke.clientWidth-ht-te:0,he="offsetHeight"in ke?ke.offsetHeight-ke.clientHeight-ae-ee:0,ye="offsetWidth"in ke?ke.offsetWidth===0?0:Xe/ke.offsetWidth:0,ot="offsetHeight"in ke?ke.offsetHeight===0?0:Ue/ke.offsetHeight:0;if(gt===ke)oe=Ne==="start"?ce:Ne==="end"?ce-Dt:Ne==="nearest"?He(Ye,Ye+Dt,Dt,ae,ee,Ye+ce,Ye+ce+vt,vt):ce-Dt/2,se=De==="start"?tt:De==="center"?tt-Ve/2:De==="end"?tt-Ve:He(dt,dt+Ve,Ve,ht,te,dt+tt,dt+tt+Re,Re),oe=Math.max(0,oe+Ye),se=Math.max(0,se+dt);else{oe=Ne==="start"?ce-Jt-ae:Ne==="end"?ce-Ht+ee+he:Ne==="nearest"?He(Jt,Ht,Ue,ae,ee+he,ce,ce+vt,vt):ce-(Jt+Ue/2)+he/2,se=De==="start"?tt-Fe-ht:De==="center"?tt-(Fe+Xe/2)+ne/2:De==="end"?tt-Bt+te+ne:He(Fe,Bt,Xe,ht,te+ne,tt,tt+Re,Re);const{scrollLeft:we,scrollTop:We}=ke;oe=ot===0?0:Math.max(0,Math.min(We+oe/ot,ke.scrollHeight-Ue/ot+he)),se=ye===0?0:Math.max(0,Math.min(we+se/ye,ke.scrollWidth-Xe/ye+ne)),ce+=We-oe,tt+=we-se}At.push({el:ke,top:oe,left:se})}return At},Ee=Oe=>Oe===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Oe)?Oe:{block:"start",inline:"nearest"};function Be(Oe,fe){if(!Oe.isConnected||!(yt=>{let Je=yt;for(;Je&&Je.parentNode;){if(Je.parentNode===document)return!0;Je=Je.parentNode instanceof ShadowRoot?Je.parentNode.host:Je.parentNode}return!1})(Oe))return;const Ge=(yt=>{const Je=window.getComputedStyle(yt);return{top:parseFloat(Je.scrollMarginTop)||0,right:parseFloat(Je.scrollMarginRight)||0,bottom:parseFloat(Je.scrollMarginBottom)||0,left:parseFloat(Je.scrollMarginLeft)||0}})(Oe);if((yt=>typeof yt=="object"&&typeof yt.behavior=="function")(fe))return fe.behavior(Ce(Oe,fe));const Ie=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:yt,top:Je,left:Te}of Ce(Oe,Ee(fe))){const Ne=Je-Ge.top+Ge.bottom,De=Te-Ge.left+Ge.right;yt.scroll({top:Ne,left:De,behavior:Ie})}}}}]);