|
|
(self.webpackChunk=self.webpackChunk||[]).push([[9695],{40001:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},73331:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},15277:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},33853:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},61485:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},47472:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},87395:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(60499),at=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),Oe=function(he,Je){return at.createElement(Se.Z,(0,E.Z)({},he,{ref:Je,icon:et}))},Ee=at.forwardRef(Oe),Ze=Ee},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,at=!1,ye=!1,et=null,Se=!1,Oe=null,Ee=null,Ze=0;Ze<arguments.length;Ze++){var Ie=arguments[Ze];if(Ie!==null)switch(typeof Ie){case"number":zt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?zt=Ie:et=Ie;break;case"object":typeof Ie.is3D!="undefined"?E=Ie:re=Ie;break;case"boolean":at=Ie,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&&(at=!0)),et!==null&&re.id===void 0&&(re.id=et);var he="",Je="",xe=!1,xt=null,qe=null,Ne=null,Ve=!1,We=null,ct=null,Ct=null,Dt=null,ft=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var rt=function(ve){return parseFloat(ve)>4?parseFloat(ve):5};nn.setHTML5Codebase=function(ve,Le){Ee=ve,_e(ve,Le)},nn.setJavaCodebase=nn.setJavaCodebaseVersion=nn.isCompiledInstalled=nn.setPreCompiledScriptPath=nn.setPreCompiledResourcePath=function(){},nn.setHTML5CodebaseVersion=function(ve,Le){var Re=parseFloat(ve);if(Re!==NaN&&Re<5){console.log("The GeoGebra HTML5 codebase version "+Re+" is deprecated. Using version latest instead.");return}Oe=ve,ce(ve,Le)},nn.getHTML5CodebaseVersion=function(){return qe},nn.getParameters=function(){return re},nn.setFontsCSSURL=function(ve){Dt=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 Le="auto",Re=re.id,wt,bt=!1,Bt=0;Bt<arguments.length;Bt++){var Te=arguments[Bt];typeof Te=="string"?(Te=Te.toLowerCase(),Te.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Le=Te:Re=arguments[Bt]):typeof Te=="boolean"?bt=Te:Te instanceof HTMLElement&&(wt=Te)}Ot();function Ot(){if(!Se){setTimeout(Ot,200);return}Le=ut(Le);var lt=wt||document.getElementById(Re);if(!lt){console.log("possibly bug on ajax loading? ");return}if(nn.removeExistingApplet(lt,!1),re.width===void 0&<.clientWidth&&(re.width=lt.clientWidth),re.height===void 0&<.clientHeight&&(re.height=lt.clientHeight),!(re.width&&re.height)&&Le==="html5"&&(delete re.width,delete re.height),xt=Le,Le==="screenshot")$e(lt,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())&&Ge()),ae?(xt="screenshot",ze(lt,re,bt,Le)):Fe(lt,re,bt)}}};function tt(){try{return window.self!==window.top}catch(ve){return!0}}function Ge(){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 vt=function(ve){var Le=function(Bt){var Te=JSON.parse(Bt),Ot=function(te){return te.type=="G"||te.type=="E"},lt=Te.elements?Te.elements.filter(Ot)[0]:Te;if(!lt||!lt.url){Re();return}re.fileName=lt.url,Ae(lt.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";nn.setPreviewImage(We||lt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ve()},Re=function(){re.onError&&re.onError(),Et("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",bt="/materials/"+re.material_id+"?scope=basic";je("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(bt),Le,Re)};function Ae(ve){var Le=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Re){ve[Re]=!!ve[Re]}),Le.forEach(function(Re){re[Re]===void 0&&ve[Re]!==void 0&&(re[Re]=ve[Re])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function je(ve,Le,Re){var wt=new XMLHttpRequest;wt.open("GET",ve),wt.onload=function(){Le(wt.responseText)},wt.onerror=Re,wt.send()}nn.isHTML5Installed=function(){return!0},nn.getLoadedAppletType=function(){return xt},nn.setPreviewImage=function(ve,Le,Re){We=ve,ct=Le,Ct=Re},nn.removeExistingApplet=function(ve,Le){var Re;typeof ve=="string"&&(ve=document.getElementById(ve)),xt=null;var wt=null;for(Re=0;Re<ve.childNodes.length;Re++){var bt=ve.childNodes[Re],Bt=bt.className;Bt==="applet_screenshot"?Le?(bt.style.display="block",xt="screenshot"):bt.style.display="none":Bt!=="applet_scaler prerender"&&(ve.removeChild(bt),wt=Bt&&Bt.indexOf("appletParameters")!=-1?bt.id:null,Re--)}var Te=re.id!==void 0?re.id:wt,Ot=window[Te];Ot&&typeof Ot.getBase64=="function"&&(Ot.remove(),window[Te]=null)},nn.refreshHitPoints=function(){if(rt(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,Le,Re){var wt=document.createElement("param");wt.setAttribute("name",Le),wt.setAttribute("value",Re),ve.appendChild(wt)},ke=function(ve){return ve&&ve!=="false"},Fe=function(ve,Le,Re){rt(qe)<=4.2&&(Re=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==qe||ggbHTML5LoadedCodebaseIsWebSimple&&!Ve)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bt=document.createElement("div");bt.classList.add("appletParameters","notranslate");var Bt=Le.width,Te=Le.height;if(Le.disableAutoScale=Le.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Le.disableAutoScale,Le.width!==void 0)if(rt(qe)<=4.4)ke(Le.showToolBar)&&(Le.height-=7),ke(Le.showAlgebraInput)&&(Le.height-=37),Le.width<605&&ke(Le.showToolBar)&&(Le.width=605,Bt=605);else{var Ot=100;(ke(Le.showToolBar)||ke(Le.showMenuBar))&&(Le.hasOwnProperty("customToolBar")&&(Le.customToolbar=Le.customToolBar),Ot=ke(Le.showMenuBar)?245:155),Bt<Ot&&(Le.width=Ot,Bt=Ot)}bt.style.border="none",bt.style.display="inline-block";for(var lt in Le)Le.hasOwnProperty(lt)&<!=="appletOnLoad"&&bt.setAttribute("data-param-"+lt,Le[lt]);Dt&&bt.setAttribute("data-param-fontscssurl",Dt),nn.resize=function(){GGBAppletUtils.responsiveResize(ve,Le)},window.addEventListener("resize",function(St){nn.resize()});var ae=typeof Le.appletOnLoad=="function"?Le.appletOnLoad:function(){};if(!Re&&Le.width!==void 0){Le.hasOwnProperty("showSplash")||bt.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(Bt,Te,Le.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Bt+"px",te.style.height=Te+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),rt(qe)>=5?(Le.appletOnLoad=function(St){var gt=ve.querySelector(".ggb_preview");gt&>.parentNode.removeChild(gt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(St)},ee||te.appendChild(oe)):bt.appendChild(oe),te.appendChild(bt),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(bt),ve.appendChild(ue),Le.appletOnLoad=function(St){nn.resize(),ae(St)}}function ne(St,gt){gt&&typeof gt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(St,gt.appletOnLoad):renderGGBElement(St),Et("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",gt)}function pe(St,gt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:St,params:gt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wt){ne(Wt.article,Wt.params)}),html5AppletsToProcess=null)},rt(qe)<5&&(St.className+=" geogebraweb")):ne(St,gt)}if(wt){scriptLoadStarted=!0;for(var ge=0;ge<bt.childNodes.length;ge++){var Qe=bt.childNodes[ge].tagName;Qe==="TABLE"&&(bt.removeChild(bt.childNodes[ge]),ge--)}if(ggbHTML5LoadedScript!==null){var Ce=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ce!=null&&Ce.parentNode.removeChild(Ce)}var Ke=document.createElement("script"),ot=function(){pe(bt,Le)};Ke.src=Je+Ne,ggbHTML5LoadedCodebaseIsWebSimple=Ve,ggbHTML5LoadedCodebaseVersion=qe,ggbHTML5LoadedScript=Ke.src,Et("GeoGebra HTML5 codebase loaded: '"+Je+"'.",Le),!Ee&&(!Oe||Oe=="5.0")?(Ve?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ot()):Je.requirejs?__webpack_require__.e(4510).then(function(){var St=[__webpack_require__(4510)];ot.apply(null,St)}.bind(this)).catch(__webpack_require__.oe):(Ke.onload=ot,ve.appendChild(Ke))}else pe(bt,Le);Le.height=Te,Le.width=Bt},$e=function(ve,Le,Re){var wt=we(Le.width,Le.height,Le.borderColor,Re),bt=document.createElement("div");bt.style.position="relative",bt.style.display="block",bt.style.width=Le.width+"px",bt.style.height=Le.height+"px",bt.className="applet_screenshot applet_scaler"+(Re?" applet_screenshot_play":""),bt.appendChild(wt);var Bt=GGBAppletUtils.getScale(Le,ve,Re);Re?(ve.appendChild(De()),window.GGBT_wsf_view||(ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),ve.appendChild(bt),Bt!==1&&!isNaN(Bt)&&(GGBAppletUtils.scaleElement(bt,Bt),bt.style.width=Le.width+"px",bt.style.height=Le.height+"px",bt.parentNode.style.width=Le.width*Bt+"px",bt.parentNode.style.height=Le.height*Bt+"px"),nn.resize=function(){le(ve,wt,bt,Re)},window.addEventListener("resize",function(Te){nn.resize()}),nn.resize()};function le(ve,Le,Re,wt){if(ve.contains(Le)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ve.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}var bt=GGBAppletUtils.getScale(re,ve,wt);Re.parentNode!==null&&(!isNaN(bt)&&bt!==1?(GGBAppletUtils.scaleElement(Re,bt),Re.parentNode.style.width=re.width*bt+"px",Re.parentNode.style.height=re.height*bt+"px"):(GGBAppletUtils.scaleElement(Re,1),Re.parentNode.style.width=re.width+"px",Re.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,Le){Le.appendChild(ve)};var ze=function(ve,Le,Re,wt){$e(ve,Le,!0);for(var bt=function(){var Ot=[];for(Te=0;Te<ve.childNodes.length;Te++)Ot.push(ve.childNodes[Te]);if(window.GGBT_wsf_view){var lt=window.GGBT_wsf_view.renderFullScreen(ve,Le.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(ve).find(".fullscreencontent");te.length>0?(lt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):Fe(lt,Le,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else xt=wt,Fe(ve,Le,!1);if(!window.GGBT_wsf_view)for(Te=0;Te<Ot.length;Te++)ve.removeChild(Ot[Te])},Bt=ve.getElementsByClassName("ggb_preview_play"),Te=0;Te<Bt.length;Te++)Bt[Te].addEventListener("click",bt,!1),Bt[Te].addEventListener("ontouchstart",bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ve),Ge()&&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 Le='.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");}',Re=document.createElement("style");Re.styleSheet?Re.styleSheet.cssText=Le:Re.appendChild(document.createTextNode(Le)),document.getElementsByTagName("head")[0].appendChild(Re)}return ve},we=function(ve,Le,Re,wt){var bt=document.createElement("div");bt.className="ggb_preview",bt.style.position="absolute",bt.style.zIndex="90",bt.style.width=ve-2+"px",bt.style.height=Le-2+"px",bt.style.top="0px",bt.style.left="0px",bt.style.overflow="hidden",bt.style.backgroundColor="white";var Bt="lightgrey";Re!==void 0&&(Re==="none"?Bt="transparent":Bt=Re),bt.style.border="1px solid "+Bt;var Te=document.createElement("img");if(Te.style.position="relative",Te.style.zIndex="1000",Te.style.top="-1px",Te.style.left="-1px",We!==null&&Te.setAttribute("src",We),Te.style.opacity=.7,ct!==null){var Ot,lt,ae;if(!wt){Ot=document.createElement("img"),Ot.style.position="absolute",Ot.style.zIndex="1001",Ot.style.opacity=1,Te.style.opacity=.3,lt=360,lt>ve/4*3&&(lt=ve/4*3),ae=lt/5.8,Ot.setAttribute("src",ct),Ot.setAttribute("width",lt),Ot.setAttribute("height",ae);var te=(ve-lt)/2,ee=(Le-ae)/2;Ot.style.left=te+"px",Ot.style.top=ee+"px",bt.appendChild(Ot)}}return bt.appendChild(Te),bt},ut=function(ve){return ve=ve.toLowerCase(),ve==="html5"||ve==="screenshot"?ve:"html5"},me=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ve,Le){if(qe=ve,Le){_e(qe,!0);return}var Re=!at;if(Re){var wt=rt(qe);!isNaN(wt)&&wt<4.4&&(Re=!1)}var bt,Bt;window.location.protocol.substr(0,4)==="http"?bt=window.location.protocol:bt="http:";var Te=qe.indexOf("//");Te>0?Bt=qe:Te===0?Bt=bt+qe:Bt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ot in me)if(qe.slice(me[Ot].length*-1)===me[Ot]||qe.slice((me[Ot].length+1)*-1)===me[Ot]+"/"){_e(Bt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Re&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!ke(re.showToolBar)&&!ke(re.showMenuBar)&&!ke(re.showAlgebraInput)&&!ke(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Bt+="webSimple/":Bt+="web3d/",_e(Bt,!1)},_e=function(ve,Le){if(ve.requirejs){Je=ve;return}ve.slice(-1)!=="/"&&(ve+="/"),Je=ve,Le===null&&(Le=ve.indexOf("http")===-1),xe=Le,Ne="web.nocache.js",Ve=!1;var Re=Je.split("/");Re.length>1&&(!Le&&Re[Re.length-2]==="webSimple"?(Ne="webSimple.nocache.js",Ve=!0):me.indexOf(Re[Re.length-2])>=0&&(Ne=Re[Re.length-2]+".nocache.js")),Re=ve.split("/"),qe=Re[Re.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",Le))},Et=function(ve,Le){window.console&&window.console.log&&(!Le||typeof Le.showLogging=="undefined"||Le.showLogging&&Le.showLogging!=="false")&&console.log(ve)};re.material_id!==void 0?vt(pt):pt();function pt(){var ve=zt;Oe!==null?ve=Oe:parseFloat(ve)<5&&(ve="5.0"),ce(ve,!1),Ee!==null&&_e(Ee,xe),Se=!0}return nn},GGBAppletUtils=function(){"use strict";function nn(){return window.GGBT_wsf_edit!==void 0}function zt(Se,Oe){Oe!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Oe+","+Oe+")",Se.style.webkitTransform="scale("+Oe+","+Oe+")",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,Oe,Ee,Ze,Ie,he){var Je=null;if(he!=null&&he!="")for(var xe=Se.parentNode;xe!=null;)if((" "+xe.className+" ").indexOf(" "+he+" ")>-1){Je=xe;break}else xe=xe.parentNode;var xt=0,qe=0,Ne=0,Ve=0,We=0,ct=0,Ct=0;if(Je)xt=Je.offsetWidth,qe=Math.max(Ze?Je.offsetWidth:0,Je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(xt=Math.min(window.innerWidth,document.documentElement.clientWidth),qe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=xt):(xt=window.innerWidth,qe=window.innerHeight,Ne=window.innerWidth),Se){var Dt=Se.getBoundingClientRect();Dt.left>0&&Dt.left<=xt&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(We=xt-Dt.width-Dt.left,ct=Ne<=480?10:30):(ct=Dt.left,We=Ne<=480?10:30),Ve=ct+We)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ft=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve=40,Ct=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ve=0,Ct=40)}}return Se&&((Ee===void 0||!Ee)&&Oe>0&&Oe+Ve<xt?xt=Oe:xt-=Ve,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(qe-=Ct)),{width:xt,height:qe}}function E(Se,Oe,Ee,Ze,Ie){if(Se.isScreenshoGenerator)return 1;var he=Ze!==void 0&&Ze,Je=Se.noScaleMargin!=null&&Se.noScaleMargin,xe=function(ft){return ft&&ft!=="false"},xt=xe(Se.autoHeight),qe=re(Oe,Se.width,Ee,xt,he&&window.GGBT_wsf_view||Je,Ie),Ne=parseInt(qe.width),Ve=Se.width,We=Se.height;if(Ve===void 0){var ct=Oe.querySelector(".appletParameters");ct&&(Ve=ct.offsetWidth,We=ct.offsetHeight)}var Ct=Ne/Ve,Dt=he?1:qe.height/We;return Ee!==void 0&&!Ee&&(Ct=Math.min(1,Ct),Dt=Math.min(1,Dt)),Math.min(Ct,Dt)}function at(Se,Oe,Ee){var Ze=1,Ie,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)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ie=E(Se,Oe,he,Ee,Se.scaleContainerClass);else return Ze;return he&&(!Se.hasOwnProperty("scale")||Ze===1)?Ie:Math.min(Ze,Ie)}function ye(Se){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Se.getBoundingClientRect(),Ie=(Oe-Ze.width)/2,he=(Ee-Ze.height)/2;he<0&&(he=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Se.style.left="40px":Se.style.left=Ie+"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=Ie+"px")}function et(Se,Oe){var Ee=Se.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var Ze=at(Oe,Se);nn()&&Ee.setAttribute("data-param-scale",Ze);for(var Ie=null,he=0;he<Se.childNodes.length;he++)if(Se.childNodes[he].className!==void 0&&Se.childNodes[he].className.match(/^applet_scaler/)){Ie=Se.childNodes[he];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var Je=Oe.id!==void 0?Oe.id:"ggbApplet",xe=window[Je];(xe==null||!xe.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Ie.parentNode.style.width=Oe.width*Ze+"px",Ie.parentNode.style.height=Oe.height*Ze+"px",zt(Ie,Ze)):(zt(Ie,1),Ie.parentNode.style.width=Oe.width+"px",Ie.parentNode.style.height=Oe.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($(Ee).parents(".content-added-content"))}}return{responsiveResize:et,isFlexibleWorksheetEditor:nn,positionCenter:ye,getScale:at,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],at=O;at<E.length;at++){var ye=E[at];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 at(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ye=at();if(ye){E();return}function et(){if(!ye){if(!at())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 at=u(),ye=at.body,et=at.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 Oe=Se.lastIndexOf(rb);Oe==-1&&(Oe=Se.length);var Ee=Se.indexOf(sb);Ee==-1&&(Ee=Se.length);var Ze=Se.lastIndexOf(tb,Math.min(Ee,Oe));return Ze>=O?Se.substring(O,Ze+P):W}function zt(Se){if(!Se.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=Se+vb,Se=nn(Oe.src)}return Se}function re(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function E(){for(var Se=o.getElementsByTagName(_),Oe=O;Oe<Se.length;++Oe)if(Se[Oe].src.indexOf(xb)!=-1)return nn(Se[Oe].src);return W}function at(){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=at()),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 at(Se){var Oe=E[Se](),Ee=re[Se];if(Oe in Ee)return Oe;var Ze=[];for(var Ie in Ee)Ze[Ee[Ie]]=Ie;throw r&&r(Se,Ze,Oe),null}if(__gwt_isKnownPropertyValue=function(Se,Oe){return Oe in re[Se]},webModule.__getPropMap=function(){var Se={};for(var Oe in re)re.hasOwnProperty(Oe)&&(Se[Oe]=at(Oe));return Se},webModule.__computePropValue=at,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 Ee},SI:function(){return ye},f1:function(){return at}});var E=re(14185);function at(Ze){let Ie=!0;if(Ze.length>0){for(let he=0;he<Ze.length;he++)if(Ze[he].compile_success==0||!Ze[he].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function ye(Ze,Ie=""){let he=[];for(let Je=0;Je<Ze.length;Je++){let xe=Ze[Je],xt=Ie?`${Ie}/${xe.name}`:`${xe.name}`;he.push({title:xe.name,type:xe.type,isLeaf:xe.type!=="tree",key:xt})}return he}function et(Ze,Ie,he){for(let Je=0;Je<Ze.length;Je++){let xe=Ze[Je];if(xe.key===Ie){xe.children=he;break}xe.children&&et(xe.children,Ie,he)}return Ze}function Se(Ze,Ie,he){let Je;return function(){let xe=this,xt=arguments,qe=function(){Je=null,he||Ze.apply(xe,xt)},Ne=he&&!Je;clearTimeout(Je),Je=setTimeout(qe,Ie),Ne&&Ze.apply(xe,xt)}}const Oe=!0,Ee=E.Z.API_SERVER},40254:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Je}});var E=re(59301),at={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ye=re(92310),et=re.n(ye),Se=re(29787),Oe=re(2859),Ee=re(49317),Ze=re(76406),Ie=(xe,xt,qe)=>new Promise((Ne,Ve)=>{var We=Dt=>{try{Ct(qe.next(Dt))}catch(ft){Ve(ft)}},ct=Dt=>{try{Ct(qe.throw(Dt))}catch(ft){Ve(ft)}},Ct=Dt=>Dt.done?Ne(Dt.value):Promise.resolve(Dt.value).then(We,ct);Ct((qe=qe.apply(xe,xt)).next())}),Je=({data:xe,className:xt,fullWidth:qe,style:Ne={},onClose:Ve,onOk:We,showFullTools:ct,noAssociationId:Ct})=>{const Dt=(0,E.useRef)(null),ft=(0,E.useRef)(null),rt=(0,E.useRef)(null),tt=(0,E.useRef)(null),[Ge,vt]=(0,E.useState)(!1),[Ae,je]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(rt.current||(rt.current=document.createElement("style"),document.head.appendChild(rt.current)),xe!=null&&xe.visible?(document.body.setAttribute("data-custom","y-hidden"),rt.current.innerHTML=" html { overflow-y: hidden; }",xe!=null&&xe.src&&ht()):(document.body.removeAttribute("data-custom"),rt.current&&(document.head.removeChild(rt.current),rt.current=null)),()=>{document.body.removeAttribute("data-custom"),rt.current&&(document.head.removeChild(rt.current),rt.current=null)}),[xe==null?void 0:xe.visible]);const ht=()=>Ie(void 0,null,function*(){vt(!0),je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const le=yield(0,Ze.ZJ)(xe==null?void 0:xe.src);Dt.current.src="",Dt.current.src=le,Dt.current.onload=function(){$e()},vt(!1),je("")}),ke=le=>Ie(void 0,null,function*(){vt(!0),je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ze=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xe.title,file:le.dataUrl}});ze!=null&&ze.id&&!Ct?(yield(0,Ee.ZP)(`/api/attachments/${xe.id}/add_subitem.json`,{method:"post",body:{subitem_id:ze==null?void 0:ze.id,settings:JSON.stringify(le.state)}})).status===0&&We():ze!=null&&ze.id&&We(ze),vt(!1),je("")}),Fe=()=>{const le=document.querySelector('a[href="https://markerjs.com/"]');le&&le.parentNode&&(le.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 Oe.hP(Dt.current),ft.current.targetRoot=tt.current,ft.current.addEventListener("render",ke),ft.current.addEventListener("beforeclose",Ve),ct&&(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(),xe!=null&&xe.snapshotData&&ft.current.restoreState(xe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Fe()},300)};return E.createElement(E.Fragment,null,(xe==null?void 0:xe.visible)&&E.createElement(Se.Z,{spinning:Ge,tip:Ae,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:tt,className:et()(at.imageDimensions,xt,qe?at.fullWidth:""),style:Ne},E.createElement("img",{className:at.img,ref:Dt}))))}},9057:function(nn,zt,re){"use strict";var E=re(59301),at=re(77019),ye=re(5269),et=re(31691),Se=re(7939),Oe=re(35883),Ee=re(74501),Ze=re(48136),Ie=re(59301);const he=(0,E.forwardRef)(({callback:Je,showSaveButton:xe,value:xt=""},qe)=>{const Ne=(0,E.useRef)(),Ve=[{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 "}]}]}],We=[{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}`}]}]}],ct=ft=>{Ne.current.setValue(Ne.current.getValue()+" "+ft.value+" ")},Ct=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(at.Z,{className:Ee.Z.lists,gutter:[10,10]},Ve.map((ft,rt)=>Ie.createElement(ye.Z,{flex:"110px",className:Ee.Z.item},Ie.createElement("div",null,Ie.createElement(Oe.Z,{value:`$$${ft.value}$$`}),ft.name),Ie.createElement("div",{className:Ee.Z.children},ft.children.map((tt,Ge)=>Ie.createElement("div",{key:Ge},Ie.createElement("h1",null,tt.name),Ie.createElement(at.Z,{gutter:[10,10]},tt.data.map((vt,Ae)=>Ie.createElement(ye.Z,{key:Ae,onClick:()=>ct(vt),className:Ee.Z.diamond},Ie.createElement(Oe.Z,{value:"`$$"+vt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(at.Z,{className:Ee.Z.lists,gutter:[10,10]},We.map((ft,rt)=>Ie.createElement(ye.Z,{flex:"110px",className:Ee.Z.item},Ie.createElement("div",null,Ie.createElement(Oe.Z,{value:"`$$"+ft.value+"$$`"}),ft.name),Ie.createElement("div",{className:Ee.Z.children},ft.children.map((tt,Ge)=>Ie.createElement("div",{key:Ge},tt.name&&Ie.createElement("h1",null,tt.name),Ie.createElement(at.Z,{gutter:[10,10]},tt.data.map((vt,Ae)=>Ie.createElement(ye.Z,{key:Ae,onClick:()=>ct(vt),className:Ee.Z.diamond},Ie.createElement(Oe.Z,{value:"`$$"+vt.value+"$$`"}))))))))))}],Dt=()=>{var ft=document.createElement("div");ft.innerHTML=Ne.current.getValue();var rt=ft.innerText;return Je&&Je(rt),rt};return(0,E.useImperativeHandle)(qe,()=>({getData:Dt})),Ie.createElement("div",{className:Ee.Z.mathWrap},Ie.createElement(et.default,{defaultActiveKey:"1",items:Ct}),Ie.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ne,style:{width:800,marginTop:30,fontSize:18}},xt||""),xe&&Ie.createElement("div",{className:Ee.Z.button},Ie.createElement(Se.ZP,{size:"large",onClick:Dt,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),at=re(4977),ye=re(7939),et=Object.defineProperty,Se=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,he=(qe,Ne,Ve)=>Ne in qe?et(qe,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):qe[Ne]=Ve,Je=(qe,Ne)=>{for(var Ve in Ne||(Ne={}))Ze.call(Ne,Ve)&&he(qe,Ve,Ne[Ve]);if(Ee)for(var Ve of Ee(Ne))Ie.call(Ne,Ve)&&he(qe,Ve,Ne[Ve]);return qe},xe=(qe,Ne)=>Se(qe,Oe(Ne));const xt=({img:qe,buttonProps:Ne={},styles:Ve={},customText:We,ButtonText:ct,ButtonClick:Ct,Buttonclass:Dt,ButtonTwo:ft,imgStyles:rt,loading:tt=!1,className:Ge=""})=>E.createElement("section",{className:`tc animated fadeIn ${Ge}`,style:Je({color:"#999",margin:"100px auto",visibility:tt?"hidden":"visible"},Ve)},E.createElement("img",{src:qe||at,style:xe(Je({},rt),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},We||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ct&&E.createElement(ye.ZP,Je({className:Dt,onClick:Ct},Ne),ct),ft&&ft);zt.Z=xt},86974:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Dt}});var E=re(59301),at={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),Oe=re(25399),Ee=re(76406),Ze=re(84849),Ie=re(90736),he=re(14185),Je=re(52078),xe=re(59301),xt=Object.defineProperty,qe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,We=(ft,rt,tt)=>rt in ft?xt(ft,rt,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[rt]=tt,ct=(ft,rt)=>{for(var tt in rt||(rt={}))Ne.call(rt,tt)&&We(ft,tt,rt[tt]);if(qe)for(var tt of qe(rt))Ve.call(rt,tt)&&We(ft,tt,rt[tt]);return ft},Ct=(ft,rt,tt)=>new Promise((Ge,vt)=>{var Ae=ke=>{try{ht(tt.next(ke))}catch(Fe){vt(Fe)}},je=ke=>{try{ht(tt.throw(ke))}catch(Fe){vt(Fe)}},ht=ke=>ke.done?Ge(ke.value):Promise.resolve(ke.value).then(Ae,je);ht((tt=tt.apply(ft,rt)).next())}),Dt=({editOffice:ft="view",data:rt,issaver:tt,onSaver:Ge,theme:vt,type:Ae,filename:je,monacoEditor:ht,className:ke,style:Fe,close:$e,onClose:le,hasMask:ze,disabledDownload:De,onImgDimensions:we,showNodata:ut,recordInfo:me})=>{const[ce,_e]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Et,pt]=(0,E.useState)(""),[ve,Le]=(0,E.useState)(),Re=window.ENV==="build"?"/react/build":"",wt=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Bt=10*(1024*1024),Te=(0,E.useRef)();rt!=null&&rt.startsWith("/api")&&Ae!=="txt"&&(rt=he.Z.API_SERVER+rt);const Ot=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();je&&ht&&(ht.filename=je),(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 Qe=ge.split("=");Qe[0]==="_educoder_session"&&pt(Qe[1])})},[]),(0,E.useEffect)(()=>{Ae==="office"&&(rt.indexOf("bigfilescdn.")>-1||rt.indexOf("bigfiles1")>-1?Le({url:rt,fileType:Ot(rt),model:rt.indexOf("model=edit")?"edit":"view"}):rt.indexOf("coze")>-1?Le({url:rt,fileType:"doc",model:"view"}):ae())},[Ae,rt]);function lt(ue){return Ct(this,null,function*(){ue.data.type==="pdfdata"&&(Ge(ue.data.data),window.removeEventListener("message",lt,!1)),console.log("mess---:",ue.data)})}const ae=()=>Ct(void 0,null,function*(){console.log("data:",rt);let ue=rt;rt.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,Le(pe)}),te=()=>{if(rt.startsWith("http")||rt.startsWith("blob:")){ee();return}(0,Ee.Sv)(je||"educoder",rt,je)},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,Ee.Nd)(je||"educoder",decodeURIComponent(rt))};(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"&&le()};return xe.createElement("div",{style:ct({},Fe||{}),className:`${ze&&at.bgBlack} ${Ae?at.wrp:"hide"}`},!!Ae&&$e&&xe.createElement("div",{id:"closePop",className:at.close,ref:Te},!!we&&xe.createElement(Oe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Te.current},xe.createElement("span",{onClick:()=>{le(),we()}},xe.createElement("i",{className:"icon-yulanpizhu"}))),!De&&window.parent===window&&xe.createElement(Oe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Te.current},xe.createElement("span",{onClick:ee},xe.createElement("i",{className:"icon-quxiaozhiding"}))),tt&&xe.createElement(Oe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Te.current},xe.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",lt,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},xe.createElement("i",{className:"icon-baocun"}))),xe.createElement(Oe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Te.current},xe.createElement("span",{className:"",onClick:()=>{le()}},xe.createElement("i",{className:"icon-guanbi1"})))),xe.createElement("div",{className:`${at[ke]} ${ke} ${at.monaco} ${Ae==="txt"?"show":"hide"}`},Ae==="txt"&&xe.createElement(xe.Fragment,null,xe.createElement(Se.ZP,ct({},ht)))),Ae==="audio"&&xe.createElement("audio",{controls:!0,src:`${(rt==null?void 0:rt.indexOf("http://"))>-1||(rt==null?void 0:rt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${rt}`,autoPlay:!0}),Ae==="video"&&xe.createElement(xe.Fragment,null,(rt==null?void 0:rt.indexOf("http"))>-1?xe.createElement("video",{controls:!0,src:`${rt}`,autoPlay:!0}):xe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${rt}`,autoPlay:!0})),Ae==="office"&&ve&&xe.createElement("iframe",{src:`${Re}/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}`}),Ae==="html"&&xe.createElement("iframe",{src:rt+"&disposition=inline"}),Ae==="pdf"&&xe.createElement("iframe",{id:"pdfiframe",src:`${Re}/js/pdf/index.html?filename=${je||"educoder.pdf"}&url=${encodeURIComponent(rt)}&disabledDownload=${!!De}&model=${ft}`}),Ae==="image"&&xe.createElement("img",{src:`${(rt==null?void 0:rt.indexOf("http://"))>-1||(rt==null?void 0:rt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${rt}`}),(Ae==="other"||Ae==="download")&&xe.createElement(xe.Fragment,null,ut?xe.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xe.createElement(ye.ZP,{icon:xe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:De},"\u4E0B\u8F7D")}):xe.createElement(ye.ZP,{type:"primary",size:"middle",onClick:te,disabled:De},xe.createElement(et.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ae==="flowChart"&&xe.createElement("div",{className:"embed"},xe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${rt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(nn,zt,re){"use strict";re.d(zt,{z:function(){return ht},Z:function(){return ke}});var E=re(59301),at=re(46214),ye=re(20047),et=re(64018),Se=re(16471),Oe=re(14185),Ee=re(76406),Ze=re(15342),Ie=re(44104),he=re(7939),Je=re(1012),xe=re(86974),xt=re(59301),Ne=({html:Fe})=>{const $e=(0,E.useRef)(null),le=(0,E.useRef)(null),ze=`.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"});le.current=document.createElement("div"),le.current.className="markdown-body",le.current.innerHTML=Fe,De.appendChild(le.current);const we=document.createElement("style");return we.textContent=ze,De.appendChild(we),()=>{De.innerHTML=""}},[]),(0,E.useEffect)(()=>{le.current&&(le.current.innerHTML=Fe)},[Fe]),xt.createElement("div",{ref:$e})};function Ve(Fe){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"],le=new RegExp(`\\b(${$e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),ze=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Fe.replace(le,"").replace(ze,"").trim()}var We={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ct=Object.defineProperty,Ct=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,rt=(Fe,$e,le)=>$e in Fe?ct(Fe,$e,{enumerable:!0,configurable:!0,writable:!0,value:le}):Fe[$e]=le,tt=(Fe,$e)=>{for(var le in $e||($e={}))Dt.call($e,le)&&rt(Fe,le,$e[le]);if(Ct)for(var le of Ct($e))ft.call($e,le)&&rt(Fe,le,$e[le]);return Fe};const Ge="@\u2581\u2581@",vt="@\u2581@",Ae=/<pre[^>]*>/g;function je(Fe){let $e=document.createElement("div");return $e.innerHTML=Fe,$e.childNodes.length===0?"":$e.childNodes[0].nodeValue}const ht=(Fe,$e)=>{Fe=Fe||"";const le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\"(?: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?Fe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(le,(ut,me,ce,_e,Et,pt,ve)=>{const Le=me||_e||pt,Re=ce||Et||ve||"?";return Oe.Z.API_SERVER+"/api/attachments/"+Le+Re+"&t="+(0,Ee.Jn)(Le,Date.now())+(ut.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Fe=Fe.replace(we,(ut,me,ce,_e,Et,pt,ve)=>{const Le=me||_e||pt,Re=ce||Et||ve||"?";return Oe.Z.API_SERVER+"/attachments/download/"+Le+Re+"&t="+(0,Ee.Jn)(Le,Date.now())+(ut.indexOf(")")>-1?")":"&")}).replace(le,(ut,me,ce,_e,Et,pt,ve)=>{const Le=me||_e||pt,Re=ce||Et||ve||"?";return Oe.Z.API_SERVER+"/api/attachments/"+Le+Re+"&t="+(0,Ee.Jn)(Le,Date.now())+(ut.indexOf(")")>-1?")":"&")}).replace(ze,(ut,me,ce,_e,Et)=>{const pt=me||_e,ve=ce||Et||"";return'"'+Oe.Z.API_SERVER+"/api/attachments/"+pt+ve+pt+ve+"&t="+(0,Ee.Jn)(pt,Date.now())}).replace(De,(ut,me,ce,_e,Et)=>{const pt=me||_e,ve=ce||Et||"";return"("+Oe.Z.API_SERVER+"/files/uploads/"+pt+ve+pt+ve+"&t="+(0,Ee.Jn)(pt,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,`
|
|
|
`),Fe)};var ke=({value:Fe="",edit:$e=!1,className:le,showTextOnly:ze,showLines:De,style:we={},stylesPrev:ut={},highlightKeywords:me,showProgramFill:ce,isProgramFill:_e,disabledFill:Et=!1,programFillValue:pt,openEditor:ve=()=>{},onFillChange:Le=bt=>{},onFillBlur:Re=()=>{},onFillFocus:wt=()=>{}})=>{let bt=Ve(String(Fe||""));const Bt=(0,E.useRef)(),Te=(0,E.useRef)(),[Ot,lt]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),ue=(0,E.useRef)("a"+(0,Je.Z)()),ne={},pe=kt=>/<style[\s\S]*?>/i.test(kt||""),ge=(kt,Yt,Vt)=>{const He=document.createElement(kt===vt?"input":"textarea");He.style.width="100%",He.style.height=kt===vt?"40px":"151px",He.rows=5,He.spellcheck=!1,He.name="edu-program-fill",He.placeholder="\u8BF7\u8F93\u5165",He.dataset.id=Yt;const dt=Object.keys(ne).length;return ne[dt]=He,`<span class="edu-program-fill-wrap ${kt===vt?"":"show"}" style="width:${kt===vt?"600px":"100%"}" title=${Vt||""}><span>${He.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Qe(kt){return kt=kt.replace(/!\[.*?\]\(.*?\)/g,""),kt=kt.replace(/\[.*?\]\(.*?\)/g,""),kt=kt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),kt=kt.replace(/<embed.*?>/g,""),kt=kt.replace(/<img.*?>/g,""),kt=kt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),kt=kt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),kt=kt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),kt=kt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),kt}const Ce=kt=>!ze&&pe(bt)?kt:kt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Yt,Vt){let He=Vt.replace(/(\n|\r)/g,"").split("}"),dt=[];return He.map(Nt=>{Nt!=""&&dt.push(`.${ue.current} ${Nt}`)}),`<style>${dt.join("}")}</style>`}),Ke=(0,E.useMemo)(()=>{(0,ye.Iy)();try{const He=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,dt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Nt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ht=/\(\/attachments\/download\//g;bt=bt.replace(Ht,"("+Oe.Z.API_SERVER+"/attachments/download/").replace(He,"("+Oe.Z.API_SERVER+"/api/attachments/").replace(dt,'"'+Oe.Z.API_SERVER+"/api/attachments/").replace(Nt,'"'+Oe.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,`
|
|
|
`),Bt.current.style.display="none"}catch(He){}if(ce){let He=-1;return bt=bt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(dt,Nt,Ht){var Be;return++He,ge(dt,He,(Be=pt==null?void 0:pt[He])==null?void 0:Be.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ce(bt||"")}</pre>`}let kt=Ce(bt);kt=(0,ye.ZP)(kt);const Yt=(0,ye.ez)();bt.match(/\[TOC\]/)&&(kt=kt.replace("<p>[TOC]</p>",(0,ye.Qv)()),(0,ye.Iy)()),kt=kt.replace(/(__special_katext_id_\d+__)/g,(He,dt)=>{const{type:Nt,expression:Ht}=Yt[dt];return(0,Ze.renderToString)(je(Ht)||"",{displayMode:Nt==="block",throwOnError:!1,output:"html"})}),kt=kt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ye.AL)();const Vt=document.createElement("div");if(Vt.innerHTML=kt,ze)return Vt.innerText;if(me){const He=me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Wt(Vt,He),Vt.innerHTML}return setTimeout(()=>tn(),500),Vt.innerHTML},[bt,me]);(0,E.useEffect)(()=>{Zt.current&&Zt.current.querySelectorAll(["input","textarea"]).forEach(Yt=>{Yt.oninput=ot,Yt.onblur=St,Yt.onfocus=gt})},[ee]),(0,E.useEffect)(()=>{var kt,Yt,Vt,He,dt;if(pt!=null&&pt.length)try{const Nt=Zt.current.querySelectorAll(".edu-program-fill-score"),Ht=Zt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Be,nt]of Ht.entries())nt.value=((kt=pt==null?void 0:pt[Be])==null?void 0:kt.value)||"",((Yt=pt==null?void 0:pt[Be])==null?void 0:Yt.type)==="warning"?nt.className="program-fill-warning":((Vt=pt==null?void 0:pt[Be])==null?void 0:Vt.type)==="success"?nt.className="program-fill-success":nt.className="";for(const[Be,nt]of Nt.entries())nt.innerHTML=(He=pt==null?void 0:pt[Be])!=null&&He.score?`${(dt=pt==null?void 0:pt[Be])==null?void 0:dt.score}\u5206`:"";oe(pt)}catch(Nt){console.log(Nt,"error")}},[pt]);const ot=kt=>{ee[kt.target.dataset.id]=ee[kt.target.dataset.id]||{},ee[kt.target.dataset.id].value=kt.target.value,oe([...ee]),Le(ee,kt.target.dataset.id)},St=kt=>{ee[kt.target.dataset.id]=ee[kt.target.dataset.id]||{},ee[kt.target.dataset.id].value=kt.target.value,oe([...ee]),Re(ee,kt.target.dataset.id)},gt=kt=>{ee[kt.target.dataset.id]=ee[kt.target.dataset.id]||{},ee[kt.target.dataset.id].value=kt.target.value,oe([...ee]),wt(ee,kt.target.dataset.id)};function Wt(kt,Yt){return kt.childNodes.forEach(Vt=>{var He;if(Vt.childNodes.length>0)Wt(Vt,Yt);else if(Vt.nodeName!=="IMG")if(Vt.innerHTML)Vt.innerHTML=(He=Vt.innerHTML)==null?void 0:He.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(kt){let Yt=kt.target;if(Yt.tagName.toUpperCase()==="A"){let Vt=Yt.getAttribute("href");if(Vt.indexOf("office")>-1)kt.preventDefault(),lt(Vt),te("office");else if(Vt.indexOf("application/pdf")>-1)kt.preventDefault(),lt(Vt),te("pdf");else if(Vt.indexOf("text/html")>-1)kt.preventDefault(),lt(Vt),te("html");else if(Vt.startsWith("#")){kt.preventDefault();let He=document.getElementById(Vt.replace("#",""));He&&He.scrollIntoView(!0)}}}const tn=()=>{var kt;const Yt=(kt=Zt.current)==null?void 0:kt.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 He=new Se.ZP;He.loadSource(Vt.src),He.attachMedia(Vt)}}})};(0,E.useEffect)(()=>{if(Zt.current&&Ke&&Ke.match(Ae)&&window.PR.prettyPrint(),Zt.current)return Zt.current.addEventListener("click",$t),()=>{var kt;(kt=Zt.current)==null||kt.removeEventListener("click",$t),(0,ye.AL)(),(0,ye.Iy)()}},[Ke,Zt.current,$t]);const Xt=kt=>{kt.target.nodeName==="IMG"&&kt.target.className.indexOf("draw-flowchart")>-1?(Bt.current.style.zIndex=1,Bt.current.style.display="flex",Bt.current.style.width=kt.target.clientWidth+"px",Bt.current.style.height=kt.target.clientHeight+"px",Bt.current.style.top=kt.target.offsetTop+"px",Bt.current.style.left=kt.target.offsetLeft+"px",kt.target.id&&(Te.current=kt.target.id)):Bt.current.style.display="none"},rn=()=>{Bt.current.style.display="none"};return(0,E.useEffect)(()=>{var kt;const Yt=Vt=>{Vt.preventDefault(),Vt.clipboardData.setData("text",window.getSelection().toString())};return(kt=Zt.current)==null||kt.addEventListener("copy",Yt),()=>{var Vt;(Vt=Zt.current)==null||Vt.removeEventListener("copy",Yt)}},[Zt.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:rn},ze&&E.createElement("div",{ref:Zt,className:`${We.mdBody} `},Ke),!ze&&!pe(Ke)&&E.createElement("div",{ref:Zt,style:tt({},we),onMouseOver:Xt,className:`${le||""} ${Et?"disabled-fill":""} markdown-body ${We.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!ze&&pe(Ke)&&E.createElement(Ne,{html:Ke}),E.createElement("div",{ref:Bt,className:`${We.button} ${$e?"":We.previewFlowChart}`},E.createElement(Ie.Z,null,E.createElement(he.ZP,{onClick:()=>{$e?ve(Te.current):(lt(Te.current),te("flowChart"))}},$e?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(xe.Z,{close:!0,data:Ot,type:Ot!=null&&Ot.length?ae:"",style:tt({},ut),onClose:()=>lt("")}))}},28267:function(nn,zt,re){"use strict";re.d(zt,{h:function(){return ft}});var E=re(59301),at=re(82326),ye=re(28284),et=re(7939),Se=re(89780),Oe=re.n(Se),Ee=re(88319),Ze=re(94896),Ie=Object.defineProperty,he=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ne=(rt,tt,Ge)=>tt in rt?Ie(rt,tt,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):rt[tt]=Ge,Ve=(rt,tt)=>{for(var Ge in tt||(tt={}))xt.call(tt,Ge)&&Ne(rt,Ge,tt[Ge]);if(xe)for(var Ge of xe(tt))qe.call(tt,Ge)&&Ne(rt,Ge,tt[Ge]);return rt},We=(rt,tt)=>he(rt,Je(tt));const ct=at.default.Option,Ct={labelCol:{span:4},wrapperCol:{span:20}},Dt={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:rt,onCancel:tt})=>{const[Ge,vt]=(0,E.useState)("python");function Ae(ht){vt(Dt[ht][1])}function je(ht){rt(ht)}return E.createElement(ye.default,We(Ve({},Ct),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:je,style:{width:500}}),E.createElement(ye.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(at.default,{getPopupContainer:ht=>ht.parentNode,onChange:Ae},Object.keys(Dt).map(ht=>E.createElement(ct,{key:ht,value:ht},Dt[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:Ge})),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:rt,onChange:tt,mode:Ge,options:vt={}}){const Ae=(0,E.useRef)(),[je,ht]=(0,E.useState)();return(0,E.useEffect)(()=>{if(je){let ke=function(Fe){const $e=Fe.getValue();tt&&tt($e)};return je.on("change",ke),()=>{je.off("change",ke)}}},[je,tt]),(0,E.useEffect)(()=>{je&&je.setOption("mode",Ge)},[je,Ge]),(0,E.useEffect)(()=>{je&&(rt!==je.getValue()||rt==="")&&setTimeout(()=>{je.setValue(rt||"")},300)},[je,rt]),(0,E.useEffect)(()=>{if(Ae.current&&!je){const ke=Oe().fromTextArea(Ae.current,Ve({mode:Ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},vt));ht(ke)}},[Ae.current,je]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:Ae}))}},39116:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Rt}});var E=re(59301),at=re(44283),ye=re(89780),et=re.n(ye),Se=re(76374),Oe=re(88319),Ee=re(6313),Ze=re(25717),Ie=re(99498),he=re(25419),Je=re(67549),xe=re(35883),xt=({value:It="",className:en,showTextOnly:Jt,showLines:qt,style:gn={}})=>{const wn=(0,E.useMemo)(()=>"",[It]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:wn}}))},qe=Object.defineProperty,Ne=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Dt=(It,en,Jt)=>en in It?qe(It,en,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):It[en]=Jt,ft=(It,en)=>{for(var Jt in en||(en={}))ct.call(en,Jt)&&Dt(It,Jt,en[Jt]);if(We)for(var Jt of We(en))Ct.call(en,Jt)&&Dt(It,Jt,en[Jt]);return It},rt=(It,en)=>Ne(It,Ve(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 Ge({onActionCallback:It,title:en,icon:Jt,actionName:qt,className:gn="",children:wn}){function Sn(){It(qt)}return E.createElement("a",{title:en,className:gn,onClick:Sn},E.createElement("i",{className:`${Jt}`}),wn)}var vt=({watch:It,showNullButton:en,showNullProgramButton:Jt,onActionCallback:qt,fullScreen:gn,insertTemp:wn,hidetoolBar:Sn,extraUse:Mn})=>{const kn=[...tt,{title:`${It?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${It?"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(Ge,rt(ft({},Wn),{onActionCallback:qt})):E.createElement("span",{className:"v-line"}))),en?E.createElement("li",null,E.createElement(Ge,{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(Ge,{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(Ge,{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(Ge,{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(Ge,{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})))},Ae=re(88487),je=re(28284),ht=re(37568),ke=re(7939),Fe=Object.defineProperty,$e=Object.defineProperties,le=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ut=(It,en,Jt)=>en in It?Fe(It,en,{enumerable:!0,configurable:!0,writable:!0,value:Jt}):It[en]=Jt,me=(It,en)=>{for(var Jt in en||(en={}))De.call(en,Jt)&&ut(It,Jt,en[Jt]);if(ze)for(var Jt of ze(en))we.call(en,Jt)&&ut(It,Jt,en[Jt]);return It},ce=(It,en)=>$e(It,le(en));const _e={labelCol:{span:4},wrapperCol:{span:20}};var Et=({callback:It,onCancel:en})=>{function Jt(qt){It(qt)}return E.createElement(je.default,ce(me({},_e),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Jt,style:{width:500}}),E.createElement(je.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(je.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(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(ke.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},pt=re(28267),ve=re(53332),Le=re(62957),Re=re(77019),wt=re(40254),bt=re(59301),Bt=({callback:It,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 bt.createElement(Le.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bt.createElement(Re.Z,{style:{height:"100vh"}},bt.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gn,visible:!0,title:String(Date.now())},onOk:wn=>{It({src:wn.url})},onClose:en})))},Te=re(36207),Ot=re(5269),lt=re(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=re(59301),oe=(0,E.forwardRef)(({onCancel:It,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),[Tt,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(Te.Z,{width:"100vw",height:Tt,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(Re.Z,{align:"middle"},te.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Ot.Z,{onClick:()=>{Kt(Tt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Ot.Z,{onClick:()=>{window.saveDrawData(xn=>{if(xn===null){lt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}lt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Jt({src:`/api/attachments/${xn}`,id:xn,disabledClose:!0})})}},te.createElement(ke.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,Qe={margin:"0 8px"};var Ce=({callback:It,onCancel:en})=>{function Jt(qt){It(qt)}return E.createElement(je.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:Qe},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:Qe},"\u884C\u6570"),E.createElement(je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(pe.Z,null)),E.createElement("span",{style:Qe},"\u5217\u6570"),E.createElement(je.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:Qe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(je.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(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(ke.ZP,{type:"ghost",onClick:en},"\u53D6\u6D88")))},Ke=re(58755),ot=re(84915),St=re.n(ot),Wt=(0,E.forwardRef)(({use3d:It,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 Tt=()=>{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(It)},[It]),(0,E.useImperativeHandle)(wn,()=>({getImgData:Tt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),E.createElement(Re.Z,{align:"middle"},E.createElement(Ot.Z,{flex:1},E.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:kn,onChange:Kt=>Wn(Kt)})),E.createElement(Ot.Z,null,E.createElement(ke.ZP,{size:"large",onClick:Tt,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",kt="add-flowchart",Yt="code-block",Vt="add-table",He="------------",dt={default:He,left:`:${He}`,center:`:${He}:`,right:`${He}:`};var Nt=re(79006),Ht=re(76406);function Be(){}let nt=0;const yt=1e4,Mt="\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(It){return/^\d+$/.test(It)?`${It}px`:It}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Gt={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},At={[$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:It="",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:Tt=!1,showNullButton:Kt=!1,showNullProgramButton:xn=!1,hidetoolBar:hn=!1,fullScreen:Ue=!1,onBlur:st,onCMBeforeChange:Pe,onFullScreen:Xe,className:Me="",disablePaste:Ye=!1,disabled:Pt=!1,disabledFill:an=!1,placeholder:un="",values:vn="",extraUse:Qt,onAddBlank:Ft})=>{const[Lt,fn]=(0,E.useState)(null),[Tn,Dn]=(0,E.useState)(It),[Bn,Xn]=(0,E.useState)(Sn),[Qn,Jn]=(0,E.useState)(Ue),[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,at.useDispatch)();(0,E.useEffect)(()=>{const mn=window.scrollY||window.pageYOffset;Dn(vn),Lt==null||Lt.setValue(vn),window.scrollTo(0,mn)},[vn]),(0,E.useEffect)(()=>{Xe==null||Xe(Qn)},[Qn]),(0,E.useEffect)(()=>{if(cr.current){let mn=function(Nn,Rn){var rr;if(Ye){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){lt.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:It,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),Pt&&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(),Lt.setSize("100%","100%"),Lt.refresh())});return yn.observe(cr.current.parentElement),yn}if(Lt){const yn=mn();return()=>{var Nn,Rn;(Nn=cr.current)!=null&&Nn.parentElement&&yn.unobserve((Rn=cr.current)==null?void 0:Rn.parentElement)}}},[Lt,Rr]),(0,E.useEffect)(()=>{if(Lt){let mn=[];for(const[yn,Nn]of Object.entries(Gt)){let Rn={[yn]:()=>{Er(Nn)}};mn.push(Rn),Lt.addKeyMap(Rn)}return()=>{for(let yn of mn)Lt.removeKeyMap(yn)}}},[Lt]),(0,E.useEffect)(()=>{Ue!==Qn&&Jn(Ue)},[Ue]),(0,Nt.Z)(()=>{if(!Tt&&Hn>0){let mn=new Date().getTime(),yn=window.sessionStorage.getItem(Wn);mn>=Hn+yt&&(!yn||yn!==Tn)&&(window.sessionStorage.setItem(Wn,Tn),ir(!0))}},yt),(0,E.useEffect)(()=>{Xn(Sn)},[Lt,Sn]),(0,E.useEffect)(()=>{Lt&&wn&&Lt.focus()},[Lt,wn]),(0,E.useEffect)(()=>{if(Bn&&Lt){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=Lt.getScrollerElement();return yn.addEventListener("scroll",mn),()=>{yn.removeEventListener("scroll",mn)}}},[Lt,Bn]),(0,E.useEffect)(()=>{if(Lt&&Pe){let mn=function(yn,Nn){Pe(yn,Nn)};return Lt.on("beforeChange",mn),()=>{Lt.off("beforeChange",mn)}}},[Lt,Pe]),(0,E.useEffect)(()=>{if(Lt&&st){let mn=function(){st(Lt.getValue())};return Lt.on("blur",mn),()=>{Lt.off("blur",mn)}}},[Lt,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(Lt){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 Lt.on("change",mn),()=>{Lt.off("change",mn)}}},[Lt,en]),(0,E.useEffect)(()=>{if(Lt)if(It==null)Lt.setValue(""),Dn("");else{const mn=window.scrollY||window.pageYOffset;It!==Lt.getValue()&&(Lt.setValue(It),Dn(It),Lt.setCursor(Pt?1:Lt.lineCount(),0),window.scrollTo(0,mn))}},[Lt,It]);const Er=(0,E.useCallback)(mn=>{const yn=Lt.getCursor(),Nn=Lt.getSelection();let Rn=Nn.split(`
|
|
|
`);switch(mn){case"bold":return Lt.replaceSelection("**"+Nn+"**"),Nn===""&&Lt.setCursor(yn.line,yn.ch+2),Lt.focus();case"italic":return Lt.replaceSelection("*"+Nn+"*"),Nn===""&&Lt.setCursor(yn.line,yn.ch+1),Lt.focus();case"code":return Lt.replaceSelection("`"+Nn+"`"),Nn===""&&Lt.setCursor(yn.line,yn.ch+1),Lt.focus();case"inline-latex":return(0,Ht.Ye)(Sr)?void 0:(Fn("inline-latex"),Lt.focus());case"latex":return Lt.replaceSelection("```latex\n"+Nn+"\n```"),Lt.setCursor(yn.line+1,Nn.length+1),Lt.focus();case"line-break":return Lt.replaceSelection(`<br/>
|
|
|
`),Lt.focus();case"list-ul":return Nn===""?Lt.replaceSelection("- "+Nn):Lt.replaceSelection(Rn.map(rr=>rr===""?"":`- ${rr}`).join(`
|
|
|
`)),Lt.focus();case"list-ol":return Nn===""?Lt.replaceSelection("1. "+Nn):Lt.replaceSelection(Rn.map((rr,Pr)=>rr===""?"":`${Pr+1}. ${rr}`).join(`
|
|
|
`)),Lt.focus();case"add-null-ch":Ft==null||Ft();return;case"add-signal":return Nn===""&&Lt.setCursor(yn.line,yn.ch),Lt.replaceSelection(ln),Lt.focus();case"add-multiple":return Nn===""&&Lt.setCursor(yn.line,yn.ch),Lt.replaceSelection(Ut),Lt.focus();case"inster-template-1":return Nn===""&&Lt.setCursor(yn.line,yn.ch),Lt.replaceSelection(In),Lt.focus();case"eraser":return Lt.setValue(""),Lt.focus();case"trigger-watch":return Xn(!Bn),Lt.focus();case"trigger-full-screen":return Jn(!Qn),Lt.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,Ht.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}},[Lt,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 Lt.replaceSelection(`[${Fi}](${xi})`),Lt.focus();case Yt:const{language:mi,content:Xi}=mn;return Lt.replaceSelection(["```"+mi,Xi,"```"].join(`
|
|
|
`)),Lt.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?Lt.replaceSelection(``):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")}),Lt.focus();case"inline-latex":return(0,Ht.Ye)(Sr)?void 0:(Lt.replaceSelection("`$$"+mn+"$$`"),Lt.focus());case kt:return $r?(Lt.getValue().indexOf(Or)===-1?Lt.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(),Lt.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?Lt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${Or}" alt="${Br||""}" /></p>`):Lt.replaceSelection(`<img width="100%" src="${Or}" alt="${Br||""}" />`):((br=Lr==null?void 0:Lr.type)==null?void 0:br.indexOf("video"))>-1?Lt.replaceSelection(`<video width="100%" controls src="${Or}"></video>`):((Mr=Lr==null?void 0:Lr.type)==null?void 0:Mr.indexOf("pdf"))>-1?Lt.replaceSelection(`<a href="${Or}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):Pn.includes(to)?Lt.replaceSelection(`<a href="${Or}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):Lt.replaceSelection(`[${Lr.name}](${Or})`),Lt.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 Lt.replaceSelection(Yi+`
|
|
|
`),Lt.focus();default:throw new Error}},[Lt,Zn]),Ir=(0,E.useMemo)(()=>{switch(Zn){case $t:return E.createElement(Et,{callback:Ar,onCancel:Dr});case Yt:return E.createElement(pt.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(Ce,{callback:Ar,onCancel:Dr});case"maths-latex":return E.createElement(Wt,{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)}}},[Lt,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),Lt.setValue(window.sessionStorage.getItem(Wn))}(0,E.useEffect)(()=>{At[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(vt,{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(xt,{value:Tn}),kn!=="stex"&&E.createElement(xe.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(Bt,{callback:Ar,onCancel:Dr}),Zn===Xt&&E.createElement(oe,{ref:Gn,editImgId:dr.current,callback:Ar,onCancel:Dr}),E.createElement(Ae.Z,null,At[Zn]&&Zn!==rn&&Zn!==Xt?E.createElement(Le.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:gr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:_n},At[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 vt}});var E=re(28284),at=re(6767),ye=re(37568),et=re(44104),Se=re(4875),Oe=re(47889),Ee=re(7939),Ze=re(23216),Ie=re(59301),he=re(59301),Je=Object.defineProperty,xe=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,We=(Ae,je,ht)=>je in Ae?Je(Ae,je,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Ae[je]=ht,ct=(Ae,je)=>{for(var ht in je||(je={}))Ne.call(je,ht)&&We(Ae,ht,je[ht]);if(qe)for(var ht of qe(je))Ve.call(je,ht)&&We(Ae,ht,je[ht]);return Ae},Ct=(Ae,je)=>xe(Ae,xt(je));const{useForm:Dt}=E.default,ft={width:280,marginRight:10},rt={labelCol:{span:5},wrapperCol:{span:19}};var tt=({callback:Ae,onCancel:je})=>{const[ht]=Dt();let ke=(0,Ie.useRef)();function Fe(ze){ke.current.width=ht.getFieldValue("width"),ke.current.align=ht.getFieldValue("align"),Ae(ze,ke.current)}function $e(ze,De){if(ze.status===-1){at.ZP.error(ze.message);return}ht.setFieldsValue({src:`/api/attachments/${ze.id}`,type:De.type})}function le(ze){let De=ze.target.files[0];ke.current=De,vt(De,$e)}return he.createElement(E.default,Ct(ct({form:ht},rt),{className:"upload-image-panel",onFinish:Fe,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(Ge,{onFileChange:le}))),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(Oe.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(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Ee.ZP,{type:"default",onClick:je},"\u53D6\u6D88"))))};function Ge({onFileChange:Ae}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:Ae}))}function vt(Ae,je){if(!Ae)throw new String("\u6CA1\u6709\u6587\u4EF6");let ht=new FormData;ht.append("editormd-image-file",Ae),ht.append("file_param_name","editormd-image-file"),ht.append("byxhr","true");var ke=new window.XMLHttpRequest;ke.withCredentials=!0,ke.addEventListener("load",function(Fe){je(JSON.parse(Fe.target.responseText),Ae)},!1),ke.addEventListener("error",function(Fe){console.error(Fe)},!1),ke.open("POST",`${Ze.KI}/api/attachments.json`),ke.send(ht)}},88487:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return ye}});var E=re(59301),at=re(4676);class ye extends E.Component{constructor(Se){super(Se);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,at.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(nn,zt,re){"use strict";re.d(zt,{SV:function(){return Bt},ZP:function(){return bt}});var E=re(59301),at=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(`
|
|
|
`)}]},Oe={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Ee={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var Ze=re(53184),Ie=re.n(Ze),he=(Te,Ot,lt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(lt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{ue(lt.throw(ne))}catch(pe){te(pe)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((lt=lt.apply(Te,Ot)).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"]}},xe=(Te,Ot,lt,ae)=>{const te=Ot.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:lt.lineNumber,endColumn:lt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Te.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},xt=(Te,Ot,lt,ae)=>{Te.languages.registerCompletionItemProvider(Ot,{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:[...xe(Te,te,ee,ue),...lt.map(ge=>({label:ge,kind:Te.languages.CompletionItemKind.Keyword,documentation:ge,insertText:ge,insertTextRules:Te.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(ge=>({label:ge.label,kind:Te.languages.CompletionItemKind.Snippet,documentation:ge.content,insertText:ne.startsWith("#")?ge.content.replace(/#/,""):ge.content,insertTextRules:Te.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var qe=Te=>{Je.languages.forEach(Ot=>{Te.languages.registerDocumentFormattingEditProvider(Ot,{provideDocumentFormattingEdits(lt){return he(this,null,function*(){const ae=Ie()(lt.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:lt.getFullModelRange(),text:ae}]})}})}),xt(Te,"java",et.keywords,et.quickKey),xt(Te,"cpp",Se.keywords,Se.quickKey),xt(Te,"c",ye.keywords,[]),xt(Te,"python",Oe.keywords,Oe.quickKey),xt(Te,"scala",Ee.keywords,Ee.quickKey)};const Ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ve=Object.defineProperty,We=(Te,Ot,lt)=>Ot in Te?Ve(Te,Ot,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Te[Ot]=lt,ct=(Te,Ot,lt)=>We(Te,typeof Ot!="symbol"?Ot+"":Ot,lt);const Ct=class _s{constructor(Ot,lt,ae){this.placeholder=Ot,this.editor=lt,this.monaco=ae,lt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return _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)}};ct(Ct,"ID","editor.widget.placeholderHint");var ft=Ct,rt=re(96236),tt=re(6767),Ge=re(25399),vt=re(78267),Ae=re(33156),je=re(56102),ht=Object.defineProperty,ke=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,De=(Te,Ot,lt)=>Ot in Te?ht(Te,Ot,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Te[Ot]=lt,we=(Te,Ot)=>{for(var lt in Ot||(Ot={}))le.call(Ot,lt)&&De(Te,lt,Ot[lt]);if($e)for(var lt of $e(Ot))ze.call(Ot,lt)&&De(Te,lt,Ot[lt]);return Te},ut=(Te,Ot)=>ke(Te,Fe(Ot)),me=(Te,Ot)=>{var lt={};for(var ae in Te)le.call(Te,ae)&&Ot.indexOf(ae)<0&&(lt[ae]=Te[ae]);if(Te!=null&&$e)for(var ae of $e(Te))Ot.indexOf(ae)<0&&ze.call(Te,ae)&&(lt[ae]=Te[ae]);return lt},ce=(Te,Ot,lt)=>new Promise((ae,te)=>{var ee=ne=>{try{ue(lt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{ue(lt.throw(ne))}catch(pe){te(pe)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);ue((lt=lt.apply(Te,Ot)).next())});function _e(Te){return/^\d+$/.test(Te)?`${Te}px`:Te}function Et(){}let pt=!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 Le(Te=[]){let Ot=Te;if(Array.isArray(Te)){for(let lt=0;lt<Te.length;lt++){let ae=ve[Te[lt]];if(ae)return ae}return Ot[0]}return ve[Ot]||Ot}let Re=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(Te){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Te)}});var bt=Te=>{var Ot=Te,{width:lt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:ue={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:ge,isCopy:Qe=!1,onSave:Ce,autoHeight:Ke=!1,forbidCopy:ot=!1,forbidCopyTips:St,onChange:gt=Et,editorDidMount:Wt=Et,onFocus:Zt=Et,onBreakPoint:$t=Et,breakPointValue:tn=[],filename:Xt="educoder.txt",errorLine:rn,errorContent:kt="",highlightLine:Yt,openBreakPoint:Vt=!1,placeholder:He="",showMiniMap:dt=!0}=Ot,Nt=me(Ot,["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 Ht=(0,E.useRef)(),Be=(0,E.useRef)({}),nt=(0,E.useRef)(),yt=(0,E.useRef)(),Mt=(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 Tt;return Ht.current&&(Tt=new at.Z(Kt=>{for(let xn of Kt)(xn.target.offsetHeight>0||xn.target.offsetWidth>0)&&Be.current.instance.layout()}),Tt.observe(Ht.current)),Tt}function Gt(){tt.ZP.warning({content:decodeURIComponent(St||Ne),key:"monaco-editor-tip"})}const At=()=>{let Tt=Be.current.instance;if(te!=null&&Tt&&on){const Kt=Tt.getModel();Kt&&te!==Kt.getValue()&&(pt=!0,Kt.setValue(te),Tt.layout(),pt=!1)}};(0,E.useEffect)(()=>{const Tt=Ae.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=>{gt(Kt)},Tt},[]),(0,E.useEffect)(()=>{var Tt;let Kt=Be.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{At()},500),te&&(te!=null&&te.length)&&((Tt=Kt==null?void 0:Kt.updateOptions)==null||Tt.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=kt,xn.addZone({afterLineNumber:rn||11,heightInLines:3,domNode:hn})});var Tt={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(Tt),Kt.revealPositionInCenter({lineNumber:20,column:1})}},[rn,Be.current,on]);const Rt=(Tt="",Kt)=>{if(!Tt||Tt.trim()==="")return!0;const hn=Be.current.instance.getModel().getLineTokens(Kt);let Ue=!1;for(let st=0;st<2;st++)hn.getStandardTokenType(st)===1&&(Ue=!0);return Ue};(0,E.useEffect)(()=>{var Tt;const Kt=(Tt=Be.current)==null?void 0:Tt.instance;if(Kt&&on&&ot){const xn=Kt.onDidBlurEditorWidget(()=>{Pn.current=!1}),hn=Kt.onDidFocusEditorText(()=>{Pn.current=!0});return()=>{xn.dispose(),hn.dispose()}}},[Be.current,on,ot]),(0,E.useEffect)(()=>{var Tt;if((Tt=Be.current)!=null&&Tt.instance&&on&&Vt){let Kt=Be.current.instance,xn=Kt.getModel();if(!xn)return;(()=>{var Qt;let Ft=[],Lt=[];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),Lt.push(Dn==null?void 0:Dn.id));if(Yt===Ft[0])return;xn.deltaDecorations(Lt,[]);const Tn=xn.getLineCount();Yt&&Yt<=Tn&&(Kt.deltaDecorations([],[{range:new Re.Range(Yt,1,Yt,xn.getLineMaxColumn(Yt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Kt.revealLineInCenter(Yt))})();const Ue=(Qt=!1)=>{var Ft;let Lt=[],fn=[];const Tn=xn.getAllDecorations();for(let Dn of Tn)Dn.options.linesDecorationsClassName==="breakpoints-select"&&(Lt.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:Lt,ids:fn};$t(Lt)},st=Qt=>ce(void 0,null,function*(){let Ft={range:new Re.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield xn.deltaDecorations([],[Ft]),Ue()}),Pe=Qt=>ce(void 0,null,function*(){let Ft=[];const Lt=Kt.getLineDecorations(Qt);for(let fn of Lt)fn.options.linesDecorationsClassName==="breakpoints-select"&&Ft.push(fn.id);yield xn.deltaDecorations(Ft,[]),Ue()}),Xe=Qt=>{let Ft=Kt.getLineDecorations(Qt);for(let Lt of Ft)if(Lt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vt.isEqual)(tn,Ue(!0).lines)){xn.deltaDecorations(Ue(!0).ids,[]);const Qt=tn.map(Ft=>({range:new Re.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 Lt=Ft.lineNumber;clearTimeout(In.current),In.current=setTimeout(()=>{Rt(xn.getLineContent(Lt),Lt)?Pe(Lt):Xe(Lt)?(Pe(Lt),st(Lt)):Ue()},100)}}),Ye=Kt.onMouseDown(Qt=>{var Ft,Lt,fn;if(Qt.target.detail&&((fn=(Lt=(Ft=Qt.target)==null?void 0:Ft.element)==null?void 0:Lt.className)!=null&&fn.includes("line-numbers"))){let Tn=Qt.target.position.lineNumber;if(Rt(xn.getLineContent(Tn),Tn))return;Xe(Tn)?Pe(Tn):st(Tn)}}),Pt=Qt=>{let Ft={range:new Re.Range(Qt,1,Qt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mt.current=Kt.deltaDecorations(Mt.current,[Ft])},an=()=>{Mt.current=Kt.deltaDecorations(Mt.current,[])},un=Kt.onMouseMove(Qt=>{var Ft,Lt,fn;if(an(),Qt.target.detail&&((fn=(Lt=(Ft=Qt.target)==null?void 0:Ft.element)==null?void 0:Lt.className)!=null&&fn.includes("line-numbers"))){let Tn=Qt.target.position.lineNumber;if(Rt(xn.getLineContent(Tn),Tn))return;Pt(Tn)}}),vn=Kt.onMouseLeave(()=>{an()});return()=>{Me.dispose(),Ye.dispose(),un.dispose(),vn.dispose()}}},[Be.current,on,tn,Yt,Vt,ee]),(0,E.useEffect)(()=>{var Tt;(Tt=Be.current)!=null&&Tt.instance&&Vt&&Be.current.instance.setPosition({lineNumber:0,column:0})},[Yt]);function It(){let Tt=Be.current.instance;if(Tt){const Kt=Tt.getSelection(),xn=Be.current.pastePos||{},hn=new Re.Range(xn.startLineNumber||Kt.endLineNumber,xn.startColumn||Kt.endColumn,xn.endLineNumber||Kt.endLineNumber,xn.endColumn||Kt.endColumn);setTimeout(()=>{Tt.executeEdits("",[{range:hn,text:""}])},300)}}function en(Tt){(window.navigator.platform.match("Mac")?Tt.metaKey:Tt.ctrlKey)&&Tt.keyCode==83&&(Tt.preventDefault(),Ce())}const Jt=()=>{if(Ke&&Be.current.instance){const Tt=Be.current.instance.getContentHeight();Wn(Tt<ae?ae:Tt)}else Wn(ae)};function qt(Tt){var Kt=document.createEvent("MouseEvents");Kt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Tt.dispatchEvent(Kt)}const gn=Tt=>{if(!Pn.current)return;const{keyCode:Kt,ctrlKey:xn,metaKey:hn,target:Ue,type:st}=Tt;return(st==="paste"||(Kt===67||Kt===86)&&(hn||xn))&&Ue.nodeName==="TEXTAREA"&&(Gt(),Tt.preventDefault()),!1};function wn(Tt,Kt){var xn=window.URL||window.webkitURL||window,hn=new Blob([Kt]),Ue=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ue.href=xn.createObjectURL(hn),Ue.download=Tt,qt(Ue)}(0,E.useEffect)(()=>{Jt()},[Jt]),(0,E.useEffect)(()=>{Ht.current&&!on&&Promise.all([re.e(8909),re.e(5977)]).then(re.bind(re,71448)).then(Tt=>{try{Re=Tt,Be.current.instance=Re.editor.create(Ht.current,{value:te,language:Le(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 Ue=[...rt.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"],Pe=(Me,Ye)=>{var Pt,an;let un=Me._first;do Ye.includes((an=(Pt=un.element)==null?void 0:Pt.command)==null?void 0:an.id)&&Me._remove(un);while(un=un.next)};if(Wt(Kt,Re),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(),gt(Kt.getValue(),Me)),ln.current=setTimeout(()=>{Ut.current=!1},500)}),window.Monaco||qe(Re,Le(ee)),ot&&(Pe(Ue,st),Ht.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",gn),window.removeEventListener("paste",gn),window.addEventListener("keydown",gn),window.addEventListener("paste",gn)),window.Monaco=Re,ge&&Kt.onDidBlurEditorWidget(()=>{ge(Kt.getValue())}),Zt&&Kt.onDidFocusEditorText(()=>{ot&&wt(),Zt(Kt.getValue())}),ot){wt();try{Kt.onDidPaste(Me=>{const Ye=Kt.getSelection(),Pt=Be.current.pastePos||{},an=new Re.Range(Pt.startLineNumber||Ye.endLineNumber,Pt.startColumn||Ye.endColumn,Pt.endLineNumber||Ye.endLineNumber,Pt.endColumn||Ye.endColumn);Kt.executeEdits("",[{range:Me.range,text:""}])})}catch(Me){}}let Xe=dn();return He&&typeof He=="string"&&new ft(He,Kt,Re),bn(!0),()=>{const Me=Be.current.instance;Me.dispose();const Ye=Me.getModel();Ye&&Ye.dispose(),Be.current.subscription&&Be.current.subscription.dispose(),Xe.unobserve(Ht.current)}}catch(Kt){}})},[]),(0,E.useEffect)(()=>{if(Be.current.instance&&on)return document.addEventListener("keydown",en,!1),()=>{document.removeEventListener("keydown",en)}},[Ce,on]),(0,E.useEffect)(()=>{let Tt=Be.current.instance;if(Tt&&on){let Kt=Le(ee);Re.editor.setModelLanguage(Tt.getModel(),Kt)}},[ee,on]),(0,E.useEffect)(()=>{Be.current.instance&&on&&Re.editor.setTheme(pe)},[pe,on]),(0,E.useEffect)(()=>{let Tt=Be.current.instance;nt.current=ue,Tt&&on&&(Tt.updateOptions(we({},ue)),setTimeout(()=>{Tt.getModel().updateOptions(we({},ue))},200))},[JSON.stringify(ue),on]),(0,E.useEffect)(()=>{let Tt=Be.current.instance;Tt&&on&&Tt.layout()},[lt,ae,on]);const[Sn,Mn]=(0,E.useState)(_e(lt)),[kn,Wn]=(0,E.useState)(_e(ae)),An=ut(we({},oe),{width:Sn,height:kn,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:Ht,style:An,onFocus:()=>{ot&&wt()}},Qe&&E.createElement(je.CopyToClipboard,{text:te,onCopy:()=>tt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Ge.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 Bt({width:Te="100%",height:Ot="100%",original:lt,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[ue,ne]=(0,E.useState)(null);function pe(Ke){let ot;return oe.current&&(ot=new at.Z(St=>{for(let gt of St)(gt.target.offsetHeight>0||gt.target.offsetWidth>0)&&Ke.layout()}),ot.observe(oe.current)),ot}(0,E.useEffect)(()=>(oe.current&&Promise.all([re.e(8909),re.e(9404)]).then(re.bind(re,2550)).then(Ke=>{Re=Ke;const ot=Re.editor.createDiffEditor(oe.current,ut(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(ot);let St=pe(ot);return()=>{ot.dispose();const gt=ot.getModel();gt&>.dispose(),St.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{ue&&ue.setModel({original:Re.editor.createModel(lt,te),modified:Re.editor.createModel(ae,te)})},[lt,ae,te,ue]);const ge=_e(Te),Qe=_e(Ot),Ce={width:ge,height:Qe};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:Ce})}},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"},at=re(29787),ye=re(25399),et=re(89787),Se=re(92310),Oe=re.n(Se),Ee=re(76406),Ze=re(90736),Ie=re(59301),Je=({className:xe,dataSource:xt=[],col:qe=4,right:Ne,bottom:Ve=23,precision:We=0,wrapWidth:ct=1200,trackEventItems:Ct,loading:Dt,onRemove:ft=()=>{},isCurrent:rt=!0,showProgress:tt=!1,showAlias:Ge=!1,category:vt="notDisplay",hiddenClick:Ae=()=>{}})=>{const je=Math.floor((ct-(qe-1)*Ne)/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 Ie.createElement(at.Z,{spinning:Dt},Ie.createElement("div",{className:Oe()(E.list,xe)},!!(xt!=null&&xt.length)&&(xt==null?void 0:xt.map((ke,Fe)=>{var $e,le,ze,De,we,ut,me;const{name:ce,id:_e,identifier:Et,featured:pt,school_name:ve,image_url:Le,excellent:Re,is_plan:wt}=ke;return Ie.createElement("div",{key:_e,className:rt&&tt?E.wrapisCurrent:E.wrap,style:{width:je,marginRight:(1+Fe)%qe===0?0:Ne+We,marginBottom:Ve}},Ie.createElement("a",{className:E.li,onClick:bt=>{bt.preventDefault(),bt.stopPropagation(),Ct&&(0,Ee.L9)([Ct]),(0,Ee.xg)(`/paths/${Et}`)}},Ie.createElement("div",{className:E.img},Ie.createElement("img",{className:E.cover,src:`${Le}`}),($e=ke==null?void 0:ke.subject_tags)==null?void 0:$e.map((bt,Bt)=>{var Te,Ot;if(Bt===0){const ae=(Te=ht.find(te=>te.name==bt))==null?void 0:Te.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${E.sign}`,style:{left:"-4px"}})}const lt=(Ot=ht.find(ae=>ae.name==bt))==null?void 0:Ot.ptclass;return Ie.createElement("span",{className:`sprite ${lt} ${E.sign}`,style:{left:`${48+52*(Bt-1)+2*Bt}px`}})}),Ie.createElement("div",{className:E.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(ke==null?void 0:ke.excellent)&&Ie.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((le=ke==null?void 0:ke.custom_tags)==null?void 0:le.length)>0&&(ke==null?void 0:ke.custom_tags.map((bt,Bt)=>{var Te;return Ie.createElement(ye.Z,{title:bt==null?void 0:bt.tag_name,key:Bt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Te=ke==null?void 0:ke.custom_tags)==null?void 0:Te.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},bt==null?void 0:bt.tag_name)))})))),vt=="hide"&&(ke==null?void 0:ke.studying)&&rt&&Ie.createElement("div",{className:`${E.movebq} user-path-items`,onClick:bt=>{bt.stopPropagation(),ft(ke)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(vt)&&rt&&Ie.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:bt=>{bt.stopPropagation(),Ae(ke)}},Ie.createElement("i",{className:`iconfont ${vt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,vt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:E.name},Ie.createElement(ye.Z,{title:Ge&&(ke!=null&&ke.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ce}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ke==null?void 0:ke.excellent_alias_name}`)):ce},Ie.createElement("span",{className:E.e},Ge&&(ke==null?void 0:ke.excellent_alias_name)||ce))),rt&&tt&&((ze=ke==null?void 0:ke.progress)==null?void 0:ze.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(et.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((De=ke==null?void 0:ke.progress)==null?void 0:De.my_score)/((we=ke==null?void 0:ke.progress)==null?void 0:we.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ut=ke==null?void 0:ke.progress)==null?void 0:ut.my_score,"/",(me=ke==null?void 0:ke.progress)==null?void 0:me.all_score),(!rt||!tt)&&Ie.createElement(ye.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ve}`},Ie.createElement("div",{className:E.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ve)),(!rt||!tt)&&Ie.createElement("div",{className:E.tags},Ie.createElement("div",null,Ie.createElement(ye.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,ke.stages_count))),Ie.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,ke.members_count)))))))})),!xt.length&&Ie.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 Fe.Z},op:function(){return ot},O5:function(){return dn},_b:function(){return He},t7:function(){return We},Gi:function(){return Re},YG:function(){return ve},qp:function(){return he},vr:function(){return kt},qE:function(){return Wt},Je:function(){return Dt},wb:function(){return ke},cq:function(){return lt},tp:function(){return xt}});var E=re(59301),at={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:At,imgWidth:Rt=346,title:It,sunTitle:en,bannerExtraContent:Jt})=>E.createElement("div",{className:at.banner},E.createElement("div",{className:at.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,It),E.createElement("span",null,en)),Gt.length>0&&E.createElement("div",{className:at.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),At&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:At,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"},Oe=re(92310),Ee=re.n(Oe),Ze=re(78267),he=({dataSource:Gt=[],value:At,onChange:Rt,onTitleChange:It,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),Tt=(0,E.useRef)(null),Kt=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var xn;Gt.length!==0&&(((xn=Tt==null?void 0:Tt.current)==null?void 0:xn.clientHeight)>97?kn(1):kn(0)),Gt.length===0&&kn(0),An(!1)},[Gt]),E.createElement("div",{className:Ee()(Se.row,en,"fadeIn","animated"),style:gn},E.createElement("div",{onClick:(0,Ze.throttle)(()=>It==null?void 0:It(),2e3),style:{width:qt,marginTop:Wn?12:4},className:`${Se.title} ${It?"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:Tt},Gt==null?void 0:Gt.map(xn=>E.createElement("span",{onClick:()=>Rt(xn.id),key:xn.id,style:{color:wn},className:At===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=Tt==null?void 0:Tt.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"},xt=({dataSource:Gt=[],value:At,onChange:Rt,className:It,style:en={}})=>E.createElement("div",{style:en,className:Ee()(Je.tabs,It)},Gt.map(Jt=>E.createElement("span",{onClick:()=>Rt(Jt.id),className:At===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"},Ne=re(37568),We=({dataSource:Gt=[],value:At="",onChange:Rt,onInputChange:It=()=>{},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=At;(Kt=JSON.stringify(At))!=null&&Kt.includes("{")&&(Mn(At.id),xn=At.value||"");try{Wn(decodeURIComponent(xn||""))}catch(hn){Wn(decodeURIComponent(xn||""))}},[At]);const An=()=>{Rt(encodeURIComponent(kn),Sn||null)},Tt=Kt=>{Kt!==Sn&&(Mn(Kt),Rt(encodeURIComponent(kn),Kt))};return E.createElement("div",{className:Ee()(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:()=>Tt(Kt.id)},Kt.name)))),E.createElement(Ne.default,{onPressEnter:An,value:kn,onChange:Kt=>{Wn(Kt.target.value),It(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"}))},ct={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"},Dt=({value:Gt,onChange:At,className:Rt,total:It,pageSize:en,style:Jt={}})=>{const qt=Gt<2,gn=Gt>=Math.ceil(It/en);return It<=en?E.createElement(E.Fragment,null):E.createElement("div",{className:Ee()(ct.quickPager,Rt),style:Jt},E.createElement("div",{onClick:()=>{qt||At(Gt-1,"prev")},className:qt?ct.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{gn||At(Gt+1,"next")},className:gn?ct.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"},rt=re(29787),tt=re(25399),Ge=re(63139),vt=re(14185),Ae=re(76406),je=re(90736),ke=({className:Gt,dataSource:At=[],col:Rt=4,right:It,bottom:en=23,precision:Jt=0,wrapWidth:qt=1200,trackEventItems:gn,loading:wn})=>{const Sn=Math.floor((qt-(Rt-1)*It)/Rt);return E.createElement(rt.Z,{spinning:wn},E.createElement("div",{className:Ee()(ft.list,Gt)},!!At.length&&At.map((Mn,kn)=>{const{name:Wn,id:An,identifier:Tt,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:It+Jt,marginBottom:en}},E.createElement("a",{target:"_blank",href:`/shixuns/${Tt}/challenges`,className:ft.li,onClick:Ue=>{Ue.preventDefault(),gn&&(0,Ae.L9)([gn]),Kt&&(0,Ae.xg)(`/shixuns/${Tt}/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(Ge.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:`${vt.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")))}),!At.length&&E.createElement(je.Z,null)))},Fe=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"},le=re(62957),ze=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),ut=(Gt,At,Rt)=>new Promise((It,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?It(wn.value):Promise.resolve(wn.value).then(Jt,qt);gn((Rt=Rt.apply(Gt,At)).next())}),ce=({className:Gt,dataSource:At=[],col:Rt=4,right:It,bottom:en=23,precision:Jt=0,wrapWidth:qt=1200,trackEventItems:gn,loading:wn,category:Sn,hiddenClick:Mn,handleVery:kn=()=>!0,isCurrent:Wn})=>{const[An,Tt]=le.default.useModal(),Kt=Math.floor((qt-(Rt-1)*It)/Rt),xn=hn=>ut(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(rt.Z,{spinning:wn},Tt,we.createElement("div",{className:Ee()($e.list,Gt)},!!At.length&&At.map((hn,Ue)=>{const{subject_identifier:st,id:Pe,identifier:Xe,power:Me}=hn,Ye=hn.is_public!=0&&hn.is_public;return we.createElement("div",{className:$e.wrap,key:Pe,style:{width:Kt,marginRight:(1+Ue)%Rt===0?0:It+Jt,marginBottom:en}},hn.homepage_show&&we.createElement("div",{className:$e.btnsTop},we.createElement(ze.default,{color:"red"},"\u7F6E\u9876")),we.createElement("a",{className:$e.li,onClick:Pt=>{Pt.preventDefault(),kn(hn==null?void 0:hn.first_category_url)&&(gn&&(0,Ae.L9)([gn]),(0,Ae.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:vt.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")),Ye&&we.createElement("div",{className:$e.sign},"\u516C\u5F00"),Wn&&we.createElement("div",{className:$e.hidden,onClick:Pt=>{Pt.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:`${vt.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")))}),!At.length&&we.createElement(je.Z,null)))},_e={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"},Et=re(44283),ve=({dataSource:Gt=[],value:At,onChange:Rt,className:It,style:en={},tabBarExtraContent:Jt})=>E.createElement("div",{className:Ee()(_e.tabs,It),style:en},E.createElement("div",{className:_e.tabsWrap},Gt.map((qt,gn)=>!(qt!=null&&qt.hide)&&E.createElement("aside",{className:_e.tab,onClick:()=>{Rt(qt.id),qt.link&&Et.history.push(qt.link)},key:gn},E.createElement("div",{className:At===qt.id?_e.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:_e.tabBar},Jt)),Re=({className:Gt,style:At={},children:Rt})=>E.createElement("div",{className:Ee()(Gt),style:At},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"},bt=re(75727),Bt=re(93041);const Te=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var lt=({sortValue:Gt,dropValue:At,className:Rt,onSort:It,onDrop:en,dataSource:Jt=Te})=>{var qt;return E.createElement("div",{className:Ee()(wt.orderWrap,Rt)},E.createElement(bt.Z,{dropdownRender:()=>E.createElement(Bt.default,null,Jt.map((gn,wn)=>E.createElement(Bt.default.Item,{key:wn,onClick:()=>en(gn.id)},gn.name)))},E.createElement("span",{className:wt.orderTextWrap},(qt=Jt.find(gn=>At===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:()=>It(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:()=>It(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,At,Rt)=>At in Gt?ee(Gt,At,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Gt[At]=Rt,ge=(Gt,At)=>{for(var Rt in At||(At={}))ue.call(At,Rt)&&pe(Gt,Rt,At[Rt]);if(oe)for(var Rt of oe(At))ne.call(At,Rt)&&pe(Gt,Rt,At[Rt]);return Gt},Qe=(Gt,At)=>{var Rt={};for(var It in Gt)ue.call(Gt,It)&&At.indexOf(It)<0&&(Rt[It]=Gt[It]);if(Gt!=null&&oe)for(var It of oe(Gt))At.indexOf(It)<0&&ne.call(Gt,It)&&(Rt[It]=Gt[It]);return Rt},Ce=(Gt,At,Rt)=>new Promise((It,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?It(wn.value):Promise.resolve(wn.value).then(Jt,qt);gn((Rt=Rt.apply(Gt,At)).next())}),ot=Gt=>{var At=Gt,{className:Rt,style:It,children:en,loading:Jt=!1,openLoading:qt,onClick:gn=()=>{},size:wn="middle",shape:Sn="round"}=At,Mn=Qe(At,["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=>Ce(void 0,null,function*(){qt&&Wn(!0);try{yield gn(An)}catch(Tt){console.log("error",Tt)}qt&&Wn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(ae.btn,ae[`${wn}-${Sn}`],Rt),style:It,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"},Wt=({className:Gt,style:At,children:Rt=null,onClick:It,title:en})=>E.createElement("div",{className:Ee()(St.head,Gt),style:At},E.createElement("span",{className:"primary-hover",onClick:It},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:At,confirmClick:Rt,cancelShow:It=!0,cancelTitle:en,cancelClick:Jt,className:qt,style:gn,confirmLoading:wn=!1})=>E.createElement("div",{className:Ee()(Zt.btns,qt),style:gn},Gt&&E.createElement(te.ZP,{loading:wn,onClick:Rt,type:"primary",className:Zt.confirm},At),It&&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"},kt=({className:Gt,style:At={},LeftContent:Rt,children:It,RightContent:en})=>E.createElement("div",{className:Ee()(Xt.fixedBottom,Gt),style:At},E.createElement("div",{className:Xt.wrap},E.createElement("div",{className:Xt.left},Rt),E.createElement("div",{className:Xt.center},It),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"},He=({className:Gt,style:At={},dataSource:Rt=[]})=>E.createElement("div",{className:Ee()(Yt.crumbs,Gt),style:At},Rt.map((It,en)=>en<Rt.length-1?E.createElement(E.Fragment,{key:en},It.path||It.onClick?E.createElement("span",{className:Yt.hover,onClick:It!=null&&It.onClick?It.onClick:()=>Et.history.push(It.path)},It.name):E.createElement("span",null,It.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:en,style:{color:"#5F6368"}},It.name))),dt=re(11938),Nt=Object.defineProperty,Ht=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Ut=(Gt,At,Rt)=>At in Gt?Nt(Gt,At,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Gt[At]=Rt,ln=(Gt,At)=>{for(var Rt in At||(At={}))yt.call(At,Rt)&&Ut(Gt,Rt,At[Rt]);if(nt)for(var Rt of nt(At))Mt.call(At,Rt)&&Ut(Gt,Rt,At[Rt]);return Gt},In=(Gt,At)=>Ht(Gt,Be(At)),Pn=(Gt,At)=>{var Rt={};for(var It in Gt)yt.call(Gt,It)&&At.indexOf(It)<0&&(Rt[It]=Gt[It]);if(Gt!=null&&nt)for(var It of nt(Gt))At.indexOf(It)<0&&Mt.call(Gt,It)&&(Rt[It]=Gt[It]);return Rt};const{Countdown:on}=dt.default;var dn=Gt=>{var At=Gt,{onChange:Rt}=At,It=Pn(At,["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({},It),{onChange:qt}))}},79006:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return at}});var E=re(59301);function at(ye,et){const Se=(0,E.useRef)();(0,E.useEffect)(()=>{Se.current=ye}),(0,E.useEffect)(()=>{function Oe(){Se.current()}if(et!==null){let Ee=setInterval(Oe,et);return()=>clearInterval(Ee)}},[et])}},43747:function(nn,zt,re){"use strict";re.r(zt),re.d(zt,{default:function(){return ke}});var E=re(59301),at=re(44283),ye=re(28284),et=re(6767),Se=re(37285),Oe=re(91882),Ee=re(77019),Ze=re(5269),Ie=re(37568),he=re(7939),Je=re(92216),xe={flex_box_center:"flex_box_center___awg_W",flex_space_between:"flex_space_between___vs3La",flex_box_vertical_center:"flex_box_vertical_center___I3QTf",flex_box_center_end:"flex_box_center_end___fRTLL",flex_box_column:"flex_box_column___Z539C",bg:"bg___Dw6dz",title:"title___Z4aJr",titleLeft:"titleLeft___hTg4o",titleRight:"titleRight___mYUY7",footer:"footer___BXamP",footer_button:"footer_button___SgR41",button_style:"button_style___Dhnsl"},xt=re(76406),qe=re(39116),Ne=re(52885),Ve=re(36892),We=re(39613),ct=Object.defineProperty,Ct=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,Ge=(Fe,$e,le)=>$e in Fe?ct(Fe,$e,{enumerable:!0,configurable:!0,writable:!0,value:le}):Fe[$e]=le,vt=(Fe,$e)=>{for(var le in $e||($e={}))rt.call($e,le)&&Ge(Fe,le,$e[le]);if(ft)for(var le of ft($e))tt.call($e,le)&&Ge(Fe,le,$e[le]);return Fe},Ae=(Fe,$e)=>Ct(Fe,Dt($e)),je=(Fe,$e,le)=>new Promise((ze,De)=>{var we=ce=>{try{me(le.next(ce))}catch(_e){De(_e)}},ut=ce=>{try{me(le.throw(ce))}catch(_e){De(_e)}},me=ce=>ce.done?ze(ce.value):Promise.resolve(ce.value).then(we,ut);me((le=le.apply(Fe,$e)).next())});const ht=({classroomList:Fe,globalSetting:$e,loading:le,user:ze,dispatch:De})=>{var we;const ut=(0,at.useParams)();(0,E.useEffect)(()=>(setTimeout(()=>{document.body.scrollIntoView()},300),De({type:"globalSetting/footerToggle",payload:!1}),()=>{De({type:"globalSetting/footerToggle",payload:!0})}),[]);const{userInfo:me}=ze,[ce]=ye.default.useForm();let[_e,Et]=(0,E.useState)([]),[pt,ve]=(0,E.useState)(-1);const Le=(0,E.useRef)(),Re=[{name:"\u5355\u9009\u9898",id:1},{name:"\u591A\u9009\u9898",id:2},{name:"\u95EE\u7B54\u9898",id:3}],wt=(Te,Ot,lt)=>{switch(Te){case"edit":pt===-1||Ot===-1?(pt=Ot,ve(Ot)):et.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");break;case"add":if(pt!=-1){et.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}delete Ot.id,_e.splice(Ot==null?void 0:Ot.key,0,{insert_id:Ot==null?void 0:Ot.insert_id,question:vt({},Ot)}).slice(),Et([..._e]),ve((Ot==null?void 0:Ot.key)+1);break;case"addContinue":Et([...Ot]);break;case"del":_e.splice(Ot-1,1),Et([..._e]),ve(-1);break;case"isadd":_e[pt-1]={question:Ot},lt?(ve(_e.length+1),Et([..._e,{question:{question_type:lt}}])):(Et([..._e]),ve(-1));break}},bt=function(){return _e==null?void 0:_e.map((Te,Ot)=>{var lt;if(Te.key=Ot+1,Te.len=_e.length,Te.question.question_type===1)return E.createElement("aside",{key:Te.id},E.createElement(Ve.Z,{ref:Le,editKey:pt,polls_status:1,isadd:!0,callback:wt,editData:Te}),E.createElement(Se.Z,null));if(Te.question.question_type===2)return E.createElement("aside",{key:Te.id},E.createElement(Ne.Z,{ref:Le,editKey:pt,polls_status:1,isadd:!0,callback:wt,editData:Te}),E.createElement(Se.Z,null));if(((lt=Te.question)==null?void 0:lt.question_type)===3)return E.createElement("aside",{key:Te.id},E.createElement(We.Z,{ref:Le,editKey:pt,polls_status:1,isadd:!0,callback:wt,editData:Te}),E.createElement(Se.Z,null))})},Bt=Te=>je(void 0,null,function*(){if(pt!==-1){et.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}ve(_e.length+1),Et([..._e,{question:{question_type:Te}}])});return E.createElement("div",null,E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},me&&E.createElement(Oe.Z,{separator:">"},E.createElement(Oe.Z.Item,null,E.createElement(at.Link,{to:`${me.first_category_url}`},(we=me==null?void 0:me.course)==null?void 0:we.course_name)),E.createElement(Oe.Z.Item,null,E.createElement(at.Link,{to:`/classrooms/${ut.coursesId}/poll`},"\u95EE\u5377\u5217\u8868")),E.createElement(Oe.Z.Item,null,"\u65B0\u5EFA\u95EE\u5377"))),E.createElement("aside",{className:[xe.title,"mt20"].join(" ")},E.createElement(Ee.Z,{style:{width:"100%"}},E.createElement(Ze.Z,{flex:"1"},E.createElement("strong",{className:"font18 ml5"},"\u65B0\u5EFA\u95EE\u5377")),E.createElement(Ze.Z,null,E.createElement(at.Link,{className:"font14 c-light-black",to:`/classrooms/${ut.coursesId}/poll`},"\u8FD4\u56DE"))))),E.createElement("section",{className:[xe.bg,"pt30","pl30","pr30","pb30","mt10"].join(" ")},E.createElement(ye.default,{layout:"vertical",form:ce},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(Ie.default,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",style:{height:"40px"}})),E.createElement(ye.default.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"polls_description"},E.createElement(qe.Z,{watch:!0,height:200,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E,\u6700\u5927\u9650\u52365000\u5B57"})))),_e!=""&&E.createElement("section",{className:[xe.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},bt())),E.createElement("div",{className:xe.footer},E.createElement("div",{className:xe.footer_button},E.createElement("section",{className:xe.bg,style:{display:"flex"}},Re.map(function(Te){return E.createElement("div",{className:xe.button_style,onClick:()=>Bt(Te.id)},E.createElement("i",{className:"iconfont icon-tianjia4 mr5 font14"}),Te.name)})),E.createElement(he.ZP,{type:"primary",style:{marginLeft:"auto",background:"#ffffff",color:"#343636",border:"1px #eeeeee solid"},onClick:()=>je(void 0,null,function*(){var Te,Ot;yield ce.validateFields();const lt=ce.getFieldValue();if(lt.is_md=!0,((Te=_e.filter(te=>te.question.question_title))==null?void 0:Te.length)<=0){et.ZP.info("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u9053\u8BD5\u9898");return}const ae=yield(0,Je.rJ)(Ae(vt(vt({},lt),ut),{poll_questions:_e.filter(te=>{var ee;return(ee=te==null?void 0:te.question)==null?void 0:ee.question_title}).map(te=>te.question)}));ae.status===0&&((0,xt.L9)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u65B0\u5EFA\u95EE\u5377"]),at.history.push(`/classrooms/${ut.coursesId}/poll/${(Ot=ae.data)==null?void 0:Ot.id}/detail?tabs=2`))})},E.createElement("i",{className:"iconfont icon-baocun1 font14 mr5"}),"\u4FDD\u5B58\u95EE\u5377"),E.createElement(he.ZP,{type:"primary",style:{marginLeft:"20px"},onClick:()=>je(void 0,null,function*(){var Te,Ot,lt,ae;yield ce.validateFields();const te=ce.getFieldValue();if(te.is_md=!0,((Te=_e.filter(oe=>oe.question.question_title))==null?void 0:Te.length)<=0){et.ZP.info("\u8BF7\u81F3\u5C11\u6DFB\u52A0\u4E00\u9053\u8BD5\u9898");return}const ee=yield(0,Je.rJ)(Ae(vt(vt({},te),ut),{poll_questions:_e.filter(oe=>{var ue;return(ue=oe==null?void 0:oe.question)==null?void 0:ue.question_title}).map(oe=>oe.question)}));ee.status===0&&((0,xt.L9)(["\u6559\u5B66\u8BFE\u5802","\u95EE\u5377","\u65B0\u5EFA\u95EE\u5377"]),at.history.push(`/classrooms/${ut.coursesId}/poll/${(Ot=ee.data)==null?void 0:Ot.id}/detail?tabs=2`),De({type:"polls/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[(lt=ee.data)==null?void 0:lt.id],types:2,params:{categoryId:(ae=ee.data)==null?void 0:ae.id}}}))})},E.createElement("i",{className:"iconfont icon-fasong font16 mr5"}),"\u53D1\u5E03\u95EE\u5377"))))};var ke=(0,at.connect)(({classroomList:Fe,loading:$e,user:le,globalSetting:ze})=>({classroomList:Fe,globalSetting:ze,user:le,loading:$e.effects}))(ht)},52885:function(nn,zt,re){"use strict";var E=re(59301),at=re(44283),ye=re(6767),et=re(62957),Se=re(25399),Oe=re(77019),Ee=re(5269),Ze=re(62673),Ie=re(58755),he=re(37568),Je=re(82326),xe=re(92216),xt=re(42624),qe=re(70467),Ne=Object.defineProperty,Ve=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Ct=(vt,Ae,je)=>Ae in vt?Ne(vt,Ae,{enumerable:!0,configurable:!0,writable:!0,value:je}):vt[Ae]=je,Dt=(vt,Ae)=>{for(var je in Ae||(Ae={}))We.call(Ae,je)&&Ct(vt,je,Ae[je]);if(Ve)for(var je of Ve(Ae))ct.call(Ae,je)&&Ct(vt,je,Ae[je]);return vt},ft=(vt,Ae)=>{var je={};for(var ht in vt)We.call(vt,ht)&&Ae.indexOf(ht)<0&&(je[ht]=vt[ht]);if(vt!=null&&Ve)for(var ht of Ve(vt))Ae.indexOf(ht)<0&&ct.call(vt,ht)&&(je[ht]=vt[ht]);return je},rt=(vt,Ae,je)=>new Promise((ht,ke)=>{var Fe=ze=>{try{le(je.next(ze))}catch(De){ke(De)}},$e=ze=>{try{le(je.throw(ze))}catch(De){ke(De)}},le=ze=>ze.done?ht(ze.value):Promise.resolve(ze.value).then(Fe,$e);le((je=je.apply(vt,Ae)).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"],Ge=(vt,Ae)=>{var je=vt,{problemset:ht,globalSetting:ke,loading:Fe,dispatch:$e,onRef:le=()=>{},editData:ze,editKey:De,callback:we,polls_status:ut,isadd:me}=je,ce=ft(je,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback","polls_status","isadd"]);const[_e,Et]=(0,E.useState)([]),[pt,ve]=(0,E.useState)(""),[Le,Re]=(0,E.useState)(!0),[wt,bt]=(0,E.useState)(!1),Bt=(0,at.useParams)(),[Te,Ot]=(0,E.useState)(""),[lt,ae]=(0,E.useState)("");(0,E.useEffect)(()=>{var ge,Qe,Ce,Ke,ot,St,gt,Wt,Zt;if(!((ge=ze==null?void 0:ze.question)!=null&&ge.question_title)){Et([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Re(!0),ve(""),bt(!1);return}Ot((Qe=ze==null?void 0:ze.question)==null?void 0:Qe.max_choices),ae((Ce=ze==null?void 0:ze.question)==null?void 0:Ce.min_choices),ve((Ke=ze==null?void 0:ze.question)==null?void 0:Ke.question_title),Re(!!((ot=ze==null?void 0:ze.question)!=null&&ot.is_necessary)),Et(me?(gt=ze==null?void 0:ze.question)==null?void 0:gt.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=ze==null?void 0:ze.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":""}))),bt(!!((Zt=(Wt=ze==null?void 0:ze.question)==null?void 0:Wt.answers)!=null&&Zt.find($t=>$t.answer_text==="\u5176\u5B83")))},[ze]),(0,E.useImperativeHandle)(Ae,()=>({onSave:te}));const te=ge=>rt(void 0,null,function*(){var Qe;if(Te&&!lt||!Te&<){ye.ZP.info('\u53EF\u9009\uFF1A\u6700\u5C0F\u548C\u6700\u5927\u9650\u5236\u987B\u540C\u65F6\u4E3A\u6570\u503C\u6216\u8005\u201C--"');return}if(lt>Te){ye.ZP.info("\u53EF\u9009\u7684\u6700\u5927\u9650\u5236\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u9650\u5236");return}if(!pt)return ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;wt&&(_e[_e.length-1].value="\u5176\u5B83");const Ce=_e.findIndex(St=>!St.value);if(Ce>-1)return ye.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${tt[Ce]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let Ke;const ot={question_title:pt,question_type:2,insert_id:ze.insert_id,is_necessary:Math.ceil(Le),max_choices:Te,min_choices:lt,question_answers:_e.map(St=>St.value)};if((Qe=ze.question)!=null&&Qe.id?Ke=yield(0,xe.IU)(Dt({pollsId:ze.question.id},ot)):me?ge?we("isadd",ot,2):we("isadd",ot):Ke=yield(0,xe.MK)(Dt({pollsId:Bt.categoryId},ot)),!me&&Ke.status===0){ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),we("edit",-1);const St=yield $e({type:"polls/editPolls",payload:Dt({},Bt)});if(ge){ot.answers=ot.question_answers.map(Wt=>({answer_text:Wt}));const gt=[...St.poll_questions];gt.splice(ze==null?void 0:ze.key,0,{insert_id:ze==null?void 0:ze.insert_id,question:Dt({},ot)}).slice(),we("addContinue",[...gt]),we("edit",ze.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=>rt(void 0,null,function*(){var Qe,Ce;switch(ge.id){case"del":let Ke;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 rt(this,null,function*(){var ot;me?we("del",ze.key):(yield(0,xe.jy)({pollsId:(ot=ze==null?void 0:ze.question)==null?void 0:ot.id}),$e({type:"polls/editPolls",payload:Dt({},Bt)}))})}});break;case"up":case"down":yield(0,xe.wh)({pollsId:(Qe=ze==null?void 0:ze.question)==null?void 0:Qe.id,opr:ge.id}),$e({type:"polls/editPolls",payload:Dt({},Bt)});break;case"edit":we("edit",ze.key);break;case"add":we("add",{type:2,key:ze.key,insert_id:(Ce=ze==null?void 0:ze.question)==null?void 0:Ce.id,question_type:2});break}}),ne=()=>{var ge,Qe,Ce,Ke,ot;let St=(ge=ze.question)==null?void 0:ge.min_choices;return E.createElement("aside",null,E.createElement("div",{className:xt.Z.questionType},E.createElement("div",null,ze.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:xt.Z.can_select_count},St?`\u53EF\u9009${(Qe=ze==null?void 0:ze.question)==null?void 0:Qe.min_choices}-${(Ce=ze==null?void 0:ze.question)==null?void 0:Ce.max_choices}\u9879`:null),E.createElement("span",{className:xt.Z.edit_title},E.createElement("span",{style:{marginRight:"10px"}},"\u7B2C",ze.key,"\u9898"),ze.question.question_title)),!me&&ee.map(function(gt,Wt){return gt.id==="up"&&ze.key===1||gt.id==="down"&&ze.key===ze.len?null:E.createElement(Se.Z,{key:Wt,placement:"bottom",title:gt.name},E.createElement("span",{onClick:()=>ue(gt),className:gt.icon}))}),me&&oe.map(function(gt,Wt){return gt.id==="up"&&ze.key===1||gt.id==="down"&&ze.key===ze.len?null:E.createElement(Se.Z,{key:Wt,placement:"bottom",title:gt.name},E.createElement("span",{onClick:()=>ue(gt),className:gt.icon}))})),E.createElement("div",{className:xt.Z.questionChoices},!me&&E.createElement("div",{className:xt.Z.questionChoices},(Ke=ze==null?void 0:ze.question.answers)==null?void 0:Ke.map(function(gt,Wt){return E.createElement(Oe.Z,null,E.createElement(Ee.Z,null,E.createElement(Ze.default,{key:Wt,disabled:!0})),E.createElement(Ee.Z,{flex:"1"},E.createElement("span",{className:"c-black font14 ml10"},gt.answer_text)))})),me&&E.createElement("div",{className:xt.Z.questionChoices},(ot=ze==null?void 0:ze.question.question_answers)==null?void 0:ot.map(function(gt,Wt){return E.createElement(Oe.Z,null,E.createElement(Ee.Z,null,E.createElement(Ze.default,{key:Wt,disabled:!0})),E.createElement(Ee.Z,{flex:"1"},E.createElement("span",{className:"c-black font14 ml10"},gt)))}))))},pe=()=>E.createElement("aside",null,E.createElement("div",{className:xt.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(Ie.Z,{checked:!!Le,onChange:ge=>Re(ge),className:"ml10"}))),E.createElement("p",{className:xt.Z.titleWrap},E.createElement(Oe.Z,{className:xt.Z.choiceWrap,gutter:[12,12]},E.createElement(Ee.Z,null,E.createElement("span",null,"\u6807\u9898")),E.createElement(Ee.Z,{className:xt.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},value:pt,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:ge=>ve(ge.target.value)})))),_e.map((ge,Qe)=>{var Ce;let Ke=_e.length-1;return E.createElement(Oe.Z,{className:xt.Z.choiceWrap,key:Qe,gutter:[12,12]},E.createElement(Ee.Z,null,E.createElement("span",null,wt&&Qe===Ke?"\u5176\u5B83":"\u9009\u9879")),E.createElement(Ee.Z,{className:xt.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},placeholder:(Ce=ge.placeholder)!=null?Ce:"",value:wt&&Qe===Ke?"":_e[Qe].value,disabled:!!ge.disabled,onChange:ot=>{_e[Qe].value=ot.target.value,Et([..._e])}})),E.createElement(Ee.Z,null,Qe>1&&E.createElement(Se.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${xt.Z.deleteIcon} iconfont icon-yichu1`,onClick:()=>{Et(_e.filter((ot,St)=>St!==Qe)),ge.disabled&&bt(!1)}}))))}),E.createElement("p",{className:xt.Z.titleWrap},E.createElement(Oe.Z,{className:xt.Z.choiceWrap,gutter:[12,12]},E.createElement(Ee.Z,null,E.createElement("span",null,"\u53EF\u9009")),E.createElement(Ee.Z,null,E.createElement(Je.default,{value:lt||"",style:{width:183,height:"40px"},onChange:ge=>ae(ge)},E.createElement(Je.default.Option,{value:""},"--"),_e.map(function(ge,Qe){return E.createElement(Je.default.Option,{value:String(Qe+1)},Qe+1)})),E.createElement("span",{className:"ml10 mr10"},"-"),E.createElement(Je.default,{style:{width:183,height:"40px"},value:Te||"",onChange:ge=>Ot(ge)},E.createElement(Je.default.Option,{value:""},"--"),_e.map(function(ge,Qe){return E.createElement(Je.default.Option,{value:String(Qe+1)},Qe+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"}},ut===1&&E.createElement(E.Fragment,null,E.createElement(qe.op,{style:{height:"38px"},onClick:()=>{let ge=[..._e];wt?ge.splice(ge.length-1,0,{value:""}):ge.push({value:""}),Et([...ge])}},"\u65B0\u589E\u9009\u9879"),!wt&&E.createElement(qe.op,{style:{height:"38px",marginLeft:"20px"},onClick:()=>{Et([..._e,{disabled:!0,value:"",placeholder:"\u65E0\u6CD5\u7F16\u8F91\uFF01\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u5F55\u5165"}]),bt(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement("div",{className:xt.Z.close_style,onClick:()=>{var ge;if((ge=ze.question)!=null&&ge.id){const Qe=_e.findIndex(Ce=>!Ce.value);me&&Qe>-1?we("del",ze.key):we("edit",-1)}else we("del",ze.key)}},"\u53D6\u6D88"),E.createElement("div",{className:xt.Z.save_style,onClick:()=>te()},"\u4FDD\u5B58")));return E.createElement("section",{className:xt.Z.wrap},De!==ze.key&&ne(),De===ze.key&&pe())};zt.Z=(0,at.connect)(({problemset:vt,loading:Ae,globalSetting:je})=>({problemset:vt,globalSetting:je,loading:Ae.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Ge))},36892:function(nn,zt,re){"use strict";var E=re(59301),at=re(44283),ye=re(6767),et=re(62957),Se=re(25399),Oe=re(77019),Ee=re(5269),Ze=re(47889),Ie=re(58755),he=re(37568),Je=re(92216),xe=re(42624),xt=re(70467),qe=Object.defineProperty,Ne=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,ct=(Ge,vt,Ae)=>vt in Ge?qe(Ge,vt,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Ge[vt]=Ae,Ct=(Ge,vt)=>{for(var Ae in vt||(vt={}))Ve.call(vt,Ae)&&ct(Ge,Ae,vt[Ae]);if(Ne)for(var Ae of Ne(vt))We.call(vt,Ae)&&ct(Ge,Ae,vt[Ae]);return Ge},Dt=(Ge,vt)=>{var Ae={};for(var je in Ge)Ve.call(Ge,je)&&vt.indexOf(je)<0&&(Ae[je]=Ge[je]);if(Ge!=null&&Ne)for(var je of Ne(Ge))vt.indexOf(je)<0&&We.call(Ge,je)&&(Ae[je]=Ge[je]);return Ae},ft=(Ge,vt,Ae)=>new Promise((je,ht)=>{var ke=le=>{try{$e(Ae.next(le))}catch(ze){ht(ze)}},Fe=le=>{try{$e(Ae.throw(le))}catch(ze){ht(ze)}},$e=le=>le.done?je(le.value):Promise.resolve(le.value).then(ke,Fe);$e((Ae=Ae.apply(Ge,vt)).next())});const rt=["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=(Ge,vt)=>{var Ae=Ge,{problemset:je,globalSetting:ht,loading:ke,dispatch:Fe,onRef:$e=()=>{},editData:le,editKey:ze,callback:De,isadd:we,polls_status:ut}=Ae,me=Dt(Ae,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback","isadd","polls_status"]);const[ce,_e]=(0,E.useState)([]),[Et,pt]=(0,E.useState)(""),[ve,Le]=(0,E.useState)(!0),[Re,wt]=(0,E.useState)(!1),bt=(0,at.useParams)();(0,E.useEffect)(()=>{var ee,oe,ue,ne,pe,ge,Qe;if(!((ee=le==null?void 0:le.question)!=null&&ee.question_title)){_e([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Le(!0),pt(""),wt(!1);return}pt((oe=le==null?void 0:le.question)==null?void 0:oe.question_title),Le(!!((ue=le==null?void 0:le.question)!=null&&ue.is_necessary)),_e(we?(pe=le==null?void 0:le.question)==null?void 0:pe.question_answers.map(Ce=>({value:Ce,disabled:Ce==="\u5176\u5B83",placeholder:Ce==="\u5176\u5B83"?"\u65E0\u6CD5\u7F16\u8F91\uFF0C\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u7F16\u8F91":""})):(ne=le==null?void 0:le.question)==null?void 0:ne.answers.map(Ce=>({value:Ce.answer_text,disabled:Ce.answer_text==="\u5176\u5B83",placeholder:Ce.answer_text==="\u5176\u5B83"?"\u65E0\u6CD5\u7F16\u8F91\uFF0C\u5C06\u7531\u53C2\u4E0E\u7B54\u9898\u7684\u4EBA\u624B\u52A8\u7F16\u8F91":""}))),wt(!!((Qe=(ge=le==null?void 0:le.question)==null?void 0:ge.answers)!=null&&Qe.find(Ce=>Ce.answer_text==="\u5176\u5B83")))},[le]),(0,E.useImperativeHandle)(vt,()=>({onSave:Bt}));const Bt=ee=>ft(void 0,null,function*(){var oe;if(!Et)return ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;Re&&(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 ${rt[ue]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let ne;const pe={question_title:Et,question_type:1,insert_id:le.insert_id,is_necessary:Math.ceil(ve),question_answers:ce.map(ge=>ge.value)};if((oe=le.question)!=null&&oe.id?(De("edit",-1),ne=yield(0,Je.IU)(Ct({pollsId:le.question.id},pe))):we?ee?De("isadd",pe,1):De("isadd",pe):ne=yield(0,Je.MK)(Ct({pollsId:bt.categoryId},pe)),!we){if(ne.status===0){De("edit",-1),ye.ZP.success("\u4FDD\u5B58\u6210\u529F");const ge=yield Fe({type:"polls/editPolls",payload:Ct({},bt)});if(ee){pe.answers=pe.question_answers.map(Ce=>({answer_text:Ce}));const Qe=[...ge.poll_questions];Qe.splice(le==null?void 0:le.key,0,{insert_id:le==null?void 0:le.insert_id,question:Ct({},pe)}).slice(),De("addContinue",[...Qe]),De("edit",le.key+1)}}}}),Te=[{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"}],Ot=[{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"}],lt=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",le.key):(yield(0,Je.jy)({pollsId:(pe=le==null?void 0:le.question)==null?void 0:pe.id}),Fe({type:"polls/editPolls",payload:Ct({},bt)}))})}});break;case"up":case"down":yield(0,Je.wh)({pollsId:(oe=le==null?void 0:le.question)==null?void 0:oe.id,opr:ee.id}),Fe({type:"polls/editPolls",payload:Ct({},bt)});break;case"edit":De("edit",le.key);break;case"add":De("add",{type:1,key:le.key,insert_id:(ue=le==null?void 0:le.question)==null?void 0:ue.id,question_type:1});break}}),ae=()=>{var ee,oe;return E.createElement("aside",null,E.createElement("div",{className:xe.Z.questionType},E.createElement("div",null,le.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:xe.Z.edit_title},E.createElement("span",{style:{marginRight:"10px"}},"\u7B2C",le.key,"\u9898"),le.question.question_title)),!we&&Te.map(function(ue,ne){return ue.id==="up"&&le.key===1||ue.id==="down"&&le.key===le.len?null:E.createElement(Se.Z,{key:ne,placement:"bottom",title:ue.name},E.createElement("span",{onClick:()=>lt(ue),className:ue.icon}))}),we&&Ot.map(function(ue,ne){return ue.id==="up"&&le.key===1||ue.id==="down"&&le.key===le.len?null:E.createElement(Se.Z,{key:ne,placement:"bottom",title:ue.name},E.createElement("span",{onClick:()=>lt(ue),className:ue.icon}))})),!we&&E.createElement("div",{className:xe.Z.questionChoices},(ee=le==null?void 0:le.question.answers)==null?void 0:ee.map(function(ue,ne){return E.createElement(Oe.Z,null,E.createElement(Ee.Z,null,E.createElement(Ze.ZP,{key:ne,disabled:!0})),E.createElement(Ee.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},ue.answer_text)))})),we&&E.createElement("div",{className:xe.Z.questionChoices},(oe=le==null?void 0:le.question.question_answers)==null?void 0:oe.map(function(ue,ne){return E.createElement(Oe.Z,null,E.createElement(Ee.Z,null,E.createElement(Ze.ZP,{key:ne,disabled:!0})),E.createElement(Ee.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},ue)))})))},te=()=>E.createElement("aside",null,E.createElement("div",{className:xe.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(Ie.Z,{checked:!!ve,onChange:ee=>Le(ee),className:"ml10"}))),E.createElement("p",{className:xe.Z.titleWrap},E.createElement(Oe.Z,{className:xe.Z.choiceWrap,gutter:[12,12]},E.createElement(Ee.Z,null,E.createElement("span",null,"\u6807\u9898")),E.createElement(Ee.Z,{className:xe.Z.editorWrap},E.createElement(he.default,{style:{width:"1000px",height:"40px"},value:Et,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:ee=>pt(ee.target.value)})))),ce.map((ee,oe)=>{var ue;let ne=ce.length-1;return E.createElement(Oe.Z,{className:xe.Z.choiceWrap,key:oe,gutter:[12,12]},E.createElement(Ee.Z,null,E.createElement("span",null,Re&&oe===ne?"\u5176\u5B83":"\u9009\u9879")),E.createElement(Ee.Z,{className:xe.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},placeholder:(ue=ee.placeholder)!=null?ue:"",value:Re&&oe===ne?"":ce[oe].value,disabled:!!ee.disabled,onChange:pe=>{ce[oe].value=pe.target.value,_e([...ce])}})),E.createElement(Ee.Z,null,oe>1&&E.createElement(Se.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${xe.Z.deleteIcon} iconfont icon-yichu1`,onClick:()=>{_e(ce.filter((pe,ge)=>ge!==oe)),ee.disabled&&wt(!1)}}))))}),E.createElement("div",{style:{display:"flex",width:"1000px",margin:"20px 0 0 40px"}},ut===1&&E.createElement(E.Fragment,null,E.createElement(xt.op,{style:{height:"38px"},onClick:()=>{let ee=[...ce];Re?ee.splice(ee.length-1,0,{value:""}):ee.push({value:""}),_e([...ee])}},"\u65B0\u589E\u9009\u9879"),!Re&&E.createElement(xt.op,{style:{height:"38px",marginLeft:"20px"},onClick:()=>{_e([...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:xe.Z.close_style,onClick:()=>{var ee;if((ee=le.question)!=null&&ee.id){const oe=ce.findIndex(ue=>!ue.value);we&&oe>-1?De("del",le.key):De("edit",-1)}else De("del",le.key)}},"\u53D6\u6D88"),E.createElement("div",{className:xe.Z.save_style,onClick:()=>Bt()},"\u4FDD\u5B58")));return E.createElement("section",{className:xe.Z.wrap},ze!==le.key&&ae(),ze===le.key&&te())};zt.Z=(0,at.connect)(({problemset:Ge,loading:vt,globalSetting:Ae})=>({problemset:Ge,globalSetting:Ae,loading:vt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(tt))},39613:function(nn,zt,re){"use strict";var E=re(59301),at=re(44283),ye=re(6767),et=re(62957),Se=re(25399),Oe=re(77019),Ee=re(5269),Ze=re(62673),Ie=re(58755),he=re(37568),Je=re(92216),xe=re(42624),xt=Object.defineProperty,qe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,We=(ft,rt,tt)=>rt in ft?xt(ft,rt,{enumerable:!0,configurable:!0,writable:!0,value:tt}):ft[rt]=tt,ct=(ft,rt)=>{for(var tt in rt||(rt={}))Ne.call(rt,tt)&&We(ft,tt,rt[tt]);if(qe)for(var tt of qe(rt))Ve.call(rt,tt)&&We(ft,tt,rt[tt]);return ft},Ct=(ft,rt,tt)=>new Promise((Ge,vt)=>{var Ae=ke=>{try{ht(tt.next(ke))}catch(Fe){vt(Fe)}},je=ke=>{try{ht(tt.throw(ke))}catch(Fe){vt(Fe)}},ht=ke=>ke.done?Ge(ke.value):Promise.resolve(ke.value).then(Ae,je);ht((tt=tt.apply(ft,rt)).next())});const Dt=({problemset:ft,globalSetting:rt,loading:tt,dispatch:Ge,onRef:vt=()=>{},editData:Ae,polls_status:je,editKey:ht,isadd:ke,callback:Fe},$e)=>{const[le,ze]=(0,E.useState)(""),[De,we]=(0,E.useState)(!0),ut=(0,at.useParams)();(0,E.useEffect)(()=>{var Le,Re,wt;if(!((Le=Ae==null?void 0:Ae.question)!=null&&Le.question_title)){we(!0),ze("");return}ze((Re=Ae==null?void 0:Ae.question)==null?void 0:Re.question_title),we(!!((wt=Ae==null?void 0:Ae.question)!=null&&wt.is_necessary))},[Ae]),(0,E.useImperativeHandle)($e,()=>({onSave:me}));const me=Le=>Ct(void 0,null,function*(){var Re;if(!le)return ye.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;let wt;const bt={question_title:le,question_type:3,insert_id:Ae.insert_id,is_necessary:Math.ceil(De)};if((Re=Ae.question)!=null&&Re.id?wt=yield(0,Je.IU)(ct({pollsId:Ae.question.id},bt)):ke?Le?Fe("isadd",bt,3):Fe("isadd",bt):wt=yield(0,Je.MK)(ct({pollsId:ut.categoryId},bt)),!ke&&wt.status===0){ye.ZP.success("\u4FDD\u5B58\u6210\u529F"),Fe("edit",-1);const Bt=yield Ge({type:"polls/editPolls",payload:ct({},ut)});if(Le){const Te=[...Bt.poll_questions];Te.splice(Ae==null?void 0:Ae.key,0,{insert_id:Ae==null?void 0:Ae.insert_id,question:ct({},bt)}).slice(),Fe("addContinue",[...Te]),Fe("edit",Ae.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"}],_e=[{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"}],Et=Le=>Ct(void 0,null,function*(){var Re,wt;switch(Le.id){case"del":let bt;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 Ct(this,null,function*(){var Bt;ke?Fe("del",Ae.key):(yield(0,Je.jy)({pollsId:(Bt=Ae==null?void 0:Ae.question)==null?void 0:Bt.id}),Ge({type:"polls/editPolls",payload:ct({},ut)}))})}});break;case"up":case"down":yield(0,Je.wh)({pollsId:(Re=Ae==null?void 0:Ae.question)==null?void 0:Re.id,opr:Le.id}),Ge({type:"polls/editPolls",payload:ct({},ut)});break;case"edit":Fe("edit",Ae.key);break;case"add":Fe("add",{type:3,key:Ae.key,insert_id:(wt=Ae==null?void 0:Ae.question)==null?void 0:wt.id,question_type:3});break}}),pt=()=>{var Le;return E.createElement("aside",null,E.createElement("div",{className:xe.Z.questionType},E.createElement("div",null,Ae.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:xe.Z.edit_title},E.createElement("span",{style:{marginRight:"10px"}},"\u7B2C",Ae.key,"\u9898"),Ae.question.question_title)),!ke&&ce.map(function(Re,wt){return Re.id==="up"&&Ae.key===1||Re.id==="down"&&Ae.key===Ae.len?null:E.createElement(Se.Z,{key:wt,placement:"bottom",title:Re.name},E.createElement("span",{onClick:()=>Et(Re),className:Re.icon}))}),ke&&_e.map(function(Re,wt){return Re.id==="up"&&Ae.key===1||Re.id==="down"&&Ae.key===Ae.len?null:E.createElement(Se.Z,{key:wt,placement:"bottom",title:Re.name},E.createElement("span",{onClick:()=>Et(Re),className:Re.icon}))})),E.createElement("div",{className:xe.Z.questionChoices},(Le=Ae==null?void 0:Ae.question.answers)==null?void 0:Le.map(function(Re,wt){return E.createElement(Oe.Z,null,E.createElement(Ee.Z,null,E.createElement(Ze.default,{key:wt,disabled:!0},E.createElement("span",{className:"c-black font14"},Re.answer_text))))})))},ve=()=>E.createElement("aside",null,E.createElement("div",{className:xe.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(Ie.Z,{checked:!!De,onChange:Le=>we(Le),className:"ml10"}))),E.createElement("p",{className:xe.Z.titleWrap},E.createElement(Oe.Z,{className:xe.Z.choiceWrap,gutter:[12,12]},E.createElement(Ee.Z,null,E.createElement("span",null,"\u6807\u9898")),E.createElement(Ee.Z,{className:xe.Z.editorWrap,flex:"1"},E.createElement(he.default,{style:{width:"1000px",height:"40px"},value:le,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:Le=>ze(Le.target.value)})))),E.createElement("div",{style:{display:"flex",width:"1000px",margin:"20px 0 0 40px"}},E.createElement("div",{className:xe.Z.close_style,onClick:()=>{var Le;(Le=Ae.question)!=null&&Le.id?ke?le?Fe("edit",-1):Fe("del",Ae.key):Fe("edit",-1):Fe("del",Ae.key)}},"\u53D6\u6D88"),E.createElement("div",{className:xe.Z.save_style,onClick:()=>me()},"\u4FDD\u5B58")));return E.createElement("section",{className:xe.Z.wrap},ht!==Ae.key&&pt(),ht===Ae.key&&ve())};zt.Z=(0,at.connect)(({problemset:ft,loading:rt,globalSetting:tt})=>({problemset:ft,globalSetting:tt,loading:rt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Dt))},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 Dt},jb:function(){return xe}});var E=re(32834),at=re.n(E),ye=re(11690),et=re.n(ye);let Se=1;function Oe(Ae,je){const ht=Ae.match(/^(\s+)(?:```)/);if(ht===null)return je;const ke=ht[1];return je.split(`
|
|
|
`).map(Fe=>{const $e=Fe.match(/^\s+/);if($e===null)return Fe;const[le]=$e;return le.length>=ke.length?Fe.slice(ke.length):Fe}).join(`
|
|
|
`)}let Ee=[],Ze=["<ul>"];const Ie=new(at()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Je(){Ee.length=0,Ze=["<ul>"]}const xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function xt(Ae,je,ht,ke){if(je>=Ae.length||Ae[je].level<=ht)return je;var Fe=Ae[je];ke.push("<li><a href='#"+Se+Fe.anchor+"'>"+Fe.text+"</a>"),je++;var $e=[];return je=xt(Ae,je,Fe.level,$e),$e.length>0&&(ke.push("<ul>"),$e.forEach(function(le){ke.push(le)}),ke.push("</ul>")),ke.push("</li>"),je=xt(Ae,je,ht,ke),je}function qe(){return xt(Ee,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const Ne={heading(Ae){const je=he.exec(Ae);if(Se+=1,je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},fences(Ae){const je=this.rules.block.fences.exec(Ae);if(je){const ht=je[0];let ke=Oe(ht,je[3]||"");const Fe=je[2]?je[2].trim():je[2];if(["latex","katex","math"].indexOf(Fe)>=0){const $e=ct(),le=ke;ke=$e,Ct[$e]={type:"block",expression:le}}return{type:"code",raw:ht,lang:Fe,text:ke}}}},Ve=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let We=0;const ct=()=>`__special_katext_id_${We++}__`;let Ct={};function Dt(){return Ct}function ft(){We=0,Ct={}}function rt(Ae){return Ae=Ae.replace(Ve,(je,ht)=>{const ke=ct();return Ct[ke]={type:"inline",expression:ht},ke}),Ae}const tt=Ie.listitem;Ie.listitem=function(Ae){return tt(rt(Ae))};const Ge=Ie.paragraph;Ie.paragraph=function(Ae){return Ge(rt(Ae))};const vt=Ie.tablecell;Ie.tablecell=function(Ae,je){return vt(rt(Ae),je)},Ie.code=function(Ae,je,ht){const ke=(je||"").match(/\S*/)[0];return ke?["latex","katex","math"].indexOf(ke)>=0?`<p class='editormd-tex'>${Ae}</p>`:`<pre class="prettyprint linenums"><code class="language-${je}">${ht?Ae:(0,ye.escape)(Ae,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ht?Ae:(0,ye.escape)(Ae,!0))+"</code></pre>"},Ie.heading=function(Ae,je,ht){let ke=this.options.headerPrefix+ht.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:ke,level:je,text:Ae}),"<h"+je+' id="'+Se+ke+'">'+Ae+"</h"+je+">"},at().setOptions({silent:!0,gfm:!0,pedantic:!1}),at().use({tokenizer:Ne,renderer:Ie}),zt.ZP=at()},86013:function(nn,zt,re){"use strict";var E=re(59301),at=re(19248);const ye=et=>{let Se;return typeof et=="object"&&(et!=null&&et.clearIcon)?Se=et:et&&(Se={clearIcon:E.createElement(at.Z,null)}),Se};zt.Z=ye},91882:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return De}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(11592),Se=re(26112),Oe=re(22703),Ee=re(48755),Ze=re(84105),Ie=re(19563);const he=we=>{let{children:ut}=we;const{getPrefixCls:me}=E.useContext(Ee.E_),ce=me("breadcrumb");return E.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},ut===""?ut:ut||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var Je=he,xe=function(we,ut){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ut.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ce=Object.getOwnPropertySymbols(we);_e<ce.length;_e++)ut.indexOf(ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[_e])&&(me[ce[_e]]=we[ce[_e]]);return me};function xt(we,ut){if(we.title===void 0||we.title===null)return null;const me=Object.keys(ut).join("|");return typeof we.title=="object"?we.title:String(we.title).replace(new RegExp(`:(${me})`,"g"),(ce,_e)=>ut[_e]||ce)}function qe(we,ut,me,ce){if(me==null)return null;const{className:_e,onClick:Et}=ut,pt=xe(ut,["className","onClick"]),ve=Object.assign(Object.assign({},(0,Se.Z)(pt,{data:!0,aria:!0})),{onClick:Et});return ce!==void 0?E.createElement("a",Object.assign({},ve,{className:ye()(`${we}-link`,_e),href:ce}),me):E.createElement("span",Object.assign({},ve,{className:ye()(`${we}-link`,_e)}),me)}function Ne(we,ut){return(ce,_e,Et,pt,ve)=>{if(ut)return ut(ce,_e,Et,pt);const Le=xt(ce,_e);return qe(we,ce,Le,ve)}}var Ve=function(we,ut){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ut.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ce=Object.getOwnPropertySymbols(we);_e<ce.length;_e++)ut.indexOf(ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[_e])&&(me[ce[_e]]=we[ce[_e]]);return me};const We=we=>{const{prefixCls:ut,separator:me="/",children:ce,menu:_e,overlay:Et,dropdownProps:pt,href:ve}=we,Re=(wt=>{if(_e||Et){const bt=Object.assign({},pt);if(_e){const Bt=_e||{},{items:Te}=Bt,Ot=Ve(Bt,["items"]);bt.menu=Object.assign(Object.assign({},Ot),{items:Te==null?void 0:Te.map((lt,ae)=>{var{key:te,title:ee,label:oe,path:ue}=lt,ne=Ve(lt,["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 Et&&(bt.overlay=Et);return E.createElement(Ie.Z,Object.assign({placement:"bottom"},bt),E.createElement("span",{className:`${ut}-overlay-link`},wt,E.createElement(Ze.Z,null)))}return wt})(ce);return Re!=null?E.createElement(E.Fragment,null,E.createElement("li",null,Re),me&&E.createElement(Je,null,me)):null},ct=we=>{const{prefixCls:ut,children:me,href:ce}=we,_e=Ve(we,["prefixCls","children","href"]),{getPrefixCls:Et}=E.useContext(Ee.E_),pt=Et("breadcrumb",ut);return E.createElement(We,Object.assign({},_e,{prefixCls:pt}),qe(pt,_e,me,ce))};ct.__ANT_BREADCRUMB_ITEM=!0;var Ct=ct,Dt=re(36237),ft=re(63356),rt=re(16931),tt=re(51636);const Ge=we=>{const{componentCls:ut,iconCls:me,calc:ce}=we;return{[ut]: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,Dt.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},[`${ut}-separator`]:{marginInline:we.separatorMargin,color:we.separatorColor},[`${ut}-link`]:{[`
|
|
|
> ${me} + span,
|
|
|
> ${me} + a
|
|
|
`]:{marginInlineStart:we.marginXXS}},[`${ut}-overlay-link`]:{borderRadius:we.borderRadiusSM,height:we.fontHeight,display:"inline-block",padding:`0 ${(0,Dt.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"}})}},vt=we=>({itemColor:we.colorTextDescription,lastItemColor:we.colorText,iconFontSize:we.fontSize,linkColor:we.colorTextDescription,linkHoverColor:we.colorText,separatorColor:we.colorTextDescription,separatorMargin:we.marginXS});var Ae=(0,rt.I$)("Breadcrumb",we=>{const ut=(0,tt.mergeToken)(we,{});return Ge(ut)},vt),je=function(we,ut){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ut.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ce=Object.getOwnPropertySymbols(we);_e<ce.length;_e++)ut.indexOf(ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[_e])&&(me[ce[_e]]=we[ce[_e]]);return me};function ht(we){const{breadcrumbName:ut,children:me}=we,ce=je(we,["breadcrumbName","children"]),_e=Object.assign({title:ut},ce);return me&&(_e.menu={items:me.map(Et=>{var{breadcrumbName:pt}=Et,ve=je(Et,["breadcrumbName"]);return Object.assign(Object.assign({},ve),{title:pt})})}),_e}function ke(we,ut){return(0,E.useMemo)(()=>we||(ut?ut.map(ht):null),[we,ut])}var Fe=function(we,ut){var me={};for(var ce in we)Object.prototype.hasOwnProperty.call(we,ce)&&ut.indexOf(ce)<0&&(me[ce]=we[ce]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ce=Object.getOwnPropertySymbols(we);_e<ce.length;_e++)ut.indexOf(ce[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ce[_e])&&(me[ce[_e]]=we[ce[_e]]);return me};const $e=(we,ut)=>{if(ut===void 0)return ut;let me=(ut||"").replace(/^\//,"");return Object.keys(we).forEach(ce=>{me=me.replace(`:${ce}`,we[ce])}),me},le=we=>{const{prefixCls:ut,separator:me="/",style:ce,className:_e,rootClassName:Et,routes:pt,items:ve,children:Le,itemRender:Re,params:wt={}}=we,bt=Fe(we,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Bt,direction:Te,breadcrumb:Ot}=E.useContext(Ee.E_);let lt;const ae=Bt("breadcrumb",ut),[te,ee,oe]=Ae(ae),ue=ke(ve,pt),ne=Ne(ae,Re);if(ue&&ue.length>0){const Qe=[],Ce=ve||pt;lt=ue.map((Ke,ot)=>{const{path:St,key:gt,type:Wt,menu:Zt,overlay:$t,onClick:tn,className:Xt,separator:rn,dropdownProps:kt}=Ke,Yt=$e(wt,St);Yt!==void 0&&Qe.push(Yt);const Vt=gt!=null?gt:ot;if(Wt==="separator")return E.createElement(Je,{key:Vt},rn);const He={},dt=ot===ue.length-1;Zt?He.menu=Zt:$t&&(He.overlay=$t);let{href:Nt}=Ke;return Qe.length&&Yt!==void 0&&(Nt=`#/${Qe.join("/")}`),E.createElement(We,Object.assign({key:Vt},He,(0,Se.Z)(Ke,{data:!0,aria:!0}),{className:Xt,dropdownProps:kt,href:Nt,separator:dt?"":me,onClick:tn,prefixCls:ae}),ne(Ke,wt,Ce,Qe,Nt))})}else if(Le){const Qe=(0,et.Z)(Le).length;lt=(0,et.Z)(Le).map((Ce,Ke)=>{if(!Ce)return Ce;const ot=Ke===Qe-1;return(0,Oe.Tm)(Ce,{separator:ot?"":me,key:Ke})})}const pe=ye()(ae,Ot==null?void 0:Ot.className,{[`${ae}-rtl`]:Te==="rtl"},_e,Et,ee,oe),ge=Object.assign(Object.assign({},Ot==null?void 0:Ot.style),ce);return te(E.createElement("nav",Object.assign({className:pe,style:ge},bt),E.createElement("ol",null,lt)))};le.Item=Ct,le.Separator=Je;var ze=le,De=ze},62673:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return Ae}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(16632),Se=re(8654),Oe=re(12919),Ee=re(63872),Ze=re(48755),Ie=re(2171),he=re(83397),Je=re(56553),xt=E.createContext(null),qe=re(36170),Ne=re(74632),Ve=function(je,ht){var ke={};for(var Fe in je)Object.prototype.hasOwnProperty.call(je,Fe)&&ht.indexOf(Fe)<0&&(ke[Fe]=je[Fe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Fe=Object.getOwnPropertySymbols(je);$e<Fe.length;$e++)ht.indexOf(Fe[$e])<0&&Object.prototype.propertyIsEnumerable.call(je,Fe[$e])&&(ke[Fe[$e]]=je[Fe[$e]]);return ke};const We=(je,ht)=>{var ke;const{prefixCls:Fe,className:$e,rootClassName:le,children:ze,indeterminate:De=!1,style:we,onMouseEnter:ut,onMouseLeave:me,skipGroup:ce=!1,disabled:_e}=je,Et=Ve(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pt,direction:ve,checkbox:Le}=E.useContext(Ze.E_),Re=E.useContext(xt),{isFormItemInput:wt}=E.useContext(Je.aM),bt=E.useContext(Ie.Z),Bt=(ke=(Re==null?void 0:Re.disabled)||_e)!==null&&ke!==void 0?ke:bt,Te=E.useRef(Et.value),Ot=E.useRef(null),lt=(0,Se.sQ)(ht,Ot);E.useEffect(()=>{Re==null||Re.registerValue(Et.value)},[]),E.useEffect(()=>{if(!ce)return Et.value!==Te.current&&(Re==null||Re.cancelValue(Te.current),Re==null||Re.registerValue(Et.value),Te.current=Et.value),()=>Re==null?void 0:Re.cancelValue(Et.value)},[Et.value]),E.useEffect(()=>{var Ke;!((Ke=Ot.current)===null||Ke===void 0)&&Ke.input&&(Ot.current.input.indeterminate=De)},[De]);const ae=pt("checkbox",Fe),te=(0,he.Z)(ae),[ee,oe,ue]=(0,qe.ZP)(ae,te),ne=Object.assign({},Et);Re&&!ce&&(ne.onChange=function(){Et.onChange&&Et.onChange.apply(Et,arguments),Re.toggleOption&&Re.toggleOption({label:ze,value:Et.value})},ne.name=Re.name,ne.checked=Re.value.includes(Et.value));const pe=ye()(`${ae}-wrapper`,{[`${ae}-rtl`]:ve==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Bt,[`${ae}-wrapper-in-form-item`]:wt},Le==null?void 0:Le.className,$e,le,ue,te,oe),ge=ye()({[`${ae}-indeterminate`]:De},Ee.A,oe),[Qe,Ce]=(0,Ne.Z)(ne.onClick);return ee(E.createElement(Oe.Z,{component:"Checkbox",disabled:Bt},E.createElement("label",{className:pe,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),we),onMouseEnter:ut,onMouseLeave:me,onClick:Qe},E.createElement(et.Z,Object.assign({},ne,{onClick:Ce,prefixCls:ae,className:ge,disabled:Bt,ref:lt})),ze!==void 0&&E.createElement("span",{className:`${ae}-label`},ze))))};var Ct=E.forwardRef(We),Dt=re(77654),ft=re(2738),rt=function(je,ht){var ke={};for(var Fe in je)Object.prototype.hasOwnProperty.call(je,Fe)&&ht.indexOf(Fe)<0&&(ke[Fe]=je[Fe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Fe=Object.getOwnPropertySymbols(je);$e<Fe.length;$e++)ht.indexOf(Fe[$e])<0&&Object.prototype.propertyIsEnumerable.call(je,Fe[$e])&&(ke[Fe[$e]]=je[Fe[$e]]);return ke},Ge=E.forwardRef((je,ht)=>{const{defaultValue:ke,children:Fe,options:$e=[],prefixCls:le,className:ze,rootClassName:De,style:we,onChange:ut}=je,me=rt(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:_e}=E.useContext(Ze.E_),[Et,pt]=E.useState(me.value||ke||[]),[ve,Le]=E.useState([]);E.useEffect(()=>{"value"in me&&pt(me.value||[])},[me.value]);const Re=E.useMemo(()=>$e.map(ge=>typeof ge=="string"||typeof ge=="number"?{label:ge,value:ge}:ge),[$e]),wt=ge=>{Le(Qe=>Qe.filter(Ce=>Ce!==ge))},bt=ge=>{Le(Qe=>[].concat((0,Dt.Z)(Qe),[ge]))},Bt=ge=>{const Qe=Et.indexOf(ge.value),Ce=(0,Dt.Z)(Et);Qe===-1?Ce.push(ge.value):Ce.splice(Qe,1),"value"in me||pt(Ce),ut==null||ut(Ce.filter(Ke=>ve.includes(Ke)).sort((Ke,ot)=>{const St=Re.findIndex(Wt=>Wt.value===Ke),gt=Re.findIndex(Wt=>Wt.value===ot);return St-gt}))},Te=ce("checkbox",le),Ot=`${Te}-group`,lt=(0,he.Z)(Te),[ae,te,ee]=(0,qe.ZP)(Te,lt),oe=(0,ft.Z)(me,["value","disabled"]),ue=$e.length?Re.map(ge=>E.createElement(Ct,{prefixCls:Te,key:ge.value.toString(),disabled:"disabled"in ge?ge.disabled:me.disabled,value:ge.value,checked:Et.includes(ge.value),onChange:ge.onChange,className:`${Ot}-item`,style:ge.style,title:ge.title,id:ge.id,required:ge.required},ge.label)):Fe,ne={toggleOption:Bt,value:Et,disabled:me.disabled,name:me.name,registerValue:bt,cancelValue:wt},pe=ye()(Ot,{[`${Ot}-rtl`]:_e==="rtl"},ze,De,ee,lt,te);return ae(E.createElement("div",Object.assign({className:pe,style:we},oe,{ref:ht}),E.createElement(xt.Provider,{value:ne},ue)))});const vt=Ct;vt.Group=Ge,vt.__ANT_CHECKBOX=!0;var Ae=vt},36170:function(nn,zt,re){"use strict";re.d(zt,{C2:function(){return Oe}});var E=re(36237),at=re(63356),ye=re(51636),et=re(16931);const Se=Ee=>{const{checkboxCls:Ze}=Ee,Ie=`${Ze}-wrapper`;return[{[`${Ze}-group`]:Object.assign(Object.assign({},(0,at.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,at.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ze]:Object.assign(Object.assign({},(0,at.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${Ze}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ze}-inner`]:Object.assign({},(0,at.oN)(Ee))},[`${Ze}-inner`]:{boxSizing:"border-box",display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${(0,E.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ee.calc(Ee.checkboxSize).div(14).mul(5).equal(),height:Ee.calc(Ee.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(Ee.lineWidthBold)} solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
|
|
|
${Ie}:not(${Ie}-disabled),
|
|
|
${Ze}:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{borderColor:Ee.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${Ze}-checked:not(${Ze}-disabled) ${Ze}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ze}-checked:not(${Ze}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${Ze}-checked`]:{[`${Ze}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
|
|
|
${Ie}-checked:not(${Ie}-disabled),
|
|
|
${Ze}-checked:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[Ze]:{"&-indeterminate":{[`${Ze}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.calc(Ee.fontSizeLG).div(2).equal(),height:Ee.calc(Ee.fontSizeLG).div(2).equal(),backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ze}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorPrimary} !important`}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${Ze}-disabled`]:{[`&, ${Ze}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ze}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${Ze}-indeterminate ${Ze}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function Oe(Ee,Ze){const Ie=(0,ye.mergeToken)(Ze,{checkboxCls:`.${Ee}`,checkboxSize:Ze.controlInteractiveSize});return[Se(Ie)]}zt.ZP=(0,et.I$)("Checkbox",(Ee,Ze)=>{let{prefixCls:Ie}=Ze;return[Oe(Ie,Ee)]})},38406:function(nn,zt,re){"use strict";var E=re(59301),at=re(48755),ye=re(584);const et=Se=>{const{componentName:Oe}=Se,{getPrefixCls:Ee}=(0,E.useContext)(at.E_),Ze=Ee("empty");switch(Oe){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),at=re(92310),ye=re.n(at),et=re(48755),Se=re(36237),Oe=re(63356),Ee=re(16931),Ze=re(51636);const Ie=Ne=>{const{componentCls:Ve,sizePaddingEdgeHorizontal:We,colorSplit:ct,lineWidth:Ct,textPaddingInline:Dt,orientationMargin:ft,verticalMarginInline:rt}=Ne;return{[Ve]:Object.assign(Object.assign({},(0,Oe.Wf)(Ne)),{borderBlockStart:`${(0,Se.unit)(Ct)} solid ${ct}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:rt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Se.unit)(Ct)} solid ${ct}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Se.unit)(Ne.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ve}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Se.unit)(Ne.dividerHorizontalWithTextGutterMargin)} 0`,color:Ne.colorTextHeading,fontWeight:500,fontSize:Ne.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ct}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Se.unit)(Ct)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ve}-with-text-start`]:{"&::before":{width:`calc(${ft} * 100%)`},"&::after":{width:`calc(100% - ${ft} * 100%)`}},[`&-horizontal${Ve}-with-text-end`]:{"&::before":{width:`calc(100% - ${ft} * 100%)`},"&::after":{width:`calc(${ft} * 100%)`}},[`${Ve}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Dt},"&-dashed":{background:"none",borderColor:ct,borderStyle:"dashed",borderWidth:`${(0,Se.unit)(Ct)} 0 0`},[`&-horizontal${Ve}-with-text${Ve}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ve}-dashed`]:{borderInlineStartWidth:Ct,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:ct,borderStyle:"dotted",borderWidth:`${(0,Se.unit)(Ct)} 0 0`},[`&-horizontal${Ve}-with-text${Ve}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ve}-dotted`]:{borderInlineStartWidth:Ct,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ve}-with-text`]:{color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize},[`&-horizontal${Ve}-with-text-start${Ve}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ve}-inner-text`]:{paddingInlineStart:We}},[`&-horizontal${Ve}-with-text-end${Ve}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ve}-inner-text`]:{paddingInlineEnd:We}}})}},he=Ne=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ne.marginXS});var Je=(0,Ee.I$)("Divider",Ne=>{const Ve=(0,Ze.mergeToken)(Ne,{dividerHorizontalWithTextGutterMargin:Ne.margin,dividerHorizontalGutterMargin:Ne.marginLG,sizePaddingEdgeHorizontal:0});return[Ie(Ve)]},he,{unitless:{orientationMargin:!0}}),xe=function(Ne,Ve){var We={};for(var ct in Ne)Object.prototype.hasOwnProperty.call(Ne,ct)&&Ve.indexOf(ct)<0&&(We[ct]=Ne[ct]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,ct=Object.getOwnPropertySymbols(Ne);Ct<ct.length;Ct++)Ve.indexOf(ct[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ct[Ct])&&(We[ct[Ct]]=Ne[ct[Ct]]);return We},qe=Ne=>{const{getPrefixCls:Ve,direction:We,className:ct,style:Ct}=(0,et.dj)("divider"),{prefixCls:Dt,type:ft="horizontal",orientation:rt="center",orientationMargin:tt,className:Ge,rootClassName:vt,children:Ae,dashed:je,variant:ht="solid",plain:ke,style:Fe}=Ne,$e=xe(Ne,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),le=Ve("divider",Dt),[ze,De,we]=Je(le),ut=!!Ae,me=E.useMemo(()=>rt==="left"?We==="rtl"?"end":"start":rt==="right"?We==="rtl"?"start":"end":rt,[We,rt]),ce=me==="start"&&tt!=null,_e=me==="end"&&tt!=null,Et=ye()(le,ct,De,we,`${le}-${ft}`,{[`${le}-with-text`]:ut,[`${le}-with-text-${me}`]:ut,[`${le}-dashed`]:!!je,[`${le}-${ht}`]:ht!=="solid",[`${le}-plain`]:!!ke,[`${le}-rtl`]:We==="rtl",[`${le}-no-default-orientation-margin-start`]:ce,[`${le}-no-default-orientation-margin-end`]:_e},Ge,vt),pt=E.useMemo(()=>typeof tt=="number"?tt:/^\d+$/.test(tt)?Number(tt):tt,[tt]),ve={marginInlineStart:ce?pt:void 0,marginInlineEnd:_e?pt:void 0};return ze(E.createElement("div",Object.assign({className:Et,style:Object.assign(Object.assign({},Ct),Fe)},$e,{role:"separator"}),Ae&&ft!=="vertical"&&E.createElement("span",{className:`${le}-inner-text`,style:ve},Ae)))}},36207:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Qe}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(85899),Se=re(72190),Oe=re(43403),Ee=re(34280),Ze=E.createContext(null),Ie=E.createContext({}),he=Ze,Je=re(18642),xe=re(60499),xt=re(77900),qe=re(10228),Ne=re(26112),Ve=re(42244),We=re(8654),ct=["prefixCls","className","containerRef"],Ct=function(Ke){var ot=Ke.prefixCls,St=Ke.className,gt=Ke.containerRef,Wt=(0,Ve.Z)(Ke,ct),Zt=E.useContext(Ie),$t=Zt.panel,tn=(0,We.x1)($t,gt);return E.createElement("div",(0,xe.Z)({className:ye()("".concat(ot,"-content"),St),role:"dialog",ref:tn},(0,Ne.Z)(Ke,{aria:!0}),{"aria-modal":"true"},Wt))},Dt=Ct,ft=re(48736);function rt(Ce){return typeof Ce=="string"&&String(Number(Ce))===Ce?((0,ft.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ce)):Ce}function tt(Ce){warning(!("wrapperClassName"in Ce),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ce.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ge={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function vt(Ce,Ke){var ot,St,gt,Wt=Ce.prefixCls,Zt=Ce.open,$t=Ce.placement,tn=Ce.inline,Xt=Ce.push,rn=Ce.forceRender,kt=Ce.autoFocus,Yt=Ce.keyboard,Vt=Ce.classNames,He=Ce.rootClassName,dt=Ce.rootStyle,Nt=Ce.zIndex,Ht=Ce.className,Be=Ce.id,nt=Ce.style,yt=Ce.motion,Mt=Ce.width,Ut=Ce.height,ln=Ce.children,In=Ce.mask,Pn=Ce.maskClosable,on=Ce.maskMotion,bn=Ce.maskClassName,dn=Ce.maskStyle,Gt=Ce.afterOpenChange,At=Ce.onClose,Rt=Ce.onMouseEnter,It=Ce.onMouseOver,en=Ce.onMouseLeave,Jt=Ce.onClick,qt=Ce.onKeyDown,gn=Ce.onKeyUp,wn=Ce.styles,Sn=Ce.drawerRender,Mn=E.useRef(),kn=E.useRef(),Wn=E.useRef();E.useImperativeHandle(Ke,function(){return Mn.current});var An=function(Ft){var Lt=Ft.keyCode,fn=Ft.shiftKey;switch(Lt){case qe.Z.TAB:{if(Lt===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:{At&&Yt&&(Ft.stopPropagation(),At(Ft));break}}};E.useEffect(function(){if(Zt&&kt){var Qt;(Qt=Mn.current)===null||Qt===void 0||Qt.focus({preventScroll:!0})}},[Zt]);var Tt=E.useState(!1),Kt=(0,Se.Z)(Tt,2),xn=Kt[0],hn=Kt[1],Ue=E.useContext(he),st;typeof Xt=="boolean"?st=Xt?{}:{distance:0}:st=Xt||{};var Pe=(ot=(St=(gt=st)===null||gt===void 0?void 0:gt.distance)!==null&&St!==void 0?St:Ue==null?void 0:Ue.pushDistance)!==null&&ot!==void 0?ot:180,Xe=E.useMemo(function(){return{pushDistance:Pe,push:function(){hn(!0)},pull:function(){hn(!1)}}},[Pe]);E.useEffect(function(){if(Zt){var Qt;Ue==null||(Qt=Ue.push)===null||Qt===void 0||Qt.call(Ue)}else{var Ft;Ue==null||(Ft=Ue.pull)===null||Ft===void 0||Ft.call(Ue)}},[Zt]),E.useEffect(function(){return function(){var Qt;Ue==null||(Qt=Ue.pull)===null||Qt===void 0||Qt.call(Ue)}},[]);var Me=In&&E.createElement(xt.default,(0,xe.Z)({key:"mask"},on,{visible:Zt}),function(Qt,Ft){var Lt=Qt.className,fn=Qt.style;return E.createElement("div",{className:ye()("".concat(Wt,"-mask"),Lt,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?At:void 0,ref:Ft})}),Ye=typeof yt=="function"?yt($t):yt,Pt={};if(xn&&Pe)switch($t){case"top":Pt.transform="translateY(".concat(Pe,"px)");break;case"bottom":Pt.transform="translateY(".concat(-Pe,"px)");break;case"left":Pt.transform="translateX(".concat(Pe,"px)");break;default:Pt.transform="translateX(".concat(-Pe,"px)");break}$t==="left"||$t==="right"?Pt.width=rt(Mt):Pt.height=rt(Ut);var an={onMouseEnter:Rt,onMouseOver:It,onMouseLeave:en,onClick:Jt,onKeyDown:qt,onKeyUp:gn},un=E.createElement(xt.default,(0,xe.Z)({key:"panel"},Ye,{visible:Zt,forceRender:rn,onVisibleChanged:function(Ft){Gt==null||Gt(Ft)},removeOnLeave:!1,leavedClassName:"".concat(Wt,"-content-wrapper-hidden")}),function(Qt,Ft){var Lt=Qt.className,fn=Qt.style,Tn=E.createElement(Dt,(0,xe.Z)({id:Be,containerRef:Ft,prefixCls:Wt,className:ye()(Ht,Vt==null?void 0:Vt.content),style:(0,et.Z)((0,et.Z)({},nt),wn==null?void 0:wn.content)},(0,Ne.Z)(Ce,{aria:!0}),an),ln);return E.createElement("div",(0,xe.Z)({className:ye()("".concat(Wt,"-content-wrapper"),Vt==null?void 0:Vt.wrapper,Lt),style:(0,et.Z)((0,et.Z)((0,et.Z)({},Pt),fn),wn==null?void 0:wn.wrapper)},(0,Ne.Z)(Ce,{data:!0})),Sn?Sn(Tn):Tn)}),vn=(0,et.Z)({},dt);return Nt&&(vn.zIndex=Nt),E.createElement(he.Provider,{value:Xe},E.createElement("div",{className:ye()(Wt,"".concat(Wt,"-").concat($t),He,(0,Je.Z)((0,Je.Z)({},"".concat(Wt,"-open"),Zt),"".concat(Wt,"-inline"),tn)),style:vn,tabIndex:-1,ref:Mn,onKeyDown:An},Me,E.createElement("div",{tabIndex:0,ref:kn,style:Ge,"aria-hidden":"true","data-sentinel":"start"}),un,E.createElement("div",{tabIndex:0,ref:Wn,style:Ge,"aria-hidden":"true","data-sentinel":"end"})))}var Ae=E.forwardRef(vt),je=Ae,ht=function(Ke){var ot=Ke.open,St=ot===void 0?!1:ot,gt=Ke.prefixCls,Wt=gt===void 0?"rc-drawer":gt,Zt=Ke.placement,$t=Zt===void 0?"right":Zt,tn=Ke.autoFocus,Xt=tn===void 0?!0:tn,rn=Ke.keyboard,kt=rn===void 0?!0:rn,Yt=Ke.width,Vt=Yt===void 0?378:Yt,He=Ke.mask,dt=He===void 0?!0:He,Nt=Ke.maskClosable,Ht=Nt===void 0?!0:Nt,Be=Ke.getContainer,nt=Ke.forceRender,yt=Ke.afterOpenChange,Mt=Ke.destroyOnClose,Ut=Ke.onMouseEnter,ln=Ke.onMouseOver,In=Ke.onMouseLeave,Pn=Ke.onClick,on=Ke.onKeyDown,bn=Ke.onKeyUp,dn=Ke.panelRef,Gt=E.useState(!1),At=(0,Se.Z)(Gt,2),Rt=At[0],It=At[1],en=E.useState(!1),Jt=(0,Se.Z)(en,2),qt=Jt[0],gn=Jt[1];(0,Ee.Z)(function(){gn(!0)},[]);var wn=qt?St:!1,Sn=E.useRef(),Mn=E.useRef();(0,Ee.Z)(function(){wn&&(Mn.current=document.activeElement)},[wn]);var kn=function(xn){var hn;if(It(xn),yt==null||yt(xn),!xn&&Mn.current&&!((hn=Sn.current)!==null&&hn!==void 0&&hn.contains(Mn.current))){var Ue;(Ue=Mn.current)===null||Ue===void 0||Ue.focus({preventScroll:!0})}},Wn=E.useMemo(function(){return{panel:dn}},[dn]);if(!nt&&!Rt&&!wn&&Mt)return null;var An={onMouseEnter:Ut,onMouseOver:ln,onMouseLeave:In,onClick:Pn,onKeyDown:on,onKeyUp:bn},Tt=(0,et.Z)((0,et.Z)({},Ke),{},{open:wn,prefixCls:Wt,placement:$t,autoFocus:Xt,keyboard:kt,width:Vt,mask:dt,maskClosable:Ht,inline:Be===!1,afterOpenChange:kn,ref:Sn},An);return E.createElement(Ie.Provider,{value:Wn},E.createElement(Oe.Z,{open:wn||nt||Rt,autoDestroy:!1,getContainer:Be,autoLock:dt&&(wn||Rt)},E.createElement(je,Tt)))},ke=ht,Fe=ke,$e=re(62487),le=re(75030),ze=re(86641),De=re(55743),we=re(48755),ut=re(91190),me=re(78776),ce=re(458),Et=Ce=>{var Ke,ot;const{prefixCls:St,title:gt,footer:Wt,extra:Zt,loading:$t,onClose:tn,headerStyle:Xt,bodyStyle:rn,footerStyle:kt,children:Yt,classNames:Vt,styles:He}=Ce,dt=(0,we.dj)("drawer"),Nt=E.useCallback(Mt=>E.createElement("button",{type:"button",onClick:tn,"aria-label":"Close",className:`${St}-close`},Mt),[tn]),[Ht,Be]=(0,me.Z)((0,me.w)(Ce),(0,me.w)(dt),{closable:!0,closeIconRender:Nt}),nt=E.useMemo(()=>{var Mt,Ut;return!gt&&!Ht?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mt=dt.styles)===null||Mt===void 0?void 0:Mt.header),Xt),He==null?void 0:He.header),className:ye()(`${St}-header`,{[`${St}-header-close-only`]:Ht&&!gt&&!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,gt&&E.createElement("div",{className:`${St}-title`},gt)),Zt&&E.createElement("div",{className:`${St}-extra`},Zt))},[Ht,Be,Zt,Xt,St,gt]),yt=E.useMemo(()=>{var Mt,Ut;if(!Wt)return null;const ln=`${St}-footer`;return E.createElement("div",{className:ye()(ln,(Mt=dt.classNames)===null||Mt===void 0?void 0:Mt.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),kt),He==null?void 0:He.footer)},Wt)},[Wt,kt,St]);return E.createElement(E.Fragment,null,nt,E.createElement("div",{className:ye()(`${St}-body`,Vt==null?void 0:Vt.body,(Ke=dt.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(ot=dt.styles)===null||ot===void 0?void 0:ot.body),rn),He==null?void 0:He.body)},$t?E.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${St}-body-skeleton`}):Yt),yt)},pt=re(36237),ve=re(63356),Le=re(16931),Re=re(51636);const wt=Ce=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[Ce]},bt=(Ce,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ce),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":Ce})}),Bt=(Ce,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},bt({opacity:Ce},{opacity:1})),Te=(Ce,Ke)=>[Bt(.7,Ke),bt({transform:wt(Ce)},{transform:"none"})];var lt=Ce=>{const{componentCls:Ke,motionDurationSlow:ot}=Ce;return{[Ke]:{[`${Ke}-mask-motion`]:Bt(0,ot),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((St,gt)=>Object.assign(Object.assign({},St),{[`&-${gt}`]:Te(gt,ot)}),{})}}};const ae=Ce=>{const{borderRadiusSM:Ke,componentCls:ot,zIndexPopup:St,colorBgMask:gt,colorBgElevated:Wt,motionDurationSlow:Zt,motionDurationMid:$t,paddingXS:tn,padding:Xt,paddingLG:rn,fontSizeLG:kt,lineHeightLG:Yt,lineWidth:Vt,lineType:He,colorSplit:dt,marginXS:Nt,colorIcon:Ht,colorIconHover:Be,colorBgTextHover:nt,colorBgTextActive:yt,colorText:Mt,fontWeightStrong:Ut,footerPaddingBlock:ln,footerPaddingInline:In,calc:Pn}=Ce,on=`${ot}-content-wrapper`;return{[ot]:{position:"fixed",inset:0,zIndex:St,pointerEvents:"none",color:Mt,"&-pure":{position:"relative",background:Wt,display:"flex",flexDirection:"column",[`&${ot}-left`]:{boxShadow:Ce.boxShadowDrawerLeft},[`&${ot}-right`]:{boxShadow:Ce.boxShadowDrawerRight},[`&${ot}-top`]:{boxShadow:Ce.boxShadowDrawerUp},[`&${ot}-bottom`]:{boxShadow:Ce.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ot}-mask`]:{position:"absolute",inset:0,zIndex:St,background:gt,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:Ce.boxShadowDrawerLeft},[`&-right > ${on}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ce.boxShadowDrawerRight},[`&-top > ${on}`]:{top:0,insetInline:0,boxShadow:Ce.boxShadowDrawerUp},[`&-bottom > ${on}`]:{bottom:0,insetInline:0,boxShadow:Ce.boxShadowDrawerDown},[`${ot}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Wt,pointerEvents:"auto"},[`${ot}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,pt.unit)(Xt)} ${(0,pt.unit)(rn)}`,fontSize:kt,lineHeight:Yt,borderBottom:`${(0,pt.unit)(Vt)} ${He} ${dt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ot}-extra`]:{flex:"none"},[`${ot}-close`]:Object.assign({display:"inline-flex",width:Pn(kt).add(tn).equal(),height:Pn(kt).add(tn).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:Nt,color:Ht,fontWeight:Ut,fontSize:kt,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:nt,textDecoration:"none"},"&:active":{backgroundColor:yt}},(0,ve.Qy)(Ce)),[`${ot}-title`]:{flex:1,margin:0,fontWeight:Ce.fontWeightStrong,fontSize:kt,lineHeight:Yt},[`${ot}-body`]:{flex:1,minWidth:0,minHeight:0,padding:rn,overflow:"auto",[`${ot}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${ot}-footer`]:{flexShrink:0,padding:`${(0,pt.unit)(ln)} ${(0,pt.unit)(In)}`,borderTop:`${(0,pt.unit)(Vt)} ${He} ${dt}`},"&-rtl":{direction:"rtl"}}}},te=Ce=>({zIndexPopup:Ce.zIndexPopupBase,footerPaddingBlock:Ce.paddingXS,footerPaddingInline:Ce.padding});var ee=(0,Le.I$)("Drawer",Ce=>{const Ke=(0,Re.mergeToken)(Ce,{});return[ae(Ke),lt(Ke)]},te),oe=function(Ce,Ke){var ot={};for(var St in Ce)Object.prototype.hasOwnProperty.call(Ce,St)&&Ke.indexOf(St)<0&&(ot[St]=Ce[St]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,St=Object.getOwnPropertySymbols(Ce);gt<St.length;gt++)Ke.indexOf(St[gt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,St[gt])&&(ot[St[gt]]=Ce[St[gt]]);return ot};const ue=null,ne={distance:180},pe=Ce=>{var Ke;const{rootClassName:ot,width:St,height:gt,size:Wt="default",mask:Zt=!0,push:$t=ne,open:tn,afterOpenChange:Xt,onClose:rn,prefixCls:kt,getContainer:Yt,style:Vt,className:He,visible:dt,afterVisibleChange:Nt,maskStyle:Ht,drawerStyle:Be,contentWrapperStyle:nt}=Ce,yt=oe(Ce,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mt,getPrefixCls:Ut,direction:ln,className:In,style:Pn,classNames:on,styles:bn}=(0,we.dj)("drawer"),dn=Ut("drawer",kt),[Gt,At,Rt]=ee(dn),It=Yt===void 0&&Mt?()=>Mt(document.body):Yt,en=ye()({"no-mask":!Zt,[`${dn}-rtl`]:ln==="rtl"},ot,At,Rt),Jt=E.useMemo(()=>St!=null?St:Wt==="large"?736:378,[St,Wt]),qt=E.useMemo(()=>gt!=null?gt:Wt==="large"?736:378,[gt,Wt]),gn={motionName:(0,ze.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},wn=Tt=>({motionName:(0,ze.m)(dn,`panel-motion-${Tt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Sn=(0,ut.H)(),[Mn,kn]=(0,le.Cn)("Drawer",yt.zIndex),{classNames:Wn={},styles:An={}}=yt;return Gt(E.createElement($e.Z,{form:!0,space:!0},E.createElement(De.Z.Provider,{value:kn},E.createElement(Fe,Object.assign({prefixCls:dn,onClose:rn,maskMotion:gn,motion:wn},yt,{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),Ht),bn.mask),content:Object.assign(Object.assign(Object.assign({},An.content),Be),bn.content),wrapper:Object.assign(Object.assign(Object.assign({},An.wrapper),nt),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,He),rootClassName:en,getContainer:It,afterOpenChange:Xt!=null?Xt:Nt,panelRef:Sn,zIndex:Mn}),E.createElement(Et,Object.assign({prefixCls:dn},yt,{onClose:rn}))))))},ge=Ce=>{const{prefixCls:Ke,style:ot,className:St,placement:gt="right"}=Ce,Wt=oe(Ce,["prefixCls","style","className","placement"]),{getPrefixCls:Zt}=E.useContext(we.E_),$t=Zt("drawer",Ke),[tn,Xt,rn]=ee($t),kt=ye()($t,`${$t}-pure`,`${$t}-${gt}`,Xt,rn,St);return tn(E.createElement("div",{className:kt,style:ot},E.createElement(Et,Object.assign({prefixCls:$t},Wt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=ge;var Qe=pe},19563:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return pt}});var E=re(59301),at=re(33853),ye=re(38819),et=re(92310),Se=re.n(et),Oe=re(96478),Ee=re(6089),Ze=re(18929),Ie=re(2738),he=re(75030),xe=ve=>typeof ve!="object"&&typeof ve!="function"||ve===null,xt=re(52838),qe=re(45915),Ne=re(22703),Ve=re(32383),We=re(55743),ct=re(48755),Ct=re(83397),Dt=re(93041),ft=re(78857),rt=re(57700),tt=re(36237),Ge=re(63356),vt=re(46e3),Ae=re(93873),je=re(34925),ht=re(37645),ke=re(36305),Fe=re(16931),$e=re(51636),ze=ve=>{const{componentCls:Le,menuCls:Re,colorError:wt,colorTextLightSolid:bt}=ve,Bt=`${Re}-item`;return{[`${Le}, ${Le}-menu-submenu`]:{[`${Re} ${Bt}`]:{[`&${Bt}-danger:not(${Bt}-disabled)`]:{color:wt,"&:hover":{color:bt,backgroundColor:wt}}}}}};const De=ve=>{const{componentCls:Le,menuCls:Re,zIndexPopup:wt,dropdownArrowDistance:bt,sizePopupArrow:Bt,antCls:Te,iconCls:Ot,motionDurationMid:lt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:ue,controlPaddingHorizontal:ne,colorBgElevated:pe}=ve;return[{[Le]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:wt,display:"block","&::before":{position:"absolute",insetBlock:ve.calc(Bt).div(2).sub(bt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Te}-btn`]:{[`& > ${Ot}-down, & > ${Te}-btn-icon > ${Ot}-down`]:{fontSize:ue}},[`${Le}-wrap`]:{position:"relative",[`${Te}-btn > ${Ot}-down`]:{fontSize:ue},[`${Ot}-down::before`]:{transition:`transform ${lt}`}},[`${Le}-wrap-open`]:{[`${Ot}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Te}-slide-down-enter${Te}-slide-down-enter-active${Le}-placement-bottomLeft,
|
|
|
&${Te}-slide-down-appear${Te}-slide-down-appear-active${Le}-placement-bottomLeft,
|
|
|
&${Te}-slide-down-enter${Te}-slide-down-enter-active${Le}-placement-bottom,
|
|
|
&${Te}-slide-down-appear${Te}-slide-down-appear-active${Le}-placement-bottom,
|
|
|
&${Te}-slide-down-enter${Te}-slide-down-enter-active${Le}-placement-bottomRight,
|
|
|
&${Te}-slide-down-appear${Te}-slide-down-appear-active${Le}-placement-bottomRight`]:{animationName:vt.fJ},[`&${Te}-slide-up-enter${Te}-slide-up-enter-active${Le}-placement-topLeft,
|
|
|
&${Te}-slide-up-appear${Te}-slide-up-appear-active${Le}-placement-topLeft,
|
|
|
&${Te}-slide-up-enter${Te}-slide-up-enter-active${Le}-placement-top,
|
|
|
&${Te}-slide-up-appear${Te}-slide-up-appear-active${Le}-placement-top,
|
|
|
&${Te}-slide-up-enter${Te}-slide-up-enter-active${Le}-placement-topRight,
|
|
|
&${Te}-slide-up-appear${Te}-slide-up-appear-active${Le}-placement-topRight`]:{animationName:vt.Qt},[`&${Te}-slide-down-leave${Te}-slide-down-leave-active${Le}-placement-bottomLeft,
|
|
|
&${Te}-slide-down-leave${Te}-slide-down-leave-active${Le}-placement-bottom,
|
|
|
&${Te}-slide-down-leave${Te}-slide-down-leave-active${Le}-placement-bottomRight`]:{animationName:vt.Uw},[`&${Te}-slide-up-leave${Te}-slide-up-leave-active${Le}-placement-topLeft,
|
|
|
&${Te}-slide-up-leave${Te}-slide-up-leave-active${Le}-placement-top,
|
|
|
&${Te}-slide-up-leave${Te}-slide-up-leave-active${Le}-placement-topRight`]:{animationName:vt.ly}}},(0,ht.ZP)(ve,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Le} ${Re}`]:{position:"relative",margin:0},[`${Re}-submenu-popup`]:{position:"absolute",zIndex:wt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Le}, ${Le}-menu-submenu`]:Object.assign(Object.assign({},(0,Ge.Wf)(ve)),{[Re]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,Ge.Qy)(ve)),{"&:empty":{padding:0,boxShadow:"none"},[`${Re}-item-group-title`]:{padding:`${(0,tt.unit)(ae)} ${(0,tt.unit)(ne)}`,color:ve.colorTextDescription,transition:`all ${lt}`},[`${Re}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Re}-item-icon`]:{minWidth:te,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${Re}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${lt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Re}-item-extra`]:{paddingInlineStart:ve.padding,marginInlineStart:"auto",fontSize:ve.fontSizeSM,color:ve.colorTextDescription}},[`${Re}-item, ${Re}-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 ${lt}`,borderRadius:ve.borderRadiusSM,"&:hover, &-active":{backgroundColor:ve.controlItemBgHover}},(0,Ge.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},[`${Le}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${Le}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${Re}-item-group-list`]:{margin:`0 ${(0,tt.unit)(ve.marginXS)}`,padding:0,listStyle:"none"},[`${Re}-submenu-title`]:{paddingInlineEnd:ve.calc(ne).add(ve.fontSizeSM).equal()},[`${Re}-submenu-vertical`]:{position:"relative"},[`${Re}-submenu${Re}-submenu-disabled ${Le}-menu-submenu-title`]:{[`&, ${Le}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${Re}-submenu-selected ${Le}-menu-submenu-title`]:{color:ve.colorPrimary}})})},[(0,vt.oN)(ve,"slide-up"),(0,vt.oN)(ve,"slide-down"),(0,Ae.Fm)(ve,"move-up"),(0,Ae.Fm)(ve,"move-down"),(0,je._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,ke.w)(ve));var ut=(0,Fe.I$)("Dropdown",ve=>{const{marginXXS:Le,sizePopupArrow:Re,paddingXXS:wt,componentCls:bt}=ve,Bt=(0,$e.mergeToken)(ve,{menuCls:`${bt}-menu`,dropdownArrowDistance:ve.calc(Re).div(2).add(Le).equal(),dropdownEdgeChildPadding:wt});return[De(Bt),ze(Bt)]},we,{resetStyle:!1});const me=null,ce=ve=>{var Le;const{menu:Re,arrow:wt,prefixCls:bt,children:Bt,trigger:Te,disabled:Ot,dropdownRender:lt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:ue,onOpenChange:ne,visible:pe,onVisibleChange:ge,mouseEnterDelay:Qe=.15,mouseLeaveDelay:Ce=.1,autoAdjustOverflow:Ke=!0,placement:ot="",overlay:St,transitionName:gt}=ve,{getPopupContainer:Wt,getPrefixCls:Zt,direction:$t,dropdown:tn}=E.useContext(ct.E_),Xt=(0,Ve.ln)("Dropdown"),rn=E.useMemo(()=>{const It=Zt();return gt!==void 0?gt:ot.includes("top")?`${It}-slide-down`:`${It}-slide-up`},[Zt,ot,gt]),kt=E.useMemo(()=>ot?ot.includes("Center")?ot.slice(0,ot.indexOf("Center")):ot:$t==="rtl"?"bottomRight":"bottomLeft",[ot,$t]),Yt=Zt("dropdown",bt),Vt=(0,Ct.Z)(Yt),[He,dt,Nt]=ut(Yt,Vt),[,Ht]=(0,rt.ZP)(),Be=E.Children.only(xe(Bt)?E.createElement("span",null,Bt):Bt),nt=(0,Ne.Tm)(Be,{className:Se()(`${Yt}-trigger`,{[`${Yt}-rtl`]:$t==="rtl"},Be.props.className),disabled:(Le=Be.props.disabled)!==null&&Le!==void 0?Le:Ot}),yt=Ot?[]:Te,Mt=!!(yt!=null&&yt.includes("contextMenu")),[Ut,ln]=(0,Ze.Z)(!1,{value:ue!=null?ue:pe}),In=(0,Ee.Z)(It=>{ne==null||ne(It,{source:"trigger"}),ge==null||ge(It),ln(It)}),Pn=Se()(te,ee,dt,Nt,Vt,tn==null?void 0:tn.className,{[`${Yt}-rtl`]:$t==="rtl"}),on=(0,xt.Z)({arrowPointAtCenter:typeof wt=="object"&&wt.pointAtCenter,autoAdjustOverflow:Ke,offset:Ht.marginXXS,arrowWidth:wt?Ht.sizePopupArrow:0,borderRadius:Ht.borderRadius}),bn=E.useCallback(()=>{Re!=null&&Re.selectable&&(Re!=null&&Re.multiple)||(ne==null||ne(!1,{source:"menu"}),ln(!1))},[Re==null?void 0:Re.selectable,Re==null?void 0:Re.multiple]),dn=()=>{let It;return Re!=null&&Re.items?It=E.createElement(Dt.default,Object.assign({},Re)):typeof St=="function"?It=St():It=St,lt&&(It=lt(It)),It=E.Children.only(typeof It=="string"?E.createElement("span",null,It):It),E.createElement(ft.J,{prefixCls:`${Yt}-menu`,rootClassName:Se()(Nt,Vt),expandIcon:E.createElement("span",{className:`${Yt}-menu-submenu-arrow`},$t==="rtl"?E.createElement(at.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}},It)},[Gt,At]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Rt=E.createElement(Oe.Z,Object.assign({alignPoint:Mt},(0,Ie.Z)(ve,["rootClassName"]),{mouseEnterDelay:Qe,mouseLeaveDelay:Ce,visible:Ut,builtinPlacements:on,arrow:!!wt,overlayClassName:Pn,prefixCls:Yt,getPopupContainer:ae||Wt,transitionName:rn,trigger:yt,overlay:dn,placement:kt,onVisibleChange:In,overlayStyle:Object.assign(Object.assign(Object.assign({},tn==null?void 0:tn.style),oe),{zIndex:Gt})}),nt);return Gt&&(Rt=E.createElement(We.Z.Provider,{value:At},Rt)),He(Rt)},_e=(0,qe.Z)(ce,"align",void 0,"dropdown",ve=>ve),Et=ve=>E.createElement(_e,Object.assign({},ve),E.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=Et;var pt=ce},75727:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return qe}});var E=re(19563),at=re(59301),ye=re(18785),et=re(92310),Se=re.n(et),Oe=re(7939),Ee=re(48755),Ze=re(44104),Ie=re(70045),he=function(Ne,Ve){var We={};for(var ct in Ne)Object.prototype.hasOwnProperty.call(Ne,ct)&&Ve.indexOf(ct)<0&&(We[ct]=Ne[ct]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,ct=Object.getOwnPropertySymbols(Ne);Ct<ct.length;Ct++)Ve.indexOf(ct[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ne,ct[Ct])&&(We[ct[Ct]]=Ne[ct[Ct]]);return We};const Je=Ne=>{const{getPopupContainer:Ve,getPrefixCls:We,direction:ct}=at.useContext(Ee.E_),{prefixCls:Ct,type:Dt="default",danger:ft,disabled:rt,loading:tt,onClick:Ge,htmlType:vt,children:Ae,className:je,menu:ht,arrow:ke,autoFocus:Fe,overlay:$e,trigger:le,align:ze,open:De,onOpenChange:we,placement:ut,getPopupContainer:me,href:ce,icon:_e=at.createElement(ye.Z,null),title:Et,buttonsRender:pt=Qe=>Qe,mouseEnterDelay:ve,mouseLeaveDelay:Le,overlayClassName:Re,overlayStyle:wt,destroyPopupOnHide:bt,dropdownRender:Bt}=Ne,Te=he(Ne,["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"]),Ot=We("dropdown",Ct),lt=`${Ot}-button`,ae={menu:ht,arrow:ke,autoFocus:Fe,align:ze,disabled:rt,trigger:rt?[]:le,onOpenChange:we,getPopupContainer:me||Ve,mouseEnterDelay:ve,mouseLeaveDelay:Le,overlayClassName:Re,overlayStyle:wt,destroyPopupOnHide:bt,dropdownRender:Bt},{compactSize:te,compactItemClassnames:ee}=(0,Ie.ri)(Ot,ct),oe=Se()(lt,ee,je);"overlay"in Ne&&(ae.overlay=$e),"open"in Ne&&(ae.open=De),"placement"in Ne?ae.placement=ut:ae.placement=ct==="rtl"?"bottomLeft":"bottomRight";const ue=at.createElement(Oe.ZP,{type:Dt,danger:ft,disabled:rt,loading:tt,onClick:Ge,htmlType:vt,href:ce,title:Et},Ae),ne=at.createElement(Oe.ZP,{type:Dt,danger:ft,icon:_e}),[pe,ge]=pt([ue,ne]);return at.createElement(Ze.Z.Compact,Object.assign({className:oe,size:te,block:!0},Te),pe,at.createElement(E.Z,Object.assign({},ae),ge))};Je.__ANT_BUTTON=!0;var xe=Je;const xt=E.Z;xt.Button=xe;var qe=xt},584:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Dt}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(9017),Se=re(17835),Oe=re(57700),Ze=()=>{const[,ft]=(0,Oe.ZP)(),[rt]=(0,et.Z)("Empty"),Ge=new Se.FastColor(ft.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Ge,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(rt==null?void 0:rt.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,Oe.ZP)(),[rt]=(0,et.Z)("Empty"),{colorFill:tt,colorFillTertiary:Ge,colorFillQuaternary:vt,colorBgContainer:Ae}=ft,{borderColor:je,shadowColor:ht,contentColor:ke}=(0,E.useMemo)(()=>({borderColor:new Se.FastColor(tt).onBackground(Ae).toHexString(),shadowColor:new Se.FastColor(Ge).onBackground(Ae).toHexString(),contentColor:new Se.FastColor(vt).onBackground(Ae).toHexString()}),[tt,Ge,vt,Ae]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(rt==null?void 0:rt.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:je},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:ke}))))},Je=re(16931),xe=re(51636);const xt=ft=>{const{componentCls:rt,margin:tt,marginXS:Ge,marginXL:vt,fontSize:Ae,lineHeight:je}=ft;return{[rt]:{marginInline:Ge,fontSize:Ae,lineHeight:je,textAlign:"center",[`${rt}-image`]:{height:ft.emptyImgHeight,marginBottom:Ge,opacity:ft.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${rt}-description`]:{color:ft.colorTextDescription},[`${rt}-footer`]:{marginTop:tt},"&-normal":{marginBlock:vt,color:ft.colorTextDescription,[`${rt}-description`]:{color:ft.colorTextDescription},[`${rt}-image`]:{height:ft.emptyImgHeightMD}},"&-small":{marginBlock:Ge,color:ft.colorTextDescription,[`${rt}-image`]:{height:ft.emptyImgHeightSM}}}}};var qe=(0,Je.I$)("Empty",ft=>{const{componentCls:rt,controlHeightLG:tt,calc:Ge}=ft,vt=(0,xe.mergeToken)(ft,{emptyImgCls:`${rt}-img`,emptyImgHeight:Ge(tt).mul(2.5).equal(),emptyImgHeightMD:tt,emptyImgHeightSM:Ge(tt).mul(.875).equal()});return[xt(vt)]}),Ne=re(48755),Ve=function(ft,rt){var tt={};for(var Ge in ft)Object.prototype.hasOwnProperty.call(ft,Ge)&&rt.indexOf(Ge)<0&&(tt[Ge]=ft[Ge]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ge=Object.getOwnPropertySymbols(ft);vt<Ge.length;vt++)rt.indexOf(Ge[vt])<0&&Object.prototype.propertyIsEnumerable.call(ft,Ge[vt])&&(tt[Ge[vt]]=ft[Ge[vt]]);return tt};const We=E.createElement(Ze,null),ct=E.createElement(he,null),Ct=ft=>{const{className:rt,rootClassName:tt,prefixCls:Ge,image:vt=We,description:Ae,children:je,imageStyle:ht,style:ke,classNames:Fe,styles:$e}=ft,le=Ve(ft,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ze,direction:De,className:we,style:ut,classNames:me,styles:ce}=(0,Ne.dj)("empty"),_e=ze("empty",Ge),[Et,pt,ve]=qe(_e),[Le]=(0,et.Z)("Empty"),Re=typeof Ae!="undefined"?Ae:Le==null?void 0:Le.description,wt=typeof Re=="string"?Re:"empty";let bt=null;return typeof vt=="string"?bt=E.createElement("img",{alt:wt,src:vt}):bt=vt,Et(E.createElement("div",Object.assign({className:ye()(pt,ve,_e,we,{[`${_e}-normal`]:vt===ct,[`${_e}-rtl`]:De==="rtl"},rt,tt,me.root,Fe==null?void 0:Fe.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),ut),$e==null?void 0:$e.root),ke)},le),E.createElement("div",{className:ye()(`${_e}-image`,me.image,Fe==null?void 0:Fe.image),style:Object.assign(Object.assign(Object.assign({},ht),ce.image),$e==null?void 0:$e.image)},bt),Re&&E.createElement("div",{className:ye()(`${_e}-description`,me.description,Fe==null?void 0:Fe.description),style:Object.assign(Object.assign({},ce.description),$e==null?void 0:$e.description)},Re),je&&E.createElement("div",{className:ye()(`${_e}-footer`,me.footer,Fe==null?void 0:Fe.footer),style:Object.assign(Object.assign({},ce.footer),$e==null?void 0:$e.footer)},je)))};Ct.PRESENTED_IMAGE_DEFAULT=We,Ct.PRESENTED_IMAGE_SIMPLE=ct;var Dt=Ct},28284:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return st}});var E=re(56553),at=re(77654),ye=re(59301),et=re(92310),Se=re.n(et),Oe=re(77900),Ee=re(86641),Ze=re(83397);function Ie(Pe){const[Xe,Me]=ye.useState(Pe);return ye.useEffect(()=>{const Ye=setTimeout(()=>{Me(Pe)},Pe.length?0:10);return()=>{clearTimeout(Ye)}},[Pe]),Xe}var he=re(36237),Je=re(63356),xe=re(34925),xt=re(34961),qe=re(51636),Ne=re(16931),We=Pe=>{const{componentCls:Xe}=Pe,Me=`${Xe}-show-help`,Ye=`${Xe}-show-help-item`;return{[Me]:{transition:`opacity ${Pe.motionDurationFast} ${Pe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ye]:{overflow:"hidden",transition:`height ${Pe.motionDurationFast} ${Pe.motionEaseInOut},
|
|
|
opacity ${Pe.motionDurationFast} ${Pe.motionEaseInOut},
|
|
|
transform ${Pe.motionDurationFast} ${Pe.motionEaseInOut} !important`,[`&${Ye}-appear, &${Ye}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ye}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ct=Pe=>({legend:{display:"block",width:"100%",marginBottom:Pe.marginLG,padding:0,color:Pe.colorTextDescription,fontSize:Pe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.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)(Pe.controlOutlineWidth)} ${Pe.controlOutline}`},output:{display:"block",paddingTop:15,color:Pe.colorText,fontSize:Pe.fontSize,lineHeight:Pe.lineHeight}}),Ct=(Pe,Xe)=>{const{formItemCls:Me}=Pe;return{[Me]:{[`${Me}-label > label`]:{height:Xe},[`${Me}-control-input`]:{minHeight:Xe}}}},Dt=Pe=>{const{componentCls:Xe}=Pe;return{[Pe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Pe)),ct(Pe)),{[`${Xe}-text`]:{display:"inline-block",paddingInlineEnd:Pe.paddingSM},"&-small":Object.assign({},Ct(Pe,Pe.controlHeightSM)),"&-large":Object.assign({},Ct(Pe,Pe.controlHeightLG))})}},ft=Pe=>{const{formItemCls:Xe,iconCls:Me,rootPrefixCls:Ye,antCls:Pt,labelRequiredMarkColor:an,labelColor:un,labelFontSize:vn,labelHeight:Qt,labelColonMarginInlineStart:Ft,labelColonMarginInlineEnd:Lt,itemMarginBottom:fn}=Pe;return{[Xe]:Object.assign(Object.assign({},(0,Je.Wf)(Pe)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Pt}-row`]:{display:"none"},"&-has-warning":{[`${Xe}-split`]:{color:Pe.colorError}},"&-has-error":{[`${Xe}-split`]:{color:Pe.colorWarning}},[`${Xe}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Pe.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Qt,color:un,fontSize:vn,[`> ${Me}`]:{fontSize:Pe.fontSize,verticalAlign:"top"},[`&${Xe}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Pe.marginXXS,color:an,fontSize:Pe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Xe}-required-mark-hidden, &${Xe}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Xe}-optional`]:{display:"inline-block",marginInlineStart:Pe.marginXXS,color:Pe.colorTextDescription,[`&${Xe}-required-mark-hidden`]:{display:"none"}},[`${Xe}-tooltip`]:{color:Pe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Pe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ft,marginInlineEnd:Lt},[`&${Xe}-no-colon::after`]:{content:'"\\a0"'}}},[`${Xe}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ye}-col-'"]):not([class*="' ${Ye}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Pe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Xe]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Pe.colorTextDescription,fontSize:Pe.fontSize,lineHeight:Pe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Pe.controlHeightSM,transition:`color ${Pe.motionDurationMid} ${Pe.motionEaseOut}`},"&-explain":{"&-error":{color:Pe.colorError},"&-warning":{color:Pe.colorWarning}}},[`&-with-help ${Xe}-explain`]:{height:"auto",opacity:1},[`${Xe}-feedback-icon`]:{fontSize:Pe.fontSize,textAlign:"center",visibility:"visible",animationName:xe.kr,animationDuration:Pe.motionDurationMid,animationTimingFunction:Pe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Pe.colorSuccess},"&-error":{color:Pe.colorError},"&-warning":{color:Pe.colorWarning},"&-validating":{color:Pe.colorPrimary}}})}},rt=(Pe,Xe)=>{const{formItemCls:Me}=Pe;return{[`${Xe}-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=Pe=>{const{componentCls:Xe,formItemCls:Me,inlineItemMarginBottom:Ye}=Pe;return{[`${Xe}-inline`]:{display:"flex",flexWrap:"wrap",[Me]:{flex:"none",marginInlineEnd:Pe.margin,marginBottom:Ye,"&-row":{flexWrap:"nowrap"},[`> ${Me}-label,
|
|
|
> ${Me}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Me}-label`]:{flex:"none"},[`${Xe}-text`]:{display:"inline-block"},[`${Me}-has-feedback`]:{display:"inline-block"}}}}},Ge=Pe=>({padding:Pe.verticalLabelPadding,margin:Pe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),vt=Pe=>{const{componentCls:Xe,formItemCls:Me,rootPrefixCls:Ye}=Pe;return{[`${Me} ${Me}-label`]:Ge(Pe),[`${Xe}:not(${Xe}-inline)`]:{[Me]:{flexWrap:"wrap",[`${Me}-label, ${Me}-control`]:{[`&:not([class*=" ${Ye}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ae=Pe=>{const{componentCls:Xe,formItemCls:Me,antCls:Ye}=Pe;return{[`${Xe}-vertical`]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Me}-row`]:{flexDirection:"column"},[`${Me}-label > label`]:{height:"auto"},[`${Me}-control`]:{width:"100%"},[`${Me}-label,
|
|
|
${Ye}-col-24${Me}-label,
|
|
|
${Ye}-col-xl-24${Me}-label`]:Ge(Pe)}},[`@media (max-width: ${(0,he.unit)(Pe.screenXSMax)})`]:[vt(Pe),{[Xe]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Ye}-col-xs-24${Me}-label`]:Ge(Pe)}}}],[`@media (max-width: ${(0,he.unit)(Pe.screenSMMax)})`]:{[Xe]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Ye}-col-sm-24${Me}-label`]:Ge(Pe)}}},[`@media (max-width: ${(0,he.unit)(Pe.screenMDMax)})`]:{[Xe]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Ye}-col-md-24${Me}-label`]:Ge(Pe)}}},[`@media (max-width: ${(0,he.unit)(Pe.screenLGMax)})`]:{[Xe]:{[`${Me}:not(${Me}-horizontal)`]:{[`${Ye}-col-lg-24${Me}-label`]:Ge(Pe)}}}}},je=Pe=>{const{formItemCls:Xe,antCls:Me}=Pe;return{[`${Xe}-vertical`]:{[`${Xe}-row`]:{flexDirection:"column"},[`${Xe}-label > label`]:{height:"auto"},[`${Xe}-control`]:{width:"100%"}},[`${Xe}-vertical ${Xe}-label,
|
|
|
${Me}-col-24${Xe}-label,
|
|
|
${Me}-col-xl-24${Xe}-label`]:Ge(Pe),[`@media (max-width: ${(0,he.unit)(Pe.screenXSMax)})`]:[vt(Pe),{[Xe]:{[`${Me}-col-xs-24${Xe}-label`]:Ge(Pe)}}],[`@media (max-width: ${(0,he.unit)(Pe.screenSMMax)})`]:{[Xe]:{[`${Me}-col-sm-24${Xe}-label`]:Ge(Pe)}},[`@media (max-width: ${(0,he.unit)(Pe.screenMDMax)})`]:{[Xe]:{[`${Me}-col-md-24${Xe}-label`]:Ge(Pe)}},[`@media (max-width: ${(0,he.unit)(Pe.screenLGMax)})`]:{[Xe]:{[`${Me}-col-lg-24${Xe}-label`]:Ge(Pe)}}}},ht=Pe=>({labelRequiredMarkColor:Pe.colorError,labelColor:Pe.colorTextHeading,labelFontSize:Pe.fontSize,labelHeight:Pe.controlHeight,labelColonMarginInlineStart:Pe.marginXXS/2,labelColonMarginInlineEnd:Pe.marginXS,itemMarginBottom:Pe.marginLG,verticalLabelPadding:`0 0 ${Pe.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ke=(Pe,Xe)=>(0,qe.mergeToken)(Pe,{formItemCls:`${Pe.componentCls}-item`,rootPrefixCls:Xe});var Fe=(0,Ne.I$)("Form",(Pe,Xe)=>{let{rootPrefixCls:Me}=Xe;const Ye=ke(Pe,Me);return[Dt(Ye),ft(Ye),We(Ye),rt(Ye,Ye.componentCls),rt(Ye,Ye.formItemCls),tt(Ye),Ae(Ye),je(Ye),(0,xt.Z)(Ye),xe.kr]},ht,{order:-1e3});const $e=[];function le(Pe,Xe,Me){let Ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Pe=="string"?Pe:`${Xe}-${Ye}`,error:Pe,errorStatus:Me}}var De=Pe=>{let{help:Xe,helpStatus:Me,errors:Ye=$e,warnings:Pt=$e,className:an,fieldId:un,onVisibleChanged:vn}=Pe;const{prefixCls:Qt}=ye.useContext(E.Rk),Ft=`${Qt}-item-explain`,Lt=(0,Ze.Z)(Qt),[fn,Tn,Dn]=Fe(Qt,Lt),Bn=ye.useMemo(()=>(0,Ee.Z)(Qt),[Qt]),Xn=Ie(Ye),Qn=Ie(Pt),Jn=ye.useMemo(()=>Xe!=null?[le(Xe,"help",Me)]:[].concat((0,at.Z)(Xn.map((Hn,Un)=>le(Hn,"error","error",Un))),(0,at.Z)(Qn.map((Hn,Un)=>le(Hn,"warning","warning",Un)))),[Xe,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(Oe.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,Lt,an,Tn),style:ur}),ye.createElement(Oe.CSSMotionList,Object.assign({keys:Zn},(0,Ee.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),ut=re(48755),me=re(2171),ce=re(31756),_e=re(23069),Et=re(76846),pt=re(16722);const ve=["parentNode"],Le="form_item";function Re(Pe){return Pe===void 0||Pe===!1?[]:Array.isArray(Pe)?Pe:[Pe]}function wt(Pe,Xe){if(!Pe.length)return;const Me=Pe.join("_");return Xe?`${Xe}_${Me}`:ve.includes(Me)?`${Le}_${Me}`:Me}function bt(Pe,Xe,Me,Ye,Pt,an){let un=Ye;return an!==void 0?un=an:Me.validating?un="validating":Pe.length?un="error":Xe.length?un="warning":(Me.touched||Pt&&Me.validated)&&(un="success"),un}var Bt=function(Pe,Xe){var Me={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&Xe.indexOf(Ye)<0&&(Me[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ye=Object.getOwnPropertySymbols(Pe);Pt<Ye.length;Pt++)Xe.indexOf(Ye[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[Pt])&&(Me[Ye[Pt]]=Pe[Ye[Pt]]);return Me};function Te(Pe){return Re(Pe).join("_")}function Ot(Pe,Xe){const Me=Xe.getFieldInstance(Pe),Ye=(0,Et.bn)(Me);if(Ye)return Ye;const Pt=wt(Re(Pe),Xe.__INTERNAL__.name);if(Pt)return document.getElementById(Pt)}function lt(Pe){const[Xe]=(0,we.useForm)(),Me=ye.useRef({}),Ye=ye.useMemo(()=>Pe!=null?Pe:Object.assign(Object.assign({},Xe),{__INTERNAL__:{itemRef:Pt=>an=>{const un=Te(Pt);an?Me.current[un]=an:delete Me.current[un]}},scrollToField:function(Pt){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:un}=an,vn=Bt(an,["focus"]),Qt=Ot(Pt,Ye);Qt&&((0,pt.Z)(Qt,Object.assign({scrollMode:"if-needed",block:"nearest"},vn)),un&&Ye.focusField(Pt))},focusField:Pt=>{var an,un;const vn=Ye.getFieldInstance(Pt);typeof(vn==null?void 0:vn.focus)=="function"?vn.focus():(un=(an=Ot(Pt,Ye))===null||an===void 0?void 0:an.focus)===null||un===void 0||un.call(an)},getFieldInstance:Pt=>{const an=Te(Pt);return Me.current[an]}}),[Pe,Xe]);return[Ye]}var ae=re(98350),te=function(Pe,Xe){var Me={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&Xe.indexOf(Ye)<0&&(Me[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ye=Object.getOwnPropertySymbols(Pe);Pt<Ye.length;Pt++)Xe.indexOf(Ye[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[Pt])&&(Me[Ye[Pt]]=Pe[Ye[Pt]]);return Me};const ee=(Pe,Xe)=>{const Me=ye.useContext(me.Z),{getPrefixCls:Ye,direction:Pt,requiredMark:an,colon:un,scrollToFirstError:vn,className:Qt,style:Ft}=(0,ut.dj)("form"),{prefixCls:Lt,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}=Pe,cr=te(Pe,["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=Ye("form",Lt),Sr=(0,Ze.Z)(Gn),[Rr,Hr,Er]=Fe(Gn,Sr),Ar=Se()(Gn,`${Gn}-${ur}`,{[`${Gn}-hide-required-mark`]:or===!1,[`${Gn}-rtl`]:Pt==="rtl",[`${Gn}-${vr}`]:vr},Er,Sr,Hr,Qt,fn,Tn),[Ir]=lt(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(Xe,()=>{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(_e.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),Qe=re(32383),Ce=re(11592);function Ke(Pe){if(typeof Pe=="function")return Pe;const Xe=(0,Ce.Z)(Pe);return Xe.length<=1?Xe[0]:Xe}const ot=()=>{const{status:Pe,errors:Xe=[],warnings:Me=[]}=ye.useContext(E.aM);return{status:Pe,errors:Xe,warnings:Me}};ot.Context=E.aM;var St=ot,gt=re(16089);function Wt(Pe){const[Xe,Me]=ye.useState(Pe),Ye=ye.useRef(null),Pt=ye.useRef([]),an=ye.useRef(!1);ye.useEffect(()=>(an.current=!1,()=>{an.current=!0,gt.Z.cancel(Ye.current),Ye.current=null}),[]);function un(vn){an.current||(Ye.current===null&&(Pt.current=[],Ye.current=(0,gt.Z)(()=>{Ye.current=null,Me(Qt=>{let Ft=Qt;return Pt.current.forEach(Lt=>{Ft=Lt(Ft)}),Ft})})),Pt.current.push(vn))}return[Xe,un]}function Zt(){const{itemRef:Pe}=ye.useContext(E.q3),Xe=ye.useRef({});function Me(Ye,Pt){const an=Pt&&typeof Pt=="object"&&(0,pe.C4)(Pt),un=Ye.join("_");return(Xe.current.name!==un||Xe.current.originRef!==an)&&(Xe.current.name=un,Xe.current.originRef=an,Xe.current.ref=(0,pe.sQ)(Pe(Ye),an)),Xe.current.ref}return Me}var $t=re(29194),tn=re(34280),Xt=re(2738),rn=re(65970),kt=re(70425),Yt=re(5472);const Vt=Pe=>{const{formItemCls:Xe}=Pe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Xe}-control`]:{display:"flex"}}}};var He=(0,Ne.bk)(["Form","item-item"],(Pe,Xe)=>{let{rootPrefixCls:Me}=Xe;const Ye=ke(Pe,Me);return[Vt(Ye)]}),dt=function(Pe,Xe){var Me={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&Xe.indexOf(Ye)<0&&(Me[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ye=Object.getOwnPropertySymbols(Pe);Pt<Ye.length;Pt++)Xe.indexOf(Ye[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[Pt])&&(Me[Ye[Pt]]=Pe[Ye[Pt]]);return Me};const Nt=24;var Be=Pe=>{const{prefixCls:Xe,status:Me,labelCol:Ye,wrapperCol:Pt,children:an,errors:un,warnings:vn,_internalItemRender:Qt,extra:Ft,help:Lt,fieldId:fn,marginBottom:Tn,onErrorVisibleChanged:Dn,label:Bn}=Pe,Xn=`${Xe}-item`,Qn=ye.useContext(E.q3),Jn=ye.useMemo(()=>{let cr=Object.assign({},Pt||Qn.wrapperCol||{});return Bn===null&&!Ye&&!Pt&&Qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,kt.U2)(Qn.labelCol,or),Gn=typeof dr=="object"?dr:{},Sr=(0,kt.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Gn&&!("offset"in Rr)&&Gn.span<Nt&&(cr=(0,kt.t8)(cr,[].concat(or,["offset"]),Gn.span))}),cr},[Pt,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:Xe,status:Me}),[Xe,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:Lt,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(Pe,{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(He,{prefixCls:Xe}))},nt=re(61485),yt=re(9017),Mt=re(85981),Ut=re(25399),ln=function(Pe,Xe){var Me={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&Xe.indexOf(Ye)<0&&(Me[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ye=Object.getOwnPropertySymbols(Pe);Pt<Ye.length;Pt++)Xe.indexOf(Ye[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[Pt])&&(Me[Ye[Pt]]=Pe[Ye[Pt]]);return Me};function In(Pe){return Pe?typeof Pe=="object"&&!ye.isValidElement(Pe)?Pe:{title:Pe}:null}var on=Pe=>{let{prefixCls:Xe,label:Me,htmlFor:Ye,labelCol:Pt,labelAlign:an,colon:un,required:vn,requiredMark:Qt,tooltip:Ft,vertical:Lt}=Pe;var fn;const[Tn]=(0,yt.Z)("Form"),{labelAlign:Dn,labelCol:Bn,labelWrap:Xn,colon:Qn}=ye.useContext(E.q3);if(!Me)return null;const Jn=Pt||Bn||{},Zn=an||Dn,Fn=`${Xe}-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&&!Lt&&typeof Me=="string"&&Me.trim()&&(Un=Me.replace(/[:|:]\s*$/,""));const lr=In(Ft);if(lr){const{icon:cr=ye.createElement(nt.Z,null)}=lr,vr=ln(lr,["icon"]),Cr=ye.createElement(Ut.Z,Object.assign({},vr),ye.cloneElement(cr,{className:`${Xe}-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:`${Xe}-item-optional`,title:""},(Tn==null?void 0:Tn.optional)||((fn=Mt.Z.Form)===null||fn===void 0?void 0:fn.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=Se()({[`${Xe}-item-required`]:vn,[`${Xe}-item-required-mark-${gr}`]:gr,[`${Xe}-item-no-colon`]:!ur});return ye.createElement(Yt.Z,Object.assign({},Jn,{className:Hn}),ye.createElement("label",{htmlFor:Ye,className:mr,title:typeof Me=="string"?Me:""},Un))},bn=re(29679),dn=re(19248),Gt=re(96512),At=re(58617);const Rt={success:bn.Z,warning:Gt.Z,error:dn.Z,validating:At.Z};function It(Pe){let{children:Xe,errors:Me,warnings:Ye,hasFeedback:Pt,validateStatus:an,prefixCls:un,meta:vn,noStyle:Qt}=Pe;const Ft=`${un}-item`,{feedbackIcons:Lt}=ye.useContext(E.q3),fn=bt(Me,Ye,vn,null,!!Pt,an),{isFormItemInput:Tn,status:Dn,hasFeedback:Bn,feedbackIcon:Xn}=ye.useContext(E.aM),Qn=ye.useMemo(()=>{var Jn;let Zn;if(Pt){const Hn=Pt!==!0&&Pt.icons||Lt,Un=fn&&((Jn=Hn==null?void 0:Hn({status:fn,errors:Me,warnings:Ye}))===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:Ye,hasFeedback:!!Pt,feedbackIcon:Zn,isFormItemInput:!0};return Qt&&(Fn.status=(fn!=null?fn:Dn)||"",Fn.isFormItemInput=Tn,Fn.hasFeedback=!!(Pt!=null?Pt:Bn),Fn.feedbackIcon=Pt!==void 0?Fn.feedbackIcon:Xn),Fn},[fn,Pt,Qt,Tn,Dn]);return ye.createElement(E.aM.Provider,{value:Qn},Xe)}var en=function(Pe,Xe){var Me={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&Xe.indexOf(Ye)<0&&(Me[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ye=Object.getOwnPropertySymbols(Pe);Pt<Ye.length;Pt++)Xe.indexOf(Ye[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[Pt])&&(Me[Ye[Pt]]=Pe[Ye[Pt]]);return Me};function Jt(Pe){const{prefixCls:Xe,className:Me,rootClassName:Ye,style:Pt,help:an,errors:un,warnings:vn,validateStatus:Qt,meta:Ft,hasFeedback:Lt,hidden:fn,children:Tn,fieldId:Dn,required:Bn,isRequired:Xn,onSubItemMetaChange:Qn,layout:Jn}=Pe,Zn=en(Pe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Fn=`${Xe}-item`,{requiredMark:Hn,vertical:Un}=ye.useContext(E.q3),ur=Un||Jn==="vertical",qn=ye.useRef(null),lr=Ie(un),ir=Ie(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 bt(Sr,Rr,Ft,"",!!Lt,Qt)}(),dr=Se()(Fn,Me,Ye,{[`${Fn}-with-help`]:er||lr.length||ir.length,[`${Fn}-has-feedback`]:or&&Lt,[`${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:Pt,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},Pe,{requiredMark:Hn,required:Bn!=null?Bn:Xn,prefixCls:Xe,vertical:ur})),ye.createElement(Be,Object.assign({},Pe,Ft,{errors:lr,warnings:ir,prefixCls:Xe,status:or,help:an,marginBottom:mr,onErrorVisibleChanged:vr}),ye.createElement(E.qI.Provider,{value:Qn},ye.createElement(It,{prefixCls:Xe,meta:Ft,errors:Ft.errors,warnings:Ft.warnings,hasFeedback:Lt,validateStatus:or},Tn)))),!!mr&&ye.createElement("div",{className:`${Fn}-margin-offset`,style:{marginBottom:-mr}}))}const qt="__SPLIT__",gn=null;function wn(Pe,Xe){const Me=Object.keys(Pe),Ye=Object.keys(Xe);return Me.length===Ye.length&&Me.every(Pt=>{const an=Pe[Pt],un=Xe[Pt];return an===un||typeof an=="function"||typeof un=="function"})}const Sn=ye.memo(Pe=>{let{children:Xe}=Pe;return Xe},(Pe,Xe)=>wn(Pe.control,Xe.control)&&Pe.update===Xe.update&&Pe.childProps.length===Xe.childProps.length&&Pe.childProps.every((Me,Ye)=>Me===Xe.childProps[Ye]));function Mn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kn(Pe){const{name:Xe,noStyle:Me,className:Ye,dependencies:Pt,prefixCls:an,shouldUpdate:un,rules:vn,children:Qt,required:Ft,label:Lt,messageVariables:fn,trigger:Tn="onChange",validateTrigger:Dn,hidden:Bn,help:Xn,layout:Qn}=Pe,{getPrefixCls:Jn}=ye.useContext(ut.E_),{name:Zn}=ye.useContext(E.q3),Fn=Ke(Qt),Hn=typeof Fn=="function",Un=ye.useContext(E.qI),{validateTrigger:ur}=ye.useContext(we.FieldContext),qn=Dn!==void 0?Dn:ur,lr=Xe!=null,ir=Jn("form",an),er=(0,Ze.Z)(ir),[tr,gr,mr]=Fe(ir,er),cr=(0,Qe.ln)("Form.Item"),vr=ye.useContext(we.ListContext),Cr=ye.useRef(null),[or,dr]=Wt({}),[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,at.Z)(Cn)),Cr.current=pn}Un(fr,pn)}},Hr=(fr,Yn)=>{dr(pn=>{const En=Object.assign({},pn),sn=[].concat((0,at.Z)(fr.name.slice(0,-1)),(0,at.Z)(Yn)).join(qt);return fr.destroy?delete En[sn]:En[sn]=fr,En})},[Er,Ar]=ye.useMemo(()=>{const fr=(0,at.Z)(Gn.errors),Yn=(0,at.Z)(Gn.warnings);return Object.values(or).forEach(pn=>{fr.push.apply(fr,(0,at.Z)(pn.errors||[])),Yn.push.apply(Yn,(0,at.Z)(pn.warnings||[]))}),[fr,Yn]},[or,Gn.errors,Gn.warnings]),Ir=Zt();function Dr(fr,Yn,pn){return Me&&!Bn?ye.createElement(It,{prefixCls:ir,hasFeedback:Pe.hasFeedback,validateStatus:Pe.validateStatus,meta:Gn,errors:Er,warnings:Ar,noStyle:!0},fr):ye.createElement(Jt,Object.assign({key:"row"},Pe,{className:Se()(Ye,mr,er,gr),prefixCls:ir,fieldId:Yn,isRequired:pn,errors:Er,warnings:Ar,meta:Gn,onSubItemMetaChange:Hr,layout:Qn}),fr)}if(!lr&&!Hn&&!Pt)return tr(Dr(Fn));let _r={};return typeof Lt=="string"?_r.label=Lt:Xe&&(_r.label=String(Xe)),fn&&(_r=Object.assign(Object.assign({},_r),fn)),tr(ye.createElement(we.Field,Object.assign({},Pe,{messageVariables:_r,trigger:Tn,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,pn)=>{const En=Re(Xe).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||Pt)||lr))){if(!(Pt&&!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||Pe.extra){const Rn=[];(Xn||Er.length>0)&&Rn.push(`${Cn}_help`),Pe.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,at.Z)(Re(Tn)),(0,at.Z)(Re(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||Pt)&&!lr?jn=Fn(pn):jn=Fn}return Dr(jn,Cn,sn)}))}const Wn=kn;Wn.useStatus=St;var An=Wn,Tt=function(Pe,Xe){var Me={};for(var Ye in Pe)Object.prototype.hasOwnProperty.call(Pe,Ye)&&Xe.indexOf(Ye)<0&&(Me[Ye]=Pe[Ye]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ye=Object.getOwnPropertySymbols(Pe);Pt<Ye.length;Pt++)Xe.indexOf(Ye[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Ye[Pt])&&(Me[Ye[Pt]]=Pe[Ye[Pt]]);return Me},xn=Pe=>{var{prefixCls:Xe,children:Me}=Pe,Ye=Tt(Pe,["prefixCls","children"]);const{getPrefixCls:Pt}=ye.useContext(ut.E_),an=Pt("form",Xe),un=ye.useMemo(()=>({prefixCls:an,status:"error"}),[an]);return ye.createElement(we.List,Object.assign({},Ye),(vn,Qt,Ft)=>ye.createElement(E.Rk.Provider,{value:un},Me(vn.map(Lt=>Object.assign(Object.assign({},Lt),{fieldKey:Lt.key})),Qt,{errors:Ft.errors,warnings:Ft.warnings})))};function hn(){const{form:Pe}=ye.useContext(E.q3);return Pe}const Ue=ue;Ue.Item=An,Ue.List=xn,Ue.ErrorList=De,Ue.useForm=lt,Ue.useFormInstance=hn,Ue.useWatch=we.useWatch,Ue.Provider=E.RV,Ue.create=()=>{};var st=Ue},4875:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ht}});var E=re(59301),at=re(84105),ye=re(87395),et=re(92310),Se=re.n(et),Oe=re(60499),Ee=re(18642),Ze=re(43749),Ie=re(72190),he=re(42244),Je=re(38705),xe=re(17212);function xt(){return typeof BigInt=="function"}function qe(Be){return!Be&&Be!==0&&!Number.isNaN(Be)||!String(Be).trim()}function Ne(Be){var nt=Be.trim(),yt=nt.startsWith("-");yt&&(nt=nt.slice(1)),nt=nt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),nt.startsWith(".")&&(nt="0".concat(nt));var Mt=nt||"0",Ut=Mt.split("."),ln=Ut[0]||"0",In=Ut[1]||"0";ln==="0"&&In==="0"&&(yt=!1);var Pn=yt?"-":"";return{negative:yt,negativeStr:Pn,trimStr:Mt,integerStr:ln,decimalStr:In,fullStr:"".concat(Pn).concat(Mt)}}function Ve(Be){var nt=String(Be);return!Number.isNaN(Number(nt))&&nt.includes("e")}function We(Be){var nt=String(Be);if(Ve(Be)){var yt=Number(nt.slice(nt.indexOf("e-")+2)),Mt=nt.match(/\.(\d+)/);return Mt!=null&&Mt[1]&&(yt+=Mt[1].length),yt}return nt.includes(".")&&Ct(nt)?nt.length-nt.indexOf(".")-1:0}function ct(Be){var nt=String(Be);if(Ve(Be)){if(Be>Number.MAX_SAFE_INTEGER)return String(xt()?BigInt(Be).toString():Number.MAX_SAFE_INTEGER);if(Be<Number.MIN_SAFE_INTEGER)return String(xt()?BigInt(Be).toString():Number.MIN_SAFE_INTEGER);nt=Be.toFixed(We(nt))}return Ne(nt).fullStr}function Ct(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 Dt=function(){function Be(nt){if((0,Je.Z)(this,Be),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),qe(nt)){this.empty=!0;return}if(this.origin=String(nt),nt==="-"||Number.isNaN(nt)){this.nan=!0;return}var yt=nt;if(Ve(yt)&&(yt=Number(yt)),yt=typeof yt=="string"?yt:ct(yt),Ct(yt)){var Mt=Ne(yt);this.negative=Mt.negative;var Ut=Mt.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,xe.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(yt){var Mt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(yt,"0"));return BigInt(Mt)}},{key:"negate",value:function(){var yt=new Be(this.toString());return yt.negative=!yt.negative,yt}},{key:"cal",value:function(yt,Mt,Ut){var ln=Math.max(this.getDecimalStr().length,yt.getDecimalStr().length),In=this.alignDecimal(ln),Pn=yt.alignDecimal(ln),on=Mt(In,Pn).toString(),bn=Ut(ln),dn=Ne(on),Gt=dn.negativeStr,At=dn.trimStr,Rt="".concat(Gt).concat(At.padStart(bn+1,"0"));return new Be("".concat(Rt.slice(0,-bn),".").concat(Rt.slice(-bn)))}},{key:"add",value:function(yt){if(this.isInvalidate())return new Be(yt);var Mt=new Be(yt);return Mt.isInvalidate()?this:this.cal(Mt,function(Ut,ln){return Ut+ln},function(Ut){return Ut})}},{key:"multi",value:function(yt){var Mt=new Be(yt);return this.isInvalidate()||Mt.isInvalidate()?new Be(NaN):this.cal(Mt,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(yt){return this.toString()===(yt==null?void 0:yt.toString())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":Ne("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Be}(),ft=function(){function Be(nt){if((0,Je.Z)(this,Be),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),qe(nt)){this.empty=!0;return}this.origin=String(nt),this.number=Number(nt)}return(0,xe.Z)(Be,[{key:"negate",value:function(){return new Be(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new Be(yt);var Mt=Number(yt);if(Number.isNaN(Mt))return this;var Ut=this.number+Mt;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(We(this.number),We(Mt));return new Be(Ut.toFixed(ln))}},{key:"multi",value:function(yt){var Mt=Number(yt);if(this.isInvalidate()||Number.isNaN(Mt))return new Be(NaN);var Ut=this.number*Mt;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(We(this.number),We(Mt));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(yt){return this.toNumber()===(yt==null?void 0:yt.toNumber())}},{key:"lessEquals",value:function(yt){return this.add(yt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":ct(this.number):this.origin}}]),Be}();function rt(Be){return xt()?new Dt(Be):new ft(Be)}function tt(Be,nt,yt){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Be==="")return"";var Ut=Ne(Be),ln=Ut.negativeStr,In=Ut.integerStr,Pn=Ut.decimalStr,on="".concat(nt).concat(Pn),bn="".concat(ln).concat(In);if(yt>=0){var dn=Number(Pn[yt]);if(dn>=5&&!Mt){var Gt=rt(Be).add("".concat(ln,"0.").concat("0".repeat(yt)).concat(10-dn));return tt(Gt.toString(),nt,yt,Mt)}return yt===0?bn:"".concat(bn).concat(nt).concat(Pn.padEnd(yt,"0").slice(0,yt))}return on===".0"?bn:"".concat(bn).concat(on)}var Ge=rt,vt=re(36901),Ae=re(34280);function je(Be,nt){return typeof Proxy!="undefined"&&Be?new Proxy(Be,{get:function(Mt,Ut){if(nt[Ut])return nt[Ut];var ln=Mt[Ut];return typeof ln=="function"?ln.bind(Mt):ln}}):Be}var ht=re(8654),ke=re(48736);function Fe(Be,nt){var yt=(0,E.useRef)(null);function Mt(){try{var ln=Be.selectionStart,In=Be.selectionEnd,Pn=Be.value,on=Pn.substring(0,ln),bn=Pn.substring(In);yt.current={start:ln,end:In,value:Pn,beforeTxt:on,afterTxt:bn}}catch(dn){}}function Ut(){if(Be&&yt.current&&nt)try{var ln=Be.value,In=yt.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-yt.current.afterTxt.length;else{var Gt=Pn[bn-1],At=ln.indexOf(Gt,bn-1);At!==-1&&(dn=At+1)}Be.setSelectionRange(dn,dn)}catch(Rt){(0,ke.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Rt.message))}}return[Mt,Ut]}var $e=re(49658),le=function(){var nt=(0,E.useState)(!1),yt=(0,Ie.Z)(nt,2),Mt=yt[0],Ut=yt[1];return(0,Ae.Z)(function(){Ut((0,$e.Z)())},[]),Mt},ze=le,De=re(16089),we=200,ut=600;function me(Be){var nt=Be.prefixCls,yt=Be.upNode,Mt=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,ut)};E.useEffect(function(){return function(){dn(),on.current.forEach(function(gn){return De.Z.cancel(gn)})}},[]);var At=ze();if(At)return null;var Rt="".concat(nt,"-handler"),It=Se()(Rt,"".concat(Rt,"-up"),(0,Ee.Z)({},"".concat(Rt,"-up-disabled"),Ut)),en=Se()(Rt,"".concat(Rt,"-down"),(0,Ee.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,Oe.Z)({},qt,{onMouseDown:function(wn){Gt(wn,!0)},"aria-label":"Increase Value","aria-disabled":Ut,className:It}),yt||E.createElement("span",{unselectable:"on",className:"".concat(nt,"-handler-up-inner")})),E.createElement("span",(0,Oe.Z)({},qt,{onMouseDown:function(wn){Gt(wn,!1)},"aria-label":"Decrease Value","aria-disabled":ln,className:en}),Mt||E.createElement("span",{unselectable:"on",className:"".concat(nt,"-handler-down-inner")})))}function ce(Be){var nt=typeof Be=="number"?ct(Be):Ne(Be).fullStr,yt=nt.includes(".");return yt?Ne(nt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Be+"0"}var _e=re(30292),Et=function(){var Be=(0,E.useRef)(0),nt=function(){De.Z.cancel(Be.current)};return(0,E.useEffect)(function(){return nt},[]),function(yt){nt(),Be.current=(0,De.Z)(function(){yt()})}},pt=["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"],Le=function(nt,yt){return nt||yt.isEmpty()?yt.toString():yt.toNumber()},Re=function(nt){var yt=Ge(nt);return yt.isInvalidate()?null:yt},wt=E.forwardRef(function(Be,nt){var yt=Be.prefixCls,Mt=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,At=Be.readOnly,Rt=Be.upHandler,It=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,Tt=Be.decimalSeparator,Kt=Be.onChange,xn=Be.onInput,hn=Be.onPressEnter,Ue=Be.onStep,st=Be.changeOnBlur,Pe=st===void 0?!0:st,Xe=Be.domRef,Me=(0,he.Z)(Be,pt),Ye="".concat(yt,"-input"),Pt=E.useRef(null),an=E.useState(!1),un=(0,Ie.Z)(an,2),vn=un[0],Qt=un[1],Ft=E.useRef(!1),Lt=E.useRef(!1),fn=E.useRef(!1),Tn=E.useState(function(){return Ge(dn!=null?dn:bn)}),Dn=(0,Ie.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(We(Cn),We(on))},[An,on]),Zn=E.useCallback(function(Cn){var sn=String(Cn);if(kn)return kn(sn);var _n=sn;return Tt&&(_n=_n.replace(Tt,".")),_n.replace(/[^\w.-]+/g,"")},[kn,Tt]),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"?ct(Cn):Cn;if(!sn){var jn=Jn(_n,sn);if(Ct(_n)&&(Tt||jn>=0)){var mn=Tt||".";_n=tt(_n,mn,jn)}}return _n},[Wn,Jn,Tt]),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,Ie.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 Re(In)},[In,An]),tr=E.useMemo(function(){return Re(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=Fe(Pt.current,vn),vr=(0,Ie.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),!At&&!Gt&&mn){var yn=jn.toString(),Nn=Jn(yn,_n);return Nn>=0&&(jn=Ge(tt(yn,".",Nn)),Gn(jn)||(jn=Ge(tt(yn,".",Nn,!0)))),jn.equals(Bn)||(Qn(jn),Kt==null||Kt(jn.isEmpty()?null:Le(Mn,jn)),dn===void 0&&ir(jn,_n)),jn}return Bn},Rr=Et(),Hr=function Cn(sn){if(Cr(),Fn.current=sn,lr(sn),!Lt.current){var _n=Zn(sn),jn=Ge(_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(){Lt.current=!0},Ar=function(){Lt.current=!1,Hr(Pt.current.value)},Ir=function(sn){Hr(sn.target.value)},Dr=function(sn){var _n;if(!(sn&&gr||!sn&&mr)){Ft.current=!1;var jn=Ge(fn.current?ce(on):on);sn||(jn=jn.negate());var mn=(Bn||Ge(0)).add(jn.toString()),yn=Sr(mn,!1);Ue==null||Ue(Le(Mn,yn),{offset:fn.current?ce(on):on,type:sn?"up":"down"}),(_n=Pt.current)===null||_n===void 0||_n.focus()}},_r=function(sn){var _n=Ge(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"&&(Lt.current||(Ft.current=!1),_r(!1),hn==null||hn(sn)),en!==!1&&!Lt.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=Pt.current;if(sn)return sn.addEventListener("wheel",Cn,{passive:!1}),function(){return sn.removeEventListener("wheel",Cn)}}});var En=function(){Pe&&_r(!1),Qt(!1),Ft.current=!1};return(0,Ae.o)(function(){Bn.isInvalidate()||ir(Bn,!1)},[An,Wn]),(0,Ae.o)(function(){var Cn=Ge(dn);Xn(Cn);var sn=Ge(Zn(qn));(!Cn.equals(sn)||!Ft.current||Wn)&&ir(Cn,Ft.current)},[dn]),(0,Ae.o)(function(){Wn&&or()},[qn]),E.createElement("div",{ref:Xe,className:Se()(yt,Mt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(yt,"-focused"),vn),"".concat(yt,"-disabled"),Gt),"".concat(yt,"-readonly"),At),"".concat(yt,"-not-a-number"),Bn.isNaN()),"".concat(yt,"-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:yt,upNode:Rt,downNode:It,upDisabled:gr,downDisabled:mr,onStep:Dr}),E.createElement("div",{className:"".concat(Ye,"-wrap")},E.createElement("input",(0,Oe.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)(Pt,nt),className:Ye,value:qn,onChange:Ir,disabled:Gt,readOnly:At}))))}),bt=E.forwardRef(function(Be,nt){var yt=Be.disabled,Mt=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,At=Be.classNames,Rt=(0,he.Z)(Be,ve),It=E.useRef(null),en=E.useRef(null),Jt=E.useRef(null),qt=function(wn){Jt.current&&(0,_e.nH)(Jt.current,wn)};return E.useImperativeHandle(nt,function(){return je(Jt.current,{focus:qt,nativeElement:It.current.nativeElement||en.current})}),E.createElement(vt.BaseInput,{className:Gt,triggerFocus:qt,prefixCls:ln,value:In,disabled:yt,style:Mt,prefix:Pn,suffix:on,addonAfter:dn,addonBefore:bn,classNames:At,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:It},E.createElement(wt,(0,Oe.Z)({prefixCls:ln,disabled:yt,ref:Jt,domRef:en,className:At==null?void 0:At.input},Rt)))}),Bt=bt,Te=Bt,Ot=re(62487),lt=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),Qe=re(36237),Ce=re(53075),Ke=re(64910),ot=re(39082),St=re(63356),gt=re(56119),Wt=re(16931),Zt=re(51636),$t=re(17835);const tn=Be=>{var nt;const yt=(nt=Be.handleVisible)!==null&&nt!==void 0?nt:"auto",Mt=Be.controlHeightSM-Be.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(Be)),{controlWidth:90,handleWidth:Mt,handleFontSize:Be.fontSize/2,handleVisible:yt,handleActiveBg:Be.colorFillAlter,handleBg:Be.colorBgContainer,filledHandleBg:new $t.FastColor(Be.colorFillSecondary).onBackground(Be.colorBgContainer).toHexString(),handleHoverColor:Be.colorPrimary,handleBorderColor:Be.colorBorder,handleOpacity:yt===!0?1:0,handleVisibleWidth:yt===!0?Mt:0})},Xt=(Be,nt)=>{let{componentCls:yt,borderRadiusSM:Mt,borderRadiusLG:Ut}=Be;const ln=nt==="lg"?Ut:Mt;return{[`&-${nt}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:ln,borderEndEndRadius:ln},[`${yt}-handler-up`]:{borderStartEndRadius:ln},[`${yt}-handler-down`]:{borderEndEndRadius:ln}}}},rn=Be=>{const{componentCls:nt,lineWidth:yt,lineType:Mt,borderRadius:Ut,inputFontSizeSM:ln,inputFontSizeLG:In,controlHeightLG:Pn,controlHeightSM:on,colorError:bn,paddingInlineSM:dn,paddingBlockSM:Gt,paddingBlockLG:At,paddingInlineLG:Rt,colorTextDescription:It,motionDurationMid:en,handleHoverColor:Jt,handleOpacity:qt,paddingInline:gn,paddingBlock:wn,handleBg:Sn,handleActiveBg:Mn,colorTextDisabled:kn,borderRadiusSM:Wn,borderRadiusLG:An,controlWidth:Tt,handleBorderColor:Kt,filledHandleBg:xn,lineHeightLG:hn,calc:Ue}=Be;return[{[nt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Be)),(0,Ce.ik)(Be)),{display:"inline-block",width:Tt,margin:0,padding:0,borderRadius:Ut}),(0,ot.qG)(Be,{[`${nt}-handler-wrap`]:{background:Sn,[`${nt}-handler-down`]:{borderBlockStart:`${(0,Qe.unit)(yt)} ${Mt} ${Kt}`}}})),(0,ot.H8)(Be,{[`${nt}-handler-wrap`]:{background:xn,[`${nt}-handler-down`]:{borderBlockStart:`${(0,Qe.unit)(yt)} ${Mt} ${Kt}`}},"&:focus-within":{[`${nt}-handler-wrap`]:{background:Sn}}})),(0,ot.vc)(Be,{[`${nt}-handler-wrap`]:{background:Sn,[`${nt}-handler-down`]:{borderBlockStart:`${(0,Qe.unit)(yt)} ${Mt} ${Kt}`}}})),(0,ot.Mu)(Be)),{"&-rtl":{direction:"rtl",[`${nt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:In,lineHeight:hn,borderRadius:An,[`input${nt}-input`]:{height:Ue(Pn).sub(Ue(yt).mul(2)).equal(),padding:`${(0,Qe.unit)(At)} ${(0,Qe.unit)(Rt)}`}},"&-sm":{padding:0,fontSize:ln,borderRadius:Wn,[`input${nt}-input`]:{height:Ue(on).sub(Ue(yt).mul(2)).equal(),padding:`${(0,Qe.unit)(Gt)} ${(0,Qe.unit)(dn)}`}},"&-out-of-range":{[`${nt}-input-wrap`]:{input:{color:bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Be)),(0,Ce.s7)(Be)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${nt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${nt}-group-addon`]:{borderRadius:An,fontSize:Be.fontSizeLG}},"&-sm":{[`${nt}-group-addon`]:{borderRadius:Wn}}},(0,ot.ir)(Be)),(0,ot.S5)(Be)),{[`&:not(${nt}-compact-first-item):not(${nt}-compact-last-item)${nt}-compact-item`]:{[`${nt}, ${nt}-group-addon`]:{borderRadius:0}},[`&:not(${nt}-compact-last-item)${nt}-compact-first-item`]:{[`${nt}, ${nt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${nt}-compact-first-item)${nt}-compact-last-item`]:{[`${nt}, ${nt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${nt}-input`]:{cursor:"not-allowed"},[nt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Be)),{width:"100%",padding:`${(0,Qe.unit)(wn)} ${(0,Qe.unit)(gn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${en} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ce.nz)(Be.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${nt}-handler-wrap, &-focused ${nt}-handler-wrap`]:{width:Be.handleWidth,opacity:1}})},{[nt]:Object.assign(Object.assign(Object.assign({[`${nt}-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",[`${nt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${nt}-handler-up-inner,
|
|
|
${nt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Be.handleFontSize}}},[`${nt}-handler`]:{height:"50%",overflow:"hidden",color:It,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Qe.unit)(yt)} ${Mt} ${Kt}`,transition:`all ${en} linear`,"&:active":{background:Mn},"&:hover":{height:"60%",[`
|
|
|
${nt}-handler-up-inner,
|
|
|
${nt}-handler-down-inner
|
|
|
`]:{color:Jt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,St.Ro)()),{color:It,transition:`all ${en} linear`,userSelect:"none"})},[`${nt}-handler-up`]:{borderStartEndRadius:Ut},[`${nt}-handler-down`]:{borderEndEndRadius:Ut}},Xt(Be,"lg")),Xt(Be,"sm")),{"&-disabled, &-readonly":{[`${nt}-handler-wrap`]:{display:"none"},[`${nt}-input`]:{color:"inherit"}},[`
|
|
|
${nt}-handler-up-disabled,
|
|
|
${nt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${nt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${nt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:kn}})}]},kt=Be=>{const{componentCls:nt,paddingBlock:yt,paddingInline:Mt,inputAffixPadding:Ut,controlWidth:ln,borderRadiusLG:In,borderRadiusSM:Pn,paddingInlineLG:on,paddingInlineSM:bn,paddingBlockLG:dn,paddingBlockSM:Gt,motionDurationMid:At}=Be;return{[`${nt}-affix-wrapper`]:Object.assign(Object.assign({[`input${nt}-input`]:{padding:`${(0,Qe.unit)(yt)} 0`}},(0,Ce.ik)(Be)),{position:"relative",display:"inline-flex",alignItems:"center",width:ln,padding:0,paddingInlineStart:Mt,"&-lg":{borderRadius:In,paddingInlineStart:on,[`input${nt}-input`]:{padding:`${(0,Qe.unit)(dn)} 0`}},"&-sm":{borderRadius:Pn,paddingInlineStart:bn,[`input${nt}-input`]:{padding:`${(0,Qe.unit)(Gt)} 0`}},[`&:not(${nt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${nt}-disabled`]:{background:"transparent"},[`> div${nt}`]:{width:"100%",border:"none",outline:"none",[`&${nt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${nt}-handler-wrap`]:{zIndex:2},[nt]:{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:Mt,marginInlineStart:Ut,transition:`margin ${At}`}},[`&:hover ${nt}-handler-wrap, &-focused ${nt}-handler-wrap`]:{width:Be.handleWidth,opacity:1},[`&:not(${nt}-affix-wrapper-without-controls):hover ${nt}-suffix`]:{marginInlineEnd:Be.calc(Be.handleWidth).add(Mt).equal()}})}};var Yt=(0,Wt.I$)("InputNumber",Be=>{const nt=(0,Zt.mergeToken)(Be,(0,Ke.e)(Be));return[rn(nt),kt(nt),(0,gt.c)(nt)]},tn,{unitless:{handleOpacity:!0}}),Vt=function(Be,nt){var yt={};for(var Mt in Be)Object.prototype.hasOwnProperty.call(Be,Mt)&&nt.indexOf(Mt)<0&&(yt[Mt]=Be[Mt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Mt=Object.getOwnPropertySymbols(Be);Ut<Mt.length;Ut++)nt.indexOf(Mt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(Be,Mt[Ut])&&(yt[Mt[Ut]]=Be[Mt[Ut]]);return yt};const He=E.forwardRef((Be,nt)=>{const{getPrefixCls:yt,direction:Mt}=E.useContext(ae.E_),Ut=E.useRef(null);E.useImperativeHandle(nt,()=>Ut.current);const{className:ln,rootClassName:In,size:Pn,disabled:on,prefixCls:bn,addonBefore:dn,addonAfter:Gt,prefix:At,suffix:Rt,bordered:It,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=yt("input-number",bn),Mn=(0,oe.Z)(Sn),[kn,Wn,An]=Yt(Sn,Mn),{compactSize:Tt,compactItemClassnames:Kt}=(0,ge.ri)(Sn,Mt);let xn=E.createElement(ye.Z,{className:`${Sn}-handler-up-inner`}),hn=E.createElement(at.Z,{className:`${Sn}-handler-down-inner`});const Ue=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:Pe,isFormItemInput:Xe,feedbackIcon:Me}=E.useContext(ne.aM),Ye=(0,lt.F)(Pe,Jt),Pt=(0,ue.Z)(Dn=>{var Bn;return(Bn=Pn!=null?Pn:Tt)!==null&&Bn!==void 0?Bn:Dn}),an=E.useContext(ee.Z),un=on!=null?on:an,[vn,Qt]=(0,pe.Z)("inputNumber",gn,It),Ft=st&&E.createElement(E.Fragment,null,Me),Lt=Se()({[`${Sn}-lg`]:Pt==="large",[`${Sn}-sm`]:Pt==="small",[`${Sn}-rtl`]:Mt==="rtl",[`${Sn}-in-form-item`]:Xe},Wn),fn=`${Sn}-group`,Tn=E.createElement(Te,Object.assign({ref:Ut,disabled:un,className:Se()(An,Mn,ln,In,Kt),upHandler:xn,downHandler:hn,prefixCls:Sn,readOnly:en,controls:Ue,prefix:At,suffix:Ft||Rt,addonBefore:dn&&E.createElement(Ot.Z,{form:!0,space:!0},dn),addonAfter:Gt&&E.createElement(Ot.Z,{form:!0,space:!0},Gt),classNames:{input:Lt,variant:Se()({[`${Sn}-${vn}`]:Qt},(0,lt.Z)(Sn,Ye,st)),affixWrapper:Se()({[`${Sn}-affix-wrapper-sm`]:Pt==="small",[`${Sn}-affix-wrapper-lg`]:Pt==="large",[`${Sn}-affix-wrapper-rtl`]:Mt==="rtl",[`${Sn}-affix-wrapper-without-controls`]:qt===!1||un},Wn),wrapper:Se()({[`${fn}-rtl`]:Mt==="rtl"},Wn),groupWrapper:Se()({[`${Sn}-group-wrapper-sm`]:Pt==="small",[`${Sn}-group-wrapper-lg`]:Pt==="large",[`${Sn}-group-wrapper-rtl`]:Mt==="rtl",[`${Sn}-group-wrapper-${vn}`]:Qt},(0,lt.Z)(`${Sn}-group-wrapper`,Ye,st),Wn)}},wn));return kn(Tn)}),dt=He,Nt=Be=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(He,Object.assign({},Be)));dt._InternalPanelDoNotUseOrYouWillBeFired=Nt;var Ht=dt},49397:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return ft}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(36901),Se=re(8654),Oe=re(62487),Ee=re(86013),Ze=re(82855),Ie=re(48755),he=re(2171),Je=re(83397),xe=re(31756),xt=re(56553),qe=re(24971),Ne=re(70045),Ve=re(23826),We=re(53075);function ct(rt){return!!(rt.prefix||rt.suffix||rt.allowClear||rt.showCount)}var Ct=function(rt,tt){var Ge={};for(var vt in rt)Object.prototype.hasOwnProperty.call(rt,vt)&&tt.indexOf(vt)<0&&(Ge[vt]=rt[vt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,vt=Object.getOwnPropertySymbols(rt);Ae<vt.length;Ae++)tt.indexOf(vt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(rt,vt[Ae])&&(Ge[vt[Ae]]=rt[vt[Ae]]);return Ge},ft=(0,E.forwardRef)((rt,tt)=>{const{prefixCls:Ge,bordered:vt=!0,status:Ae,size:je,disabled:ht,onBlur:ke,onFocus:Fe,suffix:$e,allowClear:le,addonAfter:ze,addonBefore:De,className:we,style:ut,styles:me,rootClassName:ce,onChange:_e,classNames:Et,variant:pt}=rt,ve=Ct(rt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Le,direction:Re,allowClear:wt,autoComplete:bt,className:Bt,style:Te,classNames:Ot,styles:lt}=(0,Ie.dj)("input"),ae=Le("input",Ge),te=(0,E.useRef)(null),ee=(0,Je.Z)(ae),[oe,ue,ne]=(0,We.TI)(ae,ce),[pe]=(0,We.ZP)(ae,ee),{compactSize:ge,compactItemClassnames:Qe}=(0,Ne.ri)(ae,Re),Ce=(0,xe.Z)(Ht=>{var Be;return(Be=je!=null?je:ge)!==null&&Be!==void 0?Be:Ht}),Ke=E.useContext(he.Z),ot=ht!=null?ht:Ke,{status:St,hasFeedback:gt,feedbackIcon:Wt}=(0,E.useContext)(xt.aM),Zt=(0,Ze.F)(St,Ae),$t=ct(rt)||!!gt,tn=(0,E.useRef)($t),Xt=(0,Ve.Z)(te,!0),rn=Ht=>{Xt(),ke==null||ke(Ht)},kt=Ht=>{Xt(),Fe==null||Fe(Ht)},Yt=Ht=>{Xt(),_e==null||_e(Ht)},Vt=(gt||$e)&&E.createElement(E.Fragment,null,$e,gt&&Wt),He=(0,Ee.Z)(le!=null?le:wt),[dt,Nt]=(0,qe.Z)("input",pt,vt);return oe(pe(E.createElement(et.default,Object.assign({ref:(0,Se.sQ)(tt,te),prefixCls:ae,autoComplete:bt},ve,{disabled:ot,onBlur:rn,onFocus:kt,style:Object.assign(Object.assign({},Te),ut),styles:Object.assign(Object.assign({},lt),me),suffix:Vt,allowClear:He,className:ye()(we,ce,ne,ee,Qe,Bt),onChange:Yt,addonBefore:De&&E.createElement(Oe.Z,{form:!0,space:!0},De),addonAfter:ze&&E.createElement(Oe.Z,{form:!0,space:!0},ze),classNames:Object.assign(Object.assign(Object.assign({},Et),Ot),{input:ye()({[`${ae}-sm`]:Ce==="small",[`${ae}-lg`]:Ce==="large",[`${ae}-rtl`]:Re==="rtl"},Et==null?void 0:Et.input,Ot.input,ue),variant:ye()({[`${ae}-${dt}`]:Nt},(0,Ze.Z)(ae,Zt)),affixWrapper:ye()({[`${ae}-affix-wrapper-sm`]:Ce==="small",[`${ae}-affix-wrapper-lg`]:Ce==="large",[`${ae}-affix-wrapper-rtl`]:Re==="rtl"},ue),wrapper:ye()({[`${ae}-group-rtl`]:Re==="rtl"},ue),groupWrapper:ye()({[`${ae}-group-wrapper-sm`]:Ce==="small",[`${ae}-group-wrapper-lg`]:Ce==="large",[`${ae}-group-wrapper-rtl`]:Re==="rtl",[`${ae}-group-wrapper-${dt}`]:Nt},(0,Ze.Z)(`${ae}-group-wrapper`,Zt,gt),ue)})}))))})},79809:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return tt}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(22711),Se=re(86013),Oe=re(82855),Ee=re(48755),Ze=re(2171),Ie=re(83397),he=re(31756),Je=re(56553),xe=re(24971),xt=re(70045),qe=re(30292),Ne=re(53075),Ve=re(16931),We=re(51636),ct=re(64910);const Ct=Ge=>{const{componentCls:vt,paddingLG:Ae}=Ge,je=`${vt}-textarea`;return{[`textarea${vt}`]:{maxWidth:"100%",height:"auto",minHeight:Ge.controlHeight,lineHeight:Ge.lineHeight,verticalAlign:"bottom",transition:`all ${Ge.motionDurationSlow}`,resize:"vertical",[`&${vt}-mouse-active`]:{transition:`all ${Ge.motionDurationSlow}, height 0s, width 0s`}},[`${vt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[je]:{position:"relative","&-show-count":{[`> ${vt}`]:{height:"100%"},[`${vt}-data-count`]:{position:"absolute",bottom:Ge.calc(Ge.fontSize).mul(Ge.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ge.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${vt},
|
|
|
&-affix-wrapper${je}-has-feedback ${vt}
|
|
|
`]:{paddingInlineEnd:Ae},[`&-affix-wrapper${vt}-affix-wrapper`]:{padding:0,[`> textarea${vt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ge.calc(Ge.controlHeight).sub(Ge.calc(Ge.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${vt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${vt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingInline,insetBlockStart:Ge.paddingXS},[`${je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ge.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${vt}-affix-wrapper-sm`]:{[`${vt}-suffix`]:{[`${vt}-clear-icon`]:{insetInlineEnd:Ge.paddingInlineSM}}}}}};var Dt=(0,Ve.I$)(["Input","TextArea"],Ge=>{const vt=(0,We.mergeToken)(Ge,(0,ct.e)(Ge));return[Ct(vt)]},ct.T,{resetFont:!1}),ft=function(Ge,vt){var Ae={};for(var je in Ge)Object.prototype.hasOwnProperty.call(Ge,je)&&vt.indexOf(je)<0&&(Ae[je]=Ge[je]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,je=Object.getOwnPropertySymbols(Ge);ht<je.length;ht++)vt.indexOf(je[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ge,je[ht])&&(Ae[je[ht]]=Ge[je[ht]]);return Ae},tt=(0,E.forwardRef)((Ge,vt)=>{var Ae;const{prefixCls:je,bordered:ht=!0,size:ke,disabled:Fe,status:$e,allowClear:le,classNames:ze,rootClassName:De,className:we,style:ut,styles:me,variant:ce,showCount:_e,onMouseDown:Et,onResize:pt}=Ge,ve=ft(Ge,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Le,direction:Re,allowClear:wt,autoComplete:bt,className:Bt,style:Te,classNames:Ot,styles:lt}=(0,Ee.dj)("textArea"),ae=E.useContext(Ze.Z),te=Fe!=null?Fe:ae,{status:ee,hasFeedback:oe,feedbackIcon:ue}=E.useContext(Je.aM),ne=(0,Oe.F)(ee,$e),pe=E.useRef(null);E.useImperativeHandle(vt,()=>{var Nt;return{resizableTextArea:(Nt=pe.current)===null||Nt===void 0?void 0:Nt.resizableTextArea,focus:Ht=>{var Be,nt;(0,qe.nH)((nt=(Be=pe.current)===null||Be===void 0?void 0:Be.resizableTextArea)===null||nt===void 0?void 0:nt.textArea,Ht)},blur:()=>{var Ht;return(Ht=pe.current)===null||Ht===void 0?void 0:Ht.blur()}}});const ge=Le("input",je),Qe=(0,Ie.Z)(ge),[Ce,Ke,ot]=(0,Ne.TI)(ge,De),[St]=Dt(ge,Qe),{compactSize:gt,compactItemClassnames:Wt}=(0,xt.ri)(ge,Re),Zt=(0,he.Z)(Nt=>{var Ht;return(Ht=ke!=null?ke:gt)!==null&&Ht!==void 0?Ht:Nt}),[$t,tn]=(0,xe.Z)("textArea",ce,ht),Xt=(0,Se.Z)(le!=null?le:wt),[rn,kt]=E.useState(!1),[Yt,Vt]=E.useState(!1),He=Nt=>{kt(!0),Et==null||Et(Nt);const Ht=()=>{kt(!1),document.removeEventListener("mouseup",Ht)};document.addEventListener("mouseup",Ht)},dt=Nt=>{var Ht,Be;if(pt==null||pt(Nt),rn&&typeof getComputedStyle=="function"){const nt=(Be=(Ht=pe.current)===null||Ht===void 0?void 0:Ht.nativeElement)===null||Be===void 0?void 0:Be.querySelector("textarea");nt&&getComputedStyle(nt).resize==="both"&&Vt(!0)}};return Ce(St(E.createElement(et.default,Object.assign({autoComplete:bt},ve,{style:Object.assign(Object.assign({},Te),ut),styles:Object.assign(Object.assign({},lt),me),disabled:te,allowClear:Xt,className:ye()(ot,Qe,we,De,Wt,Bt,Yt&&`${ge}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ze),Ot),{textarea:ye()({[`${ge}-sm`]:Zt==="small",[`${ge}-lg`]:Zt==="large"},Ke,ze==null?void 0:ze.textarea,Ot.textarea,rn&&`${ge}-mouse-active`),variant:ye()({[`${ge}-${$t}`]:tn},(0,Oe.Z)(ge,ne)),affixWrapper:ye()(`${ge}-textarea-affix-wrapper`,{[`${ge}-affix-wrapper-rtl`]:Re==="rtl",[`${ge}-affix-wrapper-sm`]:Zt==="small",[`${ge}-affix-wrapper-lg`]:Zt==="large",[`${ge}-textarea-show-count`]:_e||((Ae=Ge.count)===null||Ae===void 0?void 0:Ae.show)},Ke)}),prefixCls:ge,suffix:oe&&E.createElement("span",{className:`${ge}-textarea-suffix`},ue),showCount:_e,ref:pe,onResize:dt,onMouseDown:He}))))})},23826:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return at}});var E=re(59301);function at(ye,et){const Se=(0,E.useRef)([]),Oe=()=>{Se.current.push(setTimeout(()=>{var Ee,Ze,Ie,he;!((Ee=ye.current)===null||Ee===void 0)&&Ee.input&&((Ze=ye.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Ie=ye.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((he=ye.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(et&&Oe(),()=>Se.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),Oe}},37568:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return Ot}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(48755),Se=re(56553),Oe=re(53075),Ze=lt=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(et.E_),{prefixCls:ee,className:oe}=lt,ue=ae("input-group",ee),ne=ae("input"),[pe,ge,Qe]=(0,Oe.ZP)(ne),Ce=ye()(ue,Qe,{[`${ue}-lg`]:lt.size==="large",[`${ue}-sm`]:lt.size==="small",[`${ue}-compact`]:lt.compact,[`${ue}-rtl`]:te==="rtl"},ge,oe),Ke=(0,E.useContext)(Se.aM),ot=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return pe(E.createElement("span",{className:Ce,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},E.createElement(Se.aM.Provider,{value:ot},lt.children)))},Ie=re(49397),he=re(77654),Je=re(6089),xe=re(26112),xt=re(82855),qe=re(31756),Ne=re(16931),Ve=re(51636),We=re(64910);const ct=lt=>{const{componentCls:ae,paddingXS:te}=lt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:lt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:lt.calc(lt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:lt.paddingXS}}}};var Ct=(0,Ne.I$)(["Input","OTP"],lt=>{const ae=(0,Ve.mergeToken)(lt,(0,We.e)(lt));return[ct(ae)]},We.T),Dt=re(16089),ft=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te},tt=E.forwardRef((lt,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:ue,mask:ne}=lt,pe=ft(lt,["value","onChange","onActiveChange","index","mask"]),ge=te&&typeof ne=="string"?ne:te,Qe=gt=>{ee(ue,gt.target.value)},Ce=E.useRef(null);E.useImperativeHandle(ae,()=>Ce.current);const Ke=()=>{(0,Dt.Z)(()=>{var gt;const Wt=(gt=Ce.current)===null||gt===void 0?void 0:gt.input;document.activeElement===Wt&&Wt&&Wt.select()})},ot=gt=>{const{key:Wt,ctrlKey:Zt,metaKey:$t}=gt;Wt==="ArrowLeft"?oe(ue-1):Wt==="ArrowRight"?oe(ue+1):Wt==="z"&&(Zt||$t)&>.preventDefault(),Ke()},St=gt=>{gt.key==="Backspace"&&!te&&oe(ue-1),Ke()};return E.createElement(Ie.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Ce,value:ge,onInput:Qe,onFocus:Ke,onKeyDown:ot,onKeyUp:St,onMouseDown:Ke,onMouseUp:Ke}))}),Ge=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te};function vt(lt){return(lt||"").split("")}const Ae=lt=>{const{index:ae,prefixCls:te,separator:ee}=lt,oe=typeof ee=="function"?ee(ae):ee;return oe?E.createElement("span",{className:`${te}-separator`},oe):null};var ht=E.forwardRef((lt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:ue,value:ne,onChange:pe,formatter:ge,separator:Qe,variant:Ce,disabled:Ke,status:ot,autoFocus:St,mask:gt,type:Wt,onInput:Zt,inputMode:$t}=lt,tn=Ge(lt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Xt,direction:rn}=E.useContext(et.E_),kt=Xt("otp",te),Yt=(0,xe.Z)(tn,{aria:!0,data:!0,attr:!0}),[Vt,He,dt]=Ct(kt),Nt=(0,qe.Z)(At=>oe!=null?oe:At),Ht=E.useContext(Se.aM),Be=(0,xt.F)(Ht.status,ot),nt=E.useMemo(()=>Object.assign(Object.assign({},Ht),{status:Be,hasFeedback:!1,feedbackIcon:null}),[Ht,Be]),yt=E.useRef(null),Mt=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var At;(At=Mt.current[0])===null||At===void 0||At.focus()},blur:()=>{var At;for(let Rt=0;Rt<ee;Rt+=1)(At=Mt.current[Rt])===null||At===void 0||At.blur()},nativeElement:yt.current}));const Ut=At=>ge?ge(At):At,[ln,In]=E.useState(()=>vt(Ut(ue||"")));E.useEffect(()=>{ne!==void 0&&In(vt(ne))},[ne]);const Pn=(0,Je.Z)(At=>{In(At),Zt&&Zt(At),pe&&At.length===ee&&At.every(Rt=>Rt)&&At.some((Rt,It)=>ln[It]!==Rt)&&pe(At.join(""))}),on=(0,Je.Z)((At,Rt)=>{let It=(0,he.Z)(ln);for(let Jt=0;Jt<At;Jt+=1)It[Jt]||(It[Jt]="");Rt.length<=1?It[At]=Rt:It=It.slice(0,At).concat(vt(Rt)),It=It.slice(0,ee);for(let Jt=It.length-1;Jt>=0&&!It[Jt];Jt-=1)It.pop();const en=Ut(It.map(Jt=>Jt||" ").join(""));return It=vt(en).map((Jt,qt)=>Jt===" "&&!It[qt]?It[qt]:Jt),It}),bn=(At,Rt)=>{var It;const en=on(At,Rt),Jt=Math.min(At+Rt.length,ee-1);Jt!==At&&en[At]!==void 0&&((It=Mt.current[Jt])===null||It===void 0||It.focus()),Pn(en)},dn=At=>{var Rt;(Rt=Mt.current[At])===null||Rt===void 0||Rt.focus()},Gt={variant:Ce,disabled:Ke,status:Be,mask:gt,type:Wt,inputMode:$t};return Vt(E.createElement("div",Object.assign({},Yt,{ref:yt,className:ye()(kt,{[`${kt}-sm`]:Nt==="small",[`${kt}-lg`]:Nt==="large",[`${kt}-rtl`]:rn==="rtl"},dt,He)}),E.createElement(Se.aM.Provider,{value:nt},Array.from({length:ee}).map((At,Rt)=>{const It=`otp-${Rt}`,en=ln[Rt]||"";return E.createElement(E.Fragment,{key:It},E.createElement(tt,Object.assign({ref:Jt=>{Mt.current[Rt]=Jt},index:Rt,size:Nt,htmlSize:1,className:`${kt}-input`,onChange:bn,value:en,onActiveChange:dn,autoFocus:Rt===0&&St},Gt)),Rt<ee-1&&E.createElement(Ae,{separator:Qe,index:Rt,prefixCls:kt}))}))))}),ke=re(73331),Fe=re(15277),$e=re(2738),le=re(8654),ze=re(2171),De=re(23826),we=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te};const ut=lt=>lt?E.createElement(Fe.Z,null):E.createElement(ke.Z,null),me={click:"onClick",hover:"onMouseOver"};var _e=E.forwardRef((lt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:ue=ut}=lt,ne=E.useContext(ze.Z),pe=te!=null?te:ne,ge=typeof oe=="object"&&oe.visible!==void 0,[Qe,Ce]=(0,E.useState)(()=>ge?oe.visible:!1),Ke=(0,E.useRef)(null);E.useEffect(()=>{ge&&Ce(oe.visible)},[ge,oe]);const ot=(0,De.Z)(Ke),St=()=>{var Nt;if(pe)return;Qe&&ot();const Ht=!Qe;Ce(Ht),typeof oe=="object"&&((Nt=oe.onVisibleChange)===null||Nt===void 0||Nt.call(oe,Ht))},gt=Nt=>{const Ht=me[ee]||"",Be=ue(Qe),nt={[Ht]:St,className:`${Nt}-icon`,key:"passwordIcon",onMouseDown:yt=>{yt.preventDefault()},onMouseUp:yt=>{yt.preventDefault()}};return E.cloneElement(E.isValidElement(Be)?Be:E.createElement("span",null,Be),nt)},{className:Wt,prefixCls:Zt,inputPrefixCls:$t,size:tn}=lt,Xt=we(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rn}=E.useContext(et.E_),kt=rn("input",$t),Yt=rn("input-password",Zt),Vt=oe&>(Yt),He=ye()(Yt,Wt,{[`${Yt}-${tn}`]:!!tn}),dt=Object.assign(Object.assign({},(0,$e.Z)(Xt,["suffix","iconRender","visibilityToggle"])),{type:Qe?"text":"password",className:He,prefixCls:kt,suffix:Vt});return tn&&(dt.size=tn),E.createElement(Ie.Z,Object.assign({ref:(0,le.sQ)(ae,Ke)},dt))}),Et=re(47472),pt=re(22703),ve=re(7939),Le=re(70045),Re=function(lt,ae){var te={};for(var ee in lt)Object.prototype.hasOwnProperty.call(lt,ee)&&ae.indexOf(ee)<0&&(te[ee]=lt[ee]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(lt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(lt,ee[oe])&&(te[ee[oe]]=lt[ee[oe]]);return te},bt=E.forwardRef((lt,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:ue,suffix:ne,enterButton:pe=!1,addonAfter:ge,loading:Qe,disabled:Ce,onSearch:Ke,onChange:ot,onCompositionStart:St,onCompositionEnd:gt}=lt,Wt=Re(lt,["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:kt}=(0,Le.ri)(Xt,$t),Yt=(0,qe.Z)(bn=>{var dn;return(dn=ue!=null?ue:kt)!==null&&dn!==void 0?dn:bn}),Vt=E.useRef(null),He=bn=>{bn!=null&&bn.target&&bn.type==="click"&&Ke&&Ke(bn.target.value,bn,{source:"clear"}),ot==null||ot(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;Ke&&Ke((Gt=(dn=Vt.current)===null||dn===void 0?void 0:dn.input)===null||Gt===void 0?void 0:Gt.value,bn,{source:"input"})},Ht=bn=>{tn.current||Qe||Nt(bn)},Be=typeof pe=="boolean"?E.createElement(Et.Z,null):null,nt=`${Xt}-button`;let yt;const Mt=pe||{},Ut=Mt.type&&Mt.type.__ANT_BUTTON===!0;Ut||Mt.type==="button"?yt=(0,pt.Tm)(Mt,Object.assign({onMouseDown:dt,onClick:bn=>{var dn,Gt;(Gt=(dn=Mt==null?void 0:Mt.props)===null||dn===void 0?void 0:dn.onClick)===null||Gt===void 0||Gt.call(dn,bn),Nt(bn)},key:"enterButton"},Ut?{className:nt,size:Yt}:{})):yt=E.createElement(ve.ZP,{className:nt,type:pe?"primary":void 0,size:Yt,disabled:Ce,key:"enterButton",onMouseDown:dt,onClick:Nt,loading:Qe,icon:Be},pe),ge&&(yt=[yt,(0,pt.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({},Wt),{className:ln,prefixCls:rn,type:"search"}),Pn=bn=>{tn.current=!0,St==null||St(bn)},on=bn=>{tn.current=!1,gt==null||gt(bn)};return E.createElement(Ie.Z,Object.assign({ref:(0,le.sQ)(Vt,ae),onPressEnter:Ht},In,{size:Yt,onCompositionStart:Pn,onCompositionEnd:on,addonAfter:yt,suffix:ne,onChange:He,disabled:Ce}))}),Bt=re(79809);const Te=Ie.Z;Te.Group=Ze,Te.Search=bt,Te.TextArea=Bt.Z,Te.Password=_e,Te.OTP=ht;var Ot=Te},24303:function(nn,zt,re){"use strict";re.d(zt,{D:function(){return Ge},Z:function(){return je}});var E=re(59301),at=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),Oe=function(ke,Fe){return E.createElement(Se.Z,(0,at.Z)({},ke,{ref:Fe,icon:et}))},Ee=E.forwardRef(Oe),Ze=Ee,Ie=re(33853),he=re(38819),Je=re(92310),xe=re.n(Je),xt=re(2738),qe=re(48755),Ne=re(6989),Ve=re(36237),We=re(48923),ct=re(16931);const Ct=ht=>{const{componentCls:ke,siderBg:Fe,motionDurationMid:$e,motionDurationSlow:le,antCls:ze,triggerHeight:De,triggerColor:we,triggerBg:ut,headerHeight:me,zeroTriggerWidth:ce,zeroTriggerHeight:_e,borderRadiusLG:Et,lightSiderBg:pt,lightTriggerColor:ve,lightTriggerBg:Le,bodyBg:Re}=ht;return{[ke]:{position:"relative",minWidth:0,background:Fe,transition:`all ${$e}, background 0s`,"&-has-trigger":{paddingBottom:De},"&-right":{order:1},[`${ke}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ze}-menu${ze}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${ke}-children`]:{overflow:"hidden"},[`${ke}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:De,color:we,lineHeight:(0,Ve.unit)(De),textAlign:"center",background:ut,cursor:"pointer",transition:`all ${$e}`},[`${ke}-zero-width-trigger`]:{position:"absolute",top:me,insetInlineEnd:ht.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:_e,color:we,fontSize:ht.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderRadius:`0 ${(0,Ve.unit)(Et)} ${(0,Ve.unit)(Et)} 0`,cursor:"pointer",transition:`background ${le} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${le}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ht.calc(ce).mul(-1).equal(),borderRadius:`${(0,Ve.unit)(Et)} 0 0 ${(0,Ve.unit)(Et)}`}},"&-light":{background:pt,[`${ke}-trigger`]:{color:ve,background:Le},[`${ke}-zero-width-trigger`]:{color:ve,background:Le,border:`1px solid ${Re}`,borderInlineStart:0}}}}};var Dt=(0,ct.I$)(["Layout","Sider"],ht=>[Ct(ht)],We.eh,{deprecatedTokens:We.jn}),ft=function(ht,ke){var Fe={};for(var $e in ht)Object.prototype.hasOwnProperty.call(ht,$e)&&ke.indexOf($e)<0&&(Fe[$e]=ht[$e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,$e=Object.getOwnPropertySymbols(ht);le<$e.length;le++)ke.indexOf($e[le])<0&&Object.prototype.propertyIsEnumerable.call(ht,$e[le])&&(Fe[$e[le]]=ht[$e[le]]);return Fe};const rt={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),Ge=E.createContext({}),vt=(()=>{let ht=0;return function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ht+=1,`${ke}${ht}`}})();var je=E.forwardRef((ht,ke)=>{const{prefixCls:Fe,className:$e,trigger:le,children:ze,defaultCollapsed:De=!1,theme:we="dark",style:ut={},collapsible:me=!1,reverseArrow:ce=!1,width:_e=200,collapsedWidth:Et=80,zeroWidthTriggerStyle:pt,breakpoint:ve,onCollapse:Le,onBreakpoint:Re}=ht,wt=ft(ht,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:bt}=(0,E.useContext)(Ne.V),[Bt,Te]=(0,E.useState)("collapsed"in ht?ht.collapsed:De),[Ot,lt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in ht&&Te(ht.collapsed)},[ht.collapsed]);const ae=(Yt,Vt)=>{"collapsed"in ht||Te(Yt),Le==null||Le(Yt,Vt)},{getPrefixCls:te,direction:ee}=(0,E.useContext)(qe.E_),oe=te("layout-sider",Fe),[ue,ne,pe]=Dt(oe),ge=(0,E.useRef)(null);ge.current=Yt=>{lt(Yt.matches),Re==null||Re(Yt.matches),Bt!==Yt.matches&&ae(Yt.matches,"responsive")},(0,E.useEffect)(()=>{function Yt(He){return ge.current(He)}let Vt;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&ve&&ve in rt){Vt=He(`screen and (max-width: ${rt[ve]})`);try{Vt.addEventListener("change",Yt)}catch(dt){Vt.addListener(Yt)}Yt(Vt)}}return()=>{try{Vt==null||Vt.removeEventListener("change",Yt)}catch(He){Vt==null||Vt.removeListener(Yt)}}},[ve]),(0,E.useEffect)(()=>{const Yt=vt("ant-sider-");return bt.addSider(Yt),()=>bt.removeSider(Yt)},[]);const Qe=()=>{ae(!Bt,"clickTrigger")},Ce=(0,xt.Z)(wt,["collapsed"]),Ke=Bt?Et:_e,ot=tt(Ke)?`${Ke}px`:String(Ke),St=parseFloat(String(Et||0))===0?E.createElement("span",{onClick:Qe,className:xe()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:pt},le||E.createElement(Ze,null)):null,gt=ee==="rtl"==!ce,$t={expanded:gt?E.createElement(he.Z,null):E.createElement(Ie.Z,null),collapsed:gt?E.createElement(Ie.Z,null):E.createElement(he.Z,null)}[Bt?"collapsed":"expanded"],tn=le!==null?St||E.createElement("div",{className:`${oe}-trigger`,onClick:Qe,style:{width:ot}},le||$t):null,Xt=Object.assign(Object.assign({},ut),{flex:`0 0 ${ot}`,maxWidth:ot,minWidth:ot,width:ot}),rn=xe()(oe,`${oe}-${we}`,{[`${oe}-collapsed`]:!!Bt,[`${oe}-has-trigger`]:me&&le!==null&&!St,[`${oe}-below`]:!!Ot,[`${oe}-zero-width`]:parseFloat(ot)===0},$e,ne,pe),kt=E.useMemo(()=>({siderCollapsed:Bt}),[Bt]);return ue(E.createElement(Ge.Provider,{value:kt},E.createElement("aside",Object.assign({className:rn},Ce,{style:Xt,ref:ke}),E.createElement("div",{className:`${oe}-children`},ze),me||Ot&&St?tn:null)))})},6989:function(nn,zt,re){"use strict";re.d(zt,{V:function(){return at}});var E=re(59301);const at=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),at=re(16931);const ye=Oe=>{const{antCls:Ee,componentCls:Ze,colorText:Ie,footerBg:he,headerHeight:Je,headerPadding:xe,headerColor:xt,footerPadding:qe,fontSize:Ne,bodyBg:Ve,headerBg:We}=Oe;return{[Ze]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ve,"&, *":{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:xe,color:xt,lineHeight:(0,E.unit)(Je),background:We,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:qe,color:Ie,fontSize:Ne,background:he},[`${Ze}-content`]:{flex:"auto",color:Ie,minHeight:0}}},et=Oe=>{const{colorBgLayout:Ee,controlHeight:Ze,controlHeightLG:Ie,colorText:he,controlHeightSM:Je,marginXXS:xe,colorTextLightSolid:xt,colorBgContainer:qe}=Oe,Ne=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${Ne}px`,headerColor:he,footerPadding:`${Je}px ${Ne}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Ie+xe*2,triggerBg:"#002140",triggerColor:xt,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:qe,lightTriggerBg:qe,lightTriggerColor:he}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];zt.ZP=(0,at.I$)("Layout",Oe=>[ye(Oe)],et,{deprecatedTokens:Se})},78857:function(nn,zt,re){"use strict";re.d(zt,{J:function(){return Oe}});var E=re(59301),at=re(8654),ye=re(62487),et=function(Ee,Ze){var Ie={};for(var he in Ee)Object.prototype.hasOwnProperty.call(Ee,he)&&Ze.indexOf(he)<0&&(Ie[he]=Ee[he]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,he=Object.getOwnPropertySymbols(Ee);Je<he.length;Je++)Ze.indexOf(he[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ee,he[Je])&&(Ie[he[Je]]=Ee[he[Je]]);return Ie};const Se=E.createContext(null),Oe=E.forwardRef((Ee,Ze)=>{const{children:Ie}=Ee,he=et(Ee,["children"]),Je=E.useContext(Se),xe=E.useMemo(()=>Object.assign(Object.assign({},Je),he),[Je,he.prefixCls,he.mode,he.selectable,he.rootClassName]),xt=(0,at.t4)(Ie),qe=(0,at.x1)(Ze,xt?(0,at.C4)(Ie):null);return E.createElement(Se.Provider,{value:xe},E.createElement(ye.Z,{space:!0},xt?E.cloneElement(Ie,{ref:qe}):Ie))});zt.Z=Se},93041:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return ue}});var E=re(59301),at=re(28321),ye=re(24303),et=re(18785),Se=re(92310),Oe=re.n(Se),Ee=re(6089),Ze=re(2738),Ie=re(86641),he=re(22703),Je=re(48755),xe=re(83397),qe=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ne=function(ne,pe){var ge={};for(var Qe in ne)Object.prototype.hasOwnProperty.call(ne,Qe)&&pe.indexOf(Qe)<0&&(ge[Qe]=ne[Qe]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Qe=Object.getOwnPropertySymbols(ne);Ce<Qe.length;Ce++)pe.indexOf(Qe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,Qe[Ce])&&(ge[Qe[Ce]]=ne[Qe[Ce]]);return ge},We=ne=>{const{prefixCls:pe,className:ge,dashed:Qe}=ne,Ce=Ne(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ke}=E.useContext(Je.E_),ot=Ke("menu",pe),St=Oe()({[`${ot}-item-divider-dashed`]:!!Qe},ge);return E.createElement(at.iz,Object.assign({className:St},Ce))},ct=re(11592),Ct=re(25399),ft=ne=>{var pe;const{className:ge,children:Qe,icon:Ce,title:Ke,danger:ot,extra:St}=ne,{prefixCls:gt,firstLevel:Wt,direction:Zt,disableMenuItemTitleTooltip:$t,inlineCollapsed:tn}=E.useContext(qe),Xt=dt=>{const Nt=Qe==null?void 0:Qe[0],Ht=E.createElement("span",{className:Oe()(`${gt}-title-content`,{[`${gt}-title-content-with-extra`]:!!St||St===0})},Qe);return(!Ce||E.isValidElement(Qe)&&Qe.type==="span")&&Qe&&dt&&Wt&&typeof Nt=="string"?E.createElement("div",{className:`${gt}-inline-collapsed-noicon`},Nt.charAt(0)):Ht},{siderCollapsed:rn}=E.useContext(ye.D);let kt=Ke;typeof Ke=="undefined"?kt=Wt?Qe:"":Ke===!1&&(kt="");const Yt={title:kt};!rn&&!tn&&(Yt.title=null,Yt.open=!1);const Vt=(0,ct.Z)(Qe).length;let He=E.createElement(at.ck,Object.assign({},(0,Ze.Z)(ne,["title","icon","danger"]),{className:Oe()({[`${gt}-item-danger`]:ot,[`${gt}-item-only-child`]:(Ce?Vt+1:Vt)===1},ge),title:typeof Ke=="string"?Ke:void 0}),(0,he.Tm)(Ce,{className:Oe()(E.isValidElement(Ce)?(pe=Ce.props)===null||pe===void 0?void 0:pe.className:"",`${gt}-item-icon`)}),Xt(tn));return $t||(He=E.createElement(Ct.Z,Object.assign({},Yt,{placement:Zt==="rtl"?"left":"right",classNames:{root:`${gt}-inline-collapsed-tooltip`}}),He)),He},rt=re(78857),tt=re(36237),Ge=re(17835),vt=re(63356),Ae=re(34961),je=re(46e3),ht=re(34925),ke=re(16931),Fe=re(51636),le=ne=>{const{componentCls:pe,motionDurationSlow:ge,horizontalLineHeight:Qe,colorSplit:Ce,lineWidth:Ke,lineType:ot,itemPaddingInline:St}=ne;return{[`${pe}-horizontal`]:{lineHeight:Qe,border:0,borderBottom:`${(0,tt.unit)(Ke)} ${ot} ${Ce}`,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:Qe}=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)(Qe(ge).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,tt.unit)(ge)})`}}}}};const we=ne=>Object.assign({},(0,vt.oN)(ne));var me=(ne,pe)=>{const{componentCls:ge,itemColor:Qe,itemSelectedColor:Ce,subMenuItemSelectedColor:Ke,groupTitleColor:ot,itemBg:St,subMenuItemBg:gt,itemSelectedBg:Wt,activeBarHeight:Zt,activeBarWidth:$t,activeBarBorderWidth:tn,motionDurationSlow:Xt,motionEaseInOut:rn,motionEaseOut:kt,itemPaddingInline:Yt,motionDurationMid:Vt,itemHoverColor:He,lineType:dt,colorSplit:Nt,itemDisabledColor:Ht,dangerItemColor:Be,dangerItemHoverColor:nt,dangerItemSelectedColor:yt,dangerItemActiveBg:Mt,dangerItemSelectedBg:Ut,popupBg:ln,itemHoverBg:In,itemActiveBg:Pn,menuSubMenuBg:on,horizontalItemSelectedColor:bn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:Gt,horizontalItemHoverBg:At}=ne;return{[`${ge}-${pe}, ${ge}-${pe} > ${ge}`]:{color:Qe,background:St,[`&${ge}-root:focus-visible`]:Object.assign({},we(ne)),[`${ge}-item`]:{"&-group-title, &-extra":{color:ot}},[`${ge}-submenu-selected > ${ge}-submenu-title`]:{color:Ke},[`${ge}-item, ${ge}-submenu-title`]:{color:Qe,[`&:not(${ge}-item-disabled):focus-visible`]:Object.assign({},we(ne))},[`${ge}-item-disabled, ${ge}-submenu-disabled`]:{color:`${Ht} !important`},[`${ge}-item:not(${ge}-item-selected):not(${ge}-submenu-selected)`]:{[`&:hover, > ${ge}-submenu-title:hover`]:{color:He}},[`&: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:nt}},[`&${ge}-item:active`]:{background:Mt}},[`${ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ge}-item-selected`]:{color:Ce,[`&${ge}-item-danger`]:{color:yt},"a, a:hover":{color:"inherit"}},[`& ${ge}-item-selected`]:{backgroundColor:Wt,[`&${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:At,"&::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:gt},[`${ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,tt.unit)($t)} solid ${Ce}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Vt} ${kt}`,`opacity ${Vt} ${kt}`].join(","),content:'""'},[`&${ge}-item-danger`]:{"&::after":{borderInlineEndColor:yt}}},[`${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:Qe,padding:Ce,menuArrowSize:Ke,marginXS:ot,itemMarginBlock:St,itemWidth:gt,itemPaddingInline:Wt}=ne,Zt=ne.calc(Ke).add(Ce).add(ot).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:ge,lineHeight:(0,tt.unit)(ge),paddingInline:Wt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Qe,marginBlock:St,width:gt},[`> ${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 Et=ne=>{const{componentCls:pe,iconCls:ge,itemHeight:Qe,colorTextLightSolid:Ce,dropdownWidth:Ke,controlHeightLG:ot,motionEaseOut:St,paddingXL:gt,itemMarginInline:Wt,fontSizeLG:Zt,motionDurationFast:$t,motionDurationSlow:tn,paddingXS:Xt,boxShadowSecondary:rn,collapsedWidth:kt,collapsedIconSize:Yt}=ne,Vt={height:Qe,lineHeight:(0,tt.unit)(Qe),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:Ke,maxHeight:`calc(100vh - ${(0,tt.unit)(ne.calc(ot).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:gt}},[`${pe}-item`]:Vt}},{[`${pe}-inline-collapsed`]:{width:kt,[`&${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)(Wt)})`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${ge}`]:{margin:0,fontSize:Yt,lineHeight:(0,tt.unit)(Qe),"+ 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:Ce}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},vt.vS),{paddingInline:Xt})}}]};const pt=ne=>{const{componentCls:pe,motionDurationSlow:ge,motionDurationMid:Qe,motionEaseInOut:Ce,motionEaseOut:Ke,iconCls:ot,iconSize:St,iconMarginInlineEnd:gt}=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) ${Ce}`].join(","),[`${pe}-item-icon, ${ot}`]:{minWidth:St,fontSize:St,transition:[`font-size ${Qe} ${Ke}`,`margin ${ge} ${Ce}`,`color ${ge}`].join(","),"+ span":{marginInlineStart:gt,opacity:1,transition:[`opacity ${ge} ${Ce}`,`margin ${ge}`,`color ${ge}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,vt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${ot}, > ${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:Qe,borderRadius:Ce,menuArrowSize:Ke,menuArrowOffset:ot}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ge} ${Qe}, opacity ${ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ke).mul(.6).equal(),height:ne.calc(Ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ce,transition:[`background ${ge} ${Qe}`,`transform ${ge} ${Qe}`,`top ${ge} ${Qe}`,`color ${ge} ${Qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,tt.unit)(ne.calc(ot).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,tt.unit)(ot)})`}}}}},Le=ne=>{const{antCls:pe,componentCls:ge,fontSize:Qe,motionDurationSlow:Ce,motionDurationMid:Ke,motionEaseInOut:ot,paddingXS:St,padding:gt,colorSplit:Wt,lineWidth:Zt,zIndexPopup:$t,borderRadiusLG:tn,subMenuItemBorderRadius:Xt,menuArrowSize:rn,menuArrowOffset:kt,lineType:Yt,groupTitleLineHeight:Vt,groupTitleFontSize:He}=ne;return[{"":{[ge]:Object.assign(Object.assign({},(0,vt.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,vt.Wf)(ne)),(0,vt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Qe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ce} 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)(gt)}`,fontSize:He,lineHeight:Vt,transition:`all ${Ce}`},[`&-horizontal ${ge}-submenu`]:{transition:[`border-color ${Ce} ${ot}`,`background ${Ce} ${ot}`].join(",")},[`${ge}-submenu, ${ge}-submenu-inline`]:{transition:[`border-color ${Ce} ${ot}`,`background ${Ce} ${ot}`,`padding ${Ke} ${ot}`].join(",")},[`${ge}-submenu ${ge}-sub`]:{cursor:"initial",transition:[`background ${Ce} ${ot}`,`padding ${Ce} ${ot}`].join(",")},[`${ge}-title-content`]:{transition:`color ${Ce}`,"&-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:Wt,borderStyle:Yt,borderWidth:0,borderTopWidth:Zt,marginBlock:Zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),pt(ne)),{[`${ge}-item-group`]:{[`${ge}-item-group-list`]:{margin:0,padding:0,[`${ge}-item, ${ge}-submenu-title`]:{paddingInline:`${(0,tt.unit)(ne.calc(Qe).mul(2).equal())} ${(0,tt.unit)(gt)}`}}},"&-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},pt(ne)),ve(ne)),{[`${ge}-item, ${ge}-submenu > ${ge}-submenu-title`]:{borderRadius:Xt},[`${ge}-submenu-title::after`]:{transition:`transform ${Ce} ${ot}`}})},"\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)(kt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,tt.unit)(ne.calc(kt).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(kt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,tt.unit)(kt)})`}}})},{[`${pe}-layout-header`]:{[ge]:{lineHeight:"inherit"}}}]},Re=ne=>{var pe,ge,Qe;const{colorPrimary:Ce,colorError:Ke,colorTextDisabled:ot,colorErrorBg:St,colorText:gt,colorTextDescription:Wt,colorBgContainer:Zt,colorFillAlter:$t,colorFillContent:tn,lineWidth:Xt,lineWidthBold:rn,controlItemBgActive:kt,colorBgTextHover:Yt,controlHeightLG:Vt,lineHeight:He,colorBgElevated:dt,marginXXS:Nt,padding:Ht,fontSize:Be,controlHeightSM:nt,fontSizeLG:yt,colorTextLightSolid:Mt,colorErrorHover:Ut}=ne,ln=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,In=(ge=ne.activeBarBorderWidth)!==null&&ge!==void 0?ge:Xt,Pn=(Qe=ne.itemMarginInline)!==null&&Qe!==void 0?Qe:ne.marginXXS,on=new Ge.FastColor(Mt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:gt,itemColor:gt,colorItemTextHover:gt,itemHoverColor:gt,colorItemTextHoverHorizontal:Ce,horizontalItemHoverColor:Ce,colorGroupTitle:Wt,groupTitleColor:Wt,colorItemTextSelected:Ce,itemSelectedColor:Ce,subMenuItemSelectedColor:Ce,colorItemTextSelectedHorizontal:Ce,horizontalItemSelectedColor:Ce,colorItemBg:Zt,itemBg:Zt,colorItemBgHover:Yt,itemHoverBg:Yt,colorItemBgActive:tn,itemActiveBg:kt,colorSubItemBg:$t,subMenuItemBg:$t,colorItemBgSelected:kt,itemSelectedBg:kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:ln,colorActiveBarHeight:rn,activeBarHeight:rn,colorActiveBarBorderSize:Xt,activeBarBorderWidth:In,colorItemTextDisabled:ot,itemDisabledColor:ot,colorDangerItemText:Ke,dangerItemColor:Ke,colorDangerItemTextHover:Ke,dangerItemHoverColor:Ke,colorDangerItemTextSelected:Ke,dangerItemSelectedColor:Ke,colorDangerItemBgActive:St,dangerItemActiveBg:St,colorDangerItemBgSelected:St,dangerItemSelectedBg:St,itemMarginInline:Pn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Vt,groupTitleLineHeight:He,collapsedWidth:Vt*2,popupBg:dt,itemMarginBlock:Nt,itemPaddingInline:Ht,horizontalLineHeight:`${Vt*1.15}px`,iconSize:Be,iconMarginInlineEnd:nt-Be,collapsedIconSize:yt,groupTitleFontSize:Be,darkItemDisabledColor:new Ge.FastColor(Mt).setA(.25).toRgbString(),darkItemColor:on,darkDangerItemColor:Ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Ce,darkDangerItemSelectedBg:Ke,darkItemHoverBg:"transparent",darkGroupTitleColor:on,darkItemHoverColor:Mt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:Ke,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,ke.I$)("Menu",Ce=>{const{colorBgElevated:Ke,controlHeightLG:ot,fontSize:St,darkItemColor:gt,darkDangerItemColor:Wt,darkItemBg:Zt,darkSubMenuItemBg:$t,darkItemSelectedColor:tn,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:rn,darkItemHoverBg:kt,darkGroupTitleColor:Yt,darkItemHoverColor:Vt,darkItemDisabledColor:He,darkDangerItemHoverColor:dt,darkDangerItemSelectedColor:Nt,darkDangerItemActiveBg:Ht,popupBg:Be,darkPopupBg:nt}=Ce,yt=Ce.calc(St).div(7).mul(5).equal(),Mt=(0,Fe.mergeToken)(Ce,{menuArrowSize:yt,menuHorizontalHeight:Ce.calc(ot).mul(1.15).equal(),menuArrowOffset:Ce.calc(yt).mul(.25).equal(),menuSubMenuBg:Ke,calc:Ce.calc,popupBg:Be}),Ut=(0,Fe.mergeToken)(Mt,{itemColor:gt,itemHoverColor:Vt,groupTitleColor:Yt,itemSelectedColor:tn,subMenuItemSelectedColor:tn,itemBg:Zt,popupBg:nt,subMenuItemBg:$t,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:kt,itemDisabledColor:He,dangerItemColor:Wt,dangerItemHoverColor:dt,dangerItemSelectedColor:Nt,dangerItemActiveBg:Ht,dangerItemSelectedBg:rn,menuSubMenuBg:$t,horizontalItemSelectedColor:tn,horizontalItemSelectedBg:Xt});return[Le(Mt),le(Mt),Et(Mt),me(Mt,"light"),me(Ut,"dark"),De(Mt),(0,Ae.Z)(Mt),(0,je.oN)(Mt,"slide-up"),(0,je.oN)(Mt,"slide-down"),(0,ht._y)(Mt,"zoom-big")]},Re,{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)},bt=re(75030),Te=ne=>{var pe;const{popupClassName:ge,icon:Qe,title:Ce,theme:Ke}=ne,ot=E.useContext(qe),{prefixCls:St,inlineCollapsed:gt,theme:Wt}=ot,Zt=(0,at.Xl)();let $t;if(!Qe)$t=gt&&!Zt.length&&Ce&&typeof Ce=="string"?E.createElement("div",{className:`${St}-inline-collapsed-noicon`},Ce.charAt(0)):E.createElement("span",{className:`${St}-title-content`},Ce);else{const rn=E.isValidElement(Ce)&&Ce.type==="span";$t=E.createElement(E.Fragment,null,(0,he.Tm)(Qe,{className:Oe()(E.isValidElement(Qe)?(pe=Qe.props)===null||pe===void 0?void 0:pe.className:"",`${St}-item-icon`)}),rn?Ce:E.createElement("span",{className:`${St}-title-content`},Ce))}const tn=E.useMemo(()=>Object.assign(Object.assign({},ot),{firstLevel:!1}),[ot]),[Xt]=(0,bt.Cn)("Menu");return E.createElement(qe.Provider,{value:tn},E.createElement(at.Wd,Object.assign({},(0,Ze.Z)(ne,["icon"]),{title:$t,popupClassName:Oe()(St,ge,`${St}-${Ke||Wt}`),popupStyle:Object.assign({zIndex:Xt},ne.popupStyle)})))},Ot=function(ne,pe){var ge={};for(var Qe in ne)Object.prototype.hasOwnProperty.call(ne,Qe)&&pe.indexOf(Qe)<0&&(ge[Qe]=ne[Qe]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Qe=Object.getOwnPropertySymbols(ne);Ce<Qe.length;Ce++)pe.indexOf(Qe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ne,Qe[Ce])&&(ge[Qe[Ce]]=ne[Qe[Ce]]);return ge};function lt(ne){return ne===null||ne===!1}const ae={item:ft,submenu:Te,divider:We};var ee=(0,E.forwardRef)((ne,pe)=>{var ge;const Qe=E.useContext(rt.Z),Ce=Qe||{},{getPrefixCls:Ke,getPopupContainer:ot,direction:St,menu:gt}=E.useContext(Je.E_),Wt=Ke(),{prefixCls:Zt,className:$t,style:tn,theme:Xt="light",expandIcon:rn,_internalDisableMenuItemTitleTooltip:kt,inlineCollapsed:Yt,siderCollapsed:Vt,rootClassName:He,mode:dt,selectable:Nt,onClick:Ht,overflowedIndicatorPopupClassName:Be}=ne,nt=Ot(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yt=(0,Ze.Z)(nt,["collapsedWidth"]);(ge=Ce.validator)===null||ge===void 0||ge.call(Ce,{mode:dt});const Mt=(0,Ee.Z)(function(){var Jt;Ht==null||Ht.apply(void 0,arguments),(Jt=Ce.onClick)===null||Jt===void 0||Jt.call(Ce)}),Ut=Ce.mode||dt,ln=Nt!=null?Nt:Ce.selectable,In=Yt!=null?Yt:Vt,Pn={horizontal:{motionName:`${Wt}-slide-up`},inline:(0,Ie.Z)(Wt),other:{motionName:`${Wt}-zoom-big`}},on=Ke("menu",Zt||Ce.prefixCls),bn=(0,xe.Z)(on),[dn,Gt,At]=wt(on,bn,!Qe),Rt=Oe()(`${on}-${Xt}`,gt==null?void 0:gt.className,$t),It=E.useMemo(()=>{var Jt,qt;if(typeof rn=="function"||lt(rn))return rn||null;if(typeof Ce.expandIcon=="function"||lt(Ce.expandIcon))return Ce.expandIcon||null;if(typeof(gt==null?void 0:gt.expandIcon)=="function"||lt(gt==null?void 0:gt.expandIcon))return(gt==null?void 0:gt.expandIcon)||null;const gn=(Jt=rn!=null?rn:Ce==null?void 0:Ce.expandIcon)!==null&&Jt!==void 0?Jt:gt==null?void 0:gt.expandIcon;return(0,he.Tm)(gn,{className:Oe()(`${on}-submenu-expand-icon`,E.isValidElement(gn)?(qt=gn.props)===null||qt===void 0?void 0:qt.className:void 0)})},[rn,Ce==null?void 0:Ce.expandIcon,gt==null?void 0:gt.expandIcon,on]),en=E.useMemo(()=>({prefixCls:on,inlineCollapsed:In||!1,direction:St,firstLevel:!0,theme:Xt,mode:Ut,disableMenuItemTitleTooltip:kt}),[on,In,St,kt,Xt]);return dn(E.createElement(rt.Z.Provider,{value:null},E.createElement(qe.Provider,{value:en},E.createElement(at.ZP,Object.assign({getPopupContainer:ot,overflowedIndicator:E.createElement(et.Z,null),overflowedIndicatorPopupClassName:Oe()(on,`${on}-${Xt}`,Be),mode:Ut,selectable:ln,onClick:Mt},yt,{inlineCollapsed:In,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),tn),className:Rt,prefixCls:on,direction:St,defaultMotions:Pn,expandIcon:It,ref:pe,rootClassName:Oe()(He,Gt,Ce.rootClassName,At,bn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((ne,pe)=>{const ge=(0,E.useRef)(null),Qe=E.useContext(ye.D);return(0,E.useImperativeHandle)(pe,()=>({menu:ge.current,focus:Ce=>{var Ke;(Ke=ge.current)===null||Ke===void 0||Ke.focus(Ce)}})),E.createElement(ee,Object.assign({ref:ge},ne,Qe))});oe.Item=ft,oe.SubMenu=Te,oe.Divider=We,oe.ItemGroup=at.BW;var ue=oe},89787:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Vt}});var E=re(59301),at=re(17835),ye=re(29679),et=re(40001),Se=re(19248),Oe=re(99267),Ee=re(92310),Ze=re.n(Ee),Ie=re(2738),he=re(48755),Je=re(60499),xe=re(85899),xt=re(42244),qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ne=function(){var dt=(0,E.useRef)([]),Nt=(0,E.useRef)(null);return(0,E.useEffect)(function(){var Ht=Date.now(),Be=!1;dt.current.forEach(function(nt){if(nt){Be=!0;var yt=nt.style;yt.transitionDuration=".3s, .3s, .3s, .06s",Nt.current&&Ht-Nt.current<100&&(yt.transitionDuration="0s, 0s")}}),Be&&(Nt.current=Date.now())}),dt.current},Ve=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],We=function(dt){var Nt=(0,xe.Z)((0,xe.Z)({},qe),dt),Ht=Nt.className,Be=Nt.percent,nt=Nt.prefixCls,yt=Nt.strokeColor,Mt=Nt.strokeLinecap,Ut=Nt.strokeWidth,ln=Nt.style,In=Nt.trailColor,Pn=Nt.trailWidth,on=Nt.transition,bn=(0,xt.Z)(Nt,Ve);delete bn.gapPosition;var dn=Array.isArray(Be)?Be:[Be],Gt=Array.isArray(yt)?yt:[yt],At=Ne(),Rt=Ut/2,It=100-Ut/2,en="M ".concat(Mt==="round"?Rt:0,",").concat(Rt,`
|
|
|
L `).concat(Mt==="round"?It:100,",").concat(Rt),Jt="0 0 100 ".concat(Ut),qt=0;return E.createElement("svg",(0,Je.Z)({className:Ze()("".concat(nt,"-line"),Ht),viewBox:Jt,preserveAspectRatio:"none",style:ln},bn),E.createElement("path",{className:"".concat(nt,"-line-trail"),d:en,strokeLinecap:Mt,stroke:In,strokeWidth:Pn||Ut,fillOpacity:"0"}),dn.map(function(gn,wn){var Sn=1;switch(Mt){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(nt,"-line-path"),d:en,strokeLinecap:Mt,stroke:kn,strokeWidth:Ut,fillOpacity:"0",ref:function(An){At[wn]=An},style:Mn})}))},ct=We,Ct=re(43749),Dt=re(72190),ft=re(47273),rt=0,tt=(0,ft.Z)();function Ge(){var He;return tt?(He=rt,rt+=1):He="TEST_OR_SSR",He}var vt=function(He){var dt=E.useState(),Nt=(0,Dt.Z)(dt,2),Ht=Nt[0],Be=Nt[1];return E.useEffect(function(){Be("rc_progress_".concat(Ge()))},[]),He||Ht},Ae=function(dt){var Nt=dt.bg,Ht=dt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Nt}},Ht)};function je(He,dt){return Object.keys(He).map(function(Nt){var Ht=parseFloat(Nt),Be="".concat(Math.floor(Ht*dt),"%");return"".concat(He[Nt]," ").concat(Be)})}var ht=E.forwardRef(function(He,dt){var Nt=He.prefixCls,Ht=He.color,Be=He.gradientId,nt=He.radius,yt=He.style,Mt=He.ptg,Ut=He.strokeLinecap,ln=He.strokeWidth,In=He.size,Pn=He.gapDegree,on=Ht&&(0,Ct.Z)(Ht)==="object",bn=on?"#FFF":void 0,dn=In/2,Gt=E.createElement("circle",{className:"".concat(Nt,"-circle-path"),r:nt,cx:dn,cy:dn,stroke:bn,strokeLinecap:Ut,strokeWidth:ln,opacity:Mt===0?0:1,style:yt,ref:dt});if(!on)return Gt;var At="".concat(Be,"-conic"),Rt=Pn?"".concat(180+Pn/2,"deg"):"0deg",It=je(Ht,(360-Pn)/360),en=je(Ht,1),Jt="conic-gradient(from ".concat(Rt,", ").concat(It.join(", "),")"),qt="linear-gradient(to ".concat(Pn?"bottom":"top",", ").concat(en.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:At},Gt),E.createElement("foreignObject",{x:0,y:0,width:In,height:In,mask:"url(#".concat(At,")")},E.createElement(Ae,{bg:qt},E.createElement(Ae,{bg:Jt}))))}),ke=ht,Fe=100,$e=function(dt,Nt,Ht,Be,nt,yt,Mt,Ut,ln,In){var Pn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=Ht/100*360*((360-yt)/360),bn=yt===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],dn=(100-Be)/100*Nt;ln==="round"&&Be!==100&&(dn+=In/2,dn>=Nt&&(dn=Nt-.01));var Gt=Fe/2;return{stroke:typeof Ut=="string"?Ut:void 0,strokeDasharray:"".concat(Nt,"px ").concat(dt),strokeDashoffset:dn+Pn,transform:"rotate(".concat(nt+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}},le=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ze(He){var dt=He!=null?He:[];return Array.isArray(dt)?dt:[dt]}var De=function(dt){var Nt=(0,xe.Z)((0,xe.Z)({},qe),dt),Ht=Nt.id,Be=Nt.prefixCls,nt=Nt.steps,yt=Nt.strokeWidth,Mt=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,At=Nt.percent,Rt=(0,xt.Z)(Nt,le),It=Fe/2,en=vt(Ht),Jt="".concat(en,"-gradient"),qt=It-yt/2,gn=Math.PI*2*qt,wn=ln>0?90+ln/2:-90,Sn=gn*((360-ln)/360),Mn=(0,Ct.Z)(nt)==="object"?nt:{count:nt,gap:2},kn=Mn.count,Wn=Mn.gap,An=ze(At),Tt=ze(Gt),Kt=Tt.find(function(Me){return Me&&(0,Ct.Z)(Me)==="object"}),xn=Kt&&(0,Ct.Z)(Kt)==="object",hn=xn?"butt":on,Ue=$e(gn,Sn,0,100,wn,ln,In,Pn,hn,yt),st=Ne(),Pe=function(){var Ye=0;return An.map(function(Pt,an){var un=Tt[an]||Tt[Tt.length-1],vn=$e(gn,Sn,Ye,Pt,wn,ln,In,un,hn,yt);return Ye+=Pt,E.createElement(ke,{key:an,color:un,ptg:Pt,radius:qt,prefixCls:Be,gradientId:Jt,style:vn,strokeLinecap:hn,strokeWidth:yt,gapDegree:ln,ref:function(Ft){st[an]=Ft},size:Fe})}).reverse()},Xe=function(){var Ye=Math.round(kn*(An[0]/100)),Pt=100/kn,an=0;return new Array(kn).fill(null).map(function(un,vn){var Qt=vn<=Ye-1?Tt[0]:Pn,Ft=Qt&&(0,Ct.Z)(Qt)==="object"?"url(#".concat(Jt,")"):void 0,Lt=$e(gn,Sn,an,Pt,wn,ln,In,Qt,"butt",yt,Wn);return an+=(Sn-Lt.strokeDashoffset+Wn)*100/Sn,E.createElement("circle",{key:vn,className:"".concat(Be,"-circle-path"),r:qt,cx:It,cy:It,stroke:Ft,strokeWidth:yt,opacity:1,style:Lt,ref:function(Tn){st[vn]=Tn}})})};return E.createElement("svg",(0,Je.Z)({className:Ze()("".concat(Be,"-circle"),dn),viewBox:"0 0 ".concat(Fe," ").concat(Fe),style:bn,id:Ht,role:"presentation"},Rt),!kn&&E.createElement("circle",{className:"".concat(Be,"-circle-trail"),r:qt,cx:It,cy:It,stroke:Pn,strokeLinecap:hn,strokeWidth:Mt||yt,style:Ue}),kn?Xe():Pe())},we=De,ut={Line:ct,Circle:we},me=re(25399),ce=re(68361);function _e(He){return!He||He<0?0:He>100?100:He}function Et(He){let{success:dt,successPercent:Nt}=He,Ht=Nt;return dt&&"progress"in dt&&(Ht=dt.progress),dt&&"percent"in dt&&(Ht=dt.percent),Ht}const pt=He=>{let{percent:dt,success:Nt,successPercent:Ht}=He;const Be=_e(Et({success:Nt,successPercent:Ht}));return[Be,_e(_e(dt)-Be)]},ve=He=>{let{success:dt={},strokeColor:Nt}=He;const{strokeColor:Ht}=dt;return[Ht||ce.presetPrimaryColors.green,Nt||null]},Le=(He,dt,Nt)=>{var Ht,Be,nt,yt;let Mt=-1,Ut=-1;if(dt==="step"){const ln=Nt.steps,In=Nt.strokeWidth;typeof He=="string"||typeof He=="undefined"?(Mt=He==="small"?2:14,Ut=In!=null?In:8):typeof He=="number"?[Mt,Ut]=[He,He]:[Mt=14,Ut=8]=Array.isArray(He)?He:[He.width,He.height],Mt*=ln}else if(dt==="line"){const ln=Nt==null?void 0:Nt.strokeWidth;typeof He=="string"||typeof He=="undefined"?Ut=ln||(He==="small"?6:8):typeof He=="number"?[Mt,Ut]=[He,He]:[Mt=-1,Ut=8]=Array.isArray(He)?He:[He.width,He.height]}else(dt==="circle"||dt==="dashboard")&&(typeof He=="string"||typeof He=="undefined"?[Mt,Ut]=He==="small"?[60,60]:[120,120]:typeof He=="number"?[Mt,Ut]=[He,He]:Array.isArray(He)&&(Mt=(Be=(Ht=He[0])!==null&&Ht!==void 0?Ht:He[1])!==null&&Be!==void 0?Be:120,Ut=(yt=(nt=He[0])!==null&&nt!==void 0?nt:He[1])!==null&&yt!==void 0?yt:120));return[Mt,Ut]},Re=3,wt=He=>Re/He*100;var Bt=He=>{const{prefixCls:dt,trailColor:Nt=null,strokeLinecap:Ht="round",gapPosition:Be,gapDegree:nt,width:yt=120,type:Mt,children:Ut,success:ln,size:In=yt,steps:Pn}=He,[on,bn]=Le(In,"circle");let{strokeWidth:dn}=He;dn===void 0&&(dn=Math.max(wt(on),6));const Gt={width:on,height:bn,fontSize:on*.15+6},At=E.useMemo(()=>{if(nt||nt===0)return nt;if(Mt==="dashboard")return 75},[nt,Mt]),Rt=pt(He),It=Be||Mt==="dashboard"&&"bottom"||void 0,en=Object.prototype.toString.call(He.strokeColor)==="[object Object]",Jt=ve({success:ln,strokeColor:He.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:Ht,trailColor:Nt,prefixCls:dt,gapDegree:At,gapPosition:It}),wn=on<=20,Sn=E.createElement("div",{className:qt,style:Gt},gn,!wn&&Ut);return wn?E.createElement(me.Z,{title:Ut},Sn):Sn},Te=re(36237),Ot=re(63356),lt=re(16931),ae=re(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=He=>{const dt=He?"100%":"-100%";return new Te.Keyframes(`antProgress${He?"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=He=>{const{componentCls:dt,iconCls:Nt}=He;return{[dt]:Object.assign(Object.assign({},(0,Ot.Wf)(He)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:He.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:He.remainingColor,borderRadius:He.lineBorderRadius},[`${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:He.defaultColor}},[`${dt}-success-bg, ${dt}-bg`]:{position:"relative",background:He.defaultColor,borderRadius:He.lineBorderRadius,transition:`all ${He.motionDurationSlow} ${He.motionEaseInOutCirc}`},[`${dt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${dt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:He.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:He.colorWhite,[`&${dt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:He.colorSuccess},[`${dt}-text`]:{display:"inline-block",marginInlineStart:He.marginXS,color:He.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Nt]:{fontSize:He.fontSize},[`&${dt}-text-outer`]:{width:"max-content"},[`&${dt}-text-outer${dt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:He.marginXS}},[`${dt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Te.unit)(He.paddingXXS)}`,[`&${dt}-text-start`]:{justifyContent:"start"},[`&${dt}-text-end`]:{justifyContent:"end"}},[`&${dt}-status-active`]:{[`${dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:He.colorBgContainer,borderRadius:He.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:He.progressActiveMotionDuration,animationTimingFunction:He.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${dt}-rtl${dt}-status-active`]:{[`${dt}-bg::before`]:{animationName:oe(!0)}},[`&${dt}-status-exception`]:{[`${dt}-bg`]:{backgroundColor:He.colorError},[`${dt}-text`]:{color:He.colorError}},[`&${dt}-status-exception ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:He.colorError}},[`&${dt}-status-success`]:{[`${dt}-bg`]:{backgroundColor:He.colorSuccess},[`${dt}-text`]:{color:He.colorSuccess}},[`&${dt}-status-success ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:He.colorSuccess}}})}},ne=He=>{const{componentCls:dt,iconCls:Nt}=He;return{[dt]:{[`${dt}-circle-trail`]:{stroke:He.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:He.circleTextColor,fontSize:He.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Nt]:{fontSize:He.circleIconFontSize}},[`${dt}-circle&-status-exception`]:{[`${dt}-text`]:{color:He.colorError}},[`${dt}-circle&-status-success`]:{[`${dt}-text`]:{color:He.colorSuccess}}},[`${dt}-inline-circle`]:{lineHeight:1,[`${dt}-inner`]:{verticalAlign:"bottom"}}}},pe=He=>{const{componentCls:dt}=He;return{[dt]:{[`${dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:He.progressStepMinWidth,marginInlineEnd:He.progressStepMarginInlineEnd,backgroundColor:He.remainingColor,transition:`all ${He.motionDurationSlow}`,"&-active":{backgroundColor:He.defaultColor}}}}}},ge=He=>{const{componentCls:dt,iconCls:Nt}=He;return{[dt]:{[`${dt}-small&-line, ${dt}-small&-line ${dt}-text ${Nt}`]:{fontSize:He.fontSizeSM}}}},Qe=He=>({circleTextColor:He.colorText,defaultColor:He.colorInfo,remainingColor:He.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${He.fontSize/He.fontSizeSM}em`});var Ce=(0,lt.I$)("Progress",He=>{const dt=He.calc(He.marginXXS).div(2).equal(),Nt=(0,ae.mergeToken)(He,{progressStepMarginInlineEnd:dt,progressStepMinWidth:dt,progressActiveMotionDuration:"2.4s"});return[ue(Nt),ne(Nt),pe(Nt),ge(Nt)]},Qe),Ke=function(He,dt){var Nt={};for(var Ht in He)Object.prototype.hasOwnProperty.call(He,Ht)&&dt.indexOf(Ht)<0&&(Nt[Ht]=He[Ht]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ht=Object.getOwnPropertySymbols(He);Be<Ht.length;Be++)dt.indexOf(Ht[Be])<0&&Object.prototype.propertyIsEnumerable.call(He,Ht[Be])&&(Nt[Ht[Be]]=He[Ht[Be]]);return Nt};const ot=He=>{let dt=[];return Object.keys(He).forEach(Nt=>{const Ht=parseFloat(Nt.replace(/%/g,""));Number.isNaN(Ht)||dt.push({key:Ht,value:He[Nt]})}),dt=dt.sort((Nt,Ht)=>Nt.key-Ht.key),dt.map(Nt=>{let{key:Ht,value:Be}=Nt;return`${Be} ${Ht}%`}).join(", ")},St=(He,dt)=>{const{from:Nt=ce.presetPrimaryColors.blue,to:Ht=ce.presetPrimaryColors.blue,direction:Be=dt==="rtl"?"to left":"to right"}=He,nt=Ke(He,["from","to","direction"]);if(Object.keys(nt).length!==0){const Mt=ot(nt),Ut=`linear-gradient(${Be}, ${Mt})`;return{background:Ut,[te]:Ut}}const yt=`linear-gradient(${Be}, ${Nt}, ${Ht})`;return{background:yt,[te]:yt}};var Wt=He=>{const{prefixCls:dt,direction:Nt,percent:Ht,size:Be,strokeWidth:nt,strokeColor:yt,strokeLinecap:Mt="round",children:Ut,trailColor:ln=null,percentPosition:In,success:Pn}=He,{align:on,type:bn}=In,dn=yt&&typeof yt!="string"?St(yt,Nt):{[te]:yt,background:yt},Gt=Mt==="square"||Mt==="butt"?0:void 0,At=Be!=null?Be:[-1,nt||(Be==="small"?6:8)],[Rt,It]=Le(At,"line",{strokeWidth:nt}),en={backgroundColor:ln||void 0,borderRadius:Gt},Jt=Object.assign(Object.assign({width:`${_e(Ht)}%`,height:It,borderRadius:Gt},dn),{[ee]:_e(Ht)/100}),qt=Et(He),gn={width:`${_e(qt)}%`,height:It,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=He=>{const{size:dt,steps:Nt,rounding:Ht=Math.round,percent:Be=0,strokeWidth:nt=8,strokeColor:yt,trailColor:Mt=null,prefixCls:Ut,children:ln}=He,In=Ht(Nt*(Be/100)),Pn=dt==="small"?2:14,on=dt!=null?dt:[Pn,nt],[bn,dn]=Le(on,"step",{steps:Nt,strokeWidth:nt}),Gt=bn/Nt,At=Array.from({length:Nt});for(let Rt=0;Rt<Nt;Rt++){const It=Array.isArray(yt)?yt[Rt]:yt;At[Rt]=E.createElement("div",{key:Rt,className:Ze()(`${Ut}-steps-item`,{[`${Ut}-steps-item-active`]:Rt<=In-1}),style:{backgroundColor:Rt<=In-1?It:Mt,width:Gt,height:dn}})}return E.createElement("div",{className:`${Ut}-steps-outer`},At,ln)},tn=function(He,dt){var Nt={};for(var Ht in He)Object.prototype.hasOwnProperty.call(He,Ht)&&dt.indexOf(Ht)<0&&(Nt[Ht]=He[Ht]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Ht=Object.getOwnPropertySymbols(He);Be<Ht.length;Be++)dt.indexOf(Ht[Be])<0&&Object.prototype.propertyIsEnumerable.call(He,Ht[Be])&&(Nt[Ht[Be]]=He[Ht[Be]]);return Nt};const Xt=null,rn=["normal","exception","active","success"];var Yt=E.forwardRef((He,dt)=>{const{prefixCls:Nt,className:Ht,rootClassName:Be,steps:nt,strokeColor:yt,percent:Mt=0,size:Ut="default",showInfo:ln=!0,type:In="line",status:Pn,format:on,style:bn,percentPosition:dn={}}=He,Gt=tn(He,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:At="end",type:Rt="outer"}=dn,It=Array.isArray(yt)?yt[0]:yt,en=typeof yt=="string"||Array.isArray(yt)?yt:void 0,Jt=E.useMemo(()=>{if(It){const Pe=typeof It=="string"?It:Object.values(It)[0];return new at.FastColor(Pe).isLight()}return!1},[yt]),qt=E.useMemo(()=>{var Pe,Xe;const Me=Et(He);return parseInt(Me!==void 0?(Pe=Me!=null?Me:0)===null||Pe===void 0?void 0:Pe.toString():(Xe=Mt!=null?Mt:0)===null||Xe===void 0?void 0:Xe.toString(),10)},[Mt,He.success,He.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,Tt]=Ce(kn),Kt=In==="line",xn=Kt&&!nt,hn=E.useMemo(()=>{if(!ln)return null;const Pe=Et(He);let Xe;const Me=on||(Pt=>`${Pt}%`),Ye=Kt&&Jt&&Rt==="inner";return Rt==="inner"||on||gn!=="exception"&&gn!=="success"?Xe=Me(_e(Mt),_e(Pe)):gn==="exception"?Xe=Kt?E.createElement(Se.Z,null):E.createElement(Oe.Z,null):gn==="success"&&(Xe=Kt?E.createElement(ye.Z,null):E.createElement(et.Z,null)),E.createElement("span",{className:Ze()(`${kn}-text`,{[`${kn}-text-bright`]:Ye,[`${kn}-text-${At}`]:xn,[`${kn}-text-${Rt}`]:xn}),title:typeof Xe=="string"?Xe:void 0},Xe)},[ln,Mt,qt,gn,In,kn,on]);let Ue;In==="line"?Ue=nt?E.createElement($t,Object.assign({},He,{strokeColor:en,prefixCls:kn,steps:typeof nt=="object"?nt.count:nt}),hn):E.createElement(Wt,Object.assign({},He,{strokeColor:It,prefixCls:kn,direction:Sn,percentPosition:{align:At,type:Rt}}),hn):(In==="circle"||In==="dashboard")&&(Ue=E.createElement(Bt,Object.assign({},He,{strokeColor:It,prefixCls:kn,progressStatus:gn}),hn));const st=Ze()(kn,`${kn}-status-${gn}`,{[`${kn}-${In==="dashboard"&&"circle"||In}`]:In!=="line",[`${kn}-inline-circle`]:In==="circle"&&Le(Ut,"circle")[0]<=20,[`${kn}-line`]:xn,[`${kn}-line-align-${At}`]:xn,[`${kn}-line-position-${Rt}`]:xn,[`${kn}-steps`]:nt,[`${kn}-show-info`]:ln,[`${kn}-${Ut}`]:typeof Ut=="string",[`${kn}-rtl`]:Sn==="rtl"},Mn==null?void 0:Mn.className,Ht,Be,An,Tt);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,Ie.Z)(Gt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ue))}),Vt=Yt},63139:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return pt}});var E=re(59301),at=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),Oe=function(Le,Re){return E.createElement(Se.Z,(0,at.Z)({},Le,{ref:Re,icon:et}))},Ee=E.forwardRef(Oe),Ze=Ee,Ie=re(92310),he=re.n(Ie),Je=re(18642),xe=re(72190),xt=re(42244),qe=re(18929),Ne=re(10228),Ve=re(26112);function We(ve,Le){var Re=ve.disabled,wt=ve.prefixCls,bt=ve.character,Bt=ve.characterRender,Te=ve.index,Ot=ve.count,lt=ve.value,ae=ve.allowHalf,te=ve.focused,ee=ve.onHover,oe=ve.onClick,ue=function(St){ee(St,Te)},ne=function(St){oe(St,Te)},pe=function(St){St.keyCode===Ne.Z.ENTER&&oe(St,Te)},ge=Te+1,Qe=new Set([wt]);lt===0&&Te===0&&te?Qe.add("".concat(wt,"-focused")):ae&<+.5>=ge&<<ge?(Qe.add("".concat(wt,"-half")),Qe.add("".concat(wt,"-active")),te&&Qe.add("".concat(wt,"-focused"))):(ge<=lt?Qe.add("".concat(wt,"-full")):Qe.add("".concat(wt,"-zero")),ge===lt&&te&&Qe.add("".concat(wt,"-focused")));var Ce=typeof bt=="function"?bt(ve):bt,Ke=E.createElement("li",{className:he()(Array.from(Qe)),ref:Le},E.createElement("div",{onClick:Re?null:ne,onKeyDown:Re?null:pe,onMouseMove:Re?null:ue,role:"radio","aria-checked":lt>Te?"true":"false","aria-posinset":Te+1,"aria-setsize":Ot,tabIndex:Re?-1:0},E.createElement("div",{className:"".concat(wt,"-first")},Ce),E.createElement("div",{className:"".concat(wt,"-second")},Ce)));return Bt&&(Ke=Bt(Ke,ve)),Ke}var ct=E.forwardRef(We);function Ct(){var ve=E.useRef({});function Le(wt){return ve.current[wt]}function Re(wt){return function(bt){ve.current[wt]=bt}}return[Le,Re]}function Dt(ve){var Le=ve.pageXOffset,Re="scrollLeft";if(typeof Le!="number"){var wt=ve.document;Le=wt.documentElement[Re],typeof Le!="number"&&(Le=wt.body[Re])}return Le}function ft(ve){var Le,Re,wt=ve.ownerDocument,bt=wt.body,Bt=wt&&wt.documentElement,Te=ve.getBoundingClientRect();return Le=Te.left,Re=Te.top,Le-=Bt.clientLeft||bt.clientLeft||0,Re-=Bt.clientTop||bt.clientTop||0,{left:Le,top:Re}}function rt(ve){var Le=ft(ve),Re=ve.ownerDocument,wt=Re.defaultView||Re.parentWindow;return Le.left+=Dt(wt),Le.left}var tt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ge(ve,Le){var Re=ve.prefixCls,wt=Re===void 0?"rc-rate":Re,bt=ve.className,Bt=ve.defaultValue,Te=ve.value,Ot=ve.count,lt=Ot===void 0?5:Ot,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,Qe=ve.characterRender,Ce=ve.disabled,Ke=ve.direction,ot=Ke===void 0?"ltr":Ke,St=ve.tabIndex,gt=St===void 0?0:St,Wt=ve.autoFocus,Zt=ve.onHoverChange,$t=ve.onChange,tn=ve.onFocus,Xt=ve.onBlur,rn=ve.onKeyDown,kt=ve.onMouseLeave,Yt=(0,xt.Z)(ve,tt),Vt=Ct(),He=(0,xe.Z)(Vt,2),dt=He[0],Nt=He[1],Ht=E.useRef(null),Be=function(){if(!Ce){var hn;(hn=Ht.current)===null||hn===void 0||hn.focus()}};E.useImperativeHandle(Le,function(){return{focus:Be,blur:function(){if(!Ce){var hn;(hn=Ht.current)===null||hn===void 0||hn.blur()}}}});var nt=(0,qe.Z)(Bt||0,{value:Te}),yt=(0,xe.Z)(nt,2),Mt=yt[0],Ut=yt[1],ln=(0,qe.Z)(null),In=(0,xe.Z)(ln,2),Pn=In[0],on=In[1],bn=function(hn,Ue){var st=ot==="rtl",Pe=hn+1;if(te){var Xe=dt(hn),Me=rt(Xe),Ye=Xe.clientWidth;(st&&Ue-Me>Ye/2||!st&&Ue-Me<Ye/2)&&(Pe-=.5)}return Pe},dn=function(hn){Ut(hn),$t==null||$t(hn)},Gt=E.useState(!1),At=(0,xe.Z)(Gt,2),Rt=At[0],It=At[1],en=function(){It(!0),tn==null||tn()},Jt=function(){It(!1),Xt==null||Xt()},qt=E.useState(null),gn=(0,xe.Z)(qt,2),wn=gn[0],Sn=gn[1],Mn=function(hn,Ue){var st=bn(Ue,hn.pageX);st!==Pn&&(Sn(st),on(null)),Zt==null||Zt(st)},kn=function(hn){Ce||(Sn(null),on(null),Zt==null||Zt(void 0)),hn&&(kt==null||kt(hn))},Wn=function(hn,Ue){var st=bn(Ue,hn.pageX),Pe=!1;oe&&(Pe=st===Mt),kn(),dn(Pe?0:st),on(Pe?st:null)},An=function(hn){var Ue=hn.keyCode,st=ot==="rtl",Pe=te?.5:1;ne&&(Ue===Ne.Z.RIGHT&&Mt<lt&&!st?(dn(Mt+Pe),hn.preventDefault()):Ue===Ne.Z.LEFT&&Mt>0&&!st||Ue===Ne.Z.RIGHT&&Mt>0&&st?(dn(Mt-Pe),hn.preventDefault()):Ue===Ne.Z.LEFT&&Mt<lt&&st&&(dn(Mt+Pe),hn.preventDefault())),rn==null||rn(hn)};E.useEffect(function(){Wt&&!Ce&&Be()},[]);var Tt=new Array(lt).fill(0).map(function(xn,hn){return E.createElement(ct,{ref:Nt(hn),index:hn,count:lt,disabled:Ce,prefixCls:"".concat(wt,"-star"),allowHalf:te,value:wn===null?Mt:wn,onClick:Wn,onHover:Mn,key:xn||hn,character:ge,characterRender:Qe,focused:Rt})}),Kt=he()(wt,bt,(0,Je.Z)((0,Je.Z)({},"".concat(wt,"-disabled"),Ce),"".concat(wt,"-rtl"),ot==="rtl"));return E.createElement("ul",(0,at.Z)({className:Kt,onMouseLeave:kn,tabIndex:Ce?-1:gt,onFocus:Ce?null:en,onBlur:Ce?null:Jt,onKeyDown:Ce?null:An,ref:Ht},(0,Ve.Z)(Yt,{aria:!0,data:!0,attr:!0})),Tt)}var vt=E.forwardRef(Ge),Ae=vt,je=re(48755),ht=re(25399),ke=re(36237),Fe=re(63356),$e=re(16931),le=re(51636);const ze=ve=>{const{componentCls:Le}=ve;return{[`${Le}-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,ke.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 ${Le}-star-first, &-half ${Le}-star-second`]:{opacity:1},[`&-half ${Le}-star-first, &-full ${Le}-star-second`]:{color:"inherit"}}}},De=ve=>({[`&-rtl${ve.componentCls}`]:{direction:"rtl"}}),we=ve=>{const{componentCls:Le}=ve;return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(ve)),{display:"inline-block",margin:0,padding:0,color:ve.starColor,fontSize:ve.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Le} ${Le}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),ze(ve)),De(ve))}},ut=ve=>({starColor:ve.yellow6,starSize:ve.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ve.colorFillContent});var me=(0,$e.I$)("Rate",ve=>{const Le=(0,le.mergeToken)(ve,{});return[we(Le)]},ut),ce=re(2171),_e=function(ve,Le){var Re={};for(var wt in ve)Object.prototype.hasOwnProperty.call(ve,wt)&&Le.indexOf(wt)<0&&(Re[wt]=ve[wt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,wt=Object.getOwnPropertySymbols(ve);bt<wt.length;bt++)Le.indexOf(wt[bt])<0&&Object.prototype.propertyIsEnumerable.call(ve,wt[bt])&&(Re[wt[bt]]=ve[wt[bt]]);return Re},pt=E.forwardRef((ve,Le)=>{const{prefixCls:Re,className:wt,rootClassName:bt,style:Bt,tooltips:Te,character:Ot=E.createElement(Ze,null),disabled:lt}=ve,ae=_e(ve,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(St,gt)=>{let{index:Wt}=gt;return Te?E.createElement(ht.Z,{title:Te[Wt]},St):St},{getPrefixCls:ee,direction:oe,rate:ue}=E.useContext(je.E_),ne=ee("rate",Re),[pe,ge,Qe]=me(ne),Ce=Object.assign(Object.assign({},ue==null?void 0:ue.style),Bt),Ke=E.useContext(ce.Z),ot=lt!=null?lt:Ke;return pe(E.createElement(Ae,Object.assign({ref:Le,character:Ot,characterRender:te,disabled:ot},ae,{className:he()(wt,bt,ge,Qe,ue==null?void 0:ue.className),style:Ce,prefixCls:ne,direction:oe})))})},82326:function(nn,zt,re){"use strict";var E=re(59301),at=re(92310),ye=re.n(at),et=re(37463),Se=re(2738),Oe=re(75030),Ee=re(86641),Ze=re(45915),Ie=re(82855),he=re(48755),Je=re(38406),xe=re(2171),xt=re(83397),qe=re(31756),Ne=re(56553),Ve=re(24971),We=re(70045),ct=re(57700),Ct=re(1722),Dt=re(90376),ft=re(68525),rt=re(90005),tt=function(ht,ke){var Fe={};for(var $e in ht)Object.prototype.hasOwnProperty.call(ht,$e)&&ke.indexOf($e)<0&&(Fe[$e]=ht[$e]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,$e=Object.getOwnPropertySymbols(ht);le<$e.length;le++)ke.indexOf($e[le])<0&&Object.prototype.propertyIsEnumerable.call(ht,$e[le])&&(Fe[$e[le]]=ht[$e[le]]);return Fe};const Ge="SECRET_COMBOBOX_MODE_DO_NOT_USE",vt=(ht,ke)=>{var Fe;const{prefixCls:$e,bordered:le,className:ze,rootClassName:De,getPopupContainer:we,popupClassName:ut,dropdownClassName:me,listHeight:ce=256,placement:_e,listItemHeight:Et,size:pt,disabled:ve,notFoundContent:Le,status:Re,builtinPlacements:wt,dropdownMatchSelectWidth:bt,popupMatchSelectWidth:Bt,direction:Te,style:Ot,allowClear:lt,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:Qe,renderEmpty:Ce,direction:Ke,virtual:ot,popupMatchSelectWidth:St,popupOverflow:gt}=E.useContext(he.E_),Wt=(0,he.dj)("select"),[,Zt]=(0,ct.ZP)(),$t=Et!=null?Et:Zt==null?void 0:Zt.controlHeight,tn=Qe("select",$e),Xt=Qe(),rn=Te!=null?Te:Ke,{compactSize:kt,compactItemClassnames:Yt}=(0,We.ri)(tn,rn),[Vt,He]=(0,Ve.Z)("select",ae,le),dt=(0,xt.Z)(tn),[Nt,Ht,Be]=(0,Dt.Z)(tn,dt),nt=E.useMemo(()=>{const{mode:An}=ht;if(An!=="combobox")return An===Ge?"combobox":An},[ht.mode]),yt=nt==="multiple"||nt==="tags",Mt=(0,rt.Z)(ht.suffixIcon,ht.showArrow),Ut=(Fe=Bt!=null?Bt:bt)!==null&&Fe!==void 0?Fe:St,{status:ln,hasFeedback:In,isFormItemInput:Pn,feedbackIcon:on}=E.useContext(Ne.aM),bn=(0,Ie.F)(ln,Re);let dn;Le!==void 0?dn=Le:nt==="combobox"?dn=null:dn=(Ce==null?void 0:Ce("Select"))||E.createElement(Je.Z,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:At,removeIcon:Rt,clearIcon:It}=(0,ft.Z)(Object.assign(Object.assign({},pe),{multiple:yt,hasFeedback:In,feedbackIcon:on,showSuffixIcon:Mt,prefixCls:tn,componentName:"Select"})),en=lt===!0?{clearIcon:It}:lt,Jt=(0,Se.Z)(pe,["suffixIcon","itemIcon"]),qt=ye()(ut||me,{[`${tn}-dropdown-${rn}`]:rn==="rtl"},De,Be,dt,Ht),gn=(0,qe.Z)(An=>{var Tt;return(Tt=pt!=null?pt:kt)!==null&&Tt!==void 0?Tt:An}),wn=E.useContext(xe.Z),Sn=ve!=null?ve:wn,Mn=ye()({[`${tn}-lg`]:gn==="large",[`${tn}-sm`]:gn==="small",[`${tn}-rtl`]:rn==="rtl",[`${tn}-${Vt}`]:He,[`${tn}-in-form-item`]:Pn},(0,Ie.Z)(tn,bn,In),Yt,Wt.className,ze,De,Be,dt,Ht),kn=E.useMemo(()=>_e!==void 0?_e:rn==="rtl"?"bottomRight":"bottomLeft",[_e,rn]),[Wn]=(0,Oe.Cn)("SelectLike",te==null?void 0:te.zIndex);return Nt(E.createElement(et.ZP,Object.assign({ref:ke,virtual:ot,showSearch:Wt.showSearch},Jt,{style:Object.assign(Object.assign({},Wt.style),Ot),dropdownMatchSelectWidth:Ut,transitionName:(0,Ee.m)(Xt,"slide-up",ee),builtinPlacements:(0,Ct.Z)(wt,gt),listHeight:ce,listItemHeight:$t,mode:nt,prefixCls:tn,placement:kn,direction:rn,prefix:ne,suffixIcon:Gt,menuItemSelectedIcon:At,removeIcon:Rt,allowClear:en,notFoundContent:dn,className:Mn,getPopupContainer:we||ge,dropdownClassName:qt,disabled:Sn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Wn}),maxCount:yt?ue:void 0,tagRender:yt?oe:void 0})))},Ae=E.forwardRef(vt),je=(0,Ze.Z)(Ae,"dropdownAlign");Ae.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ge,Ae.Option=et.Wx,Ae.OptGroup=et.Xo,Ae._InternalPanelDoNotUseOrYouWillBeFired=je,zt.default=Ae},1722:function(nn,zt){"use strict";const re=at=>{const et={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:at==="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(at,ye){return at||re(ye)}zt.Z=E},90376:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return $e}});var E=re(63356),at=re(56119),ye=re(16931),et=re(51636),Se=re(46e3),Oe=re(93873);const Ee=le=>{const{optionHeight:ze,optionFontSize:De,optionLineHeight:we,optionPadding:ut}=le;return{position:"relative",display:"block",minHeight:ze,padding:ut,color:le.colorText,fontWeight:"normal",fontSize:De,lineHeight:we,boxSizing:"border-box"}};var Ie=le=>{const{antCls:ze,componentCls:De}=le,we=`${De}-item`,ut=`&${ze}-slide-up-enter${ze}-slide-up-enter-active`,me=`&${ze}-slide-up-appear${ze}-slide-up-appear-active`,ce=`&${ze}-slide-up-leave${ze}-slide-up-leave-active`,_e=`${De}-dropdown-placement-`,Et=`${we}-option-selected`;return[{[`${De}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(le)),{position:"absolute",top:-9999,zIndex:le.zIndexPopup,boxSizing:"border-box",padding:le.paddingXXS,overflow:"hidden",fontSize:le.fontSize,fontVariant:"initial",backgroundColor:le.colorBgElevated,borderRadius:le.borderRadiusLG,outline:"none",boxShadow:le.boxShadowSecondary,[`
|
|
|
${ut}${_e}bottomLeft,
|
|
|
${me}${_e}bottomLeft
|
|
|
`]:{animationName:Se.fJ},[`
|
|
|
${ut}${_e}topLeft,
|
|
|
${me}${_e}topLeft,
|
|
|
${ut}${_e}topRight,
|
|
|
${me}${_e}topRight
|
|
|
`]:{animationName:Se.Qt},[`${ce}${_e}bottomLeft`]:{animationName:Se.Uw},[`
|
|
|
${ce}${_e}topLeft,
|
|
|
${ce}${_e}topRight
|
|
|
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[we]:Object.assign(Object.assign({},Ee(le)),{cursor:"pointer",transition:`background ${le.motionDurationSlow} ease`,borderRadius:le.borderRadiusSM,"&-group":{color:le.colorTextDescription,fontSize:le.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:le.optionActiveBg},[`&-selected:not(${we}-option-disabled)`]:{color:le.optionSelectedColor,fontWeight:le.optionSelectedFontWeight,backgroundColor:le.optionSelectedBg,[`${we}-option-state`]:{color:le.colorPrimary}},"&-disabled":{[`&${we}-option-selected`]:{backgroundColor:le.colorBgContainerDisabled},color:le.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:le.calc(le.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ee(le)),{color:le.colorTextDisabled})}),[`${Et}:has(+ ${Et})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Et}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(le,"slide-up"),(0,Se.oN)(le,"slide-down"),(0,Oe.Fm)(le,"move-up"),(0,Oe.Fm)(le,"move-down")]},he=re(26743),Je=re(36237);function xe(le,ze){const{componentCls:De,inputPaddingHorizontalBase:we,borderRadius:ut}=le,me=le.calc(le.controlHeight).sub(le.calc(le.lineWidth).mul(2)).equal(),ce=ze?`${De}-${ze}`:"";return{[`${De}-single${ce}`]:{fontSize:le.fontSize,height:le.controlHeight,[`${De}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(le,!0)),{display:"flex",borderRadius:ut,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 ${le.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:le.showArrowPaddingInlineEnd},[`&${De}-open ${De}-selection-item`]:{color:le.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:le.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 xt(le){const{componentCls:ze}=le,De=le.calc(le.controlPaddingHorizontalSM).sub(le.lineWidth).equal();return[xe(le),xe((0,et.mergeToken)(le,{controlHeight:le.controlHeightSM,borderRadius:le.borderRadiusSM}),"sm"),{[`${ze}-single${ze}-sm`]:{[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{padding:`0 ${(0,Je.unit)(De)}`},[`&${ze}-show-arrow ${ze}-selection-search`]:{insetInlineEnd:le.calc(De).add(le.calc(le.fontSize).mul(1.5)).equal()},[`
|
|
|
&${ze}-show-arrow ${ze}-selection-item,
|
|
|
&${ze}-show-arrow ${ze}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:le.calc(le.fontSize).mul(1.5).equal()}}}},xe((0,et.mergeToken)(le,{controlHeight:le.singleItemHeightLG,fontSize:le.fontSizeLG,borderRadius:le.borderRadiusLG}),"lg")]}const qe=le=>{const{fontSize:ze,lineHeight:De,lineWidth:we,controlHeight:ut,controlHeightSM:me,controlHeightLG:ce,paddingXXS:_e,controlPaddingHorizontal:Et,zIndexPopupBase:pt,colorText:ve,fontWeightStrong:Le,controlItemBgActive:Re,controlItemBgHover:wt,colorBgContainer:bt,colorFillSecondary:Bt,colorBgContainerDisabled:Te,colorTextDisabled:Ot,colorPrimaryHover:lt,colorPrimary:ae,controlOutline:te}=le,ee=_e*2,oe=we*2,ue=Math.min(ut-ee,ut-oe),ne=Math.min(me-ee,me-oe),pe=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(_e/2),zIndexPopup:pt+50,optionSelectedColor:ve,optionSelectedFontWeight:Le,optionSelectedBg:Re,optionActiveBg:wt,optionPadding:`${(ut-ze*De)/2}px ${Et}px`,optionFontSize:ze,optionLineHeight:De,optionHeight:ut,selectorBg:bt,clearBg:bt,singleItemHeightLG:ce,multipleItemBg:Bt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:Te,multipleItemColorDisabled:Ot,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(le.fontSize*1.25),hoverBorderColor:lt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:_e}},Ne=(le,ze)=>{const{componentCls:De,antCls:we,controlOutlineWidth:ut}=le;return{[`&:not(${De}-customize-input) ${De}-selector`]:{border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} ${ze.borderColor}`,background:le.selectorBg},[`&:not(${De}-disabled):not(${De}-customize-input):not(${we}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{borderColor:ze.hoverBorderHover},[`${De}-focused& ${De}-selector`]:{borderColor:ze.activeBorderColor,boxShadow:`0 0 0 ${(0,Je.unit)(ut)} ${ze.activeOutlineColor}`,outline:0},[`${De}-prefix`]:{color:ze.color}}}},Ve=(le,ze)=>({[`&${le.componentCls}-status-${ze.status}`]:Object.assign({},Ne(le,ze))}),We=le=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(le,{borderColor:le.colorBorder,hoverBorderHover:le.hoverBorderColor,activeBorderColor:le.activeBorderColor,activeOutlineColor:le.activeOutlineColor,color:le.colorText})),Ve(le,{status:"error",borderColor:le.colorError,hoverBorderHover:le.colorErrorHover,activeBorderColor:le.colorError,activeOutlineColor:le.colorErrorOutline,color:le.colorError})),Ve(le,{status:"warning",borderColor:le.colorWarning,hoverBorderHover:le.colorWarningHover,activeBorderColor:le.colorWarning,activeOutlineColor:le.colorWarningOutline,color:le.colorWarning})),{[`&${le.componentCls}-disabled`]:{[`&:not(${le.componentCls}-customize-input) ${le.componentCls}-selector`]:{background:le.colorBgContainerDisabled,color:le.colorTextDisabled}},[`&${le.componentCls}-multiple ${le.componentCls}-selection-item`]:{background:le.multipleItemBg,border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} ${le.multipleItemBorderColor}`}})}),ct=(le,ze)=>{const{componentCls:De,antCls:we}=le;return{[`&:not(${De}-customize-input) ${De}-selector`]:{background:ze.bg,border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} transparent`,color:ze.color},[`&:not(${De}-disabled):not(${De}-customize-input):not(${we}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{background:ze.hoverBg},[`${De}-focused& ${De}-selector`]:{background:le.selectorBg,borderColor:ze.activeBorderColor,outline:0}}}},Ct=(le,ze)=>({[`&${le.componentCls}-status-${ze.status}`]:Object.assign({},ct(le,ze))}),Dt=le=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ct(le,{bg:le.colorFillTertiary,hoverBg:le.colorFillSecondary,activeBorderColor:le.activeBorderColor,color:le.colorText})),Ct(le,{status:"error",bg:le.colorErrorBg,hoverBg:le.colorErrorBgHover,activeBorderColor:le.colorError,color:le.colorError})),Ct(le,{status:"warning",bg:le.colorWarningBg,hoverBg:le.colorWarningBgHover,activeBorderColor:le.colorWarning,color:le.colorWarning})),{[`&${le.componentCls}-disabled`]:{[`&:not(${le.componentCls}-customize-input) ${le.componentCls}-selector`]:{borderColor:le.colorBorder,background:le.colorBgContainerDisabled,color:le.colorTextDisabled}},[`&${le.componentCls}-multiple ${le.componentCls}-selection-item`]:{background:le.colorBgContainer,border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} ${le.colorSplit}`}})}),ft=le=>({"&-borderless":{[`${le.componentCls}-selector`]:{background:"transparent",border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} transparent`},[`&${le.componentCls}-disabled`]:{[`&:not(${le.componentCls}-customize-input) ${le.componentCls}-selector`]:{color:le.colorTextDisabled}},[`&${le.componentCls}-multiple ${le.componentCls}-selection-item`]:{background:le.multipleItemBg,border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} ${le.multipleItemBorderColor}`},[`&${le.componentCls}-status-error`]:{[`${le.componentCls}-prefix, ${le.componentCls}-selection-item`]:{color:le.colorError}},[`&${le.componentCls}-status-warning`]:{[`${le.componentCls}-prefix, ${le.componentCls}-selection-item`]:{color:le.colorWarning}}}}),rt=(le,ze)=>{const{componentCls:De,antCls:we}=le;return{[`&:not(${De}-customize-input) ${De}-selector`]:{borderWidth:`0 0 ${(0,Je.unit)(le.lineWidth)} 0`,borderStyle:`none none ${le.lineType} none`,borderColor:ze.borderColor,background:le.selectorBg,borderRadius:0},[`&:not(${De}-disabled):not(${De}-customize-input):not(${we}-pagination-size-changer)`]:{[`&:hover ${De}-selector`]:{borderColor:ze.hoverBorderHover},[`${De}-focused& ${De}-selector`]:{borderColor:ze.activeBorderColor,outline:0},[`${De}-prefix`]:{color:ze.color}}}},tt=(le,ze)=>({[`&${le.componentCls}-status-${ze.status}`]:Object.assign({},rt(le,ze))}),Ge=le=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},rt(le,{borderColor:le.colorBorder,hoverBorderHover:le.hoverBorderColor,activeBorderColor:le.activeBorderColor,activeOutlineColor:le.activeOutlineColor,color:le.colorText})),tt(le,{status:"error",borderColor:le.colorError,hoverBorderHover:le.colorErrorHover,activeBorderColor:le.colorError,activeOutlineColor:le.colorErrorOutline,color:le.colorError})),tt(le,{status:"warning",borderColor:le.colorWarning,hoverBorderHover:le.colorWarningHover,activeBorderColor:le.colorWarning,activeOutlineColor:le.colorWarningOutline,color:le.colorWarning})),{[`&${le.componentCls}-disabled`]:{[`&:not(${le.componentCls}-customize-input) ${le.componentCls}-selector`]:{color:le.colorTextDisabled}},[`&${le.componentCls}-multiple ${le.componentCls}-selection-item`]:{background:le.multipleItemBg,border:`${(0,Je.unit)(le.lineWidth)} ${le.lineType} ${le.multipleItemBorderColor}`}})});var Ae=le=>({[le.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},We(le)),Dt(le)),ft(le)),Ge(le))});const je=le=>{const{componentCls:ze}=le;return{position:"relative",transition:`all ${le.motionDurationMid} ${le.motionEaseInOut}`,input:{cursor:"pointer"},[`${ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ze}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ht=le=>{const{componentCls:ze}=le;return{[`${ze}-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"}}}},ke=le=>{const{antCls:ze,componentCls:De,inputPaddingHorizontalBase:we,iconCls:ut}=le;return{[De]:Object.assign(Object.assign({},(0,E.Wf)(le)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${De}-customize-input) ${De}-selector`]:Object.assign(Object.assign({},je(le)),ht(le)),[`${De}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${ze}-typography`]:{display:"inline"}}),[`${De}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:le.colorTextPlaceholder,pointerEvents:"none"}),[`${De}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:we,height:le.fontSizeIcon,marginTop:le.calc(le.fontSizeIcon).mul(-1).div(2).equal(),color:le.colorTextQuaternary,fontSize:le.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${le.motionDurationSlow} ease`,[ut]:{verticalAlign:"top",transition:`transform ${le.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:le.selectAffixPadding},[`${De}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:we,zIndex:1,display:"inline-block",width:le.fontSizeIcon,height:le.fontSizeIcon,marginTop:le.calc(le.fontSizeIcon).mul(-1).div(2).equal(),color:le.colorTextQuaternary,fontSize:le.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${le.motionDurationMid} ease, opacity ${le.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:le.colorTextTertiary}},[`&:hover ${De}-clear`]:{opacity:1,background:le.colorBgBase,borderRadius:"50%"}}),[`${De}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${De}-has-feedback`]:{[`${De}-clear`]:{insetInlineEnd:le.calc(we).add(le.fontSize).add(le.paddingXS).equal()}}}}}},Fe=le=>{const{componentCls:ze}=le;return[{[ze]:{[`&${ze}-in-form-item`]:{width:"100%"}}},ke(le),xt(le),(0,he.ZP)(le),Ie(le),{[`${ze}-rtl`]:{direction:"rtl"}},(0,at.c)(le,{borderElCls:`${ze}-selector`,focusElCls:`${ze}-focused`})]};var $e=(0,ye.I$)("Select",(le,ze)=>{let{rootPrefixCls:De}=ze;const we=(0,et.mergeToken)(le,{rootPrefixCls:De,inputPaddingHorizontalBase:le.calc(le.paddingSM).sub(1).equal(),multipleSelectItemHeight:le.multipleItemHeight,selectHeight:le.controlHeight});return[Fe(we),Ae(we)]},qe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(nn,zt,re){"use strict";re.d(zt,{_z:function(){return Oe},gp:function(){return et}});var E=re(36237),at=re(63356),ye=re(51636);const et=he=>{const{multipleSelectItemHeight:Je,paddingXXS:xe,lineWidth:xt,INTERNAL_FIXED_ITEM_MARGIN:qe}=he,Ne=he.max(he.calc(xe).sub(xt).equal(),0),Ve=he.max(he.calc(Ne).sub(qe).equal(),0);return{basePadding:Ne,containerPadding:Ve,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:xe,lineWidth:xt}=he;return he.calc(xe).sub(Je).div(2).sub(xt).equal()},Oe=he=>{const{componentCls:Je,iconCls:xe,borderRadiusSM:xt,motionDurationSlow:qe,paddingXS:Ne,multipleItemColorDisabled:Ve,multipleItemBorderColorDisabled:We,colorIcon:ct,colorIconHover:Ct,INTERNAL_FIXED_ITEM_MARGIN:Dt}=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:Dt,borderRadius:xt,cursor:"default",transition:`font-size ${qe}, line-height ${qe}, height ${qe}`,marginInlineEnd:he.calc(Dt).mul(2).equal(),paddingInlineStart:Ne,paddingInlineEnd:he.calc(Ne).div(2).equal(),[`${Je}-disabled&`]:{color:Ve,borderColor:We,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Ne).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,at.Ro)()),{display:"inline-flex",alignItems:"center",color:ct,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ct}})}}}},Ee=(he,Je)=>{const{componentCls:xe,INTERNAL_FIXED_ITEM_MARGIN:xt}=he,qe=`${xe}-selection-overflow`,Ne=he.multipleSelectItemHeight,Ve=Se(he),We=Je?`${xe}-${Je}`:"",ct=et(he);return{[`${xe}-multiple${We}`]:Object.assign(Object.assign({},Oe(he)),{[`${xe}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ct.basePadding,paddingBlock:ct.containerPadding,borderRadius:he.borderRadius,[`${xe}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(xt)} 0`,lineHeight:(0,E.unit)(Ne),visibility:"hidden",content:'"\\a0"'}},[`${xe}-selection-item`]:{height:ct.itemHeight,lineHeight:(0,E.unit)(ct.itemLineHeight)},[`${xe}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(Ne),marginBlock:xt}},[`${xe}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ct.basePadding).equal()},[`${qe}-item + ${qe}-item,
|
|
|
${xe}-prefix + ${xe}-selection-wrap
|
|
|
`]:{[`${xe}-selection-search`]:{marginInlineStart:0},[`${xe}-selection-placeholder`]:{insetInlineStart:0}},[`${qe}-item-suffix`]:{minHeight:ct.itemHeight,marginBlock:xt},[`${xe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ve).equal(),"\n &-input,\n &-mirror\n ":{height:Ne,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(Ne),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"}},[`${xe}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ct.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Ze(he,Je){const{componentCls:xe}=he,xt=Je?`${xe}-${Je}`:"",qe={[`${xe}-multiple${xt}`]:{fontSize:he.fontSize,[`${xe}-selector`]:{[`${xe}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${xe}-show-arrow ${xe}-selector,
|
|
|
&${xe}-allow-clear ${xe}-selector
|
|
|
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Ee(he,Je),qe]}const Ie=he=>{const{componentCls:Je}=he,xe=(0,ye.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),xt=(0,ye.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Ze(he),Ze(xe,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Je}-selection-search`]:{marginInlineStart:2}}},Ze(xt,"lg")]};zt.ZP=Ie},68525:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return Ze}});var E=re(59301),at=re(40001),ye=re(19248),et=re(99267),Se=re(84105),Oe=re(58617),Ee=re(47472);function Ze(Ie){let{suffixIcon:he,clearIcon:Je,menuItemSelectedIcon:xe,removeIcon:xt,loading:qe,multiple:Ne,hasFeedback:Ve,prefixCls:We,showSuffixIcon:ct,feedbackIcon:Ct,showArrow:Dt,componentName:ft}=Ie;const rt=Je!=null?Je:E.createElement(ye.Z,null),tt=je=>he===null&&!Ve&&!Dt?null:E.createElement(E.Fragment,null,ct!==!1&&je,Ve&&Ct);let Ge=null;if(he!==void 0)Ge=tt(he);else if(qe)Ge=tt(E.createElement(Oe.Z,{spin:!0}));else{const je=`${We}-suffix`;Ge=ht=>{let{open:ke,showSearch:Fe}=ht;return tt(ke&&Fe?E.createElement(Ee.Z,{className:je}):E.createElement(Se.Z,{className:je}))}}let vt=null;xe!==void 0?vt=xe:Ne?vt=E.createElement(at.Z,null):vt=null;let Ae=null;return xt!==void 0?Ae=xt:Ae=E.createElement(et.Z,null),{clearIcon:rt,suffixIcon:Ge,itemIcon:vt,removeIcon:Ae}}},90005:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return E}});function E(at,ye){return ye!==void 0?ye:at!==null}},11938:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return ht}});var E=re(59301),at=re(40192),ye=re(22703),et=re(92310),Se=re.n(et),Oe=re(26112),Ee=re(48755),Ze=re(458),he=ke=>{const{value:Fe,formatter:$e,precision:le,decimalSeparator:ze,groupSeparator:De="",prefixCls:we}=ke;let ut;if(typeof $e=="function")ut=$e(Fe);else{const me=String(Fe),ce=me.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||me==="-")ut=me;else{const _e=ce[1];let Et=ce[2]||"0",pt=ce[4]||"";Et=Et.replace(/\B(?=(\d{3})+(?!\d))/g,De),typeof le=="number"&&(pt=pt.padEnd(le,"0").slice(0,le>0?le:0)),pt&&(pt=`${ze}${pt}`),ut=[E.createElement("span",{key:"int",className:`${we}-content-value-int`},_e,Et),pt&&E.createElement("span",{key:"decimal",className:`${we}-content-value-decimal`},pt)]}}return E.createElement("span",{className:`${we}-content-value`},ut)},Je=re(63356),xe=re(16931),xt=re(51636);const qe=ke=>{const{componentCls:Fe,marginXXS:$e,padding:le,colorTextDescription:ze,titleFontSize:De,colorTextHeading:we,contentFontSize:ut,fontFamily:me}=ke;return{[Fe]:Object.assign(Object.assign({},(0,Je.Wf)(ke)),{[`${Fe}-title`]:{marginBottom:$e,color:ze,fontSize:De},[`${Fe}-skeleton`]:{paddingTop:le},[`${Fe}-content`]:{color:we,fontSize:ut,fontFamily:me,[`${Fe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Fe}-content-prefix, ${Fe}-content-suffix`]:{display:"inline-block"},[`${Fe}-content-prefix`]:{marginInlineEnd:$e},[`${Fe}-content-suffix`]:{marginInlineStart:$e}}})}},Ne=ke=>{const{fontSizeHeading3:Fe,fontSize:$e}=ke;return{titleFontSize:$e,contentFontSize:Fe}};var Ve=(0,xe.I$)("Statistic",ke=>{const Fe=(0,xt.mergeToken)(ke,{});return[qe(Fe)]},Ne),We=function(ke,Fe){var $e={};for(var le in ke)Object.prototype.hasOwnProperty.call(ke,le)&&Fe.indexOf(le)<0&&($e[le]=ke[le]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,le=Object.getOwnPropertySymbols(ke);ze<le.length;ze++)Fe.indexOf(le[ze])<0&&Object.prototype.propertyIsEnumerable.call(ke,le[ze])&&($e[le[ze]]=ke[le[ze]]);return $e},Ct=ke=>{const{prefixCls:Fe,className:$e,rootClassName:le,style:ze,valueStyle:De,value:we=0,title:ut,valueRender:me,prefix:ce,suffix:_e,loading:Et=!1,formatter:pt,precision:ve,decimalSeparator:Le=".",groupSeparator:Re=",",onMouseEnter:wt,onMouseLeave:bt}=ke,Bt=We(ke,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Te,direction:Ot,className:lt,style:ae}=(0,Ee.dj)("statistic"),te=Te("statistic",Fe),[ee,oe,ue]=Ve(te),ne=E.createElement(he,{decimalSeparator:Le,groupSeparator:Re,prefixCls:te,formatter:pt,precision:ve,value:we}),pe=Se()(te,{[`${te}-rtl`]:Ot==="rtl"},lt,$e,le,oe,ue),ge=(0,Oe.Z)(Bt,{aria:!0,data:!0});return ee(E.createElement("div",Object.assign({},ge,{className:pe,style:Object.assign(Object.assign({},ae),ze),onMouseEnter:wt,onMouseLeave:bt}),ut&&E.createElement("div",{className:`${te}-title`},ut),E.createElement(Ze.Z,{paragraph:!1,loading:Et,className:`${te}-skeleton`},E.createElement("div",{style:De,className:`${te}-content`},ce&&E.createElement("span",{className:`${te}-content-prefix`},ce),me?me(ne):ne,_e&&E.createElement("span",{className:`${te}-content-suffix`},_e)))))};const Dt=[["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(ke,Fe){let $e=ke;const le=/\[[^\]]*]/g,ze=(Fe.match(le)||[]).map(me=>me.slice(1,-1)),De=Fe.replace(le,"[]"),we=Dt.reduce((me,ce)=>{let[_e,Et]=ce;if(me.includes(_e)){const pt=Math.floor($e/Et);return $e-=pt*Et,me.replace(new RegExp(`${_e}+`,"g"),ve=>{const Le=ve.length;return pt.toString().padStart(Le,"0")})}return me},De);let ut=0;return we.replace(le,()=>{const me=ze[ut];return ut+=1,me})}function rt(ke,Fe){const{format:$e=""}=Fe,le=new Date(ke).getTime(),ze=Date.now(),De=Math.max(le-ze,0);return ft(De,$e)}var tt=function(ke,Fe){var $e={};for(var le in ke)Object.prototype.hasOwnProperty.call(ke,le)&&Fe.indexOf(le)<0&&($e[le]=ke[le]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,le=Object.getOwnPropertySymbols(ke);ze<le.length;ze++)Fe.indexOf(le[ze])<0&&Object.prototype.propertyIsEnumerable.call(ke,le[ze])&&($e[le[ze]]=ke[le[ze]]);return $e};const Ge=1e3/30;function vt(ke){return new Date(ke).getTime()}const Ae=ke=>{const{value:Fe,format:$e="HH:mm:ss",onChange:le,onFinish:ze}=ke,De=tt(ke,["value","format","onChange","onFinish"]),we=(0,at.Z)(),ut=E.useRef(null),me=()=>{ze==null||ze(),ut.current&&(clearInterval(ut.current),ut.current=null)},ce=()=>{const pt=vt(Fe);pt>=Date.now()&&(ut.current=setInterval(()=>{we(),le==null||le(pt-Date.now()),pt<Date.now()&&me()},Ge))};E.useEffect(()=>(ce(),()=>{ut.current&&(clearInterval(ut.current),ut.current=null)}),[Fe]);const _e=(pt,ve)=>rt(pt,Object.assign(Object.assign({},ve),{format:$e})),Et=pt=>(0,ye.Tm)(pt,{title:void 0});return E.createElement(Ct,Object.assign({},De,{value:Fe,valueRender:Et,formatter:_e}))};var je=E.memo(Ae);Ct.Countdown=je;var ht=Ct},58755:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return ze}});var E=re(59301),at=re(58617),ye=re(92310),et=re.n(ye),Se=re(60499),Oe=re(18642),Ee=re(72190),Ze=re(42244),Ie=re(18929),he=re(10228),Je=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xe=E.forwardRef(function(De,we){var ut,me=De.prefixCls,ce=me===void 0?"rc-switch":me,_e=De.className,Et=De.checked,pt=De.defaultChecked,ve=De.disabled,Le=De.loadingIcon,Re=De.checkedChildren,wt=De.unCheckedChildren,bt=De.onClick,Bt=De.onChange,Te=De.onKeyDown,Ot=(0,Ze.Z)(De,Je),lt=(0,Ie.Z)(!1,{value:Et,defaultValue:pt}),ae=(0,Ee.Z)(lt,2),te=ae[0],ee=ae[1];function oe(ge,Qe){var Ce=te;return ve||(Ce=ge,ee(Ce),Bt==null||Bt(Ce,Qe)),Ce}function ue(ge){ge.which===he.Z.LEFT?oe(!1,ge):ge.which===he.Z.RIGHT&&oe(!0,ge),Te==null||Te(ge)}function ne(ge){var Qe=oe(!te,ge);bt==null||bt(Qe,ge)}var pe=et()(ce,_e,(ut={},(0,Oe.Z)(ut,"".concat(ce,"-checked"),te),(0,Oe.Z)(ut,"".concat(ce,"-disabled"),ve),ut));return E.createElement("button",(0,Se.Z)({},Ot,{type:"button",role:"switch","aria-checked":te,disabled:ve,className:pe,ref:we,onKeyDown:ue,onClick:ne}),Le,E.createElement("span",{className:"".concat(ce,"-inner")},E.createElement("span",{className:"".concat(ce,"-inner-checked")},Re),E.createElement("span",{className:"".concat(ce,"-inner-unchecked")},wt)))});xe.displayName="Switch";var xt=xe,qe=re(12919),Ne=re(48755),Ve=re(2171),We=re(31756),ct=re(36237),Ct=re(17835),Dt=re(63356),ft=re(16931),rt=re(51636);const tt=De=>{const{componentCls:we,trackHeightSM:ut,trackPadding:me,trackMinWidthSM:ce,innerMinMarginSM:_e,innerMaxMarginSM:Et,handleSizeSM:pt,calc:ve}=De,Le=`${we}-inner`,Re=(0,ct.unit)(ve(pt).add(ve(me).mul(2)).equal()),wt=(0,ct.unit)(ve(Et).mul(2).equal());return{[we]:{[`&${we}-small`]:{minWidth:ce,height:ut,lineHeight:(0,ct.unit)(ut),[`${we}-inner`]:{paddingInlineStart:Et,paddingInlineEnd:_e,[`${Le}-checked, ${Le}-unchecked`]:{minHeight:ut},[`${Le}-checked`]:{marginInlineStart:`calc(-100% + ${Re} - ${wt})`,marginInlineEnd:`calc(100% - ${Re} + ${wt})`},[`${Le}-unchecked`]:{marginTop:ve(ut).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${we}-handle`]:{width:pt,height:pt},[`${we}-loading-icon`]:{top:ve(ve(pt).sub(De.switchLoadingIconSize)).div(2).equal(),fontSize:De.switchLoadingIconSize},[`&${we}-checked`]:{[`${we}-inner`]:{paddingInlineStart:_e,paddingInlineEnd:Et,[`${Le}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Le}-unchecked`]:{marginInlineStart:`calc(100% - ${Re} + ${wt})`,marginInlineEnd:`calc(-100% + ${Re} - ${wt})`}},[`${we}-handle`]:{insetInlineStart:`calc(100% - ${(0,ct.unit)(ve(pt).add(me).equal())})`}},[`&:not(${we}-disabled):active`]:{[`&:not(${we}-checked) ${Le}`]:{[`${Le}-unchecked`]:{marginInlineStart:ve(De.marginXXS).div(2).equal(),marginInlineEnd:ve(De.marginXXS).mul(-1).div(2).equal()}},[`&${we}-checked ${Le}`]:{[`${Le}-checked`]:{marginInlineStart:ve(De.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ve(De.marginXXS).div(2).equal()}}}}}}},Ge=De=>{const{componentCls:we,handleSize:ut,calc:me}=De;return{[we]:{[`${we}-loading-icon${De.iconCls}`]:{position:"relative",top:me(me(ut).sub(De.fontSize)).div(2).equal(),color:De.switchLoadingIconColor,verticalAlign:"top"},[`&${we}-checked ${we}-loading-icon`]:{color:De.switchColor}}}},vt=De=>{const{componentCls:we,trackPadding:ut,handleBg:me,handleShadow:ce,handleSize:_e,calc:Et}=De,pt=`${we}-handle`;return{[we]:{[pt]:{position:"absolute",top:ut,insetInlineStart:ut,width:_e,height:_e,transition:`all ${De.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:me,borderRadius:Et(_e).div(2).equal(),boxShadow:ce,transition:`all ${De.switchDuration} ease-in-out`,content:'""'}},[`&${we}-checked ${pt}`]:{insetInlineStart:`calc(100% - ${(0,ct.unit)(Et(_e).add(ut).equal())})`},[`&:not(${we}-disabled):active`]:{[`${pt}::before`]:{insetInlineEnd:De.switchHandleActiveInset,insetInlineStart:0},[`&${we}-checked ${pt}::before`]:{insetInlineEnd:0,insetInlineStart:De.switchHandleActiveInset}}}}},Ae=De=>{const{componentCls:we,trackHeight:ut,trackPadding:me,innerMinMargin:ce,innerMaxMargin:_e,handleSize:Et,calc:pt}=De,ve=`${we}-inner`,Le=(0,ct.unit)(pt(Et).add(pt(me).mul(2)).equal()),Re=(0,ct.unit)(pt(_e).mul(2).equal());return{[we]:{[ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:_e,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:ut},[`${ve}-checked`]:{marginInlineStart:`calc(-100% + ${Le} - ${Re})`,marginInlineEnd:`calc(100% - ${Le} + ${Re})`},[`${ve}-unchecked`]:{marginTop:pt(ut).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${we}-checked ${ve}`]:{paddingInlineStart:ce,paddingInlineEnd:_e,[`${ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ve}-unchecked`]:{marginInlineStart:`calc(100% - ${Le} + ${Re})`,marginInlineEnd:`calc(-100% + ${Le} - ${Re})`}},[`&:not(${we}-disabled):active`]:{[`&:not(${we}-checked) ${ve}`]:{[`${ve}-unchecked`]:{marginInlineStart:pt(me).mul(2).equal(),marginInlineEnd:pt(me).mul(-1).mul(2).equal()}},[`&${we}-checked ${ve}`]:{[`${ve}-checked`]:{marginInlineStart:pt(me).mul(-1).mul(2).equal(),marginInlineEnd:pt(me).mul(2).equal()}}}}}},je=De=>{const{componentCls:we,trackHeight:ut,trackMinWidth:me}=De;return{[we]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(De)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:me,height:ut,lineHeight:(0,ct.unit)(ut),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,Dt.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:ut,controlHeight:me,colorWhite:ce}=De,_e=we*ut,Et=me/2,pt=2,ve=_e-pt*2,Le=Et-pt*2;return{trackHeight:_e,trackHeightSM:Et,trackMinWidth:ve*2+pt*4,trackMinWidthSM:Le*2+pt*2,trackPadding:pt,handleBg:ce,handleSize:ve,handleSizeSM:Le,handleShadow:`0 2px 4px 0 ${new Ct.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ve/2,innerMaxMargin:ve+pt+pt*2,innerMinMarginSM:Le/2,innerMaxMarginSM:Le+pt+pt*2}};var ke=(0,ft.I$)("Switch",De=>{const we=(0,rt.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[je(we),Ae(we),vt(we),Ge(we),tt(we)]},ht),Fe=function(De,we){var ut={};for(var me in De)Object.prototype.hasOwnProperty.call(De,me)&&we.indexOf(me)<0&&(ut[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])&&(ut[me[ce]]=De[me[ce]]);return ut};const le=E.forwardRef((De,we)=>{const{prefixCls:ut,size:me,disabled:ce,loading:_e,className:Et,rootClassName:pt,style:ve,checked:Le,value:Re,defaultChecked:wt,defaultValue:bt,onChange:Bt}=De,Te=Fe(De,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ot,lt]=(0,Ie.Z)(!1,{value:Le!=null?Le:Re,defaultValue:wt!=null?wt:bt}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(Ne.E_),oe=E.useContext(Ve.Z),ue=(ce!=null?ce:oe)||_e,ne=ae("switch",ut),pe=E.createElement("div",{className:`${ne}-handle`},_e&&E.createElement(at.Z,{className:`${ne}-loading-icon`})),[ge,Qe,Ce]=ke(ne),Ke=(0,We.Z)(me),ot=et()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ke==="small",[`${ne}-loading`]:_e,[`${ne}-rtl`]:te==="rtl"},Et,pt,Qe,Ce),St=Object.assign(Object.assign({},ee==null?void 0:ee.style),ve),gt=function(){lt(arguments.length<=0?void 0:arguments[0]),Bt==null||Bt.apply(void 0,arguments)};return ge(E.createElement(qe.Z,{component:"Switch"},E.createElement(xt,Object.assign({},Te,{checked:Ot,onChange:gt,prefixCls:ne,className:ot,style:St,disabled:ue,ref:we,loadingIcon:pe}))))});le.__ANT_SWITCH=!0;var ze=le},96599:function(nn,zt,re){"use strict";re.d(zt,{default:function(){return $e}});var E=re(59301),at=re(92310),ye=re.n(at),et=re(2738),Se=re(29509),Oe=re(78776),Ee=re(22703),Ze=re(12919),Ie=re(48755),he=re(36237),Je=re(17835),xe=re(63356),xt=re(51636),qe=re(16931);const Ne=le=>{const{paddingXXS:ze,lineWidth:De,tagPaddingHorizontal:we,componentCls:ut,calc:me}=le,ce=me(we).sub(De).equal(),_e=me(ze).sub(De).equal();return{[ut]:Object.assign(Object.assign({},(0,xe.Wf)(le)),{display:"inline-block",height:"auto",marginInlineEnd:le.marginXS,paddingInline:ce,fontSize:le.tagFontSize,lineHeight:le.tagLineHeight,whiteSpace:"nowrap",background:le.defaultBg,border:`${(0,he.unit)(le.lineWidth)} ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusSM,opacity:1,transition:`all ${le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ut}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:le.defaultColor},[`${ut}-close-icon`]:{marginInlineStart:_e,fontSize:le.tagIconSize,color:le.colorTextDescription,cursor:"pointer",transition:`all ${le.motionDurationMid}`,"&:hover":{color:le.colorTextHeading}},[`&${ut}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${le.iconCls}-close, ${le.iconCls}-close:hover`]:{color:le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ut}-checkable-checked):hover`]:{color:le.colorPrimary,backgroundColor:le.colorFillSecondary},"&:active, &-checked":{color:le.colorTextLightSolid},"&-checked":{backgroundColor:le.colorPrimary,"&:hover":{backgroundColor:le.colorPrimaryHover}},"&:active":{backgroundColor:le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${le.iconCls} + span, > span + ${le.iconCls}`]:{marginInlineStart:ce}}),[`${ut}-borderless`]:{borderColor:"transparent",background:le.tagBorderlessBg}}},Ve=le=>{const{lineWidth:ze,fontSizeIcon:De,calc:we}=le,ut=le.fontSizeSM;return(0,xt.mergeToken)(le,{tagFontSize:ut,tagLineHeight:(0,he.unit)(we(le.lineHeightSM).mul(ut).equal()),tagIconSize:we(De).sub(we(ze).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:le.defaultBg})},We=le=>({defaultBg:new Je.FastColor(le.colorFillQuaternary).onBackground(le.colorBgContainer).toHexString(),defaultColor:le.colorText});var ct=(0,qe.I$)("Tag",le=>{const ze=Ve(le);return Ne(ze)},We),Ct=function(le,ze){var De={};for(var we in le)Object.prototype.hasOwnProperty.call(le,we)&&ze.indexOf(we)<0&&(De[we]=le[we]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,we=Object.getOwnPropertySymbols(le);ut<we.length;ut++)ze.indexOf(we[ut])<0&&Object.prototype.propertyIsEnumerable.call(le,we[ut])&&(De[we[ut]]=le[we[ut]]);return De},ft=E.forwardRef((le,ze)=>{const{prefixCls:De,style:we,className:ut,checked:me,onChange:ce,onClick:_e}=le,Et=Ct(le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:pt,tag:ve}=E.useContext(Ie.E_),Le=Ot=>{ce==null||ce(!me),_e==null||_e(Ot)},Re=pt("tag",De),[wt,bt,Bt]=ct(Re),Te=ye()(Re,`${Re}-checkable`,{[`${Re}-checkable-checked`]:me},ve==null?void 0:ve.className,ut,bt,Bt);return wt(E.createElement("span",Object.assign({},Et,{ref:ze,style:Object.assign(Object.assign({},we),ve==null?void 0:ve.style),className:Te,onClick:Le})))}),rt=re(93427);const tt=le=>(0,rt.Z)(le,(ze,De)=>{let{textColor:we,lightBorderColor:ut,lightColor:me,darkColor:ce}=De;return{[`${le.componentCls}${le.componentCls}-${ze}`]:{color:we,background:me,borderColor:ut,"&-inverse":{color:le.colorTextLightSolid,background:ce,borderColor:ce},[`&${le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ge=(0,qe.bk)(["Tag","preset"],le=>{const ze=Ve(le);return tt(ze)},We);function vt(le){return typeof le!="string"?le:le.charAt(0).toUpperCase()+le.slice(1)}const Ae=(le,ze,De)=>{const we=vt(De);return{[`${le.componentCls}${le.componentCls}-${ze}`]:{color:le[`color${De}`],background:le[`color${we}Bg`],borderColor:le[`color${we}Border`],[`&${le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var je=(0,qe.bk)(["Tag","status"],le=>{const ze=Ve(le);return[Ae(ze,"success","Success"),Ae(ze,"processing","Info"),Ae(ze,"error","Error"),Ae(ze,"warning","Warning")]},We),ht=function(le,ze){var De={};for(var we in le)Object.prototype.hasOwnProperty.call(le,we)&&ze.indexOf(we)<0&&(De[we]=le[we]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,we=Object.getOwnPropertySymbols(le);ut<we.length;ut++)ze.indexOf(we[ut])<0&&Object.prototype.propertyIsEnumerable.call(le,we[ut])&&(De[we[ut]]=le[we[ut]]);return De};const Fe=E.forwardRef((le,ze)=>{const{prefixCls:De,className:we,rootClassName:ut,style:me,children:ce,icon:_e,color:Et,onClose:pt,bordered:ve=!0,visible:Le}=le,Re=ht(le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:wt,direction:bt,tag:Bt}=E.useContext(Ie.E_),[Te,Ot]=E.useState(!0),lt=(0,et.Z)(Re,["closeIcon","closable"]);E.useEffect(()=>{Le!==void 0&&Ot(Le)},[Le]);const ae=(0,Se.o2)(Et),te=(0,Se.yT)(Et),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Et&&!ee?Et:void 0},Bt==null?void 0:Bt.style),me),ue=wt("tag",De),[ne,pe,ge]=ct(ue),Qe=ye()(ue,Bt==null?void 0:Bt.className,{[`${ue}-${Et}`]:ee,[`${ue}-has-color`]:Et&&!ee,[`${ue}-hidden`]:!Te,[`${ue}-rtl`]:bt==="rtl",[`${ue}-borderless`]:!ve},we,ut,pe,ge),Ce=Zt=>{Zt.stopPropagation(),pt==null||pt(Zt),!Zt.defaultPrevented&&Ot(!1)},[,Ke]=(0,Oe.Z)((0,Oe.w)(le),(0,Oe.w)(Bt),{closable:!1,closeIconRender:Zt=>{const $t=E.createElement("span",{className:`${ue}-close-icon`,onClick:Ce},Zt);return(0,Ee.wm)(Zt,$t,tn=>({onClick:Xt=>{var rn;(rn=tn==null?void 0:tn.onClick)===null||rn===void 0||rn.call(tn,Xt),Ce(Xt)},className:ye()(tn==null?void 0:tn.className,`${ue}-close-icon`)}))}}),ot=typeof Re.onClick=="function"||ce&&ce.type==="a",St=_e||null,gt=St?E.createElement(E.Fragment,null,St,ce&&E.createElement("span",null,ce)):ce,Wt=E.createElement("span",Object.assign({},lt,{ref:ze,className:Qe,style:oe}),gt,Ke,ae&&E.createElement(Ge,{key:"preset",prefixCls:ue}),te&&E.createElement(je,{key:"status",prefixCls:ue}));return ne(ot?E.createElement(Ze.Z,{component:"Tag"},Wt):Wt)});Fe.CheckableTag=ft;var $e=Fe},99498:function(nn,zt,re){(function(E){E(re(89780))})(function(E){E.defineOption("placeholder","",function(Ze,Ie,he){var Je=he&&he!=E.Init;if(Ie&&!Je)Ze.on("blur",Se),Ze.on("change",Oe),Ze.on("swapDoc",Oe),E.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){et(Ze)}),Oe(Ze);else if(!Ie&&Je){Ze.off("blur",Se),Ze.off("change",Oe),Ze.off("swapDoc",Oe),E.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),at(Ze);var xe=Ze.getWrapperElement();xe.className=xe.className.replace(" CodeMirror-empty","")}Ie&&!Ze.hasFocus()&&Se(Ze)});function at(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function ye(Ze){at(Ze);var Ie=Ze.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=Ze.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var he=Ze.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ie.appendChild(he),Ze.display.lineSpace.insertBefore(Ie,Ze.display.lineSpace.firstChild)}function et(Ze){setTimeout(function(){var Ie=!1,he=Ze.getInputField();he.nodeName=="TEXTAREA"?Ie=!he.value:Ze.lineCount()==1&&(Ie=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ie?ye(Ze):at(Ze)},20)}function Se(Ze){Ee(Ze)&&ye(Ze)}function Oe(Ze){var Ie=Ze.getWrapperElement(),he=Ee(Ze);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ye(Ze):at(Ze)}function Ee(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(nn,zt,re){(function(E){E(re(89780))})(function(E){var at={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ye=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Ne,Ve,We){We&&We!=E.Init&&(Ne.removeKeyMap(Se),Ne.state.closeBrackets=null),Ve&&(Oe(et(Ve,"pairs")),Ne.state.closeBrackets=Ve,Ne.addKeyMap(Se))});function et(Ne,Ve){return Ve=="pairs"&&typeof Ne=="string"?Ne:typeof Ne=="object"&&Ne[Ve]!=null?Ne[Ve]:at[Ve]}var Se={Backspace:Ie,Enter:he};function Oe(Ne){for(var Ve=0;Ve<Ne.length;Ve++){var We=Ne.charAt(Ve),ct="'"+We+"'";Se[ct]||(Se[ct]=Ee(We))}}Oe(at.pairs+"`");function Ee(Ne){return function(Ve){return xe(Ve,Ne)}}function Ze(Ne){var Ve=Ne.state.closeBrackets;if(!Ve||Ve.override)return Ve;var We=Ne.getModeAt(Ne.getCursor());return We.closeBrackets||Ve}function Ie(Ne){var Ve=Ze(Ne);if(!Ve||Ne.getOption("disableInput"))return E.Pass;for(var We=et(Ve,"pairs"),ct=Ne.listSelections(),Ct=0;Ct<ct.length;Ct++){if(!ct[Ct].empty())return E.Pass;var Dt=xt(Ne,ct[Ct].head);if(!Dt||We.indexOf(Dt)%2!=0)return E.Pass}for(var Ct=ct.length-1;Ct>=0;Ct--){var ft=ct[Ct].head;Ne.replaceRange("",ye(ft.line,ft.ch-1),ye(ft.line,ft.ch+1),"+delete")}}function he(Ne){var Ve=Ze(Ne),We=Ve&&et(Ve,"explode");if(!We||Ne.getOption("disableInput"))return E.Pass;for(var ct=Ne.listSelections(),Ct=0;Ct<ct.length;Ct++){if(!ct[Ct].empty())return E.Pass;var Dt=xt(Ne,ct[Ct].head);if(!Dt||We.indexOf(Dt)%2!=0)return E.Pass}Ne.operation(function(){var ft=Ne.lineSeparator()||`
|
|
|
`;Ne.replaceSelection(ft+ft,null),Ne.execCommand("goCharLeft"),ct=Ne.listSelections();for(var rt=0;rt<ct.length;rt++){var tt=ct[rt].head.line;Ne.indentLine(tt,null,!0),Ne.indentLine(tt+1,null,!0)}})}function Je(Ne){var Ve=E.cmpPos(Ne.anchor,Ne.head)>0;return{anchor:new ye(Ne.anchor.line,Ne.anchor.ch+(Ve?-1:1)),head:new ye(Ne.head.line,Ne.head.ch+(Ve?1:-1))}}function xe(Ne,Ve){var We=Ze(Ne);if(!We||Ne.getOption("disableInput"))return E.Pass;var ct=et(We,"pairs"),Ct=ct.indexOf(Ve);if(Ct==-1)return E.Pass;for(var Dt=et(We,"closeBefore"),ft=et(We,"triples"),rt=ct.charAt(Ct+1)==Ve,tt=Ne.listSelections(),Ge=Ct%2==0,vt,Ae=0;Ae<tt.length;Ae++){var je=tt[Ae],ht=je.head,ke,Fe=Ne.getRange(ht,ye(ht.line,ht.ch+1));if(Ge&&!je.empty())ke="surround";else if((rt||!Ge)&&Fe==Ve)rt&&qe(Ne,ht)?ke="both":ft.indexOf(Ve)>=0&&Ne.getRange(ht,ye(ht.line,ht.ch+3))==Ve+Ve+Ve?ke="skipThree":ke="skip";else if(rt&&ht.ch>1&&ft.indexOf(Ve)>=0&&Ne.getRange(ye(ht.line,ht.ch-2),ht)==Ve+Ve){if(ht.ch>2&&/\bstring/.test(Ne.getTokenTypeAt(ye(ht.line,ht.ch-2))))return E.Pass;ke="addFour"}else if(rt){var $e=ht.ch==0?" ":Ne.getRange(ye(ht.line,ht.ch-1),ht);if(!E.isWordChar(Fe)&&$e!=Ve&&!E.isWordChar($e))ke="both";else return E.Pass}else if(Ge&&(Fe.length===0||/\s/.test(Fe)||Dt.indexOf(Fe)>-1))ke="both";else return E.Pass;if(!vt)vt=ke;else if(vt!=ke)return E.Pass}var le=Ct%2?ct.charAt(Ct-1):Ve,ze=Ct%2?Ve:ct.charAt(Ct+1);Ne.operation(function(){if(vt=="skip")Ne.execCommand("goCharRight");else if(vt=="skipThree")for(var De=0;De<3;De++)Ne.execCommand("goCharRight");else if(vt=="surround"){for(var we=Ne.getSelections(),De=0;De<we.length;De++)we[De]=le+we[De]+ze;Ne.replaceSelections(we,"around"),we=Ne.listSelections().slice();for(var De=0;De<we.length;De++)we[De]=Je(we[De]);Ne.setSelections(we)}else vt=="both"?(Ne.replaceSelection(le+ze,null),Ne.triggerElectric(le+ze),Ne.execCommand("goCharLeft")):vt=="addFour"&&(Ne.replaceSelection(le+le+le+le,"before"),Ne.execCommand("goCharRight"))})}function xt(Ne,Ve){var We=Ne.getRange(ye(Ve.line,Ve.ch-1),ye(Ve.line,Ve.ch+1));return We.length==2?We:null}function qe(Ne,Ve){var We=Ne.getTokenAt(ye(Ve.line,Ve.ch+1));return/\bstring/.test(We.type)&&We.start==Ve.ch&&(Ve.ch==0||!/\bstring/.test(Ne.getTokenTypeAt(Ve)))}})},6313:function(nn,zt,re){(function(E){E(re(89780),re(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Ie,he,Je){if(Je!=E.Init&&Je&&Ie.removeKeyMap("autoCloseTags"),!!he){var xe={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(xe["'/'"]=function(xt){return Oe(xt)}),(typeof he!="object"||he.whenOpening!==!1)&&(xe["'>'"]=function(xt){return et(xt)}),Ie.addKeyMap(xe)}});var at=["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(Ie){if(Ie.getOption("disableInput"))return E.Pass;for(var he=Ie.listSelections(),Je=[],xe=Ie.getOption("autoCloseTags"),xt=0;xt<he.length;xt++){if(!he[xt].empty())return E.Pass;var qe=he[xt].head,Ne=Ie.getTokenAt(qe),Ve=E.innerMode(Ie.getMode(),Ne.state),We=Ve.state,ct=Ve.mode.xmlCurrentTag&&Ve.mode.xmlCurrentTag(We),Ct=ct&&ct.name;if(!Ct)return E.Pass;var Dt=Ve.mode.configuration=="html",ft=typeof xe=="object"&&xe.dontCloseTags||Dt&&at,rt=typeof xe=="object"&&xe.indentTags||Dt&&ye;Ne.end>qe.ch&&(Ct=Ct.slice(0,Ct.length-Ne.end+qe.ch));var tt=Ct.toLowerCase();if(!Ct||Ne.type=="string"&&(Ne.end!=qe.ch||!/[\"\']/.test(Ne.string.charAt(Ne.string.length-1))||Ne.string.length==1)||Ne.type=="tag"&&ct.close||Ne.string.indexOf("/")==qe.ch-Ne.start-1||ft&&Ee(ft,tt)>-1||Ze(Ie,Ve.mode.xmlCurrentContext&&Ve.mode.xmlCurrentContext(We)||[],Ct,qe,!0))return E.Pass;var Ge=typeof xe=="object"&&xe.emptyTags;if(Ge&&Ee(Ge,Ct)>-1){Je[xt]={text:"/>",newPos:E.Pos(qe.line,qe.ch+2)};continue}var vt=rt&&Ee(rt,tt)>-1;Je[xt]={indent:vt,text:">"+(vt?`
|
|
|
|
|
|
`:"")+"</"+Ct+">",newPos:vt?E.Pos(qe.line+1,0):E.Pos(qe.line,qe.ch+1)}}for(var Ae=typeof xe=="object"&&xe.dontIndentOnAutoClose,xt=he.length-1;xt>=0;xt--){var je=Je[xt];Ie.replaceRange(je.text,he[xt].head,he[xt].anchor,"+insert");var ht=Ie.listSelections().slice(0);ht[xt]={head:je.newPos,anchor:je.newPos},Ie.setSelections(ht),!Ae&&je.indent&&(Ie.indentLine(je.newPos.line,null,!0),Ie.indentLine(je.newPos.line+1,null,!0))}}function Se(Ie,he){for(var Je=Ie.listSelections(),xe=[],xt=he?"/":"</",qe=Ie.getOption("autoCloseTags"),Ne=typeof qe=="object"&&qe.dontIndentOnSlash,Ve=0;Ve<Je.length;Ve++){if(!Je[Ve].empty())return E.Pass;var We=Je[Ve].head,ct=Ie.getTokenAt(We),Ct=E.innerMode(Ie.getMode(),ct.state),Dt=Ct.state;if(he&&(ct.type=="string"||ct.string.charAt(0)!="<"||ct.start!=We.ch-1))return E.Pass;var ft,rt=Ct.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(rt&&Ct.mode.name=="javascript")ft=xt+"script";else if(rt&&Ct.mode.name=="css")ft=xt+"style";else{var tt=Ct.mode.xmlCurrentContext&&Ct.mode.xmlCurrentContext(Dt);if(!tt||tt.length&&Ze(Ie,tt,tt[tt.length-1],We))return E.Pass;ft=xt+tt[tt.length-1]}Ie.getLine(We.line).charAt(ct.end)!=">"&&(ft+=">"),xe[Ve]=ft}if(Ie.replaceSelections(xe),Je=Ie.listSelections(),!Ne)for(var Ve=0;Ve<Je.length;Ve++)(Ve==Je.length-1||Je[Ve].head.line<Je[Ve+1].head.line)&&Ie.indentLine(Je[Ve].head.line)}function Oe(Ie){return Ie.getOption("disableInput")?E.Pass:Se(Ie,!0)}E.commands.closeTag=function(Ie){return Se(Ie)};function Ee(Ie,he){if(Ie.indexOf)return Ie.indexOf(he);for(var Je=0,xe=Ie.length;Je<xe;++Je)if(Ie[Je]==he)return Je;return-1}function Ze(Ie,he,Je,xe,xt){if(!E.scanForClosingTag)return!1;var qe=Math.min(Ie.lastLine()+1,xe.line+500),Ne=E.scanForClosingTag(Ie,xe,null,qe);if(!Ne||Ne.tag!=Je)return!1;for(var Ve=xt?1:0,We=he.length-1;We>=0&&he[We]==Je;We--)++Ve;xe=Ne.to;for(var We=1;We<Ve;We++){var ct=E.scanForClosingTag(Ie,xe,null,qe);if(!ct||ct.tag!=Je)return!1;xe=ct.to}return!0}})},32855:function(nn,zt,re){(function(E){E(re(89780))})(function(E){"use strict";var at=E.Pos;function ye(We,ct){return We.line-ct.line||We.ch-ct.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",Oe=new RegExp("<(/?)(["+et+"]["+Se+"]*)","g");function Ee(We,ct,Ct,Dt){this.line=ct,this.ch=Ct,this.cm=We,this.text=We.getLine(ct),this.min=Dt?Math.max(Dt.from,We.firstLine()):We.firstLine(),this.max=Dt?Math.min(Dt.to-1,We.lastLine()):We.lastLine()}function Ze(We,ct){var Ct=We.cm.getTokenTypeAt(at(We.line,ct));return Ct&&/\btag\b/.test(Ct)}function Ie(We){if(!(We.line>=We.max))return We.ch=0,We.text=We.cm.getLine(++We.line),!0}function he(We){if(!(We.line<=We.min))return We.text=We.cm.getLine(--We.line),We.ch=We.text.length,!0}function Je(We){for(;;){var ct=We.text.indexOf(">",We.ch);if(ct==-1){if(Ie(We))continue;return}if(!Ze(We,ct+1)){We.ch=ct+1;continue}var Ct=We.text.lastIndexOf("/",ct),Dt=Ct>-1&&!/\S/.test(We.text.slice(Ct+1,ct));return We.ch=ct+1,Dt?"selfClose":"regular"}}function xe(We){for(;;){var ct=We.ch?We.text.lastIndexOf("<",We.ch-1):-1;if(ct==-1){if(he(We))continue;return}if(!Ze(We,ct+1)){We.ch=ct;continue}Oe.lastIndex=ct,We.ch=ct;var Ct=Oe.exec(We.text);if(Ct&&Ct.index==ct)return Ct}}function xt(We){for(;;){Oe.lastIndex=We.ch;var ct=Oe.exec(We.text);if(!ct){if(Ie(We))continue;return}if(!Ze(We,ct.index+1)){We.ch=ct.index+1;continue}return We.ch=ct.index+ct[0].length,ct}}function qe(We){for(;;){var ct=We.ch?We.text.lastIndexOf(">",We.ch-1):-1;if(ct==-1){if(he(We))continue;return}if(!Ze(We,ct+1)){We.ch=ct;continue}var Ct=We.text.lastIndexOf("/",ct),Dt=Ct>-1&&!/\S/.test(We.text.slice(Ct+1,ct));return We.ch=ct+1,Dt?"selfClose":"regular"}}function Ne(We,ct){for(var Ct=[];;){var Dt=xt(We),ft,rt=We.line,tt=We.ch-(Dt?Dt[0].length:0);if(!Dt||!(ft=Je(We)))return;if(ft!="selfClose")if(Dt[1]){for(var Ge=Ct.length-1;Ge>=0;--Ge)if(Ct[Ge]==Dt[2]){Ct.length=Ge;break}if(Ge<0&&(!ct||ct==Dt[2]))return{tag:Dt[2],from:at(rt,tt),to:at(We.line,We.ch)}}else Ct.push(Dt[2])}}function Ve(We,ct){for(var Ct=[];;){var Dt=qe(We);if(!Dt)return;if(Dt=="selfClose"){xe(We);continue}var ft=We.line,rt=We.ch,tt=xe(We);if(!tt)return;if(tt[1])Ct.push(tt[2]);else{for(var Ge=Ct.length-1;Ge>=0;--Ge)if(Ct[Ge]==tt[2]){Ct.length=Ge;break}if(Ge<0&&(!ct||ct==tt[2]))return{tag:tt[2],from:at(We.line,We.ch),to:at(ft,rt)}}}}E.registerHelper("fold","xml",function(We,ct){for(var Ct=new Ee(We,ct.line,0);;){var Dt=xt(Ct);if(!Dt||Ct.line!=ct.line)return;var ft=Je(Ct);if(!ft)return;if(!Dt[1]&&ft!="selfClose"){var rt=at(Ct.line,Ct.ch),tt=Ne(Ct,Dt[2]);return tt&&ye(tt.from,rt)>0?{from:rt,to:tt.from}:null}}}),E.findMatchingTag=function(We,ct,Ct){var Dt=new Ee(We,ct.line,ct.ch,Ct);if(!(Dt.text.indexOf(">")==-1&&Dt.text.indexOf("<")==-1)){var ft=Je(Dt),rt=ft&&at(Dt.line,Dt.ch),tt=ft&&xe(Dt);if(!(!ft||!tt||ye(Dt,ct)>0)){var Ge={from:at(Dt.line,Dt.ch),to:rt,tag:tt[2]};return ft=="selfClose"?{open:Ge,close:null,at:"open"}:tt[1]?{open:Ve(Dt,tt[2]),close:Ge,at:"close"}:(Dt=new Ee(We,rt.line,rt.ch,Ct),{open:Ge,close:Ne(Dt,tt[2]),at:"open"})}}},E.findEnclosingTag=function(We,ct,Ct,Dt){for(var ft=new Ee(We,ct.line,ct.ch,Ct);;){var rt=Ve(ft,Dt);if(!rt)break;var tt=new Ee(We,ct.line,ct.ch,Ct),Ge=Ne(tt,rt.tag);if(Ge)return{open:rt,close:Ge}}},E.scanForClosingTag=function(We,ct,Ct,Dt){var ft=new Ee(We,ct.line,ct.ch,Dt?{from:0,to:Dt}:null);return Ne(ft,Ct)}})},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),at=/MSIE \d/.test(zt),ye=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zt),et=/Edge\/(\d+)/.exec(zt),Se=at||ye||et,Oe=Se&&(at?document.documentMode||6:+(et||ye)[1]),Ee=!et&&/WebKit\//.test(zt),Ze=Ee&&/Qt\/\d+\.\d+/.test(zt),Ie=!et&&/Chrome\//.test(zt),he=/Opera\//.test(zt),Je=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zt),xt=/PhantomJS/.test(zt),qe=!et&&/AppleWebKit/.test(zt)&&/Mobile\/\w+/.test(zt),Ne=/Android/.test(zt),Ve=qe||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zt),We=qe||/Mac/.test(re),ct=/\bCrOS\b/.test(zt),Ct=/win/i.test(re),Dt=he&&zt.match(/Version\/(\d*\.\d*)/);Dt&&(Dt=Number(Dt[1])),Dt&&Dt>=15&&(he=!1,Ee=!0);var ft=We&&(Ze||he&&(Dt==null||Dt<12.11)),rt=E||Se&&Oe>=9;function tt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ge=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 vt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ae(a,y){return vt(a).appendChild(y)}function je(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=je(a,y,x,b);return z.setAttribute("role","presentation"),z}var ke;document.createRange?ke=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:ke=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 Fe(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 le(a,y){var x=a.className;tt(y).test(x)||(a.className+=(x?" ":"")+y)}function ze(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 ut(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,se=z||0;;){var de=a.indexOf(" ",ie);if(de<0||de>=y)return se+(y-ie);se+=de-ie,se+=x-se%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 _e(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Et=50,pt={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},Le={origin:"*mouse"},Re={origin:"+move"};function wt(a,y,x){for(var b=0,z=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var se=ie-b;if(ie==a.length||z+se>=y)return b+Math.min(se,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var bt=[""];function Bt(a){for(;bt.length<=a;)bt.push(Te(bt)+" ");return bt[a]}function Te(a){return a[a.length-1]}function Ot(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function lt(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&&ut(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 Qe(a,y,x){for(;(x<0?y>0:y<a.length)&&ge(a.charAt(y));)y+=x;return y}function Ce(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 Ke(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var se=a[ie];(se.from<x&&se.to>y||y==x&&se.to==y)&&(b(Math.max(se.from,y),Math.min(se.to,x),se.level==1?"rtl":"ltr",ie),z=!0)}z||b(y,x,"ltr")}var ot=null;function St(a,y,x){var b;ot=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:ot=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:ot=z)}return b!=null?b:ot}var gt=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]/,se=/[Lb1n]/,de=/[1n]/;function fe(be,it,mt){this.level=be,this.from=it,this.to=mt}return function(be,it){var mt=it=="ltr"?"L":"R";if(be.length==0||it=="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=mt;On<jt;++On){var $n=_t[On];$n=="m"?_t[On]=Ln:Ln=$n}for(var Vn=0,zn=mt;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=mt;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]:mt)=="L",Pi=(ei<jt?_t[ei]:mt)=="L",Vo=Kr==Pi?Kr?"L":"R":mt,bo=ii;bo<ei;++bo)_t[bo]=Vo;ii=ei-1}for(var pi=[],eo,si=0;si<jt;)if(se.test(_t[si])){var bl=si;for(++si;si<jt&&se.test(_t[si]);++si);pi.push(new fe(0,bl,si))}else{var oo=si,ko=pi.length,Mo=it=="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 it=="ltr"&&(pi[0].level==1&&(eo=be.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new fe(0,0,eo[0].length))),Te(pi).level==1&&(eo=be.match(/\s+$/))&&(Te(pi).to-=eo[0].length,pi.push(new fe(0,jt-eo[0].length,jt)))),it=="rtl"?pi.reverse():pi}}();function Wt(a,y){var x=a.order;return x==null&&(x=a.order=gt(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=_e(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 kt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),rn(a,x||y.type,a,y),Ht(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)_e(x,y[b])==-1&&x.push(y[b])}function Vt(a,y){return tn(a,y).length>0}function He(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 Ht(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Be(a){dt(a),Nt(a)}function nt(a){return a.target||a.srcElement}function yt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),We&&a.ctrlKey&&y==1&&(y=3),y}var Mt=function(){if(Se&&Oe<9)return!1;var a=je("div");return"draggable"in a||"dragDrop"in a}(),Ut;function ln(a){if(Ut==null){var y=je("span","\u200B");Ae(a,je("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Ut=y.offsetWidth<=1&&y.offsetHeight>2&&!(Se&&Oe<8))}var x=Ut?je("span","\u200B"):je("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=Ae(a,document.createTextNode("A\u062EA")),x=ke(y,0,1).getBoundingClientRect(),b=ke(y,1,2).getBoundingClientRect();return vt(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),se=ie.indexOf("\r");se!=-1?(x.push(ie.slice(0,se)),y+=se+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=je("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Gt=null;function At(a){if(Gt!=null)return Gt;var y=Ae(a,je("span","x")),x=y.getBoundingClientRect(),b=ke(y,0,1).getBoundingClientRect();return Gt=Math.abs(x.left-b.left)>1}var Rt={},It={};function en(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Rt[a]=y}function Jt(a,y){It[a]=y}function qt(a){if(typeof a=="string"&&It.hasOwnProperty(a))a=It[a];else if(a&&typeof a.name=="string"&&It.hasOwnProperty(a.name)){var y=It[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 se in y.modeProps)b[se]=y.modeProps[se];return b}var wn={};function Sn(a,y){var x=wn.hasOwnProperty(a)?wn[a]:wn[a]={};ut(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(se){return x?se.toLowerCase():se},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 Tt(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 se=ie.text;z==x.line&&(se=se.slice(0,x.ch)),z==y.line&&(se=se.slice(y.ch)),b.push(se),++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 Ue(a){if(a.parent==null)return null;for(var y=a.parent,x=_e(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 se=0;se<a.lines.length;++se){var de=a.lines[se],fe=de.height;if(y<fe)break;y-=fe}return x+se}function Pe(a,y){return y>=a.first&&y<a.first+a.size}function Xe(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 Ye(a,y){return a.line-y.line||a.ch-y.ch}function Pt(a,y){return a.sticky==y.sticky&&Ye(a,y)==0}function an(a){return Me(a.line,a.ch)}function un(a,y){return Ye(a,y)<0?y:a}function vn(a,y){return Ye(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,Tt(a,x).text.length):Lt(y,Tt(a,y.line).text.length)}function Lt(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,it){return z.push(be,it)},ie,b);for(var se=x.state,de=function(be){x.baseTokens=z;var it=a.state.overlays[be],mt=1,jt=0;x.state=!0,qn(a,y.text,it.mode,x,function(_t,cn){for(var On=mt;jt<_t;){var Ln=z[mt];Ln>_t&&z.splice(mt,1,_t,z[mt+1],Ln),mt+=2,jt=Math.min(_t,Ln)}if(cn)if(it.opaque)z.splice(On,mt-On,_t,"overlay "+cn),mt=On+2;else for(;On<mt;On+=2){var $n=z[On+1];z[On+1]=($n?$n+" ":"")+"overlay "+cn}},ie),x.state=se,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,Ue(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),se=ie>b.first&&Tt(b,ie-1).stateAfter,de=se?Dn.fromSaved(b,se,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,se;y=Ft(z,y);var de=Tt(z,y.line),fe=Qn(a,y.line,x),be=new An(de.text,a.options.tabSize,fe),it;for(b&&(it=[]);(b||be.pos<y.ch)&&!be.eol();)be.start=be.pos,se=Fn(ie,be,fe.state),b&&it.push(new Hn(be,se,Mn(z.mode,fe.state)));return b?it:new Hn(be,se,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,se){var de=x.flattenSpans;de==null&&(de=a.options.flattenSpans);var fe=0,be=null,it=new An(y,a.options.tabSize,b),mt,jt=a.options.addModeClass&&[null];for(y==""&&ur(Zn(x,b.state),ie);!it.eol();){if(it.pos>a.options.maxHighlightLength?(de=!1,se&&Jn(a,y,b,it.pos),it.pos=y.length,mt=null):mt=ur(Fn(x,it,b.state,jt),ie),jt){var _t=jt[0].name;_t&&(mt="m-"+(mt?_t+" "+mt:_t))}if(!de||be!=mt){for(;fe<it.start;)fe=Math.min(it.start,fe+5e3),z(fe,be);be=mt}it.start=it.pos}for(;fe<it.pos;){var cn=Math.min(it.pos,fe+5e3);z(cn,be),fe=cn}}function lr(a,y,x){for(var b,z,ie=a.doc,se=x?-1:y-(a.doc.mode.innerMode?1e3:100),de=y;de>se;--de){if(de<=ie.first)return ie.first;var fe=Tt(ie,de-1),be=fe.stateAfter;if(be&&(!x||de+(be instanceof Tn?be.lookAhead:0)<=ie.modeFrontier))return de;var it=me(fe.text,null,a.options.tabSize);(z==null||b>it)&&(z=de-1,b=it)}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=Tt(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],se=ie.marker,de=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);if(de||ie.from==y&&se.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var fe=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new cr(se,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],se=ie.marker,de=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);if(de||ie.from==y&&se.type=="bookmark"&&(!x||ie.marker.insertLeft)){var fe=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new cr(se,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=Pe(a,y.from.line)&&Tt(a,y.from.line).markedSpans,b=Pe(a,y.to.line)&&Tt(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,ie=y.to.ch,se=Ye(y.from,y.to)==0,de=dr(x,z,se),fe=Gn(b,ie,se),be=y.text.length==1,it=Te(y.text).length+(be?z:0);if(de)for(var mt=0;mt<de.length;++mt){var jt=de[mt];if(jt.to==null){var _t=vr(fe,jt.marker);_t?be&&(jt.to=_t.to==null?null:_t.to+it):jt.to=z}}if(fe)for(var cn=0;cn<fe.length;++cn){var On=fe[cn];if(On.to!=null&&(On.to+=it),On.from==null){var Ln=vr(de,On.marker);Ln||(On.from=it,be&&(de||(de=[])).push(On))}else On.from+=it,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||_e(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 se=b[ie],de=se.find(0),fe=0;fe<z.length;++fe){var be=z[fe];if(!(Ye(be.to,de.from)<0||Ye(be.from,de.to)>0)){var it=[fe,1],mt=Ye(be.from,de.from),jt=Ye(be.to,de.to);(mt<0||!se.inclusiveLeft&&!mt)&&it.push({from:be.from,to:de.from}),(jt>0||!se.inclusiveRight&&!jt)&&it.push({from:de.to,to:be.to}),z.splice.apply(z,it),fe+=it.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=Ye(b.from,z.from)||Ir(a)-Ir(y);if(ie)return-ie;var se=Ye(b.to,z.to)||Dr(a)-Dr(y);return se||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=Tt(a,y),se=tr&&ie.markedSpans;if(se)for(var de=0;de<se.length;++de){var fe=se[de];if(fe.marker.collapsed){var be=fe.marker.find(0),it=Ye(be.from,x)||Ir(fe.marker)-Ir(z),mt=Ye(be.to,b)||Dr(fe.marker)-Dr(z);if(!(it>=0&&mt<=0||it<=0&&mt>=0)&&(it<=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Ye(be.to,x)>=0:Ye(be.to,x)>0)||it>=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Ye(be.from,b)<=0:Ye(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=Tt(a,y),b=sn(x);return x==b?y:Ue(b)}function yn(a,y){if(y>a.lastLine())return y;var x=Tt(a,y),b;if(!Nn(a,x))return y;for(;b=pn(x);)x=b.find(1,!0).line;return Ue(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 se=0;se<ie.children.length;++se){var de=ie.children[se];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=Tt(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 Ue(this)},He(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,Ee?"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,se=void 0;b.pos=0,b.addToken=Fi,Pn(a.display.measure)&&(se=Wt(ie,a.doc.direction))&&(b.addToken=mi(b.addToken,se)),b.map=[];var de=y!=a.display.externalMeasured&&Ue(ie);Lr(ie,b,Xn(a,ie,de)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=ze(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=ze(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(Ee){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=ze(b.pre.className,b.textClass||"")),b}function Oi(a){var y=je("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,z,ie,se){if(y){var de=a.splitSpaces?xi(y,a.trailingSpace):y,fe=a.cm.state.specialChars,be=!1,it;if(!fe.test(y))a.col+=y.length,it=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,it),Se&&Oe<9&&(be=!0),a.pos+=y.length;else{it=document.createDocumentFragment();for(var mt=0;;){fe.lastIndex=mt;var jt=fe.exec(y),_t=jt?jt.index-mt:y.length-mt;if(_t){var cn=document.createTextNode(de.slice(mt,mt+_t));Se&&Oe<9?it.appendChild(je("span",[cn])):it.appendChild(cn),a.map.push(a.pos,a.pos+_t,cn),a.col+=_t,a.pos+=_t}if(!jt)break;mt+=_t+1;var On=void 0;if(jt[0]==" "){var Ln=a.cm.options.tabSize,$n=Ln-a.col%Ln;On=it.appendChild(je("span",Bt($n),"cm-tab")),On.setAttribute("role","presentation"),On.setAttribute("cm-text"," "),a.col+=$n}else jt[0]=="\r"||jt[0]==`
|
|
|
`?(On=it.appendChild(je("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&&Oe<9?it.appendChild(je("span",[On])):it.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||se){var Vn=x||"";b&&(Vn+=b),z&&(Vn+=z);var zn=je("span",[it],Vn,ie);if(se)for(var Kn in se)se.hasOwnProperty(Kn)&&Kn!="style"&&Kn!="class"&&zn.setAttribute(Kn,se[Kn]);return a.content.appendChild(zn)}a.content.appendChild(it)}}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,se,de,fe){z=z?z+" cm-force-border":"cm-force-border";for(var be=x.pos,it=be+b.length;;){for(var mt=void 0,jt=0;jt<y.length&&(mt=y[jt],!(mt.to>be&&mt.from<=be));jt++);if(mt.to>=it)return a(x,b,z,ie,se,de,fe);a(x,b.slice(0,mt.to-be),z,ie,null,de,fe),ie=null,b=b.slice(mt.to-be),be=mt.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 se=1;se<x.length;se+=2)y.addToken(y,z.slice(ie,ie=x[se]),Zr(x[se+1],y.cm.options));return}for(var de=z.length,fe=0,be=1,it="",mt,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(it){var Ei=fe+it.length;if(!$n){var qr=Ei>Ti?it.slice(0,Ti-fe):it;y.addToken(y,qr,mt?mt+cn:cn,Ln,fe+qr.length==_t?On:"",jt,Vn)}if(Ei>=Ti){it=it.slice(Ti-fe),fe=Ti;break}fe=Ei,Ln=""}it=z.slice(ie,ie=x[be++]),mt=Zr(x[be++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=jn(y),this.size=this.rest?Ue(Te(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 se=new to(a.doc,Tt(a.doc,ie),ie);z=ie+se.size,b.push(se)}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)})},se=0;se<x.length;++se)ie(se)}}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=je("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Se&&Oe<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(je("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):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=je("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var se=Wi(y),de=y.gutter=je("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(de),se.insertBefore(de,y.text),y.line.gutterClass&&(de.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=de.appendChild(je("div",Xe(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,it=ie.hasOwnProperty(be)&&ie[be];it&&de.appendChild(je("div",[it],"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),se=0,de=y.widgets;se<de.length;++se){var fe=de[se],be=je("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(!Fe(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;"),Ae(y.display.measure,je("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=nt(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=Ae(a.measure,je("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function ki(a){return Et-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 se=y.text.firstChild.getClientRects(),de=0;de<se.length-1;de++){var fe=se[de],be=se[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(Ue(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=Ue(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,Ae(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=Ue(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||""),se;return y.cache.hasOwnProperty(ie)?se=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Zi(a,y.view,y.rect),y.hasHeights=!0),se=Ca(a,y,x,b),se.bogus||(y.cache[ie]=se)),{left:se.left,right:se.right,top:z?se.rtop:se.top,bottom:z?se.rbottom:se.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,z,ie,se,de,fe,be=0;be<a.length;be+=3)if(de=a[be],fe=a[be+1],y<de?(z=0,ie=1,se="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&&(se="right")),z!=null){if(b=a[be+2],de==fe&&x==(b.insertLeft?"left":"right")&&(se=x),x=="left"&&z==0)for(;be&&a[be-2]==a[be-3]&&a[be-1].insertLeft;)b=a[(be-=3)+2],se="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],se="right";break}return{node:b,start:z,end:ie,collapse:se,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,se=z.start,de=z.end,fe=z.collapse,be;if(ie.nodeType==3){for(var it=0;it<4;it++){for(;se&&ge(y.line.text.charAt(z.coverStart+se));)--se;for(;z.coverStart+de<z.coverEnd&&ge(y.line.text.charAt(z.coverStart+de));)++de;if(Se&&Oe<9&&se==0&&de==z.coverEnd-z.coverStart?be=ie.parentNode.getBoundingClientRect():be=Va(ke(ie,se,de).getClientRects(),b),be.left||be.right||se==0)break;de=se,se=se-1,fe="right"}Se&&Oe<11&&(be=Ga(a.display.measure,be))}else{se>0&&(fe=b="right");var mt;a.options.lineWrapping&&(mt=ie.getClientRects()).length>1?be=mt[b=="right"?mt.length-1:0]:be=ie.getBoundingClientRect()}if(Se&&Oe<9&&!se&&(!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||!At(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,vt(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 Ie&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Ie&&Ne?-(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 se=rr(y);if(b=="local"?se+=Xr(a.display):se-=a.display.viewOffset,b=="page"||b=="window"){var de=a.display.lineSpace.getBoundingClientRect();se+=de.top+(b=="window"?0:Sa());var fe=de.left+(b=="window"?0:Xo());x.left+=fe,x.right+=fe}return x.top+=se,x.bottom+=se,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 se=a.display.lineSpace.getBoundingClientRect();return{left:b-se.left,top:z-se.top}}function To(a,y,x,b,z){return b||(b=Tt(a.doc,y.line)),Bo(a,b,ya(a,b,y.ch,z),x)}function Ci(a,y,x,b,z,ie){b=b||Tt(a.doc,y.line),z||(z=uo(a,b));function se(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=Wt(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 se(be=="before"?fe-1:fe,be=="before");function it(cn,On,Ln){var $n=de[On],Vn=$n.level==1;return se(Ln?cn-1:cn,Vn!=Ln)}var mt=St(de,fe,be),jt=ot,_t=it(fe,mt,be=="before");return jt!=null&&(_t.other=it(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=Tt(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,Tt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var se=Tt(b,z);;){var de=Vi(a,se,z,y,x),fe=En(se,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;se=Tt(b,z=be.line)}}function fi(a,y,x,b){b-=Yo(y);var z=y.text.length,ie=Ce(function(se){return zi(a,x,se-1).bottom<=b},z,0);return z=Ce(function(se){return zi(a,x,se).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),se=Yo(y),de=0,fe=y.text.length,be=!0,it=Wt(y,a.doc.direction);if(it){var mt=(a.options.lineWrapping?ro:Hi)(a,y,x,ie,it,b,z);be=mt.level!=1,de=be?mt.from:mt.to-1,fe=be?mt.to:mt.from-1}var jt=null,_t=null,cn=Ce(function(sr){var nr=zi(a,ie,sr);return nr.top+=se,nr.bottom+=se,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+se<=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=Qe(y.text,cn,1),xr(x,cn,Ln,$n,b-On)}function Hi(a,y,x,b,z,ie,se){var de=Ce(function(mt){var jt=z[mt],_t=jt.level!=1;return ri(Ci(a,Me(x,_t?jt.to:jt.from,_t?"before":"after"),"line",y,b),ie,se,!0)},0,z.length-1),fe=z[de];if(de>0){var be=fe.level!=1,it=Ci(a,Me(x,be?fe.from:fe.to,be?"after":"before"),"line",y,b);ri(it,ie,se,!0)&&it.top>se&&(fe=z[de-1])}return fe}function ro(a,y,x,b,z,ie,se){var de=fi(a,y,b,se),fe=de.begin,be=de.end;/\s/.test(y.text.charAt(be-1))&&be--;for(var it=null,mt=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;(!it||mt>Ln)&&(it=_t,mt=Ln)}}return it||(it=z[z.length-1]),it.from<fe&&(it={from:fe,to:it.to,level:it.level}),it.to>be&&(it={from:it.from,to:be,level:it.level}),it}var Mi;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Mi==null){Mi=je("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Mi.appendChild(document.createTextNode("x")),Mi.appendChild(je("br"));Mi.appendChild(document.createTextNode("x"))}Ae(a.measure,Mi);var x=Mi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),vt(a.measure),x||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=je("span","xxxxxxxxxx"),x=je("pre",[y],"CodeMirror-line-like");Ae(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,se=0;ie;ie=ie.nextSibling,++se){var de=a.display.gutterSpecs[se].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 se=0;se<z.widgets.length;se++)z.widgets[se].height&&(ie+=z.widgets[se].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&&nt(y).getAttribute("cm-not-content")=="true")return null;var ie,se,de=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-de.left,se=y.clientY-de.top}catch(mt){return null}var fe=ci(a,ie,se),be;if(b&&fe.xRel>0&&(be=Tt(a.doc,fe.line).text).length==fe.ch){var it=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))-it))}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 se=Ea(a,y,y,-1);se?(z.view=z.view.slice(0,se.index),z.viewTo=se.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 se=ie.changes||(ie.changes=[]);_e(se,x)==-1&&se.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,se=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+=se[fe].size;if(de!=y){if(b>0){if(z==se.length-1)return null;ie=de+se[z].size-y,z++}else ie=de-y;y+=ie,x+=ie}for(;mn(a.doc,x)!=x;){if(z==(b<0?0:se.length-1))return null;x+=b*se[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(),se=0;se<x.sel.ranges.length;se++)if(!(!y&&se==x.sel.primIndex)){var de=x.sel.ranges[se];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(je("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(je("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(),se=Qi(a.display),de=se.left,fe=Math.max(b.sizerWidth,Ji(a)-b.sizer.offsetLeft)-se.right,be=z.direction=="ltr";function it(zn,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),ie.appendChild(je("div",null,"CodeMirror-selected","position: absolute; left: "+zn+`px;
|
|
|
top: `+Kn+"px; width: "+(sr==null?fe-zn:sr)+`px;
|
|
|
height: `+(nr-Kn)+"px"))}function mt(zn,Kn,sr){var nr=Tt(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=Wt(nr,z.direction);return Ke(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;it(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),it(Mo,Kr.top,bi-Mo,Kr.bottom),Kr.bottom<Pi.top&&it(de,Kr.bottom,null,Pi.top),it(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)mt(jt.line,jt.ch,_t.ch);else{var cn=Tt(z,jt.line),On=Tt(z,_t.line),Ln=sn(cn)==sn(On),$n=mt(jt.line,jt.ch,Ln?cn.text.length+1:null).end,Vn=mt(_t.line,Ln?0:null,_t.ch).start;Ln&&($n.top<Vn.top-2?(it($n.right,$n.top,null,$n.bottom),it(de,Vn.top,Vn.left,Vn.bottom)):it($n.right,$n.top,Vn.left-$n.right,$n.bottom)),$n.bottom<Vn.top&&it(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,le(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ee&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Lo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(rn(a,"blur",a,y),a.state.focused=!1,Ge(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,se=void 0,de=0;if(!z.hidden){if(Se&&Oe<8){var fe=z.node.offsetTop+z.node.offsetHeight;se=fe-x,x=fe}else{var be=z.node.getBoundingClientRect();se=be.bottom-be.top,!ie&&z.text.firstChild&&(de=z.text.firstChild.getBoundingClientRect().right-be.left-1)}var it=z.line.height-se;if((it>.005||it<-.005)&&(hn(z.line,se),Ol(z.line),z.rest))for(var mt=0;mt<z.rest.length;mt++)Ol(z.rest[mt]);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),se=st(y,z);if(x&&x.ensure){var de=x.ensure.from.line,fe=x.ensure.to.line;de<ie?(ie=de,se=st(y,rr(Tt(y,de))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=se&&(ie=st(y,rr(Tt(y,fe))-a.wrapper.clientHeight),se=fe)}return{from:ie,to:Math.max(se,ie+1)}}function Hs(a,y){if(!kt(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&&!xt){var ie=je("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 se=!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),it=a.doc.scrollTop,mt=a.doc.scrollLeft;if(be.scrollTop!=null&&(qo(a,be.scrollTop),Math.abs(a.doc.scrollTop-it)>1&&(se=!0)),be.scrollLeft!=null&&(Eo(a,be.scrollLeft),Math.abs(a.doc.scrollLeft-mt)>1&&(se=!0)),!se)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),se={};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)se.scrollTop=fe?0:y.top;else if(y.bottom>z+ie){var it=Math.min(y.top,(be?de:y.bottom)-ie);it!=z&&(se.scrollTop=it)}var mt=a.options.fixedGutter?0:x.gutters.offsetWidth,jt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-mt,_t=Ji(a)-x.gutters.offsetWidth,cn=y.right-y.left>_t;return cn&&(y.right=y.left+_t),y.left<10?se.scrollLeft=0:y.left<jt?se.scrollLeft=Math.max(0,y.left+mt-(cn?0:10)):y.right>_t+jt-3&&(se.scrollLeft=y.right+(cn?0:10)-_t),se}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=je("div",[je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=je("div",[je("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&&Oe<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=We&&!xe?"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&&Ge(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&&le(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 se=0;se<y.length;se++)Qs(y[se])}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,se=a.maybeUnhiddenMarkers;if(ie)for(var de=0;de<ie.length;++de)ie[de].lines.length||rn(ie[de],"hide");if(se)for(var fe=0;fe<se.length;++fe)se[fe].lines.length&&rn(se[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 se=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,it=fe.classes;it?ie.styleClasses=it:be&&(ie.styleClasses=null);for(var mt=!se||se.length!=ie.styles.length||be!=it&&(!be||!it||be.bgClass!=it.bgClass||be.textClass!=it.textClass),jt=0;!mt&&jt<se.length;++jt)mt=se[jt]!=ie.styles[jt];mt&&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||!Fe(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Fe(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&&Fe(document.body,a.anchorNode)&&Fe(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),se=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>se&&x.viewTo-se<20&&(se=Math.min(z,x.viewTo)),tr&&(ie=mn(a.doc,ie),se=yn(a.doc,se));var de=ie!=x.viewFrom||se!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;$s(a,ie,se),x.viewOffset=rr(Tt(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),vt(x.cursorDiv),vt(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,se=ie.firstChild;function de(cn){var On=cn.nextSibling;return Ee&&We&&a.display.currentWheelTarget==cn?cn.style.display="none":cn.parentNode.removeChild(cn),On}for(var fe=b.view,be=b.viewFrom,it=0;it<fe.length;it++){var mt=fe[it];if(!mt.hidden)if(!mt.node||mt.node.parentNode!=ie){var jt=pr(a,mt,be,x);ie.insertBefore(jt,se)}else{for(;se!=mt.node;)se=de(se);var _t=z&&y!=null&&y<=be&&mt.lineNumber;mt.changes&&(_e(mt.changes,"gutter")>-1&&(_t=!1),lo(a,mt,be,x)),_t&&(vt(mt.lineNumber),mt.lineNumber.appendChild(document.createTextNode(Xe(a.options,be)))),se=mt.node.nextSibling}be+=mt.size}for(;se;)se=de(se)}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",se=0;se<x.length;se++)if(!x[se].hidden){a.options.fixedGutter&&(x[se].gutter&&(x[se].gutter.style.left=ie),x[se].gutterBackground&&(x[se].gutterBackground.style.left=ie));var de=x[se].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=Xe(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(je("div",[je("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,se=z.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,b.lineGutter.offsetWidth-se)+1,b.lineNumWidth=b.lineNumInnerWidth+se,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],se=null;if(typeof ie!="string"&&(se=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:se})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;vt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],ie=z.className,se=z.style,de=y.appendChild(je("div",null,"CodeMirror-gutter "+ie));se&&(de.style.cssText=se),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=je("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=je("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=ht("div",null,"CodeMirror-code"),z.selectionDiv=je("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=je("div",null,"CodeMirror-cursors"),z.measure=je("div",null,"CodeMirror-measure"),z.lineMeasure=je("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=je("div",[ie],null,"position: relative"),z.sizer=je("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=je("div",null,null,"position: absolute; height: "+Et+"px; width: 1px;"),z.gutters=je("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=je("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=je("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Se&&Oe<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Ee&&!(E&&Ve)&&(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:Ie?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,se=ie.scroller,de=se.scrollWidth>se.clientWidth,fe=se.scrollHeight>se.clientHeight;if(b&&de||z&&fe){if(z&&We&&Ee){e:for(var be=y.target,it=ie.view;be!=se;be=be.parentNode)for(var mt=0;mt<it.length;mt++)if(it[mt].node==be){a.display.currentWheelTarget=be;break e}}if(b&&!E&&!he&&Ni!=null){z&&fe&&qo(a,Math.max(0,se.scrollTop+z*Ni)),Eo(a,Math.max(0,se.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=se.scrollLeft,ie.wheelStartY=se.scrollTop,ie.wheelDX=b,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var On=se.scrollLeft-ie.wheelStartX,Ln=se.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(!Pt(x.anchor,b.anchor)||!Pt(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(Ye(y,b.from())>=0&&Ye(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 Ye(jt.from(),_t.from())}),x=_e(y,z);for(var ie=1;ie<y.length;ie++){var se=y[ie],de=y[ie-1],fe=Ye(de.to(),se.from());if(b&&!se.empty()?fe>0:fe>=0){var be=vn(de.from(),se.from()),it=un(de.to(),se.to()),mt=de.empty()?se.from()==se.head:de.from()==de.head;ie<=x&&--x,y.splice(--ie,2,new Fr(mt?it:be,mt?be:it))}}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,Te(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $l(a,y){if(Ye(a,y.from)<0)return a;if(Ye(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,se=0;se<y.length;se++){var de=y[se],fe=zl(de.from,z,ie),be=zl(mo(de),z,ie);if(z=de.to,ie=be,x=="around"){var it=a.sel.ranges[se],mt=Ye(it.head,it.anchor)<0;b[se]=new Fr(mt?be:fe,mt?fe:be)}else b[se]=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&&Te(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 se(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,it=Tt(a,de.line),mt=Tt(a,fe.line),jt=Te(be),_t=z(be.length-1),cn=fe.line-de.line;if(y.full)a.insert(0,se(0,be.length)),a.remove(be.length,a.size-be.length);else if(Hl(a,y)){var On=se(0,be.length-1);ie(mt,mt.text,_t),cn&&a.remove(de.line,cn),On.length&&a.insert(de.line,On)}else if(it==mt)if(be.length==1)ie(it,it.text.slice(0,de.ch)+jt+it.text.slice(fe.ch),_t);else{var Ln=se(1,be.length-1);Ln.push(new Mr(jt+it.text.slice(fe.ch),_t,b)),ie(it,it.text.slice(0,de.ch)+be[0],z(0)),a.insert(de.line+1,Ln)}else if(be.length==1)ie(it,it.text.slice(0,de.ch)+be[0]+mt.text.slice(fe.ch),z(0)),a.remove(de.line+1,cn);else{ie(it,it.text.slice(0,de.ch)+be[0],z(0)),ie(mt,jt+mt.text.slice(fe.ch),_t);var $n=se(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,se){if(z.linked)for(var de=0;de<z.linked.length;++de){var fe=z.linked[de];if(fe.doc!=ie){var be=se&&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"?le:Ge)(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=Te(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Zl(a.done),Te(a.done);if(a.done.length&&!Te(a.done).ranges)return Te(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Te(a.done)}function Vl(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,se,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)=="*"))&&(se=lu(z,z.lastOp==b)))de=Te(se.changes),Ye(y.from,y.to)==0&&Ye(y.from,de.to)==0?de.to=mo(y):se.changes.push(ll(a,y));else{var fe=Te(z.done);for((!fe||!fe.ranges)&&Ta(a.sel,z.done),se={changes:[ll(a,y)],generation:z.generation},z.done.push(se);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,Te(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=Te(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(se){se.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=se.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],se=b[z];if(ie&&se)e:for(var de=0;de<se.length;++de){for(var fe=se[de],be=0;be<ie.length;++be)if(ie[be].marker==fe.marker)continue e;ie.push(fe)}else se&&(x[z]=se)}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 se=ie.changes,de=[];b.push({changes:de});for(var fe=0;fe<se.length;++fe){var be=se[fe],it=void 0;if(de.push({from:be.from,to:be.to,text:be.text}),y)for(var mt in be)(it=mt.match(/^spans_(\d+)$/))&&_e(y,Number(it[1]))>-1&&(Te(de)[mt]=be[mt],delete be[mt])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=Ye(y,z)<0;ie!=Ye(x,z)<0?(z=y,y=x):ie!=Ye(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 se=Ui(a.cm,b,a.sel.primIndex);hi(a,se,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=Te(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||(Ye(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 se=y.ranges[ie],de=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],fe=Na(a,se.anchor,de&&de.anchor,x,b),be=Na(a,se.head,de&&de.head,x,b);(z||fe!=se.anchor||be!=se.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=Tt(a,y.line);if(ie.markedSpans)for(var se=0;se<ie.markedSpans.length;++se){var de=ie.markedSpans[se],fe=de.marker,be="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,it="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((de.from==null||(be?de.from<=y.ch:de.from<y.ch))&&(de.to==null||(it?de.to>=y.ch:de.to>y.ch))){if(z&&(rn(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(ie.markedSpans){--se;continue}else break;if(!fe.atomic)continue;if(x){var mt=fe.find(b<0?1:-1),jt=void 0;if((b<0?it:be)&&(mt=es(a,mt,-b,mt&&mt.line==y.line?ie:null)),mt&&mt.line==y.line&&(jt=Ye(mt,x))&&(b<0?jt<0:jt>0))return Fo(a,mt,y,b,z)}var _t=fe.find(b<0?-1:1);return(b<0?be:it)&&(_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,se=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 se||(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||Tt(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,se,de){z&&(b.from=Ft(a,z)),ie&&(b.to=Ft(a,ie)),se&&(b.text=se),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]==""&&Ye(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&&_e(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,se=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}se=ie}else if(b){de.push(ie);return}else break;var it=[];Ta(se,fe),fe.push({changes:it,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var mt=Vt(a,"beforeChange")||a.cm&&Vt(a.cm,"beforeChange"),jt=function(On){var Ln=ie.changes[On];if(Ln.origin=y,mt&&!ns(a,Ln,!1))return de.length=0,{};it.push(ll(a,Ln));var $n=On?il(a,Ln):Te(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&&_e(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(Ot(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:[Te(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:Me(ie,Tt(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,se=y.to,de=!1,fe=ie.line;a.options.lineWrapping||(fe=Ue(sn(Tt(b,ie.line))),b.iter(fe,se.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-(se.line-ie.line)-1;y.full?Si(a):ie.line==se.line&&y.text.length==1&&!Hl(a.doc,y)?fo(a,ie.line,"text"):Si(a,ie.line,se.line+1,be);var it=Vt(a,"changes"),mt=Vt(a,"change");if(mt||it){var jt={from:ie,to:se,text:y.text,removed:y.removed,origin:y.origin};mt&&Vr(a,"change",a,jt),it&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(jt)}a.display.selForContextMenu=null}function $o(a,y,x,b,z){var ie;b||(b=x),Ye(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],se=!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){se=!1;break}}se||(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=Tt(a,Qt(a,y)):z=Ue(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),se=b.height;if(b.removeInner(a,ie),this.height-=se-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 se=z.lines.length%25+25,de=se;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,se),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=_e(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 se=Math.min(y,ie-a);if(z.iterN(a,se,x))return!0;if((y-=se)==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=Ue(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,Ue(b))}))},He(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(se){var de=se.widgets||(se.widgets=[]);if(z.insertAt==null?de.push(z):de.splice(Math.min(de.length-1,Math.max(0,z.insertAt)),0,z),z.line=se,ie&&!Nn(a,se)){var fe=rr(se)<a.scrollTop;hn(se,se.height+gi(z)),fe&&Ja(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Vr(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:Ue(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 se=this.lines[ie],de=vr(se.markedSpans,this);a&&!this.collapsed?fo(a,Ue(se),"text"):a&&(de.to!=null&&(z=Ue(se)),de.from!=null&&(b=Ue(se))),se.markedSpans=Cr(se.markedSpans,de),de.from==null&&this.collapsed&&!Nn(this.doc,se)&&a&&hn(se,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]),it=Pr(be);it>a.display.maxLineLength&&(a.display.maxLine=be,a.display.maxLineLength=it,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],se=vr(ie.markedSpans,this);if(se.from!=null&&(x=Me(y?ie:Ue(ie),se.from),a==-1))return x;if(se.to!=null&&(b=Me(y?ie:Ue(ie),se.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=Ue(y.line),se=qi(b,ie);if(se&&(Uo(se),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||_e(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(_e(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},He(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),se=Ye(y,x);if(b&&ut(b,ie,!1),se>0||se==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(mt){fe&&ie.collapsed&&!fe.options.lineWrapping&&sn(mt)==fe.display.maxLine&&(be=!0),ie.collapsed&&de!=y.line&&hn(mt,0),or(mt,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(mt){Nn(a,mt)&&hn(mt,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 it=y.line;it<=x.line;it++)fo(fe,it,"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)},He(ca);function mu(a,y,x,b,z){b=ut(b),b.shared=!1;var ie=[zo(a,y,x,b,z)],se=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;se=Te(ie)}),new ca(ie,se)}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),se=a.clipPos(z.to);if(Ye(ie,se)){var de=zo(a,ie,se,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 se=0;se<z.markers.length;se++){var de=z.markers[se];_e(ie,de.doc)==-1&&(de.parent=null,z.markers.splice(se--,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,Tt(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(Pe(this,a))return Tt(this,a)},getLineNumber:function(a){return Ue(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Tt(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=Ot(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 se=z.ranges[ie];b[ie]={from:se.from(),to:se.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(!Pe(this,a)||(y=a,a=Tt(this,a),!a))return null}else if(y=Ue(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 se=ie.match(tt(x));if(!se)return!1;var de=se.index+se[0].length;b[z]=ie.slice(0,se.index)+(!se.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=Tt(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 se=ie.markedSpans;if(se)for(var de=0;de<se.length;de++){var fe=se[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),!(kt(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),se=0,de=function(){++se==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&&_e(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 it=a.dataTransfer.getData("Text");if(it){var mt;if(y.state.draggingText&&!y.state.draggingText.copy&&(mt=y.listSelections()),Aa(y.doc,po(x,x)),mt)for(var jt=0;jt<mt.length;++jt)$o(y.doc,"",mt[jt].anchor,mt[jt].head,"drag");y.replaceSelection(it,"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(!(kt(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Je)){var x=je("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=je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Ae(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=We?io.macDefault:io.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,ie,se=0;se<y.length-1;se++){var de=y[se];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=Ot(x.split(" "),Iu),ie=0;ie<z.length;ie++){var se=void 0,de=void 0;ie==z.length-1?(de=z.join(" "),se=b):(de=z.slice(0,ie+1).join(" "),se="...");var fe=y[de];if(!fe)y[de]=se;else if(fe!=se)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 se=Ho(a,y.fallthrough[ie],x,b);if(se)return se}}}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&&Ye(ie.from,Te(b).to)<=0;){var se=b.pop();if(Ye(se.from,ie.from)<0){ie.from=se.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=Qe(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=Wt(x,y.doc.direction);if(ie){var se=z<0?Te(ie):ie[0],de=z<0==(se.level==1),fe=de?"after":"before",be;if(se.level>0||y.doc.direction=="rtl"){var it=uo(y,x);be=z<0?x.text.length-1:0;var mt=zi(y,it,be).top;be=Ce(function(jt){return zi(y,it,jt).top==mt},z<0==(se.level==1)?se.from:se.to-1,be),fe=="before"&&(be=cl(x,be,1))}else be=z<0?se.to:se.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=Wt(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),se=z[ie];if(a.doc.direction=="ltr"&&se.level%2==0&&(b>0?se.to>x.ch:se.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}},it=be(x.sticky=="before"?de(x,-1):x.ch);if(a.doc.direction=="rtl"||se.level==1){var mt=se.level==1==b<0,jt=de(x,mt?1:-1);if(jt!=null&&(mt?jt<=se.to&&jt<=it.end:jt>=se.from&&jt>=it.begin)){var _t=mt?"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,it);if(On)return On;var Ln=b>0?it.end:de(it.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=Tt(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")},Re)},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")},Re)},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},Re)},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(),se=me(a.getLine(ie.line),ie.ch,b);y.push(Bt(b-se%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=Tt(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 se=Tt(a.doc,z.line-1).text;se&&(z=new Me(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+se.charAt(se.length-1),Me(z.line-1,se.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=Tt(a.doc,y),b=sn(x);return b!=x&&(y=Ue(b)),fl(!0,a,b,y,1)}function ku(a,y){var x=Tt(a.doc,y),b=_n(x);return b!=x&&(y=Ue(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Tt(a.doc,x.line),z=Wt(b,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),se=y.line==x.line&&y.ch<=ie&&y.ch;return Me(x.line,se?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)!=pt}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(),!kt(y,a))){Se&&Oe<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&&(We?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!We&&!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;le(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ge(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),kt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||kt(y,a)||a.ctrlKey&&!a.altKey||We&&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&&Ye(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(!(kt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Ee||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=yt(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):nt(a)==x.scroller&&dt(a):z==2?(b&&La(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(rt?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(se){if(typeof se=="string"&&(se=ha[se]),!se)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=se(a,x)!=pt}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=ct?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=We?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(We?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,se;a.options.dragDrop&&Mt&&!a.isReadOnly()&&x=="single"&&(se=ie.contains(y))>-1&&(Ye((se=ie.ranges[se]).from(),y)<0||y.xRel>0)&&(Ye(se.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,se=oi(a,function(be){Ee&&(z.scroller.draggable=!1),a.state.draggingText=!1,Xt(z.wrapper.ownerDocument,"mouseup",se),Xt(z.wrapper.ownerDocument,"mousemove",de),Xt(z.scroller,"dragstart",fe),Xt(z.scroller,"drop",se),ie||(dt(be),b.addNew||La(a.doc,x,null,null,b.extend),Ee&&!Je||Se&&Oe==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};Ee&&(z.scroller.draggable=!0),a.state.draggingText=se,se.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),$t(z.wrapper.ownerDocument,"mouseup",se),$t(z.wrapper.ownerDocument,"mousemove",de),$t(z.scroller,"dragstart",fe),$t(z.scroller,"drop",se),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 se,de,fe=ie.sel,be=fe.ranges;if(b.addNew&&!b.extend?(de=ie.sel.contains(x),de>-1?se=be[de]:se=new Fr(x,x)):(se=ie.sel.primary(),de=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(se=new Fr(x,x)),x=So(a,y,!0,!0),de=-1;else{var it=Ps(a,x,b.unit);b.extend?se=sl(se,it.anchor,it.head,b.extend):se=it}b.addNew?de==-1?(de=be.length,hi(ie,Ui(a,be.concat([se]),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,se,Le):(de=0,hi(ie,new Ri([se],0),Le),fe=ie.sel);var mt=x;function jt(zn){if(Ye(mt,zn)!=0)if(mt=zn,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=me(Tt(ie,x.line).text,x.ch,sr),wr=me(Tt(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=Tt(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=se,di=Ps(a,zn,b.unit),ii=Ii.anchor,ei;Ye(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),Le)}}var _t=z.wrapper.getBoundingClientRect(),cn=0;function On(zn){var Kn=++cn,sr=So(a,zn,!0,b.unit=="rectangle");if(sr)if(Ye(sr,mt)!=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||!yt(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=Tt(a.doc,x.line);if(Ye(x,b)==0&&x.sticky==b.sticky)return y;var ie=Wt(z);if(!ie)return y;var se=St(ie,x.ch,x.sticky),de=ie[se];if(de.from!=x.ch&&de.to!=x.ch)return y;var fe=se+(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 it=St(ie,b.ch,b.sticky),mt=it-se||(b.ch-x.ch)*(de.level==1?-1:1);it==fe-1||it==fe?be=mt<0:be=mt>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 se=a.display,de=se.lineDiv.getBoundingClientRect();if(ie>de.bottom||!Vt(a,x))return Ht(y);ie-=de.top-se.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var be=se.gutters.childNodes[fe];if(be&&be.getBoundingClientRect().right>=z){var it=st(a.doc,ie),mt=a.display.gutterSpecs[fe];return rn(a,x,a,it,mt.className,y),Ht(y)}}}function ml(a,y){return Os(a,y,"gutterClick",!0)}function ks(a,y){ui(a.display,y)||Hu(a,y)||kt(a,y,"contextmenu")||rt||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,se){a.defaults[b]=z,ie&&(y[b]=se?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=[],se=b.doc.first;b.doc.iter(function(fe){for(var be=0;;){var it=fe.text.indexOf(z,be);if(it==-1)break;be=it+z.length,ie.push(Me(se,it))}se++});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",Ve?"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",!Ct),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ms(b),ra(b)},!0),x("keyMap","default",function(b,z,ie){var se=_a(z),de=ie!=jo&&_a(ie);de&&de.detach&&de.detach(b,se),se.attach&&se.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?(le(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ge(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?ut(y):{},ut(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&&!Ve&&ie.input.focus(),Se&&Oe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Po(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ve||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Lo(this);for(var se in za)za.hasOwnProperty(se)&&za[se](this,y[se],jo);Nl(this),y.finishInit&&y.finishInit(this);for(var de=0;de<vl.length;++de)vl[de](this);Oo(this),Ee&&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&&Oe<11?$t(y.scroller,"dblclick",oi(a,function(fe){if(!kt(a,fe)){var be=So(a,fe);if(!(!be||ml(a,fe)||ui(a.display,fe))){dt(fe);var it=a.findWordAt(be);La(a.doc,it.anchor,it.head)}}})):$t(y.scroller,"dblclick",function(fe){return kt(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 se(fe,be){if(be.left==null)return!0;var it=be.left-fe.left,mt=be.top-fe.top;return it*it+mt*mt>20*20}$t(y.scroller,"touchstart",function(fe){if(!kt(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 it=a.coordsChar(y.activeTouch,"page"),mt;!be.prev||se(be,be.prev)?mt=new Fr(it,it):!be.prev.prev||se(be,be.prev.prev)?mt=a.findWordAt(it):mt=new Fr(Me(it.line,0),Ft(a.doc,Me(it.line+1,0))),a.setSelection(mt.anchor,mt.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){kt(a,fe)||Be(fe)},over:function(fe){kt(a,fe)||(Cu(a,fe),Be(fe))},start:function(fe){return xu(a,fe)},drop:oi(a,bu),leave:function(fe){kt(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 se=a.options.tabSize,de=Tt(z,y),fe=me(de.text,null,se);de.stateAfter&&(de.stateAfter=null);var be=de.text.match(/^\s*/)[0],it;if(!b&&!/\S/.test(de.text))it=0,x="not";else if(x=="smart"&&(it=z.mode.indent(ie,de.text.slice(be.length),de.text),it==pt||it>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?it=me(Tt(z,y-1).text,null,se):it=0:x=="add"?it=fe+a.options.indentUnit:x=="subtract"?it=fe-a.options.indentUnit:typeof x=="number"&&(it=fe+x),it=Math.max(0,it);var mt="",jt=0;if(a.options.indentWithTabs)for(var _t=Math.floor(it/se);_t;--_t)jt+=se,mt+=" ";if(jt<it&&(mt+=Bt(it-jt)),mt!=be)return $o(z,mt,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 se=+new Date-200,de=z=="paste"||a.state.pasteIncoming>se,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 it=0;it<Ki.text.length;it++)be.push(ie.splitLines(Ki.text[it]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(be=Ot(fe,function($n){return[$n]}));for(var mt=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(Tt(ie,On.line).text.length,On.ch+Te(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>se?"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=mt),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),se=!1;if(ie.electricChars){for(var de=0;de<ie.electricChars.length;de++)if(y.indexOf(ie.electricChars.charAt(de))>-1){se=ga(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(Tt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(se=ga(a,z.head.line,"smart"));se&&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=je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=je("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?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,se=ie[b];ie[b]==z&&b!="mode"||(ie[b]=z,y.hasOwnProperty(b)&&oi(this,y[b])(this,z,se),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.");lt(this.state.overlays,{mode:ie,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(se){return se.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var se=z[ie].modeSpec;if(se==b||typeof b=="string"&&se.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"),Pe(this.doc,b)&&ga(this,b,z,ie)}),indentSelection:yi(function(b){for(var z=this.doc.sel.ranges,ie=-1,se=0;se<z.length;se++){var de=z[se];if(de.empty())de.head.line>ie&&(ga(this,de.head.line,b,!0),ie=de.head.line,se==this.doc.sel.primIndex&&Ao(this));else{var fe=de.from(),be=de.to(),it=Math.max(ie,fe.line);ie=Math.min(this.lastLine(),be.line-(be.ch?0:1))+1;for(var mt=it;mt<ie;++mt)ga(this,mt,b);var jt=this.doc.sel.ranges;fe.ch==0&&z.length==jt.length&&jt[se].from().ch>0&&ul(this.doc,se,new Fr(fe,jt[se].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,Tt(this.doc,b.line)),ie=0,se=(z.length-1)/2,de=b.ch,fe;if(de==0)fe=z[2];else for(;;){var be=ie+se>>1;if((be?z[be*2-1]:0)>=de)se=be;else if(z[be*2+1]<de)ie=be+1;else{fe=z[be*2+2];break}}var it=fe?fe.indexOf("overlay "):-1;return it<0?fe:it==0?null:fe.slice(0,it-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 se=x[z],de=this.getModeAt(b);if(typeof de[z]=="string")se[de[z]]&&ie.push(se[de[z]]);else if(de[z])for(var fe=0;fe<de[z].length;fe++){var be=se[de[z][fe]];be&&ie.push(be)}else de.helperType&&se[de.helperType]?ie.push(se[de.helperType]):se[de.name]&&ie.push(se[de.name]);for(var it=0;it<se._global.length;it++){var mt=se._global[it];mt.pred(de,this)&&_e(ie,mt.val)==-1&&ie.push(mt.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,se=this.doc.sel.primary();return b==null?ie=se.head:typeof b=="object"?ie=Ft(this.doc,b):ie=b?se.from():se.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 se=!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,se=!0),de=Tt(this.doc,b)}else de=b;return Bo(this,de,{top:0,left:0},z||"page",ie||se).top+(se?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,se,de){var fe=this.display;b=Ci(this,Ft(this.doc,b));var be=b.bottom,it=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),fe.sizer.appendChild(z),se=="over")be=b.top;else if(se=="above"||se=="near"){var mt=Math.max(fe.wrapper.clientHeight,this.doc.height),jt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(se=="above"||b.bottom+z.offsetHeight>mt)&&b.top>z.offsetHeight?be=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=mt&&(be=b.bottom),it+z.offsetWidth>jt&&(it=jt-z.offsetWidth)}z.style.top=be+"px",z.style.left=z.style.right="",de=="right"?(it=fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(de=="left"?it=0:de=="middle"&&(it=(fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=it+"px"),ie&&js(this,{left:it,top:be,right:it+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,se){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,se),!fe.hitSide);++be);return fe},moveH:yi(function(b,z){var ie=this;this.extendSelectionsBy(function(se){return ie.display.shift||ie.doc.extend||se.empty()?yl(ie.doc,se.head,b,z,ie.options.rtlMoveVisually):b<0?se.from():se.to()},Re)}),deleteH:yi(function(b,z){var ie=this.doc.sel,se=this.doc;ie.somethingSelected()?se.replaceSelection("",null,"+delete"):Wo(this,function(de){var fe=yl(se,de.head,b,z,!1);return b<0?{from:fe,to:de.head}:{from:de.head,to:fe}})}),findPosV:function(b,z,ie,se){var de=1,fe=se;z<0&&(de=-1,z=-z);for(var be=Ft(this.doc,b),it=0;it<z;++it){var mt=Ci(this,be,"div");if(fe==null?fe=mt.left:mt.left=fe,be=Rs(this,mt,de,ie),be.hitSide)break}return be},moveV:yi(function(b,z){var ie=this,se=this.doc,de=[],fe=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(it){if(fe)return b<0?it.from():it.to();var mt=Ci(ie,it.head,"div");it.goalColumn!=null&&(mt.left=it.goalColumn),de.push(mt.left);var jt=Rs(ie,mt,b,z);return z=="page"&&it==se.sel.primary()&&Ja(ie,To(ie,jt,"div").top-mt.top),jt},Re),de.length)for(var be=0;be<se.sel.ranges.length;be++)se.sel.ranges[be].goalColumn=de[be]}),findWordAt:function(b){var z=this.doc,ie=Tt(z,b.line).text,se=b.ch,de=b.ch;if(ie){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||de==ie.length)&&se?--se:++de;for(var be=ie.charAt(se),it=ue(be,fe)?function(mt){return ue(mt,fe)}:/\s/.test(be)?function(mt){return/\s/.test(mt)}:function(mt){return!/\s/.test(mt)&&!ue(mt)};se>0&&it(ie.charAt(se-1));)--se;for(;de<ie.length&&it(ie.charAt(de));)++de}return new Fr(Me(b.line,se),Me(b.line,de))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?le(this.display.cursorDiv,"CodeMirror-overwrite"):Ge(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,se=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};b!=null&&(this.display.wrapper.style.width=se(b)),z!=null&&(this.display.wrapper.style.height=se(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}},He(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,se){a.registerHelper(b,z,se),x[b]._global.push({pred:ie,val:se})}}function yl(a,y,x,b,z){var ie=y,se=x,de=Tt(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=Tt(a,Vn))}function it(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")it();else if(b=="column")it(!0);else if(b=="word"||b=="group")for(var mt=null,jt=b=="group",_t=a.cm&&a.cm.getHelper(y,"wordChars"),cn=!0;!(x<0&&!it(!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"),mt&&mt!=Ln){x<0&&(x=1,it(),y.sticky="after");break}if(Ln&&(mt=Ln),x>0&&!it(!cn))break}var $n=Na(a,y,ie,se,!0);return Pt(ie,$n)&&($n.hitSide=!0),$n}function Rs(a,y,x,b){var z=a.doc,ie=y.left,se;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);se=(x>0?y.bottom:y.top)+x*fe}else b=="line"&&(se=x>0?y.bottom+3:y.top-3);for(var be;be=ci(a,ie,se),!!be.outside;){if(x<0?se<=0:se>=z.height){be.hitSide=!0;break}se+=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)||kt(b,de)||Bs(de,b)||Oe<=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 se(de){if(!(!ie(de)||kt(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 it=Ns(),mt=it.firstChild;b.display.lineSpace.insertBefore(it,b.display.lineSpace.firstChild),mt.value=Ki.text.join(`
|
|
|
`);var jt=document.activeElement;De(mt),setTimeout(function(){b.display.lineSpace.removeChild(it),jt.focus(),jt==z&&x.showPrimarySelection()},50)}}$t(z,"copy",se),$t(z,"cut",se)},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),se=Wa(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&se&&!se.bad&&Ye(vn(ie,se),b)==0&&Ye(un(ie,se),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 it=de[de.length-1].measure,mt=it.maps?it.maps[it.maps.length-1]:it.map;be={node:mt[mt.length-1],offset:mt[mt.length-2]-mt[mt.length-3]}}if(!fe||!be){a.removeAllRanges();return}var jt=a.rangeCount&&a.getRangeAt(0),_t;try{_t=ke(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){Ae(this.cm.display.cursorDiv,a.cursors),Ae(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 Fe(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(Ne&&Ie&&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,Tt(a.doc,b.line-1).length)),z.ch==Tt(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,se,de;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(se=Ue(y.view[0].line),de=y.view[0].node):(se=Ue(y.view[ie].line),de=y.view[ie-1].node.nextSibling);var fe=wo(a,z.line),be,it;if(fe==y.view.length-1?(be=y.viewTo-1,it=y.lineDiv.lastChild):(be=Ue(y.view[fe+1].line)-1,it=y.view[fe+1].node.previousSibling),!de)return!1;for(var mt=a.doc.splitLines(Ku(a,de,it,se,be)),jt=Kt(a.doc,Me(se,0),Me(be,Tt(a.doc,be).text.length));mt.length>1&&jt.length>1;)if(Te(mt)==Te(jt))mt.pop(),jt.pop(),be--;else if(mt[0]==jt[0])mt.shift(),jt.shift(),se++;else break;for(var _t=0,cn=0,On=mt[0],Ln=jt[0],$n=Math.min(On.length,Ln.length);_t<$n&&On.charCodeAt(_t)==Ln.charCodeAt(_t);)++_t;for(var Vn=Te(mt),zn=Te(jt),Kn=Math.min(Vn.length-(mt.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(mt.length==1&&jt.length==1&&se==b.line)for(;_t&&_t>b.ch&&Vn.charCodeAt(Vn.length-cn-1)==zn.charCodeAt(zn.length-cn-1);)_t--,cn++;mt[mt.length-1]=Vn.slice(0,Vn.length-cn).replace(/^\u200b+/,""),mt[0]=mt[0].slice(_t).replace(/\u200b+$/,"");var sr=Me(se,_t),nr=Me(be,jt.length?Te(jt).length-cn:0);if(mt.length>1||mt[0]||Ye(sr,nr))return $o(a.doc,mt,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=Tt(a.doc,y.line),z=Do(x,b,y.line),ie=Wt(b,a.doc.direction),se="left";if(ie){var de=St(ie,y.ch);se=de%2?"right":"left"}var fe=xa(z.map,y.ch,se);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="",se=!1,de=a.doc.lineSeparator(),fe=!1;function be(_t){return function(cn){return cn.id==_t}}function it(){se&&(ie+=de,fe&&(ie+=de),se=fe=!1)}function mt(_t){_t&&(it(),ie+=_t)}function jt(_t){if(_t.nodeType==1){var cn=_t.getAttribute("cm-text");if(cn){mt(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))&&mt(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&&it();for(var zn=0;zn<_t.childNodes.length;zn++)jt(_t.childNodes[zn]);/^(pre|p)$/i.test(_t.nodeName)&&(fe=!0),Vn&&(se=!0)}else _t.nodeType==3&&mt(_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||!Fe(b,y))return Zo(Me(Ue(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?Te(a.rest):a.line;return Zo(Me(Ue(ie),ie.text.length),z)}var se=y.nodeType==3?y:null,de=y;for(!se&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(se=y.firstChild,x&&(x=se.nodeValue.length));de.parentNode!=b;)de=de.parentNode;var fe=a.measure,be=fe.maps;function it(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=Ue(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 mt=it(se,de,x);if(mt)return Zo(mt,z);for(var jt=de.nextSibling,_t=se?se.nodeValue.length-x:0;jt;jt=jt.nextSibling){if(mt=it(jt,jt.firstChild,0),mt)return Zo(Me(mt.line,mt.ch-_t),z);_t+=jt.textContent.length}for(var cn=de.previousSibling,On=x;cn;cn=cn.previousSibling){if(mt=it(cn,cn.firstChild,-1),mt)return Zo(Me(mt.line,mt.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&&Oe>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),$t(z,"paste",function(se){kt(b,se)||Bs(se,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(se){if(!kt(b,se)){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var de=Ls(b);Ha({lineWise:!0,text:de.text}),se.type=="cut"?b.setSelections(de.ranges,null,ve):(x.prevInput="",z.value=de.text.join(`
|
|
|
`),De(z))}else return;se.type=="cut"&&(b.state.cutIncoming=+new Date)}}$t(z,"cut",ie),$t(z,"copy",ie),$t(a.scroller,"paste",function(se){if(!(ui(a,se)||kt(b,se))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var de=new Event("paste");de.clipboardData=se.clipboardData,z.dispatchEvent(de)}}),$t(a.lineSpace,"selectstart",function(se){ui(a,se)||dt(se)}),$t(z,"compositionstart",function(){var se=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:se,range:b.markText(se,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(),se=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+se.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+se.left-ie.left))}return b},Qr.prototype.showSelection=function(a){var y=this.cm,x=y.display;Ae(x.cursorDiv,a.cursors),Ae(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&&Oe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Se&&Oe>=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"&&(!Ve||$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&&Oe>=9&&this.hasSelection===z||We&&/[\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 se=0,de=Math.min(b.length,z.length);se<de&&b.charCodeAt(se)==z.charCodeAt(se);)++se;return Bi(y,function(){gl(y,z.slice(se),b.length-se,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&&Oe>=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),se=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,it=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-it.top-5)+"px; left: "+(a.clientX-it.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 mt;Ee&&(mt=window.scrollY),b.input.focus(),Ee&&window.scrollTo(null,mt),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&&Oe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=se),z.selectionStart!=null)){(!Se||Se&&Oe<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&&Oe>=9&&jt(),rt){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?ut(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 se=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=se}}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=pt,a.signal=rn,a.Line=Mr,a.changeEnd=mo,a.scrollbarModel=Bl,a.Pos=Me,a.cmpPos=Ye,a.modes=Rt,a.mimeModes=It,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=le,a.contains=Fe,a.rmClass=Ge,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)&&_e(Ju,ja)<0&&(Gr.prototype[ja]=function(a){return function(){return a.apply(this.doc,arguments)}}(wi.prototype[ja]));return He(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(at,ye){var et=E.getMode(at,"text/html"),Se=et.name=="null";function Oe(me){if(E.findModeByName){var ce=E.findModeByName(me);ce&&(me=ce.mime||ce.mimes[0])}var _e=E.getMode(at,me);return _e.name=="null"?null:_e}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 Ee={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Ze in Ee)Ee.hasOwnProperty(Ze)&&ye.tokenTypeOverrides[Ze]&&(Ee[Ze]=ye.tokenTypeOverrides[Ze]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Je=/^\[(x| )\](?=\s)/i,xe=ye.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,xt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,qe=/^[^#!\[\]*_\\<>` "'(~:]+/,Ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ve=/^\s*\[[^\]]+?\]:.*$/,We=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ct=" ";function Ct(me,ce,_e){return ce.f=ce.inline=_e,_e(me,ce)}function Dt(me,ce,_e){return ce.f=ce.block=_e,_e(me,ce)}function ft(me){return!me||!/\S/.test(me.string)}function rt(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==Ge){var ce=Se;if(!ce){var _e=E.innerMode(et,me.htmlState);ce=_e.mode.name=="xml"&&_e.state.tagStart===null&&!_e.state.context&&_e.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 _e=me.column()===ce.indentation,Et=ft(ce.prevLine.stream),pt=ce.indentedCode,ve=ce.prevLine.hr,Le=ce.list!==!1,Re=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var wt=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,Le)){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 bt=!Et&&!ve&&!ce.prevLine.header&&(!Le||!pt)&&!ce.prevLine.fencedCodeEnd,Bt=(ce.list===!1||ve||Et)&&ce.indentation<=Re&&me.match(Ie),Te=null;if(ce.indentationDiff>=4&&(pt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||Et))return me.skipToEnd(),ce.indentedCode=!0,Ee.code;if(me.eatSpace())return null;if(_e&&ce.indentation<=Re&&(Te=me.match(xe))&&Te[1].length<=6)return ce.quote=0,ce.header=Te[1].length,ce.thisLine.header=!0,ye.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,Ae(ce);if(ce.indentation<=Re&&me.eat(">"))return ce.quote=_e?1:ce.quote+1,ye.highlightFormatting&&(ce.formatting="quote"),me.eatSpace(),Ae(ce);if(!Bt&&!ce.setext&&_e&&ce.indentation<=Re&&(Te=me.match(he))){var Ot=Te[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-"+Ot]),Ae(ce)}else{if(_e&&ce.indentation<=Re&&(Te=me.match(Ne,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Te[1]+"+ *$"),ce.localMode=ye.fencedCodeBlockHighlighting&&Oe(Te[2]||ye.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=E.startState(ce.localMode)),ce.f=ce.block=vt,ye.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,Ae(ce);if(ce.setext||(!bt||!Le)&&!ce.quote&&ce.list===!1&&!ce.code&&!Bt&&!Ve.test(me.string)&&(Te=me.lookAhead(1))&&(Te=Te.match(xt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,me.skipToEnd(),ye.highlightFormatting&&(ce.formatting="header")):(ce.header=Te[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,Ae(ce);if(Bt)return me.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Ee.hr;if(me.peek()==="[")return Ct(me,ce,ze)}return Ct(me,ce,ce.inline)}function Ge(me,ce){var _e=et.token(me,ce.htmlState);if(!Se){var Et=E.innerMode(et,ce.htmlState);(Et.mode.name=="xml"&&Et.state.tagStart===null&&!Et.state.context&&Et.state.tokenize.isInText||ce.md_inside&&me.current().indexOf(">")>-1)&&(ce.f=ht,ce.block=tt,ce.htmlState=null)}return _e}function vt(me,ce){var _e=ce.listStack[ce.listStack.length-1]||0,Et=ce.indentation<_e,pt=_e+3;if(ce.fencedEndRE&&ce.indentation<=pt&&(Et||me.match(ce.fencedEndRE))){ye.highlightFormatting&&(ce.formatting="code-block");var ve;return Et||(ve=Ae(ce)),ce.localMode=ce.localState=null,ce.block=tt,ce.f=ht,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,Et?Dt(me,ce,ce.block):ve}else return ce.localMode?ce.localMode.token(me,ce.localState):(me.skipToEnd(),Ee.code)}function Ae(me){var ce=[];if(me.formatting){ce.push(Ee.formatting),typeof me.formatting=="string"&&(me.formatting=[me.formatting]);for(var _e=0;_e<me.formatting.length;_e++)ce.push(Ee.formatting+"-"+me.formatting[_e]),me.formatting[_e]==="header"&&ce.push(Ee.formatting+"-"+me.formatting[_e]+"-"+me.header),me.formatting[_e]==="quote"&&(!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=me.quote?ce.push(Ee.formatting+"-"+me.formatting[_e]+"-"+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(Ee.linkHref,"url"):(me.strong&&ce.push(Ee.strong),me.em&&ce.push(Ee.em),me.strikethrough&&ce.push(Ee.strikethrough),me.emoji&&ce.push(Ee.emoji),me.linkText&&ce.push(Ee.linkText),me.code&&ce.push(Ee.code),me.image&&ce.push(Ee.image),me.imageAltText&&ce.push(Ee.imageAltText,"link"),me.imageMarker&&ce.push(Ee.imageMarker)),me.header&&ce.push(Ee.header,Ee.header+"-"+me.header),me.quote&&(ce.push(Ee.quote),!ye.maxBlockquoteDepth||ye.maxBlockquoteDepth>=me.quote?ce.push(Ee.quote+"-"+me.quote):ce.push(Ee.quote+"-"+ye.maxBlockquoteDepth)),me.list!==!1){var Et=(me.listStack.length-1)%3;Et?Et===1?ce.push(Ee.list2):ce.push(Ee.list3):ce.push(Ee.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 je(me,ce){if(me.match(qe,!0))return Ae(ce)}function ht(me,ce){var _e=ce.text(me,ce);if(typeof _e!="undefined")return _e;if(ce.list)return ce.list=null,Ae(ce);if(ce.taskList){var Et=me.match(Je,!0)[1]===" ";return Et?ce.taskOpen=!0:ce.taskClosed=!0,ye.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,Ae(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&me.match(/^#+$/,!0))return ye.highlightFormatting&&(ce.formatting="header"),Ae(ce);var pt=me.next();if(ce.linkTitle){ce.linkTitle=!1;var ve=pt;pt==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(me.match(new RegExp(Le),!0))return Ee.linkHref}if(pt==="`"){var Re=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,Ae(ce);if(wt==ce.code){var bt=Ae(ce);return ce.code=0,bt}else return ce.formatting=Re,Ae(ce)}else if(ce.code)return Ae(ce);if(pt==="\\"&&(me.next(),ye.highlightFormatting)){var Bt=Ae(ce),Te=Ee.formatting+"-escape";return Bt?Bt+" "+Te:Te}if(pt==="!"&&me.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ye.highlightFormatting&&(ce.formatting="image"),Ae(ce);if(pt==="["&&ce.imageMarker&&me.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ye.highlightFormatting&&(ce.formatting="image"),Ae(ce);if(pt==="]"&&ce.imageAltText){ye.highlightFormatting&&(ce.formatting="image");var Bt=Ae(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Fe,Bt}if(pt==="["&&!ce.image)return ce.linkText&&me.match(/^.*?\]/)||(ce.linkText=!0,ye.highlightFormatting&&(ce.formatting="link")),Ae(ce);if(pt==="]"&&ce.linkText){ye.highlightFormatting&&(ce.formatting="link");var Bt=Ae(ce);return ce.linkText=!1,ce.inline=ce.f=me.match(/\(.*?\)| ?\[.*?\]/,!1)?Fe:ht,Bt}if(pt==="<"&&me.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=ke,ye.highlightFormatting&&(ce.formatting="link");var Bt=Ae(ce);return Bt?Bt+=" ":Bt="",Bt+Ee.linkInline}if(pt==="<"&&me.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=ke,ye.highlightFormatting&&(ce.formatting="link");var Bt=Ae(ce);return Bt?Bt+=" ":Bt="",Bt+Ee.linkEmail}if(ye.xml&&pt==="<"&&me.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ot=me.string.indexOf(">",me.pos);if(Ot!=-1){var lt=me.string.substring(me.start,Ot);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(lt)&&(ce.md_inside=!0)}return me.backUp(1),ce.htmlState=E.startState(et),Dt(me,ce,Ge)}if(ye.xml&&pt==="<"&&me.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(pt==="*"||pt==="_"){for(var ae=1,te=me.pos==1?" ":me.string.charAt(me.pos-2);ae<3&&me.eat(pt);)ae++;var ee=me.peek()||" ",oe=!/\s/.test(ee)&&(!We.test(ee)||/\s/.test(te)||We.test(te)),ue=!/\s/.test(te)&&(!We.test(te)||/\s/.test(ee)||We.test(ee)),ne=null,pe=null;if(ae%2&&(!ce.em&&oe&&(pt==="*"||!ue||We.test(te))?ne=!0:ce.em==pt&&ue&&(pt==="*"||!oe||We.test(ee))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(pt==="*"||!ue||We.test(te))?pe=!0:ce.strong==pt&&ue&&(pt==="*"||!oe||We.test(ee))&&(pe=!1)),pe!=null||ne!=null){ye.highlightFormatting&&(ce.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(ce.em=pt),pe===!0&&(ce.strong=pt);var bt=Ae(ce);return ne===!1&&(ce.em=!1),pe===!1&&(ce.strong=!1),bt}}else if(pt===" "&&(me.eat("*")||me.eat("_"))){if(me.peek()===" ")return Ae(ce);me.backUp(1)}if(ye.strikethrough){if(pt==="~"&&me.eatWhile(pt)){if(ce.strikethrough){ye.highlightFormatting&&(ce.formatting="strikethrough");var bt=Ae(ce);return ce.strikethrough=!1,bt}else if(me.match(/^[^\s]/,!1))return ce.strikethrough=!0,ye.highlightFormatting&&(ce.formatting="strikethrough"),Ae(ce)}else if(pt===" "&&me.match(/^~~/,!0)){if(me.peek()===" ")return Ae(ce);me.backUp(2)}}if(ye.emoji&&pt===":"&&me.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ye.highlightFormatting&&(ce.formatting="emoji");var ge=Ae(ce);return ce.emoji=!1,ge}return pt===" "&&(me.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),Ae(ce)}function ke(me,ce){var _e=me.next();if(_e===">"){ce.f=ce.inline=ht,ye.highlightFormatting&&(ce.formatting="link");var Et=Ae(ce);return Et?Et+=" ":Et="",Et+Ee.linkInline}return me.match(/^[^>]+/,!0),Ee.linkInline}function Fe(me,ce){if(me.eatSpace())return null;var _e=me.next();return _e==="("||_e==="["?(ce.f=ce.inline=le(_e==="("?")":"]"),ye.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,Ae(ce)):"error"}var $e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function le(me){return function(ce,_e){var Et=ce.next();if(Et===me){_e.f=_e.inline=ht,ye.highlightFormatting&&(_e.formatting="link-string");var pt=Ae(_e);return _e.linkHref=!1,pt}return ce.match($e[me]),_e.linkHref=!0,Ae(_e)}}function ze(me,ce){return me.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=De,me.next(),ye.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,Ae(ce)):Ct(me,ce,ht)}function De(me,ce){if(me.match(/^\]:/,!0)){ce.f=ce.inline=we,ye.highlightFormatting&&(ce.formatting="link");var _e=Ae(ce);return ce.linkText=!1,_e}return me.match(/^([^\]\\]|\\.)+/,!0),Ee.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,Ee.linkHref+" url")}var ut={startState:function(){return{f:tt,prevLine:{stream:null},thisLine:{stream:null},block:tt,htmlState:null,indentation:0,inline:ht,text:je,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(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 rt(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!=Ge)){var _e=me.match(/^\s*/,!0)[0].replace(/\t/g,ct).length;if(ce.indentation=_e,ce.indentationDiff=null,_e>0)return null}}return ce.f(me,ce)},innerMode:function(me){return me.block==Ge?{state:me.htmlState,mode:et}:me.localState?{state:me.localState,mode:me.localMode}:{state:me,mode:ut}},indent:function(me,ce,_e){return me.block==Ge&&et.indent?et.indent(me.htmlState,ce,_e):me.localState&&me.localMode.indent?me.localMode.indent(me.localState,ce,_e):E.Pass},blankLine:rt,getType:Ae,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ut},"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 at=0;at<E.modeInfo.length;at++){var ye=E.modeInfo[at];ye.mimes&&(ye.mime=ye.mimes[0])}E.findModeByMIME=function(et){et=et.toLowerCase();for(var Se=0;Se<E.modeInfo.length;Se++){var Oe=E.modeInfo[Se];if(Oe.mime==et)return Oe;if(Oe.mimes){for(var Ee=0;Ee<Oe.mimes.length;Ee++)if(Oe.mimes[Ee]==et)return Oe}}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 Oe=E.modeInfo[Se];if(Oe.ext){for(var Ee=0;Ee<Oe.ext.length;Ee++)if(Oe.ext[Ee]==et)return Oe}}},E.findModeByFileName=function(et){for(var Se=0;Se<E.modeInfo.length;Se++){var Oe=E.modeInfo[Se];if(Oe.file&&Oe.file.test(et))return Oe}var Ee=et.lastIndexOf("."),Ze=Ee>-1&&et.substring(Ee+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 Oe=E.modeInfo[Se];if(Oe.name.toLowerCase()==et)return Oe;if(Oe.alias){for(var Ee=0;Ee<Oe.alias.length;Ee++)if(Oe.alias[Ee].toLowerCase()==et)return Oe}}}})},67549:function(nn,zt,re){(function(E){E(re(89780))})(function(E){"use strict";E.defineMode("stex",function(at,ye){"use strict";function et(qe,Ne){qe.cmdState.push(Ne)}function Se(qe){return qe.cmdState.length>0?qe.cmdState[qe.cmdState.length-1]:null}function Oe(qe){var Ne=qe.cmdState.pop();Ne&&Ne.closeBracket()}function Ee(qe){for(var Ne=qe.cmdState,Ve=Ne.length-1;Ve>=0;Ve--){var We=Ne[Ve];if(We.name!="DEFAULT")return We}return{styleIdentifier:function(){return null}}}function Ze(qe,Ne,Ve){return function(){this.name=qe,this.bracketNo=0,this.style=Ne,this.styles=Ve,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=Ze("importmodule","tag",["string","builtin"]),Ie.documentclass=Ze("documentclass","tag",["","atom"]),Ie.usepackage=Ze("usepackage","tag",["atom"]),Ie.begin=Ze("begin","tag",["atom"]),Ie.end=Ze("end","tag",["atom"]),Ie.label=Ze("label","tag",["atom"]),Ie.ref=Ze("ref","tag",["atom"]),Ie.eqref=Ze("eqref","tag",["atom"]),Ie.cite=Ze("cite","tag",["atom"]),Ie.bibitem=Ze("bibitem","tag",["atom"]),Ie.Bibitem=Ze("Bibitem","tag",["atom"]),Ie.RBibitem=Ze("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(qe,Ne){qe.f=Ne}function Je(qe,Ne){var Ve;if(qe.match(/^\\[a-zA-Z@]+/)){var We=qe.current().slice(1);return Ve=Ie.hasOwnProperty(We)?Ie[We]:Ie.DEFAULT,Ve=new Ve,et(Ne,Ve),he(Ne,xt),Ve.style}if(qe.match(/^\\[$&%#{}_]/)||qe.match(/^\\[,;!\/\\]/))return"tag";if(qe.match("\\["))return he(Ne,function(Ct,Dt){return xe(Ct,Dt,"\\]")}),"keyword";if(qe.match("\\("))return he(Ne,function(Ct,Dt){return xe(Ct,Dt,"\\)")}),"keyword";if(qe.match("$$"))return he(Ne,function(Ct,Dt){return xe(Ct,Dt,"$$")}),"keyword";if(qe.match("$"))return he(Ne,function(Ct,Dt){return xe(Ct,Dt,"$")}),"keyword";var ct=qe.next();if(ct=="%")return qe.skipToEnd(),"comment";if(ct=="}"||ct=="]"){if(Ve=Se(Ne),Ve)Ve.closeBracket(ct),he(Ne,xt);else return"error";return"bracket"}else return ct=="{"||ct=="["?(Ve=Ie.DEFAULT,Ve=new Ve,et(Ne,Ve),"bracket"):/\d/.test(ct)?(qe.eatWhile(/[\w.%]/),"atom"):(qe.eatWhile(/[\w\-_]/),Ve=Ee(Ne),Ve.name=="begin"&&(Ve.argument=qe.current()),Ve.styleIdentifier())}function xe(qe,Ne,Ve){if(qe.eatSpace())return null;if(Ve&&qe.match(Ve))return he(Ne,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 We=qe.next();return We=="{"||We=="}"||We=="["||We=="]"||We=="("||We==")"?"bracket":We=="%"?(qe.skipToEnd(),"comment"):"error"}function xt(qe,Ne){var Ve=qe.peek(),We;return Ve=="{"||Ve=="["?(We=Se(Ne),We.openBracket(Ve),qe.eat(Ve),he(Ne,Je),"bracket"):/[ \t\r]/.test(Ve)?(qe.eat(Ve),null):(he(Ne,Je),Oe(Ne),Je(qe,Ne))}return{startState:function(){var qe=ye.inMathMode?function(Ne,Ve){return xe(Ne,Ve)}:Je;return{cmdState:[],f:qe}},copyState:function(qe){return{cmdState:qe.cmdState.slice(),f:qe.f}},token:function(qe,Ne){return Ne.f(qe,Ne)},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 at={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 Oe=et.indentUnit,Ee={},Ze=Se.htmlMode?at:ye;for(var Ie in Ze)Ee[Ie]=Ze[Ie];for(var Ie in Se)Ee[Ie]=Se[Ie];var he,Je;function xe(ke,Fe){function $e(De){return Fe.tokenize=De,De(ke,Fe)}var le=ke.next();if(le=="<")return ke.eat("!")?ke.eat("[")?ke.match("CDATA[")?$e(Ne("atom","]]>")):null:ke.match("--")?$e(Ne("comment","-->")):ke.match("DOCTYPE",!0,!0)?(ke.eatWhile(/[\w\._\-]/),$e(Ve(1))):null:ke.eat("?")?(ke.eatWhile(/[\w\._\-]/),Fe.tokenize=Ne("meta","?>"),"meta"):(he=ke.eat("/")?"closeTag":"openTag",Fe.tokenize=xt,"tag bracket");if(le=="&"){var ze;return ke.eat("#")?ke.eat("x")?ze=ke.eatWhile(/[a-fA-F\d]/)&&ke.eat(";"):ze=ke.eatWhile(/[\d]/)&&ke.eat(";"):ze=ke.eatWhile(/[\w\.\-:]/)&&ke.eat(";"),ze?"atom":"error"}else return ke.eatWhile(/[^&<]/),null}xe.isInText=!0;function xt(ke,Fe){var $e=ke.next();if($e==">"||$e=="/"&&ke.eat(">"))return Fe.tokenize=xe,he=$e==">"?"endTag":"selfcloseTag","tag bracket";if($e=="=")return he="equals",null;if($e=="<"){Fe.tokenize=xe,Fe.state=Dt,Fe.tagName=Fe.tagStart=null;var le=Fe.tokenize(ke,Fe);return le?le+" tag error":"tag error"}else return/[\'\"]/.test($e)?(Fe.tokenize=qe($e),Fe.stringStartCol=ke.column(),Fe.tokenize(ke,Fe)):(ke.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function qe(ke){var Fe=function($e,le){for(;!$e.eol();)if($e.next()==ke){le.tokenize=xt;break}return"string"};return Fe.isInAttribute=!0,Fe}function Ne(ke,Fe){return function($e,le){for(;!$e.eol();){if($e.match(Fe)){le.tokenize=xe;break}$e.next()}return ke}}function Ve(ke){return function(Fe,$e){for(var le;(le=Fe.next())!=null;){if(le=="<")return $e.tokenize=Ve(ke+1),$e.tokenize(Fe,$e);if(le==">")if(ke==1){$e.tokenize=xe;break}else return $e.tokenize=Ve(ke-1),$e.tokenize(Fe,$e)}return"meta"}}function We(ke,Fe,$e){this.prev=ke.context,this.tagName=Fe,this.indent=ke.indented,this.startOfLine=$e,(Ee.doNotIndent.hasOwnProperty(Fe)||ke.context&&ke.context.noIndent)&&(this.noIndent=!0)}function ct(ke){ke.context&&(ke.context=ke.context.prev)}function Ct(ke,Fe){for(var $e;;){if(!ke.context||($e=ke.context.tagName,!Ee.contextGrabbers.hasOwnProperty($e)||!Ee.contextGrabbers[$e].hasOwnProperty(Fe)))return;ct(ke)}}function Dt(ke,Fe,$e){return ke=="openTag"?($e.tagStart=Fe.column(),ft):ke=="closeTag"?rt:Dt}function ft(ke,Fe,$e){return ke=="word"?($e.tagName=Fe.current(),Je="tag",vt):Ee.allowMissingTagName&&ke=="endTag"?(Je="tag bracket",vt(ke,Fe,$e)):(Je="error",ft)}function rt(ke,Fe,$e){if(ke=="word"){var le=Fe.current();return $e.context&&$e.context.tagName!=le&&Ee.implicitlyClosed.hasOwnProperty($e.context.tagName)&&ct($e),$e.context&&$e.context.tagName==le||Ee.matchClosing===!1?(Je="tag",tt):(Je="tag error",Ge)}else return Ee.allowMissingTagName&&ke=="endTag"?(Je="tag bracket",tt(ke,Fe,$e)):(Je="error",Ge)}function tt(ke,Fe,$e){return ke!="endTag"?(Je="error",tt):(ct($e),Dt)}function Ge(ke,Fe,$e){return Je="error",tt(ke,Fe,$e)}function vt(ke,Fe,$e){if(ke=="word")return Je="attribute",Ae;if(ke=="endTag"||ke=="selfcloseTag"){var le=$e.tagName,ze=$e.tagStart;return $e.tagName=$e.tagStart=null,ke=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(le)?Ct($e,le):(Ct($e,le),$e.context=new We($e,le,ze==$e.indented)),Dt}return Je="error",vt}function Ae(ke,Fe,$e){return ke=="equals"?je:(Ee.allowMissing||(Je="error"),vt(ke,Fe,$e))}function je(ke,Fe,$e){return ke=="string"?ht:ke=="word"&&Ee.allowUnquoted?(Je="string",vt):(Je="error",vt(ke,Fe,$e))}function ht(ke,Fe,$e){return ke=="string"?ht:vt(ke,Fe,$e)}return{startState:function(ke){var Fe={tokenize:xe,state:Dt,indented:ke||0,tagName:null,tagStart:null,context:null};return ke!=null&&(Fe.baseIndent=ke),Fe},token:function(ke,Fe){if(!Fe.tagName&&ke.sol()&&(Fe.indented=ke.indentation()),ke.eatSpace())return null;he=null;var $e=Fe.tokenize(ke,Fe);return($e||he)&&$e!="comment"&&(Je=null,Fe.state=Fe.state(he||$e,ke,Fe),Je&&($e=Je=="error"?$e+" error":Je)),$e},indent:function(ke,Fe,$e){var le=ke.context;if(ke.tokenize.isInAttribute)return ke.tagStart==ke.indented?ke.stringStartCol+1:ke.indented+Oe;if(le&&le.noIndent)return E.Pass;if(ke.tokenize!=xt&&ke.tokenize!=xe)return $e?$e.match(/^(\s*)/)[0].length:0;if(ke.tagName)return Ee.multilineTagIndentPastTag!==!1?ke.tagStart+ke.tagName.length+2:ke.tagStart+Oe*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(Fe))return 0;var ze=Fe&&/^<(\/)?([\w_:\.-]*)/.exec(Fe);if(ze&&ze[1])for(;le;)if(le.tagName==ze[2]){le=le.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(le.tagName))le=le.prev;else break;else if(ze)for(;le;){var De=Ee.contextGrabbers[le.tagName];if(De&&De.hasOwnProperty(ze[2]))le=le.prev;else break}for(;le&&le.prev&&!le.startOfLine;)le=le.prev;return le?le.indent+Oe:ke.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(ke){ke.state==je&&(ke.state=vt)},xmlCurrentTag:function(ke){return ke.tagName?{name:ke.tagName,close:ke.type=="closeTag"}:null},xmlCurrentContext:function(ke){for(var Fe=[],$e=ke.context;$e;$e=$e.prev)$e.tagName&&Fe.push($e.tagName);return Fe.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 lt}});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 at(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(Ce){try{Qe(oe.next(Ce))}catch(Ke){ne(Ke)}}function ge(Ce){try{Qe(oe.throw(Ce))}catch(Ke){ne(Ke)}}function Qe(Ce){var Ke;Ce.done?ue(Ce.value):(Ke=Ce.value,Ke instanceof ee?Ke:new ee(function(ot){ot(Ke)})).then(pe,ge)}Qe((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(Qe){return function(Ce){return function(Ke){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(ue=2&Ke[0]?oe.return:Ke[0]?oe.throw||((ue=oe.return)&&ue.call(oe),0):oe.next)&&!(ue=ue.call(oe,Ke[1])).done)return ue;switch(oe=0,ue&&(Ke=[2&Ke[0],ue.value]),Ke[0]){case 0:case 1:ue=Ke;break;case 4:return pe.label++,{value:Ke[1],done:!1};case 5:pe.label++,oe=Ke[1],Ke=[0];continue;case 7:Ke=pe.ops.pop(),pe.trys.pop();continue;default:if(ue=pe.trys,!((ue=ue.length>0&&ue[ue.length-1])||Ke[0]!==6&&Ke[0]!==2)){pe=0;continue}if(Ke[0]===3&&(!ue||Ke[1]>ue[0]&&Ke[1]<ue[3])){pe.label=Ke[1];break}if(Ke[0]===6&&pe.label<ue[1]){pe.label=ue[1],ue=Ke;break}if(ue&&pe.label<ue[2]){pe.label=ue[2],pe.ops.push(Ke);break}ue[2]&&pe.ops.pop(),pe.trys.pop();continue}Ke=te.call(ae,pe)}catch(ot){Ke=[6,ot],oe=0}finally{ee=ue=0}if(5&Ke[0])throw Ke[1];return{value:Ke[0]?Ke[1]:void 0,done:!0}}([Qe,Ce])}}}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 Oe=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 Qe=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(Qe,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",ue.toString()],["refX",ne.toString()],["refY",pe.toString()]]),Qe.appendChild(ge),Qe},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),Ee=function(){function ae(){}return ae.addKey=function(te){ae.key=te},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),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 Qe=ge.outerHTML,Ce=pe.getContext("2d");ue.markersOnly!==!0&&Ce.drawImage(te,0,0,pe.width,pe.height);var Ke=window.URL,ot=new Image(pe.width,pe.height);ot.setAttribute("crossOrigin","anonymous");var St=new Blob([Qe],{type:"image/svg+xml"}),gt=Ke.createObjectURL(St);ot.onload=function(){Ce.drawImage(ot,0,0),Ke.revokeObjectURL(gt);var Wt=pe.toDataURL(ue.imageType,ue.imageQuality);ne(Wt)},ot.src=gt})},ae}(),Ie=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 xe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new xe("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},xe=function(ae,te){this.localName=ae,this.style=te},xt=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 xe("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 xe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new xe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new xe("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 xe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new xe("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 xe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new xe("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 xe("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 xe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xe("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 xe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new xe("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 xe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xe("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,Qe;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((ge=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ge!==void 0?ge:ee.toolboxActiveButtonStyleColorsClass.name):""+((Qe=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Qe!==void 0?Qe:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Ne=function(ae,te){this.title=ae,this.icon=te},Ve=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 at(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}(Ne),We=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}(),ct=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}(),Ct=function(){function ae(){this.GRIP_SIZE=10,this.visual=Oe.createGroup(),this.visual.appendChild(Oe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Oe.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}(),Dt=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(Oe.createTransform()),ne.setupControlBox(),ne}return at(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=Oe.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=Oe.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=Oe.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=Oe.createGroup();var ee=Oe.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Oe.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=Oe.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 ct,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 Ct;return ee.visual.transform.baseVal.appendItem(Oe.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,Qe=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,Qe,ue),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,Qe,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ge),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,ge),this.positionGrip(this.controlGrips.bottomRight.visual,Qe,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:Dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Dt.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(Dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Dt.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}(We),rt=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 at(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Oe.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),Oe.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&&Oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Oe.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 at(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 Qe=document.createElement("hr");Qe.style.minWidth="20px",Qe.style.border="0px",Qe.style.borderTop=ue+"px solid "+ee.uiStyleSettings.toolboxColor,Qe.style.flexGrow="2",ge.appendChild(Qe),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}(Ne),Ge=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 at(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}(Ne),vt=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 Ve("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 Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return at(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}(rt),Ae=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},je=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 at(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=Oe.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 Ct;return ee.visual.transform.baseVal.appendItem(Oe.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}(We),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 Ve("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 Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return at(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=Oe.createGroup(),this.selectorLine=Oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Oe.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()),Oe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Oe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Oe.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}(je),ke=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 at(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}(Ne),Fe=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 Ve("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new ke("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return at(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=Oe.createGroup(),this.bgRectangle=Oe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Oe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Oe.createTransform()),this.textElement.transform.baseVal.appendItem(Oe.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(Oe.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&&(Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.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&&Oe.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&&Oe.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 Ve("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 at(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=Oe.createGroup(),this.drawingImage=Oe.createImage(),this.visual.appendChild(this.drawingImage);var ee=Oe.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),Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.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],Qe=!1,Ce=0;Ce<this.canvasElement.height;Ce++)for(var Ke=0;Ke<this.canvasElement.width;Ke++)ee.data[Ce*this.canvasElement.width*4+4*Ke+3]>0&&(Qe=!0,Ce<ne&&(ne=Ce),Ke<ue&&(ue=Ke),Ce>ge&&(ge=Ce),Ke>pe&&(pe=Ke));if(Qe){this.left=ue/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-ue)/this.pixelRatio,this.height=(ge-ne)/this.pixelRatio;var ot=document.createElement("canvas");ot.width=pe-ue,ot.height=ge-ne,ot.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ne,pe-ue,ge-ne),0,0),this.drawingImgUrl=ot.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.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),le=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 at(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 Qe="both";switch(ge){case 0:Qe="both";break;case 1:Qe="start";break;case 2:Qe="end";break;case 3:Qe="none"}var Ce=document.createElement("div");if(Ce.style.display="flex",Ce.style.flexGrow="2",Ce.style.alignItems="center",Ce.style.justifyContent="space-between",Ce.style.padding="5px",Ce.style.borderWidth="2px",Ce.style.borderStyle="solid",Ce.style.borderColor=Qe===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ce.addEventListener("click",function(){ee.setCurrentType(Qe,Ce)}),oe.appendChild(Ce),Qe==="both"||Qe==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.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>`,Ke.style.marginLeft="5px",Ce.appendChild(Ke)}var ot=document.createElement("div");ot.style.display="flex",ot.style.alignItems="center",ot.style.minHeight="20px",ot.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",ot.appendChild(St),Ce.appendChild(ot),Qe==="both"||Qe==="end"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.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>`,gt.style.marginRight="5px",Ce.appendChild(gt)}ne.typeBoxes.push(Ce)},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}(Ne),ze=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 le("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return at(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=Oe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Oe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Oe.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",Oe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Oe.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 Ve("Color",ue.defaultColorSet,ue.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return at(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}(rt),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 at(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}(Ne),ut=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 Ve("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 at(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Oe.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>',_e=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 Ve("Text color",ue.defaultColorSet,ne.color,me),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ve("Fill color",ue.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new ke("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Ct,ne.tipGrip.visual.transform.baseVal.appendItem(Oe.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return at(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(){Oe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Oe.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&&(Oe.setAttributes(this.bgRectangle,[["fill",ee]]),Oe.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(){Oe.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}(Fe),Et=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 Ve("Line color",Se(ue.defaultColorSet,["transparent"]),ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ve("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 Ge("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 at(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Oe.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),Oe.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&&Oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Oe.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),pt=function(ae){function te(ee,oe,ue){return ae.call(this,ee,oe,ue)||this}return at(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=Oe.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(Oe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Oe.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(Oe.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&&(Oe.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()]]),Oe.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 at(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}(Et),Le=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}(),Re=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 Ve("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 Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return at(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=Oe.createGroup(),this.selectorCurve=Oe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Oe.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()),Oe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Oe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Oe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Oe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Oe.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}(je),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 Ve("Line color",Se(ue.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ve("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 Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new ke("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ve("Text color",ue.defaultColorSet,ne.textColor,me),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return at(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=Oe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Oe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Oe.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=Oe.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),Oe.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')"]]),Oe.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&&Oe.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&&Oe.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),Oe.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&&Oe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Oe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Oe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Oe.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),bt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Bt=function(ae){function te(ee,oe,ue){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=ue,ne}return at(te,ae),te}(bt),Te=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 at(te,ae),te}(bt),Ot=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}(),lt=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 Ae,this._isOpen=!1,this.undoRedoManager=new Le,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 Ot,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[vt,$e,ze,Fe,ve,Et,ut,_e,pt,De,ht,Re,wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[vt,$e,ze,Fe,Et,ut,_e]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[vt,$e,ze,Fe,ut]},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(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new bt(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 bt(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 bt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,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 Fe?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=Oe.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 xt(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 Te(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 Te(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 Te(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(Qe){return Qe(new Te(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 bt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new bt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new bt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return 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 Bt(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 bt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Oe.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 Te(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 Te(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 Te(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 Te(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 Te(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Ee.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new bt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new bt(te))}))},ae.instanceCounter=0,ae}()},6551:function(nn,zt,re){"use strict";re.d(zt,{ZP:function(){return Ee}});var E=re(72190),at=re(59301),ye=re(47273),et=0,Se=(0,ye.Z)();function Oe(){var Ze;return Se?(Ze=et,et+=1):Ze="TEST_OR_SSR",Ze}function Ee(Ze){var Ie=at.useState(),he=(0,E.Z)(Ie,2),Je=he[0],xe=he[1];return at.useEffect(function(){xe("rc_select_".concat(Oe()))},[]),Ze||Je}},37463:function(nn,zt,re){"use strict";re.d(zt,{Ac:function(){return kt},Xo:function(){return Vt},Wx:function(){return dt},ZP:function(){return hn},lk:function(){return Dt}});var E=re(60499),at=re(77654),ye=re(18642),et=re(85899),Se=re(72190),Oe=re(42244),Ee=re(43749),Ze=re(18929),Ie=re(48736),he=re(59301),Je=re(92310),xe=re.n(Je),xt=re(34280),qe=re(49658),Ne=re(8654),Ve=function(st){var Pe=st.className,Xe=st.customizeIcon,Me=st.customizeIconProps,Ye=st.children,Pt=st.onMouseDown,an=st.onClick,un=typeof Xe=="function"?Xe(Me):Xe;return he.createElement("span",{className:Pe,onMouseDown:function(Qt){Qt.preventDefault(),Pt==null||Pt(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:an,"aria-hidden":!0},un!==void 0?un:he.createElement("span",{className:xe()(Pe.split(/\s+/).map(function(vn){return"".concat(vn,"-icon")}))},Ye))},We=Ve,ct=function(st,Pe,Xe,Me,Ye){var Pt=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,Ee.Z)(Me)==="object")return Me.clearIcon;if(Ye)return Ye},[Me,Ye]),Qt=he.useMemo(function(){return!!(!Pt&&Me&&(Xe.length||an)&&!(un==="combobox"&&an===""))},[Me,Pt,Xe.length,an,un]);return{allowClear:Qt,clearIcon:he.createElement(We,{className:"".concat(st,"-clear"),onMouseDown:Pe,customizeIcon:vn},"\xD7")}},Ct=he.createContext(null);function Dt(){return he.useContext(Ct)}function ft(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,st=he.useState(!1),Pe=(0,Se.Z)(st,2),Xe=Pe[0],Me=Pe[1],Ye=he.useRef(null),Pt=function(){window.clearTimeout(Ye.current)};he.useEffect(function(){return Pt},[]);var an=function(vn,Qt){Pt(),Ye.current=window.setTimeout(function(){Me(vn),Qt&&Qt()},Ue)};return[Xe,an,Pt]}function rt(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,st=he.useRef(null),Pe=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(Pe.current)}},[]);function Xe(Me){(Me||st.current===null)&&(st.current=Me),window.clearTimeout(Pe.current),Pe.current=window.setTimeout(function(){st.current=null},Ue)}return[function(){return st.current},Xe]}function tt(Ue,st,Pe,Xe){var Me=he.useRef(null);Me.current={open:st,triggerOpen:Pe,customizedTrigger:Xe},he.useEffect(function(){function Ye(Pt){var an;if(!((an=Me.current)!==null&&an!==void 0&&an.customizedTrigger)){var un=Pt.target;un.shadowRoot&&Pt.composed&&(un=Pt.composedPath()[0]||un),Me.current.open&&Ue().filter(function(vn){return vn}).every(function(vn){return!vn.contains(un)&&vn!==un})&&Me.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ye),function(){return window.removeEventListener("mousedown",Ye)}},[])}var Ge=re(10228);function vt(Ue){return Ue&&![Ge.Z.ESC,Ge.Z.SHIFT,Ge.Z.BACKSPACE,Ge.Z.TAB,Ge.Z.WIN_KEY,Ge.Z.ALT,Ge.Z.META,Ge.Z.WIN_KEY_RIGHT,Ge.Z.CTRL,Ge.Z.SEMICOLON,Ge.Z.EQUALS,Ge.Z.CAPS_LOCK,Ge.Z.CONTEXT_MENU,Ge.Z.F1,Ge.Z.F2,Ge.Z.F3,Ge.Z.F4,Ge.Z.F5,Ge.Z.F6,Ge.Z.F7,Ge.Z.F8,Ge.Z.F9,Ge.Z.F10,Ge.Z.F11,Ge.Z.F12].includes(Ue)}var Ae=re(26112),je=re(83836);function ht(Ue,st,Pe){var Xe=(0,et.Z)((0,et.Z)({},Ue),Pe?st:{});return Object.keys(st).forEach(function(Me){var Ye=st[Me];typeof Ye=="function"&&(Xe[Me]=function(){for(var Pt,an=arguments.length,un=new Array(an),vn=0;vn<an;vn++)un[vn]=arguments[vn];return Ye.apply(void 0,un),(Pt=Ue[Me])===null||Pt===void 0?void 0:Pt.call.apply(Pt,[Ue].concat(un))})}),Xe}var ke=ht,Fe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],$e=function(st,Pe){var Xe=st.prefixCls,Me=st.id,Ye=st.inputElement,Pt=st.autoFocus,an=st.autoComplete,un=st.editable,vn=st.activeDescendantId,Qt=st.value,Ft=st.open,Lt=st.attrs,fn=(0,Oe.Z)(st,Fe),Tn=Ye||he.createElement("input",null),Dn=Tn,Bn=Dn.ref,Xn=Dn.props;return(0,Ie.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"},ke(fn,Xn,!0)),{},{id:Me,ref:(0,Ne.sQ)(Pe,Bn),autoComplete:an||"off",autoFocus:Pt,className:xe()("".concat(Xe,"-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},Lt),{},{value:un?Qt:"",readOnly:!un,unselectable:un?null:"on",style:(0,et.Z)((0,et.Z)({},Xn.style),{},{opacity:un?null:0})})),Tn},le=he.forwardRef($e),ze=le;function De(Ue){return Array.isArray(Ue)?Ue:Ue!==void 0?[Ue]:[]}var we=typeof window!="undefined"&&window.document&&window.document.documentElement,ut=we;function me(Ue){return Ue!=null}function ce(Ue){return!Ue&&Ue!==0}function _e(Ue){return["string","number"].includes((0,Ee.Z)(Ue))}function Et(Ue){var st=void 0;return Ue&&(_e(Ue.title)?st=Ue.title.toString():_e(Ue.label)&&(st=Ue.label.toString())),st}function pt(Ue,st){ut?he.useLayoutEffect(Ue,st):he.useEffect(Ue,st)}function ve(Ue){var st;return(st=Ue.key)!==null&&st!==void 0?st:Ue.value}var Le=function(st){st.preventDefault(),st.stopPropagation()},Re=function(st){var Pe=st.id,Xe=st.prefixCls,Me=st.values,Ye=st.open,Pt=st.searchValue,an=st.autoClearSearchValue,un=st.inputRef,vn=st.placeholder,Qt=st.disabled,Ft=st.mode,Lt=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(Xe,"-selection"),Ar=Ye||Ft==="multiple"&&an===!1||Ft==="tags"?Pt:"",Ir=Ft==="tags"||Ft==="multiple"&&an===!1||Lt&&(Ye||Rr);pt(function(){dr(cr.current.scrollWidth)},[Ar]);var Dr=function(sn,_n,jn,mn,yn){return he.createElement("span",{title:Et(sn),className:xe()("".concat(Er,"-item"),(0,ye.Z)({},"".concat(Er,"-item-disabled"),jn))},he.createElement("span",{className:"".concat(Er,"-item-content")},_n),mn&&he.createElement(We,{className:"".concat(Er,"-item-remove"),onMouseDown:Le,onClick:yn,customizeIcon:Xn},"\xD7"))},_r=function(sn,_n,jn,mn,yn,Nn){var Rn=function(Pr){Le(Pr),Un(!Ye)};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(ze,{ref:un,open:Ye,prefixCls:Xe,id:Pe,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,Ae.Z)(st,!0)}),he.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),En=he.createElement(je.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=Re,bt=function(st){var Pe=st.inputElement,Xe=st.prefixCls,Me=st.id,Ye=st.inputRef,Pt=st.disabled,an=st.autoFocus,un=st.autoComplete,vn=st.activeDescendantId,Qt=st.mode,Ft=st.open,Lt=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=Lt[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?Et(vr):lr,Gn=he.useMemo(function(){return vr?null:he.createElement("span",{className:"".concat(Xe,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},fn)},[vr,or,fn,Xe]);return he.createElement("span",{className:"".concat(Xe,"-selection-wrap")},he.createElement("span",{className:"".concat(Xe,"-selection-search")},he.createElement(ze,{ref:Ye,prefixCls:Xe,id:Me,open:Ft,inputElement:Pe,disabled:Pt,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,Ae.Z)(st,!0),maxLength:mr?Qn:void 0})),!mr&&vr?he.createElement("span",{className:"".concat(Xe,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Gn)},Bt=bt,Te=function(st,Pe){var Xe=(0,he.useRef)(null),Me=(0,he.useRef)(!1),Ye=st.prefixCls,Pt=st.open,an=st.mode,un=st.showSearch,vn=st.tokenWithEnter,Qt=st.disabled,Ft=st.prefix,Lt=st.autoClearSearchValue,fn=st.onSearch,Tn=st.onSearchSubmit,Dn=st.onToggleOpen,Bn=st.onInputKeyDown,Xn=st.onInputBlur,Qn=st.domRef;he.useImperativeHandle(Pe,function(){return{focus:function(dr){Xe.current.focus(dr)},blur:function(){Xe.current.blur()}}});var Jn=rt(0),Zn=(0,Se.Z)(Jn,2),Fn=Zn[0],Hn=Zn[1],Un=function(dr){var Gn=dr.which,Sr=Xe.current instanceof HTMLTextAreaElement;!Sr&&Pt&&(Gn===Ge.Z.UP||Gn===Ge.Z.DOWN)&&dr.preventDefault(),Bn&&Bn(dr),Gn===Ge.Z.ENTER&&an==="tags"&&!Me.current&&!Pt&&(Tn==null||Tn(dr.target.value)),!(Sr&&!Pt&&~[Ge.Z.UP,Ge.Z.DOWN,Ge.Z.LEFT,Ge.Z.RIGHT].indexOf(Gn))&&vt(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!==Xe.current){var Sr=document.body.style.msTouchAction!==void 0;Sr?setTimeout(function(){Xe.current.focus()}):Xe.current.focus()}},cr=function(dr){var Gn=Fn();dr.target!==Xe.current&&!Gn&&!(an==="combobox"&&Qt)&&dr.preventDefault(),(an!=="combobox"&&(!un||!Gn)||!Pt)&&(Pt&&Lt!==!1&&fn("",!0,!1),Dn())},vr={inputRef:Xe,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(Bt,(0,E.Z)({},st,vr));return he.createElement("div",{ref:Qn,className:"".concat(Ye,"-selector"),onClick:mr,onMouseDown:cr},Ft&&he.createElement("div",{className:"".concat(Ye,"-prefix")},Ft),Cr)},Ot=he.forwardRef(Te),lt=Ot,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 Pe=st===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pe,adjustY:1},htmlRegion:"scroll"}}},oe=function(st,Pe){var Xe=st.prefixCls,Me=st.disabled,Ye=st.visible,Pt=st.children,an=st.popupElement,un=st.animation,vn=st.transitionName,Qt=st.dropdownStyle,Ft=st.dropdownClassName,Lt=st.direction,fn=Lt===void 0?"ltr":Lt,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,Oe.Z)(st,te),qn="".concat(Xe,"-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(Pe,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:Ye,getPopupContainer:Jn,popupClassName:xe()(Ft,(0,ye.Z)({},"".concat(qn,"-empty"),Zn)),popupStyle:mr,getTriggerDOMNode:Fn,onPopupVisibleChange:Hn}),Pt)},ue=he.forwardRef(oe),ne=ue,pe=re(48745);function ge(Ue,st){var Pe=Ue.key,Xe;return"value"in Ue&&(Xe=Ue.value),Pe!=null?Pe:Xe!==void 0?Xe:"rc-index-key-".concat(st)}function Qe(Ue){return typeof Ue!="undefined"&&!Number.isNaN(Ue)}function Ce(Ue,st){var Pe=Ue||{},Xe=Pe.label,Me=Pe.value,Ye=Pe.options,Pt=Pe.groupLabel,an=Xe||(st?"children":"label");return{label:an,value:Me||"value",options:Ye||"options",groupLabel:Pt||an}}function Ke(Ue){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pe=st.fieldNames,Xe=st.childrenAsData,Me=[],Ye=Ce(Pe,!1),Pt=Ye.label,an=Ye.value,un=Ye.options,vn=Ye.groupLabel;function Qt(Ft,Lt){Array.isArray(Ft)&&Ft.forEach(function(fn){if(Lt||!(un in fn)){var Tn=fn[an];Me.push({key:ge(fn,Me.length),groupOption:Lt,data:fn,label:fn[Pt],value:Tn})}else{var Dn=fn[vn];Dn===void 0&&Xe&&(Dn=fn.label),Me.push({key:ge(fn,Me.length),group:!0,data:fn,label:Dn}),Qt(fn[un],!0)}})}return Qt(Ue,!1),Me}function ot(Ue){var st=(0,et.Z)({},Ue);return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,Ie.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,Pe,Xe){if(!Pe||!Pe.length)return null;var Me=!1,Ye=function an(un,vn){var Qt=(0,pe.Z)(vn),Ft=Qt[0],Lt=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,at.Z)(Tn),(0,at.Z)(an(Dn,Lt)))},[]).filter(Boolean)},Pt=Ye(st,Pe);return Me?typeof Xe!="undefined"?Pt.slice(0,Xe):Pt:null},gt=he.createContext(null),Wt=gt;function Zt(Ue){var st=Ue.visible,Pe=Ue.values;if(!st)return null;var Xe=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Pe.slice(0,Xe).map(function(Me){var Ye=Me.label,Pt=Me.value;return["number","string"].includes((0,Ee.Z)(Ye))?Ye:Pt}).join(", ")),Pe.length>Xe?", ...":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(Ue,st){var Pe,Xe=Ue.id,Me=Ue.prefixCls,Ye=Ue.className,Pt=Ue.showSearch,an=Ue.tagRender,un=Ue.direction,vn=Ue.omitDomProps,Qt=Ue.displayValues,Ft=Ue.onDisplayValuesChange,Lt=Ue.emptyOptions,fn=Ue.notFoundContent,Tn=fn===void 0?"Not Found":fn,Dn=Ue.onClear,Bn=Ue.mode,Xn=Ue.disabled,Qn=Ue.loading,Jn=Ue.getInputElement,Zn=Ue.getRawInputElement,Fn=Ue.open,Hn=Ue.defaultOpen,Un=Ue.onDropdownVisibleChange,ur=Ue.activeValue,qn=Ue.onActiveValueChange,lr=Ue.activeDescendantId,ir=Ue.searchValue,er=Ue.autoClearSearchValue,tr=Ue.onSearch,gr=Ue.onSearchSplit,mr=Ue.tokenSeparators,cr=Ue.allowClear,vr=Ue.prefix,Cr=Ue.suffixIcon,or=Ue.clearIcon,dr=Ue.OptionList,Gn=Ue.animation,Sr=Ue.transitionName,Rr=Ue.dropdownStyle,Hr=Ue.dropdownClassName,Er=Ue.dropdownMatchSelectWidth,Ar=Ue.dropdownRender,Ir=Ue.dropdownAlign,Dr=Ue.placement,_r=Ue.builtinPlacements,fr=Ue.getPopupContainer,Yn=Ue.showAction,pn=Yn===void 0?[]:Yn,En=Ue.onFocus,Cn=Ue.onBlur,sn=Ue.onKeyUp,_n=Ue.onKeyDown,jn=Ue.onMouseDown,mn=(0,Oe.Z)(Ue,$t),yn=Xt(Bn),Nn=(Pt!==void 0?Pt: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,Ne.x1)(Br,ni==null||(Pe=ni.props)===null||Pe===void 0?void 0:Pe.ref),ao=he.useState(!1),Yi=(0,Se.Z)(ao,2),vi=Yi[0],Ai=Yi[1];(0,xt.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&≪(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(Wt)||{},pr=hr.maxCount,Nr=hr.rawValues,Wr=function(xr,ci,fi){if(!(yn&&Qe(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Vi=St(xr,mr,Qe(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=rt(),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,at.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)({},Ue),{},{notFoundContent:Tn,open:Jr,triggerOpen:so,id:Xe,showSearch:Nn,multiple:yn,toggleOpen:ar})},[Ue,Tn,so,Jr,Xe,Nn,yn,ar]),Uo=!!Cr||Qn,Ko;Uo&&(Ko=he.createElement(We,{className:xe()("".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=ct(Me,Co,Qt,cr,or,Xn,Lr,Bn),Sa=Xo.allowClear,Yo=Xo.clearIcon,Bo=he.createElement(dr,{ref:Zr}),wa=xe()(Me,Ye,(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:Lt,getTriggerDOMNode:function(xr){return Br.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},ni?he.cloneElement(ni,{ref:Li}):he.createElement(lt,(0,E.Z)({},Ue,{domRef:Br,prefixCls:Me,inputElement:to,ref:Tr,id:Xe,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(Ct.Provider,{value:Ga},Ci)}),kt=rn,Yt=function(){return null};Yt.isSelectOptGroup=!0;var Vt=Yt,He=function(){return null};He.isSelectOption=!0;var dt=He,Nt=re(80547),Ht=re(2738),Be=re(48911);function nt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var yt=["disabled","title","children","style","className"];function Mt(Ue){return typeof Ue=="string"||typeof Ue=="number"}var Ut=function(st,Pe){var Xe=Dt(),Me=Xe.prefixCls,Ye=Xe.id,Pt=Xe.open,an=Xe.multiple,un=Xe.mode,vn=Xe.searchValue,Qt=Xe.toggleOpen,Ft=Xe.notFoundContent,Lt=Xe.onPopupScroll,fn=he.useContext(Wt),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},[Pt,Dn],function(Yn,pn){return pn[0]&&Yn[1]!==pn[1]}),tr=he.useRef(null),gr=he.useMemo(function(){return an&&Qe(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,at.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,at.Z)(Zn).toString(),Zn.size]);(0,he.useEffect)(function(){var Yn=setTimeout(function(){if(!an&&Pt&&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(Pt){var pn;(pn=tr.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[Pt,vn]);var Er=function(pn){pn!==void 0&&Qn(pn,{selected:!Zn.has(pn)}),an||Qt(!1)};if(he.useImperativeHandle(Pe,function(){return{onKeyDown:function(pn){var En=pn.which,Cn=pn.ctrlKey;switch(En){case Ge.Z.N:case Ge.Z.P:case Ge.Z.UP:case Ge.Z.DOWN:{var sn=0;if(En===Ge.Z.UP?sn=-1:En===Ge.Z.DOWN?sn=1:nt()&&Cn&&(En===Ge.Z.N?sn=1:En===Ge.Z.P&&(sn=-1)),sn!==0){var _n=Cr(Gn+sn,sn);cr(_n),Rr(_n,!0)}break}case Ge.Z.TAB:case Ge.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),Pt&&pn.preventDefault();break}case Ge.Z.ESC:Qt(!1),Pt&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){cr(pn)}}}),er.length===0)return he.createElement("div",{role:"listbox",id:"".concat(Ye,"_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(Ye,"_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,Ae.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(Ye,"_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:Lt,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:Mt(_n)?_n.toString():void 0;return he.createElement("div",{className:xe()(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,Oe.Z)(sn,yt),Br=(0,Ht.Z)(Or,Ar),$r=vr(jn),Tr=Rn||!$r&&gr,Zr="".concat(ir,"-option"),ti=xe()(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=Mt(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),he.createElement("div",(0,E.Z)({},(0,Ae.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(We,{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(Ue,st){var Pe=he.useRef({values:new Map,options:new Map}),Xe=he.useMemo(function(){var Ye=Pe.current,Pt=Ye.values,an=Ye.options,un=Ue.map(function(Ft){if(Ft.label===void 0){var Lt;return(0,et.Z)((0,et.Z)({},Ft),{},{label:(Lt=Pt.get(Ft.value))===null||Lt===void 0?void 0:Lt.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))}),Pe.current.values=vn,Pe.current.options=Qt,un},[Ue,st]),Me=he.useCallback(function(Ye){return st.get(Ye)||Pe.current.options.get(Ye)},[st]);return[Xe,Me]};function on(Ue,st){return De(Ue).join("").toUpperCase().includes(st)}var bn=function(Ue,st,Pe,Xe,Me){return he.useMemo(function(){if(!Pe||Xe===!1)return Ue;var Ye=st.options,Pt=st.label,an=st.value,un=[],vn=typeof Xe=="function",Qt=Pe.toUpperCase(),Ft=vn?Xe:function(fn,Tn){return Me?on(Tn[Me],Qt):Tn[Ye]?on(Tn[Pt!=="children"?Pt:"label"],Qt):on(Tn[an],Qt)},Lt=vn?function(fn){return ot(fn)}:function(fn){return fn};return Ue.forEach(function(fn){if(fn[Ye]){var Tn=Ft(Pe,Lt(fn));if(Tn)un.push(fn);else{var Dn=fn[Ye].filter(function(Bn){return Ft(Pe,Lt(Bn))});Dn.length&&un.push((0,et.Z)((0,et.Z)({},fn),{},(0,ye.Z)({},Ye,Dn)))}return}Ft(Pe,Lt(fn))&&un.push(fn)}),un},[Ue,Xe,Me,Pe,st])},dn=re(6551),Gt=re(11592),At=["children","value"],Rt=["children"];function It(Ue){var st=Ue,Pe=st.key,Xe=st.props,Me=Xe.children,Ye=Xe.value,Pt=(0,Oe.Z)(Xe,At);return(0,et.Z)({key:Pe,value:Ye!==void 0?Ye:Pe,children:Me},Pt)}function en(Ue){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Gt.Z)(Ue).map(function(Pe,Xe){if(!he.isValidElement(Pe)||!Pe.type)return null;var Me=Pe,Ye=Me.type.isSelectOptGroup,Pt=Me.key,an=Me.props,un=an.children,vn=(0,Oe.Z)(an,Rt);return st||!Ye?It(Pe):(0,et.Z)((0,et.Z)({key:"__RC_SELECT_GRP__".concat(Pt===null?Xe:Pt,"__"),label:Pt},vn),{},{options:en(un)})}).filter(function(Pe){return Pe})}var Jt=function(st,Pe,Xe,Me,Ye){return he.useMemo(function(){var Pt=st,an=!st;an&&(Pt=en(Pe));var un=new Map,vn=new Map,Qt=function(fn,Tn,Dn){Dn&&typeof Dn=="string"&&fn.set(Tn[Dn],Tn)},Ft=function Lt(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[Xe.options]||Tn?(un.set(Bn[Xe.value],Bn),Qt(vn,Bn,Xe.label),Qt(vn,Bn,Me),Qt(vn,Bn,Ye)):Lt(Bn[Xe.options],!0)}};return Ft(Pt),{options:Pt,valueOptions:un,labelOptions:vn}},[st,Pe,Xe,Me,Ye])},qt=Jt;function gn(Ue){var st=he.useRef();st.current=Ue;var Pe=he.useCallback(function(){return st.current.apply(st,arguments)},[]);return Pe}function wn(Ue){var st=Ue.mode,Pe=Ue.options,Xe=Ue.children,Me=Ue.backfill,Ye=Ue.allowClear,Pt=Ue.placeholder,an=Ue.getInputElement,un=Ue.showSearch,vn=Ue.onSearch,Qt=Ue.defaultOpen,Ft=Ue.autoFocus,Lt=Ue.labelInValue,fn=Ue.value,Tn=Ue.inputValue,Dn=Ue.optionLabelProp,Bn=isMultiple(st),Xn=un!==void 0?un:Bn||st==="combobox",Qn=Pe||convertChildrenToData(Xe);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||!Ye||!Pt,"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(!Lt||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(Xe){var Fn=null;toNodeArray(Xe).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(Ue,st){if(Ue){var Pe=function Xe(Me){for(var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pt=0;Pt<Me.length;Pt++){var an=Me[Pt];if(an[st==null?void 0:st.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ye&&Array.isArray(an[st==null?void 0:st.options])&&Xe(an[st==null?void 0:st.options],!0))break}};Pe(Ue)}}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(Ue){return!Ue||(0,Ee.Z)(Ue)!=="object"}var Tt=he.forwardRef(function(Ue,st){var Pe=Ue.id,Xe=Ue.mode,Me=Ue.prefixCls,Ye=Me===void 0?"rc-select":Me,Pt=Ue.backfill,an=Ue.fieldNames,un=Ue.inputValue,vn=Ue.searchValue,Qt=Ue.onSearch,Ft=Ue.autoClearSearchValue,Lt=Ft===void 0?!0:Ft,fn=Ue.onSelect,Tn=Ue.onDeselect,Dn=Ue.dropdownMatchSelectWidth,Bn=Dn===void 0?!0:Dn,Xn=Ue.filterOption,Qn=Ue.filterSort,Jn=Ue.optionFilterProp,Zn=Ue.optionLabelProp,Fn=Ue.options,Hn=Ue.optionRender,Un=Ue.children,ur=Ue.defaultActiveFirstOption,qn=Ue.menuItemSelectedIcon,lr=Ue.virtual,ir=Ue.direction,er=Ue.listHeight,tr=er===void 0?200:er,gr=Ue.listItemHeight,mr=gr===void 0?20:gr,cr=Ue.labelRender,vr=Ue.value,Cr=Ue.defaultValue,or=Ue.labelInValue,dr=Ue.onChange,Gn=Ue.maxCount,Sr=(0,Oe.Z)(Ue,kn),Rr=(0,dn.ZP)(Pe),Hr=Xt(Xe),Er=!!(!Fn&&Un),Ar=he.useMemo(function(){return Xn===void 0&&Xe==="combobox"?!1:Xn},[Xn,Xe]),Ir=he.useMemo(function(){return Ce(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 Xe==="combobox"&&ce((ar=hr[0])===null||ar===void 0?void 0:ar.value)?[]:hr},[yn,_n,Xe,Hr]),rr=Pn(Rn,En),Pr=(0,Se.Z)(rr,2),br=Pr[0],Mr=Pr[1],Or=he.useMemo(function(){if(!Xe&&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})})},[Xe,br,cr]),Br=he.useMemo(function(){return new Set(br.map(function(ar){return ar.value}))},[br]);he.useEffect(function(){if(Xe==="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(Xe!=="tags")return sn;var ar=(0,at.Z)(sn),yr=function(pr){return En.has(pr)};return(0,at.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,Xe]),Zr=bn(Tr,Ir,fr,Ar,Jn),ti=he.useMemo(function(){return Xe!=="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,at.Z)(Zr))},[$r,Jn,Xe,Zr,fr,Ir]),Oi=function ar(yr){var hr=(0,at.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 Ke(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 ot(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:Xe!=="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),Pt&&Xe==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[Pt,Xe]),_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,ot(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,at.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),_i(ar,pr),Xe==="combobox"?ni(""):(!Xt||Lt)&&(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,at.Z)(Br),[pr])));mi(Nr),_i(pr,!0),Yn("")}return}hr.source!=="blur"&&(Xe==="combobox"&&mi(yr),Qt==null||Qt(yr))},xo=function(yr){var hr=yr;Xe!=="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,at.Z)(Br),(0,at.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(Wt.Provider,{value:so},he.createElement(kt,(0,E.Z)({},Sr,{id:Rr,prefixCls:Ye,ref:st,omitDomProps:Wn,mode:Xe,displayValues:Or,onDisplayValuesChange:Wi,direction:ir,searchValue:fr,onSearch:Jr,autoClearSearchValue:Lt,onSearchSplit:xo,dropdownMatchSelectWidth:Bn,OptionList:In,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),Kt=Tt;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 ke},default:function(){return ze}});var E=re(60499),at=re(18642),ye=re(85899),et=re(77654),Se=re(72190),Oe=re(42244),Ee=re(92310),Ze=re.n(Ee),Ie=re(36901),he=re(66003),Je=re(30292),xe=re(18929),xt=re(59301),qe=re(43749),Ne=re(29301),Ve=re(34280),We=re(16089),ct=`
|
|
|
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;
|
|
|
`,Ct=["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"],Dt={},ft;function rt(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=De.getAttribute("id")||De.getAttribute("data-reactid")||De.getAttribute("name");if(we&&Dt[ut])return Dt[ut];var me=window.getComputedStyle(De),ce=me.getPropertyValue("box-sizing")||me.getPropertyValue("-moz-box-sizing")||me.getPropertyValue("-webkit-box-sizing"),_e=parseFloat(me.getPropertyValue("padding-bottom"))+parseFloat(me.getPropertyValue("padding-top")),Et=parseFloat(me.getPropertyValue("border-bottom-width"))+parseFloat(me.getPropertyValue("border-top-width")),pt=Ct.map(function(Le){return"".concat(Le,":").concat(me.getPropertyValue(Le))}).join(";"),ve={sizingStyle:pt,paddingSize:_e,borderSize:Et,boxSizing:ce};return we&&ut&&(Dt[ut]=ve),ve}function tt(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=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=rt(De,we),_e=ce.paddingSize,Et=ce.borderSize,pt=ce.boxSizing,ve=ce.sizingStyle;ft.setAttribute("style","".concat(ve,";").concat(ct)),ft.value=De.value||De.placeholder||"";var Le=void 0,Re=void 0,wt,bt=ft.scrollHeight;if(pt==="border-box"?bt+=Et:pt==="content-box"&&(bt-=_e),ut!==null||me!==null){ft.value=" ";var Bt=ft.scrollHeight-_e;ut!==null&&(Le=Bt*ut,pt==="border-box"&&(Le=Le+_e+Et),bt=Math.max(Le,bt)),me!==null&&(Re=Bt*me,pt==="border-box"&&(Re=Re+_e+Et),wt=bt>Re?"":"hidden",bt=Math.min(Re,bt))}var Te={height:bt,overflowY:wt,resize:"none"};return Le&&(Te.minHeight=Le),Re&&(Te.maxHeight=Re),Te}var Ge=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vt=0,Ae=1,je=2,ht=xt.forwardRef(function(De,we){var ut=De,me=ut.prefixCls,ce=ut.defaultValue,_e=ut.value,Et=ut.autoSize,pt=ut.onResize,ve=ut.className,Le=ut.style,Re=ut.disabled,wt=ut.onChange,bt=ut.onInternalAutoSize,Bt=(0,Oe.Z)(ut,Ge),Te=(0,xe.Z)(ce,{value:_e,postState:function(dt){return dt!=null?dt:""}}),Ot=(0,Se.Z)(Te,2),lt=Ot[0],ae=Ot[1],te=function(dt){ae(dt.target.value),wt==null||wt(dt)},ee=xt.useRef();xt.useImperativeHandle(we,function(){return{textArea:ee.current}});var oe=xt.useMemo(function(){return Et&&(0,qe.Z)(Et)==="object"?[Et.minRows,Et.maxRows]:[]},[Et]),ue=(0,Se.Z)(oe,2),ne=ue[0],pe=ue[1],ge=!!Et,Qe=function(){try{if(document.activeElement===ee.current){var dt=ee.current,Nt=dt.selectionStart,Ht=dt.selectionEnd,Be=dt.scrollTop;ee.current.setSelectionRange(Nt,Ht),ee.current.scrollTop=Be}}catch(nt){}},Ce=xt.useState(je),Ke=(0,Se.Z)(Ce,2),ot=Ke[0],St=Ke[1],gt=xt.useState(),Wt=(0,Se.Z)(gt,2),Zt=Wt[0],$t=Wt[1],tn=function(){St(vt)};(0,Ve.Z)(function(){ge&&tn()},[_e,ne,pe,ge]),(0,Ve.Z)(function(){if(ot===vt)St(Ae);else if(ot===Ae){var He=tt(ee.current,!1,ne,pe);St(je),$t(He)}else Qe()},[ot]);var Xt=xt.useRef(),rn=function(){We.Z.cancel(Xt.current)},kt=function(dt){ot===je&&(pt==null||pt(dt),Et&&(rn(),Xt.current=(0,We.Z)(function(){tn()})))};xt.useEffect(function(){return rn},[]);var Yt=ge?Zt:null,Vt=(0,ye.Z)((0,ye.Z)({},Le),Yt);return(ot===vt||ot===Ae)&&(Vt.overflowY="hidden",Vt.overflowX="hidden"),xt.createElement(Ne.Z,{onResize:kt,disabled:!(Et||pt)},xt.createElement("textarea",(0,E.Z)({},Bt,{ref:ee,style:Vt,className:Ze()(me,ve,(0,at.Z)({},"".concat(me,"-disabled"),Re)),disabled:Re,value:lt,onChange:te})))}),ke=ht,Fe=["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=xt.forwardRef(function(De,we){var ut,me=De.defaultValue,ce=De.value,_e=De.onFocus,Et=De.onBlur,pt=De.onChange,ve=De.allowClear,Le=De.maxLength,Re=De.onCompositionStart,wt=De.onCompositionEnd,bt=De.suffix,Bt=De.prefixCls,Te=Bt===void 0?"rc-textarea":Bt,Ot=De.showCount,lt=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,Qe=De.onPressEnter,Ce=De.readOnly,Ke=De.autoSize,ot=De.onKeyDown,St=(0,Oe.Z)(De,Fe),gt=(0,xe.Z)(me,{value:ce,defaultValue:me}),Wt=(0,Se.Z)(gt,2),Zt=Wt[0],$t=Wt[1],tn=Zt==null?"":String(Zt),Xt=xt.useState(!1),rn=(0,Se.Z)(Xt,2),kt=rn[0],Yt=rn[1],Vt=xt.useRef(!1),He=xt.useState(null),dt=(0,Se.Z)(He,2),Nt=dt[0],Ht=dt[1],Be=(0,xt.useRef)(null),nt=(0,xt.useRef)(null),yt=function(){var Kt;return(Kt=nt.current)===null||Kt===void 0?void 0:Kt.textArea},Mt=function(){yt().focus()};(0,xt.useImperativeHandle)(we,function(){var Tt;return{resizableTextArea:nt.current,focus:Mt,blur:function(){yt().blur()},nativeElement:((Tt=Be.current)===null||Tt===void 0?void 0:Tt.nativeElement)||yt()}}),(0,xt.useEffect)(function(){Yt(function(Tt){return!ee&&Tt})},[ee]);var Ut=xt.useState(null),ln=(0,Se.Z)(Ut,2),In=ln[0],Pn=ln[1];xt.useEffect(function(){if(In){var Tt;(Tt=yt()).setSelectionRange.apply(Tt,(0,et.Z)(In))}},[In]);var on=(0,he.Z)(lt,Ot),bn=(ut=on.max)!==null&&ut!==void 0?ut:Le,dn=Number(bn)>0,Gt=on.strategy(tn),At=!!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([yt().selectionStart||0,yt().selectionEnd||0])),$t(hn),(0,Je.rJ)(Kt.currentTarget,Kt,pt,hn)},It=function(Kt){Vt.current=!0,Re==null||Re(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"&&Qe&&Qe(Kt),ot==null||ot(Kt)},gn=function(Kt){Yt(!0),_e==null||_e(Kt)},wn=function(Kt){Yt(!1),Et==null||Et(Kt)},Sn=function(Kt){$t(""),Mt(),(0,Je.rJ)(yt(),Kt,pt)},Mn=bt,kn;on.show&&(on.showFormatter?kn=on.showFormatter({value:tn,count:Gt,maxLength:bn}):kn="".concat(Gt).concat(dn?" / ".concat(bn):""),Mn=xt.createElement(xt.Fragment,null,Mn,xt.createElement("span",{className:Ze()("".concat(Te,"-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=yt())!==null&&xn!==void 0&&xn.style.height&&Ht(!0)},An=!Ke&&!Ot&&!ve;return xt.createElement(Ie.BaseInput,{ref:Be,value:tn,allowClear:ve,handleReset:Sn,suffix:Mn,prefixCls:Te,classNames:(0,ye.Z)((0,ye.Z)({},ue),{},{affixWrapper:Ze()(ue==null?void 0:ue.affixWrapper,(0,at.Z)((0,at.Z)({},"".concat(Te,"-show-count"),Ot),"".concat(Te,"-textarea-allow-clear"),ve))}),disabled:ee,focused:kt,className:Ze()(ae,At&&"".concat(Te,"-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:Ce,onClear:ge},xt.createElement(ke,(0,E.Z)({},St,{autoSize:Ke,maxLength:Le,onKeyDown:qt,onChange:Jt,onFocus:gn,onBlur:wn,onCompositionStart:It,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:Te,onResize:Wn,ref:nt,readOnly:Ce})))}),le=$e,ze=le},48911:function(nn,zt,re){"use strict";re.d(zt,{Z:function(){return lt}});var E=re(60499),at=re(43749),ye=re(85899),et=re(18642),Se=re(72190),Oe=re(42244),Ee=re(92310),Ze=re.n(Ee),Ie=re(29301),he=re(70425),Je=re(34280),xe=re(59301),xt=re(4676),qe=xe.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,ue=ae.offsetX,ne=ae.children,pe=ae.prefixCls,ge=ae.onInnerResize,Qe=ae.innerProps,Ce=ae.rtl,Ke=ae.extra,ot={},St={display:"flex",flexDirection:"column"};return oe!==void 0&&(ot={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)")},Ce?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),xe.createElement("div",{style:ot},xe.createElement(Ie.Z,{onResize:function(Wt){var Zt=Wt.offsetHeight;Zt&&ge&&ge()}},xe.createElement("div",(0,E.Z)({style:St,className:Ze()((0,et.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},Qe),ne,Ke)))});qe.displayName="Filler";var Ne=qe;function Ve(ae){var te=ae.children,ee=ae.setRef,oe=xe.useCallback(function(ue){ee(ue)},[]);return xe.cloneElement(te,{ref:oe})}function We(ae,te,ee,oe,ue,ne,pe,ge){var Qe=ge.getKey;return ae.slice(te,ee+1).map(function(Ce,Ke){var ot=te+Ke,St=pe(Ce,ot,{style:{width:oe},offsetX:ue}),gt=Qe(Ce);return xe.createElement(Ve,{key:gt,setRef:function(Zt){return ne(Ce,Zt)}},St)})}function ct(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 Ct(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 Qe(Wt){return Wt!==void 0?ee(Wt):ge}for(var Ce=null,Ke=Math.abs(oe-ue)!==1,ot=0;ot<pe.length;ot+=1){var St=Qe(ne[ot]),gt=Qe(pe[ot]);if(St!==gt){Ce=ot,Ke=Ke||St!==Qe(pe[ot+1]);break}}return Ce===null?null:{index:Ce,multiple:Ke}}function Dt(ae,te,ee){var oe=xe.useState(ae),ue=(0,Se.Z)(oe,2),ne=ue[0],pe=ue[1],ge=xe.useState(null),Qe=(0,Se.Z)(ge,2),Ce=Qe[0],Ke=Qe[1];return xe.useEffect(function(){var ot=Ct(ne||[],ae||[],te);(ot==null?void 0:ot.index)!==void 0&&(ee==null||ee(ot.index),Ke(ae[ot.index])),pe(ae)},[ae]),[Ce]}var ft=re(16089),rt=(typeof navigator=="undefined"?"undefined":(0,at.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),tt=rt,Ge=function(ae,te,ee,oe){var ue=(0,xe.useRef)(!1),ne=(0,xe.useRef)(null);function pe(){clearTimeout(ne.current),ue.current=!0,ne.current=setTimeout(function(){ue.current=!1},50)}var ge=(0,xe.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(Qe,Ce){var Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=Qe?Ce<0&&ge.current.left||Ce>0&&ge.current.right:Ce<0&&ge.current.top||Ce>0&&ge.current.bottom;return Ke&&ot?(clearTimeout(ne.current),ue.current=!1):(!ot||ue.current)&&pe(),!ue.current&&ot}};function vt(ae,te,ee,oe,ue,ne,pe){var ge=(0,xe.useRef)(0),Qe=(0,xe.useRef)(null),Ce=(0,xe.useRef)(null),Ke=(0,xe.useRef)(!1),ot=Ge(te,ee,oe,ue);function St(Xt,rn){if(ft.Z.cancel(Qe.current),!ot(!1,rn)){var kt=Xt;if(!kt._virtualHandled)kt._virtualHandled=!0;else return;ge.current+=rn,Ce.current=rn,tt||kt.preventDefault(),Qe.current=(0,ft.Z)(function(){var Yt=Ke.current?10:1;pe(ge.current*Yt,!1),ge.current=0})}}function gt(Xt,rn){pe(rn,!0),tt||Xt.preventDefault()}var Wt=(0,xe.useRef)(null),Zt=(0,xe.useRef)(null);function $t(Xt){if(ae){ft.Z.cancel(Zt.current),Zt.current=(0,ft.Z)(function(){Wt.current=null},2);var rn=Xt.deltaX,kt=Xt.deltaY,Yt=Xt.shiftKey,Vt=rn,He=kt;(Wt.current==="sx"||!Wt.current&&Yt&&kt&&!rn)&&(Vt=kt,He=0,Wt.current="sx");var dt=Math.abs(Vt),Nt=Math.abs(He);Wt.current===null&&(Wt.current=ne&&dt>Nt?"x":"y"),Wt.current==="y"?St(Xt,He):gt(Xt,Vt)}}function tn(Xt){ae&&(Ke.current=Xt.detail===Ce.current)}return[$t,tn]}function Ae(ae,te,ee,oe){var ue=xe.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Se.Z)(ue,2),pe=ne[0],ge=ne[1],Qe=function(Ke){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,St=pe.get(Ke),gt=pe.get(ot);if(St===void 0||gt===void 0)for(var Wt=ae.length,Zt=ge.length;Zt<Wt;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===Ke&&(St=Zt),Xt===ot&&(gt=Zt),St!==void 0&>!==void 0)break}return{top:ge[St-1]||0,bottom:ge[gt]}};return Qe}var je=re(38705),ht=re(17212),ke=function(){function ae(){(0,je.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}(),Fe=ke;function $e(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function le(ae,te,ee){var oe=xe.useState(0),ue=(0,Se.Z)(oe,2),ne=ue[0],pe=ue[1],ge=(0,xe.useRef)(new Map),Qe=(0,xe.useRef)(new Fe),Ce=(0,xe.useRef)(0);function Ke(){Ce.current+=1}function ot(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var Wt=function(){var tn=!1;ge.current.forEach(function(Xt,rn){if(Xt&&Xt.offsetParent){var kt=Xt.offsetHeight,Yt=getComputedStyle(Xt),Vt=Yt.marginTop,He=Yt.marginBottom,dt=$e(Vt),Nt=$e(He),Ht=kt+dt+Nt;Qe.current.get(rn)!==Ht&&(Qe.current.set(rn,Ht),tn=!0)}}),tn&&pe(function(Xt){return Xt+1})};if(gt)Wt();else{Ce.current+=1;var Zt=Ce.current;Promise.resolve().then(function(){Zt===Ce.current&&Wt()})}}function St(gt,Wt){var Zt=ae(gt),$t=ge.current.get(Zt);Wt?(ge.current.set(Zt,Wt),ot()):ge.current.delete(Zt),!$t!=!Wt&&(Wt?te==null||te(gt):ee==null||ee(gt))}return(0,xe.useEffect)(function(){return Ke},[]),[St,ot,Qe.current,ne]}var ze=14/15;function De(ae,te,ee){var oe=(0,xe.useRef)(!1),ue=(0,xe.useRef)(0),ne=(0,xe.useRef)(0),pe=(0,xe.useRef)(null),ge=(0,xe.useRef)(null),Qe,Ce=function(gt){if(oe.current){var Wt=Math.ceil(gt.touches[0].pageX),Zt=Math.ceil(gt.touches[0].pageY),$t=ue.current-Wt,tn=ne.current-Zt,Xt=Math.abs($t)>Math.abs(tn);Xt?ue.current=Wt:ne.current=Zt;var rn=ee(Xt,Xt?$t:tn,!1,gt);rn&>.preventDefault(),clearInterval(ge.current),rn&&(ge.current=setInterval(function(){Xt?$t*=ze:tn*=ze;var kt=Math.floor(Xt?$t:tn);(!ee(Xt,kt,!0)||Math.abs(kt)<=.1)&&clearInterval(ge.current)},16))}},Ke=function(){oe.current=!1,Qe()},ot=function(gt){Qe(),gt.touches.length===1&&!oe.current&&(oe.current=!0,ue.current=Math.ceil(gt.touches[0].pageX),ne.current=Math.ceil(gt.touches[0].pageY),pe.current=gt.target,pe.current.addEventListener("touchmove",Ce,{passive:!1}),pe.current.addEventListener("touchend",Ke,{passive:!0}))};Qe=function(){pe.current&&(pe.current.removeEventListener("touchmove",Ce),pe.current.removeEventListener("touchend",Ke))},(0,Je.Z)(function(){return ae&&te.current.addEventListener("touchstart",ot,{passive:!0}),function(){var St;(St=te.current)===null||St===void 0||St.removeEventListener("touchstart",ot),Qe(),clearInterval(ge.current)}},[ae])}function we(ae){return Math.floor(Math.pow(ae,.5))}function ut(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){xe.useEffect(function(){var oe=te.current;if(ae&&oe){var ue=!1,ne,pe,ge=function(){ft.Z.cancel(ne)},Qe=function St(){ge(),ne=(0,ft.Z)(function(){ee(pe),St()})},Ce=function(){ue=!1,ge()},Ke=function(gt){if(!(gt.target.draggable||gt.button!==0)){var Wt=gt;Wt._virtualHandled||(Wt._virtualHandled=!0,ue=!0)}},ot=function(gt){if(ue){var Wt=ut(gt,!1),Zt=oe.getBoundingClientRect(),$t=Zt.top,tn=Zt.bottom;if(Wt<=$t){var Xt=$t-Wt;pe=-we(Xt),Qe()}else if(Wt>=tn){var rn=Wt-tn;pe=we(rn),Qe()}else ge()}};return oe.addEventListener("mousedown",Ke),oe.ownerDocument.addEventListener("mouseup",Ce),oe.ownerDocument.addEventListener("mousemove",ot),oe.ownerDocument.addEventListener("dragend",Ce),function(){oe.removeEventListener("mousedown",Ke),oe.ownerDocument.removeEventListener("mouseup",Ce),oe.ownerDocument.removeEventListener("mousemove",ot),oe.ownerDocument.removeEventListener("dragend",Ce),ge()}}},[ae])}var ce=10;function _e(ae,te,ee,oe,ue,ne,pe,ge){var Qe=xe.useRef(),Ce=xe.useState(null),Ke=(0,Se.Z)(Ce,2),ot=Ke[0],St=Ke[1];return(0,Je.Z)(function(){if(ot&&ot.times<ce){if(!ae.current){St(function(on){return(0,ye.Z)({},on)});return}ne();var gt=ot.targetAlign,Wt=ot.originAlign,Zt=ot.index,$t=ot.offset,tn=ae.current.clientHeight,Xt=!1,rn=gt,kt=null;if(tn){for(var Yt=gt||Wt,Vt=0,He=0,dt=0,Nt=Math.min(te.length-1,Zt),Ht=0;Ht<=Nt;Ht+=1){var Be=ue(te[Ht]);He=Vt;var nt=ee.get(Be);dt=He+(nt===void 0?oe:nt),Vt=dt}for(var yt=Yt==="top"?$t:tn-$t,Mt=Nt;Mt>=0;Mt-=1){var Ut=ue(te[Mt]),ln=ee.get(Ut);if(ln===void 0){Xt=!0;break}if(yt-=ln,yt<=0)break}switch(Yt){case"top":kt=He-$t;break;case"bottom":kt=dt-tn+$t;break;default:{var In=ae.current.scrollTop,Pn=In+tn;He<In?rn="top":dt>Pn&&(rn="bottom")}}kt!==null&&pe(kt),kt!==ot.lastTop&&(Xt=!0)}Xt&&St((0,ye.Z)((0,ye.Z)({},ot),{},{times:ot.times+1,targetAlign:rn,lastTop:kt}))}},[ot,ae.current]),function(gt){if(gt==null){ge();return}if(ft.Z.cancel(Qe.current),typeof gt=="number")pe(gt);else if(gt&&(0,at.Z)(gt)==="object"){var Wt,Zt=gt.align;"index"in gt?Wt=gt.index:Wt=te.findIndex(function(Xt){return ue(Xt)===gt.key});var $t=gt.offset,tn=$t===void 0?0:$t;St({times:0,index:Wt,offset:tn,originAlign:Zt})}}}var Et=xe.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,ue=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,ge=ae.onStopMove,Qe=ae.onScroll,Ce=ae.horizontal,Ke=ae.spinSize,ot=ae.containerSize,St=ae.style,gt=ae.thumbStyle,Wt=ae.showScrollBar,Zt=xe.useState(!1),$t=(0,Se.Z)(Zt,2),tn=$t[0],Xt=$t[1],rn=xe.useState(null),kt=(0,Se.Z)(rn,2),Yt=kt[0],Vt=kt[1],He=xe.useState(null),dt=(0,Se.Z)(He,2),Nt=dt[0],Ht=dt[1],Be=!oe,nt=xe.useRef(),yt=xe.useRef(),Mt=xe.useState(Wt),Ut=(0,Se.Z)(Mt,2),ln=Ut[0],In=Ut[1],Pn=xe.useRef(),on=function(){Wt===!0||Wt===!1||(clearTimeout(Pn.current),In(!0),Pn.current=setTimeout(function(){In(!1)},3e3))},bn=ne-ot||0,dn=ot-Ke||0,Gt=xe.useMemo(function(){if(ue===0||bn===0)return 0;var Sn=ue/bn;return Sn*dn},[ue,bn,dn]),At=function(Mn){Mn.stopPropagation(),Mn.preventDefault()},Rt=xe.useRef({top:Gt,dragging:tn,pageY:Yt,startTop:Nt});Rt.current={top:Gt,dragging:tn,pageY:Yt,startTop:Nt};var It=function(Mn){Xt(!0),Vt(ut(Mn,Ce)),Ht(Rt.current.top),pe(),Mn.stopPropagation(),Mn.preventDefault()};xe.useEffect(function(){var Sn=function(An){An.preventDefault()},Mn=nt.current,kn=yt.current;return Mn.addEventListener("touchstart",Sn,{passive:!1}),kn.addEventListener("touchstart",It,{passive:!1}),function(){Mn.removeEventListener("touchstart",Sn),kn.removeEventListener("touchstart",It)}},[]);var en=xe.useRef();en.current=bn;var Jt=xe.useRef();Jt.current=dn,xe.useEffect(function(){if(tn){var Sn,Mn=function(An){var Tt=Rt.current,Kt=Tt.dragging,xn=Tt.pageY,hn=Tt.startTop;ft.Z.cancel(Sn);var Ue=nt.current.getBoundingClientRect(),st=ot/(Ce?Ue.width:Ue.height);if(Kt){var Pe=(ut(An,Ce)-xn)*st,Xe=hn;!Be&&Ce?Xe-=Pe:Xe+=Pe;var Me=en.current,Ye=Jt.current,Pt=Ye?Xe/Ye:0,an=Math.ceil(Pt*Me);an=Math.max(an,0),an=Math.min(an,Me),Sn=(0,ft.Z)(function(){Qe(an,Ce)})}},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]),xe.useEffect(function(){return on(),function(){clearTimeout(Pn.current)}},[ue]),xe.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 Ce?(Object.assign(gn,{height:8,left:0,right:0,bottom:0}),Object.assign(wn,(0,et.Z)({height:"100%",width:Ke},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:Ke,top:Gt})),xe.createElement("div",{ref:nt,className:Ze()(qt,(0,et.Z)((0,et.Z)((0,et.Z)({},"".concat(qt,"-horizontal"),Ce),"".concat(qt,"-vertical"),!Ce),"".concat(qt,"-visible"),ln)),style:(0,ye.Z)((0,ye.Z)({},gn),St),onMouseDown:At,onMouseMove:on},xe.createElement("div",{ref:yt,className:Ze()("".concat(qt,"-thumb"),(0,et.Z)({},"".concat(qt,"-thumb-moving"),tn)),style:(0,ye.Z)((0,ye.Z)({},wn),gt),onMouseDown:It}))}),pt=Et,ve=20;function Le(){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 Re=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],wt=[],bt={overflowY:"auto",overflowAnchor:"none"};function Bt(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,Qe=ge===void 0?!0:ge,Ce=ae.style,Ke=ae.data,ot=ae.children,St=ae.itemKey,gt=ae.virtual,Wt=ae.direction,Zt=ae.scrollWidth,$t=ae.component,tn=$t===void 0?"div":$t,Xt=ae.onScroll,rn=ae.onVirtualScroll,kt=ae.onVisibleChange,Yt=ae.innerProps,Vt=ae.extraRender,He=ae.styles,dt=ae.showScrollBar,Nt=dt===void 0?"optional":dt,Ht=(0,Oe.Z)(ae,Re),Be=xe.useCallback(function(pn){return typeof St=="function"?St(pn):pn==null?void 0:pn[St]},[St]),nt=le(Be,null,null),yt=(0,Se.Z)(nt,4),Mt=yt[0],Ut=yt[1],ln=yt[2],In=yt[3],Pn=!!(gt!==!1&&ne&&pe),on=xe.useMemo(function(){return Object.values(ln.maps).reduce(function(pn,En){return pn+En},0)},[ln.id,ln.maps]),bn=Pn&&Ke&&(Math.max(pe*Ke.length,on)>ne||!!Zt),dn=Wt==="rtl",Gt=Ze()(oe,(0,et.Z)({},"".concat(oe,"-rtl"),dn),ue),At=Ke||wt,Rt=(0,xe.useRef)(),It=(0,xe.useRef)(),en=(0,xe.useRef)(),Jt=(0,xe.useState)(0),qt=(0,Se.Z)(Jt,2),gn=qt[0],wn=qt[1],Sn=(0,xe.useState)(0),Mn=(0,Se.Z)(Sn,2),kn=Mn[0],Wn=Mn[1],An=(0,xe.useState)(!1),Tt=(0,Se.Z)(An,2),Kt=Tt[0],xn=Tt[1],hn=function(){xn(!0)},Ue=function(){xn(!1)},st={getKey:Be};function Pe(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 Xe=(0,xe.useRef)({start:0,end:At.length}),Me=(0,xe.useRef)(),Ye=Dt(At,Be),Pt=(0,Se.Z)(Ye,1),an=Pt[0];Me.current=an;var un=xe.useMemo(function(){if(!Pn)return{scrollHeight:void 0,start:0,end:At.length-1,offset:void 0};if(!bn){var pn;return{scrollHeight:((pn=It.current)===null||pn===void 0?void 0:pn.offsetHeight)||0,start:0,end:At.length-1,offset:void 0}}for(var En=0,Cn,sn,_n,jn=At.length,mn=0;mn<jn;mn+=1){var yn=At[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=At.length-1),_n=Math.min(_n+1,At.length-1),{scrollHeight:En,start:Cn,end:_n,offset:sn}},[bn,Pn,gn,At,In,ne]),vn=un.scrollHeight,Qt=un.start,Ft=un.end,Lt=un.offset;Xe.current.start=Qt,Xe.current.end=Ft,xe.useLayoutEffect(function(){var pn=ln.getRecord();if(pn.size===1){var En=Array.from(pn.keys())[0],Cn=pn.get(En),sn=At[Qt];if(sn&&Cn===void 0){var _n=Be(sn);if(_n===En){var jn=ln.get(En),mn=jn-pe;Pe(function(yn){return yn+mn})}}}ln.resetRecord()},[vn]);var fn=xe.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,xe.useRef)(),Jn=(0,xe.useRef)(),Zn=xe.useMemo(function(){return Le(Dn.width,Zt)},[Dn.width,Zt]),Fn=xe.useMemo(function(){return Le(Dn.height,vn)},[Dn.height,vn]),Hn=vn-ne,Un=(0,xe.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=Ge(qn,lr,ir,er),gr=function(){return{x:dn?-kn:kn,y:gn}},mr=(0,xe.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,xt.flushSync)(function(){Wn(Cn)}),cr()):Pe(Cn)}function Cr(pn){var En=pn.currentTarget.scrollTop;En!==gn&&Pe(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,xt.flushSync)(function(){Wn(function(Cn){var sn=Cn+(dn?-pn:pn);return or(sn)})}),cr()):Pe(function(Cn){var sn=Cn+pn;return sn})}),Gn=vt(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){Pe(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=_e(Rt,At,ln,pe,Be,function(){return Ut(!0)},Pe,Er);xe.useImperativeHandle(te,function(){return{nativeElement:en.current,getScrollInfo:gr,scrollTo:function(En){function Cn(sn){return sn&&(0,at.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(kt){var pn=At.slice(Qt,Ft+1);kt(pn,At)}},[Qt,Ft,At]);var Ir=Ae(At,Be,ln,pe),Dr=Vt==null?void 0:Vt({start:Qt,end:Ft,virtual:bn,offsetX:kn,offsetY:Lt,rtl:dn,getSize:Ir}),_r=We(At,Qt,Ft,Zt,kn,Mt,ot,st),fr=null;ne&&(fr=(0,ye.Z)((0,et.Z)({},Qe?"height":"maxHeight",ne),bt),Pn&&(fr.overflowY="hidden",Zt&&(fr.overflowX="hidden"),Kt&&(fr.pointerEvents="none")));var Yn={};return dn&&(Yn.dir="rtl"),xe.createElement("div",(0,E.Z)({ref:en,style:(0,ye.Z)((0,ye.Z)({},Ce),{},{position:"relative"}),className:Gt},Yn,Ht),xe.createElement(Ie.Z,{onResize:Xn},xe.createElement(tn,{className:"".concat(oe,"-holder"),style:fr,ref:Rt,onScroll:Cr,onMouseEnter:Er},xe.createElement(Ne,{prefixCls:oe,height:vn,offsetX:kn,offsetY:Lt,scrollWidth:Zt,onInnerResize:Ut,ref:It,innerProps:Yt,rtl:dn,extra:Dr},_r))),bn&&vn>ne&&xe.createElement(pt,{ref:Qn,prefixCls:oe,scrollOffset:gn,scrollRange:vn,rtl:dn,onScroll:vr,onStartMove:hn,onStopMove:Ue,spinSize:Fn,containerSize:Dn.height,style:He==null?void 0:He.verticalScrollBar,thumbStyle:He==null?void 0:He.verticalScrollBarThumb,showScrollBar:Nt}),bn&&Zt>Dn.width&&xe.createElement(pt,{ref:Jn,prefixCls:oe,scrollOffset:kn,scrollRange:Zt,rtl:dn,onScroll:vr,onStartMove:hn,onStopMove:Ue,spinSize:Zn,containerSize:Dn.width,horizontal:!0,style:He==null?void 0:He.horizontalScrollBar,thumbStyle:He==null?void 0:He.horizontalScrollBarThumb,showScrollBar:Nt}))}var Te=xe.forwardRef(Bt);Te.displayName="List";var Ot=Te,lt=Ot},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=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,at=(Ie,he)=>(!he||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",ye=(Ie,he)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const Je=getComputedStyle(Ie,null);return at(Je.overflowY,he)||at(Je.overflowX,he)||(xe=>{const xt=(qe=>{if(!qe.ownerDocument||!qe.ownerDocument.defaultView)return null;try{return qe.ownerDocument.defaultView.frameElement}catch(Ne){return null}})(xe);return!!xt&&(xt.clientHeight<xe.scrollHeight||xt.clientWidth<xe.scrollWidth)})(Ie)}return!1},et=(Ie,he,Je,xe,xt,qe,Ne,Ve)=>qe<Ie&&Ne>he||qe>Ie&&Ne<he?0:qe<=Ie&&Ve<=Je||Ne>=he&&Ve>=Je?qe-Ie-xe:Ne>he&&Ve<Je||qe<Ie&&Ve>Je?Ne-he+xt:0,Se=Ie=>{const he=Ie.parentElement;return he==null?Ie.getRootNode().host||null:he},Oe=(Ie,he)=>{var Je,xe,xt,qe;if(typeof document=="undefined")return[];const{scrollMode:Ne,block:Ve,inline:We,boundary:ct,skipOverflowHiddenElements:Ct}=he,Dt=typeof ct=="function"?ct:pt=>pt!==ct;if(!E(Ie))throw new TypeError("Invalid target");const ft=document.scrollingElement||document.documentElement,rt=[];let tt=Ie;for(;E(tt)&&Dt(tt);){if(tt=Se(tt),tt===ft){rt.push(tt);break}tt!=null&&tt===document.body&&ye(tt)&&!ye(document.documentElement)||tt!=null&&ye(tt,Ct)&&rt.push(tt)}const Ge=(xe=(Je=window.visualViewport)==null?void 0:Je.width)!=null?xe:innerWidth,vt=(qe=(xt=window.visualViewport)==null?void 0:xt.height)!=null?qe:innerHeight,{scrollX:Ae,scrollY:je}=window,{height:ht,width:ke,top:Fe,right:$e,bottom:le,left:ze}=Ie.getBoundingClientRect(),{top:De,right:we,bottom:ut,left:me}=(pt=>{const ve=window.getComputedStyle(pt);return{top:parseFloat(ve.scrollMarginTop)||0,right:parseFloat(ve.scrollMarginRight)||0,bottom:parseFloat(ve.scrollMarginBottom)||0,left:parseFloat(ve.scrollMarginLeft)||0}})(Ie);let ce=Ve==="start"||Ve==="nearest"?Fe-De:Ve==="end"?le+ut:Fe+ht/2-De+ut,_e=We==="center"?ze+ke/2-me+we:We==="end"?$e+we:ze-me;const Et=[];for(let pt=0;pt<rt.length;pt++){const ve=rt[pt],{height:Le,width:Re,top:wt,right:bt,bottom:Bt,left:Te}=ve.getBoundingClientRect();if(Ne==="if-needed"&&Fe>=0&&ze>=0&&le<=vt&&$e<=Ge&&(ve===ft&&!ye(ve)||Fe>=wt&&le<=Bt&&ze>=Te&&$e<=bt))return Et;const Ot=getComputedStyle(ve),lt=parseInt(Ot.borderLeftWidth,10),ae=parseInt(Ot.borderTopWidth,10),te=parseInt(Ot.borderRightWidth,10),ee=parseInt(Ot.borderBottomWidth,10);let oe=0,ue=0;const ne="offsetWidth"in ve?ve.offsetWidth-ve.clientWidth-lt-te:0,pe="offsetHeight"in ve?ve.offsetHeight-ve.clientHeight-ae-ee:0,ge="offsetWidth"in ve?ve.offsetWidth===0?0:Re/ve.offsetWidth:0,Qe="offsetHeight"in ve?ve.offsetHeight===0?0:Le/ve.offsetHeight:0;if(ft===ve)oe=Ve==="start"?ce:Ve==="end"?ce-vt:Ve==="nearest"?et(je,je+vt,vt,ae,ee,je+ce,je+ce+ht,ht):ce-vt/2,ue=We==="start"?_e:We==="center"?_e-Ge/2:We==="end"?_e-Ge:et(Ae,Ae+Ge,Ge,lt,te,Ae+_e,Ae+_e+ke,ke),oe=Math.max(0,oe+je),ue=Math.max(0,ue+Ae);else{oe=Ve==="start"?ce-wt-ae:Ve==="end"?ce-Bt+ee+pe:Ve==="nearest"?et(wt,Bt,Le,ae,ee+pe,ce,ce+ht,ht):ce-(wt+Le/2)+pe/2,ue=We==="start"?_e-Te-lt:We==="center"?_e-(Te+Re/2)+ne/2:We==="end"?_e-bt+te+ne:et(Te,bt,Re,lt,te+ne,_e,_e+ke,ke);const{scrollLeft:Ce,scrollTop:Ke}=ve;oe=Qe===0?0:Math.max(0,Math.min(Ke+oe/Qe,ve.scrollHeight-Le/Qe+pe)),ue=ge===0?0:Math.max(0,Math.min(Ce+ue/ge,ve.scrollWidth-Re/ge+ne)),ce+=Ke-oe,_e+=Ce-ue}Et.push({el:ve,top:oe,left:ue})}return Et},Ee=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function Ze(Ie,he){if(!Ie.isConnected||!(xt=>{let qe=xt;for(;qe&&qe.parentNode;){if(qe.parentNode===document)return!0;qe=qe.parentNode instanceof ShadowRoot?qe.parentNode.host:qe.parentNode}return!1})(Ie))return;const Je=(xt=>{const qe=window.getComputedStyle(xt);return{top:parseFloat(qe.scrollMarginTop)||0,right:parseFloat(qe.scrollMarginRight)||0,bottom:parseFloat(qe.scrollMarginBottom)||0,left:parseFloat(qe.scrollMarginLeft)||0}})(Ie);if((xt=>typeof xt=="object"&&typeof xt.behavior=="function")(he))return he.behavior(Oe(Ie,he));const xe=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:xt,top:qe,left:Ne}of Oe(Ie,Ee(he))){const Ve=qe-Je.top+Je.bottom,We=Ne-Je.left+Je.right;xt.scroll({top:Ve,left:We,behavior:xe})}}}}]);
|