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

1190 lines
908 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([[8723],{40001:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},73331:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},15277:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},33853:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},61485:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},47472:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},87395:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),lt=re(59301),ye={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"},et=ye,Se=re(7657),ke=function(he,Je){return lt.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ie=lt.forwardRef(ke),Ze=Ie},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(nn,zt){"use strict";zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42624:function(nn,zt){"use strict";zt.Z={flex_box_center:"flex_box_center___JbEg0",flex_space_between:"flex_space_between___Kf6pN",flex_box_vertical_center:"flex_box_vertical_center___e4qgM",flex_box_center_end:"flex_box_center_end___p8QnY",flex_box_column:"flex_box_column___qCilW",wrap:"wrap___Gdnjm",modal:"modal___nL9rn",titleWrap:"titleWrap___ezuXc",required:"required___i8a7H",title:"title___FaxQL",colorGray:"colorGray___CO5Es",choiceWrap:"choiceWrap___pj0lT",answer:"answer___Aq1c0",activeAnswer:"activeAnswer___VIsVw",deleteIcon:"deleteIcon___Gsa5a",addIcon:"addIcon___Yr5Ku",editorWrap:"editorWrap____aGAd",htmlWrap:"htmlWrap___SKYBF",radio:"radio___wvdFS",color333:"color333___uuN3O",color999:"color999___prp8g",questionType:"questionType___FKxwP",questionChoices:"questionChoices___c0OQa",close_style:"close_style___NQVEE",save_style:"save_style___kq8NC",edit_title:"edit_title___W3elv",can_select_count:"can_select_count___F11WF"}},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 nn={},zt="5.0",re={},E=null,lt=!1,ye=!1,et=null,Se=!1,ke=null,Ie=null,Ze=0;Ze<arguments.length;Ze++){var Pe=arguments[Ze];if(Pe!==null)switch(typeof Pe){case"number":zt=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?zt=Pe:et=Pe;break;case"object":typeof Pe.is3D!="undefined"?E=Pe:re=Pe;break;case"boolean":lt=Pe,ye=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!ye&&(lt=!0)),et!==null&&re.id===void 0&&(re.id=et);var he="",Je="",Ee=!1,Ct=null,qe=null,Ae=null,Ue=!1,He=null,at=null,xt=null,kt=null,ft=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var it=function(ve){return parseFloat(ve)>4?parseFloat(ve):5};nn.setHTML5Codebase=function(ve,Te){Ie=ve,je(ve,Te)},nn.setJavaCodebase=nn.setJavaCodebaseVersion=nn.isCompiledInstalled=nn.setPreCompiledScriptPath=nn.setPreCompiledResourcePath=function(){},nn.setHTML5CodebaseVersion=function(ve,Te){var Le=parseFloat(ve);if(Le!==NaN&&Le<5){console.log("The GeoGebra HTML5 codebase version "+Le+" is deprecated. Using version latest instead.");return}ke=ve,ce(ve,Te)},nn.getHTML5CodebaseVersion=function(){return qe},nn.getParameters=function(){return re},nn.setFontsCSSURL=function(ve){kt=ve},nn.setGiacJSURL=function(ve){},nn.setJNLPFile=function(ve){he=ve},nn.setJNLPBaseDir=function(ve){},nn.inject=function(){function ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Te="auto",Le=re.id,wt,pt=!1,Mt=0;Mt<arguments.length;Mt++){var Fe=arguments[Mt];typeof Fe=="string"?(Fe=Fe.toLowerCase(),Fe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Te=Fe:Le=arguments[Mt]):typeof Fe=="boolean"?pt=Fe:Fe instanceof HTMLElement&&(wt=Fe)}At();function At(){if(!Se){setTimeout(At,200);return}Te=ct(Te);var ut=wt||document.getElementById(Le);if(!ut){console.log("possibly bug on ajax loading? ");return}if(nn.removeExistingApplet(ut,!1),re.width===void 0&&ut.clientWidth&&(re.width=ut.clientWidth),re.height===void 0&&ut.clientHeight&&(re.height=ut.clientHeight),!(re.width&&re.height)&&Te==="html5"&&(delete re.width,delete re.height),Ct=Te,Te==="screenshot")_e(ut,re);else{var ae=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?ae=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(ae=(!tt()||ve())&&Ke()),ae?(Ct="screenshot",$e(ut,re,pt,Te)):Re(ut,re,pt)}}};function tt(){try{return window.self!==window.top}catch(ve){return!0}}function Ke(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}nn.getViews=function(){return E},nn.isJavaInstalled=function(){return!1};var gt=function(ve){var Te=function(Mt){var Fe=JSON.parse(Mt),At=function(te){return te.type=="G"||te.type=="E"},ut=Fe.elements?Fe.elements.filter(At)[0]:Fe;if(!ut||!ut.url){Le();return}re.fileName=ut.url,Ne(ut.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";nn.setPreviewImage(He||ut.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ve()},Le=function(){re.onError&&re.onError(),Pt("Error: Fetching material (id "+re.material_id+") failed.",re)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",pt="/materials/"+re.material_id+"?scope=basic";Ve("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(pt),Te,Le)};function Ne(ve){var Te=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Le){ve[Le]=!!ve[Le]}),Te.forEach(function(Le){re[Le]===void 0&&ve[Le]!==void 0&&(re[Le]=ve[Le])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function Ve(ve,Te,Le){var wt=new XMLHttpRequest;wt.open("GET",ve),wt.onload=function(){Te(wt.responseText)},wt.onerror=Le,wt.send()}nn.isHTML5Installed=function(){return!0},nn.getLoadedAppletType=function(){return Ct},nn.setPreviewImage=function(ve,Te,Le){He=ve,at=Te,xt=Le},nn.removeExistingApplet=function(ve,Te){var Le;typeof ve=="string"&&(ve=document.getElementById(ve)),Ct=null;var wt=null;for(Le=0;Le<ve.childNodes.length;Le++){var pt=ve.childNodes[Le],Mt=pt.className;Mt==="applet_screenshot"?Te?(pt.style.display="block",Ct="screenshot"):pt.style.display="none":Mt!=="applet_scaler prerender"&&(ve.removeChild(pt),wt=Mt&&Mt.indexOf("appletParameters")!=-1?pt.id:null,Le--)}var Fe=re.id!==void 0?re.id:wt,At=window[Fe];At&&typeof At.getBase64=="function"&&(At.remove(),window[Fe]=null)},nn.refreshHitPoints=function(){if(it(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ve=nn.getAppletObject();return ve&&typeof ve.recalculateEnvironments=="function"?(ve.recalculateEnvironments(),!0):!1},nn.startAnimation=function(){var ve=nn.getAppletObject();return ve&&typeof ve.startAnimation=="function"?(ve.startAnimation(),!0):!1},nn.stopAnimation=function(){var ve=nn.getAppletObject();return ve&&typeof ve.stopAnimation=="function"?(ve.stopAnimation(),!0):!1},nn.getAppletObject=function(){var ve=re.id!==void 0?re.id:"ggbApplet";return window[ve]},nn.resize=function(){};var ht=function(ve,Te,Le){var wt=document.createElement("param");wt.setAttribute("name",Te),wt.setAttribute("value",Le),ve.appendChild(wt)},Ce=function(ve){return ve&&ve!=="false"},Re=function(ve,Te,Le){it(qe)<=4.2&&(Le=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==qe||ggbHTML5LoadedCodebaseIsWebSimple&&!Ue)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var pt=document.createElement("div");pt.classList.add("appletParameters","notranslate");var Mt=Te.width,Fe=Te.height;if(Te.disableAutoScale=Te.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Te.disableAutoScale,Te.width!==void 0)if(it(qe)<=4.4)Ce(Te.showToolBar)&&(Te.height-=7),Ce(Te.showAlgebraInput)&&(Te.height-=37),Te.width<605&&Ce(Te.showToolBar)&&(Te.width=605,Mt=605);else{var At=100;(Ce(Te.showToolBar)||Ce(Te.showMenuBar))&&(Te.hasOwnProperty("customToolBar")&&(Te.customToolbar=Te.customToolBar),At=Ce(Te.showMenuBar)?245:155),Mt<At&&(Te.width=At,Mt=At)}pt.style.border="none",pt.style.display="inline-block";for(var ut in Te)Te.hasOwnProperty(ut)&&ut!=="appletOnLoad"&&pt.setAttribute("data-param-"+ut,Te[ut]);kt&&pt.setAttribute("data-param-fontscssurl",kt),nn.resize=function(){GGBAppletUtils.responsiveResize(ve,Te)},window.addEventListener("resize",function(St){nn.resize()});var ae=typeof Te.appletOnLoad=="function"?Te.appletOnLoad:function(){};if(!Le&&Te.width!==void 0){Te.hasOwnProperty("showSplash")||pt.setAttribute("data-param-showSplash","false");var te=ve.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=we(Mt,Fe,Te.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Mt+"px",te.style.height=Fe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),it(qe)>=5?(Te.appletOnLoad=function(St){var mt=ve.querySelector(".ggb_preview");mt&&mt.parentNode.removeChild(mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(St)},ee||te.appendChild(oe)):pt.appendChild(oe),te.appendChild(pt),ee||ve.appendChild(te),setTimeout(function(){nn.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(pt),ve.appendChild(ue),Te.appletOnLoad=function(St){nn.resize(),ae(St)}}function ne(St,mt){mt&&typeof mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(St,mt.appletOnLoad):renderGGBElement(St),Pt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mt)}function pe(St,mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:St,params:mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ht){ne(Ht.article,Ht.params)}),html5AppletsToProcess=null)},it(qe)<5&&(St.className+=" geogebraweb")):ne(St,mt)}if(wt){scriptLoadStarted=!0;for(var ge=0;ge<pt.childNodes.length;ge++){var We=pt.childNodes[ge].tagName;We==="TABLE"&&(pt.removeChild(pt.childNodes[ge]),ge--)}if(ggbHTML5LoadedScript!==null){var xe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');xe!=null&&xe.parentNode.removeChild(xe)}var Ge=document.createElement("script"),nt=function(){pe(pt,Te)};Ge.src=Je+Ae,ggbHTML5LoadedCodebaseIsWebSimple=Ue,ggbHTML5LoadedCodebaseVersion=qe,ggbHTML5LoadedScript=Ge.src,Pt("GeoGebra HTML5 codebase loaded: '"+Je+"'.",Te),!Ie&&(!ke||ke=="5.0")?(Ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),nt()):Je.requirejs?__webpack_require__.e(4510).then(function(){var St=[__webpack_require__(4510)];nt.apply(null,St)}.bind(this)).catch(__webpack_require__.oe):(Ge.onload=nt,ve.appendChild(Ge))}else pe(pt,Te);Te.height=Fe,Te.width=Mt},_e=function(ve,Te,Le){var wt=we(Te.width,Te.height,Te.borderColor,Le),pt=document.createElement("div");pt.style.position="relative",pt.style.display="block",pt.style.width=Te.width+"px",pt.style.height=Te.height+"px",pt.className="applet_screenshot applet_scaler"+(Le?" applet_screenshot_play":""),pt.appendChild(wt);var Mt=GGBAppletUtils.getScale(Te,ve,Le);Le?(ve.appendChild(De()),window.GGBT_wsf_view||(ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pt,"66%"),ve.appendChild(pt),Mt!==1&&!isNaN(Mt)&&(GGBAppletUtils.scaleElement(pt,Mt),pt.style.width=Te.width+"px",pt.style.height=Te.height+"px",pt.parentNode.style.width=Te.width*Mt+"px",pt.parentNode.style.height=Te.height*Mt+"px"),nn.resize=function(){se(ve,wt,pt,Le)},window.addEventListener("resize",function(Fe){nn.resize()}),nn.resize()};function se(ve,Te,Le,wt){if(ve.contains(Te)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}var pt=GGBAppletUtils.getScale(re,ve,wt);Le.parentNode!==null&&(!isNaN(pt)&&pt!==1?(GGBAppletUtils.scaleElement(Le,pt),Le.parentNode.style.width=re.width*pt+"px",Le.parentNode.style.height=re.height*pt+"px"):(GGBAppletUtils.scaleElement(Le,1),Le.parentNode.style.width=re.width+"px",Le.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ve),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}nn.onExitFullscreen=function(ve,Te){Te.appendChild(ve)};var $e=function(ve,Te,Le,wt){_e(ve,Te,!0);for(var pt=function(){var At=[];for(Fe=0;Fe<ve.childNodes.length;Fe++)At.push(ve.childNodes[Fe]);if(window.GGBT_wsf_view){var ut=window.GGBT_wsf_view.renderFullScreen(ve,Te.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(ve).find(".fullscreencontent");te.length>0?(ut.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Re(ut,Te,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Ct=wt,Re(ve,Te,!1);if(!window.GGBT_wsf_view)for(Fe=0;Fe<At.length;Fe++)ve.removeChild(At[Fe])},Mt=ve.getElementsByClassName("ggb_preview_play"),Fe=0;Fe<Mt.length;Fe++)Mt[Fe].addEventListener("click",pt,!1),Mt[Fe].addEventListener("ontouchstart",pt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ve),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},De=function(){var ve=document.createElement("div");if(ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Te='.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");}',Le=document.createElement("style");Le.styleSheet?Le.styleSheet.cssText=Te:Le.appendChild(document.createTextNode(Te)),document.getElementsByTagName("head")[0].appendChild(Le)}return ve},we=function(ve,Te,Le,wt){var pt=document.createElement("div");pt.className="ggb_preview",pt.style.position="absolute",pt.style.zIndex="90",pt.style.width=ve-2+"px",pt.style.height=Te-2+"px",pt.style.top="0px",pt.style.left="0px",pt.style.overflow="hidden",pt.style.backgroundColor="white";var Mt="lightgrey";Le!==void 0&&(Le==="none"?Mt="transparent":Mt=Le),pt.style.border="1px solid "+Mt;var Fe=document.createElement("img");if(Fe.style.position="relative",Fe.style.zIndex="1000",Fe.style.top="-1px",Fe.style.left="-1px",He!==null&&Fe.setAttribute("src",He),Fe.style.opacity=.7,at!==null){var At,ut,ae;if(!wt){At=document.createElement("img"),At.style.position="absolute",At.style.zIndex="1001",At.style.opacity=1,Fe.style.opacity=.3,ut=360,ut>ve/4*3&&(ut=ve/4*3),ae=ut/5.8,At.setAttribute("src",at),At.setAttribute("width",ut),At.setAttribute("height",ae);var te=(ve-ut)/2,ee=(Te-ae)/2;At.style.left=te+"px",At.style.top=ee+"px",pt.appendChild(At)}}return pt.appendChild(Fe),pt},ct=function(ve){return ve=ve.toLowerCase(),ve==="html5"||ve==="screenshot"?ve:"html5"},me=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ve,Te){if(qe=ve,Te){je(qe,!0);return}var Le=!lt;if(Le){var wt=it(qe);!isNaN(wt)&&wt<4.4&&(Le=!1)}var pt,Mt;window.location.protocol.substr(0,4)==="http"?pt=window.location.protocol:pt="http:";var Fe=qe.indexOf("//");Fe>0?Mt=qe:Fe===0?Mt=pt+qe:Mt="https://www.geogebra.org/apps/5.2.814.0/";for(var At in me)if(qe.slice(me[At].length*-1)===me[At]||qe.slice((me[At].length+1)*-1)===me[At]+"/"){je(Mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Le&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Ce(re.showToolBar)&&!Ce(re.showMenuBar)&&!Ce(re.showAlgebraInput)&&!Ce(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Mt+="webSimple/":Mt+="web3d/",je(Mt,!1)},je=function(ve,Te){if(ve.requirejs){Je=ve;return}ve.slice(-1)!=="/"&&(ve+="/"),Je=ve,Te===null&&(Te=ve.indexOf("http")===-1),Ee=Te,Ae="web.nocache.js",Ue=!1;var Le=Je.split("/");Le.length>1&&(!Te&&Le[Le.length-2]==="webSimple"?(Ae="webSimple.nocache.js",Ue=!0):me.indexOf(Le[Le.length-2])>=0&&(Ae=Le[Le.length-2]+".nocache.js")),Le=ve.split("/"),qe=Le[Le.length-3],qe.substr(0,4)==="test"?qe=qe.substr(4,1)+"."+qe.substr(5,1):(qe.substr(0,3)==="war"||qe.substr(0,4)==="beta")&&(qe="5.0");var wt=parseFloat(qe);wt!==NaN&&wt<5&&ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),ce("5.0",Te))},Pt=function(ve,Te){window.console&&window.console.log&&(!Te||typeof Te.showLogging=="undefined"||Te.showLogging&&Te.showLogging!=="false")&&console.log(ve)};re.material_id!==void 0?gt(yt):yt();function yt(){var ve=zt;ke!==null?ve=ke:parseFloat(ve)<5&&(ve="5.0"),ce(ve,!1),Ie!==null&&je(Ie,Ee),Se=!0}return nn},GGBAppletUtils=function(){"use strict";function nn(){return window.GGBT_wsf_edit!==void 0}function zt(Se,ke){ke!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+ke+","+ke+")",Se.style.webkitTransform="scale("+ke+","+ke+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function re(Se,ke,Ie,Ze,Pe,he){var Je=null;if(he!=null&&he!="")for(var Ee=Se.parentNode;Ee!=null;)if((" "+Ee.className+" ").indexOf(" "+he+" ")>-1){Je=Ee;break}else Ee=Ee.parentNode;var Ct=0,qe=0,Ae=0,Ue=0,He=0,at=0,xt=0;if(Je)Ct=Je.offsetWidth,qe=Math.max(Ze?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ct=Math.min(window.innerWidth,document.documentElement.clientWidth),qe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=Ct):(Ct=window.innerWidth,qe=window.innerHeight,Ae=window.innerWidth),Se){var kt=Se.getBoundingClientRect();kt.left>0&&kt.left<=Ct&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(He=Ct-kt.width-kt.left,at=Ae<=480?10:30):(at=kt.left,He=Ae<=480?10:30),Ue=at+He)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ft=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ue=40,xt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ue=0,xt=40)}}return Se&&((Ie===void 0||!Ie)&&ke>0&&ke+Ue<Ct?Ct=ke:Ct-=Ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie===void 0||!Ie)&&(qe-=xt)),{width:Ct,height:qe}}function E(Se,ke,Ie,Ze,Pe){if(Se.isScreenshoGenerator)return 1;var he=Ze!==void 0&&Ze,Je=Se.noScaleMargin!=null&&Se.noScaleMargin,Ee=function(ft){return ft&&ft!=="false"},Ct=Ee(Se.autoHeight),qe=re(ke,Se.width,Ie,Ct,he&&window.GGBT_wsf_view||Je,Pe),Ae=parseInt(qe.width),Ue=Se.width,He=Se.height;if(Ue===void 0){var at=ke.querySelector(".appletParameters");at&&(Ue=at.offsetWidth,He=at.offsetHeight)}var xt=Ae/Ue,kt=he?1:qe.height/He;return Ie!==void 0&&!Ie&&(xt=Math.min(1,xt),kt=Math.min(1,kt)),Math.min(xt,kt)}function lt(Se,ke,Ie){var Ze=1,Pe,he=!1;if(Se.hasOwnProperty("allowUpscale")&&(he=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Ze=parseFloat(Se.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(he=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Pe=E(Se,ke,he,Ie,Se.scaleContainerClass);else return Ze;return he&&(!Se.hasOwnProperty("scale")||Ze===1)?Pe:Math.min(Ze,Pe)}function ye(Se){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),Ie=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Se.getBoundingClientRect(),Pe=(ke-Ze.width)/2,he=(Ie-Ze.height)/2;he<0&&(he=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?Se.style.left="40px":Se.style.left=Pe+"px",Se.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?Se.style.top="40px":Se.style.top=he+"px",Se.style.left=Pe+"px")}function et(Se,ke){var Ie=Se.querySelector(".appletParameters");if(Ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==Ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Ie.parentElement&&/fullscreen/.test(Ie.parentElement.className))return;var Ze=lt(ke,Se);nn()&&Ie.setAttribute("data-param-scale",Ze);for(var Pe=null,he=0;he<Se.childNodes.length;he++)if(Se.childNodes[he].className!==void 0&&Se.childNodes[he].className.match(/^applet_scaler/)){Pe=Se.childNodes[he];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var Je=ke.id!==void 0?ke.id:"ggbApplet",Ee=window[Je];(Ee==null||!Ee.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Pe.parentNode.style.width=ke.width*Ze+"px",Pe.parentNode.style.height=ke.height*Ze+"px",zt(Pe,Ze)):(zt(Pe,1),Pe.parentNode.style.width=ke.width+"px",Pe.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ye(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ie).parents(".content-added-content"))}}return{responsiveResize:et,isFlexibleWorksheetEditor:nn,positionCenter:ye,getScale:lt,scaleElement:zt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var nn=n.location.search;return nn.indexOf(J)!=-1||nn.indexOf(K)!=-1}function q(nn,zt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(nn){var zt=s[L].bindings;s[L].bindings=function(){for(var re=zt?zt():{},E=nn[webModule.__softPermutationId],lt=O;lt<E.length;lt++){var ye=E[lt];re[ye[O]]=ye[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var nn=o.createElement(Q);if(nn.id=L,nn.style.cssText=R+S,nn.tabIndex=-1,o.body.appendChild(nn),t=nn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var zt=document.compatMode==U?V:W;t.write(zt+X),t.close()}}}function w(nn){function zt(E){function lt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ye=lt();if(ye){E();return}function et(){if(!ye){if(!lt())return;ye=!0,E(),o.removeEventListener&&o.removeEventListener(Z,et,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,et,!1);var Se=setInterval(function(){et()},$)}function re(E){var lt=u(),ye=lt.body,et=lt.createElement(_);et.language=ab,et.crossOrigin=W,et.src=E,webModule.__errFn&&(et.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),ye.appendChild(et)}zt(function(){re(nn)})}webModule.__startLoadingFragment=function(nn){return C(nn)},webModule.__installRunAsyncCode=function(nn){var zt=u(),re=zt.body,E=zt.createElement(_);E.language=ab,E.text=nn,re.appendChild(E),re.removeChild(E)};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(nn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(nn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(nn){var zt=c[nn];return zt==null?null:zt},r=d,webModule.__errFn=e}function B(){function nn(Se){var ke=Se.lastIndexOf(rb);ke==-1&&(ke=Se.length);var Ie=Se.indexOf(sb);Ie==-1&&(Ie=Se.length);var Ze=Se.lastIndexOf(tb,Math.min(Ie,ke));return Ze>=O?Se.substring(O,Ze+P):W}function zt(Se){if(!Se.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=Se+vb,Se=nn(ke.src)}return Se}function re(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function E(){for(var Se=o.getElementsByTagName(_),ke=O;ke<Se.length;++ke)if(Se[ke].src.indexOf(xb)!=-1)return nn(Se[ke].src);return W}function lt(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function ye(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var et=re();return et==W&&(et=E()),et==W&&(et=lt()),et==W&&ye()&&(et=nn(o.location.href)),et=zt(et),et}function C(nn){return nn.match(/^\//)||nn.match(/^[a-zA-Z]+:\/\//)?nn:webModule.__moduleBase+nn}function D(){var nn=[],zt=O,re=[],E=[];function lt(Se){var ke=E[Se](),Ie=re[Se];if(ke in Ie)return ke;var Ze=[];for(var Pe in Ie)Ze[Ie[Pe]]=Pe;throw r&&r(Se,Ze,ke),null}if(__gwt_isKnownPropertyValue=function(Se,ke){return ke in re[Se]},webModule.__getPropMap=function(){var Se={};for(var ke in re)re.hasOwnProperty(ke)&&(Se[ke]=lt(ke));return Se},webModule.__computePropValue=lt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ye;try{ye=Cb;var et=ye.indexOf(Db);et!=-1&&(zt=parseInt(ye.substring(et+P),$),ye=ye.substring(O,et))}catch(Se){}return webModule.__softPermutationId=zt,C(ye+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(nn,zt,re){"use strict";re.d(zt,{Ax:function(){return et},Ds:function(){return Se},KI:function(){return Ie},SI:function(){return ye},f1:function(){return lt}});var E=re(14185);function lt(Ze){let Pe=!0;if(Ze.length>0){for(let he=0;he<Ze.length;he++)if(Ze[he].compile_success==0||!Ze[he].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function ye(Ze,Pe=""){let he=[];for(let Je=0;Je<Ze.length;Je++){let Ee=Ze[Je],Ct=Pe?`${Pe}/${Ee.name}`:`${Ee.name}`;he.push({title:Ee.name,type:Ee.type,isLeaf:Ee.type!=="tree",key:Ct})}return he}function et(Ze,Pe,he){for(let Je=0;Je<Ze.length;Je++){let Ee=Ze[Je];if(Ee.key===Pe){Ee.children=he;break}Ee.children&&et(Ee.children,Pe,he)}return Ze}function Se(Ze,Pe,he){let Je;return function(){let Ee=this,Ct=arguments,qe=function(){Je=null,he||Ze.apply(Ee,Ct)},Ae=he&&!Je;clearTimeout(Je),Je=setTimeout(qe,Pe),Ae&&Ze.apply(Ee,Ct)}}const ke=!0,Ie=E.Z.API_SERVER},40254:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Je}});var E=re(59301),lt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ye=re(92310),et=re.n(ye),Se=re(29787),ke=re(2859),Ie=re(49317),Ze=re(76406),Pe=(Ee,Ct,qe)=>new Promise((Ae,Ue)=>{var He=kt=>{try{xt(qe.next(kt))}catch(ft){Ue(ft)}},at=kt=>{try{xt(qe.throw(kt))}catch(ft){Ue(ft)}},xt=kt=>kt.done?Ae(kt.value):Promise.resolve(kt.value).then(He,at);xt((qe=qe.apply(Ee,Ct)).next())}),Je=({data:Ee,className:Ct,fullWidth:qe,style:Ae={},onClose:Ue,onOk:He,showFullTools:at,noAssociationId:xt})=>{const kt=(0,E.useRef)(null),ft=(0,E.useRef)(null),it=(0,E.useRef)(null),tt=(0,E.useRef)(null),[Ke,gt]=(0,E.useState)(!1),[Ne,Ve]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(it.current||(it.current=document.createElement("style"),document.head.appendChild(it.current)),Ee!=null&&Ee.visible?(document.body.setAttribute("data-custom","y-hidden"),it.current.innerHTML=" html { overflow-y: hidden; }",Ee!=null&&Ee.src&&ht()):(document.body.removeAttribute("data-custom"),it.current&&(document.head.removeChild(it.current),it.current=null)),()=>{document.body.removeAttribute("data-custom"),it.current&&(document.head.removeChild(it.current),it.current=null)}),[Ee==null?void 0:Ee.visible]);const ht=()=>Pe(void 0,null,function*(){gt(!0),Ve("\u6B63\u5728\u52A0\u8F7D\u4E2D");const se=yield(0,Ze.ZJ)(Ee==null?void 0:Ee.src);kt.current.src="",kt.current.src=se,kt.current.onload=function(){_e()},gt(!1),Ve("")}),Ce=se=>Pe(void 0,null,function*(){gt(!0),Ve("\u6B63\u5728\u4FDD\u5B58\u4E2D");const $e=yield(0,Ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ee.title,file:se.dataUrl}});$e!=null&&$e.id&&!xt?(yield(0,Ie.ZP)(`/api/attachments/${Ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:$e==null?void 0:$e.id,settings:JSON.stringify(se.state)}})).status===0&&He():$e!=null&&$e.id&&He($e),gt(!1),Ve("")}),Re=()=>{const se=document.querySelector('a[href="https://markerjs.com/"]');se&&se.parentNode&&(se.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(De=>{const we=document.querySelector(De.name);we&&we.setAttribute("title",De.title)})},_e=()=>{ft.current=new ke.hP(kt.current),ft.current.targetRoot=tt.current,ft.current.addEventListener("render",Ce),ft.current.addEventListener("beforeclose",Ue),at&&(ft.current.availableMarkerTypes=ft.current.ALL_MARKER_TYPES,ft.current.uiStyleSettings.redoButtonVisible=!0,ft.current.uiStyleSettings.notesButtonVisible=!0,ft.current.uiStyleSettings.zoomButtonVisible=!0,ft.current.uiStyleSettings.zoomOutButtonVisible=!0,ft.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ft.current.uiStyleSettings,ft.current.show(),Ee!=null&&Ee.snapshotData&&ft.current.restoreState(Ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Re()},300)};return E.createElement(E.Fragment,null,(Ee==null?void 0:Ee.visible)&&E.createElement(Se.Z,{spinning:Ke,tip:Ne,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:tt,className:et()(lt.imageDimensions,Ct,qe?lt.fullWidth:""),style:Ae},E.createElement("img",{className:lt.img,ref:kt}))))}},9057:function(nn,zt,re){"use strict";var E=re(59301),lt=re(77019),ye=re(5269),et=re(31691),Se=re(7939),ke=re(35883),Ie=re(74501),Ze=re(48136),Pe=re(59301);const he=(0,E.forwardRef)(({callback:Je,showSaveButton:Ee,value:Ct=""},qe)=>{const Ae=(0,E.useRef)(),Ue=[{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 "}]}]}],He=[{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}`}]}]}],at=ft=>{Ae.current.setValue(Ae.current.getValue()+" "+ft.value+" ")},xt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(lt.Z,{className:Ie.Z.lists,gutter:[10,10]},Ue.map((ft,it)=>Pe.createElement(ye.Z,{flex:"110px",className:Ie.Z.item},Pe.createElement("div",null,Pe.createElement(ke.Z,{value:`$$${ft.value}$$`}),ft.name),Pe.createElement("div",{className:Ie.Z.children},ft.children.map((tt,Ke)=>Pe.createElement("div",{key:Ke},Pe.createElement("h1",null,tt.name),Pe.createElement(lt.Z,{gutter:[10,10]},tt.data.map((gt,Ne)=>Pe.createElement(ye.Z,{key:Ne,onClick:()=>at(gt),className:Ie.Z.diamond},Pe.createElement(ke.Z,{value:"`$$"+gt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(lt.Z,{className:Ie.Z.lists,gutter:[10,10]},He.map((ft,it)=>Pe.createElement(ye.Z,{flex:"110px",className:Ie.Z.item},Pe.createElement("div",null,Pe.createElement(ke.Z,{value:"`$$"+ft.value+"$$`"}),ft.name),Pe.createElement("div",{className:Ie.Z.children},ft.children.map((tt,Ke)=>Pe.createElement("div",{key:Ke},tt.name&&Pe.createElement("h1",null,tt.name),Pe.createElement(lt.Z,{gutter:[10,10]},tt.data.map((gt,Ne)=>Pe.createElement(ye.Z,{key:Ne,onClick:()=>at(gt),className:Ie.Z.diamond},Pe.createElement(ke.Z,{value:"`$$"+gt.value+"$$`"}))))))))))}],kt=()=>{var ft=document.createElement("div");ft.innerHTML=Ae.current.getValue();var it=ft.innerText;return Je&&Je(it),it};return(0,E.useImperativeHandle)(qe,()=>({getData:kt})),Pe.createElement("div",{className:Ie.Z.mathWrap},Pe.createElement(et.default,{defaultActiveKey:"1",items:xt}),Pe.createElement("math-field",{locale:"zh_cn",className:Ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ae,style:{width:800,marginTop:30,fontSize:18}},Ct||""),Ee&&Pe.createElement("div",{className:Ie.Z.button},Pe.createElement(Se.ZP,{size:"large",onClick:kt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});zt.Z=he},90736:function(nn,zt,re){"use strict";var E=re(59301),lt=re(4977),ye=re(7939),et=Object.defineProperty,Se=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,he=(qe,Ae,Ue)=>Ae in qe?et(qe,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):qe[Ae]=Ue,Je=(qe,Ae)=>{for(var Ue in Ae||(Ae={}))Ze.call(Ae,Ue)&&he(qe,Ue,Ae[Ue]);if(Ie)for(var Ue of Ie(Ae))Pe.call(Ae,Ue)&&he(qe,Ue,Ae[Ue]);return qe},Ee=(qe,Ae)=>Se(qe,ke(Ae));const Ct=({img:qe,buttonProps:Ae={},styles:Ue={},customText:He,ButtonText:at,ButtonClick:xt,Buttonclass:kt,ButtonTwo:ft,imgStyles:it,loading:tt=!1,className:Ke=""})=>E.createElement("section",{className:`tc animated fadeIn ${Ke}`,style:Je({color:"#999",margin:"100px auto",visibility:tt?"hidden":"visible"},Ue)},E.createElement("img",{src:qe||lt,style:Ee(Je({},it),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},He||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),at&&E.createElement(ye.ZP,Je({className:kt,onClick:xt},Ae),at),ft&&ft);zt.Z=Ct},86974:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return kt}});var E=re(59301),lt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ye=re(7939),et=re(70557),Se=re(34728),ke=re(25399),Ie=re(76406),Ze=re(84849),Pe=re(90736),he=re(14185),Je=re(52078),Ee=re(59301),Ct=Object.defineProperty,qe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,He=(ft,it,tt)=>it in ft?Ct(ft,it,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[it]=tt,at=(ft,it)=>{for(var tt in it||(it={}))Ae.call(it,tt)&&He(ft,tt,it[tt]);if(qe)for(var tt of qe(it))Ue.call(it,tt)&&He(ft,tt,it[tt]);return ft},xt=(ft,it,tt)=>new Promise((Ke,gt)=>{var Ne=Ce=>{try{ht(tt.next(Ce))}catch(Re){gt(Re)}},Ve=Ce=>{try{ht(tt.throw(Ce))}catch(Re){gt(Re)}},ht=Ce=>Ce.done?Ke(Ce.value):Promise.resolve(Ce.value).then(Ne,Ve);ht((tt=tt.apply(ft,it)).next())}),kt=({editOffice:ft="view",data:it,issaver:tt,onSaver:Ke,theme:gt,type:Ne,filename:Ve,monacoEditor:ht,className:Ce,style:Re,close:_e,onClose:se,hasMask:$e,disabledDownload:De,onImgDimensions:we,showNodata:ct,recordInfo:me})=>{const[ce,je]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Pt,yt]=(0,E.useState)(""),[ve,Te]=(0,E.useState)(),Le=window.ENV==="build"?"/react/build":"",wt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Mt=10*(1024*1024),Fe=(0,E.useRef)();it!=null&&it.startsWith("/api")&&Ne!=="txt"&&(it=he.Z.API_SERVER+it);const At=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();Ve&&ht&&(ht.filename=Ve),(0,E.useEffect)(()=>{var ue,ne;const pe=(ne=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:ne.split(";");pe==null||pe.map(ge=>{let We=ge.split("=");We[0]==="_educoder_session"&&yt(We[1])})},[]),(0,E.useEffect)(()=>{Ne==="office"&&(it.indexOf("bigfilescdn.")>-1||it.indexOf("bigfiles1")>-1?Te({url:it,fileType:At(it),model:it.indexOf("model=edit")?"edit":"view"}):it.indexOf("coze")>-1?Te({url:it,fileType:"doc",model:"view"}):ae())},[Ne,it]);function ut(ue){return xt(this,null,function*(){ue.data.type==="pdfdata"&&(Ke(ue.data.data),window.removeEventListener("message",ut,!1)),console.log("mess---:",ue.data)})}const ae=()=>xt(void 0,null,function*(){console.log("data:",it);let ue=it;it.startsWith("http")||(ue=location.origin+ue);let ne=new URL(ue).pathname.split("/").pop();const pe=yield(0,Ze.gJ)({attachment_id:ne});pe.url=wt+pe.url,Te(pe)}),te=()=>{if(it.startsWith("http")||it.startsWith("blob:")){ee();return}(0,Ie.Sv)(Ve||"educoder",it,Ve)},ee=()=>{me&&(0,Je.fc)({id:me==null?void 0:me.id,watch_type:1,course_id:me==null?void 0:me.course_id}),(0,Ie.Nd)(Ve||"educoder",decodeURIComponent(it))};(0,E.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ue=>{var ne;((ne=ue==null?void 0:ue.data)==null?void 0:ne.type)==="closePop"&&se()};return Ee.createElement("div",{style:at({},Re||{}),className:`${$e&&lt.bgBlack} ${Ne?lt.wrp:"hide"}`},!!Ne&&_e&&Ee.createElement("div",{id:"closePop",className:lt.close,ref:Fe},!!we&&Ee.createElement(ke.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Fe.current},Ee.createElement("span",{onClick:()=>{se(),we()}},Ee.createElement("i",{className:"icon-yulanpizhu"}))),!De&&window.parent===window&&Ee.createElement(ke.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Fe.current},Ee.createElement("span",{onClick:ee},Ee.createElement("i",{className:"icon-quxiaozhiding"}))),tt&&Ee.createElement(ke.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Fe.current},Ee.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",ut,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},Ee.createElement("i",{className:"icon-baocun"}))),Ee.createElement(ke.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Fe.current},Ee.createElement("span",{className:"",onClick:()=>{se()}},Ee.createElement("i",{className:"icon-guanbi1"})))),Ee.createElement("div",{className:`${lt[Ce]} ${Ce} ${lt.monaco} ${Ne==="txt"?"show":"hide"}`},Ne==="txt"&&Ee.createElement(Ee.Fragment,null,Ee.createElement(Se.ZP,at({},ht)))),Ne==="audio"&&Ee.createElement("audio",{controls:!0,src:`${(it==null?void 0:it.indexOf("http://"))>-1||(it==null?void 0:it.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${it}`,autoPlay:!0}),Ne==="video"&&Ee.createElement(Ee.Fragment,null,(it==null?void 0:it.indexOf("http"))>-1?Ee.createElement("video",{controls:!0,src:`${it}`,autoPlay:!0}):Ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${it}`,autoPlay:!0})),Ne==="office"&&ve&&Ee.createElement("iframe",{src:`${Le}/office.html?key=${ve.key}&url=${btoa(ve.url)}&callbackUrl=${wt+(ve.callbackUrl||"")}&fileType=${ve.fileType}&title=${ve.title||""}&model=${ft}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!De}`}),Ne==="html"&&Ee.createElement("iframe",{src:it+"&disposition=inline"}),Ne==="pdf"&&Ee.createElement("iframe",{id:"pdfiframe",src:`${Le}/js/pdf/index.html?filename=${Ve||"educoder.pdf"}&url=${encodeURIComponent(it)}&disabledDownload=${!!De}&model=${ft}`}),Ne==="image"&&Ee.createElement("img",{src:`${(it==null?void 0:it.indexOf("http://"))>-1||(it==null?void 0:it.indexOf("https://"))>-1?"":"data:image/png;base64,"}${it}`}),(Ne==="other"||Ne==="download")&&Ee.createElement(Ee.Fragment,null,ct?Ee.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ee.createElement(ye.ZP,{icon:Ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:De},"\u4E0B\u8F7D")}):Ee.createElement(ye.ZP,{type:"primary",size:"middle",onClick:te,disabled:De},Ee.createElement(et.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ne==="flowChart"&&Ee.createElement("div",{className:"embed"},Ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${it||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(nn,zt,re){"use strict";re.d(zt,{z:function(){return ht},Z:function(){return Ce}});var E=re(59301),lt=re(46214),ye=re(20047),et=re(64018),Se=re(16471),ke=re(14185),Ie=re(76406),Ze=re(15342),Pe=re(44104),he=re(7939),Je=re(1012),Ee=re(86974),Ct=re(59301),Ae=({html:Re})=>{const _e=(0,E.useRef)(null),se=(0,E.useRef)(null),$e=`.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,E.useEffect)(()=>{const De=_e.current.attachShadow({mode:"open"});se.current=document.createElement("div"),se.current.className="markdown-body",se.current.innerHTML=Re,De.appendChild(se.current);const we=document.createElement("style");return we.textContent=$e,De.appendChild(we),()=>{De.innerHTML=""}},[]),(0,E.useEffect)(()=>{se.current&&(se.current.innerHTML=Re)},[Re]),Ct.createElement("div",{ref:_e})};function Ue(Re){const _e=["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"],se=new RegExp(`\\b(${_e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),$e=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Re.replace(se,"").replace($e,"").trim()}var He={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},at=Object.defineProperty,xt=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,it=(Re,_e,se)=>_e in Re?at(Re,_e,{enumerable:!0,configurable:!0,writable:!0,value:se}):Re[_e]=se,tt=(Re,_e)=>{for(var se in _e||(_e={}))kt.call(_e,se)&&it(Re,se,_e[se]);if(xt)for(var se of xt(_e))ft.call(_e,se)&&it(Re,se,_e[se]);return Re};const Ke="@\u2581\u2581@",gt="@\u2581@",Ne=/<pre[^>]*>/g;function Ve(Re){let _e=document.createElement("div");return _e.innerHTML=Re,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const ht=(Re,_e)=>{Re=Re||"";const se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,we=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?Re.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(se,(ct,me,ce,je,Pt,yt,ve)=>{const Te=me||je||yt,Le=ce||Pt||ve||"?";return ke.Z.API_SERVER+"/api/attachments/"+Te+Le+"&t="+(0,Ie.Jn)(Te,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Re=Re.replace(we,(ct,me,ce,je,Pt,yt,ve)=>{const Te=me||je||yt,Le=ce||Pt||ve||"?";return ke.Z.API_SERVER+"/attachments/download/"+Te+Le+"&t="+(0,Ie.Jn)(Te,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replace(se,(ct,me,ce,je,Pt,yt,ve)=>{const Te=me||je||yt,Le=ce||Pt||ve||"?";return ke.Z.API_SERVER+"/api/attachments/"+Te+Le+"&t="+(0,Ie.Jn)(Te,Date.now())+(ct.indexOf(")")>-1?")":"&")}).replace($e,(ct,me,ce,je,Pt)=>{const yt=me||je,ve=ce||Pt||"";return'"'+ke.Z.API_SERVER+"/api/attachments/"+yt+ve+yt+ve+"&t="+(0,Ie.Jn)(yt,Date.now())}).replace(De,(ct,me,ce,je,Pt)=>{const yt=me||je,ve=ce||Pt||"";return"("+ke.Z.API_SERVER+"/files/uploads/"+yt+ve+yt+ve+"&t="+(0,Ie.Jn)(yt,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,`
`),Re)};var Ce=({value:Re="",edit:_e=!1,className:se,showTextOnly:$e,showLines:De,style:we={},stylesPrev:ct={},highlightKeywords:me,showProgramFill:ce,isProgramFill:je,disabledFill:Pt=!1,programFillValue:yt,openEditor:ve=()=>{},onFillChange:Te=pt=>{},onFillBlur:Le=()=>{},onFillFocus:wt=()=>{}})=>{let pt=Ue(String(Re||""));const Mt=(0,E.useRef)(),Fe=(0,E.useRef)(),[At,ut]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),ue=(0,E.useRef)("a"+(0,Je.Z)()),ne={},pe=Ot=>/<style[\s\S]*?>/i.test(Ot||""),ge=(Ot,Yt,Vt)=>{const ze=document.createElement(Ot===gt?"input":"textarea");ze.style.width="100%",ze.style.height=Ot===gt?"40px":"151px",ze.rows=5,ze.spellcheck=!1,ze.name="edu-program-fill",ze.placeholder="\u8BF7\u8F93\u5165",ze.dataset.id=Yt;const dt=Object.keys(ne).length;return ne[dt]=ze,`<span class="edu-program-fill-wrap ${Ot===gt?"":"show"}" style="width:${Ot===gt?"600px":"100%"}" title=${Vt||""}><span>${ze.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function We(Ot){return Ot=Ot.replace(/!\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(/\[.*?\]\(.*?\)/g,""),Ot=Ot.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ot=Ot.replace(/<embed.*?>/g,""),Ot=Ot.replace(/<img.*?>/g,""),Ot=Ot.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ot=Ot.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ot=Ot.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ot=Ot.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ot}const xe=Ot=>!$e&&pe(pt)?Ot:Ot.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Yt,Vt){let ze=Vt.replace(/(\n|\r)/g,"").split("}"),dt=[];return ze.map(Nt=>{Nt!=""&&dt.push(`.${ue.current} ${Nt}`)}),`<style>${dt.join("}")}</style>`}),Ge=(0,E.useMemo)(()=>{(0,ye.Iy)();try{const ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,dt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Nt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wt=/\(\/attachments\/download\//g;pt=pt.replace(Wt,"("+ke.Z.API_SERVER+"/attachments/download/").replace(ze,"("+ke.Z.API_SERVER+"/api/attachments/").replace(dt,'"'+ke.Z.API_SERVER+"/api/attachments/").replace(Nt,'"'+ke.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,`
`),Mt.current.style.display="none"}catch(ze){}if(ce){let ze=-1;return pt=pt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(dt,Nt,Wt){var Be;return++ze,ge(dt,ze,(Be=yt==null?void 0:yt[ze])==null?void 0:Be.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${xe(pt||"")}</pre>`}let Ot=xe(pt);Ot=(0,ye.ZP)(Ot);const Yt=(0,ye.ez)();pt.match(/\[TOC\]/)&&(Ot=Ot.replace("<p>[TOC]</p>",(0,ye.Qv)()),(0,ye.Iy)()),Ot=Ot.replace(/(__special_katext_id_\d+__)/g,(ze,dt)=>{const{type:Nt,expression:Wt}=Yt[dt];return(0,Ze.renderToString)(Ve(Wt)||"",{displayMode:Nt==="block",throwOnError:!1,output:"html"})}),Ot=Ot.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ye.AL)();const Vt=document.createElement("div");if(Vt.innerHTML=Ot,$e)return Vt.innerText;if(me){const ze=me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ht(Vt,ze),Vt.innerHTML}return setTimeout(()=>tn(),500),Vt.innerHTML},[pt,me]);(0,E.useEffect)(()=>{Zt.current&&Zt.current.querySelectorAll(["input","textarea"]).forEach(Yt=>{Yt.oninput=nt,Yt.onblur=St,Yt.onfocus=mt})},[ee]),(0,E.useEffect)(()=>{var Ot,Yt,Vt,ze,dt;if(yt!=null&&yt.length)try{const Nt=Zt.current.querySelectorAll(".edu-program-fill-score"),Wt=Zt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Be,rt]of Wt.entries())rt.value=((Ot=yt==null?void 0:yt[Be])==null?void 0:Ot.value)||"",((Yt=yt==null?void 0:yt[Be])==null?void 0:Yt.type)==="warning"?rt.className="program-fill-warning":((Vt=yt==null?void 0:yt[Be])==null?void 0:Vt.type)==="success"?rt.className="program-fill-success":rt.className="";for(const[Be,rt]of Nt.entries())rt.innerHTML=(ze=yt==null?void 0:yt[Be])!=null&&ze.score?`${(dt=yt==null?void 0:yt[Be])==null?void 0:dt.score}\u5206`:"";oe(yt)}catch(Nt){console.log(Nt,"error")}},[yt]);const nt=Ot=>{ee[Ot.target.dataset.id]=ee[Ot.target.dataset.id]||{},ee[Ot.target.dataset.id].value=Ot.target.value,oe([...ee]),Te(ee,Ot.target.dataset.id)},St=Ot=>{ee[Ot.target.dataset.id]=ee[Ot.target.dataset.id]||{},ee[Ot.target.dataset.id].value=Ot.target.value,oe([...ee]),Le(ee,Ot.target.dataset.id)},mt=Ot=>{ee[Ot.target.dataset.id]=ee[Ot.target.dataset.id]||{},ee[Ot.target.dataset.id].value=Ot.target.value,oe([...ee]),wt(ee,Ot.target.dataset.id)};function Ht(Ot,Yt){return Ot.childNodes.forEach(Vt=>{var ze;if(Vt.childNodes.length>0)Ht(Vt,Yt);else if(Vt.nodeName!=="IMG")if(Vt.innerHTML)Vt.innerHTML=(ze=Vt.innerHTML)==null?void 0:ze.replace(new RegExp(Yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const dt=document.createElement("span");dt.innerHTML=Vt.textContent.replace(new RegExp(Yt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Vt.replaceWith(dt)}})}const Zt=(0,E.useRef)();ye.jb.WebkitLineClamp=De,De&&(we=tt(tt({},we),ye.jb));function $t(Ot){let Yt=Ot.target;if(Yt.tagName.toUpperCase()==="A"){let Vt=Yt.getAttribute("href");if(Vt.indexOf("office")>-1)Ot.preventDefault(),ut(Vt),te("office");else if(Vt.indexOf("application/pdf")>-1)Ot.preventDefault(),ut(Vt),te("pdf");else if(Vt.indexOf("text/html")>-1)Ot.preventDefault(),ut(Vt),te("html");else if(Vt.startsWith("#")){Ot.preventDefault();let ze=document.getElementById(Vt.replace("#",""));ze&&ze.scrollIntoView(!0)}}}const tn=()=>{var Ot;const Yt=(Ot=Zt.current)==null?void 0:Ot.querySelectorAll("video");Yt==null||Yt.forEach(Vt=>{if(Vt.oncontextmenu=()=>!1,Vt.src.indexOf(".m3u8")>-1&&!Vt.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var ze=new Se.ZP;ze.loadSource(Vt.src),ze.attachMedia(Vt)}}})};(0,E.useEffect)(()=>{if(Zt.current&&Ge&&Ge.match(Ne)&&window.PR.prettyPrint(),Zt.current)return Zt.current.addEventListener("click",$t),()=>{var Ot;(Ot=Zt.current)==null||Ot.removeEventListener("click",$t),(0,ye.AL)(),(0,ye.Iy)()}},[Ge,Zt.current,$t]);const Xt=Ot=>{Ot.target.nodeName==="IMG"&&Ot.target.className.indexOf("draw-flowchart")>-1?(Mt.current.style.zIndex=1,Mt.current.style.display="flex",Mt.current.style.width=Ot.target.clientWidth+"px",Mt.current.style.height=Ot.target.clientHeight+"px",Mt.current.style.top=Ot.target.offsetTop+"px",Mt.current.style.left=Ot.target.offsetLeft+"px",Ot.target.id&&(Fe.current=Ot.target.id)):Mt.current.style.display="none"},rn=()=>{Mt.current.style.display="none"};return(0,E.useEffect)(()=>{var Ot;const Yt=Vt=>{Vt.preventDefault(),Vt.clipboardData.setData("text",window.getSelection().toString())};return(Ot=Zt.current)==null||Ot.addEventListener("copy",Yt),()=>{var Vt;(Vt=Zt.current)==null||Vt.removeEventListener("copy",Yt)}},[Zt.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:rn},$e&&E.createElement("div",{ref:Zt,className:`${He.mdBody} `},Ge),!$e&&!pe(Ge)&&E.createElement("div",{ref:Zt,style:tt({},we),onMouseOver:Xt,className:`${se||""} ${Pt?"disabled-fill":""} markdown-body ${He.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ge}}),!$e&&pe(Ge)&&E.createElement(Ae,{html:Ge}),E.createElement("div",{ref:Mt,className:`${He.button} ${_e?"":He.previewFlowChart}`},E.createElement(Pe.Z,null,E.createElement(he.ZP,{onClick:()=>{_e?ve(Fe.current):(ut(Fe.current),te("flowChart"))}},_e?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(Ee.Z,{close:!0,data:At,type:At!=null&&At.length?ae:"",style:tt({},ct),onClose:()=>ut("")}))}},28267:function(nn,zt,re){"use strict";re.d(zt,{h:function(){return ft}});var E=re(59301),lt=re(82326),ye=re(28284),et=re(7939),Se=re(89780),ke=re.n(Se),Ie=re(88319),Ze=re(94896),Pe=Object.defineProperty,he=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ae=(it,tt,Ke)=>tt in it?Pe(it,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):it[tt]=Ke,Ue=(it,tt)=>{for(var Ke in tt||(tt={}))Ct.call(tt,Ke)&&Ae(it,Ke,tt[Ke]);if(Ee)for(var Ke of Ee(tt))qe.call(tt,Ke)&&Ae(it,Ke,tt[Ke]);return it},He=(it,tt)=>he(it,Je(tt));const at=lt.default.Option,xt={labelCol:{span:4},wrapperCol:{span:20}},kt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};zt.Z=({callback:it,onCancel:tt})=>{const[Ke,gt]=(0,E.useState)("python");function Ne(ht){gt(kt[ht][1])}function Ve(ht){it(ht)}return E.createElement(ye.default,He(Ue({},xt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ve,style:{width:500}}),E.createElement(ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(lt.default,{getPopupContainer:ht=>ht.parentNode,onChange:Ne},Object.keys(kt).map(ht=>E.createElement(at,{key:ht,value:ht},kt[ht][0])))),E.createElement(ye.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(ft,{mode:Ke})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(et.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(et.ZP,{type:"ghost",onClick:tt},"\u53D6\u6D88")))};function ft({value:it,onChange:tt,mode:Ke,options:gt={}}){const Ne=(0,E.useRef)(),[Ve,ht]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Ve){let Ce=function(Re){const _e=Re.getValue();tt&&tt(_e)};return Ve.on("change",Ce),()=>{Ve.off("change",Ce)}}},[Ve,tt]),(0,E.useEffect)(()=>{Ve&&Ve.setOption("mode",Ke)},[Ve,Ke]),(0,E.useEffect)(()=>{Ve&&(it!==Ve.getValue()||it==="")&&setTimeout(()=>{Ve.setValue(it||"")},300)},[Ve,it]),(0,E.useEffect)(()=>{if(Ne.current&&!Ve){const Ce=ke().fromTextArea(Ne.current,Ue({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},gt));ht(Ce)}},[Ne.current,Ve]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:Ne}))}},39116:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Rt}});var E=re(59301),lt=re(44283),ye=re(89780),et=re.n(ye),Se=re(76374),ke=re(88319),Ie=re(6313),Ze=re(25717),Pe=re(99498),he=re(25419),Je=re(67549),Ee=re(35883),Ct=({value:Et="",className:en,showTextOnly:Jt,showLines:qt,style:gn={}})=>{const wn=(0,E.useMemo)(()=>"",[Et]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:wn}}))},qe=Object.defineProperty,Ae=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,kt=(Et,en,Jt)=>en in Et?qe(Et,en,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Et[en]=Jt,ft=(Et,en)=>{for(var Jt in en||(en={}))at.call(en,Jt)&&kt(Et,Jt,en[Jt]);if(He)for(var Jt of He(en))xt.call(en,Jt)&&kt(Et,Jt,en[Jt]);return Et},it=(Et,en)=>Ae(Et,Ue(en));let tt=[{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 Ke({onActionCallback:Et,title:en,icon:Jt,actionName:qt,className:gn="",children:wn}){function Sn(){Et(qt)}return E.createElement("a",{title:en,className:gn,onClick:Sn},E.createElement("i",{className:`${Jt}`}),wn)}var gt=({watch:Et,showNullButton:en,showNullProgramButton:Jt,onActionCallback:qt,fullScreen:gn,insertTemp:wn,hidetoolBar:Sn,extraUse:Mn})=>{const kn=[...tt,{title:`${Et?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Et?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&kn.map((Wn,An)=>E.createElement("li",{key:An},Wn.actionName?E.createElement(Ke,it(ft({},Wn),{onActionCallback:qt})):E.createElement("span",{className:"v-line"}))),en?E.createElement("li",null,E.createElement(Ke,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qt},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Jt?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qt},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qt},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,wn&&E.createElement("li",null,E.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wn}`,onActionCallback:qt},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Mn&&E.createElement("li",null,Mn),E.createElement("li",{className:"btn-full-screen"},E.createElement(Ke,{icon:`${gn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:gn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qt})))},Ne=re(88487),Ve=re(28284),ht=re(37568),Ce=re(7939),Re=Object.defineProperty,_e=Object.defineProperties,se=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ct=(Et,en,Jt)=>en in Et?Re(Et,en,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):Et[en]=Jt,me=(Et,en)=>{for(var Jt in en||(en={}))De.call(en,Jt)&&ct(Et,Jt,en[Jt]);if($e)for(var Jt of $e(en))we.call(en,Jt)&&ct(Et,Jt,en[Jt]);return Et},ce=(Et,en)=>_e(Et,se(en));const je={labelCol:{span:4},wrapperCol:{span:20}};var Pt=({callback:Et,onCancel:en})=>{function Jt(qt){Et(qt)}return E.createElement(Ve.default,ce(me({},je),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt,style:{width:500}}),E.createElement(Ve.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(ht.default,null)),E.createElement(Ve.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(ht.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ce.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},yt=re(28267),ve=re(53332),Te=re(62957),Le=re(77019),wt=re(40254),pt=re(59301),Mt=({callback:Et,onCancel:en})=>{const Jt=document.createElement("canvas"),qt=Jt.getContext("2d");Jt.width=1e3,Jt.height=800,qt.fillStyle="#ffffff",qt.fillRect(0,0,Jt.width,Jt.height);const gn=Jt.toDataURL("image/png");return pt.createElement(Te.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},pt.createElement(Le.Z,{style:{height:"100vh"}},pt.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gn,visible:!0,title:String(Date.now())},onOk:wn=>{Et({src:wn.url})},onClose:en})))},Fe=re(36207),At=re(5269),ut=re(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=re(59301),oe=(0,E.forwardRef)(({onCancel:Et,editImgId:en,callback:Jt},qt)=>{let gn=(0,E.useRef)(),wn=(0,E.useRef)(),Sn=(0,E.useRef)(),Mn=(0,E.useRef)(!1);const kn=(0,E.useRef)(!1);console.log("ref:",qt);const[Wn,An]=(0,E.useState)(0),[Bt,Kt]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{An(1)},[]),(0,E.useImperativeHandle)(qt,()=>({setHeight:Kt})),te.createElement("div",{ref:kn,className:"body-overflow-initial"},te.createElement(Fe.Z,{width:"100vw",height:Bt,footer:null,closable:!0,placement:"bottom",open:!!Wn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(xn=>{Jt({src:`/api/attachments/${xn}`,id:xn})})},title:te.createElement(Le.Z,{align:"middle"},te.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(At.Z,{onClick:()=>{Kt(Bt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(At.Z,{onClick:()=>{window.saveDrawData(xn=>{if(xn===null){ut.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}ut.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Jt({src:`/api/attachments/${xn}`,id:xn,disabledClose:!0})})}},te.createElement(Ce.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${en||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:wn})))}),ue=re(14185),ne=re(47889),pe=re(4875);const ge=ne.ZP.Group,We={margin:"0 8px"};var xe=({callback:Et,onCancel:en})=>{function Jt(qt){Et(qt)}return E.createElement(Ve.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Jt},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:We},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:We},"\u884C\u6570"),E.createElement(Ve.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(pe.Z,null)),E.createElement("span",{style:We},"\u5217\u6570"),E.createElement(Ve.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(pe.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:We},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(Ve.default.Item,{name:"align"},E.createElement(ge,null,E.createElement(ne.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(ne.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(ne.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(ne.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ce.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},Ge=re(58755),nt=re(84915),St=re.n(nt),Ht=(0,E.forwardRef)(({use3d:Et,width:en,height:Jt,callback:qt,showSaveButton:gn},wn)=>{const Sn=(0,E.useRef)(),Mn=(0,E.useRef)(),[kn,Wn]=(0,E.useState)(!1),An=(0,E.useRef)({id:Sn,appName:"graphing",width:en||1e3,height:Jt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{Mn.current=new(St())(An.current,!0),window.onload=function(){Mn.current.inject("applet_container")}},[]);const Bt=()=>{var Kt=window.ggbApplet.getPNGBase64(1,!0,72);return qt&&qt(Kt),Kt};return(0,E.useEffect)(()=>{An.current.appName=kn?"3D":"graphing",Mn.current.inject("applet_container")},[kn]),(0,E.useEffect)(()=>{Wn(Et)},[Et]),(0,E.useImperativeHandle)(wn,()=>({getImgData:Bt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),E.createElement(Le.Z,{align:"middle"},E.createElement(At.Z,{flex:1},E.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:kn,onChange:Kt=>Wn(Kt)})),E.createElement(At.Z,null,E.createElement(Ce.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Zt=re(9057);const $t="link",tn="upload-image",Xt="add-flowchart",rn="draw-image",Ot="add-flowchart",Yt="code-block",Vt="add-table",ze="------------",dt={default:ze,left:`:${ze}`,center:`:${ze}:`,right:`${ze}:`};var Nt=re(79006),Wt=re(76406);function Be(){}let rt=0;const bt=1e4,Dt="\u2581",Ut="@\u2581\u2581@",ln="@\u2581@",In=`
**\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`,Pn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function on(Et){return/^\d+$/.test(Et)?`${Et}px`:Et}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Gt={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},Lt={[$t]:"\u6DFB\u52A0\u94FE\u63A5",[Yt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tn]:"\u6DFB\u52A0\u56FE\u7247",[rn]:"\u6DFB\u52A0\u753B\u56FE",[Xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Vt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Rt=({defaultValue:Et="",onChange:en,width:Jt="100%",height:qt=400,miniToolbar:gn=!1,isFocus:wn=!1,watch:Sn,insertTemp:Mn,mode:kn="markdown",id:Wn="markdown-editor-id",showResizeBar:An=!1,noStorage:Bt=!1,showNullButton:Kt=!1,showNullProgramButton:xn=!1,hidetoolBar:hn=!1,fullScreen:Xe=!1,onBlur:st,onCMBeforeChange:Oe,onFullScreen:Ye,className:Me="",disablePaste:Qe=!1,disabled:It=!1,disabledFill:an=!1,placeholder:un="",values:vn="",extraUse:Qt,onAddBlank:Ft})=>{const[Tt,fn]=(0,E.useState)(null),[Tn,Dn]=(0,E.useState)(Et),[Bn,Xn]=(0,E.useState)(Sn),[Qn,Jn]=(0,E.useState)(Xe),[Zn,Fn]=(0,E.useState)(""),[Hn,Un]=(0,E.useState)(0),[ur,qn]=(0,E.useState)(qt),[lr,ir]=(0,E.useState)(!1),[er,tr]=(0,E.useState)(0),[gr,mr]=(0,E.useState)(0),cr=(0,E.useRef)(),vr=(0,E.useRef)(),Cr=(0,E.useRef)(),or=(0,E.useRef)(),dr=(0,E.useRef)(),Gn=(0,E.useRef)(),Sr=(0,lt.useDispatch)();(0,E.useEffect)(()=>{const mn=window.scrollY||window.pageYOffset;Dn(vn),Tt==null||Tt.setValue(vn),window.scrollTo(0,mn)},[vn]),(0,E.useEffect)(()=>{Ye==null||Ye(Qn)},[Qn]),(0,E.useEffect)(()=>{if(cr.current){let mn=function(Nn,Rn){var rr;if(Qe){Rn.preventDefault();return}const Pr=Rn.clipboardData;if(Pr){const br=Pr.types.toString(),Mr=Pr.items;if(br==="Files"||Pr.types.indexOf("Files")>-1){if(Rn.preventDefault(),kn=="stex")return;try{let Or=Mr[1];((rr=Mr[0])==null?void 0:rr.kind)==="file"&&(Or=Mr[0]);const Br=Or.getAsFile(),$r=Br.name.split(".").pop();(0,ve.I)(Br,Tr=>{var Zr,ti,Oi;Tr.id?((Zr=Br==null?void 0:Br.type)==null?void 0:Zr.indexOf("image"))>-1?yn.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?yn.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?yn.replaceSelection(`<a href="/api/attachments/${Tr.id}?type=${Br.type}&disposition=inline" target="_blank">${Br.name}</a>`):Pn.includes($r)?yn.replaceSelection(`<a href="/api/attachments/${Tr.id}?type=office&disposition=inline" target="_blank">${Br.name}</a>`):yn.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){ut.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const yn=et().fromTextArea(cr.current,{mode:kn,lineNumbers:!gn,lineWrapping:!0,value:Et,autoCloseTags:!0,autoCloseBrackets:!0});return yn.on("keyup",function(Nn,Rn){Rn.keyCode===8&&(Nn.getValue()==""?yn.setOption("placeholder",un):yn.setOption("placeholder",null))}),yn.on("keydown",function(Nn,Rn){if(Rn.keyCode===8){var rr=Hr(Nn);rr&&Rn.preventDefault()}}),wn&&yn.focus(),yn.on("paste",mn),It&&yn.on("beforeChange",function(Nn,Rn){(Rn.origin==="paste"||Rn.origin==="+input")&&Rn.cancel()}),fn(yn),()=>{yn.off("paste",mn)}}},[]);const Rr=(0,E.useCallback)(()=>{if(vr.current)try{}catch(mn){console.log(mn,"---- to set md editor body height")}},[ur,vr,Qn]);(0,E.useEffect)(()=>{function mn(){let yn=new Se.Z(Nn=>{for(let Rn of Nn)(Rn.target.offsetHeight>0||Rn.target.offsetWidth>0)&&(Rr(),Tt.setSize("100%","100%"),Tt.refresh())});return yn.observe(cr.current.parentElement),yn}if(Tt){const yn=mn();return()=>{var Nn,Rn;(Nn=cr.current)!=null&&Nn.parentElement&&yn.unobserve((Rn=cr.current)==null?void 0:Rn.parentElement)}}},[Tt,Rr]),(0,E.useEffect)(()=>{if(Tt){let mn=[];for(const[yn,Nn]of Object.entries(Gt)){let Rn={[yn]:()=>{Er(Nn)}};mn.push(Rn),Tt.addKeyMap(Rn)}return()=>{for(let yn of mn)Tt.removeKeyMap(yn)}}},[Tt]),(0,E.useEffect)(()=>{Xe!==Qn&&Jn(Xe)},[Xe]),(0,Nt.Z)(()=>{if(!Bt&&Hn>0){let mn=new Date().getTime(),yn=window.sessionStorage.getItem(Wn);mn>=Hn+bt&&(!yn||yn!==Tn)&&(window.sessionStorage.setItem(Wn,Tn),ir(!0))}},bt),(0,E.useEffect)(()=>{Xn(Sn)},[Tt,Sn]),(0,E.useEffect)(()=>{Tt&&wn&&Tt.focus()},[Tt,wn]),(0,E.useEffect)(()=>{if(Bn&&Tt){let mn=function(Nn){let Rn=Nn.target;if(or.current){let rr=Rn.scrollTop/Rn.scrollHeight;or.current.scrollTop=or.current.scrollHeight*rr}};const yn=Tt.getScrollerElement();return yn.addEventListener("scroll",mn),()=>{yn.removeEventListener("scroll",mn)}}},[Tt,Bn]),(0,E.useEffect)(()=>{if(Tt&&Oe){let mn=function(yn,Nn){Oe(yn,Nn)};return Tt.on("beforeChange",mn),()=>{Tt.off("beforeChange",mn)}}},[Tt,Oe]),(0,E.useEffect)(()=>{if(Tt&&st){let mn=function(){st(Tt.getValue())};return Tt.on("blur",mn),()=>{Tt.off("blur",mn)}}},[Tt,st]);function Hr(mn,yn){var Nn=mn.getDoc(),Rn=Nn.getCursor(),rr=Nn.getLine(Rn.line),Pr=rr.charAt(Rn.ch-1),br=rr.lastIndexOf("@\u2581@",Rn.ch),Mr=rr.lastIndexOf("@\u2581\u2581@",Rn.ch),Or=br>Mr?br:Mr,Br=br>Mr?3:4;if(Ut.indexOf(Pr)===-1)return null;if(console.log("change1:",yn,mn,rr,Rn,Or,br,Mr,Pr),Or>=0&&Rn.ch-Or<5){var $r=Or+Br;return Nn.replaceRange("",{line:Rn.line,ch:Or},{line:Rn.line,ch:$r}),{line:Rn.line,ch:$r}}return null}(0,E.useEffect)(()=>{if(Tt){let mn=function(yn,Nn){const Rn=yn.getValue();Dn(Rn),Un(new Date().getTime()),yn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),en&&(xn?en(Rn,En(Rn)):en(Rn))};return Tt.on("change",mn),()=>{Tt.off("change",mn)}}},[Tt,en]),(0,E.useEffect)(()=>{if(Tt)if(Et==null)Tt.setValue(""),Dn("");else{const mn=window.scrollY||window.pageYOffset;Et!==Tt.getValue()&&(Tt.setValue(Et),Dn(Et),Tt.setCursor(It?1:Tt.lineCount(),0),window.scrollTo(0,mn))}},[Tt,Et]);const Er=(0,E.useCallback)(mn=>{const yn=Tt.getCursor(),Nn=Tt.getSelection();let Rn=Nn.split(`
`);switch(mn){case"bold":return Tt.replaceSelection("**"+Nn+"**"),Nn===""&&Tt.setCursor(yn.line,yn.ch+2),Tt.focus();case"italic":return Tt.replaceSelection("*"+Nn+"*"),Nn===""&&Tt.setCursor(yn.line,yn.ch+1),Tt.focus();case"code":return Tt.replaceSelection("`"+Nn+"`"),Nn===""&&Tt.setCursor(yn.line,yn.ch+1),Tt.focus();case"inline-latex":return(0,Wt.Ye)(Sr)?void 0:(Fn("inline-latex"),Tt.focus());case"latex":return Tt.replaceSelection("```latex\n"+Nn+"\n```"),Tt.setCursor(yn.line+1,Nn.length+1),Tt.focus();case"line-break":return Tt.replaceSelection(`<br/>
`),Tt.focus();case"list-ul":return Nn===""?Tt.replaceSelection("- "+Nn):Tt.replaceSelection(Rn.map(rr=>rr===""?"":`- ${rr}`).join(`
`)),Tt.focus();case"list-ol":return Nn===""?Tt.replaceSelection("1. "+Nn):Tt.replaceSelection(Rn.map((rr,Pr)=>rr===""?"":`${Pr+1}. ${rr}`).join(`
`)),Tt.focus();case"add-null-ch":Ft==null||Ft();return;case"add-signal":return Nn===""&&Tt.setCursor(yn.line,yn.ch),Tt.replaceSelection(ln),Tt.focus();case"add-multiple":return Nn===""&&Tt.setCursor(yn.line,yn.ch),Tt.replaceSelection(Ut),Tt.focus();case"inster-template-1":return Nn===""&&Tt.setCursor(yn.line,yn.ch),Tt.replaceSelection(In),Tt.focus();case"eraser":return Tt.setValue(""),Tt.focus();case"trigger-watch":return Xn(!Bn),Tt.focus();case"trigger-full-screen":return Jn(!Qn),Tt.focus();case $t:Fn($t);return;case Yt:Fn(Yt);return;case tn:Fn(tn);return;case rn:Fn(rn);return;case"maths-latex":if((0,Wt.Ye)(Sr))return;Fn("maths-latex");return;case Xt:dr.current="",sessionStorage.removeItem("file_id"),Fn(Xt);return;case Vt:Fn(Vt);return;default:throw new Error}},[Tt,Bn,Qn]),Ar=(0,E.useCallback)((mn,yn)=>{var Nn,Rn,rr,Pr,br,Mr;mn!=null&&mn.disabledClose||Fn("");const{src:Or,alt:Br,id:$r}=mn||{};switch(Zn){case $t:const{title:Fi,link:xi}=mn;return Tt.replaceSelection(`[${Fi}](${xi})`),Tt.focus();case Yt:const{language:mi,content:Xi}=mn;return Tt.replaceSelection(["```"+mi,Xi,"```"].join(`
`)),Tt.focus();case"maths-latex":for(var Tr=atob(mn),Zr=new Uint8Array(Tr.length),ti=0;ti<Tr.length;ti++)Zr[ti]=Tr.charCodeAt(ti);var Oi=new Blob([Zr],{type:"image/png"});return(0,ve.I)(Oi,vi=>{vi.id?Tt.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")}),Tt.focus();case"inline-latex":return(0,Wt.Ye)(Sr)?void 0:(Tt.replaceSelection("`$$"+mn+"$$`"),Tt.focus());case Ot:return $r?(Tt.getValue().indexOf(Or)===-1?Tt.replaceSelection(`<center><img id="${$r}" width="80%" src="${Or}" class="draw-flowchart" alt="${Br||""}" /></center>`):document.getElementById($r).src=ue.Z.API_SERVER+Or+"?t="+Date.now(),Tt.focus()):void 0;case tn:case rn:const Lr=yn,to=(rr=(Rn=(Nn=Lr==null?void 0:Lr.name)==null?void 0:Nn.split("."))==null?void 0:Rn.pop)==null?void 0:rr.call(Rn);return((Pr=Lr==null?void 0:Lr.type)==null?void 0:Pr.indexOf("image"))>-1||!(Lr!=null&&Lr.type)?Lr!=null&&Lr.align||Lr!=null&&Lr.width?Tt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${Or}" alt="${Br||""}" /></p>`):Tt.replaceSelection(`<img width="100%" src="${Or}" alt="${Br||""}" />`):((br=Lr==null?void 0:Lr.type)==null?void 0:br.indexOf("video"))>-1?Tt.replaceSelection(`<video width="100%" controls src="${Or}"></video>`):((Mr=Lr==null?void 0:Lr.type)==null?void 0:Mr.indexOf("pdf"))>-1?Tt.replaceSelection(`<a href="${Or}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):Pn.includes(to)?Tt.replaceSelection(`<a href="${Or}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):Tt.replaceSelection(`[${Lr.name}](${Or})`),Tt.focus();case Vt:const{row:ni,col:Li,align:ao}=mn;let Yi=`
`;for(let vi=0;vi<ni;vi++){let Ai=[],Vr=[];for(let _i=0;_i<Li;_i++)vi===1&&Vr.push(dt[ao]),Ai.push(" ");vi===1&&(Yi+=`| ${Vr.join(" | ")} |
`),Yi+=`| ${Ai.join(Li===1?"":" | ")} |
`}return Tt.replaceSelection(Yi+`
`),Tt.focus();default:throw new Error}},[Tt,Zn]),Ir=(0,E.useMemo)(()=>{switch(Zn){case $t:return E.createElement(Pt,{callback:Ar,onCancel:Dr});case Yt:return E.createElement(yt.Z,{callback:Ar,onCancel:Dr});case tn:return E.createElement(ve.Z,{callback:Ar,onCancel:Dr});case Xt:return E.createElement(oe,{editImgId:dr.current,callback:Ar,onCancel:Dr});case Vt:return E.createElement(xe,{callback:Ar,onCancel:Dr});case"maths-latex":return E.createElement(Ht,{showSaveButton:!0,callback:Ar});case"inline-latex":return E.createElement(Zt.Z,{showSaveButton:!0,callback:Ar});default:return null}},[Zn]);function Dr(){Fn("")}(0,E.useEffect)(()=>{if(Cr.current){let mn=function(br){rr=!0,Pr=br.pageY},yn=function(){rr=!1},Nn=function(br){if(rr){let Mr=br.pageY-Pr;Mr<0&&(Mr=0),Mr>300&&(Mr=300);let Or=qt+Mr+"px";qn(Or)}},Rn=Cr.current,rr=!1,Pr=0;return Rn.addEventListener("mousedown",mn),document.addEventListener("mousemove",Nn),document.addEventListener("mouseup",yn),()=>{Rn.removeEventListener("mousedown",mn),document.removeEventListener("mousemove",Nn),document.removeEventListener("mouseup",yn)}}},[Tt,Cr]),(0,E.useEffect)(()=>{qn(qt)},[qt]);const _r=on(Jt),fr=on(ur),Yn={width:_r,height:fr},pn=(0,E.useMemo)(()=>{if(Hn){let mn=new Date(Hn),yn=mn.getHours(),Nn=mn.getMinutes(),Rn=mn.getSeconds();return yn=yn<10?"0"+yn:yn,Nn=Nn<10?"0"+Nn:Nn,Rn=Rn<10?"0"+Rn:Rn,`${yn}:${Nn}:${Rn}`}return 0},[Hn]),En=mn=>{const yn=[];if(xn){let Nn=-1;mn=mn.replace(/(@▁▁@|@▁@)/g,function(Rn,rr,Pr){yn.push({multiLine:Rn!==ln})})}return yn};function Cn(){window.sessionStorage.removeItem(Wn),ir(!1),Un(0)}function sn(){ir(!1),Un(0),Tt.setValue(window.sessionStorage.getItem(Wn))}(0,E.useEffect)(()=>{Lt[Zn]&&Zn!==rn&&Zn!==Xt&&setTimeout(()=>{const mn=document.getElementsByClassName("markdown-popup-form")[0],yn=window.innerWidth/2-mn.offsetWidth/2,Nn=window.innerHeight/2-mn.offsetHeight/2;tr(yn),mr(Nn)},0)},[Zn]);const _n=mn=>{mn.preventDefault();const yn=mn.clientX-er,Nn=mn.clientY-gr;document.body.onmousemove=Rn=>{let rr=Rn.clientX-yn,Pr=Rn.clientY-Nn;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)),Pr=Math.max(0,Math.min(Pr,Or)),jn(Rn.clientX,Rn.clientY,yn,Nn)&&(tr(rr),mr(Pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},jn=(mn,yn,Nn,Rn)=>{const rr=document.body.clientHeight,Pr=document.body.clientWidth;return mn<20&&Nn>mn||mn>Pr-20&&Nn<mn||yn<20&&Rn>yn||yn>rr-20&&Rn<yn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:vr},E.createElement("div",{className:`markdown-editor-container ${Me} ${Bn?"on-preview":""} ${gn?"mini":""} ${Qn?"full-screen":""}`,style:Yn},E.createElement(gt,{insertTemp:Mn,watch:Bn,fullScreen:Qn,showNullButton:Kt,showNullProgramButton:xn,onActionCallback:Er,hidetoolBar:hn,extraUse:Qt}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:cr,placeholder:un})),Bn?E.createElement("div",{ref:or,className:"preview-container"},kn==="stex"&&E.createElement(Ct,{value:Tn}),kn!=="stex"&&E.createElement(Ee.Z,{edit:!0,disabledFill:an,showProgramFill:xn,value:Tn,openEditor:mn=>{var yn;dr.current=mn,(yn=Gn.current)==null||yn.setHeight("100vh"),setTimeout(()=>{Fn("add-flowchart")},150)}})):null))),An?E.createElement("a",{ref:Cr,className:"editor-resize"}):null,Zn===rn&&E.createElement(Mt,{callback:Ar,onCancel:Dr}),Zn===Xt&&E.createElement(oe,{ref:Gn,editImgId:dr.current,callback:Ar,onCancel:Dr}),E.createElement(Ne.Z,null,Lt[Zn]&&Zn!==rn&&Zn!==Xt?E.createElement(Te.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:gr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:_n},Lt[Zn]),open:!0,onCancel:Dr,footer:null,destroyOnClose:!0,width:Zn===Xt?"1200px":null,height:Zn===Xt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},53332:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return tt},I:function(){return gt}});var E=re(28284),lt=re(6767),ye=re(37568),et=re(44104),Se=re(4875),ke=re(47889),Ie=re(7939),Ze=re(23216),Pe=re(59301),he=re(59301),Je=Object.defineProperty,Ee=Object.defineProperties,Ct=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,He=(Ne,Ve,ht)=>Ve in Ne?Je(Ne,Ve,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Ne[Ve]=ht,at=(Ne,Ve)=>{for(var ht in Ve||(Ve={}))Ae.call(Ve,ht)&&He(Ne,ht,Ve[ht]);if(qe)for(var ht of qe(Ve))Ue.call(Ve,ht)&&He(Ne,ht,Ve[ht]);return Ne},xt=(Ne,Ve)=>Ee(Ne,Ct(Ve));const{useForm:kt}=E.default,ft={width:280,marginRight:10},it={labelCol:{span:5},wrapperCol:{span:19}};var tt=({callback:Ne,onCancel:Ve})=>{const[ht]=kt();let Ce=(0,Pe.useRef)();function Re($e){Ce.current.width=ht.getFieldValue("width"),Ce.current.align=ht.getFieldValue("align"),Ne($e,Ce.current)}function _e($e,De){if($e.status===-1){lt.ZP.error($e.message);return}ht.setFieldsValue({src:`/api/attachments/${$e.id}`,type:De.type})}function se($e){let De=$e.target.files[0];Ce.current=De,gt(De,_e)}return he.createElement(E.default,xt(at({form:ht},it),{className:"upload-image-panel",onFinish:Re,style:{width:470,overflow:"hidden"}}),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},he.createElement("div",{className:"flex-container"},he.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},he.createElement(ye.default,{style:ft})),he.createElement(Ke,{onFileChange:se}))),he.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ye.default,{style:{width:264}})),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(et.Z,null,he.createElement(E.default.Item,{name:"width",style:{margin:0}},he.createElement(Se.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},he.createElement(ke.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"}]})),he.createElement("aside",null,he.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Ie.ZP,{type:"default",onClick:Ve},"\u53D6\u6D88"))))};function Ke({onFileChange:Ne}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:Ne}))}function gt(Ne,Ve){if(!Ne)throw new String("\u6CA1\u6709\u6587\u4EF6");let ht=new FormData;ht.append("editormd-image-file",Ne),ht.append("file_param_name","editormd-image-file"),ht.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(Re){Ve(JSON.parse(Re.target.responseText),Ne)},!1),Ce.addEventListener("error",function(Re){console.error(Re)},!1),Ce.open("POST",`${Ze.KI}/api/attachments.json`),Ce.send(ht)}},88487:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return ye}});var E=re(59301),lt=re(4676);class ye extends E.Component{constructor(Se){super(Se);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,lt.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(nn,zt,re){"use strict";re.d(zt,{SV:function(){return Mt},ZP:function(){return pt}});var E=re(59301),lt=re(76374);const ye={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"]},et={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"]},Se={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(`
`)}]},ke={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(`
`)}]},Ie={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var Ze=re(53184),Pe=re.n(Ze),he=(Fe,At,ut)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(ut.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{ue(ut.throw(ne))}catch(pe){te(pe)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((ut=ut.apply(Fe,At)).next())});const Je={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"]}},Ee=(Fe,At,ut,ae)=>{const te=At.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ut.lineNumber,endColumn:ut.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}))},Ct=(Fe,At,ut,ae)=>{Fe.languages.registerCompletionItemProvider(At,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),ue={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:[...Ee(Fe,te,ee,ue),...ut.map(ge=>({label:ge,kind:Fe.languages.CompletionItemKind.Keyword,documentation:ge,insertText:ge,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(ge=>({label:ge.label,kind:Fe.languages.CompletionItemKind.Snippet,documentation:ge.content,insertText:ne.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var qe=Fe=>{Je.languages.forEach(At=>{Fe.languages.registerDocumentFormattingEditProvider(At,{provideDocumentFormattingEdits(ut){return he(this,null,function*(){const ae=Pe()(ut.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:ut.getFullModelRange(),text:ae}]})}})}),Ct(Fe,"java",et.keywords,et.quickKey),Ct(Fe,"cpp",Se.keywords,Se.quickKey),Ct(Fe,"c",ye.keywords,[]),Ct(Fe,"python",ke.keywords,ke.quickKey),Ct(Fe,"scala",Ie.keywords,Ie.quickKey)};const Ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ue=Object.defineProperty,He=(Fe,At,ut)=>At in Fe?Ue(Fe,At,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[At]=ut,at=(Fe,At,ut)=>He(Fe,typeof At!="symbol"?At+"":At,ut);const xt=class _s{constructor(At,ut,ae){this.placeholder=At,this.editor=ut,this.monaco=ae,ut.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)}};at(xt,"ID","editor.widget.placeholderHint");var ft=xt,it=re(96236),tt=re(6767),Ke=re(25399),gt=re(78267),Ne=re(33156),Ve=re(56102),ht=Object.defineProperty,Ce=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,De=(Fe,At,ut)=>At in Fe?ht(Fe,At,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[At]=ut,we=(Fe,At)=>{for(var ut in At||(At={}))se.call(At,ut)&&De(Fe,ut,At[ut]);if(_e)for(var ut of _e(At))$e.call(At,ut)&&De(Fe,ut,At[ut]);return Fe},ct=(Fe,At)=>Ce(Fe,Re(At)),me=(Fe,At)=>{var ut={};for(var ae in Fe)se.call(Fe,ae)&&At.indexOf(ae)<0&&(ut[ae]=Fe[ae]);if(Fe!=null&&_e)for(var ae of _e(Fe))At.indexOf(ae)<0&&$e.call(Fe,ae)&&(ut[ae]=Fe[ae]);return ut},ce=(Fe,At,ut)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(ut.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{ue(ut.throw(ne))}catch(pe){te(pe)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((ut=ut.apply(Fe,At)).next())});function je(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}function Pt(){}let yt=!1;const ve={"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 Te(Fe=[]){let At=Fe;if(Array.isArray(Fe)){for(let ut=0;ut<Fe.length;ut++){let ae=ve[Fe[ut]];if(ae)return ae}return At[0]}return ve[At]||At}let Le=null;const wt=()=>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 pt=Fe=>{var At=Fe,{width:ut="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:ge,isCopy:We=!1,onSave:xe,autoHeight:Ge=!1,forbidCopy:nt=!1,forbidCopyTips:St,onChange:mt=Pt,editorDidMount:Ht=Pt,onFocus:Zt=Pt,onBreakPoint:$t=Pt,breakPointValue:tn=[],filename:Xt="educoder.txt",errorLine:rn,errorContent:Ot="",highlightLine:Yt,openBreakPoint:Vt=!1,placeholder:ze="",showMiniMap:dt=!0}=At,Nt=me(At,["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 Wt=(0,E.useRef)(),Be=(0,E.useRef)({}),rt=(0,E.useRef)(),bt=(0,E.useRef)(),Dt=(0,E.useRef)([]),Ut=(0,E.useRef)(!1),ln=(0,E.useRef)(),In=(0,E.useRef)(),Pn=(0,E.useRef)(!1),[on,bn]=(0,E.useState)(!1);function dn(){let Bt;return Wt.current&&(Bt=new lt.Z(Kt=>{for(let xn of Kt)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&Be.current.instance.layout()}),Bt.observe(Wt.current)),Bt}function Gt(){tt.ZP.warning({content:decodeURIComponent(St||Ae),key:"monaco-editor-tip"})}const Lt=()=>{let Bt=Be.current.instance;if(te!=null&&Bt&&on){const Kt=Bt.getModel();Kt&&te!==Kt.getValue()&&(yt=!0,Kt.setValue(te),Bt.layout(),yt=!1)}};(0,E.useEffect)(()=>{const Bt=Ne.Z.subscribe("formatDocument",Kt=>{var xn;let hn=Be.current.instance;(xn=hn==null?void 0:hn.getAction)==null||xn.call(hn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Kt=>{mt(Kt)},Bt},[]),(0,E.useEffect)(()=>{var Bt;let Kt=Be.current.instance;bt.current&&clearTimeout(bt.current),bt.current=setTimeout(()=>{Lt()},500),te&&(te!=null&&te.length)&&((Bt=Kt==null?void 0:Kt.updateOptions)==null||Bt.call(Kt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,on,Be.current]),(0,E.useEffect)(()=>{if(rn&&Be.current&&Be.current.instance){let Kt=Be.current.instance;Kt.changeViewZones(function(xn){var hn=document.createElement("div");hn.style.padding="10px 20px",hn.style.width="calc(100% - 20px)",hn.className="my-error-line-wrp",hn.innerHTML=Ot,xn.addZone({afterLineNumber:rn||11,heightInLines:3,domNode:hn})});var Bt={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}};Kt.addOverlayWidget(Bt),Kt.revealPositionInCenter({lineNumber:20,column:1})}},[rn,Be.current,on]);const Rt=(Bt="",Kt)=>{if(!Bt||Bt.trim()==="")return!0;const hn=Be.current.instance.getModel().getLineTokens(Kt);let Xe=!1;for(let st=0;st<2;st++)hn.getStandardTokenType(st)===1&&(Xe=!0);return Xe};(0,E.useEffect)(()=>{var Bt;const Kt=(Bt=Be.current)==null?void 0:Bt.instance;if(Kt&&on&&nt){const xn=Kt.onDidBlurEditorWidget(()=>{Pn.current=!1}),hn=Kt.onDidFocusEditorText(()=>{Pn.current=!0});return()=>{xn.dispose(),hn.dispose()}}},[Be.current,on,nt]),(0,E.useEffect)(()=>{var Bt;if((Bt=Be.current)!=null&&Bt.instance&&on&&Vt){let Kt=Be.current.instance,xn=Kt.getModel();if(!xn)return;(()=>{var Qt;let Ft=[],Tt=[];const fn=xn.getAllDecorations();for(let Dn of fn)Dn.options.className==="highlighted-line"&&(Ft.push((Qt=Dn==null?void 0:Dn.range)==null?void 0:Qt.startLineNumber),Tt.push(Dn==null?void 0:Dn.id));if(Yt===Ft[0])return;xn.deltaDecorations(Tt,[]);const Tn=xn.getLineCount();Yt&&Yt<=Tn&&(Kt.deltaDecorations([],[{range:new Le.Range(Yt,1,Yt,xn.getLineMaxColumn(Yt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Kt.revealLineInCenter(Yt))})();const Xe=(Qt=!1)=>{var Ft;let Tt=[],fn=[];const Tn=xn.getAllDecorations();for(let Dn of Tn)Dn.options.linesDecorationsClassName==="breakpoints-select"&&(Tt.push((Ft=Dn==null?void 0:Dn.range)==null?void 0:Ft.startLineNumber),fn.push(Dn==null?void 0:Dn.id));if(Qt)return{lines:Tt,ids:fn};$t(Tt)},st=Qt=>ce(void 0,null,function*(){let Ft={range:new Le.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xn.deltaDecorations([],[Ft]),Xe()}),Oe=Qt=>ce(void 0,null,function*(){let Ft=[];const Tt=Kt.getLineDecorations(Qt);for(let fn of Tt)fn.options.linesDecorationsClassName==="breakpoints-select"&&Ft.push(fn.id);yield xn.deltaDecorations(Ft,[]),Xe()}),Ye=Qt=>{let Ft=Kt.getLineDecorations(Qt);for(let Tt of Ft)if(Tt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,gt.isEqual)(tn,Xe(!0).lines)){xn.deltaDecorations(Xe(!0).ids,[]);const Qt=tn.map(Ft=>({range:new Le.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));xn.deltaDecorations([],Qt)}const Me=Kt.onDidChangeModelContent(Qt=>{let Ft=Kt.getPosition();if(Ft){let Tt=Ft.lineNumber;clearTimeout(In.current),In.current=setTimeout(()=>{Rt(xn.getLineContent(Tt),Tt)?Oe(Tt):Ye(Tt)?(Oe(Tt),st(Tt)):Xe()},100)}}),Qe=Kt.onMouseDown(Qt=>{var Ft,Tt,fn;if(Qt.target.detail&&((fn=(Tt=(Ft=Qt.target)==null?void 0:Ft.element)==null?void 0:Tt.className)!=null&&fn.includes("line-numbers"))){let Tn=Qt.target.position.lineNumber;if(Rt(xn.getLineContent(Tn),Tn))return;Ye(Tn)?Oe(Tn):st(Tn)}}),It=Qt=>{let Ft={range:new Le.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Dt.current=Kt.deltaDecorations(Dt.current,[Ft])},an=()=>{Dt.current=Kt.deltaDecorations(Dt.current,[])},un=Kt.onMouseMove(Qt=>{var Ft,Tt,fn;if(an(),Qt.target.detail&&((fn=(Tt=(Ft=Qt.target)==null?void 0:Ft.element)==null?void 0:Tt.className)!=null&&fn.includes("line-numbers"))){let Tn=Qt.target.position.lineNumber;if(Rt(xn.getLineContent(Tn),Tn))return;It(Tn)}}),vn=Kt.onMouseLeave(()=>{an()});return()=>{Me.dispose(),Qe.dispose(),un.dispose(),vn.dispose()}}},[Be.current,on,tn,Yt,Vt,ee]),(0,E.useEffect)(()=>{var Bt;(Bt=Be.current)!=null&&Bt.instance&&Vt&&Be.current.instance.setPosition({lineNumber:0,column:0})},[Yt]);function Et(){let Bt=Be.current.instance;if(Bt){const Kt=Bt.getSelection(),xn=Be.current.pastePos||{},hn=new Le.Range(xn.startLineNumber||Kt.endLineNumber,xn.startColumn||Kt.endColumn,xn.endLineNumber||Kt.endLineNumber,xn.endColumn||Kt.endColumn);setTimeout(()=>{Bt.executeEdits("",[{range:hn,text:""}])},300)}}function en(Bt){(window.navigator.platform.match("Mac")?Bt.metaKey:Bt.ctrlKey)&&Bt.keyCode==83&&(Bt.preventDefault(),xe())}const Jt=()=>{if(Ge&&Be.current.instance){const Bt=Be.current.instance.getContentHeight();Wn(Bt<ae?ae:Bt)}else Wn(ae)};function qt(Bt){var Kt=document.createEvent("MouseEvents");Kt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Bt.dispatchEvent(Kt)}const gn=Bt=>{if(!Pn.current)return;const{keyCode:Kt,ctrlKey:xn,metaKey:hn,target:Xe,type:st}=Bt;return(st==="paste"||(Kt===67||Kt===86)&&(hn||xn))&&Xe.nodeName==="TEXTAREA"&&(Gt(),Bt.preventDefault()),!1};function wn(Bt,Kt){var xn=window.URL||window.webkitURL||window,hn=new Blob([Kt]),Xe=document.createElementNS("http://www.w3.org/1999/xhtml","a");Xe.href=xn.createObjectURL(hn),Xe.download=Bt,qt(Xe)}(0,E.useEffect)(()=>{Jt()},[Jt]),(0,E.useEffect)(()=>{Wt.current&&!on&&Promise.all([re.e(8909),re.e(5977)]).then(re.bind(re,71448)).then(Bt=>{try{Le=Bt,Be.current.instance=Le.editor.create(Wt.current,{value:te,language:Te(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:dt||!1}},ne);const Kt=Be.current.instance;let Xe=[...it.BH._menuItems].find(Me=>Me[0]._debugName=="EditorContext")[1],st=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Oe=(Me,Qe)=>{var It,an;let un=Me._first;do Qe.includes((an=(It=un.element)==null?void 0:It.command)==null?void 0:an.id)&&Me._remove(un);while(un=un.next)};if(Ht(Kt,Le),setTimeout(()=>{Jt(),Be.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{wn(Xt||"educoder.txt",Kt.getValue())}})},500),Be.current.subscription=Kt.onDidChangeModelContent(Me=>{Ut.current?clearTimeout(ln.current):(Jt(),mt(Kt.getValue(),Me)),ln.current=setTimeout(()=>{Ut.current=!1},500)}),window.Monaco||qe(Le,Te(ee)),nt&&(Oe(Xe,st),Wt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",gn),window.removeEventListener("paste",gn),window.addEventListener("keydown",gn),window.addEventListener("paste",gn)),window.Monaco=Le,ge&&Kt.onDidBlurEditorWidget(()=>{ge(Kt.getValue())}),Zt&&Kt.onDidFocusEditorText(()=>{nt&&wt(),Zt(Kt.getValue())}),nt){wt();try{Kt.onDidPaste(Me=>{const Qe=Kt.getSelection(),It=Be.current.pastePos||{},an=new Le.Range(It.startLineNumber||Qe.endLineNumber,It.startColumn||Qe.endColumn,It.endLineNumber||Qe.endLineNumber,It.endColumn||Qe.endColumn);Kt.executeEdits("",[{range:Me.range,text:""}])})}catch(Me){}}let Ye=dn();return ze&&typeof ze=="string"&&new ft(ze,Kt,Le),bn(!0),()=>{const Me=Be.current.instance;Me.dispose();const Qe=Me.getModel();Qe&&Qe.dispose(),Be.current.subscription&&Be.current.subscription.dispose(),Ye.unobserve(Wt.current)}}catch(Kt){}})},[]),(0,E.useEffect)(()=>{if(Be.current.instance&&on)return document.addEventListener("keydown",en,!1),()=>{document.removeEventListener("keydown",en)}},[xe,on]),(0,E.useEffect)(()=>{let Bt=Be.current.instance;if(Bt&&on){let Kt=Te(ee);Le.editor.setModelLanguage(Bt.getModel(),Kt)}},[ee,on]),(0,E.useEffect)(()=>{Be.current.instance&&on&&Le.editor.setTheme(pe)},[pe,on]),(0,E.useEffect)(()=>{let Bt=Be.current.instance;rt.current=ue,Bt&&on&&(Bt.updateOptions(we({},ue)),setTimeout(()=>{Bt.getModel().updateOptions(we({},ue))},200))},[JSON.stringify(ue),on]),(0,E.useEffect)(()=>{let Bt=Be.current.instance;Bt&&on&&Bt.layout()},[ut,ae,on]);const[Sn,Mn]=(0,E.useState)(je(ut)),[kn,Wn]=(0,E.useState)(je(ae)),An=ct(we({},oe),{width:Sn,height:kn,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:Wt,style:An,onFocus:()=>{nt&&wt()}},We&&E.createElement(Ve.CopyToClipboard,{text:te,onCopy:()=>tt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Ke.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Mt({width:Fe="100%",height:At="100%",original:ut,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[ue,ne]=(0,E.useState)(null);function pe(Ge){let nt;return oe.current&&(nt=new lt.Z(St=>{for(let mt of St)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&Ge.layout()}),nt.observe(oe.current)),nt}(0,E.useEffect)(()=>(oe.current&&Promise.all([re.e(8909),re.e(9404)]).then(re.bind(re,2550)).then(Ge=>{Le=Ge;const nt=Le.editor.createDiffEditor(oe.current,ct(we({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(nt);let St=pe(nt);return()=>{nt.dispose();const mt=nt.getModel();mt&&mt.dispose(),St.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{ue&&ue.setModel({original:Le.editor.createModel(ut,te),modified:Le.editor.createModel(ae,te)})},[ut,ae,te,ue]);const ge=je(Fe),We=je(At),xe={width:ge,height:We};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:xe})}},54077:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Je}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},lt=re(29787),ye=re(25399),et=re(89787),Se=re(92310),ke=re.n(Se),Ie=re(76406),Ze=re(90736),Pe=re(59301),Je=({className:Ee,dataSource:Ct=[],col:qe=4,right:Ae,bottom:Ue=23,precision:He=0,wrapWidth:at=1200,trackEventItems:xt,loading:kt,onRemove:ft=()=>{},isCurrent:it=!0,showProgress:tt=!1,showAlias:Ke=!1,category:gt="notDisplay",hiddenClick:Ne=()=>{}})=>{const Ve=Math.floor((at-(qe-1)*Ae)/qe),ht=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Pe.createElement(lt.Z,{spinning:kt},Pe.createElement("div",{className:ke()(E.list,Ee)},!!(Ct!=null&&Ct.length)&&(Ct==null?void 0:Ct.map((Ce,Re)=>{var _e,se,$e,De,we,ct,me;const{name:ce,id:je,identifier:Pt,featured:yt,school_name:ve,image_url:Te,excellent:Le,is_plan:wt}=Ce;return Pe.createElement("div",{key:je,className:it&&tt?E.wrapisCurrent:E.wrap,style:{width:Ve,marginRight:(1+Re)%qe===0?0:Ae+He,marginBottom:Ue}},Pe.createElement("a",{className:E.li,onClick:pt=>{pt.preventDefault(),pt.stopPropagation(),xt&&(0,Ie.L9)([xt]),(0,Ie.xg)(`/paths/${Pt}`)}},Pe.createElement("div",{className:E.img},Pe.createElement("img",{className:E.cover,src:`${Te}`}),(_e=Ce==null?void 0:Ce.subject_tags)==null?void 0:_e.map((pt,Mt)=>{var Fe,At;if(Mt===0){const ae=(Fe=ht.find(te=>te.name==pt))==null?void 0:Fe.swclass;return Pe.createElement("span",{className:`sprite ${ae} ${E.sign}`,style:{left:"-4px"}})}const ut=(At=ht.find(ae=>ae.name==pt))==null?void 0:At.ptclass;return Pe.createElement("span",{className:`sprite ${ut} ${E.sign}`,style:{left:`${48+52*(Mt-1)+2*Mt}px`}})}),Pe.createElement("div",{className:E.tagsDom},Pe.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Ce==null?void 0:Ce.excellent)&&Pe.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((se=Ce==null?void 0:Ce.custom_tags)==null?void 0:se.length)>0&&(Ce==null?void 0:Ce.custom_tags.map((pt,Mt)=>{var Fe;return Pe.createElement(ye.Z,{title:pt==null?void 0:pt.tag_name,key:Mt},Pe.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Fe=Ce==null?void 0:Ce.custom_tags)==null?void 0:Fe.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Pe.createElement("span",{className:"multi-llipsis1e"},pt==null?void 0:pt.tag_name)))})))),gt=="hide"&&(Ce==null?void 0:Ce.studying)&&it&&Pe.createElement("div",{className:`${E.movebq} user-path-items`,onClick:pt=>{pt.stopPropagation(),ft(Ce)}},Pe.createElement("i",{className:"iconfont icon-yichu1 font12"}),Pe.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(gt)&&it&&Pe.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:pt=>{pt.stopPropagation(),Ne(Ce)}},Pe.createElement("i",{className:`iconfont ${gt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Pe.createElement("span",null,gt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Pe.createElement("div",{className:E.name},Pe.createElement(ye.Z,{title:Ke&&(Ce!=null&&Ce.excellent_alias_name)?Pe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ce}`,Pe.createElement("br",null),Pe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ce==null?void 0:Ce.excellent_alias_name}`)):ce},Pe.createElement("span",{className:E.e},Ke&&(Ce==null?void 0:Ce.excellent_alias_name)||ce))),it&&tt&&(($e=Ce==null?void 0:Ce.progress)==null?void 0:$e.all_score)!=0&&Pe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Pe.createElement(et.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((De=Ce==null?void 0:Ce.progress)==null?void 0:De.my_score)/((we=Ce==null?void 0:Ce.progress)==null?void 0:we.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ct=Ce==null?void 0:Ce.progress)==null?void 0:ct.my_score,"/",(me=Ce==null?void 0:Ce.progress)==null?void 0:me.all_score),(!it||!tt)&&Pe.createElement(ye.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ve}`},Pe.createElement("div",{className:E.unit},Pe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ve)),(!it||!tt)&&Pe.createElement("div",{className:E.tags},Pe.createElement("div",null,Pe.createElement(ye.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Pe.createElement("span",null,Ce.stages_count))),Pe.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Pe.createElement("span",null,Ce.members_count)))))))})),!Ct.length&&Pe.createElement(Ze.Z,null)))}},70467:function(nn,zt,re){"use strict";re.d(zt,{jL:function(){return et},w9:function(){return ce},QD:function(){return tn},cQ:function(){return Re.Z},op:function(){return nt},O5:function(){return dn},_b:function(){return ze},t7:function(){return He},Gi:function(){return Le},YG:function(){return ve},qp:function(){return he},vr:function(){return Ot},qE:function(){return Ht},Je:function(){return kt},wb:function(){return Ce},cq:function(){return ut},tp:function(){return Ct}});var E=re(59301),lt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},et=({dataSource:Gt=[],img:Lt,imgWidth:Rt=346,title:Et,sunTitle:en,bannerExtraContent:Jt})=>E.createElement("div",{className:lt.banner},E.createElement("div",{className:lt.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Et),E.createElement("span",null,en)),Gt.length>0&&E.createElement("div",{className:lt.btns},Gt.map((qt,gn)=>E.createElement("div",{key:gn,onClick:qt.click},qt.name,qt.sign?E.createElement("span",{className:"sprite sprite-33"}):null))),Jt),Lt&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Lt,width:Rt}))),Se={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ke=re(92310),Ie=re.n(ke),Ze=re(78267),he=({dataSource:Gt=[],value:Lt,onChange:Rt,onTitleChange:Et,className:en,title:Jt,titleWidth:qt=41,style:gn={},fontColor:wn="#6A7283",showCount:Sn})=>{const[Mn,kn]=(0,E.useState)(1),[Wn,An]=(0,E.useState)(!1),Bt=(0,E.useRef)(null),Kt=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var xn;Gt.length!==0&&(((xn=Bt==null?void 0:Bt.current)==null?void 0:xn.clientHeight)>97?kn(1):kn(0)),Gt.length===0&&kn(0),An(!1)},[Gt]),E.createElement("div",{className:Ie()(Se.row,en,"fadeIn","animated"),style:gn},E.createElement("div",{onClick:(0,Ze.throttle)(()=>Et==null?void 0:Et(),2e3),style:{width:qt,marginTop:Wn?12:4},className:`${Se.title} ${Et?"current":""}`},Jt),E.createElement("div",{className:Wn?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},E.createElement("div",{className:Se.bar,ref:Kt,style:Mn>0?{height:Mn===1?97:"auto",overflow:Mn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Se.tag,ref:Bt},Gt==null?void 0:Gt.map(xn=>E.createElement("span",{onClick:()=>Rt(xn.id),key:xn.id,style:{color:wn},className:Lt===xn.id?Se.active:""},E.createElement("span",{title:xn.name,className:Se.name},xn.name),!!Sn&&E.createElement("span",{className:Se.num},xn.count))))),!!Mn&&E.createElement(E.Fragment,null,Mn===1?E.createElement("div",{onClick:()=>{var xn;kn(2),((xn=Bt==null?void 0:Bt.current)==null?void 0:xn.clientHeight)>245?An(!0):An(!1)},className:Se.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{Kt.current.scrollTop=0,kn(1),An(!1)},className:Se.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ct=({dataSource:Gt=[],value:Lt,onChange:Rt,className:Et,style:en={}})=>E.createElement("div",{style:en,className:Ie()(Je.tabs,Et)},Gt.map(Jt=>E.createElement("span",{onClick:()=>Rt(Jt.id),className:Lt===Jt.id?Je.active:"",key:Jt.id},Jt.name))),qe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ae=re(37568),He=({dataSource:Gt=[],value:Lt="",onChange:Rt,onInputChange:Et=()=>{},className:en,style:Jt={},placeholder:qt,allowClear:gn=!1})=>{var wn;const[Sn,Mn]=(0,E.useState)(""),[kn,Wn]=(0,E.useState)("");(0,E.useEffect)(()=>{var Kt;let xn=Lt;(Kt=JSON.stringify(Lt))!=null&&Kt.includes("{")&&(Mn(Lt.id),xn=Lt.value||"");try{Wn(decodeURIComponent(xn||""))}catch(hn){Wn(decodeURIComponent(xn||""))}},[Lt]);const An=()=>{Rt(encodeURIComponent(kn),Sn||null)},Bt=Kt=>{Kt!==Sn&&(Mn(Kt),Rt(encodeURIComponent(kn),Kt))};return E.createElement("div",{className:Ie()(qe.input,en),style:Jt},!!Gt.length&&E.createElement("div",{className:qe.dropdown},E.createElement("div",{className:qe.text},(wn=Gt.find(Kt=>Kt.id===Sn))==null?void 0:wn.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:qe.b1}),E.createElement("b",{className:qe.b2})),E.createElement("div",{className:qe.menu},Gt.map((Kt,xn)=>E.createElement("div",{key:xn,onClick:()=>Bt(Kt.id)},Kt.name)))),E.createElement(Ae.default,{onPressEnter:An,value:kn,onChange:Kt=>{Wn(Kt.target.value),Et(encodeURIComponent(Kt.target.value),Sn||null)},placeholder:qt,variant:"borderless",allowClear:gn,onClear:()=>Rt("",Sn||null)}),E.createElement("i",{onClick:An,className:"iconfont icon-sousuo9 font14 current"}))},at={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},kt=({value:Gt,onChange:Lt,className:Rt,total:Et,pageSize:en,style:Jt={}})=>{const qt=Gt<2,gn=Gt>=Math.ceil(Et/en);return Et<=en?E.createElement(E.Fragment,null):E.createElement("div",{className:Ie()(at.quickPager,Rt),style:Jt},E.createElement("div",{onClick:()=>{qt||Lt(Gt-1,"prev")},className:qt?at.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{gn||Lt(Gt+1,"next")},className:gn?at.disabled:""},"\u4E0B\u4E00\u9875"))},ft={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},it=re(29787),tt=re(25399),Ke=re(63139),gt=re(14185),Ne=re(76406),Ve=re(90736),Ce=({className:Gt,dataSource:Lt=[],col:Rt=4,right:Et,bottom:en=23,precision:Jt=0,wrapWidth:qt=1200,trackEventItems:gn,loading:wn})=>{const Sn=Math.floor((qt-(Rt-1)*Et)/Rt);return E.createElement(it.Z,{spinning:wn},E.createElement("div",{className:Ie()(ft.list,Gt)},!!Lt.length&&Lt.map((Mn,kn)=>{const{name:Wn,id:An,identifier:Bt,power:Kt,cover_image_id:xn,pic:hn}=Mn;return E.createElement("div",{className:ft.wrap,key:An,style:{width:Sn,marginRight:(1+kn)%Rt===0?0:Et+Jt,marginBottom:en}},E.createElement("a",{target:"_blank",href:`/shixuns/${Bt}/challenges`,className:ft.li,onClick:Xe=>{Xe.preventDefault(),gn&&(0,Ne.L9)([gn]),Kt&&(0,Ne.xg)(`/shixuns/${Bt}/challenges`)}},E.createElement("div",{className:ft.img},E.createElement("img",{className:ft.cover,src:`${hn}`}),Mn.is_jupyter&&E.createElement("span",{className:`sprite sprite-43 ${ft.sign}`}),Mn.is_jupyter_lab&&E.createElement("span",{className:`sprite sprite-42 ${ft.sign}`}),Mn.is_unity_3d&&E.createElement("span",{className:`sprite sprite-44 ${ft.sign}`})),E.createElement("div",{className:ft.name},E.createElement(tt.Z,{title:Wn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:ft.e},Wn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:ft.tags},E.createElement(tt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,Mn.challenges_count))),!!Mn.myshixuns_count&&E.createElement(tt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,Mn.myshixuns_count))),E.createElement(tt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,Mn.level))),E.createElement("div",{className:ft.rate},E.createElement(Ke.Z,{allowHalf:!0,disabled:!0,defaultValue:Mn.score_info}),E.createElement("span",null,"\xA0",Mn.score_info?`${Mn.score_info}\u5206`:"5\u5206")))),!Kt&&E.createElement("div",{className:ft.lockWrap},E.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Lt.length&&E.createElement(Ve.Z,null)))},Re=re(54077),_e={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},se=re(62957),$e=re(96599),De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",we=re(59301),ct=(Gt,Lt,Rt)=>new Promise((Et,en)=>{var Jt=wn=>{try{gn(Rt.next(wn))}catch(Sn){en(Sn)}},qt=wn=>{try{gn(Rt.throw(wn))}catch(Sn){en(Sn)}},gn=wn=>wn.done?Et(wn.value):Promise.resolve(wn.value).then(Jt,qt);gn((Rt=Rt.apply(Gt,Lt)).next())}),ce=({className:Gt,dataSource:Lt=[],col:Rt=4,right:Et,bottom:en=23,precision:Jt=0,wrapWidth:qt=1200,trackEventItems:gn,loading:wn,category:Sn,hiddenClick:Mn,handleVery:kn=()=>!0,isCurrent:Wn})=>{const[An,Bt]=se.default.useModal(),Kt=Math.floor((qt-(Rt-1)*Et)/Rt),xn=hn=>ct(void 0,null,function*(){An.confirm({title:"\u7F6E\u9876",width:500,content:we.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",we.createElement("span",{className:"c-blue"},"\u201C",hn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return we.createElement(it.Z,{spinning:wn},Bt,we.createElement("div",{className:Ie()(_e.list,Gt)},!!Lt.length&&Lt.map((hn,Xe)=>{const{subject_identifier:st,id:Oe,identifier:Ye,power:Me}=hn,Qe=hn.is_public!=0&&hn.is_public;return we.createElement("div",{className:_e.wrap,key:Oe,style:{width:Kt,marginRight:(1+Xe)%Rt===0?0:Et+Jt,marginBottom:en}},hn.homepage_show&&we.createElement("div",{className:_e.btnsTop},we.createElement($e.default,{color:"red"},"\u7F6E\u9876")),we.createElement("a",{className:_e.li,onClick:It=>{It.preventDefault(),kn(hn==null?void 0:hn.first_category_url)&&(gn&&(0,Ne.L9)([gn]),(0,Ne.xg)(hn.first_category_url))}},we.createElement("div",{className:_e.top},we.createElement(tt.Z,{title:hn.name},we.createElement("div",{className:_e.name},hn.name)),we.createElement("img",{className:_e.img,src:gt.Z.IMG_SERVER+"/images/"+hn.avatar_url}),we.createElement("div",{className:_e.text,title:hn.creator},hn.creator),st&&we.createElement("div",{className:_e.btns},we.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),we.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Qe&&we.createElement("div",{className:_e.sign},"\u516C\u5F00"),Wn&&we.createElement("div",{className:_e.hidden,onClick:It=>{It.stopPropagation(),Mn(hn)}},we.createElement("i",{className:`iconfont ${Sn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Sn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),we.createElement("div",{className:_e.bottom},hn.visits>0&&we.createElement(tt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-liulanyan"}),we.createElement("span",null,hn.visits))),hn.course_members_count>0&&we.createElement(tt.Z,{title:"\u6210\u5458",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan"}),hn.course_members_count)),hn.tasks_count>0&&we.createElement(tt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zuoye"}),hn.tasks_count)),hn.is_end?we.createElement("div",{style:{color:"#6B758B"}}):we.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!hn.is_accessible&&we.createElement("div",{className:_e.lockWrap},we.createElement("img",{src:`${gt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),we.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Lt.length&&we.createElement(Ve.Z,null)))},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Pt=re(44283),ve=({dataSource:Gt=[],value:Lt,onChange:Rt,className:Et,style:en={},tabBarExtraContent:Jt})=>E.createElement("div",{className:Ie()(je.tabs,Et),style:en},E.createElement("div",{className:je.tabsWrap},Gt.map((qt,gn)=>!(qt!=null&&qt.hide)&&E.createElement("aside",{className:je.tab,onClick:()=>{Rt(qt.id),qt.link&&Pt.history.push(qt.link)},key:gn},E.createElement("div",{className:Lt===qt.id?je.active:""},qt.name),(qt==null?void 0:qt.resetCount)==null&&(qt==null?void 0:qt.total)!==void 0&&E.createElement("span",null,"\uFF08",qt==null?void 0:qt.total,"\uFF09"),(qt==null?void 0:qt.resetCount)!==void 0&&(qt==null?void 0:qt.total)!==void 0&&E.createElement(tt.Z,{title:(qt==null?void 0:qt.tip)!=null?qt==null?void 0:qt.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},qt==null?void 0:qt.resetCount),"/",E.createElement("span",null,qt==null?void 0:qt.total),"\uFF09"))))),E.createElement("div",{className:je.tabBar},Jt)),Le=({className:Gt,style:Lt={},children:Rt})=>E.createElement("div",{className:Ie()(Gt),style:Lt},Rt),wt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},pt=re(75727),Mt=re(93041);const Fe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ut=({sortValue:Gt,dropValue:Lt,className:Rt,onSort:Et,onDrop:en,dataSource:Jt=Fe})=>{var qt;return E.createElement("div",{className:Ie()(wt.orderWrap,Rt)},E.createElement(pt.Z,{dropdownRender:()=>E.createElement(Mt.default,null,Jt.map((gn,wn)=>E.createElement(Mt.default.Item,{key:wn,onClick:()=>en(gn.id)},gn.name)))},E.createElement("span",{className:wt.orderTextWrap},(qt=Jt.find(gn=>Lt===gn.id))==null?void 0:qt.name)),E.createElement("span",{className:wt.orderIconWrap},E.createElement("span",{className:wt.orderAsc},E.createElement("i",{className:Gt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${wt.cursorPointer} ${wt.active}`:`iconfont icon-sanjiaoxing-up font12 ${wt.cursorPointer}`,onClick:()=>Et(Gt==="asc"?"desc":"asc")})),E.createElement("span",{className:wt.orderDesc},E.createElement("i",{className:Gt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${wt.cursorPointer} ${wt.active}`:`iconfont icon-sanjiaoxing-down font12 ${wt.cursorPointer}`,onClick:()=>Et(Gt==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},te=re(7939),ee=Object.defineProperty,oe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,pe=(Gt,Lt,Rt)=>Lt in Gt?ee(Gt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Gt[Lt]=Rt,ge=(Gt,Lt)=>{for(var Rt in Lt||(Lt={}))ue.call(Lt,Rt)&&pe(Gt,Rt,Lt[Rt]);if(oe)for(var Rt of oe(Lt))ne.call(Lt,Rt)&&pe(Gt,Rt,Lt[Rt]);return Gt},We=(Gt,Lt)=>{var Rt={};for(var Et in Gt)ue.call(Gt,Et)&&Lt.indexOf(Et)<0&&(Rt[Et]=Gt[Et]);if(Gt!=null&&oe)for(var Et of oe(Gt))Lt.indexOf(Et)<0&&ne.call(Gt,Et)&&(Rt[Et]=Gt[Et]);return Rt},xe=(Gt,Lt,Rt)=>new Promise((Et,en)=>{var Jt=wn=>{try{gn(Rt.next(wn))}catch(Sn){en(Sn)}},qt=wn=>{try{gn(Rt.throw(wn))}catch(Sn){en(Sn)}},gn=wn=>wn.done?Et(wn.value):Promise.resolve(wn.value).then(Jt,qt);gn((Rt=Rt.apply(Gt,Lt)).next())}),nt=Gt=>{var Lt=Gt,{className:Rt,style:Et,children:en,loading:Jt=!1,openLoading:qt,onClick:gn=()=>{},size:wn="middle",shape:Sn="round"}=Lt,Mn=We(Lt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[kn,Wn]=(0,E.useState)(!1);return E.createElement(te.ZP,ge({onClick:(0,Ze.throttle)(An=>xe(void 0,null,function*(){qt&&Wn(!0);try{yield gn(An)}catch(Bt){console.log("error",Bt)}qt&&Wn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ie()(ae.btn,ae[`${wn}-${Sn}`],Rt),style:Et,size:wn,shape:Sn,loading:kn||Jt},Mn),en)},St={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Ht=({className:Gt,style:Lt,children:Rt=null,onClick:Et,title:en})=>E.createElement("div",{className:Ie()(St.head,Gt),style:Lt},E.createElement("span",{className:"primary-hover",onClick:Et},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:en},en),E.createElement("div",{className:St.node},Rt)),Zt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},tn=({confirmShow:Gt=!0,confirmTitle:Lt,confirmClick:Rt,cancelShow:Et=!0,cancelTitle:en,cancelClick:Jt,className:qt,style:gn,confirmLoading:wn=!1})=>E.createElement("div",{className:Ie()(Zt.btns,qt),style:gn},Gt&&E.createElement(te.ZP,{loading:wn,onClick:Rt,type:"primary",className:Zt.confirm},Lt),Et&&E.createElement(te.ZP,{onClick:Jt,className:Zt.cancel},en)),Xt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Ot=({className:Gt,style:Lt={},LeftContent:Rt,children:Et,RightContent:en})=>E.createElement("div",{className:Ie()(Xt.fixedBottom,Gt),style:Lt},E.createElement("div",{className:Xt.wrap},E.createElement("div",{className:Xt.left},Rt),E.createElement("div",{className:Xt.center},Et),E.createElement("div",{className:Xt.right},en))),Yt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ze=({className:Gt,style:Lt={},dataSource:Rt=[]})=>E.createElement("div",{className:Ie()(Yt.crumbs,Gt),style:Lt},Rt.map((Et,en)=>en<Rt.length-1?E.createElement(E.Fragment,{key:en},Et.path||Et.onClick?E.createElement("span",{className:Yt.hover,onClick:Et!=null&&Et.onClick?Et.onClick:()=>Pt.history.push(Et.path)},Et.name):E.createElement("span",null,Et.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:en,style:{color:"#5F6368"}},Et.name))),dt=re(11938),Nt=Object.defineProperty,Wt=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ut=(Gt,Lt,Rt)=>Lt in Gt?Nt(Gt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Gt[Lt]=Rt,ln=(Gt,Lt)=>{for(var Rt in Lt||(Lt={}))bt.call(Lt,Rt)&&Ut(Gt,Rt,Lt[Rt]);if(rt)for(var Rt of rt(Lt))Dt.call(Lt,Rt)&&Ut(Gt,Rt,Lt[Rt]);return Gt},In=(Gt,Lt)=>Wt(Gt,Be(Lt)),Pn=(Gt,Lt)=>{var Rt={};for(var Et in Gt)bt.call(Gt,Et)&&Lt.indexOf(Et)<0&&(Rt[Et]=Gt[Et]);if(Gt!=null&&rt)for(var Et of rt(Gt))Lt.indexOf(Et)<0&&Dt.call(Gt,Et)&&(Rt[Et]=Gt[Et]);return Rt};const{Countdown:on}=dt.default;var dn=Gt=>{var Lt=Gt,{onChange:Rt}=Lt,Et=Pn(Lt,["onChange"]);const[en,Jt]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof en=="number"&&en>=0&&Rt(en)},[en]);const qt=gn=>{const wn=Math.floor(gn/1e3);Jt(wn)};return E.createElement(on,In(ln({},Et),{onChange:qt}))}},79006:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return lt}});var E=re(59301);function lt(ye,et){const Se=(0,E.useRef)();(0,E.useEffect)(()=>{Se.current=ye}),(0,E.useEffect)(()=>{function ke(){Se.current()}if(et!==null){let Ie=setInterval(ke,et);return()=>clearInterval(Ie)}},[et])}},52885:function(nn,zt,re){"use strict";var E=re(59301),lt=re(44283),ye=re(6767),et=re(62957),Se=re(25399),ke=re(77019),Ie=re(5269),Ze=re(62673),Pe=re(58755),he=re(37568),Je=re(82326),Ee=re(92216),Ct=re(42624),qe=re(70467),Ae=Object.defineProperty,Ue=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,xt=(gt,Ne,Ve)=>Ne in gt?Ae(gt,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):gt[Ne]=Ve,kt=(gt,Ne)=>{for(var Ve in Ne||(Ne={}))He.call(Ne,Ve)&&xt(gt,Ve,Ne[Ve]);if(Ue)for(var Ve of Ue(Ne))at.call(Ne,Ve)&&xt(gt,Ve,Ne[Ve]);return gt},ft=(gt,Ne)=>{var Ve={};for(var ht in gt)He.call(gt,ht)&&Ne.indexOf(ht)<0&&(Ve[ht]=gt[ht]);if(gt!=null&&Ue)for(var ht of Ue(gt))Ne.indexOf(ht)<0&&at.call(gt,ht)&&(Ve[ht]=gt[ht]);return Ve},it=(gt,Ne,Ve)=>new Promise((ht,Ce)=>{var Re=$e=>{try{se(Ve.next($e))}catch(De){Ce(De)}},_e=$e=>{try{se(Ve.throw($e))}catch(De){Ce(De)}},se=$e=>$e.done?ht($e.value):Promise.resolve($e.value).then(Re,_e);se((Ve=Ve.apply(gt,Ne)).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"],Ke=(gt,Ne)=>{var Ve=gt,{problemset:ht,globalSetting:Ce,loading:Re,dispatch:_e,onRef:se=()=>{},editData:$e,editKey:De,callback:we,polls_status:ct,isadd:me}=Ve,ce=ft(Ve,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback","polls_status","isadd"]);const[je,Pt]=(0,E.useState)([]),[yt,ve]=(0,E.useState)(""),[Te,Le]=(0,E.useState)(!0),[wt,pt]=(0,E.useState)(!1),Mt=(0,lt.useParams)(),[Fe,At]=(0,E.useState)(""),[ut,ae]=(0,E.useState)("");(0,E.useEffect)(()=>{var ge,We,xe,Ge,nt,St,mt,Ht,Zt;if(!((ge=$e==null?void 0:$e.question)!=null&&ge.question_title)){Pt([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Le(!0),ve(""),pt(!1);return}At((We=$e==null?void 0:$e.question)==null?void 0:We.max_choices),ae((xe=$e==null?void 0:$e.question)==null?void 0:xe.min_choices),ve((Ge=$e==null?void 0:$e.question)==null?void 0:Ge.question_title),Le(!!((nt=$e==null?void 0:$e.question)!=null&&nt.is_necessary)),Pt(me?(mt=$e==null?void 0:$e.question)==null?void 0:mt.question_answers.map($t=>({value:$t,disabled:$t==="\u5176\u5B83",placeholder:$t==="\u5176\u5B83"?"\u65E0\u6CD5\u7F16\u8F91\uFF0C\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u7F16\u8F91":""})):(St=$e==null?void 0:$e.question)==null?void 0:St.answers.map($t=>({value:$t.answer_text,disabled:$t.answer_text==="\u5176\u5B83",placeholder:$t.answer_text==="\u5176\u5B83"?"\u65E0\u6CD5\u7F16\u8F91\uFF0C\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u7F16\u8F91":""}))),pt(!!((Zt=(Ht=$e==null?void 0:$e.question)==null?void 0:Ht.answers)!=null&&Zt.find($t=>$t.answer_text==="\u5176\u5B83")))},[$e]),(0,E.useImperativeHandle)(Ne,()=>({onSave:te}));const te=ge=>it(void 0,null,function*(){var We;if(Fe&&!ut||!Fe&&ut){ye.ZP.info('\u53EF\u9009\uFF1A\u6700\u5C0F\u548C\u6700\u5927\u9650\u5236\u987B\u540C\u65F6\u4E3A\u6570\u503C\u6216\u8005\u201C--"');return}if(ut>Fe){ye.ZP.info("\u53EF\u9009\u7684\u6700\u5927\u9650\u5236\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u9650\u5236");return}if(!yt)return ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;wt&&(je[je.length-1].value="\u5176\u5B83");const xe=je.findIndex(St=>!St.value);if(xe>-1)return ye.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${tt[xe]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let Ge;const nt={question_title:yt,question_type:2,insert_id:$e.insert_id,is_necessary:Math.ceil(Te),max_choices:Fe,min_choices:ut,question_answers:je.map(St=>St.value)};if((We=$e.question)!=null&&We.id?Ge=yield(0,Ee.IU)(kt({pollsId:$e.question.id},nt)):me?ge?we("isadd",nt,2):we("isadd",nt):Ge=yield(0,Ee.MK)(kt({pollsId:Mt.categoryId},nt)),!me&&Ge.status===0){ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),we("edit",-1);const St=yield _e({type:"polls/editPolls",payload:kt({},Mt)});if(ge){nt.answers=nt.question_answers.map(Ht=>({answer_text:Ht}));const mt=[...St.poll_questions];mt.splice($e==null?void 0:$e.key,0,{insert_id:$e==null?void 0:$e.insert_id,question:kt({},nt)}).slice(),we("addContinue",[...mt]),we("edit",$e.key+1)}}}),ee=[{name:"\u5220\u9664",icon:"iconfont c-red ml30 icon-shanchutimu current font20",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current font20",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current font20",id:"down"},{name:"\u590D\u5236\u9898\u578B",icon:"iconfont c-green ml30 icon-tianjia2 current font20",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianji-moren current font20",id:"edit"}],oe=[{name:"\u5220\u9664",icon:"iconfont c-red ml30 icon-shanchutimu current font20",id:"del"},{name:"\u590D\u5236\u9898\u578B",icon:"iconfont c-green ml30 icon-tianjia2 current font20",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianji-moren current font20",id:"edit"}],ue=ge=>it(void 0,null,function*(){var We,xe;switch(ge.id){case"del":let Ge;et.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return it(this,null,function*(){var nt;me?we("del",$e.key):(yield(0,Ee.jy)({pollsId:(nt=$e==null?void 0:$e.question)==null?void 0:nt.id}),_e({type:"polls/editPolls",payload:kt({},Mt)}))})}});break;case"up":case"down":yield(0,Ee.wh)({pollsId:(We=$e==null?void 0:$e.question)==null?void 0:We.id,opr:ge.id}),_e({type:"polls/editPolls",payload:kt({},Mt)});break;case"edit":we("edit",$e.key);break;case"add":we("add",{type:2,key:$e.key,insert_id:(xe=$e==null?void 0:$e.question)==null?void 0:xe.id,question_type:2});break}}),ne=()=>{var ge,We,xe,Ge,nt;let St=(ge=$e.question)==null?void 0:ge.min_choices;return E.createElement("aside",null,E.createElement("div",{className:Ct.Z.questionType},E.createElement("div",null,$e.question.is_necessary>0&&E.createElement("span",{style:{color:"red",fontSize:"14px"}},"*"),E.createElement("span",{className:"font16",style:{color:"#3061D0"}},"\u3010\u591A\u9009\u3011"),E.createElement("span",{className:Ct.Z.can_select_count},St?`\u53EF\u9009${(We=$e==null?void 0:$e.question)==null?void 0:We.min_choices}-${(xe=$e==null?void 0:$e.question)==null?void 0:xe.max_choices}\u9879`:null),E.createElement("span",{className:Ct.Z.edit_title},E.createElement("span",{style:{marginRight:"10px"}},"\u7B2C",$e.key,"\u9898"),$e.question.question_title)),!me&&ee.map(function(mt,Ht){return mt.id==="up"&&$e.key===1||mt.id==="down"&&$e.key===$e.len?null:E.createElement(Se.Z,{key:Ht,placement:"bottom",title:mt.name},E.createElement("span",{onClick:()=>ue(mt),className:mt.icon}))}),me&&oe.map(function(mt,Ht){return mt.id==="up"&&$e.key===1||mt.id==="down"&&$e.key===$e.len?null:E.createElement(Se.Z,{key:Ht,placement:"bottom",title:mt.name},E.createElement("span",{onClick:()=>ue(mt),className:mt.icon}))})),E.createElement("div",{className:Ct.Z.questionChoices},!me&&E.createElement("div",{className:Ct.Z.questionChoices},(Ge=$e==null?void 0:$e.question.answers)==null?void 0:Ge.map(function(mt,Ht){return E.createElement(ke.Z,null,E.createElement(Ie.Z,null,E.createElement(Ze.default,{key:Ht,disabled:!0})),E.createElement(Ie.Z,{flex:"1"},E.createElement("span",{className:"c-black font14 ml10"},mt.answer_text)))})),me&&E.createElement("div",{className:Ct.Z.questionChoices},(nt=$e==null?void 0:$e.question.question_answers)==null?void 0:nt.map(function(mt,Ht){return E.createElement(ke.Z,null,E.createElement(Ie.Z,null,E.createElement(Ze.default,{key:Ht,disabled:!0})),E.createElement(Ie.Z,{flex:"1"},E.createElement("span",{className:"c-black font14 ml10"},mt)))}))))},pe=()=>E.createElement("aside",null,E.createElement("div",{className:Ct.Z.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u3010\u591A\u9009\u3011"),E.createElement("span",{className:"font16",style:{color:"#666666"}},"\u5FC5\u7B54"),E.createElement(Pe.Z,{checked:!!Te,onChange:ge=>Le(ge),className:"ml10"}))),E.createElement("p",{className:Ct.Z.titleWrap},E.createElement(ke.Z,{className:Ct.Z.choiceWrap,gutter:[12,12]},E.createElement(Ie.Z,null,E.createElement("span",null,"\u6807\u9898")),E.createElement(Ie.Z,{className:Ct.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},value:yt,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:ge=>ve(ge.target.value)})))),je.map((ge,We)=>{var xe;let Ge=je.length-1;return E.createElement(ke.Z,{className:Ct.Z.choiceWrap,key:We,gutter:[12,12]},E.createElement(Ie.Z,null,E.createElement("span",null,wt&&We===Ge?"\u5176\u5B83":"\u9009\u9879")),E.createElement(Ie.Z,{className:Ct.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},placeholder:(xe=ge.placeholder)!=null?xe:"",value:wt&&We===Ge?"":je[We].value,disabled:!!ge.disabled,onChange:nt=>{je[We].value=nt.target.value,Pt([...je])}})),E.createElement(Ie.Z,null,We>1&&E.createElement(Se.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Ct.Z.deleteIcon} iconfont icon-yichu1`,onClick:()=>{Pt(je.filter((nt,St)=>St!==We)),ge.disabled&&pt(!1)}}))))}),E.createElement("p",{className:Ct.Z.titleWrap},E.createElement(ke.Z,{className:Ct.Z.choiceWrap,gutter:[12,12]},E.createElement(Ie.Z,null,E.createElement("span",null,"\u53EF\u9009")),E.createElement(Ie.Z,null,E.createElement(Je.default,{value:ut||"",style:{width:183,height:"40px"},onChange:ge=>ae(ge)},E.createElement(Je.default.Option,{value:""},"--"),je.map(function(ge,We){return E.createElement(Je.default.Option,{value:String(We+1)},We+1)})),E.createElement("span",{className:"ml10 mr10"},"-"),E.createElement(Je.default,{style:{width:183,height:"40px"},value:Fe||"",onChange:ge=>At(ge)},E.createElement(Je.default.Option,{value:""},"--"),je.map(function(ge,We){return E.createElement(Je.default.Option,{value:String(We+1)},We+1)})),E.createElement(Se.Z,{title:"\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"},E.createElement("i",{className:"iconfont icon-xiaowenhao1 font14",style:{marginLeft:"10px",color:"#3061D0",cursor:"pointer"}}))))),E.createElement("div",{style:{display:"flex",width:"1000px",margin:"20px 0 0 40px"}},ct===1&&E.createElement(E.Fragment,null,E.createElement(qe.op,{style:{height:"38px"},onClick:()=>{let ge=[...je];wt?ge.splice(ge.length-1,0,{value:""}):ge.push({value:""}),Pt([...ge])}},"\u65B0\u589E\u9009\u9879"),!wt&&E.createElement(qe.op,{style:{height:"38px",marginLeft:"20px"},onClick:()=>{Pt([...je,{disabled:!0,value:"",placeholder:"\u65E0\u6CD5\u7F16\u8F91\uFF01\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u5F55\u5165"}]),pt(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement("div",{className:Ct.Z.close_style,onClick:()=>{var ge;if((ge=$e.question)!=null&&ge.id){const We=je.findIndex(xe=>!xe.value);me&&We>-1?we("del",$e.key):we("edit",-1)}else we("del",$e.key)}},"\u53D6\u6D88"),E.createElement("div",{className:Ct.Z.save_style,onClick:()=>te()},"\u4FDD\u5B58")));return E.createElement("section",{className:Ct.Z.wrap},De!==$e.key&&ne(),De===$e.key&&pe())};zt.Z=(0,lt.connect)(({problemset:gt,loading:Ne,globalSetting:Ve})=>({problemset:gt,globalSetting:Ve,loading:Ne.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Ke))},36892:function(nn,zt,re){"use strict";var E=re(59301),lt=re(44283),ye=re(6767),et=re(62957),Se=re(25399),ke=re(77019),Ie=re(5269),Ze=re(47889),Pe=re(58755),he=re(37568),Je=re(92216),Ee=re(42624),Ct=re(70467),qe=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,at=(Ke,gt,Ne)=>gt in Ke?qe(Ke,gt,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Ke[gt]=Ne,xt=(Ke,gt)=>{for(var Ne in gt||(gt={}))Ue.call(gt,Ne)&&at(Ke,Ne,gt[Ne]);if(Ae)for(var Ne of Ae(gt))He.call(gt,Ne)&&at(Ke,Ne,gt[Ne]);return Ke},kt=(Ke,gt)=>{var Ne={};for(var Ve in Ke)Ue.call(Ke,Ve)&&gt.indexOf(Ve)<0&&(Ne[Ve]=Ke[Ve]);if(Ke!=null&&Ae)for(var Ve of Ae(Ke))gt.indexOf(Ve)<0&&He.call(Ke,Ve)&&(Ne[Ve]=Ke[Ve]);return Ne},ft=(Ke,gt,Ne)=>new Promise((Ve,ht)=>{var Ce=se=>{try{_e(Ne.next(se))}catch($e){ht($e)}},Re=se=>{try{_e(Ne.throw(se))}catch($e){ht($e)}},_e=se=>se.done?Ve(se.value):Promise.resolve(se.value).then(Ce,Re);_e((Ne=Ne.apply(Ke,gt)).next())});const it=["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"],tt=(Ke,gt)=>{var Ne=Ke,{problemset:Ve,globalSetting:ht,loading:Ce,dispatch:Re,onRef:_e=()=>{},editData:se,editKey:$e,callback:De,isadd:we,polls_status:ct}=Ne,me=kt(Ne,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback","isadd","polls_status"]);const[ce,je]=(0,E.useState)([]),[Pt,yt]=(0,E.useState)(""),[ve,Te]=(0,E.useState)(!0),[Le,wt]=(0,E.useState)(!1),pt=(0,lt.useParams)();(0,E.useEffect)(()=>{var ee,oe,ue,ne,pe,ge,We;if(!((ee=se==null?void 0:se.question)!=null&&ee.question_title)){je([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Te(!0),yt(""),wt(!1);return}yt((oe=se==null?void 0:se.question)==null?void 0:oe.question_title),Te(!!((ue=se==null?void 0:se.question)!=null&&ue.is_necessary)),je(we?(pe=se==null?void 0:se.question)==null?void 0:pe.question_answers.map(xe=>({value:xe,disabled:xe==="\u5176\u5B83",placeholder:xe==="\u5176\u5B83"?"\u65E0\u6CD5\u7F16\u8F91\uFF0C\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u7F16\u8F91":""})):(ne=se==null?void 0:se.question)==null?void 0:ne.answers.map(xe=>({value:xe.answer_text,disabled:xe.answer_text==="\u5176\u5B83",placeholder:xe.answer_text==="\u5176\u5B83"?"\u65E0\u6CD5\u7F16\u8F91\uFF0C\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u7F16\u8F91":""}))),wt(!!((We=(ge=se==null?void 0:se.question)==null?void 0:ge.answers)!=null&&We.find(xe=>xe.answer_text==="\u5176\u5B83")))},[se]),(0,E.useImperativeHandle)(gt,()=>({onSave:Mt}));const Mt=ee=>ft(void 0,null,function*(){var oe;if(!Pt)return ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;Le&&(ce[ce.length-1].value="\u5176\u5B83");const ue=ce.findIndex(ge=>!ge.value);if(ue>-1)return ye.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${it[ue]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let ne;const pe={question_title:Pt,question_type:1,insert_id:se.insert_id,is_necessary:Math.ceil(ve),question_answers:ce.map(ge=>ge.value)};if((oe=se.question)!=null&&oe.id?(De("edit",-1),ne=yield(0,Je.IU)(xt({pollsId:se.question.id},pe))):we?ee?De("isadd",pe,1):De("isadd",pe):ne=yield(0,Je.MK)(xt({pollsId:pt.categoryId},pe)),!we){if(ne.status===0){De("edit",-1),ye.ZP.success("\u4FDD\u5B58\u6210\u529F");const ge=yield Re({type:"polls/editPolls",payload:xt({},pt)});if(ee){pe.answers=pe.question_answers.map(xe=>({answer_text:xe}));const We=[...ge.poll_questions];We.splice(se==null?void 0:se.key,0,{insert_id:se==null?void 0:se.insert_id,question:xt({},pe)}).slice(),De("addContinue",[...We]),De("edit",se.key+1)}}}}),Fe=[{name:"\u5220\u9664",icon:"iconfont c-red ml30 icon-shanchutimu current font20",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current font20",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current font20",id:"down"},{name:"\u590D\u5236\u9898\u578B",icon:"iconfont c-green ml30 icon-tianjia2 current font20",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianji-moren current font20",id:"edit"}],At=[{name:"\u5220\u9664",icon:"iconfont c-red ml30 icon-shanchutimu current font20",id:"del"},{name:"\u590D\u5236\u9898\u578B",icon:"iconfont c-green ml30 icon-tianjia2 current font20",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianji-moren current font20",id:"edit"}],ut=ee=>ft(void 0,null,function*(){var oe,ue;switch(ee.id){case"del":let ne;et.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return ft(this,null,function*(){var pe;we?De("del",se.key):(yield(0,Je.jy)({pollsId:(pe=se==null?void 0:se.question)==null?void 0:pe.id}),Re({type:"polls/editPolls",payload:xt({},pt)}))})}});break;case"up":case"down":yield(0,Je.wh)({pollsId:(oe=se==null?void 0:se.question)==null?void 0:oe.id,opr:ee.id}),Re({type:"polls/editPolls",payload:xt({},pt)});break;case"edit":De("edit",se.key);break;case"add":De("add",{type:1,key:se.key,insert_id:(ue=se==null?void 0:se.question)==null?void 0:ue.id,question_type:1});break}}),ae=()=>{var ee,oe;return E.createElement("aside",null,E.createElement("div",{className:Ee.Z.questionType},E.createElement("div",null,se.question.is_necessary>0&&E.createElement("span",{style:{color:"red",fontSize:"14px"}},"*"),E.createElement("span",{className:"font16",style:{color:"#3061D0"}},"\u3010\u5355\u9009\u3011"),E.createElement("span",{className:Ee.Z.edit_title},E.createElement("span",{style:{marginRight:"10px"}},"\u7B2C",se.key,"\u9898"),se.question.question_title)),!we&&Fe.map(function(ue,ne){return ue.id==="up"&&se.key===1||ue.id==="down"&&se.key===se.len?null:E.createElement(Se.Z,{key:ne,placement:"bottom",title:ue.name},E.createElement("span",{onClick:()=>ut(ue),className:ue.icon}))}),we&&At.map(function(ue,ne){return ue.id==="up"&&se.key===1||ue.id==="down"&&se.key===se.len?null:E.createElement(Se.Z,{key:ne,placement:"bottom",title:ue.name},E.createElement("span",{onClick:()=>ut(ue),className:ue.icon}))})),!we&&E.createElement("div",{className:Ee.Z.questionChoices},(ee=se==null?void 0:se.question.answers)==null?void 0:ee.map(function(ue,ne){return E.createElement(ke.Z,null,E.createElement(Ie.Z,null,E.createElement(Ze.ZP,{key:ne,disabled:!0})),E.createElement(Ie.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},ue.answer_text)))})),we&&E.createElement("div",{className:Ee.Z.questionChoices},(oe=se==null?void 0:se.question.question_answers)==null?void 0:oe.map(function(ue,ne){return E.createElement(ke.Z,null,E.createElement(Ie.Z,null,E.createElement(Ze.ZP,{key:ne,disabled:!0})),E.createElement(Ie.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},ue)))})))},te=()=>E.createElement("aside",null,E.createElement("div",{className:Ee.Z.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u3010\u5355\u9009\u3011"),E.createElement("span",{className:"font16",style:{color:"#666666"}},"\u5FC5\u7B54"),E.createElement(Pe.Z,{checked:!!ve,onChange:ee=>Te(ee),className:"ml10"}))),E.createElement("p",{className:Ee.Z.titleWrap},E.createElement(ke.Z,{className:Ee.Z.choiceWrap,gutter:[12,12]},E.createElement(Ie.Z,null,E.createElement("span",null,"\u6807\u9898")),E.createElement(Ie.Z,{className:Ee.Z.editorWrap},E.createElement(he.default,{style:{width:"1000px",height:"40px"},value:Pt,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:ee=>yt(ee.target.value)})))),ce.map((ee,oe)=>{var ue;let ne=ce.length-1;return E.createElement(ke.Z,{className:Ee.Z.choiceWrap,key:oe,gutter:[12,12]},E.createElement(Ie.Z,null,E.createElement("span",null,Le&&oe===ne?"\u5176\u5B83":"\u9009\u9879")),E.createElement(Ie.Z,{className:Ee.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},placeholder:(ue=ee.placeholder)!=null?ue:"",value:Le&&oe===ne?"":ce[oe].value,disabled:!!ee.disabled,onChange:pe=>{ce[oe].value=pe.target.value,je([...ce])}})),E.createElement(Ie.Z,null,oe>1&&E.createElement(Se.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Ee.Z.deleteIcon} iconfont icon-yichu1`,onClick:()=>{je(ce.filter((pe,ge)=>ge!==oe)),ee.disabled&&wt(!1)}}))))}),E.createElement("div",{style:{display:"flex",width:"1000px",margin:"20px 0 0 40px"}},ct===1&&E.createElement(E.Fragment,null,E.createElement(Ct.op,{style:{height:"38px"},onClick:()=>{let ee=[...ce];Le?ee.splice(ee.length-1,0,{value:""}):ee.push({value:""}),je([...ee])}},"\u65B0\u589E\u9009\u9879"),!Le&&E.createElement(Ct.op,{style:{height:"38px",marginLeft:"20px"},onClick:()=>{je([...ce,{disabled:!0,value:"",placeholder:"\u65E0\u6CD5\u7F16\u8F91\uFF01\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u5F55\u5165"}]),wt(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement("div",{className:Ee.Z.close_style,onClick:()=>{var ee;if((ee=se.question)!=null&&ee.id){const oe=ce.findIndex(ue=>!ue.value);we&&oe>-1?De("del",se.key):De("edit",-1)}else De("del",se.key)}},"\u53D6\u6D88"),E.createElement("div",{className:Ee.Z.save_style,onClick:()=>Mt()},"\u4FDD\u5B58")));return E.createElement("section",{className:Ee.Z.wrap},$e!==se.key&&ae(),$e===se.key&&te())};zt.Z=(0,lt.connect)(({problemset:Ke,loading:gt,globalSetting:Ne})=>({problemset:Ke,globalSetting:Ne,loading:gt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(tt))},39613:function(nn,zt,re){"use strict";var E=re(59301),lt=re(44283),ye=re(6767),et=re(62957),Se=re(25399),ke=re(77019),Ie=re(5269),Ze=re(62673),Pe=re(58755),he=re(37568),Je=re(92216),Ee=re(42624),Ct=Object.defineProperty,qe=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,He=(ft,it,tt)=>it in ft?Ct(ft,it,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[it]=tt,at=(ft,it)=>{for(var tt in it||(it={}))Ae.call(it,tt)&&He(ft,tt,it[tt]);if(qe)for(var tt of qe(it))Ue.call(it,tt)&&He(ft,tt,it[tt]);return ft},xt=(ft,it,tt)=>new Promise((Ke,gt)=>{var Ne=Ce=>{try{ht(tt.next(Ce))}catch(Re){gt(Re)}},Ve=Ce=>{try{ht(tt.throw(Ce))}catch(Re){gt(Re)}},ht=Ce=>Ce.done?Ke(Ce.value):Promise.resolve(Ce.value).then(Ne,Ve);ht((tt=tt.apply(ft,it)).next())});const kt=({problemset:ft,globalSetting:it,loading:tt,dispatch:Ke,onRef:gt=()=>{},editData:Ne,polls_status:Ve,editKey:ht,isadd:Ce,callback:Re},_e)=>{const[se,$e]=(0,E.useState)(""),[De,we]=(0,E.useState)(!0),ct=(0,lt.useParams)();(0,E.useEffect)(()=>{var Te,Le,wt;if(!((Te=Ne==null?void 0:Ne.question)!=null&&Te.question_title)){we(!0),$e("");return}$e((Le=Ne==null?void 0:Ne.question)==null?void 0:Le.question_title),we(!!((wt=Ne==null?void 0:Ne.question)!=null&&wt.is_necessary))},[Ne]),(0,E.useImperativeHandle)(_e,()=>({onSave:me}));const me=Te=>xt(void 0,null,function*(){var Le;if(!se)return ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;let wt;const pt={question_title:se,question_type:3,insert_id:Ne.insert_id,is_necessary:Math.ceil(De)};if((Le=Ne.question)!=null&&Le.id?wt=yield(0,Je.IU)(at({pollsId:Ne.question.id},pt)):Ce?Te?Re("isadd",pt,3):Re("isadd",pt):wt=yield(0,Je.MK)(at({pollsId:ct.categoryId},pt)),!Ce&&wt.status===0){ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),Re("edit",-1);const Mt=yield Ke({type:"polls/editPolls",payload:at({},ct)});if(Te){const Fe=[...Mt.poll_questions];Fe.splice(Ne==null?void 0:Ne.key,0,{insert_id:Ne==null?void 0:Ne.insert_id,question:at({},pt)}).slice(),Re("addContinue",[...Fe]),Re("edit",Ne.key+1)}}}),ce=[{name:"\u5220\u9664",icon:"iconfont c-red ml30 icon-shanchutimu current font20",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current font20",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current font20",id:"down"},{name:"\u590D\u5236\u9898\u578B",icon:"iconfont c-green ml30 icon-tianjia2 current font20",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianji-moren current font20",id:"edit"}],je=[{name:"\u5220\u9664",icon:"iconfont c-red ml30 icon-shanchutimu current font20",id:"del"},{name:"\u590D\u5236\u9898\u578B",icon:"iconfont c-green ml30 icon-tianjia2 current font20",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianji-moren current font20",id:"edit"}],Pt=Te=>xt(void 0,null,function*(){var Le,wt;switch(Te.id){case"del":let pt;et.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return xt(this,null,function*(){var Mt;Ce?Re("del",Ne.key):(yield(0,Je.jy)({pollsId:(Mt=Ne==null?void 0:Ne.question)==null?void 0:Mt.id}),Ke({type:"polls/editPolls",payload:at({},ct)}))})}});break;case"up":case"down":yield(0,Je.wh)({pollsId:(Le=Ne==null?void 0:Ne.question)==null?void 0:Le.id,opr:Te.id}),Ke({type:"polls/editPolls",payload:at({},ct)});break;case"edit":Re("edit",Ne.key);break;case"add":Re("add",{type:3,key:Ne.key,insert_id:(wt=Ne==null?void 0:Ne.question)==null?void 0:wt.id,question_type:3});break}}),yt=()=>{var Te;return E.createElement("aside",null,E.createElement("div",{className:Ee.Z.questionType},E.createElement("div",null,Ne.question.is_necessary>0&&E.createElement("span",{style:{color:"red",fontSize:"14px"}},"*"),E.createElement("span",{className:"font16",style:{color:"#3061D0"}},"\u3010\u95EE\u7B54\u3011"),E.createElement("span",{className:Ee.Z.edit_title},E.createElement("span",{style:{marginRight:"10px"}},"\u7B2C",Ne.key,"\u9898"),Ne.question.question_title)),!Ce&&ce.map(function(Le,wt){return Le.id==="up"&&Ne.key===1||Le.id==="down"&&Ne.key===Ne.len?null:E.createElement(Se.Z,{key:wt,placement:"bottom",title:Le.name},E.createElement("span",{onClick:()=>Pt(Le),className:Le.icon}))}),Ce&&je.map(function(Le,wt){return Le.id==="up"&&Ne.key===1||Le.id==="down"&&Ne.key===Ne.len?null:E.createElement(Se.Z,{key:wt,placement:"bottom",title:Le.name},E.createElement("span",{onClick:()=>Pt(Le),className:Le.icon}))})),E.createElement("div",{className:Ee.Z.questionChoices},(Te=Ne==null?void 0:Ne.question.answers)==null?void 0:Te.map(function(Le,wt){return E.createElement(ke.Z,null,E.createElement(Ie.Z,null,E.createElement(Ze.default,{key:wt,disabled:!0},E.createElement("span",{className:"c-black font14"},Le.answer_text))))})))},ve=()=>E.createElement("aside",null,E.createElement("div",{className:Ee.Z.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u3010\u95EE\u7B54\u3011"),E.createElement("span",{className:"font16",style:{color:"#666666"}},"\u5FC5\u7B54"),E.createElement(Pe.Z,{checked:!!De,onChange:Te=>we(Te),className:"ml10"}))),E.createElement("p",{className:Ee.Z.titleWrap},E.createElement(ke.Z,{className:Ee.Z.choiceWrap,gutter:[12,12]},E.createElement(Ie.Z,null,E.createElement("span",null,"\u6807\u9898")),E.createElement(Ie.Z,{className:Ee.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},value:se,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:Te=>$e(Te.target.value)})))),E.createElement("div",{style:{display:"flex",width:"1000px",margin:"20px 0 0 40px"}},E.createElement("div",{className:Ee.Z.close_style,onClick:()=>{var Te;(Te=Ne.question)!=null&&Te.id?Ce?se?Re("edit",-1):Re("del",Ne.key):Re("edit",-1):Re("del",Ne.key)}},"\u53D6\u6D88"),E.createElement("div",{className:Ee.Z.save_style,onClick:()=>me()},"\u4FDD\u5B58")));return E.createElement("section",{className:Ee.Z.wrap},ht!==Ne.key&&yt(),ht===Ne.key&&ve())};zt.Z=(0,lt.connect)(({problemset:ft,loading:it,globalSetting:tt})=>({problemset:ft,globalSetting:tt,loading:it.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(kt))},43539:function(nn,zt,re){"use strict";re.r(zt),re.d(zt,{IsNecessaryLabel:function(){return ht},default:function(){return Ve}});var E=re(59301),lt=re(44283),ye=re(28284),et=re(6767),Se=re(37285),ke=re(91882),Ie=re(77019),Ze=re(5269),Pe=re(25399),he=re(37568),Je=re(7939),Ee=re(92216),Ct=re(35883),qe=re(52885),Ae=re(36892),Ue=re(39613),He=re(39116),at={flex_box_center:"flex_box_center___zXTbi",flex_space_between:"flex_space_between___PmyCC",flex_box_vertical_center:"flex_box_vertical_center___FVTkH",flex_box_center_end:"flex_box_center_end___hhcmG",flex_box_column:"flex_box_column___M32tw",bg:"bg___nBRtw",containerTitle:"containerTitle___aZMyO",containerDesc:"containerDesc___IBU0r",listItem:"listItem___N1XyK",info:"info___ckHt5",title:"title___ZKDBe",titleLeft:"titleLeft___f48Qy",titleRight:"titleRight___iByom",acitons:"acitons___x97ti",necessary_label:"necessary_label___Myrf1",footer:"footer___JmjoU",footer_button:"footer_button___vk5p0",button_style:"button_style___ZDgkQ"},xt=Object.defineProperty,kt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,tt=(Ce,Re,_e)=>Re in Ce?xt(Ce,Re,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Ce[Re]=_e,Ke=(Ce,Re)=>{for(var _e in Re||(Re={}))ft.call(Re,_e)&&tt(Ce,_e,Re[_e]);if(kt)for(var _e of kt(Re))it.call(Re,_e)&&tt(Ce,_e,Re[_e]);return Ce},gt=(Ce,Re,_e)=>new Promise((se,$e)=>{var De=me=>{try{ct(_e.next(me))}catch(ce){$e(ce)}},we=me=>{try{ct(_e.throw(me))}catch(ce){$e(ce)}},ct=me=>me.done?se(me.value):Promise.resolve(me.value).then(De,we);ct((_e=_e.apply(Ce,Re)).next())});const Ne=({polls:Ce,globalSetting:Re,loading:_e,user:se,dispatch:$e})=>{var De,we,ct,me,ce,je,Pt,yt,ve;const Te=(0,lt.useParams)(),{userInfo:Le}=se,[wt]=ye.default.useForm();let[pt,Mt]=(0,E.useState)([]);const[Fe,At]=(0,E.useState)(!0);let[ut,ae]=(0,E.useState)(-1);const te=[{name:"\u5355\u9009\u9898",id:1},{name:"\u591A\u9009\u9898",id:2},{name:"\u4E3B\u89C2\u9898",id:3}],ee=(0,E.useRef)();(0,E.useEffect)(()=>{var We,xe,Ge,nt,St,mt,Ht;(We=Ce.editData)!=null&&We.poll_questions&&(pt=[...(xe=Ce.editData)==null?void 0:xe.poll_questions],Mt([...(Ge=Ce.editData)==null?void 0:Ge.poll_questions]),wt.setFieldsValue({polls_name:(St=(nt=Ce.editData)==null?void 0:nt.poll)==null?void 0:St.polls_name,polls_description:(Ht=(mt=Ce.editData)==null?void 0:mt.poll)==null?void 0:Ht.polls_description}))},[Ce.editData]);const oe=(we=(De=Ce.editData)==null?void 0:De.poll)==null?void 0:we.polls_status;console.log("editdata1111:",pt),(0,E.useEffect)(()=>{$e({type:"polls/editPolls",payload:Ke({},Te)})},[Te.categoryId]),(0,E.useEffect)(()=>($e({type:"globalSetting/footerToggle",payload:!1}),()=>{$e({type:"globalSetting/footerToggle",payload:!0})}),[]);const ue=We=>gt(void 0,null,function*(){yield wt.validateFields();const xe=wt.getFieldValue();xe.is_md=!0,xe.pollsId=Te.categoryId,(yield(0,Ee.Qg)(Ke({},xe))).status===0&&(et.ZP.success("\u7F16\u8F91\u6210\u529F"),$e({type:"polls/editPolls",payload:Ke({},Te)}))}),ne=We=>gt(void 0,null,function*(){if(ut!==-1){et.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}ae(pt.length+1),Mt([...pt,{question:{question_type:We}}])}),pe=(We,xe,Ge)=>{switch(We){case"edit":ut===-1||xe===-1?(ut=xe,ae(xe)):et.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");break;case"add":if(ut!=-1){et.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}delete xe.id,pt.splice(xe==null?void 0:xe.key,0,{insert_id:xe==null?void 0:xe.insert_id,question:Ke({},xe)}).slice(),Mt([...pt]),ae((xe==null?void 0:xe.key)+1);break;case"addContinue":Mt([...xe]);break;case"del":pt.splice(xe-1,1),Mt([...pt]),ae(-1);break}},ge=function(){return pt==null?void 0:pt.map((We,xe)=>{var Ge;if(We.key=xe+1,We.len=pt.length,We.question.question_type===1)return E.createElement("aside",{key:We.id},E.createElement(Ae.Z,{ref:ee,editKey:ut,polls_status:oe,callback:pe,editData:We}),E.createElement(Se.Z,null));if(We.question.question_type===2)return E.createElement("aside",{key:We.id},E.createElement(qe.Z,{ref:ee,editKey:ut,polls_status:oe,callback:pe,editData:We}),E.createElement(Se.Z,null));if(((Ge=We.question)==null?void 0:Ge.question_type)===3)return E.createElement("aside",{key:We.id},E.createElement(Ue.Z,{ref:ee,editKey:ut,polls_status:oe,callback:pe,editData:We}),E.createElement(Se.Z,null))})};return E.createElement("div",null,E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},Le&&E.createElement(ke.Z,{separator:">"},E.createElement(ke.Z.Item,null,E.createElement(lt.Link,{to:`${Le.first_category_url}`},(ct=Le.course)==null?void 0:ct.course_name)),E.createElement(ke.Z.Item,null,E.createElement(lt.Link,{to:`/classrooms/${Te.coursesId}/poll`},"\u95EE\u5377\u5217\u8868")),E.createElement(ke.Z.Item,null,"\u7F16\u8F91\u95EE\u5377"))),E.createElement("aside",{className:[at.title,"mt20"].join(" ")},E.createElement(Ie.Z,{style:{width:"100%"}},E.createElement(Ze.Z,{flex:"1"},E.createElement("strong",{className:"font18 ml5"},"\u7F16\u8F91\u95EE\u5377")),E.createElement(Ze.Z,null,E.createElement(lt.Link,{className:"font14 c-light-black",to:`/classrooms/${Te.coursesId}/poll/${Te.categoryId}/detail`},"\u8FD4\u56DE"))))),E.createElement("section",{className:[at.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!Fe&&E.createElement("aside",null,E.createElement("div",{className:at.containerDesc},E.createElement("div",null,(ce=(me=Ce.editData)==null?void 0:me.poll)==null?void 0:ce.polls_name),E.createElement("div",null,E.createElement(Pe.Z,{title:"\u7F16\u8F91"},E.createElement("span",{onClick:()=>At(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),E.createElement(Ct.Z,{className:"c-light-black",value:((Pt=(je=Ce.editData)==null?void 0:je.poll)==null?void 0:Pt.polls_description)||""})),Fe&&E.createElement(ye.default,{layout:"vertical",form:wt},E.createElement(ye.default.Item,{name:"polls_name",label:"\u95EE\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u95EE\u5377\u6807\u9898"}]},E.createElement(he.default,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",style:{height:"40px"},onBlur:()=>{ue()}})),E.createElement(ye.default.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"polls_description"},E.createElement(He.Z,{watch:!0,height:200,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E",defaultValue:(ve=(yt=Ce.editData)==null?void 0:yt.poll)==null?void 0:ve.polls_description,onBlur:()=>{ue()}})))),pt!=""&&E.createElement("section",{className:[at.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},ge())),E.createElement("div",{className:at.footer},E.createElement("div",{className:at.footer_button},oe===1?E.createElement("section",{className:at.bg,style:{display:"flex"}},te.map(function(We){return E.createElement("div",{className:at.button_style,onClick:()=>ne(We.id)},E.createElement("i",{className:"iconfont icon-tianjia4 mr5 font14"}),We.name)})):null,E.createElement(Je.ZP,{type:"primary",style:{marginLeft:"auto"},onClick:()=>{lt.history.push(`/classrooms/${Te.coursesId}/poll/${Te.categoryId}/detail?tabs=2`),$e({type:"polls/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[Te.categoryId],types:2,params:{categoryId:Te.categoryId}}})}},E.createElement("i",{className:"iconfont icon-fasong font16 mr5"}),"\u53D1\u5E03\u95EE\u5377"))))};var Ve=(0,lt.connect)(({polls:Ce,loading:Re,user:_e,globalSetting:se})=>({polls:Ce,globalSetting:se,user:_e,loading:Re.effects}))(Ne);function ht({v:Ce}){return E.createElement(E.Fragment,null,Ce>0?E.createElement("span",{className:at.necessary_label},"\u5FC5\u7B54"):E.createElement("span",{className:at.necessary_label},"\u9009\u7B54"))}},20047:function(nn,zt,re){"use strict";re.d(zt,{AL:function(){return ft},Iy:function(){return Je},Qv:function(){return qe},ez:function(){return kt},jb:function(){return Ee}});var E=re(32834),lt=re.n(E),ye=re(11690),et=re.n(ye);let Se=1;function ke(Ne,Ve){const ht=Ne.match(/^(\s+)(?:```)/);if(ht===null)return Ve;const Ce=ht[1];return Ve.split(`
`).map(Re=>{const _e=Re.match(/^\s+/);if(_e===null)return Re;const[se]=_e;return se.length>=Ce.length?Re.slice(Ce.length):Re}).join(`
`)}let Ie=[],Ze=["<ul>"];const Pe=new(lt()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Ie.length=0,Ze=["<ul>"]}const Ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ct(Ne,Ve,ht,Ce){if(Ve>=Ne.length||Ne[Ve].level<=ht)return Ve;var Re=Ne[Ve];Ce.push("<li><a href='#"+Se+Re.anchor+"'>"+Re.text+"</a>"),Ve++;var _e=[];return Ve=Ct(Ne,Ve,Re.level,_e),_e.length>0&&(Ce.push("<ul>"),_e.forEach(function(se){Ce.push(se)}),Ce.push("</ul>")),Ce.push("</li>"),Ve=Ct(Ne,Ve,ht,Ce),Ve}function qe(){return Ct(Ie,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const Ae={heading(Ne){const Ve=he.exec(Ne);if(Se+=1,Ve)return{type:"heading",raw:Ve[0],depth:Ve[1].length,text:Ve[2]}},fences(Ne){const Ve=this.rules.block.fences.exec(Ne);if(Ve){const ht=Ve[0];let Ce=ke(ht,Ve[3]||"");const Re=Ve[2]?Ve[2].trim():Ve[2];if(["latex","katex","math"].indexOf(Re)>=0){const _e=at(),se=Ce;Ce=_e,xt[_e]={type:"block",expression:se}}return{type:"code",raw:ht,lang:Re,text:Ce}}}},Ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let He=0;const at=()=>`__special_katext_id_${He++}__`;let xt={};function kt(){return xt}function ft(){He=0,xt={}}function it(Ne){return Ne=Ne.replace(Ue,(Ve,ht)=>{const Ce=at();return xt[Ce]={type:"inline",expression:ht},Ce}),Ne}const tt=Pe.listitem;Pe.listitem=function(Ne){return tt(it(Ne))};const Ke=Pe.paragraph;Pe.paragraph=function(Ne){return Ke(it(Ne))};const gt=Pe.tablecell;Pe.tablecell=function(Ne,Ve){return gt(it(Ne),Ve)},Pe.code=function(Ne,Ve,ht){const Ce=(Ve||"").match(/\S*/)[0];return Ce?["latex","katex","math"].indexOf(Ce)>=0?`<p class='editormd-tex'>${Ne}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ve}">${ht?Ne:(0,ye.escape)(Ne,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ht?Ne:(0,ye.escape)(Ne,!0))+"</code></pre>"},Pe.heading=function(Ne,Ve,ht){let Ce=this.options.headerPrefix+ht.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ie.push({anchor:Ce,level:Ve,text:Ne}),"<h"+Ve+' id="'+Se+Ce+'">'+Ne+"</h"+Ve+">"},lt().setOptions({silent:!0,gfm:!0,pedantic:!1}),lt().use({tokenizer:Ae,renderer:Pe}),zt.ZP=lt()},86013:function(nn,zt,re){"use strict";var E=re(59301),lt=re(19248);const ye=et=>{let Se;return typeof et=="object"&&(et!=null&&et.clearIcon)?Se=et:et&&(Se={clearIcon:E.createElement(lt.Z,null)}),Se};zt.Z=ye},91882:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return De}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(11592),Se=re(26112),ke=re(22703),Ie=re(48755),Ze=re(84105),Pe=re(19563);const he=we=>{let{children:ct}=we;const{getPrefixCls:me}=E.useContext(Ie.E_),ce=me("breadcrumb");return E.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},ct===""?ct:ct||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=he,Ee=function(we,ct){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ct.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ce=Object.getOwnPropertySymbols(we);je<ce.length;je++)ct.indexOf(ce[je])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[je])&&(me[ce[je]]=we[ce[je]]);return me};function Ct(we,ct){if(we.title===void 0||we.title===null)return null;const me=Object.keys(ct).join("|");return typeof we.title=="object"?we.title:String(we.title).replace(new RegExp(`:(${me})`,"g"),(ce,je)=>ct[je]||ce)}function qe(we,ct,me,ce){if(me==null)return null;const{className:je,onClick:Pt}=ct,yt=Ee(ct,["className","onClick"]),ve=Object.assign(Object.assign({},(0,Se.Z)(yt,{data:!0,aria:!0})),{onClick:Pt});return ce!==void 0?E.createElement("a",Object.assign({},ve,{className:ye()(`${we}-link`,je),href:ce}),me):E.createElement("span",Object.assign({},ve,{className:ye()(`${we}-link`,je)}),me)}function Ae(we,ct){return(ce,je,Pt,yt,ve)=>{if(ct)return ct(ce,je,Pt,yt);const Te=Ct(ce,je);return qe(we,ce,Te,ve)}}var Ue=function(we,ct){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ct.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ce=Object.getOwnPropertySymbols(we);je<ce.length;je++)ct.indexOf(ce[je])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[je])&&(me[ce[je]]=we[ce[je]]);return me};const He=we=>{const{prefixCls:ct,separator:me="/",children:ce,menu:je,overlay:Pt,dropdownProps:yt,href:ve}=we,Le=(wt=>{if(je||Pt){const pt=Object.assign({},yt);if(je){const Mt=je||{},{items:Fe}=Mt,At=Ue(Mt,["items"]);pt.menu=Object.assign(Object.assign({},At),{items:Fe==null?void 0:Fe.map((ut,ae)=>{var{key:te,title:ee,label:oe,path:ue}=ut,ne=Ue(ut,["key","title","label","path"]);let pe=oe!=null?oe:ee;return ue&&(pe=E.createElement("a",{href:`${ve}${ue}`},pe)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:pe})})})}else Pt&&(pt.overlay=Pt);return E.createElement(Pe.Z,Object.assign({placement:"bottom"},pt),E.createElement("span",{className:`${ct}-overlay-link`},wt,E.createElement(Ze.Z,null)))}return wt})(ce);return Le!=null?E.createElement(E.Fragment,null,E.createElement("li",null,Le),me&&E.createElement(Je,null,me)):null},at=we=>{const{prefixCls:ct,children:me,href:ce}=we,je=Ue(we,["prefixCls","children","href"]),{getPrefixCls:Pt}=E.useContext(Ie.E_),yt=Pt("breadcrumb",ct);return E.createElement(He,Object.assign({},je,{prefixCls:yt}),qe(yt,je,me,ce))};at.__ANT_BREADCRUMB_ITEM=!0;var xt=at,kt=re(36237),ft=re(63356),it=re(16931),tt=re(51636);const Ke=we=>{const{componentCls:ct,iconCls:me,calc:ce}=we;return{[ct]:Object.assign(Object.assign({},(0,ft.Wf)(we)),{color:we.itemColor,fontSize:we.fontSize,[me]:{fontSize:we.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:we.linkColor,transition:`color ${we.motionDurationMid}`,padding:`0 ${(0,kt.unit)(we.paddingXXS)}`,borderRadius:we.borderRadiusSM,height:we.fontHeight,display:"inline-block",marginInline:ce(we.marginXXS).mul(-1).equal(),"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover}},(0,ft.Qy)(we)),"li:last-child":{color:we.lastItemColor},[`${ct}-separator`]:{marginInline:we.separatorMargin,color:we.separatorColor},[`${ct}-link`]:{[`
> ${me} + span,
> ${me} + a
`]:{marginInlineStart:we.marginXXS}},[`${ct}-overlay-link`]:{borderRadius:we.borderRadiusSM,height:we.fontHeight,display:"inline-block",padding:`0 ${(0,kt.unit)(we.paddingXXS)}`,marginInline:ce(we.marginXXS).mul(-1).equal(),[`> ${me}`]:{marginInlineStart:we.marginXXS,fontSize:we.fontSizeIcon},"&:hover":{color:we.linkHoverColor,backgroundColor:we.colorBgTextHover,a:{color:we.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${we.componentCls}-rtl`]:{direction:"rtl"}})}},gt=we=>({itemColor:we.colorTextDescription,lastItemColor:we.colorText,iconFontSize:we.fontSize,linkColor:we.colorTextDescription,linkHoverColor:we.colorText,separatorColor:we.colorTextDescription,separatorMargin:we.marginXS});var Ne=(0,it.I$)("Breadcrumb",we=>{const ct=(0,tt.mergeToken)(we,{});return Ke(ct)},gt),Ve=function(we,ct){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ct.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ce=Object.getOwnPropertySymbols(we);je<ce.length;je++)ct.indexOf(ce[je])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[je])&&(me[ce[je]]=we[ce[je]]);return me};function ht(we){const{breadcrumbName:ct,children:me}=we,ce=Ve(we,["breadcrumbName","children"]),je=Object.assign({title:ct},ce);return me&&(je.menu={items:me.map(Pt=>{var{breadcrumbName:yt}=Pt,ve=Ve(Pt,["breadcrumbName"]);return Object.assign(Object.assign({},ve),{title:yt})})}),je}function Ce(we,ct){return(0,E.useMemo)(()=>we||(ct?ct.map(ht):null),[we,ct])}var Re=function(we,ct){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ct.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ce=Object.getOwnPropertySymbols(we);je<ce.length;je++)ct.indexOf(ce[je])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[je])&&(me[ce[je]]=we[ce[je]]);return me};const _e=(we,ct)=>{if(ct===void 0)return ct;let me=(ct||"").replace(/^\//,"");return Object.keys(we).forEach(ce=>{me=me.replace(`:${ce}`,we[ce])}),me},se=we=>{const{prefixCls:ct,separator:me="/",style:ce,className:je,rootClassName:Pt,routes:yt,items:ve,children:Te,itemRender:Le,params:wt={}}=we,pt=Re(we,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Mt,direction:Fe,breadcrumb:At}=E.useContext(Ie.E_);let ut;const ae=Mt("breadcrumb",ct),[te,ee,oe]=Ne(ae),ue=Ce(ve,yt),ne=Ae(ae,Le);if(ue&&ue.length>0){const We=[],xe=ve||yt;ut=ue.map((Ge,nt)=>{const{path:St,key:mt,type:Ht,menu:Zt,overlay:$t,onClick:tn,className:Xt,separator:rn,dropdownProps:Ot}=Ge,Yt=_e(wt,St);Yt!==void 0&&We.push(Yt);const Vt=mt!=null?mt:nt;if(Ht==="separator")return E.createElement(Je,{key:Vt},rn);const ze={},dt=nt===ue.length-1;Zt?ze.menu=Zt:$t&&(ze.overlay=$t);let{href:Nt}=Ge;return We.length&&Yt!==void 0&&(Nt=`#/${We.join("/")}`),E.createElement(He,Object.assign({key:Vt},ze,(0,Se.Z)(Ge,{data:!0,aria:!0}),{className:Xt,dropdownProps:Ot,href:Nt,separator:dt?"":me,onClick:tn,prefixCls:ae}),ne(Ge,wt,xe,We,Nt))})}else if(Te){const We=(0,et.Z)(Te).length;ut=(0,et.Z)(Te).map((xe,Ge)=>{if(!xe)return xe;const nt=Ge===We-1;return(0,ke.Tm)(xe,{separator:nt?"":me,key:Ge})})}const pe=ye()(ae,At==null?void 0:At.className,{[`${ae}-rtl`]:Fe==="rtl"},je,Pt,ee,oe),ge=Object.assign(Object.assign({},At==null?void 0:At.style),ce);return te(E.createElement("nav",Object.assign({className:pe,style:ge},pt),E.createElement("ol",null,ut)))};se.Item=xt,se.Separator=Je;var $e=se,De=$e},62673:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return Ne}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(16632),Se=re(8654),ke=re(12919),Ie=re(63872),Ze=re(48755),Pe=re(2171),he=re(83397),Je=re(56553),Ct=E.createContext(null),qe=re(36170),Ae=re(74632),Ue=function(Ve,ht){var Ce={};for(var Re in Ve)Object.prototype.hasOwnProperty.call(Ve,Re)&&ht.indexOf(Re)<0&&(Ce[Re]=Ve[Re]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Re=Object.getOwnPropertySymbols(Ve);_e<Re.length;_e++)ht.indexOf(Re[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Re[_e])&&(Ce[Re[_e]]=Ve[Re[_e]]);return Ce};const He=(Ve,ht)=>{var Ce;const{prefixCls:Re,className:_e,rootClassName:se,children:$e,indeterminate:De=!1,style:we,onMouseEnter:ct,onMouseLeave:me,skipGroup:ce=!1,disabled:je}=Ve,Pt=Ue(Ve,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:yt,direction:ve,checkbox:Te}=E.useContext(Ze.E_),Le=E.useContext(Ct),{isFormItemInput:wt}=E.useContext(Je.aM),pt=E.useContext(Pe.Z),Mt=(Ce=(Le==null?void 0:Le.disabled)||je)!==null&&Ce!==void 0?Ce:pt,Fe=E.useRef(Pt.value),At=E.useRef(null),ut=(0,Se.sQ)(ht,At);E.useEffect(()=>{Le==null||Le.registerValue(Pt.value)},[]),E.useEffect(()=>{if(!ce)return Pt.value!==Fe.current&&(Le==null||Le.cancelValue(Fe.current),Le==null||Le.registerValue(Pt.value),Fe.current=Pt.value),()=>Le==null?void 0:Le.cancelValue(Pt.value)},[Pt.value]),E.useEffect(()=>{var Ge;!((Ge=At.current)===null||Ge===void 0)&&Ge.input&&(At.current.input.indeterminate=De)},[De]);const ae=yt("checkbox",Re),te=(0,he.Z)(ae),[ee,oe,ue]=(0,qe.ZP)(ae,te),ne=Object.assign({},Pt);Le&&!ce&&(ne.onChange=function(){Pt.onChange&&Pt.onChange.apply(Pt,arguments),Le.toggleOption&&Le.toggleOption({label:$e,value:Pt.value})},ne.name=Le.name,ne.checked=Le.value.includes(Pt.value));const pe=ye()(`${ae}-wrapper`,{[`${ae}-rtl`]:ve==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Mt,[`${ae}-wrapper-in-form-item`]:wt},Te==null?void 0:Te.className,_e,se,ue,te,oe),ge=ye()({[`${ae}-indeterminate`]:De},Ie.A,oe),[We,xe]=(0,Ae.Z)(ne.onClick);return ee(E.createElement(ke.Z,{component:"Checkbox",disabled:Mt},E.createElement("label",{className:pe,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),we),onMouseEnter:ct,onMouseLeave:me,onClick:We},E.createElement(et.Z,Object.assign({},ne,{onClick:xe,prefixCls:ae,className:ge,disabled:Mt,ref:ut})),$e!==void 0&&E.createElement("span",{className:`${ae}-label`},$e))))};var xt=E.forwardRef(He),kt=re(77654),ft=re(2738),it=function(Ve,ht){var Ce={};for(var Re in Ve)Object.prototype.hasOwnProperty.call(Ve,Re)&&ht.indexOf(Re)<0&&(Ce[Re]=Ve[Re]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Re=Object.getOwnPropertySymbols(Ve);_e<Re.length;_e++)ht.indexOf(Re[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Re[_e])&&(Ce[Re[_e]]=Ve[Re[_e]]);return Ce},Ke=E.forwardRef((Ve,ht)=>{const{defaultValue:Ce,children:Re,options:_e=[],prefixCls:se,className:$e,rootClassName:De,style:we,onChange:ct}=Ve,me=it(Ve,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:je}=E.useContext(Ze.E_),[Pt,yt]=E.useState(me.value||Ce||[]),[ve,Te]=E.useState([]);E.useEffect(()=>{"value"in me&&yt(me.value||[])},[me.value]);const Le=E.useMemo(()=>_e.map(ge=>typeof ge=="string"||typeof ge=="number"?{label:ge,value:ge}:ge),[_e]),wt=ge=>{Te(We=>We.filter(xe=>xe!==ge))},pt=ge=>{Te(We=>[].concat((0,kt.Z)(We),[ge]))},Mt=ge=>{const We=Pt.indexOf(ge.value),xe=(0,kt.Z)(Pt);We===-1?xe.push(ge.value):xe.splice(We,1),"value"in me||yt(xe),ct==null||ct(xe.filter(Ge=>ve.includes(Ge)).sort((Ge,nt)=>{const St=Le.findIndex(Ht=>Ht.value===Ge),mt=Le.findIndex(Ht=>Ht.value===nt);return St-mt}))},Fe=ce("checkbox",se),At=`${Fe}-group`,ut=(0,he.Z)(Fe),[ae,te,ee]=(0,qe.ZP)(Fe,ut),oe=(0,ft.Z)(me,["value","disabled"]),ue=_e.length?Le.map(ge=>E.createElement(xt,{prefixCls:Fe,key:ge.value.toString(),disabled:"disabled"in ge?ge.disabled:me.disabled,value:ge.value,checked:Pt.includes(ge.value),onChange:ge.onChange,className:`${At}-item`,style:ge.style,title:ge.title,id:ge.id,required:ge.required},ge.label)):Re,ne={toggleOption:Mt,value:Pt,disabled:me.disabled,name:me.name,registerValue:pt,cancelValue:wt},pe=ye()(At,{[`${At}-rtl`]:je==="rtl"},$e,De,ee,ut,te);return ae(E.createElement("div",Object.assign({className:pe,style:we},oe,{ref:ht}),E.createElement(Ct.Provider,{value:ne},ue)))});const gt=xt;gt.Group=Ke,gt.__ANT_CHECKBOX=!0;var Ne=gt},36170:function(nn,zt,re){"use strict";re.d(zt,{C2:function(){return ke}});var E=re(36237),lt=re(63356),ye=re(51636),et=re(16931);const Se=Ie=>{const{checkboxCls:Ze}=Ie,Pe=`${Ze}-wrapper`;return[{[`${Ze}-group`]:Object.assign(Object.assign({},(0,lt.Wf)(Ie)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ie.marginXS,[`> ${Ie.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,lt.Wf)(Ie)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ze]:Object.assign(Object.assign({},(0,lt.Wf)(Ie)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ie.borderRadiusSM,alignSelf:"center",[`${Ze}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ze}-inner`]:Object.assign({},(0,lt.oN)(Ie))},[`${Ze}-inner`]:{boxSizing:"border-box",display:"block",width:Ie.checkboxSize,height:Ie.checkboxSize,direction:"ltr",backgroundColor:Ie.colorBgContainer,border:`${(0,E.unit)(Ie.lineWidth)} ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ie.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ie.calc(Ie.checkboxSize).div(14).mul(5).equal(),height:Ie.calc(Ie.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(Ie.lineWidthBold)} solid ${Ie.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ie.motionDurationFast} ${Ie.motionEaseInBack}, opacity ${Ie.motionDurationFast}`}},"& + span":{paddingInlineStart:Ie.paddingXS,paddingInlineEnd:Ie.paddingXS}})},{[`
${Pe}:not(${Pe}-disabled),
${Ze}:not(${Ze}-disabled)
`]:{[`&:hover ${Ze}-inner`]:{borderColor:Ie.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${Ze}-checked:not(${Ze}-disabled) ${Ze}-inner`]:{backgroundColor:Ie.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ze}-checked:not(${Ze}-disabled):after`]:{borderColor:Ie.colorPrimaryHover}}},{[`${Ze}-checked`]:{[`${Ze}-inner`]:{backgroundColor:Ie.colorPrimary,borderColor:Ie.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ie.motionDurationMid} ${Ie.motionEaseOutBack} ${Ie.motionDurationFast}`}}},[`
${Pe}-checked:not(${Pe}-disabled),
${Ze}-checked:not(${Ze}-disabled)
`]:{[`&:hover ${Ze}-inner`]:{backgroundColor:Ie.colorPrimaryHover,borderColor:"transparent"}}},{[Ze]:{"&-indeterminate":{[`${Ze}-inner`]:{backgroundColor:`${Ie.colorBgContainer} !important`,borderColor:`${Ie.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ie.calc(Ie.fontSizeLG).div(2).equal(),height:Ie.calc(Ie.fontSizeLG).div(2).equal(),backgroundColor:Ie.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ze}-inner`]:{backgroundColor:`${Ie.colorBgContainer} !important`,borderColor:`${Ie.colorPrimary} !important`}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${Ze}-disabled`]:{[`&, ${Ze}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ze}-inner`]:{background:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,"&:after":{borderColor:Ie.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ie.colorTextDisabled},[`&${Ze}-indeterminate ${Ze}-inner::after`]:{background:Ie.colorTextDisabled}}}]};function ke(Ie,Ze){const Pe=(0,ye.mergeToken)(Ze,{checkboxCls:`.${Ie}`,checkboxSize:Ze.controlInteractiveSize});return[Se(Pe)]}zt.ZP=(0,et.I$)("Checkbox",(Ie,Ze)=>{let{prefixCls:Pe}=Ze;return[ke(Pe,Ie)]})},38406:function(nn,zt,re){"use strict";var E=re(59301),lt=re(48755),ye=re(584);const et=Se=>{const{componentName:ke}=Se,{getPrefixCls:Ie}=(0,E.useContext)(lt.E_),Ze=Ie("empty");switch(ke){case"Table":case"List":return E.createElement(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(ye.Z,{image:ye.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ze}-small`});case"Table.filter":return null;default:return E.createElement(ye.Z,null)}};zt.Z=et},37285:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return qe}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(48755),Se=re(36237),ke=re(63356),Ie=re(16931),Ze=re(51636);const Pe=Ae=>{const{componentCls:Ue,sizePaddingEdgeHorizontal:He,colorSplit:at,lineWidth:xt,textPaddingInline:kt,orientationMargin:ft,verticalMarginInline:it}=Ae;return{[Ue]:Object.assign(Object.assign({},(0,ke.Wf)(Ae)),{borderBlockStart:`${(0,Se.unit)(xt)} solid ${at}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:it,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Se.unit)(xt)} solid ${at}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Se.unit)(Ae.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ue}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Se.unit)(Ae.dividerHorizontalWithTextGutterMargin)} 0`,color:Ae.colorTextHeading,fontWeight:500,fontSize:Ae.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${at}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Se.unit)(xt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ue}-with-text-start`]:{"&::before":{width:`calc(${ft} * 100%)`},"&::after":{width:`calc(100% - ${ft} * 100%)`}},[`&-horizontal${Ue}-with-text-end`]:{"&::before":{width:`calc(100% - ${ft} * 100%)`},"&::after":{width:`calc(${ft} * 100%)`}},[`${Ue}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:kt},"&-dashed":{background:"none",borderColor:at,borderStyle:"dashed",borderWidth:`${(0,Se.unit)(xt)} 0 0`},[`&-horizontal${Ue}-with-text${Ue}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ue}-dashed`]:{borderInlineStartWidth:xt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:at,borderStyle:"dotted",borderWidth:`${(0,Se.unit)(xt)} 0 0`},[`&-horizontal${Ue}-with-text${Ue}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ue}-dotted`]:{borderInlineStartWidth:xt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ue}-with-text`]:{color:Ae.colorText,fontWeight:"normal",fontSize:Ae.fontSize},[`&-horizontal${Ue}-with-text-start${Ue}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ue}-inner-text`]:{paddingInlineStart:He}},[`&-horizontal${Ue}-with-text-end${Ue}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ue}-inner-text`]:{paddingInlineEnd:He}}})}},he=Ae=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ae.marginXS});var Je=(0,Ie.I$)("Divider",Ae=>{const Ue=(0,Ze.mergeToken)(Ae,{dividerHorizontalWithTextGutterMargin:Ae.margin,dividerHorizontalGutterMargin:Ae.marginLG,sizePaddingEdgeHorizontal:0});return[Pe(Ue)]},he,{unitless:{orientationMargin:!0}}),Ee=function(Ae,Ue){var He={};for(var at in Ae)Object.prototype.hasOwnProperty.call(Ae,at)&&Ue.indexOf(at)<0&&(He[at]=Ae[at]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,at=Object.getOwnPropertySymbols(Ae);xt<at.length;xt++)Ue.indexOf(at[xt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,at[xt])&&(He[at[xt]]=Ae[at[xt]]);return He},qe=Ae=>{const{getPrefixCls:Ue,direction:He,className:at,style:xt}=(0,et.dj)("divider"),{prefixCls:kt,type:ft="horizontal",orientation:it="center",orientationMargin:tt,className:Ke,rootClassName:gt,children:Ne,dashed:Ve,variant:ht="solid",plain:Ce,style:Re}=Ae,_e=Ee(Ae,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),se=Ue("divider",kt),[$e,De,we]=Je(se),ct=!!Ne,me=E.useMemo(()=>it==="left"?He==="rtl"?"end":"start":it==="right"?He==="rtl"?"start":"end":it,[He,it]),ce=me==="start"&&tt!=null,je=me==="end"&&tt!=null,Pt=ye()(se,at,De,we,`${se}-${ft}`,{[`${se}-with-text`]:ct,[`${se}-with-text-${me}`]:ct,[`${se}-dashed`]:!!Ve,[`${se}-${ht}`]:ht!=="solid",[`${se}-plain`]:!!Ce,[`${se}-rtl`]:He==="rtl",[`${se}-no-default-orientation-margin-start`]:ce,[`${se}-no-default-orientation-margin-end`]:je},Ke,gt),yt=E.useMemo(()=>typeof tt=="number"?tt:/^\d+$/.test(tt)?Number(tt):tt,[tt]),ve={marginInlineStart:ce?yt:void 0,marginInlineEnd:je?yt:void 0};return $e(E.createElement("div",Object.assign({className:Pt,style:Object.assign(Object.assign({},xt),Re)},_e,{role:"separator"}),Ne&&ft!=="vertical"&&E.createElement("span",{className:`${se}-inner-text`,style:ve},Ne)))}},36207:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return We}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(85899),Se=re(72190),ke=re(43403),Ie=re(34280),Ze=E.createContext(null),Pe=E.createContext({}),he=Ze,Je=re(18642),Ee=re(60499),Ct=re(77900),qe=re(10228),Ae=re(26112),Ue=re(42244),He=re(8654),at=["prefixCls","className","containerRef"],xt=function(Ge){var nt=Ge.prefixCls,St=Ge.className,mt=Ge.containerRef,Ht=(0,Ue.Z)(Ge,at),Zt=E.useContext(Pe),$t=Zt.panel,tn=(0,He.x1)($t,mt);return E.createElement("div",(0,Ee.Z)({className:ye()("".concat(nt,"-content"),St),role:"dialog",ref:tn},(0,Ae.Z)(Ge,{aria:!0}),{"aria-modal":"true"},Ht))},kt=xt,ft=re(48736);function it(xe){return typeof xe=="string"&&String(Number(xe))===xe?((0,ft.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(xe)):xe}function tt(xe){warning(!("wrapperClassName"in xe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!xe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function gt(xe,Ge){var nt,St,mt,Ht=xe.prefixCls,Zt=xe.open,$t=xe.placement,tn=xe.inline,Xt=xe.push,rn=xe.forceRender,Ot=xe.autoFocus,Yt=xe.keyboard,Vt=xe.classNames,ze=xe.rootClassName,dt=xe.rootStyle,Nt=xe.zIndex,Wt=xe.className,Be=xe.id,rt=xe.style,bt=xe.motion,Dt=xe.width,Ut=xe.height,ln=xe.children,In=xe.mask,Pn=xe.maskClosable,on=xe.maskMotion,bn=xe.maskClassName,dn=xe.maskStyle,Gt=xe.afterOpenChange,Lt=xe.onClose,Rt=xe.onMouseEnter,Et=xe.onMouseOver,en=xe.onMouseLeave,Jt=xe.onClick,qt=xe.onKeyDown,gn=xe.onKeyUp,wn=xe.styles,Sn=xe.drawerRender,Mn=E.useRef(),kn=E.useRef(),Wn=E.useRef();E.useImperativeHandle(Ge,function(){return Mn.current});var An=function(Ft){var Tt=Ft.keyCode,fn=Ft.shiftKey;switch(Tt){case qe.Z.TAB:{if(Tt===qe.Z.TAB){if(!fn&&document.activeElement===Wn.current){var Tn;(Tn=kn.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}else if(fn&&document.activeElement===kn.current){var Dn;(Dn=Wn.current)===null||Dn===void 0||Dn.focus({preventScroll:!0})}}break}case qe.Z.ESC:{Lt&&Yt&&(Ft.stopPropagation(),Lt(Ft));break}}};E.useEffect(function(){if(Zt&&Ot){var Qt;(Qt=Mn.current)===null||Qt===void 0||Qt.focus({preventScroll:!0})}},[Zt]);var Bt=E.useState(!1),Kt=(0,Se.Z)(Bt,2),xn=Kt[0],hn=Kt[1],Xe=E.useContext(he),st;typeof Xt=="boolean"?st=Xt?{}:{distance:0}:st=Xt||{};var Oe=(nt=(St=(mt=st)===null||mt===void 0?void 0:mt.distance)!==null&&St!==void 0?St:Xe==null?void 0:Xe.pushDistance)!==null&&nt!==void 0?nt:180,Ye=E.useMemo(function(){return{pushDistance:Oe,push:function(){hn(!0)},pull:function(){hn(!1)}}},[Oe]);E.useEffect(function(){if(Zt){var Qt;Xe==null||(Qt=Xe.push)===null||Qt===void 0||Qt.call(Xe)}else{var Ft;Xe==null||(Ft=Xe.pull)===null||Ft===void 0||Ft.call(Xe)}},[Zt]),E.useEffect(function(){return function(){var Qt;Xe==null||(Qt=Xe.pull)===null||Qt===void 0||Qt.call(Xe)}},[]);var Me=In&&E.createElement(Ct.default,(0,Ee.Z)({key:"mask"},on,{visible:Zt}),function(Qt,Ft){var Tt=Qt.className,fn=Qt.style;return E.createElement("div",{className:ye()("".concat(Ht,"-mask"),Tt,Vt==null?void 0:Vt.mask,bn),style:(0,et.Z)((0,et.Z)((0,et.Z)({},fn),dn),wn==null?void 0:wn.mask),onClick:Pn&&Zt?Lt:void 0,ref:Ft})}),Qe=typeof bt=="function"?bt($t):bt,It={};if(xn&&Oe)switch($t){case"top":It.transform="translateY(".concat(Oe,"px)");break;case"bottom":It.transform="translateY(".concat(-Oe,"px)");break;case"left":It.transform="translateX(".concat(Oe,"px)");break;default:It.transform="translateX(".concat(-Oe,"px)");break}$t==="left"||$t==="right"?It.width=it(Dt):It.height=it(Ut);var an={onMouseEnter:Rt,onMouseOver:Et,onMouseLeave:en,onClick:Jt,onKeyDown:qt,onKeyUp:gn},un=E.createElement(Ct.default,(0,Ee.Z)({key:"panel"},Qe,{visible:Zt,forceRender:rn,onVisibleChanged:function(Ft){Gt==null||Gt(Ft)},removeOnLeave:!1,leavedClassName:"".concat(Ht,"-content-wrapper-hidden")}),function(Qt,Ft){var Tt=Qt.className,fn=Qt.style,Tn=E.createElement(kt,(0,Ee.Z)({id:Be,containerRef:Ft,prefixCls:Ht,className:ye()(Wt,Vt==null?void 0:Vt.content),style:(0,et.Z)((0,et.Z)({},rt),wn==null?void 0:wn.content)},(0,Ae.Z)(xe,{aria:!0}),an),ln);return E.createElement("div",(0,Ee.Z)({className:ye()("".concat(Ht,"-content-wrapper"),Vt==null?void 0:Vt.wrapper,Tt),style:(0,et.Z)((0,et.Z)((0,et.Z)({},It),fn),wn==null?void 0:wn.wrapper)},(0,Ae.Z)(xe,{data:!0})),Sn?Sn(Tn):Tn)}),vn=(0,et.Z)({},dt);return Nt&&(vn.zIndex=Nt),E.createElement(he.Provider,{value:Ye},E.createElement("div",{className:ye()(Ht,"".concat(Ht,"-").concat($t),ze,(0,Je.Z)((0,Je.Z)({},"".concat(Ht,"-open"),Zt),"".concat(Ht,"-inline"),tn)),style:vn,tabIndex:-1,ref:Mn,onKeyDown:An},Me,E.createElement("div",{tabIndex:0,ref:kn,style:Ke,"aria-hidden":"true","data-sentinel":"start"}),un,E.createElement("div",{tabIndex:0,ref:Wn,style:Ke,"aria-hidden":"true","data-sentinel":"end"})))}var Ne=E.forwardRef(gt),Ve=Ne,ht=function(Ge){var nt=Ge.open,St=nt===void 0?!1:nt,mt=Ge.prefixCls,Ht=mt===void 0?"rc-drawer":mt,Zt=Ge.placement,$t=Zt===void 0?"right":Zt,tn=Ge.autoFocus,Xt=tn===void 0?!0:tn,rn=Ge.keyboard,Ot=rn===void 0?!0:rn,Yt=Ge.width,Vt=Yt===void 0?378:Yt,ze=Ge.mask,dt=ze===void 0?!0:ze,Nt=Ge.maskClosable,Wt=Nt===void 0?!0:Nt,Be=Ge.getContainer,rt=Ge.forceRender,bt=Ge.afterOpenChange,Dt=Ge.destroyOnClose,Ut=Ge.onMouseEnter,ln=Ge.onMouseOver,In=Ge.onMouseLeave,Pn=Ge.onClick,on=Ge.onKeyDown,bn=Ge.onKeyUp,dn=Ge.panelRef,Gt=E.useState(!1),Lt=(0,Se.Z)(Gt,2),Rt=Lt[0],Et=Lt[1],en=E.useState(!1),Jt=(0,Se.Z)(en,2),qt=Jt[0],gn=Jt[1];(0,Ie.Z)(function(){gn(!0)},[]);var wn=qt?St:!1,Sn=E.useRef(),Mn=E.useRef();(0,Ie.Z)(function(){wn&&(Mn.current=document.activeElement)},[wn]);var kn=function(xn){var hn;if(Et(xn),bt==null||bt(xn),!xn&&Mn.current&&!((hn=Sn.current)!==null&&hn!==void 0&&hn.contains(Mn.current))){var Xe;(Xe=Mn.current)===null||Xe===void 0||Xe.focus({preventScroll:!0})}},Wn=E.useMemo(function(){return{panel:dn}},[dn]);if(!rt&&!Rt&&!wn&&Dt)return null;var An={onMouseEnter:Ut,onMouseOver:ln,onMouseLeave:In,onClick:Pn,onKeyDown:on,onKeyUp:bn},Bt=(0,et.Z)((0,et.Z)({},Ge),{},{open:wn,prefixCls:Ht,placement:$t,autoFocus:Xt,keyboard:Ot,width:Vt,mask:dt,maskClosable:Wt,inline:Be===!1,afterOpenChange:kn,ref:Sn},An);return E.createElement(Pe.Provider,{value:Wn},E.createElement(ke.Z,{open:wn||rt||Rt,autoDestroy:!1,getContainer:Be,autoLock:dt&&(wn||Rt)},E.createElement(Ve,Bt)))},Ce=ht,Re=Ce,_e=re(62487),se=re(75030),$e=re(86641),De=re(55743),we=re(48755),ct=re(91190),me=re(78776),ce=re(458),Pt=xe=>{var Ge,nt;const{prefixCls:St,title:mt,footer:Ht,extra:Zt,loading:$t,onClose:tn,headerStyle:Xt,bodyStyle:rn,footerStyle:Ot,children:Yt,classNames:Vt,styles:ze}=xe,dt=(0,we.dj)("drawer"),Nt=E.useCallback(Dt=>E.createElement("button",{type:"button",onClick:tn,"aria-label":"Close",className:`${St}-close`},Dt),[tn]),[Wt,Be]=(0,me.Z)((0,me.w)(xe),(0,me.w)(dt),{closable:!0,closeIconRender:Nt}),rt=E.useMemo(()=>{var Dt,Ut;return!mt&&!Wt?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Dt=dt.styles)===null||Dt===void 0?void 0:Dt.header),Xt),ze==null?void 0:ze.header),className:ye()(`${St}-header`,{[`${St}-header-close-only`]:Wt&&!mt&&!Zt},(Ut=dt.classNames)===null||Ut===void 0?void 0:Ut.header,Vt==null?void 0:Vt.header)},E.createElement("div",{className:`${St}-header-title`},Be,mt&&E.createElement("div",{className:`${St}-title`},mt)),Zt&&E.createElement("div",{className:`${St}-extra`},Zt))},[Wt,Be,Zt,Xt,St,mt]),bt=E.useMemo(()=>{var Dt,Ut;if(!Ht)return null;const ln=`${St}-footer`;return E.createElement("div",{className:ye()(ln,(Dt=dt.classNames)===null||Dt===void 0?void 0:Dt.footer,Vt==null?void 0:Vt.footer),style:Object.assign(Object.assign(Object.assign({},(Ut=dt.styles)===null||Ut===void 0?void 0:Ut.footer),Ot),ze==null?void 0:ze.footer)},Ht)},[Ht,Ot,St]);return E.createElement(E.Fragment,null,rt,E.createElement("div",{className:ye()(`${St}-body`,Vt==null?void 0:Vt.body,(Ge=dt.classNames)===null||Ge===void 0?void 0:Ge.body),style:Object.assign(Object.assign(Object.assign({},(nt=dt.styles)===null||nt===void 0?void 0:nt.body),rn),ze==null?void 0:ze.body)},$t?E.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${St}-body-skeleton`}):Yt),bt)},yt=re(36237),ve=re(63356),Te=re(16931),Le=re(51636);const wt=xe=>{const Ge="100%";return{left:`translateX(-${Ge})`,right:`translateX(${Ge})`,top:`translateY(-${Ge})`,bottom:`translateY(${Ge})`}[xe]},pt=(xe,Ge)=>({"&-enter, &-appear":Object.assign(Object.assign({},xe),{"&-active":Ge}),"&-leave":Object.assign(Object.assign({},Ge),{"&-active":xe})}),Mt=(xe,Ge)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ge}`}}},pt({opacity:xe},{opacity:1})),Fe=(xe,Ge)=>[Mt(.7,Ge),pt({transform:wt(xe)},{transform:"none"})];var ut=xe=>{const{componentCls:Ge,motionDurationSlow:nt}=xe;return{[Ge]:{[`${Ge}-mask-motion`]:Mt(0,nt),[`${Ge}-panel-motion`]:["left","right","top","bottom"].reduce((St,mt)=>Object.assign(Object.assign({},St),{[`&-${mt}`]:Fe(mt,nt)}),{})}}};const ae=xe=>{const{borderRadiusSM:Ge,componentCls:nt,zIndexPopup:St,colorBgMask:mt,colorBgElevated:Ht,motionDurationSlow:Zt,motionDurationMid:$t,paddingXS:tn,padding:Xt,paddingLG:rn,fontSizeLG:Ot,lineHeightLG:Yt,lineWidth:Vt,lineType:ze,colorSplit:dt,marginXS:Nt,colorIcon:Wt,colorIconHover:Be,colorBgTextHover:rt,colorBgTextActive:bt,colorText:Dt,fontWeightStrong:Ut,footerPaddingBlock:ln,footerPaddingInline:In,calc:Pn}=xe,on=`${nt}-content-wrapper`;return{[nt]:{position:"fixed",inset:0,zIndex:St,pointerEvents:"none",color:Dt,"&-pure":{position:"relative",background:Ht,display:"flex",flexDirection:"column",[`&${nt}-left`]:{boxShadow:xe.boxShadowDrawerLeft},[`&${nt}-right`]:{boxShadow:xe.boxShadowDrawerRight},[`&${nt}-top`]:{boxShadow:xe.boxShadowDrawerUp},[`&${nt}-bottom`]:{boxShadow:xe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${nt}-mask`]:{position:"absolute",inset:0,zIndex:St,background:mt,pointerEvents:"auto"},[on]:{position:"absolute",zIndex:St,maxWidth:"100vw",transition:`all ${Zt}`,"&-hidden":{display:"none"}},[`&-left > ${on}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:xe.boxShadowDrawerLeft},[`&-right > ${on}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:xe.boxShadowDrawerRight},[`&-top > ${on}`]:{top:0,insetInline:0,boxShadow:xe.boxShadowDrawerUp},[`&-bottom > ${on}`]:{bottom:0,insetInline:0,boxShadow:xe.boxShadowDrawerDown},[`${nt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Ht,pointerEvents:"auto"},[`${nt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,yt.unit)(Xt)} ${(0,yt.unit)(rn)}`,fontSize:Ot,lineHeight:Yt,borderBottom:`${(0,yt.unit)(Vt)} ${ze} ${dt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${nt}-extra`]:{flex:"none"},[`${nt}-close`]:Object.assign({display:"inline-flex",width:Pn(Ot).add(tn).equal(),height:Pn(Ot).add(tn).equal(),borderRadius:Ge,justifyContent:"center",alignItems:"center",marginInlineEnd:Nt,color:Wt,fontWeight:Ut,fontSize:Ot,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${$t}`,textRendering:"auto","&:hover":{color:Be,backgroundColor:rt,textDecoration:"none"},"&:active":{backgroundColor:bt}},(0,ve.Qy)(xe)),[`${nt}-title`]:{flex:1,margin:0,fontWeight:xe.fontWeightStrong,fontSize:Ot,lineHeight:Yt},[`${nt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:rn,overflow:"auto",[`${nt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${nt}-footer`]:{flexShrink:0,padding:`${(0,yt.unit)(ln)} ${(0,yt.unit)(In)}`,borderTop:`${(0,yt.unit)(Vt)} ${ze} ${dt}`},"&-rtl":{direction:"rtl"}}}},te=xe=>({zIndexPopup:xe.zIndexPopupBase,footerPaddingBlock:xe.paddingXS,footerPaddingInline:xe.padding});var ee=(0,Te.I$)("Drawer",xe=>{const Ge=(0,Le.mergeToken)(xe,{});return[ae(Ge),ut(Ge)]},te),oe=function(xe,Ge){var nt={};for(var St in xe)Object.prototype.hasOwnProperty.call(xe,St)&&Ge.indexOf(St)<0&&(nt[St]=xe[St]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,St=Object.getOwnPropertySymbols(xe);mt<St.length;mt++)Ge.indexOf(St[mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,St[mt])&&(nt[St[mt]]=xe[St[mt]]);return nt};const ue=null,ne={distance:180},pe=xe=>{var Ge;const{rootClassName:nt,width:St,height:mt,size:Ht="default",mask:Zt=!0,push:$t=ne,open:tn,afterOpenChange:Xt,onClose:rn,prefixCls:Ot,getContainer:Yt,style:Vt,className:ze,visible:dt,afterVisibleChange:Nt,maskStyle:Wt,drawerStyle:Be,contentWrapperStyle:rt}=xe,bt=oe(xe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Dt,getPrefixCls:Ut,direction:ln,className:In,style:Pn,classNames:on,styles:bn}=(0,we.dj)("drawer"),dn=Ut("drawer",Ot),[Gt,Lt,Rt]=ee(dn),Et=Yt===void 0&&Dt?()=>Dt(document.body):Yt,en=ye()({"no-mask":!Zt,[`${dn}-rtl`]:ln==="rtl"},nt,Lt,Rt),Jt=E.useMemo(()=>St!=null?St:Ht==="large"?736:378,[St,Ht]),qt=E.useMemo(()=>mt!=null?mt:Ht==="large"?736:378,[mt,Ht]),gn={motionName:(0,$e.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},wn=Bt=>({motionName:(0,$e.m)(dn,`panel-motion-${Bt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Sn=(0,ct.H)(),[Mn,kn]=(0,se.Cn)("Drawer",bt.zIndex),{classNames:Wn={},styles:An={}}=bt;return Gt(E.createElement(_e.Z,{form:!0,space:!0},E.createElement(De.Z.Provider,{value:kn},E.createElement(Re,Object.assign({prefixCls:dn,onClose:rn,maskMotion:gn,motion:wn},bt,{classNames:{mask:ye()(Wn.mask,on.mask),content:ye()(Wn.content,on.content),wrapper:ye()(Wn.wrapper,on.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},An.mask),Wt),bn.mask),content:Object.assign(Object.assign(Object.assign({},An.content),Be),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},An.wrapper),rt),bn.wrapper)},open:tn!=null?tn:dt,mask:Zt,push:$t,width:Jt,height:qt,style:Object.assign(Object.assign({},Pn),Vt),className:ye()(In,ze),rootClassName:en,getContainer:Et,afterOpenChange:Xt!=null?Xt:Nt,panelRef:Sn,zIndex:Mn}),E.createElement(Pt,Object.assign({prefixCls:dn},bt,{onClose:rn}))))))},ge=xe=>{const{prefixCls:Ge,style:nt,className:St,placement:mt="right"}=xe,Ht=oe(xe,["prefixCls","style","className","placement"]),{getPrefixCls:Zt}=E.useContext(we.E_),$t=Zt("drawer",Ge),[tn,Xt,rn]=ee($t),Ot=ye()($t,`${$t}-pure`,`${$t}-${mt}`,Xt,rn,St);return tn(E.createElement("div",{className:Ot,style:nt},E.createElement(Pt,Object.assign({prefixCls:$t},Ht))))};pe._InternalPanelDoNotUseOrYouWillBeFired=ge;var We=pe},19563:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return yt}});var E=re(59301),lt=re(33853),ye=re(38819),et=re(92310),Se=re.n(et),ke=re(96478),Ie=re(6089),Ze=re(18929),Pe=re(2738),he=re(75030),Ee=ve=>typeof ve!="object"&&typeof ve!="function"||ve===null,Ct=re(52838),qe=re(45915),Ae=re(22703),Ue=re(32383),He=re(55743),at=re(48755),xt=re(83397),kt=re(93041),ft=re(78857),it=re(57700),tt=re(36237),Ke=re(63356),gt=re(46e3),Ne=re(93873),Ve=re(34925),ht=re(37645),Ce=re(36305),Re=re(16931),_e=re(51636),$e=ve=>{const{componentCls:Te,menuCls:Le,colorError:wt,colorTextLightSolid:pt}=ve,Mt=`${Le}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${Le} ${Mt}`]:{[`&${Mt}-danger:not(${Mt}-disabled)`]:{color:wt,"&:hover":{color:pt,backgroundColor:wt}}}}}};const De=ve=>{const{componentCls:Te,menuCls:Le,zIndexPopup:wt,dropdownArrowDistance:pt,sizePopupArrow:Mt,antCls:Fe,iconCls:At,motionDurationMid:ut,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:ne,colorBgElevated:pe}=ve;return[{[Te]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:wt,display:"block","&::before":{position:"absolute",insetBlock:ve.calc(Mt).div(2).sub(pt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Fe}-btn`]:{[`& > ${At}-down, & > ${Fe}-btn-icon > ${At}-down`]:{fontSize:ue}},[`${Te}-wrap`]:{position:"relative",[`${Fe}-btn > ${At}-down`]:{fontSize:ue},[`${At}-down::before`]:{transition:`transform ${ut}`}},[`${Te}-wrap-open`]:{[`${At}-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${Te}-placement-bottomLeft,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Te}-placement-bottomLeft,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Te}-placement-bottom,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Te}-placement-bottom,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${Te}-placement-bottomRight,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:gt.fJ},[`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Te}-placement-topLeft,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Te}-placement-topLeft,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Te}-placement-top,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Te}-placement-top,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${Te}-placement-topRight,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:gt.Qt},[`&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Te}-placement-bottomLeft,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Te}-placement-bottom,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:gt.Uw},[`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Te}-placement-topLeft,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Te}-placement-top,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:gt.ly}}},(0,ht.ZP)(ve,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${Le}`]:{position:"relative",margin:0},[`${Le}-submenu-popup`]:{position:"absolute",zIndex:wt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Te}, ${Te}-menu-submenu`]:Object.assign(Object.assign({},(0,Ke.Wf)(ve)),{[Le]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,Ke.Qy)(ve)),{"&:empty":{padding:0,boxShadow:"none"},[`${Le}-item-group-title`]:{padding:`${(0,tt.unit)(ae)} ${(0,tt.unit)(ne)}`,color:ve.colorTextDescription,transition:`all ${ut}`},[`${Le}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Le}-item-icon`]:{minWidth:te,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${Le}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${ut}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Le}-item-extra`]:{paddingInlineStart:ve.padding,marginInlineStart:"auto",fontSize:ve.fontSizeSM,color:ve.colorTextDescription}},[`${Le}-item, ${Le}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,tt.unit)(ae)} ${(0,tt.unit)(ne)}`,color:ve.colorText,fontWeight:"normal",fontSize:te,lineHeight:ve.lineHeight,cursor:"pointer",transition:`all ${ut}`,borderRadius:ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:ve.controlItemBgHover}},(0,Ke.Qy)(ve)),{"&-selected":{color:ve.colorPrimary,backgroundColor:ve.controlItemBgActive,"&:hover, &-active":{backgroundColor:ve.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,tt.unit)(ve.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ve.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${Le}-item-group-list`]:{margin:`0 ${(0,tt.unit)(ve.marginXS)}`,padding:0,listStyle:"none"},[`${Le}-submenu-title`]:{paddingInlineEnd:ve.calc(ne).add(ve.fontSizeSM).equal()},[`${Le}-submenu-vertical`]:{position:"relative"},[`${Le}-submenu${Le}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${Le}-submenu-selected ${Te}-menu-submenu-title`]:{color:ve.colorPrimary}})})},[(0,gt.oN)(ve,"slide-up"),(0,gt.oN)(ve,"slide-down"),(0,Ne.Fm)(ve,"move-up"),(0,Ne.Fm)(ve,"move-down"),(0,Ve._y)(ve,"zoom-big")]]},we=ve=>Object.assign(Object.assign({zIndexPopup:ve.zIndexPopupBase+50,paddingBlock:(ve.controlHeight-ve.fontSize*ve.lineHeight)/2},(0,ht.wZ)({contentRadius:ve.borderRadiusLG,limitVerticalRadius:!0})),(0,Ce.w)(ve));var ct=(0,Re.I$)("Dropdown",ve=>{const{marginXXS:Te,sizePopupArrow:Le,paddingXXS:wt,componentCls:pt}=ve,Mt=(0,_e.mergeToken)(ve,{menuCls:`${pt}-menu`,dropdownArrowDistance:ve.calc(Le).div(2).add(Te).equal(),dropdownEdgeChildPadding:wt});return[De(Mt),$e(Mt)]},we,{resetStyle:!1});const me=null,ce=ve=>{var Te;const{menu:Le,arrow:wt,prefixCls:pt,children:Mt,trigger:Fe,disabled:At,dropdownRender:ut,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:ne,visible:pe,onVisibleChange:ge,mouseEnterDelay:We=.15,mouseLeaveDelay:xe=.1,autoAdjustOverflow:Ge=!0,placement:nt="",overlay:St,transitionName:mt}=ve,{getPopupContainer:Ht,getPrefixCls:Zt,direction:$t,dropdown:tn}=E.useContext(at.E_),Xt=(0,Ue.ln)("Dropdown"),rn=E.useMemo(()=>{const Et=Zt();return mt!==void 0?mt:nt.includes("top")?`${Et}-slide-down`:`${Et}-slide-up`},[Zt,nt,mt]),Ot=E.useMemo(()=>nt?nt.includes("Center")?nt.slice(0,nt.indexOf("Center")):nt:$t==="rtl"?"bottomRight":"bottomLeft",[nt,$t]),Yt=Zt("dropdown",pt),Vt=(0,xt.Z)(Yt),[ze,dt,Nt]=ct(Yt,Vt),[,Wt]=(0,it.ZP)(),Be=E.Children.only(Ee(Mt)?E.createElement("span",null,Mt):Mt),rt=(0,Ae.Tm)(Be,{className:Se()(`${Yt}-trigger`,{[`${Yt}-rtl`]:$t==="rtl"},Be.props.className),disabled:(Te=Be.props.disabled)!==null&&Te!==void 0?Te:At}),bt=At?[]:Fe,Dt=!!(bt!=null&&bt.includes("contextMenu")),[Ut,ln]=(0,Ze.Z)(!1,{value:ue!=null?ue:pe}),In=(0,Ie.Z)(Et=>{ne==null||ne(Et,{source:"trigger"}),ge==null||ge(Et),ln(Et)}),Pn=Se()(te,ee,dt,Nt,Vt,tn==null?void 0:tn.className,{[`${Yt}-rtl`]:$t==="rtl"}),on=(0,Ct.Z)({arrowPointAtCenter:typeof wt=="object"&&wt.pointAtCenter,autoAdjustOverflow:Ge,offset:Wt.marginXXS,arrowWidth:wt?Wt.sizePopupArrow:0,borderRadius:Wt.borderRadius}),bn=E.useCallback(()=>{Le!=null&&Le.selectable&&(Le!=null&&Le.multiple)||(ne==null||ne(!1,{source:"menu"}),ln(!1))},[Le==null?void 0:Le.selectable,Le==null?void 0:Le.multiple]),dn=()=>{let Et;return Le!=null&&Le.items?Et=E.createElement(kt.default,Object.assign({},Le)):typeof St=="function"?Et=St():Et=St,ut&&(Et=ut(Et)),Et=E.Children.only(typeof Et=="string"?E.createElement("span",null,Et):Et),E.createElement(ft.J,{prefixCls:`${Yt}-menu`,rootClassName:Se()(Nt,Vt),expandIcon:E.createElement("span",{className:`${Yt}-menu-submenu-arrow`},$t==="rtl"?E.createElement(lt.Z,{className:`${Yt}-menu-submenu-arrow-icon`}):E.createElement(ye.Z,{className:`${Yt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:bn,validator:en=>{let{mode:Jt}=en}},Et)},[Gt,Lt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Rt=E.createElement(ke.Z,Object.assign({alignPoint:Dt},(0,Pe.Z)(ve,["rootClassName"]),{mouseEnterDelay:We,mouseLeaveDelay:xe,visible:Ut,builtinPlacements:on,arrow:!!wt,overlayClassName:Pn,prefixCls:Yt,getPopupContainer:ae||Ht,transitionName:rn,trigger:bt,overlay:dn,placement:Ot,onVisibleChange:In,overlayStyle:Object.assign(Object.assign(Object.assign({},tn==null?void 0:tn.style),oe),{zIndex:Gt})}),rt);return Gt&&(Rt=E.createElement(He.Z.Provider,{value:Lt},Rt)),ze(Rt)},je=(0,qe.Z)(ce,"align",void 0,"dropdown",ve=>ve),Pt=ve=>E.createElement(je,Object.assign({},ve),E.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=Pt;var yt=ce},75727:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return qe}});var E=re(19563),lt=re(59301),ye=re(18785),et=re(92310),Se=re.n(et),ke=re(7939),Ie=re(48755),Ze=re(44104),Pe=re(70045),he=function(Ae,Ue){var He={};for(var at in Ae)Object.prototype.hasOwnProperty.call(Ae,at)&&Ue.indexOf(at)<0&&(He[at]=Ae[at]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,at=Object.getOwnPropertySymbols(Ae);xt<at.length;xt++)Ue.indexOf(at[xt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,at[xt])&&(He[at[xt]]=Ae[at[xt]]);return He};const Je=Ae=>{const{getPopupContainer:Ue,getPrefixCls:He,direction:at}=lt.useContext(Ie.E_),{prefixCls:xt,type:kt="default",danger:ft,disabled:it,loading:tt,onClick:Ke,htmlType:gt,children:Ne,className:Ve,menu:ht,arrow:Ce,autoFocus:Re,overlay:_e,trigger:se,align:$e,open:De,onOpenChange:we,placement:ct,getPopupContainer:me,href:ce,icon:je=lt.createElement(ye.Z,null),title:Pt,buttonsRender:yt=We=>We,mouseEnterDelay:ve,mouseLeaveDelay:Te,overlayClassName:Le,overlayStyle:wt,destroyPopupOnHide:pt,dropdownRender:Mt}=Ae,Fe=he(Ae,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),At=He("dropdown",xt),ut=`${At}-button`,ae={menu:ht,arrow:Ce,autoFocus:Re,align:$e,disabled:it,trigger:it?[]:se,onOpenChange:we,getPopupContainer:me||Ue,mouseEnterDelay:ve,mouseLeaveDelay:Te,overlayClassName:Le,overlayStyle:wt,destroyPopupOnHide:pt,dropdownRender:Mt},{compactSize:te,compactItemClassnames:ee}=(0,Pe.ri)(At,at),oe=Se()(ut,ee,Ve);"overlay"in Ae&&(ae.overlay=_e),"open"in Ae&&(ae.open=De),"placement"in Ae?ae.placement=ct:ae.placement=at==="rtl"?"bottomLeft":"bottomRight";const ue=lt.createElement(ke.ZP,{type:kt,danger:ft,disabled:it,loading:tt,onClick:Ke,htmlType:gt,href:ce,title:Pt},Ne),ne=lt.createElement(ke.ZP,{type:kt,danger:ft,icon:je}),[pe,ge]=yt([ue,ne]);return lt.createElement(Ze.Z.Compact,Object.assign({className:oe,size:te,block:!0},Fe),pe,lt.createElement(E.Z,Object.assign({},ae),ge))};Je.__ANT_BUTTON=!0;var Ee=Je;const Ct=E.Z;Ct.Button=Ee;var qe=Ct},584:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return kt}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(9017),Se=re(17835),ke=re(57700),Ze=()=>{const[,ft]=(0,ke.ZP)(),[it]=(0,et.Z)("Empty"),Ke=new Se.FastColor(ft.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Ke,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(it==null?void 0:it.description)||"Empty"),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(24 31.67)"},E.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),E.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"}),E.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)"}),E.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"}),E.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"})),E.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"}),E.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},E.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),E.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},he=()=>{const[,ft]=(0,ke.ZP)(),[it]=(0,et.Z)("Empty"),{colorFill:tt,colorFillTertiary:Ke,colorFillQuaternary:gt,colorBgContainer:Ne}=ft,{borderColor:Ve,shadowColor:ht,contentColor:Ce}=(0,E.useMemo)(()=>({borderColor:new Se.FastColor(tt).onBackground(Ne).toHexString(),shadowColor:new Se.FastColor(Ke).onBackground(Ne).toHexString(),contentColor:new Se.FastColor(gt).onBackground(Ne).toHexString()}),[tt,Ke,gt,Ne]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(it==null?void 0:it.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:ht,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:Ve},E.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"}),E.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:Ce}))))},Je=re(16931),Ee=re(51636);const Ct=ft=>{const{componentCls:it,margin:tt,marginXS:Ke,marginXL:gt,fontSize:Ne,lineHeight:Ve}=ft;return{[it]:{marginInline:Ke,fontSize:Ne,lineHeight:Ve,textAlign:"center",[`${it}-image`]:{height:ft.emptyImgHeight,marginBottom:Ke,opacity:ft.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${it}-description`]:{color:ft.colorTextDescription},[`${it}-footer`]:{marginTop:tt},"&-normal":{marginBlock:gt,color:ft.colorTextDescription,[`${it}-description`]:{color:ft.colorTextDescription},[`${it}-image`]:{height:ft.emptyImgHeightMD}},"&-small":{marginBlock:Ke,color:ft.colorTextDescription,[`${it}-image`]:{height:ft.emptyImgHeightSM}}}}};var qe=(0,Je.I$)("Empty",ft=>{const{componentCls:it,controlHeightLG:tt,calc:Ke}=ft,gt=(0,Ee.mergeToken)(ft,{emptyImgCls:`${it}-img`,emptyImgHeight:Ke(tt).mul(2.5).equal(),emptyImgHeightMD:tt,emptyImgHeightSM:Ke(tt).mul(.875).equal()});return[Ct(gt)]}),Ae=re(48755),Ue=function(ft,it){var tt={};for(var Ke in ft)Object.prototype.hasOwnProperty.call(ft,Ke)&&it.indexOf(Ke)<0&&(tt[Ke]=ft[Ke]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ke=Object.getOwnPropertySymbols(ft);gt<Ke.length;gt++)it.indexOf(Ke[gt])<0&&Object.prototype.propertyIsEnumerable.call(ft,Ke[gt])&&(tt[Ke[gt]]=ft[Ke[gt]]);return tt};const He=E.createElement(Ze,null),at=E.createElement(he,null),xt=ft=>{const{className:it,rootClassName:tt,prefixCls:Ke,image:gt=He,description:Ne,children:Ve,imageStyle:ht,style:Ce,classNames:Re,styles:_e}=ft,se=Ue(ft,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:$e,direction:De,className:we,style:ct,classNames:me,styles:ce}=(0,Ae.dj)("empty"),je=$e("empty",Ke),[Pt,yt,ve]=qe(je),[Te]=(0,et.Z)("Empty"),Le=typeof Ne!="undefined"?Ne:Te==null?void 0:Te.description,wt=typeof Le=="string"?Le:"empty";let pt=null;return typeof gt=="string"?pt=E.createElement("img",{alt:wt,src:gt}):pt=gt,Pt(E.createElement("div",Object.assign({className:ye()(yt,ve,je,we,{[`${je}-normal`]:gt===at,[`${je}-rtl`]:De==="rtl"},it,tt,me.root,Re==null?void 0:Re.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),ct),_e==null?void 0:_e.root),Ce)},se),E.createElement("div",{className:ye()(`${je}-image`,me.image,Re==null?void 0:Re.image),style:Object.assign(Object.assign(Object.assign({},ht),ce.image),_e==null?void 0:_e.image)},pt),Le&&E.createElement("div",{className:ye()(`${je}-description`,me.description,Re==null?void 0:Re.description),style:Object.assign(Object.assign({},ce.description),_e==null?void 0:_e.description)},Le),Ve&&E.createElement("div",{className:ye()(`${je}-footer`,me.footer,Re==null?void 0:Re.footer),style:Object.assign(Object.assign({},ce.footer),_e==null?void 0:_e.footer)},Ve)))};xt.PRESENTED_IMAGE_DEFAULT=He,xt.PRESENTED_IMAGE_SIMPLE=at;var kt=xt},28284:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return st}});var E=re(56553),lt=re(77654),ye=re(59301),et=re(92310),Se=re.n(et),ke=re(77900),Ie=re(86641),Ze=re(83397);function Pe(Oe){const[Ye,Me]=ye.useState(Oe);return ye.useEffect(()=>{const Qe=setTimeout(()=>{Me(Oe)},Oe.length?0:10);return()=>{clearTimeout(Qe)}},[Oe]),Ye}var he=re(36237),Je=re(63356),Ee=re(34925),Ct=re(34961),qe=re(51636),Ae=re(16931),He=Oe=>{const{componentCls:Ye}=Oe,Me=`${Ye}-show-help`,Qe=`${Ye}-show-help-item`;return{[Me]:{transition:`opacity ${Oe.motionDurationFast} ${Oe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Qe]:{overflow:"hidden",transition:`height ${Oe.motionDurationFast} ${Oe.motionEaseInOut},
opacity ${Oe.motionDurationFast} ${Oe.motionEaseInOut},
transform ${Oe.motionDurationFast} ${Oe.motionEaseInOut} !important`,[`&${Qe}-appear, &${Qe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Qe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const at=Oe=>({legend:{display:"block",width:"100%",marginBottom:Oe.marginLG,padding:0,color:Oe.colorTextDescription,fontSize:Oe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.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,he.unit)(Oe.controlOutlineWidth)} ${Oe.controlOutline}`},output:{display:"block",paddingTop:15,color:Oe.colorText,fontSize:Oe.fontSize,lineHeight:Oe.lineHeight}}),xt=(Oe,Ye)=>{const{formItemCls:Me}=Oe;return{[Me]:{[`${Me}-label > label`]:{height:Ye},[`${Me}-control-input`]:{minHeight:Ye}}}},kt=Oe=>{const{componentCls:Ye}=Oe;return{[Oe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Oe)),at(Oe)),{[`${Ye}-text`]:{display:"inline-block",paddingInlineEnd:Oe.paddingSM},"&-small":Object.assign({},xt(Oe,Oe.controlHeightSM)),"&-large":Object.assign({},xt(Oe,Oe.controlHeightLG))})}},ft=Oe=>{const{formItemCls:Ye,iconCls:Me,rootPrefixCls:Qe,antCls:It,labelRequiredMarkColor:an,labelColor:un,labelFontSize:vn,labelHeight:Qt,labelColonMarginInlineStart:Ft,labelColonMarginInlineEnd:Tt,itemMarginBottom:fn}=Oe;return{[Ye]:Object.assign(Object.assign({},(0,Je.Wf)(Oe)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${It}-row`]:{display:"none"},"&-has-warning":{[`${Ye}-split`]:{color:Oe.colorError}},"&-has-error":{[`${Ye}-split`]:{color:Oe.colorWarning}},[`${Ye}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Oe.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Qt,color:un,fontSize:vn,[`> ${Me}`]:{fontSize:Oe.fontSize,verticalAlign:"top"},[`&${Ye}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Oe.marginXXS,color:an,fontSize:Oe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ye}-required-mark-hidden, &${Ye}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ye}-optional`]:{display:"inline-block",marginInlineStart:Oe.marginXXS,color:Oe.colorTextDescription,[`&${Ye}-required-mark-hidden`]:{display:"none"}},[`${Ye}-tooltip`]:{color:Oe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Oe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ft,marginInlineEnd:Tt},[`&${Ye}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ye}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Qe}-col-'"]):not([class*="' ${Qe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Oe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ye]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Oe.colorTextDescription,fontSize:Oe.fontSize,lineHeight:Oe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Oe.controlHeightSM,transition:`color ${Oe.motionDurationMid} ${Oe.motionEaseOut}`},"&-explain":{"&-error":{color:Oe.colorError},"&-warning":{color:Oe.colorWarning}}},[`&-with-help ${Ye}-explain`]:{height:"auto",opacity:1},[`${Ye}-feedback-icon`]:{fontSize:Oe.fontSize,textAlign:"center",visibility:"visible",animationName:Ee.kr,animationDuration:Oe.motionDurationMid,animationTimingFunction:Oe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Oe.colorSuccess},"&-error":{color:Oe.colorError},"&-warning":{color:Oe.colorWarning},"&-validating":{color:Oe.colorPrimary}}})}},it=(Oe,Ye)=>{const{formItemCls:Me}=Oe;return{[`${Ye}-horizontal`]:{[`${Me}-label`]:{flexGrow:0},[`${Me}-control`]:{flex:"1 1 0",minWidth:0},[`${Me}-label[class$='-24'], ${Me}-label[class*='-24 ']`]:{[`& + ${Me}-control`]:{minWidth:"unset"}}}}},tt=Oe=>{const{componentCls:Ye,formItemCls:Me,inlineItemMarginBottom:Qe}=Oe;return{[`${Ye}-inline`]:{display:"flex",flexWrap:"wrap",[Me]:{flex:"none",marginInlineEnd:Oe.margin,marginBottom:Qe,"&-row":{flexWrap:"nowrap"},[`> ${Me}-label,
> ${Me}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Me}-label`]:{flex:"none"},[`${Ye}-text`]:{display:"inline-block"},[`${Me}-has-feedback`]:{display:"inline-block"}}}}},Ke=Oe=>({padding:Oe.verticalLabelPadding,margin:Oe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),gt=Oe=>{const{componentCls:Ye,formItemCls:Me,rootPrefixCls:Qe}=Oe;return{[`${Me} ${Me}-label`]:Ke(Oe),[`${Ye}:not(${Ye}-inline)`]:{[Me]:{flexWrap:"wrap",[`${Me}-label, ${Me}-control`]:{[`&:not([class*=" ${Qe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ne=Oe=>{const{componentCls:Ye,formItemCls:Me,antCls:Qe}=Oe;return{[`${Ye}-vertical`]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Me}-row`]:{flexDirection:"column"},[`${Me}-label > label`]:{height:"auto"},[`${Me}-control`]:{width:"100%"},[`${Me}-label,
${Qe}-col-24${Me}-label,
${Qe}-col-xl-24${Me}-label`]:Ke(Oe)}},[`@media (max-width: ${(0,he.unit)(Oe.screenXSMax)})`]:[gt(Oe),{[Ye]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Qe}-col-xs-24${Me}-label`]:Ke(Oe)}}}],[`@media (max-width: ${(0,he.unit)(Oe.screenSMMax)})`]:{[Ye]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Qe}-col-sm-24${Me}-label`]:Ke(Oe)}}},[`@media (max-width: ${(0,he.unit)(Oe.screenMDMax)})`]:{[Ye]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Qe}-col-md-24${Me}-label`]:Ke(Oe)}}},[`@media (max-width: ${(0,he.unit)(Oe.screenLGMax)})`]:{[Ye]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Qe}-col-lg-24${Me}-label`]:Ke(Oe)}}}}},Ve=Oe=>{const{formItemCls:Ye,antCls:Me}=Oe;return{[`${Ye}-vertical`]:{[`${Ye}-row`]:{flexDirection:"column"},[`${Ye}-label > label`]:{height:"auto"},[`${Ye}-control`]:{width:"100%"}},[`${Ye}-vertical ${Ye}-label,
${Me}-col-24${Ye}-label,
${Me}-col-xl-24${Ye}-label`]:Ke(Oe),[`@media (max-width: ${(0,he.unit)(Oe.screenXSMax)})`]:[gt(Oe),{[Ye]:{[`${Me}-col-xs-24${Ye}-label`]:Ke(Oe)}}],[`@media (max-width: ${(0,he.unit)(Oe.screenSMMax)})`]:{[Ye]:{[`${Me}-col-sm-24${Ye}-label`]:Ke(Oe)}},[`@media (max-width: ${(0,he.unit)(Oe.screenMDMax)})`]:{[Ye]:{[`${Me}-col-md-24${Ye}-label`]:Ke(Oe)}},[`@media (max-width: ${(0,he.unit)(Oe.screenLGMax)})`]:{[Ye]:{[`${Me}-col-lg-24${Ye}-label`]:Ke(Oe)}}}},ht=Oe=>({labelRequiredMarkColor:Oe.colorError,labelColor:Oe.colorTextHeading,labelFontSize:Oe.fontSize,labelHeight:Oe.controlHeight,labelColonMarginInlineStart:Oe.marginXXS/2,labelColonMarginInlineEnd:Oe.marginXS,itemMarginBottom:Oe.marginLG,verticalLabelPadding:`0 0 ${Oe.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ce=(Oe,Ye)=>(0,qe.mergeToken)(Oe,{formItemCls:`${Oe.componentCls}-item`,rootPrefixCls:Ye});var Re=(0,Ae.I$)("Form",(Oe,Ye)=>{let{rootPrefixCls:Me}=Ye;const Qe=Ce(Oe,Me);return[kt(Qe),ft(Qe),He(Qe),it(Qe,Qe.componentCls),it(Qe,Qe.formItemCls),tt(Qe),Ne(Qe),Ve(Qe),(0,Ct.Z)(Qe),Ee.kr]},ht,{order:-1e3});const _e=[];function se(Oe,Ye,Me){let Qe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Oe=="string"?Oe:`${Ye}-${Qe}`,error:Oe,errorStatus:Me}}var De=Oe=>{let{help:Ye,helpStatus:Me,errors:Qe=_e,warnings:It=_e,className:an,fieldId:un,onVisibleChanged:vn}=Oe;const{prefixCls:Qt}=ye.useContext(E.Rk),Ft=`${Qt}-item-explain`,Tt=(0,Ze.Z)(Qt),[fn,Tn,Dn]=Re(Qt,Tt),Bn=ye.useMemo(()=>(0,Ie.Z)(Qt),[Qt]),Xn=Pe(Qe),Qn=Pe(It),Jn=ye.useMemo(()=>Ye!=null?[se(Ye,"help",Me)]:[].concat((0,lt.Z)(Xn.map((Hn,Un)=>se(Hn,"error","error",Un))),(0,lt.Z)(Qn.map((Hn,Un)=>se(Hn,"warning","warning",Un)))),[Ye,Me,Xn,Qn]),Zn=ye.useMemo(()=>{const Hn={};return Jn.forEach(Un=>{let{key:ur}=Un;Hn[ur]=(Hn[ur]||0)+1}),Jn.map((Un,ur)=>Object.assign(Object.assign({},Un),{key:Hn[Un.key]>1?`${Un.key}-fallback-${ur}`:Un.key}))},[Jn]),Fn={};return un&&(Fn.id=`${un}_help`),fn(ye.createElement(ke.default,{motionDeadline:Bn.motionDeadline,motionName:`${Qt}-show-help`,visible:!!Zn.length,onVisibleChanged:vn},Hn=>{const{className:Un,style:ur}=Hn;return ye.createElement("div",Object.assign({},Fn,{className:Se()(Ft,Un,Dn,Tt,an,Tn),style:ur}),ye.createElement(ke.CSSMotionList,Object.assign({keys:Zn},(0,Ie.Z)(Qt),{motionName:`${Qt}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:gr}=qn;return ye.createElement("div",{key:lr,className:Se()(tr,{[`${Ft}-${er}`]:er}),style:gr},ir)}))}))},we=re(69180),ct=re(48755),me=re(2171),ce=re(31756),je=re(23069),Pt=re(76846),yt=re(16722);const ve=["parentNode"],Te="form_item";function Le(Oe){return Oe===void 0||Oe===!1?[]:Array.isArray(Oe)?Oe:[Oe]}function wt(Oe,Ye){if(!Oe.length)return;const Me=Oe.join("_");return Ye?`${Ye}_${Me}`:ve.includes(Me)?`${Te}_${Me}`:Me}function pt(Oe,Ye,Me,Qe,It,an){let un=Qe;return an!==void 0?un=an:Me.validating?un="validating":Oe.length?un="error":Ye.length?un="warning":(Me.touched||It&&Me.validated)&&(un="success"),un}var Mt=function(Oe,Ye){var Me={};for(var Qe in Oe)Object.prototype.hasOwnProperty.call(Oe,Qe)&&Ye.indexOf(Qe)<0&&(Me[Qe]=Oe[Qe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Qe=Object.getOwnPropertySymbols(Oe);It<Qe.length;It++)Ye.indexOf(Qe[It])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Qe[It])&&(Me[Qe[It]]=Oe[Qe[It]]);return Me};function Fe(Oe){return Le(Oe).join("_")}function At(Oe,Ye){const Me=Ye.getFieldInstance(Oe),Qe=(0,Pt.bn)(Me);if(Qe)return Qe;const It=wt(Le(Oe),Ye.__INTERNAL__.name);if(It)return document.getElementById(It)}function ut(Oe){const[Ye]=(0,we.useForm)(),Me=ye.useRef({}),Qe=ye.useMemo(()=>Oe!=null?Oe:Object.assign(Object.assign({},Ye),{__INTERNAL__:{itemRef:It=>an=>{const un=Fe(It);an?Me.current[un]=an:delete Me.current[un]}},scrollToField:function(It){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:un}=an,vn=Mt(an,["focus"]),Qt=At(It,Qe);Qt&&((0,yt.Z)(Qt,Object.assign({scrollMode:"if-needed",block:"nearest"},vn)),un&&Qe.focusField(It))},focusField:It=>{var an,un;const vn=Qe.getFieldInstance(It);typeof(vn==null?void 0:vn.focus)=="function"?vn.focus():(un=(an=At(It,Qe))===null||an===void 0?void 0:an.focus)===null||un===void 0||un.call(an)},getFieldInstance:It=>{const an=Fe(It);return Me.current[an]}}),[Oe,Ye]);return[Qe]}var ae=re(98350),te=function(Oe,Ye){var Me={};for(var Qe in Oe)Object.prototype.hasOwnProperty.call(Oe,Qe)&&Ye.indexOf(Qe)<0&&(Me[Qe]=Oe[Qe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Qe=Object.getOwnPropertySymbols(Oe);It<Qe.length;It++)Ye.indexOf(Qe[It])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Qe[It])&&(Me[Qe[It]]=Oe[Qe[It]]);return Me};const ee=(Oe,Ye)=>{const Me=ye.useContext(me.Z),{getPrefixCls:Qe,direction:It,requiredMark:an,colon:un,scrollToFirstError:vn,className:Qt,style:Ft}=(0,ct.dj)("form"),{prefixCls:Tt,className:fn,rootClassName:Tn,size:Dn,disabled:Bn=Me,form:Xn,colon:Qn,labelAlign:Jn,labelWrap:Zn,labelCol:Fn,wrapperCol:Hn,hideRequiredMark:Un,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:gr,variant:mr}=Oe,cr=te(Oe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),vr=(0,ce.Z)(Dn),Cr=ye.useContext(ae.Z),or=ye.useMemo(()=>lr!==void 0?lr:Un?!1:an!==void 0?an:!0,[Un,lr,an]),dr=Qn!=null?Qn:un,Gn=Qe("form",Tt),Sr=(0,Ze.Z)(Gn),[Rr,Hr,Er]=Re(Gn,Sr),Ar=Se()(Gn,`${Gn}-${ur}`,{[`${Gn}-hide-required-mark`]:or===!1,[`${Gn}-rtl`]:It==="rtl",[`${Gn}-${vr}`]:vr},Er,Sr,Hr,Qt,fn,Tn),[Ir]=ut(Xn),{__INTERNAL__:Dr}=Ir;Dr.name=er;const _r=ye.useMemo(()=>({name:er,labelAlign:Jn,labelCol:Fn,labelWrap:Zn,wrapperCol:Hn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Dr.itemRef,form:Ir,feedbackIcons:gr}),[er,Jn,Fn,Hn,ur,dr,or,Ir,gr]),fr=ye.useRef(null);ye.useImperativeHandle(Ye,()=>{var En;return Object.assign(Object.assign({},Ir),{nativeElement:(En=fr.current)===null||En===void 0?void 0:En.nativeElement})});const Yn=(En,Cn)=>{if(En){let sn={block:"nearest"};typeof En=="object"&&(sn=Object.assign(Object.assign({},sn),En)),Ir.scrollToField(Cn,sn)}},pn=En=>{if(ir==null||ir(En),En.errorFields.length){const Cn=En.errorFields[0].name;if(qn!==void 0){Yn(qn,Cn);return}vn!==void 0&&Yn(vn,Cn)}};return Rr(ye.createElement(E.pg.Provider,{value:mr},ye.createElement(me.n,{disabled:Bn},ye.createElement(je.Z.Provider,{value:vr},ye.createElement(E.RV,{validateMessages:Cr},ye.createElement(E.q3.Provider,{value:_r},ye.createElement(we.default,Object.assign({id:er},cr,{name:er,onFinishFailed:pn,form:Ir,ref:fr,style:Object.assign(Object.assign({},Ft),tr),className:Ar}))))))))};var ue=ye.forwardRef(ee),ne=re(41799),pe=re(8654),ge=re(22703),We=re(32383),xe=re(11592);function Ge(Oe){if(typeof Oe=="function")return Oe;const Ye=(0,xe.Z)(Oe);return Ye.length<=1?Ye[0]:Ye}const nt=()=>{const{status:Oe,errors:Ye=[],warnings:Me=[]}=ye.useContext(E.aM);return{status:Oe,errors:Ye,warnings:Me}};nt.Context=E.aM;var St=nt,mt=re(16089);function Ht(Oe){const[Ye,Me]=ye.useState(Oe),Qe=ye.useRef(null),It=ye.useRef([]),an=ye.useRef(!1);ye.useEffect(()=>(an.current=!1,()=>{an.current=!0,mt.Z.cancel(Qe.current),Qe.current=null}),[]);function un(vn){an.current||(Qe.current===null&&(It.current=[],Qe.current=(0,mt.Z)(()=>{Qe.current=null,Me(Qt=>{let Ft=Qt;return It.current.forEach(Tt=>{Ft=Tt(Ft)}),Ft})})),It.current.push(vn))}return[Ye,un]}function Zt(){const{itemRef:Oe}=ye.useContext(E.q3),Ye=ye.useRef({});function Me(Qe,It){const an=It&&typeof It=="object"&&(0,pe.C4)(It),un=Qe.join("_");return(Ye.current.name!==un||Ye.current.originRef!==an)&&(Ye.current.name=un,Ye.current.originRef=an,Ye.current.ref=(0,pe.sQ)(Oe(Qe),an)),Ye.current.ref}return Me}var $t=re(29194),tn=re(34280),Xt=re(2738),rn=re(65970),Ot=re(70425),Yt=re(5472);const Vt=Oe=>{const{formItemCls:Ye}=Oe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ye}-control`]:{display:"flex"}}}};var ze=(0,Ae.bk)(["Form","item-item"],(Oe,Ye)=>{let{rootPrefixCls:Me}=Ye;const Qe=Ce(Oe,Me);return[Vt(Qe)]}),dt=function(Oe,Ye){var Me={};for(var Qe in Oe)Object.prototype.hasOwnProperty.call(Oe,Qe)&&Ye.indexOf(Qe)<0&&(Me[Qe]=Oe[Qe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Qe=Object.getOwnPropertySymbols(Oe);It<Qe.length;It++)Ye.indexOf(Qe[It])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Qe[It])&&(Me[Qe[It]]=Oe[Qe[It]]);return Me};const Nt=24;var Be=Oe=>{const{prefixCls:Ye,status:Me,labelCol:Qe,wrapperCol:It,children:an,errors:un,warnings:vn,_internalItemRender:Qt,extra:Ft,help:Tt,fieldId:fn,marginBottom:Tn,onErrorVisibleChanged:Dn,label:Bn}=Oe,Xn=`${Ye}-item`,Qn=ye.useContext(E.q3),Jn=ye.useMemo(()=>{let cr=Object.assign({},It||Qn.wrapperCol||{});return Bn===null&&!Qe&&!It&&Qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,Ot.U2)(Qn.labelCol,or),Gn=typeof dr=="object"?dr:{},Sr=(0,Ot.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Gn&&!("offset"in Rr)&&Gn.span<Nt&&(cr=(0,Ot.t8)(cr,[].concat(or,["offset"]),Gn.span))}),cr},[It,Qn]),Zn=Se()(`${Xn}-control`,Jn.className),Fn=ye.useMemo(()=>{const{labelCol:cr,wrapperCol:vr}=Qn;return dt(Qn,["labelCol","wrapperCol"])},[Qn]),Hn=ye.useRef(null),[Un,ur]=ye.useState(0);(0,tn.Z)(()=>{Ft&&Hn.current?ur(Hn.current.clientHeight):ur(0)},[Ft]);const qn=ye.createElement("div",{className:`${Xn}-control-input`},ye.createElement("div",{className:`${Xn}-control-input-content`},an)),lr=ye.useMemo(()=>({prefixCls:Ye,status:Me}),[Ye,Me]),ir=Tn!==null||un.length||vn.length?ye.createElement(E.Rk.Provider,{value:lr},ye.createElement(De,{fieldId:fn,errors:un,warnings:vn,help:Tt,helpStatus:Me,className:`${Xn}-explain-connected`,onVisibleChanged:Dn})):null,er={};fn&&(er.id=`${fn}_extra`);const tr=Ft?ye.createElement("div",Object.assign({},er,{className:`${Xn}-extra`,ref:Hn}),Ft):null,gr=ir||tr?ye.createElement("div",{className:`${Xn}-additional`,style:Tn?{minHeight:Tn+Un}:{}},ir,tr):null,mr=Qt&&Qt.mark==="pro_table_render"&&Qt.render?Qt.render(Oe,{input:qn,errorList:ir,extra:tr}):ye.createElement(ye.Fragment,null,qn,gr);return ye.createElement(E.q3.Provider,{value:Fn},ye.createElement(Yt.Z,Object.assign({},Jn,{className:Zn}),mr),ye.createElement(ze,{prefixCls:Ye}))},rt=re(61485),bt=re(9017),Dt=re(85981),Ut=re(25399),ln=function(Oe,Ye){var Me={};for(var Qe in Oe)Object.prototype.hasOwnProperty.call(Oe,Qe)&&Ye.indexOf(Qe)<0&&(Me[Qe]=Oe[Qe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Qe=Object.getOwnPropertySymbols(Oe);It<Qe.length;It++)Ye.indexOf(Qe[It])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Qe[It])&&(Me[Qe[It]]=Oe[Qe[It]]);return Me};function In(Oe){return Oe?typeof Oe=="object"&&!ye.isValidElement(Oe)?Oe:{title:Oe}:null}var on=Oe=>{let{prefixCls:Ye,label:Me,htmlFor:Qe,labelCol:It,labelAlign:an,colon:un,required:vn,requiredMark:Qt,tooltip:Ft,vertical:Tt}=Oe;var fn;const[Tn]=(0,bt.Z)("Form"),{labelAlign:Dn,labelCol:Bn,labelWrap:Xn,colon:Qn}=ye.useContext(E.q3);if(!Me)return null;const Jn=It||Bn||{},Zn=an||Dn,Fn=`${Ye}-item-label`,Hn=Se()(Fn,Zn==="left"&&`${Fn}-left`,Jn.className,{[`${Fn}-wrap`]:!!Xn});let Un=Me;const ur=un===!0||Qn!==!1&&un!==!1;ur&&!Tt&&typeof Me=="string"&&Me.trim()&&(Un=Me.replace(/[:|]\s*$/,""));const lr=In(Ft);if(lr){const{icon:cr=ye.createElement(rt.Z,null)}=lr,vr=ln(lr,["icon"]),Cr=ye.createElement(Ut.Z,Object.assign({},vr),ye.cloneElement(cr,{className:`${Ye}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Un=ye.createElement(ye.Fragment,null,Un,Cr)}const ir=Qt==="optional",er=typeof Qt=="function",tr=Qt===!1;er?Un=Qt(Un,{required:!!vn}):ir&&!vn&&(Un=ye.createElement(ye.Fragment,null,Un,ye.createElement("span",{className:`${Ye}-item-optional`,title:""},(Tn==null?void 0:Tn.optional)||((fn=Dt.Z.Form)===null||fn===void 0?void 0:fn.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=Se()({[`${Ye}-item-required`]:vn,[`${Ye}-item-required-mark-${gr}`]:gr,[`${Ye}-item-no-colon`]:!ur});return ye.createElement(Yt.Z,Object.assign({},Jn,{className:Hn}),ye.createElement("label",{htmlFor:Qe,className:mr,title:typeof Me=="string"?Me:""},Un))},bn=re(29679),dn=re(19248),Gt=re(96512),Lt=re(58617);const Rt={success:bn.Z,warning:Gt.Z,error:dn.Z,validating:Lt.Z};function Et(Oe){let{children:Ye,errors:Me,warnings:Qe,hasFeedback:It,validateStatus:an,prefixCls:un,meta:vn,noStyle:Qt}=Oe;const Ft=`${un}-item`,{feedbackIcons:Tt}=ye.useContext(E.q3),fn=pt(Me,Qe,vn,null,!!It,an),{isFormItemInput:Tn,status:Dn,hasFeedback:Bn,feedbackIcon:Xn}=ye.useContext(E.aM),Qn=ye.useMemo(()=>{var Jn;let Zn;if(It){const Hn=It!==!0&&It.icons||Tt,Un=fn&&((Jn=Hn==null?void 0:Hn({status:fn,errors:Me,warnings:Qe}))===null||Jn===void 0?void 0:Jn[fn]),ur=fn&&Rt[fn];Zn=Un!==!1&&ur?ye.createElement("span",{className:Se()(`${Ft}-feedback-icon`,`${Ft}-feedback-icon-${fn}`)},Un||ye.createElement(ur,null)):null}const Fn={status:fn||"",errors:Me,warnings:Qe,hasFeedback:!!It,feedbackIcon:Zn,isFormItemInput:!0};return Qt&&(Fn.status=(fn!=null?fn:Dn)||"",Fn.isFormItemInput=Tn,Fn.hasFeedback=!!(It!=null?It:Bn),Fn.feedbackIcon=It!==void 0?Fn.feedbackIcon:Xn),Fn},[fn,It,Qt,Tn,Dn]);return ye.createElement(E.aM.Provider,{value:Qn},Ye)}var en=function(Oe,Ye){var Me={};for(var Qe in Oe)Object.prototype.hasOwnProperty.call(Oe,Qe)&&Ye.indexOf(Qe)<0&&(Me[Qe]=Oe[Qe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Qe=Object.getOwnPropertySymbols(Oe);It<Qe.length;It++)Ye.indexOf(Qe[It])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Qe[It])&&(Me[Qe[It]]=Oe[Qe[It]]);return Me};function Jt(Oe){const{prefixCls:Ye,className:Me,rootClassName:Qe,style:It,help:an,errors:un,warnings:vn,validateStatus:Qt,meta:Ft,hasFeedback:Tt,hidden:fn,children:Tn,fieldId:Dn,required:Bn,isRequired:Xn,onSubItemMetaChange:Qn,layout:Jn}=Oe,Zn=en(Oe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Fn=`${Ye}-item`,{requiredMark:Hn,vertical:Un}=ye.useContext(E.q3),ur=Un||Jn==="vertical",qn=ye.useRef(null),lr=Pe(un),ir=Pe(vn),er=an!=null,tr=!!(er||un.length||vn.length),gr=!!qn.current&&(0,$t.Z)(qn.current),[mr,cr]=ye.useState(null);(0,tn.Z)(()=>{if(tr&&qn.current){const Gn=getComputedStyle(qn.current);cr(parseInt(Gn.marginBottom,10))}},[tr,gr]);const vr=Gn=>{Gn||cr(null)},or=function(){let Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Sr=Gn?lr:Ft.errors,Rr=Gn?ir:Ft.warnings;return pt(Sr,Rr,Ft,"",!!Tt,Qt)}(),dr=Se()(Fn,Me,Qe,{[`${Fn}-with-help`]:er||lr.length||ir.length,[`${Fn}-has-feedback`]:or&&Tt,[`${Fn}-has-success`]:or==="success",[`${Fn}-has-warning`]:or==="warning",[`${Fn}-has-error`]:or==="error",[`${Fn}-is-validating`]:or==="validating",[`${Fn}-hidden`]:fn,[`${Fn}-${Jn}`]:Jn});return ye.createElement("div",{className:dr,style:It,ref:qn},ye.createElement(rn.Z,Object.assign({className:`${Fn}-row`},(0,Xt.Z)(Zn,["_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"])),ye.createElement(on,Object.assign({htmlFor:Dn},Oe,{requiredMark:Hn,required:Bn!=null?Bn:Xn,prefixCls:Ye,vertical:ur})),ye.createElement(Be,Object.assign({},Oe,Ft,{errors:lr,warnings:ir,prefixCls:Ye,status:or,help:an,marginBottom:mr,onErrorVisibleChanged:vr}),ye.createElement(E.qI.Provider,{value:Qn},ye.createElement(Et,{prefixCls:Ye,meta:Ft,errors:Ft.errors,warnings:Ft.warnings,hasFeedback:Tt,validateStatus:or},Tn)))),!!mr&&ye.createElement("div",{className:`${Fn}-margin-offset`,style:{marginBottom:-mr}}))}const qt="__SPLIT__",gn=null;function wn(Oe,Ye){const Me=Object.keys(Oe),Qe=Object.keys(Ye);return Me.length===Qe.length&&Me.every(It=>{const an=Oe[It],un=Ye[It];return an===un||typeof an=="function"||typeof un=="function"})}const Sn=ye.memo(Oe=>{let{children:Ye}=Oe;return Ye},(Oe,Ye)=>wn(Oe.control,Ye.control)&&Oe.update===Ye.update&&Oe.childProps.length===Ye.childProps.length&&Oe.childProps.every((Me,Qe)=>Me===Ye.childProps[Qe]));function Mn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kn(Oe){const{name:Ye,noStyle:Me,className:Qe,dependencies:It,prefixCls:an,shouldUpdate:un,rules:vn,children:Qt,required:Ft,label:Tt,messageVariables:fn,trigger:Tn="onChange",validateTrigger:Dn,hidden:Bn,help:Xn,layout:Qn}=Oe,{getPrefixCls:Jn}=ye.useContext(ct.E_),{name:Zn}=ye.useContext(E.q3),Fn=Ge(Qt),Hn=typeof Fn=="function",Un=ye.useContext(E.qI),{validateTrigger:ur}=ye.useContext(we.FieldContext),qn=Dn!==void 0?Dn:ur,lr=Ye!=null,ir=Jn("form",an),er=(0,Ze.Z)(ir),[tr,gr,mr]=Re(ir,er),cr=(0,We.ln)("Form.Item"),vr=ye.useContext(we.ListContext),Cr=ye.useRef(null),[or,dr]=Ht({}),[Gn,Sr]=(0,ne.Z)(()=>Mn()),Rr=fr=>{const Yn=vr==null?void 0:vr.getKey(fr.name);if(Sr(fr.destroy?Mn():fr,!0),Me&&Xn!==!1&&Un){let pn=fr.name;if(fr.destroy)pn=Cr.current||pn;else if(Yn!==void 0){const[En,Cn]=Yn;pn=[En].concat((0,lt.Z)(Cn)),Cr.current=pn}Un(fr,pn)}},Hr=(fr,Yn)=>{dr(pn=>{const En=Object.assign({},pn),sn=[].concat((0,lt.Z)(fr.name.slice(0,-1)),(0,lt.Z)(Yn)).join(qt);return fr.destroy?delete En[sn]:En[sn]=fr,En})},[Er,Ar]=ye.useMemo(()=>{const fr=(0,lt.Z)(Gn.errors),Yn=(0,lt.Z)(Gn.warnings);return Object.values(or).forEach(pn=>{fr.push.apply(fr,(0,lt.Z)(pn.errors||[])),Yn.push.apply(Yn,(0,lt.Z)(pn.warnings||[]))}),[fr,Yn]},[or,Gn.errors,Gn.warnings]),Ir=Zt();function Dr(fr,Yn,pn){return Me&&!Bn?ye.createElement(Et,{prefixCls:ir,hasFeedback:Oe.hasFeedback,validateStatus:Oe.validateStatus,meta:Gn,errors:Er,warnings:Ar,noStyle:!0},fr):ye.createElement(Jt,Object.assign({key:"row"},Oe,{className:Se()(Qe,mr,er,gr),prefixCls:ir,fieldId:Yn,isRequired:pn,errors:Er,warnings:Ar,meta:Gn,onSubItemMetaChange:Hr,layout:Qn}),fr)}if(!lr&&!Hn&&!It)return tr(Dr(Fn));let _r={};return typeof Tt=="string"?_r.label=Tt:Ye&&(_r.label=String(Ye)),fn&&(_r=Object.assign(Object.assign({},_r),fn)),tr(ye.createElement(we.Field,Object.assign({},Oe,{messageVariables:_r,trigger:Tn,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,pn)=>{const En=Le(Ye).length&&Yn?Yn.name:[],Cn=wt(En,Zn),sn=Ft!==void 0?Ft:!!(vn!=null&&vn.some(mn=>{if(mn&&typeof mn=="object"&&mn.required&&!mn.warningOnly)return!0;if(typeof mn=="function"){const yn=mn(pn);return(yn==null?void 0:yn.required)&&!(yn!=null&&yn.warningOnly)}return!1})),_n=Object.assign({},fr);let jn=null;if(Array.isArray(Fn)&&lr)jn=Fn;else if(!(Hn&&(!(un||It)||lr))){if(!(It&&!Hn&&!lr))if(ye.isValidElement(Fn)){const mn=Object.assign(Object.assign({},Fn.props),_n);if(mn.id||(mn.id=Cn),Xn||Er.length>0||Ar.length>0||Oe.extra){const Rn=[];(Xn||Er.length>0)&&Rn.push(`${Cn}_help`),Oe.extra&&Rn.push(`${Cn}_extra`),mn["aria-describedby"]=Rn.join(" ")}Er.length>0&&(mn["aria-invalid"]="true"),sn&&(mn["aria-required"]="true"),(0,pe.Yr)(Fn)&&(mn.ref=Ir(En,Fn)),new Set([].concat((0,lt.Z)(Le(Tn)),(0,lt.Z)(Le(qn)))).forEach(Rn=>{mn[Rn]=function(){for(var rr,Pr,br,Mr,Or,Br=arguments.length,$r=new Array(Br),Tr=0;Tr<Br;Tr++)$r[Tr]=arguments[Tr];(br=_n[Rn])===null||br===void 0||(rr=br).call.apply(rr,[_n].concat($r)),(Or=(Mr=Fn.props)[Rn])===null||Or===void 0||(Pr=Or).call.apply(Pr,[Mr].concat($r))}});const Nn=[mn["aria-required"],mn["aria-invalid"],mn["aria-describedby"]];jn=ye.createElement(Sn,{control:_n,update:Fn,childProps:Nn},(0,ge.Tm)(Fn,mn))}else Hn&&(un||It)&&!lr?jn=Fn(pn):jn=Fn}return Dr(jn,Cn,sn)}))}const Wn=kn;Wn.useStatus=St;var An=Wn,Bt=function(Oe,Ye){var Me={};for(var Qe in Oe)Object.prototype.hasOwnProperty.call(Oe,Qe)&&Ye.indexOf(Qe)<0&&(Me[Qe]=Oe[Qe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var It=0,Qe=Object.getOwnPropertySymbols(Oe);It<Qe.length;It++)Ye.indexOf(Qe[It])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Qe[It])&&(Me[Qe[It]]=Oe[Qe[It]]);return Me},xn=Oe=>{var{prefixCls:Ye,children:Me}=Oe,Qe=Bt(Oe,["prefixCls","children"]);const{getPrefixCls:It}=ye.useContext(ct.E_),an=It("form",Ye),un=ye.useMemo(()=>({prefixCls:an,status:"error"}),[an]);return ye.createElement(we.List,Object.assign({},Qe),(vn,Qt,Ft)=>ye.createElement(E.Rk.Provider,{value:un},Me(vn.map(Tt=>Object.assign(Object.assign({},Tt),{fieldKey:Tt.key})),Qt,{errors:Ft.errors,warnings:Ft.warnings})))};function hn(){const{form:Oe}=ye.useContext(E.q3);return Oe}const Xe=ue;Xe.Item=An,Xe.List=xn,Xe.ErrorList=De,Xe.useForm=ut,Xe.useFormInstance=hn,Xe.useWatch=we.useWatch,Xe.Provider=E.RV,Xe.create=()=>{};var st=Xe},4875:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Wt}});var E=re(59301),lt=re(84105),ye=re(87395),et=re(92310),Se=re.n(et),ke=re(60499),Ie=re(18642),Ze=re(43749),Pe=re(72190),he=re(42244),Je=re(38705),Ee=re(17212);function Ct(){return typeof BigInt=="function"}function qe(Be){return!Be&&Be!==0&&!Number.isNaN(Be)||!String(Be).trim()}function Ae(Be){var rt=Be.trim(),bt=rt.startsWith("-");bt&&(rt=rt.slice(1)),rt=rt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),rt.startsWith(".")&&(rt="0".concat(rt));var Dt=rt||"0",Ut=Dt.split("."),ln=Ut[0]||"0",In=Ut[1]||"0";ln==="0"&&In==="0"&&(bt=!1);var Pn=bt?"-":"";return{negative:bt,negativeStr:Pn,trimStr:Dt,integerStr:ln,decimalStr:In,fullStr:"".concat(Pn).concat(Dt)}}function Ue(Be){var rt=String(Be);return!Number.isNaN(Number(rt))&&rt.includes("e")}function He(Be){var rt=String(Be);if(Ue(Be)){var bt=Number(rt.slice(rt.indexOf("e-")+2)),Dt=rt.match(/\.(\d+)/);return Dt!=null&&Dt[1]&&(bt+=Dt[1].length),bt}return rt.includes(".")&&xt(rt)?rt.length-rt.indexOf(".")-1:0}function at(Be){var rt=String(Be);if(Ue(Be)){if(Be>Number.MAX_SAFE_INTEGER)return String(Ct()?BigInt(Be).toString():Number.MAX_SAFE_INTEGER);if(Be<Number.MIN_SAFE_INTEGER)return String(Ct()?BigInt(Be).toString():Number.MIN_SAFE_INTEGER);rt=Be.toFixed(He(rt))}return Ae(rt).fullStr}function xt(Be){return typeof Be=="number"?!Number.isNaN(Be):Be?/^\s*-?\d+(\.\d+)?\s*$/.test(Be)||/^\s*-?\d+\.\s*$/.test(Be)||/^\s*-?\.\d+\s*$/.test(Be):!1}var kt=function(){function Be(rt){if((0,Je.Z)(this,Be),(0,Ie.Z)(this,"origin",""),(0,Ie.Z)(this,"negative",void 0),(0,Ie.Z)(this,"integer",void 0),(0,Ie.Z)(this,"decimal",void 0),(0,Ie.Z)(this,"decimalLen",void 0),(0,Ie.Z)(this,"empty",void 0),(0,Ie.Z)(this,"nan",void 0),qe(rt)){this.empty=!0;return}if(this.origin=String(rt),rt==="-"||Number.isNaN(rt)){this.nan=!0;return}var bt=rt;if(Ue(bt)&&(bt=Number(bt)),bt=typeof bt=="string"?bt:at(bt),xt(bt)){var Dt=Ae(bt);this.negative=Dt.negative;var Ut=Dt.trimStr.split(".");this.integer=BigInt(Ut[0]);var ln=Ut[1]||"0";this.decimal=BigInt(ln),this.decimalLen=ln.length}else this.nan=!0}return(0,Ee.Z)(Be,[{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(bt){var Dt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(bt,"0"));return BigInt(Dt)}},{key:"negate",value:function(){var bt=new Be(this.toString());return bt.negative=!bt.negative,bt}},{key:"cal",value:function(bt,Dt,Ut){var ln=Math.max(this.getDecimalStr().length,bt.getDecimalStr().length),In=this.alignDecimal(ln),Pn=bt.alignDecimal(ln),on=Dt(In,Pn).toString(),bn=Ut(ln),dn=Ae(on),Gt=dn.negativeStr,Lt=dn.trimStr,Rt="".concat(Gt).concat(Lt.padStart(bn+1,"0"));return new Be("".concat(Rt.slice(0,-bn),".").concat(Rt.slice(-bn)))}},{key:"add",value:function(bt){if(this.isInvalidate())return new Be(bt);var Dt=new Be(bt);return Dt.isInvalidate()?this:this.cal(Dt,function(Ut,ln){return Ut+ln},function(Ut){return Ut})}},{key:"multi",value:function(bt){var Dt=new Be(bt);return this.isInvalidate()||Dt.isInvalidate()?new Be(NaN):this.cal(Dt,function(Ut,ln){return Ut*ln},function(Ut){return Ut*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(bt){return this.toString()===(bt==null?void 0:bt.toString())}},{key:"lessEquals",value:function(bt){return this.add(bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return bt?this.isInvalidate()?"":Ae("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Be}(),ft=function(){function Be(rt){if((0,Je.Z)(this,Be),(0,Ie.Z)(this,"origin",""),(0,Ie.Z)(this,"number",void 0),(0,Ie.Z)(this,"empty",void 0),qe(rt)){this.empty=!0;return}this.origin=String(rt),this.number=Number(rt)}return(0,Ee.Z)(Be,[{key:"negate",value:function(){return new Be(-this.toNumber())}},{key:"add",value:function(bt){if(this.isInvalidate())return new Be(bt);var Dt=Number(bt);if(Number.isNaN(Dt))return this;var Ut=this.number+Dt;if(Ut>Number.MAX_SAFE_INTEGER)return new Be(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Be(Number.MIN_SAFE_INTEGER);var ln=Math.max(He(this.number),He(Dt));return new Be(Ut.toFixed(ln))}},{key:"multi",value:function(bt){var Dt=Number(bt);if(this.isInvalidate()||Number.isNaN(Dt))return new Be(NaN);var Ut=this.number*Dt;if(Ut>Number.MAX_SAFE_INTEGER)return new Be(Number.MAX_SAFE_INTEGER);if(Ut<Number.MIN_SAFE_INTEGER)return new Be(Number.MIN_SAFE_INTEGER);var ln=Math.max(He(this.number),He(Dt));return new Be(Ut.toFixed(ln))}},{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(bt){return this.toNumber()===(bt==null?void 0:bt.toNumber())}},{key:"lessEquals",value:function(bt){return this.add(bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return bt?this.isInvalidate()?"":at(this.number):this.origin}}]),Be}();function it(Be){return Ct()?new kt(Be):new ft(Be)}function tt(Be,rt,bt){var Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Be==="")return"";var Ut=Ae(Be),ln=Ut.negativeStr,In=Ut.integerStr,Pn=Ut.decimalStr,on="".concat(rt).concat(Pn),bn="".concat(ln).concat(In);if(bt>=0){var dn=Number(Pn[bt]);if(dn>=5&&!Dt){var Gt=it(Be).add("".concat(ln,"0.").concat("0".repeat(bt)).concat(10-dn));return tt(Gt.toString(),rt,bt,Dt)}return bt===0?bn:"".concat(bn).concat(rt).concat(Pn.padEnd(bt,"0").slice(0,bt))}return on===".0"?bn:"".concat(bn).concat(on)}var Ke=it,gt=re(36901),Ne=re(34280);function Ve(Be,rt){return typeof Proxy!="undefined"&&Be?new Proxy(Be,{get:function(Dt,Ut){if(rt[Ut])return rt[Ut];var ln=Dt[Ut];return typeof ln=="function"?ln.bind(Dt):ln}}):Be}var ht=re(8654),Ce=re(48736);function Re(Be,rt){var bt=(0,E.useRef)(null);function Dt(){try{var ln=Be.selectionStart,In=Be.selectionEnd,Pn=Be.value,on=Pn.substring(0,ln),bn=Pn.substring(In);bt.current={start:ln,end:In,value:Pn,beforeTxt:on,afterTxt:bn}}catch(dn){}}function Ut(){if(Be&&bt.current&&rt)try{var ln=Be.value,In=bt.current,Pn=In.beforeTxt,on=In.afterTxt,bn=In.start,dn=ln.length;if(ln.startsWith(Pn))dn=Pn.length;else if(ln.endsWith(on))dn=ln.length-bt.current.afterTxt.length;else{var Gt=Pn[bn-1],Lt=ln.indexOf(Gt,bn-1);Lt!==-1&&(dn=Lt+1)}Be.setSelectionRange(dn,dn)}catch(Rt){(0,Ce.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rt.message))}}return[Dt,Ut]}var _e=re(49658),se=function(){var rt=(0,E.useState)(!1),bt=(0,Pe.Z)(rt,2),Dt=bt[0],Ut=bt[1];return(0,Ne.Z)(function(){Ut((0,_e.Z)())},[]),Dt},$e=se,De=re(16089),we=200,ct=600;function me(Be){var rt=Be.prefixCls,bt=Be.upNode,Dt=Be.downNode,Ut=Be.upDisabled,ln=Be.downDisabled,In=Be.onStep,Pn=E.useRef(),on=E.useRef([]),bn=E.useRef();bn.current=In;var dn=function(){clearTimeout(Pn.current)},Gt=function(wn,Sn){wn.preventDefault(),dn(),bn.current(Sn);function Mn(){bn.current(Sn),Pn.current=setTimeout(Mn,we)}Pn.current=setTimeout(Mn,ct)};E.useEffect(function(){return function(){dn(),on.current.forEach(function(gn){return De.Z.cancel(gn)})}},[]);var Lt=$e();if(Lt)return null;var Rt="".concat(rt,"-handler"),Et=Se()(Rt,"".concat(Rt,"-up"),(0,Ie.Z)({},"".concat(Rt,"-up-disabled"),Ut)),en=Se()(Rt,"".concat(Rt,"-down"),(0,Ie.Z)({},"".concat(Rt,"-down-disabled"),ln)),Jt=function(){return on.current.push((0,De.Z)(dn))},qt={unselectable:"on",role:"button",onMouseUp:Jt,onMouseLeave:Jt};return E.createElement("div",{className:"".concat(Rt,"-wrap")},E.createElement("span",(0,ke.Z)({},qt,{onMouseDown:function(wn){Gt(wn,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:Et}),bt||E.createElement("span",{unselectable:"on",className:"".concat(rt,"-handler-up-inner")})),E.createElement("span",(0,ke.Z)({},qt,{onMouseDown:function(wn){Gt(wn,!1)},"aria-label":"Decrease Value","aria-disabled":ln,className:en}),Dt||E.createElement("span",{unselectable:"on",className:"".concat(rt,"-handler-down-inner")})))}function ce(Be){var rt=typeof Be=="number"?at(Be):Ae(Be).fullStr,bt=rt.includes(".");return bt?Ae(rt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Be+"0"}var je=re(30292),Pt=function(){var Be=(0,E.useRef)(0),rt=function(){De.Z.cancel(Be.current)};return(0,E.useEffect)(function(){return rt},[]),function(bt){rt(),Be.current=(0,De.Z)(function(){bt()})}},yt=["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"],ve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Te=function(rt,bt){return rt||bt.isEmpty()?bt.toString():bt.toNumber()},Le=function(rt){var bt=Ke(rt);return bt.isInvalidate()?null:bt},wt=E.forwardRef(function(Be,rt){var bt=Be.prefixCls,Dt=Be.className,Ut=Be.style,ln=Be.min,In=Be.max,Pn=Be.step,on=Pn===void 0?1:Pn,bn=Be.defaultValue,dn=Be.value,Gt=Be.disabled,Lt=Be.readOnly,Rt=Be.upHandler,Et=Be.downHandler,en=Be.keyboard,Jt=Be.changeOnWheel,qt=Jt===void 0?!1:Jt,gn=Be.controls,wn=gn===void 0?!0:gn,Sn=Be.classNames,Mn=Be.stringMode,kn=Be.parser,Wn=Be.formatter,An=Be.precision,Bt=Be.decimalSeparator,Kt=Be.onChange,xn=Be.onInput,hn=Be.onPressEnter,Xe=Be.onStep,st=Be.changeOnBlur,Oe=st===void 0?!0:st,Ye=Be.domRef,Me=(0,he.Z)(Be,yt),Qe="".concat(bt,"-input"),It=E.useRef(null),an=E.useState(!1),un=(0,Pe.Z)(an,2),vn=un[0],Qt=un[1],Ft=E.useRef(!1),Tt=E.useRef(!1),fn=E.useRef(!1),Tn=E.useState(function(){return Ke(dn!=null?dn:bn)}),Dn=(0,Pe.Z)(Tn,2),Bn=Dn[0],Xn=Dn[1];function Qn(Cn){dn===void 0&&Xn(Cn)}var Jn=E.useCallback(function(Cn,sn){if(!sn)return An>=0?An:Math.max(He(Cn),He(on))},[An,on]),Zn=E.useCallback(function(Cn){var sn=String(Cn);if(kn)return kn(sn);var _n=sn;return Bt&&(_n=_n.replace(Bt,".")),_n.replace(/[^\w.-]+/g,"")},[kn,Bt]),Fn=E.useRef(""),Hn=E.useCallback(function(Cn,sn){if(Wn)return Wn(Cn,{userTyping:sn,input:String(Fn.current)});var _n=typeof Cn=="number"?at(Cn):Cn;if(!sn){var jn=Jn(_n,sn);if(xt(_n)&&(Bt||jn>=0)){var mn=Bt||".";_n=tt(_n,mn,jn)}}return _n},[Wn,Jn,Bt]),Un=E.useState(function(){var Cn=bn!=null?bn:dn;return Bn.isInvalidate()&&["string","number"].includes((0,Ze.Z)(Cn))?Number.isNaN(Cn)?"":Cn:Hn(Bn.toString(),!1)}),ur=(0,Pe.Z)(Un,2),qn=ur[0],lr=ur[1];Fn.current=qn;function ir(Cn,sn){lr(Hn(Cn.isInvalidate()?Cn.toString(!1):Cn.toString(!sn),sn))}var er=E.useMemo(function(){return Le(In)},[In,An]),tr=E.useMemo(function(){return Le(ln)},[ln,An]),gr=E.useMemo(function(){return!er||!Bn||Bn.isInvalidate()?!1:er.lessEquals(Bn)},[er,Bn]),mr=E.useMemo(function(){return!tr||!Bn||Bn.isInvalidate()?!1:Bn.lessEquals(tr)},[tr,Bn]),cr=Re(It.current,vn),vr=(0,Pe.Z)(cr,2),Cr=vr[0],or=vr[1],dr=function(sn){return er&&!sn.lessEquals(er)?er:tr&&!tr.lessEquals(sn)?tr:null},Gn=function(sn){return!dr(sn)},Sr=function(sn,_n){var jn=sn,mn=Gn(jn)||jn.isEmpty();if(!jn.isEmpty()&&!_n&&(jn=dr(jn)||jn,mn=!0),!Lt&&!Gt&&mn){var yn=jn.toString(),Nn=Jn(yn,_n);return Nn>=0&&(jn=Ke(tt(yn,".",Nn)),Gn(jn)||(jn=Ke(tt(yn,".",Nn,!0)))),jn.equals(Bn)||(Qn(jn),Kt==null||Kt(jn.isEmpty()?null:Te(Mn,jn)),dn===void 0&&ir(jn,_n)),jn}return Bn},Rr=Pt(),Hr=function Cn(sn){if(Cr(),Fn.current=sn,lr(sn),!Tt.current){var _n=Zn(sn),jn=Ke(_n);jn.isNaN()||Sr(jn,!0)}xn==null||xn(sn),Rr(function(){var mn=sn;kn||(mn=sn.replace(/。/g,".")),mn!==sn&&Cn(mn)})},Er=function(){Tt.current=!0},Ar=function(){Tt.current=!1,Hr(It.current.value)},Ir=function(sn){Hr(sn.target.value)},Dr=function(sn){var _n;if(!(sn&&gr||!sn&&mr)){Ft.current=!1;var jn=Ke(fn.current?ce(on):on);sn||(jn=jn.negate());var mn=(Bn||Ke(0)).add(jn.toString()),yn=Sr(mn,!1);Xe==null||Xe(Te(Mn,yn),{offset:fn.current?ce(on):on,type:sn?"up":"down"}),(_n=It.current)===null||_n===void 0||_n.focus()}},_r=function(sn){var _n=Ke(Zn(qn)),jn;_n.isNaN()?jn=Sr(Bn,sn):jn=Sr(_n,sn),dn!==void 0?ir(Bn,!1):jn.isNaN()||ir(jn,!1)},fr=function(){Ft.current=!0},Yn=function(sn){var _n=sn.key,jn=sn.shiftKey;Ft.current=!0,fn.current=jn,_n==="Enter"&&(Tt.current||(Ft.current=!1),_r(!1),hn==null||hn(sn)),en!==!1&&!Tt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_n)&&(Dr(_n==="Up"||_n==="ArrowUp"),sn.preventDefault())},pn=function(){Ft.current=!1,fn.current=!1};E.useEffect(function(){if(qt&&vn){var Cn=function(jn){Dr(jn.deltaY<0),jn.preventDefault()},sn=It.current;if(sn)return sn.addEventListener("wheel",Cn,{passive:!1}),function(){return sn.removeEventListener("wheel",Cn)}}});var En=function(){Oe&&_r(!1),Qt(!1),Ft.current=!1};return(0,Ne.o)(function(){Bn.isInvalidate()||ir(Bn,!1)},[An,Wn]),(0,Ne.o)(function(){var Cn=Ke(dn);Xn(Cn);var sn=Ke(Zn(qn));(!Cn.equals(sn)||!Ft.current||Wn)&&ir(Cn,Ft.current)},[dn]),(0,Ne.o)(function(){Wn&&or()},[qn]),E.createElement("div",{ref:Ye,className:Se()(bt,Dt,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(bt,"-focused"),vn),"".concat(bt,"-disabled"),Gt),"".concat(bt,"-readonly"),Lt),"".concat(bt,"-not-a-number"),Bn.isNaN()),"".concat(bt,"-out-of-range"),!Bn.isInvalidate()&&!Gn(Bn))),style:Ut,onFocus:function(){Qt(!0)},onBlur:En,onKeyDown:Yn,onKeyUp:pn,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:fr},wn&&E.createElement(me,{prefixCls:bt,upNode:Rt,downNode:Et,upDisabled:gr,downDisabled:mr,onStep:Dr}),E.createElement("div",{className:"".concat(Qe,"-wrap")},E.createElement("input",(0,ke.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":ln,"aria-valuemax":In,"aria-valuenow":Bn.isInvalidate()?null:Bn.toString(),step:on},Me,{ref:(0,ht.sQ)(It,rt),className:Qe,value:qn,onChange:Ir,disabled:Gt,readOnly:Lt}))))}),pt=E.forwardRef(function(Be,rt){var bt=Be.disabled,Dt=Be.style,Ut=Be.prefixCls,ln=Ut===void 0?"rc-input-number":Ut,In=Be.value,Pn=Be.prefix,on=Be.suffix,bn=Be.addonBefore,dn=Be.addonAfter,Gt=Be.className,Lt=Be.classNames,Rt=(0,he.Z)(Be,ve),Et=E.useRef(null),en=E.useRef(null),Jt=E.useRef(null),qt=function(wn){Jt.current&&(0,je.nH)(Jt.current,wn)};return E.useImperativeHandle(rt,function(){return Ve(Jt.current,{focus:qt,nativeElement:Et.current.nativeElement||en.current})}),E.createElement(gt.BaseInput,{className:Gt,triggerFocus:qt,prefixCls:ln,value:In,disabled:bt,style:Dt,prefix:Pn,suffix:on,addonAfter:dn,addonBefore:bn,classNames:Lt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Et},E.createElement(wt,(0,ke.Z)({prefixCls:ln,disabled:bt,ref:Jt,domRef:en,className:Lt==null?void 0:Lt.input},Rt)))}),Mt=pt,Fe=Mt,At=re(62487),ut=re(82855),ae=re(48755),te=re(60840),ee=re(2171),oe=re(83397),ue=re(31756),ne=re(56553),pe=re(24971),ge=re(70045),We=re(36237),xe=re(53075),Ge=re(64910),nt=re(39082),St=re(63356),mt=re(56119),Ht=re(16931),Zt=re(51636),$t=re(17835);const tn=Be=>{var rt;const bt=(rt=Be.handleVisible)!==null&&rt!==void 0?rt:"auto",Dt=Be.controlHeightSM-Be.lineWidth*2;return Object.assign(Object.assign({},(0,Ge.T)(Be)),{controlWidth:90,handleWidth:Dt,handleFontSize:Be.fontSize/2,handleVisible:bt,handleActiveBg:Be.colorFillAlter,handleBg:Be.colorBgContainer,filledHandleBg:new $t.FastColor(Be.colorFillSecondary).onBackground(Be.colorBgContainer).toHexString(),handleHoverColor:Be.colorPrimary,handleBorderColor:Be.colorBorder,handleOpacity:bt===!0?1:0,handleVisibleWidth:bt===!0?Dt:0})},Xt=(Be,rt)=>{let{componentCls:bt,borderRadiusSM:Dt,borderRadiusLG:Ut}=Be;const ln=rt==="lg"?Ut:Dt;return{[`&-${rt}`]:{[`${bt}-handler-wrap`]:{borderStartEndRadius:ln,borderEndEndRadius:ln},[`${bt}-handler-up`]:{borderStartEndRadius:ln},[`${bt}-handler-down`]:{borderEndEndRadius:ln}}}},rn=Be=>{const{componentCls:rt,lineWidth:bt,lineType:Dt,borderRadius:Ut,inputFontSizeSM:ln,inputFontSizeLG:In,controlHeightLG:Pn,controlHeightSM:on,colorError:bn,paddingInlineSM:dn,paddingBlockSM:Gt,paddingBlockLG:Lt,paddingInlineLG:Rt,colorTextDescription:Et,motionDurationMid:en,handleHoverColor:Jt,handleOpacity:qt,paddingInline:gn,paddingBlock:wn,handleBg:Sn,handleActiveBg:Mn,colorTextDisabled:kn,borderRadiusSM:Wn,borderRadiusLG:An,controlWidth:Bt,handleBorderColor:Kt,filledHandleBg:xn,lineHeightLG:hn,calc:Xe}=Be;return[{[rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Be)),(0,xe.ik)(Be)),{display:"inline-block",width:Bt,margin:0,padding:0,borderRadius:Ut}),(0,nt.qG)(Be,{[`${rt}-handler-wrap`]:{background:Sn,[`${rt}-handler-down`]:{borderBlockStart:`${(0,We.unit)(bt)} ${Dt} ${Kt}`}}})),(0,nt.H8)(Be,{[`${rt}-handler-wrap`]:{background:xn,[`${rt}-handler-down`]:{borderBlockStart:`${(0,We.unit)(bt)} ${Dt} ${Kt}`}},"&:focus-within":{[`${rt}-handler-wrap`]:{background:Sn}}})),(0,nt.vc)(Be,{[`${rt}-handler-wrap`]:{background:Sn,[`${rt}-handler-down`]:{borderBlockStart:`${(0,We.unit)(bt)} ${Dt} ${Kt}`}}})),(0,nt.Mu)(Be)),{"&-rtl":{direction:"rtl",[`${rt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:In,lineHeight:hn,borderRadius:An,[`input${rt}-input`]:{height:Xe(Pn).sub(Xe(bt).mul(2)).equal(),padding:`${(0,We.unit)(Lt)} ${(0,We.unit)(Rt)}`}},"&-sm":{padding:0,fontSize:ln,borderRadius:Wn,[`input${rt}-input`]:{height:Xe(on).sub(Xe(bt).mul(2)).equal(),padding:`${(0,We.unit)(Gt)} ${(0,We.unit)(dn)}`}},"&-out-of-range":{[`${rt}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Be)),(0,xe.s7)(Be)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${rt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${rt}-group-addon`]:{borderRadius:An,fontSize:Be.fontSizeLG}},"&-sm":{[`${rt}-group-addon`]:{borderRadius:Wn}}},(0,nt.ir)(Be)),(0,nt.S5)(Be)),{[`&:not(${rt}-compact-first-item):not(${rt}-compact-last-item)${rt}-compact-item`]:{[`${rt}, ${rt}-group-addon`]:{borderRadius:0}},[`&:not(${rt}-compact-last-item)${rt}-compact-first-item`]:{[`${rt}, ${rt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${rt}-compact-first-item)${rt}-compact-last-item`]:{[`${rt}, ${rt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${rt}-input`]:{cursor:"not-allowed"},[rt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Be)),{width:"100%",padding:`${(0,We.unit)(wn)} ${(0,We.unit)(gn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${en} linear`,appearance:"textfield",fontSize:"inherit"}),(0,xe.nz)(Be.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${rt}-handler-wrap, &-focused ${rt}-handler-wrap`]:{width:Be.handleWidth,opacity:1}})},{[rt]:Object.assign(Object.assign(Object.assign({[`${rt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Be.handleVisibleWidth,opacity:qt,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${en}`,overflow:"hidden",[`${rt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${rt}-handler-up-inner,
${rt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Be.handleFontSize}}},[`${rt}-handler`]:{height:"50%",overflow:"hidden",color:Et,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,We.unit)(bt)} ${Dt} ${Kt}`,transition:`all ${en} linear`,"&:active":{background:Mn},"&:hover":{height:"60%",[`
${rt}-handler-up-inner,
${rt}-handler-down-inner
`]:{color:Jt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,St.Ro)()),{color:Et,transition:`all ${en} linear`,userSelect:"none"})},[`${rt}-handler-up`]:{borderStartEndRadius:Ut},[`${rt}-handler-down`]:{borderEndEndRadius:Ut}},Xt(Be,"lg")),Xt(Be,"sm")),{"&-disabled, &-readonly":{[`${rt}-handler-wrap`]:{display:"none"},[`${rt}-input`]:{color:"inherit"}},[`
${rt}-handler-up-disabled,
${rt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${rt}-handler-up-disabled:hover &-handler-up-inner,
${rt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:kn}})}]},Ot=Be=>{const{componentCls:rt,paddingBlock:bt,paddingInline:Dt,inputAffixPadding:Ut,controlWidth:ln,borderRadiusLG:In,borderRadiusSM:Pn,paddingInlineLG:on,paddingInlineSM:bn,paddingBlockLG:dn,paddingBlockSM:Gt,motionDurationMid:Lt}=Be;return{[`${rt}-affix-wrapper`]:Object.assign(Object.assign({[`input${rt}-input`]:{padding:`${(0,We.unit)(bt)} 0`}},(0,xe.ik)(Be)),{position:"relative",display:"inline-flex",alignItems:"center",width:ln,padding:0,paddingInlineStart:Dt,"&-lg":{borderRadius:In,paddingInlineStart:on,[`input${rt}-input`]:{padding:`${(0,We.unit)(dn)} 0`}},"&-sm":{borderRadius:Pn,paddingInlineStart:bn,[`input${rt}-input`]:{padding:`${(0,We.unit)(Gt)} 0`}},[`&:not(${rt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${rt}-disabled`]:{background:"transparent"},[`> div${rt}`]:{width:"100%",border:"none",outline:"none",[`&${rt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${rt}-handler-wrap`]:{zIndex:2},[rt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ut},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Dt,marginInlineStart:Ut,transition:`margin ${Lt}`}},[`&:hover ${rt}-handler-wrap, &-focused ${rt}-handler-wrap`]:{width:Be.handleWidth,opacity:1},[`&:not(${rt}-affix-wrapper-without-controls):hover ${rt}-suffix`]:{marginInlineEnd:Be.calc(Be.handleWidth).add(Dt).equal()}})}};var Yt=(0,Ht.I$)("InputNumber",Be=>{const rt=(0,Zt.mergeToken)(Be,(0,Ge.e)(Be));return[rn(rt),Ot(rt),(0,mt.c)(rt)]},tn,{unitless:{handleOpacity:!0}}),Vt=function(Be,rt){var bt={};for(var Dt in Be)Object.prototype.hasOwnProperty.call(Be,Dt)&&rt.indexOf(Dt)<0&&(bt[Dt]=Be[Dt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Dt=Object.getOwnPropertySymbols(Be);Ut<Dt.length;Ut++)rt.indexOf(Dt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Be,Dt[Ut])&&(bt[Dt[Ut]]=Be[Dt[Ut]]);return bt};const ze=E.forwardRef((Be,rt)=>{const{getPrefixCls:bt,direction:Dt}=E.useContext(ae.E_),Ut=E.useRef(null);E.useImperativeHandle(rt,()=>Ut.current);const{className:ln,rootClassName:In,size:Pn,disabled:on,prefixCls:bn,addonBefore:dn,addonAfter:Gt,prefix:Lt,suffix:Rt,bordered:Et,readOnly:en,status:Jt,controls:qt,variant:gn}=Be,wn=Vt(Be,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Sn=bt("input-number",bn),Mn=(0,oe.Z)(Sn),[kn,Wn,An]=Yt(Sn,Mn),{compactSize:Bt,compactItemClassnames:Kt}=(0,ge.ri)(Sn,Dt);let xn=E.createElement(ye.Z,{className:`${Sn}-handler-up-inner`}),hn=E.createElement(lt.Z,{className:`${Sn}-handler-down-inner`});const Xe=typeof qt=="boolean"?qt:void 0;typeof qt=="object"&&(xn=typeof qt.upIcon=="undefined"?xn:E.createElement("span",{className:`${Sn}-handler-up-inner`},qt.upIcon),hn=typeof qt.downIcon=="undefined"?hn:E.createElement("span",{className:`${Sn}-handler-down-inner`},qt.downIcon));const{hasFeedback:st,status:Oe,isFormItemInput:Ye,feedbackIcon:Me}=E.useContext(ne.aM),Qe=(0,ut.F)(Oe,Jt),It=(0,ue.Z)(Dn=>{var Bn;return(Bn=Pn!=null?Pn:Bt)!==null&&Bn!==void 0?Bn:Dn}),an=E.useContext(ee.Z),un=on!=null?on:an,[vn,Qt]=(0,pe.Z)("inputNumber",gn,Et),Ft=st&&E.createElement(E.Fragment,null,Me),Tt=Se()({[`${Sn}-lg`]:It==="large",[`${Sn}-sm`]:It==="small",[`${Sn}-rtl`]:Dt==="rtl",[`${Sn}-in-form-item`]:Ye},Wn),fn=`${Sn}-group`,Tn=E.createElement(Fe,Object.assign({ref:Ut,disabled:un,className:Se()(An,Mn,ln,In,Kt),upHandler:xn,downHandler:hn,prefixCls:Sn,readOnly:en,controls:Xe,prefix:Lt,suffix:Ft||Rt,addonBefore:dn&&E.createElement(At.Z,{form:!0,space:!0},dn),addonAfter:Gt&&E.createElement(At.Z,{form:!0,space:!0},Gt),classNames:{input:Tt,variant:Se()({[`${Sn}-${vn}`]:Qt},(0,ut.Z)(Sn,Qe,st)),affixWrapper:Se()({[`${Sn}-affix-wrapper-sm`]:It==="small",[`${Sn}-affix-wrapper-lg`]:It==="large",[`${Sn}-affix-wrapper-rtl`]:Dt==="rtl",[`${Sn}-affix-wrapper-without-controls`]:qt===!1||un},Wn),wrapper:Se()({[`${fn}-rtl`]:Dt==="rtl"},Wn),groupWrapper:Se()({[`${Sn}-group-wrapper-sm`]:It==="small",[`${Sn}-group-wrapper-lg`]:It==="large",[`${Sn}-group-wrapper-rtl`]:Dt==="rtl",[`${Sn}-group-wrapper-${vn}`]:Qt},(0,ut.Z)(`${Sn}-group-wrapper`,Qe,st),Wn)}},wn));return kn(Tn)}),dt=ze,Nt=Be=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(ze,Object.assign({},Be)));dt._InternalPanelDoNotUseOrYouWillBeFired=Nt;var Wt=dt},49397:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return ft}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(36901),Se=re(8654),ke=re(62487),Ie=re(86013),Ze=re(82855),Pe=re(48755),he=re(2171),Je=re(83397),Ee=re(31756),Ct=re(56553),qe=re(24971),Ae=re(70045),Ue=re(23826),He=re(53075);function at(it){return!!(it.prefix||it.suffix||it.allowClear||it.showCount)}var xt=function(it,tt){var Ke={};for(var gt in it)Object.prototype.hasOwnProperty.call(it,gt)&&tt.indexOf(gt)<0&&(Ke[gt]=it[gt]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,gt=Object.getOwnPropertySymbols(it);Ne<gt.length;Ne++)tt.indexOf(gt[Ne])<0&&Object.prototype.propertyIsEnumerable.call(it,gt[Ne])&&(Ke[gt[Ne]]=it[gt[Ne]]);return Ke},ft=(0,E.forwardRef)((it,tt)=>{const{prefixCls:Ke,bordered:gt=!0,status:Ne,size:Ve,disabled:ht,onBlur:Ce,onFocus:Re,suffix:_e,allowClear:se,addonAfter:$e,addonBefore:De,className:we,style:ct,styles:me,rootClassName:ce,onChange:je,classNames:Pt,variant:yt}=it,ve=xt(it,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Te,direction:Le,allowClear:wt,autoComplete:pt,className:Mt,style:Fe,classNames:At,styles:ut}=(0,Pe.dj)("input"),ae=Te("input",Ke),te=(0,E.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,ne]=(0,He.TI)(ae,ce),[pe]=(0,He.ZP)(ae,ee),{compactSize:ge,compactItemClassnames:We}=(0,Ae.ri)(ae,Le),xe=(0,Ee.Z)(Wt=>{var Be;return(Be=Ve!=null?Ve:ge)!==null&&Be!==void 0?Be:Wt}),Ge=E.useContext(he.Z),nt=ht!=null?ht:Ge,{status:St,hasFeedback:mt,feedbackIcon:Ht}=(0,E.useContext)(Ct.aM),Zt=(0,Ze.F)(St,Ne),$t=at(it)||!!mt,tn=(0,E.useRef)($t),Xt=(0,Ue.Z)(te,!0),rn=Wt=>{Xt(),Ce==null||Ce(Wt)},Ot=Wt=>{Xt(),Re==null||Re(Wt)},Yt=Wt=>{Xt(),je==null||je(Wt)},Vt=(mt||_e)&&E.createElement(E.Fragment,null,_e,mt&&Ht),ze=(0,Ie.Z)(se!=null?se:wt),[dt,Nt]=(0,qe.Z)("input",yt,gt);return oe(pe(E.createElement(et.default,Object.assign({ref:(0,Se.sQ)(tt,te),prefixCls:ae,autoComplete:pt},ve,{disabled:nt,onBlur:rn,onFocus:Ot,style:Object.assign(Object.assign({},Fe),ct),styles:Object.assign(Object.assign({},ut),me),suffix:Vt,allowClear:ze,className:ye()(we,ce,ne,ee,We,Mt),onChange:Yt,addonBefore:De&&E.createElement(ke.Z,{form:!0,space:!0},De),addonAfter:$e&&E.createElement(ke.Z,{form:!0,space:!0},$e),classNames:Object.assign(Object.assign(Object.assign({},Pt),At),{input:ye()({[`${ae}-sm`]:xe==="small",[`${ae}-lg`]:xe==="large",[`${ae}-rtl`]:Le==="rtl"},Pt==null?void 0:Pt.input,At.input,ue),variant:ye()({[`${ae}-${dt}`]:Nt},(0,Ze.Z)(ae,Zt)),affixWrapper:ye()({[`${ae}-affix-wrapper-sm`]:xe==="small",[`${ae}-affix-wrapper-lg`]:xe==="large",[`${ae}-affix-wrapper-rtl`]:Le==="rtl"},ue),wrapper:ye()({[`${ae}-group-rtl`]:Le==="rtl"},ue),groupWrapper:ye()({[`${ae}-group-wrapper-sm`]:xe==="small",[`${ae}-group-wrapper-lg`]:xe==="large",[`${ae}-group-wrapper-rtl`]:Le==="rtl",[`${ae}-group-wrapper-${dt}`]:Nt},(0,Ze.Z)(`${ae}-group-wrapper`,Zt,mt),ue)})}))))})},79809:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return tt}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(22711),Se=re(86013),ke=re(82855),Ie=re(48755),Ze=re(2171),Pe=re(83397),he=re(31756),Je=re(56553),Ee=re(24971),Ct=re(70045),qe=re(30292),Ae=re(53075),Ue=re(16931),He=re(51636),at=re(64910);const xt=Ke=>{const{componentCls:gt,paddingLG:Ne}=Ke,Ve=`${gt}-textarea`;return{[`textarea${gt}`]:{maxWidth:"100%",height:"auto",minHeight:Ke.controlHeight,lineHeight:Ke.lineHeight,verticalAlign:"bottom",transition:`all ${Ke.motionDurationSlow}`,resize:"vertical",[`&${gt}-mouse-active`]:{transition:`all ${Ke.motionDurationSlow}, height 0s, width 0s`}},[`${gt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ve]:{position:"relative","&-show-count":{[`> ${gt}`]:{height:"100%"},[`${gt}-data-count`]:{position:"absolute",bottom:Ke.calc(Ke.fontSize).mul(Ke.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ke.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${gt},
&-affix-wrapper${Ve}-has-feedback ${gt}
`]:{paddingInlineEnd:Ne},[`&-affix-wrapper${gt}-affix-wrapper`]:{padding:0,[`> textarea${gt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ke.calc(Ke.controlHeight).sub(Ke.calc(Ke.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${gt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${gt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ke.paddingInline,insetBlockStart:Ke.paddingXS},[`${Ve}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ke.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${gt}-affix-wrapper-sm`]:{[`${gt}-suffix`]:{[`${gt}-clear-icon`]:{insetInlineEnd:Ke.paddingInlineSM}}}}}};var kt=(0,Ue.I$)(["Input","TextArea"],Ke=>{const gt=(0,He.mergeToken)(Ke,(0,at.e)(Ke));return[xt(gt)]},at.T,{resetFont:!1}),ft=function(Ke,gt){var Ne={};for(var Ve in Ke)Object.prototype.hasOwnProperty.call(Ke,Ve)&&gt.indexOf(Ve)<0&&(Ne[Ve]=Ke[Ve]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Ve=Object.getOwnPropertySymbols(Ke);ht<Ve.length;ht++)gt.indexOf(Ve[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Ve[ht])&&(Ne[Ve[ht]]=Ke[Ve[ht]]);return Ne},tt=(0,E.forwardRef)((Ke,gt)=>{var Ne;const{prefixCls:Ve,bordered:ht=!0,size:Ce,disabled:Re,status:_e,allowClear:se,classNames:$e,rootClassName:De,className:we,style:ct,styles:me,variant:ce,showCount:je,onMouseDown:Pt,onResize:yt}=Ke,ve=ft(Ke,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Te,direction:Le,allowClear:wt,autoComplete:pt,className:Mt,style:Fe,classNames:At,styles:ut}=(0,Ie.dj)("textArea"),ae=E.useContext(Ze.Z),te=Re!=null?Re:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=E.useContext(Je.aM),ne=(0,ke.F)(ee,_e),pe=E.useRef(null);E.useImperativeHandle(gt,()=>{var Nt;return{resizableTextArea:(Nt=pe.current)===null||Nt===void 0?void 0:Nt.resizableTextArea,focus:Wt=>{var Be,rt;(0,qe.nH)((rt=(Be=pe.current)===null||Be===void 0?void 0:Be.resizableTextArea)===null||rt===void 0?void 0:rt.textArea,Wt)},blur:()=>{var Wt;return(Wt=pe.current)===null||Wt===void 0?void 0:Wt.blur()}}});const ge=Te("input",Ve),We=(0,Pe.Z)(ge),[xe,Ge,nt]=(0,Ae.TI)(ge,De),[St]=kt(ge,We),{compactSize:mt,compactItemClassnames:Ht}=(0,Ct.ri)(ge,Le),Zt=(0,he.Z)(Nt=>{var Wt;return(Wt=Ce!=null?Ce:mt)!==null&&Wt!==void 0?Wt:Nt}),[$t,tn]=(0,Ee.Z)("textArea",ce,ht),Xt=(0,Se.Z)(se!=null?se:wt),[rn,Ot]=E.useState(!1),[Yt,Vt]=E.useState(!1),ze=Nt=>{Ot(!0),Pt==null||Pt(Nt);const Wt=()=>{Ot(!1),document.removeEventListener("mouseup",Wt)};document.addEventListener("mouseup",Wt)},dt=Nt=>{var Wt,Be;if(yt==null||yt(Nt),rn&&typeof getComputedStyle=="function"){const rt=(Be=(Wt=pe.current)===null||Wt===void 0?void 0:Wt.nativeElement)===null||Be===void 0?void 0:Be.querySelector("textarea");rt&&getComputedStyle(rt).resize==="both"&&Vt(!0)}};return xe(St(E.createElement(et.default,Object.assign({autoComplete:pt},ve,{style:Object.assign(Object.assign({},Fe),ct),styles:Object.assign(Object.assign({},ut),me),disabled:te,allowClear:Xt,className:ye()(nt,We,we,De,Ht,Mt,Yt&&`${ge}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},$e),At),{textarea:ye()({[`${ge}-sm`]:Zt==="small",[`${ge}-lg`]:Zt==="large"},Ge,$e==null?void 0:$e.textarea,At.textarea,rn&&`${ge}-mouse-active`),variant:ye()({[`${ge}-${$t}`]:tn},(0,ke.Z)(ge,ne)),affixWrapper:ye()(`${ge}-textarea-affix-wrapper`,{[`${ge}-affix-wrapper-rtl`]:Le==="rtl",[`${ge}-affix-wrapper-sm`]:Zt==="small",[`${ge}-affix-wrapper-lg`]:Zt==="large",[`${ge}-textarea-show-count`]:je||((Ne=Ke.count)===null||Ne===void 0?void 0:Ne.show)},Ge)}),prefixCls:ge,suffix:oe&&E.createElement("span",{className:`${ge}-textarea-suffix`},ue),showCount:je,ref:pe,onResize:dt,onMouseDown:ze}))))})},23826:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return lt}});var E=re(59301);function lt(ye,et){const Se=(0,E.useRef)([]),ke=()=>{Se.current.push(setTimeout(()=>{var Ie,Ze,Pe,he;!((Ie=ye.current)===null||Ie===void 0)&&Ie.input&&((Ze=ye.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Pe=ye.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((he=ye.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(et&&ke(),()=>Se.current.forEach(Ie=>{Ie&&clearTimeout(Ie)})),[]),ke}},37568:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return At}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(48755),Se=re(56553),ke=re(53075),Ze=ut=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(et.E_),{prefixCls:ee,className:oe}=ut,ue=ae("input-group",ee),ne=ae("input"),[pe,ge,We]=(0,ke.ZP)(ne),xe=ye()(ue,We,{[`${ue}-lg`]:ut.size==="large",[`${ue}-sm`]:ut.size==="small",[`${ue}-compact`]:ut.compact,[`${ue}-rtl`]:te==="rtl"},ge,oe),Ge=(0,E.useContext)(Se.aM),nt=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ge),{isFormItemInput:!1}),[Ge]);return pe(E.createElement("span",{className:xe,style:ut.style,onMouseEnter:ut.onMouseEnter,onMouseLeave:ut.onMouseLeave,onFocus:ut.onFocus,onBlur:ut.onBlur},E.createElement(Se.aM.Provider,{value:nt},ut.children)))},Pe=re(49397),he=re(77654),Je=re(6089),Ee=re(26112),Ct=re(82855),qe=re(31756),Ae=re(16931),Ue=re(51636),He=re(64910);const at=ut=>{const{componentCls:ae,paddingXS:te}=ut;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:ut.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:ut.calc(ut.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:ut.paddingXS}}}};var xt=(0,Ae.I$)(["Input","OTP"],ut=>{const ae=(0,Ue.mergeToken)(ut,(0,He.e)(ut));return[at(ae)]},He.T),kt=re(16089),ft=function(ut,ae){var te={};for(var ee in ut)Object.prototype.hasOwnProperty.call(ut,ee)&&ae.indexOf(ee)<0&&(te[ee]=ut[ee]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ut);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ut,ee[oe])&&(te[ee[oe]]=ut[ee[oe]]);return te},tt=E.forwardRef((ut,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:ue,mask:ne}=ut,pe=ft(ut,["value","onChange","onActiveChange","index","mask"]),ge=te&&typeof ne=="string"?ne:te,We=mt=>{ee(ue,mt.target.value)},xe=E.useRef(null);E.useImperativeHandle(ae,()=>xe.current);const Ge=()=>{(0,kt.Z)(()=>{var mt;const Ht=(mt=xe.current)===null||mt===void 0?void 0:mt.input;document.activeElement===Ht&&Ht&&Ht.select()})},nt=mt=>{const{key:Ht,ctrlKey:Zt,metaKey:$t}=mt;Ht==="ArrowLeft"?oe(ue-1):Ht==="ArrowRight"?oe(ue+1):Ht==="z"&&(Zt||$t)&&mt.preventDefault(),Ge()},St=mt=>{mt.key==="Backspace"&&!te&&oe(ue-1),Ge()};return E.createElement(Pe.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:xe,value:ge,onInput:We,onFocus:Ge,onKeyDown:nt,onKeyUp:St,onMouseDown:Ge,onMouseUp:Ge}))}),Ke=function(ut,ae){var te={};for(var ee in ut)Object.prototype.hasOwnProperty.call(ut,ee)&&ae.indexOf(ee)<0&&(te[ee]=ut[ee]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ut);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ut,ee[oe])&&(te[ee[oe]]=ut[ee[oe]]);return te};function gt(ut){return(ut||"").split("")}const Ne=ut=>{const{index:ae,prefixCls:te,separator:ee}=ut,oe=typeof ee=="function"?ee(ae):ee;return oe?E.createElement("span",{className:`${te}-separator`},oe):null};var ht=E.forwardRef((ut,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:ne,onChange:pe,formatter:ge,separator:We,variant:xe,disabled:Ge,status:nt,autoFocus:St,mask:mt,type:Ht,onInput:Zt,inputMode:$t}=ut,tn=Ke(ut,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Xt,direction:rn}=E.useContext(et.E_),Ot=Xt("otp",te),Yt=(0,Ee.Z)(tn,{aria:!0,data:!0,attr:!0}),[Vt,ze,dt]=xt(Ot),Nt=(0,qe.Z)(Lt=>oe!=null?oe:Lt),Wt=E.useContext(Se.aM),Be=(0,Ct.F)(Wt.status,nt),rt=E.useMemo(()=>Object.assign(Object.assign({},Wt),{status:Be,hasFeedback:!1,feedbackIcon:null}),[Wt,Be]),bt=E.useRef(null),Dt=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var Lt;(Lt=Dt.current[0])===null||Lt===void 0||Lt.focus()},blur:()=>{var Lt;for(let Rt=0;Rt<ee;Rt+=1)(Lt=Dt.current[Rt])===null||Lt===void 0||Lt.blur()},nativeElement:bt.current}));const Ut=Lt=>ge?ge(Lt):Lt,[ln,In]=E.useState(()=>gt(Ut(ue||"")));E.useEffect(()=>{ne!==void 0&&In(gt(ne))},[ne]);const Pn=(0,Je.Z)(Lt=>{In(Lt),Zt&&Zt(Lt),pe&&Lt.length===ee&&Lt.every(Rt=>Rt)&&Lt.some((Rt,Et)=>ln[Et]!==Rt)&&pe(Lt.join(""))}),on=(0,Je.Z)((Lt,Rt)=>{let Et=(0,he.Z)(ln);for(let Jt=0;Jt<Lt;Jt+=1)Et[Jt]||(Et[Jt]="");Rt.length<=1?Et[Lt]=Rt:Et=Et.slice(0,Lt).concat(gt(Rt)),Et=Et.slice(0,ee);for(let Jt=Et.length-1;Jt>=0&&!Et[Jt];Jt-=1)Et.pop();const en=Ut(Et.map(Jt=>Jt||" ").join(""));return Et=gt(en).map((Jt,qt)=>Jt===" "&&!Et[qt]?Et[qt]:Jt),Et}),bn=(Lt,Rt)=>{var Et;const en=on(Lt,Rt),Jt=Math.min(Lt+Rt.length,ee-1);Jt!==Lt&&en[Lt]!==void 0&&((Et=Dt.current[Jt])===null||Et===void 0||Et.focus()),Pn(en)},dn=Lt=>{var Rt;(Rt=Dt.current[Lt])===null||Rt===void 0||Rt.focus()},Gt={variant:xe,disabled:Ge,status:Be,mask:mt,type:Ht,inputMode:$t};return Vt(E.createElement("div",Object.assign({},Yt,{ref:bt,className:ye()(Ot,{[`${Ot}-sm`]:Nt==="small",[`${Ot}-lg`]:Nt==="large",[`${Ot}-rtl`]:rn==="rtl"},dt,ze)}),E.createElement(Se.aM.Provider,{value:rt},Array.from({length:ee}).map((Lt,Rt)=>{const Et=`otp-${Rt}`,en=ln[Rt]||"";return E.createElement(E.Fragment,{key:Et},E.createElement(tt,Object.assign({ref:Jt=>{Dt.current[Rt]=Jt},index:Rt,size:Nt,htmlSize:1,className:`${Ot}-input`,onChange:bn,value:en,onActiveChange:dn,autoFocus:Rt===0&&St},Gt)),Rt<ee-1&&E.createElement(Ne,{separator:We,index:Rt,prefixCls:Ot}))}))))}),Ce=re(73331),Re=re(15277),_e=re(2738),se=re(8654),$e=re(2171),De=re(23826),we=function(ut,ae){var te={};for(var ee in ut)Object.prototype.hasOwnProperty.call(ut,ee)&&ae.indexOf(ee)<0&&(te[ee]=ut[ee]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ut);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ut,ee[oe])&&(te[ee[oe]]=ut[ee[oe]]);return te};const ct=ut=>ut?E.createElement(Re.Z,null):E.createElement(Ce.Z,null),me={click:"onClick",hover:"onMouseOver"};var je=E.forwardRef((ut,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=ct}=ut,ne=E.useContext($e.Z),pe=te!=null?te:ne,ge=typeof oe=="object"&&oe.visible!==void 0,[We,xe]=(0,E.useState)(()=>ge?oe.visible:!1),Ge=(0,E.useRef)(null);E.useEffect(()=>{ge&&xe(oe.visible)},[ge,oe]);const nt=(0,De.Z)(Ge),St=()=>{var Nt;if(pe)return;We&&nt();const Wt=!We;xe(Wt),typeof oe=="object"&&((Nt=oe.onVisibleChange)===null||Nt===void 0||Nt.call(oe,Wt))},mt=Nt=>{const Wt=me[ee]||"",Be=ue(We),rt={[Wt]:St,className:`${Nt}-icon`,key:"passwordIcon",onMouseDown:bt=>{bt.preventDefault()},onMouseUp:bt=>{bt.preventDefault()}};return E.cloneElement(E.isValidElement(Be)?Be:E.createElement("span",null,Be),rt)},{className:Ht,prefixCls:Zt,inputPrefixCls:$t,size:tn}=ut,Xt=we(ut,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rn}=E.useContext(et.E_),Ot=rn("input",$t),Yt=rn("input-password",Zt),Vt=oe&&mt(Yt),ze=ye()(Yt,Ht,{[`${Yt}-${tn}`]:!!tn}),dt=Object.assign(Object.assign({},(0,_e.Z)(Xt,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:ze,prefixCls:Ot,suffix:Vt});return tn&&(dt.size=tn),E.createElement(Pe.Z,Object.assign({ref:(0,se.sQ)(ae,Ge)},dt))}),Pt=re(47472),yt=re(22703),ve=re(7939),Te=re(70045),Le=function(ut,ae){var te={};for(var ee in ut)Object.prototype.hasOwnProperty.call(ut,ee)&&ae.indexOf(ee)<0&&(te[ee]=ut[ee]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(ut);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(ut,ee[oe])&&(te[ee[oe]]=ut[ee[oe]]);return te},pt=E.forwardRef((ut,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:ne,enterButton:pe=!1,addonAfter:ge,loading:We,disabled:xe,onSearch:Ge,onChange:nt,onCompositionStart:St,onCompositionEnd:mt}=ut,Ht=Le(ut,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Zt,direction:$t}=E.useContext(et.E_),tn=E.useRef(!1),Xt=Zt("input-search",te),rn=Zt("input",ee),{compactSize:Ot}=(0,Te.ri)(Xt,$t),Yt=(0,qe.Z)(bn=>{var dn;return(dn=ue!=null?ue:Ot)!==null&&dn!==void 0?dn:bn}),Vt=E.useRef(null),ze=bn=>{bn!=null&&bn.target&&bn.type==="click"&&Ge&&Ge(bn.target.value,bn,{source:"clear"}),nt==null||nt(bn)},dt=bn=>{var dn;document.activeElement===((dn=Vt.current)===null||dn===void 0?void 0:dn.input)&&bn.preventDefault()},Nt=bn=>{var dn,Gt;Ge&&Ge((Gt=(dn=Vt.current)===null||dn===void 0?void 0:dn.input)===null||Gt===void 0?void 0:Gt.value,bn,{source:"input"})},Wt=bn=>{tn.current||We||Nt(bn)},Be=typeof pe=="boolean"?E.createElement(Pt.Z,null):null,rt=`${Xt}-button`;let bt;const Dt=pe||{},Ut=Dt.type&&Dt.type.__ANT_BUTTON===!0;Ut||Dt.type==="button"?bt=(0,yt.Tm)(Dt,Object.assign({onMouseDown:dt,onClick:bn=>{var dn,Gt;(Gt=(dn=Dt==null?void 0:Dt.props)===null||dn===void 0?void 0:dn.onClick)===null||Gt===void 0||Gt.call(dn,bn),Nt(bn)},key:"enterButton"},Ut?{className:rt,size:Yt}:{})):bt=E.createElement(ve.ZP,{className:rt,type:pe?"primary":void 0,size:Yt,disabled:xe,key:"enterButton",onMouseDown:dt,onClick:Nt,loading:We,icon:Be},pe),ge&&(bt=[bt,(0,yt.Tm)(ge,{key:"addonAfter"})]);const ln=ye()(Xt,{[`${Xt}-rtl`]:$t==="rtl",[`${Xt}-${Yt}`]:!!Yt,[`${Xt}-with-button`]:!!pe},oe),In=Object.assign(Object.assign({},Ht),{className:ln,prefixCls:rn,type:"search"}),Pn=bn=>{tn.current=!0,St==null||St(bn)},on=bn=>{tn.current=!1,mt==null||mt(bn)};return E.createElement(Pe.Z,Object.assign({ref:(0,se.sQ)(Vt,ae),onPressEnter:Wt},In,{size:Yt,onCompositionStart:Pn,onCompositionEnd:on,addonAfter:bt,suffix:ne,onChange:ze,disabled:xe}))}),Mt=re(79809);const Fe=Pe.Z;Fe.Group=Ze,Fe.Search=pt,Fe.TextArea=Mt.Z,Fe.Password=je,Fe.OTP=ht;var At=Fe},24303:function(nn,zt,re){"use strict";re.d(zt,{D:function(){return Ke},Z:function(){return Ve}});var E=re(59301),lt=re(60499),ye={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"},et=ye,Se=re(7657),ke=function(Ce,Re){return E.createElement(Se.Z,(0,lt.Z)({},Ce,{ref:Re,icon:et}))},Ie=E.forwardRef(ke),Ze=Ie,Pe=re(33853),he=re(38819),Je=re(92310),Ee=re.n(Je),Ct=re(2738),qe=re(48755),Ae=re(6989),Ue=re(36237),He=re(48923),at=re(16931);const xt=ht=>{const{componentCls:Ce,siderBg:Re,motionDurationMid:_e,motionDurationSlow:se,antCls:$e,triggerHeight:De,triggerColor:we,triggerBg:ct,headerHeight:me,zeroTriggerWidth:ce,zeroTriggerHeight:je,borderRadiusLG:Pt,lightSiderBg:yt,lightTriggerColor:ve,lightTriggerBg:Te,bodyBg:Le}=ht;return{[Ce]:{position:"relative",minWidth:0,background:Re,transition:`all ${_e}, background 0s`,"&-has-trigger":{paddingBottom:De},"&-right":{order:1},[`${Ce}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${$e}-menu${$e}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ce}-children`]:{overflow:"hidden"},[`${Ce}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:De,color:we,lineHeight:(0,Ue.unit)(De),textAlign:"center",background:ct,cursor:"pointer",transition:`all ${_e}`},[`${Ce}-zero-width-trigger`]:{position:"absolute",top:me,insetInlineEnd:ht.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:je,color:we,fontSize:ht.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Re,borderRadius:`0 ${(0,Ue.unit)(Pt)} ${(0,Ue.unit)(Pt)} 0`,cursor:"pointer",transition:`background ${se} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${se}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ht.calc(ce).mul(-1).equal(),borderRadius:`${(0,Ue.unit)(Pt)} 0 0 ${(0,Ue.unit)(Pt)}`}},"&-light":{background:yt,[`${Ce}-trigger`]:{color:ve,background:Te},[`${Ce}-zero-width-trigger`]:{color:ve,background:Te,border:`1px solid ${Le}`,borderInlineStart:0}}}}};var kt=(0,at.I$)(["Layout","Sider"],ht=>[xt(ht)],He.eh,{deprecatedTokens:He.jn}),ft=function(ht,Ce){var Re={};for(var _e in ht)Object.prototype.hasOwnProperty.call(ht,_e)&&Ce.indexOf(_e)<0&&(Re[_e]=ht[_e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,_e=Object.getOwnPropertySymbols(ht);se<_e.length;se++)Ce.indexOf(_e[se])<0&&Object.prototype.propertyIsEnumerable.call(ht,_e[se])&&(Re[_e[se]]=ht[_e[se]]);return Re};const it={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},tt=ht=>!Number.isNaN(Number.parseFloat(ht))&&isFinite(ht),Ke=E.createContext({}),gt=(()=>{let ht=0;return function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ht+=1,`${Ce}${ht}`}})();var Ve=E.forwardRef((ht,Ce)=>{const{prefixCls:Re,className:_e,trigger:se,children:$e,defaultCollapsed:De=!1,theme:we="dark",style:ct={},collapsible:me=!1,reverseArrow:ce=!1,width:je=200,collapsedWidth:Pt=80,zeroWidthTriggerStyle:yt,breakpoint:ve,onCollapse:Te,onBreakpoint:Le}=ht,wt=ft(ht,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pt}=(0,E.useContext)(Ae.V),[Mt,Fe]=(0,E.useState)("collapsed"in ht?ht.collapsed:De),[At,ut]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in ht&&Fe(ht.collapsed)},[ht.collapsed]);const ae=(Yt,Vt)=>{"collapsed"in ht||Fe(Yt),Te==null||Te(Yt,Vt)},{getPrefixCls:te,direction:ee}=(0,E.useContext)(qe.E_),oe=te("layout-sider",Re),[ue,ne,pe]=kt(oe),ge=(0,E.useRef)(null);ge.current=Yt=>{ut(Yt.matches),Le==null||Le(Yt.matches),Mt!==Yt.matches&&ae(Yt.matches,"responsive")},(0,E.useEffect)(()=>{function Yt(ze){return ge.current(ze)}let Vt;if(typeof window!="undefined"){const{matchMedia:ze}=window;if(ze&&ve&&ve in it){Vt=ze(`screen and (max-width: ${it[ve]})`);try{Vt.addEventListener("change",Yt)}catch(dt){Vt.addListener(Yt)}Yt(Vt)}}return()=>{try{Vt==null||Vt.removeEventListener("change",Yt)}catch(ze){Vt==null||Vt.removeListener(Yt)}}},[ve]),(0,E.useEffect)(()=>{const Yt=gt("ant-sider-");return pt.addSider(Yt),()=>pt.removeSider(Yt)},[]);const We=()=>{ae(!Mt,"clickTrigger")},xe=(0,Ct.Z)(wt,["collapsed"]),Ge=Mt?Pt:je,nt=tt(Ge)?`${Ge}px`:String(Ge),St=parseFloat(String(Pt||0))===0?E.createElement("span",{onClick:We,className:Ee()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:yt},se||E.createElement(Ze,null)):null,mt=ee==="rtl"==!ce,$t={expanded:mt?E.createElement(he.Z,null):E.createElement(Pe.Z,null),collapsed:mt?E.createElement(Pe.Z,null):E.createElement(he.Z,null)}[Mt?"collapsed":"expanded"],tn=se!==null?St||E.createElement("div",{className:`${oe}-trigger`,onClick:We,style:{width:nt}},se||$t):null,Xt=Object.assign(Object.assign({},ct),{flex:`0 0 ${nt}`,maxWidth:nt,minWidth:nt,width:nt}),rn=Ee()(oe,`${oe}-${we}`,{[`${oe}-collapsed`]:!!Mt,[`${oe}-has-trigger`]:me&&se!==null&&!St,[`${oe}-below`]:!!At,[`${oe}-zero-width`]:parseFloat(nt)===0},_e,ne,pe),Ot=E.useMemo(()=>({siderCollapsed:Mt}),[Mt]);return ue(E.createElement(Ke.Provider,{value:Ot},E.createElement("aside",Object.assign({className:rn},xe,{style:Xt,ref:Ce}),E.createElement("div",{className:`${oe}-children`},$e),me||At&&St?tn:null)))})},6989:function(nn,zt,re){"use strict";re.d(zt,{V:function(){return lt}});var E=re(59301);const lt=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(nn,zt,re){"use strict";re.d(zt,{eh:function(){return et},jn:function(){return Se}});var E=re(36237),lt=re(16931);const ye=ke=>{const{antCls:Ie,componentCls:Ze,colorText:Pe,footerBg:he,headerHeight:Je,headerPadding:Ee,headerColor:Ct,footerPadding:qe,fontSize:Ae,bodyBg:Ue,headerBg:He}=ke;return{[Ze]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ue,"&, *":{boxSizing:"border-box"},[`&${Ze}-has-sider`]:{flexDirection:"row",[`> ${Ze}, > ${Ze}-content`]:{width:0}},[`${Ze}-header, &${Ze}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ze}-header`]:{height:Je,padding:Ee,color:Ct,lineHeight:(0,E.unit)(Je),background:He,[`${Ie}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:qe,color:Pe,fontSize:Ae,background:he},[`${Ze}-content`]:{flex:"auto",color:Pe,minHeight:0}}},et=ke=>{const{colorBgLayout:Ie,controlHeight:Ze,controlHeightLG:Pe,colorText:he,controlHeightSM:Je,marginXXS:Ee,colorTextLightSolid:Ct,colorBgContainer:qe}=ke,Ae=Pe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ie,colorBgTrigger:"#002140",bodyBg:Ie,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${Ae}px`,headerColor:he,footerPadding:`${Je}px ${Ae}px`,footerBg:Ie,siderBg:"#001529",triggerHeight:Pe+Ee*2,triggerBg:"#002140",triggerColor:Ct,zeroTriggerWidth:Pe,zeroTriggerHeight:Pe,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:he}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];zt.ZP=(0,lt.I$)("Layout",ke=>[ye(ke)],et,{deprecatedTokens:Se})},78857:function(nn,zt,re){"use strict";re.d(zt,{J:function(){return ke}});var E=re(59301),lt=re(8654),ye=re(62487),et=function(Ie,Ze){var Pe={};for(var he in Ie)Object.prototype.hasOwnProperty.call(Ie,he)&&Ze.indexOf(he)<0&&(Pe[he]=Ie[he]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,he=Object.getOwnPropertySymbols(Ie);Je<he.length;Je++)Ze.indexOf(he[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ie,he[Je])&&(Pe[he[Je]]=Ie[he[Je]]);return Pe};const Se=E.createContext(null),ke=E.forwardRef((Ie,Ze)=>{const{children:Pe}=Ie,he=et(Ie,["children"]),Je=E.useContext(Se),Ee=E.useMemo(()=>Object.assign(Object.assign({},Je),he),[Je,he.prefixCls,he.mode,he.selectable,he.rootClassName]),Ct=(0,lt.t4)(Pe),qe=(0,lt.x1)(Ze,Ct?(0,lt.C4)(Pe):null);return E.createElement(Se.Provider,{value:Ee},E.createElement(ye.Z,{space:!0},Ct?E.cloneElement(Pe,{ref:qe}):Pe))});zt.Z=Se},93041:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return ue}});var E=re(59301),lt=re(28321),ye=re(24303),et=re(18785),Se=re(92310),ke=re.n(Se),Ie=re(6089),Ze=re(2738),Pe=re(86641),he=re(22703),Je=re(48755),Ee=re(83397),qe=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ae=function(ne,pe){var ge={};for(var We in ne)Object.prototype.hasOwnProperty.call(ne,We)&&pe.indexOf(We)<0&&(ge[We]=ne[We]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,We=Object.getOwnPropertySymbols(ne);xe<We.length;xe++)pe.indexOf(We[xe])<0&&Object.prototype.propertyIsEnumerable.call(ne,We[xe])&&(ge[We[xe]]=ne[We[xe]]);return ge},He=ne=>{const{prefixCls:pe,className:ge,dashed:We}=ne,xe=Ae(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ge}=E.useContext(Je.E_),nt=Ge("menu",pe),St=ke()({[`${nt}-item-divider-dashed`]:!!We},ge);return E.createElement(lt.iz,Object.assign({className:St},xe))},at=re(11592),xt=re(25399),ft=ne=>{var pe;const{className:ge,children:We,icon:xe,title:Ge,danger:nt,extra:St}=ne,{prefixCls:mt,firstLevel:Ht,direction:Zt,disableMenuItemTitleTooltip:$t,inlineCollapsed:tn}=E.useContext(qe),Xt=dt=>{const Nt=We==null?void 0:We[0],Wt=E.createElement("span",{className:ke()(`${mt}-title-content`,{[`${mt}-title-content-with-extra`]:!!St||St===0})},We);return(!xe||E.isValidElement(We)&&We.type==="span")&&We&&dt&&Ht&&typeof Nt=="string"?E.createElement("div",{className:`${mt}-inline-collapsed-noicon`},Nt.charAt(0)):Wt},{siderCollapsed:rn}=E.useContext(ye.D);let Ot=Ge;typeof Ge=="undefined"?Ot=Ht?We:"":Ge===!1&&(Ot="");const Yt={title:Ot};!rn&&!tn&&(Yt.title=null,Yt.open=!1);const Vt=(0,at.Z)(We).length;let ze=E.createElement(lt.ck,Object.assign({},(0,Ze.Z)(ne,["title","icon","danger"]),{className:ke()({[`${mt}-item-danger`]:nt,[`${mt}-item-only-child`]:(xe?Vt+1:Vt)===1},ge),title:typeof Ge=="string"?Ge:void 0}),(0,he.Tm)(xe,{className:ke()(E.isValidElement(xe)?(pe=xe.props)===null||pe===void 0?void 0:pe.className:"",`${mt}-item-icon`)}),Xt(tn));return $t||(ze=E.createElement(xt.Z,Object.assign({},Yt,{placement:Zt==="rtl"?"left":"right",classNames:{root:`${mt}-inline-collapsed-tooltip`}}),ze)),ze},it=re(78857),tt=re(36237),Ke=re(17835),gt=re(63356),Ne=re(34961),Ve=re(46e3),ht=re(34925),Ce=re(16931),Re=re(51636),se=ne=>{const{componentCls:pe,motionDurationSlow:ge,horizontalLineHeight:We,colorSplit:xe,lineWidth:Ge,lineType:nt,itemPaddingInline:St}=ne;return{[`${pe}-horizontal`]:{lineHeight:We,border:0,borderBottom:`${(0,tt.unit)(Ge)} ${nt} ${xe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:St},[`> ${pe}-item:hover,
> ${pe}-item-active,
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${ge}`,`background ${ge}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},De=ne=>{let{componentCls:pe,menuArrowOffset:ge,calc:We}=ne;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,tt.unit)(We(ge).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,tt.unit)(ge)})`}}}}};const we=ne=>Object.assign({},(0,gt.oN)(ne));var me=(ne,pe)=>{const{componentCls:ge,itemColor:We,itemSelectedColor:xe,subMenuItemSelectedColor:Ge,groupTitleColor:nt,itemBg:St,subMenuItemBg:mt,itemSelectedBg:Ht,activeBarHeight:Zt,activeBarWidth:$t,activeBarBorderWidth:tn,motionDurationSlow:Xt,motionEaseInOut:rn,motionEaseOut:Ot,itemPaddingInline:Yt,motionDurationMid:Vt,itemHoverColor:ze,lineType:dt,colorSplit:Nt,itemDisabledColor:Wt,dangerItemColor:Be,dangerItemHoverColor:rt,dangerItemSelectedColor:bt,dangerItemActiveBg:Dt,dangerItemSelectedBg:Ut,popupBg:ln,itemHoverBg:In,itemActiveBg:Pn,menuSubMenuBg:on,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:Gt,horizontalItemHoverBg:Lt}=ne;return{[`${ge}-${pe}, ${ge}-${pe} > ${ge}`]:{color:We,background:St,[`&${ge}-root:focus-visible`]:Object.assign({},we(ne)),[`${ge}-item`]:{"&-group-title, &-extra":{color:nt}},[`${ge}-submenu-selected > ${ge}-submenu-title`]:{color:Ge},[`${ge}-item, ${ge}-submenu-title`]:{color:We,[`&:not(${ge}-item-disabled):focus-visible`]:Object.assign({},we(ne))},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{color:`${Wt} !important`},[`${ge}-item:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{[`&:hover, > ${ge}-submenu-title:hover`]:{color:ze}},[`&:not(${ge}-horizontal)`]:{[`${ge}-item:not(${ge}-item-selected)`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:Pn}},[`${ge}-submenu-title`]:{"&:hover":{backgroundColor:In},"&:active":{backgroundColor:Pn}}},[`${ge}-item-danger`]:{color:Be,[`&${ge}-item:hover`]:{[`&:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{color:rt}},[`&${ge}-item:active`]:{background:Dt}},[`${ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ge}-item-selected`]:{color:xe,[`&${ge}-item-danger`]:{color:bt},"a, a:hover":{color:"inherit"}},[`& ${ge}-item-selected`]:{backgroundColor:Ht,[`&${ge}-item-danger`]:{backgroundColor:Ut}},[`&${ge}-submenu > ${ge}`]:{backgroundColor:on},[`&${ge}-popup > ${ge}`]:{backgroundColor:ln},[`&${ge}-submenu-popup > ${ge}`]:{backgroundColor:ln},[`&${ge}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${ge}-item, > ${ge}-submenu`]:{top:tn,marginTop:ne.calc(tn).mul(-1).equal(),marginBottom:0,borderRadius:Gt,"&::after":{position:"absolute",insetInline:Yt,bottom:0,borderBottom:`${(0,tt.unit)(Zt)} solid transparent`,transition:`border-color ${Xt} ${rn}`,content:'""'},"&:hover, &-active, &-open":{background:Lt,"&::after":{borderBottomWidth:Zt,borderBottomColor:bn}},"&-selected":{color:bn,backgroundColor:dn,"&:hover":{backgroundColor:dn},"&::after":{borderBottomWidth:Zt,borderBottomColor:bn}}}}),[`&${ge}-root`]:{[`&${ge}-inline, &${ge}-vertical`]:{borderInlineEnd:`${(0,tt.unit)(tn)} ${dt} ${Nt}`}},[`&${ge}-inline`]:{[`${ge}-sub${ge}-inline`]:{background:mt},[`${ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,tt.unit)($t)} solid ${xe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vt} ${Ot}`,`opacity ${Vt} ${Ot}`].join(","),content:'""'},[`&${ge}-item-danger`]:{"&::after":{borderInlineEndColor:bt}}},[`${ge}-selected, ${ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Vt} ${rn}`,`opacity ${Vt} ${rn}`].join(",")}}}}}};const ce=ne=>{const{componentCls:pe,itemHeight:ge,itemMarginInline:We,padding:xe,menuArrowSize:Ge,marginXS:nt,itemMarginBlock:St,itemWidth:mt,itemPaddingInline:Ht}=ne,Zt=ne.calc(Ge).add(xe).add(nt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:ge,lineHeight:(0,tt.unit)(ge),paddingInline:Ht,overflow:"hidden",textOverflow:"ellipsis",marginInline:We,marginBlock:St,width:mt},[`> ${pe}-item,
> ${pe}-submenu > ${pe}-submenu-title`]:{height:ge,lineHeight:(0,tt.unit)(ge)},[`${pe}-item-group-list ${pe}-submenu-title,
${pe}-submenu-title`]:{paddingInlineEnd:Zt}}};var Pt=ne=>{const{componentCls:pe,iconCls:ge,itemHeight:We,colorTextLightSolid:xe,dropdownWidth:Ge,controlHeightLG:nt,motionEaseOut:St,paddingXL:mt,itemMarginInline:Ht,fontSizeLG:Zt,motionDurationFast:$t,motionDurationSlow:tn,paddingXS:Xt,boxShadowSecondary:rn,collapsedWidth:Ot,collapsedIconSize:Yt}=ne,Vt={height:We,lineHeight:(0,tt.unit)(We),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},ce(ne))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},ce(ne)),{boxShadow:rn})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Ge,maxHeight:`calc(100vh - ${(0,tt.unit)(ne.calc(nt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${tn}`,`background ${tn}`,`padding ${$t} ${St}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Vt,[`& ${pe}-item-group-title`]:{paddingInlineStart:mt}},[`${pe}-item`]:Vt}},{[`${pe}-inline-collapsed`]:{width:Ot,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Zt,textAlign:"center"}}},[`> ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,tt.unit)(ne.calc(Yt).div(2).equal())} - ${(0,tt.unit)(Ht)})`,textOverflow:"clip",[`
${pe}-submenu-arrow,
${pe}-submenu-expand-icon
`]:{opacity:0},[`${pe}-item-icon, ${ge}`]:{margin:0,fontSize:Yt,lineHeight:(0,tt.unit)(We),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${ge}`]:{display:"none"},"a, a:hover":{color:xe}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},gt.vS),{paddingInline:Xt})}}]};const yt=ne=>{const{componentCls:pe,motionDurationSlow:ge,motionDurationMid:We,motionEaseInOut:xe,motionEaseOut:Ge,iconCls:nt,iconSize:St,iconMarginInlineEnd:mt}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ge}`,`background ${ge}`,`padding calc(${ge} + 0.1s) ${xe}`].join(","),[`${pe}-item-icon, ${nt}`]:{minWidth:St,fontSize:St,transition:[`font-size ${We} ${Ge}`,`margin ${ge} ${xe}`,`color ${ge}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${ge} ${xe}`,`margin ${ge}`,`color ${ge}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,gt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${nt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ve=ne=>{const{componentCls:pe,motionDurationSlow:ge,motionEaseInOut:We,borderRadius:xe,menuArrowSize:Ge,menuArrowOffset:nt}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ge,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ge} ${We}, opacity ${ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ge).mul(.6).equal(),height:ne.calc(Ge).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:xe,transition:[`background ${ge} ${We}`,`transform ${ge} ${We}`,`top ${ge} ${We}`,`color ${ge} ${We}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,tt.unit)(ne.calc(nt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,tt.unit)(nt)})`}}}}},Te=ne=>{const{antCls:pe,componentCls:ge,fontSize:We,motionDurationSlow:xe,motionDurationMid:Ge,motionEaseInOut:nt,paddingXS:St,padding:mt,colorSplit:Ht,lineWidth:Zt,zIndexPopup:$t,borderRadiusLG:tn,subMenuItemBorderRadius:Xt,menuArrowSize:rn,menuArrowOffset:Ot,lineType:Yt,groupTitleLineHeight:Vt,groupTitleFontSize:ze}=ne;return[{"":{[ge]:Object.assign(Object.assign({},(0,gt.dF)()),{"&-hidden":{display:"none"}})},[`${ge}-submenu-hidden`]:{display:"none"}},{[ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(ne)),(0,gt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:We,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${xe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ge}-item`]:{flex:"none"}},[`${ge}-item, ${ge}-submenu, ${ge}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${ge}-item-group-title`]:{padding:`${(0,tt.unit)(St)} ${(0,tt.unit)(mt)}`,fontSize:ze,lineHeight:Vt,transition:`all ${xe}`},[`&-horizontal ${ge}-submenu`]:{transition:[`border-color ${xe} ${nt}`,`background ${xe} ${nt}`].join(",")},[`${ge}-submenu, ${ge}-submenu-inline`]:{transition:[`border-color ${xe} ${nt}`,`background ${xe} ${nt}`,`padding ${Ge} ${nt}`].join(",")},[`${ge}-submenu ${ge}-sub`]:{cursor:"initial",transition:[`background ${xe} ${nt}`,`padding ${xe} ${nt}`].join(",")},[`${ge}-title-content`]:{transition:`color ${xe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ge}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ht,borderStyle:Yt,borderWidth:0,borderTopWidth:Zt,marginBlock:Zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yt(ne)),{[`${ge}-item-group`]:{[`${ge}-item-group-list`]:{margin:0,padding:0,[`${ge}-item, ${ge}-submenu-title`]:{paddingInline:`${(0,tt.unit)(ne.calc(We).mul(2).equal())} ${(0,tt.unit)(mt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:$t,borderRadius:tn,boxShadow:"none",transformOrigin:"0 0",[`&${ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:tn},yt(ne)),ve(ne)),{[`${ge}-item, ${ge}-submenu > ${ge}-submenu-title`]:{borderRadius:Xt},[`${ge}-submenu-title::after`]:{transition:`transform ${xe} ${nt}`}})},"\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}}}),ve(ne)),{[`&-inline-collapsed ${ge}-submenu-arrow,
&-inline ${ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,tt.unit)(Ot)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,tt.unit)(ne.calc(Ot).mul(-1).equal())})`}},[`${ge}-submenu-open${ge}-submenu-inline > ${ge}-submenu-title > ${ge}-submenu-arrow`]:{transform:`translateY(${(0,tt.unit)(ne.calc(rn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,tt.unit)(ne.calc(Ot).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,tt.unit)(Ot)})`}}})},{[`${pe}-layout-header`]:{[ge]:{lineHeight:"inherit"}}}]},Le=ne=>{var pe,ge,We;const{colorPrimary:xe,colorError:Ge,colorTextDisabled:nt,colorErrorBg:St,colorText:mt,colorTextDescription:Ht,colorBgContainer:Zt,colorFillAlter:$t,colorFillContent:tn,lineWidth:Xt,lineWidthBold:rn,controlItemBgActive:Ot,colorBgTextHover:Yt,controlHeightLG:Vt,lineHeight:ze,colorBgElevated:dt,marginXXS:Nt,padding:Wt,fontSize:Be,controlHeightSM:rt,fontSizeLG:bt,colorTextLightSolid:Dt,colorErrorHover:Ut}=ne,ln=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,In=(ge=ne.activeBarBorderWidth)!==null&&ge!==void 0?ge:Xt,Pn=(We=ne.itemMarginInline)!==null&&We!==void 0?We:ne.marginXXS,on=new Ke.FastColor(Dt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:xe,horizontalItemHoverColor:xe,colorGroupTitle:Ht,groupTitleColor:Ht,colorItemTextSelected:xe,itemSelectedColor:xe,subMenuItemSelectedColor:xe,colorItemTextSelectedHorizontal:xe,horizontalItemSelectedColor:xe,colorItemBg:Zt,itemBg:Zt,colorItemBgHover:Yt,itemHoverBg:Yt,colorItemBgActive:tn,itemActiveBg:Ot,colorSubItemBg:$t,subMenuItemBg:$t,colorItemBgSelected:Ot,itemSelectedBg:Ot,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:ln,colorActiveBarHeight:rn,activeBarHeight:rn,colorActiveBarBorderSize:Xt,activeBarBorderWidth:In,colorItemTextDisabled:nt,itemDisabledColor:nt,colorDangerItemText:Ge,dangerItemColor:Ge,colorDangerItemTextHover:Ge,dangerItemHoverColor:Ge,colorDangerItemTextSelected:Ge,dangerItemSelectedColor:Ge,colorDangerItemBgActive:St,dangerItemActiveBg:St,colorDangerItemBgSelected:St,dangerItemSelectedBg:St,itemMarginInline:Pn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Vt,groupTitleLineHeight:ze,collapsedWidth:Vt*2,popupBg:dt,itemMarginBlock:Nt,itemPaddingInline:Wt,horizontalLineHeight:`${Vt*1.15}px`,iconSize:Be,iconMarginInlineEnd:rt-Be,collapsedIconSize:bt,groupTitleFontSize:Be,darkItemDisabledColor:new Ke.FastColor(Dt).setA(.25).toRgbString(),darkItemColor:on,darkDangerItemColor:Ge,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Dt,darkItemSelectedBg:xe,darkDangerItemSelectedBg:Ge,darkItemHoverBg:"transparent",darkGroupTitleColor:on,darkItemHoverColor:Dt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Dt,darkDangerItemActiveBg:Ge,itemWidth:ln?`calc(100% + ${In}px)`:`calc(100% - ${Pn*2}px)`}};var wt=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ce.I$)("Menu",xe=>{const{colorBgElevated:Ge,controlHeightLG:nt,fontSize:St,darkItemColor:mt,darkDangerItemColor:Ht,darkItemBg:Zt,darkSubMenuItemBg:$t,darkItemSelectedColor:tn,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:rn,darkItemHoverBg:Ot,darkGroupTitleColor:Yt,darkItemHoverColor:Vt,darkItemDisabledColor:ze,darkDangerItemHoverColor:dt,darkDangerItemSelectedColor:Nt,darkDangerItemActiveBg:Wt,popupBg:Be,darkPopupBg:rt}=xe,bt=xe.calc(St).div(7).mul(5).equal(),Dt=(0,Re.mergeToken)(xe,{menuArrowSize:bt,menuHorizontalHeight:xe.calc(nt).mul(1.15).equal(),menuArrowOffset:xe.calc(bt).mul(.25).equal(),menuSubMenuBg:Ge,calc:xe.calc,popupBg:Be}),Ut=(0,Re.mergeToken)(Dt,{itemColor:mt,itemHoverColor:Vt,groupTitleColor:Yt,itemSelectedColor:tn,subMenuItemSelectedColor:tn,itemBg:Zt,popupBg:rt,subMenuItemBg:$t,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ot,itemDisabledColor:ze,dangerItemColor:Ht,dangerItemHoverColor:dt,dangerItemSelectedColor:Nt,dangerItemActiveBg:Wt,dangerItemSelectedBg:rn,menuSubMenuBg:$t,horizontalItemSelectedColor:tn,horizontalItemSelectedBg:Xt});return[Te(Dt),se(Dt),Pt(Dt),me(Dt,"light"),me(Ut,"dark"),De(Dt),(0,Ne.Z)(Dt),(0,Ve.oN)(Dt,"slide-up"),(0,Ve.oN)(Dt,"slide-down"),(0,ht._y)(Dt,"zoom-big")]},Le,{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:ge,unitless:{groupTitleLineHeight:!0}})(ne,pe)},pt=re(75030),Fe=ne=>{var pe;const{popupClassName:ge,icon:We,title:xe,theme:Ge}=ne,nt=E.useContext(qe),{prefixCls:St,inlineCollapsed:mt,theme:Ht}=nt,Zt=(0,lt.Xl)();let $t;if(!We)$t=mt&&!Zt.length&&xe&&typeof xe=="string"?E.createElement("div",{className:`${St}-inline-collapsed-noicon`},xe.charAt(0)):E.createElement("span",{className:`${St}-title-content`},xe);else{const rn=E.isValidElement(xe)&&xe.type==="span";$t=E.createElement(E.Fragment,null,(0,he.Tm)(We,{className:ke()(E.isValidElement(We)?(pe=We.props)===null||pe===void 0?void 0:pe.className:"",`${St}-item-icon`)}),rn?xe:E.createElement("span",{className:`${St}-title-content`},xe))}const tn=E.useMemo(()=>Object.assign(Object.assign({},nt),{firstLevel:!1}),[nt]),[Xt]=(0,pt.Cn)("Menu");return E.createElement(qe.Provider,{value:tn},E.createElement(lt.Wd,Object.assign({},(0,Ze.Z)(ne,["icon"]),{title:$t,popupClassName:ke()(St,ge,`${St}-${Ge||Ht}`),popupStyle:Object.assign({zIndex:Xt},ne.popupStyle)})))},At=function(ne,pe){var ge={};for(var We in ne)Object.prototype.hasOwnProperty.call(ne,We)&&pe.indexOf(We)<0&&(ge[We]=ne[We]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,We=Object.getOwnPropertySymbols(ne);xe<We.length;xe++)pe.indexOf(We[xe])<0&&Object.prototype.propertyIsEnumerable.call(ne,We[xe])&&(ge[We[xe]]=ne[We[xe]]);return ge};function ut(ne){return ne===null||ne===!1}const ae={item:ft,submenu:Fe,divider:He};var ee=(0,E.forwardRef)((ne,pe)=>{var ge;const We=E.useContext(it.Z),xe=We||{},{getPrefixCls:Ge,getPopupContainer:nt,direction:St,menu:mt}=E.useContext(Je.E_),Ht=Ge(),{prefixCls:Zt,className:$t,style:tn,theme:Xt="light",expandIcon:rn,_internalDisableMenuItemTitleTooltip:Ot,inlineCollapsed:Yt,siderCollapsed:Vt,rootClassName:ze,mode:dt,selectable:Nt,onClick:Wt,overflowedIndicatorPopupClassName:Be}=ne,rt=At(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),bt=(0,Ze.Z)(rt,["collapsedWidth"]);(ge=xe.validator)===null||ge===void 0||ge.call(xe,{mode:dt});const Dt=(0,Ie.Z)(function(){var Jt;Wt==null||Wt.apply(void 0,arguments),(Jt=xe.onClick)===null||Jt===void 0||Jt.call(xe)}),Ut=xe.mode||dt,ln=Nt!=null?Nt:xe.selectable,In=Yt!=null?Yt:Vt,Pn={horizontal:{motionName:`${Ht}-slide-up`},inline:(0,Pe.Z)(Ht),other:{motionName:`${Ht}-zoom-big`}},on=Ge("menu",Zt||xe.prefixCls),bn=(0,Ee.Z)(on),[dn,Gt,Lt]=wt(on,bn,!We),Rt=ke()(`${on}-${Xt}`,mt==null?void 0:mt.className,$t),Et=E.useMemo(()=>{var Jt,qt;if(typeof rn=="function"||ut(rn))return rn||null;if(typeof xe.expandIcon=="function"||ut(xe.expandIcon))return xe.expandIcon||null;if(typeof(mt==null?void 0:mt.expandIcon)=="function"||ut(mt==null?void 0:mt.expandIcon))return(mt==null?void 0:mt.expandIcon)||null;const gn=(Jt=rn!=null?rn:xe==null?void 0:xe.expandIcon)!==null&&Jt!==void 0?Jt:mt==null?void 0:mt.expandIcon;return(0,he.Tm)(gn,{className:ke()(`${on}-submenu-expand-icon`,E.isValidElement(gn)?(qt=gn.props)===null||qt===void 0?void 0:qt.className:void 0)})},[rn,xe==null?void 0:xe.expandIcon,mt==null?void 0:mt.expandIcon,on]),en=E.useMemo(()=>({prefixCls:on,inlineCollapsed:In||!1,direction:St,firstLevel:!0,theme:Xt,mode:Ut,disableMenuItemTitleTooltip:Ot}),[on,In,St,Ot,Xt]);return dn(E.createElement(it.Z.Provider,{value:null},E.createElement(qe.Provider,{value:en},E.createElement(lt.ZP,Object.assign({getPopupContainer:nt,overflowedIndicator:E.createElement(et.Z,null),overflowedIndicatorPopupClassName:ke()(on,`${on}-${Xt}`,Be),mode:Ut,selectable:ln,onClick:Dt},bt,{inlineCollapsed:In,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),tn),className:Rt,prefixCls:on,direction:St,defaultMotions:Pn,expandIcon:Et,ref:pe,rootClassName:ke()(ze,Gt,xe.rootClassName,Lt,bn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((ne,pe)=>{const ge=(0,E.useRef)(null),We=E.useContext(ye.D);return(0,E.useImperativeHandle)(pe,()=>({menu:ge.current,focus:xe=>{var Ge;(Ge=ge.current)===null||Ge===void 0||Ge.focus(xe)}})),E.createElement(ee,Object.assign({ref:ge},ne,We))});oe.Item=ft,oe.SubMenu=Fe,oe.Divider=He,oe.ItemGroup=lt.BW;var ue=oe},89787:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Vt}});var E=re(59301),lt=re(17835),ye=re(29679),et=re(40001),Se=re(19248),ke=re(99267),Ie=re(92310),Ze=re.n(Ie),Pe=re(2738),he=re(48755),Je=re(60499),Ee=re(85899),Ct=re(42244),qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ae=function(){var dt=(0,E.useRef)([]),Nt=(0,E.useRef)(null);return(0,E.useEffect)(function(){var Wt=Date.now(),Be=!1;dt.current.forEach(function(rt){if(rt){Be=!0;var bt=rt.style;bt.transitionDuration=".3s, .3s, .3s, .06s",Nt.current&&Wt-Nt.current<100&&(bt.transitionDuration="0s, 0s")}}),Be&&(Nt.current=Date.now())}),dt.current},Ue=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],He=function(dt){var Nt=(0,Ee.Z)((0,Ee.Z)({},qe),dt),Wt=Nt.className,Be=Nt.percent,rt=Nt.prefixCls,bt=Nt.strokeColor,Dt=Nt.strokeLinecap,Ut=Nt.strokeWidth,ln=Nt.style,In=Nt.trailColor,Pn=Nt.trailWidth,on=Nt.transition,bn=(0,Ct.Z)(Nt,Ue);delete bn.gapPosition;var dn=Array.isArray(Be)?Be:[Be],Gt=Array.isArray(bt)?bt:[bt],Lt=Ae(),Rt=Ut/2,Et=100-Ut/2,en="M ".concat(Dt==="round"?Rt:0,",").concat(Rt,`
L `).concat(Dt==="round"?Et:100,",").concat(Rt),Jt="0 0 100 ".concat(Ut),qt=0;return E.createElement("svg",(0,Je.Z)({className:Ze()("".concat(rt,"-line"),Wt),viewBox:Jt,preserveAspectRatio:"none",style:ln},bn),E.createElement("path",{className:"".concat(rt,"-line-trail"),d:en,strokeLinecap:Dt,stroke:In,strokeWidth:Pn||Ut,fillOpacity:"0"}),dn.map(function(gn,wn){var Sn=1;switch(Dt){case"round":Sn=1-Ut/100;break;case"square":Sn=1-Ut/2/100;break;default:Sn=1;break}var Mn={strokeDasharray:"".concat(gn*Sn,"px, 100px"),strokeDashoffset:"-".concat(qt,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kn=Gt[wn]||Gt[Gt.length-1];return qt+=gn,E.createElement("path",{key:wn,className:"".concat(rt,"-line-path"),d:en,strokeLinecap:Dt,stroke:kn,strokeWidth:Ut,fillOpacity:"0",ref:function(An){Lt[wn]=An},style:Mn})}))},at=He,xt=re(43749),kt=re(72190),ft=re(47273),it=0,tt=(0,ft.Z)();function Ke(){var ze;return tt?(ze=it,it+=1):ze="TEST_OR_SSR",ze}var gt=function(ze){var dt=E.useState(),Nt=(0,kt.Z)(dt,2),Wt=Nt[0],Be=Nt[1];return E.useEffect(function(){Be("rc_progress_".concat(Ke()))},[]),ze||Wt},Ne=function(dt){var Nt=dt.bg,Wt=dt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Nt}},Wt)};function Ve(ze,dt){return Object.keys(ze).map(function(Nt){var Wt=parseFloat(Nt),Be="".concat(Math.floor(Wt*dt),"%");return"".concat(ze[Nt]," ").concat(Be)})}var ht=E.forwardRef(function(ze,dt){var Nt=ze.prefixCls,Wt=ze.color,Be=ze.gradientId,rt=ze.radius,bt=ze.style,Dt=ze.ptg,Ut=ze.strokeLinecap,ln=ze.strokeWidth,In=ze.size,Pn=ze.gapDegree,on=Wt&&(0,xt.Z)(Wt)==="object",bn=on?"#FFF":void 0,dn=In/2,Gt=E.createElement("circle",{className:"".concat(Nt,"-circle-path"),r:rt,cx:dn,cy:dn,stroke:bn,strokeLinecap:Ut,strokeWidth:ln,opacity:Dt===0?0:1,style:bt,ref:dt});if(!on)return Gt;var Lt="".concat(Be,"-conic"),Rt=Pn?"".concat(180+Pn/2,"deg"):"0deg",Et=Ve(Wt,(360-Pn)/360),en=Ve(Wt,1),Jt="conic-gradient(from ".concat(Rt,", ").concat(Et.join(", "),")"),qt="linear-gradient(to ".concat(Pn?"bottom":"top",", ").concat(en.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:Lt},Gt),E.createElement("foreignObject",{x:0,y:0,width:In,height:In,mask:"url(#".concat(Lt,")")},E.createElement(Ne,{bg:qt},E.createElement(Ne,{bg:Jt}))))}),Ce=ht,Re=100,_e=function(dt,Nt,Wt,Be,rt,bt,Dt,Ut,ln,In){var Pn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=Wt/100*360*((360-bt)/360),bn=bt===0?0:{bottom:0,top:180,left:90,right:-90}[Dt],dn=(100-Be)/100*Nt;ln==="round"&&Be!==100&&(dn+=In/2,dn>=Nt&&(dn=Nt-.01));var Gt=Re/2;return{stroke:typeof Ut=="string"?Ut:void 0,strokeDasharray:"".concat(Nt,"px ").concat(dt),strokeDashoffset:dn+Pn,transform:"rotate(".concat(rt+on+bn,"deg)"),transformOrigin:"".concat(Gt,"px ").concat(Gt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $e(ze){var dt=ze!=null?ze:[];return Array.isArray(dt)?dt:[dt]}var De=function(dt){var Nt=(0,Ee.Z)((0,Ee.Z)({},qe),dt),Wt=Nt.id,Be=Nt.prefixCls,rt=Nt.steps,bt=Nt.strokeWidth,Dt=Nt.trailWidth,Ut=Nt.gapDegree,ln=Ut===void 0?0:Ut,In=Nt.gapPosition,Pn=Nt.trailColor,on=Nt.strokeLinecap,bn=Nt.style,dn=Nt.className,Gt=Nt.strokeColor,Lt=Nt.percent,Rt=(0,Ct.Z)(Nt,se),Et=Re/2,en=gt(Wt),Jt="".concat(en,"-gradient"),qt=Et-bt/2,gn=Math.PI*2*qt,wn=ln>0?90+ln/2:-90,Sn=gn*((360-ln)/360),Mn=(0,xt.Z)(rt)==="object"?rt:{count:rt,gap:2},kn=Mn.count,Wn=Mn.gap,An=$e(Lt),Bt=$e(Gt),Kt=Bt.find(function(Me){return Me&&(0,xt.Z)(Me)==="object"}),xn=Kt&&(0,xt.Z)(Kt)==="object",hn=xn?"butt":on,Xe=_e(gn,Sn,0,100,wn,ln,In,Pn,hn,bt),st=Ae(),Oe=function(){var Qe=0;return An.map(function(It,an){var un=Bt[an]||Bt[Bt.length-1],vn=_e(gn,Sn,Qe,It,wn,ln,In,un,hn,bt);return Qe+=It,E.createElement(Ce,{key:an,color:un,ptg:It,radius:qt,prefixCls:Be,gradientId:Jt,style:vn,strokeLinecap:hn,strokeWidth:bt,gapDegree:ln,ref:function(Ft){st[an]=Ft},size:Re})}).reverse()},Ye=function(){var Qe=Math.round(kn*(An[0]/100)),It=100/kn,an=0;return new Array(kn).fill(null).map(function(un,vn){var Qt=vn<=Qe-1?Bt[0]:Pn,Ft=Qt&&(0,xt.Z)(Qt)==="object"?"url(#".concat(Jt,")"):void 0,Tt=_e(gn,Sn,an,It,wn,ln,In,Qt,"butt",bt,Wn);return an+=(Sn-Tt.strokeDashoffset+Wn)*100/Sn,E.createElement("circle",{key:vn,className:"".concat(Be,"-circle-path"),r:qt,cx:Et,cy:Et,stroke:Ft,strokeWidth:bt,opacity:1,style:Tt,ref:function(Tn){st[vn]=Tn}})})};return E.createElement("svg",(0,Je.Z)({className:Ze()("".concat(Be,"-circle"),dn),viewBox:"0 0 ".concat(Re," ").concat(Re),style:bn,id:Wt,role:"presentation"},Rt),!kn&&E.createElement("circle",{className:"".concat(Be,"-circle-trail"),r:qt,cx:Et,cy:Et,stroke:Pn,strokeLinecap:hn,strokeWidth:Dt||bt,style:Xe}),kn?Ye():Oe())},we=De,ct={Line:at,Circle:we},me=re(25399),ce=re(68361);function je(ze){return!ze||ze<0?0:ze>100?100:ze}function Pt(ze){let{success:dt,successPercent:Nt}=ze,Wt=Nt;return dt&&"progress"in dt&&(Wt=dt.progress),dt&&"percent"in dt&&(Wt=dt.percent),Wt}const yt=ze=>{let{percent:dt,success:Nt,successPercent:Wt}=ze;const Be=je(Pt({success:Nt,successPercent:Wt}));return[Be,je(je(dt)-Be)]},ve=ze=>{let{success:dt={},strokeColor:Nt}=ze;const{strokeColor:Wt}=dt;return[Wt||ce.presetPrimaryColors.green,Nt||null]},Te=(ze,dt,Nt)=>{var Wt,Be,rt,bt;let Dt=-1,Ut=-1;if(dt==="step"){const ln=Nt.steps,In=Nt.strokeWidth;typeof ze=="string"||typeof ze=="undefined"?(Dt=ze==="small"?2:14,Ut=In!=null?In:8):typeof ze=="number"?[Dt,Ut]=[ze,ze]:[Dt=14,Ut=8]=Array.isArray(ze)?ze:[ze.width,ze.height],Dt*=ln}else if(dt==="line"){const ln=Nt==null?void 0:Nt.strokeWidth;typeof ze=="string"||typeof ze=="undefined"?Ut=ln||(ze==="small"?6:8):typeof ze=="number"?[Dt,Ut]=[ze,ze]:[Dt=-1,Ut=8]=Array.isArray(ze)?ze:[ze.width,ze.height]}else(dt==="circle"||dt==="dashboard")&&(typeof ze=="string"||typeof ze=="undefined"?[Dt,Ut]=ze==="small"?[60,60]:[120,120]:typeof ze=="number"?[Dt,Ut]=[ze,ze]:Array.isArray(ze)&&(Dt=(Be=(Wt=ze[0])!==null&&Wt!==void 0?Wt:ze[1])!==null&&Be!==void 0?Be:120,Ut=(bt=(rt=ze[0])!==null&&rt!==void 0?rt:ze[1])!==null&&bt!==void 0?bt:120));return[Dt,Ut]},Le=3,wt=ze=>Le/ze*100;var Mt=ze=>{const{prefixCls:dt,trailColor:Nt=null,strokeLinecap:Wt="round",gapPosition:Be,gapDegree:rt,width:bt=120,type:Dt,children:Ut,success:ln,size:In=bt,steps:Pn}=ze,[on,bn]=Te(In,"circle");let{strokeWidth:dn}=ze;dn===void 0&&(dn=Math.max(wt(on),6));const Gt={width:on,height:bn,fontSize:on*.15+6},Lt=E.useMemo(()=>{if(rt||rt===0)return rt;if(Dt==="dashboard")return 75},[rt,Dt]),Rt=yt(ze),Et=Be||Dt==="dashboard"&&"bottom"||void 0,en=Object.prototype.toString.call(ze.strokeColor)==="[object Object]",Jt=ve({success:ln,strokeColor:ze.strokeColor}),qt=Ze()(`${dt}-inner`,{[`${dt}-circle-gradient`]:en}),gn=E.createElement(we,{steps:Pn,percent:Pn?Rt[1]:Rt,strokeWidth:dn,trailWidth:dn,strokeColor:Pn?Jt[1]:Jt,strokeLinecap:Wt,trailColor:Nt,prefixCls:dt,gapDegree:Lt,gapPosition:Et}),wn=on<=20,Sn=E.createElement("div",{className:qt,style:Gt},gn,!wn&&Ut);return wn?E.createElement(me.Z,{title:Ut},Sn):Sn},Fe=re(36237),At=re(63356),ut=re(16931),ae=re(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=ze=>{const dt=ze?"100%":"-100%";return new Fe.Keyframes(`antProgress${ze?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ue=ze=>{const{componentCls:dt,iconCls:Nt}=ze;return{[dt]:Object.assign(Object.assign({},(0,At.Wf)(ze)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ze.fontSize},[`${dt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:ze.remainingColor,borderRadius:ze.lineBorderRadius},[`${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:ze.defaultColor}},[`${dt}-success-bg, ${dt}-bg`]:{position:"relative",background:ze.defaultColor,borderRadius:ze.lineBorderRadius,transition:`all ${ze.motionDurationSlow} ${ze.motionEaseInOutCirc}`},[`${dt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${dt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:ze.marginXXS}},[`${dt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${dt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${dt}-text-inner`]:{color:ze.colorWhite,[`&${dt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ze.colorSuccess},[`${dt}-text`]:{display:"inline-block",marginInlineStart:ze.marginXS,color:ze.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Nt]:{fontSize:ze.fontSize},[`&${dt}-text-outer`]:{width:"max-content"},[`&${dt}-text-outer${dt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:ze.marginXS}},[`${dt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Fe.unit)(ze.paddingXXS)}`,[`&${dt}-text-start`]:{justifyContent:"start"},[`&${dt}-text-end`]:{justifyContent:"end"}},[`&${dt}-status-active`]:{[`${dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ze.colorBgContainer,borderRadius:ze.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:ze.progressActiveMotionDuration,animationTimingFunction:ze.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${dt}-rtl${dt}-status-active`]:{[`${dt}-bg::before`]:{animationName:oe(!0)}},[`&${dt}-status-exception`]:{[`${dt}-bg`]:{backgroundColor:ze.colorError},[`${dt}-text`]:{color:ze.colorError}},[`&${dt}-status-exception ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:ze.colorError}},[`&${dt}-status-success`]:{[`${dt}-bg`]:{backgroundColor:ze.colorSuccess},[`${dt}-text`]:{color:ze.colorSuccess}},[`&${dt}-status-success ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:ze.colorSuccess}}})}},ne=ze=>{const{componentCls:dt,iconCls:Nt}=ze;return{[dt]:{[`${dt}-circle-trail`]:{stroke:ze.remainingColor},[`&${dt}-circle ${dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${dt}-circle ${dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ze.circleTextColor,fontSize:ze.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Nt]:{fontSize:ze.circleIconFontSize}},[`${dt}-circle&-status-exception`]:{[`${dt}-text`]:{color:ze.colorError}},[`${dt}-circle&-status-success`]:{[`${dt}-text`]:{color:ze.colorSuccess}}},[`${dt}-inline-circle`]:{lineHeight:1,[`${dt}-inner`]:{verticalAlign:"bottom"}}}},pe=ze=>{const{componentCls:dt}=ze;return{[dt]:{[`${dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ze.progressStepMinWidth,marginInlineEnd:ze.progressStepMarginInlineEnd,backgroundColor:ze.remainingColor,transition:`all ${ze.motionDurationSlow}`,"&-active":{backgroundColor:ze.defaultColor}}}}}},ge=ze=>{const{componentCls:dt,iconCls:Nt}=ze;return{[dt]:{[`${dt}-small&-line, ${dt}-small&-line ${dt}-text ${Nt}`]:{fontSize:ze.fontSizeSM}}}},We=ze=>({circleTextColor:ze.colorText,defaultColor:ze.colorInfo,remainingColor:ze.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${ze.fontSize/ze.fontSizeSM}em`});var xe=(0,ut.I$)("Progress",ze=>{const dt=ze.calc(ze.marginXXS).div(2).equal(),Nt=(0,ae.mergeToken)(ze,{progressStepMarginInlineEnd:dt,progressStepMinWidth:dt,progressActiveMotionDuration:"2.4s"});return[ue(Nt),ne(Nt),pe(Nt),ge(Nt)]},We),Ge=function(ze,dt){var Nt={};for(var Wt in ze)Object.prototype.hasOwnProperty.call(ze,Wt)&&dt.indexOf(Wt)<0&&(Nt[Wt]=ze[Wt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Wt=Object.getOwnPropertySymbols(ze);Be<Wt.length;Be++)dt.indexOf(Wt[Be])<0&&Object.prototype.propertyIsEnumerable.call(ze,Wt[Be])&&(Nt[Wt[Be]]=ze[Wt[Be]]);return Nt};const nt=ze=>{let dt=[];return Object.keys(ze).forEach(Nt=>{const Wt=parseFloat(Nt.replace(/%/g,""));Number.isNaN(Wt)||dt.push({key:Wt,value:ze[Nt]})}),dt=dt.sort((Nt,Wt)=>Nt.key-Wt.key),dt.map(Nt=>{let{key:Wt,value:Be}=Nt;return`${Be} ${Wt}%`}).join(", ")},St=(ze,dt)=>{const{from:Nt=ce.presetPrimaryColors.blue,to:Wt=ce.presetPrimaryColors.blue,direction:Be=dt==="rtl"?"to left":"to right"}=ze,rt=Ge(ze,["from","to","direction"]);if(Object.keys(rt).length!==0){const Dt=nt(rt),Ut=`linear-gradient(${Be}, ${Dt})`;return{background:Ut,[te]:Ut}}const bt=`linear-gradient(${Be}, ${Nt}, ${Wt})`;return{background:bt,[te]:bt}};var Ht=ze=>{const{prefixCls:dt,direction:Nt,percent:Wt,size:Be,strokeWidth:rt,strokeColor:bt,strokeLinecap:Dt="round",children:Ut,trailColor:ln=null,percentPosition:In,success:Pn}=ze,{align:on,type:bn}=In,dn=bt&&typeof bt!="string"?St(bt,Nt):{[te]:bt,background:bt},Gt=Dt==="square"||Dt==="butt"?0:void 0,Lt=Be!=null?Be:[-1,rt||(Be==="small"?6:8)],[Rt,Et]=Te(Lt,"line",{strokeWidth:rt}),en={backgroundColor:ln||void 0,borderRadius:Gt},Jt=Object.assign(Object.assign({width:`${je(Wt)}%`,height:Et,borderRadius:Gt},dn),{[ee]:je(Wt)/100}),qt=Pt(ze),gn={width:`${je(qt)}%`,height:Et,borderRadius:Gt,backgroundColor:Pn==null?void 0:Pn.strokeColor},wn={width:Rt<0?"100%":Rt},Sn=E.createElement("div",{className:`${dt}-inner`,style:en},E.createElement("div",{className:Ze()(`${dt}-bg`,`${dt}-bg-${bn}`),style:Jt},bn==="inner"&&Ut),qt!==void 0&&E.createElement("div",{className:`${dt}-success-bg`,style:gn})),Mn=bn==="outer"&&on==="start",kn=bn==="outer"&&on==="end";return bn==="outer"&&on==="center"?E.createElement("div",{className:`${dt}-layout-bottom`},Sn,Ut):E.createElement("div",{className:`${dt}-outer`,style:wn},Mn&&Ut,Sn,kn&&Ut)},$t=ze=>{const{size:dt,steps:Nt,rounding:Wt=Math.round,percent:Be=0,strokeWidth:rt=8,strokeColor:bt,trailColor:Dt=null,prefixCls:Ut,children:ln}=ze,In=Wt(Nt*(Be/100)),Pn=dt==="small"?2:14,on=dt!=null?dt:[Pn,rt],[bn,dn]=Te(on,"step",{steps:Nt,strokeWidth:rt}),Gt=bn/Nt,Lt=Array.from({length:Nt});for(let Rt=0;Rt<Nt;Rt++){const Et=Array.isArray(bt)?bt[Rt]:bt;Lt[Rt]=E.createElement("div",{key:Rt,className:Ze()(`${Ut}-steps-item`,{[`${Ut}-steps-item-active`]:Rt<=In-1}),style:{backgroundColor:Rt<=In-1?Et:Dt,width:Gt,height:dn}})}return E.createElement("div",{className:`${Ut}-steps-outer`},Lt,ln)},tn=function(ze,dt){var Nt={};for(var Wt in ze)Object.prototype.hasOwnProperty.call(ze,Wt)&&dt.indexOf(Wt)<0&&(Nt[Wt]=ze[Wt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Wt=Object.getOwnPropertySymbols(ze);Be<Wt.length;Be++)dt.indexOf(Wt[Be])<0&&Object.prototype.propertyIsEnumerable.call(ze,Wt[Be])&&(Nt[Wt[Be]]=ze[Wt[Be]]);return Nt};const Xt=null,rn=["normal","exception","active","success"];var Yt=E.forwardRef((ze,dt)=>{const{prefixCls:Nt,className:Wt,rootClassName:Be,steps:rt,strokeColor:bt,percent:Dt=0,size:Ut="default",showInfo:ln=!0,type:In="line",status:Pn,format:on,style:bn,percentPosition:dn={}}=ze,Gt=tn(ze,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Lt="end",type:Rt="outer"}=dn,Et=Array.isArray(bt)?bt[0]:bt,en=typeof bt=="string"||Array.isArray(bt)?bt:void 0,Jt=E.useMemo(()=>{if(Et){const Oe=typeof Et=="string"?Et:Object.values(Et)[0];return new lt.FastColor(Oe).isLight()}return!1},[bt]),qt=E.useMemo(()=>{var Oe,Ye;const Me=Pt(ze);return parseInt(Me!==void 0?(Oe=Me!=null?Me:0)===null||Oe===void 0?void 0:Oe.toString():(Ye=Dt!=null?Dt:0)===null||Ye===void 0?void 0:Ye.toString(),10)},[Dt,ze.success,ze.successPercent]),gn=E.useMemo(()=>!rn.includes(Pn)&&qt>=100?"success":Pn||"normal",[Pn,qt]),{getPrefixCls:wn,direction:Sn,progress:Mn}=E.useContext(he.E_),kn=wn("progress",Nt),[Wn,An,Bt]=xe(kn),Kt=In==="line",xn=Kt&&!rt,hn=E.useMemo(()=>{if(!ln)return null;const Oe=Pt(ze);let Ye;const Me=on||(It=>`${It}%`),Qe=Kt&&Jt&&Rt==="inner";return Rt==="inner"||on||gn!=="exception"&&gn!=="success"?Ye=Me(je(Dt),je(Oe)):gn==="exception"?Ye=Kt?E.createElement(Se.Z,null):E.createElement(ke.Z,null):gn==="success"&&(Ye=Kt?E.createElement(ye.Z,null):E.createElement(et.Z,null)),E.createElement("span",{className:Ze()(`${kn}-text`,{[`${kn}-text-bright`]:Qe,[`${kn}-text-${Lt}`]:xn,[`${kn}-text-${Rt}`]:xn}),title:typeof Ye=="string"?Ye:void 0},Ye)},[ln,Dt,qt,gn,In,kn,on]);let Xe;In==="line"?Xe=rt?E.createElement($t,Object.assign({},ze,{strokeColor:en,prefixCls:kn,steps:typeof rt=="object"?rt.count:rt}),hn):E.createElement(Ht,Object.assign({},ze,{strokeColor:Et,prefixCls:kn,direction:Sn,percentPosition:{align:Lt,type:Rt}}),hn):(In==="circle"||In==="dashboard")&&(Xe=E.createElement(Mt,Object.assign({},ze,{strokeColor:Et,prefixCls:kn,progressStatus:gn}),hn));const st=Ze()(kn,`${kn}-status-${gn}`,{[`${kn}-${In==="dashboard"&&"circle"||In}`]:In!=="line",[`${kn}-inline-circle`]:In==="circle"&&Te(Ut,"circle")[0]<=20,[`${kn}-line`]:xn,[`${kn}-line-align-${Lt}`]:xn,[`${kn}-line-position-${Rt}`]:xn,[`${kn}-steps`]:rt,[`${kn}-show-info`]:ln,[`${kn}-${Ut}`]:typeof Ut=="string",[`${kn}-rtl`]:Sn==="rtl"},Mn==null?void 0:Mn.className,Wt,Be,An,Bt);return Wn(E.createElement("div",Object.assign({ref:dt,style:Object.assign(Object.assign({},Mn==null?void 0:Mn.style),bn),className:st,role:"progressbar","aria-valuenow":qt,"aria-valuemin":0,"aria-valuemax":100},(0,Pe.Z)(Gt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Xe))}),Vt=Yt},63139:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return yt}});var E=re(59301),lt=re(60499),ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},et=ye,Se=re(7657),ke=function(Te,Le){return E.createElement(Se.Z,(0,lt.Z)({},Te,{ref:Le,icon:et}))},Ie=E.forwardRef(ke),Ze=Ie,Pe=re(92310),he=re.n(Pe),Je=re(18642),Ee=re(72190),Ct=re(42244),qe=re(18929),Ae=re(10228),Ue=re(26112);function He(ve,Te){var Le=ve.disabled,wt=ve.prefixCls,pt=ve.character,Mt=ve.characterRender,Fe=ve.index,At=ve.count,ut=ve.value,ae=ve.allowHalf,te=ve.focused,ee=ve.onHover,oe=ve.onClick,ue=function(St){ee(St,Fe)},ne=function(St){oe(St,Fe)},pe=function(St){St.keyCode===Ae.Z.ENTER&&oe(St,Fe)},ge=Fe+1,We=new Set([wt]);ut===0&&Fe===0&&te?We.add("".concat(wt,"-focused")):ae&&ut+.5>=ge&&ut<ge?(We.add("".concat(wt,"-half")),We.add("".concat(wt,"-active")),te&&We.add("".concat(wt,"-focused"))):(ge<=ut?We.add("".concat(wt,"-full")):We.add("".concat(wt,"-zero")),ge===ut&&te&&We.add("".concat(wt,"-focused")));var xe=typeof pt=="function"?pt(ve):pt,Ge=E.createElement("li",{className:he()(Array.from(We)),ref:Te},E.createElement("div",{onClick:Le?null:ne,onKeyDown:Le?null:pe,onMouseMove:Le?null:ue,role:"radio","aria-checked":ut>Fe?"true":"false","aria-posinset":Fe+1,"aria-setsize":At,tabIndex:Le?-1:0},E.createElement("div",{className:"".concat(wt,"-first")},xe),E.createElement("div",{className:"".concat(wt,"-second")},xe)));return Mt&&(Ge=Mt(Ge,ve)),Ge}var at=E.forwardRef(He);function xt(){var ve=E.useRef({});function Te(wt){return ve.current[wt]}function Le(wt){return function(pt){ve.current[wt]=pt}}return[Te,Le]}function kt(ve){var Te=ve.pageXOffset,Le="scrollLeft";if(typeof Te!="number"){var wt=ve.document;Te=wt.documentElement[Le],typeof Te!="number"&&(Te=wt.body[Le])}return Te}function ft(ve){var Te,Le,wt=ve.ownerDocument,pt=wt.body,Mt=wt&&wt.documentElement,Fe=ve.getBoundingClientRect();return Te=Fe.left,Le=Fe.top,Te-=Mt.clientLeft||pt.clientLeft||0,Le-=Mt.clientTop||pt.clientTop||0,{left:Te,top:Le}}function it(ve){var Te=ft(ve),Le=ve.ownerDocument,wt=Le.defaultView||Le.parentWindow;return Te.left+=kt(wt),Te.left}var tt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ke(ve,Te){var Le=ve.prefixCls,wt=Le===void 0?"rc-rate":Le,pt=ve.className,Mt=ve.defaultValue,Fe=ve.value,At=ve.count,ut=At===void 0?5:At,ae=ve.allowHalf,te=ae===void 0?!1:ae,ee=ve.allowClear,oe=ee===void 0?!0:ee,ue=ve.keyboard,ne=ue===void 0?!0:ue,pe=ve.character,ge=pe===void 0?"\u2605":pe,We=ve.characterRender,xe=ve.disabled,Ge=ve.direction,nt=Ge===void 0?"ltr":Ge,St=ve.tabIndex,mt=St===void 0?0:St,Ht=ve.autoFocus,Zt=ve.onHoverChange,$t=ve.onChange,tn=ve.onFocus,Xt=ve.onBlur,rn=ve.onKeyDown,Ot=ve.onMouseLeave,Yt=(0,Ct.Z)(ve,tt),Vt=xt(),ze=(0,Ee.Z)(Vt,2),dt=ze[0],Nt=ze[1],Wt=E.useRef(null),Be=function(){if(!xe){var hn;(hn=Wt.current)===null||hn===void 0||hn.focus()}};E.useImperativeHandle(Te,function(){return{focus:Be,blur:function(){if(!xe){var hn;(hn=Wt.current)===null||hn===void 0||hn.blur()}}}});var rt=(0,qe.Z)(Mt||0,{value:Fe}),bt=(0,Ee.Z)(rt,2),Dt=bt[0],Ut=bt[1],ln=(0,qe.Z)(null),In=(0,Ee.Z)(ln,2),Pn=In[0],on=In[1],bn=function(hn,Xe){var st=nt==="rtl",Oe=hn+1;if(te){var Ye=dt(hn),Me=it(Ye),Qe=Ye.clientWidth;(st&&Xe-Me>Qe/2||!st&&Xe-Me<Qe/2)&&(Oe-=.5)}return Oe},dn=function(hn){Ut(hn),$t==null||$t(hn)},Gt=E.useState(!1),Lt=(0,Ee.Z)(Gt,2),Rt=Lt[0],Et=Lt[1],en=function(){Et(!0),tn==null||tn()},Jt=function(){Et(!1),Xt==null||Xt()},qt=E.useState(null),gn=(0,Ee.Z)(qt,2),wn=gn[0],Sn=gn[1],Mn=function(hn,Xe){var st=bn(Xe,hn.pageX);st!==Pn&&(Sn(st),on(null)),Zt==null||Zt(st)},kn=function(hn){xe||(Sn(null),on(null),Zt==null||Zt(void 0)),hn&&(Ot==null||Ot(hn))},Wn=function(hn,Xe){var st=bn(Xe,hn.pageX),Oe=!1;oe&&(Oe=st===Dt),kn(),dn(Oe?0:st),on(Oe?st:null)},An=function(hn){var Xe=hn.keyCode,st=nt==="rtl",Oe=te?.5:1;ne&&(Xe===Ae.Z.RIGHT&&Dt<ut&&!st?(dn(Dt+Oe),hn.preventDefault()):Xe===Ae.Z.LEFT&&Dt>0&&!st||Xe===Ae.Z.RIGHT&&Dt>0&&st?(dn(Dt-Oe),hn.preventDefault()):Xe===Ae.Z.LEFT&&Dt<ut&&st&&(dn(Dt+Oe),hn.preventDefault())),rn==null||rn(hn)};E.useEffect(function(){Ht&&!xe&&Be()},[]);var Bt=new Array(ut).fill(0).map(function(xn,hn){return E.createElement(at,{ref:Nt(hn),index:hn,count:ut,disabled:xe,prefixCls:"".concat(wt,"-star"),allowHalf:te,value:wn===null?Dt:wn,onClick:Wn,onHover:Mn,key:xn||hn,character:ge,characterRender:We,focused:Rt})}),Kt=he()(wt,pt,(0,Je.Z)((0,Je.Z)({},"".concat(wt,"-disabled"),xe),"".concat(wt,"-rtl"),nt==="rtl"));return E.createElement("ul",(0,lt.Z)({className:Kt,onMouseLeave:kn,tabIndex:xe?-1:mt,onFocus:xe?null:en,onBlur:xe?null:Jt,onKeyDown:xe?null:An,ref:Wt},(0,Ue.Z)(Yt,{aria:!0,data:!0,attr:!0})),Bt)}var gt=E.forwardRef(Ke),Ne=gt,Ve=re(48755),ht=re(25399),Ce=re(36237),Re=re(63356),_e=re(16931),se=re(51636);const $e=ve=>{const{componentCls:Te}=ve;return{[`${Te}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ve.marginXS},"> div":{transition:`all ${ve.motionDurationMid}, outline 0s`,"&:hover":{transform:ve.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Ce.unit)(ve.lineWidth)} dashed ${ve.starColor}`,transform:ve.starHoverScale}},"&-first, &-second":{color:ve.starBg,transition:`all ${ve.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Te}-star-first, &-half ${Te}-star-second`]:{opacity:1},[`&-half ${Te}-star-first, &-full ${Te}-star-second`]:{color:"inherit"}}}},De=ve=>({[`&-rtl${ve.componentCls}`]:{direction:"rtl"}}),we=ve=>{const{componentCls:Te}=ve;return{[Te]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(ve)),{display:"inline-block",margin:0,padding:0,color:ve.starColor,fontSize:ve.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Te} ${Te}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$e(ve)),De(ve))}},ct=ve=>({starColor:ve.yellow6,starSize:ve.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ve.colorFillContent});var me=(0,_e.I$)("Rate",ve=>{const Te=(0,se.mergeToken)(ve,{});return[we(Te)]},ct),ce=re(2171),je=function(ve,Te){var Le={};for(var wt in ve)Object.prototype.hasOwnProperty.call(ve,wt)&&Te.indexOf(wt)<0&&(Le[wt]=ve[wt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,wt=Object.getOwnPropertySymbols(ve);pt<wt.length;pt++)Te.indexOf(wt[pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,wt[pt])&&(Le[wt[pt]]=ve[wt[pt]]);return Le},yt=E.forwardRef((ve,Te)=>{const{prefixCls:Le,className:wt,rootClassName:pt,style:Mt,tooltips:Fe,character:At=E.createElement(Ze,null),disabled:ut}=ve,ae=je(ve,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(St,mt)=>{let{index:Ht}=mt;return Fe?E.createElement(ht.Z,{title:Fe[Ht]},St):St},{getPrefixCls:ee,direction:oe,rate:ue}=E.useContext(Ve.E_),ne=ee("rate",Le),[pe,ge,We]=me(ne),xe=Object.assign(Object.assign({},ue==null?void 0:ue.style),Mt),Ge=E.useContext(ce.Z),nt=ut!=null?ut:Ge;return pe(E.createElement(Ne,Object.assign({ref:Te,character:At,characterRender:te,disabled:nt},ae,{className:he()(wt,pt,ge,We,ue==null?void 0:ue.className),style:xe,prefixCls:ne,direction:oe})))})},82326:function(nn,zt,re){"use strict";var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(37463),Se=re(2738),ke=re(75030),Ie=re(86641),Ze=re(45915),Pe=re(82855),he=re(48755),Je=re(38406),Ee=re(2171),Ct=re(83397),qe=re(31756),Ae=re(56553),Ue=re(24971),He=re(70045),at=re(57700),xt=re(1722),kt=re(90376),ft=re(68525),it=re(90005),tt=function(ht,Ce){var Re={};for(var _e in ht)Object.prototype.hasOwnProperty.call(ht,_e)&&Ce.indexOf(_e)<0&&(Re[_e]=ht[_e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,_e=Object.getOwnPropertySymbols(ht);se<_e.length;se++)Ce.indexOf(_e[se])<0&&Object.prototype.propertyIsEnumerable.call(ht,_e[se])&&(Re[_e[se]]=ht[_e[se]]);return Re};const Ke="SECRET_COMBOBOX_MODE_DO_NOT_USE",gt=(ht,Ce)=>{var Re;const{prefixCls:_e,bordered:se,className:$e,rootClassName:De,getPopupContainer:we,popupClassName:ct,dropdownClassName:me,listHeight:ce=256,placement:je,listItemHeight:Pt,size:yt,disabled:ve,notFoundContent:Te,status:Le,builtinPlacements:wt,dropdownMatchSelectWidth:pt,popupMatchSelectWidth:Mt,direction:Fe,style:At,allowClear:ut,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:ue,prefix:ne}=ht,pe=tt(ht,["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:ge,getPrefixCls:We,renderEmpty:xe,direction:Ge,virtual:nt,popupMatchSelectWidth:St,popupOverflow:mt}=E.useContext(he.E_),Ht=(0,he.dj)("select"),[,Zt]=(0,at.ZP)(),$t=Pt!=null?Pt:Zt==null?void 0:Zt.controlHeight,tn=We("select",_e),Xt=We(),rn=Fe!=null?Fe:Ge,{compactSize:Ot,compactItemClassnames:Yt}=(0,He.ri)(tn,rn),[Vt,ze]=(0,Ue.Z)("select",ae,se),dt=(0,Ct.Z)(tn),[Nt,Wt,Be]=(0,kt.Z)(tn,dt),rt=E.useMemo(()=>{const{mode:An}=ht;if(An!=="combobox")return An===Ke?"combobox":An},[ht.mode]),bt=rt==="multiple"||rt==="tags",Dt=(0,it.Z)(ht.suffixIcon,ht.showArrow),Ut=(Re=Mt!=null?Mt:pt)!==null&&Re!==void 0?Re:St,{status:ln,hasFeedback:In,isFormItemInput:Pn,feedbackIcon:on}=E.useContext(Ae.aM),bn=(0,Pe.F)(ln,Le);let dn;Te!==void 0?dn=Te:rt==="combobox"?dn=null:dn=(xe==null?void 0:xe("Select"))||E.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:Lt,removeIcon:Rt,clearIcon:Et}=(0,ft.Z)(Object.assign(Object.assign({},pe),{multiple:bt,hasFeedback:In,feedbackIcon:on,showSuffixIcon:Dt,prefixCls:tn,componentName:"Select"})),en=ut===!0?{clearIcon:Et}:ut,Jt=(0,Se.Z)(pe,["suffixIcon","itemIcon"]),qt=ye()(ct||me,{[`${tn}-dropdown-${rn}`]:rn==="rtl"},De,Be,dt,Wt),gn=(0,qe.Z)(An=>{var Bt;return(Bt=yt!=null?yt:Ot)!==null&&Bt!==void 0?Bt:An}),wn=E.useContext(Ee.Z),Sn=ve!=null?ve:wn,Mn=ye()({[`${tn}-lg`]:gn==="large",[`${tn}-sm`]:gn==="small",[`${tn}-rtl`]:rn==="rtl",[`${tn}-${Vt}`]:ze,[`${tn}-in-form-item`]:Pn},(0,Pe.Z)(tn,bn,In),Yt,Ht.className,$e,De,Be,dt,Wt),kn=E.useMemo(()=>je!==void 0?je:rn==="rtl"?"bottomRight":"bottomLeft",[je,rn]),[Wn]=(0,ke.Cn)("SelectLike",te==null?void 0:te.zIndex);return Nt(E.createElement(et.ZP,Object.assign({ref:Ce,virtual:nt,showSearch:Ht.showSearch},Jt,{style:Object.assign(Object.assign({},Ht.style),At),dropdownMatchSelectWidth:Ut,transitionName:(0,Ie.m)(Xt,"slide-up",ee),builtinPlacements:(0,xt.Z)(wt,mt),listHeight:ce,listItemHeight:$t,mode:rt,prefixCls:tn,placement:kn,direction:rn,prefix:ne,suffixIcon:Gt,menuItemSelectedIcon:Lt,removeIcon:Rt,allowClear:en,notFoundContent:dn,className:Mn,getPopupContainer:we||ge,dropdownClassName:qt,disabled:Sn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Wn}),maxCount:bt?ue:void 0,tagRender:bt?oe:void 0})))},Ne=E.forwardRef(gt),Ve=(0,Ze.Z)(Ne,"dropdownAlign");Ne.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ke,Ne.Option=et.Wx,Ne.OptGroup=et.Xo,Ne._InternalPanelDoNotUseOrYouWillBeFired=Ve,zt.default=Ne},1722:function(nn,zt){"use strict";const re=lt=>{const et={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:lt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},et),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},et),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},et),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},et),{points:["br","tr"],offset:[0,-4]})}};function E(lt,ye){return lt||re(ye)}zt.Z=E},90376:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return _e}});var E=re(63356),lt=re(56119),ye=re(16931),et=re(51636),Se=re(46e3),ke=re(93873);const Ie=se=>{const{optionHeight:$e,optionFontSize:De,optionLineHeight:we,optionPadding:ct}=se;return{position:"relative",display:"block",minHeight:$e,padding:ct,color:se.colorText,fontWeight:"normal",fontSize:De,lineHeight:we,boxSizing:"border-box"}};var Pe=se=>{const{antCls:$e,componentCls:De}=se,we=`${De}-item`,ct=`&${$e}-slide-up-enter${$e}-slide-up-enter-active`,me=`&${$e}-slide-up-appear${$e}-slide-up-appear-active`,ce=`&${$e}-slide-up-leave${$e}-slide-up-leave-active`,je=`${De}-dropdown-placement-`,Pt=`${we}-option-selected`;return[{[`${De}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(se)),{position:"absolute",top:-9999,zIndex:se.zIndexPopup,boxSizing:"border-box",padding:se.paddingXXS,overflow:"hidden",fontSize:se.fontSize,fontVariant:"initial",backgroundColor:se.colorBgElevated,borderRadius:se.borderRadiusLG,outline:"none",boxShadow:se.boxShadowSecondary,[`
${ct}${je}bottomLeft,
${me}${je}bottomLeft
`]:{animationName:Se.fJ},[`
${ct}${je}topLeft,
${me}${je}topLeft,
${ct}${je}topRight,
${me}${je}topRight
`]:{animationName:Se.Qt},[`${ce}${je}bottomLeft`]:{animationName:Se.Uw},[`
${ce}${je}topLeft,
${ce}${je}topRight
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[we]:Object.assign(Object.assign({},Ie(se)),{cursor:"pointer",transition:`background ${se.motionDurationSlow} ease`,borderRadius:se.borderRadiusSM,"&-group":{color:se.colorTextDescription,fontSize:se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${we}-option-disabled)`]:{backgroundColor:se.optionActiveBg},[`&-selected:not(${we}-option-disabled)`]:{color:se.optionSelectedColor,fontWeight:se.optionSelectedFontWeight,backgroundColor:se.optionSelectedBg,[`${we}-option-state`]:{color:se.colorPrimary}},"&-disabled":{[`&${we}-option-selected`]:{backgroundColor:se.colorBgContainerDisabled},color:se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:se.calc(se.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ie(se)),{color:se.colorTextDisabled})}),[`${Pt}:has(+ ${Pt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Pt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(se,"slide-up"),(0,Se.oN)(se,"slide-down"),(0,ke.Fm)(se,"move-up"),(0,ke.Fm)(se,"move-down")]},he=re(26743),Je=re(36237);function Ee(se,$e){const{componentCls:De,inputPaddingHorizontalBase:we,borderRadius:ct}=se,me=se.calc(se.controlHeight).sub(se.calc(se.lineWidth).mul(2)).equal(),ce=$e?`${De}-${$e}`:"";return{[`${De}-single${ce}`]:{fontSize:se.fontSize,height:se.controlHeight,[`${De}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(se,!0)),{display:"flex",borderRadius:ct,flex:"1 1 auto",[`${De}-selection-wrap:after`]:{lineHeight:(0,Je.unit)(me)},[`${De}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${De}-selection-item,
${De}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Je.unit)(me),transition:`all ${se.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${De}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${De}-selection-item:empty:after`,`${De}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${De}-show-arrow ${De}-selection-item,
&${De}-show-arrow ${De}-selection-search,
&${De}-show-arrow ${De}-selection-placeholder
`]:{paddingInlineEnd:se.showArrowPaddingInlineEnd},[`&${De}-open ${De}-selection-item`]:{color:se.colorTextPlaceholder},[`&:not(${De}-customize-input)`]:{[`${De}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Je.unit)(we)}`,[`${De}-selection-search-input`]:{height:me,fontSize:se.fontSize},"&:after":{lineHeight:(0,Je.unit)(me)}}},[`&${De}-customize-input`]:{[`${De}-selector`]:{"&:after":{display:"none"},[`${De}-selection-search`]:{position:"static",width:"100%"},[`${De}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Je.unit)(we)}`,"&:after":{display:"none"}}}}}}}function Ct(se){const{componentCls:$e}=se,De=se.calc(se.controlPaddingHorizontalSM).sub(se.lineWidth).equal();return[Ee(se),Ee((0,et.mergeToken)(se,{controlHeight:se.controlHeightSM,borderRadius:se.borderRadiusSM}),"sm"),{[`${$e}-single${$e}-sm`]:{[`&:not(${$e}-customize-input)`]:{[`${$e}-selector`]:{padding:`0 ${(0,Je.unit)(De)}`},[`&${$e}-show-arrow ${$e}-selection-search`]:{insetInlineEnd:se.calc(De).add(se.calc(se.fontSize).mul(1.5)).equal()},[`
&${$e}-show-arrow ${$e}-selection-item,
&${$e}-show-arrow ${$e}-selection-placeholder
`]:{paddingInlineEnd:se.calc(se.fontSize).mul(1.5).equal()}}}},Ee((0,et.mergeToken)(se,{controlHeight:se.singleItemHeightLG,fontSize:se.fontSizeLG,borderRadius:se.borderRadiusLG}),"lg")]}const qe=se=>{const{fontSize:$e,lineHeight:De,lineWidth:we,controlHeight:ct,controlHeightSM:me,controlHeightLG:ce,paddingXXS:je,controlPaddingHorizontal:Pt,zIndexPopupBase:yt,colorText:ve,fontWeightStrong:Te,controlItemBgActive:Le,controlItemBgHover:wt,colorBgContainer:pt,colorFillSecondary:Mt,colorBgContainerDisabled:Fe,colorTextDisabled:At,colorPrimaryHover:ut,colorPrimary:ae,controlOutline:te}=se,ee=je*2,oe=we*2,ue=Math.min(ct-ee,ct-oe),ne=Math.min(me-ee,me-oe),pe=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(je/2),zIndexPopup:yt+50,optionSelectedColor:ve,optionSelectedFontWeight:Te,optionSelectedBg:Le,optionActiveBg:wt,optionPadding:`${(ct-$e*De)/2}px ${Pt}px`,optionFontSize:$e,optionLineHeight:De,optionHeight:ct,selectorBg:pt,clearBg:pt,singleItemHeightLG:ce,multipleItemBg:Mt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:Fe,multipleItemColorDisabled:At,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(se.fontSize*1.25),hoverBorderColor:ut,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:je}},Ae=(se,$e)=>{const{componentCls:De,antCls:we,controlOutlineWidth:ct}=se;return{[`&:not(${De}-customize-input) ${De}-selector`]:{border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${$e.borderColor}`,background:se.selectorBg},[`&:not(${De}-disabled):not(${De}-customize-input):not(${we}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{borderColor:$e.hoverBorderHover},[`${De}-focused& ${De}-selector`]:{borderColor:$e.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(ct)} ${$e.activeOutlineColor}`,outline:0},[`${De}-prefix`]:{color:$e.color}}}},Ue=(se,$e)=>({[`&${se.componentCls}-status-${$e.status}`]:Object.assign({},Ae(se,$e))}),He=se=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ae(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),Ue(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),Ue(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})}),at=(se,$e)=>{const{componentCls:De,antCls:we}=se;return{[`&:not(${De}-customize-input) ${De}-selector`]:{background:$e.bg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} transparent`,color:$e.color},[`&:not(${De}-disabled):not(${De}-customize-input):not(${we}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{background:$e.hoverBg},[`${De}-focused& ${De}-selector`]:{background:se.selectorBg,borderColor:$e.activeBorderColor,outline:0}}}},xt=(se,$e)=>({[`&${se.componentCls}-status-${$e.status}`]:Object.assign({},at(se,$e))}),kt=se=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},at(se,{bg:se.colorFillTertiary,hoverBg:se.colorFillSecondary,activeBorderColor:se.activeBorderColor,color:se.colorText})),xt(se,{status:"error",bg:se.colorErrorBg,hoverBg:se.colorErrorBgHover,activeBorderColor:se.colorError,color:se.colorError})),xt(se,{status:"warning",bg:se.colorWarningBg,hoverBg:se.colorWarningBgHover,activeBorderColor:se.colorWarning,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{borderColor:se.colorBorder,background:se.colorBgContainerDisabled,color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.colorBgContainer,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.colorSplit}`}})}),ft=se=>({"&-borderless":{[`${se.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} transparent`},[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`},[`&${se.componentCls}-status-error`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorError}},[`&${se.componentCls}-status-warning`]:{[`${se.componentCls}-prefix, ${se.componentCls}-selection-item`]:{color:se.colorWarning}}}}),it=(se,$e)=>{const{componentCls:De,antCls:we}=se;return{[`&:not(${De}-customize-input) ${De}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(se.lineWidth)} 0`,borderStyle:`none none ${se.lineType} none`,borderColor:$e.borderColor,background:se.selectorBg,borderRadius:0},[`&:not(${De}-disabled):not(${De}-customize-input):not(${we}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{borderColor:$e.hoverBorderHover},[`${De}-focused& ${De}-selector`]:{borderColor:$e.activeBorderColor,outline:0},[`${De}-prefix`]:{color:$e.color}}}},tt=(se,$e)=>({[`&${se.componentCls}-status-${$e.status}`]:Object.assign({},it(se,$e))}),Ke=se=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},it(se,{borderColor:se.colorBorder,hoverBorderHover:se.hoverBorderColor,activeBorderColor:se.activeBorderColor,activeOutlineColor:se.activeOutlineColor,color:se.colorText})),tt(se,{status:"error",borderColor:se.colorError,hoverBorderHover:se.colorErrorHover,activeBorderColor:se.colorError,activeOutlineColor:se.colorErrorOutline,color:se.colorError})),tt(se,{status:"warning",borderColor:se.colorWarning,hoverBorderHover:se.colorWarningHover,activeBorderColor:se.colorWarning,activeOutlineColor:se.colorWarningOutline,color:se.colorWarning})),{[`&${se.componentCls}-disabled`]:{[`&:not(${se.componentCls}-customize-input) ${se.componentCls}-selector`]:{color:se.colorTextDisabled}},[`&${se.componentCls}-multiple ${se.componentCls}-selection-item`]:{background:se.multipleItemBg,border:`${(0,Je.unit)(se.lineWidth)} ${se.lineType} ${se.multipleItemBorderColor}`}})});var Ne=se=>({[se.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},He(se)),kt(se)),ft(se)),Ke(se))});const Ve=se=>{const{componentCls:$e}=se;return{position:"relative",transition:`all ${se.motionDurationMid} ${se.motionEaseInOut}`,input:{cursor:"pointer"},[`${$e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${$e}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ht=se=>{const{componentCls:$e}=se;return{[`${$e}-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"}}}},Ce=se=>{const{antCls:$e,componentCls:De,inputPaddingHorizontalBase:we,iconCls:ct}=se;return{[De]:Object.assign(Object.assign({},(0,E.Wf)(se)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${De}-customize-input) ${De}-selector`]:Object.assign(Object.assign({},Ve(se)),ht(se)),[`${De}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${$e}-typography`]:{display:"inline"}}),[`${De}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:se.colorTextPlaceholder,pointerEvents:"none"}),[`${De}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:we,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${se.motionDurationSlow} ease`,[ct]:{verticalAlign:"top",transition:`transform ${se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${De}-suffix)`]:{pointerEvents:"auto"}},[`${De}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${De}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${De}-prefix`]:{flex:"none",marginInlineEnd:se.selectAffixPadding},[`${De}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:we,zIndex:1,display:"inline-block",width:se.fontSizeIcon,height:se.fontSizeIcon,marginTop:se.calc(se.fontSizeIcon).mul(-1).div(2).equal(),color:se.colorTextQuaternary,fontSize:se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${se.motionDurationMid} ease, opacity ${se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:se.colorTextTertiary}},[`&:hover ${De}-clear`]:{opacity:1,background:se.colorBgBase,borderRadius:"50%"}}),[`${De}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${De}-has-feedback`]:{[`${De}-clear`]:{insetInlineEnd:se.calc(we).add(se.fontSize).add(se.paddingXS).equal()}}}}}},Re=se=>{const{componentCls:$e}=se;return[{[$e]:{[`&${$e}-in-form-item`]:{width:"100%"}}},Ce(se),Ct(se),(0,he.ZP)(se),Pe(se),{[`${$e}-rtl`]:{direction:"rtl"}},(0,lt.c)(se,{borderElCls:`${$e}-selector`,focusElCls:`${$e}-focused`})]};var _e=(0,ye.I$)("Select",(se,$e)=>{let{rootPrefixCls:De}=$e;const we=(0,et.mergeToken)(se,{rootPrefixCls:De,inputPaddingHorizontalBase:se.calc(se.paddingSM).sub(1).equal(),multipleSelectItemHeight:se.multipleItemHeight,selectHeight:se.controlHeight});return[Re(we),Ne(we)]},qe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(nn,zt,re){"use strict";re.d(zt,{_z:function(){return ke},gp:function(){return et}});var E=re(36237),lt=re(63356),ye=re(51636);const et=he=>{const{multipleSelectItemHeight:Je,paddingXXS:Ee,lineWidth:Ct,INTERNAL_FIXED_ITEM_MARGIN:qe}=he,Ae=he.max(he.calc(Ee).sub(Ct).equal(),0),Ue=he.max(he.calc(Ae).sub(qe).equal(),0);return{basePadding:Ae,containerPadding:Ue,itemHeight:(0,E.unit)(Je),itemLineHeight:(0,E.unit)(he.calc(Je).sub(he.calc(he.lineWidth).mul(2)).equal())}},Se=he=>{const{multipleSelectItemHeight:Je,selectHeight:Ee,lineWidth:Ct}=he;return he.calc(Ee).sub(Je).div(2).sub(Ct).equal()},ke=he=>{const{componentCls:Je,iconCls:Ee,borderRadiusSM:Ct,motionDurationSlow:qe,paddingXS:Ae,multipleItemColorDisabled:Ue,multipleItemBorderColorDisabled:He,colorIcon:at,colorIconHover:xt,INTERNAL_FIXED_ITEM_MARGIN:kt}=he;return{[`${Je}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Je}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:kt,borderRadius:Ct,cursor:"default",transition:`font-size ${qe}, line-height ${qe}, height ${qe}`,marginInlineEnd:he.calc(kt).mul(2).equal(),paddingInlineStart:Ae,paddingInlineEnd:he.calc(Ae).div(2).equal(),[`${Je}-disabled&`]:{color:Ue,borderColor:He,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Ae).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,lt.Ro)()),{display:"inline-flex",alignItems:"center",color:at,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:xt}})}}}},Ie=(he,Je)=>{const{componentCls:Ee,INTERNAL_FIXED_ITEM_MARGIN:Ct}=he,qe=`${Ee}-selection-overflow`,Ae=he.multipleSelectItemHeight,Ue=Se(he),He=Je?`${Ee}-${Je}`:"",at=et(he);return{[`${Ee}-multiple${He}`]:Object.assign(Object.assign({},ke(he)),{[`${Ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:at.basePadding,paddingBlock:at.containerPadding,borderRadius:he.borderRadius,[`${Ee}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(Ct)} 0`,lineHeight:(0,E.unit)(Ae),visibility:"hidden",content:'"\\a0"'}},[`${Ee}-selection-item`]:{height:at.itemHeight,lineHeight:(0,E.unit)(at.itemLineHeight)},[`${Ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(Ae),marginBlock:Ct}},[`${Ee}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(at.basePadding).equal()},[`${qe}-item + ${qe}-item,
${Ee}-prefix + ${Ee}-selection-wrap
`]:{[`${Ee}-selection-search`]:{marginInlineStart:0},[`${Ee}-selection-placeholder`]:{insetInlineStart:0}},[`${qe}-item-suffix`]:{minHeight:at.itemHeight,marginBlock:Ct},[`${Ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ue).equal(),"\n &-input,\n &-mirror\n ":{height:Ae,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(Ae),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(at.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Ze(he,Je){const{componentCls:Ee}=he,Ct=Je?`${Ee}-${Je}`:"",qe={[`${Ee}-multiple${Ct}`]:{fontSize:he.fontSize,[`${Ee}-selector`]:{[`${Ee}-show-search&`]:{cursor:"text"}},[`
&${Ee}-show-arrow ${Ee}-selector,
&${Ee}-allow-clear ${Ee}-selector
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Ie(he,Je),qe]}const Pe=he=>{const{componentCls:Je}=he,Ee=(0,ye.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),Ct=(0,ye.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Ze(he),Ze(Ee,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},Ze(Ct,"lg")]};zt.ZP=Pe},68525:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(59301),lt=re(40001),ye=re(19248),et=re(99267),Se=re(84105),ke=re(58617),Ie=re(47472);function Ze(Pe){let{suffixIcon:he,clearIcon:Je,menuItemSelectedIcon:Ee,removeIcon:Ct,loading:qe,multiple:Ae,hasFeedback:Ue,prefixCls:He,showSuffixIcon:at,feedbackIcon:xt,showArrow:kt,componentName:ft}=Pe;const it=Je!=null?Je:E.createElement(ye.Z,null),tt=Ve=>he===null&&!Ue&&!kt?null:E.createElement(E.Fragment,null,at!==!1&&Ve,Ue&&xt);let Ke=null;if(he!==void 0)Ke=tt(he);else if(qe)Ke=tt(E.createElement(ke.Z,{spin:!0}));else{const Ve=`${He}-suffix`;Ke=ht=>{let{open:Ce,showSearch:Re}=ht;return tt(Ce&&Re?E.createElement(Ie.Z,{className:Ve}):E.createElement(Se.Z,{className:Ve}))}}let gt=null;Ee!==void 0?gt=Ee:Ae?gt=E.createElement(lt.Z,null):gt=null;let Ne=null;return Ct!==void 0?Ne=Ct:Ne=E.createElement(et.Z,null),{clearIcon:it,suffixIcon:Ke,itemIcon:gt,removeIcon:Ne}}},90005:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return E}});function E(lt,ye){return ye!==void 0?ye:lt!==null}},11938:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return ht}});var E=re(59301),lt=re(40192),ye=re(22703),et=re(92310),Se=re.n(et),ke=re(26112),Ie=re(48755),Ze=re(458),he=Ce=>{const{value:Re,formatter:_e,precision:se,decimalSeparator:$e,groupSeparator:De="",prefixCls:we}=Ce;let ct;if(typeof _e=="function")ct=_e(Re);else{const me=String(Re),ce=me.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||me==="-")ct=me;else{const je=ce[1];let Pt=ce[2]||"0",yt=ce[4]||"";Pt=Pt.replace(/\B(?=(\d{3})+(?!\d))/g,De),typeof se=="number"&&(yt=yt.padEnd(se,"0").slice(0,se>0?se:0)),yt&&(yt=`${$e}${yt}`),ct=[E.createElement("span",{key:"int",className:`${we}-content-value-int`},je,Pt),yt&&E.createElement("span",{key:"decimal",className:`${we}-content-value-decimal`},yt)]}}return E.createElement("span",{className:`${we}-content-value`},ct)},Je=re(63356),Ee=re(16931),Ct=re(51636);const qe=Ce=>{const{componentCls:Re,marginXXS:_e,padding:se,colorTextDescription:$e,titleFontSize:De,colorTextHeading:we,contentFontSize:ct,fontFamily:me}=Ce;return{[Re]:Object.assign(Object.assign({},(0,Je.Wf)(Ce)),{[`${Re}-title`]:{marginBottom:_e,color:$e,fontSize:De},[`${Re}-skeleton`]:{paddingTop:se},[`${Re}-content`]:{color:we,fontSize:ct,fontFamily:me,[`${Re}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Re}-content-prefix, ${Re}-content-suffix`]:{display:"inline-block"},[`${Re}-content-prefix`]:{marginInlineEnd:_e},[`${Re}-content-suffix`]:{marginInlineStart:_e}}})}},Ae=Ce=>{const{fontSizeHeading3:Re,fontSize:_e}=Ce;return{titleFontSize:_e,contentFontSize:Re}};var Ue=(0,Ee.I$)("Statistic",Ce=>{const Re=(0,Ct.mergeToken)(Ce,{});return[qe(Re)]},Ae),He=function(Ce,Re){var _e={};for(var se in Ce)Object.prototype.hasOwnProperty.call(Ce,se)&&Re.indexOf(se)<0&&(_e[se]=Ce[se]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,se=Object.getOwnPropertySymbols(Ce);$e<se.length;$e++)Re.indexOf(se[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ce,se[$e])&&(_e[se[$e]]=Ce[se[$e]]);return _e},xt=Ce=>{const{prefixCls:Re,className:_e,rootClassName:se,style:$e,valueStyle:De,value:we=0,title:ct,valueRender:me,prefix:ce,suffix:je,loading:Pt=!1,formatter:yt,precision:ve,decimalSeparator:Te=".",groupSeparator:Le=",",onMouseEnter:wt,onMouseLeave:pt}=Ce,Mt=He(Ce,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Fe,direction:At,className:ut,style:ae}=(0,Ie.dj)("statistic"),te=Fe("statistic",Re),[ee,oe,ue]=Ue(te),ne=E.createElement(he,{decimalSeparator:Te,groupSeparator:Le,prefixCls:te,formatter:yt,precision:ve,value:we}),pe=Se()(te,{[`${te}-rtl`]:At==="rtl"},ut,_e,se,oe,ue),ge=(0,ke.Z)(Mt,{aria:!0,data:!0});return ee(E.createElement("div",Object.assign({},ge,{className:pe,style:Object.assign(Object.assign({},ae),$e),onMouseEnter:wt,onMouseLeave:pt}),ct&&E.createElement("div",{className:`${te}-title`},ct),E.createElement(Ze.Z,{paragraph:!1,loading:Pt,className:`${te}-skeleton`},E.createElement("div",{style:De,className:`${te}-content`},ce&&E.createElement("span",{className:`${te}-content-prefix`},ce),me?me(ne):ne,je&&E.createElement("span",{className:`${te}-content-suffix`},je)))))};const kt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ft(Ce,Re){let _e=Ce;const se=/\[[^\]]*]/g,$e=(Re.match(se)||[]).map(me=>me.slice(1,-1)),De=Re.replace(se,"[]"),we=kt.reduce((me,ce)=>{let[je,Pt]=ce;if(me.includes(je)){const yt=Math.floor(_e/Pt);return _e-=yt*Pt,me.replace(new RegExp(`${je}+`,"g"),ve=>{const Te=ve.length;return yt.toString().padStart(Te,"0")})}return me},De);let ct=0;return we.replace(se,()=>{const me=$e[ct];return ct+=1,me})}function it(Ce,Re){const{format:_e=""}=Re,se=new Date(Ce).getTime(),$e=Date.now(),De=Math.max(se-$e,0);return ft(De,_e)}var tt=function(Ce,Re){var _e={};for(var se in Ce)Object.prototype.hasOwnProperty.call(Ce,se)&&Re.indexOf(se)<0&&(_e[se]=Ce[se]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,se=Object.getOwnPropertySymbols(Ce);$e<se.length;$e++)Re.indexOf(se[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ce,se[$e])&&(_e[se[$e]]=Ce[se[$e]]);return _e};const Ke=1e3/30;function gt(Ce){return new Date(Ce).getTime()}const Ne=Ce=>{const{value:Re,format:_e="HH:mm:ss",onChange:se,onFinish:$e}=Ce,De=tt(Ce,["value","format","onChange","onFinish"]),we=(0,lt.Z)(),ct=E.useRef(null),me=()=>{$e==null||$e(),ct.current&&(clearInterval(ct.current),ct.current=null)},ce=()=>{const yt=gt(Re);yt>=Date.now()&&(ct.current=setInterval(()=>{we(),se==null||se(yt-Date.now()),yt<Date.now()&&me()},Ke))};E.useEffect(()=>(ce(),()=>{ct.current&&(clearInterval(ct.current),ct.current=null)}),[Re]);const je=(yt,ve)=>it(yt,Object.assign(Object.assign({},ve),{format:_e})),Pt=yt=>(0,ye.Tm)(yt,{title:void 0});return E.createElement(xt,Object.assign({},De,{value:Re,valueRender:Pt,formatter:je}))};var Ve=E.memo(Ne);xt.Countdown=Ve;var ht=xt},58755:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return $e}});var E=re(59301),lt=re(58617),ye=re(92310),et=re.n(ye),Se=re(60499),ke=re(18642),Ie=re(72190),Ze=re(42244),Pe=re(18929),he=re(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=E.forwardRef(function(De,we){var ct,me=De.prefixCls,ce=me===void 0?"rc-switch":me,je=De.className,Pt=De.checked,yt=De.defaultChecked,ve=De.disabled,Te=De.loadingIcon,Le=De.checkedChildren,wt=De.unCheckedChildren,pt=De.onClick,Mt=De.onChange,Fe=De.onKeyDown,At=(0,Ze.Z)(De,Je),ut=(0,Pe.Z)(!1,{value:Pt,defaultValue:yt}),ae=(0,Ie.Z)(ut,2),te=ae[0],ee=ae[1];function oe(ge,We){var xe=te;return ve||(xe=ge,ee(xe),Mt==null||Mt(xe,We)),xe}function ue(ge){ge.which===he.Z.LEFT?oe(!1,ge):ge.which===he.Z.RIGHT&&oe(!0,ge),Fe==null||Fe(ge)}function ne(ge){var We=oe(!te,ge);pt==null||pt(We,ge)}var pe=et()(ce,je,(ct={},(0,ke.Z)(ct,"".concat(ce,"-checked"),te),(0,ke.Z)(ct,"".concat(ce,"-disabled"),ve),ct));return E.createElement("button",(0,Se.Z)({},At,{type:"button",role:"switch","aria-checked":te,disabled:ve,className:pe,ref:we,onKeyDown:ue,onClick:ne}),Te,E.createElement("span",{className:"".concat(ce,"-inner")},E.createElement("span",{className:"".concat(ce,"-inner-checked")},Le),E.createElement("span",{className:"".concat(ce,"-inner-unchecked")},wt)))});Ee.displayName="Switch";var Ct=Ee,qe=re(12919),Ae=re(48755),Ue=re(2171),He=re(31756),at=re(36237),xt=re(17835),kt=re(63356),ft=re(16931),it=re(51636);const tt=De=>{const{componentCls:we,trackHeightSM:ct,trackPadding:me,trackMinWidthSM:ce,innerMinMarginSM:je,innerMaxMarginSM:Pt,handleSizeSM:yt,calc:ve}=De,Te=`${we}-inner`,Le=(0,at.unit)(ve(yt).add(ve(me).mul(2)).equal()),wt=(0,at.unit)(ve(Pt).mul(2).equal());return{[we]:{[`&${we}-small`]:{minWidth:ce,height:ct,lineHeight:(0,at.unit)(ct),[`${we}-inner`]:{paddingInlineStart:Pt,paddingInlineEnd:je,[`${Te}-checked, ${Te}-unchecked`]:{minHeight:ct},[`${Te}-checked`]:{marginInlineStart:`calc(-100% + ${Le} - ${wt})`,marginInlineEnd:`calc(100% - ${Le} + ${wt})`},[`${Te}-unchecked`]:{marginTop:ve(ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${we}-handle`]:{width:yt,height:yt},[`${we}-loading-icon`]:{top:ve(ve(yt).sub(De.switchLoadingIconSize)).div(2).equal(),fontSize:De.switchLoadingIconSize},[`&${we}-checked`]:{[`${we}-inner`]:{paddingInlineStart:je,paddingInlineEnd:Pt,[`${Te}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Te}-unchecked`]:{marginInlineStart:`calc(100% - ${Le} + ${wt})`,marginInlineEnd:`calc(-100% + ${Le} - ${wt})`}},[`${we}-handle`]:{insetInlineStart:`calc(100% - ${(0,at.unit)(ve(yt).add(me).equal())})`}},[`&:not(${we}-disabled):active`]:{[`&:not(${we}-checked) ${Te}`]:{[`${Te}-unchecked`]:{marginInlineStart:ve(De.marginXXS).div(2).equal(),marginInlineEnd:ve(De.marginXXS).mul(-1).div(2).equal()}},[`&${we}-checked ${Te}`]:{[`${Te}-checked`]:{marginInlineStart:ve(De.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ve(De.marginXXS).div(2).equal()}}}}}}},Ke=De=>{const{componentCls:we,handleSize:ct,calc:me}=De;return{[we]:{[`${we}-loading-icon${De.iconCls}`]:{position:"relative",top:me(me(ct).sub(De.fontSize)).div(2).equal(),color:De.switchLoadingIconColor,verticalAlign:"top"},[`&${we}-checked ${we}-loading-icon`]:{color:De.switchColor}}}},gt=De=>{const{componentCls:we,trackPadding:ct,handleBg:me,handleShadow:ce,handleSize:je,calc:Pt}=De,yt=`${we}-handle`;return{[we]:{[yt]:{position:"absolute",top:ct,insetInlineStart:ct,width:je,height:je,transition:`all ${De.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:me,borderRadius:Pt(je).div(2).equal(),boxShadow:ce,transition:`all ${De.switchDuration} ease-in-out`,content:'""'}},[`&${we}-checked ${yt}`]:{insetInlineStart:`calc(100% - ${(0,at.unit)(Pt(je).add(ct).equal())})`},[`&:not(${we}-disabled):active`]:{[`${yt}::before`]:{insetInlineEnd:De.switchHandleActiveInset,insetInlineStart:0},[`&${we}-checked ${yt}::before`]:{insetInlineEnd:0,insetInlineStart:De.switchHandleActiveInset}}}}},Ne=De=>{const{componentCls:we,trackHeight:ct,trackPadding:me,innerMinMargin:ce,innerMaxMargin:je,handleSize:Pt,calc:yt}=De,ve=`${we}-inner`,Te=(0,at.unit)(yt(Pt).add(yt(me).mul(2)).equal()),Le=(0,at.unit)(yt(je).mul(2).equal());return{[we]:{[ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:je,paddingInlineEnd:ce,transition:`padding-inline-start ${De.switchDuration} ease-in-out, padding-inline-end ${De.switchDuration} ease-in-out`,[`${ve}-checked, ${ve}-unchecked`]:{display:"block",color:De.colorTextLightSolid,fontSize:De.fontSizeSM,transition:`margin-inline-start ${De.switchDuration} ease-in-out, margin-inline-end ${De.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ct},[`${ve}-checked`]:{marginInlineStart:`calc(-100% + ${Te} - ${Le})`,marginInlineEnd:`calc(100% - ${Te} + ${Le})`},[`${ve}-unchecked`]:{marginTop:yt(ct).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${we}-checked ${ve}`]:{paddingInlineStart:ce,paddingInlineEnd:je,[`${ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ve}-unchecked`]:{marginInlineStart:`calc(100% - ${Te} + ${Le})`,marginInlineEnd:`calc(-100% + ${Te} - ${Le})`}},[`&:not(${we}-disabled):active`]:{[`&:not(${we}-checked) ${ve}`]:{[`${ve}-unchecked`]:{marginInlineStart:yt(me).mul(2).equal(),marginInlineEnd:yt(me).mul(-1).mul(2).equal()}},[`&${we}-checked ${ve}`]:{[`${ve}-checked`]:{marginInlineStart:yt(me).mul(-1).mul(2).equal(),marginInlineEnd:yt(me).mul(2).equal()}}}}}},Ve=De=>{const{componentCls:we,trackHeight:ct,trackMinWidth:me}=De;return{[we]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(De)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:me,height:ct,lineHeight:(0,at.unit)(ct),verticalAlign:"middle",background:De.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${De.motionDurationMid}`,userSelect:"none",[`&:hover:not(${we}-disabled)`]:{background:De.colorTextTertiary}}),(0,kt.Qy)(De)),{[`&${we}-checked`]:{background:De.switchColor,[`&:hover:not(${we}-disabled)`]:{background:De.colorPrimaryHover}},[`&${we}-loading, &${we}-disabled`]:{cursor:"not-allowed",opacity:De.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${we}-rtl`]:{direction:"rtl"}})}},ht=De=>{const{fontSize:we,lineHeight:ct,controlHeight:me,colorWhite:ce}=De,je=we*ct,Pt=me/2,yt=2,ve=je-yt*2,Te=Pt-yt*2;return{trackHeight:je,trackHeightSM:Pt,trackMinWidth:ve*2+yt*4,trackMinWidthSM:Te*2+yt*2,trackPadding:yt,handleBg:ce,handleSize:ve,handleSizeSM:Te,handleShadow:`0 2px 4px 0 ${new xt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ve/2,innerMaxMargin:ve+yt+yt*2,innerMinMarginSM:Te/2,innerMaxMarginSM:Te+yt+yt*2}};var Ce=(0,ft.I$)("Switch",De=>{const we=(0,it.mergeToken)(De,{switchDuration:De.motionDurationMid,switchColor:De.colorPrimary,switchDisabledOpacity:De.opacityLoading,switchLoadingIconSize:De.calc(De.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${De.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ve(we),Ne(we),gt(we),Ke(we),tt(we)]},ht),Re=function(De,we){var ct={};for(var me in De)Object.prototype.hasOwnProperty.call(De,me)&&we.indexOf(me)<0&&(ct[me]=De[me]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,me=Object.getOwnPropertySymbols(De);ce<me.length;ce++)we.indexOf(me[ce])<0&&Object.prototype.propertyIsEnumerable.call(De,me[ce])&&(ct[me[ce]]=De[me[ce]]);return ct};const se=E.forwardRef((De,we)=>{const{prefixCls:ct,size:me,disabled:ce,loading:je,className:Pt,rootClassName:yt,style:ve,checked:Te,value:Le,defaultChecked:wt,defaultValue:pt,onChange:Mt}=De,Fe=Re(De,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[At,ut]=(0,Pe.Z)(!1,{value:Te!=null?Te:Le,defaultValue:wt!=null?wt:pt}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(Ae.E_),oe=E.useContext(Ue.Z),ue=(ce!=null?ce:oe)||je,ne=ae("switch",ct),pe=E.createElement("div",{className:`${ne}-handle`},je&&E.createElement(lt.Z,{className:`${ne}-loading-icon`})),[ge,We,xe]=Ce(ne),Ge=(0,He.Z)(me),nt=et()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ge==="small",[`${ne}-loading`]:je,[`${ne}-rtl`]:te==="rtl"},Pt,yt,We,xe),St=Object.assign(Object.assign({},ee==null?void 0:ee.style),ve),mt=function(){ut(arguments.length<=0?void 0:arguments[0]),Mt==null||Mt.apply(void 0,arguments)};return ge(E.createElement(qe.Z,{component:"Switch"},E.createElement(Ct,Object.assign({},Fe,{checked:At,onChange:mt,prefixCls:ne,className:nt,style:St,disabled:ue,ref:we,loadingIcon:pe}))))});se.__ANT_SWITCH=!0;var $e=se},96599:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return _e}});var E=re(59301),lt=re(92310),ye=re.n(lt),et=re(2738),Se=re(29509),ke=re(78776),Ie=re(22703),Ze=re(12919),Pe=re(48755),he=re(36237),Je=re(17835),Ee=re(63356),Ct=re(51636),qe=re(16931);const Ae=se=>{const{paddingXXS:$e,lineWidth:De,tagPaddingHorizontal:we,componentCls:ct,calc:me}=se,ce=me(we).sub(De).equal(),je=me($e).sub(De).equal();return{[ct]:Object.assign(Object.assign({},(0,Ee.Wf)(se)),{display:"inline-block",height:"auto",marginInlineEnd:se.marginXS,paddingInline:ce,fontSize:se.tagFontSize,lineHeight:se.tagLineHeight,whiteSpace:"nowrap",background:se.defaultBg,border:`${(0,he.unit)(se.lineWidth)} ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,opacity:1,transition:`all ${se.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ct}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:se.defaultColor},[`${ct}-close-icon`]:{marginInlineStart:je,fontSize:se.tagIconSize,color:se.colorTextDescription,cursor:"pointer",transition:`all ${se.motionDurationMid}`,"&:hover":{color:se.colorTextHeading}},[`&${ct}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${se.iconCls}-close, ${se.iconCls}-close:hover`]:{color:se.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ct}-checkable-checked):hover`]:{color:se.colorPrimary,backgroundColor:se.colorFillSecondary},"&:active, &-checked":{color:se.colorTextLightSolid},"&-checked":{backgroundColor:se.colorPrimary,"&:hover":{backgroundColor:se.colorPrimaryHover}},"&:active":{backgroundColor:se.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${se.iconCls} + span, > span + ${se.iconCls}`]:{marginInlineStart:ce}}),[`${ct}-borderless`]:{borderColor:"transparent",background:se.tagBorderlessBg}}},Ue=se=>{const{lineWidth:$e,fontSizeIcon:De,calc:we}=se,ct=se.fontSizeSM;return(0,Ct.mergeToken)(se,{tagFontSize:ct,tagLineHeight:(0,he.unit)(we(se.lineHeightSM).mul(ct).equal()),tagIconSize:we(De).sub(we($e).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:se.defaultBg})},He=se=>({defaultBg:new Je.FastColor(se.colorFillQuaternary).onBackground(se.colorBgContainer).toHexString(),defaultColor:se.colorText});var at=(0,qe.I$)("Tag",se=>{const $e=Ue(se);return Ae($e)},He),xt=function(se,$e){var De={};for(var we in se)Object.prototype.hasOwnProperty.call(se,we)&&$e.indexOf(we)<0&&(De[we]=se[we]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,we=Object.getOwnPropertySymbols(se);ct<we.length;ct++)$e.indexOf(we[ct])<0&&Object.prototype.propertyIsEnumerable.call(se,we[ct])&&(De[we[ct]]=se[we[ct]]);return De},ft=E.forwardRef((se,$e)=>{const{prefixCls:De,style:we,className:ct,checked:me,onChange:ce,onClick:je}=se,Pt=xt(se,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:yt,tag:ve}=E.useContext(Pe.E_),Te=At=>{ce==null||ce(!me),je==null||je(At)},Le=yt("tag",De),[wt,pt,Mt]=at(Le),Fe=ye()(Le,`${Le}-checkable`,{[`${Le}-checkable-checked`]:me},ve==null?void 0:ve.className,ct,pt,Mt);return wt(E.createElement("span",Object.assign({},Pt,{ref:$e,style:Object.assign(Object.assign({},we),ve==null?void 0:ve.style),className:Fe,onClick:Te})))}),it=re(93427);const tt=se=>(0,it.Z)(se,($e,De)=>{let{textColor:we,lightBorderColor:ct,lightColor:me,darkColor:ce}=De;return{[`${se.componentCls}${se.componentCls}-${$e}`]:{color:we,background:me,borderColor:ct,"&-inverse":{color:se.colorTextLightSolid,background:ce,borderColor:ce},[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ke=(0,qe.bk)(["Tag","preset"],se=>{const $e=Ue(se);return tt($e)},He);function gt(se){return typeof se!="string"?se:se.charAt(0).toUpperCase()+se.slice(1)}const Ne=(se,$e,De)=>{const we=gt(De);return{[`${se.componentCls}${se.componentCls}-${$e}`]:{color:se[`color${De}`],background:se[`color${we}Bg`],borderColor:se[`color${we}Border`],[`&${se.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ve=(0,qe.bk)(["Tag","status"],se=>{const $e=Ue(se);return[Ne($e,"success","Success"),Ne($e,"processing","Info"),Ne($e,"error","Error"),Ne($e,"warning","Warning")]},He),ht=function(se,$e){var De={};for(var we in se)Object.prototype.hasOwnProperty.call(se,we)&&$e.indexOf(we)<0&&(De[we]=se[we]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,we=Object.getOwnPropertySymbols(se);ct<we.length;ct++)$e.indexOf(we[ct])<0&&Object.prototype.propertyIsEnumerable.call(se,we[ct])&&(De[we[ct]]=se[we[ct]]);return De};const Re=E.forwardRef((se,$e)=>{const{prefixCls:De,className:we,rootClassName:ct,style:me,children:ce,icon:je,color:Pt,onClose:yt,bordered:ve=!0,visible:Te}=se,Le=ht(se,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:wt,direction:pt,tag:Mt}=E.useContext(Pe.E_),[Fe,At]=E.useState(!0),ut=(0,et.Z)(Le,["closeIcon","closable"]);E.useEffect(()=>{Te!==void 0&&At(Te)},[Te]);const ae=(0,Se.o2)(Pt),te=(0,Se.yT)(Pt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Pt&&!ee?Pt:void 0},Mt==null?void 0:Mt.style),me),ue=wt("tag",De),[ne,pe,ge]=at(ue),We=ye()(ue,Mt==null?void 0:Mt.className,{[`${ue}-${Pt}`]:ee,[`${ue}-has-color`]:Pt&&!ee,[`${ue}-hidden`]:!Fe,[`${ue}-rtl`]:pt==="rtl",[`${ue}-borderless`]:!ve},we,ct,pe,ge),xe=Zt=>{Zt.stopPropagation(),yt==null||yt(Zt),!Zt.defaultPrevented&&At(!1)},[,Ge]=(0,ke.Z)((0,ke.w)(se),(0,ke.w)(Mt),{closable:!1,closeIconRender:Zt=>{const $t=E.createElement("span",{className:`${ue}-close-icon`,onClick:xe},Zt);return(0,Ie.wm)(Zt,$t,tn=>({onClick:Xt=>{var rn;(rn=tn==null?void 0:tn.onClick)===null||rn===void 0||rn.call(tn,Xt),xe(Xt)},className:ye()(tn==null?void 0:tn.className,`${ue}-close-icon`)}))}}),nt=typeof Le.onClick=="function"||ce&&ce.type==="a",St=je||null,mt=St?E.createElement(E.Fragment,null,St,ce&&E.createElement("span",null,ce)):ce,Ht=E.createElement("span",Object.assign({},ut,{ref:$e,className:We,style:oe}),mt,Ge,ae&&E.createElement(Ke,{key:"preset",prefixCls:ue}),te&&E.createElement(Ve,{key:"status",prefixCls:ue}));return ne(nt?E.createElement(Ze.Z,{component:"Tag"},Ht):Ht)});Re.CheckableTag=ft;var _e=Re},99498:function(nn,zt,re){(function(E){E(re(89780))})(function(E){E.defineOption("placeholder","",function(Ze,Pe,he){var Je=he&&he!=E.Init;if(Pe&&!Je)Ze.on("blur",Se),Ze.on("change",ke),Ze.on("swapDoc",ke),E.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){et(Ze)}),ke(Ze);else if(!Pe&&Je){Ze.off("blur",Se),Ze.off("change",ke),Ze.off("swapDoc",ke),E.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),lt(Ze);var Ee=Ze.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}Pe&&!Ze.hasFocus()&&Se(Ze)});function lt(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function ye(Ze){lt(Ze);var Pe=Ze.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Ze.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var he=Ze.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Pe.appendChild(he),Ze.display.lineSpace.insertBefore(Pe,Ze.display.lineSpace.firstChild)}function et(Ze){setTimeout(function(){var Pe=!1,he=Ze.getInputField();he.nodeName=="TEXTAREA"?Pe=!he.value:Ze.lineCount()==1&&(Pe=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Pe?ye(Ze):lt(Ze)},20)}function Se(Ze){Ie(Ze)&&ye(Ze)}function ke(Ze){var Pe=Ze.getWrapperElement(),he=Ie(Ze);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ye(Ze):lt(Ze)}function Ie(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(nn,zt,re){(function(E){E(re(89780))})(function(E){var lt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ye=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Ae,Ue,He){He&&He!=E.Init&&(Ae.removeKeyMap(Se),Ae.state.closeBrackets=null),Ue&&(ke(et(Ue,"pairs")),Ae.state.closeBrackets=Ue,Ae.addKeyMap(Se))});function et(Ae,Ue){return Ue=="pairs"&&typeof Ae=="string"?Ae:typeof Ae=="object"&&Ae[Ue]!=null?Ae[Ue]:lt[Ue]}var Se={Backspace:Pe,Enter:he};function ke(Ae){for(var Ue=0;Ue<Ae.length;Ue++){var He=Ae.charAt(Ue),at="'"+He+"'";Se[at]||(Se[at]=Ie(He))}}ke(lt.pairs+"`");function Ie(Ae){return function(Ue){return Ee(Ue,Ae)}}function Ze(Ae){var Ue=Ae.state.closeBrackets;if(!Ue||Ue.override)return Ue;var He=Ae.getModeAt(Ae.getCursor());return He.closeBrackets||Ue}function Pe(Ae){var Ue=Ze(Ae);if(!Ue||Ae.getOption("disableInput"))return E.Pass;for(var He=et(Ue,"pairs"),at=Ae.listSelections(),xt=0;xt<at.length;xt++){if(!at[xt].empty())return E.Pass;var kt=Ct(Ae,at[xt].head);if(!kt||He.indexOf(kt)%2!=0)return E.Pass}for(var xt=at.length-1;xt>=0;xt--){var ft=at[xt].head;Ae.replaceRange("",ye(ft.line,ft.ch-1),ye(ft.line,ft.ch+1),"+delete")}}function he(Ae){var Ue=Ze(Ae),He=Ue&&et(Ue,"explode");if(!He||Ae.getOption("disableInput"))return E.Pass;for(var at=Ae.listSelections(),xt=0;xt<at.length;xt++){if(!at[xt].empty())return E.Pass;var kt=Ct(Ae,at[xt].head);if(!kt||He.indexOf(kt)%2!=0)return E.Pass}Ae.operation(function(){var ft=Ae.lineSeparator()||`
`;Ae.replaceSelection(ft+ft,null),Ae.execCommand("goCharLeft"),at=Ae.listSelections();for(var it=0;it<at.length;it++){var tt=at[it].head.line;Ae.indentLine(tt,null,!0),Ae.indentLine(tt+1,null,!0)}})}function Je(Ae){var Ue=E.cmpPos(Ae.anchor,Ae.head)>0;return{anchor:new ye(Ae.anchor.line,Ae.anchor.ch+(Ue?-1:1)),head:new ye(Ae.head.line,Ae.head.ch+(Ue?1:-1))}}function Ee(Ae,Ue){var He=Ze(Ae);if(!He||Ae.getOption("disableInput"))return E.Pass;var at=et(He,"pairs"),xt=at.indexOf(Ue);if(xt==-1)return E.Pass;for(var kt=et(He,"closeBefore"),ft=et(He,"triples"),it=at.charAt(xt+1)==Ue,tt=Ae.listSelections(),Ke=xt%2==0,gt,Ne=0;Ne<tt.length;Ne++){var Ve=tt[Ne],ht=Ve.head,Ce,Re=Ae.getRange(ht,ye(ht.line,ht.ch+1));if(Ke&&!Ve.empty())Ce="surround";else if((it||!Ke)&&Re==Ue)it&&qe(Ae,ht)?Ce="both":ft.indexOf(Ue)>=0&&Ae.getRange(ht,ye(ht.line,ht.ch+3))==Ue+Ue+Ue?Ce="skipThree":Ce="skip";else if(it&&ht.ch>1&&ft.indexOf(Ue)>=0&&Ae.getRange(ye(ht.line,ht.ch-2),ht)==Ue+Ue){if(ht.ch>2&&/\bstring/.test(Ae.getTokenTypeAt(ye(ht.line,ht.ch-2))))return E.Pass;Ce="addFour"}else if(it){var _e=ht.ch==0?" ":Ae.getRange(ye(ht.line,ht.ch-1),ht);if(!E.isWordChar(Re)&&_e!=Ue&&!E.isWordChar(_e))Ce="both";else return E.Pass}else if(Ke&&(Re.length===0||/\s/.test(Re)||kt.indexOf(Re)>-1))Ce="both";else return E.Pass;if(!gt)gt=Ce;else if(gt!=Ce)return E.Pass}var se=xt%2?at.charAt(xt-1):Ue,$e=xt%2?Ue:at.charAt(xt+1);Ae.operation(function(){if(gt=="skip")Ae.execCommand("goCharRight");else if(gt=="skipThree")for(var De=0;De<3;De++)Ae.execCommand("goCharRight");else if(gt=="surround"){for(var we=Ae.getSelections(),De=0;De<we.length;De++)we[De]=se+we[De]+$e;Ae.replaceSelections(we,"around"),we=Ae.listSelections().slice();for(var De=0;De<we.length;De++)we[De]=Je(we[De]);Ae.setSelections(we)}else gt=="both"?(Ae.replaceSelection(se+$e,null),Ae.triggerElectric(se+$e),Ae.execCommand("goCharLeft")):gt=="addFour"&&(Ae.replaceSelection(se+se+se+se,"before"),Ae.execCommand("goCharRight"))})}function Ct(Ae,Ue){var He=Ae.getRange(ye(Ue.line,Ue.ch-1),ye(Ue.line,Ue.ch+1));return He.length==2?He:null}function qe(Ae,Ue){var He=Ae.getTokenAt(ye(Ue.line,Ue.ch+1));return/\bstring/.test(He.type)&&He.start==Ue.ch&&(Ue.ch==0||!/\bstring/.test(Ae.getTokenTypeAt(Ue)))}})},6313:function(nn,zt,re){(function(E){E(re(89780),re(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Pe,he,Je){if(Je!=E.Init&&Je&&Pe.removeKeyMap("autoCloseTags"),!!he){var Ee={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Ee["'/'"]=function(Ct){return ke(Ct)}),(typeof he!="object"||he.whenOpening!==!1)&&(Ee["'>'"]=function(Ct){return et(Ct)}),Pe.addKeyMap(Ee)}});var lt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ye=["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 et(Pe){if(Pe.getOption("disableInput"))return E.Pass;for(var he=Pe.listSelections(),Je=[],Ee=Pe.getOption("autoCloseTags"),Ct=0;Ct<he.length;Ct++){if(!he[Ct].empty())return E.Pass;var qe=he[Ct].head,Ae=Pe.getTokenAt(qe),Ue=E.innerMode(Pe.getMode(),Ae.state),He=Ue.state,at=Ue.mode.xmlCurrentTag&&Ue.mode.xmlCurrentTag(He),xt=at&&at.name;if(!xt)return E.Pass;var kt=Ue.mode.configuration=="html",ft=typeof Ee=="object"&&Ee.dontCloseTags||kt&&lt,it=typeof Ee=="object"&&Ee.indentTags||kt&&ye;Ae.end>qe.ch&&(xt=xt.slice(0,xt.length-Ae.end+qe.ch));var tt=xt.toLowerCase();if(!xt||Ae.type=="string"&&(Ae.end!=qe.ch||!/[\"\']/.test(Ae.string.charAt(Ae.string.length-1))||Ae.string.length==1)||Ae.type=="tag"&&at.close||Ae.string.indexOf("/")==qe.ch-Ae.start-1||ft&&Ie(ft,tt)>-1||Ze(Pe,Ue.mode.xmlCurrentContext&&Ue.mode.xmlCurrentContext(He)||[],xt,qe,!0))return E.Pass;var Ke=typeof Ee=="object"&&Ee.emptyTags;if(Ke&&Ie(Ke,xt)>-1){Je[Ct]={text:"/>",newPos:E.Pos(qe.line,qe.ch+2)};continue}var gt=it&&Ie(it,tt)>-1;Je[Ct]={indent:gt,text:">"+(gt?`
`:"")+"</"+xt+">",newPos:gt?E.Pos(qe.line+1,0):E.Pos(qe.line,qe.ch+1)}}for(var Ne=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,Ct=he.length-1;Ct>=0;Ct--){var Ve=Je[Ct];Pe.replaceRange(Ve.text,he[Ct].head,he[Ct].anchor,"+insert");var ht=Pe.listSelections().slice(0);ht[Ct]={head:Ve.newPos,anchor:Ve.newPos},Pe.setSelections(ht),!Ne&&Ve.indent&&(Pe.indentLine(Ve.newPos.line,null,!0),Pe.indentLine(Ve.newPos.line+1,null,!0))}}function Se(Pe,he){for(var Je=Pe.listSelections(),Ee=[],Ct=he?"/":"</",qe=Pe.getOption("autoCloseTags"),Ae=typeof qe=="object"&&qe.dontIndentOnSlash,Ue=0;Ue<Je.length;Ue++){if(!Je[Ue].empty())return E.Pass;var He=Je[Ue].head,at=Pe.getTokenAt(He),xt=E.innerMode(Pe.getMode(),at.state),kt=xt.state;if(he&&(at.type=="string"||at.string.charAt(0)!="<"||at.start!=He.ch-1))return E.Pass;var ft,it=xt.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(it&&xt.mode.name=="javascript")ft=Ct+"script";else if(it&&xt.mode.name=="css")ft=Ct+"style";else{var tt=xt.mode.xmlCurrentContext&&xt.mode.xmlCurrentContext(kt);if(!tt||tt.length&&Ze(Pe,tt,tt[tt.length-1],He))return E.Pass;ft=Ct+tt[tt.length-1]}Pe.getLine(He.line).charAt(at.end)!=">"&&(ft+=">"),Ee[Ue]=ft}if(Pe.replaceSelections(Ee),Je=Pe.listSelections(),!Ae)for(var Ue=0;Ue<Je.length;Ue++)(Ue==Je.length-1||Je[Ue].head.line<Je[Ue+1].head.line)&&Pe.indentLine(Je[Ue].head.line)}function ke(Pe){return Pe.getOption("disableInput")?E.Pass:Se(Pe,!0)}E.commands.closeTag=function(Pe){return Se(Pe)};function Ie(Pe,he){if(Pe.indexOf)return Pe.indexOf(he);for(var Je=0,Ee=Pe.length;Je<Ee;++Je)if(Pe[Je]==he)return Je;return-1}function Ze(Pe,he,Je,Ee,Ct){if(!E.scanForClosingTag)return!1;var qe=Math.min(Pe.lastLine()+1,Ee.line+500),Ae=E.scanForClosingTag(Pe,Ee,null,qe);if(!Ae||Ae.tag!=Je)return!1;for(var Ue=Ct?1:0,He=he.length-1;He>=0&&he[He]==Je;He--)++Ue;Ee=Ae.to;for(var He=1;He<Ue;He++){var at=E.scanForClosingTag(Pe,Ee,null,qe);if(!at||at.tag!=Je)return!1;Ee=at.to}return!0}})},32855:function(nn,zt,re){(function(E){E(re(89780))})(function(E){"use strict";var lt=E.Pos;function ye(He,at){return He.line-at.line||He.ch-at.ch}var et="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",Se=et+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("<(/?)(["+et+"]["+Se+"]*)","g");function Ie(He,at,xt,kt){this.line=at,this.ch=xt,this.cm=He,this.text=He.getLine(at),this.min=kt?Math.max(kt.from,He.firstLine()):He.firstLine(),this.max=kt?Math.min(kt.to-1,He.lastLine()):He.lastLine()}function Ze(He,at){var xt=He.cm.getTokenTypeAt(lt(He.line,at));return xt&&/\btag\b/.test(xt)}function Pe(He){if(!(He.line>=He.max))return He.ch=0,He.text=He.cm.getLine(++He.line),!0}function he(He){if(!(He.line<=He.min))return He.text=He.cm.getLine(--He.line),He.ch=He.text.length,!0}function Je(He){for(;;){var at=He.text.indexOf(">",He.ch);if(at==-1){if(Pe(He))continue;return}if(!Ze(He,at+1)){He.ch=at+1;continue}var xt=He.text.lastIndexOf("/",at),kt=xt>-1&&!/\S/.test(He.text.slice(xt+1,at));return He.ch=at+1,kt?"selfClose":"regular"}}function Ee(He){for(;;){var at=He.ch?He.text.lastIndexOf("<",He.ch-1):-1;if(at==-1){if(he(He))continue;return}if(!Ze(He,at+1)){He.ch=at;continue}ke.lastIndex=at,He.ch=at;var xt=ke.exec(He.text);if(xt&&xt.index==at)return xt}}function Ct(He){for(;;){ke.lastIndex=He.ch;var at=ke.exec(He.text);if(!at){if(Pe(He))continue;return}if(!Ze(He,at.index+1)){He.ch=at.index+1;continue}return He.ch=at.index+at[0].length,at}}function qe(He){for(;;){var at=He.ch?He.text.lastIndexOf(">",He.ch-1):-1;if(at==-1){if(he(He))continue;return}if(!Ze(He,at+1)){He.ch=at;continue}var xt=He.text.lastIndexOf("/",at),kt=xt>-1&&!/\S/.test(He.text.slice(xt+1,at));return He.ch=at+1,kt?"selfClose":"regular"}}function Ae(He,at){for(var xt=[];;){var kt=Ct(He),ft,it=He.line,tt=He.ch-(kt?kt[0].length:0);if(!kt||!(ft=Je(He)))return;if(ft!="selfClose")if(kt[1]){for(var Ke=xt.length-1;Ke>=0;--Ke)if(xt[Ke]==kt[2]){xt.length=Ke;break}if(Ke<0&&(!at||at==kt[2]))return{tag:kt[2],from:lt(it,tt),to:lt(He.line,He.ch)}}else xt.push(kt[2])}}function Ue(He,at){for(var xt=[];;){var kt=qe(He);if(!kt)return;if(kt=="selfClose"){Ee(He);continue}var ft=He.line,it=He.ch,tt=Ee(He);if(!tt)return;if(tt[1])xt.push(tt[2]);else{for(var Ke=xt.length-1;Ke>=0;--Ke)if(xt[Ke]==tt[2]){xt.length=Ke;break}if(Ke<0&&(!at||at==tt[2]))return{tag:tt[2],from:lt(He.line,He.ch),to:lt(ft,it)}}}}E.registerHelper("fold","xml",function(He,at){for(var xt=new Ie(He,at.line,0);;){var kt=Ct(xt);if(!kt||xt.line!=at.line)return;var ft=Je(xt);if(!ft)return;if(!kt[1]&&ft!="selfClose"){var it=lt(xt.line,xt.ch),tt=Ae(xt,kt[2]);return tt&&ye(tt.from,it)>0?{from:it,to:tt.from}:null}}}),E.findMatchingTag=function(He,at,xt){var kt=new Ie(He,at.line,at.ch,xt);if(!(kt.text.indexOf(">")==-1&&kt.text.indexOf("<")==-1)){var ft=Je(kt),it=ft&&lt(kt.line,kt.ch),tt=ft&&Ee(kt);if(!(!ft||!tt||ye(kt,at)>0)){var Ke={from:lt(kt.line,kt.ch),to:it,tag:tt[2]};return ft=="selfClose"?{open:Ke,close:null,at:"open"}:tt[1]?{open:Ue(kt,tt[2]),close:Ke,at:"close"}:(kt=new Ie(He,it.line,it.ch,xt),{open:Ke,close:Ae(kt,tt[2]),at:"open"})}}},E.findEnclosingTag=function(He,at,xt,kt){for(var ft=new Ie(He,at.line,at.ch,xt);;){var it=Ue(ft,kt);if(!it)break;var tt=new Ie(He,at.line,at.ch,xt),Ke=Ae(tt,it.tag);if(Ke)return{open:it,close:Ke}}},E.scanForClosingTag=function(He,at,xt,kt){var ft=new Ie(He,at.line,at.ch,kt?{from:0,to:kt}:null);return Ae(ft,xt)}})},89780:function(nn){(function(zt,re){nn.exports=re()})(this,function(){"use strict";var zt=navigator.userAgent,re=navigator.platform,E=/gecko\/\d/i.test(zt),lt=/MSIE \d/.test(zt),ye=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zt),et=/Edge\/(\d+)/.exec(zt),Se=lt||ye||et,ke=Se&&(lt?document.documentMode||6:+(et||ye)[1]),Ie=!et&&/WebKit\//.test(zt),Ze=Ie&&/Qt\/\d+\.\d+/.test(zt),Pe=!et&&/Chrome\//.test(zt),he=/Opera\//.test(zt),Je=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zt),Ct=/PhantomJS/.test(zt),qe=!et&&/AppleWebKit/.test(zt)&&/Mobile\/\w+/.test(zt),Ae=/Android/.test(zt),Ue=qe||Ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zt),He=qe||/Mac/.test(re),at=/\bCrOS\b/.test(zt),xt=/win/i.test(re),kt=he&&zt.match(/Version\/(\d*\.\d*)/);kt&&(kt=Number(kt[1])),kt&&kt>=15&&(he=!1,Ie=!0);var ft=He&&(Ze||he&&(kt==null||kt<12.11)),it=E||Se&&ke>=9;function tt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ke=function(a,y){var x=a.className,b=tt(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function gt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ne(a,y){return gt(a).appendChild(y)}function Ve(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)z.appendChild(y[ie]);return z}function ht(a,y,x,b){var z=Ve(a,y,x,b);return z.setAttribute("role","presentation"),z}var Ce;document.createRange?Ce=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:Ce=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(z){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function Re(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 _e(){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 se(a,y){var x=a.className;tt(y).test(x)||(a.className+=(x?" ":"")+y)}function $e(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!tt(x[b]).test(y)&&(y+=" "+x[b]);return y}var De=function(a){a.select()};qe?De=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Se&&(De=function(a){try{a.select()}catch(y){}});function we(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ct(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 me(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=b||0,le=z||0;;){var de=a.indexOf(" ",ie);if(de<0||de>=y)return le+(y-ie);le+=de-ie,le+=x-le%x,ie=de+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=we(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 je(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Pt=50,yt={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},Te={origin:"*mouse"},Le={origin:"+move"};function wt(a,y,x){for(var b=0,z=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var le=ie-b;if(ie==a.length||z+le>=y)return b+Math.min(le,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var pt=[""];function Mt(a){for(;pt.length<=a;)pt.push(Fe(pt)+" ");return pt[a]}function Fe(a){return a[a.length-1]}function At(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function ut(a,y,x){for(var b=0,z=x(y);b<a.length&&x(a[b])<=z;)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&&ct(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 ue(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 pe=/[\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 ge(a){return a.charCodeAt(0)>=768&&pe.test(a)}function We(a,y,x){for(;(x<0?y>0:y<a.length)&&ge(a.charAt(y));)y+=x;return y}function xe(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,ie=b<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:x;a(ie)?x=ie:y=ie+b}}function Ge(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var le=a[ie];(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",ie),z=!0)}z||b(y,x,"ltr")}var nt=null;function St(a,y,x){var b;nt=null;for(var z=0;z<a.length;++z){var ie=a[z];if(ie.from<y&&ie.to>y)return z;ie.to==y&&(ie.from!=ie.to&&x=="before"?b=z:nt=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:nt=z)}return b!=null?b:nt}var mt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(be){return be<=247?a.charAt(be):1424<=be&&be<=1524?"R":1536<=be&&be<=1785?y.charAt(be-1536):1774<=be&&be<=2220?"r":8192<=be&&be<=8203?"w":be==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,de=/[1n]/;function fe(be,ot,vt){this.level=be,this.from=ot,this.to=vt}return function(be,ot){var vt=ot=="ltr"?"L":"R";if(be.length==0||ot=="ltr"&&!b.test(be))return!1;for(var jt=be.length,_t=[],cn=0;cn<jt;++cn)_t.push(x(be.charCodeAt(cn)));for(var On=0,Ln=vt;On<jt;++On){var $n=_t[On];$n=="m"?_t[On]=Ln:Ln=$n}for(var Vn=0,zn=vt;Vn<jt;++Vn){var Kn=_t[Vn];Kn=="1"&&zn=="r"?_t[Vn]="n":ie.test(Kn)&&(zn=Kn,Kn=="r"&&(_t[Vn]="R"))}for(var sr=1,nr=_t[0];sr<jt-1;++sr){var wr=_t[sr];wr=="+"&&nr=="1"&&_t[sr+1]=="1"?_t[sr]="1":wr==","&&nr==_t[sr+1]&&(nr=="1"||nr=="n")&&(_t[sr]=nr),nr=wr}for(var jr=0;jr<jt;++jr){var li=_t[jr];if(li==",")_t[jr]="N";else if(li=="%"){var Ur=void 0;for(Ur=jr+1;Ur<jt&&_t[Ur]=="%";++Ur);for(var Ti=jr&&_t[jr-1]=="!"||Ur<jt&&_t[Ur]=="1"?"1":"N",Ei=jr;Ei<Ur;++Ei)_t[Ei]=Ti;jr=Ur-1}}for(var qr=0,Ii=vt;qr<jt;++qr){var di=_t[qr];Ii=="L"&&di=="1"?_t[qr]="L":ie.test(di)&&(Ii=di)}for(var ii=0;ii<jt;++ii)if(z.test(_t[ii])){var ei=void 0;for(ei=ii+1;ei<jt&&z.test(_t[ei]);++ei);for(var Kr=(ii?_t[ii-1]:vt)=="L",Pi=(ei<jt?_t[ei]:vt)=="L",Vo=Kr==Pi?Kr?"L":"R":vt,bo=ii;bo<ei;++bo)_t[bo]=Vo;ii=ei-1}for(var pi=[],eo,si=0;si<jt;)if(le.test(_t[si])){var bl=si;for(++si;si<jt&&le.test(_t[si]);++si);pi.push(new fe(0,bl,si))}else{var oo=si,ko=pi.length,Mo=ot=="rtl"?1:0;for(++si;si<jt&&_t[si]!="L";++si);for(var bi=oo;bi<si;)if(de.test(_t[bi])){oo<bi&&(pi.splice(ko,0,new fe(1,oo,bi)),ko+=Mo);var Go=bi;for(++bi;bi<si&&de.test(_t[bi]);++bi);pi.splice(ko,0,new fe(2,Go,bi)),ko+=Mo,oo=bi}else++bi;oo<si&&pi.splice(ko,0,new fe(1,oo,si))}return ot=="ltr"&&(pi[0].level==1&&(eo=be.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new fe(0,0,eo[0].length))),Fe(pi).level==1&&(eo=be.match(/\s+$/))&&(Fe(pi).to-=eo[0].length,pi.push(new fe(0,jt-eo[0].length,jt)))),ot=="rtl"?pi.reverse():pi}}();function Ht(a,y){var x=a.order;return x==null&&(x=a.order=mt(a.text,y)),x}var Zt=[],$t=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]||Zt).concat(x)}};function tn(a,y){return a._handlers&&a._handlers[y]||Zt}function Xt(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,z=b&&b[y];if(z){var ie=je(z,x);ie>-1&&(b[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function rn(a,y){var x=tn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z<x.length;++z)x[z].apply(null,b)}function Ot(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),rn(a,x||y.type,a,y),Wt(y)||y.codemirrorIgnore}function Yt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)je(x,y[b])==-1&&x.push(y[b])}function Vt(a,y){return tn(a,y).length>0}function ze(a){a.prototype.on=function(y,x){$t(this,y,x)},a.prototype.off=function(y,x){Xt(this,y,x)}}function dt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Nt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Wt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Be(a){dt(a),Nt(a)}function rt(a){return a.target||a.srcElement}function bt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),He&&a.ctrlKey&&y==1&&(y=3),y}var Dt=function(){if(Se&&ke<9)return!1;var a=Ve("div");return"draggable"in a||"dragDrop"in a}(),Ut;function ln(a){if(Ut==null){var y=Ve("span","\u200B");Ne(a,Ve("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Ut=y.offsetWidth<=1&&y.offsetHeight>2&&!(Se&&ke<8))}var x=Ut?Ve("span","\u200B"):Ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var In;function Pn(a){if(In!=null)return In;var y=Ne(a,document.createTextNode("A\u062EA")),x=Ce(y,0,1).getBoundingClientRect(),b=Ce(y,1,2).getBoundingClientRect();return gt(a),!x||x.left==x.right?!1:In=b.right-x.right<3}var on=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},bn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},dn=function(){var a=Ve("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Gt=null;function Lt(a){if(Gt!=null)return Gt;var y=Ne(a,Ve("span","x")),x=y.getBoundingClientRect(),b=Ce(y,0,1).getBoundingClientRect();return Gt=Math.abs(x.left-b.left)>1}var Rt={},Et={};function en(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Rt[a]=y}function Jt(a,y){Et[a]=y}function qt(a){if(typeof a=="string"&&Et.hasOwnProperty(a))a=Et[a];else if(a&&typeof a.name=="string"&&Et.hasOwnProperty(a.name)){var y=Et[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 qt("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return qt("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function gn(a,y){y=qt(y);var x=Rt[y.name];if(!x)return gn(a,"text/plain");var b=x(a,y);if(wn.hasOwnProperty(y.name)){var z=wn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=z[ie])}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 wn={};function Sn(a,y){var x=wn.hasOwnProperty(a)?wn[a]:wn[a]={};ct(y,x)}function Mn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function kn(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Wn(a,y,x){return a.startState?a.startState(y,x):!0}var An=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};An.prototype.eol=function(){return this.pos>=this.string.length},An.prototype.sol=function(){return this.pos==this.lineStart},An.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},An.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},An.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},An.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},An.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},An.prototype.skipToEnd=function(){this.pos=this.string.length},An.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},An.prototype.backUp=function(a){this.pos-=a},An.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=me(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},An.prototype.indentation=function(){return me(this.string,null,this.tabSize)-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},An.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},z=this.string.substr(this.pos,a.length);if(b(z)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},An.prototype.current=function(){return this.string.slice(this.start,this.pos)},An.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},An.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},An.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Bt(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 z=x.children[b],ie=z.chunkSize();if(y<ie){x=z;break}y-=ie}return x.lines[y]}function Kt(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(ie){var le=ie.text;z==x.line&&(le=le.slice(0,x.ch)),z==y.line&&(le=le.slice(y.ch)),b.push(le),++z}),b}function xn(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function hn(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Xe(a){if(a.parent==null)return null;for(var y=a.parent,x=je(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var z=0;b.children[z]!=y;++z)x+=b.children[z].chunkSize();return x+y.first}function st(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],ie=z.height;if(y<ie){a=z;continue e}y-=ie,x+=z.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var de=a.lines[le],fe=de.height;if(y<fe)break;y-=fe}return x+le}function Oe(a,y){return y>=a.first&&y<a.first+a.size}function Ye(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Me(a,y,x){if(x===void 0&&(x=null),!(this instanceof Me))return new Me(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Qe(a,y){return a.line-y.line||a.ch-y.ch}function It(a,y){return a.sticky==y.sticky&&Qe(a,y)==0}function an(a){return Me(a.line,a.ch)}function un(a,y){return Qe(a,y)<0?y:a}function vn(a,y){return Qe(a,y)<0?a:y}function Qt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Ft(a,y){if(y.line<a.first)return Me(a.first,0);var x=a.first+a.size-1;return y.line>x?Me(x,Bt(a,x).text.length):Tt(y,Bt(a,y.line).text.length)}function Tt(a,y){var x=a.ch;return x==null||x>y?Me(a.line,y):x<0?Me(a.line,0):a}function fn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Ft(a,y[b]);return x}var Tn=function(a,y){this.state=a,this.lookAhead=y},Dn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};Dn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Dn.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}},Dn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Dn.fromSaved=function(a,y,x){return y instanceof Tn?new Dn(a,Mn(a.mode,y.state),x,y.lookAhead):new Dn(a,Mn(a.mode,y),x)},Dn.prototype.save=function(a){var y=a!==!1?Mn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tn(y,this.maxLookAhead):y};function Bn(a,y,x,b){var z=[a.state.modeGen],ie={};qn(a,y.text,a.doc.mode,x,function(be,ot){return z.push(be,ot)},ie,b);for(var le=x.state,de=function(be){x.baseTokens=z;var ot=a.state.overlays[be],vt=1,jt=0;x.state=!0,qn(a,y.text,ot.mode,x,function(_t,cn){for(var On=vt;jt<_t;){var Ln=z[vt];Ln>_t&&z.splice(vt,1,_t,z[vt+1],Ln),vt+=2,jt=Math.min(_t,Ln)}if(cn)if(ot.opaque)z.splice(On,vt-On,_t,"overlay "+cn),vt=On+2;else for(;On<vt;On+=2){var $n=z[On+1];z[On+1]=($n?$n+" ":"")+"overlay "+cn}},ie),x.state=le,x.baseTokens=null,x.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)de(fe);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function Xn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Qn(a,Xe(y)),z=y.text.length>a.options.maxHighlightLength&&Mn(a.doc.mode,b.state),ie=Bn(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=ie.styles,ie.classes?y.styleClasses=ie.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 Qn(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new Dn(b,!0,y);var ie=lr(a,y,x),le=ie>b.first&&Bt(b,ie-1).stateAfter,de=le?Dn.fromSaved(b,le,ie):new Dn(b,Wn(b.mode),ie);return b.iter(ie,y,function(fe){Jn(a,fe.text,de);var be=de.line;fe.stateAfter=be==y-1||be%5==0||be>=z.viewFrom&&be<z.viewTo?de.save():null,de.nextLine()}),x&&(b.modeFrontier=de.line),de}function Jn(a,y,x,b){var z=a.doc.mode,ie=new An(y,a.options.tabSize,x);for(ie.start=ie.pos=b||0,y==""&&Zn(z,x.state);!ie.eol();)Fn(z,ie,x.state),ie.start=ie.pos}function Zn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=kn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Fn(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=kn(a,x).mode);var ie=a.token(y,x);if(y.pos>y.start)return ie}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 z=a.doc,ie=z.mode,le;y=Ft(z,y);var de=Bt(z,y.line),fe=Qn(a,y.line,x),be=new An(de.text,a.options.tabSize,fe),ot;for(b&&(ot=[]);(b||be.pos<y.ch)&&!be.eol();)be.start=be.pos,le=Fn(ie,be,fe.state),b&&ot.push(new Hn(be,le,Mn(z.mode,fe.state)));return b?ot:new Hn(be,le,fe.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,z,ie,le){var de=x.flattenSpans;de==null&&(de=a.options.flattenSpans);var fe=0,be=null,ot=new An(y,a.options.tabSize,b),vt,jt=a.options.addModeClass&&[null];for(y==""&&ur(Zn(x,b.state),ie);!ot.eol();){if(ot.pos>a.options.maxHighlightLength?(de=!1,le&&Jn(a,y,b,ot.pos),ot.pos=y.length,vt=null):vt=ur(Fn(x,ot,b.state,jt),ie),jt){var _t=jt[0].name;_t&&(vt="m-"+(vt?_t+" "+vt:_t))}if(!de||be!=vt){for(;fe<ot.start;)fe=Math.min(ot.start,fe+5e3),z(fe,be);be=vt}ot.start=ot.pos}for(;fe<ot.pos;){var cn=Math.min(ot.pos,fe+5e3);z(cn,be),fe=cn}}function lr(a,y,x){for(var b,z,ie=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),de=y;de>le;--de){if(de<=ie.first)return ie.first;var fe=Bt(ie,de-1),be=fe.stateAfter;if(be&&(!x||de+(be instanceof Tn?be.lookAhead:0)<=ie.modeFrontier))return de;var ot=me(fe.text,null,a.options.tabSize);(z==null||b>ot)&&(z=de-1,b=ot)}return z}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 z=Bt(a,b).stateAfter;if(z&&(!(z instanceof Tn)||b+z.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 z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var fe=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new cr(le,ie.from,fe?null:ie.to))}}return b}function Gn(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var fe=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new cr(le,fe?null:ie.from-y,ie.to==null?null:ie.to-y))}}return b}function Sr(a,y){if(y.full)return null;var x=Oe(a,y.from.line)&&Bt(a,y.from.line).markedSpans,b=Oe(a,y.to.line)&&Bt(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,ie=y.to.ch,le=Qe(y.from,y.to)==0,de=dr(x,z,le),fe=Gn(b,ie,le),be=y.text.length==1,ot=Fe(y.text).length+(be?z:0);if(de)for(var vt=0;vt<de.length;++vt){var jt=de[vt];if(jt.to==null){var _t=vr(fe,jt.marker);_t?be&&(jt.to=_t.to==null?null:_t.to+ot):jt.to=z}}if(fe)for(var cn=0;cn<fe.length;++cn){var On=fe[cn];if(On.to!=null&&(On.to+=ot),On.from==null){var Ln=vr(de,On.marker);Ln||(On.from=ot,be&&(de||(de=[])).push(On))}else On.from+=ot,be&&(de||(de=[])).push(On)}de&&(de=Rr(de)),fe&&fe!=de&&(fe=Rr(fe));var $n=[de];if(!be){var Vn=y.text.length-2,zn;if(Vn>0&&de)for(var Kn=0;Kn<de.length;++Kn)de[Kn].to==null&&(zn||(zn=[])).push(new cr(de[Kn].marker,null,null));for(var sr=0;sr<Vn;++sr)$n.push(zn);$n.push(fe)}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 Hr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(_t){if(_t.markedSpans)for(var cn=0;cn<_t.markedSpans.length;++cn){var On=_t.markedSpans[cn].marker;On.readOnly&&(!b||je(b,On)==-1)&&(b||(b=[])).push(On)}}),!b)return null;for(var z=[{from:y,to:x}],ie=0;ie<b.length;++ie)for(var le=b[ie],de=le.find(0),fe=0;fe<z.length;++fe){var be=z[fe];if(!(Qe(be.to,de.from)<0||Qe(be.from,de.to)>0)){var ot=[fe,1],vt=Qe(be.from,de.from),jt=Qe(be.to,de.to);(vt<0||!le.inclusiveLeft&&!vt)&&ot.push({from:be.from,to:de.from}),(jt>0||!le.inclusiveRight&&!jt)&&ot.push({from:de.to,to:be.to}),z.splice.apply(z,ot),fe+=ot.length-3}}return z}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(),z=y.find(),ie=Qe(b.from,z.from)||Ir(a)-Ir(y);if(ie)return-ie;var le=Qe(b.to,z.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 z=void 0,ie=0;ie<x.length;++ie)z=x[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||_r(b,z.marker)<0)&&(b=z.marker);return b}function Yn(a){return fr(a,!0)}function pn(a){return fr(a,!1)}function En(a,y){var x=tr&&a.markedSpans,b;if(x)for(var z=0;z<x.length;++z){var ie=x[z];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!b||_r(b,ie.marker)<0)&&(b=ie.marker)}return b}function Cn(a,y,x,b,z){var ie=Bt(a,y),le=tr&&ie.markedSpans;if(le)for(var de=0;de<le.length;++de){var fe=le[de];if(fe.marker.collapsed){var be=fe.marker.find(0),ot=Qe(be.from,x)||Ir(fe.marker)-Ir(z),vt=Qe(be.to,b)||Dr(fe.marker)-Dr(z);if(!(ot>=0&&vt<=0||ot<=0&&vt>=0)&&(ot<=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Qe(be.to,x)>=0:Qe(be.to,x)>0)||ot>=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Qe(be.from,b)<=0:Qe(be.from,b)<0)))return!0}}}function sn(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function _n(a){for(var y;y=pn(a);)a=y.find(1,!0).line;return a}function jn(a){for(var y,x;y=pn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function mn(a,y){var x=Bt(a,y),b=sn(x);return x==b?y:Xe(b)}function yn(a,y){if(y>a.lastLine())return y;var x=Bt(a,y),b;if(!Nn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Xe(x)+1}function Nn(a,y){var x=tr&&y.markedSpans;if(x){for(var b=void 0,z=0;z<x.length;++z)if(b=x[z],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&Rn(a,y,b))return!0}}}function Rn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Rn(a,b.line,vr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,ie=0;ie<y.markedSpans.length;++ie)if(z=y.markedSpans[ie],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&Rn(a,y,z))return!0}function rr(a){a=sn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var z=x.lines[b];if(z==a)break;y+=z.height}for(var ie=x.parent;ie;x=ie,ie=x.parent)for(var le=0;le<ie.children.length;++le){var de=ie.children[le];if(de==x)break;y+=de.height}return y}function Pr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Yn(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=pn(b);){var ie=x.find(0,!0);y-=b.text.length-ie.from.ch,b=ie.to.line,y+=b.text.length-ie.to.ch}return y}function br(a){var y=a.display,x=a.doc;y.maxLine=Bt(x,x.first),y.maxLineLength=Pr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var z=Pr(b);z>y.maxLineLength&&(y.maxLineLength=z,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 Xe(this)},ze(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 z=b?b(a):1;z!=a.height&&hn(a,z)}function Br(a){a.parent=null,Er(a)}var $r={},Tr={};function Zr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Tr:$r;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=ht("span",null,null,Ie?"padding-right: .1px":null),b={pre:ht("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,le=void 0;b.pos=0,b.addToken=Fi,Pn(a.display.measure)&&(le=Ht(ie,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var de=y!=a.display.externalMeasured&&Xe(ie);Lr(ie,b,Xn(a,ie,de)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=$e(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=$e(ie.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(ln(a.display.measure))),z==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(Ie){var fe=b.content.lastChild;(/\bcm-tab\b/.test(fe.className)||fe.querySelector&&fe.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return rn(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=$e(b.pre.className,b.textClass||"")),b}function Oi(a){var y=Ve("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,z,ie,le){if(y){var de=a.splitSpaces?xi(y,a.trailingSpace):y,fe=a.cm.state.specialChars,be=!1,ot;if(!fe.test(y))a.col+=y.length,ot=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,ot),Se&&ke<9&&(be=!0),a.pos+=y.length;else{ot=document.createDocumentFragment();for(var vt=0;;){fe.lastIndex=vt;var jt=fe.exec(y),_t=jt?jt.index-vt:y.length-vt;if(_t){var cn=document.createTextNode(de.slice(vt,vt+_t));Se&&ke<9?ot.appendChild(Ve("span",[cn])):ot.appendChild(cn),a.map.push(a.pos,a.pos+_t,cn),a.col+=_t,a.pos+=_t}if(!jt)break;vt+=_t+1;var On=void 0;if(jt[0]==" "){var Ln=a.cm.options.tabSize,$n=Ln-a.col%Ln;On=ot.appendChild(Ve("span",Mt($n),"cm-tab")),On.setAttribute("role","presentation"),On.setAttribute("cm-text"," "),a.col+=$n}else jt[0]=="\r"||jt[0]==`
`?(On=ot.appendChild(Ve("span",jt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),On.setAttribute("cm-text",jt[0]),a.col+=1):(On=a.cm.options.specialCharPlaceholder(jt[0]),On.setAttribute("cm-text",jt[0]),Se&&ke<9?ot.appendChild(Ve("span",[On])):ot.appendChild(On),a.col+=1);a.map.push(a.pos,a.pos+1,On),a.pos++}}if(a.trailingSpace=de.charCodeAt(y.length-1)==32,x||b||z||be||ie||le){var Vn=x||"";b&&(Vn+=b),z&&(Vn+=z);var zn=Ve("span",[ot],Vn,ie);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(ot)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),b+=ie,x=ie==" "}return b}function mi(a,y){return function(x,b,z,ie,le,de,fe){z=z?z+" cm-force-border":"cm-force-border";for(var be=x.pos,ot=be+b.length;;){for(var vt=void 0,jt=0;jt<y.length&&(vt=y[jt],!(vt.to>be&&vt.from<=be));jt++);if(vt.to>=ot)return a(x,b,z,ie,le,de,fe);a(x,b.slice(0,vt.to-be),z,ie,null,de,fe),ie=null,b=b.slice(vt.to-be),be=vt.to}}}function Xi(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Lr(a,y,x){var b=a.markedSpans,z=a.text,ie=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,z.slice(ie,ie=x[le]),Zr(x[le+1],y.cm.options));return}for(var de=z.length,fe=0,be=1,ot="",vt,jt,_t=0,cn,On,Ln,$n,Vn;;){if(_t==fe){cn=On=Ln=jt="",Vn=null,$n=null,_t=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==fe&&wr.widgetNode)zn.push(wr);else if(nr.from<=fe&&(nr.to==null||nr.to>fe||wr.collapsed&&nr.to==fe&&nr.from==fe)){if(nr.to!=null&&nr.to!=fe&&_t>nr.to&&(_t=nr.to,On=""),wr.className&&(cn+=" "+wr.className),wr.css&&(jt=(jt?jt+";":"")+wr.css),wr.startStyle&&nr.from==fe&&(Ln+=" "+wr.startStyle),wr.endStyle&&nr.to==_t&&(Kn||(Kn=[])).push(wr.endStyle,nr.to),wr.title&&((Vn||(Vn={})).title=wr.title),wr.attributes)for(var jr in wr.attributes)(Vn||(Vn={}))[jr]=wr.attributes[jr];wr.collapsed&&(!$n||_r($n.marker,wr)<0)&&($n=nr)}else nr.from>fe&&_t>nr.from&&(_t=nr.from)}if(Kn)for(var li=0;li<Kn.length;li+=2)Kn[li+1]==_t&&(On+=" "+Kn[li]);if(!$n||$n.from==fe)for(var Ur=0;Ur<zn.length;++Ur)Xi(y,0,zn[Ur]);if($n&&($n.from||0)==fe){if(Xi(y,($n.to==null?de+1:$n.to)-fe,$n.marker,$n.from==null),$n.to==null)return;$n.to==fe&&($n=!1)}}if(fe>=de)break;for(var Ti=Math.min(de,_t);;){if(ot){var Ei=fe+ot.length;if(!$n){var qr=Ei>Ti?ot.slice(0,Ti-fe):ot;y.addToken(y,qr,vt?vt+cn:cn,Ln,fe+qr.length==_t?On:"",jt,Vn)}if(Ei>=Ti){ot=ot.slice(Ti-fe),fe=Ti;break}fe=Ei,Ln=""}ot=z.slice(ie,ie=x[be++]),vt=Zr(x[be++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=jn(y),this.size=this.rest?Xe(Fe(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Nn(a,y)}function ni(a,y,x){for(var b=[],z,ie=y;ie<x;ie=z){var le=new to(a.doc,Bt(a.doc,ie),ie);z=ie+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 z=a.ops[b];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.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 Vr(a,y){var x=tn(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;Li?z=Li.delayedCallbacks:Ai?z=Ai:(z=Ai=[],setTimeout(_i,0));for(var ie=function(de){z.push(function(){return x[de].apply(null,b)})},le=0;le<x.length;++le)ie(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 z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?so(a,y):ie=="gutter"?yr(a,y,x,b):ie=="class"?ar(a,y):ie=="widget"&&hr(a,y,b)}y.changes=null}function Wi(a){return a.node==a.text&&(a.node=Ve("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Se&&ke<8&&(a.node.style.zIndex=2)),a.node}function Jr(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=Wi(y);y.background=b.insertBefore(Ve("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){Jr(a,y),y.line.wrapClass?Wi(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 z=Wi(y);y.gutterBackground=Ve("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),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var le=Wi(y),de=y.gutter=Ve("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(de),le.insertBefore(de,y.text),y.line.gutterClass&&(de.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=de.appendChild(Ve("div",Ye(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var be=a.display.gutterSpecs[fe].className,ot=ie.hasOwnProperty(be)&&ie[be];ot&&de.appendChild(Ve("div",[ot],"CodeMirror-gutter-elt","left: "+b.gutterLeft[be]+"px; width: "+b.gutterWidth[be]+"px"))}}}function hr(a,y,x){y.alignable&&(y.alignable=null);for(var b=tt("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,b.test(z.className)&&y.node.removeChild(z);Nr(a,y,x)}function pr(a,y,x,b){var z=xo(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),ar(a,y),yr(a,y,x,b),Nr(a,y,b),y.node}function Nr(a,y,x){if(Wr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Wr(a,y.rest[b],y,x,!1)}function Wr(a,y,x,b,z){if(y.widgets)for(var ie=Wi(x),le=0,de=y.widgets;le<de.length;++le){var fe=de[le],be=Ve("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||be.setAttribute("cm-ignore-events","true"),ji(fe,be,x,b),a.display.input.setUneditable(be),z&&fe.above?ie.insertBefore(be,x.gutter||x.text):ie.appendChild(be),Vr(fe,"redraw")}}function ji(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var z=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(z-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=z+"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(!Re(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;"),Ne(y.display.measure,Ve("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=rt(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 $i(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=Ne(a.measure,Ve("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 ki(a){return Pt-a.display.nativeBarWidth}function Ji(a){return a.display.scroller.clientWidth-ki(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-ki(a)-a.display.barHeight}function Zi(a,y,x){var b=a.options.lineWrapping,z=b&&Ji(a);if(!y.measure.heights||b&&y.measure.width!=z){var ie=y.measure.heights=[];if(b){y.measure.width=z;for(var le=y.text.firstChild.getClientRects(),de=0;de<le.length-1;de++){var fe=le[de],be=le[de+1];Math.abs(fe.bottom-be.bottom)>2&&ie.push((fe.bottom+be.top)/2-x.top)}}ie.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 z=0;z<a.rest.length;z++)if(Xe(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function Za(a,y){y=sn(y);var x=Xe(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var z=b.built=ti(a,b);return b.text=z.pre,Ne(a.display.lineMeasure,z.pre),b}function ya(a,y,x,b){return zi(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=Xe(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=Za(a,y));var z=Do(b,y,x);return{line:y,view:b,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function zi(a,y,x,b,z){y.before&&(x=-1);var ie=x+(b||""),le;return y.cache.hasOwnProperty(ie)?le=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Zi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[ie]=le)),{left:le.left,right:le.right,top:z?le.rtop:le.top,bottom:z?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,z,ie,le,de,fe,be=0;be<a.length;be+=3)if(de=a[be],fe=a[be+1],y<de?(z=0,ie=1,le="left"):y<fe?(z=y-de,ie=z+1):(be==a.length-3||y==fe&&a[be+3]>y)&&(ie=fe-de,z=ie-1,y>=fe&&(le="right")),z!=null){if(b=a[be+2],de==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&z==0)for(;be&&a[be-2]==a[be-3]&&a[be-1].insertLeft;)b=a[(be-=3)+2],le="left";if(x=="right"&&z==fe-de)for(;be<a.length-3&&a[be+3]==a[be+4]&&!a[be+5].insertLeft;)b=a[(be+=3)+2],le="right";break}return{node:b,start:z,end:ie,collapse:le,coverStart:de,coverEnd:fe}}function Va(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function Ca(a,y,x,b){var z=xa(y.map,x,b),ie=z.node,le=z.start,de=z.end,fe=z.collapse,be;if(ie.nodeType==3){for(var ot=0;ot<4;ot++){for(;le&&ge(y.line.text.charAt(z.coverStart+le));)--le;for(;z.coverStart+de<z.coverEnd&&ge(y.line.text.charAt(z.coverStart+de));)++de;if(Se&&ke<9&&le==0&&de==z.coverEnd-z.coverStart?be=ie.parentNode.getBoundingClientRect():be=Va(Ce(ie,le,de).getClientRects(),b),be.left||be.right||le==0)break;de=le,le=le-1,fe="right"}Se&&ke<11&&(be=Ga(a.display.measure,be))}else{le>0&&(fe=b="right");var vt;a.options.lineWrapping&&(vt=ie.getClientRects()).length>1?be=vt[b=="right"?vt.length-1:0]:be=ie.getBoundingClientRect()}if(Se&&ke<9&&!le&&(!be||!be.left&&!be.right)){var jt=ie.parentNode.getClientRects()[0];jt?be={left:jt.left,right:jt.left+Gi(a.display),top:jt.top,bottom:jt.bottom}:be=ba}for(var _t=be.top-y.rect.top,cn=be.bottom-y.rect.top,On=(_t+cn)/2,Ln=y.view.measure.heights,$n=0;$n<Ln.length-1&&!(On<Ln[$n]);$n++);var Vn=$n?Ln[$n-1]:0,zn=Ln[$n],Kn={left:(fe=="right"?be.right:be.left)-y.rect.left,right:(fe=="left"?be.left:be.right)-y.rect.left,top:Vn,bottom:zn};return!be.left&&!be.right&&(Kn.bogus=!0),a.options.singleCursorHeightPerLine||(Kn.rtop=_t,Kn.rbottom=cn),Kn}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Lt(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,gt(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 Pe&&Ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Pe&&Ae?-(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,z){if(!z){var ie=Yo(y);x.top+=ie,x.bottom+=ie}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 de=a.display.lineSpace.getBoundingClientRect();le+=de.top+(b=="window"?0:Sa());var fe=de.left+(b=="window"?0:Xo());x.left+=fe,x.right+=fe}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,z=y.top;if(x=="page")b-=Xo(),z-=Sa();else if(x=="local"||!x){var ie=a.display.sizer.getBoundingClientRect();b+=ie.left,z+=ie.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:z-le.top}}function To(a,y,x,b,z){return b||(b=Bt(a.doc,y.line)),Bo(a,b,ya(a,b,y.ch,z),x)}function Ci(a,y,x,b,z,ie){b=b||Bt(a.doc,y.line),z||(z=uo(a,b));function le(cn,On){var Ln=zi(a,z,cn,On?"right":"left",ie);return On?Ln.left=Ln.right:Ln.right=Ln.left,Bo(a,b,Ln,x)}var de=Ht(b,a.doc.direction),fe=y.ch,be=y.sticky;if(fe>=b.text.length?(fe=b.text.length,be="before"):fe<=0&&(fe=0,be="after"),!de)return le(be=="before"?fe-1:fe,be=="before");function ot(cn,On,Ln){var $n=de[On],Vn=$n.level==1;return le(Ln?cn-1:cn,Vn!=Ln)}var vt=St(de,fe,be),jt=nt,_t=ot(fe,vt,be=="before");return jt!=null&&(_t.other=ot(fe,jt,be!="before")),_t}function kr(a,y){var x=0;y=Ft(a.doc,y),a.options.lineWrapping||(x=Gi(a.display)*y.ch);var b=Bt(a.doc,y.line),z=rr(b)+Xr(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function xr(a,y,x,b,z){var ie=Me(a,y,x);return ie.xRel=z,b&&(ie.outside=b),ie}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 z=st(b,x),ie=b.first+b.size-1;if(z>ie)return xr(b.first+b.size-1,Bt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=Bt(b,z);;){var de=Vi(a,le,z,y,x),fe=En(le,de.ch+(de.xRel>0||de.outside>0?1:0));if(!fe)return de;var be=fe.find(1);if(be.line==z)return be;le=Bt(b,z=be.line)}}function fi(a,y,x,b){b-=Yo(y);var z=y.text.length,ie=xe(function(le){return zi(a,x,le-1).bottom<=b},z,0);return z=xe(function(le){return zi(a,x,le).top>b},ie,z),{begin:ie,end:z}}function Yr(a,y,x,b){x||(x=uo(a,y));var z=Bo(a,y,zi(a,x,b),"line").top;return fi(a,y,x,z)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,z){z-=rr(y);var ie=uo(a,y),le=Yo(y),de=0,fe=y.text.length,be=!0,ot=Ht(y,a.doc.direction);if(ot){var vt=(a.options.lineWrapping?ro:Hi)(a,y,x,ie,ot,b,z);be=vt.level!=1,de=be?vt.from:vt.to-1,fe=be?vt.to:vt.from-1}var jt=null,_t=null,cn=xe(function(sr){var nr=zi(a,ie,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,z,!1)?(nr.top<=z&&nr.left<=b&&(jt=sr,_t=nr),!0):!1},de,fe),On,Ln,$n=!1;if(_t){var Vn=b-_t.left<_t.right-b,zn=Vn==be;cn=jt+(zn?0:1),Ln=zn?"after":"before",On=Vn?_t.left:_t.right}else{!be&&(cn==fe||cn==de)&&cn++,Ln=cn==0?"after":cn==y.text.length?"before":zi(a,ie,cn-(be?1:0)).bottom+le<=z==be?"after":"before";var Kn=Ci(a,Me(x,cn,Ln),"line",y,ie);On=Kn.left,$n=z<Kn.top?-1:z>=Kn.bottom?1:0}return cn=We(y.text,cn,1),xr(x,cn,Ln,$n,b-On)}function Hi(a,y,x,b,z,ie,le){var de=xe(function(vt){var jt=z[vt],_t=jt.level!=1;return ri(Ci(a,Me(x,_t?jt.to:jt.from,_t?"before":"after"),"line",y,b),ie,le,!0)},0,z.length-1),fe=z[de];if(de>0){var be=fe.level!=1,ot=Ci(a,Me(x,be?fe.from:fe.to,be?"after":"before"),"line",y,b);ri(ot,ie,le,!0)&&ot.top>le&&(fe=z[de-1])}return fe}function ro(a,y,x,b,z,ie,le){var de=fi(a,y,b,le),fe=de.begin,be=de.end;/\s/.test(y.text.charAt(be-1))&&be--;for(var ot=null,vt=null,jt=0;jt<z.length;jt++){var _t=z[jt];if(!(_t.from>=be||_t.to<=fe)){var cn=_t.level!=1,On=zi(a,b,cn?Math.min(be,_t.to)-1:Math.max(fe,_t.from)).right,Ln=On<ie?ie-On+1e9:On-ie;(!ot||vt>Ln)&&(ot=_t,vt=Ln)}}return ot||(ot=z[z.length-1]),ot.from<fe&&(ot={from:fe,to:ot.to,level:ot.level}),ot.to>be&&(ot={from:ot.from,to:be,level:ot.level}),ot}var Mi;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Mi==null){Mi=Ve("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Mi.appendChild(document.createTextNode("x")),Mi.appendChild(Ve("br"));Mi.appendChild(document.createTextNode("x"))}Ne(a.measure,Mi);var x=Mi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),gt(a.measure),x||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ve("span","xxxxxxxxxx"),x=Ve("pre",[y],"CodeMirror-line-like");Ne(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function co(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var de=a.display.gutterSpecs[le].className;x[de]=ie.offsetLeft+ie.clientLeft+z,b[de]=ie.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/Gi(a.display)-3);return function(z){if(Nn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var le=0;le<z.widgets.length;le++)z.widgets[le].height&&(ie+=z.widgets[le].height);return x?ie+(Math.ceil(z.text.length/b)||1)*y:ie+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var z=x(b);z!=b.height&&hn(b,z)})}function So(a,y,x,b){var z=a.display;if(!x&&rt(y).getAttribute("cm-not-content")=="true")return null;var ie,le,de=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-de.left,le=y.clientY-de.top}catch(vt){return null}var fe=ci(a,ie,le),be;if(b&&fe.xRel>0&&(be=Bt(a.doc,fe.line).text).length==fe.ch){var ot=me(be,be.length,a.options.tabSize)-be.length;fe=Me(fe.line,Math.max(0,Math.round((ie-Qi(a.display).left)/Gi(a.display))-ot))}return fe}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 z=a.display;if(b&&x<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)tr&&mn(a.doc,y)<z.viewTo&&ho(a);else if(x<=z.viewFrom)tr&&yn(a.doc,x+b)>z.viewFrom?ho(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)ho(a);else if(y<=z.viewFrom){var ie=Ea(a,x,x+b,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=b):ho(a)}else if(x>=z.viewTo){var le=Ea(a,y,y,-1);le?(z.view=z.view.slice(0,le.index),z.viewTo=le.lineN):ho(a)}else{var de=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);de&&fe?(z.view=z.view.slice(0,de.index).concat(ni(a,de.lineN,fe.lineN)).concat(z.view.slice(fe.index)),z.viewTo+=b):ho(a)}var be=z.externalMeasured;be&&(x<be.lineN?be.lineN+=b:y<be.lineN+be.size&&(z.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);je(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 z=wo(a,y),ie,le=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var de=a.display.viewFrom,fe=0;fe<z;fe++)de+=le[fe].size;if(de!=y){if(b>0){if(z==le.length-1)return null;ie=de+le[z].size-y,z++}else ie=de-y;y+=ie,x+=ie}for(;mn(a.doc,x)!=x;){if(z==(b<0?0:le.length-1))return null;x+=b*le[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function $s(a,y,x){var b=a.display,z=b.view;z.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 z=y[b];!z.hidden&&(!z.node||z.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),ie=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var de=x.sel.ranges[le];if(!(de.from().line>=a.display.viewTo||de.to().line<a.display.viewFrom)){var fe=de.empty();(fe||a.options.showCursorWhenSelecting)&&El(a,de.head,z),fe||zs(a,de,ie)}}return b}function El(a,y,x){var b=Ci(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(Ve("div","\xA0","CodeMirror-cursor"));if(z.style.left=b.left+"px",z.style.top=b.top+"px",z.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ie=x.appendChild(Ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=b.other.left+"px",ie.style.top=b.other.top+"px",ie.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function zs(a,y,x){var b=a.display,z=a.doc,ie=document.createDocumentFragment(),le=Qi(a.display),de=le.left,fe=Math.max(b.sizerWidth,Ji(a)-b.sizer.offsetLeft)-le.right,be=z.direction=="ltr";function ot(zn,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),ie.appendChild(Ve("div",null,"CodeMirror-selected","position: absolute; left: "+zn+`px;
top: `+Kn+"px; width: "+(sr==null?fe-zn:sr)+`px;
height: `+(nr-Kn)+"px"))}function vt(zn,Kn,sr){var nr=Bt(z,zn),wr=nr.text.length,jr,li;function Ur(qr,Ii){return To(a,Me(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=Ht(nr,z.direction);return Ge(Ei,Kn||0,sr==null?wr:sr,function(qr,Ii,di,ii){var ei=di=="ltr",Kr=Ur(qr,ei?"left":"right"),Pi=Ur(Ii-1,ei?"right":"left"),Vo=Kn==null&&qr==0,bo=sr==null&&Ii==wr,pi=ii==0,eo=!Ei||ii==Ei.length-1;if(Pi.top-Kr.top<=3){var si=(be?Vo:bo)&&pi,bl=(be?bo:Vo)&&eo,oo=si?de:(ei?Kr:Pi).left,ko=bl?fe:(ei?Pi:Kr).right;ot(oo,Kr.top,ko-oo,Kr.bottom)}else{var Mo,bi,Go,xl;ei?(Mo=be&&Vo&&pi?de:Kr.left,bi=be?fe:Ti(qr,di,"before"),Go=be?de:Ti(Ii,di,"after"),xl=be&&bo&&eo?fe:Pi.right):(Mo=be?Ti(qr,di,"before"):de,bi=!be&&Vo&&pi?fe:Kr.right,Go=!be&&bo&&eo?de:Pi.left,xl=be?Ti(Ii,di,"after"):fe),ot(Mo,Kr.top,bi-Mo,Kr.bottom),Kr.bottom<Pi.top&&ot(de,Kr.bottom,null,Pi.top),ot(Go,Pi.top,xl-Go,Pi.bottom)}(!jr||Ia(Kr,jr)<0)&&(jr=Kr),Ia(Pi,jr)<0&&(jr=Pi),(!li||Ia(Kr,li)<0)&&(li=Kr),Ia(Pi,li)<0&&(li=Pi)}),{start:jr,end:li}}var jt=y.from(),_t=y.to();if(jt.line==_t.line)vt(jt.line,jt.ch,_t.ch);else{var cn=Bt(z,jt.line),On=Bt(z,_t.line),Ln=sn(cn)==sn(On),$n=vt(jt.line,jt.ch,Ln?cn.text.length+1:null).end,Vn=vt(_t.line,Ln?0:null,_t.ch).start;Ln&&($n.top<Vn.top-2?(ot($n.right,$n.top,null,$n.bottom),ot(de,Vn.top,Vn.left,Vn.bottom)):ot($n.right,$n.top,Vn.left-$n.right,$n.bottom)),$n.bottom<Vn.top&&ot(de,$n.bottom,null,Vn.top)}x.appendChild(ie)}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 Pl(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||(rn(a,"focus",a,y),a.state.focused=!0,se(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ie&&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&&(rn(a,"blur",a,y),a.state.focused=!1,Ke(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],ie=a.options.lineWrapping,le=void 0,de=0;if(!z.hidden){if(Se&&ke<8){var fe=z.node.offsetTop+z.node.offsetHeight;le=fe-x,x=fe}else{var be=z.node.getBoundingClientRect();le=be.bottom-be.top,!ie&&z.text.firstChild&&(de=z.text.firstChild.getBoundingClientRect().right-be.left-1)}var ot=z.line.height-le;if((ot>.005||ot<-.005)&&(hn(z.line,le),Ol(z.line),z.rest))for(var vt=0;vt<z.rest.length;vt++)Ol(z.rest[vt]);if(de>a.display.sizerWidth){var jt=Math.ceil(de/Gi(a.display));jt>a.display.maxLineLength&&(a.display.maxLineLength=jt,a.display.maxLine=z.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 z=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ie=st(y,b),le=st(y,z);if(x&&x.ensure){var de=x.ensure.from.line,fe=x.ensure.to.line;de<ie?(ie=de,le=st(y,rr(Bt(y,de))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=le&&(ie=st(y,rr(Bt(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:ie,to:Math.max(le,ie+1)}}function Hs(a,y){if(!Ot(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!Ct){var ie=Ve("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Xr(a.display))+`px;
height: `+(y.bottom-y.top+ki(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function Ws(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?Me(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Me(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,de=Ci(a,y),fe=!x||x==y?de:Ci(a,x);z={left:Math.min(de.left,fe.left),top:Math.min(de.top,fe.top)-b,right:Math.max(de.left,fe.left),bottom:Math.max(de.bottom,fe.bottom)+b};var be=Qa(a,z),ot=a.doc.scrollTop,vt=a.doc.scrollLeft;if(be.scrollTop!=null&&(qo(a,be.scrollTop),Math.abs(a.doc.scrollTop-ot)>1&&(le=!0)),be.scrollLeft!=null&&(Eo(a,be.scrollLeft),Math.abs(a.doc.scrollLeft-vt)>1&&(le=!0)),!le)break}return z}function js(a,y){var x=Qa(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Qa(a,y){var x=a.display,b=Di(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=no(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var de=a.doc.height+$i(x),fe=y.top<b,be=y.bottom>de-b;if(y.top<z)le.scrollTop=fe?0:y.top;else if(y.bottom>z+ie){var ot=Math.min(y.top,(be?de:y.bottom)-ie);ot!=z&&(le.scrollTop=ot)}var vt=a.options.fixedGutter?0:x.gutters.offsetWidth,jt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-vt,_t=Ji(a)-x.gutters.offsetWidth,cn=y.right-y.left>_t;return cn&&(y.right=y.left+_t),y.left<10?le.scrollLeft=0:y.left<jt?le.scrollLeft=Math.max(0,y.left+vt-(cn?0:10)):y.right>_t+jt-3&&(le.scrollLeft=y.right+(cn?0:10)-_t),le}function Ja(a,y){y!=null&&(ka(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){ka(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Jo(a,y,x){(y!=null||x!=null)&&ka(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Zs(a,y){ka(a),a.curOp.scrollToPos=y}function ka(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=kr(a,y.from),b=kr(a,y.to);kl(a,x,b,y.margin)}}function kl(a,y,x,b){var z=Qa(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Jo(a,z.scrollLeft,z.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||el(a,{top:y}),Ml(a,y,!0),E&&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+$i(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+ki(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=Ve("div",[Ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Ve("div",[Ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),$t(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),$t(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&ke<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 z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"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 ie=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"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=He&&!Ee?"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 z=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=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 z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(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&&Ke(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),$t(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&&se(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Po(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Vs},ao(a.curOp)}function 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;Gs(x)})}function Gs(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 z=0;z<y.length;z++)Xs(y[z]);for(var ie=0;ie<y.length;ie++)Ys(y[ie]);for(var le=0;le<y.length;le++)Qs(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&&Pa(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+ki(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Ji(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==_e();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 Qs(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 z=Ws(y,Ft(b,a.scrollToPos.from),Ft(b,a.scrollToPos.to),a.scrollToPos.margin);Hs(y,z)}var ie=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(ie)for(var de=0;de<ie.length;++de)ie[de].lines.length||rn(ie[de],"hide");if(le)for(var fe=0;fe<le.length;++fe)le[fe].lines.length&&rn(le[fe],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&rn(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Bi(a,y){if(a.curOp)return y();Po(a);try{return y()}finally{Oo(a)}}function oi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Po(a);try{return y.apply(a,arguments)}finally{Oo(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);Po(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);Po(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,we(Js,a))}function Js(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Qn(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,de=ie.text.length>a.options.maxHighlightLength?Mn(y.mode,b.state):null,fe=Bn(a,ie,b,!0);de&&(b.state=de),ie.styles=fe.styles;var be=ie.styleClasses,ot=fe.classes;ot?ie.styleClasses=ot:be&&(ie.styleClasses=null);for(var vt=!le||le.length!=ie.styles.length||be!=ot&&(!be||!ot||be.bgClass!=ot.bgClass||be.textClass!=ot.textClass),jt=0;!vt&&jt<le.length;++jt)vt=le[jt]!=ie.styles[jt];vt&&z.push(b.line),ie.stateAfter=b.save(),b.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&Jn(a,ie.text,b),ie.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),z.length&&Bi(a,function(){for(var ie=0;ie<z.length;ie++)fo(a,z[ie],"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=Ji(a),this.force=x,this.dims=co(a),this.events=[]};Ma.prototype.signal=function(a,y){Vt(a,y)&&this.events.push(arguments)},Ma.prototype.finish=function(){for(var a=0;a<this.events.length;a++)rn.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=ki(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=ki(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=_e();if(!y||!Re(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Re(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==_e())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Re(document.body,a.anchorNode)&&Re(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 z=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(z,x.viewTo)),tr&&(ie=mn(a.doc,ie),le=yn(a.doc,le));var de=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;$s(a,ie,le),x.viewOffset=rr(Bt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var fe=Sl(a);if(!de&&fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var be=eu(a);return fe>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),fe>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(be),gt(x.cursorDiv),gt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,de&&(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==Ji(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+$i(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;Pa(a);var z=ea(a);Qo(a),No(a,z),nl(a,z),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)){Pa(a),Ll(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,z=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function de(cn){var On=cn.nextSibling;return Ie&&He&&a.display.currentWheelTarget==cn?cn.style.display="none":cn.parentNode.removeChild(cn),On}for(var fe=b.view,be=b.viewFrom,ot=0;ot<fe.length;ot++){var vt=fe[ot];if(!vt.hidden)if(!vt.node||vt.node.parentNode!=ie){var jt=pr(a,vt,be,x);ie.insertBefore(jt,le)}else{for(;le!=vt.node;)le=de(le);var _t=z&&y!=null&&y<=be&&vt.lineNumber;vt.changes&&(je(vt.changes,"gutter")>-1&&(_t=!1),lo(a,vt,be,x)),_t&&(gt(vt.lineNumber),vt.lineNumber.appendChild(document.createTextNode(Ye(a.options,be)))),le=vt.node.nextSibling}be+=vt.size}for(;le;)le=de(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+ki(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,z=y.gutters.offsetWidth,ie=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=ie),x[le].gutterBackground&&(x[le].gutterBackground.style.left=ie));var de=x[le].alignable;if(de)for(var fe=0;fe<de.length;fe++)de[fe].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Ye(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(Ve("div",[Ve("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,le=z.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,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,z=0;z<a.length;z++){var ie=a[z],le=null;if(typeof ie!="string"&&(le=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;gt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],ie=z.className,le=z.style,de=y.appendChild(Ve("div",null,"CodeMirror-gutter "+ie));le&&(de.style.cssText=le),ie=="CodeMirror-linenumbers"&&(a.lineGutter=de,de.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 z=this;this.input=x,z.scrollbarFiller=Ve("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Ve("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=ht("div",null,"CodeMirror-code"),z.selectionDiv=Ve("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Ve("div",null,"CodeMirror-cursors"),z.measure=Ve("div",null,"CodeMirror-measure"),z.lineMeasure=Ve("div",null,"CodeMirror-measure"),z.lineSpace=ht("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=ht("div",[z.lineSpace],"CodeMirror-lines");z.mover=Ve("div",[ie],null,"position: relative"),z.sizer=Ve("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Ve("div",null,null,"position: absolute; height: "+Pt+"px; width: 1px;"),z.gutters=Ve("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Ve("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Ve("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Se&&ke<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Ie&&!(E&&Ue)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=rl(b.gutters,b.lineNumbers),Rl(z),x.init(z)}var Da=0,Ni=null;Se?Ni=-.53:E?Ni=15:Pe?Ni=-.7:Je&&(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,z=x.y,ie=a.display,le=ie.scroller,de=le.scrollWidth>le.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&de||z&&fe){if(z&&He&&Ie){e:for(var be=y.target,ot=ie.view;be!=le;be=be.parentNode)for(var vt=0;vt<ot.length;vt++)if(ot[vt].node==be){a.display.currentWheelTarget=be;break e}}if(b&&!E&&!he&&Ni!=null){z&&fe&&qo(a,Math.max(0,le.scrollTop+z*Ni)),Eo(a,Math.max(0,le.scrollLeft+b*Ni)),(!z||z&&fe)&&dt(y),ie.wheelStartX=null;return}if(z&&Ni!=null){var jt=z*Ni,_t=a.doc.scrollTop,cn=_t+ie.wrapper.clientHeight;jt<0?_t=Math.max(0,_t+jt-50):cn=Math.min(a.doc.height,cn+jt+50),el(a,{top:_t,bottom:cn})}Da<20&&(ie.wheelStartX==null?(ie.wheelStartX=le.scrollLeft,ie.wheelStartY=le.scrollTop,ie.wheelDX=b,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var On=le.scrollLeft-ie.wheelStartX,Ln=le.scrollTop-ie.wheelStartY,$n=Ln&&ie.wheelDY&&Ln/ie.wheelDY||On&&ie.wheelDX&&On/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,$n&&(Ni=(Ni*Da+$n)/(Da+1),++Da)}},200)):(ie.wheelDX+=b,ie.wheelDY+=z))}}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(!It(x.anchor,b.anchor)||!It(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(an(this.ranges[y].anchor),an(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(Qe(y,b.from())>=0&&Qe(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return vn(this.anchor,this.head)},Fr.prototype.to=function(){return un(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,z=y[x];y.sort(function(jt,_t){return Qe(jt.from(),_t.from())}),x=je(y,z);for(var ie=1;ie<y.length;ie++){var le=y[ie],de=y[ie-1],fe=Qe(de.to(),le.from());if(b&&!le.empty()?fe>0:fe>=0){var be=vn(de.from(),le.from()),ot=un(de.to(),le.to()),vt=de.empty()?le.from()==le.head:de.from()==de.head;ie<=x&&--x,y.splice(--ie,2,new Fr(vt?ot:be,vt?be:ot))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?Me(a.from.line+a.text.length-1,Fe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $l(a,y){if(Qe(a,y.from)<0)return a;if(Qe(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),Me(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var z=a.sel.ranges[b];x.push(new Fr($l(z.anchor,y),$l(z.head,y)))}return Ui(a.cm,x,a.sel.primIndex)}function zl(a,y,x){return a.line==y.line?Me(x.line,a.ch-y.ch+x.ch):Me(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],z=Me(a.first,0),ie=z,le=0;le<y.length;le++){var de=y[le],fe=zl(de.from,z,ie),be=zl(mo(de),z,ie);if(z=de.to,ie=be,x=="around"){var ot=a.sel.ranges[le],vt=Qe(ot.head,ot.anchor)<0;b[le]=new Fr(vt?be:fe,vt?fe:be)}else b[le]=new Fr(fe,fe)}return new Ri(b,a.sel.primIndex)}function ol(a){a.doc.mode=gn(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 Hl(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 z(Vn){return x?x[Vn]:null}function ie(Vn,zn,Kn){Or(Vn,zn,Kn,b),Vr(Vn,"change",Vn,y)}function le(Vn,zn){for(var Kn=[],sr=Vn;sr<zn;++sr)Kn.push(new Mr(be[sr],z(sr),b));return Kn}var de=y.from,fe=y.to,be=y.text,ot=Bt(a,de.line),vt=Bt(a,fe.line),jt=Fe(be),_t=z(be.length-1),cn=fe.line-de.line;if(y.full)a.insert(0,le(0,be.length)),a.remove(be.length,a.size-be.length);else if(Hl(a,y)){var On=le(0,be.length-1);ie(vt,vt.text,_t),cn&&a.remove(de.line,cn),On.length&&a.insert(de.line,On)}else if(ot==vt)if(be.length==1)ie(ot,ot.text.slice(0,de.ch)+jt+ot.text.slice(fe.ch),_t);else{var Ln=le(1,be.length-1);Ln.push(new Mr(jt+ot.text.slice(fe.ch),_t,b)),ie(ot,ot.text.slice(0,de.ch)+be[0],z(0)),a.insert(de.line+1,Ln)}else if(be.length==1)ie(ot,ot.text.slice(0,de.ch)+be[0]+vt.text.slice(fe.ch),z(0)),a.remove(de.line+1,cn);else{ie(ot,ot.text.slice(0,de.ch)+be[0],z(0)),ie(vt,jt+vt.text.slice(fe.ch),_t);var $n=le(1,be.length-1);cn>1&&a.remove(de.line+1,cn-1),a.insert(de.line+1,$n)}Vr(a,"change",a,y)}function vo(a,y,x){function b(z,ie,le){if(z.linked)for(var de=0;de<z.linked.length;++de){var fe=z.linked[de];if(fe.doc!=ie){var be=le&&fe.sharedHist;x&&!be||(y(fe.doc,be),b(fe.doc,z,be))}}}b(a,null,!0)}function Wl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),jl(a),a.options.lineWrapping||br(a),a.options.mode=y.modeOption,Si(a)}function jl(a){(a.doc.direction=="rtl"?se:Ke)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Bi(a,function(){jl(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:an(y.from),to:mo(y),text:Kt(a,y.from,y.to)};return Gl(a,x,y.from.line,y.to.line+1),vo(a,function(b){return Gl(b,x,y.from.line,y.to.line+1)},!0),x}function Zl(a){for(;a.length;){var y=Fe(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Zl(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 Vl(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,le,de;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(z,z.lastOp==b)))de=Fe(le.changes),Qe(y.from,y.to)==0&&Qe(y.from,de.to)==0?de.to=mo(y):le.changes.push(ll(a,y));else{var fe=Fe(z.done);for((!fe||!fe.ranges)&&Ta(a.sel,z.done),le={changes:[ll(a,y)],generation:z.generation},z.done.push(le);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,de||rn(a,"historyAdded")}function su(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&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 z=a.history,ie=b&&b.origin;x==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||su(a,ie,Fe(z.done),y))?z.done[z.done.length-1]=y:Ta(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=x,b&&b.clearRedo!==!1&&Zl(z.undone)}function Ta(a,y){var x=Fe(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}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=[],z=0;z<y.text.length;++z)b.push(cu(x[z]));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 z=0;z<x.length;++z){var ie=x[z],le=b[z];if(ie&&le)e:for(var de=0;de<le.length;++de){for(var fe=le[de],be=0;be<ie.length;++be)if(ie[be].marker==fe.marker)continue e;ie.push(fe)}else le&&(x[z]=le)}return x}function Ro(a,y,x){for(var b=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){b.push(x?Ri.prototype.deepCopy.call(ie):ie);continue}var le=ie.changes,de=[];b.push({changes:de});for(var fe=0;fe<le.length;++fe){var be=le[fe],ot=void 0;if(de.push({from:be.from,to:be.to,text:be.text}),y)for(var vt in be)(ot=vt.match(/^spans_(\d+)$/))&&je(y,Number(ot[1]))>-1&&(Fe(de)[vt]=be[vt],delete be[vt])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=Qe(y,z)<0;ie!=Qe(x,z)<0?(z=y,y=x):ie!=Qe(y,x)<0&&(y=x)}return new Fr(z,y)}else return new Fr(x||y,y)}function La(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,z)],0),b)}function Kl(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)b[ie]=sl(a.sel.ranges[ie],y[ie],null,z);var le=Ui(a.cm,b,a.sel.primIndex);hi(a,le,x)}function ul(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,hi(a,Ui(a.cm,z,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(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new Fr(Ft(a,z[ie].anchor),Ft(a,z[ie].head))},origin:x&&x.origin};return rn(a,"beforeSelectionChange",a,b),a.cm&&rn(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,z=Fe(b);z&&z.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){(Vt(a,"beforeSelectionChange")||a.cm&&Vt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Qe(y.primary().head,a.sel.primary().head)<0?-1:1);Ql(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Ao(a.cm)}function Ql(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Yt(a.cm)),Vr(a,"cursorActivity",a))}function Jl(a){Ql(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var z,ie=0;ie<y.ranges.length;ie++){var le=y.ranges[ie],de=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],fe=Na(a,le.anchor,de&&de.anchor,x,b),be=Na(a,le.head,de&&de.head,x,b);(z||fe!=le.anchor||be!=le.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new Fr(fe,be))}return z?Ui(a.cm,z,y.primIndex):y}function Fo(a,y,x,b,z){var ie=Bt(a,y.line);if(ie.markedSpans)for(var le=0;le<ie.markedSpans.length;++le){var de=ie.markedSpans[le],fe=de.marker,be="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,ot="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((de.from==null||(be?de.from<=y.ch:de.from<y.ch))&&(de.to==null||(ot?de.to>=y.ch:de.to>y.ch))){if(z&&(rn(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var vt=fe.find(b<0?1:-1),jt=void 0;if((b<0?ot:be)&&(vt=es(a,vt,-b,vt&&vt.line==y.line?ie:null)),vt&&vt.line==y.line&&(jt=Qe(vt,x))&&(b<0?jt<0:jt>0))return Fo(a,vt,y,b,z)}var _t=fe.find(b<0?-1:1);return(b<0?be:ot)&&(_t=es(a,_t,b,_t.line==y.line?ie:null)),_t?Fo(a,_t,y,b,z):null}}return y}function Na(a,y,x,b,z){var ie=b||1,le=Fo(a,y,x,ie,z)||!z&&Fo(a,y,x,ie,!0)||Fo(a,y,x,-ie,z)||!z&&Fo(a,y,x,-ie,!0);return le||(a.cantEdit=!0,Me(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Ft(a,Me(y.line-1)):null:x>0&&y.ch==(b||Bt(a,y.line)).text.length?y.line<a.first+a.size-1?Me(y.line+1,0):null:new Me(y.line,y.ch+x)}function ts(a){a.setSelection(Me(a.firstLine(),0),Me(a.lastLine()),ve)}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(z,ie,le,de){z&&(b.from=Ft(a,z)),ie&&(b.to=Ft(a,ie)),le&&(b.text=le),de!==void 0&&(b.origin=de)}),rn(a,"beforeChange",a,b),a.cm&&rn(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(!((Vt(a,"beforeChange")||a.cm&&Vt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=er&&!x&&Hr(a,y.from,y.to);if(b)for(var z=b.length-1;z>=0;--z)rs(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&Qe(y.from,y.to)==0)){var x=il(a,y);Vl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,Sr(a,y));var b=[];vo(a,function(z,ie){!ie&&je(b,z.history)==-1&&(ls(z.history,y),b.push(z.history)),oa(z,y,null,Sr(z,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,ie,le=a.sel,de=y=="undo"?z.done:z.undone,fe=y=="undo"?z.undone:z.done,be=0;be<de.length&&(ie=de[be],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));be++);if(be!=de.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=de.pop(),ie.ranges){if(Ta(ie,fe),x&&!ie.equals(a.sel)){hi(a,ie,{clearRedo:!1});return}le=ie}else if(b){de.push(ie);return}else break;var ot=[];Ta(le,fe),fe.push({changes:ot,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var vt=Vt(a,"beforeChange")||a.cm&&Vt(a.cm,"beforeChange"),jt=function(On){var Ln=ie.changes[On];if(Ln.origin=y,vt&&!ns(a,Ln,!1))return de.length=0,{};ot.push(ll(a,Ln));var $n=On?il(a,Ln):Fe(de);oa(a,Ln,$n,Ul(a,Ln)),!On&&a.cm&&a.cm.scrollIntoView({from:Ln.from,to:mo(Ln)});var Vn=[];vo(a,function(zn,Kn){!Kn&&je(Vn,zn.history)==-1&&(ls(zn.history,Ln),Vn.push(zn.history)),oa(zn,Ln,null,Ul(zn,Ln))})},_t=ie.changes.length-1;_t>=0;--_t){var cn=jt(_t);if(cn)return cn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(At(a.sel.ranges,function(z){return new Fr(Me(z.anchor.line+y,z.anchor.ch),Me(z.head.line+y,z.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 z=y.text.length-1-(a.first-y.from.line);is(a,z),y={from:Me(a.first,0),to:Me(y.to.line+z,y.to.ch),text:[Fe(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:Me(ie,Bt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Kt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,ve),a.cantEdit&&Na(a,Me(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,z=a.display,ie=y.from,le=y.to,de=!1,fe=ie.line;a.options.lineWrapping||(fe=Xe(sn(Bt(b,ie.line))),b.iter(fe,le.line+1,function(_t){if(_t==z.maxLine)return de=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Yt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,ie.line+y.text.length,function(_t){var cn=Pr(_t);cn>z.maxLineLength&&(z.maxLine=_t,z.maxLineLength=cn,z.maxLineChanged=!0,de=!1)}),de&&(a.curOp.updateMaxLine=!0)),ir(b,ie.line),na(a,400);var be=y.text.length-(le.line-ie.line)-1;y.full?Si(a):ie.line==le.line&&y.text.length==1&&!Hl(a.doc,y)?fo(a,ie.line,"text"):Si(a,ie.line,le.line+1,be);var ot=Vt(a,"changes"),vt=Vt(a,"change");if(vt||ot){var jt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};vt&&Vr(a,"change",a,jt),ot&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(jt)}a.display.selForContextMenu=null}function $o(a,y,x,b,z){var ie;b||(b=x),Qe(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),_o(a,{from:x,to:b,text:y,origin:z})}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 z=0;z<a.length;++z){var ie=a[z],le=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var de=0;de<ie.ranges.length;de++)os(ie.ranges[de].anchor,y,x,b),os(ie.ranges[de].head,y,x,b);continue}for(var fe=0;fe<ie.changes.length;++fe){var be=ie.changes[fe];if(x<be.from.line)be.from=Me(be.from.line+b,be.from.ch),be.to=Me(be.to.line+b,be.to.ch);else if(y<=be.to.line){le=!1;break}}le||(a.splice(0,z+1),z=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,z=y.text.length-(b-x)-1;as(a.done,x,b,z),as(a.undone,x,b,z)}function aa(a,y,x,b){var z=y,ie=y;return typeof y=="number"?ie=Bt(a,Qt(a,y)):z=Xe(y),z==null?null:(b(ie,z)&&a.cm&&fo(a.cm,z,x),ie)}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 z=this.lines[x];this.height-=z.height,Br(z),Vr(z,"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 z=a[b];y+=z.chunkSize(),x+=z.height,z.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],z=b.chunkSize();if(a<z){var ie=Math.min(y,z-a),le=b.height;if(b.removeInner(a,ie),this.height-=le-b.height,z==ie&&(this.children.splice(x--,1),b.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var de=[];this.collapse(de),this.children=[new la(de)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var le=z.lines.length%25+25,de=le;de<z.lines.length;){var fe=new la(z.lines.slice(de,de+=25));z.height-=fe.height,this.children.splice(++b,0,fe),fe.parent=this}z.lines=z.lines.slice(0,le),this.maybeSpill()}break}a-=ie}},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 z=je(a.parent.children,a);a.parent.children.splice(z+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 z=this.children[b],ie=z.chunkSize();if(a<ie){var le=Math.min(y,ie-a);if(z.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=ie}}};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=Xe(x);if(!(b==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(x.widgets=null);var ie=gi(this);hn(x,Math.max(0,x.height-ie)),a&&(Bi(a,function(){ss(a,x,-ie),fo(a,b,"widget")}),Vr(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 z=gi(this)-y;z&&(Nn(this.doc,b)||hn(b,b.height+z),x&&Bi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,z),Vr(x,"lineWidgetChanged",x,a,Xe(b))}))},ze(ua);function ss(a,y,x){rr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ja(a,x)}function pu(a,y,x,b){var z=new ua(a,x,b),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),aa(a,y,"widget",function(le){var de=le.widgets||(le.widgets=[]);if(z.insertAt==null?de.push(z):de.splice(Math.min(de.length-1,Math.max(0,z.insertAt)),0,z),z.line=le,ie&&!Nn(a,le)){var fe=rr(le)<a.scrollTop;hn(le,le.height+gi(z)),fe&&Ja(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Vr(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:Xe(y)),z}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&&Po(a),Vt(this,"clear")){var x=this.find();x&&Vr(this,"clear",x.from,x.to)}for(var b=null,z=null,ie=0;ie<this.lines.length;++ie){var le=this.lines[ie],de=vr(le.markedSpans,this);a&&!this.collapsed?fo(a,Xe(le),"text"):a&&(de.to!=null&&(z=Xe(le)),de.from!=null&&(b=Xe(le))),le.markedSpans=Cr(le.markedSpans,de),de.from==null&&this.collapsed&&!Nn(this.doc,le)&&a&&hn(le,Di(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var be=sn(this.lines[fe]),ot=Pr(be);ot>a.display.maxLineLength&&(a.display.maxLine=be,a.display.maxLineLength=ot,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Si(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Jl(a.doc)),a&&Vr(a,"markerCleared",a,this,b,z),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,z=0;z<this.lines.length;++z){var ie=this.lines[z],le=vr(ie.markedSpans,this);if(le.from!=null&&(x=Me(y?ie:Xe(ie),le.from),a==-1))return x;if(le.to!=null&&(b=Me(y?ie:Xe(ie),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 z=y.line,ie=Xe(y.line),le=qi(b,ie);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Nn(x.doc,z)&&x.height!=null){var de=x.height;x.height=null;var fe=gi(x)-de;fe&&hn(z,z.height+fe)}Vr(b,"markerChanged",b,a)})},go.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||je(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(je(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},ze(go);function zo(a,y,x,b,z){if(b&&b.shared)return mu(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return oi(a.cm,zo)(a,y,x,b,z);var ie=new go(a,z),le=Qe(y,x);if(b&&ct(b,ie,!1),le>0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=ht("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Cn(a,y.line,y,x,ie)||y.line!=x.line&&Cn(a,x.line,y,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}ie.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var de=y.line,fe=a.cm,be;if(a.iter(de,x.line+1,function(vt){fe&&ie.collapsed&&!fe.options.lineWrapping&&sn(vt)==fe.display.maxLine&&(be=!0),ie.collapsed&&de!=y.line&&hn(vt,0),or(vt,new cr(ie,de==y.line?y.ch:null,de==x.line?x.ch:null)),++de}),ie.collapsed&&a.iter(y.line,x.line+1,function(vt){Nn(a,vt)&&hn(vt,0)}),ie.clearOnEnter&&$t(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(gr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++us,ie.atomic=!0),fe){if(be&&(fe.curOp.updateMaxLine=!0),ie.collapsed)Si(fe,y.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var ot=y.line;ot<=x.line;ot++)fo(fe,ot,"text");ie.atomic&&Jl(fe.doc),Vr(fe,"markerAdded",fe,ie)}return ie}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();Vr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},ze(ca);function mu(a,y,x,b,z){b=ct(b),b.shared=!1;var ie=[zo(a,y,x,b,z)],le=ie[0],de=b.widgetNode;return vo(a,function(fe){de&&(b.widgetNode=de.cloneNode(!0)),ie.push(zo(fe,Ft(fe,y),Ft(fe,x),b,z));for(var be=0;be<fe.linked.length;++be)if(fe.linked[be].isParent)return;le=Fe(ie)}),new ca(ie,le)}function cs(a){return a.findMarks(Me(a.first,0),a.clipPos(Me(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),ie=a.clipPos(z.from),le=a.clipPos(z.to);if(Qe(ie,le)){var de=zo(a,ie,le,b.primary,b.primary.type);b.markers.push(de),de.parent=b}}}function gu(a){for(var y=function(b){var z=a[b],ie=[z.primary.doc];vo(z.primary.doc,function(fe){return ie.push(fe)});for(var le=0;le<z.markers.length;le++){var de=z.markers[le];je(ie,de.doc)==-1&&(de.parent=null,z.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,wi=function(a,y,x,b,z){if(!(this instanceof wi))return new wi(a,y,x,b,z);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 ie=Me(x,0);this.sel=po(ie),this.history=new Ba(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:ie,to:ie,text:a}),hi(this,po(ie),ve)};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=xn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ai(function(a){var y=Me(this.first,0),x=this.first+this.size-1;_o(this,{from:y,to:Me(x,Bt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Jo(this.cm,0,0),hi(this,po(y),ve)}),replaceRange:function(a,y,x,b){y=Ft(this,y),x=x?Ft(this,x):y,$o(this,a,y,x,b)},getRange:function(a,y,x){var b=Kt(this,Ft(this,a),Ft(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(Oe(this,a))return Bt(this,a)},getLineNumber:function(a){return Xe(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Bt(this,a)),sn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Ft(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,Ft(this,typeof a=="number"?Me(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xl(this,Ft(this,a),Ft(this,y||a),x)}),extendSelection:ai(function(a,y,x){La(this,Ft(this,a),y&&Ft(this,y),x)}),extendSelections:ai(function(a,y){Kl(this,fn(this,a),y)}),extendSelectionsBy:ai(function(a,y){var x=At(this.sel.ranges,a);Kl(this,fn(this,x),y)}),setSelections:ai(function(a,y,x){if(a.length){for(var b=[],z=0;z<a.length;z++)b[z]=new Fr(Ft(this,a[z].anchor),Ft(this,a[z].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(Ft(this,a),Ft(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 z=Kt(this,y[b].from(),y[b].to());x=x?x.concat(z):z}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 z=Kt(this,x[b].from(),x[b].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[b]=z}return y},replaceSelection:function(a,y,x){for(var b=[],z=0;z<this.sel.ranges.length;z++)b[z]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:ai(function(a,y,x){for(var b=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var le=z.ranges[ie];b[ie]={from:le.from(),to:le.to(),text:this.splitLines(a[ie]),origin:x}}for(var de=y&&y!="end"&&ou(this,b,y),fe=b.length-1;fe>=0;fe--)_o(this,b[fe]);de?Yl(this,de):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 z=0;z<a.undone.length;z++)a.undone[z].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 z=b.gutterMarkers||(b.gutterMarkers={});return z[y]=x,!x&&ne(z)&&(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(!Oe(this,a)||(y=a,a=Bt(this,a),!a))return null}else if(y=Xe(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[z])b[z]=x;else{if(tt(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=b[z];if(ie)if(x==null)b[z]=null;else{var le=ie.match(tt(x));if(!le)return!1;var de=le.index+le[0].length;b[z]=ie.slice(0,le.index)+(!le.index||de==ie.length?"":" ")+ie.slice(de)||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 zo(this,Ft(this,a),Ft(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=Ft(this,a),zo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Ft(this,a);var y=[],x=Bt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var z=x[b];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Ft(this,a),y=Ft(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var de=0;de<le.length;de++){var fe=le[de];!(fe.to!=null&&z==a.line&&a.ch>=fe.to||fe.from==null&&z!=a.line||fe.from!=null&&z==y.line&&fe.from>=y.ch)&&(!x||x(fe.marker))&&b.push(fe.marker.parent||fe.marker)}++z}),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(z){var ie=z.text.length+b;if(ie>a)return y=a,!0;a-=ie,++x}),Ft(this,Me(x,y))},indexFromPos:function(a){a=Ft(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(xn(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(xn(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 Gr&&(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(z){return b.push(z.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):on(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),!(Ot(y,a)||ui(y.display,a))){dt(a),Se&&(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 z=b.length,ie=Array(z),le=0,de=function(){++le==z&&oi(y,function(){x=Ft(y.doc,x);var _t={from:x,to:x,text:y.doc.splitLines(ie.filter(function(cn){return cn!=null}).join(y.doc.lineSeparator())),origin:"paste"};_o(y.doc,_t),Yl(y.doc,po(Ft(y.doc,x),Ft(y.doc,mo(_t))))})()},fe=function(_t,cn){if(y.options.allowDropFileTypes&&je(y.options.allowDropFileTypes,_t.type)==-1){de();return}var On=new FileReader;On.onerror=function(){return de()},On.onload=function(){var Ln=On.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ln)){de();return}ie[cn]=Ln,de()},On.readAsText(_t)},be=0;be<b.length;be++)fe(b[be],be);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 ot=a.dataTransfer.getData("Text");if(ot){var vt;if(y.state.draggingText&&!y.state.draggingText.copy&&(vt=y.listSelections()),Aa(y.doc,po(x,x)),vt)for(var jt=0;jt<vt.length;++jt)$o(y.doc,"",vt[jt].anchor,vt[jt].head,"drag");y.replaceSelection(ot,"around","paste"),y.display.input.focus()}}catch(_t){}}}}function xu(a,y){if(Se&&(!a.state.draggingText||+new Date-ds<100)){Be(y);return}if(!(Ot(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Je)){var x=Ve("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",he&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),he&&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=Ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Ne(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 z=y[b].CodeMirror;z&&x.push(z)}x.length&&x[0].operation(function(){for(var ie=0;ie<x.length;ie++)a(x[ie])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;$t(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),$t(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=He?io.macDefault:io.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,ie,le=0;le<y.length-1;le++){var de=y[le];if(/^(cmd|meta|m)$/i.test(de))ie=!0;else if(/^a(lt)?$/i.test(de))x=!0;else if(/^(c|ctrl|control)$/i.test(de))b=!0;else if(/^s(hift)?$/i.test(de))z=!0;else throw new Error("Unrecognized modifier name: "+de)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Pu(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 z=At(x.split(" "),Iu),ie=0;ie<z.length;ie++){var le=void 0,de=void 0;ie==z.length-1?(de=z.join(" "),le=b):(de=z.slice(0,ie+1).join(" "),le="...");var fe=y[de];if(!fe)y[de]=le;else if(fe!=le)throw new Error("Inconsistent bindings for "+de)}delete a[x]}for(var be in y)a[be]=y[be];return a}function Ho(a,y,x,b){y=_a(y);var z=y.call?y.call(a,b):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Ho(a,y.fallthrough,x,b);for(var ie=0;ie<y.fallthrough.length;ie++){var le=Ho(a,y.fallthrough[ie],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),(ft?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(ft?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function gs(a,y){if(he&&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 Wo(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var ie=y(x[z]);b.length&&Qe(ie.from,Fe(b).to)<=0;){var le=b.pop();if(Qe(le.from,ie.from)<0){ie.from=le.from;break}}b.push(ie)}Bi(a,function(){for(var de=b.length-1;de>=0;de--)$o(a.doc,"",b[de].from,b[de].to,"+delete");Ao(a)})}function cl(a,y,x){var b=We(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 Me(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=Ht(x,y.doc.direction);if(ie){var le=z<0?Fe(ie):ie[0],de=z<0==(le.level==1),fe=de?"after":"before",be;if(le.level>0||y.doc.direction=="rtl"){var ot=uo(y,x);be=z<0?x.text.length-1:0;var vt=zi(y,ot,be).top;be=xe(function(jt){return zi(y,ot,jt).top==vt},z<0==(le.level==1)?le.from:le.to-1,be),fe=="before"&&(be=cl(x,be,1))}else be=z<0?le.to:le.from;return new Me(b,be,fe)}}return new Me(b,z<0?x.text.length:0,z<0?"before":"after")}function Ou(a,y,x,b){var z=Ht(y,a.doc.direction);if(!z)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 ie=St(z,x.ch,x.sticky),le=z[ie];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 de=function($n,Vn){return cl(y,$n instanceof Me?$n.ch:$n,Vn)},fe,be=function($n){return a.options.lineWrapping?(fe=fe||uo(a,y),Yr(a,y,fe,$n)):{begin:0,end:y.text.length}},ot=be(x.sticky=="before"?de(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var vt=le.level==1==b<0,jt=de(x,vt?1:-1);if(jt!=null&&(vt?jt<=le.to&&jt<=ot.end:jt>=le.from&&jt>=ot.begin)){var _t=vt?"before":"after";return new Me(x.line,jt,_t)}}var cn=function($n,Vn,zn){for(var Kn=function(jr,li){return li?new Me(x.line,de(jr,1),"before"):new Me(x.line,jr,"after")};$n>=0&&$n<z.length;$n+=Vn){var sr=z[$n],nr=Vn>0==(sr.level!=1),wr=nr?zn.begin:de(zn.end,-1);if(sr.from<=wr&&wr<sr.to||(wr=nr?sr.from:de(sr.to,-1),zn.begin<=wr&&wr<zn.end))return Kn(wr,nr)}},On=cn(ie+b,b,ot);if(On)return On;var Ln=b>0?ot.end:de(ot.begin,-1);return Ln!=null&&!(b>0&&Ln==y.text.length)&&(On=cn(b>0?0:z.length-1,b,be(Ln)),On)?On:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ve)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=Bt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Me(y.head.line+1,0)}:{from:y.head,to:Me(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Wo(a,function(y){return{from:Me(y.from().line,0),to:Ft(a.doc,Me(y.to().line+1,0))}})},delLineLeft:function(a){return Wo(a,function(y){return{from:Me(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Wo(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 Wo(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(Me(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Me(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 ku(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")},Le)},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")},Le)},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},Le)},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,z=0;z<x.length;z++){var ie=x[z].from(),le=me(a.getLine(ie.line),ie.ch,b);y.push(Mt(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 z=y[b].head,ie=Bt(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new Me(z.line,z.ch-1)),z.ch>0)z=new Me(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),Me(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var le=Bt(a.doc,z.line-1).text;le&&(z=new Me(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),Me(z.line-1,le.length-1),z,"+transpose"))}}x.push(new Fr(z,z))}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=Bt(a.doc,y),b=sn(x);return b!=x&&(y=Xe(b)),fl(!0,a,b,y,1)}function ku(a,y){var x=Bt(a.doc,y),b=_n(x);return b!=x&&(y=Xe(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Bt(a.doc,x.line),z=Ht(b,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=ie&&y.ch;return Me(x.line,le?0:ie,x.sticky)}return x}function $a(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=yt}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function Mu(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var z=Ho(y,a.state.keyMaps[b],x,a);if(z)return z}return a.options.extraKeys&&Ho(y,a.options.extraKeys,x,a)||Ho(y,a.options.keyMap,x,a)}var Du=new ce;function pa(a,y,x,b){var z=a.state.keySeq;if(z){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Du.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,z+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var z=Mu(a,y,b);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Vr(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(dt(x),Xa(a)),!!z}function Cs(a,y){var x=gs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return $a(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return $a(a,b)}):pa(a,x,y,function(b){return $a(a,b)}):!1}function Bu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return $a(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=_e(),!Ot(y,a))){Se&&ke<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);he&&(hl=b?x:null,!b&&x==88&&!dn&&(He?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!He&&!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;se(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ke(y,"CodeMirror-crosshair"),Xt(document,"keyup",x),Xt(document,"mouseover",x))}$t(document,"keyup",x),$t(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),Ot(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||Ot(y,a)||a.ctrlKey&&!a.altKey||He&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,dt(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var z=String.fromCharCode(b==null?x:b);z!="\b"&&(Bu(y,a,z)||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&&Qe(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(!(Ot(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Ie||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=bt(a),ie=b?Au(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,z,b,ie,a))&&(z==1?b?Fu(y,b,ie,a):rt(a)==x.scroller&&dt(a):z==2?(b&&La(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(it?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,z){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,vs(ie,z),z,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=le(a,x)!=yt}finally{a.state.suppressEdits=!1}return de})}function Ru(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var ie=at?x.shiftKey&&x.metaKey:x.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=He?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(He?x.altKey:x.ctrlKey)),z}function Fu(a,y,x,b){Se?setTimeout(we(Il,a),0):a.curOp.focus=_e();var z=Ru(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Dt&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(Qe((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(Qe(le.to(),y)>0||y.xRel<0)?_u(a,b,y,z):$u(a,b,y,z)}function _u(a,y,x,b){var z=a.display,ie=!1,le=oi(a,function(be){Ie&&(z.scroller.draggable=!1),a.state.draggingText=!1,Xt(z.wrapper.ownerDocument,"mouseup",le),Xt(z.wrapper.ownerDocument,"mousemove",de),Xt(z.scroller,"dragstart",fe),Xt(z.scroller,"drop",le),ie||(dt(be),b.addNew||La(a.doc,x,null,null,b.extend),Ie&&!Je||Se&&ke==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),de=function(be){ie=ie||Math.abs(y.clientX-be.clientX)+Math.abs(y.clientY-be.clientY)>=10},fe=function(){return ie=!0};Ie&&(z.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),$t(z.wrapper.ownerDocument,"mouseup",le),$t(z.wrapper.ownerDocument,"mousemove",de),$t(z.scroller,"dragstart",fe),$t(z.scroller,"drop",le),Pl(a),setTimeout(function(){return z.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(Me(y.line,0),Ft(a.doc,Me(y.line+1,0)));var b=x(a,y);return new Fr(b.from,b.to)}function $u(a,y,x,b){var z=a.display,ie=a.doc;dt(y);var le,de,fe=ie.sel,be=fe.ranges;if(b.addNew&&!b.extend?(de=ie.sel.contains(x),de>-1?le=be[de]:le=new Fr(x,x)):(le=ie.sel.primary(),de=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=So(a,y,!0,!0),de=-1;else{var ot=Ps(a,x,b.unit);b.extend?le=sl(le,ot.anchor,ot.head,b.extend):le=ot}b.addNew?de==-1?(de=be.length,hi(ie,Ui(a,be.concat([le]),de),{scroll:!1,origin:"*mouse"})):be.length>1&&be[de].empty()&&b.unit=="char"&&!b.extend?(hi(ie,Ui(a,be.slice(0,de).concat(be.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),fe=ie.sel):ul(ie,de,le,Te):(de=0,hi(ie,new Ri([le],0),Te),fe=ie.sel);var vt=x;function jt(zn){if(Qe(vt,zn)!=0)if(vt=zn,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=me(Bt(ie,x.line).text,x.ch,sr),wr=me(Bt(ie,zn.line).text,zn.ch,sr),jr=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=Bt(ie,Ur).text,qr=wt(Ei,jr,sr);jr==li?Kn.push(new Fr(Me(Ur,qr),Me(Ur,qr))):Ei.length>qr&&Kn.push(new Fr(Me(Ur,qr),Me(Ur,wt(Ei,li,sr))))}Kn.length||Kn.push(new Fr(x,x)),hi(ie,Ui(a,fe.ranges.slice(0,de).concat(Kn),de),{origin:"*mouse",scroll:!1}),a.scrollIntoView(zn)}else{var Ii=le,di=Ps(a,zn,b.unit),ii=Ii.anchor,ei;Qe(di.anchor,ii)>0?(ei=di.head,ii=vn(Ii.from(),di.anchor)):(ei=di.anchor,ii=un(Ii.to(),di.head));var Kr=fe.ranges.slice(0);Kr[de]=zu(a,new Fr(Ft(ie,ii),ei)),hi(ie,Ui(a,Kr,de),Te)}}var _t=z.wrapper.getBoundingClientRect(),cn=0;function On(zn){var Kn=++cn,sr=So(a,zn,!0,b.unit=="rectangle");if(sr)if(Qe(sr,vt)!=0){a.curOp.focus=_e(),jt(sr);var nr=Oa(z,ie);(sr.line>=nr.to||sr.line<nr.from)&&setTimeout(oi(a,function(){cn==Kn&&On(zn)}),150)}else{var wr=zn.clientY<_t.top?-20:zn.clientY>_t.bottom?20:0;wr&&setTimeout(oi(a,function(){cn==Kn&&(z.scroller.scrollTop+=wr,On(zn))}),50)}}function Ln(zn){a.state.selectingText=!1,cn=1/0,zn&&(dt(zn),z.input.focus()),Xt(z.wrapper.ownerDocument,"mousemove",$n),Xt(z.wrapper.ownerDocument,"mouseup",Vn),ie.history.lastSelOrigin=null}var $n=oi(a,function(zn){zn.buttons===0||!bt(zn)?Ln(zn):On(zn)}),Vn=oi(a,Ln);a.state.selectingText=Vn,$t(z.wrapper.ownerDocument,"mousemove",$n),$t(z.wrapper.ownerDocument,"mouseup",Vn)}function zu(a,y){var x=y.anchor,b=y.head,z=Bt(a.doc,x.line);if(Qe(x,b)==0&&x.sticky==b.sticky)return y;var ie=Ht(z);if(!ie)return y;var le=St(ie,x.ch,x.sticky),de=ie[le];if(de.from!=x.ch&&de.to!=x.ch)return y;var fe=le+(de.from==x.ch==(de.level!=1)?0:1);if(fe==0||fe==ie.length)return y;var be;if(b.line!=x.line)be=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ot=St(ie,b.ch,b.sticky),vt=ot-le||(b.ch-x.ch)*(de.level==1?-1:1);ot==fe-1||ot==fe?be=vt<0:be=vt>0}var jt=ie[fe+(be?-1:0)],_t=be==(jt.level==1),cn=_t?jt.from:jt.to,On=_t?"after":"before";return x.ch==cn&&x.sticky==On?y:new Fr(new Me(x.line,cn,On),b)}function Os(a,y,x,b){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(jt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&dt(y);var le=a.display,de=le.lineDiv.getBoundingClientRect();if(ie>de.bottom||!Vt(a,x))return Wt(y);ie-=de.top-le.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var be=le.gutters.childNodes[fe];if(be&&be.getBoundingClientRect().right>=z){var ot=st(a.doc,ie),vt=a.display.gutterSpecs[fe];return rn(a,x,a,ot,vt.className,y),Wt(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function ks(a,y){ui(a.display,y)||Hu(a,y)||Ot(a,y,"contextmenu")||it||a.display.input.onContextMenu(y)}function Hu(a,y){return Vt(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 jo={toString:function(){return"CodeMirror.Init"}},Ds={},za={};function Wu(a){var y=a.optionHandlers;function x(b,z,ie,le){a.defaults[b]=z,ie&&(y[b]=le?function(de,fe,be){be!=jo&&ie(de,fe,be)}:ie)}a.defineOption=x,a.Init=jo,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,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,z){if(b.doc.lineSep=z,!!z){var ie=[],le=b.doc.first;b.doc.iter(function(fe){for(var be=0;;){var ot=fe.text.indexOf(z,be);if(ot==-1)break;be=ot+z.length,ie.push(Me(le,ot))}le++});for(var de=ie.length-1;de>=0;de--)$o(b.doc,z,ie[de],Me(ie[de].line,ie[de].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,ie){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=jo&&b.refresh()}),x("specialCharPlaceholder",Oi,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!xt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,z,ie){var le=_a(z),de=ie!=jo&&_a(ie);de&&de.detach&&de.detach(b,le),le.attach&&le.attach(b,de||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Zu,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=rl(z,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?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,z){b.display.gutterSpecs=rl(b.options.gutters,z),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(Lo(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,ju),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Qo,!0),x("singleCursorHeightPerLine",!0,Qo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function ju(a,y,x){var b=x&&x!=jo;if(!y!=!b){var z=a.display.dragFunctions,ie=y?$t:Xt;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function Zu(a){a.options.lineWrapping?(se(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ke(a.display.wrapper,"CodeMirror-wrap"),br(a)),Ka(a),Si(a),Co(a),setTimeout(function(){return No(a)},100)}function Gr(a,y){var x=this;if(!(this instanceof Gr))return new Gr(a,y);this.options=y=y?ct(y):{},ct(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 z=new Gr.inputStyles[y.inputStyle](this),ie=this.display=new ru(a,b,z,y);ie.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&&!Ue&&ie.input.focus(),Se&&ke<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ue||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Lo(this);for(var le in za)za.hasOwnProperty(le)&&za[le](this,y[le],jo);Nl(this),y.finishInit&&y.finishInit(this);for(var de=0;de<vl.length;++de)vl[de](this);Oo(this),Ie&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Gr.defaults=Ds,Gr.optionHandlers=za;function Vu(a){var y=a.display;$t(y.scroller,"mousedown",oi(a,Is)),Se&&ke<11?$t(y.scroller,"dblclick",oi(a,function(fe){if(!Ot(a,fe)){var be=So(a,fe);if(!(!be||ml(a,fe)||ui(a.display,fe))){dt(fe);var ot=a.findWordAt(be);La(a.doc,ot.anchor,ot.head)}}})):$t(y.scroller,"dblclick",function(fe){return Ot(a,fe)||dt(fe)}),$t(y.scroller,"contextmenu",function(fe){return ks(a,fe)}),$t(y.input.getField(),"contextmenu",function(fe){y.scroller.contains(fe.target)||ks(a,fe)});var x,b={end:0};function z(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ie(fe){if(fe.touches.length!=1)return!1;var be=fe.touches[0];return be.radiusX<=1&&be.radiusY<=1}function le(fe,be){if(be.left==null)return!0;var ot=be.left-fe.left,vt=be.top-fe.top;return ot*ot+vt*vt>20*20}$t(y.scroller,"touchstart",function(fe){if(!Ot(a,fe)&&!ie(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var be=+new Date;y.activeTouch={start:be,moved:!1,prev:be-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),$t(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),$t(y.scroller,"touchend",function(fe){var be=y.activeTouch;if(be&&!ui(y,fe)&&be.left!=null&&!be.moved&&new Date-be.start<300){var ot=a.coordsChar(y.activeTouch,"page"),vt;!be.prev||le(be,be.prev)?vt=new Fr(ot,ot):!be.prev.prev||le(be,be.prev.prev)?vt=a.findWordAt(ot):vt=new Fr(Me(ot.line,0),Ft(a.doc,Me(ot.line+1,0))),a.setSelection(vt.anchor,vt.head),a.focus(),dt(fe)}z()}),$t(y.scroller,"touchcancel",z),$t(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),rn(a,"scroll",a))}),$t(y.scroller,"mousewheel",function(fe){return _l(a,fe)}),$t(y.scroller,"DOMMouseScroll",function(fe){return _l(a,fe)}),$t(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){Ot(a,fe)||Be(fe)},over:function(fe){Ot(a,fe)||(Cu(a,fe),Be(fe))},start:function(fe){return xu(a,fe)},drop:oi(a,bu),leave:function(fe){Ot(a,fe)||fs(a)}};var de=y.input.getField();$t(de,"keyup",function(fe){return ws.call(a,fe)}),$t(de,"keydown",oi(a,Ss)),$t(de,"keypress",oi(a,Es)),$t(de,"focus",function(fe){return Ya(a,fe)}),$t(de,"blur",function(fe){return Lo(a,fe)})}var vl=[];Gr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var z=a.doc,ie;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ie=Qn(a,y).state:x="prev");var le=a.options.tabSize,de=Bt(z,y),fe=me(de.text,null,le);de.stateAfter&&(de.stateAfter=null);var be=de.text.match(/^\s*/)[0],ot;if(!b&&!/\S/.test(de.text))ot=0,x="not";else if(x=="smart"&&(ot=z.mode.indent(ie,de.text.slice(be.length),de.text),ot==yt||ot>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?ot=me(Bt(z,y-1).text,null,le):ot=0:x=="add"?ot=fe+a.options.indentUnit:x=="subtract"?ot=fe-a.options.indentUnit:typeof x=="number"&&(ot=fe+x),ot=Math.max(0,ot);var vt="",jt=0;if(a.options.indentWithTabs)for(var _t=Math.floor(ot/le);_t;--_t)jt+=le,vt+=" ";if(jt<ot&&(vt+=Mt(ot-jt)),vt!=be)return $o(z,vt,Me(y,0),Me(y,be.length),"+input"),de.stateAfter=null,!0;for(var cn=0;cn<z.sel.ranges.length;cn++){var On=z.sel.ranges[cn];if(On.head.line==y&&On.head.ch<be.length){var Ln=Me(y,be.length);ul(z,cn,new Fr(Ln,Ln));break}}}var Ki=null;function Ha(a){Ki=a}function gl(a,y,x,b,z){var ie=a.doc;a.display.shift=!1,b||(b=ie.sel);var le=+new Date-200,de=z=="paste"||a.state.pasteIncoming>le,fe=on(y),be=null;if(de&&b.ranges.length>1)if(Ki&&Ki.text.join(`
`)==y){if(b.ranges.length%Ki.text.length==0){be=[];for(var ot=0;ot<Ki.text.length;ot++)be.push(ie.splitLines(Ki.text[ot]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(be=At(fe,function($n){return[$n]}));for(var vt=a.curOp.updateInput,jt=b.ranges.length-1;jt>=0;jt--){var _t=b.ranges[jt],cn=_t.from(),On=_t.to();_t.empty()&&(x&&x>0?cn=Me(cn.line,cn.ch-x):a.state.overwrite&&!de?On=Me(On.line,Math.min(Bt(ie,On.line).text.length,On.ch+Fe(fe).length)):de&&Ki&&Ki.lineWise&&Ki.text.join(`
`)==fe.join(`
`)&&(cn=On=Me(cn.line,0)));var Ln={from:cn,to:On,text:be?be[jt%be.length]:fe,origin:z||(de?"paste":a.state.cutIncoming>le?"cut":"+input")};_o(a.doc,Ln),Vr(a,"inputRead",a,Ln)}y&&!de&&Ts(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=vt),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 z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),le=!1;if(ie.electricChars){for(var de=0;de<ie.electricChars.length;de++)if(y.indexOf(ie.electricChars.charAt(de))>-1){le=ga(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(Bt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(le=ga(a,z.head.line,"smart"));le&&Vr(a,"electricInput",a,z.head.line)}}}function Ls(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,ie={anchor:Me(z,0),head:Me(z+1,0)};x.push(ie),y.push(a.getRange(ie.anchor,ie.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=Ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ve("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ie?a.style.width="1000px":a.setAttribute("wrap","off"),qe&&(a.style.border="1px solid black"),As(a),y}function Gu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,z){var ie=this.options,le=ie[b];ie[b]==z&&b!="mode"||(ie[b]=z,y.hasOwnProperty(b)&&oi(this,y[b])(this,z,le),rn(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,z){this.state.keyMaps[z?"push":"unshift"](_a(b))},removeKeyMap:function(b){for(var z=this.state.keyMaps,ie=0;ie<z.length;++ie)if(z[ie]==b||z[ie].name==b)return z.splice(ie,1),!0},addOverlay:yi(function(b,z){var ie=b.token?b:a.getMode(this.options,b);if(ie.startState)throw new Error("Overlays may not be stateful.");ut(this.state.overlays,{mode:ie,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(le){return le.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var le=z[ie].modeSpec;if(le==b||typeof b=="string"&&le.name==b){z.splice(ie,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(b,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Oe(this.doc,b)&&ga(this,b,z,ie)}),indentSelection:yi(function(b){for(var z=this.doc.sel.ranges,ie=-1,le=0;le<z.length;le++){var de=z[le];if(de.empty())de.head.line>ie&&(ga(this,de.head.line,b,!0),ie=de.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var fe=de.from(),be=de.to(),ot=Math.max(ie,fe.line);ie=Math.min(this.lastLine(),be.line-(be.ch?0:1))+1;for(var vt=ot;vt<ie;++vt)ga(this,vt,b);var jt=this.doc.sel.ranges;fe.ch==0&&z.length==jt.length&&jt[le].from().ch>0&&ul(this.doc,le,new Fr(fe,jt[le].to()),ve)}}}),getTokenAt:function(b,z){return Un(this,b,z)},getLineTokens:function(b,z){return Un(this,Me(b),z,!0)},getTokenTypeAt:function(b){b=Ft(this.doc,b);var z=Xn(this,Bt(this.doc,b.line)),ie=0,le=(z.length-1)/2,de=b.ch,fe;if(de==0)fe=z[2];else for(;;){var be=ie+le>>1;if((be?z[be*2-1]:0)>=de)le=be;else if(z[be*2+1]<de)ie=be+1;else{fe=z[be*2+2];break}}var ot=fe?fe.indexOf("overlay "):-1;return ot<0?fe:ot==0?null:fe.slice(0,ot-1)},getModeAt:function(b){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(b).state).mode:z},getHelper:function(b,z){return this.getHelpers(b,z)[0]},getHelpers:function(b,z){var ie=[];if(!x.hasOwnProperty(z))return ie;var le=x[z],de=this.getModeAt(b);if(typeof de[z]=="string")le[de[z]]&&ie.push(le[de[z]]);else if(de[z])for(var fe=0;fe<de[z].length;fe++){var be=le[de[z][fe]];be&&ie.push(be)}else de.helperType&&le[de.helperType]?ie.push(le[de.helperType]):le[de.name]&&ie.push(le[de.name]);for(var ot=0;ot<le._global.length;ot++){var vt=le._global[ot];vt.pred(de,this)&&je(ie,vt.val)==-1&&ie.push(vt.val)}return ie},getStateAfter:function(b,z){var ie=this.doc;return b=Qt(ie,b==null?ie.first+ie.size-1:b),Qn(this,b+1,z).state},cursorCoords:function(b,z){var ie,le=this.doc.sel.primary();return b==null?ie=le.head:typeof b=="object"?ie=Ft(this.doc,b):ie=b?le.from():le.to(),Ci(this,ie,z||"page")},charCoords:function(b,z){return To(this,Ft(this.doc,b),z||"page")},coordsChar:function(b,z){return b=wa(this,b,z||"page"),ci(this,b.left,b.top)},lineAtHeight:function(b,z){return b=wa(this,{top:b,left:0},z||"page").top,st(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,ie){var le=!1,de;if(typeof b=="number"){var fe=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>fe&&(b=fe,le=!0),de=Bt(this.doc,b)}else de=b;return Bo(this,de,{top:0,left:0},z||"page",ie||le).top+(le?this.doc.height-rr(de):0)},defaultTextHeight:function(){return Di(this.display)},defaultCharWidth:function(){return Gi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,ie,le,de){var fe=this.display;b=Ci(this,Ft(this.doc,b));var be=b.bottom,ot=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),fe.sizer.appendChild(z),le=="over")be=b.top;else if(le=="above"||le=="near"){var vt=Math.max(fe.wrapper.clientHeight,this.doc.height),jt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+z.offsetHeight>vt)&&b.top>z.offsetHeight?be=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=vt&&(be=b.bottom),ot+z.offsetWidth>jt&&(ot=jt-z.offsetWidth)}z.style.top=be+"px",z.style.left=z.style.right="",de=="right"?(ot=fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(de=="left"?ot=0:de=="middle"&&(ot=(fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=ot+"px"),ie&&js(this,{left:ot,top:be,right:ot+z.offsetWidth,bottom:be+z.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,z,ie,le){var de=1;z<0&&(de=-1,z=-z);for(var fe=Ft(this.doc,b),be=0;be<z&&(fe=yl(this.doc,fe,de,ie,le),!fe.hitSide);++be);return fe},moveH:yi(function(b,z){var ie=this;this.extendSelectionsBy(function(le){return ie.display.shift||ie.doc.extend||le.empty()?yl(ie.doc,le.head,b,z,ie.options.rtlMoveVisually):b<0?le.from():le.to()},Le)}),deleteH:yi(function(b,z){var ie=this.doc.sel,le=this.doc;ie.somethingSelected()?le.replaceSelection("",null,"+delete"):Wo(this,function(de){var fe=yl(le,de.head,b,z,!1);return b<0?{from:fe,to:de.head}:{from:de.head,to:fe}})}),findPosV:function(b,z,ie,le){var de=1,fe=le;z<0&&(de=-1,z=-z);for(var be=Ft(this.doc,b),ot=0;ot<z;++ot){var vt=Ci(this,be,"div");if(fe==null?fe=vt.left:vt.left=fe,be=Rs(this,vt,de,ie),be.hitSide)break}return be},moveV:yi(function(b,z){var ie=this,le=this.doc,de=[],fe=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(ot){if(fe)return b<0?ot.from():ot.to();var vt=Ci(ie,ot.head,"div");ot.goalColumn!=null&&(vt.left=ot.goalColumn),de.push(vt.left);var jt=Rs(ie,vt,b,z);return z=="page"&&ot==le.sel.primary()&&Ja(ie,To(ie,jt,"div").top-vt.top),jt},Le),de.length)for(var be=0;be<le.sel.ranges.length;be++)le.sel.ranges[be].goalColumn=de[be]}),findWordAt:function(b){var z=this.doc,ie=Bt(z,b.line).text,le=b.ch,de=b.ch;if(ie){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||de==ie.length)&&le?--le:++de;for(var be=ie.charAt(le),ot=ue(be,fe)?function(vt){return ue(vt,fe)}:/\s/.test(be)?function(vt){return/\s/.test(vt)}:function(vt){return!/\s/.test(vt)&&!ue(vt)};le>0&&ot(ie.charAt(le-1));)--le;for(;de<ie.length&&ot(ie.charAt(de));)++de}return new Fr(Me(b.line,le),Me(b.line,de))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?se(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),rn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yi(function(b,z){Jo(this,b,z)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-ki(this)-this.display.barHeight,width:b.scrollWidth-ki(this)-this.display.barWidth,clientHeight:no(this),clientWidth:Ji(this)}},scrollIntoView:yi(function(b,z){b==null?(b={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof b=="number"?b={from:Me(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=z||0,b.from.line!=null?Zs(this,b):kl(this,b.from,b.to,b.margin)}),setSize:yi(function(b,z){var ie=this,le=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};b!=null&&(this.display.wrapper.style.width=le(b)),z!=null&&(this.display.wrapper.style.height=le(z)),this.options.lineWrapping&&Ko(this);var de=this.display.viewFrom;this.doc.iter(de,this.display.viewTo,function(fe){if(fe.widgets){for(var be=0;be<fe.widgets.length;be++)if(fe.widgets[be].noHScroll){fo(ie,de,"widget");break}}++de}),this.curOp.forceUpdate=!0,rn(this,"refresh",this)}),operation:function(b){return Bi(this,b)},startOperation:function(){return Po(this)},endOperation:function(){return Oo(this)},refresh:yi(function(){var b=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,Co(this),Jo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Di(this.display))>.5||this.options.lineWrapping)&&Ka(this),rn(this,"refresh",this)}),swapDoc:yi(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Jo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Vr(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[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}},ze(a),a.registerHelper=function(b,z,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=ie},a.registerGlobalHelper=function(b,z,ie,le){a.registerHelper(b,z,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,z){var ie=y,le=x,de=Bt(a,y.line),fe=z&&a.direction=="rtl"?-x:x;function be(){var Vn=y.line+fe;return Vn<a.first||Vn>=a.first+a.size?!1:(y=new Me(Vn,y.ch,y.sticky),de=Bt(a,Vn))}function ot(Vn){var zn;if(b=="codepoint"){var Kn=de.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kn)?zn=null:zn=new Me(y.line,Math.max(0,Math.min(de.text.length,y.ch+x*(Kn>=55296&&Kn<56320?2:1))),-x)}else z?zn=Ou(a.cm,de,y,x):zn=dl(de,y,x);if(zn==null)if(!Vn&&be())y=fl(z,a.cm,de,y.line,fe);else return!1;else y=zn;return!0}if(b=="char"||b=="codepoint")ot();else if(b=="column")ot(!0);else if(b=="word"||b=="group")for(var vt=null,jt=b=="group",_t=a.cm&&a.cm.getHelper(y,"wordChars"),cn=!0;!(x<0&&!ot(!cn));cn=!1){var On=de.text.charAt(y.ch)||`
`,Ln=ue(On,_t)?"w":jt&&On==`
`?"n":!jt||/\s/.test(On)?null:"p";if(jt&&!cn&&!Ln&&(Ln="s"),vt&&vt!=Ln){x<0&&(x=1,ot(),y.sticky="after");break}if(Ln&&(vt=Ln),x>0&&!ot(!cn))break}var $n=Na(a,y,ie,le,!0);return It(ie,$n)&&($n.hitSide=!0),$n}function Rs(a,y,x,b){var z=a.doc,ie=y.left,le;if(b=="page"){var de=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(de-.5*Di(a.display),3);le=(x>0?y.bottom:y.top)+x*fe}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var be;be=ci(a,ie,le),!!be.outside;){if(x<0?le<=0:le>=z.height){be.hitSide=!0;break}le+=x*5}return be}var zr=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};zr.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;As(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ie(de){for(var fe=de.target;fe;fe=fe.parentNode){if(fe==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}$t(z,"paste",function(de){!ie(de)||Ot(b,de)||Bs(de,b)||ke<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),$t(z,"compositionstart",function(de){y.composing={data:de.data,done:!1}}),$t(z,"compositionupdate",function(de){y.composing||(y.composing={data:de.data,done:!1})}),$t(z,"compositionend",function(de){y.composing&&(de.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),$t(z,"touchstart",function(){return x.forceCompositionEnd()}),$t(z,"input",function(){y.composing||y.readFromDOMSoon()});function le(de){if(!(!ie(de)||Ot(b,de))){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()}),de.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var fe=Ls(b);Ha({lineWise:!0,text:fe.text}),de.type=="cut"&&b.operation(function(){b.setSelections(fe.ranges,0,ve),b.replaceSelection("",null,"cut")})}else return;if(de.clipboardData){de.clipboardData.clearData();var be=Ki.text.join(`
`);if(de.clipboardData.setData("Text",be),de.clipboardData.getData("Text")==be){de.preventDefault();return}}var ot=Ns(),vt=ot.firstChild;b.display.lineSpace.insertBefore(ot,b.display.lineSpace.firstChild),vt.value=Ki.text.join(`
`);var jt=document.activeElement;De(vt),setTimeout(function(){b.display.lineSpace.removeChild(ot),jt.focus(),jt==z&&x.showPrimarySelection()},50)}}$t(z,"copy",le),$t(z,"cut",le)},zr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},zr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},zr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},zr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=Wa(y,a.anchorNode,a.anchorOffset),le=Wa(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&le&&!le.bad&&Qe(vn(ie,le),b)==0&&Qe(un(ie,le),z)==0)){var de=y.display.view,fe=b.line>=y.display.viewFrom&&Fs(y,b)||{node:de[0].measure.map[2],offset:0},be=z.line<y.display.viewTo&&Fs(y,z);if(!be){var ot=de[de.length-1].measure,vt=ot.maps?ot.maps[ot.maps.length-1]:ot.map;be={node:vt[vt.length-1],offset:vt[vt.length-2]-vt[vt.length-3]}}if(!fe||!be){a.removeAllRanges();return}var jt=a.rangeCount&&a.getRangeAt(0),_t;try{_t=Ce(fe.node,fe.offset,be.offset,be.node)}catch(cn){}_t&&(!E&&y.state.focused?(a.collapse(fe.node,fe.offset),_t.collapsed||(a.removeAllRanges(),a.addRange(_t))):(a.removeAllRanges(),a.addRange(_t)),jt&&a.anchorNode==null?a.addRange(jt):E&&this.startGracePeriod()),this.rememberSelection()}},zr.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)},zr.prototype.showMultipleSelections=function(a){Ne(this.cm.display.cursorDiv,a.cursors),Ne(this.cm.display.selectionDiv,a.selection)},zr.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},zr.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Re(this.div,y)},zr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zr.prototype.blur=function(){this.div.blur()},zr.prototype.getField=function(){return this.div},zr.prototype.supportsTouch=function(){return!0},zr.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)},zr.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},zr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ae&&Pe&&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=Wa(y,a.anchorNode,a.anchorOffset),b=Wa(y,a.focusNode,a.focusOffset);x&&b&&Bi(y,function(){hi(y.doc,po(x,b),ve),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},zr.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(),z=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=Me(b.line-1,Bt(a.doc,b.line-1).length)),z.ch==Bt(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=Me(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,le,de;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=Xe(y.view[0].line),de=y.view[0].node):(le=Xe(y.view[ie].line),de=y.view[ie-1].node.nextSibling);var fe=wo(a,z.line),be,ot;if(fe==y.view.length-1?(be=y.viewTo-1,ot=y.lineDiv.lastChild):(be=Xe(y.view[fe+1].line)-1,ot=y.view[fe+1].node.previousSibling),!de)return!1;for(var vt=a.doc.splitLines(Ku(a,de,ot,le,be)),jt=Kt(a.doc,Me(le,0),Me(be,Bt(a.doc,be).text.length));vt.length>1&&jt.length>1;)if(Fe(vt)==Fe(jt))vt.pop(),jt.pop(),be--;else if(vt[0]==jt[0])vt.shift(),jt.shift(),le++;else break;for(var _t=0,cn=0,On=vt[0],Ln=jt[0],$n=Math.min(On.length,Ln.length);_t<$n&&On.charCodeAt(_t)==Ln.charCodeAt(_t);)++_t;for(var Vn=Fe(vt),zn=Fe(jt),Kn=Math.min(Vn.length-(vt.length==1?_t:0),zn.length-(jt.length==1?_t:0));cn<Kn&&Vn.charCodeAt(Vn.length-cn-1)==zn.charCodeAt(zn.length-cn-1);)++cn;if(vt.length==1&&jt.length==1&&le==b.line)for(;_t&&_t>b.ch&&Vn.charCodeAt(Vn.length-cn-1)==zn.charCodeAt(zn.length-cn-1);)_t--,cn++;vt[vt.length-1]=Vn.slice(0,Vn.length-cn).replace(/^\u200b+/,""),vt[0]=vt[0].slice(_t).replace(/\u200b+$/,"");var sr=Me(le,_t),nr=Me(be,jt.length?Fe(jt).length-cn:0);if(vt.length>1||vt[0]||Qe(sr,nr))return $o(a.doc,vt,sr,nr,"+input"),!0},zr.prototype.ensurePolled=function(){this.forceCompositionEnd()},zr.prototype.reset=function(){this.forceCompositionEnd()},zr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zr.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))},zr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Bi(this.cm,function(){return Si(a.cm)})},zr.prototype.setUneditable=function(a){a.contentEditable="false"},zr.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))},zr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},zr.prototype.onContextMenu=function(){},zr.prototype.resetPosition=function(){},zr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=Bt(a.doc,y.line),z=Do(x,b,y.line),ie=Ht(b,a.doc.direction),le="left";if(ie){var de=St(ie,y.ch);le=de%2?"right":"left"}var fe=xa(z.map,y.ch,le);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Zo(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,z){var ie="",le=!1,de=a.doc.lineSeparator(),fe=!1;function be(_t){return function(cn){return cn.id==_t}}function ot(){le&&(ie+=de,fe&&(ie+=de),le=fe=!1)}function vt(_t){_t&&(ot(),ie+=_t)}function jt(_t){if(_t.nodeType==1){var cn=_t.getAttribute("cm-text");if(cn){vt(cn);return}var On=_t.getAttribute("cm-marker"),Ln;if(On){var $n=a.findMarks(Me(b,0),Me(z+1,0),be(+On));$n.length&&(Ln=$n[0].find(0))&&vt(Kt(a.doc,Ln.from,Ln.to).join(de));return}if(_t.getAttribute("contenteditable")=="false")return;var Vn=/^(pre|div|p|li|table|br)$/i.test(_t.nodeName);if(!/^br$/i.test(_t.nodeName)&&_t.textContent.length==0)return;Vn&&ot();for(var zn=0;zn<_t.childNodes.length;zn++)jt(_t.childNodes[zn]);/^(pre|p)$/i.test(_t.nodeName)&&(fe=!0),Vn&&(le=!0)}else _t.nodeType==3&&vt(_t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;jt(y),y!=x;)y=y.nextSibling,fe=!1;return ie}function Wa(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Zo(a.clipPos(Me(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 z=0;z<a.display.view.length;z++){var ie=a.display.view[z];if(ie.node==b)return Xu(ie,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,z=!1;if(!y||!Re(b,y))return Zo(Me(Xe(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?Fe(a.rest):a.line;return Zo(Me(Xe(ie),ie.text.length),z)}var le=y.nodeType==3?y:null,de=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));de.parentNode!=b;)de=de.parentNode;var fe=a.measure,be=fe.maps;function ot(Ln,$n,Vn){for(var zn=-1;zn<(be?be.length:0);zn++)for(var Kn=zn<0?fe.map:be[zn],sr=0;sr<Kn.length;sr+=3){var nr=Kn[sr+2];if(nr==Ln||nr==$n){var wr=Xe(zn<0?a.line:a.rest[zn]),jr=Kn[sr]+Vn;return(Vn<0||nr!=Ln)&&(jr=Kn[sr+(Vn?1:0)]),Me(wr,jr)}}}var vt=ot(le,de,x);if(vt)return Zo(vt,z);for(var jt=de.nextSibling,_t=le?le.nodeValue.length-x:0;jt;jt=jt.nextSibling){if(vt=ot(jt,jt.firstChild,0),vt)return Zo(Me(vt.line,vt.ch-_t),z);_t+=jt.textContent.length}for(var cn=de.previousSibling,On=x;cn;cn=cn.previousSibling){if(vt=ot(cn,cn.firstChild,-1),vt)return Zo(Me(vt.line,vt.ch+On),z);On+=cn.textContent.length}}var Qr=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};Qr.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),qe&&(z.style.width="0px"),$t(z,"input",function(){Se&&ke>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),$t(z,"paste",function(le){Ot(b,le)||Bs(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!Ot(b,le)){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var de=Ls(b);Ha({lineWise:!0,text:de.text}),le.type=="cut"?b.setSelections(de.ranges,null,ve):(x.prevInput="",z.value=de.text.join(`
`),De(z))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}$t(z,"cut",ie),$t(z,"copy",ie),$t(a.scroller,"paste",function(le){if(!(ui(a,le)||Ot(b,le))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var de=new Event("paste");de.clipboardData=le.clipboardData,z.dispatchEvent(de)}}),$t(a.lineSpace,"selectstart",function(le){ui(a,le)||dt(le)}),$t(z,"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"})}}),$t(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Qr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Qr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Qr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var z=Ci(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+le.left-ie.left))}return b},Qr.prototype.showSelection=function(a){var y=this.cm,x=y.display;Ne(x.cursorDiv,a.cursors),Ne(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Qr.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&&De(this.textarea),Se&&ke>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Se&&ke>=9&&(this.hasSelection=null))}},Qr.prototype.getField=function(){return this.textarea},Qr.prototype.supportsTouch=function(){return!1},Qr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ue||_e()!=this.textarea))try{this.textarea.focus()}catch(a){}},Qr.prototype.blur=function(){this.textarea.blur()},Qr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qr.prototype.receivedFocus=function(){this.slowPoll()},Qr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Qr.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)},Qr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||bn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(Se&&ke>=9&&this.hasSelection===z||He&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,de=Math.min(b.length,z.length);le<de&&b.charCodeAt(le)==z.charCodeAt(le);)++le;return Bi(y,function(){gl(y,z.slice(le),b.length-le,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qr.prototype.onKeyPress=function(){Se&&ke>=9&&(this.hasSelection=null),this.fastPoll()},Qr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=So(x,a),le=b.scroller.scrollTop;if(!ie||he)return;var de=x.options.resetSelectionOnContextMenu;de&&x.doc.sel.contains(ie)==-1&&oi(x,hi)(x.doc,po(ie),ve);var fe=z.style.cssText,be=y.wrapper.style.cssText,ot=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-ot.top-5)+"px; left: "+(a.clientX-ot.left-5)+`px;
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var vt;Ie&&(vt=window.scrollY),b.input.focus(),Ie&&window.scrollTo(null,vt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=_t,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function jt(){if(z.selectionStart!=null){var On=x.somethingSelected(),Ln="\u200B"+(On?z.value:"");z.value="\u21DA",z.value=Ln,y.prevInput=On?"":"\u200B",z.selectionStart=1,z.selectionEnd=Ln.length,b.selForContextMenu=x.doc.sel}}function _t(){if(y.contextMenuPending==_t&&(y.contextMenuPending=!1,y.wrapper.style.cssText=be,z.style.cssText=fe,Se&&ke<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),z.selectionStart!=null)){(!Se||Se&&ke<9)&&jt();var On=0,Ln=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):On++<10?b.detectingSelectAll=setTimeout(Ln,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Ln,200)}}if(Se&&ke>=9&&jt(),it){Be(a);var cn=function(){Xt(window,"mouseup",cn),setTimeout(_t,20)};$t(window,"mouseup",cn)}else setTimeout(_t,50)},Qr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Qr.prototype.setUneditable=function(){},Qr.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?ct(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=_e();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=de.getValue()}var z;if(a.form&&($t(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=le}}catch(fe){}}y.finishInit=function(fe){fe.save=b,fe.getTextArea=function(){return a},fe.toTextArea=function(){fe.toTextArea=isNaN,b(),a.parentNode.removeChild(fe.getWrapperElement()),a.style.display="",a.form&&(Xt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var de=Gr(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return de}function Qu(a){a.off=Xt,a.on=$t,a.wheelEventPixels=iu,a.Doc=wi,a.splitLines=on,a.countColumn=me,a.findColumn=wt,a.isWordChar=oe,a.Pass=yt,a.signal=rn,a.Line=Mr,a.changeEnd=mo,a.scrollbarModel=Bl,a.Pos=Me,a.cmpPos=Qe,a.modes=Rt,a.mimeModes=Et,a.resolveMode=qt,a.getMode=gn,a.modeExtensions=wn,a.extendMode=Sn,a.copyState=Mn,a.startState=Wn,a.innerMode=kn,a.commands=ha,a.keyMap=io,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Ho,a.normalizeKeyMap=Pu,a.StringStream=An,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=dt,a.e_stopPropagation=Nt,a.e_stop=Be,a.addClass=se,a.contains=Re,a.rmClass=Ke,a.keyNames=yo}Wu(Gr),Gu(Gr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var ja in wi.prototype)wi.prototype.hasOwnProperty(ja)&&je(Ju,ja)<0&&(Gr.prototype[ja]=function(a){return function(){return a.apply(this.doc,arguments)}}(wi.prototype[ja]));return ze(wi),Gr.inputStyles={textarea:Qr,contenteditable:zr},Gr.defineMode=function(a){!Gr.defaults.mode&&a!="null"&&(Gr.defaults.mode=a),en.apply(this,arguments)},Gr.defineMIME=Jt,Gr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Gr.defineMIME("text/plain","null"),Gr.defineExtension=function(a,y){Gr.prototype[a]=y},Gr.defineDocExtension=function(a,y){wi.prototype[a]=y},Gr.fromTextArea=Yu,Qu(Gr),Gr.version="5.58.2",Gr})},25419:function(nn,zt,re){(function(E){E(re(89780),re(15525),re(98101))})(function(E){"use strict";E.defineMode("markdown",function(lt,ye){var et=E.getMode(lt,"text/html"),Se=et.name=="null";function ke(me){if(E.findModeByName){var ce=E.findModeByName(me);ce&&(me=ce.mime||ce.mimes[0])}var je=E.getMode(lt,me);return je.name=="null"?null:je}ye.highlightFormatting===void 0&&(ye.highlightFormatting=!1),ye.maxBlockquoteDepth===void 0&&(ye.maxBlockquoteDepth=0),ye.taskLists===void 0&&(ye.taskLists=!1),ye.strikethrough===void 0&&(ye.strikethrough=!1),ye.emoji===void 0&&(ye.emoji=!1),ye.fencedCodeBlockHighlighting===void 0&&(ye.fencedCodeBlockHighlighting=!0),ye.fencedCodeBlockDefaultMode===void 0&&(ye.fencedCodeBlockDefaultMode="text/plain"),ye.xml===void 0&&(ye.xml=!0),ye.tokenTypeOverrides===void 0&&(ye.tokenTypeOverrides={});var Ie={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ze in Ie)Ie.hasOwnProperty(Ze)&&ye.tokenTypeOverrides[Ze]&&(Ie[Ze]=ye.tokenTypeOverrides[Ze]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,Ee=ye.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ct=/^ {0,3}(?:\={1,}|-{2,})\s*$/,qe=/^[^#!\[\]*_\\<>` "'(~:]+/,Ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ue=/^\s*\[[^\]]+?\]:.*$/,He=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,at=" ";function xt(me,ce,je){return ce.f=ce.inline=je,je(me,ce)}function kt(me,ce,je){return ce.f=ce.block=je,je(me,ce)}function ft(me){return!me||!/\S/.test(me.string)}function it(me){if(me.linkTitle=!1,me.linkHref=!1,me.linkText=!1,me.em=!1,me.strong=!1,me.strikethrough=!1,me.quote=0,me.indentedCode=!1,me.f==Ke){var ce=Se;if(!ce){var je=E.innerMode(et,me.htmlState);ce=je.mode.name=="xml"&&je.state.tagStart===null&&!je.state.context&&je.state.tokenize.isInText}ce&&(me.f=ht,me.block=tt,me.htmlState=null)}return me.trailingSpace=0,me.trailingSpaceNewLine=!1,me.prevLine=me.thisLine,me.thisLine={stream:null},null}function tt(me,ce){var je=me.column()===ce.indentation,Pt=ft(ce.prevLine.stream),yt=ce.indentedCode,ve=ce.prevLine.hr,Te=ce.list!==!1,Le=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var wt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,Te)){for(ce.list=null;wt<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=wt-ce.listStack[ce.listStack.length-1])}var pt=!Pt&&!ve&&!ce.prevLine.header&&(!Te||!yt)&&!ce.prevLine.fencedCodeEnd,Mt=(ce.list===!1||ve||Pt)&&ce.indentation<=Le&&me.match(Pe),Fe=null;if(ce.indentationDiff>=4&&(yt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||Pt))return me.skipToEnd(),ce.indentedCode=!0,Ie.code;if(me.eatSpace())return null;if(je&&ce.indentation<=Le&&(Fe=me.match(Ee))&&Fe[1].length<=6)return ce.quote=0,ce.header=Fe[1].length,ce.thisLine.header=!0,ye.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,Ne(ce);if(ce.indentation<=Le&&me.eat(">"))return ce.quote=je?1:ce.quote+1,ye.highlightFormatting&&(ce.formatting="quote"),me.eatSpace(),Ne(ce);if(!Mt&&!ce.setext&&je&&ce.indentation<=Le&&(Fe=me.match(he))){var At=Fe[1]?"ol":"ul";return ce.indentation=wt+me.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,ye.taskLists&&me.match(Je,!1)&&(ce.taskList=!0),ce.f=ce.inline,ye.highlightFormatting&&(ce.formatting=["list","list-"+At]),Ne(ce)}else{if(je&&ce.indentation<=Le&&(Fe=me.match(Ae,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Fe[1]+"+ *$"),ce.localMode=ye.fencedCodeBlockHighlighting&&ke(Fe[2]||ye.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=E.startState(ce.localMode)),ce.f=ce.block=gt,ye.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,Ne(ce);if(ce.setext||(!pt||!Te)&&!ce.quote&&ce.list===!1&&!ce.code&&!Mt&&!Ue.test(me.string)&&(Fe=me.lookAhead(1))&&(Fe=Fe.match(Ct)))return ce.setext?(ce.header=ce.setext,ce.setext=0,me.skipToEnd(),ye.highlightFormatting&&(ce.formatting="header")):(ce.header=Fe[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,Ne(ce);if(Mt)return me.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Ie.hr;if(me.peek()==="[")return xt(me,ce,$e)}return xt(me,ce,ce.inline)}function Ke(me,ce){var je=et.token(me,ce.htmlState);if(!Se){var Pt=E.innerMode(et,ce.htmlState);(Pt.mode.name=="xml"&&Pt.state.tagStart===null&&!Pt.state.context&&Pt.state.tokenize.isInText||ce.md_inside&&me.current().indexOf(">")>-1)&&(ce.f=ht,ce.block=tt,ce.htmlState=null)}return je}function gt(me,ce){var je=ce.listStack[ce.listStack.length-1]||0,Pt=ce.indentation<je,yt=je+3;if(ce.fencedEndRE&&ce.indentation<=yt&&(Pt||me.match(ce.fencedEndRE))){ye.highlightFormatting&&(ce.formatting="code-block");var ve;return Pt||(ve=Ne(ce)),ce.localMode=ce.localState=null,ce.block=tt,ce.f=ht,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,Pt?kt(me,ce,ce.block):ve}else return ce.localMode?ce.localMode.token(me,ce.localState):(me.skipToEnd(),Ie.code)}function Ne(me){var ce=[];if(me.formatting){ce.push(Ie.formatting),typeof me.formatting=="string"&&(me.formatting=[me.formatting]);for(var je=0;je<me.formatting.length;je++)ce.push(Ie.formatting+"-"+me.formatting[je]),me.formatting[je]==="header"&&ce.push(Ie.formatting+"-"+me.formatting[je]+"-"+me.header),me.formatting[je]==="quote"&&(!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=me.quote?ce.push(Ie.formatting+"-"+me.formatting[je]+"-"+me.quote):ce.push("error"))}if(me.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(me.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(me.linkHref?ce.push(Ie.linkHref,"url"):(me.strong&&ce.push(Ie.strong),me.em&&ce.push(Ie.em),me.strikethrough&&ce.push(Ie.strikethrough),me.emoji&&ce.push(Ie.emoji),me.linkText&&ce.push(Ie.linkText),me.code&&ce.push(Ie.code),me.image&&ce.push(Ie.image),me.imageAltText&&ce.push(Ie.imageAltText,"link"),me.imageMarker&&ce.push(Ie.imageMarker)),me.header&&ce.push(Ie.header,Ie.header+"-"+me.header),me.quote&&(ce.push(Ie.quote),!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=me.quote?ce.push(Ie.quote+"-"+me.quote):ce.push(Ie.quote+"-"+ye.maxBlockquoteDepth)),me.list!==!1){var Pt=(me.listStack.length-1)%3;Pt?Pt===1?ce.push(Ie.list2):ce.push(Ie.list3):ce.push(Ie.list1)}return me.trailingSpaceNewLine?ce.push("trailing-space-new-line"):me.trailingSpace&&ce.push("trailing-space-"+(me.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function Ve(me,ce){if(me.match(qe,!0))return Ne(ce)}function ht(me,ce){var je=ce.text(me,ce);if(typeof je!="undefined")return je;if(ce.list)return ce.list=null,Ne(ce);if(ce.taskList){var Pt=me.match(Je,!0)[1]===" ";return Pt?ce.taskOpen=!0:ce.taskClosed=!0,ye.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,Ne(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&me.match(/^#+$/,!0))return ye.highlightFormatting&&(ce.formatting="header"),Ne(ce);var yt=me.next();if(ce.linkTitle){ce.linkTitle=!1;var ve=yt;yt==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Te="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(me.match(new RegExp(Te),!0))return Ie.linkHref}if(yt==="`"){var Le=ce.formatting;ye.highlightFormatting&&(ce.formatting="code"),me.eatWhile("`");var wt=me.current().length;if(ce.code==0&&(!ce.quote||wt==1))return ce.code=wt,Ne(ce);if(wt==ce.code){var pt=Ne(ce);return ce.code=0,pt}else return ce.formatting=Le,Ne(ce)}else if(ce.code)return Ne(ce);if(yt==="\\"&&(me.next(),ye.highlightFormatting)){var Mt=Ne(ce),Fe=Ie.formatting+"-escape";return Mt?Mt+" "+Fe:Fe}if(yt==="!"&&me.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ye.highlightFormatting&&(ce.formatting="image"),Ne(ce);if(yt==="["&&ce.imageMarker&&me.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ye.highlightFormatting&&(ce.formatting="image"),Ne(ce);if(yt==="]"&&ce.imageAltText){ye.highlightFormatting&&(ce.formatting="image");var Mt=Ne(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Re,Mt}if(yt==="["&&!ce.image)return ce.linkText&&me.match(/^.*?\]/)||(ce.linkText=!0,ye.highlightFormatting&&(ce.formatting="link")),Ne(ce);if(yt==="]"&&ce.linkText){ye.highlightFormatting&&(ce.formatting="link");var Mt=Ne(ce);return ce.linkText=!1,ce.inline=ce.f=me.match(/\(.*?\)| ?\[.*?\]/,!1)?Re:ht,Mt}if(yt==="<"&&me.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Ce,ye.highlightFormatting&&(ce.formatting="link");var Mt=Ne(ce);return Mt?Mt+=" ":Mt="",Mt+Ie.linkInline}if(yt==="<"&&me.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Ce,ye.highlightFormatting&&(ce.formatting="link");var Mt=Ne(ce);return Mt?Mt+=" ":Mt="",Mt+Ie.linkEmail}if(ye.xml&&yt==="<"&&me.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var At=me.string.indexOf(">",me.pos);if(At!=-1){var ut=me.string.substring(me.start,At);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ut)&&(ce.md_inside=!0)}return me.backUp(1),ce.htmlState=E.startState(et),kt(me,ce,Ke)}if(ye.xml&&yt==="<"&&me.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var ae=1,te=me.pos==1?" ":me.string.charAt(me.pos-2);ae<3&&me.eat(yt);)ae++;var ee=me.peek()||" ",oe=!/\s/.test(ee)&&(!He.test(ee)||/\s/.test(te)||He.test(te)),ue=!/\s/.test(te)&&(!He.test(te)||/\s/.test(ee)||He.test(ee)),ne=null,pe=null;if(ae%2&&(!ce.em&&oe&&(yt==="*"||!ue||He.test(te))?ne=!0:ce.em==yt&&ue&&(yt==="*"||!oe||He.test(ee))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(yt==="*"||!ue||He.test(te))?pe=!0:ce.strong==yt&&ue&&(yt==="*"||!oe||He.test(ee))&&(pe=!1)),pe!=null||ne!=null){ye.highlightFormatting&&(ce.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(ce.em=yt),pe===!0&&(ce.strong=yt);var pt=Ne(ce);return ne===!1&&(ce.em=!1),pe===!1&&(ce.strong=!1),pt}}else if(yt===" "&&(me.eat("*")||me.eat("_"))){if(me.peek()===" ")return Ne(ce);me.backUp(1)}if(ye.strikethrough){if(yt==="~"&&me.eatWhile(yt)){if(ce.strikethrough){ye.highlightFormatting&&(ce.formatting="strikethrough");var pt=Ne(ce);return ce.strikethrough=!1,pt}else if(me.match(/^[^\s]/,!1))return ce.strikethrough=!0,ye.highlightFormatting&&(ce.formatting="strikethrough"),Ne(ce)}else if(yt===" "&&me.match(/^~~/,!0)){if(me.peek()===" ")return Ne(ce);me.backUp(2)}}if(ye.emoji&&yt===":"&&me.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ye.highlightFormatting&&(ce.formatting="emoji");var ge=Ne(ce);return ce.emoji=!1,ge}return yt===" "&&(me.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),Ne(ce)}function Ce(me,ce){var je=me.next();if(je===">"){ce.f=ce.inline=ht,ye.highlightFormatting&&(ce.formatting="link");var Pt=Ne(ce);return Pt?Pt+=" ":Pt="",Pt+Ie.linkInline}return me.match(/^[^>]+/,!0),Ie.linkInline}function Re(me,ce){if(me.eatSpace())return null;var je=me.next();return je==="("||je==="["?(ce.f=ce.inline=se(je==="("?")":"]"),ye.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,Ne(ce)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function se(me){return function(ce,je){var Pt=ce.next();if(Pt===me){je.f=je.inline=ht,ye.highlightFormatting&&(je.formatting="link-string");var yt=Ne(je);return je.linkHref=!1,yt}return ce.match(_e[me]),je.linkHref=!0,Ne(je)}}function $e(me,ce){return me.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=De,me.next(),ye.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,Ne(ce)):xt(me,ce,ht)}function De(me,ce){if(me.match(/^\]:/,!0)){ce.f=ce.inline=we,ye.highlightFormatting&&(ce.formatting="link");var je=Ne(ce);return ce.linkText=!1,je}return me.match(/^([^\]\\]|\\.)+/,!0),Ie.linkText}function we(me,ce){return me.eatSpace()?null:(me.match(/^[^\s]+/,!0),me.peek()===void 0?ce.linkTitle=!0:me.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=ht,Ie.linkHref+" url")}var ct={startState:function(){return{f:tt,prevLine:{stream:null},thisLine:{stream:null},block:tt,htmlState:null,indentation:0,inline:ht,text:Ve,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(me){return{f:me.f,prevLine:me.prevLine,thisLine:me.thisLine,block:me.block,htmlState:me.htmlState&&E.copyState(et,me.htmlState),indentation:me.indentation,localMode:me.localMode,localState:me.localMode?E.copyState(me.localMode,me.localState):null,inline:me.inline,text:me.text,formatting:!1,linkText:me.linkText,linkTitle:me.linkTitle,linkHref:me.linkHref,code:me.code,em:me.em,strong:me.strong,strikethrough:me.strikethrough,emoji:me.emoji,header:me.header,setext:me.setext,hr:me.hr,taskList:me.taskList,list:me.list,listStack:me.listStack.slice(0),quote:me.quote,indentedCode:me.indentedCode,trailingSpace:me.trailingSpace,trailingSpaceNewLine:me.trailingSpaceNewLine,md_inside:me.md_inside,fencedEndRE:me.fencedEndRE}},token:function(me,ce){if(ce.formatting=!1,me!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,me.match(/^\s*$/,!0))return it(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:me},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=Ke)){var je=me.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(ce.indentation=je,ce.indentationDiff=null,je>0)return null}}return ce.f(me,ce)},innerMode:function(me){return me.block==Ke?{state:me.htmlState,mode:et}:me.localState?{state:me.localState,mode:me.localMode}:{state:me,mode:ct}},indent:function(me,ce,je){return me.block==Ke&&et.indent?et.indent(me.htmlState,ce,je):me.localState&&me.localMode.indent?me.localMode.indent(me.localState,ce,je):E.Pass},blankLine:it,getType:Ne,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ct},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(nn,zt,re){(function(E){E(re(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var lt=0;lt<E.modeInfo.length;lt++){var ye=E.modeInfo[lt];ye.mimes&&(ye.mime=ye.mimes[0])}E.findModeByMIME=function(et){et=et.toLowerCase();for(var Se=0;Se<E.modeInfo.length;Se++){var ke=E.modeInfo[Se];if(ke.mime==et)return ke;if(ke.mimes){for(var Ie=0;Ie<ke.mimes.length;Ie++)if(ke.mimes[Ie]==et)return ke}}if(/\+xml$/.test(et))return E.findModeByMIME("application/xml");if(/\+json$/.test(et))return E.findModeByMIME("application/json")},E.findModeByExtension=function(et){et=et.toLowerCase();for(var Se=0;Se<E.modeInfo.length;Se++){var ke=E.modeInfo[Se];if(ke.ext){for(var Ie=0;Ie<ke.ext.length;Ie++)if(ke.ext[Ie]==et)return ke}}},E.findModeByFileName=function(et){for(var Se=0;Se<E.modeInfo.length;Se++){var ke=E.modeInfo[Se];if(ke.file&&ke.file.test(et))return ke}var Ie=et.lastIndexOf("."),Ze=Ie>-1&&et.substring(Ie+1,et.length);if(Ze)return E.findModeByExtension(Ze)},E.findModeByName=function(et){et=et.toLowerCase();for(var Se=0;Se<E.modeInfo.length;Se++){var ke=E.modeInfo[Se];if(ke.name.toLowerCase()==et)return ke;if(ke.alias){for(var Ie=0;Ie<ke.alias.length;Ie++)if(ke.alias[Ie].toLowerCase()==et)return ke}}}})},67549:function(nn,zt,re){(function(E){E(re(89780))})(function(E){"use strict";E.defineMode("stex",function(lt,ye){"use strict";function et(qe,Ae){qe.cmdState.push(Ae)}function Se(qe){return qe.cmdState.length>0?qe.cmdState[qe.cmdState.length-1]:null}function ke(qe){var Ae=qe.cmdState.pop();Ae&&Ae.closeBracket()}function Ie(qe){for(var Ae=qe.cmdState,Ue=Ae.length-1;Ue>=0;Ue--){var He=Ae[Ue];if(He.name!="DEFAULT")return He}return{styleIdentifier:function(){return null}}}function Ze(qe,Ae,Ue){return function(){this.name=qe,this.bracketNo=0,this.style=Ae,this.styles=Ue,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=Ze("importmodule","tag",["string","builtin"]),Pe.documentclass=Ze("documentclass","tag",["","atom"]),Pe.usepackage=Ze("usepackage","tag",["atom"]),Pe.begin=Ze("begin","tag",["atom"]),Pe.end=Ze("end","tag",["atom"]),Pe.label=Ze("label","tag",["atom"]),Pe.ref=Ze("ref","tag",["atom"]),Pe.eqref=Ze("eqref","tag",["atom"]),Pe.cite=Ze("cite","tag",["atom"]),Pe.bibitem=Ze("bibitem","tag",["atom"]),Pe.Bibitem=Ze("Bibitem","tag",["atom"]),Pe.RBibitem=Ze("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(qe,Ae){qe.f=Ae}function Je(qe,Ae){var Ue;if(qe.match(/^\\[a-zA-Z@]+/)){var He=qe.current().slice(1);return Ue=Pe.hasOwnProperty(He)?Pe[He]:Pe.DEFAULT,Ue=new Ue,et(Ae,Ue),he(Ae,Ct),Ue.style}if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/\\]/))return"tag";if(qe.match("\\["))return he(Ae,function(xt,kt){return Ee(xt,kt,"\\]")}),"keyword";if(qe.match("\\("))return he(Ae,function(xt,kt){return Ee(xt,kt,"\\)")}),"keyword";if(qe.match("$$"))return he(Ae,function(xt,kt){return Ee(xt,kt,"$$")}),"keyword";if(qe.match("$"))return he(Ae,function(xt,kt){return Ee(xt,kt,"$")}),"keyword";var at=qe.next();if(at=="%")return qe.skipToEnd(),"comment";if(at=="}"||at=="]"){if(Ue=Se(Ae),Ue)Ue.closeBracket(at),he(Ae,Ct);else return"error";return"bracket"}else return at=="{"||at=="["?(Ue=Pe.DEFAULT,Ue=new Ue,et(Ae,Ue),"bracket"):/\d/.test(at)?(qe.eatWhile(/[\w.%]/),"atom"):(qe.eatWhile(/[\w\-_]/),Ue=Ie(Ae),Ue.name=="begin"&&(Ue.argument=qe.current()),Ue.styleIdentifier())}function Ee(qe,Ae,Ue){if(qe.eatSpace())return null;if(Ue&&qe.match(Ue))return he(Ae,Je),"keyword";if(qe.match(/^\\[a-zA-Z@]+/))return"tag";if(qe.match(/^[a-zA-Z]+/))return"variable-2";if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/]/)||qe.match(/^[\^_&]/))return"tag";if(qe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(qe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var He=qe.next();return He=="{"||He=="}"||He=="["||He=="]"||He=="("||He==")"?"bracket":He=="%"?(qe.skipToEnd(),"comment"):"error"}function Ct(qe,Ae){var Ue=qe.peek(),He;return Ue=="{"||Ue=="["?(He=Se(Ae),He.openBracket(Ue),qe.eat(Ue),he(Ae,Je),"bracket"):/[ \t\r]/.test(Ue)?(qe.eat(Ue),null):(he(Ae,Je),ke(Ae),Je(qe,Ae))}return{startState:function(){var qe=ye.inMathMode?function(Ae,Ue){return Ee(Ae,Ue)}:Je;return{cmdState:[],f:qe}},copyState:function(qe){return{cmdState:qe.cmdState.slice(),f:qe.f}},token:function(qe,Ae){return Ae.f(qe,Ae)},blankLine:function(qe){qe.f=Je,qe.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(nn,zt,re){(function(E){E(re(89780))})(function(E){"use strict";var lt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},ye={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(et,Se){var ke=et.indentUnit,Ie={},Ze=Se.htmlMode?lt:ye;for(var Pe in Ze)Ie[Pe]=Ze[Pe];for(var Pe in Se)Ie[Pe]=Se[Pe];var he,Je;function Ee(Ce,Re){function _e(De){return Re.tokenize=De,De(Ce,Re)}var se=Ce.next();if(se=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?_e(Ae("atom","]]>")):null:Ce.match("--")?_e(Ae("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),_e(Ue(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),Re.tokenize=Ae("meta","?>"),"meta"):(he=Ce.eat("/")?"closeTag":"openTag",Re.tokenize=Ct,"tag bracket");if(se=="&"){var $e;return Ce.eat("#")?Ce.eat("x")?$e=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):$e=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):$e=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),$e?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}Ee.isInText=!0;function Ct(Ce,Re){var _e=Ce.next();if(_e==">"||_e=="/"&&Ce.eat(">"))return Re.tokenize=Ee,he=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return he="equals",null;if(_e=="<"){Re.tokenize=Ee,Re.state=kt,Re.tagName=Re.tagStart=null;var se=Re.tokenize(Ce,Re);return se?se+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(Re.tokenize=qe(_e),Re.stringStartCol=Ce.column(),Re.tokenize(Ce,Re)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function qe(Ce){var Re=function(_e,se){for(;!_e.eol();)if(_e.next()==Ce){se.tokenize=Ct;break}return"string"};return Re.isInAttribute=!0,Re}function Ae(Ce,Re){return function(_e,se){for(;!_e.eol();){if(_e.match(Re)){se.tokenize=Ee;break}_e.next()}return Ce}}function Ue(Ce){return function(Re,_e){for(var se;(se=Re.next())!=null;){if(se=="<")return _e.tokenize=Ue(Ce+1),_e.tokenize(Re,_e);if(se==">")if(Ce==1){_e.tokenize=Ee;break}else return _e.tokenize=Ue(Ce-1),_e.tokenize(Re,_e)}return"meta"}}function He(Ce,Re,_e){this.prev=Ce.context,this.tagName=Re,this.indent=Ce.indented,this.startOfLine=_e,(Ie.doNotIndent.hasOwnProperty(Re)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function at(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function xt(Ce,Re){for(var _e;;){if(!Ce.context||(_e=Ce.context.tagName,!Ie.contextGrabbers.hasOwnProperty(_e)||!Ie.contextGrabbers[_e].hasOwnProperty(Re)))return;at(Ce)}}function kt(Ce,Re,_e){return Ce=="openTag"?(_e.tagStart=Re.column(),ft):Ce=="closeTag"?it:kt}function ft(Ce,Re,_e){return Ce=="word"?(_e.tagName=Re.current(),Je="tag",gt):Ie.allowMissingTagName&&Ce=="endTag"?(Je="tag bracket",gt(Ce,Re,_e)):(Je="error",ft)}function it(Ce,Re,_e){if(Ce=="word"){var se=Re.current();return _e.context&&_e.context.tagName!=se&&Ie.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&at(_e),_e.context&&_e.context.tagName==se||Ie.matchClosing===!1?(Je="tag",tt):(Je="tag error",Ke)}else return Ie.allowMissingTagName&&Ce=="endTag"?(Je="tag bracket",tt(Ce,Re,_e)):(Je="error",Ke)}function tt(Ce,Re,_e){return Ce!="endTag"?(Je="error",tt):(at(_e),kt)}function Ke(Ce,Re,_e){return Je="error",tt(Ce,Re,_e)}function gt(Ce,Re,_e){if(Ce=="word")return Je="attribute",Ne;if(Ce=="endTag"||Ce=="selfcloseTag"){var se=_e.tagName,$e=_e.tagStart;return _e.tagName=_e.tagStart=null,Ce=="selfcloseTag"||Ie.autoSelfClosers.hasOwnProperty(se)?xt(_e,se):(xt(_e,se),_e.context=new He(_e,se,$e==_e.indented)),kt}return Je="error",gt}function Ne(Ce,Re,_e){return Ce=="equals"?Ve:(Ie.allowMissing||(Je="error"),gt(Ce,Re,_e))}function Ve(Ce,Re,_e){return Ce=="string"?ht:Ce=="word"&&Ie.allowUnquoted?(Je="string",gt):(Je="error",gt(Ce,Re,_e))}function ht(Ce,Re,_e){return Ce=="string"?ht:gt(Ce,Re,_e)}return{startState:function(Ce){var Re={tokenize:Ee,state:kt,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(Re.baseIndent=Ce),Re},token:function(Ce,Re){if(!Re.tagName&&Ce.sol()&&(Re.indented=Ce.indentation()),Ce.eatSpace())return null;he=null;var _e=Re.tokenize(Ce,Re);return(_e||he)&&_e!="comment"&&(Je=null,Re.state=Re.state(he||_e,Ce,Re),Je&&(_e=Je=="error"?_e+" error":Je)),_e},indent:function(Ce,Re,_e){var se=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+ke;if(se&&se.noIndent)return E.Pass;if(Ce.tokenize!=Ct&&Ce.tokenize!=Ee)return _e?_e.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return Ie.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+ke*(Ie.multilineTagIndentFactor||1);if(Ie.alignCDATA&&/<!\[CDATA\[/.test(Re))return 0;var $e=Re&&/^<(\/)?([\w_:\.-]*)/.exec(Re);if($e&&$e[1])for(;se;)if(se.tagName==$e[2]){se=se.prev;break}else if(Ie.implicitlyClosed.hasOwnProperty(se.tagName))se=se.prev;else break;else if($e)for(;se;){var De=Ie.contextGrabbers[se.tagName];if(De&&De.hasOwnProperty($e[2]))se=se.prev;else break}for(;se&&se.prev&&!se.startOfLine;)se=se.prev;return se?se.indent+ke:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ie.htmlMode?"html":"xml",helperType:Ie.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==Ve&&(Ce.state=gt)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var Re=[],_e=Ce.context;_e;_e=_e.prev)_e.tagName&&Re.push(_e.tagName);return Re.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(nn,zt,re){"use strict";re.d(zt,{hP:function(){return ut}});var E=function(ae,te){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(ee[ue]=oe[ue])})(ae,te)};function lt(ae,te){function ee(){this.constructor=ae}E(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ye(ae,te,ee,oe){return new(ee||(ee=Promise))(function(ue,ne){function pe(xe){try{We(oe.next(xe))}catch(Ge){ne(Ge)}}function ge(xe){try{We(oe.throw(xe))}catch(Ge){ne(Ge)}}function We(xe){var Ge;xe.done?ue(xe.value):(Ge=xe.value,Ge instanceof ee?Ge:new ee(function(nt){nt(Ge)})).then(pe,ge)}We((oe=oe.apply(ae,te||[])).next())})}function et(ae,te){var ee,oe,ue,ne,pe={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ne={next:ge(0),throw:ge(1),return:ge(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function ge(We){return function(xe){return function(Ge){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(ue=2&Ge[0]?oe.return:Ge[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ge[1])).done)return ue;switch(oe=0,ue&&(Ge=[2&Ge[0],ue.value]),Ge[0]){case 0:case 1:ue=Ge;break;case 4:return pe.label++,{value:Ge[1],done:!1};case 5:pe.label++,oe=Ge[1],Ge=[0];continue;case 7:Ge=pe.ops.pop(),pe.trys.pop();continue;default:if(ue=pe.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ge[0]!==6&&Ge[0]!==2)){pe=0;continue}if(Ge[0]===3&&(!ue||Ge[1]>ue[0]&&Ge[1]<ue[3])){pe.label=Ge[1];break}if(Ge[0]===6&&pe.label<ue[1]){pe.label=ue[1],ue=Ge;break}if(ue&&pe.label<ue[2]){pe.label=ue[2],pe.ops.push(Ge);break}ue[2]&&pe.ops.pop(),pe.trys.pop();continue}Ge=te.call(ae,pe)}catch(nt){Ge=[6,nt],oe=0}finally{ee=ue=0}if(5&Ge[0])throw Ge[1];return{value:Ge[0]?Ge[1]:void 0,done:!0}}([We,xe])}}}function Se(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),ue=0;for(te=0;te<ee;te++)for(var ne=arguments[te],pe=0,ge=ne.length;pe<ge;pe++,ue++)oe[ue]=ne[pe];return oe}var ke=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,ue=ee;oe<ue.length;oe++){var ne=ue[oe],pe=ne[0],ge=ne[1];te.setAttribute(pe,ge)}},ae.createRect=function(te,ee,oe){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",te.toString()),ue.setAttribute("height",ee.toString()),oe&&ae.setAttributes(ue,oe),ue},ae.createLine=function(te,ee,oe,ue,ne){var pe=document.createElementNS("http://www.w3.org/2000/svg","line");return pe.setAttribute("x1",te.toString()),pe.setAttribute("y1",ee.toString()),pe.setAttribute("x2",oe.toString()),pe.setAttribute("y2",ue.toString()),ne&&ae.setAttributes(pe,ne),pe},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 ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(te/2).toString()),ue.setAttribute("cy",(ee/2).toString()),ue.setAttribute("rx",(te/2).toString()),ue.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(ue,oe),ue},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,ue,ne,pe,ge){var We=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(We,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",ue.toString()],["refX",ne.toString()],["refY",pe.toString()]]),We.appendChild(ge),We},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}(),Ie=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}(),Ze=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var ue=this;return new Promise(function(ne){var pe=oe!==void 0?oe:document.createElement("canvas");te===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var ge=document.createElementNS("http://www.w3.org/2000/svg","svg");ge.setAttribute("xmlns","http://www.w3.org/2000/svg"),ge.setAttribute("width",ee.width.baseVal.valueAsString),ge.setAttribute("height",ee.height.baseVal.valueAsString),ge.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),ge.innerHTML=ee.innerHTML,ue.naturalSize===!0?(ge.width.baseVal.value=te.naturalWidth,ge.height.baseVal.value=te.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(ge.width.baseVal.value=ue.width,ge.height.baseVal.value=ue.height),pe.width=ge.width.baseVal.value,pe.height=ge.height.baseVal.value;var We=ge.outerHTML,xe=pe.getContext("2d");ue.markersOnly!==!0&&xe.drawImage(te,0,0,pe.width,pe.height);var Ge=window.URL,nt=new Image(pe.width,pe.height);nt.setAttribute("crossOrigin","anonymous");var St=new Blob([We],{type:"image/svg+xml"}),mt=Ge.createObjectURL(St);nt.onload=function(){xe.drawImage(nt,0,0),Ge.revokeObjectURL(mt);var Ht=pe.toDataURL(ue.imageType,ue.imageQuality);ne(Ht)},nt.src=mt})},ae}(),Pe=function(){},he=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 Je("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Je("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ee("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ee("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}(),Je=function(ae,te){this.selector=ae,this.style=te},Ee=function(ae,te){this.localName=ae,this.style=te},Ct=function(){function ae(te,ee,oe,ue,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=ue,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 pe=document.createElement("div");pe.className=""+ee.toolbarButtonStyleClass.name,pe.setAttribute("data-type-name",ne.typeName),pe.innerHTML=ne.icon,pe.addEventListener("click",function(){ee.markerToolbarButtonClicked(pe,ne)}),ee.buttons.push(pe),ee.markerButtons.push(pe)}),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 ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<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(ue,'<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 ue=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){ue.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 Ee("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 Ee("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ee("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Je("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Je("."+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}(),qe=function(){function ae(te,ee,oe,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Je("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Je("."+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,ue=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 pe;ne.uiStyleSettings=ue.uiStyleSettings;var ge=document.createElement("div");ge.className=ue.toolboxButtonStyleClass.name+" "+((pe=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:ue.toolboxButtonStyleColorsClass.name),ge.innerHTML=ne.icon,ge.title=ne.title,ge.addEventListener("click",function(){ue.panelButtonClick(ne)}),ue.panelButtons.push(ge),ue.buttonRow.appendChild(ge)}),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 ue=te.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),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,pe){var ge,We;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((ge=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ge!==void 0?ge:ee.toolboxActiveButtonStyleColorsClass.name):""+((We=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ae=function(ae,te){this.title=ae,this.icon=te},Ue=function(ae){function te(ee,oe,ue,ne){var pe=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 pe.colors=[],pe.addTransparent=!1,pe.colorBoxes=[],pe.colors=oe,pe.currentColor=ue,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return lt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var ne=ee.getColorBox(ue);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,ue=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ue,pe=document.createElement("div");pe.style.display="inline-block",pe.style.boxSizing="content-box",pe.style.width=ne-2+"px",pe.style.height=ne-2+"px",pe.style.padding="1px",pe.style.marginRight="2px",pe.style.marginBottom="2px",pe.style.borderWidth="2px",pe.style.borderStyle="solid",pe.style.borderRadius=(ne+2)/2+"px",pe.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",pe.addEventListener("click",function(){oe.setCurrentColor(ee,pe)});var ge=document.createElement("div");return ge.style.display="inline-block",ge.style.width=ne-2+"px",ge.style.height=ne-2+"px",ge.style.backgroundColor=ee,ge.style.borderRadius=ne/2+"px",ee==="transparent"&&(ge.style.fill=this.uiStyleSettings.toolboxAccentColor,ge.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>`),pe.appendChild(ge),pe},te.prototype.setCurrentColor=function(ee,oe){var ue=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Ae),He=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}(),at=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}(),xt=function(){function ae(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.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}(),kt=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}(),ft=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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(ke.createTransform()),ne.setupControlBox(),ne}return lt(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=ke.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 ue=this.unrotatePoint(ee);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.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 pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,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,ue=this.manipulationStartWidth,ne=this.manipulationStartTop,pe=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=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,pe=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:pe=this.manipulationStartHeight+ee.y-this.manipulationStartY}ue>=0?(this.left=oe,this.width=ue):(this.left=oe+ue,this.width=-ue),pe>=0?(this.top=ne,this.height=pe):(this.top=ne+pe,this.height=-pe),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(),ue=ke.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var ue=ke.createPoint(ee.x,ee.y);return{x:(ue=ue.matrixTransform(oe)).x,y:ue.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=ke.createGroup();var ee=ke.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 at,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 xt;return ee.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,ue=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,ge=this.height+this.CB_DISTANCE-ee/2,We=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ue),this.positionGrip(this.controlGrips.topCenter.visual,ne,ue),this.positionGrip(this.controlGrips.topRight.visual,We,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,We,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ge),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,ge),this.positionGrip(this.controlGrips.bottomRight.visual,We,ge),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ue-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),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:kt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:kt.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(kt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(kt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var ue=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ue.x*ee,y:ue.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(He),it=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=ke.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),ke.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&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&ke.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}(ft),tt=function(ae){function te(ee,oe,ue,ne){var pe=ae.call(this,ee,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return pe.widths=[],pe.widthBoxes=[],pe.widths=oe,pe.currentWidth=ue,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return lt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(ue){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=ue===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(ue,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=ue.toString(),pe.style.marginRight="5px",ne.appendChild(pe);var ge=document.createElement("div");ge.style.minHeight="20px",ge.style.flexGrow="2",ge.style.display="flex",ge.style.alignItems="center";var We=document.createElement("hr");We.style.minWidth="20px",We.style.border="0px",We.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,We.style.flexGrow="2",ge.appendChild(We),ne.appendChild(ge),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var ue=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Ae),Ke=function(ae){function te(ee,oe,ue,ne){var pe=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 pe.styles=[],pe.styleBoxes=[],pe.styles=oe,pe.currentStyle=ue,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return lt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(ue){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=ue===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(ue,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var ge=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
</svg>`;pe.innerHTML=ge,ne.appendChild(pe),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var ue=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Ae),gt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ue("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new tt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(it),Ne=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"},Ve=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=ke.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 xt;return ee.visual.transform.baseVal.appendItem(ke.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,ue){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,ue),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}(He),ht=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ue("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new tt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.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()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.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}(Ve),Ce=function(ae){function te(ee,oe,ue,ne){var pe=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 pe.fonts=[],pe.fontBoxes=[],pe.fonts=oe,pe.currentFont=ue,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return lt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ue){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=ue===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(ue,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=ue,pe.style.overflow="hidden";var ge=document.createElement("div");ge.style.whiteSpace="nowrap",ge.style.overflow="hidden",ge.style.textOverflow="ellipsis",ge.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(ge),ne.appendChild(pe),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var ue=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Ae),Re=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.fontFamily=ue.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 Ue("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Ce("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(ue){ue===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.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(ke.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 ue=(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(ue,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),ue=0,ne=0;return oe.width>0&&oe.height>0&&(ue=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:ue,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),ue=this.getTextPosition(oe);ue.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.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&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.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 ue=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ue)),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}),ue=this.textElement.getBBox(),ne={x:ue.width*ee,y:ue.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&&ke.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&&ke.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}(ft),_e=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ue.defaultColor,ne.lineWidth=ue.defaultStrokeWidth,ne.pixelRatio=ue.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 Ue("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new tt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var ee=ke.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),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.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],ue=oe[0],ne=oe[1],pe=oe[2],ge=oe[3],We=!1,xe=0;xe<this.canvasElement.height;xe++)for(var Ge=0;Ge<this.canvasElement.width;Ge++)ee.data[xe*this.canvasElement.width*4+4*Ge+3]>0&&(We=!0,xe<ne&&(ne=xe),Ge<ue&&(ue=Ge),xe>ge&&(ge=xe),Ge>pe&&(pe=Ge));if(We){this.left=ue/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-ue)/this.pixelRatio,this.height=(ge-ne)/this.pixelRatio;var nt=document.createElement("canvas");nt.width=pe-ue,nt.height=ge-ne,nt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ne,pe-ue,ge-ne),0,0),this.drawingImgUrl=nt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.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}(ft),se=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,ue||'<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 lt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ue=function(ge){var We="both";switch(ge){case 0:We="both";break;case 1:We="start";break;case 2:We="end";break;case 3:We="none"}var xe=document.createElement("div");if(xe.style.display="flex",xe.style.flexGrow="2",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=We===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){ee.setCurrentType(We,xe)}),oe.appendChild(xe),We==="both"||We==="start"){var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.alignItems="center",Ge.style.minHeight="20px",Ge.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>`,Ge.style.marginLeft="5px",xe.appendChild(Ge)}var nt=document.createElement("div");nt.style.display="flex",nt.style.alignItems="center",nt.style.minHeight="20px",nt.style.flexGrow="2";var St=document.createElement("hr");if(St.style.minWidth="20px",St.style.border="0px",St.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),St.style.flexGrow="2",nt.appendChild(St),xe.appendChild(nt),We==="both"||We==="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",xe.appendChild(mt)}ne.typeBoxes.push(xe)},ne=this,pe=0;pe<4;pe++)ue(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var ue=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Ae),$e=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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 se("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var ue=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-ue/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+ue/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.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 ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,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}(ht),De=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor=ue.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ue("Color",ue.defaultColorSet,ue.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return lt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(it),we=function(ae){function te(ee,oe,ue,ne){var pe=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 pe.opacities=[],pe.opacityBoxes=[],pe.opacities=oe,pe.currentOpacity=ue,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return lt(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(ue){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=ue===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(ue,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=100*ue+"%",ne.appendChild(pe),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var ue=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Ae),ct=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ue.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ue.defaultHighlightOpacity,ne.fillPanel=new Ue("Color",ue.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new we("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return lt(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&ke.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}(De),me='<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>',je=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultStrokeColor,ne.bgColor=ue.defaultFillColor,ne.fontFamily=ue.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 Ue("Text color",ue.defaultColorSet,ne.color,me),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ue("Fill color",ue.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Ce("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new xt,ne.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.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&&(ke.setAttributes(this.bgRectangle,[["fill",ee]]),ke.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),ue=this.height/5;ee&&(this.tipPosition={x:oe+ue/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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ue,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ue}):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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ue}):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))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ue,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ue},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ue})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){ke.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}(Re),Pt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.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 Ue("Line color",Se(ue.defaultColorSet,["transparent"]),ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ue("Fill color",Se(ue.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new tt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new we("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=ke.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),ke.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&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&ke.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}(ft),yt=function(ae){function te(ee,oe,ue){return ae.call(this,ee,oe,ue)||this}return lt(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=ke.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(ke.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ke.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(ke.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&&(ke.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()]]),ke.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 ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,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}(ht),ve=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||this;return ne.strokePanel.colors=ue.defaultColorSet,ne.fillColor="transparent",ne}return lt(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<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}(Pt),Te=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}(),Le=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new Ue("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new tt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.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()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.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}(Ve),wt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,oe,ue)||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=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.defaultFillColor,ne.textColor=ue.defaultStrokeColor,ne.fontFamily=ue.defaultFontFamily,ne.fontSize=ue.defaultCaptionFontSize,ne.captionText=ue.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 Ue("Line color",Se(ue.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ue("Fill color",Se(ue.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new tt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Ce("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ue("Text color",ue.defaultColorSet,ne.textColor,me),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return lt(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.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),ke.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')"]]),ke.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&&ke.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&&ke.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),ke.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&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&ke.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}(ft),pt=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}(),Mt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=ue,ne}return lt(te,ae),te}(pt),Fe=function(ae){function te(ee,oe,ue){ue===void 0&&(ue=!1);var ne=ae.call(this,ee,ue)||this;return ne.marker=oe,ne}return lt(te,ae),te}(pt),At=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}(),ut=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 Ne,this._isOpen=!1,this.undoRedoManager=new Te,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 At,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new he(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[gt,_e,$e,Re,ve,Pt,ct,je,yt,De,ht,Le,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[gt,_e,$e,Re,Pt,ct,je]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[gt,_e,$e,Re,ct]},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 ue=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});ue!==void 0&&ee._availableMarkerTypes.push(ue)}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(),Ie.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new pt(te))})},ae.prototype.render=function(){return ye(this,void 0,void 0,function(){var te;return et(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Ze).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(ue){var ne=new pt(ee,!0);ue(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(ue){return ue(new pt(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,ue=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,ue),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,ue=this;this._currentMarker&&this._currentMarker instanceof Re?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==ue._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=ke.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 Ct(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 qe(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(ue){var ne=new Fe(te,te._currentMarker,!0);ue(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(ue){return ue(new Fe(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var ge=new Fe(te,void 0,!0);pe(ge),ge.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var ge=ue.markers[pe];ue.setCurrentMarker(ue.markers[pe]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(We){return We(new Fe(te,ge))})},ue=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 ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ue<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new pt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new pt(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 pt(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 pt(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 ye(this,void 0,void 0,function(){var te,ee,oe=this;return et(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return te=ue.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new Mt(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 ue=ee._availableMarkerTypes.find(function(pe){return pe.typeName===oe.typeName});if(ue!==void 0){var ne=ee.addNewMarker(ue);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 pt(ee))})},ae.prototype.addNewMarker=function(te){var ee=ke.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(ue){return ue.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(ue){return ue(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 _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):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){Ie.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 pt(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 pt(te))}))},ae.instanceCounter=0,ae}()},6551:function(nn,zt,re){"use strict";re.d(zt,{ZP:function(){return Ie}});var E=re(72190),lt=re(59301),ye=re(47273),et=0,Se=(0,ye.Z)();function ke(){var Ze;return Se?(Ze=et,et+=1):Ze="TEST_OR_SSR",Ze}function Ie(Ze){var Pe=lt.useState(),he=(0,E.Z)(Pe,2),Je=he[0],Ee=he[1];return lt.useEffect(function(){Ee("rc_select_".concat(ke()))},[]),Ze||Je}},37463:function(nn,zt,re){"use strict";re.d(zt,{Ac:function(){return Ot},Xo:function(){return Vt},Wx:function(){return dt},ZP:function(){return hn},lk:function(){return kt}});var E=re(60499),lt=re(77654),ye=re(18642),et=re(85899),Se=re(72190),ke=re(42244),Ie=re(43749),Ze=re(18929),Pe=re(48736),he=re(59301),Je=re(92310),Ee=re.n(Je),Ct=re(34280),qe=re(49658),Ae=re(8654),Ue=function(st){var Oe=st.className,Ye=st.customizeIcon,Me=st.customizeIconProps,Qe=st.children,It=st.onMouseDown,an=st.onClick,un=typeof Ye=="function"?Ye(Me):Ye;return he.createElement("span",{className:Oe,onMouseDown:function(Qt){Qt.preventDefault(),It==null||It(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:an,"aria-hidden":!0},un!==void 0?un:he.createElement("span",{className:Ee()(Oe.split(/\s+/).map(function(vn){return"".concat(vn,"-icon")}))},Qe))},He=Ue,at=function(st,Oe,Ye,Me,Qe){var It=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,an=arguments.length>6?arguments[6]:void 0,un=arguments.length>7?arguments[7]:void 0,vn=he.useMemo(function(){if((0,Ie.Z)(Me)==="object")return Me.clearIcon;if(Qe)return Qe},[Me,Qe]),Qt=he.useMemo(function(){return!!(!It&&Me&&(Ye.length||an)&&!(un==="combobox"&&an===""))},[Me,It,Ye.length,an,un]);return{allowClear:Qt,clearIcon:he.createElement(He,{className:"".concat(st,"-clear"),onMouseDown:Oe,customizeIcon:vn},"\xD7")}},xt=he.createContext(null);function kt(){return he.useContext(xt)}function ft(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,st=he.useState(!1),Oe=(0,Se.Z)(st,2),Ye=Oe[0],Me=Oe[1],Qe=he.useRef(null),It=function(){window.clearTimeout(Qe.current)};he.useEffect(function(){return It},[]);var an=function(vn,Qt){It(),Qe.current=window.setTimeout(function(){Me(vn),Qt&&Qt()},Xe)};return[Ye,an,It]}function it(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,st=he.useRef(null),Oe=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(Oe.current)}},[]);function Ye(Me){(Me||st.current===null)&&(st.current=Me),window.clearTimeout(Oe.current),Oe.current=window.setTimeout(function(){st.current=null},Xe)}return[function(){return st.current},Ye]}function tt(Xe,st,Oe,Ye){var Me=he.useRef(null);Me.current={open:st,triggerOpen:Oe,customizedTrigger:Ye},he.useEffect(function(){function Qe(It){var an;if(!((an=Me.current)!==null&&an!==void 0&&an.customizedTrigger)){var un=It.target;un.shadowRoot&&It.composed&&(un=It.composedPath()[0]||un),Me.current.open&&Xe().filter(function(vn){return vn}).every(function(vn){return!vn.contains(un)&&vn!==un})&&Me.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Qe),function(){return window.removeEventListener("mousedown",Qe)}},[])}var Ke=re(10228);function gt(Xe){return Xe&&![Ke.Z.ESC,Ke.Z.SHIFT,Ke.Z.BACKSPACE,Ke.Z.TAB,Ke.Z.WIN_KEY,Ke.Z.ALT,Ke.Z.META,Ke.Z.WIN_KEY_RIGHT,Ke.Z.CTRL,Ke.Z.SEMICOLON,Ke.Z.EQUALS,Ke.Z.CAPS_LOCK,Ke.Z.CONTEXT_MENU,Ke.Z.F1,Ke.Z.F2,Ke.Z.F3,Ke.Z.F4,Ke.Z.F5,Ke.Z.F6,Ke.Z.F7,Ke.Z.F8,Ke.Z.F9,Ke.Z.F10,Ke.Z.F11,Ke.Z.F12].includes(Xe)}var Ne=re(26112),Ve=re(83836);function ht(Xe,st,Oe){var Ye=(0,et.Z)((0,et.Z)({},Xe),Oe?st:{});return Object.keys(st).forEach(function(Me){var Qe=st[Me];typeof Qe=="function"&&(Ye[Me]=function(){for(var It,an=arguments.length,un=new Array(an),vn=0;vn<an;vn++)un[vn]=arguments[vn];return Qe.apply(void 0,un),(It=Xe[Me])===null||It===void 0?void 0:It.call.apply(It,[Xe].concat(un))})}),Ye}var Ce=ht,Re=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_e=function(st,Oe){var Ye=st.prefixCls,Me=st.id,Qe=st.inputElement,It=st.autoFocus,an=st.autoComplete,un=st.editable,vn=st.activeDescendantId,Qt=st.value,Ft=st.open,Tt=st.attrs,fn=(0,ke.Z)(st,Re),Tn=Qe||he.createElement("input",null),Dn=Tn,Bn=Dn.ref,Xn=Dn.props;return(0,Pe.Kp)(!("maxLength"in Tn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Tn=he.cloneElement(Tn,(0,et.Z)((0,et.Z)((0,et.Z)({type:"search"},Ce(fn,Xn,!0)),{},{id:Me,ref:(0,Ae.sQ)(Oe,Bn),autoComplete:an||"off",autoFocus:It,className:Ee()("".concat(Ye,"-selection-search-input"),Xn==null?void 0:Xn.className),role:"combobox","aria-expanded":Ft||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Me,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Me,"_list"),"aria-activedescendant":Ft?vn:void 0},Tt),{},{value:un?Qt:"",readOnly:!un,unselectable:un?null:"on",style:(0,et.Z)((0,et.Z)({},Xn.style),{},{opacity:un?null:0})})),Tn},se=he.forwardRef(_e),$e=se;function De(Xe){return Array.isArray(Xe)?Xe:Xe!==void 0?[Xe]:[]}var we=typeof window!="undefined"&&window.document&&window.document.documentElement,ct=we;function me(Xe){return Xe!=null}function ce(Xe){return!Xe&&Xe!==0}function je(Xe){return["string","number"].includes((0,Ie.Z)(Xe))}function Pt(Xe){var st=void 0;return Xe&&(je(Xe.title)?st=Xe.title.toString():je(Xe.label)&&(st=Xe.label.toString())),st}function yt(Xe,st){ct?he.useLayoutEffect(Xe,st):he.useEffect(Xe,st)}function ve(Xe){var st;return(st=Xe.key)!==null&&st!==void 0?st:Xe.value}var Te=function(st){st.preventDefault(),st.stopPropagation()},Le=function(st){var Oe=st.id,Ye=st.prefixCls,Me=st.values,Qe=st.open,It=st.searchValue,an=st.autoClearSearchValue,un=st.inputRef,vn=st.placeholder,Qt=st.disabled,Ft=st.mode,Tt=st.showSearch,fn=st.autoFocus,Tn=st.autoComplete,Dn=st.activeDescendantId,Bn=st.tabIndex,Xn=st.removeIcon,Qn=st.maxTagCount,Jn=st.maxTagTextLength,Zn=st.maxTagPlaceholder,Fn=Zn===void 0?function(Cn){return"+ ".concat(Cn.length," ...")}:Zn,Hn=st.tagRender,Un=st.onToggleOpen,ur=st.onRemove,qn=st.onInputChange,lr=st.onInputPaste,ir=st.onInputKeyDown,er=st.onInputMouseDown,tr=st.onInputCompositionStart,gr=st.onInputCompositionEnd,mr=st.onInputBlur,cr=he.useRef(null),vr=(0,he.useState)(0),Cr=(0,Se.Z)(vr,2),or=Cr[0],dr=Cr[1],Gn=(0,he.useState)(!1),Sr=(0,Se.Z)(Gn,2),Rr=Sr[0],Hr=Sr[1],Er="".concat(Ye,"-selection"),Ar=Qe||Ft==="multiple"&&an===!1||Ft==="tags"?It:"",Ir=Ft==="tags"||Ft==="multiple"&&an===!1||Tt&&(Qe||Rr);yt(function(){dr(cr.current.scrollWidth)},[Ar]);var Dr=function(sn,_n,jn,mn,yn){return he.createElement("span",{title:Pt(sn),className:Ee()("".concat(Er,"-item"),(0,ye.Z)({},"".concat(Er,"-item-disabled"),jn))},he.createElement("span",{className:"".concat(Er,"-item-content")},_n),mn&&he.createElement(He,{className:"".concat(Er,"-item-remove"),onMouseDown:Te,onClick:yn,customizeIcon:Xn},"\xD7"))},_r=function(sn,_n,jn,mn,yn,Nn){var Rn=function(Pr){Te(Pr),Un(!Qe)};return he.createElement("span",{onMouseDown:Rn},Hn({label:_n,value:sn,disabled:jn,closable:mn,onClose:yn,isMaxTag:!!Nn}))},fr=function(sn){var _n=sn.disabled,jn=sn.label,mn=sn.value,yn=!Qt&&!_n,Nn=jn;if(typeof Jn=="number"&&(typeof jn=="string"||typeof jn=="number")){var Rn=String(Nn);Rn.length>Jn&&(Nn="".concat(Rn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(sn)};return typeof Hn=="function"?_r(mn,Nn,_n,yn,rr):Dr(sn,Nn,_n,yn,rr)},Yn=function(sn){if(!Me.length)return null;var _n=typeof Fn=="function"?Fn(sn):Fn;return typeof Hn=="function"?_r(void 0,_n,!1,!1,void 0,!0):Dr({title:_n},_n,!1)},pn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){Hr(!0)},onBlur:function(){Hr(!1)}},he.createElement($e,{ref:un,open:Qe,prefixCls:Ye,id:Oe,inputElement:null,disabled:Qt,autoFocus:fn,autoComplete:Tn,editable:Ir,activeDescendantId:Dn,value:Ar,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:gr,onBlur:mr,tabIndex:Bn,attrs:(0,Ne.Z)(st,!0)}),he.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),En=he.createElement(Ve.Z,{prefixCls:"".concat(Er,"-overflow"),data:Me,renderItem:fr,renderRest:Yn,suffix:pn,itemKey:ve,maxCount:Qn});return he.createElement("span",{className:"".concat(Er,"-wrap")},En,!Me.length&&!Ar&&he.createElement("span",{className:"".concat(Er,"-placeholder")},vn))},wt=Le,pt=function(st){var Oe=st.inputElement,Ye=st.prefixCls,Me=st.id,Qe=st.inputRef,It=st.disabled,an=st.autoFocus,un=st.autoComplete,vn=st.activeDescendantId,Qt=st.mode,Ft=st.open,Tt=st.values,fn=st.placeholder,Tn=st.tabIndex,Dn=st.showSearch,Bn=st.searchValue,Xn=st.activeValue,Qn=st.maxLength,Jn=st.onInputKeyDown,Zn=st.onInputMouseDown,Fn=st.onInputChange,Hn=st.onInputPaste,Un=st.onInputCompositionStart,ur=st.onInputCompositionEnd,qn=st.onInputBlur,lr=st.title,ir=he.useState(!1),er=(0,Se.Z)(ir,2),tr=er[0],gr=er[1],mr=Qt==="combobox",cr=mr||Dn,vr=Tt[0],Cr=Bn||"";mr&&Xn&&!tr&&(Cr=Xn),he.useEffect(function(){mr&&gr(!1)},[mr,Xn]);var or=Qt!=="combobox"&&!Ft&&!Dn?!1:!!Cr,dr=lr===void 0?Pt(vr):lr,Gn=he.useMemo(function(){return vr?null:he.createElement("span",{className:"".concat(Ye,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},fn)},[vr,or,fn,Ye]);return he.createElement("span",{className:"".concat(Ye,"-selection-wrap")},he.createElement("span",{className:"".concat(Ye,"-selection-search")},he.createElement($e,{ref:Qe,prefixCls:Ye,id:Me,open:Ft,inputElement:Oe,disabled:It,autoFocus:an,autoComplete:un,editable:cr,activeDescendantId:vn,value:Cr,onKeyDown:Jn,onMouseDown:Zn,onChange:function(Rr){gr(!0),Fn(Rr)},onPaste:Hn,onCompositionStart:Un,onCompositionEnd:ur,onBlur:qn,tabIndex:Tn,attrs:(0,Ne.Z)(st,!0),maxLength:mr?Qn:void 0})),!mr&&vr?he.createElement("span",{className:"".concat(Ye,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Gn)},Mt=pt,Fe=function(st,Oe){var Ye=(0,he.useRef)(null),Me=(0,he.useRef)(!1),Qe=st.prefixCls,It=st.open,an=st.mode,un=st.showSearch,vn=st.tokenWithEnter,Qt=st.disabled,Ft=st.prefix,Tt=st.autoClearSearchValue,fn=st.onSearch,Tn=st.onSearchSubmit,Dn=st.onToggleOpen,Bn=st.onInputKeyDown,Xn=st.onInputBlur,Qn=st.domRef;he.useImperativeHandle(Oe,function(){return{focus:function(dr){Ye.current.focus(dr)},blur:function(){Ye.current.blur()}}});var Jn=it(0),Zn=(0,Se.Z)(Jn,2),Fn=Zn[0],Hn=Zn[1],Un=function(dr){var Gn=dr.which,Sr=Ye.current instanceof HTMLTextAreaElement;!Sr&&It&&(Gn===Ke.Z.UP||Gn===Ke.Z.DOWN)&&dr.preventDefault(),Bn&&Bn(dr),Gn===Ke.Z.ENTER&&an==="tags"&&!Me.current&&!It&&(Tn==null||Tn(dr.target.value)),!(Sr&&!It&&~[Ke.Z.UP,Ke.Z.DOWN,Ke.Z.LEFT,Ke.Z.RIGHT].indexOf(Gn))&&gt(Gn)&&Dn(!0)},ur=function(){Hn(!0)},qn=(0,he.useRef)(null),lr=function(dr){fn(dr,!0,Me.current)!==!1&&Dn(!0)},ir=function(){Me.current=!0},er=function(dr){Me.current=!1,an!=="combobox"&&lr(dr.target.value)},tr=function(dr){var Gn=dr.target.value;if(vn&&qn.current&&/[\r\n]/.test(qn.current)){var Sr=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Gn=Gn.replace(Sr,qn.current)}qn.current=null,lr(Gn)},gr=function(dr){var Gn=dr.clipboardData,Sr=Gn==null?void 0:Gn.getData("text");qn.current=Sr||""},mr=function(dr){var Gn=dr.target;if(Gn!==Ye.current){var Sr=document.body.style.msTouchAction!==void 0;Sr?setTimeout(function(){Ye.current.focus()}):Ye.current.focus()}},cr=function(dr){var Gn=Fn();dr.target!==Ye.current&&!Gn&&!(an==="combobox"&&Qt)&&dr.preventDefault(),(an!=="combobox"&&(!un||!Gn)||!It)&&(It&&Tt!==!1&&fn("",!0,!1),Dn())},vr={inputRef:Ye,onInputKeyDown:Un,onInputMouseDown:ur,onInputChange:tr,onInputPaste:gr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Xn},Cr=an==="multiple"||an==="tags"?he.createElement(wt,(0,E.Z)({},st,vr)):he.createElement(Mt,(0,E.Z)({},st,vr));return he.createElement("div",{ref:Qn,className:"".concat(Qe,"-selector"),onClick:mr,onMouseDown:cr},Ft&&he.createElement("div",{className:"".concat(Qe,"-prefix")},Ft),Cr)},At=he.forwardRef(Fe),ut=At,ae=re(68196),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(st){var Oe=st===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Oe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Oe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Oe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Oe,adjustY:1},htmlRegion:"scroll"}}},oe=function(st,Oe){var Ye=st.prefixCls,Me=st.disabled,Qe=st.visible,It=st.children,an=st.popupElement,un=st.animation,vn=st.transitionName,Qt=st.dropdownStyle,Ft=st.dropdownClassName,Tt=st.direction,fn=Tt===void 0?"ltr":Tt,Tn=st.placement,Dn=st.builtinPlacements,Bn=st.dropdownMatchSelectWidth,Xn=st.dropdownRender,Qn=st.dropdownAlign,Jn=st.getPopupContainer,Zn=st.empty,Fn=st.getTriggerDOMNode,Hn=st.onPopupVisibleChange,Un=st.onPopupMouseEnter,ur=(0,ke.Z)(st,te),qn="".concat(Ye,"-dropdown"),lr=an;Xn&&(lr=Xn(an));var ir=he.useMemo(function(){return Dn||ee(Bn)},[Dn,Bn]),er=un?"".concat(qn,"-").concat(un):vn,tr=typeof Bn=="number",gr=he.useMemo(function(){return tr?null:Bn===!1?"minWidth":"width"},[Bn,tr]),mr=Qt;tr&&(mr=(0,et.Z)((0,et.Z)({},mr),{},{width:Bn}));var cr=he.useRef(null);return he.useImperativeHandle(Oe,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),he.createElement(ae.Z,(0,E.Z)({},ur,{showAction:Hn?["click"]:[],hideAction:Hn?["click"]:[],popupPlacement:Tn||(fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:he.createElement("div",{onMouseEnter:Un},lr),ref:cr,stretch:gr,popupAlign:Qn,popupVisible:Qe,getPopupContainer:Jn,popupClassName:Ee()(Ft,(0,ye.Z)({},"".concat(qn,"-empty"),Zn)),popupStyle:mr,getTriggerDOMNode:Fn,onPopupVisibleChange:Hn}),It)},ue=he.forwardRef(oe),ne=ue,pe=re(48745);function ge(Xe,st){var Oe=Xe.key,Ye;return"value"in Xe&&(Ye=Xe.value),Oe!=null?Oe:Ye!==void 0?Ye:"rc-index-key-".concat(st)}function We(Xe){return typeof Xe!="undefined"&&!Number.isNaN(Xe)}function xe(Xe,st){var Oe=Xe||{},Ye=Oe.label,Me=Oe.value,Qe=Oe.options,It=Oe.groupLabel,an=Ye||(st?"children":"label");return{label:an,value:Me||"value",options:Qe||"options",groupLabel:It||an}}function Ge(Xe){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=st.fieldNames,Ye=st.childrenAsData,Me=[],Qe=xe(Oe,!1),It=Qe.label,an=Qe.value,un=Qe.options,vn=Qe.groupLabel;function Qt(Ft,Tt){Array.isArray(Ft)&&Ft.forEach(function(fn){if(Tt||!(un in fn)){var Tn=fn[an];Me.push({key:ge(fn,Me.length),groupOption:Tt,data:fn,label:fn[It],value:Tn})}else{var Dn=fn[vn];Dn===void 0&&Ye&&(Dn=fn.label),Me.push({key:ge(fn,Me.length),group:!0,data:fn,label:Dn}),Qt(fn[un],!0)}})}return Qt(Xe,!1),Me}function nt(Xe){var st=(0,et.Z)({},Xe);return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),st}}),st}var St=function(st,Oe,Ye){if(!Oe||!Oe.length)return null;var Me=!1,Qe=function an(un,vn){var Qt=(0,pe.Z)(vn),Ft=Qt[0],Tt=Qt.slice(1);if(!Ft)return[un];var fn=un.split(Ft);return Me=Me||fn.length>1,fn.reduce(function(Tn,Dn){return[].concat((0,lt.Z)(Tn),(0,lt.Z)(an(Dn,Tt)))},[]).filter(Boolean)},It=Qe(st,Oe);return Me?typeof Ye!="undefined"?It.slice(0,Ye):It:null},mt=he.createContext(null),Ht=mt;function Zt(Xe){var st=Xe.visible,Oe=Xe.values;if(!st)return null;var Ye=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Oe.slice(0,Ye).map(function(Me){var Qe=Me.label,It=Me.value;return["number","string"].includes((0,Ie.Z)(Qe))?Qe:It}).join(", ")),Oe.length>Ye?", ...":null)}var $t=["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"],tn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Xt=function(st){return st==="tags"||st==="multiple"},rn=he.forwardRef(function(Xe,st){var Oe,Ye=Xe.id,Me=Xe.prefixCls,Qe=Xe.className,It=Xe.showSearch,an=Xe.tagRender,un=Xe.direction,vn=Xe.omitDomProps,Qt=Xe.displayValues,Ft=Xe.onDisplayValuesChange,Tt=Xe.emptyOptions,fn=Xe.notFoundContent,Tn=fn===void 0?"Not Found":fn,Dn=Xe.onClear,Bn=Xe.mode,Xn=Xe.disabled,Qn=Xe.loading,Jn=Xe.getInputElement,Zn=Xe.getRawInputElement,Fn=Xe.open,Hn=Xe.defaultOpen,Un=Xe.onDropdownVisibleChange,ur=Xe.activeValue,qn=Xe.onActiveValueChange,lr=Xe.activeDescendantId,ir=Xe.searchValue,er=Xe.autoClearSearchValue,tr=Xe.onSearch,gr=Xe.onSearchSplit,mr=Xe.tokenSeparators,cr=Xe.allowClear,vr=Xe.prefix,Cr=Xe.suffixIcon,or=Xe.clearIcon,dr=Xe.OptionList,Gn=Xe.animation,Sr=Xe.transitionName,Rr=Xe.dropdownStyle,Hr=Xe.dropdownClassName,Er=Xe.dropdownMatchSelectWidth,Ar=Xe.dropdownRender,Ir=Xe.dropdownAlign,Dr=Xe.placement,_r=Xe.builtinPlacements,fr=Xe.getPopupContainer,Yn=Xe.showAction,pn=Yn===void 0?[]:Yn,En=Xe.onFocus,Cn=Xe.onBlur,sn=Xe.onKeyUp,_n=Xe.onKeyDown,jn=Xe.onMouseDown,mn=(0,ke.Z)(Xe,$t),yn=Xt(Bn),Nn=(It!==void 0?It:yn)||Bn==="combobox",Rn=(0,et.Z)({},mn);tn.forEach(function(kr){delete Rn[kr]}),vn==null||vn.forEach(function(kr){delete Rn[kr]});var rr=he.useState(!1),Pr=(0,Se.Z)(rr,2),br=Pr[0],Mr=Pr[1];he.useEffect(function(){Mr((0,qe.Z)())},[]);var Or=he.useRef(null),Br=he.useRef(null),$r=he.useRef(null),Tr=he.useRef(null),Zr=he.useRef(null),ti=he.useRef(!1),Oi=ft(),Fi=(0,Se.Z)(Oi,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];he.useImperativeHandle(st,function(){var kr,xr;return{focus:(kr=Tr.current)===null||kr===void 0?void 0:kr.focus,blur:(xr=Tr.current)===null||xr===void 0?void 0:xr.blur,scrollTo:function(fi){var Yr;return(Yr=Zr.current)===null||Yr===void 0?void 0:Yr.scrollTo(fi)},nativeElement:Or.current||Br.current}});var Lr=he.useMemo(function(){var kr;if(Bn!=="combobox")return ir;var xr=(kr=Qt[0])===null||kr===void 0?void 0:kr.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,Bn,Qt]),to=Bn==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof Zn=="function"&&Zn(),Li=(0,Ae.x1)(Br,ni==null||(Oe=ni.props)===null||Oe===void 0?void 0:Oe.ref),ao=he.useState(!1),Yi=(0,Se.Z)(ao,2),vi=Yi[0],Ai=Yi[1];(0,Ct.Z)(function(){Ai(!0)},[]);var Vr=(0,Ze.Z)(!1,{defaultValue:Hn,value:Fn}),_i=(0,Se.Z)(Vr,2),lo=_i[0],Wi=_i[1],Jr=vi?lo:!1,xo=!Tn&&Tt;(Xn||xo&&Jr&&Bn==="combobox")&&(Jr=!1);var so=xo?!1:Jr,ar=he.useCallback(function(kr){var xr=kr!==void 0?kr:!Jr;Xn||(Wi(xr),Jr!==xr&&(Un==null||Un(xr)))},[Xn,Jr,Wi,Un]),yr=he.useMemo(function(){return(mr||[]).some(function(kr){return[`
`,`\r
`].includes(kr)})},[mr]),hr=he.useContext(Ht)||{},pr=hr.maxCount,Nr=hr.rawValues,Wr=function(xr,ci,fi){if(!(yn&&We(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Vi=St(xr,mr,We(pr)?pr-Nr.size:void 0),Hi=fi?null:Vi;return Bn!=="combobox"&&Hi&&(ri="",gr==null||gr(Hi),ar(!1),Yr=!1),tr&&Lr!==ri&&tr(ri,{source:ci?"typing":"effect"}),Yr}},ji=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};he.useEffect(function(){!Jr&&!yn&&Bn!=="combobox"&&Wr("",!1,!1)},[Jr]),he.useEffect(function(){lo&&Xn&&Wi(!1),Xn&&!ti.current&&mi(!1)},[Xn]);var gi=it(),ui=(0,Se.Z)(gi,2),Xr=ui[0],$i=ui[1],Qi=he.useRef(!1),ki=function(xr){var ci=Xr(),fi=xr.key,Yr=fi==="Enter";if(Yr&&(Bn!=="combobox"&&xr.preventDefault(),Jr||ar(!0)),$i(!!Lr),fi==="Backspace"&&!ci&&yn&&!Lr&&Qt.length){for(var ri=(0,lt.Z)(Qt),Vi=null,Hi=ri.length-1;Hi>=0;Hi-=1){var ro=ri[Hi];if(!ro.disabled){ri.splice(Hi,1),Vi=ro;break}}Vi&&Ft(ri,{type:"remove",values:[Vi]})}for(var Mi=arguments.length,Di=new Array(Mi>1?Mi-1:0),Gi=1;Gi<Mi;Gi++)Di[Gi-1]=arguments[Gi];if(Jr&&(!Yr||!Qi.current)){var co;Yr&&(Qi.current=!0),(co=Zr.current)===null||co===void 0||co.onKeyDown.apply(co,[xr].concat(Di))}_n==null||_n.apply(void 0,[xr].concat(Di))},Ji=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(Jr){var ri;(ri=Zr.current)===null||ri===void 0||ri.onKeyUp.apply(ri,[xr].concat(fi))}xr.key==="Enter"&&(Qi.current=!1),sn==null||sn.apply(void 0,[xr].concat(fi))},no=function(xr){var ci=Qt.filter(function(fi){return fi!==xr});Ft(ci,{type:"remove",values:[xr]})},Zi=function(){Qi.current=!1},Do=he.useRef(!1),Za=function(){mi(!0),Xn||(En&&!Do.current&&En.apply(void 0,arguments),pn.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&&(Bn==="tags"?tr(Lr,{source:"submit"}):Bn==="multiple"&&tr("",{source:"blur"})),Cn&&Cn.apply(void 0,arguments))},qi=[];he.useEffect(function(){return function(){qi.forEach(function(kr){return clearTimeout(kr)}),qi.splice(0,qi.length)}},[]);var uo=function(xr){var ci,fi=xr.target,Yr=(ci=$r.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 Vi=arguments.length,Hi=new Array(Vi>1?Vi-1:0),ro=1;ro<Vi;ro++)Hi[ro-1]=arguments[ro];jn==null||jn.apply(void 0,[xr].concat(Hi))},zi=he.useState({}),ba=(0,Se.Z)(zi,2),xa=ba[1];function Va(){xa({})}var Ca;ni&&(Ca=function(xr){ar(xr)}),tt(function(){var kr;return[Or.current,(kr=$r.current)===null||kr===void 0?void 0:kr.getPopupElement()]},so,ar,!!ni);var Ga=he.useMemo(function(){return(0,et.Z)((0,et.Z)({},Xe),{},{notFoundContent:Tn,open:Jr,triggerOpen:so,id:Ye,showSearch:Nn,multiple:yn,toggleOpen:ar})},[Xe,Tn,so,Jr,Ye,Nn,yn,ar]),Uo=!!Cr||Qn,Ko;Uo&&(Ko=he.createElement(He,{className:Ee()("".concat(Me,"-arrow"),(0,ye.Z)({},"".concat(Me,"-arrow-loading"),Qn)),customizeIcon:Cr,customizeIconProps:{loading:Qn,searchValue:Lr,open:Jr,focused:xi,showSearch:Nn}}));var Co=function(){var xr;Dn==null||Dn(),(xr=Tr.current)===null||xr===void 0||xr.focus(),Ft([],{type:"clear",values:Qt}),Wr("",!1,!1)},Xo=at(Me,Co,Qt,cr,or,Xn,Lr,Bn),Sa=Xo.allowClear,Yo=Xo.clearIcon,Bo=he.createElement(dr,{ref:Zr}),wa=Ee()(Me,Qe,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(Me,"-focused"),xi),"".concat(Me,"-multiple"),yn),"".concat(Me,"-single"),!yn),"".concat(Me,"-allow-clear"),cr),"".concat(Me,"-show-arrow"),Uo),"".concat(Me,"-disabled"),Xn),"".concat(Me,"-loading"),Qn),"".concat(Me,"-open"),Jr),"".concat(Me,"-customize-input"),to),"".concat(Me,"-show-search"),Nn)),To=he.createElement(ne,{ref:$r,disabled:Xn,prefixCls:Me,visible:so,popupElement:Bo,animation:Gn,transitionName:Sr,dropdownStyle:Rr,dropdownClassName:Hr,direction:un,dropdownMatchSelectWidth:Er,dropdownRender:Ar,dropdownAlign:Ir,placement:Dr,builtinPlacements:_r,getPopupContainer:fr,empty:Tt,getTriggerDOMNode:function(xr){return Br.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},ni?he.cloneElement(ni,{ref:Li}):he.createElement(ut,(0,E.Z)({},Xe,{domRef:Br,prefixCls:Me,inputElement:to,ref:Tr,id:Ye,prefix:vr,showSearch:Nn,autoClearSearchValue:er,mode:Bn,activeDescendantId:lr,tagRender:an,values:Qt,open:Jr,onToggleOpen:ar,activeValue:ur,searchValue:Lr,onSearch:Wr,onSearchSubmit:ji,onRemove:no,tokenWithEnter:yr,onInputBlur:Zi}))),Ci;return ni?Ci=To:Ci=he.createElement("div",(0,E.Z)({className:wa},Rn,{ref:Or,onMouseDown:uo,onKeyDown:ki,onKeyUp:Ji,onFocus:Za,onBlur:ya}),he.createElement(Zt,{visible:xi&&!Jr,values:Qt}),To,Ko,Sa&&Yo),he.createElement(xt.Provider,{value:Ga},Ci)}),Ot=rn,Yt=function(){return null};Yt.isSelectOptGroup=!0;var Vt=Yt,ze=function(){return null};ze.isSelectOption=!0;var dt=ze,Nt=re(80547),Wt=re(2738),Be=re(48911);function rt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var bt=["disabled","title","children","style","className"];function Dt(Xe){return typeof Xe=="string"||typeof Xe=="number"}var Ut=function(st,Oe){var Ye=kt(),Me=Ye.prefixCls,Qe=Ye.id,It=Ye.open,an=Ye.multiple,un=Ye.mode,vn=Ye.searchValue,Qt=Ye.toggleOpen,Ft=Ye.notFoundContent,Tt=Ye.onPopupScroll,fn=he.useContext(Ht),Tn=fn.maxCount,Dn=fn.flattenOptions,Bn=fn.onActiveValue,Xn=fn.defaultActiveFirstOption,Qn=fn.onSelect,Jn=fn.menuItemSelectedIcon,Zn=fn.rawValues,Fn=fn.fieldNames,Hn=fn.virtual,Un=fn.direction,ur=fn.listHeight,qn=fn.listItemHeight,lr=fn.optionRender,ir="".concat(Me,"-item"),er=(0,Nt.Z)(function(){return Dn},[It,Dn],function(Yn,pn){return pn[0]&&Yn[1]!==pn[1]}),tr=he.useRef(null),gr=he.useMemo(function(){return an&&We(Tn)&&(Zn==null?void 0:Zn.size)>=Tn},[an,Tn,Zn==null?void 0:Zn.size]),mr=function(pn){pn.preventDefault()},cr=function(pn){var En;(En=tr.current)===null||En===void 0||En.scrollTo(typeof pn=="number"?{index:pn}:pn)},vr=he.useCallback(function(Yn){return un==="combobox"?!1:Zn.has(Yn)},[un,(0,lt.Z)(Zn).toString(),Zn.size]),Cr=function(pn){for(var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Cn=er.length,sn=0;sn<Cn;sn+=1){var _n=(pn+sn*En+Cn)%Cn,jn=er[_n]||{},mn=jn.group,yn=jn.data;if(!mn&&!(yn!=null&&yn.disabled)&&(vr(yn.value)||!gr))return _n}return-1},or=he.useState(function(){return Cr(0)}),dr=(0,Se.Z)(or,2),Gn=dr[0],Sr=dr[1],Rr=function(pn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(pn);var Cn={source:En?"keyboard":"mouse"},sn=er[pn];if(!sn){Bn(null,-1,Cn);return}Bn(sn.value,pn,Cn)};(0,he.useEffect)(function(){Rr(Xn!==!1?Cr(0):-1)},[er.length,vn]);var Hr=he.useCallback(function(Yn){return un==="combobox"?String(Yn).toLowerCase()===vn.toLowerCase():Zn.has(Yn)},[un,vn,(0,lt.Z)(Zn).toString(),Zn.size]);(0,he.useEffect)(function(){var Yn=setTimeout(function(){if(!an&&It&&Zn.size===1){var En=Array.from(Zn)[0],Cn=er.findIndex(function(sn){var _n=sn.data;return vn?String(_n.value).startsWith(vn):_n.value===En});Cn!==-1&&(Rr(Cn),cr(Cn))}});if(It){var pn;(pn=tr.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[It,vn]);var Er=function(pn){pn!==void 0&&Qn(pn,{selected:!Zn.has(pn)}),an||Qt(!1)};if(he.useImperativeHandle(Oe,function(){return{onKeyDown:function(pn){var En=pn.which,Cn=pn.ctrlKey;switch(En){case Ke.Z.N:case Ke.Z.P:case Ke.Z.UP:case Ke.Z.DOWN:{var sn=0;if(En===Ke.Z.UP?sn=-1:En===Ke.Z.DOWN?sn=1:rt()&&Cn&&(En===Ke.Z.N?sn=1:En===Ke.Z.P&&(sn=-1)),sn!==0){var _n=Cr(Gn+sn,sn);cr(_n),Rr(_n,!0)}break}case Ke.Z.TAB:case Ke.Z.ENTER:{var jn,mn=er[Gn];mn&&!(mn!=null&&(jn=mn.data)!==null&&jn!==void 0&&jn.disabled)&&!gr?Er(mn.value):Er(void 0),It&&pn.preventDefault();break}case Ke.Z.ESC:Qt(!1),It&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){cr(pn)}}}),er.length===0)return he.createElement("div",{role:"listbox",id:"".concat(Qe,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},Ft);var Ar=Object.keys(Fn).map(function(Yn){return Fn[Yn]}),Ir=function(pn){return pn.label};function Dr(Yn,pn){var En=Yn.group;return{role:En?"presentation":"option",id:"".concat(Qe,"_list_").concat(pn)}}var _r=function(pn){var En=er[pn];if(!En)return null;var Cn=En.data||{},sn=Cn.value,_n=En.group,jn=(0,Ne.Z)(Cn,!0),mn=Ir(En);return En?he.createElement("div",(0,E.Z)({"aria-label":typeof mn=="string"&&!_n?mn:null},jn,{key:pn},Dr(En,pn),{"aria-selected":Hr(sn)}),sn):null},fr={role:"listbox",id:"".concat(Qe,"_list")};return he.createElement(he.Fragment,null,Hn&&he.createElement("div",(0,E.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),_r(Gn-1),_r(Gn),_r(Gn+1)),he.createElement(Be.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:Tt,virtual:Hn,direction:Un,innerProps:Hn?null:fr},function(Yn,pn){var En=Yn.group,Cn=Yn.groupOption,sn=Yn.data,_n=Yn.label,jn=Yn.value,mn=sn.key;if(En){var yn,Nn=(yn=sn.title)!==null&&yn!==void 0?yn:Dt(_n)?_n.toString():void 0;return he.createElement("div",{className:Ee()(ir,"".concat(ir,"-group"),sn.className),title:Nn},_n!==void 0?_n:mn)}var Rn=sn.disabled,rr=sn.title,Pr=sn.children,br=sn.style,Mr=sn.className,Or=(0,ke.Z)(sn,bt),Br=(0,Wt.Z)(Or,Ar),$r=vr(jn),Tr=Rn||!$r&&gr,Zr="".concat(ir,"-option"),ti=Ee()(ir,Zr,Mr,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(Zr,"-grouped"),Cn),"".concat(Zr,"-active"),Gn===pn&&!Tr),"".concat(Zr,"-disabled"),Tr),"".concat(Zr,"-selected"),$r)),Oi=Ir(Yn),Fi=!Jn||typeof Jn=="function"||$r,xi=typeof Oi=="number"?Oi:Oi||jn,mi=Dt(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),he.createElement("div",(0,E.Z)({},(0,Ne.Z)(Br),Hn?{}:Dr(Yn,pn),{"aria-selected":Hr(jn),className:ti,title:mi,onMouseMove:function(){Gn===pn||Tr||Rr(pn)},onClick:function(){Tr||Er(jn)},style:br}),he.createElement("div",{className:"".concat(Zr,"-content")},typeof lr=="function"?lr(Yn,{index:pn}):xi),he.isValidElement(Jn)||$r,Fi&&he.createElement(He,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:jn,disabled:Tr,isSelected:$r}},$r?"\u2713":null))}))},ln=he.forwardRef(Ut),In=ln,Pn=function(Xe,st){var Oe=he.useRef({values:new Map,options:new Map}),Ye=he.useMemo(function(){var Qe=Oe.current,It=Qe.values,an=Qe.options,un=Xe.map(function(Ft){if(Ft.label===void 0){var Tt;return(0,et.Z)((0,et.Z)({},Ft),{},{label:(Tt=It.get(Ft.value))===null||Tt===void 0?void 0:Tt.label})}return Ft}),vn=new Map,Qt=new Map;return un.forEach(function(Ft){vn.set(Ft.value,Ft),Qt.set(Ft.value,st.get(Ft.value)||an.get(Ft.value))}),Oe.current.values=vn,Oe.current.options=Qt,un},[Xe,st]),Me=he.useCallback(function(Qe){return st.get(Qe)||Oe.current.options.get(Qe)},[st]);return[Ye,Me]};function on(Xe,st){return De(Xe).join("").toUpperCase().includes(st)}var bn=function(Xe,st,Oe,Ye,Me){return he.useMemo(function(){if(!Oe||Ye===!1)return Xe;var Qe=st.options,It=st.label,an=st.value,un=[],vn=typeof Ye=="function",Qt=Oe.toUpperCase(),Ft=vn?Ye:function(fn,Tn){return Me?on(Tn[Me],Qt):Tn[Qe]?on(Tn[It!=="children"?It:"label"],Qt):on(Tn[an],Qt)},Tt=vn?function(fn){return nt(fn)}:function(fn){return fn};return Xe.forEach(function(fn){if(fn[Qe]){var Tn=Ft(Oe,Tt(fn));if(Tn)un.push(fn);else{var Dn=fn[Qe].filter(function(Bn){return Ft(Oe,Tt(Bn))});Dn.length&&un.push((0,et.Z)((0,et.Z)({},fn),{},(0,ye.Z)({},Qe,Dn)))}return}Ft(Oe,Tt(fn))&&un.push(fn)}),un},[Xe,Ye,Me,Oe,st])},dn=re(6551),Gt=re(11592),Lt=["children","value"],Rt=["children"];function Et(Xe){var st=Xe,Oe=st.key,Ye=st.props,Me=Ye.children,Qe=Ye.value,It=(0,ke.Z)(Ye,Lt);return(0,et.Z)({key:Oe,value:Qe!==void 0?Qe:Oe,children:Me},It)}function en(Xe){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Gt.Z)(Xe).map(function(Oe,Ye){if(!he.isValidElement(Oe)||!Oe.type)return null;var Me=Oe,Qe=Me.type.isSelectOptGroup,It=Me.key,an=Me.props,un=an.children,vn=(0,ke.Z)(an,Rt);return st||!Qe?Et(Oe):(0,et.Z)((0,et.Z)({key:"__RC_SELECT_GRP__".concat(It===null?Ye:It,"__"),label:It},vn),{},{options:en(un)})}).filter(function(Oe){return Oe})}var Jt=function(st,Oe,Ye,Me,Qe){return he.useMemo(function(){var It=st,an=!st;an&&(It=en(Oe));var un=new Map,vn=new Map,Qt=function(fn,Tn,Dn){Dn&&typeof Dn=="string"&&fn.set(Tn[Dn],Tn)},Ft=function Tt(fn){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dn=0;Dn<fn.length;Dn+=1){var Bn=fn[Dn];!Bn[Ye.options]||Tn?(un.set(Bn[Ye.value],Bn),Qt(vn,Bn,Ye.label),Qt(vn,Bn,Me),Qt(vn,Bn,Qe)):Tt(Bn[Ye.options],!0)}};return Ft(It),{options:It,valueOptions:un,labelOptions:vn}},[st,Oe,Ye,Me,Qe])},qt=Jt;function gn(Xe){var st=he.useRef();st.current=Xe;var Oe=he.useCallback(function(){return st.current.apply(st,arguments)},[]);return Oe}function wn(Xe){var st=Xe.mode,Oe=Xe.options,Ye=Xe.children,Me=Xe.backfill,Qe=Xe.allowClear,It=Xe.placeholder,an=Xe.getInputElement,un=Xe.showSearch,vn=Xe.onSearch,Qt=Xe.defaultOpen,Ft=Xe.autoFocus,Tt=Xe.labelInValue,fn=Xe.value,Tn=Xe.inputValue,Dn=Xe.optionLabelProp,Bn=isMultiple(st),Xn=un!==void 0?un:Bn||st==="combobox",Qn=Oe||convertChildrenToData(Ye);if(warning(st!=="tags"||Qn.every(function(Hn){return!Hn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),st==="tags"||st==="combobox"){var Jn=Qn.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(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(st!=="combobox"||!Dn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(st==="combobox"||!Me,"`backfill` only works with `combobox` mode."),warning(st==="combobox"||!an,"`getInputElement` only work with `combobox` mode."),noteOnce(st!=="combobox"||!an||!Qe||!It,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),vn&&!Xn&&st!=="combobox"&&st!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qt||Ft,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fn!=null){var Zn=toArray(fn);warning(!Tt||Zn.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(!Bn||Array.isArray(fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ye){var Fn=null;toNodeArray(Ye).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:(Fn=lr.type,!1)});return!qn}return Fn=ur,!0}),Fn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Fn.displayName||Fn.name||Fn,"`.")),warning(Tn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Sn(Xe,st){if(Xe){var Oe=function Ye(Me){for(var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=0;It<Me.length;It++){var an=Me[It];if(an[st==null?void 0:st.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Qe&&Array.isArray(an[st==null?void 0:st.options])&&Ye(an[st==null?void 0:st.options],!0))break}};Oe(Xe)}}var Mn=null,kn=["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"],Wn=["inputValue"];function An(Xe){return!Xe||(0,Ie.Z)(Xe)!=="object"}var Bt=he.forwardRef(function(Xe,st){var Oe=Xe.id,Ye=Xe.mode,Me=Xe.prefixCls,Qe=Me===void 0?"rc-select":Me,It=Xe.backfill,an=Xe.fieldNames,un=Xe.inputValue,vn=Xe.searchValue,Qt=Xe.onSearch,Ft=Xe.autoClearSearchValue,Tt=Ft===void 0?!0:Ft,fn=Xe.onSelect,Tn=Xe.onDeselect,Dn=Xe.dropdownMatchSelectWidth,Bn=Dn===void 0?!0:Dn,Xn=Xe.filterOption,Qn=Xe.filterSort,Jn=Xe.optionFilterProp,Zn=Xe.optionLabelProp,Fn=Xe.options,Hn=Xe.optionRender,Un=Xe.children,ur=Xe.defaultActiveFirstOption,qn=Xe.menuItemSelectedIcon,lr=Xe.virtual,ir=Xe.direction,er=Xe.listHeight,tr=er===void 0?200:er,gr=Xe.listItemHeight,mr=gr===void 0?20:gr,cr=Xe.labelRender,vr=Xe.value,Cr=Xe.defaultValue,or=Xe.labelInValue,dr=Xe.onChange,Gn=Xe.maxCount,Sr=(0,ke.Z)(Xe,kn),Rr=(0,dn.ZP)(Oe),Hr=Xt(Ye),Er=!!(!Fn&&Un),Ar=he.useMemo(function(){return Xn===void 0&&Ye==="combobox"?!1:Xn},[Xn,Ye]),Ir=he.useMemo(function(){return xe(an,Er)},[JSON.stringify(an),Er]),Dr=(0,Ze.Z)("",{value:vn!==void 0?vn:un,postState:function(yr){return yr||""}}),_r=(0,Se.Z)(Dr,2),fr=_r[0],Yn=_r[1],pn=qt(Fn,Un,Ir,Jn,Zn),En=pn.valueOptions,Cn=pn.labelOptions,sn=pn.options,_n=he.useCallback(function(ar){var yr=De(ar);return yr.map(function(hr){var pr,Nr,Wr,ji,gi;if(An(hr))pr=hr;else{var ui;Wr=hr.key,Nr=hr.label,pr=(ui=hr.value)!==null&&ui!==void 0?ui:Wr}var Xr=En.get(pr);if(Xr){var $i;if(Nr===void 0&&(Nr=Xr==null?void 0:Xr[Zn||Ir.label]),Wr===void 0&&(Wr=($i=Xr==null?void 0:Xr.key)!==null&&$i!==void 0?$i:pr),ji=Xr==null?void 0:Xr.disabled,gi=Xr==null?void 0:Xr.title,0)var Qi}return{label:Nr,value:pr,key:Wr,disabled:ji,title:gi}})},[Ir,Zn,En]),jn=(0,Ze.Z)(Cr,{value:vr}),mn=(0,Se.Z)(jn,2),yn=mn[0],Nn=mn[1],Rn=he.useMemo(function(){var ar,yr=Hr&&yn===null?[]:yn,hr=_n(yr);return Ye==="combobox"&&ce((ar=hr[0])===null||ar===void 0?void 0:ar.value)?[]:hr},[yn,_n,Ye,Hr]),rr=Pn(Rn,En),Pr=(0,Se.Z)(rr,2),br=Pr[0],Mr=Pr[1],Or=he.useMemo(function(){if(!Ye&&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,et.Z)((0,et.Z)({},yr),{},{label:(hr=typeof cr=="function"?cr(yr):yr.label)!==null&&hr!==void 0?hr:yr.value})})},[Ye,br,cr]),Br=he.useMemo(function(){return new Set(br.map(function(ar){return ar.value}))},[br]);he.useEffect(function(){if(Ye==="combobox"){var ar,yr=(ar=br[0])===null||ar===void 0?void 0:ar.value;Yn(me(yr)?String(yr):"")}},[br]);var $r=gn(function(ar,yr){var hr=yr!=null?yr:ar;return(0,ye.Z)((0,ye.Z)({},Ir.value,ar),Ir.label,hr)}),Tr=he.useMemo(function(){if(Ye!=="tags")return sn;var ar=(0,lt.Z)(sn),yr=function(pr){return En.has(pr)};return(0,lt.Z)(br).sort(function(hr,pr){return hr.value<pr.value?-1:1}).forEach(function(hr){var pr=hr.value;yr(pr)||ar.push($r(pr,hr.label))}),ar},[$r,sn,En,br,Ye]),Zr=bn(Tr,Ir,fr,Ar,Jn),ti=he.useMemo(function(){return Ye!=="tags"||!fr||Zr.some(function(ar){return ar[Jn||"value"]===fr})||Zr.some(function(ar){return ar[Ir.value]===fr})?Zr:[$r(fr)].concat((0,lt.Z)(Zr))},[$r,Jn,Ye,Zr,fr,Ir]),Oi=function ar(yr){var hr=(0,lt.Z)(yr).sort(function(pr,Nr){return Qn(pr,Nr,{searchValue:fr})});return hr.map(function(pr){return Array.isArray(pr.options)?(0,et.Z)((0,et.Z)({},pr),{},{options:pr.options.length>0?ar(pr.options):pr.options}):pr})},Fi=he.useMemo(function(){return Qn?Oi(ti):ti},[ti,Qn,fr]),xi=he.useMemo(function(){return Ge(Fi,{fieldNames:Ir,childrenAsData:Er})},[Fi,Ir,Er]),mi=function(yr){var hr=_n(yr);if(Nn(hr),dr&&(hr.length!==br.length||hr.some(function(Wr,ji){var gi;return((gi=br[ji])===null||gi===void 0?void 0:gi.value)!==(Wr==null?void 0:Wr.value)}))){var pr=or?hr:hr.map(function(Wr){return Wr.value}),Nr=hr.map(function(Wr){return nt(Mr(Wr.value))});dr(Hr?pr:pr[0],Hr?Nr:Nr[0])}},Xi=he.useState(null),Lr=(0,Se.Z)(Xi,2),to=Lr[0],ni=Lr[1],Li=he.useState(0),ao=(0,Se.Z)(Li,2),Yi=ao[0],vi=ao[1],Ai=ur!==void 0?ur:Ye!=="combobox",Vr=he.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),It&&Ye==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[It,Ye]),_i=function(yr,hr,pr){var Nr=function(){var no,Zi=Mr(yr);return[or?{label:Zi==null?void 0:Zi[Ir.label],value:yr,key:(no=Zi==null?void 0:Zi.key)!==null&&no!==void 0?no:yr}:yr,nt(Zi)]};if(hr&&fn){var Wr=Nr(),ji=(0,Se.Z)(Wr,2),gi=ji[0],ui=ji[1];fn(gi,ui)}else if(!hr&&Tn&&pr!=="clear"){var Xr=Nr(),$i=(0,Se.Z)(Xr,2),Qi=$i[0],ki=$i[1];Tn(Qi,ki)}},lo=gn(function(ar,yr){var hr,pr=Hr?yr.selected:!0;pr?hr=Hr?[].concat((0,lt.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),_i(ar,pr),Ye==="combobox"?ni(""):(!Xt||Tt)&&(Yn(""),ni(""))}),Wi=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(Wr){_i(Wr.value,!1,pr)})},Jr=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,lt.Z)(Br),[pr])));mi(Nr),_i(pr,!0),Yn("")}return}hr.source!=="blur"&&(Ye==="combobox"&&mi(yr),Qt==null||Qt(yr))},xo=function(yr){var hr=yr;Ye!=="tags"&&(hr=yr.map(function(Nr){var Wr=Cn.get(Nr);return Wr==null?void 0:Wr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,lt.Z)(Br),(0,lt.Z)(hr))));mi(pr),pr.forEach(function(Nr){_i(Nr,!0)})},so=he.useMemo(function(){var ar=lr!==!1&&Bn!==!1;return(0,et.Z)((0,et.Z)({},pn),{},{flattenOptions:xi,onActiveValue:Vr,defaultActiveFirstOption:Ai,onSelect:lo,menuItemSelectedIcon:qn,rawValues:Br,fieldNames:Ir,virtual:ar,direction:ir,listHeight:tr,listItemHeight:mr,childrenAsData:Er,maxCount:Gn,optionRender:Hn})},[Gn,pn,xi,Vr,Ai,lo,qn,Br,Ir,lr,Bn,ir,tr,mr,Er,Hn]);return he.createElement(Ht.Provider,{value:so},he.createElement(Ot,(0,E.Z)({},Sr,{id:Rr,prefixCls:Qe,ref:st,omitDomProps:Wn,mode:Ye,displayValues:Or,onDisplayValuesChange:Wi,direction:ir,searchValue:fr,onSearch:Jr,autoClearSearchValue:Tt,onSearchSplit:xo,dropdownMatchSelectWidth:Bn,OptionList:In,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Kt=Bt;Kt.Option=dt,Kt.OptGroup=Vt;var xn=Kt,hn=xn},22711:function(nn,zt,re){"use strict";re.r(zt),re.d(zt,{ResizableTextArea:function(){return Ce},default:function(){return $e}});var E=re(60499),lt=re(18642),ye=re(85899),et=re(77654),Se=re(72190),ke=re(42244),Ie=re(92310),Ze=re.n(Ie),Pe=re(36901),he=re(66003),Je=re(30292),Ee=re(18929),Ct=re(59301),qe=re(43749),Ae=re(29301),Ue=re(34280),He=re(16089),at=`
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;
`,xt=["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"],kt={},ft;function it(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(we&&kt[ct])return kt[ct];var me=window.getComputedStyle(De),ce=me.getPropertyValue("box-sizing")||me.getPropertyValue("-moz-box-sizing")||me.getPropertyValue("-webkit-box-sizing"),je=parseFloat(me.getPropertyValue("padding-bottom"))+parseFloat(me.getPropertyValue("padding-top")),Pt=parseFloat(me.getPropertyValue("border-bottom-width"))+parseFloat(me.getPropertyValue("border-top-width")),yt=xt.map(function(Te){return"".concat(Te,":").concat(me.getPropertyValue(Te))}).join(";"),ve={sizingStyle:yt,paddingSize:je,borderSize:Pt,boxSizing:ce};return we&&ct&&(kt[ct]=ve),ve}function tt(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ft||(ft=document.createElement("textarea"),ft.setAttribute("tab-index","-1"),ft.setAttribute("aria-hidden","true"),ft.setAttribute("name","hiddenTextarea"),document.body.appendChild(ft)),De.getAttribute("wrap")?ft.setAttribute("wrap",De.getAttribute("wrap")):ft.removeAttribute("wrap");var ce=it(De,we),je=ce.paddingSize,Pt=ce.borderSize,yt=ce.boxSizing,ve=ce.sizingStyle;ft.setAttribute("style","".concat(ve,";").concat(at)),ft.value=De.value||De.placeholder||"";var Te=void 0,Le=void 0,wt,pt=ft.scrollHeight;if(yt==="border-box"?pt+=Pt:yt==="content-box"&&(pt-=je),ct!==null||me!==null){ft.value=" ";var Mt=ft.scrollHeight-je;ct!==null&&(Te=Mt*ct,yt==="border-box"&&(Te=Te+je+Pt),pt=Math.max(Te,pt)),me!==null&&(Le=Mt*me,yt==="border-box"&&(Le=Le+je+Pt),wt=pt>Le?"":"hidden",pt=Math.min(Le,pt))}var Fe={height:pt,overflowY:wt,resize:"none"};return Te&&(Fe.minHeight=Te),Le&&(Fe.maxHeight=Le),Fe}var Ke=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],gt=0,Ne=1,Ve=2,ht=Ct.forwardRef(function(De,we){var ct=De,me=ct.prefixCls,ce=ct.defaultValue,je=ct.value,Pt=ct.autoSize,yt=ct.onResize,ve=ct.className,Te=ct.style,Le=ct.disabled,wt=ct.onChange,pt=ct.onInternalAutoSize,Mt=(0,ke.Z)(ct,Ke),Fe=(0,Ee.Z)(ce,{value:je,postState:function(dt){return dt!=null?dt:""}}),At=(0,Se.Z)(Fe,2),ut=At[0],ae=At[1],te=function(dt){ae(dt.target.value),wt==null||wt(dt)},ee=Ct.useRef();Ct.useImperativeHandle(we,function(){return{textArea:ee.current}});var oe=Ct.useMemo(function(){return Pt&&(0,qe.Z)(Pt)==="object"?[Pt.minRows,Pt.maxRows]:[]},[Pt]),ue=(0,Se.Z)(oe,2),ne=ue[0],pe=ue[1],ge=!!Pt,We=function(){try{if(document.activeElement===ee.current){var dt=ee.current,Nt=dt.selectionStart,Wt=dt.selectionEnd,Be=dt.scrollTop;ee.current.setSelectionRange(Nt,Wt),ee.current.scrollTop=Be}}catch(rt){}},xe=Ct.useState(Ve),Ge=(0,Se.Z)(xe,2),nt=Ge[0],St=Ge[1],mt=Ct.useState(),Ht=(0,Se.Z)(mt,2),Zt=Ht[0],$t=Ht[1],tn=function(){St(gt)};(0,Ue.Z)(function(){ge&&tn()},[je,ne,pe,ge]),(0,Ue.Z)(function(){if(nt===gt)St(Ne);else if(nt===Ne){var ze=tt(ee.current,!1,ne,pe);St(Ve),$t(ze)}else We()},[nt]);var Xt=Ct.useRef(),rn=function(){He.Z.cancel(Xt.current)},Ot=function(dt){nt===Ve&&(yt==null||yt(dt),Pt&&(rn(),Xt.current=(0,He.Z)(function(){tn()})))};Ct.useEffect(function(){return rn},[]);var Yt=ge?Zt:null,Vt=(0,ye.Z)((0,ye.Z)({},Te),Yt);return(nt===gt||nt===Ne)&&(Vt.overflowY="hidden",Vt.overflowX="hidden"),Ct.createElement(Ae.Z,{onResize:Ot,disabled:!(Pt||yt)},Ct.createElement("textarea",(0,E.Z)({},Mt,{ref:ee,style:Vt,className:Ze()(me,ve,(0,lt.Z)({},"".concat(me,"-disabled"),Le)),disabled:Le,value:ut,onChange:te})))}),Ce=ht,Re=["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"],_e=Ct.forwardRef(function(De,we){var ct,me=De.defaultValue,ce=De.value,je=De.onFocus,Pt=De.onBlur,yt=De.onChange,ve=De.allowClear,Te=De.maxLength,Le=De.onCompositionStart,wt=De.onCompositionEnd,pt=De.suffix,Mt=De.prefixCls,Fe=Mt===void 0?"rc-textarea":Mt,At=De.showCount,ut=De.count,ae=De.className,te=De.style,ee=De.disabled,oe=De.hidden,ue=De.classNames,ne=De.styles,pe=De.onResize,ge=De.onClear,We=De.onPressEnter,xe=De.readOnly,Ge=De.autoSize,nt=De.onKeyDown,St=(0,ke.Z)(De,Re),mt=(0,Ee.Z)(me,{value:ce,defaultValue:me}),Ht=(0,Se.Z)(mt,2),Zt=Ht[0],$t=Ht[1],tn=Zt==null?"":String(Zt),Xt=Ct.useState(!1),rn=(0,Se.Z)(Xt,2),Ot=rn[0],Yt=rn[1],Vt=Ct.useRef(!1),ze=Ct.useState(null),dt=(0,Se.Z)(ze,2),Nt=dt[0],Wt=dt[1],Be=(0,Ct.useRef)(null),rt=(0,Ct.useRef)(null),bt=function(){var Kt;return(Kt=rt.current)===null||Kt===void 0?void 0:Kt.textArea},Dt=function(){bt().focus()};(0,Ct.useImperativeHandle)(we,function(){var Bt;return{resizableTextArea:rt.current,focus:Dt,blur:function(){bt().blur()},nativeElement:((Bt=Be.current)===null||Bt===void 0?void 0:Bt.nativeElement)||bt()}}),(0,Ct.useEffect)(function(){Yt(function(Bt){return!ee&&Bt})},[ee]);var Ut=Ct.useState(null),ln=(0,Se.Z)(Ut,2),In=ln[0],Pn=ln[1];Ct.useEffect(function(){if(In){var Bt;(Bt=bt()).setSelectionRange.apply(Bt,(0,et.Z)(In))}},[In]);var on=(0,he.Z)(ut,At),bn=(ct=on.max)!==null&&ct!==void 0?ct:Te,dn=Number(bn)>0,Gt=on.strategy(tn),Lt=!!bn&&Gt>bn,Rt=function(Kt,xn){var hn=xn;!Vt.current&&on.exceedFormatter&&on.max&&on.strategy(xn)>on.max&&(hn=on.exceedFormatter(xn,{max:on.max}),xn!==hn&&Pn([bt().selectionStart||0,bt().selectionEnd||0])),$t(hn),(0,Je.rJ)(Kt.currentTarget,Kt,yt,hn)},Et=function(Kt){Vt.current=!0,Le==null||Le(Kt)},en=function(Kt){Vt.current=!1,Rt(Kt,Kt.currentTarget.value),wt==null||wt(Kt)},Jt=function(Kt){Rt(Kt,Kt.target.value)},qt=function(Kt){Kt.key==="Enter"&&We&&We(Kt),nt==null||nt(Kt)},gn=function(Kt){Yt(!0),je==null||je(Kt)},wn=function(Kt){Yt(!1),Pt==null||Pt(Kt)},Sn=function(Kt){$t(""),Dt(),(0,Je.rJ)(bt(),Kt,yt)},Mn=pt,kn;on.show&&(on.showFormatter?kn=on.showFormatter({value:tn,count:Gt,maxLength:bn}):kn="".concat(Gt).concat(dn?" / ".concat(bn):""),Mn=Ct.createElement(Ct.Fragment,null,Mn,Ct.createElement("span",{className:Ze()("".concat(Fe,"-data-count"),ue==null?void 0:ue.count),style:ne==null?void 0:ne.count},kn)));var Wn=function(Kt){var xn;pe==null||pe(Kt),(xn=bt())!==null&&xn!==void 0&&xn.style.height&&Wt(!0)},An=!Ge&&!At&&!ve;return Ct.createElement(Pe.BaseInput,{ref:Be,value:tn,allowClear:ve,handleReset:Sn,suffix:Mn,prefixCls:Fe,classNames:(0,ye.Z)((0,ye.Z)({},ue),{},{affixWrapper:Ze()(ue==null?void 0:ue.affixWrapper,(0,lt.Z)((0,lt.Z)({},"".concat(Fe,"-show-count"),At),"".concat(Fe,"-textarea-allow-clear"),ve))}),disabled:ee,focused:Ot,className:Ze()(ae,Lt&&"".concat(Fe,"-out-of-range")),style:(0,ye.Z)((0,ye.Z)({},te),Nt&&!An?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof kn=="string"?kn:void 0}},hidden:oe,readOnly:xe,onClear:ge},Ct.createElement(Ce,(0,E.Z)({},St,{autoSize:Ge,maxLength:Te,onKeyDown:qt,onChange:Jt,onFocus:gn,onBlur:wn,onCompositionStart:Et,onCompositionEnd:en,className:Ze()(ue==null?void 0:ue.textarea),style:(0,ye.Z)((0,ye.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Fe,onResize:Wn,ref:rt,readOnly:xe})))}),se=_e,$e=se},48911:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return ut}});var E=re(60499),lt=re(43749),ye=re(85899),et=re(18642),Se=re(72190),ke=re(42244),Ie=re(92310),Ze=re.n(Ie),Pe=re(29301),he=re(70425),Je=re(34280),Ee=re(59301),Ct=re(4676),qe=Ee.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,ne=ae.children,pe=ae.prefixCls,ge=ae.onInnerResize,We=ae.innerProps,xe=ae.rtl,Ge=ae.extra,nt={},St={display:"flex",flexDirection:"column"};return oe!==void 0&&(nt={height:ee,position:"relative",overflow:"hidden"},St=(0,ye.Z)((0,ye.Z)({},St),{},(0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)((0,et.Z)({transform:"translateY(".concat(oe,"px)")},xe?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:nt},Ee.createElement(Pe.Z,{onResize:function(Ht){var Zt=Ht.offsetHeight;Zt&&ge&&ge()}},Ee.createElement("div",(0,E.Z)({style:St,className:Ze()((0,et.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},We),ne,Ge)))});qe.displayName="Filler";var Ae=qe;function Ue(ae){var te=ae.children,ee=ae.setRef,oe=Ee.useCallback(function(ue){ee(ue)},[]);return Ee.cloneElement(te,{ref:oe})}function He(ae,te,ee,oe,ue,ne,pe,ge){var We=ge.getKey;return ae.slice(te,ee+1).map(function(xe,Ge){var nt=te+Ge,St=pe(xe,nt,{style:{width:oe},offsetX:ue}),mt=We(xe);return Ee.createElement(Ue,{key:mt,setRef:function(Zt){return ne(xe,Zt)}},St)})}function at(ae,te,ee,oe){var ue=ee-ae,ne=te-ee,pe=Math.min(ue,ne)*2;if(oe<=pe){var ge=Math.floor(oe/2);return oe%2?ee+ge+1:ee-ge}return ue>ne?ee-(oe-ne):ee+(oe-ue)}function xt(ae,te,ee){var oe=ae.length,ue=te.length,ne,pe;if(oe===0&&ue===0)return null;oe<ue?(ne=ae,pe=te):(ne=te,pe=ae);var ge={__EMPTY_ITEM__:!0};function We(Ht){return Ht!==void 0?ee(Ht):ge}for(var xe=null,Ge=Math.abs(oe-ue)!==1,nt=0;nt<pe.length;nt+=1){var St=We(ne[nt]),mt=We(pe[nt]);if(St!==mt){xe=nt,Ge=Ge||St!==We(pe[nt+1]);break}}return xe===null?null:{index:xe,multiple:Ge}}function kt(ae,te,ee){var oe=Ee.useState(ae),ue=(0,Se.Z)(oe,2),ne=ue[0],pe=ue[1],ge=Ee.useState(null),We=(0,Se.Z)(ge,2),xe=We[0],Ge=We[1];return Ee.useEffect(function(){var nt=xt(ne||[],ae||[],te);(nt==null?void 0:nt.index)!==void 0&&(ee==null||ee(nt.index),Ge(ae[nt.index])),pe(ae)},[ae]),[xe]}var ft=re(16089),it=(typeof navigator=="undefined"?"undefined":(0,lt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),tt=it,Ke=function(ae,te,ee,oe){var ue=(0,Ee.useRef)(!1),ne=(0,Ee.useRef)(null);function pe(){clearTimeout(ne.current),ue.current=!0,ne.current=setTimeout(function(){ue.current=!1},50)}var ge=(0,Ee.useRef)({top:ae,bottom:te,left:ee,right:oe});return ge.current.top=ae,ge.current.bottom=te,ge.current.left=ee,ge.current.right=oe,function(We,xe){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,nt=We?xe<0&&ge.current.left||xe>0&&ge.current.right:xe<0&&ge.current.top||xe>0&&ge.current.bottom;return Ge&&nt?(clearTimeout(ne.current),ue.current=!1):(!nt||ue.current)&&pe(),!ue.current&&nt}};function gt(ae,te,ee,oe,ue,ne,pe){var ge=(0,Ee.useRef)(0),We=(0,Ee.useRef)(null),xe=(0,Ee.useRef)(null),Ge=(0,Ee.useRef)(!1),nt=Ke(te,ee,oe,ue);function St(Xt,rn){if(ft.Z.cancel(We.current),!nt(!1,rn)){var Ot=Xt;if(!Ot._virtualHandled)Ot._virtualHandled=!0;else return;ge.current+=rn,xe.current=rn,tt||Ot.preventDefault(),We.current=(0,ft.Z)(function(){var Yt=Ge.current?10:1;pe(ge.current*Yt,!1),ge.current=0})}}function mt(Xt,rn){pe(rn,!0),tt||Xt.preventDefault()}var Ht=(0,Ee.useRef)(null),Zt=(0,Ee.useRef)(null);function $t(Xt){if(ae){ft.Z.cancel(Zt.current),Zt.current=(0,ft.Z)(function(){Ht.current=null},2);var rn=Xt.deltaX,Ot=Xt.deltaY,Yt=Xt.shiftKey,Vt=rn,ze=Ot;(Ht.current==="sx"||!Ht.current&&Yt&&Ot&&!rn)&&(Vt=Ot,ze=0,Ht.current="sx");var dt=Math.abs(Vt),Nt=Math.abs(ze);Ht.current===null&&(Ht.current=ne&&dt>Nt?"x":"y"),Ht.current==="y"?St(Xt,ze):mt(Xt,Vt)}}function tn(Xt){ae&&(Ge.current=Xt.detail===xe.current)}return[$t,tn]}function Ne(ae,te,ee,oe){var ue=Ee.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Se.Z)(ue,2),pe=ne[0],ge=ne[1],We=function(Ge){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,St=pe.get(Ge),mt=pe.get(nt);if(St===void 0||mt===void 0)for(var Ht=ae.length,Zt=ge.length;Zt<Ht;Zt+=1){var $t,tn=ae[Zt],Xt=te(tn);pe.set(Xt,Zt);var rn=($t=ee.get(Xt))!==null&&$t!==void 0?$t:oe;if(ge[Zt]=(ge[Zt-1]||0)+rn,Xt===Ge&&(St=Zt),Xt===nt&&(mt=Zt),St!==void 0&&mt!==void 0)break}return{top:ge[St-1]||0,bottom:ge[mt]}};return We}var Ve=re(38705),ht=re(17212),Ce=function(){function ae(){(0,Ve.Z)(this,ae),(0,et.Z)(this,"maps",void 0),(0,et.Z)(this,"id",0),(0,et.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ht.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}(),Re=Ce;function _e(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function se(ae,te,ee){var oe=Ee.useState(0),ue=(0,Se.Z)(oe,2),ne=ue[0],pe=ue[1],ge=(0,Ee.useRef)(new Map),We=(0,Ee.useRef)(new Re),xe=(0,Ee.useRef)(0);function Ge(){xe.current+=1}function nt(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge();var Ht=function(){var tn=!1;ge.current.forEach(function(Xt,rn){if(Xt&&Xt.offsetParent){var Ot=Xt.offsetHeight,Yt=getComputedStyle(Xt),Vt=Yt.marginTop,ze=Yt.marginBottom,dt=_e(Vt),Nt=_e(ze),Wt=Ot+dt+Nt;We.current.get(rn)!==Wt&&(We.current.set(rn,Wt),tn=!0)}}),tn&&pe(function(Xt){return Xt+1})};if(mt)Ht();else{xe.current+=1;var Zt=xe.current;Promise.resolve().then(function(){Zt===xe.current&&Ht()})}}function St(mt,Ht){var Zt=ae(mt),$t=ge.current.get(Zt);Ht?(ge.current.set(Zt,Ht),nt()):ge.current.delete(Zt),!$t!=!Ht&&(Ht?te==null||te(mt):ee==null||ee(mt))}return(0,Ee.useEffect)(function(){return Ge},[]),[St,nt,We.current,ne]}var $e=14/15;function De(ae,te,ee){var oe=(0,Ee.useRef)(!1),ue=(0,Ee.useRef)(0),ne=(0,Ee.useRef)(0),pe=(0,Ee.useRef)(null),ge=(0,Ee.useRef)(null),We,xe=function(mt){if(oe.current){var Ht=Math.ceil(mt.touches[0].pageX),Zt=Math.ceil(mt.touches[0].pageY),$t=ue.current-Ht,tn=ne.current-Zt,Xt=Math.abs($t)>Math.abs(tn);Xt?ue.current=Ht:ne.current=Zt;var rn=ee(Xt,Xt?$t:tn,!1,mt);rn&&mt.preventDefault(),clearInterval(ge.current),rn&&(ge.current=setInterval(function(){Xt?$t*=$e:tn*=$e;var Ot=Math.floor(Xt?$t:tn);(!ee(Xt,Ot,!0)||Math.abs(Ot)<=.1)&&clearInterval(ge.current)},16))}},Ge=function(){oe.current=!1,We()},nt=function(mt){We(),mt.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(mt.touches[0].pageX),ne.current=Math.ceil(mt.touches[0].pageY),pe.current=mt.target,pe.current.addEventListener("touchmove",xe,{passive:!1}),pe.current.addEventListener("touchend",Ge,{passive:!0}))};We=function(){pe.current&&(pe.current.removeEventListener("touchmove",xe),pe.current.removeEventListener("touchend",Ge))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",nt,{passive:!0}),function(){var St;(St=te.current)===null||St===void 0||St.removeEventListener("touchstart",nt),We(),clearInterval(ge.current)}},[ae])}function we(ae){return Math.floor(Math.pow(ae,.5))}function ct(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function me(ae,te,ee){Ee.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,ne,pe,ge=function(){ft.Z.cancel(ne)},We=function St(){ge(),ne=(0,ft.Z)(function(){ee(pe),St()})},xe=function(){ue=!1,ge()},Ge=function(mt){if(!(mt.target.draggable||mt.button!==0)){var Ht=mt;Ht._virtualHandled||(Ht._virtualHandled=!0,ue=!0)}},nt=function(mt){if(ue){var Ht=ct(mt,!1),Zt=oe.getBoundingClientRect(),$t=Zt.top,tn=Zt.bottom;if(Ht<=$t){var Xt=$t-Ht;pe=-we(Xt),We()}else if(Ht>=tn){var rn=Ht-tn;pe=we(rn),We()}else ge()}};return oe.addEventListener("mousedown",Ge),oe.ownerDocument.addEventListener("mouseup",xe),oe.ownerDocument.addEventListener("mousemove",nt),oe.ownerDocument.addEventListener("dragend",xe),function(){oe.removeEventListener("mousedown",Ge),oe.ownerDocument.removeEventListener("mouseup",xe),oe.ownerDocument.removeEventListener("mousemove",nt),oe.ownerDocument.removeEventListener("dragend",xe),ge()}}},[ae])}var ce=10;function je(ae,te,ee,oe,ue,ne,pe,ge){var We=Ee.useRef(),xe=Ee.useState(null),Ge=(0,Se.Z)(xe,2),nt=Ge[0],St=Ge[1];return(0,Je.Z)(function(){if(nt&&nt.times<ce){if(!ae.current){St(function(on){return(0,ye.Z)({},on)});return}ne();var mt=nt.targetAlign,Ht=nt.originAlign,Zt=nt.index,$t=nt.offset,tn=ae.current.clientHeight,Xt=!1,rn=mt,Ot=null;if(tn){for(var Yt=mt||Ht,Vt=0,ze=0,dt=0,Nt=Math.min(te.length-1,Zt),Wt=0;Wt<=Nt;Wt+=1){var Be=ue(te[Wt]);ze=Vt;var rt=ee.get(Be);dt=ze+(rt===void 0?oe:rt),Vt=dt}for(var bt=Yt==="top"?$t:tn-$t,Dt=Nt;Dt>=0;Dt-=1){var Ut=ue(te[Dt]),ln=ee.get(Ut);if(ln===void 0){Xt=!0;break}if(bt-=ln,bt<=0)break}switch(Yt){case"top":Ot=ze-$t;break;case"bottom":Ot=dt-tn+$t;break;default:{var In=ae.current.scrollTop,Pn=In+tn;ze<In?rn="top":dt>Pn&&(rn="bottom")}}Ot!==null&&pe(Ot),Ot!==nt.lastTop&&(Xt=!0)}Xt&&St((0,ye.Z)((0,ye.Z)({},nt),{},{times:nt.times+1,targetAlign:rn,lastTop:Ot}))}},[nt,ae.current]),function(mt){if(mt==null){ge();return}if(ft.Z.cancel(We.current),typeof mt=="number")pe(mt);else if(mt&&(0,lt.Z)(mt)==="object"){var Ht,Zt=mt.align;"index"in mt?Ht=mt.index:Ht=te.findIndex(function(Xt){return ue(Xt)===mt.key});var $t=mt.offset,tn=$t===void 0?0:$t;St({times:0,index:Ht,offset:tn,originAlign:Zt})}}}var Pt=Ee.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,ge=ae.onStopMove,We=ae.onScroll,xe=ae.horizontal,Ge=ae.spinSize,nt=ae.containerSize,St=ae.style,mt=ae.thumbStyle,Ht=ae.showScrollBar,Zt=Ee.useState(!1),$t=(0,Se.Z)(Zt,2),tn=$t[0],Xt=$t[1],rn=Ee.useState(null),Ot=(0,Se.Z)(rn,2),Yt=Ot[0],Vt=Ot[1],ze=Ee.useState(null),dt=(0,Se.Z)(ze,2),Nt=dt[0],Wt=dt[1],Be=!oe,rt=Ee.useRef(),bt=Ee.useRef(),Dt=Ee.useState(Ht),Ut=(0,Se.Z)(Dt,2),ln=Ut[0],In=Ut[1],Pn=Ee.useRef(),on=function(){Ht===!0||Ht===!1||(clearTimeout(Pn.current),In(!0),Pn.current=setTimeout(function(){In(!1)},3e3))},bn=ne-nt||0,dn=nt-Ge||0,Gt=Ee.useMemo(function(){if(ue===0||bn===0)return 0;var Sn=ue/bn;return Sn*dn},[ue,bn,dn]),Lt=function(Mn){Mn.stopPropagation(),Mn.preventDefault()},Rt=Ee.useRef({top:Gt,dragging:tn,pageY:Yt,startTop:Nt});Rt.current={top:Gt,dragging:tn,pageY:Yt,startTop:Nt};var Et=function(Mn){Xt(!0),Vt(ct(Mn,xe)),Wt(Rt.current.top),pe(),Mn.stopPropagation(),Mn.preventDefault()};Ee.useEffect(function(){var Sn=function(An){An.preventDefault()},Mn=rt.current,kn=bt.current;return Mn.addEventListener("touchstart",Sn,{passive:!1}),kn.addEventListener("touchstart",Et,{passive:!1}),function(){Mn.removeEventListener("touchstart",Sn),kn.removeEventListener("touchstart",Et)}},[]);var en=Ee.useRef();en.current=bn;var Jt=Ee.useRef();Jt.current=dn,Ee.useEffect(function(){if(tn){var Sn,Mn=function(An){var Bt=Rt.current,Kt=Bt.dragging,xn=Bt.pageY,hn=Bt.startTop;ft.Z.cancel(Sn);var Xe=rt.current.getBoundingClientRect(),st=nt/(xe?Xe.width:Xe.height);if(Kt){var Oe=(ct(An,xe)-xn)*st,Ye=hn;!Be&&xe?Ye-=Oe:Ye+=Oe;var Me=en.current,Qe=Jt.current,It=Qe?Ye/Qe:0,an=Math.ceil(It*Me);an=Math.max(an,0),an=Math.min(an,Me),Sn=(0,ft.Z)(function(){We(an,xe)})}},kn=function(){Xt(!1),ge()};return window.addEventListener("mousemove",Mn,{passive:!0}),window.addEventListener("touchmove",Mn,{passive:!0}),window.addEventListener("mouseup",kn,{passive:!0}),window.addEventListener("touchend",kn,{passive:!0}),function(){window.removeEventListener("mousemove",Mn),window.removeEventListener("touchmove",Mn),window.removeEventListener("mouseup",kn),window.removeEventListener("touchend",kn),ft.Z.cancel(Sn)}}},[tn]),Ee.useEffect(function(){return on(),function(){clearTimeout(Pn.current)}},[ue]),Ee.useImperativeHandle(te,function(){return{delayHidden:on}});var qt="".concat(ee,"-scrollbar"),gn={position:"absolute",visibility:ln?null:"hidden"},wn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return xe?(Object.assign(gn,{height:8,left:0,right:0,bottom:0}),Object.assign(wn,(0,et.Z)({height:"100%",width:Ge},Be?"left":"right",Gt))):(Object.assign(gn,(0,et.Z)({width:8,top:0,bottom:0},Be?"right":"left",0)),Object.assign(wn,{width:"100%",height:Ge,top:Gt})),Ee.createElement("div",{ref:rt,className:Ze()(qt,(0,et.Z)((0,et.Z)((0,et.Z)({},"".concat(qt,"-horizontal"),xe),"".concat(qt,"-vertical"),!xe),"".concat(qt,"-visible"),ln)),style:(0,ye.Z)((0,ye.Z)({},gn),St),onMouseDown:Lt,onMouseMove:on},Ee.createElement("div",{ref:bt,className:Ze()("".concat(qt,"-thumb"),(0,et.Z)({},"".concat(qt,"-thumb-moving"),tn)),style:(0,ye.Z)((0,ye.Z)({},wn),mt),onMouseDown:Et}))}),yt=Pt,ve=20;function Te(){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,ve),Math.floor(ee)}var Le=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],wt=[],pt={overflowY:"auto",overflowAnchor:"none"};function Mt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,ue=ae.className,ne=ae.height,pe=ae.itemHeight,ge=ae.fullHeight,We=ge===void 0?!0:ge,xe=ae.style,Ge=ae.data,nt=ae.children,St=ae.itemKey,mt=ae.virtual,Ht=ae.direction,Zt=ae.scrollWidth,$t=ae.component,tn=$t===void 0?"div":$t,Xt=ae.onScroll,rn=ae.onVirtualScroll,Ot=ae.onVisibleChange,Yt=ae.innerProps,Vt=ae.extraRender,ze=ae.styles,dt=ae.showScrollBar,Nt=dt===void 0?"optional":dt,Wt=(0,ke.Z)(ae,Le),Be=Ee.useCallback(function(pn){return typeof St=="function"?St(pn):pn==null?void 0:pn[St]},[St]),rt=se(Be,null,null),bt=(0,Se.Z)(rt,4),Dt=bt[0],Ut=bt[1],ln=bt[2],In=bt[3],Pn=!!(mt!==!1&&ne&&pe),on=Ee.useMemo(function(){return Object.values(ln.maps).reduce(function(pn,En){return pn+En},0)},[ln.id,ln.maps]),bn=Pn&&Ge&&(Math.max(pe*Ge.length,on)>ne||!!Zt),dn=Ht==="rtl",Gt=Ze()(oe,(0,et.Z)({},"".concat(oe,"-rtl"),dn),ue),Lt=Ge||wt,Rt=(0,Ee.useRef)(),Et=(0,Ee.useRef)(),en=(0,Ee.useRef)(),Jt=(0,Ee.useState)(0),qt=(0,Se.Z)(Jt,2),gn=qt[0],wn=qt[1],Sn=(0,Ee.useState)(0),Mn=(0,Se.Z)(Sn,2),kn=Mn[0],Wn=Mn[1],An=(0,Ee.useState)(!1),Bt=(0,Se.Z)(An,2),Kt=Bt[0],xn=Bt[1],hn=function(){xn(!0)},Xe=function(){xn(!1)},st={getKey:Be};function Oe(pn){wn(function(En){var Cn;typeof pn=="function"?Cn=pn(En):Cn=pn;var sn=ur(Cn);return Rt.current.scrollTop=sn,sn})}var Ye=(0,Ee.useRef)({start:0,end:Lt.length}),Me=(0,Ee.useRef)(),Qe=kt(Lt,Be),It=(0,Se.Z)(Qe,1),an=It[0];Me.current=an;var un=Ee.useMemo(function(){if(!Pn)return{scrollHeight:void 0,start:0,end:Lt.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=Et.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:Lt.length-1,offset:void 0}}for(var En=0,Cn,sn,_n,jn=Lt.length,mn=0;mn<jn;mn+=1){var yn=Lt[mn],Nn=Be(yn),Rn=ln.get(Nn),rr=En+(Rn===void 0?pe:Rn);rr>=gn&&Cn===void 0&&(Cn=mn,sn=En),rr>gn+ne&&_n===void 0&&(_n=mn),En=rr}return Cn===void 0&&(Cn=0,sn=0,_n=Math.ceil(ne/pe)),_n===void 0&&(_n=Lt.length-1),_n=Math.min(_n+1,Lt.length-1),{scrollHeight:En,start:Cn,end:_n,offset:sn}},[bn,Pn,gn,Lt,In,ne]),vn=un.scrollHeight,Qt=un.start,Ft=un.end,Tt=un.offset;Ye.current.start=Qt,Ye.current.end=Ft,Ee.useLayoutEffect(function(){var pn=ln.getRecord();if(pn.size===1){var En=Array.from(pn.keys())[0],Cn=pn.get(En),sn=Lt[Qt];if(sn&&Cn===void 0){var _n=Be(sn);if(_n===En){var jn=ln.get(En),mn=jn-pe;Oe(function(yn){return yn+mn})}}}ln.resetRecord()},[vn]);var fn=Ee.useState({width:0,height:ne}),Tn=(0,Se.Z)(fn,2),Dn=Tn[0],Bn=Tn[1],Xn=function(En){Bn({width:En.offsetWidth,height:En.offsetHeight})},Qn=(0,Ee.useRef)(),Jn=(0,Ee.useRef)(),Zn=Ee.useMemo(function(){return Te(Dn.width,Zt)},[Dn.width,Zt]),Fn=Ee.useMemo(function(){return Te(Dn.height,vn)},[Dn.height,vn]),Hn=vn-ne,Un=(0,Ee.useRef)(Hn);Un.current=Hn;function ur(pn){var En=pn;return Number.isNaN(Un.current)||(En=Math.min(En,Un.current)),En=Math.max(En,0),En}var qn=gn<=0,lr=gn>=Hn,ir=kn<=0,er=kn>=Zt,tr=Ke(qn,lr,ir,er),gr=function(){return{x:dn?-kn:kn,y:gn}},mr=(0,Ee.useRef)(gr()),cr=(0,he.zX)(function(pn){if(rn){var En=(0,ye.Z)((0,ye.Z)({},gr()),pn);(mr.current.x!==En.x||mr.current.y!==En.y)&&(rn(En),mr.current=En)}});function vr(pn,En){var Cn=pn;En?((0,Ct.flushSync)(function(){Wn(Cn)}),cr()):Oe(Cn)}function Cr(pn){var En=pn.currentTarget.scrollTop;En!==gn&&Oe(En),Xt==null||Xt(pn),cr()}var or=function(En){var Cn=En,sn=Zt?Zt-Dn.width:0;return Cn=Math.max(Cn,0),Cn=Math.min(Cn,sn),Cn},dr=(0,he.zX)(function(pn,En){En?((0,Ct.flushSync)(function(){Wn(function(Cn){var sn=Cn+(dn?-pn:pn);return or(sn)})}),cr()):Oe(function(Cn){var sn=Cn+pn;return sn})}),Gn=gt(Pn,qn,lr,ir,er,!!Zt,dr),Sr=(0,Se.Z)(Gn,2),Rr=Sr[0],Hr=Sr[1];De(Pn,Rt,function(pn,En,Cn,sn){var _n=sn;return tr(pn,En,Cn)?!1:!_n||!_n._virtualHandled?(_n&&(_n._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:pn?En:0,deltaY:pn?0:En}),!0):!1}),me(bn,Rt,function(pn){Oe(function(En){return En+pn})}),(0,Je.Z)(function(){function pn(Cn){var sn=qn&&Cn.detail<0,_n=lr&&Cn.detail>0;Pn&&!sn&&!_n&&Cn.preventDefault()}var En=Rt.current;return En.addEventListener("wheel",Rr,{passive:!1}),En.addEventListener("DOMMouseScroll",Hr,{passive:!0}),En.addEventListener("MozMousePixelScroll",pn,{passive:!1}),function(){En.removeEventListener("wheel",Rr),En.removeEventListener("DOMMouseScroll",Hr),En.removeEventListener("MozMousePixelScroll",pn)}},[Pn,qn,lr]),(0,Je.Z)(function(){if(Zt){var pn=or(kn);Wn(pn),cr({x:pn})}},[Dn.width,Zt]);var Er=function(){var En,Cn;(En=Qn.current)===null||En===void 0||En.delayHidden(),(Cn=Jn.current)===null||Cn===void 0||Cn.delayHidden()},Ar=je(Rt,Lt,ln,pe,Be,function(){return Ut(!0)},Oe,Er);Ee.useImperativeHandle(te,function(){return{nativeElement:en.current,getScrollInfo:gr,scrollTo:function(En){function Cn(sn){return sn&&(0,lt.Z)(sn)==="object"&&("left"in sn||"top"in sn)}Cn(En)?(En.left!==void 0&&Wn(or(En.left)),Ar(En.top)):Ar(En)}}}),(0,Je.Z)(function(){if(Ot){var pn=Lt.slice(Qt,Ft+1);Ot(pn,Lt)}},[Qt,Ft,Lt]);var Ir=Ne(Lt,Be,ln,pe),Dr=Vt==null?void 0:Vt({start:Qt,end:Ft,virtual:bn,offsetX:kn,offsetY:Tt,rtl:dn,getSize:Ir}),_r=He(Lt,Qt,Ft,Zt,kn,Dt,nt,st),fr=null;ne&&(fr=(0,ye.Z)((0,et.Z)({},We?"height":"maxHeight",ne),pt),Pn&&(fr.overflowY="hidden",Zt&&(fr.overflowX="hidden"),Kt&&(fr.pointerEvents="none")));var Yn={};return dn&&(Yn.dir="rtl"),Ee.createElement("div",(0,E.Z)({ref:en,style:(0,ye.Z)((0,ye.Z)({},xe),{},{position:"relative"}),className:Gt},Yn,Wt),Ee.createElement(Pe.Z,{onResize:Xn},Ee.createElement(tn,{className:"".concat(oe,"-holder"),style:fr,ref:Rt,onScroll:Cr,onMouseEnter:Er},Ee.createElement(Ae,{prefixCls:oe,height:vn,offsetX:kn,offsetY:Tt,scrollWidth:Zt,onInnerResize:Ut,ref:Et,innerProps:Yt,rtl:dn,extra:Dr},_r))),bn&&vn>ne&&Ee.createElement(yt,{ref:Qn,prefixCls:oe,scrollOffset:gn,scrollRange:vn,rtl:dn,onScroll:vr,onStartMove:hn,onStopMove:Xe,spinSize:Fn,containerSize:Dn.height,style:ze==null?void 0:ze.verticalScrollBar,thumbStyle:ze==null?void 0:ze.verticalScrollBarThumb,showScrollBar:Nt}),bn&&Zt>Dn.width&&Ee.createElement(yt,{ref:Jn,prefixCls:oe,scrollOffset:kn,scrollRange:Zt,rtl:dn,onScroll:vr,onStartMove:hn,onStopMove:Xe,spinSize:Zn,containerSize:Dn.width,horizontal:!0,style:ze==null?void 0:ze.horizontalScrollBar,thumbStyle:ze==null?void 0:ze.horizontalScrollBarThumb,showScrollBar:Nt}))}var Fe=Ee.forwardRef(Mt);Fe.displayName="List";var At=Fe,ut=At},4977:function(nn){"use strict";nn.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(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});const E=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,lt=(Pe,he)=>(!he||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",ye=(Pe,he)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const Je=getComputedStyle(Pe,null);return lt(Je.overflowY,he)||lt(Je.overflowX,he)||(Ee=>{const Ct=(qe=>{if(!qe.ownerDocument||!qe.ownerDocument.defaultView)return null;try{return qe.ownerDocument.defaultView.frameElement}catch(Ae){return null}})(Ee);return!!Ct&&(Ct.clientHeight<Ee.scrollHeight||Ct.clientWidth<Ee.scrollWidth)})(Pe)}return!1},et=(Pe,he,Je,Ee,Ct,qe,Ae,Ue)=>qe<Pe&&Ae>he||qe>Pe&&Ae<he?0:qe<=Pe&&Ue<=Je||Ae>=he&&Ue>=Je?qe-Pe-Ee:Ae>he&&Ue<Je||qe<Pe&&Ue>Je?Ae-he+Ct:0,Se=Pe=>{const he=Pe.parentElement;return he==null?Pe.getRootNode().host||null:he},ke=(Pe,he)=>{var Je,Ee,Ct,qe;if(typeof document=="undefined")return[];const{scrollMode:Ae,block:Ue,inline:He,boundary:at,skipOverflowHiddenElements:xt}=he,kt=typeof at=="function"?at:yt=>yt!==at;if(!E(Pe))throw new TypeError("Invalid target");const ft=document.scrollingElement||document.documentElement,it=[];let tt=Pe;for(;E(tt)&&kt(tt);){if(tt=Se(tt),tt===ft){it.push(tt);break}tt!=null&&tt===document.body&&ye(tt)&&!ye(document.documentElement)||tt!=null&&ye(tt,xt)&&it.push(tt)}const Ke=(Ee=(Je=window.visualViewport)==null?void 0:Je.width)!=null?Ee:innerWidth,gt=(qe=(Ct=window.visualViewport)==null?void 0:Ct.height)!=null?qe:innerHeight,{scrollX:Ne,scrollY:Ve}=window,{height:ht,width:Ce,top:Re,right:_e,bottom:se,left:$e}=Pe.getBoundingClientRect(),{top:De,right:we,bottom:ct,left:me}=(yt=>{const ve=window.getComputedStyle(yt);return{top:parseFloat(ve.scrollMarginTop)||0,right:parseFloat(ve.scrollMarginRight)||0,bottom:parseFloat(ve.scrollMarginBottom)||0,left:parseFloat(ve.scrollMarginLeft)||0}})(Pe);let ce=Ue==="start"||Ue==="nearest"?Re-De:Ue==="end"?se+ct:Re+ht/2-De+ct,je=He==="center"?$e+Ce/2-me+we:He==="end"?_e+we:$e-me;const Pt=[];for(let yt=0;yt<it.length;yt++){const ve=it[yt],{height:Te,width:Le,top:wt,right:pt,bottom:Mt,left:Fe}=ve.getBoundingClientRect();if(Ae==="if-needed"&&Re>=0&&$e>=0&&se<=gt&&_e<=Ke&&(ve===ft&&!ye(ve)||Re>=wt&&se<=Mt&&$e>=Fe&&_e<=pt))return Pt;const At=getComputedStyle(ve),ut=parseInt(At.borderLeftWidth,10),ae=parseInt(At.borderTopWidth,10),te=parseInt(At.borderRightWidth,10),ee=parseInt(At.borderBottomWidth,10);let oe=0,ue=0;const ne="offsetWidth"in ve?ve.offsetWidth-ve.clientWidth-ut-te:0,pe="offsetHeight"in ve?ve.offsetHeight-ve.clientHeight-ae-ee:0,ge="offsetWidth"in ve?ve.offsetWidth===0?0:Le/ve.offsetWidth:0,We="offsetHeight"in ve?ve.offsetHeight===0?0:Te/ve.offsetHeight:0;if(ft===ve)oe=Ue==="start"?ce:Ue==="end"?ce-gt:Ue==="nearest"?et(Ve,Ve+gt,gt,ae,ee,Ve+ce,Ve+ce+ht,ht):ce-gt/2,ue=He==="start"?je:He==="center"?je-Ke/2:He==="end"?je-Ke:et(Ne,Ne+Ke,Ke,ut,te,Ne+je,Ne+je+Ce,Ce),oe=Math.max(0,oe+Ve),ue=Math.max(0,ue+Ne);else{oe=Ue==="start"?ce-wt-ae:Ue==="end"?ce-Mt+ee+pe:Ue==="nearest"?et(wt,Mt,Te,ae,ee+pe,ce,ce+ht,ht):ce-(wt+Te/2)+pe/2,ue=He==="start"?je-Fe-ut:He==="center"?je-(Fe+Le/2)+ne/2:He==="end"?je-pt+te+ne:et(Fe,pt,Le,ut,te+ne,je,je+Ce,Ce);const{scrollLeft:xe,scrollTop:Ge}=ve;oe=We===0?0:Math.max(0,Math.min(Ge+oe/We,ve.scrollHeight-Te/We+pe)),ue=ge===0?0:Math.max(0,Math.min(xe+ue/ge,ve.scrollWidth-Le/ge+ne)),ce+=Ge-oe,je+=xe-ue}Pt.push({el:ve,top:oe,left:ue})}return Pt},Ie=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Ze(Pe,he){if(!Pe.isConnected||!(Ct=>{let qe=Ct;for(;qe&&qe.parentNode;){if(qe.parentNode===document)return!0;qe=qe.parentNode instanceof ShadowRoot?qe.parentNode.host:qe.parentNode}return!1})(Pe))return;const Je=(Ct=>{const qe=window.getComputedStyle(Ct);return{top:parseFloat(qe.scrollMarginTop)||0,right:parseFloat(qe.scrollMarginRight)||0,bottom:parseFloat(qe.scrollMarginBottom)||0,left:parseFloat(qe.scrollMarginLeft)||0}})(Pe);if((Ct=>typeof Ct=="object"&&typeof Ct.behavior=="function")(he))return he.behavior(ke(Pe,he));const Ee=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:Ct,top:qe,left:Ae}of ke(Pe,Ie(he))){const Ue=qe-Je.top+Je.bottom,He=Ae-Je.left+Je.right;Ct.scroll({top:Ue,left:He,behavior:Ee})}}}}]);