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

1190 lines
918 KiB

This file contains ambiguous Unicode characters!

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

(self.webpackChunk=self.webpackChunk||[]).push([[799],{40001:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},73331:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},15277:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},33853:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},61485:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},47472:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},87395:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(54476),it=re(59301),ge={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"},Xe=ge,Ce=re(7657),Oe=function(he,et){return it.createElement(Ce.Z,(0,E.Z)({},he,{ref:et,icon:Xe}))},Pe=it.forwardRef(Oe),Re=Pe},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(on,Vt){"use strict";Vt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},78681:function(on,Vt){"use strict";Vt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},13108:function(on,Vt){"use strict";Vt.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},45936: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 on={},Vt="5.0",re={},E=null,it=!1,ge=!1,Xe=null,Ce=!1,Oe=null,Pe=null,Re=0;Re<arguments.length;Re++){var Ee=arguments[Re];if(Ee!==null)switch(typeof Ee){case"number":Vt=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?Vt=Ee:Xe=Ee;break;case"object":typeof Ee.is3D!="undefined"?E=Ee:re=Ee;break;case"boolean":it=Ee,ge=!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&&!ge&&(it=!0)),Xe!==null&&re.id===void 0&&(re.id=Xe);var he="",et="",Se=!1,ft=null,We=null,we=null,Le=!1,Ae=null,Je=null,ot=null,At=null,bt=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var st=function(ve){return parseFloat(ve)>4?parseFloat(ve):5};on.setHTML5Codebase=function(ve,$e){Pe=ve,Ze(ve,$e)},on.setJavaCodebase=on.setJavaCodebaseVersion=on.isCompiledInstalled=on.setPreCompiledScriptPath=on.setPreCompiledResourcePath=function(){},on.setHTML5CodebaseVersion=function(ve,$e){var je=parseFloat(ve);if(je!==NaN&&je<5){console.log("The GeoGebra HTML5 codebase version "+je+" is deprecated. Using version latest instead.");return}Oe=ve,ce(ve,$e)},on.getHTML5CodebaseVersion=function(){return We},on.getParameters=function(){return re},on.setFontsCSSURL=function(ve){At=ve},on.setGiacJSURL=function(ve){},on.setJNLPFile=function(ve){he=ve},on.setJNLPBaseDir=function(ve){},on.inject=function(){function ve(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",je=re.id,Ft,Bt=!1,Ht=0;Ht<arguments.length;Ht++){var Fe=arguments[Ht];typeof Fe=="string"?(Fe=Fe.toLowerCase(),Fe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=Fe:je=arguments[Ht]):typeof Fe=="boolean"?Bt=Fe:Fe instanceof HTMLElement&&(Ft=Fe)}_t();function _t(){if(!Ce){setTimeout(_t,200);return}$e=ht($e);var lt=Ft||document.getElementById(je);if(!lt){console.log("possibly bug on ajax loading? ");return}if(on.removeExistingApplet(lt,!1),re.width===void 0&&lt.clientWidth&&(re.width=lt.clientWidth),re.height===void 0&&lt.clientHeight&&(re.height=lt.clientHeight),!(re.width&&re.height)&&$e==="html5"&&(delete re.width,delete re.height),ft=$e,$e==="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=(!ut()||ve())&&qe()),ae?(ft="screenshot",Qe(lt,re,Bt,$e)):Ge(lt,re,Bt)}}};function ut(){try{return window.self!==window.top}catch(ve){return!0}}function qe(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}on.getViews=function(){return E},on.isJavaInstalled=function(){return!1};var Nt=function(ve){var $e=function(Ht){var Fe=JSON.parse(Ht),_t=function(te){return te.type=="G"||te.type=="E"},lt=Fe.elements?Fe.elements.filter(_t)[0]:Fe;if(!lt||!lt.url){je();return}re.fileName=lt.url,vt(lt.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";on.setPreviewImage(Ae||lt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ve()},je=function(){re.onError&&re.onError(),Tt("Error: Fetching material (id "+re.material_id+") failed.",re)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Bt="/materials/"+re.material_id+"?scope=basic";at("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(Bt),$e,je)};function vt(ve){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(je){ve[je]=!!ve[je]}),$e.forEach(function(je){re[je]===void 0&&ve[je]!==void 0&&(re[je]=ve[je])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function at(ve,$e,je){var Ft=new XMLHttpRequest;Ft.open("GET",ve),Ft.onload=function(){$e(Ft.responseText)},Ft.onerror=je,Ft.send()}on.isHTML5Installed=function(){return!0},on.getLoadedAppletType=function(){return ft},on.setPreviewImage=function(ve,$e,je){Ae=ve,Je=$e,ot=je},on.removeExistingApplet=function(ve,$e){var je;typeof ve=="string"&&(ve=document.getElementById(ve)),ft=null;var Ft=null;for(je=0;je<ve.childNodes.length;je++){var Bt=ve.childNodes[je],Ht=Bt.className;Ht==="applet_screenshot"?$e?(Bt.style.display="block",ft="screenshot"):Bt.style.display="none":Ht!=="applet_scaler prerender"&&(ve.removeChild(Bt),Ft=Ht&&Ht.indexOf("appletParameters")!=-1?Bt.id:null,je--)}var Fe=re.id!==void 0?re.id:Ft,_t=window[Fe];_t&&typeof _t.getBase64=="function"&&(_t.remove(),window[Fe]=null)},on.refreshHitPoints=function(){if(st(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ve=on.getAppletObject();return ve&&typeof ve.recalculateEnvironments=="function"?(ve.recalculateEnvironments(),!0):!1},on.startAnimation=function(){var ve=on.getAppletObject();return ve&&typeof ve.startAnimation=="function"?(ve.startAnimation(),!0):!1},on.stopAnimation=function(){var ve=on.getAppletObject();return ve&&typeof ve.stopAnimation=="function"?(ve.stopAnimation(),!0):!1},on.getAppletObject=function(){var ve=re.id!==void 0?re.id:"ggbApplet";return window[ve]},on.resize=function(){};var kt=function(ve,$e,je){var Ft=document.createElement("param");Ft.setAttribute("name",$e),Ft.setAttribute("value",je),ve.appendChild(Ft)},Be=function(ve){return ve&&ve!=="false"},Ge=function(ve,$e,je){st(We)<=4.2&&(je=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==We||ggbHTML5LoadedCodebaseIsWebSimple&&!Le)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Bt=document.createElement("div");Bt.classList.add("appletParameters","notranslate");var Ht=$e.width,Fe=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(st(We)<=4.4)Be($e.showToolBar)&&($e.height-=7),Be($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Be($e.showToolBar)&&($e.width=605,Ht=605);else{var _t=100;(Be($e.showToolBar)||Be($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),_t=Be($e.showMenuBar)?245:155),Ht<_t&&($e.width=_t,Ht=_t)}Bt.style.border="none",Bt.style.display="inline-block";for(var lt in $e)$e.hasOwnProperty(lt)&&lt!=="appletOnLoad"&&Bt.setAttribute("data-param-"+lt,$e[lt]);At&&Bt.setAttribute("data-param-fontscssurl",At),on.resize=function(){GGBAppletUtils.responsiveResize(ve,$e)},window.addEventListener("resize",function(Dt){on.resize()});var ae=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!je&&$e.width!==void 0){$e.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=De(Ht,Fe,$e.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Ht+"px",te.style.height=Fe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),st(We)>=5?($e.appletOnLoad=function(Dt){var Ot=ve.querySelector(".ggb_preview");Ot&&Ot.parentNode.removeChild(Ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Dt)},ee||te.appendChild(oe)):Bt.appendChild(oe),te.appendChild(Bt),ee||ve.appendChild(te),setTimeout(function(){on.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Bt),ve.appendChild(se),$e.appletOnLoad=function(Dt){on.resize(),ae(Dt)}}function ne(Dt,Ot){Ot&&typeof Ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,Ot.appletOnLoad):renderGGBElement(Dt),Tt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ot)}function pe(Dt,Ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:Ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(qt){ne(qt.article,qt.params)}),html5AppletsToProcess=null)},st(We)<5&&(Dt.className+=" geogebraweb")):ne(Dt,Ot)}if(Ft){scriptLoadStarted=!0;for(var be=0;be<Bt.childNodes.length;be++){var ct=Bt.childNodes[be].tagName;ct==="TABLE"&&(Bt.removeChild(Bt.childNodes[be]),be--)}if(ggbHTML5LoadedScript!==null){var Ie=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ie!=null&&Ie.parentNode.removeChild(Ie)}var Ve=document.createElement("script"),pt=function(){pe(Bt,$e)};Ve.src=et+we,ggbHTML5LoadedCodebaseIsWebSimple=Le,ggbHTML5LoadedCodebaseVersion=We,ggbHTML5LoadedScript=Ve.src,Tt("GeoGebra HTML5 codebase loaded: '"+et+"'.",$e),!Pe&&(!Oe||Oe=="5.0")?(Le?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),pt()):et.requirejs?__webpack_require__.e(2667).then(function(){var Dt=[__webpack_require__(72667)];pt.apply(null,Dt)}.bind(this)).catch(__webpack_require__.oe):(Ve.onload=pt,ve.appendChild(Ve))}else pe(Bt,$e);$e.height=Fe,$e.width=Ht},_e=function(ve,$e,je){var Ft=De($e.width,$e.height,$e.borderColor,je),Bt=document.createElement("div");Bt.style.position="relative",Bt.style.display="block",Bt.style.width=$e.width+"px",Bt.style.height=$e.height+"px",Bt.className="applet_screenshot applet_scaler"+(je?" applet_screenshot_play":""),Bt.appendChild(Ft);var Ht=GGBAppletUtils.getScale($e,ve,je);je?(ve.appendChild(Te()),window.GGBT_wsf_view||(ve.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Bt,"66%"),ve.appendChild(Bt),Ht!==1&&!isNaN(Ht)&&(GGBAppletUtils.scaleElement(Bt,Ht),Bt.style.width=$e.width+"px",Bt.style.height=$e.height+"px",Bt.parentNode.style.width=$e.width*Ht+"px",Bt.parentNode.style.height=$e.height*Ht+"px"),on.resize=function(){ue(ve,Ft,Bt,je)},window.addEventListener("resize",function(Fe){on.resize()}),on.resize()};function ue(ve,$e,je,Ft){if(ve.contains($e)){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,Ft);je.parentNode!==null&&(!isNaN(Bt)&&Bt!==1?(GGBAppletUtils.scaleElement(je,Bt),je.parentNode.style.width=re.width*Bt+"px",je.parentNode.style.height=re.height*Bt+"px"):(GGBAppletUtils.scaleElement(je,1),je.parentNode.style.width=re.width+"px",je.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()}}on.onExitFullscreen=function(ve,$e){$e.appendChild(ve)};var Qe=function(ve,$e,je,Ft){_e(ve,$e,!0);for(var Bt=function(){var _t=[];for(Fe=0;Fe<ve.childNodes.length;Fe++)_t.push(ve.childNodes[Fe]);if(window.GGBT_wsf_view){var lt=window.GGBT_wsf_view.renderFullScreen(ve,$e.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"))):Ge(lt,$e,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else ft=Ft,Ge(ve,$e,!1);if(!window.GGBT_wsf_view)for(Fe=0;Fe<_t.length;Fe++)ve.removeChild(_t[Fe])},Ht=ve.getElementsByClassName("ggb_preview_play"),Fe=0;Fe<Ht.length;Fe++)Ht[Fe].addEventListener("click",Bt,!1),Ht[Fe].addEventListener("ontouchstart",Bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ve),qe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Te=function(){var ve=document.createElement("div");if(ve.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.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");}',je=document.createElement("style");je.styleSheet?je.styleSheet.cssText=$e:je.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(je)}return ve},De=function(ve,$e,je,Ft){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=$e-2+"px",Bt.style.top="0px",Bt.style.left="0px",Bt.style.overflow="hidden",Bt.style.backgroundColor="white";var Ht="lightgrey";je!==void 0&&(je==="none"?Ht="transparent":Ht=je),Bt.style.border="1px solid "+Ht;var Fe=document.createElement("img");if(Fe.style.position="relative",Fe.style.zIndex="1000",Fe.style.top="-1px",Fe.style.left="-1px",Ae!==null&&Fe.setAttribute("src",Ae),Fe.style.opacity=.7,Je!==null){var _t,lt,ae;if(!Ft){_t=document.createElement("img"),_t.style.position="absolute",_t.style.zIndex="1001",_t.style.opacity=1,Fe.style.opacity=.3,lt=360,lt>ve/4*3&&(lt=ve/4*3),ae=lt/5.8,_t.setAttribute("src",Je),_t.setAttribute("width",lt),_t.setAttribute("height",ae);var te=(ve-lt)/2,ee=($e-ae)/2;_t.style.left=te+"px",_t.style.top=ee+"px",Bt.appendChild(_t)}}return Bt.appendChild(Fe),Bt},ht=function(ve){return ve=ve.toLowerCase(),ve==="html5"||ve==="screenshot"?ve:"html5"},me=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(ve,$e){if(We=ve,$e){Ze(We,!0);return}var je=!it;if(je){var Ft=st(We);!isNaN(Ft)&&Ft<4.4&&(je=!1)}var Bt,Ht;window.location.protocol.substr(0,4)==="http"?Bt=window.location.protocol:Bt="http:";var Fe=We.indexOf("//");Fe>0?Ht=We:Fe===0?Ht=Bt+We:Ht="https://www.geogebra.org/apps/5.2.814.0/";for(var _t in me)if(We.slice(me[_t].length*-1)===me[_t]||We.slice((me[_t].length+1)*-1)===me[_t]+"/"){Ze(Ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&je&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Be(re.showToolBar)&&!Be(re.showMenuBar)&&!Be(re.showAlgebraInput)&&!Be(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Ht+="webSimple/":Ht+="web3d/",Ze(Ht,!1)},Ze=function(ve,$e){if(ve.requirejs){et=ve;return}ve.slice(-1)!=="/"&&(ve+="/"),et=ve,$e===null&&($e=ve.indexOf("http")===-1),Se=$e,we="web.nocache.js",Le=!1;var je=et.split("/");je.length>1&&(!$e&&je[je.length-2]==="webSimple"?(we="webSimple.nocache.js",Le=!0):me.indexOf(je[je.length-2])>=0&&(we=je[je.length-2]+".nocache.js")),je=ve.split("/"),We=je[je.length-3],We.substr(0,4)==="test"?We=We.substr(4,1)+"."+We.substr(5,1):(We.substr(0,3)==="war"||We.substr(0,4)==="beta")&&(We="5.0");var Ft=parseFloat(We);Ft!==NaN&&Ft<5&&ve.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),ce("5.0",$e))},Tt=function(ve,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(ve)};re.material_id!==void 0?Nt(St):St();function St(){var ve=Vt;Oe!==null?ve=Oe:parseFloat(ve)<5&&(ve="5.0"),ce(ve,!1),Pe!==null&&Ze(Pe,Se),Ce=!0}return on},GGBAppletUtils=function(){"use strict";function on(){return window.GGBT_wsf_edit!==void 0}function Vt(Ce,Oe){Oe!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+Oe+","+Oe+")",Ce.style.webkitTransform="scale("+Oe+","+Oe+")",Ce.style.maxWidth="initial",Ce.querySelector(".ggb_preview")!==null&&(Ce.querySelector(".ggb_preview").style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ce.style.transform="none",Ce.style.webkitTransform="none")}function re(Ce,Oe,Pe,Re,Ee,he){var et=null;if(he!=null&&he!="")for(var Se=Ce.parentNode;Se!=null;)if((" "+Se.className+" ").indexOf(" "+he+" ")>-1){et=Se;break}else Se=Se.parentNode;var ft=0,We=0,we=0,Le=0,Ae=0,Je=0,ot=0;if(et)ft=et.offsetWidth,We=Math.max(Re?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ft=Math.min(window.innerWidth,document.documentElement.clientWidth),We=Math.min(window.innerHeight,document.documentElement.clientHeight),we=ft):(ft=window.innerWidth,We=window.innerHeight,we=window.innerWidth),Ce){var At=Ce.getBoundingClientRect();At.left>0&&At.left<=ft&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(Ae=ft-At.width-At.left,Je=we<=480?10:30):(Je=At.left,Ae=we<=480?10:30),Le=Je+Ae)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var bt=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Le=40,ot=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Le=0,ot=40)}}return Ce&&((Pe===void 0||!Pe)&&Oe>0&&Oe+Le<ft?ft=Oe:ft-=Le,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pe===void 0||!Pe)&&(We-=ot)),{width:ft,height:We}}function E(Ce,Oe,Pe,Re,Ee){if(Ce.isScreenshoGenerator)return 1;var he=Re!==void 0&&Re,et=Ce.noScaleMargin!=null&&Ce.noScaleMargin,Se=function(bt){return bt&&bt!=="false"},ft=Se(Ce.autoHeight),We=re(Oe,Ce.width,Pe,ft,he&&window.GGBT_wsf_view||et,Ee),we=parseInt(We.width),Le=Ce.width,Ae=Ce.height;if(Le===void 0){var Je=Oe.querySelector(".appletParameters");Je&&(Le=Je.offsetWidth,Ae=Je.offsetHeight)}var ot=we/Le,At=he?1:We.height/Ae;return Pe!==void 0&&!Pe&&(ot=Math.min(1,ot),At=Math.min(1,At)),Math.min(ot,At)}function it(Ce,Oe,Pe){var Re=1,Ee,he=!1;if(Ce.hasOwnProperty("allowUpscale")&&(he=Ce.allowUpscale),Ce.hasOwnProperty("scale")&&(Re=parseFloat(Ce.scale),(isNaN(Re)||Re===null||Re===0)&&(Re=1),Re>1&&(he=!0)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))Ee=E(Ce,Oe,he,Pe,Ce.scaleContainerClass);else return Re;return he&&(!Ce.hasOwnProperty("scale")||Re===1)?Ee:Math.min(Re,Ee)}function ge(Ce){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),Pe=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=Ce.getBoundingClientRect(),Ee=(Oe-Re.width)/2,he=(Pe-Re.height)/2;he<0&&(he=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?Ce.style.left="40px":Ce.style.left=Ee+"px",Ce.style.top=he+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(he<40?Ce.style.top="40px":Ce.style.top=he+"px",Ce.style.left=Ee+"px")}function Xe(Ce,Oe){var Pe=Ce.querySelector(".appletParameters");if(Pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==Pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(Pe.parentElement&&/fullscreen/.test(Pe.parentElement.className))return;var Re=it(Oe,Ce);on()&&Pe.setAttribute("data-param-scale",Re);for(var Ee=null,he=0;he<Ce.childNodes.length;he++)if(Ce.childNodes[he].className!==void 0&&Ce.childNodes[he].className.match(/^applet_scaler/)){Ee=Ce.childNodes[he];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var et=Oe.id!==void 0?Oe.id:"ggbApplet",Se=window[et];(Se==null||!Se.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(Re)&&Re!==1?(Ee.parentNode.style.width=Oe.width*Re+"px",Ee.parentNode.style.height=Oe.height*Re+"px",Vt(Ee,Re)):(Vt(Ee,1),Ee.parentNode.style.width=Oe.width+"px",Ee.parentNode.style.height=Oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ge(Ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Pe).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:on,positionCenter:ge,getScale:it,scaleElement:Vt}}();__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 on=n.location.search;return on.indexOf(J)!=-1||on.indexOf(K)!=-1}function q(on,Vt){}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(on){var Vt=s[L].bindings;s[L].bindings=function(){for(var re=Vt?Vt():{},E=on[webModule.__softPermutationId],it=O;it<E.length;it++){var ge=E[it];re[ge[O]]=ge[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var on=o.createElement(Q);if(on.id=L,on.style.cssText=R+S,on.tabIndex=-1,o.body.appendChild(on),t=on.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Vt=document.compatMode==U?V:W;t.write(Vt+X),t.close()}}}function w(on){function Vt(E){function it(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ge=it();if(ge){E();return}function Xe(){if(!ge){if(!it())return;ge=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),Ce&&clearInterval(Ce)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var Ce=setInterval(function(){Xe()},$)}function re(E){var it=u(),ge=it.body,Xe=it.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=E,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),ge.appendChild(Xe)}Vt(function(){re(on)})}webModule.__startLoadingFragment=function(on){return C(on)},webModule.__installRunAsyncCode=function(on){var Vt=u(),re=Vt.body,E=Vt.createElement(_);E.language=ab,E.text=on,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(on){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(on){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(on){var Vt=c[on];return Vt==null?null:Vt},r=d,webModule.__errFn=e}function B(){function on(Ce){var Oe=Ce.lastIndexOf(rb);Oe==-1&&(Oe=Ce.length);var Pe=Ce.indexOf(sb);Pe==-1&&(Pe=Ce.length);var Re=Ce.lastIndexOf(tb,Math.min(Pe,Oe));return Re>=O?Ce.substring(O,Re+P):W}function Vt(Ce){if(!Ce.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=Ce+vb,Ce=on(Oe.src)}return Ce}function re(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function E(){for(var Ce=o.getElementsByTagName(_),Oe=O;Oe<Ce.length;++Oe)if(Ce[Oe].src.indexOf(xb)!=-1)return on(Ce[Oe].src);return W}function it(){var Ce=o.getElementsByTagName(yb);return Ce.length>O?Ce[Ce.length-P].href:W}function ge(){var Ce=o.location;return Ce.href==Ce.protocol+zb+Ce.host+Ce.pathname+Ce.search+Ce.hash}var Xe=re();return Xe==W&&(Xe=E()),Xe==W&&(Xe=it()),Xe==W&&ge()&&(Xe=on(o.location.href)),Xe=Vt(Xe),Xe}function C(on){return on.match(/^\//)||on.match(/^[a-zA-Z]+:\/\//)?on:webModule.__moduleBase+on}function D(){var on=[],Vt=O,re=[],E=[];function it(Ce){var Oe=E[Ce](),Pe=re[Ce];if(Oe in Pe)return Oe;var Re=[];for(var Ee in Pe)Re[Pe[Ee]]=Ee;throw r&&r(Ce,Re,Oe),null}if(__gwt_isKnownPropertyValue=function(Ce,Oe){return Oe in re[Ce]},webModule.__getPropMap=function(){var Ce={};for(var Oe in re)re.hasOwnProperty(Oe)&&(Ce[Oe]=it(Oe));return Ce},webModule.__computePropValue=it,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Xe=ge.indexOf(Db);Xe!=-1&&(Vt=parseInt(ge.substring(Xe+P),$),ge=ge.substring(O,Xe))}catch(Ce){}return webModule.__softPermutationId=Vt,C(ge+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})()},8240:function(on,Vt,re){"use strict";re.d(Vt,{Ax:function(){return Xe},Ds:function(){return Ce},KI:function(){return Pe},SI:function(){return ge},f1:function(){return it}});var E=re(35783);function it(Re){let Ee=!0;if(Re.length>0){for(let he=0;he<Re.length;he++)if(Re[he].compile_success==0||!Re[he].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function ge(Re,Ee=""){let he=[];for(let et=0;et<Re.length;et++){let Se=Re[et],ft=Ee?`${Ee}/${Se.name}`:`${Se.name}`;he.push({title:Se.name,type:Se.type,isLeaf:Se.type!=="tree",key:ft})}return he}function Xe(Re,Ee,he){for(let et=0;et<Re.length;et++){let Se=Re[et];if(Se.key===Ee){Se.children=he;break}Se.children&&Xe(Se.children,Ee,he)}return Re}function Ce(Re,Ee,he){let et;return function(){let Se=this,ft=arguments,We=function(){et=null,he||Re.apply(Se,ft)},we=he&&!et;clearTimeout(et),et=setTimeout(We,Ee),we&&Re.apply(Se,ft)}}const Oe=!0,Pe=E.Z.API_SERVER},78265:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return et}});var E=re(59301),it={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ge=re(92310),Xe=re.n(ge),Ce=re(29787),Oe=re(2859),Pe=re(22972),Re=re(68911),Ee=(Se,ft,We)=>new Promise((we,Le)=>{var Ae=At=>{try{ot(We.next(At))}catch(bt){Le(bt)}},Je=At=>{try{ot(We.throw(At))}catch(bt){Le(bt)}},ot=At=>At.done?we(At.value):Promise.resolve(At.value).then(Ae,Je);ot((We=We.apply(Se,ft)).next())}),et=({data:Se,className:ft,fullWidth:We,style:we={},onClose:Le,onOk:Ae,showFullTools:Je,noAssociationId:ot})=>{const At=(0,E.useRef)(null),bt=(0,E.useRef)(null),st=(0,E.useRef)(null),ut=(0,E.useRef)(null),[qe,Nt]=(0,E.useState)(!1),[vt,at]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(st.current||(st.current=document.createElement("style"),document.head.appendChild(st.current)),Se!=null&&Se.visible?(document.body.setAttribute("data-custom","y-hidden"),st.current.innerHTML=" html { overflow-y: hidden; }",Se!=null&&Se.src&&kt()):(document.body.removeAttribute("data-custom"),st.current&&(document.head.removeChild(st.current),st.current=null)),()=>{document.body.removeAttribute("data-custom"),st.current&&(document.head.removeChild(st.current),st.current=null)}),[Se==null?void 0:Se.visible]);const kt=()=>Ee(void 0,null,function*(){Nt(!0),at("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Re.ZJ)(Se==null?void 0:Se.src);At.current.src="",At.current.src=ue,At.current.onload=function(){_e()},Nt(!1),at("")}),Be=ue=>Ee(void 0,null,function*(){Nt(!0),at("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Qe=yield(0,Pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Se.title,file:ue.dataUrl}});Qe!=null&&Qe.id&&!ot?(yield(0,Pe.ZP)(`/api/attachments/${Se.id}/add_subitem.json`,{method:"post",body:{subitem_id:Qe==null?void 0:Qe.id,settings:JSON.stringify(ue.state)}})).status===0&&Ae():Qe!=null&&Qe.id&&Ae(Qe),Nt(!1),at("")}),Ge=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.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(Te=>{const De=document.querySelector(Te.name);De&&De.setAttribute("title",Te.title)})},_e=()=>{bt.current=new Oe.hP(At.current),bt.current.targetRoot=ut.current,bt.current.addEventListener("render",Be),bt.current.addEventListener("beforeclose",Le),Je&&(bt.current.availableMarkerTypes=bt.current.ALL_MARKER_TYPES,bt.current.uiStyleSettings.redoButtonVisible=!0,bt.current.uiStyleSettings.notesButtonVisible=!0,bt.current.uiStyleSettings.zoomButtonVisible=!0,bt.current.uiStyleSettings.zoomOutButtonVisible=!0,bt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=bt.current.uiStyleSettings,bt.current.show(),Se!=null&&Se.snapshotData&&bt.current.restoreState(Se.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ge()},300)};return E.createElement(E.Fragment,null,(Se==null?void 0:Se.visible)&&E.createElement(Ce.Z,{spinning:qe,tip:vt,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:ut,className:Xe()(it.imageDimensions,ft,We?it.fullWidth:""),style:we},E.createElement("img",{className:it.img,ref:At}))))}},9043:function(on,Vt,re){"use strict";var E=re(59301),it=re(77019),ge=re(5269),Xe=re(31691),Ce=re(7939),Oe=re(56375),Pe=re(50718),Re=re(48136),Ee=re(59301);const he=(0,E.forwardRef)(({callback:et,showSaveButton:Se,value:ft=""},We)=>{const we=(0,E.useRef)(),Le=[{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 "}]}]}],Ae=[{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}`}]}]}],Je=bt=>{we.current.setValue(we.current.getValue()+" "+bt.value+" ")},ot=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(it.Z,{className:Pe.Z.lists,gutter:[10,10]},Le.map((bt,st)=>Ee.createElement(ge.Z,{flex:"110px",className:Pe.Z.item},Ee.createElement("div",null,Ee.createElement(Oe.Z,{value:`$$${bt.value}$$`}),bt.name),Ee.createElement("div",{className:Pe.Z.children},bt.children.map((ut,qe)=>Ee.createElement("div",{key:qe},Ee.createElement("h1",null,ut.name),Ee.createElement(it.Z,{gutter:[10,10]},ut.data.map((Nt,vt)=>Ee.createElement(ge.Z,{key:vt,onClick:()=>Je(Nt),className:Pe.Z.diamond},Ee.createElement(Oe.Z,{value:"`$$"+Nt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(it.Z,{className:Pe.Z.lists,gutter:[10,10]},Ae.map((bt,st)=>Ee.createElement(ge.Z,{flex:"110px",className:Pe.Z.item},Ee.createElement("div",null,Ee.createElement(Oe.Z,{value:"`$$"+bt.value+"$$`"}),bt.name),Ee.createElement("div",{className:Pe.Z.children},bt.children.map((ut,qe)=>Ee.createElement("div",{key:qe},ut.name&&Ee.createElement("h1",null,ut.name),Ee.createElement(it.Z,{gutter:[10,10]},ut.data.map((Nt,vt)=>Ee.createElement(ge.Z,{key:vt,onClick:()=>Je(Nt),className:Pe.Z.diamond},Ee.createElement(Oe.Z,{value:"`$$"+Nt.value+"$$`"}))))))))))}],At=()=>{var bt=document.createElement("div");bt.innerHTML=we.current.getValue();var st=bt.innerText;return et&&et(st),st};return(0,E.useImperativeHandle)(We,()=>({getData:At})),Ee.createElement("div",{className:Pe.Z.mathWrap},Ee.createElement(Xe.default,{defaultActiveKey:"1",items:ot}),Ee.createElement("math-field",{locale:"zh_cn",className:Pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:we,style:{width:800,marginTop:30,fontSize:18}},ft||""),Se&&Ee.createElement("div",{className:Pe.Z.button},Ee.createElement(Ce.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Vt.Z=he},71347:function(on,Vt,re){"use strict";var E=re(59301),it=re(93314),ge=re(7939),Xe=Object.defineProperty,Ce=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,he=(We,we,Le)=>we in We?Xe(We,we,{enumerable:!0,configurable:!0,writable:!0,value:Le}):We[we]=Le,et=(We,we)=>{for(var Le in we||(we={}))Re.call(we,Le)&&he(We,Le,we[Le]);if(Pe)for(var Le of Pe(we))Ee.call(we,Le)&&he(We,Le,we[Le]);return We},Se=(We,we)=>Ce(We,Oe(we));const ft=({img:We,buttonProps:we={},styles:Le={},customText:Ae,ButtonText:Je,ButtonClick:ot,Buttonclass:At,ButtonTwo:bt,imgStyles:st,loading:ut=!1,className:qe=""})=>E.createElement("section",{className:`tc animated fadeIn ${qe}`,style:et({color:"#999",margin:"100px auto",visibility:ut?"hidden":"visible"},Le)},E.createElement("img",{src:We||it,style:Se(et({},st),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},Ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Je&&E.createElement(ge.ZP,et({className:At,onClick:ot},we),Je),bt&&bt);Vt.Z=ft},98893:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return At}});var E=re(59301),it={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=re(7939),Xe=re(70557),Ce=re(94871),Oe=re(25399),Pe=re(68911),Re=re(58870),Ee=re(71347),he=re(35783),et=re(25341),Se=re(59301),ft=Object.defineProperty,We=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ae=(bt,st,ut)=>st in bt?ft(bt,st,{enumerable:!0,configurable:!0,writable:!0,value:ut}):bt[st]=ut,Je=(bt,st)=>{for(var ut in st||(st={}))we.call(st,ut)&&Ae(bt,ut,st[ut]);if(We)for(var ut of We(st))Le.call(st,ut)&&Ae(bt,ut,st[ut]);return bt},ot=(bt,st,ut)=>new Promise((qe,Nt)=>{var vt=Be=>{try{kt(ut.next(Be))}catch(Ge){Nt(Ge)}},at=Be=>{try{kt(ut.throw(Be))}catch(Ge){Nt(Ge)}},kt=Be=>Be.done?qe(Be.value):Promise.resolve(Be.value).then(vt,at);kt((ut=ut.apply(bt,st)).next())}),At=({editOffice:bt="view",data:st,issaver:ut,onSaver:qe,theme:Nt,type:vt,filename:at,monacoEditor:kt,className:Be,style:Ge,close:_e,onClose:ue,hasMask:Qe,disabledDownload:Te,onImgDimensions:De,showNodata:ht,recordInfo:me})=>{const[ce,Ze]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Tt,St]=(0,E.useState)(""),[ve,$e]=(0,E.useState)(),je=window.ENV==="build"?"/react/build":"",Ft=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,Ht=10*(1024*1024),Fe=(0,E.useRef)();st!=null&&st.startsWith("/api")&&vt!=="txt"&&(st=he.Z.API_SERVER+st);const _t=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();at&&kt&&(kt.filename=at),(0,E.useEffect)(()=>{var se,ne;const pe=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");pe==null||pe.map(be=>{let ct=be.split("=");ct[0]==="_educoder_session"&&St(ct[1])})},[]),(0,E.useEffect)(()=>{vt==="office"&&(st.indexOf("bigfilescdn.")>-1||st.indexOf("bigfiles1")>-1?$e({url:st,fileType:_t(st),model:st.indexOf("model=edit")?"edit":"view"}):st.indexOf("coze")>-1?$e({url:st,fileType:"doc",model:"view"}):ae())},[vt,st]);function lt(se){return ot(this,null,function*(){se.data.type==="pdfdata"&&(qe(se.data.data),window.removeEventListener("message",lt,!1)),console.log("mess---:",se.data)})}const ae=()=>ot(void 0,null,function*(){console.log("data:",st);let se=st;st.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,Re.gJ)({attachment_id:ne});pe.url=Ft+pe.url,$e(pe)}),te=()=>{if(st.startsWith("http")||st.startsWith("blob:")){ee();return}(0,Pe.Sv)(at||"educoder",st,at)},ee=()=>{me&&(0,et.fc)({id:me==null?void 0:me.id,watch_type:1,course_id:me==null?void 0:me.course_id}),(0,Pe.Nd)(at||"educoder",decodeURIComponent(st))};(0,E.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&ue()};return Se.createElement("div",{style:Je({},Ge||{}),className:`${Qe&&it.bgBlack} ${vt?it.wrp:"hide"}`},!!vt&&_e&&Se.createElement("div",{id:"closePop",className:it.close,ref:Fe},!!De&&Se.createElement(Oe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Fe.current},Se.createElement("span",{onClick:()=>{ue(),De()}},Se.createElement("i",{className:"icon-yulanpizhu"}))),!Te&&window.parent===window&&Se.createElement(Oe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Fe.current},Se.createElement("span",{onClick:ee},Se.createElement("i",{className:"icon-quxiaozhiding"}))),ut&&Se.createElement(Oe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Fe.current},Se.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",lt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Se.createElement("i",{className:"icon-baocun"}))),Se.createElement(Oe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Fe.current},Se.createElement("span",{className:"",onClick:()=>{ue()}},Se.createElement("i",{className:"icon-guanbi1"})))),Se.createElement("div",{className:`${it[Be]} ${Be} ${it.monaco} ${vt==="txt"?"show":"hide"}`},vt==="txt"&&Se.createElement(Se.Fragment,null,Se.createElement(Ce.ZP,Je({},kt)))),vt==="audio"&&Se.createElement("audio",{src:`${(st==null?void 0:st.indexOf("http://"))>-1||(st==null?void 0:st.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${st}`,autoPlay:!0}),vt==="video"&&Se.createElement(Se.Fragment,null,(st==null?void 0:st.indexOf("http"))>-1?Se.createElement("video",{controls:!0,src:`${st}`,autoPlay:!0}):Se.createElement("video",{controls:!0,src:`data:video/mp4;base64,${st}`,autoPlay:!0})),vt==="office"&&ve&&Se.createElement("iframe",{src:`${je}/office.html?key=${ve.key}&url=${btoa(ve.url)}&callbackUrl=${Ft+(ve.callbackUrl||"")}&fileType=${ve.fileType}&title=${ve.title||""}&model=${bt}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!Te}`}),vt==="html"&&Se.createElement("iframe",{src:st+"&disposition=inline"}),vt==="pdf"&&Se.createElement("iframe",{id:"pdfiframe",src:`${je}/js/pdf/index.html?filename=${at||"educoder.pdf"}&url=${encodeURIComponent(st)}&disabledDownload=${!!Te}&model=${bt}`}),vt==="image"&&Se.createElement("img",{src:`${(st==null?void 0:st.indexOf("http://"))>-1||(st==null?void 0:st.indexOf("https://"))>-1?"":"data:image/png;base64,"}${st}`}),(vt==="other"||vt==="download")&&Se.createElement(Se.Fragment,null,ht?Se.createElement(Ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Se.createElement(ge.ZP,{icon:Se.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Te},"\u4E0B\u8F7D")}):Se.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:Te},Se.createElement(Xe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),vt==="flowChart"&&Se.createElement("div",{className:"embed"},Se.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${st||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},8831:function(on,Vt,re){"use strict";re.d(Vt,{h:function(){return we},x:function(){return Le}});var E=re(32862),it=re(78681),ge=re(56375),Xe=re(59301),Ce=Object.defineProperty,Oe=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,et=(Ae,Je,ot)=>Je in Ae?Ce(Ae,Je,{enumerable:!0,configurable:!0,writable:!0,value:ot}):Ae[Je]=ot,Se=(Ae,Je)=>{for(var ot in Je||(Je={}))Ee.call(Je,ot)&&et(Ae,ot,Je[ot]);if(Re)for(var ot of Re(Je))he.call(Je,ot)&&et(Ae,ot,Je[ot]);return Ae},ft=(Ae,Je)=>Oe(Ae,Pe(Je)),We=(Ae,Je)=>{var ot={};for(var At in Ae)Ee.call(Ae,At)&&Je.indexOf(At)<0&&(ot[At]=Ae[At]);if(Ae!=null&&Re)for(var At of Re(Ae))Je.indexOf(At)<0&&he.call(Ae,At)&&(ot[At]=Ae[At]);return ot};const we=Ae=>{var Je=Ae,{value:ot,onChange:At,scrollId:bt}=Je,st=We(Je,["value","onChange","scrollId"]);return Xe.createElement("div",{id:bt||""},Xe.createElement(E.Z,ft(Se({},st),{defaultValue:ot,onChange:(ut,qe)=>{qe!=null&&qe.length?At(ut,qe):At(ut)}})))},Le=({value:Ae,onChange:Je,placeholder:ot,height:At=140,isEdit:bt,miniToolbar:st,watch:ut=!0})=>bt?Xe.createElement(E.Z,{watch:ut,isFocus:!0,height:At||void 0,placeholder:ot,defaultValue:Ae,onChange:Je,miniToolbar:st}):Xe.createElement("div",{style:{cursor:"pointer"}},Ae?Xe.createElement(ge.Z,{className:it.Z.inputBorder,value:Ae}):Xe.createElement("div",{className:`${it.Z.inputBorder} ${it.Z.placeholder} inputBorderError`},ot))},56375:function(on,Vt,re){"use strict";re.d(Vt,{z:function(){return kt},Z:function(){return Be}});var E=re(59301),it=re(64310),ge=re(74410),Xe=re(64018),Ce=re(16471),Oe=re(35783),Pe=re(68911),Re=re(15342),Ee=re(44104),he=re(7939),et=re(1012),Se=re(98893),ft=re(59301),we=({html:Ge})=>{const _e=(0,E.useRef)(null),ue=(0,E.useRef)(null),Qe=`.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 Te=_e.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=Ge,Te.appendChild(ue.current);const De=document.createElement("style");return De.textContent=Qe,Te.appendChild(De),()=>{Te.innerHTML=""}},[]),(0,E.useEffect)(()=>{ue.current&&(ue.current.innerHTML=Ge)},[Ge]),ft.createElement("div",{ref:_e})};function Le(Ge){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"],ue=new RegExp(`\\b(${_e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Qe=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Ge.replace(ue,"").replace(Qe,"").trim()}var Ae={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Je=Object.defineProperty,ot=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,st=(Ge,_e,ue)=>_e in Ge?Je(Ge,_e,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Ge[_e]=ue,ut=(Ge,_e)=>{for(var ue in _e||(_e={}))At.call(_e,ue)&&st(Ge,ue,_e[ue]);if(ot)for(var ue of ot(_e))bt.call(_e,ue)&&st(Ge,ue,_e[ue]);return Ge};const qe="@\u2581\u2581@",Nt="@\u2581@",vt=/<pre[^>]*>/g;function at(Ge){let _e=document.createElement("div");return _e.innerHTML=Ge,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const kt=(Ge,_e)=>{Ge=Ge||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Te=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,De=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?Ge.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(ht,me,ce,Ze,Tt,St,ve)=>{const $e=me||Ze||St,je=ce||Tt||ve||"?";return Oe.Z.API_SERVER+"/api/attachments/"+$e+je+"&t="+(0,Pe.Jn)($e,Date.now())+(ht.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ge=Ge.replace(De,(ht,me,ce,Ze,Tt,St,ve)=>{const $e=me||Ze||St,je=ce||Tt||ve||"?";return Oe.Z.API_SERVER+"/attachments/download/"+$e+je+"&t="+(0,Pe.Jn)($e,Date.now())+(ht.indexOf(")")>-1?")":"&")}).replace(ue,(ht,me,ce,Ze,Tt,St,ve)=>{const $e=me||Ze||St,je=ce||Tt||ve||"?";return Oe.Z.API_SERVER+"/api/attachments/"+$e+je+"&t="+(0,Pe.Jn)($e,Date.now())+(ht.indexOf(")")>-1?")":"&")}).replace(Qe,(ht,me,ce,Ze,Tt)=>{const St=me||Ze,ve=ce||Tt||"";return'"'+Oe.Z.API_SERVER+"/api/attachments/"+St+ve+St+ve+"&t="+(0,Pe.Jn)(St,Date.now())}).replace(Te,(ht,me,ce,Ze,Tt)=>{const St=me||Ze,ve=ce||Tt||"";return"("+Oe.Z.API_SERVER+"/files/uploads/"+St+ve+St+ve+"&t="+(0,Pe.Jn)(St,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Ge)};var Be=({value:Ge="",edit:_e=!1,className:ue,showTextOnly:Qe,showLines:Te,style:De={},stylesPrev:ht={},highlightKeywords:me,showProgramFill:ce,isProgramFill:Ze,disabledFill:Tt=!1,programFillValue:St,openEditor:ve=()=>{},onFillChange:$e=Bt=>{},onFillBlur:je=()=>{},onFillFocus:Ft=()=>{}})=>{let Bt=Le(String(Ge||""));const Ht=(0,E.useRef)(),Fe=(0,E.useRef)(),[_t,lt]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),se=(0,E.useRef)("a"+(0,et.Z)()),ne={},pe=dt=>/<style[\s\S]*?>/i.test(dt||""),be=(dt,en,Gt)=>{const Ne=document.createElement(dt===Nt?"input":"textarea");Ne.style.width="100%",Ne.style.height=dt===Nt?"40px":"151px",Ne.rows=5,Ne.spellcheck=!1,Ne.name="edu-program-fill",Ne.placeholder="\u8BF7\u8F93\u5165",Ne.dataset.id=en;const nt=Object.keys(ne).length;return ne[nt]=Ne,`<span class="edu-program-fill-wrap ${dt===Nt?"":"show"}" style="width:${dt===Nt?"600px":"100%"}" title=${Gt||""}><span>${Ne.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ct(dt){return dt=dt.replace(/!\[.*?\]\(.*?\)/g,""),dt=dt.replace(/\[.*?\]\(.*?\)/g,""),dt=dt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),dt=dt.replace(/<embed.*?>/g,""),dt=dt.replace(/<img.*?>/g,""),dt=dt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),dt=dt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),dt=dt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),dt=dt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),dt}const Ie=dt=>!Qe&&pe(Bt)?dt:dt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(en,Gt){let Ne=Gt.replace(/(\n|\r)/g,"").split("}"),nt=[];return Ne.map(Ke=>{Ke!=""&&nt.push(`.${se.current} ${Ke}`)}),`<style>${nt.join("}")}</style>`}),Ve=(0,E.useMemo)(()=>{(0,ge.Iy)();try{const Ne=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,nt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,It=/\(\/attachments\/download\//g;Bt=Bt.replace(It,"("+Oe.Z.API_SERVER+"/attachments/download/").replace(Ne,"("+Oe.Z.API_SERVER+"/api/attachments/").replace(nt,'"'+Oe.Z.API_SERVER+"/api/attachments/").replace(Ke,'"'+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,`
`),Ht.current.style.display="none"}catch(Ne){}if(ce){let Ne=-1;return Bt=Bt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(nt,Ke,It){var Me;return++Ne,be(nt,Ne,(Me=St==null?void 0:St[Ne])==null?void 0:Me.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ie(Bt||"")}</pre>`}let dt=Ie(Bt);dt=(0,ge.ZP)(dt);const en=(0,ge.ez)();Bt.match(/\[TOC\]/)&&(dt=dt.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),dt=dt.replace(/(__special_katext_id_\d+__)/g,(Ne,nt)=>{const{type:Ke,expression:It}=en[nt];return(0,Re.renderToString)(at(It)||"",{displayMode:Ke==="block",throwOnError:!1,output:"html"})}),dt=dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Gt=document.createElement("div");if(Gt.innerHTML=dt,Qe)return Gt.innerText;if(me){const Ne=me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return qt(Gt,Ne),Gt.innerHTML}return setTimeout(()=>Pt(),500),Gt.innerHTML},[Bt,me]);(0,E.useEffect)(()=>{Kt.current&&Kt.current.querySelectorAll(["input","textarea"]).forEach(en=>{en.oninput=pt,en.onblur=Dt,en.onfocus=Ot})},[ee]),(0,E.useEffect)(()=>{var dt,en,Gt,Ne,nt;if(St!=null&&St.length)try{const Ke=Kt.current.querySelectorAll(".edu-program-fill-score"),It=Kt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Me,Ye]of It.entries())Ye.value=((dt=St==null?void 0:St[Me])==null?void 0:dt.value)||"",((en=St==null?void 0:St[Me])==null?void 0:en.type)==="warning"?Ye.className="program-fill-warning":((Gt=St==null?void 0:St[Me])==null?void 0:Gt.type)==="success"?Ye.className="program-fill-success":Ye.className="";for(const[Me,Ye]of Ke.entries())Ye.innerHTML=(Ne=St==null?void 0:St[Me])!=null&&Ne.score?`${(nt=St==null?void 0:St[Me])==null?void 0:nt.score}\u5206`:"";oe(St)}catch(Ke){console.log(Ke,"error")}},[St]);const pt=dt=>{ee[dt.target.dataset.id]=ee[dt.target.dataset.id]||{},ee[dt.target.dataset.id].value=dt.target.value,oe([...ee]),$e(ee,dt.target.dataset.id)},Dt=dt=>{ee[dt.target.dataset.id]=ee[dt.target.dataset.id]||{},ee[dt.target.dataset.id].value=dt.target.value,oe([...ee]),je(ee,dt.target.dataset.id)},Ot=dt=>{ee[dt.target.dataset.id]=ee[dt.target.dataset.id]||{},ee[dt.target.dataset.id].value=dt.target.value,oe([...ee]),Ft(ee,dt.target.dataset.id)};function qt(dt,en){return dt.childNodes.forEach(Gt=>{var Ne;if(Gt.childNodes.length>0)qt(Gt,en);else if(Gt.nodeName!=="IMG")if(Gt.innerHTML)Gt.innerHTML=(Ne=Gt.innerHTML)==null?void 0:Ne.replace(new RegExp(en,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const nt=document.createElement("span");nt.innerHTML=Gt.textContent.replace(new RegExp(en,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Gt.replaceWith(nt)}})}const Kt=(0,E.useRef)();ge.jb.WebkitLineClamp=Te,Te&&(De=ut(ut({},De),ge.jb));function Ut(dt){let en=dt.target;if(en.tagName.toUpperCase()==="A"){let Gt=en.getAttribute("href");if(Gt.indexOf("office")>-1)dt.preventDefault(),lt(Gt),te("office");else if(Gt.indexOf("application/pdf")>-1)dt.preventDefault(),lt(Gt),te("pdf");else if(Gt.indexOf("text/html")>-1)dt.preventDefault(),lt(Gt),te("html");else if(Gt.startsWith("#")){dt.preventDefault();let Ne=document.getElementById(Gt.replace("#",""));Ne&&Ne.scrollIntoView(!0)}}}const Pt=()=>{var dt;const en=(dt=Kt.current)==null?void 0:dt.querySelectorAll("video");en==null||en.forEach(Gt=>{if(Gt.oncontextmenu=()=>!1,Gt.src.indexOf(".m3u8")>-1&&!Gt.canPlayType("application/vnd.apple.mpegurl")){if(Ce.ZP.isSupported()){var Ne=new Ce.ZP;Ne.loadSource(Gt.src),Ne.attachMedia(Gt)}}})};(0,E.useEffect)(()=>{if(Kt.current&&Ve&&Ve.match(vt)&&window.PR.prettyPrint(),Kt.current)return Kt.current.addEventListener("click",Ut),()=>{var dt;(dt=Kt.current)==null||dt.removeEventListener("click",Ut),(0,ge.AL)(),(0,ge.Iy)()}},[Ve,Kt.current,Ut]);const wt=dt=>{dt.target.nodeName==="IMG"&&dt.target.className.indexOf("draw-flowchart")>-1?(Ht.current.style.zIndex=1,Ht.current.style.display="flex",Ht.current.style.width=dt.target.clientWidth+"px",Ht.current.style.height=dt.target.clientHeight+"px",Ht.current.style.top=dt.target.offsetTop+"px",Ht.current.style.left=dt.target.offsetLeft+"px",dt.target.id&&(Fe.current=dt.target.id)):Ht.current.style.display="none"},mt=()=>{Ht.current.style.display="none"};return(0,E.useEffect)(()=>{var dt;const en=Gt=>{Gt.preventDefault(),Gt.clipboardData.setData("text",window.getSelection().toString())};return(dt=Kt.current)==null||dt.addEventListener("copy",en),()=>{var Gt;(Gt=Kt.current)==null||Gt.removeEventListener("copy",en)}},[Kt.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:mt},Qe&&E.createElement("div",{ref:Kt,className:`${Ae.mdBody} `},Ve),!Qe&&!pe(Ve)&&E.createElement("div",{ref:Kt,style:ut({},De),onMouseOver:wt,className:`${ue||""} ${Tt?"disabled-fill":""} markdown-body ${Ae.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ve}}),!Qe&&pe(Ve)&&E.createElement(we,{html:Ve}),E.createElement("div",{ref:Ht,className:`${Ae.button} ${_e?"":Ae.previewFlowChart}`},E.createElement(Ee.Z,null,E.createElement(he.ZP,{onClick:()=>{_e?ve(Fe.current):(lt(Fe.current),te("flowChart"))}},_e?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(Se.Z,{close:!0,data:_t,type:_t!=null&&_t.length?ae:"",style:ut({},ht),onClose:()=>lt("")}))}},56383:function(on,Vt,re){"use strict";re.d(Vt,{h:function(){return bt}});var E=re(59301),it=re(82326),ge=re(28284),Xe=re(7939),Ce=re(89780),Oe=re.n(Ce),Pe=re(3706),Re=re(96772),Ee=Object.defineProperty,he=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,we=(st,ut,qe)=>ut in st?Ee(st,ut,{enumerable:!0,configurable:!0,writable:!0,value:qe}):st[ut]=qe,Le=(st,ut)=>{for(var qe in ut||(ut={}))ft.call(ut,qe)&&we(st,qe,ut[qe]);if(Se)for(var qe of Se(ut))We.call(ut,qe)&&we(st,qe,ut[qe]);return st},Ae=(st,ut)=>he(st,et(ut));const Je=it.default.Option,ot={labelCol:{span:4},wrapperCol:{span:20}},At={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Vt.Z=({callback:st,onCancel:ut})=>{const[qe,Nt]=(0,E.useState)("python");function vt(kt){Nt(At[kt][1])}function at(kt){st(kt)}return E.createElement(ge.default,Ae(Le({},ot),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:at,style:{width:500}}),E.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(it.default,{getPopupContainer:kt=>kt.parentNode,onChange:vt},Object.keys(At).map(kt=>E.createElement(Je,{key:kt,value:kt},At[kt][0])))),E.createElement(ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(bt,{mode:qe})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Xe.ZP,{type:"ghost",onClick:ut},"\u53D6\u6D88")))};function bt({value:st,onChange:ut,mode:qe,options:Nt={}}){const vt=(0,E.useRef)(),[at,kt]=(0,E.useState)();return(0,E.useEffect)(()=>{if(at){let Be=function(Ge){const _e=Ge.getValue();ut&&ut(_e)};return at.on("change",Be),()=>{at.off("change",Be)}}},[at,ut]),(0,E.useEffect)(()=>{at&&at.setOption("mode",qe)},[at,qe]),(0,E.useEffect)(()=>{at&&(st!==at.getValue()||st==="")&&setTimeout(()=>{at.setValue(st||"")},300)},[at,st]),(0,E.useEffect)(()=>{if(vt.current&&!at){const Be=Oe().fromTextArea(vt.current,Le({mode:qe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Nt));kt(Be)}},[vt.current,at]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:vt}))}},32862:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Lt}});var E=re(59301),it=re(63823),ge=re(89780),Xe=re.n(ge),Ce=re(76374),Oe=re(3706),Pe=re(6313),Re=re(25717),Ee=re(99498),he=re(25419),et=re(67549),Se=re(56375),ft=({value:Ct="",className:Jt,showTextOnly:Qt,showLines:tn,style:un={}})=>{const yn=(0,E.useMemo)(()=>"",[Ct]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:yn}}))},We=Object.defineProperty,we=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,At=(Ct,Jt,Qt)=>Jt in Ct?We(Ct,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Ct[Jt]=Qt,bt=(Ct,Jt)=>{for(var Qt in Jt||(Jt={}))Je.call(Jt,Qt)&&At(Ct,Qt,Jt[Qt]);if(Ae)for(var Qt of Ae(Jt))ot.call(Jt,Qt)&&At(Ct,Qt,Jt[Qt]);return Ct},st=(Ct,Jt)=>we(Ct,Le(Jt));let ut=[{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 qe({onActionCallback:Ct,title:Jt,icon:Qt,actionName:tn,className:un="",children:yn}){function gn(){Ct(tn)}return E.createElement("a",{title:Jt,className:un,onClick:gn},E.createElement("i",{className:`${Qt}`}),yn)}var Nt=({watch:Ct,showNullButton:Jt,showNullProgramButton:Qt,onActionCallback:tn,fullScreen:un,insertTemp:yn,hidetoolBar:gn,extraUse:On})=>{const En=[...ut,{title:`${Ct?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ct?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!gn&&En.map((Mn,Bn)=>E.createElement("li",{key:Bn},Mn.actionName?E.createElement(qe,st(bt({},Mn),{onActionCallback:tn})):E.createElement("span",{className:"v-line"}))),Jt?E.createElement("li",null,E.createElement(qe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:tn},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Qt?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(qe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:tn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(qe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:tn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,yn&&E.createElement("li",null,E.createElement(qe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${yn}`,onActionCallback:tn},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),On&&E.createElement("li",null,On),E.createElement("li",{className:"btn-full-screen"},E.createElement(qe,{icon:`${un?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:un?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:tn})))},vt=re(88969),at=re(28284),kt=re(37568),Be=re(7939),Ge=Object.defineProperty,_e=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ht=(Ct,Jt,Qt)=>Jt in Ct?Ge(Ct,Jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):Ct[Jt]=Qt,me=(Ct,Jt)=>{for(var Qt in Jt||(Jt={}))Te.call(Jt,Qt)&&ht(Ct,Qt,Jt[Qt]);if(Qe)for(var Qt of Qe(Jt))De.call(Jt,Qt)&&ht(Ct,Qt,Jt[Qt]);return Ct},ce=(Ct,Jt)=>_e(Ct,ue(Jt));const Ze={labelCol:{span:4},wrapperCol:{span:20}};var Tt=({callback:Ct,onCancel:Jt})=>{function Qt(tn){Ct(tn)}return E.createElement(at.default,ce(me({},Ze),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Qt,style:{width:500}}),E.createElement(at.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(kt.default,null)),E.createElement(at.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(kt.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Be.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},St=re(56383),ve=re(79203),$e=re(62957),je=re(77019),Ft=re(78265),Bt=re(59301),Ht=({callback:Ct,onCancel:Jt})=>{const Qt=document.createElement("canvas"),tn=Qt.getContext("2d");Qt.width=1e3,Qt.height=800,tn.fillStyle="#ffffff",tn.fillRect(0,0,Qt.width,Qt.height);const un=Qt.toDataURL("image/png");return Bt.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Bt.createElement(je.Z,{style:{height:"100vh"}},Bt.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:un,visible:!0,title:String(Date.now())},onOk:yn=>{Ct({src:yn.url})},onClose:Jt})))},Fe=re(36207),_t=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:Ct,editImgId:Jt,callback:Qt},tn)=>{let un=(0,E.useRef)(),yn=(0,E.useRef)(),gn=(0,E.useRef)(),On=(0,E.useRef)(!1);const En=(0,E.useRef)(!1);console.log("ref:",tn);const[Mn,Bn]=(0,E.useState)(0),[xt,$t]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{Bn(1)},[]),(0,E.useImperativeHandle)(tn,()=>({setHeight:$t})),te.createElement("div",{ref:En,className:"body-overflow-initial"},te.createElement(Fe.Z,{width:"100vw",height:xt,footer:null,closable:!0,placement:"bottom",open:!!Mn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(cn=>{Qt({src:`/api/attachments/${cn}`,id:cn})})},title:te.createElement(je.Z,{align:"middle"},te.createElement(_t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(_t.Z,{onClick:()=>{$t(xt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(_t.Z,{onClick:()=>{window.saveDrawData(cn=>{if(cn===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}}),Qt({src:`/api/attachments/${cn}`,id:cn,disabledClose:!0})})}},te.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Jt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:yn})))}),se=re(35783),ne=re(47889),pe=re(4875);const be=ne.ZP.Group,ct={margin:"0 8px"};var Ie=({callback:Ct,onCancel:Jt})=>{function Qt(tn){Ct(tn)}return E.createElement(at.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Qt},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:ct},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:ct},"\u884C\u6570"),E.createElement(at.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(pe.Z,null)),E.createElement("span",{style:ct},"\u5217\u6570"),E.createElement(at.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:ct},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(at.default.Item,{name:"align"},E.createElement(be,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(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Be.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},Ve=re(58755),pt=re(45936),Dt=re.n(pt),qt=(0,E.forwardRef)(({use3d:Ct,width:Jt,height:Qt,callback:tn,showSaveButton:un},yn)=>{const gn=(0,E.useRef)(),On=(0,E.useRef)(),[En,Mn]=(0,E.useState)(!1),Bn=(0,E.useRef)({id:gn,appName:"graphing",width:Jt||1e3,height:Qt||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)(()=>{On.current=new(Dt())(Bn.current,!0),window.onload=function(){On.current.inject("applet_container")}},[]);const xt=()=>{var $t=window.ggbApplet.getPNGBase64(1,!0,72);return tn&&tn($t),$t};return(0,E.useEffect)(()=>{Bn.current.appName=En?"3D":"graphing",On.current.inject("applet_container")},[En]),(0,E.useEffect)(()=>{Mn(Ct)},[Ct]),(0,E.useImperativeHandle)(yn,()=>({getImgData:xt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),E.createElement(je.Z,{align:"middle"},E.createElement(_t.Z,{flex:1},E.createElement(Ve.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:En,onChange:$t=>Mn($t)})),E.createElement(_t.Z,null,E.createElement(Be.ZP,{size:"large",onClick:xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Kt=re(9043);const Ut="link",Pt="upload-image",wt="add-flowchart",mt="draw-image",dt="add-flowchart",en="code-block",Gt="add-table",Ne="------------",nt={default:Ne,left:`:${Ne}`,center:`:${Ne}:`,right:`${Ne}:`};var Ke=re(2408),It=re(68911);function Me(){}let Ye=0;const gt=1e4,Et="\u2581",jt="@\u2581\u2581@",ln="@\u2581@",wn=`
**\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`,Sn=["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 rn(Ct){return/^\d+$/.test(Ct)?`${Ct}px`:Ct}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Yt={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},Rt={[Ut]:"\u6DFB\u52A0\u94FE\u63A5",[en]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pt]:"\u6DFB\u52A0\u56FE\u7247",[mt]:"\u6DFB\u52A0\u753B\u56FE",[wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Gt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Lt=({defaultValue:Ct="",onChange:Jt,width:Qt="100%",height:tn=400,miniToolbar:un=!1,isFocus:yn=!1,watch:gn,insertTemp:On,mode:En="markdown",id:Mn="markdown-editor-id",showResizeBar:Bn=!1,noStorage:xt=!1,showNullButton:$t=!1,showNullProgramButton:cn=!1,hidetoolBar:an=!1,fullScreen:ze=!1,onBlur:tt,onCMBeforeChange:xe,onFullScreen:He,className:ke="",disablePaste:Ue=!1,disabled:Mt=!1,disabledFill:sn=!1,placeholder:hn="",values:Cn="",extraUse:nn,onAddBlank:Wt})=>{const[zt,vn]=(0,E.useState)(null),[An,Tn]=(0,E.useState)(Ct),[Ln,Xn]=(0,E.useState)(gn),[Qn,Jn]=(0,E.useState)(ze),[Zn,_n]=(0,E.useState)(""),[jn,Un]=(0,E.useState)(0),[ur,qn]=(0,E.useState)(tn),[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,it.useDispatch)();(0,E.useEffect)(()=>{const xn=window.scrollY||window.pageYOffset;Tn(Cn),zt==null||zt.setValue(Cn),window.scrollTo(0,xn)},[Cn]),(0,E.useEffect)(()=>{He==null||He(Qn)},[Qn]),(0,E.useEffect)(()=>{if(cr.current){let xn=function(Rn,Fn){var rr;if(Ue){Fn.preventDefault();return}const Pr=Fn.clipboardData;if(Pr){const br=Pr.types.toString(),Dr=Pr.items;if(br==="Files"||Pr.types.indexOf("Files")>-1){if(Fn.preventDefault(),En=="stex")return;try{let kr=Dr[1];((rr=Dr[0])==null?void 0:rr.kind)==="file"&&(kr=Dr[0]);const Br=kr.getAsFile(),$r=Br.name.split(".").pop();(0,ve.I)(Br,Tr=>{var Zr,ti,ki;Tr.id?((Zr=Br==null?void 0:Br.type)==null?void 0:Zr.indexOf("image"))>-1?In.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?In.replaceSelection(`<video width="100%" controls src="/api/attachments/${Tr.id}"></video>`):((ki=Br==null?void 0:Br.type)==null?void 0:ki.indexOf("pdf"))>-1?In.replaceSelection(`<a href="/api/attachments/${Tr.id}?type=${Br.type}&disposition=inline" target="_blank">${Br.name}</a>`):Sn.includes($r)?In.replaceSelection(`<a href="/api/attachments/${Tr.id}?type=office&disposition=inline" target="_blank">${Br.name}</a>`):In.replaceSelection(`[${Br.name}](/api/attachments/${Tr.id}?type=${Tr.content_type})`):(Tr==null?void 0:Tr.status)===401&&(document.location.href="/user/login")})}catch(kr){lt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const In=Xe().fromTextArea(cr.current,{mode:En,lineNumbers:!un,lineWrapping:!0,value:Ct,autoCloseTags:!0,autoCloseBrackets:!0});return In.on("keyup",function(Rn,Fn){Fn.keyCode===8&&(Rn.getValue()==""?In.setOption("placeholder",hn):In.setOption("placeholder",null))}),In.on("keydown",function(Rn,Fn){if(Fn.keyCode===8){var rr=Hr(Rn);rr&&Fn.preventDefault()}}),yn&&In.focus(),In.on("paste",xn),Mt&&In.on("beforeChange",function(Rn,Fn){(Fn.origin==="paste"||Fn.origin==="+input")&&Fn.cancel()}),vn(In),()=>{In.off("paste",xn)}}},[]);const Rr=(0,E.useCallback)(()=>{if(vr.current)try{}catch(xn){console.log(xn,"---- to set md editor body height")}},[ur,vr,Qn]);(0,E.useEffect)(()=>{function xn(){let In=new Ce.Z(Rn=>{for(let Fn of Rn)(Fn.target.offsetHeight>0||Fn.target.offsetWidth>0)&&(Rr(),zt.setSize("100%","100%"),zt.refresh())});return In.observe(cr.current.parentElement),In}if(zt){const In=xn();return()=>{var Rn,Fn;(Rn=cr.current)!=null&&Rn.parentElement&&In.unobserve((Fn=cr.current)==null?void 0:Fn.parentElement)}}},[zt,Rr]),(0,E.useEffect)(()=>{if(zt){let xn=[];for(const[In,Rn]of Object.entries(Yt)){let Fn={[In]:()=>{Er(Rn)}};xn.push(Fn),zt.addKeyMap(Fn)}return()=>{for(let In of xn)zt.removeKeyMap(In)}}},[zt]),(0,E.useEffect)(()=>{ze!==Qn&&Jn(ze)},[ze]),(0,Ke.Z)(()=>{if(!xt&&jn>0){let xn=new Date().getTime(),In=window.sessionStorage.getItem(Mn);xn>=jn+gt&&(!In||In!==An)&&(window.sessionStorage.setItem(Mn,An),ir(!0))}},gt),(0,E.useEffect)(()=>{Xn(gn)},[zt,gn]),(0,E.useEffect)(()=>{zt&&yn&&zt.focus()},[zt,yn]),(0,E.useEffect)(()=>{if(Ln&&zt){let xn=function(Rn){let Fn=Rn.target;if(or.current){let rr=Fn.scrollTop/Fn.scrollHeight;or.current.scrollTop=or.current.scrollHeight*rr}};const In=zt.getScrollerElement();return In.addEventListener("scroll",xn),()=>{In.removeEventListener("scroll",xn)}}},[zt,Ln]),(0,E.useEffect)(()=>{if(zt&&xe){let xn=function(In,Rn){xe(In,Rn)};return zt.on("beforeChange",xn),()=>{zt.off("beforeChange",xn)}}},[zt,xe]),(0,E.useEffect)(()=>{if(zt&&tt){let xn=function(){tt(zt.getValue())};return zt.on("blur",xn),()=>{zt.off("blur",xn)}}},[zt,tt]);function Hr(xn,In){var Rn=xn.getDoc(),Fn=Rn.getCursor(),rr=Rn.getLine(Fn.line),Pr=rr.charAt(Fn.ch-1),br=rr.lastIndexOf("@\u2581@",Fn.ch),Dr=rr.lastIndexOf("@\u2581\u2581@",Fn.ch),kr=br>Dr?br:Dr,Br=br>Dr?3:4;if(jt.indexOf(Pr)===-1)return null;if(console.log("change1:",In,xn,rr,Fn,kr,br,Dr,Pr),kr>=0&&Fn.ch-kr<5){var $r=kr+Br;return Rn.replaceRange("",{line:Fn.line,ch:kr},{line:Fn.line,ch:$r}),{line:Fn.line,ch:$r}}return null}(0,E.useEffect)(()=>{if(zt){let xn=function(In,Rn){const Fn=In.getValue();Tn(Fn),Un(new Date().getTime()),In.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Jt&&(cn?Jt(Fn,kn(Fn)):Jt(Fn))};return zt.on("change",xn),()=>{zt.off("change",xn)}}},[zt,Jt]),(0,E.useEffect)(()=>{if(zt)if(Ct==null)zt.setValue(""),Tn("");else{const xn=window.scrollY||window.pageYOffset;Ct!==zt.getValue()&&(zt.setValue(Ct),Tn(Ct),zt.setCursor(Mt?1:zt.lineCount(),0),window.scrollTo(0,xn))}},[zt,Ct]);const Er=(0,E.useCallback)(xn=>{const In=zt.getCursor(),Rn=zt.getSelection();let Fn=Rn.split(`
`);switch(xn){case"bold":return zt.replaceSelection("**"+Rn+"**"),Rn===""&&zt.setCursor(In.line,In.ch+2),zt.focus();case"italic":return zt.replaceSelection("*"+Rn+"*"),Rn===""&&zt.setCursor(In.line,In.ch+1),zt.focus();case"code":return zt.replaceSelection("`"+Rn+"`"),Rn===""&&zt.setCursor(In.line,In.ch+1),zt.focus();case"inline-latex":return(0,It.Ye)(Sr)?void 0:(_n("inline-latex"),zt.focus());case"latex":return zt.replaceSelection("```latex\n"+Rn+"\n```"),zt.setCursor(In.line+1,Rn.length+1),zt.focus();case"line-break":return zt.replaceSelection(`<br/>
`),zt.focus();case"list-ul":return Rn===""?zt.replaceSelection("- "+Rn):zt.replaceSelection(Fn.map(rr=>rr===""?"":`- ${rr}`).join(`
`)),zt.focus();case"list-ol":return Rn===""?zt.replaceSelection("1. "+Rn):zt.replaceSelection(Fn.map((rr,Pr)=>rr===""?"":`${Pr+1}. ${rr}`).join(`
`)),zt.focus();case"add-null-ch":Wt==null||Wt();return;case"add-signal":return Rn===""&&zt.setCursor(In.line,In.ch),zt.replaceSelection(ln),zt.focus();case"add-multiple":return Rn===""&&zt.setCursor(In.line,In.ch),zt.replaceSelection(jt),zt.focus();case"inster-template-1":return Rn===""&&zt.setCursor(In.line,In.ch),zt.replaceSelection(wn),zt.focus();case"eraser":return zt.setValue(""),zt.focus();case"trigger-watch":return Xn(!Ln),zt.focus();case"trigger-full-screen":return Jn(!Qn),zt.focus();case Ut:_n(Ut);return;case en:_n(en);return;case Pt:_n(Pt);return;case mt:_n(mt);return;case"maths-latex":if((0,It.Ye)(Sr))return;_n("maths-latex");return;case wt:dr.current="",sessionStorage.removeItem("file_id"),_n(wt);return;case Gt:_n(Gt);return;default:throw new Error}},[zt,Ln,Qn]),Ar=(0,E.useCallback)((xn,In)=>{var Rn,Fn,rr,Pr,br,Dr;xn!=null&&xn.disabledClose||_n("");const{src:kr,alt:Br,id:$r}=xn||{};switch(Zn){case Ut:const{title:Fi,link:xi}=xn;return zt.replaceSelection(`[${Fi}](${xi})`),zt.focus();case en:const{language:mi,content:Xi}=xn;return zt.replaceSelection(["```"+mi,Xi,"```"].join(`
`)),zt.focus();case"maths-latex":for(var Tr=atob(xn),Zr=new Uint8Array(Tr.length),ti=0;ti<Tr.length;ti++)Zr[ti]=Tr.charCodeAt(ti);var ki=new Blob([Zr],{type:"image/png"});(0,ve.I)(ki,vi=>{vi.id?zt.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,It.Ye)(Sr))return;zt.replaceSelection("`$$"+xn+"$$`");break;case dt:if(!$r)return;zt.getValue().indexOf(kr)===-1?zt.replaceSelection(`<center><img id="${$r}" width="80%" src="${kr}" class="draw-flowchart" alt="${Br||""}" /></center>`):document.getElementById($r).src=se.Z.API_SERVER+kr+"?t="+Date.now();break;case Pt:case mt:const Lr=In,to=(rr=(Fn=(Rn=Lr==null?void 0:Lr.name)==null?void 0:Rn.split("."))==null?void 0:Fn.pop)==null?void 0:rr.call(Fn);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?zt.replaceSelection(`<p style="text-align:${Lr.align||"initial"}"><img width="${Lr.width?Lr.width+"%":"initial"}" src="${kr}" alt="${Br||""}" /></p>`):zt.replaceSelection(`<img width="100%" src="${kr}" alt="${Br||""}" />`):((br=Lr==null?void 0:Lr.type)==null?void 0:br.indexOf("video"))>-1?zt.replaceSelection(`<video width="100%" controls src="${kr}"></video>`):((Dr=Lr==null?void 0:Lr.type)==null?void 0:Dr.indexOf("pdf"))>-1?zt.replaceSelection(`<a href="${kr}?type=${Lr.type}&disposition=inline" target="_blank">${Lr.name}</a>`):Sn.includes(to)?zt.replaceSelection(`<a href="${kr}?type=office&disposition=inline" target="_blank">${Lr.name}</a>`):zt.replaceSelection(`[${Lr.name}](${kr})`),zt.focus();case Gt:const{row:ni,col:Li,align:ao}=xn;let Yi=`
`;for(let vi=0;vi<ni;vi++){let Ai=[],Vr=[];for(let _i=0;_i<Li;_i++)vi===1&&Vr.push(nt[ao]),Ai.push(" ");vi===1&&(Yi+=`| ${Vr.join(" | ")} |
`),Yi+=`| ${Ai.join(Li===1?"":" | ")} |
`}return zt.replaceSelection(Yi+`
`),zt.focus();default:throw new Error}},[zt,Zn]),Ir=(0,E.useMemo)(()=>{switch(Zn){case Ut:return E.createElement(Tt,{callback:Ar,onCancel:Mr});case en:return E.createElement(St.Z,{callback:Ar,onCancel:Mr});case Pt:return E.createElement(ve.Z,{callback:Ar,onCancel:Mr});case wt:return E.createElement(oe,{editImgId:dr.current,callback:Ar,onCancel:Mr});case Gt:return E.createElement(Ie,{callback:Ar,onCancel:Mr});case"maths-latex":return E.createElement(qt,{showSaveButton:!0,callback:Ar});case"inline-latex":return E.createElement(Kt.Z,{showSaveButton:!0,callback:Ar});default:return null}},[Zn]);function Mr(){_n("")}(0,E.useEffect)(()=>{if(Cr.current){let xn=function(br){rr=!0,Pr=br.pageY},In=function(){rr=!1},Rn=function(br){if(rr){let Dr=br.pageY-Pr;Dr<0&&(Dr=0),Dr>300&&(Dr=300);let kr=tn+Dr+"px";qn(kr)}},Fn=Cr.current,rr=!1,Pr=0;return Fn.addEventListener("mousedown",xn),document.addEventListener("mousemove",Rn),document.addEventListener("mouseup",In),()=>{Fn.removeEventListener("mousedown",xn),document.removeEventListener("mousemove",Rn),document.removeEventListener("mouseup",In)}}},[zt,Cr]),(0,E.useEffect)(()=>{qn(tn)},[tn]);const _r=rn(Qt),fr=rn(ur),Yn={width:_r,height:fr},bn=(0,E.useMemo)(()=>{if(jn){let xn=new Date(jn),In=xn.getHours(),Rn=xn.getMinutes(),Fn=xn.getSeconds();return In=In<10?"0"+In:In,Rn=Rn<10?"0"+Rn:Rn,Fn=Fn<10?"0"+Fn:Fn,`${In}:${Rn}:${Fn}`}return 0},[jn]),kn=xn=>{const In=[];if(cn){let Rn=-1;xn=xn.replace(/(@▁▁@|@▁@)/g,function(Fn,rr,Pr){In.push({multiLine:Fn!==ln})})}return In};function Pn(){window.sessionStorage.removeItem(Mn),ir(!1),Un(0)}function fn(){ir(!1),Un(0),zt.setValue(window.sessionStorage.getItem(Mn))}(0,E.useEffect)(()=>{Rt[Zn]&&Zn!==mt&&Zn!==wt&&setTimeout(()=>{const xn=document.getElementsByClassName("markdown-popup-form")[0],In=window.innerWidth/2-xn.offsetWidth/2,Rn=window.innerHeight/2-xn.offsetHeight/2;tr(In),mr(Rn)},0)},[Zn]);const $n=xn=>{xn.preventDefault();const In=xn.clientX-er,Rn=xn.clientY-gr;document.body.onmousemove=Fn=>{let rr=Fn.clientX-In,Pr=Fn.clientY-Rn;const br=document.getElementsByClassName("markdown-popup-form")[0],Dr=window.innerWidth-br.offsetWidth,kr=window.innerHeight-br.offsetHeight;rr=Math.max(0,Math.min(rr,Dr)),Pr=Math.max(0,Math.min(Pr,kr)),Wn(Fn.clientX,Fn.clientY,In,Rn)&&(tr(rr),mr(Pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Wn=(xn,In,Rn,Fn)=>{const rr=document.body.clientHeight,Pr=document.body.clientWidth;return xn<20&&Rn>xn||xn>Pr-20&&Rn<xn||In<20&&Fn>In||In>rr-20&&Fn<In?(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 ${ke} ${Ln?"on-preview":""} ${un?"mini":""} ${Qn?"full-screen":""}`,style:Yn},E.createElement(Nt,{insertTemp:On,watch:Ln,fullScreen:Qn,showNullButton:$t,showNullProgramButton:cn,onActionCallback:Er,hidetoolBar:an,extraUse:nn}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:cr,placeholder:hn})),Ln?E.createElement("div",{ref:or,className:"preview-container"},En==="stex"&&E.createElement(ft,{value:An}),En!=="stex"&&E.createElement(Se.Z,{edit:!0,disabledFill:sn,showProgramFill:cn,value:An,openEditor:xn=>{var In;dr.current=xn,(In=Gn.current)==null||In.setHeight("100vh"),setTimeout(()=>{_n("add-flowchart")},150)}})):null))),Bn?E.createElement("a",{ref:Cr,className:"editor-resize"}):null,Zn===mt&&E.createElement(Ht,{callback:Ar,onCancel:Mr}),Zn===wt&&E.createElement(oe,{ref:Gn,editImgId:dr.current,callback:Ar,onCancel:Mr}),E.createElement(vt.Z,null,Rt[Zn]&&Zn!==mt&&Zn!==wt?E.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:gr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:$n},Rt[Zn]),open:!0,onCancel:Mr,footer:null,destroyOnClose:!0,width:Zn===wt?"1200px":null,height:Zn===wt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},79203:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return ut},I:function(){return Nt}});var E=re(28284),it=re(6767),ge=re(37568),Xe=re(44104),Ce=re(4875),Oe=re(47889),Pe=re(7939),Re=re(8240),Ee=re(59301),he=re(59301),et=Object.defineProperty,Se=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ae=(vt,at,kt)=>at in vt?et(vt,at,{enumerable:!0,configurable:!0,writable:!0,value:kt}):vt[at]=kt,Je=(vt,at)=>{for(var kt in at||(at={}))we.call(at,kt)&&Ae(vt,kt,at[kt]);if(We)for(var kt of We(at))Le.call(at,kt)&&Ae(vt,kt,at[kt]);return vt},ot=(vt,at)=>Se(vt,ft(at));const{useForm:At}=E.default,bt={width:280,marginRight:10},st={labelCol:{span:5},wrapperCol:{span:19}};var ut=({callback:vt,onCancel:at})=>{const[kt]=At();let Be=(0,Ee.useRef)();function Ge(Qe){Be.current.width=kt.getFieldValue("width"),Be.current.align=kt.getFieldValue("align"),vt(Qe,Be.current)}function _e(Qe,Te){if(Qe.status===-1){it.ZP.error(Qe.message);return}kt.setFieldsValue({src:`/api/attachments/${Qe.id}`,type:Te.type})}function ue(Qe){let Te=Qe.target.files[0];Be.current=Te,Nt(Te,_e)}return he.createElement(E.default,ot(Je({form:kt},st),{className:"upload-image-panel",onFinish:Ge,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(ge.default,{style:bt})),he.createElement(qe,{onFileChange:ue}))),he.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},he.createElement(ge.default,{style:{width:264}})),he.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},he.createElement(Xe.Z,null,he.createElement(E.default.Item,{name:"width",style:{margin:0}},he.createElement(Ce.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(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Pe.ZP,{type:"default",onClick:at},"\u53D6\u6D88"))))};function qe({onFileChange:vt}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:vt}))}function Nt(vt,at){if(!vt)throw new String("\u6CA1\u6709\u6587\u4EF6");let kt=new FormData;kt.append("editormd-image-file",vt),kt.append("file_param_name","editormd-image-file"),kt.append("byxhr","true");var Be=new window.XMLHttpRequest;Be.withCredentials=!0,Be.addEventListener("load",function(Ge){at(JSON.parse(Ge.target.responseText),vt)},!1),Be.addEventListener("error",function(Ge){console.error(Ge)},!1),Be.open("POST",`${Re.KI}/api/attachments.json`),Be.send(kt)}},88969:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return ge}});var E=re(59301),it=re(4676);class ge extends E.Component{constructor(Ce){super(Ce);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,it.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(on,Vt,re){"use strict";re.d(Vt,{SV:function(){return Ht},ZP:function(){return Bt}});var E=re(59301),it=re(76374);const ge={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"]},Xe={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"]},Ce={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(`
`)}]},Pe={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 Re=re(53184),Ee=re.n(Re),he=(Fe,_t,lt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(lt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(lt.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((lt=lt.apply(Fe,_t)).next())});const et={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"]}},Se=(Fe,_t,lt,ae)=>{const te=_t.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:Fe.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},ft=(Fe,_t,lt,ae)=>{Fe.languages.registerCompletionItemProvider(_t,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Se(Fe,te,ee,se),...lt.map(be=>({label:be,kind:Fe.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(be=>({label:be.label,kind:Fe.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:ne.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:Fe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var We=Fe=>{et.languages.forEach(_t=>{Fe.languages.registerDocumentFormattingEditProvider(_t,{provideDocumentFormattingEdits(lt){return he(this,null,function*(){const ae=Ee()(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}]})}})}),ft(Fe,"java",Xe.keywords,Xe.quickKey),ft(Fe,"cpp",Ce.keywords,Ce.quickKey),ft(Fe,"c",ge.keywords,[]),ft(Fe,"python",Oe.keywords,Oe.quickKey),ft(Fe,"scala",Pe.keywords,Pe.quickKey)};const we="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Le=Object.defineProperty,Ae=(Fe,_t,lt)=>_t in Fe?Le(Fe,_t,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Fe[_t]=lt,Je=(Fe,_t,lt)=>Ae(Fe,typeof _t!="symbol"?_t+"":_t,lt);const ot=class _s{constructor(_t,lt,ae){this.placeholder=_t,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)}};Je(ot,"ID","editor.widget.placeholderHint");var bt=ot,st=re(96236),ut=re(6767),qe=re(25399),Nt=re(89392),vt=re(99936),at=re(56102),kt=Object.defineProperty,Be=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Te=(Fe,_t,lt)=>_t in Fe?kt(Fe,_t,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Fe[_t]=lt,De=(Fe,_t)=>{for(var lt in _t||(_t={}))ue.call(_t,lt)&&Te(Fe,lt,_t[lt]);if(_e)for(var lt of _e(_t))Qe.call(_t,lt)&&Te(Fe,lt,_t[lt]);return Fe},ht=(Fe,_t)=>Be(Fe,Ge(_t)),me=(Fe,_t)=>{var lt={};for(var ae in Fe)ue.call(Fe,ae)&&_t.indexOf(ae)<0&&(lt[ae]=Fe[ae]);if(Fe!=null&&_e)for(var ae of _e(Fe))_t.indexOf(ae)<0&&Qe.call(Fe,ae)&&(lt[ae]=Fe[ae]);return lt},ce=(Fe,_t,lt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(lt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(lt.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((lt=lt.apply(Fe,_t)).next())});function Ze(Fe){return/^\d+$/.test(Fe)?`${Fe}px`:Fe}function Tt(){}let St=!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 $e(Fe=[]){let _t=Fe;if(Array.isArray(Fe)){for(let lt=0;lt<Fe.length;lt++){let ae=ve[Fe[lt]];if(ae)return ae}return _t[0]}return ve[_t]||_t}let je=null;const Ft=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Fe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Fe)}});var Bt=Fe=>{var _t=Fe,{width:lt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:be,isCopy:ct=!1,onSave:Ie,autoHeight:Ve=!1,forbidCopy:pt=!1,forbidCopyTips:Dt,onChange:Ot=Tt,editorDidMount:qt=Tt,onFocus:Kt=Tt,onBreakPoint:Ut=Tt,breakPointValue:Pt=[],filename:wt="educoder.txt",errorLine:mt,errorContent:dt="",highlightLine:en,openBreakPoint:Gt=!1,placeholder:Ne="",showMiniMap:nt=!0}=_t,Ke=me(_t,["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 It=(0,E.useRef)(),Me=(0,E.useRef)({}),Ye=(0,E.useRef)(),gt=(0,E.useRef)(),Et=(0,E.useRef)([]),jt=(0,E.useRef)(!1),ln=(0,E.useRef)(),wn=(0,E.useRef)(),Sn=(0,E.useRef)(!1),[rn,pn]=(0,E.useState)(!1);function dn(){let xt;return It.current&&(xt=new it.Z($t=>{for(let cn of $t)(cn.target.offsetHeight>0||cn.target.offsetWidth>0)&&Me.current.instance.layout()}),xt.observe(It.current)),xt}function Yt(){ut.ZP.warning({content:decodeURIComponent(Dt||we),key:"monaco-editor-tip"})}const Rt=()=>{let xt=Me.current.instance;if(te!=null&&xt&&rn){const $t=xt.getModel();$t&&te!==$t.getValue()&&(St=!0,$t.setValue(te),xt.layout(),St=!1)}};(0,E.useEffect)(()=>{const xt=vt.Z.subscribe("formatDocument",$t=>{var cn;let an=Me.current.instance;(cn=an==null?void 0:an.getAction)==null||cn.call(an,"editor.action.formatDocument").run()});return window.updateMonacoValue=$t=>{Ot($t)},xt},[]),(0,E.useEffect)(()=>{var xt;let $t=Me.current.instance;gt.current&&clearTimeout(gt.current),gt.current=setTimeout(()=>{Rt()},500),te&&(te!=null&&te.length)&&((xt=$t==null?void 0:$t.updateOptions)==null||xt.call($t,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,rn,Me.current]),(0,E.useEffect)(()=>{if(mt&&Me.current&&Me.current.instance){let $t=Me.current.instance;$t.changeViewZones(function(cn){var an=document.createElement("div");an.style.padding="10px 20px",an.style.width="calc(100% - 20px)",an.className="my-error-line-wrp",an.innerHTML=dt,cn.addZone({afterLineNumber:mt||11,heightInLines:3,domNode:an})});var xt={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}};$t.addOverlayWidget(xt),$t.revealPositionInCenter({lineNumber:20,column:1})}},[mt,Me.current,rn]);const Lt=(xt="",$t)=>{if(!xt||xt.trim()==="")return!0;const an=Me.current.instance.getModel().getLineTokens($t);let ze=!1;for(let tt=0;tt<2;tt++)an.getStandardTokenType(tt)===1&&(ze=!0);return ze};(0,E.useEffect)(()=>{var xt;const $t=(xt=Me.current)==null?void 0:xt.instance;if($t&&rn&&pt){const cn=$t.onDidBlurEditorWidget(()=>{Sn.current=!1}),an=$t.onDidFocusEditorText(()=>{Sn.current=!0});return()=>{cn.dispose(),an.dispose()}}},[Me.current,rn,pt]),(0,E.useEffect)(()=>{var xt;if((xt=Me.current)!=null&&xt.instance&&rn&&Gt){let $t=Me.current.instance,cn=$t.getModel();if(!cn)return;(()=>{var nn;let Wt=[],zt=[];const vn=cn.getAllDecorations();for(let Tn of vn)Tn.options.className==="highlighted-line"&&(Wt.push((nn=Tn==null?void 0:Tn.range)==null?void 0:nn.startLineNumber),zt.push(Tn==null?void 0:Tn.id));if(en===Wt[0])return;cn.deltaDecorations(zt,[]);const An=cn.getLineCount();en&&en<=An&&($t.deltaDecorations([],[{range:new je.Range(en,1,en,cn.getLineMaxColumn(en)),options:{isWholeLine:!0,className:"highlighted-line"}}]),$t.revealLineInCenter(en))})();const ze=(nn=!1)=>{var Wt;let zt=[],vn=[];const An=cn.getAllDecorations();for(let Tn of An)Tn.options.linesDecorationsClassName==="breakpoints-select"&&(zt.push((Wt=Tn==null?void 0:Tn.range)==null?void 0:Wt.startLineNumber),vn.push(Tn==null?void 0:Tn.id));if(nn)return{lines:zt,ids:vn};Ut(zt)},tt=nn=>ce(void 0,null,function*(){let Wt={range:new je.Range(nn,1,nn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield cn.deltaDecorations([],[Wt]),ze()}),xe=nn=>ce(void 0,null,function*(){let Wt=[];const zt=$t.getLineDecorations(nn);for(let vn of zt)vn.options.linesDecorationsClassName==="breakpoints-select"&&Wt.push(vn.id);yield cn.deltaDecorations(Wt,[]),ze()}),He=nn=>{let Wt=$t.getLineDecorations(nn);for(let zt of Wt)if(zt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Nt.isEqual)(Pt,ze(!0).lines)){cn.deltaDecorations(ze(!0).ids,[]);const nn=Pt.map(Wt=>({range:new je.Range(Wt,1,Wt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));cn.deltaDecorations([],nn)}const ke=$t.onDidChangeModelContent(nn=>{let Wt=$t.getPosition();if(Wt){let zt=Wt.lineNumber;clearTimeout(wn.current),wn.current=setTimeout(()=>{Lt(cn.getLineContent(zt),zt)?xe(zt):He(zt)?(xe(zt),tt(zt)):ze()},100)}}),Ue=$t.onMouseDown(nn=>{var Wt,zt,vn;if(nn.target.detail&&((vn=(zt=(Wt=nn.target)==null?void 0:Wt.element)==null?void 0:zt.className)!=null&&vn.includes("line-numbers"))){let An=nn.target.position.lineNumber;if(Lt(cn.getLineContent(An),An))return;He(An)?xe(An):tt(An)}}),Mt=nn=>{let Wt={range:new je.Range(nn,1,nn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Et.current=$t.deltaDecorations(Et.current,[Wt])},sn=()=>{Et.current=$t.deltaDecorations(Et.current,[])},hn=$t.onMouseMove(nn=>{var Wt,zt,vn;if(sn(),nn.target.detail&&((vn=(zt=(Wt=nn.target)==null?void 0:Wt.element)==null?void 0:zt.className)!=null&&vn.includes("line-numbers"))){let An=nn.target.position.lineNumber;if(Lt(cn.getLineContent(An),An))return;Mt(An)}}),Cn=$t.onMouseLeave(()=>{sn()});return()=>{ke.dispose(),Ue.dispose(),hn.dispose(),Cn.dispose()}}},[Me.current,rn,Pt,en,Gt,ee]),(0,E.useEffect)(()=>{var xt;(xt=Me.current)!=null&&xt.instance&&Gt&&Me.current.instance.setPosition({lineNumber:0,column:0})},[en]);function Ct(){let xt=Me.current.instance;if(xt){const $t=xt.getSelection(),cn=Me.current.pastePos||{},an=new je.Range(cn.startLineNumber||$t.endLineNumber,cn.startColumn||$t.endColumn,cn.endLineNumber||$t.endLineNumber,cn.endColumn||$t.endColumn);setTimeout(()=>{xt.executeEdits("",[{range:an,text:""}])},300)}}function Jt(xt){(window.navigator.platform.match("Mac")?xt.metaKey:xt.ctrlKey)&&xt.keyCode==83&&(xt.preventDefault(),Ie())}const Qt=()=>{if(Ve&&Me.current.instance){const xt=Me.current.instance.getContentHeight();Mn(xt<ae?ae:xt)}else Mn(ae)};function tn(xt){var $t=document.createEvent("MouseEvents");$t.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),xt.dispatchEvent($t)}const un=xt=>{if(!Sn.current)return;const{keyCode:$t,ctrlKey:cn,metaKey:an,target:ze,type:tt}=xt;return(tt==="paste"||($t===67||$t===86)&&(an||cn))&&ze.nodeName==="TEXTAREA"&&(Yt(),xt.preventDefault()),!1};function yn(xt,$t){var cn=window.URL||window.webkitURL||window,an=new Blob([$t]),ze=document.createElementNS("http://www.w3.org/1999/xhtml","a");ze.href=cn.createObjectURL(an),ze.download=xt,tn(ze)}(0,E.useEffect)(()=>{Qt()},[Qt]),(0,E.useEffect)(()=>{It.current&&!rn&&Promise.all([re.e(8909),re.e(1859)]).then(re.bind(re,71448)).then(xt=>{try{je=xt,Me.current.instance=je.editor.create(It.current,{value:te,language:$e(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:nt||!1}},ne);const $t=Me.current.instance;let ze=[...st.BH._menuItems].find(ke=>ke[0]._debugName=="EditorContext")[1],tt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xe=(ke,Ue)=>{var Mt,sn;let hn=ke._first;do Ue.includes((sn=(Mt=hn.element)==null?void 0:Mt.command)==null?void 0:sn.id)&&ke._remove(hn);while(hn=hn.next)};if(qt($t,je),setTimeout(()=>{Qt(),Me.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{yn(wt||"educoder.txt",$t.getValue())}})},500),Me.current.subscription=$t.onDidChangeModelContent(ke=>{jt.current?clearTimeout(ln.current):(Qt(),Ot($t.getValue(),ke)),ln.current=setTimeout(()=>{jt.current=!1},500)}),window.Monaco||We(je,$e(ee)),pt&&(xe(ze,tt),It.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",un),window.removeEventListener("paste",un),window.addEventListener("keydown",un),window.addEventListener("paste",un)),window.Monaco=je,be&&$t.onDidBlurEditorWidget(()=>{be($t.getValue())}),Kt&&$t.onDidFocusEditorText(()=>{pt&&Ft(),Kt($t.getValue())}),pt){Ft();try{$t.onDidPaste(ke=>{const Ue=$t.getSelection(),Mt=Me.current.pastePos||{},sn=new je.Range(Mt.startLineNumber||Ue.endLineNumber,Mt.startColumn||Ue.endColumn,Mt.endLineNumber||Ue.endLineNumber,Mt.endColumn||Ue.endColumn);$t.executeEdits("",[{range:ke.range,text:""}])})}catch(ke){}}let He=dn();return Ne&&typeof Ne=="string"&&new bt(Ne,$t,je),pn(!0),()=>{const ke=Me.current.instance;ke.dispose();const Ue=ke.getModel();Ue&&Ue.dispose(),Me.current.subscription&&Me.current.subscription.dispose(),He.unobserve(It.current)}}catch($t){}})},[]),(0,E.useEffect)(()=>{if(Me.current.instance&&rn)return document.addEventListener("keydown",Jt,!1),()=>{document.removeEventListener("keydown",Jt)}},[Ie,rn]),(0,E.useEffect)(()=>{let xt=Me.current.instance;if(xt&&rn){let $t=$e(ee);je.editor.setModelLanguage(xt.getModel(),$t)}},[ee,rn]),(0,E.useEffect)(()=>{Me.current.instance&&rn&&je.editor.setTheme(pe)},[pe,rn]),(0,E.useEffect)(()=>{let xt=Me.current.instance;Ye.current=se,xt&&rn&&(xt.updateOptions(De({},se)),setTimeout(()=>{xt.getModel().updateOptions(De({},se))},200))},[JSON.stringify(se),rn]),(0,E.useEffect)(()=>{let xt=Me.current.instance;xt&&rn&&xt.layout()},[lt,ae,rn]);const[gn,On]=(0,E.useState)(Ze(lt)),[En,Mn]=(0,E.useState)(Ze(ae)),Bn=ht(De({},oe),{width:gn,height:En,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:It,style:Bn,onFocus:()=>{pt&&Ft()}},ct&&E.createElement(at.CopyToClipboard,{text:te,onCopy:()=>ut.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(qe.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 Ht({width:Fe="100%",height:_t="100%",original:lt,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[se,ne]=(0,E.useState)(null);function pe(Ve){let pt;return oe.current&&(pt=new it.Z(Dt=>{for(let Ot of Dt)(Ot.target.offsetHeight>0||Ot.target.offsetWidth>0)&&Ve.layout()}),pt.observe(oe.current)),pt}(0,E.useEffect)(()=>(oe.current&&Promise.all([re.e(8909),re.e(9404)]).then(re.bind(re,2550)).then(Ve=>{je=Ve;const pt=je.editor.createDiffEditor(oe.current,ht(De({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(pt);let Dt=pe(pt);return()=>{pt.dispose();const Ot=pt.getModel();Ot&&Ot.dispose(),Dt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{se&&se.setModel({original:je.editor.createModel(lt,te),modified:je.editor.createModel(ae,te)})},[lt,ae,te,se]);const be=Ze(Fe),ct=Ze(_t),Ie={width:be,height:ct};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:Ie})}},64194:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return et}});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"},it=re(29787),ge=re(25399),Xe=re(89787),Ce=re(92310),Oe=re.n(Ce),Pe=re(68911),Re=re(71347),Ee=re(59301),et=({className:Se,dataSource:ft=[],col:We=4,right:we,bottom:Le=23,precision:Ae=0,wrapWidth:Je=1200,trackEventItems:ot,loading:At,onRemove:bt=()=>{},isCurrent:st=!0,showProgress:ut=!1,showAlias:qe=!1,category:Nt,hiddenClick:vt})=>{const at=Math.floor((Je-(We-1)*we)/We),kt=[{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 Ee.createElement(it.Z,{spinning:At},Ee.createElement("div",{className:Oe()(E.list,Se)},!!(ft!=null&&ft.length)&&(ft==null?void 0:ft.map((Be,Ge)=>{var _e,ue,Qe,Te,De,ht,me,ce,Ze,Tt,St,ve,$e;const{name:je,id:Ft,identifier:Bt,featured:Ht,school_name:Fe,image_url:_t,excellent:lt,is_plan:ae}=Be;return Ee.createElement("div",{key:Ft,className:st&&ut?E.wrapisCurrent:E.wrap,style:{width:at,marginRight:(1+Ge)%We===0?0:we+Ae,marginBottom:Le}},Ee.createElement("a",{className:E.li,onClick:te=>{te.preventDefault(),te.stopPropagation(),ot&&(0,Pe.L9)([ot]),(0,Pe.xg)(`/paths/${Bt}`)}},Ee.createElement("div",{className:E.img},Ee.createElement("img",{className:E.cover,src:`${_t}`}),(_e=Be==null?void 0:Be.subject_tags)==null?void 0:_e.map((te,ee)=>{var oe,se;if(ee===0){const pe=(oe=kt.find(be=>be.name==te))==null?void 0:oe.swclass;return Ee.createElement("span",{className:`sprite ${pe} ${E.sign}`,style:{left:"-4px"}})}const ne=(se=kt.find(pe=>pe.name==te))==null?void 0:se.ptclass;return Ee.createElement("span",{className:`sprite ${ne} ${E.sign}`,style:{left:`${48+52*(ee-1)+2*ee}px`}})}),Ee.createElement("div",{className:E.tagsDom},Ee.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Be==null?void 0:Be.excellent)&&Ee.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Be==null?void 0:Be.custom_tags)==null?void 0:ue.length)>0&&Ee.createElement(ge.Z,{title:(De=(Te=Be==null?void 0:Be.custom_tags)==null?void 0:Te[((Qe=Be==null?void 0:Be.custom_tags)==null?void 0:Qe.length)-1])==null?void 0:De.tag_name},Ee.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Ee.createElement("span",{className:"multi-llipsis1e text-10px"},(ce=(me=Be==null?void 0:Be.custom_tags)==null?void 0:me[((ht=Be==null?void 0:Be.custom_tags)==null?void 0:ht.length)-1])==null?void 0:ce.tag_name))))),Nt=="hide"&&(Be==null?void 0:Be.studying)&&st&&Ee.createElement("div",{className:`${E.movebq} user-path-items`,onClick:te=>{te.stopPropagation(),bt(Be)}},Ee.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ee.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Nt)&&st&&Ee.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:te=>{te.stopPropagation(),vt(Be)}},Ee.createElement("i",{className:`iconfont ${Nt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ee.createElement("span",null,Nt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ee.createElement("div",{className:E.name},Ee.createElement(ge.Z,{title:qe&&(Be!=null&&Be.excellent_alias_name)?Ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${je}`,Ee.createElement("br",null),Ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Be==null?void 0:Be.excellent_alias_name}`)):je},Ee.createElement("span",{className:E.e},qe&&(Be==null?void 0:Be.excellent_alias_name)||je))),st&&ut&&((Ze=Be==null?void 0:Be.progress)==null?void 0:Ze.all_score)!=0&&Ee.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ee.createElement(Xe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Tt=Be==null?void 0:Be.progress)==null?void 0:Tt.my_score)/((St=Be==null?void 0:Be.progress)==null?void 0:St.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ve=Be==null?void 0:Be.progress)==null?void 0:ve.my_score,"/",($e=Be==null?void 0:Be.progress)==null?void 0:$e.all_score),(!st||!ut)&&Ee.createElement(ge.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Fe}`},Ee.createElement("div",{className:E.unit},Ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Fe)),(!st||!ut)&&Ee.createElement("div",{className:E.tags},Ee.createElement("div",null,Ee.createElement(ge.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ee.createElement("span",null,Be.stages_count))),Ee.createElement(ge.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ee.createElement("span",null,Ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ee.createElement("span",null,Be.members_count)))))))})),!ft.length&&Ee.createElement(Re.Z,null)))}},29596:function(on,Vt,re){"use strict";re.d(Vt,{jL:function(){return Xe},w9:function(){return ce},QD:function(){return Pt},cQ:function(){return Ge.Z},op:function(){return pt},O5:function(){return dn},_b:function(){return Ne},t7:function(){return Ae},Gi:function(){return je},YG:function(){return ve},qp:function(){return he},vr:function(){return dt},qE:function(){return qt},Je:function(){return At},wb:function(){return Be},cq:function(){return lt},tp:function(){return ft}});var E=re(59301),it={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"},Xe=({dataSource:Yt=[],img:Rt,imgWidth:Lt=346,title:Ct,sunTitle:Jt,bannerExtraContent:Qt})=>E.createElement("div",{className:it.banner},E.createElement("div",{className:it.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,Ct),E.createElement("span",null,Jt)),Yt.length>0&&E.createElement("div",{className:it.btns},Yt.map((tn,un)=>E.createElement("div",{key:un,onClick:tn.click},tn.name,tn.sign?E.createElement("span",{className:"sprite sprite-33"}):null))),Qt),Rt&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:Lt}))),Ce={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),Pe=re.n(Oe),Re=re(89392),he=({dataSource:Yt=[],value:Rt,onChange:Lt,onTitleChange:Ct,className:Jt,title:Qt,titleWidth:tn=41,style:un={},fontColor:yn="#6A7283",showCount:gn})=>{const[On,En]=(0,E.useState)(1),[Mn,Bn]=(0,E.useState)(!1),xt=(0,E.useRef)(null),$t=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var cn;Yt.length!==0&&(((cn=xt==null?void 0:xt.current)==null?void 0:cn.clientHeight)>97?En(1):En(0)),Yt.length===0&&En(0),Bn(!1)},[Yt]),E.createElement("div",{className:Pe()(Ce.row,Jt,"fadeIn","animated"),style:un},E.createElement("div",{onClick:(0,Re.throttle)(()=>Ct==null?void 0:Ct(),2e3),style:{width:tn,marginTop:Mn?12:4},className:`${Ce.title} ${Ct?"current":""}`},Qt),E.createElement("div",{className:Mn?`${Ce.tagsWrap} ${Ce.tagsBorderWrap}`:Ce.tagsWrap},E.createElement("div",{className:Ce.bar,ref:$t,style:On>0?{height:On===1?97:"auto",overflow:On===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:Ce.tag,ref:xt},Yt==null?void 0:Yt.map(cn=>E.createElement("span",{onClick:()=>Lt(cn.id),key:cn.id,style:{color:yn},className:Rt===cn.id?Ce.active:""},E.createElement("span",{title:cn.name,className:Ce.name},cn.name),!!gn&&E.createElement("span",{className:Ce.num},cn.count))))),!!On&&E.createElement(E.Fragment,null,On===1?E.createElement("div",{onClick:()=>{var cn;En(2),((cn=xt==null?void 0:xt.current)==null?void 0:cn.clientHeight)>245?Bn(!0):Bn(!1)},className:Ce.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{$t.current.scrollTop=0,En(1),Bn(!1)},className:Ce.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},et={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"},ft=({dataSource:Yt=[],value:Rt,onChange:Lt,className:Ct,style:Jt={}})=>E.createElement("div",{style:Jt,className:Pe()(et.tabs,Ct)},Yt.map(Qt=>E.createElement("span",{onClick:()=>Lt(Qt.id),className:Rt===Qt.id?et.active:"",key:Qt.id},Qt.name))),We={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"},we=re(37568),Ae=({dataSource:Yt=[],value:Rt="",onChange:Lt,onInputChange:Ct=()=>{},className:Jt,style:Qt={},placeholder:tn,allowClear:un=!1})=>{var yn;const[gn,On]=(0,E.useState)(""),[En,Mn]=(0,E.useState)("");(0,E.useEffect)(()=>{var $t;let cn=Rt;($t=JSON.stringify(Rt))!=null&&$t.includes("{")&&(On(Rt.id),cn=Rt.value||"");try{Mn(decodeURIComponent(cn||""))}catch(an){Mn(decodeURIComponent(cn||""))}},[Rt]);const Bn=()=>{Lt(encodeURIComponent(En),gn||null)},xt=$t=>{$t!==gn&&(On($t),Lt(encodeURIComponent(En),$t))};return E.createElement("div",{className:Pe()(We.input,Jt),style:Qt},!!Yt.length&&E.createElement("div",{className:We.dropdown},E.createElement("div",{className:We.text},(yn=Yt.find($t=>$t.id===gn))==null?void 0:yn.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:We.b1}),E.createElement("b",{className:We.b2})),E.createElement("div",{className:We.menu},Yt.map(($t,cn)=>E.createElement("div",{key:cn,onClick:()=>xt($t.id)},$t.name)))),E.createElement(we.default,{onPressEnter:Bn,value:En,onChange:$t=>{Mn($t.target.value),Ct(encodeURIComponent($t.target.value),gn||null)},placeholder:tn,variant:"borderless",allowClear:un,onClear:()=>Lt("",gn||null)}),E.createElement("i",{onClick:Bn,className:"iconfont icon-sousuo9 font14 current"}))},Je={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"},At=({value:Yt,onChange:Rt,className:Lt,total:Ct,pageSize:Jt,style:Qt={}})=>{const tn=Yt<2,un=Yt>=Math.ceil(Ct/Jt);return Ct<=Jt?E.createElement(E.Fragment,null):E.createElement("div",{className:Pe()(Je.quickPager,Lt),style:Qt},E.createElement("div",{onClick:()=>{tn||Rt(Yt-1,"prev")},className:tn?Je.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{un||Rt(Yt+1,"next")},className:un?Je.disabled:""},"\u4E0B\u4E00\u9875"))},bt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},st=re(29787),ut=re(25399),qe=re(63139),Nt=re(35783),vt=re(68911),at=re(71347),Be=({className:Yt,dataSource:Rt=[],col:Lt=4,right:Ct,bottom:Jt=23,precision:Qt=0,wrapWidth:tn=1200,trackEventItems:un,loading:yn})=>{const gn=Math.floor((tn-(Lt-1)*Ct)/Lt);return E.createElement(st.Z,{spinning:yn},E.createElement("div",{className:Pe()(bt.list,Yt)},!!Rt.length&&Rt.map((On,En)=>{const{name:Mn,id:Bn,identifier:xt,power:$t,cover_image_id:cn,pic:an}=On;return E.createElement("div",{className:bt.wrap,key:Bn,style:{width:gn,marginRight:(1+En)%Lt===0?0:Ct+Qt,marginBottom:Jt}},E.createElement("a",{target:"_blank",href:`/shixuns/${xt}/challenges`,className:bt.li,onClick:ze=>{ze.preventDefault(),un&&(0,vt.L9)([un]),$t&&(0,vt.xg)(`/shixuns/${xt}/challenges`)}},E.createElement("div",{className:bt.img},E.createElement("img",{className:bt.cover,src:`${an}`}),On.is_jupyter&&E.createElement("span",{className:`sprite sprite-43 ${bt.sign}`}),On.is_jupyter_lab&&E.createElement("span",{className:`sprite sprite-42 ${bt.sign}`}),On.is_unity_3d&&E.createElement("span",{className:`sprite sprite-44 ${bt.sign}`})),E.createElement("div",{className:bt.name},E.createElement(ut.Z,{title:Mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:bt.e},Mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:bt.tags},E.createElement(ut.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,On.challenges_count))),!!On.myshixuns_count&&E.createElement(ut.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,On.myshixuns_count))),E.createElement(ut.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,On.level))),E.createElement("div",{className:bt.rate},E.createElement(qe.Z,{allowHalf:!0,disabled:!0,defaultValue:On.score_info}),E.createElement("span",null,"\xA0",On.score_info?`${On.score_info}\u5206`:"5\u5206")))),!$t&&E.createElement("div",{className:bt.lockWrap},E.createElement("img",{src:`${Nt.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")))}),!Rt.length&&E.createElement(at.Z,null)))},Ge=re(64194),_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"},ue=re(62957),Qe=re(96599),Te="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",De=re(59301),ht=(Yt,Rt,Lt)=>new Promise((Ct,Jt)=>{var Qt=yn=>{try{un(Lt.next(yn))}catch(gn){Jt(gn)}},tn=yn=>{try{un(Lt.throw(yn))}catch(gn){Jt(gn)}},un=yn=>yn.done?Ct(yn.value):Promise.resolve(yn.value).then(Qt,tn);un((Lt=Lt.apply(Yt,Rt)).next())}),ce=({className:Yt,dataSource:Rt=[],col:Lt=4,right:Ct,bottom:Jt=23,precision:Qt=0,wrapWidth:tn=1200,trackEventItems:un,loading:yn,category:gn,hiddenClick:On,handleVery:En=()=>!0,isCurrent:Mn})=>{const[Bn,xt]=ue.default.useModal(),$t=Math.floor((tn-(Lt-1)*Ct)/Lt),cn=an=>ht(void 0,null,function*(){Bn.confirm({title:"\u7F6E\u9876",width:500,content:De.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",De.createElement("span",{className:"c-blue"},"\u201C",an.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return De.createElement(st.Z,{spinning:yn},xt,De.createElement("div",{className:Pe()(_e.list,Yt)},!!Rt.length&&Rt.map((an,ze)=>{const{subject_identifier:tt,id:xe,identifier:He,power:ke}=an,Ue=an.is_public!=0&&an.is_public;return De.createElement("div",{className:_e.wrap,key:xe,style:{width:$t,marginRight:(1+ze)%Lt===0?0:Ct+Qt,marginBottom:Jt}},an.homepage_show&&De.createElement("div",{className:_e.btnsTop},De.createElement(Qe.default,{color:"red"},"\u7F6E\u9876")),De.createElement("a",{className:_e.li,onClick:Mt=>{Mt.preventDefault(),En(an==null?void 0:an.first_category_url)&&(un&&(0,vt.L9)([un]),(0,vt.xg)(an.first_category_url))}},De.createElement("div",{className:_e.top},De.createElement(ut.Z,{title:an.name},De.createElement("div",{className:_e.name},an.name)),De.createElement("img",{className:_e.img,src:Nt.Z.IMG_SERVER+"/images/"+an.avatar_url}),De.createElement("div",{className:_e.text,title:an.creator},an.creator),tt&&De.createElement("div",{className:_e.btns},De.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),De.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ue&&De.createElement("div",{className:_e.sign},"\u516C\u5F00"),Mn&&De.createElement("div",{className:_e.hidden,onClick:Mt=>{Mt.stopPropagation(),On(an)}},De.createElement("i",{className:`iconfont ${gn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),gn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),De.createElement("div",{className:_e.bottom},an.visits>0&&De.createElement(ut.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},De.createElement("span",null,De.createElement("i",{className:"iconfont icon-liulanyan"}),De.createElement("span",null,an.visits))),an.course_members_count>0&&De.createElement(ut.Z,{title:"\u6210\u5458",placement:"bottom"},De.createElement("span",null,De.createElement("i",{className:"iconfont icon-chengyuan"}),an.course_members_count)),an.tasks_count>0&&De.createElement(ut.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},De.createElement("span",null,De.createElement("i",{className:"iconfont icon-zuoye"}),an.tasks_count)),an.is_end?De.createElement("div",{style:{color:"#6B758B"}}):De.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!an.is_accessible&&De.createElement("div",{className:_e.lockWrap},De.createElement("img",{src:`${Nt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),De.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rt.length&&De.createElement(at.Z,null)))},Ze={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"},Tt=re(63823),ve=({dataSource:Yt=[],value:Rt,onChange:Lt,className:Ct,style:Jt={},tabBarExtraContent:Qt})=>E.createElement("div",{className:Pe()(Ze.tabs,Ct),style:Jt},E.createElement("div",{className:Ze.tabsWrap},Yt.map((tn,un)=>!(tn!=null&&tn.hide)&&E.createElement("aside",{className:Ze.tab,onClick:()=>{Lt(tn.id),tn.link&&Tt.history.push(tn.link)},key:un},E.createElement("div",{className:Rt===tn.id?Ze.active:""},tn.name),(tn==null?void 0:tn.resetCount)==null&&(tn==null?void 0:tn.total)!==void 0&&E.createElement("span",null,"\uFF08",tn==null?void 0:tn.total,"\uFF09"),(tn==null?void 0:tn.resetCount)!==void 0&&(tn==null?void 0:tn.total)!==void 0&&E.createElement(ut.Z,{title:(tn==null?void 0:tn.tip)!=null?tn==null?void 0:tn.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},tn==null?void 0:tn.resetCount),"/",E.createElement("span",null,tn==null?void 0:tn.total),"\uFF09"))))),E.createElement("div",{className:Ze.tabBar},Qt)),je=({className:Yt,style:Rt={},children:Lt})=>E.createElement("div",{className:Pe()(Yt),style:Rt},Lt),Ft={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),Ht=re(93041);const Fe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var lt=({sortValue:Yt,dropValue:Rt,className:Lt,onSort:Ct,onDrop:Jt,dataSource:Qt=Fe})=>{var tn;return E.createElement("div",{className:Pe()(Ft.orderWrap,Lt)},E.createElement(Bt.Z,{dropdownRender:()=>E.createElement(Ht.default,null,Qt.map((un,yn)=>E.createElement(Ht.default.Item,{key:yn,onClick:()=>Jt(un.id)},un.name)))},E.createElement("span",{className:Ft.orderTextWrap},(tn=Qt.find(un=>Rt===un.id))==null?void 0:tn.name)),E.createElement("span",{className:Ft.orderIconWrap},E.createElement("span",{className:Ft.orderAsc},E.createElement("i",{className:Yt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ft.cursorPointer} ${Ft.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ft.cursorPointer}`,onClick:()=>Ct(Yt==="asc"?"desc":"asc")})),E.createElement("span",{className:Ft.orderDesc},E.createElement("i",{className:Yt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ft.cursorPointer} ${Ft.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ft.cursorPointer}`,onClick:()=>Ct(Yt==="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,se=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,pe=(Yt,Rt,Lt)=>Rt in Yt?ee(Yt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Yt[Rt]=Lt,be=(Yt,Rt)=>{for(var Lt in Rt||(Rt={}))se.call(Rt,Lt)&&pe(Yt,Lt,Rt[Lt]);if(oe)for(var Lt of oe(Rt))ne.call(Rt,Lt)&&pe(Yt,Lt,Rt[Lt]);return Yt},ct=(Yt,Rt)=>{var Lt={};for(var Ct in Yt)se.call(Yt,Ct)&&Rt.indexOf(Ct)<0&&(Lt[Ct]=Yt[Ct]);if(Yt!=null&&oe)for(var Ct of oe(Yt))Rt.indexOf(Ct)<0&&ne.call(Yt,Ct)&&(Lt[Ct]=Yt[Ct]);return Lt},Ie=(Yt,Rt,Lt)=>new Promise((Ct,Jt)=>{var Qt=yn=>{try{un(Lt.next(yn))}catch(gn){Jt(gn)}},tn=yn=>{try{un(Lt.throw(yn))}catch(gn){Jt(gn)}},un=yn=>yn.done?Ct(yn.value):Promise.resolve(yn.value).then(Qt,tn);un((Lt=Lt.apply(Yt,Rt)).next())}),pt=Yt=>{var Rt=Yt,{className:Lt,style:Ct,children:Jt,loading:Qt=!1,openLoading:tn,onClick:un=()=>{},size:yn="middle",shape:gn="round"}=Rt,On=ct(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[En,Mn]=(0,E.useState)(!1);return E.createElement(te.ZP,be({onClick:(0,Re.throttle)(Bn=>Ie(void 0,null,function*(){tn&&Mn(!0);try{yield un(Bn)}catch(xt){console.log("error",xt)}tn&&Mn(!1)}),2e3,{leading:!0,trailing:!1}),className:Pe()(ae.btn,ae[`${yn}-${gn}`],Lt),style:Ct,size:yn,shape:gn,loading:En||Qt},On),Jt)},Dt={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"},qt=({className:Yt,style:Rt,children:Lt=null,onClick:Ct,title:Jt})=>E.createElement("div",{className:Pe()(Dt.head,Yt),style:Rt},E.createElement("span",{className:"primary-hover",onClick:Ct},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:Jt},Jt),E.createElement("div",{className:Dt.node},Lt)),Kt={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"},Pt=({confirmShow:Yt=!0,confirmTitle:Rt,confirmClick:Lt,cancelShow:Ct=!0,cancelTitle:Jt,cancelClick:Qt,className:tn,style:un,confirmLoading:yn=!1})=>E.createElement("div",{className:Pe()(Kt.btns,tn),style:un},Yt&&E.createElement(te.ZP,{loading:yn,onClick:Lt,type:"primary",className:Kt.confirm},Rt),Ct&&E.createElement(te.ZP,{onClick:Qt,className:Kt.cancel},Jt)),wt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},dt=({className:Yt,style:Rt={},LeftContent:Lt,children:Ct,RightContent:Jt})=>E.createElement("div",{className:Pe()(wt.fixedBottom,Yt),style:Rt},E.createElement("div",{className:wt.wrap},E.createElement("div",{className:wt.left},Lt),E.createElement("div",{className:wt.center},Ct),E.createElement("div",{className:wt.right},Jt))),en={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"},Ne=({className:Yt,style:Rt={},dataSource:Lt=[]})=>E.createElement("div",{className:Pe()(en.crumbs,Yt),style:Rt},Lt.map((Ct,Jt)=>Jt<Lt.length-1?E.createElement(E.Fragment,{key:Jt},Ct.path||Ct.onClick?E.createElement("span",{className:en.hover,onClick:Ct!=null&&Ct.onClick?Ct.onClick:()=>Tt.history.push(Ct.path)},Ct.name):E.createElement("span",null,Ct.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:Jt,style:{color:"#5F6368"}},Ct.name))),nt=re(11938),Ke=Object.defineProperty,It=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,jt=(Yt,Rt,Lt)=>Rt in Yt?Ke(Yt,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):Yt[Rt]=Lt,ln=(Yt,Rt)=>{for(var Lt in Rt||(Rt={}))gt.call(Rt,Lt)&&jt(Yt,Lt,Rt[Lt]);if(Ye)for(var Lt of Ye(Rt))Et.call(Rt,Lt)&&jt(Yt,Lt,Rt[Lt]);return Yt},wn=(Yt,Rt)=>It(Yt,Me(Rt)),Sn=(Yt,Rt)=>{var Lt={};for(var Ct in Yt)gt.call(Yt,Ct)&&Rt.indexOf(Ct)<0&&(Lt[Ct]=Yt[Ct]);if(Yt!=null&&Ye)for(var Ct of Ye(Yt))Rt.indexOf(Ct)<0&&Et.call(Yt,Ct)&&(Lt[Ct]=Yt[Ct]);return Lt};const{Countdown:rn}=nt.default;var dn=Yt=>{var Rt=Yt,{onChange:Lt}=Rt,Ct=Sn(Rt,["onChange"]);const[Jt,Qt]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof Jt=="number"&&Jt>=0&&Lt(Jt)},[Jt]);const tn=un=>{const yn=Math.floor(un/1e3);Qt(yn)};return E.createElement(rn,wn(ln({},Ct),{onChange:tn}))}},2408:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return it}});var E=re(59301);function it(ge,Xe){const Ce=(0,E.useRef)();(0,E.useEffect)(()=>{Ce.current=ge}),(0,E.useEffect)(()=>{function Oe(){Ce.current()}if(Xe!==null){let Pe=setInterval(Oe,Xe);return()=>clearInterval(Pe)}},[Xe])}},15972:function(on,Vt,re){"use strict";re.r(Vt),re.d(Vt,{default:function(){return Ut}});var E=re(59301),it=re(63823),ge=re(28284),Xe=re(6767),Ce=re(37285),Oe=re(91882),Pe=re(77019),Re=re(5269),Ee=re(62957),he=re(31691),et=re(25399),Se=re(37568),ft=re(7939),We=re(8973),we=re(59898),Le=re(62673),Ae=re(82326),Je=re(56375),ot={flex_box_center:"flex_box_center___ZXamY",flex_space_between:"flex_space_between___OhehO",flex_box_vertical_center:"flex_box_vertical_center___JcdoD",flex_box_center_end:"flex_box_center_end___BQR8z",flex_box_column:"flex_box_column___ZtKH_",wrap:"wrap___ucM4I",modal:"modal___Snz7U",titleWrap:"titleWrap___GoOJH",required:"required___hcR9L",title:"title___Fk25W",colorGray:"colorGray___s_7Rh",choiceWrap:"choiceWrap___Km9CZ",answer:"answer___nCBKN",activeAnswer:"activeAnswer___pykZr",deleteIcon:"deleteIcon___FtIV6",addIcon:"addIcon___pjZkR",editorWrap:"editorWrap___VTBdJ",htmlWrap:"htmlWrap___Cqe4T",radio:"radio___Uahep",color333:"color333___NsMb3",color999:"color999___qJjRp",questionType:"questionType___BC_py",questionChoices:"questionChoices____TjNP"},At=Object.defineProperty,bt=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,qe=(Pt,wt,mt)=>wt in Pt?At(Pt,wt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[wt]=mt,Nt=(Pt,wt)=>{for(var mt in wt||(wt={}))st.call(wt,mt)&&qe(Pt,mt,wt[mt]);if(bt)for(var mt of bt(wt))ut.call(wt,mt)&&qe(Pt,mt,wt[mt]);return Pt},vt=(Pt,wt)=>{var mt={};for(var dt in Pt)st.call(Pt,dt)&&wt.indexOf(dt)<0&&(mt[dt]=Pt[dt]);if(Pt!=null&&bt)for(var dt of bt(Pt))wt.indexOf(dt)<0&&ut.call(Pt,dt)&&(mt[dt]=Pt[dt]);return mt},at=(Pt,wt,mt)=>new Promise((dt,en)=>{var Gt=Ke=>{try{nt(mt.next(Ke))}catch(It){en(It)}},Ne=Ke=>{try{nt(mt.throw(Ke))}catch(It){en(It)}},nt=Ke=>Ke.done?dt(Ke.value):Promise.resolve(Ke.value).then(Gt,Ne);nt((mt=mt.apply(Pt,wt)).next())});const kt=["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"],Be=(Pt,wt)=>{var mt=Pt,{problemset:dt,globalSetting:en,loading:Gt,dispatch:Ne,showAnswerTip:nt=!0,onRef:Ke=()=>{},editData:It,editKey:Me,callback:Ye}=mt,gt=vt(mt,["problemset","globalSetting","loading","dispatch","showAnswerTip","onRef","editData","editKey","callback"]);const[Et,jt]=(0,E.useState)([]),[ln,wn]=(0,E.useState)(),[Sn,rn]=(0,E.useState)([]),[pn,dn]=(0,E.useState)(""),[Yt,Rt]=(0,E.useState)(0),[Lt,Ct]=(0,E.useState)(!0),[Jt,Qt]=(0,E.useState)(!1),tn=(0,it.useParams)(),[un,yn]=(0,E.useState)(""),[gn,On]=(0,E.useState)("");(0,E.useEffect)(()=>{var xt,$t,cn,an,ze,tt,xe,He;if(!((xt=It==null?void 0:It.question)!=null&&xt.question_title)){jt([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Ct(!0),dn(""),Qt(!1);return}yn(($t=It==null?void 0:It.question)==null?void 0:$t.max_choices),On((cn=It==null?void 0:It.question)==null?void 0:cn.min_choices),dn((an=It==null?void 0:It.question)==null?void 0:an.question_title),Ct(!!((ze=It==null?void 0:It.question)!=null&&ze.is_necessary)),jt((tt=It==null?void 0:It.question)==null?void 0:tt.answers.map(ke=>({value:ke.answer_text,disabled:ke.answer_text==="\u5176\u5B83"}))),Qt(!!((He=(xe=It==null?void 0:It.question)==null?void 0:xe.answers)!=null&&He.find(ke=>ke.answer_text==="\u5176\u5B83")))},[It]),(0,E.useImperativeHandle)(wt,()=>({onSave:En}));const En=xt=>at(void 0,null,function*(){var $t;if(un&&!gn||!un&&gn){Xe.ZP.info('\u53EF\u9009\uFF1A\u6700\u5C0F\u548C\u6700\u5927\u9650\u5236\u987B\u540C\u65F6\u4E3A\u6570\u503C\u6216\u8005\u201C--"');return}if(gn>un){Xe.ZP.info("\u53EF\u9009\u7684\u6700\u5927\u9650\u5236\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u9650\u5236");return}if(!pn)return Xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const cn=Et.findIndex(tt=>!tt.value);if(cn>-1)return Xe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${kt[cn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let an;const ze={question_title:pn,question_type:2,insert_id:It.insert_id,is_necessary:Math.ceil(Lt),max_choices:un,min_choices:gn,question_answers:Et.map(tt=>tt.value)};if(($t=It.question)!=null&&$t.id?an=yield(0,We.wo)(Nt({pollsId:It.question.id},ze)):an=yield(0,We.Fd)(Nt({exercise_bank_id:tn.topicId},ze)),an.status===0){Xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ye("edit",-1);const tt=yield Ne({type:"polls/getExerciseBanks",payload:Nt({},tn)});xt&&(ze.answers=ze.question_answers.map(xe=>({answer_text:xe})),Ye("addContinue",Nt({type:2,insert_id:It.question.id,key:It.key,question_type:1},ze),tt.questions))}}),Mn=()=>{var xt,$t,cn,an;return E.createElement("aside",null,E.createElement("div",{className:ot.questionType},E.createElement("div",null,E.createElement("span",{className:"font16"},"\u7B2C",It.key,"\u9898"),E.createElement("span",{className:"font16 c-light-black ml10"},"\u591A\u9009\u9898"),E.createElement("span",{className:"tag-grey-eae ml10 mr10"},((xt=It==null?void 0:It.question)==null?void 0:xt.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"),"\u53EF\u9009",($t=It==null?void 0:It.question)==null?void 0:$t.min_choices,"-",(cn=It==null?void 0:It.question)==null?void 0:cn.max_choices,"\u9879")),E.createElement("div",{className:"mt5"},E.createElement(Je.Z,{value:It.question.question_title})),E.createElement("div",{className:ot.questionChoices},(an=It==null?void 0:It.question.answers)==null?void 0:an.map(function(ze,tt){return E.createElement(Pe.Z,null,E.createElement(Re.Z,null,E.createElement(Le.default,{key:tt,disabled:!0},E.createElement("span",{className:"c-black font14"},ze.answer_text))))})))},Bn=()=>E.createElement("aside",null,E.createElement("div",{className:ot.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u591A\u9009\u9898")," ",E.createElement(Le.default,{checked:!!Lt,className:"ml10",onChange:xt=>Ct(xt.target.checked)},"\u5FC5\u7B54"))),E.createElement("p",{className:ot.titleWrap},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},rows:1,value:pn,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:xt=>dn(xt.target.value)})),Et.map((xt,$t)=>E.createElement(Pe.Z,{className:ot.choiceWrap,key:$t,gutter:[12,12]},E.createElement(Re.Z,null,E.createElement("span",{className:"font16"},"\u9009\u9879")),E.createElement(Re.Z,{className:ot.editorWrap,flex:"1"},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},value:Et[$t].value,rows:1,disabled:!!xt.disabled,onChange:cn=>{Et[$t].value=cn.target.value,jt([...Et])}})),E.createElement(Re.Z,null,$t>1&&E.createElement(et.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${ot.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{jt(Et.filter((cn,an)=>an!==$t)),xt.disabled&&Qt(!1)}}))))),E.createElement(Pe.Z,{gutter:[12,12]},E.createElement(Re.Z,null,"\u53EF\u9009"),E.createElement(Re.Z,null,E.createElement(Ae.default,{value:gn||"",style:{width:120},onChange:xt=>On(xt)},E.createElement(Ae.default.Option,{value:""},"--"),Et.map(function(xt,$t){return E.createElement(Ae.default.Option,{value:String($t+2)},$t+2)})),E.createElement("span",{className:"ml10 mr10"},"~"),E.createElement(Ae.default,{style:{width:120},value:un||"",onChange:xt=>yn(xt)},E.createElement(Ae.default.Option,{value:""},"--"),Et.map(function(xt,$t){return E.createElement(Ae.default.Option,{value:String($t+2)},$t+2)})))),E.createElement(Pe.Z,{gutter:[12,12]},E.createElement(Re.Z,{flex:"1"},E.createElement(ft.ZP,{type:"default",onClick:()=>{Et.find(xt=>xt.value==="\u5176\u5B83")?jt([...Et.filter(xt=>xt.value!=="\u5176\u5B83"),{value:""},{value:"\u5176\u5B83",disabled:!0}]):jt([...Et,{value:""}])}},"\u65B0\u589E\u9009\u9879"),!Jt&&E.createElement(ft.ZP,{type:"default",className:"ml20",onClick:()=>{jt([...Et,{disabled:!0,value:"\u5176\u5B83"}]),Qt(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement(Re.Z,{className:"tl"},E.createElement(ft.ZP,{type:"default",onClick:()=>{var xt;(xt=It.question)!=null&&xt.id?Ye("edit",-1):Ye("del",It.key)}},"\u53D6\u6D88"),E.createElement(ft.ZP,{className:"ml20",type:"primary",onClick:()=>En()},"\u4FDD\u5B58"),E.createElement(ft.ZP,{className:"ml20",type:"primary",onClick:()=>En(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return E.createElement("section",{className:ot.wrap},Me!==It.key&&Mn(),Me===It.key&&Bn())};var Ge=(0,it.connect)(({problemset:Pt,loading:wt,globalSetting:mt})=>({problemset:Pt,globalSetting:mt,loading:wt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Be)),_e=re(47889),ue=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ht=(Pt,wt,mt)=>wt in Pt?ue(Pt,wt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[wt]=mt,me=(Pt,wt)=>{for(var mt in wt||(wt={}))Te.call(wt,mt)&&ht(Pt,mt,wt[mt]);if(Qe)for(var mt of Qe(wt))De.call(wt,mt)&&ht(Pt,mt,wt[mt]);return Pt},ce=(Pt,wt)=>{var mt={};for(var dt in Pt)Te.call(Pt,dt)&&wt.indexOf(dt)<0&&(mt[dt]=Pt[dt]);if(Pt!=null&&Qe)for(var dt of Qe(Pt))wt.indexOf(dt)<0&&De.call(Pt,dt)&&(mt[dt]=Pt[dt]);return mt},Ze=(Pt,wt,mt)=>new Promise((dt,en)=>{var Gt=Ke=>{try{nt(mt.next(Ke))}catch(It){en(It)}},Ne=Ke=>{try{nt(mt.throw(Ke))}catch(It){en(It)}},nt=Ke=>Ke.done?dt(Ke.value):Promise.resolve(Ke.value).then(Gt,Ne);nt((mt=mt.apply(Pt,wt)).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"],St=(Pt,wt)=>{var mt=Pt,{problemset:dt,globalSetting:en,loading:Gt,dispatch:Ne,onRef:nt=()=>{},editData:Ke,editKey:It,callback:Me,showAnswerTip:Ye=!0}=mt,gt=ce(mt,["problemset","globalSetting","loading","dispatch","onRef","editData","editKey","callback","showAnswerTip"]);const[Et,jt]=(0,E.useState)([]),[ln,wn]=(0,E.useState)(),[Sn,rn]=(0,E.useState)([]),[pn,dn]=(0,E.useState)(""),[Yt,Rt]=(0,E.useState)(0),[Lt,Ct]=(0,E.useState)(!1),[Jt,Qt]=(0,E.useState)(!1),tn=(0,it.useParams)();(0,E.useEffect)(()=>{var Mn,Bn,xt,$t,cn,an;if(!((Mn=Ke==null?void 0:Ke.question)!=null&&Mn.question_title)){jt([{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""},{disabled:!1,value:""}]),Ct(!1),dn(""),Qt(!1);return}dn((Bn=Ke==null?void 0:Ke.question)==null?void 0:Bn.question_title),Ct(!!((xt=Ke==null?void 0:Ke.question)!=null&&xt.is_necessary)),jt(($t=Ke==null?void 0:Ke.question)==null?void 0:$t.answers.map(ze=>({value:ze.answer_text,disabled:ze.answer_text==="\u5176\u5B83"}))),Qt(!!((an=(cn=Ke==null?void 0:Ke.question)==null?void 0:cn.answers)!=null&&an.find(ze=>ze.answer_text==="\u5176\u5B83")))},[Ke]),(0,E.useImperativeHandle)(wt,()=>({onSave:un}));const un=Mn=>Ze(void 0,null,function*(){var Bn;if(!pn)return Xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const xt=Et.findIndex(an=>!an.value);if(xt>-1)return Xe.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Tt[xt]} \u9009\u9879\u7684\u5185\u5BB9`),!1;let $t;const cn={question_title:pn,question_type:1,insert_id:Ke.insert_id,is_necessary:Math.ceil(Lt),question_answers:Et.map(an=>an.value)};if((Bn=Ke.question)!=null&&Bn.id?$t=yield(0,We.wo)(me({pollsId:Ke.question.id},cn)):$t=yield(0,We.Fd)(me({exercise_bank_id:tn.topicId},cn)),$t.status===0){Xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Me("edit",-1);const an=yield Ne({type:"polls/getExerciseBanks",payload:me({},tn)});Mn&&(cn.answers=cn.question_answers.map(ze=>({answer_text:ze})),Me("addContinue",me({type:1,insert_id:Ke.question.id,key:Ke.key,question_type:1},cn),an.questions))}}),yn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],gn=Mn=>Ze(void 0,null,function*(){var Bn,xt;switch(Mn.id){case"del":let $t;Ee.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ze(this,null,function*(){var cn;yield(0,We.x$)({pollsId:(cn=Ke==null?void 0:Ke.question)==null?void 0:cn.id}),Ne({type:"polls/getExerciseBanks",payload:me({},tn)})})}});break;case"up":case"down":yield(0,We.vf)({pollsId:(Bn=Ke==null?void 0:Ke.question)==null?void 0:Bn.id,opr:Mn.id}),Ne({type:"polls/getExerciseBanks",payload:me({},tn)});break;case"edit":Me("edit",Ke.key);break;case"add":Me("add",{type:1,key:Ke.key,insert_id:(xt=Ke==null?void 0:Ke.question)==null?void 0:xt.id,question_type:1});break}}),On=()=>{var Mn,Bn;return E.createElement("aside",null,E.createElement("div",{className:ot.questionType},E.createElement("div",null,E.createElement("span",{className:"font16"},"\u7B2C",Ke.key,"\u9898"),E.createElement("span",{className:"font16 c-light-black ml10"},"\u5355\u9009\u9898"),E.createElement("span",{className:"tag-grey-eae ml10"},((Mn=Ke==null?void 0:Ke.question)==null?void 0:Mn.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"))),E.createElement("div",{className:"mt5"},E.createElement(Je.Z,{value:Ke.question.question_title})),E.createElement("div",{className:ot.questionChoices},(Bn=Ke==null?void 0:Ke.question.answers)==null?void 0:Bn.map(function(xt,$t){return E.createElement(Pe.Z,null,E.createElement(Re.Z,null,E.createElement(_e.ZP,{key:$t,disabled:!0})),E.createElement(Re.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},xt.answer_text)))})))},En=()=>E.createElement("aside",null,E.createElement("div",{className:ot.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5355\u9009\u9898")," ",E.createElement(Le.default,{checked:!!Lt,className:"ml10",onChange:Mn=>Ct(Mn.target.checked)},"\u5FC5\u7B54"))),E.createElement("p",{className:ot.titleWrap},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},rows:1,value:pn,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:Mn=>dn(Mn.target.value)})),Et.map((Mn,Bn)=>E.createElement(Pe.Z,{className:ot.choiceWrap,key:Bn,gutter:[12,12]},E.createElement(Re.Z,null,E.createElement("span",{className:"font16"},"\u9009\u9879")),E.createElement(Re.Z,{className:ot.editorWrap,flex:"1"},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},value:Et[Bn].value,rows:1,disabled:Et[Bn].value==="\u5176\u5B83",onChange:xt=>{Et[Bn].value=xt.target.value,jt([...Et])}})),E.createElement(Re.Z,null,Bn>1&&E.createElement(et.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${ot.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{jt(Et.filter((xt,$t)=>$t!==Bn)),Mn.disabled&&Qt(!1)}}))))),E.createElement(Pe.Z,{gutter:[12,12]},E.createElement(Re.Z,{flex:"1"},E.createElement(ft.ZP,{type:"default",onClick:()=>{Et.find(Mn=>Mn.value==="\u5176\u5B83")?jt([...Et.filter(Mn=>Mn.value!=="\u5176\u5B83"),{value:""},{value:"\u5176\u5B83",disabled:!0}]):jt([...Et,{value:""}]),\u65B0\u589E\u9009\u9879}}),!Jt&&E.createElement(ft.ZP,{type:"default",className:"ml20",onClick:()=>{jt([...Et,{disabled:!0,value:"\u5176\u5B83"}]),Qt(!0)}},"\u65B0\u589E\u5176\u5B83\u9009\u9879")),E.createElement(Re.Z,{className:"tl"},E.createElement(ft.ZP,{type:"default",onClick:()=>{var Mn;(Mn=Ke.question)!=null&&Mn.id?Me("edit",-1):Me("del",Ke.key)}},"\u53D6\u6D88"),E.createElement(ft.ZP,{className:"ml20",type:"primary",onClick:()=>un()},"\u4FDD\u5B58"),E.createElement(ft.ZP,{className:"ml20",type:"primary",onClick:()=>un(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return E.createElement("section",{className:ot.wrap},It!==Ke.key&&On(),It===Ke.key&&En())};var ve=(0,it.connect)(({problemset:Pt,loading:wt,globalSetting:mt})=>({problemset:Pt,globalSetting:mt,loading:wt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(St)),$e=Object.defineProperty,je=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Ht=(Pt,wt,mt)=>wt in Pt?$e(Pt,wt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[wt]=mt,Fe=(Pt,wt)=>{for(var mt in wt||(wt={}))Ft.call(wt,mt)&&Ht(Pt,mt,wt[mt]);if(je)for(var mt of je(wt))Bt.call(wt,mt)&&Ht(Pt,mt,wt[mt]);return Pt},_t=(Pt,wt)=>{var mt={};for(var dt in Pt)Ft.call(Pt,dt)&&wt.indexOf(dt)<0&&(mt[dt]=Pt[dt]);if(Pt!=null&&je)for(var dt of je(Pt))wt.indexOf(dt)<0&&Bt.call(Pt,dt)&&(mt[dt]=Pt[dt]);return mt},lt=(Pt,wt,mt)=>new Promise((dt,en)=>{var Gt=Ke=>{try{nt(mt.next(Ke))}catch(It){en(It)}},Ne=Ke=>{try{nt(mt.throw(Ke))}catch(It){en(It)}},nt=Ke=>Ke.done?dt(Ke.value):Promise.resolve(Ke.value).then(Gt,Ne);nt((mt=mt.apply(Pt,wt)).next())});const ae=null,te=(Pt,wt)=>{var mt=Pt,{problemset:dt,globalSetting:en,loading:Gt,dispatch:Ne,onRef:nt=()=>{},editData:Ke,showAnswerTip:It=!0,editKey:Me,callback:Ye}=mt,gt=_t(mt,["problemset","globalSetting","loading","dispatch","onRef","editData","showAnswerTip","editKey","callback"]);const[Et,jt]=(0,E.useState)(""),[ln,wn]=(0,E.useState)(!0),Sn=(0,it.useParams)();(0,E.useEffect)(()=>{var Lt,Ct,Jt;if(!((Lt=Ke==null?void 0:Ke.question)!=null&&Lt.question_title)){wn(!0),jt("");return}jt((Ct=Ke==null?void 0:Ke.question)==null?void 0:Ct.question_title),wn(!!((Jt=Ke==null?void 0:Ke.question)!=null&&Jt.is_necessary))},[Ke]),(0,E.useImperativeHandle)(wt,()=>({onSave:rn}));const rn=Lt=>lt(void 0,null,function*(){var Ct;if(!Et)return Xe.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;let Jt;const Qt={question_title:Et,question_type:3,insert_id:Ke.insert_id,is_necessary:Math.ceil(ln)};if((Ct=Ke.question)!=null&&Ct.id?Jt=yield(0,We.wo)(Fe({pollsId:Ke.question.id},Qt)):Jt=yield(0,We.Fd)(Fe({exercise_bank_id:Sn.topicId},Qt)),Jt.status===0){Xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ye("edit",-1);const tn=yield Ne({type:"polls/getExerciseBanks",payload:Fe({},Sn)});Lt&&Ye("addContinue",Fe({type:3,insert_id:Ke.question.id,key:Ke.key,question_type:1},Qt),tn.questions)}}),pn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu current",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-xiangshangyi current",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiangxiayi current",id:"down"},{name:"\u6DFB\u52A0",icon:"iconfont c-green ml30 icon-tianjia current",id:"add"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjidaibeijing current",id:"edit"}],dn=Lt=>lt(void 0,null,function*(){var Ct,Jt;switch(Lt.id){case"del":let Qt;Ee.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return lt(this,null,function*(){var tn;yield(0,We.x$)({pollsId:(tn=Ke==null?void 0:Ke.question)==null?void 0:tn.id}),Ne({type:"polls/getExerciseBanks",payload:Fe({},Sn)})})}});break;case"up":case"down":yield(0,We.vf)({pollsId:(Ct=Ke==null?void 0:Ke.question)==null?void 0:Ct.id,opr:Lt.id}),Ne({type:"polls/getExerciseBanks",payload:Fe({},Sn)});break;case"edit":Ye("edit",Ke.key);break;case"add":Ye("add",{type:3,key:Ke.key,insert_id:(Jt=Ke==null?void 0:Ke.question)==null?void 0:Jt.id,question_type:3});break}}),Yt=()=>{var Lt,Ct;return E.createElement("aside",null,E.createElement("div",{className:ot.questionType},E.createElement("div",null,E.createElement("span",{className:"font16"},"\u7B2C",Ke.key,"\u9898"),E.createElement("span",{className:"font16 c-light-black ml10"},"\u4E3B\u89C2\u9898"),E.createElement("span",{className:"tag-grey-eae ml10 mr10"},((Lt=Ke==null?void 0:Ke.question)==null?void 0:Lt.is_necessary)===0?"\u9009\u7B54":"\u5FC5\u7B54"))),E.createElement("div",{className:"mt5"},E.createElement(Je.Z,{value:Ke.question.question_title}),E.createElement("div",{className:"mt15"},E.createElement(Se.default.TextArea,{placeholder:"\u5728\u6B64\u586B\u5165\u7B54\u6848",rows:5,disabled:!0}))),E.createElement("div",{className:ot.questionChoices},(Ct=Ke==null?void 0:Ke.question.answers)==null?void 0:Ct.map(function(Jt,Qt){return E.createElement(Pe.Z,null,E.createElement(Re.Z,null,E.createElement(Le.default,{key:Qt,disabled:!0},E.createElement("span",{className:"c-black font14"},Jt.answer_text))))})))},Rt=()=>E.createElement("aside",null,E.createElement("div",{className:ot.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u4E3B\u89C2\u9898")," ",E.createElement(Le.default,{checked:!!ln,className:"ml10",onChange:Lt=>wn(Lt.target.checked)},"\u5FC5\u7B54"))),E.createElement("p",{className:ot.titleWrap},E.createElement(Se.default.TextArea,{autoSize:{maxRows:5},rows:1,value:Et,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE",onChange:Lt=>jt(Lt.target.value)})),It?E.createElement("p",{className:ot.titleWrap},E.createElement("span",{className:ot.required},"*"),E.createElement("span",{className:ot.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:ot.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))):null,E.createElement(Pe.Z,{gutter:[12,12]},E.createElement(Re.Z,{flex:"1"}),E.createElement(Re.Z,{className:"tl"},E.createElement(ft.ZP,{type:"default",onClick:()=>{var Lt;(Lt=Ke.question)!=null&&Lt.id?Ye("edit",-1):Ye("del",Ke.key)}},"\u53D6\u6D88"),E.createElement(ft.ZP,{className:"ml20",type:"primary",onClick:()=>rn()},"\u4FDD\u5B58"),E.createElement(ft.ZP,{className:"ml20",type:"primary",onClick:()=>rn(!0)},"\u4FDD\u5B58\u5E76\u7EE7\u7EED"))));return E.createElement("section",{className:ot.wrap},Me!==Ke.key&&Yt(),Me===Ke.key&&Rt())};var ee=(0,it.connect)(({problemset:Pt,loading:wt,globalSetting:mt})=>({problemset:Pt,globalSetting:mt,loading:wt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(te)),oe=re(71347),se={flex_box_center:"flex_box_center___IqikW",flex_space_between:"flex_space_between___H4npu",flex_box_vertical_center:"flex_box_vertical_center___pxWg2",flex_box_center_end:"flex_box_center_end___fI1p7",flex_box_column:"flex_box_column___uFxAf",bg:"bg___Emql5",containerTitle:"containerTitle___fmYJh",containerDesc:"containerDesc___CC8H4",listItem:"listItem___zg_9F",info:"info___RsS8d",title:"title___w3IkP",titleLeft:"titleLeft___IS2Mw",titleRight:"titleRight____welO",acitons:"acitons___np4Mm",export:"export___atwjg"},ne=re(65305),pe=re(8831),be=Object.defineProperty,ct=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,pt=(Pt,wt,mt)=>wt in Pt?be(Pt,wt,{enumerable:!0,configurable:!0,writable:!0,value:mt}):Pt[wt]=mt,Dt=(Pt,wt)=>{for(var mt in wt||(wt={}))Ie.call(wt,mt)&&pt(Pt,mt,wt[mt]);if(ct)for(var mt of ct(wt))Ve.call(wt,mt)&&pt(Pt,mt,wt[mt]);return Pt},Ot=(Pt,wt)=>{var mt={};for(var dt in Pt)Ie.call(Pt,dt)&&wt.indexOf(dt)<0&&(mt[dt]=Pt[dt]);if(Pt!=null&&ct)for(var dt of ct(Pt))wt.indexOf(dt)<0&&Ve.call(Pt,dt)&&(mt[dt]=Pt[dt]);return mt},qt=(Pt,wt,mt)=>new Promise((dt,en)=>{var Gt=Ke=>{try{nt(mt.next(Ke))}catch(It){en(It)}},Ne=Ke=>{try{nt(mt.throw(Ke))}catch(It){en(It)}},nt=Ke=>Ke.done?dt(Ke.value):Promise.resolve(Ke.value).then(Gt,Ne);nt((mt=mt.apply(Pt,wt)).next())});const Kt=Pt=>{var wt=Pt,{polls:mt,globalSetting:dt,loading:en,user:Gt,dispatch:Ne}=wt,nt=Ot(wt,["polls","globalSetting","loading","user","dispatch"]),Ke,It,Me,Ye,gt,Et,jt,ln,wn,Sn,rn,pn,dn,Yt,Rt,Lt,Ct;const Jt=(0,it.useParams)(),{userInfo:Qt}=Gt,[tn]=ge.default.useForm(),[un,yn]=(0,E.useState)([]),[gn,On]=(0,E.useState)(!1);let[En,Mn]=(0,E.useState)(-1);const Bn=[{name:"\u5355\u9009\u9898",id:1},{name:"\u591A\u9009\u9898",id:2},{name:"\u4E3B\u89C2\u9898",id:3}],xt=(0,E.useRef)();(0,E.useEffect)(()=>{var xe,He,ke,Ue,Mt,sn;(xe=mt.exerciseBanks)!=null&&xe.questions&&(yn([...(He=mt.exerciseBanks)==null?void 0:He.questions]),tn.setFieldsValue({exercise_name:(Ue=(ke=mt.exerciseBanks)==null?void 0:ke.poll)==null?void 0:Ue.name,exercise_description:(sn=(Mt=mt.exerciseBanks)==null?void 0:Mt.poll)==null?void 0:sn.description}))},[mt.exerciseBanks]),(0,E.useEffect)(()=>{Ne({type:"polls/getExerciseBanks",payload:Dt({},Jt)})},[Jt.categoryId]);const $t=()=>qt(void 0,null,function*(){yield tn.validateFields();const xe=tn.getFieldValue();xe.is_md=!0,xe.topicId=Jt.topicId,On(!1),yield(0,We.hO)(Dt({},xe)),Ne({type:"polls/getExerciseBanks",payload:Dt({},Jt)})}),cn=xe=>qt(void 0,null,function*(){const He=xt==null?void 0:xt.current;if(En!==-1){Xe.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}Mn(un.length+1),yn([...un,{question:{question_type:xe}}])}),an=()=>{Ne({type:"userDetail/setActionTabs",payload:{key:"UserDetail-SendToClass",params:{object_id:[Jt.topicId],object_type:"poll"}}})},ze=(xe,He,ke)=>{switch(xe){case"edit":Mn(He);break;case"add":if(En!=-1){Xe.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}un.splice((He==null?void 0:He.key)+1,0,{insert_id:He==null?void 0:He.insert_id,question:Dt({},He)}).slice(),yn([...un]),Mn((He==null?void 0:He.key)+1);break;case"addContinue":ke.splice(He==null?void 0:He.key,0,{insert_id:He==null?void 0:He.insert_id,question:Dt({},He)}).slice(),yn([...ke]),Mn((He==null?void 0:He.key)+1);break;case"del":un.splice(He-1,1),yn([...un]),Mn(-1);break}},tt=function(){return un==null?void 0:un.map(function(xe,He){var ke;if(xe.key=He+1,xe.len=un.length,xe.question.question_type===1)return E.createElement("aside",null,E.createElement(ve,{ref:xt,editKey:En,callback:ze,editData:xe}),E.createElement(Ce.Z,null));if(xe.question.question_type===2)return E.createElement("aside",null,E.createElement(Ge,{ref:xt,editKey:En,callback:ze,editData:xe}),E.createElement(Ce.Z,null));if(((ke=xe.question)==null?void 0:ke.question_type)===3)return E.createElement("aside",null,E.createElement(ee,{ref:xt,editKey:En,callback:ze,editData:xe}),E.createElement(Ce.Z,null))})};return E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},Qt&&E.createElement(Oe.Z,{separator:">"},E.createElement(Oe.Z.Item,null,E.createElement(it.Link,{to:`/users/${Qt.login}/topics/personal`},"\u6211\u7684\u8BFE\u5802\u8D44\u6E90")),E.createElement(Oe.Z.Item,null,"\u8BE6\u60C5"))),E.createElement("aside",{className:[se.title,"mt20"].join(" ")},E.createElement(Pe.Z,{style:{width:"100%"}},E.createElement(Re.Z,{flex:"1"},E.createElement("strong",{className:"font20 ml5"},(It=(Ke=mt.exerciseBanks)==null?void 0:Ke.poll)==null?void 0:It.name)),E.createElement(Re.Z,null)))),E.createElement("section",{className:[se.bg,"pl30","pr30","pb30","mt20","relative"].join(" ")},E.createElement("div",{className:se.export},((Me=mt.exerciseBanks)==null?void 0:Me.authorize)&&E.createElement(E.Fragment,null,E.createElement("a",{onClick:xe=>{xe.preventDefault(),Ee.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664?",onOk:()=>qt(void 0,null,function*(){(yield(0,we.Tv)({object_type:"normal",object_id:[Jt.topicId]})).status===0&&it.history.push(`/users/${Jt.username}/topics/personal`)})})}},"\u5220\u9664"),E.createElement(it.Link,{to:`/users/${Qt.login}/topics/${Jt.topicId}/${Jt.topictype}/poll/edit`},"\u7F16\u8F91")),E.createElement("a",{onClick:xe=>{xe.preventDefault(),an()}},"\u53D1\u9001")),E.createElement(he.default,{className:se.tabs},E.createElement(he.default.TabPane,{tab:E.createElement("span",{className:"font16 pt10 pb12"},"\u5185\u5BB9\u8BE6\u60C5"),key:"1"},E.createElement(Je.Z,{className:"c-light-black",value:(gt=(Ye=mt.exerciseBanks)==null?void 0:Ye.poll)==null?void 0:gt.description}))),!gn&&E.createElement("aside",null,E.createElement("div",{className:se.containerDesc},E.createElement("div",null,(jt=(Et=mt.exerciseBanks)==null?void 0:Et.poll)==null?void 0:jt.name),E.createElement("div",null,E.createElement(et.Z,{title:"\u7F16\u8F91"},E.createElement("span",{onClick:()=>On(!0),className:"iconfont c-green ml30 icon-bianjidaibeijing"})))),E.createElement(Je.Z,{className:"c-light-black",value:(wn=(ln=mt.exerciseBanks)==null?void 0:ln.poll)==null?void 0:wn.description})),gn&&E.createElement(ge.default,{layout:"vertical",form:tn},E.createElement(ge.default.Item,{name:"exercise_name",label:"\u95EE\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u95EE\u5377\u6807\u9898"}]},E.createElement(Se.default,{maxLength:60,placeholder:"\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),E.createElement(ge.default.Item,{label:"\u95EE\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},E.createElement(pe.h,{scrollId:"exercise_description",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),E.createElement(ge.default.Item,{className:"tr"},E.createElement(ft.ZP,{type:"primary",onClick:()=>{$t()}},"\u4FDD\u5B58")))),un!=""&&E.createElement("section",{className:"mt20"},E.createElement(Pe.Z,null,E.createElement(Re.Z,{flex:1},E.createElement("span",{className:"c-light-black mr20"},"\u5355\u9009\u9898 ",(rn=(Sn=mt.exerciseBanks)==null?void 0:Sn.question_types)==null?void 0:rn.q_singles," \u9898"),E.createElement("span",{className:"c-light-black mr20"},"\u591A\u9009\u9898 ",(dn=(pn=mt.exerciseBanks)==null?void 0:pn.question_types)==null?void 0:dn.q_doubles," \u9898"),E.createElement("span",{className:"c-light-black"},"\u4E3B\u89C2\u9898 ",(Rt=(Yt=mt.exerciseBanks)==null?void 0:Yt.question_types)==null?void 0:Rt.q_mains," \u9898")),E.createElement(Re.Z,{className:"c-light-black"},"\u5408\u8BA1 ",E.createElement("span",{className:"c-orange"},(Ct=(Lt=mt.exerciseBanks)==null?void 0:Lt.question_types)==null?void 0:Ct.q_counts)," \u9898"))),E.createElement("section",{className:[se.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},un!=""&&tt(),un==""&&E.createElement(oe.Z,null)),E.createElement(ne.Z,null))};var Ut=(0,it.connect)(({polls:Pt,loading:wt,user:mt,globalSetting:dt})=>({polls:Pt,globalSetting:dt,user:mt,loading:wt.effects}))(Kt)},65305:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Ge}});var E=re(59301),it=re(63823),ge=re(6767),Xe=re(62957),Ce=re(31691),Oe=re(458),Pe=re(47889),Re={title:"title___XAxiE",radioWrap:"radioWrap___k0pOB",radio:"radio___x9kMt",colorFF0000:"colorFF0000___IMgd0",pagination:"pagination___ou2ht",checkboxWrapper:"checkboxWrapper___kF7xI"},Ee=re(68911),he=re(29596),et=re(29787),Se=re(62673),ft=re(59898),We=re(26724),we=re.n(We),Le=(_e,ue,Qe)=>new Promise((Te,De)=>{var ht=Ze=>{try{ce(Qe.next(Ze))}catch(Tt){De(Tt)}},me=Ze=>{try{ce(Qe.throw(Ze))}catch(Tt){De(Tt)}},ce=Ze=>Ze.done?Te(Ze.value):Promise.resolve(Ze.value).then(ht,me);ce((Qe=Qe.apply(_e,ue)).next())}),Je=({username:_e,setStages:ue,stages:Qe,hasError:Te,setHasError:De})=>{const[ht,me]=(0,E.useState)(""),[ce,Ze]=(0,E.useState)(1),[Tt,St]=(0,E.useState)([]),[ve,$e]=(0,E.useState)(!1),[je,Ft]=(0,E.useState)(0);(0,E.useEffect)(()=>{Bt({page:1,search:""},!0)},[]);const Bt=(Fe,_t)=>Le(void 0,null,function*(){$e(!0);const lt=yield(0,ft.w3)({username:_e,category:"manage",page:Fe.page,search:Fe.search});$e(!1),St(ae=>_t?lt==null?void 0:lt.subjects:[...ae,...lt==null?void 0:lt.subjects]),Ft(lt==null?void 0:lt.count)}),Ht=(0,E.useRef)();return E.createElement("div",{className:Re.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:ht,style:{width:500},onChange:Fe=>{me(Fe),Ze(1),Ht.current.scrollTo({behavior:"smooth",top:0}),Bt({page:1,search:Fe},!0)}})),E.createElement(et.Z,{spinning:ve},E.createElement("div",{className:Re.radioWrap,ref:Ht},E.createElement(we(),{initialLoad:!1,pageStart:1,threshold:6,loadMore:()=>{Ze(ce+1),Bt({page:ce+1,search:ht},!1)},hasMore:Tt.length<je,useWindow:!1},E.createElement(Pe.ZP.Group,{value:Qe.subjectId,onChange:Fe=>{ue({subjectId:Fe.target.value,stage_ids:[]}),De(!1)}},Tt.map(Fe=>{const _t=Fe.stages.map(lt=>({label:lt.name,value:lt.id}));return E.createElement("div",{key:Fe.id},E.createElement(Pe.ZP,{className:Re.radio,value:Fe.id},Fe.name),Fe.id===Qe.subjectId&&E.createElement("div",{className:Re.checkboxWrapper},_t.length>0&&E.createElement(Se.default,{indeterminate:Qe.stage_ids.length>0&&Qe.stage_ids.length<_t.length,onChange:lt=>{ue({subjectId:Fe.id,stage_ids:lt.target.checked?_t.map(ae=>ae.value):[]})},checked:Qe.stage_ids.length===_t.length},"\u5168\u9009"),E.createElement(Se.default.Group,{options:_t,value:Qe.stage_ids,onChange:lt=>ue({subjectId:Fe.id,stage_ids:lt})})))}))))),Te&&E.createElement("div",{className:Re.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u5B9E\u8DF5\u8BFE\u7A0B\u53CA\u7AE0\u8282"))},ot=re(13108),At=re(88444),bt=Object.defineProperty,st=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Nt=(_e,ue,Qe)=>ue in _e?bt(_e,ue,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):_e[ue]=Qe,vt=(_e,ue)=>{for(var Qe in ue||(ue={}))ut.call(ue,Qe)&&Nt(_e,Qe,ue[Qe]);if(st)for(var Qe of st(ue))qe.call(ue,Qe)&&Nt(_e,Qe,ue[Qe]);return _e},at=(_e,ue)=>{var Qe={};for(var Te in _e)ut.call(_e,Te)&&ue.indexOf(Te)<0&&(Qe[Te]=_e[Te]);if(_e!=null&&st)for(var Te of st(_e))ue.indexOf(Te)<0&&qe.call(_e,Te)&&(Qe[Te]=_e[Te]);return Qe},kt=(_e,ue,Qe)=>new Promise((Te,De)=>{var ht=Ze=>{try{ce(Qe.next(Ze))}catch(Tt){De(Tt)}},me=Ze=>{try{ce(Qe.throw(Ze))}catch(Tt){De(Tt)}},ce=Ze=>Ze.done?Te(Ze.value):Promise.resolve(Ze.value).then(ht,me);ce((Qe=Qe.apply(_e,ue)).next())});const Be=_e=>{var ue=_e,{userDetail:Qe,globalSetting:Te,loading:De,user:ht,dispatch:me}=ue,ce=at(ue,["userDetail","globalSetting","loading","user","dispatch"]),Ze,Tt,St,ve,$e;const[je,Ft]=(0,E.useState)("course"),[Bt,Ht]=(0,E.useState)(""),[Fe,_t]=(0,E.useState)([]),[lt,ae]=(0,E.useState)(),[te,ee]=(0,E.useState)(!1),[oe,se]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Qe.actionTabs.key==="UserDetail-SendToClass"&&ne(Bt)},[Qe.actionTabs.key]);const ne=Ie=>kt(void 0,null,function*(){ee(!0);const Ve=yield me({type:"userDetail/topicGetCourseList",payload:{search:Ie}});Ve&&_t((Ve==null?void 0:Ve.courses)||[]),ee(!1)}),[pe,be]=(0,E.useState)({subjectId:"",stage_ids:[]}),ct=()=>kt(void 0,null,function*(){var Ie,Ve,pt,Dt,Ot,qt;if(je==="course"){if(!lt){se(!0);return}const Kt=yield me({type:"userDetail/topicSendToClass",payload:vt({course_id:lt},(Ie=Qe.actionTabs)==null?void 0:Ie.params)});if(me({type:"userDetail/setActionTabs",payload:{}}),Kt&&Kt.status===0){const Ut={normal:"common_homework",group:"group_homework",exercise:"exercise",poll:"poll",videos:"video"};(0,Ee.xg)(`/classrooms/${lt}/${Ut[(pt=(Ve=Qe.actionTabs)==null?void 0:Ve.params)==null?void 0:pt.object_type]}`)}}else{if(!pe.subjectId||!pe.stage_ids.length){se(!0);return}(yield(0,At.nI)({id:(Ot=(Dt=Qe.actionTabs)==null?void 0:Dt.params)==null?void 0:Ot.object_id,login:(qt=ht.userInfo)==null?void 0:qt.login},{stage_ids:pe.stage_ids})).status===0&&(ge.ZP.success("\u53D1\u9001\u6210\u529F"),me({type:"userDetail/setActionTabs",payload:{}}),(0,Ee.xg)(`/paths/${pe.subjectId}`))}});return E.createElement(Xe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Qe.actionTabs.key==="UserDetail-SendToClass",title:"\u53D1\u9001",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:De["userDetail/sendToClass"],width:600,afterClose:()=>{se(!1),_t([]),be({subjectId:"",stage_ids:[]}),Ht("")},onOk:ct,wrapClassName:ot.Z.CustomCss,onCancel:()=>{me({type:"userDetail/setActionTabs",payload:{}})}},E.createElement(Ce.default,{activeKey:je,onChange:Ie=>{se(!1),Ft(Ie)},items:[{label:"\u8BFE\u5802",key:"course",children:E.createElement("div",{className:Re.wrap},E.createElement("div",{className:"mb10"},E.createElement(he.t7,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:Bt,style:{width:500},onChange:Ie=>{Ht(Ie),ne(Ie)}})),E.createElement(Oe.Z,{active:!0,loading:te},E.createElement("div",{className:Re.radioWrap},E.createElement(Pe.ZP.Group,{value:lt,onChange:Ie=>{ae(Ie.target.value),se(!1)}},Fe.map((Ie,Ve)=>E.createElement(Pe.ZP,{className:Re.radio,value:Ie.course_id,key:Ie.course_id},Ie.course_name))))),((Tt=(Ze=Qe.actionTabs)==null?void 0:Ze.params)==null?void 0:Tt.object_type)!=="videos"&&E.createElement("div",{className:Re.title},"\u6E29\u99A8\u63D0\u793A\uFF1A\u9009\u62E9\u7684\u9898\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802"),oe&&E.createElement("div",{className:Re.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802")),show:!0},{label:"\u5B9E\u8DF5\u8BFE\u7A0B",key:"subject",children:E.createElement(Je,{username:(St=ht.userInfo)==null?void 0:St.login,stages:pe,setStages:be,hasError:oe,setHasError:se}),show:(($e=(ve=Qe.actionTabs)==null?void 0:ve.params)==null?void 0:$e.object_type)==="videos"}].filter(Ie=>Ie.show)}))};var Ge=(0,it.connect)(({userDetail:_e,loading:ue,globalSetting:Qe,user:Te})=>({userDetail:_e,globalSetting:Qe,loading:ue.effects,user:Te}))(Be)},74410:function(on,Vt,re){"use strict";re.d(Vt,{AL:function(){return bt},Iy:function(){return et},Qv:function(){return We},ez:function(){return At},jb:function(){return Se}});var E=re(32834),it=re.n(E),ge=re(11690),Xe=re.n(ge);let Ce=1;function Oe(vt,at){const kt=vt.match(/^(\s+)(?:```)/);if(kt===null)return at;const Be=kt[1];return at.split(`
`).map(Ge=>{const _e=Ge.match(/^\s+/);if(_e===null)return Ge;const[ue]=_e;return ue.length>=Be.length?Ge.slice(Be.length):Ge}).join(`
`)}let Pe=[],Re=["<ul>"];const Ee=new(it()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function et(){Pe.length=0,Re=["<ul>"]}const Se={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ft(vt,at,kt,Be){if(at>=vt.length||vt[at].level<=kt)return at;var Ge=vt[at];Be.push("<li><a href='#"+Ce+Ge.anchor+"'>"+Ge.text+"</a>"),at++;var _e=[];return at=ft(vt,at,Ge.level,_e),_e.length>0&&(Be.push("<ul>"),_e.forEach(function(ue){Be.push(ue)}),Be.push("</ul>")),Be.push("</li>"),at=ft(vt,at,kt,Be),at}function We(){return ft(Pe,0,0,Re),Re.push("</ul>"),Re.join("")}const we={heading(vt){const at=he.exec(vt);if(Ce+=1,at)return{type:"heading",raw:at[0],depth:at[1].length,text:at[2]}},fences(vt){const at=this.rules.block.fences.exec(vt);if(at){const kt=at[0];let Be=Oe(kt,at[3]||"");const Ge=at[2]?at[2].trim():at[2];if(["latex","katex","math"].indexOf(Ge)>=0){const _e=Je(),ue=Be;Be=_e,ot[_e]={type:"block",expression:ue}}return{type:"code",raw:kt,lang:Ge,text:Be}}}},Le=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ae=0;const Je=()=>`__special_katext_id_${Ae++}__`;let ot={};function At(){return ot}function bt(){Ae=0,ot={}}function st(vt){return vt=vt.replace(Le,(at,kt)=>{const Be=Je();return ot[Be]={type:"inline",expression:kt},Be}),vt}const ut=Ee.listitem;Ee.listitem=function(vt){return ut(st(vt))};const qe=Ee.paragraph;Ee.paragraph=function(vt){return qe(st(vt))};const Nt=Ee.tablecell;Ee.tablecell=function(vt,at){return Nt(st(vt),at)},Ee.code=function(vt,at,kt){const Be=(at||"").match(/\S*/)[0];return Be?["latex","katex","math"].indexOf(Be)>=0?`<p class='editormd-tex'>${vt}</p>`:`<pre class="prettyprint linenums"><code class="language-${at}">${kt?vt:(0,ge.escape)(vt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(kt?vt:(0,ge.escape)(vt,!0))+"</code></pre>"},Ee.heading=function(vt,at,kt){let Be=this.options.headerPrefix+kt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Pe.push({anchor:Be,level:at,text:vt}),"<h"+at+' id="'+Ce+Be+'">'+vt+"</h"+at+">"},it().setOptions({silent:!0,gfm:!0,pedantic:!1}),it().use({tokenizer:we,renderer:Ee}),Vt.ZP=it()},86013:function(on,Vt,re){"use strict";var E=re(59301),it=re(19248);const ge=Xe=>{let Ce;return typeof Xe=="object"&&(Xe!=null&&Xe.clearIcon)?Ce=Xe:Xe&&(Ce={clearIcon:E.createElement(it.Z,null)}),Ce};Vt.Z=ge},91882:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Te}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(11592),Ce=re(26112),Oe=re(22703),Pe=re(48755),Re=re(84105),Ee=re(19563);const he=De=>{let{children:ht}=De;const{getPrefixCls:me}=E.useContext(Pe.E_),ce=me("breadcrumb");return E.createElement("li",{className:`${ce}-separator`,"aria-hidden":"true"},ht===""?ht:ht||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var et=he,Se=function(De,ht){var me={};for(var ce in De)Object.prototype.hasOwnProperty.call(De,ce)&&ht.indexOf(ce)<0&&(me[ce]=De[ce]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ce=Object.getOwnPropertySymbols(De);Ze<ce.length;Ze++)ht.indexOf(ce[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,ce[Ze])&&(me[ce[Ze]]=De[ce[Ze]]);return me};function ft(De,ht){if(De.title===void 0||De.title===null)return null;const me=Object.keys(ht).join("|");return typeof De.title=="object"?De.title:String(De.title).replace(new RegExp(`:(${me})`,"g"),(ce,Ze)=>ht[Ze]||ce)}function We(De,ht,me,ce){if(me==null)return null;const{className:Ze,onClick:Tt}=ht,St=Se(ht,["className","onClick"]),ve=Object.assign(Object.assign({},(0,Ce.Z)(St,{data:!0,aria:!0})),{onClick:Tt});return ce!==void 0?E.createElement("a",Object.assign({},ve,{className:ge()(`${De}-link`,Ze),href:ce}),me):E.createElement("span",Object.assign({},ve,{className:ge()(`${De}-link`,Ze)}),me)}function we(De,ht){return(ce,Ze,Tt,St,ve)=>{if(ht)return ht(ce,Ze,Tt,St);const $e=ft(ce,Ze);return We(De,ce,$e,ve)}}var Le=function(De,ht){var me={};for(var ce in De)Object.prototype.hasOwnProperty.call(De,ce)&&ht.indexOf(ce)<0&&(me[ce]=De[ce]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ce=Object.getOwnPropertySymbols(De);Ze<ce.length;Ze++)ht.indexOf(ce[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,ce[Ze])&&(me[ce[Ze]]=De[ce[Ze]]);return me};const Ae=De=>{const{prefixCls:ht,separator:me="/",children:ce,menu:Ze,overlay:Tt,dropdownProps:St,href:ve}=De,je=(Ft=>{if(Ze||Tt){const Bt=Object.assign({},St);if(Ze){const Ht=Ze||{},{items:Fe}=Ht,_t=Le(Ht,["items"]);Bt.menu=Object.assign(Object.assign({},_t),{items:Fe==null?void 0:Fe.map((lt,ae)=>{var{key:te,title:ee,label:oe,path:se}=lt,ne=Le(lt,["key","title","label","path"]);let pe=oe!=null?oe:ee;return se&&(pe=E.createElement("a",{href:`${ve}${se}`},pe)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:pe})})})}else Tt&&(Bt.overlay=Tt);return E.createElement(Ee.Z,Object.assign({placement:"bottom"},Bt),E.createElement("span",{className:`${ht}-overlay-link`},Ft,E.createElement(Re.Z,null)))}return Ft})(ce);return je!=null?E.createElement(E.Fragment,null,E.createElement("li",null,je),me&&E.createElement(et,null,me)):null},Je=De=>{const{prefixCls:ht,children:me,href:ce}=De,Ze=Le(De,["prefixCls","children","href"]),{getPrefixCls:Tt}=E.useContext(Pe.E_),St=Tt("breadcrumb",ht);return E.createElement(Ae,Object.assign({},Ze,{prefixCls:St}),We(St,Ze,me,ce))};Je.__ANT_BREADCRUMB_ITEM=!0;var ot=Je,At=re(36237),bt=re(63356),st=re(16931),ut=re(51636);const qe=De=>{const{componentCls:ht,iconCls:me,calc:ce}=De;return{[ht]:Object.assign(Object.assign({},(0,bt.Wf)(De)),{color:De.itemColor,fontSize:De.fontSize,[me]:{fontSize:De.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:De.linkColor,transition:`color ${De.motionDurationMid}`,padding:`0 ${(0,At.unit)(De.paddingXXS)}`,borderRadius:De.borderRadiusSM,height:De.fontHeight,display:"inline-block",marginInline:ce(De.marginXXS).mul(-1).equal(),"&:hover":{color:De.linkHoverColor,backgroundColor:De.colorBgTextHover}},(0,bt.Qy)(De)),"li:last-child":{color:De.lastItemColor},[`${ht}-separator`]:{marginInline:De.separatorMargin,color:De.separatorColor},[`${ht}-link`]:{[`
> ${me} + span,
> ${me} + a
`]:{marginInlineStart:De.marginXXS}},[`${ht}-overlay-link`]:{borderRadius:De.borderRadiusSM,height:De.fontHeight,display:"inline-block",padding:`0 ${(0,At.unit)(De.paddingXXS)}`,marginInline:ce(De.marginXXS).mul(-1).equal(),[`> ${me}`]:{marginInlineStart:De.marginXXS,fontSize:De.fontSizeIcon},"&:hover":{color:De.linkHoverColor,backgroundColor:De.colorBgTextHover,a:{color:De.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${De.componentCls}-rtl`]:{direction:"rtl"}})}},Nt=De=>({itemColor:De.colorTextDescription,lastItemColor:De.colorText,iconFontSize:De.fontSize,linkColor:De.colorTextDescription,linkHoverColor:De.colorText,separatorColor:De.colorTextDescription,separatorMargin:De.marginXS});var vt=(0,st.I$)("Breadcrumb",De=>{const ht=(0,ut.mergeToken)(De,{});return qe(ht)},Nt),at=function(De,ht){var me={};for(var ce in De)Object.prototype.hasOwnProperty.call(De,ce)&&ht.indexOf(ce)<0&&(me[ce]=De[ce]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ce=Object.getOwnPropertySymbols(De);Ze<ce.length;Ze++)ht.indexOf(ce[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,ce[Ze])&&(me[ce[Ze]]=De[ce[Ze]]);return me};function kt(De){const{breadcrumbName:ht,children:me}=De,ce=at(De,["breadcrumbName","children"]),Ze=Object.assign({title:ht},ce);return me&&(Ze.menu={items:me.map(Tt=>{var{breadcrumbName:St}=Tt,ve=at(Tt,["breadcrumbName"]);return Object.assign(Object.assign({},ve),{title:St})})}),Ze}function Be(De,ht){return(0,E.useMemo)(()=>De||(ht?ht.map(kt):null),[De,ht])}var Ge=function(De,ht){var me={};for(var ce in De)Object.prototype.hasOwnProperty.call(De,ce)&&ht.indexOf(ce)<0&&(me[ce]=De[ce]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ce=Object.getOwnPropertySymbols(De);Ze<ce.length;Ze++)ht.indexOf(ce[Ze])<0&&Object.prototype.propertyIsEnumerable.call(De,ce[Ze])&&(me[ce[Ze]]=De[ce[Ze]]);return me};const _e=(De,ht)=>{if(ht===void 0)return ht;let me=(ht||"").replace(/^\//,"");return Object.keys(De).forEach(ce=>{me=me.replace(`:${ce}`,De[ce])}),me},ue=De=>{const{prefixCls:ht,separator:me="/",style:ce,className:Ze,rootClassName:Tt,routes:St,items:ve,children:$e,itemRender:je,params:Ft={}}=De,Bt=Ge(De,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ht,direction:Fe,breadcrumb:_t}=E.useContext(Pe.E_);let lt;const ae=Ht("breadcrumb",ht),[te,ee,oe]=vt(ae),se=Be(ve,St),ne=we(ae,je);if(se&&se.length>0){const ct=[],Ie=ve||St;lt=se.map((Ve,pt)=>{const{path:Dt,key:Ot,type:qt,menu:Kt,overlay:Ut,onClick:Pt,className:wt,separator:mt,dropdownProps:dt}=Ve,en=_e(Ft,Dt);en!==void 0&&ct.push(en);const Gt=Ot!=null?Ot:pt;if(qt==="separator")return E.createElement(et,{key:Gt},mt);const Ne={},nt=pt===se.length-1;Kt?Ne.menu=Kt:Ut&&(Ne.overlay=Ut);let{href:Ke}=Ve;return ct.length&&en!==void 0&&(Ke=`#/${ct.join("/")}`),E.createElement(Ae,Object.assign({key:Gt},Ne,(0,Ce.Z)(Ve,{data:!0,aria:!0}),{className:wt,dropdownProps:dt,href:Ke,separator:nt?"":me,onClick:Pt,prefixCls:ae}),ne(Ve,Ft,Ie,ct,Ke))})}else if($e){const ct=(0,Xe.Z)($e).length;lt=(0,Xe.Z)($e).map((Ie,Ve)=>{if(!Ie)return Ie;const pt=Ve===ct-1;return(0,Oe.Tm)(Ie,{separator:pt?"":me,key:Ve})})}const pe=ge()(ae,_t==null?void 0:_t.className,{[`${ae}-rtl`]:Fe==="rtl"},Ze,Tt,ee,oe),be=Object.assign(Object.assign({},_t==null?void 0:_t.style),ce);return te(E.createElement("nav",Object.assign({className:pe,style:be},Bt),E.createElement("ol",null,lt)))};ue.Item=ot,ue.Separator=et;var Qe=ue,Te=Qe},62673:function(on,Vt,re){"use strict";re.d(Vt,{default:function(){return vt}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(16632),Ce=re(8654),Oe=re(12919),Pe=re(63872),Re=re(48755),Ee=re(2171),he=re(83397),et=re(56553),ft=E.createContext(null),We=re(36170),we=re(74632),Le=function(at,kt){var Be={};for(var Ge in at)Object.prototype.hasOwnProperty.call(at,Ge)&&kt.indexOf(Ge)<0&&(Be[Ge]=at[Ge]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ge=Object.getOwnPropertySymbols(at);_e<Ge.length;_e++)kt.indexOf(Ge[_e])<0&&Object.prototype.propertyIsEnumerable.call(at,Ge[_e])&&(Be[Ge[_e]]=at[Ge[_e]]);return Be};const Ae=(at,kt)=>{var Be;const{prefixCls:Ge,className:_e,rootClassName:ue,children:Qe,indeterminate:Te=!1,style:De,onMouseEnter:ht,onMouseLeave:me,skipGroup:ce=!1,disabled:Ze}=at,Tt=Le(at,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:ve,checkbox:$e}=E.useContext(Re.E_),je=E.useContext(ft),{isFormItemInput:Ft}=E.useContext(et.aM),Bt=E.useContext(Ee.Z),Ht=(Be=(je==null?void 0:je.disabled)||Ze)!==null&&Be!==void 0?Be:Bt,Fe=E.useRef(Tt.value),_t=E.useRef(null),lt=(0,Ce.sQ)(kt,_t);E.useEffect(()=>{je==null||je.registerValue(Tt.value)},[]),E.useEffect(()=>{if(!ce)return Tt.value!==Fe.current&&(je==null||je.cancelValue(Fe.current),je==null||je.registerValue(Tt.value),Fe.current=Tt.value),()=>je==null?void 0:je.cancelValue(Tt.value)},[Tt.value]),E.useEffect(()=>{var Ve;!((Ve=_t.current)===null||Ve===void 0)&&Ve.input&&(_t.current.input.indeterminate=Te)},[Te]);const ae=St("checkbox",Ge),te=(0,he.Z)(ae),[ee,oe,se]=(0,We.ZP)(ae,te),ne=Object.assign({},Tt);je&&!ce&&(ne.onChange=function(){Tt.onChange&&Tt.onChange.apply(Tt,arguments),je.toggleOption&&je.toggleOption({label:Qe,value:Tt.value})},ne.name=je.name,ne.checked=je.value.includes(Tt.value));const pe=ge()(`${ae}-wrapper`,{[`${ae}-rtl`]:ve==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:Ht,[`${ae}-wrapper-in-form-item`]:Ft},$e==null?void 0:$e.className,_e,ue,se,te,oe),be=ge()({[`${ae}-indeterminate`]:Te},Pe.A,oe),[ct,Ie]=(0,we.Z)(ne.onClick);return ee(E.createElement(Oe.Z,{component:"Checkbox",disabled:Ht},E.createElement("label",{className:pe,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),De),onMouseEnter:ht,onMouseLeave:me,onClick:ct},E.createElement(Xe.Z,Object.assign({},ne,{onClick:Ie,prefixCls:ae,className:be,disabled:Ht,ref:lt})),Qe!==void 0&&E.createElement("span",{className:`${ae}-label`},Qe))))};var ot=E.forwardRef(Ae),At=re(94480),bt=re(2738),st=function(at,kt){var Be={};for(var Ge in at)Object.prototype.hasOwnProperty.call(at,Ge)&&kt.indexOf(Ge)<0&&(Be[Ge]=at[Ge]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Ge=Object.getOwnPropertySymbols(at);_e<Ge.length;_e++)kt.indexOf(Ge[_e])<0&&Object.prototype.propertyIsEnumerable.call(at,Ge[_e])&&(Be[Ge[_e]]=at[Ge[_e]]);return Be},qe=E.forwardRef((at,kt)=>{const{defaultValue:Be,children:Ge,options:_e=[],prefixCls:ue,className:Qe,rootClassName:Te,style:De,onChange:ht}=at,me=st(at,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ce,direction:Ze}=E.useContext(Re.E_),[Tt,St]=E.useState(me.value||Be||[]),[ve,$e]=E.useState([]);E.useEffect(()=>{"value"in me&&St(me.value||[])},[me.value]);const je=E.useMemo(()=>_e.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[_e]),Ft=be=>{$e(ct=>ct.filter(Ie=>Ie!==be))},Bt=be=>{$e(ct=>[].concat((0,At.Z)(ct),[be]))},Ht=be=>{const ct=Tt.indexOf(be.value),Ie=(0,At.Z)(Tt);ct===-1?Ie.push(be.value):Ie.splice(ct,1),"value"in me||St(Ie),ht==null||ht(Ie.filter(Ve=>ve.includes(Ve)).sort((Ve,pt)=>{const Dt=je.findIndex(qt=>qt.value===Ve),Ot=je.findIndex(qt=>qt.value===pt);return Dt-Ot}))},Fe=ce("checkbox",ue),_t=`${Fe}-group`,lt=(0,he.Z)(Fe),[ae,te,ee]=(0,We.ZP)(Fe,lt),oe=(0,bt.Z)(me,["value","disabled"]),se=_e.length?je.map(be=>E.createElement(ot,{prefixCls:Fe,key:be.value.toString(),disabled:"disabled"in be?be.disabled:me.disabled,value:be.value,checked:Tt.includes(be.value),onChange:be.onChange,className:`${_t}-item`,style:be.style,title:be.title,id:be.id,required:be.required},be.label)):Ge,ne={toggleOption:Ht,value:Tt,disabled:me.disabled,name:me.name,registerValue:Bt,cancelValue:Ft},pe=ge()(_t,{[`${_t}-rtl`]:Ze==="rtl"},Qe,Te,ee,lt,te);return ae(E.createElement("div",Object.assign({className:pe,style:De},oe,{ref:kt}),E.createElement(ft.Provider,{value:ne},se)))});const Nt=ot;Nt.Group=qe,Nt.__ANT_CHECKBOX=!0;var vt=Nt},36170:function(on,Vt,re){"use strict";re.d(Vt,{C2:function(){return Oe}});var E=re(36237),it=re(63356),ge=re(51636),Xe=re(16931);const Ce=Pe=>{const{checkboxCls:Re}=Pe,Ee=`${Re}-wrapper`;return[{[`${Re}-group`]:Object.assign(Object.assign({},(0,it.Wf)(Pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Pe.marginXS,[`> ${Pe.antCls}-row`]:{flex:1}}),[Ee]:Object.assign(Object.assign({},(0,it.Wf)(Pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ee}`]:{marginInlineStart:0},[`&${Ee}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Re]:Object.assign(Object.assign({},(0,it.Wf)(Pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Pe.borderRadiusSM,alignSelf:"center",[`${Re}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Re}-inner`]:Object.assign({},(0,it.oN)(Pe))},[`${Re}-inner`]:{boxSizing:"border-box",display:"block",width:Pe.checkboxSize,height:Pe.checkboxSize,direction:"ltr",backgroundColor:Pe.colorBgContainer,border:`${(0,E.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Pe.calc(Pe.checkboxSize).div(14).mul(5).equal(),height:Pe.calc(Pe.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(Pe.lineWidthBold)} solid ${Pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Pe.motionDurationFast} ${Pe.motionEaseInBack}, opacity ${Pe.motionDurationFast}`}},"& + span":{paddingInlineStart:Pe.paddingXS,paddingInlineEnd:Pe.paddingXS}})},{[`
${Ee}:not(${Ee}-disabled),
${Re}:not(${Re}-disabled)
`]:{[`&:hover ${Re}-inner`]:{borderColor:Pe.colorPrimary}},[`${Ee}:not(${Ee}-disabled)`]:{[`&:hover ${Re}-checked:not(${Re}-disabled) ${Re}-inner`]:{backgroundColor:Pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Re}-checked:not(${Re}-disabled):after`]:{borderColor:Pe.colorPrimaryHover}}},{[`${Re}-checked`]:{[`${Re}-inner`]:{backgroundColor:Pe.colorPrimary,borderColor:Pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Pe.motionDurationMid} ${Pe.motionEaseOutBack} ${Pe.motionDurationFast}`}}},[`
${Ee}-checked:not(${Ee}-disabled),
${Re}-checked:not(${Re}-disabled)
`]:{[`&:hover ${Re}-inner`]:{backgroundColor:Pe.colorPrimaryHover,borderColor:"transparent"}}},{[Re]:{"&-indeterminate":{[`${Re}-inner`]:{backgroundColor:`${Pe.colorBgContainer} !important`,borderColor:`${Pe.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Pe.calc(Pe.fontSizeLG).div(2).equal(),height:Pe.calc(Pe.fontSizeLG).div(2).equal(),backgroundColor:Pe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Re}-inner`]:{backgroundColor:`${Pe.colorBgContainer} !important`,borderColor:`${Pe.colorPrimary} !important`}}}},{[`${Ee}-disabled`]:{cursor:"not-allowed"},[`${Re}-disabled`]:{[`&, ${Re}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Re}-inner`]:{background:Pe.colorBgContainerDisabled,borderColor:Pe.colorBorder,"&:after":{borderColor:Pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Pe.colorTextDisabled},[`&${Re}-indeterminate ${Re}-inner::after`]:{background:Pe.colorTextDisabled}}}]};function Oe(Pe,Re){const Ee=(0,ge.mergeToken)(Re,{checkboxCls:`.${Pe}`,checkboxSize:Re.controlInteractiveSize});return[Ce(Ee)]}Vt.ZP=(0,Xe.I$)("Checkbox",(Pe,Re)=>{let{prefixCls:Ee}=Re;return[Oe(Ee,Pe)]})},38406:function(on,Vt,re){"use strict";var E=re(59301),it=re(48755),ge=re(584);const Xe=Ce=>{const{componentName:Oe}=Ce,{getPrefixCls:Pe}=(0,E.useContext)(it.E_),Re=Pe("empty");switch(Oe){case"Table":case"List":return E.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${Re}-small`});case"Table.filter":return null;default:return E.createElement(ge.Z,null)}};Vt.Z=Xe},37285:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return We}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(48755),Ce=re(36237),Oe=re(63356),Pe=re(16931),Re=re(51636);const Ee=we=>{const{componentCls:Le,sizePaddingEdgeHorizontal:Ae,colorSplit:Je,lineWidth:ot,textPaddingInline:At,orientationMargin:bt,verticalMarginInline:st}=we;return{[Le]:Object.assign(Object.assign({},(0,Oe.Wf)(we)),{borderBlockStart:`${(0,Ce.unit)(ot)} solid ${Je}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:st,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ce.unit)(ot)} solid ${Je}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ce.unit)(we.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Le}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ce.unit)(we.dividerHorizontalWithTextGutterMargin)} 0`,color:we.colorTextHeading,fontWeight:500,fontSize:we.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Je}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Ce.unit)(ot)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Le}-with-text-start`]:{"&::before":{width:`calc(${bt} * 100%)`},"&::after":{width:`calc(100% - ${bt} * 100%)`}},[`&-horizontal${Le}-with-text-end`]:{"&::before":{width:`calc(100% - ${bt} * 100%)`},"&::after":{width:`calc(${bt} * 100%)`}},[`${Le}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:At},"&-dashed":{background:"none",borderColor:Je,borderStyle:"dashed",borderWidth:`${(0,Ce.unit)(ot)} 0 0`},[`&-horizontal${Le}-with-text${Le}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Le}-dashed`]:{borderInlineStartWidth:ot,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Je,borderStyle:"dotted",borderWidth:`${(0,Ce.unit)(ot)} 0 0`},[`&-horizontal${Le}-with-text${Le}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Le}-dotted`]:{borderInlineStartWidth:ot,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Le}-with-text`]:{color:we.colorText,fontWeight:"normal",fontSize:we.fontSize},[`&-horizontal${Le}-with-text-start${Le}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Le}-inner-text`]:{paddingInlineStart:Ae}},[`&-horizontal${Le}-with-text-end${Le}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Le}-inner-text`]:{paddingInlineEnd:Ae}}})}},he=we=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:we.marginXS});var et=(0,Pe.I$)("Divider",we=>{const Le=(0,Re.mergeToken)(we,{dividerHorizontalWithTextGutterMargin:we.margin,dividerHorizontalGutterMargin:we.marginLG,sizePaddingEdgeHorizontal:0});return[Ee(Le)]},he,{unitless:{orientationMargin:!0}}),Se=function(we,Le){var Ae={};for(var Je in we)Object.prototype.hasOwnProperty.call(we,Je)&&Le.indexOf(Je)<0&&(Ae[Je]=we[Je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Je=Object.getOwnPropertySymbols(we);ot<Je.length;ot++)Le.indexOf(Je[ot])<0&&Object.prototype.propertyIsEnumerable.call(we,Je[ot])&&(Ae[Je[ot]]=we[Je[ot]]);return Ae},We=we=>{const{getPrefixCls:Le,direction:Ae,className:Je,style:ot}=(0,Xe.dj)("divider"),{prefixCls:At,type:bt="horizontal",orientation:st="center",orientationMargin:ut,className:qe,rootClassName:Nt,children:vt,dashed:at,variant:kt="solid",plain:Be,style:Ge}=we,_e=Se(we,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),ue=Le("divider",At),[Qe,Te,De]=et(ue),ht=!!vt,me=E.useMemo(()=>st==="left"?Ae==="rtl"?"end":"start":st==="right"?Ae==="rtl"?"start":"end":st,[Ae,st]),ce=me==="start"&&ut!=null,Ze=me==="end"&&ut!=null,Tt=ge()(ue,Je,Te,De,`${ue}-${bt}`,{[`${ue}-with-text`]:ht,[`${ue}-with-text-${me}`]:ht,[`${ue}-dashed`]:!!at,[`${ue}-${kt}`]:kt!=="solid",[`${ue}-plain`]:!!Be,[`${ue}-rtl`]:Ae==="rtl",[`${ue}-no-default-orientation-margin-start`]:ce,[`${ue}-no-default-orientation-margin-end`]:Ze},qe,Nt),St=E.useMemo(()=>typeof ut=="number"?ut:/^\d+$/.test(ut)?Number(ut):ut,[ut]),ve={marginInlineStart:ce?St:void 0,marginInlineEnd:Ze?St:void 0};return Qe(E.createElement("div",Object.assign({className:Tt,style:Object.assign(Object.assign({},ot),Ge)},_e,{role:"separator"}),vt&&bt!=="vertical"&&E.createElement("span",{className:`${ue}-inner-text`,style:ve},vt)))}},36207:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return ct}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(33885),Ce=re(42978),Oe=re(43403),Pe=re(34280),Re=E.createContext(null),Ee=E.createContext({}),he=Re,et=re(20068),Se=re(54476),ft=re(77900),We=re(10228),we=re(26112),Le=re(75931),Ae=re(8654),Je=["prefixCls","className","containerRef"],ot=function(Ve){var pt=Ve.prefixCls,Dt=Ve.className,Ot=Ve.containerRef,qt=(0,Le.Z)(Ve,Je),Kt=E.useContext(Ee),Ut=Kt.panel,Pt=(0,Ae.x1)(Ut,Ot);return E.createElement("div",(0,Se.Z)({className:ge()("".concat(pt,"-content"),Dt),role:"dialog",ref:Pt},(0,we.Z)(Ve,{aria:!0}),{"aria-modal":"true"},qt))},At=ot,bt=re(48736);function st(Ie){return typeof Ie=="string"&&String(Number(Ie))===Ie?((0,bt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ie)):Ie}function ut(Ie){warning(!("wrapperClassName"in Ie),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ie.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var qe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Nt(Ie,Ve){var pt,Dt,Ot,qt=Ie.prefixCls,Kt=Ie.open,Ut=Ie.placement,Pt=Ie.inline,wt=Ie.push,mt=Ie.forceRender,dt=Ie.autoFocus,en=Ie.keyboard,Gt=Ie.classNames,Ne=Ie.rootClassName,nt=Ie.rootStyle,Ke=Ie.zIndex,It=Ie.className,Me=Ie.id,Ye=Ie.style,gt=Ie.motion,Et=Ie.width,jt=Ie.height,ln=Ie.children,wn=Ie.mask,Sn=Ie.maskClosable,rn=Ie.maskMotion,pn=Ie.maskClassName,dn=Ie.maskStyle,Yt=Ie.afterOpenChange,Rt=Ie.onClose,Lt=Ie.onMouseEnter,Ct=Ie.onMouseOver,Jt=Ie.onMouseLeave,Qt=Ie.onClick,tn=Ie.onKeyDown,un=Ie.onKeyUp,yn=Ie.styles,gn=Ie.drawerRender,On=E.useRef(),En=E.useRef(),Mn=E.useRef();E.useImperativeHandle(Ve,function(){return On.current});var Bn=function(Wt){var zt=Wt.keyCode,vn=Wt.shiftKey;switch(zt){case We.Z.TAB:{if(zt===We.Z.TAB){if(!vn&&document.activeElement===Mn.current){var An;(An=En.current)===null||An===void 0||An.focus({preventScroll:!0})}else if(vn&&document.activeElement===En.current){var Tn;(Tn=Mn.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}}break}case We.Z.ESC:{Rt&&en&&(Wt.stopPropagation(),Rt(Wt));break}}};E.useEffect(function(){if(Kt&&dt){var nn;(nn=On.current)===null||nn===void 0||nn.focus({preventScroll:!0})}},[Kt]);var xt=E.useState(!1),$t=(0,Ce.Z)(xt,2),cn=$t[0],an=$t[1],ze=E.useContext(he),tt;typeof wt=="boolean"?tt=wt?{}:{distance:0}:tt=wt||{};var xe=(pt=(Dt=(Ot=tt)===null||Ot===void 0?void 0:Ot.distance)!==null&&Dt!==void 0?Dt:ze==null?void 0:ze.pushDistance)!==null&&pt!==void 0?pt:180,He=E.useMemo(function(){return{pushDistance:xe,push:function(){an(!0)},pull:function(){an(!1)}}},[xe]);E.useEffect(function(){if(Kt){var nn;ze==null||(nn=ze.push)===null||nn===void 0||nn.call(ze)}else{var Wt;ze==null||(Wt=ze.pull)===null||Wt===void 0||Wt.call(ze)}},[Kt]),E.useEffect(function(){return function(){var nn;ze==null||(nn=ze.pull)===null||nn===void 0||nn.call(ze)}},[]);var ke=wn&&E.createElement(ft.default,(0,Se.Z)({key:"mask"},rn,{visible:Kt}),function(nn,Wt){var zt=nn.className,vn=nn.style;return E.createElement("div",{className:ge()("".concat(qt,"-mask"),zt,Gt==null?void 0:Gt.mask,pn),style:(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},vn),dn),yn==null?void 0:yn.mask),onClick:Sn&&Kt?Rt:void 0,ref:Wt})}),Ue=typeof gt=="function"?gt(Ut):gt,Mt={};if(cn&&xe)switch(Ut){case"top":Mt.transform="translateY(".concat(xe,"px)");break;case"bottom":Mt.transform="translateY(".concat(-xe,"px)");break;case"left":Mt.transform="translateX(".concat(xe,"px)");break;default:Mt.transform="translateX(".concat(-xe,"px)");break}Ut==="left"||Ut==="right"?Mt.width=st(Et):Mt.height=st(jt);var sn={onMouseEnter:Lt,onMouseOver:Ct,onMouseLeave:Jt,onClick:Qt,onKeyDown:tn,onKeyUp:un},hn=E.createElement(ft.default,(0,Se.Z)({key:"panel"},Ue,{visible:Kt,forceRender:mt,onVisibleChanged:function(Wt){Yt==null||Yt(Wt)},removeOnLeave:!1,leavedClassName:"".concat(qt,"-content-wrapper-hidden")}),function(nn,Wt){var zt=nn.className,vn=nn.style,An=E.createElement(At,(0,Se.Z)({id:Me,containerRef:Wt,prefixCls:qt,className:ge()(It,Gt==null?void 0:Gt.content),style:(0,Xe.Z)((0,Xe.Z)({},Ye),yn==null?void 0:yn.content)},(0,we.Z)(Ie,{aria:!0}),sn),ln);return E.createElement("div",(0,Se.Z)({className:ge()("".concat(qt,"-content-wrapper"),Gt==null?void 0:Gt.wrapper,zt),style:(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Mt),vn),yn==null?void 0:yn.wrapper)},(0,we.Z)(Ie,{data:!0})),gn?gn(An):An)}),Cn=(0,Xe.Z)({},nt);return Ke&&(Cn.zIndex=Ke),E.createElement(he.Provider,{value:He},E.createElement("div",{className:ge()(qt,"".concat(qt,"-").concat(Ut),Ne,(0,et.Z)((0,et.Z)({},"".concat(qt,"-open"),Kt),"".concat(qt,"-inline"),Pt)),style:Cn,tabIndex:-1,ref:On,onKeyDown:Bn},ke,E.createElement("div",{tabIndex:0,ref:En,style:qe,"aria-hidden":"true","data-sentinel":"start"}),hn,E.createElement("div",{tabIndex:0,ref:Mn,style:qe,"aria-hidden":"true","data-sentinel":"end"})))}var vt=E.forwardRef(Nt),at=vt,kt=function(Ve){var pt=Ve.open,Dt=pt===void 0?!1:pt,Ot=Ve.prefixCls,qt=Ot===void 0?"rc-drawer":Ot,Kt=Ve.placement,Ut=Kt===void 0?"right":Kt,Pt=Ve.autoFocus,wt=Pt===void 0?!0:Pt,mt=Ve.keyboard,dt=mt===void 0?!0:mt,en=Ve.width,Gt=en===void 0?378:en,Ne=Ve.mask,nt=Ne===void 0?!0:Ne,Ke=Ve.maskClosable,It=Ke===void 0?!0:Ke,Me=Ve.getContainer,Ye=Ve.forceRender,gt=Ve.afterOpenChange,Et=Ve.destroyOnClose,jt=Ve.onMouseEnter,ln=Ve.onMouseOver,wn=Ve.onMouseLeave,Sn=Ve.onClick,rn=Ve.onKeyDown,pn=Ve.onKeyUp,dn=Ve.panelRef,Yt=E.useState(!1),Rt=(0,Ce.Z)(Yt,2),Lt=Rt[0],Ct=Rt[1],Jt=E.useState(!1),Qt=(0,Ce.Z)(Jt,2),tn=Qt[0],un=Qt[1];(0,Pe.Z)(function(){un(!0)},[]);var yn=tn?Dt:!1,gn=E.useRef(),On=E.useRef();(0,Pe.Z)(function(){yn&&(On.current=document.activeElement)},[yn]);var En=function(cn){var an;if(Ct(cn),gt==null||gt(cn),!cn&&On.current&&!((an=gn.current)!==null&&an!==void 0&&an.contains(On.current))){var ze;(ze=On.current)===null||ze===void 0||ze.focus({preventScroll:!0})}},Mn=E.useMemo(function(){return{panel:dn}},[dn]);if(!Ye&&!Lt&&!yn&&Et)return null;var Bn={onMouseEnter:jt,onMouseOver:ln,onMouseLeave:wn,onClick:Sn,onKeyDown:rn,onKeyUp:pn},xt=(0,Xe.Z)((0,Xe.Z)({},Ve),{},{open:yn,prefixCls:qt,placement:Ut,autoFocus:wt,keyboard:dt,width:Gt,mask:nt,maskClosable:It,inline:Me===!1,afterOpenChange:En,ref:gn},Bn);return E.createElement(Ee.Provider,{value:Mn},E.createElement(Oe.Z,{open:yn||Ye||Lt,autoDestroy:!1,getContainer:Me,autoLock:nt&&(yn||Lt)},E.createElement(at,xt)))},Be=kt,Ge=Be,_e=re(62487),ue=re(75030),Qe=re(86641),Te=re(55743),De=re(48755),ht=re(91190),me=re(78776),ce=re(458),Tt=Ie=>{var Ve,pt;const{prefixCls:Dt,title:Ot,footer:qt,extra:Kt,loading:Ut,onClose:Pt,headerStyle:wt,bodyStyle:mt,footerStyle:dt,children:en,classNames:Gt,styles:Ne}=Ie,nt=(0,De.dj)("drawer"),Ke=E.useCallback(Et=>E.createElement("button",{type:"button",onClick:Pt,"aria-label":"Close",className:`${Dt}-close`},Et),[Pt]),[It,Me]=(0,me.Z)((0,me.w)(Ie),(0,me.w)(nt),{closable:!0,closeIconRender:Ke}),Ye=E.useMemo(()=>{var Et,jt;return!Ot&&!It?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Et=nt.styles)===null||Et===void 0?void 0:Et.header),wt),Ne==null?void 0:Ne.header),className:ge()(`${Dt}-header`,{[`${Dt}-header-close-only`]:It&&!Ot&&!Kt},(jt=nt.classNames)===null||jt===void 0?void 0:jt.header,Gt==null?void 0:Gt.header)},E.createElement("div",{className:`${Dt}-header-title`},Me,Ot&&E.createElement("div",{className:`${Dt}-title`},Ot)),Kt&&E.createElement("div",{className:`${Dt}-extra`},Kt))},[It,Me,Kt,wt,Dt,Ot]),gt=E.useMemo(()=>{var Et,jt;if(!qt)return null;const ln=`${Dt}-footer`;return E.createElement("div",{className:ge()(ln,(Et=nt.classNames)===null||Et===void 0?void 0:Et.footer,Gt==null?void 0:Gt.footer),style:Object.assign(Object.assign(Object.assign({},(jt=nt.styles)===null||jt===void 0?void 0:jt.footer),dt),Ne==null?void 0:Ne.footer)},qt)},[qt,dt,Dt]);return E.createElement(E.Fragment,null,Ye,E.createElement("div",{className:ge()(`${Dt}-body`,Gt==null?void 0:Gt.body,(Ve=nt.classNames)===null||Ve===void 0?void 0:Ve.body),style:Object.assign(Object.assign(Object.assign({},(pt=nt.styles)===null||pt===void 0?void 0:pt.body),mt),Ne==null?void 0:Ne.body)},Ut?E.createElement(ce.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Dt}-body-skeleton`}):en),gt)},St=re(36237),ve=re(63356),$e=re(16931),je=re(51636);const Ft=Ie=>{const Ve="100%";return{left:`translateX(-${Ve})`,right:`translateX(${Ve})`,top:`translateY(-${Ve})`,bottom:`translateY(${Ve})`}[Ie]},Bt=(Ie,Ve)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ie),{"&-active":Ve}),"&-leave":Object.assign(Object.assign({},Ve),{"&-active":Ie})}),Ht=(Ie,Ve)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ve}`}}},Bt({opacity:Ie},{opacity:1})),Fe=(Ie,Ve)=>[Ht(.7,Ve),Bt({transform:Ft(Ie)},{transform:"none"})];var lt=Ie=>{const{componentCls:Ve,motionDurationSlow:pt}=Ie;return{[Ve]:{[`${Ve}-mask-motion`]:Ht(0,pt),[`${Ve}-panel-motion`]:["left","right","top","bottom"].reduce((Dt,Ot)=>Object.assign(Object.assign({},Dt),{[`&-${Ot}`]:Fe(Ot,pt)}),{})}}};const ae=Ie=>{const{borderRadiusSM:Ve,componentCls:pt,zIndexPopup:Dt,colorBgMask:Ot,colorBgElevated:qt,motionDurationSlow:Kt,motionDurationMid:Ut,paddingXS:Pt,padding:wt,paddingLG:mt,fontSizeLG:dt,lineHeightLG:en,lineWidth:Gt,lineType:Ne,colorSplit:nt,marginXS:Ke,colorIcon:It,colorIconHover:Me,colorBgTextHover:Ye,colorBgTextActive:gt,colorText:Et,fontWeightStrong:jt,footerPaddingBlock:ln,footerPaddingInline:wn,calc:Sn}=Ie,rn=`${pt}-content-wrapper`;return{[pt]:{position:"fixed",inset:0,zIndex:Dt,pointerEvents:"none",color:Et,"&-pure":{position:"relative",background:qt,display:"flex",flexDirection:"column",[`&${pt}-left`]:{boxShadow:Ie.boxShadowDrawerLeft},[`&${pt}-right`]:{boxShadow:Ie.boxShadowDrawerRight},[`&${pt}-top`]:{boxShadow:Ie.boxShadowDrawerUp},[`&${pt}-bottom`]:{boxShadow:Ie.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${pt}-mask`]:{position:"absolute",inset:0,zIndex:Dt,background:Ot,pointerEvents:"auto"},[rn]:{position:"absolute",zIndex:Dt,maxWidth:"100vw",transition:`all ${Kt}`,"&-hidden":{display:"none"}},[`&-left > ${rn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ie.boxShadowDrawerLeft},[`&-right > ${rn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ie.boxShadowDrawerRight},[`&-top > ${rn}`]:{top:0,insetInline:0,boxShadow:Ie.boxShadowDrawerUp},[`&-bottom > ${rn}`]:{bottom:0,insetInline:0,boxShadow:Ie.boxShadowDrawerDown},[`${pt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:qt,pointerEvents:"auto"},[`${pt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,St.unit)(wt)} ${(0,St.unit)(mt)}`,fontSize:dt,lineHeight:en,borderBottom:`${(0,St.unit)(Gt)} ${Ne} ${nt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${pt}-extra`]:{flex:"none"},[`${pt}-close`]:Object.assign({display:"inline-flex",width:Sn(dt).add(Pt).equal(),height:Sn(dt).add(Pt).equal(),borderRadius:Ve,justifyContent:"center",alignItems:"center",marginInlineEnd:Ke,color:It,fontWeight:jt,fontSize:dt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ut}`,textRendering:"auto","&:hover":{color:Me,backgroundColor:Ye,textDecoration:"none"},"&:active":{backgroundColor:gt}},(0,ve.Qy)(Ie)),[`${pt}-title`]:{flex:1,margin:0,fontWeight:Ie.fontWeightStrong,fontSize:dt,lineHeight:en},[`${pt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:mt,overflow:"auto",[`${pt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${pt}-footer`]:{flexShrink:0,padding:`${(0,St.unit)(ln)} ${(0,St.unit)(wn)}`,borderTop:`${(0,St.unit)(Gt)} ${Ne} ${nt}`},"&-rtl":{direction:"rtl"}}}},te=Ie=>({zIndexPopup:Ie.zIndexPopupBase,footerPaddingBlock:Ie.paddingXS,footerPaddingInline:Ie.padding});var ee=(0,$e.I$)("Drawer",Ie=>{const Ve=(0,je.mergeToken)(Ie,{});return[ae(Ve),lt(Ve)]},te),oe=function(Ie,Ve){var pt={};for(var Dt in Ie)Object.prototype.hasOwnProperty.call(Ie,Dt)&&Ve.indexOf(Dt)<0&&(pt[Dt]=Ie[Dt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Dt=Object.getOwnPropertySymbols(Ie);Ot<Dt.length;Ot++)Ve.indexOf(Dt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Dt[Ot])&&(pt[Dt[Ot]]=Ie[Dt[Ot]]);return pt};const se=null,ne={distance:180},pe=Ie=>{var Ve;const{rootClassName:pt,width:Dt,height:Ot,size:qt="default",mask:Kt=!0,push:Ut=ne,open:Pt,afterOpenChange:wt,onClose:mt,prefixCls:dt,getContainer:en,style:Gt,className:Ne,visible:nt,afterVisibleChange:Ke,maskStyle:It,drawerStyle:Me,contentWrapperStyle:Ye}=Ie,gt=oe(Ie,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Et,getPrefixCls:jt,direction:ln,className:wn,style:Sn,classNames:rn,styles:pn}=(0,De.dj)("drawer"),dn=jt("drawer",dt),[Yt,Rt,Lt]=ee(dn),Ct=en===void 0&&Et?()=>Et(document.body):en,Jt=ge()({"no-mask":!Kt,[`${dn}-rtl`]:ln==="rtl"},pt,Rt,Lt),Qt=E.useMemo(()=>Dt!=null?Dt:qt==="large"?736:378,[Dt,qt]),tn=E.useMemo(()=>Ot!=null?Ot:qt==="large"?736:378,[Ot,qt]),un={motionName:(0,Qe.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},yn=xt=>({motionName:(0,Qe.m)(dn,`panel-motion-${xt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),gn=(0,ht.H)(),[On,En]=(0,ue.Cn)("Drawer",gt.zIndex),{classNames:Mn={},styles:Bn={}}=gt;return Yt(E.createElement(_e.Z,{form:!0,space:!0},E.createElement(Te.Z.Provider,{value:En},E.createElement(Ge,Object.assign({prefixCls:dn,onClose:mt,maskMotion:un,motion:yn},gt,{classNames:{mask:ge()(Mn.mask,rn.mask),content:ge()(Mn.content,rn.content),wrapper:ge()(Mn.wrapper,rn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Bn.mask),It),pn.mask),content:Object.assign(Object.assign(Object.assign({},Bn.content),Me),pn.content),wrapper:Object.assign(Object.assign(Object.assign({},Bn.wrapper),Ye),pn.wrapper)},open:Pt!=null?Pt:nt,mask:Kt,push:Ut,width:Qt,height:tn,style:Object.assign(Object.assign({},Sn),Gt),className:ge()(wn,Ne),rootClassName:Jt,getContainer:Ct,afterOpenChange:wt!=null?wt:Ke,panelRef:gn,zIndex:On}),E.createElement(Tt,Object.assign({prefixCls:dn},gt,{onClose:mt}))))))},be=Ie=>{const{prefixCls:Ve,style:pt,className:Dt,placement:Ot="right"}=Ie,qt=oe(Ie,["prefixCls","style","className","placement"]),{getPrefixCls:Kt}=E.useContext(De.E_),Ut=Kt("drawer",Ve),[Pt,wt,mt]=ee(Ut),dt=ge()(Ut,`${Ut}-pure`,`${Ut}-${Ot}`,wt,mt,Dt);return Pt(E.createElement("div",{className:dt,style:pt},E.createElement(Tt,Object.assign({prefixCls:Ut},qt))))};pe._InternalPanelDoNotUseOrYouWillBeFired=be;var ct=pe},19563:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return St}});var E=re(59301),it=re(33853),ge=re(38819),Xe=re(92310),Ce=re.n(Xe),Oe=re(96478),Pe=re(6089),Re=re(18929),Ee=re(2738),he=re(75030),Se=ve=>typeof ve!="object"&&typeof ve!="function"||ve===null,ft=re(52838),We=re(45915),we=re(22703),Le=re(32383),Ae=re(55743),Je=re(48755),ot=re(83397),At=re(93041),bt=re(78857),st=re(57700),ut=re(36237),qe=re(63356),Nt=re(46e3),vt=re(93873),at=re(34925),kt=re(37645),Be=re(36305),Ge=re(16931),_e=re(51636),Qe=ve=>{const{componentCls:$e,menuCls:je,colorError:Ft,colorTextLightSolid:Bt}=ve,Ht=`${je}-item`;return{[`${$e}, ${$e}-menu-submenu`]:{[`${je} ${Ht}`]:{[`&${Ht}-danger:not(${Ht}-disabled)`]:{color:Ft,"&:hover":{color:Bt,backgroundColor:Ft}}}}}};const Te=ve=>{const{componentCls:$e,menuCls:je,zIndexPopup:Ft,dropdownArrowDistance:Bt,sizePopupArrow:Ht,antCls:Fe,iconCls:_t,motionDurationMid:lt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=ve;return[{[$e]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ft,display:"block","&::before":{position:"absolute",insetBlock:ve.calc(Ht).div(2).sub(Bt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Fe}-btn`]:{[`& > ${_t}-down, & > ${Fe}-btn-icon > ${_t}-down`]:{fontSize:se}},[`${$e}-wrap`]:{position:"relative",[`${Fe}-btn > ${_t}-down`]:{fontSize:se},[`${_t}-down::before`]:{transition:`transform ${lt}`}},[`${$e}-wrap-open`]:{[`${_t}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${$e}-placement-bottomLeft,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${$e}-placement-bottomLeft,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${$e}-placement-bottom,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${$e}-placement-bottom,
&${Fe}-slide-down-enter${Fe}-slide-down-enter-active${$e}-placement-bottomRight,
&${Fe}-slide-down-appear${Fe}-slide-down-appear-active${$e}-placement-bottomRight`]:{animationName:Nt.fJ},[`&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${$e}-placement-topLeft,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${$e}-placement-topLeft,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${$e}-placement-top,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${$e}-placement-top,
&${Fe}-slide-up-enter${Fe}-slide-up-enter-active${$e}-placement-topRight,
&${Fe}-slide-up-appear${Fe}-slide-up-appear-active${$e}-placement-topRight`]:{animationName:Nt.Qt},[`&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${$e}-placement-bottomLeft,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${$e}-placement-bottom,
&${Fe}-slide-down-leave${Fe}-slide-down-leave-active${$e}-placement-bottomRight`]:{animationName:Nt.Uw},[`&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${$e}-placement-topLeft,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${$e}-placement-top,
&${Fe}-slide-up-leave${Fe}-slide-up-leave-active${$e}-placement-topRight`]:{animationName:Nt.ly}}},(0,kt.ZP)(ve,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${$e} ${je}`]:{position:"relative",margin:0},[`${je}-submenu-popup`]:{position:"absolute",zIndex:Ft,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${$e}, ${$e}-menu-submenu`]:Object.assign(Object.assign({},(0,qe.Wf)(ve)),{[je]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:ve.borderRadiusLG,outline:"none",boxShadow:ve.boxShadowSecondary},(0,qe.Qy)(ve)),{"&:empty":{padding:0,boxShadow:"none"},[`${je}-item-group-title`]:{padding:`${(0,ut.unit)(ae)} ${(0,ut.unit)(ne)}`,color:ve.colorTextDescription,transition:`all ${lt}`},[`${je}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${je}-item-icon`]:{minWidth:te,marginInlineEnd:ve.marginXS,fontSize:ve.fontSizeSM},[`${je}-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:'""'}},[`${je}-item-extra`]:{paddingInlineStart:ve.padding,marginInlineStart:"auto",fontSize:ve.fontSizeSM,color:ve.colorTextDescription}},[`${je}-item, ${je}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ut.unit)(ae)} ${(0,ut.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,qe.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,ut.unit)(ve.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ve.colorSplit},[`${$e}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ve.paddingXS,[`${$e}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ve.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${je}-item-group-list`]:{margin:`0 ${(0,ut.unit)(ve.marginXS)}`,padding:0,listStyle:"none"},[`${je}-submenu-title`]:{paddingInlineEnd:ve.calc(ne).add(ve.fontSizeSM).equal()},[`${je}-submenu-vertical`]:{position:"relative"},[`${je}-submenu${je}-submenu-disabled ${$e}-menu-submenu-title`]:{[`&, ${$e}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${je}-submenu-selected ${$e}-menu-submenu-title`]:{color:ve.colorPrimary}})})},[(0,Nt.oN)(ve,"slide-up"),(0,Nt.oN)(ve,"slide-down"),(0,vt.Fm)(ve,"move-up"),(0,vt.Fm)(ve,"move-down"),(0,at._y)(ve,"zoom-big")]]},De=ve=>Object.assign(Object.assign({zIndexPopup:ve.zIndexPopupBase+50,paddingBlock:(ve.controlHeight-ve.fontSize*ve.lineHeight)/2},(0,kt.wZ)({contentRadius:ve.borderRadiusLG,limitVerticalRadius:!0})),(0,Be.w)(ve));var ht=(0,Ge.I$)("Dropdown",ve=>{const{marginXXS:$e,sizePopupArrow:je,paddingXXS:Ft,componentCls:Bt}=ve,Ht=(0,_e.mergeToken)(ve,{menuCls:`${Bt}-menu`,dropdownArrowDistance:ve.calc(je).div(2).add($e).equal(),dropdownEdgeChildPadding:Ft});return[Te(Ht),Qe(Ht)]},De,{resetStyle:!1});const me=null,ce=ve=>{var $e;const{menu:je,arrow:Ft,prefixCls:Bt,children:Ht,trigger:Fe,disabled:_t,dropdownRender:lt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:be,mouseEnterDelay:ct=.15,mouseLeaveDelay:Ie=.1,autoAdjustOverflow:Ve=!0,placement:pt="",overlay:Dt,transitionName:Ot}=ve,{getPopupContainer:qt,getPrefixCls:Kt,direction:Ut,dropdown:Pt}=E.useContext(Je.E_),wt=(0,Le.ln)("Dropdown"),mt=E.useMemo(()=>{const Ct=Kt();return Ot!==void 0?Ot:pt.includes("top")?`${Ct}-slide-down`:`${Ct}-slide-up`},[Kt,pt,Ot]),dt=E.useMemo(()=>pt?pt.includes("Center")?pt.slice(0,pt.indexOf("Center")):pt:Ut==="rtl"?"bottomRight":"bottomLeft",[pt,Ut]),en=Kt("dropdown",Bt),Gt=(0,ot.Z)(en),[Ne,nt,Ke]=ht(en,Gt),[,It]=(0,st.ZP)(),Me=E.Children.only(Se(Ht)?E.createElement("span",null,Ht):Ht),Ye=(0,we.Tm)(Me,{className:Ce()(`${en}-trigger`,{[`${en}-rtl`]:Ut==="rtl"},Me.props.className),disabled:($e=Me.props.disabled)!==null&&$e!==void 0?$e:_t}),gt=_t?[]:Fe,Et=!!(gt!=null&&gt.includes("contextMenu")),[jt,ln]=(0,Re.Z)(!1,{value:se!=null?se:pe}),wn=(0,Pe.Z)(Ct=>{ne==null||ne(Ct,{source:"trigger"}),be==null||be(Ct),ln(Ct)}),Sn=Ce()(te,ee,nt,Ke,Gt,Pt==null?void 0:Pt.className,{[`${en}-rtl`]:Ut==="rtl"}),rn=(0,ft.Z)({arrowPointAtCenter:typeof Ft=="object"&&Ft.pointAtCenter,autoAdjustOverflow:Ve,offset:It.marginXXS,arrowWidth:Ft?It.sizePopupArrow:0,borderRadius:It.borderRadius}),pn=E.useCallback(()=>{je!=null&&je.selectable&&(je!=null&&je.multiple)||(ne==null||ne(!1,{source:"menu"}),ln(!1))},[je==null?void 0:je.selectable,je==null?void 0:je.multiple]),dn=()=>{let Ct;return je!=null&&je.items?Ct=E.createElement(At.default,Object.assign({},je)):typeof Dt=="function"?Ct=Dt():Ct=Dt,lt&&(Ct=lt(Ct)),Ct=E.Children.only(typeof Ct=="string"?E.createElement("span",null,Ct):Ct),E.createElement(bt.J,{prefixCls:`${en}-menu`,rootClassName:Ce()(Ke,Gt),expandIcon:E.createElement("span",{className:`${en}-menu-submenu-arrow`},Ut==="rtl"?E.createElement(it.Z,{className:`${en}-menu-submenu-arrow-icon`}):E.createElement(ge.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:pn,validator:Jt=>{let{mode:Qt}=Jt}},Ct)},[Yt,Rt]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Lt=E.createElement(Oe.Z,Object.assign({alignPoint:Et},(0,Ee.Z)(ve,["rootClassName"]),{mouseEnterDelay:ct,mouseLeaveDelay:Ie,visible:jt,builtinPlacements:rn,arrow:!!Ft,overlayClassName:Sn,prefixCls:en,getPopupContainer:ae||qt,transitionName:mt,trigger:gt,overlay:dn,placement:dt,onVisibleChange:wn,overlayStyle:Object.assign(Object.assign(Object.assign({},Pt==null?void 0:Pt.style),oe),{zIndex:Yt})}),Ye);return Yt&&(Lt=E.createElement(Ae.Z.Provider,{value:Rt},Lt)),Ne(Lt)},Ze=(0,We.Z)(ce,"align",void 0,"dropdown",ve=>ve),Tt=ve=>E.createElement(Ze,Object.assign({},ve),E.createElement("span",null));ce._InternalPanelDoNotUseOrYouWillBeFired=Tt;var St=ce},75727:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return We}});var E=re(19563),it=re(59301),ge=re(18785),Xe=re(92310),Ce=re.n(Xe),Oe=re(7939),Pe=re(48755),Re=re(44104),Ee=re(70045),he=function(we,Le){var Ae={};for(var Je in we)Object.prototype.hasOwnProperty.call(we,Je)&&Le.indexOf(Je)<0&&(Ae[Je]=we[Je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Je=Object.getOwnPropertySymbols(we);ot<Je.length;ot++)Le.indexOf(Je[ot])<0&&Object.prototype.propertyIsEnumerable.call(we,Je[ot])&&(Ae[Je[ot]]=we[Je[ot]]);return Ae};const et=we=>{const{getPopupContainer:Le,getPrefixCls:Ae,direction:Je}=it.useContext(Pe.E_),{prefixCls:ot,type:At="default",danger:bt,disabled:st,loading:ut,onClick:qe,htmlType:Nt,children:vt,className:at,menu:kt,arrow:Be,autoFocus:Ge,overlay:_e,trigger:ue,align:Qe,open:Te,onOpenChange:De,placement:ht,getPopupContainer:me,href:ce,icon:Ze=it.createElement(ge.Z,null),title:Tt,buttonsRender:St=ct=>ct,mouseEnterDelay:ve,mouseLeaveDelay:$e,overlayClassName:je,overlayStyle:Ft,destroyPopupOnHide:Bt,dropdownRender:Ht}=we,Fe=he(we,["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"]),_t=Ae("dropdown",ot),lt=`${_t}-button`,ae={menu:kt,arrow:Be,autoFocus:Ge,align:Qe,disabled:st,trigger:st?[]:ue,onOpenChange:De,getPopupContainer:me||Le,mouseEnterDelay:ve,mouseLeaveDelay:$e,overlayClassName:je,overlayStyle:Ft,destroyPopupOnHide:Bt,dropdownRender:Ht},{compactSize:te,compactItemClassnames:ee}=(0,Ee.ri)(_t,Je),oe=Ce()(lt,ee,at);"overlay"in we&&(ae.overlay=_e),"open"in we&&(ae.open=Te),"placement"in we?ae.placement=ht:ae.placement=Je==="rtl"?"bottomLeft":"bottomRight";const se=it.createElement(Oe.ZP,{type:At,danger:bt,disabled:st,loading:ut,onClick:qe,htmlType:Nt,href:ce,title:Tt},vt),ne=it.createElement(Oe.ZP,{type:At,danger:bt,icon:Ze}),[pe,be]=St([se,ne]);return it.createElement(Re.Z.Compact,Object.assign({className:oe,size:te,block:!0},Fe),pe,it.createElement(E.Z,Object.assign({},ae),be))};et.__ANT_BUTTON=!0;var Se=et;const ft=E.Z;ft.Button=Se;var We=ft},584:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return At}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(9017),Ce=re(17835),Oe=re(57700),Re=()=>{const[,bt]=(0,Oe.ZP)(),[st]=(0,Xe.Z)("Empty"),qe=new Ce.FastColor(bt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:qe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(st==null?void 0:st.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[,bt]=(0,Oe.ZP)(),[st]=(0,Xe.Z)("Empty"),{colorFill:ut,colorFillTertiary:qe,colorFillQuaternary:Nt,colorBgContainer:vt}=bt,{borderColor:at,shadowColor:kt,contentColor:Be}=(0,E.useMemo)(()=>({borderColor:new Ce.FastColor(ut).onBackground(vt).toHexString(),shadowColor:new Ce.FastColor(qe).onBackground(vt).toHexString(),contentColor:new Ce.FastColor(Nt).onBackground(vt).toHexString()}),[ut,qe,Nt,vt]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(st==null?void 0:st.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:kt,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:at},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:Be}))))},et=re(16931),Se=re(51636);const ft=bt=>{const{componentCls:st,margin:ut,marginXS:qe,marginXL:Nt,fontSize:vt,lineHeight:at}=bt;return{[st]:{marginInline:qe,fontSize:vt,lineHeight:at,textAlign:"center",[`${st}-image`]:{height:bt.emptyImgHeight,marginBottom:qe,opacity:bt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${st}-description`]:{color:bt.colorTextDescription},[`${st}-footer`]:{marginTop:ut},"&-normal":{marginBlock:Nt,color:bt.colorTextDescription,[`${st}-description`]:{color:bt.colorTextDescription},[`${st}-image`]:{height:bt.emptyImgHeightMD}},"&-small":{marginBlock:qe,color:bt.colorTextDescription,[`${st}-image`]:{height:bt.emptyImgHeightSM}}}}};var We=(0,et.I$)("Empty",bt=>{const{componentCls:st,controlHeightLG:ut,calc:qe}=bt,Nt=(0,Se.mergeToken)(bt,{emptyImgCls:`${st}-img`,emptyImgHeight:qe(ut).mul(2.5).equal(),emptyImgHeightMD:ut,emptyImgHeightSM:qe(ut).mul(.875).equal()});return[ft(Nt)]}),we=re(48755),Le=function(bt,st){var ut={};for(var qe in bt)Object.prototype.hasOwnProperty.call(bt,qe)&&st.indexOf(qe)<0&&(ut[qe]=bt[qe]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,qe=Object.getOwnPropertySymbols(bt);Nt<qe.length;Nt++)st.indexOf(qe[Nt])<0&&Object.prototype.propertyIsEnumerable.call(bt,qe[Nt])&&(ut[qe[Nt]]=bt[qe[Nt]]);return ut};const Ae=E.createElement(Re,null),Je=E.createElement(he,null),ot=bt=>{const{className:st,rootClassName:ut,prefixCls:qe,image:Nt=Ae,description:vt,children:at,imageStyle:kt,style:Be,classNames:Ge,styles:_e}=bt,ue=Le(bt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Qe,direction:Te,className:De,style:ht,classNames:me,styles:ce}=(0,we.dj)("empty"),Ze=Qe("empty",qe),[Tt,St,ve]=We(Ze),[$e]=(0,Xe.Z)("Empty"),je=typeof vt!="undefined"?vt:$e==null?void 0:$e.description,Ft=typeof je=="string"?je:"empty";let Bt=null;return typeof Nt=="string"?Bt=E.createElement("img",{alt:Ft,src:Nt}):Bt=Nt,Tt(E.createElement("div",Object.assign({className:ge()(St,ve,Ze,De,{[`${Ze}-normal`]:Nt===Je,[`${Ze}-rtl`]:Te==="rtl"},st,ut,me.root,Ge==null?void 0:Ge.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ce.root),ht),_e==null?void 0:_e.root),Be)},ue),E.createElement("div",{className:ge()(`${Ze}-image`,me.image,Ge==null?void 0:Ge.image),style:Object.assign(Object.assign(Object.assign({},kt),ce.image),_e==null?void 0:_e.image)},Bt),je&&E.createElement("div",{className:ge()(`${Ze}-description`,me.description,Ge==null?void 0:Ge.description),style:Object.assign(Object.assign({},ce.description),_e==null?void 0:_e.description)},je),at&&E.createElement("div",{className:ge()(`${Ze}-footer`,me.footer,Ge==null?void 0:Ge.footer),style:Object.assign(Object.assign({},ce.footer),_e==null?void 0:_e.footer)},at)))};ot.PRESENTED_IMAGE_DEFAULT=Ae,ot.PRESENTED_IMAGE_SIMPLE=Je;var At=ot},28284:function(on,Vt,re){"use strict";re.d(Vt,{default:function(){return tt}});var E=re(56553),it=re(94480),ge=re(59301),Xe=re(92310),Ce=re.n(Xe),Oe=re(77900),Pe=re(86641),Re=re(83397);function Ee(xe){const[He,ke]=ge.useState(xe);return ge.useEffect(()=>{const Ue=setTimeout(()=>{ke(xe)},xe.length?0:10);return()=>{clearTimeout(Ue)}},[xe]),He}var he=re(36237),et=re(63356),Se=re(34925),ft=re(34961),We=re(51636),we=re(16931),Ae=xe=>{const{componentCls:He}=xe,ke=`${He}-show-help`,Ue=`${He}-show-help-item`;return{[ke]:{transition:`opacity ${xe.motionDurationFast} ${xe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ue]:{overflow:"hidden",transition:`height ${xe.motionDurationFast} ${xe.motionEaseInOut},
opacity ${xe.motionDurationFast} ${xe.motionEaseInOut},
transform ${xe.motionDurationFast} ${xe.motionEaseInOut} !important`,[`&${Ue}-appear, &${Ue}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ue}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Je=xe=>({legend:{display:"block",width:"100%",marginBottom:xe.marginLG,padding:0,color:xe.colorTextDescription,fontSize:xe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(xe.lineWidth)} ${xe.lineType} ${xe.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)(xe.controlOutlineWidth)} ${xe.controlOutline}`},output:{display:"block",paddingTop:15,color:xe.colorText,fontSize:xe.fontSize,lineHeight:xe.lineHeight}}),ot=(xe,He)=>{const{formItemCls:ke}=xe;return{[ke]:{[`${ke}-label > label`]:{height:He},[`${ke}-control-input`]:{minHeight:He}}}},At=xe=>{const{componentCls:He}=xe;return{[xe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,et.Wf)(xe)),Je(xe)),{[`${He}-text`]:{display:"inline-block",paddingInlineEnd:xe.paddingSM},"&-small":Object.assign({},ot(xe,xe.controlHeightSM)),"&-large":Object.assign({},ot(xe,xe.controlHeightLG))})}},bt=xe=>{const{formItemCls:He,iconCls:ke,rootPrefixCls:Ue,antCls:Mt,labelRequiredMarkColor:sn,labelColor:hn,labelFontSize:Cn,labelHeight:nn,labelColonMarginInlineStart:Wt,labelColonMarginInlineEnd:zt,itemMarginBottom:vn}=xe;return{[He]:Object.assign(Object.assign({},(0,et.Wf)(xe)),{marginBottom:vn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Mt}-row`]:{display:"none"},"&-has-warning":{[`${He}-split`]:{color:xe.colorError}},"&-has-error":{[`${He}-split`]:{color:xe.colorWarning}},[`${He}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:xe.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:nn,color:hn,fontSize:Cn,[`> ${ke}`]:{fontSize:xe.fontSize,verticalAlign:"top"},[`&${He}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:xe.marginXXS,color:sn,fontSize:xe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${He}-required-mark-hidden, &${He}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${He}-optional`]:{display:"inline-block",marginInlineStart:xe.marginXXS,color:xe.colorTextDescription,[`&${He}-required-mark-hidden`]:{display:"none"}},[`${He}-tooltip`]:{color:xe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:xe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Wt,marginInlineEnd:zt},[`&${He}-no-colon::after`]:{content:'"\\a0"'}}},[`${He}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ue}-col-'"]):not([class*="' ${Ue}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:xe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[He]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:xe.colorTextDescription,fontSize:xe.fontSize,lineHeight:xe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:xe.controlHeightSM,transition:`color ${xe.motionDurationMid} ${xe.motionEaseOut}`},"&-explain":{"&-error":{color:xe.colorError},"&-warning":{color:xe.colorWarning}}},[`&-with-help ${He}-explain`]:{height:"auto",opacity:1},[`${He}-feedback-icon`]:{fontSize:xe.fontSize,textAlign:"center",visibility:"visible",animationName:Se.kr,animationDuration:xe.motionDurationMid,animationTimingFunction:xe.motionEaseOutBack,pointerEvents:"none","&-success":{color:xe.colorSuccess},"&-error":{color:xe.colorError},"&-warning":{color:xe.colorWarning},"&-validating":{color:xe.colorPrimary}}})}},st=(xe,He)=>{const{formItemCls:ke}=xe;return{[`${He}-horizontal`]:{[`${ke}-label`]:{flexGrow:0},[`${ke}-control`]:{flex:"1 1 0",minWidth:0},[`${ke}-label[class$='-24'], ${ke}-label[class*='-24 ']`]:{[`& + ${ke}-control`]:{minWidth:"unset"}}}}},ut=xe=>{const{componentCls:He,formItemCls:ke,inlineItemMarginBottom:Ue}=xe;return{[`${He}-inline`]:{display:"flex",flexWrap:"wrap",[ke]:{flex:"none",marginInlineEnd:xe.margin,marginBottom:Ue,"&-row":{flexWrap:"nowrap"},[`> ${ke}-label,
> ${ke}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ke}-label`]:{flex:"none"},[`${He}-text`]:{display:"inline-block"},[`${ke}-has-feedback`]:{display:"inline-block"}}}}},qe=xe=>({padding:xe.verticalLabelPadding,margin:xe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Nt=xe=>{const{componentCls:He,formItemCls:ke,rootPrefixCls:Ue}=xe;return{[`${ke} ${ke}-label`]:qe(xe),[`${He}:not(${He}-inline)`]:{[ke]:{flexWrap:"wrap",[`${ke}-label, ${ke}-control`]:{[`&:not([class*=" ${Ue}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},vt=xe=>{const{componentCls:He,formItemCls:ke,antCls:Ue}=xe;return{[`${He}-vertical`]:{[`${ke}:not(${ke}-horizontal)`]:{[`${ke}-row`]:{flexDirection:"column"},[`${ke}-label > label`]:{height:"auto"},[`${ke}-control`]:{width:"100%"},[`${ke}-label,
${Ue}-col-24${ke}-label,
${Ue}-col-xl-24${ke}-label`]:qe(xe)}},[`@media (max-width: ${(0,he.unit)(xe.screenXSMax)})`]:[Nt(xe),{[He]:{[`${ke}:not(${ke}-horizontal)`]:{[`${Ue}-col-xs-24${ke}-label`]:qe(xe)}}}],[`@media (max-width: ${(0,he.unit)(xe.screenSMMax)})`]:{[He]:{[`${ke}:not(${ke}-horizontal)`]:{[`${Ue}-col-sm-24${ke}-label`]:qe(xe)}}},[`@media (max-width: ${(0,he.unit)(xe.screenMDMax)})`]:{[He]:{[`${ke}:not(${ke}-horizontal)`]:{[`${Ue}-col-md-24${ke}-label`]:qe(xe)}}},[`@media (max-width: ${(0,he.unit)(xe.screenLGMax)})`]:{[He]:{[`${ke}:not(${ke}-horizontal)`]:{[`${Ue}-col-lg-24${ke}-label`]:qe(xe)}}}}},at=xe=>{const{formItemCls:He,antCls:ke}=xe;return{[`${He}-vertical`]:{[`${He}-row`]:{flexDirection:"column"},[`${He}-label > label`]:{height:"auto"},[`${He}-control`]:{width:"100%"}},[`${He}-vertical ${He}-label,
${ke}-col-24${He}-label,
${ke}-col-xl-24${He}-label`]:qe(xe),[`@media (max-width: ${(0,he.unit)(xe.screenXSMax)})`]:[Nt(xe),{[He]:{[`${ke}-col-xs-24${He}-label`]:qe(xe)}}],[`@media (max-width: ${(0,he.unit)(xe.screenSMMax)})`]:{[He]:{[`${ke}-col-sm-24${He}-label`]:qe(xe)}},[`@media (max-width: ${(0,he.unit)(xe.screenMDMax)})`]:{[He]:{[`${ke}-col-md-24${He}-label`]:qe(xe)}},[`@media (max-width: ${(0,he.unit)(xe.screenLGMax)})`]:{[He]:{[`${ke}-col-lg-24${He}-label`]:qe(xe)}}}},kt=xe=>({labelRequiredMarkColor:xe.colorError,labelColor:xe.colorTextHeading,labelFontSize:xe.fontSize,labelHeight:xe.controlHeight,labelColonMarginInlineStart:xe.marginXXS/2,labelColonMarginInlineEnd:xe.marginXS,itemMarginBottom:xe.marginLG,verticalLabelPadding:`0 0 ${xe.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Be=(xe,He)=>(0,We.mergeToken)(xe,{formItemCls:`${xe.componentCls}-item`,rootPrefixCls:He});var Ge=(0,we.I$)("Form",(xe,He)=>{let{rootPrefixCls:ke}=He;const Ue=Be(xe,ke);return[At(Ue),bt(Ue),Ae(Ue),st(Ue,Ue.componentCls),st(Ue,Ue.formItemCls),ut(Ue),vt(Ue),at(Ue),(0,ft.Z)(Ue),Se.kr]},kt,{order:-1e3});const _e=[];function ue(xe,He,ke){let Ue=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof xe=="string"?xe:`${He}-${Ue}`,error:xe,errorStatus:ke}}var Te=xe=>{let{help:He,helpStatus:ke,errors:Ue=_e,warnings:Mt=_e,className:sn,fieldId:hn,onVisibleChanged:Cn}=xe;const{prefixCls:nn}=ge.useContext(E.Rk),Wt=`${nn}-item-explain`,zt=(0,Re.Z)(nn),[vn,An,Tn]=Ge(nn,zt),Ln=ge.useMemo(()=>(0,Pe.Z)(nn),[nn]),Xn=Ee(Ue),Qn=Ee(Mt),Jn=ge.useMemo(()=>He!=null?[ue(He,"help",ke)]:[].concat((0,it.Z)(Xn.map((jn,Un)=>ue(jn,"error","error",Un))),(0,it.Z)(Qn.map((jn,Un)=>ue(jn,"warning","warning",Un)))),[He,ke,Xn,Qn]),Zn=ge.useMemo(()=>{const jn={};return Jn.forEach(Un=>{let{key:ur}=Un;jn[ur]=(jn[ur]||0)+1}),Jn.map((Un,ur)=>Object.assign(Object.assign({},Un),{key:jn[Un.key]>1?`${Un.key}-fallback-${ur}`:Un.key}))},[Jn]),_n={};return hn&&(_n.id=`${hn}_help`),vn(ge.createElement(Oe.default,{motionDeadline:Ln.motionDeadline,motionName:`${nn}-show-help`,visible:!!Zn.length,onVisibleChanged:Cn},jn=>{const{className:Un,style:ur}=jn;return ge.createElement("div",Object.assign({},_n,{className:Ce()(Wt,Un,Tn,zt,sn,An),style:ur}),ge.createElement(Oe.CSSMotionList,Object.assign({keys:Zn},(0,Pe.Z)(nn),{motionName:`${nn}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:gr}=qn;return ge.createElement("div",{key:lr,className:Ce()(tr,{[`${Wt}-${er}`]:er}),style:gr},ir)}))}))},De=re(22001),ht=re(48755),me=re(2171),ce=re(31756),Ze=re(23069),Tt=re(76846),St=re(16722);const ve=["parentNode"],$e="form_item";function je(xe){return xe===void 0||xe===!1?[]:Array.isArray(xe)?xe:[xe]}function Ft(xe,He){if(!xe.length)return;const ke=xe.join("_");return He?`${He}_${ke}`:ve.includes(ke)?`${$e}_${ke}`:ke}function Bt(xe,He,ke,Ue,Mt,sn){let hn=Ue;return sn!==void 0?hn=sn:ke.validating?hn="validating":xe.length?hn="error":He.length?hn="warning":(ke.touched||Mt&&ke.validated)&&(hn="success"),hn}var Ht=function(xe,He){var ke={};for(var Ue in xe)Object.prototype.hasOwnProperty.call(xe,Ue)&&He.indexOf(Ue)<0&&(ke[Ue]=xe[Ue]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(xe);Mt<Ue.length;Mt++)He.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ue[Mt])&&(ke[Ue[Mt]]=xe[Ue[Mt]]);return ke};function Fe(xe){return je(xe).join("_")}function _t(xe,He){const ke=He.getFieldInstance(xe),Ue=(0,Tt.bn)(ke);if(Ue)return Ue;const Mt=Ft(je(xe),He.__INTERNAL__.name);if(Mt)return document.getElementById(Mt)}function lt(xe){const[He]=(0,De.useForm)(),ke=ge.useRef({}),Ue=ge.useMemo(()=>xe!=null?xe:Object.assign(Object.assign({},He),{__INTERNAL__:{itemRef:Mt=>sn=>{const hn=Fe(Mt);sn?ke.current[hn]=sn:delete ke.current[hn]}},scrollToField:function(Mt){let sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:hn}=sn,Cn=Ht(sn,["focus"]),nn=_t(Mt,Ue);nn&&((0,St.Z)(nn,Object.assign({scrollMode:"if-needed",block:"nearest"},Cn)),hn&&Ue.focusField(Mt))},focusField:Mt=>{var sn,hn;const Cn=Ue.getFieldInstance(Mt);typeof(Cn==null?void 0:Cn.focus)=="function"?Cn.focus():(hn=(sn=_t(Mt,Ue))===null||sn===void 0?void 0:sn.focus)===null||hn===void 0||hn.call(sn)},getFieldInstance:Mt=>{const sn=Fe(Mt);return ke.current[sn]}}),[xe,He]);return[Ue]}var ae=re(98350),te=function(xe,He){var ke={};for(var Ue in xe)Object.prototype.hasOwnProperty.call(xe,Ue)&&He.indexOf(Ue)<0&&(ke[Ue]=xe[Ue]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(xe);Mt<Ue.length;Mt++)He.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ue[Mt])&&(ke[Ue[Mt]]=xe[Ue[Mt]]);return ke};const ee=(xe,He)=>{const ke=ge.useContext(me.Z),{getPrefixCls:Ue,direction:Mt,requiredMark:sn,colon:hn,scrollToFirstError:Cn,className:nn,style:Wt}=(0,ht.dj)("form"),{prefixCls:zt,className:vn,rootClassName:An,size:Tn,disabled:Ln=ke,form:Xn,colon:Qn,labelAlign:Jn,labelWrap:Zn,labelCol:_n,wrapperCol:jn,hideRequiredMark:Un,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:gr,variant:mr}=xe,cr=te(xe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),vr=(0,ce.Z)(Tn),Cr=ge.useContext(ae.Z),or=ge.useMemo(()=>lr!==void 0?lr:Un?!1:sn!==void 0?sn:!0,[Un,lr,sn]),dr=Qn!=null?Qn:hn,Gn=Ue("form",zt),Sr=(0,Re.Z)(Gn),[Rr,Hr,Er]=Ge(Gn,Sr),Ar=Ce()(Gn,`${Gn}-${ur}`,{[`${Gn}-hide-required-mark`]:or===!1,[`${Gn}-rtl`]:Mt==="rtl",[`${Gn}-${vr}`]:vr},Er,Sr,Hr,nn,vn,An),[Ir]=lt(Xn),{__INTERNAL__:Mr}=Ir;Mr.name=er;const _r=ge.useMemo(()=>({name:er,labelAlign:Jn,labelCol:_n,labelWrap:Zn,wrapperCol:jn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Mr.itemRef,form:Ir,feedbackIcons:gr}),[er,Jn,_n,jn,ur,dr,or,Ir,gr]),fr=ge.useRef(null);ge.useImperativeHandle(He,()=>{var kn;return Object.assign(Object.assign({},Ir),{nativeElement:(kn=fr.current)===null||kn===void 0?void 0:kn.nativeElement})});const Yn=(kn,Pn)=>{if(kn){let fn={block:"nearest"};typeof kn=="object"&&(fn=Object.assign(Object.assign({},fn),kn)),Ir.scrollToField(Pn,fn)}},bn=kn=>{if(ir==null||ir(kn),kn.errorFields.length){const Pn=kn.errorFields[0].name;if(qn!==void 0){Yn(qn,Pn);return}Cn!==void 0&&Yn(Cn,Pn)}};return Rr(ge.createElement(E.pg.Provider,{value:mr},ge.createElement(me.n,{disabled:Ln},ge.createElement(Ze.Z.Provider,{value:vr},ge.createElement(E.RV,{validateMessages:Cr},ge.createElement(E.q3.Provider,{value:_r},ge.createElement(De.default,Object.assign({id:er},cr,{name:er,onFinishFailed:bn,form:Ir,ref:fr,style:Object.assign(Object.assign({},Wt),tr),className:Ar}))))))))};var se=ge.forwardRef(ee),ne=re(41799),pe=re(8654),be=re(22703),ct=re(32383),Ie=re(11592);function Ve(xe){if(typeof xe=="function")return xe;const He=(0,Ie.Z)(xe);return He.length<=1?He[0]:He}const pt=()=>{const{status:xe,errors:He=[],warnings:ke=[]}=ge.useContext(E.aM);return{status:xe,errors:He,warnings:ke}};pt.Context=E.aM;var Dt=pt,Ot=re(16089);function qt(xe){const[He,ke]=ge.useState(xe),Ue=ge.useRef(null),Mt=ge.useRef([]),sn=ge.useRef(!1);ge.useEffect(()=>(sn.current=!1,()=>{sn.current=!0,Ot.Z.cancel(Ue.current),Ue.current=null}),[]);function hn(Cn){sn.current||(Ue.current===null&&(Mt.current=[],Ue.current=(0,Ot.Z)(()=>{Ue.current=null,ke(nn=>{let Wt=nn;return Mt.current.forEach(zt=>{Wt=zt(Wt)}),Wt})})),Mt.current.push(Cn))}return[He,hn]}function Kt(){const{itemRef:xe}=ge.useContext(E.q3),He=ge.useRef({});function ke(Ue,Mt){const sn=Mt&&typeof Mt=="object"&&(0,pe.C4)(Mt),hn=Ue.join("_");return(He.current.name!==hn||He.current.originRef!==sn)&&(He.current.name=hn,He.current.originRef=sn,He.current.ref=(0,pe.sQ)(xe(Ue),sn)),He.current.ref}return ke}var Ut=re(29194),Pt=re(34280),wt=re(2738),mt=re(65970),dt=re(70425),en=re(5472);const Gt=xe=>{const{formItemCls:He}=xe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${He}-control`]:{display:"flex"}}}};var Ne=(0,we.bk)(["Form","item-item"],(xe,He)=>{let{rootPrefixCls:ke}=He;const Ue=Be(xe,ke);return[Gt(Ue)]}),nt=function(xe,He){var ke={};for(var Ue in xe)Object.prototype.hasOwnProperty.call(xe,Ue)&&He.indexOf(Ue)<0&&(ke[Ue]=xe[Ue]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(xe);Mt<Ue.length;Mt++)He.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ue[Mt])&&(ke[Ue[Mt]]=xe[Ue[Mt]]);return ke};const Ke=24;var Me=xe=>{const{prefixCls:He,status:ke,labelCol:Ue,wrapperCol:Mt,children:sn,errors:hn,warnings:Cn,_internalItemRender:nn,extra:Wt,help:zt,fieldId:vn,marginBottom:An,onErrorVisibleChanged:Tn,label:Ln}=xe,Xn=`${He}-item`,Qn=ge.useContext(E.q3),Jn=ge.useMemo(()=>{let cr=Object.assign({},Mt||Qn.wrapperCol||{});return Ln===null&&!Ue&&!Mt&&Qn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,dt.U2)(Qn.labelCol,or),Gn=typeof dr=="object"?dr:{},Sr=(0,dt.U2)(cr,or),Rr=typeof Sr=="object"?Sr:{};"span"in Gn&&!("offset"in Rr)&&Gn.span<Ke&&(cr=(0,dt.t8)(cr,[].concat(or,["offset"]),Gn.span))}),cr},[Mt,Qn]),Zn=Ce()(`${Xn}-control`,Jn.className),_n=ge.useMemo(()=>{const{labelCol:cr,wrapperCol:vr}=Qn;return nt(Qn,["labelCol","wrapperCol"])},[Qn]),jn=ge.useRef(null),[Un,ur]=ge.useState(0);(0,Pt.Z)(()=>{Wt&&jn.current?ur(jn.current.clientHeight):ur(0)},[Wt]);const qn=ge.createElement("div",{className:`${Xn}-control-input`},ge.createElement("div",{className:`${Xn}-control-input-content`},sn)),lr=ge.useMemo(()=>({prefixCls:He,status:ke}),[He,ke]),ir=An!==null||hn.length||Cn.length?ge.createElement(E.Rk.Provider,{value:lr},ge.createElement(Te,{fieldId:vn,errors:hn,warnings:Cn,help:zt,helpStatus:ke,className:`${Xn}-explain-connected`,onVisibleChanged:Tn})):null,er={};vn&&(er.id=`${vn}_extra`);const tr=Wt?ge.createElement("div",Object.assign({},er,{className:`${Xn}-extra`,ref:jn}),Wt):null,gr=ir||tr?ge.createElement("div",{className:`${Xn}-additional`,style:An?{minHeight:An+Un}:{}},ir,tr):null,mr=nn&&nn.mark==="pro_table_render"&&nn.render?nn.render(xe,{input:qn,errorList:ir,extra:tr}):ge.createElement(ge.Fragment,null,qn,gr);return ge.createElement(E.q3.Provider,{value:_n},ge.createElement(en.Z,Object.assign({},Jn,{className:Zn}),mr),ge.createElement(Ne,{prefixCls:He}))},Ye=re(61485),gt=re(9017),Et=re(85981),jt=re(25399),ln=function(xe,He){var ke={};for(var Ue in xe)Object.prototype.hasOwnProperty.call(xe,Ue)&&He.indexOf(Ue)<0&&(ke[Ue]=xe[Ue]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(xe);Mt<Ue.length;Mt++)He.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ue[Mt])&&(ke[Ue[Mt]]=xe[Ue[Mt]]);return ke};function wn(xe){return xe?typeof xe=="object"&&!ge.isValidElement(xe)?xe:{title:xe}:null}var rn=xe=>{let{prefixCls:He,label:ke,htmlFor:Ue,labelCol:Mt,labelAlign:sn,colon:hn,required:Cn,requiredMark:nn,tooltip:Wt,vertical:zt}=xe;var vn;const[An]=(0,gt.Z)("Form"),{labelAlign:Tn,labelCol:Ln,labelWrap:Xn,colon:Qn}=ge.useContext(E.q3);if(!ke)return null;const Jn=Mt||Ln||{},Zn=sn||Tn,_n=`${He}-item-label`,jn=Ce()(_n,Zn==="left"&&`${_n}-left`,Jn.className,{[`${_n}-wrap`]:!!Xn});let Un=ke;const ur=hn===!0||Qn!==!1&&hn!==!1;ur&&!zt&&typeof ke=="string"&&ke.trim()&&(Un=ke.replace(/[:|]\s*$/,""));const lr=wn(Wt);if(lr){const{icon:cr=ge.createElement(Ye.Z,null)}=lr,vr=ln(lr,["icon"]),Cr=ge.createElement(jt.Z,Object.assign({},vr),ge.cloneElement(cr,{className:`${He}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Un=ge.createElement(ge.Fragment,null,Un,Cr)}const ir=nn==="optional",er=typeof nn=="function",tr=nn===!1;er?Un=nn(Un,{required:!!Cn}):ir&&!Cn&&(Un=ge.createElement(ge.Fragment,null,Un,ge.createElement("span",{className:`${He}-item-optional`,title:""},(An==null?void 0:An.optional)||((vn=Et.Z.Form)===null||vn===void 0?void 0:vn.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=Ce()({[`${He}-item-required`]:Cn,[`${He}-item-required-mark-${gr}`]:gr,[`${He}-item-no-colon`]:!ur});return ge.createElement(en.Z,Object.assign({},Jn,{className:jn}),ge.createElement("label",{htmlFor:Ue,className:mr,title:typeof ke=="string"?ke:""},Un))},pn=re(29679),dn=re(19248),Yt=re(96512),Rt=re(58617);const Lt={success:pn.Z,warning:Yt.Z,error:dn.Z,validating:Rt.Z};function Ct(xe){let{children:He,errors:ke,warnings:Ue,hasFeedback:Mt,validateStatus:sn,prefixCls:hn,meta:Cn,noStyle:nn}=xe;const Wt=`${hn}-item`,{feedbackIcons:zt}=ge.useContext(E.q3),vn=Bt(ke,Ue,Cn,null,!!Mt,sn),{isFormItemInput:An,status:Tn,hasFeedback:Ln,feedbackIcon:Xn}=ge.useContext(E.aM),Qn=ge.useMemo(()=>{var Jn;let Zn;if(Mt){const jn=Mt!==!0&&Mt.icons||zt,Un=vn&&((Jn=jn==null?void 0:jn({status:vn,errors:ke,warnings:Ue}))===null||Jn===void 0?void 0:Jn[vn]),ur=vn&&Lt[vn];Zn=Un!==!1&&ur?ge.createElement("span",{className:Ce()(`${Wt}-feedback-icon`,`${Wt}-feedback-icon-${vn}`)},Un||ge.createElement(ur,null)):null}const _n={status:vn||"",errors:ke,warnings:Ue,hasFeedback:!!Mt,feedbackIcon:Zn,isFormItemInput:!0};return nn&&(_n.status=(vn!=null?vn:Tn)||"",_n.isFormItemInput=An,_n.hasFeedback=!!(Mt!=null?Mt:Ln),_n.feedbackIcon=Mt!==void 0?_n.feedbackIcon:Xn),_n},[vn,Mt,nn,An,Tn]);return ge.createElement(E.aM.Provider,{value:Qn},He)}var Jt=function(xe,He){var ke={};for(var Ue in xe)Object.prototype.hasOwnProperty.call(xe,Ue)&&He.indexOf(Ue)<0&&(ke[Ue]=xe[Ue]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(xe);Mt<Ue.length;Mt++)He.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ue[Mt])&&(ke[Ue[Mt]]=xe[Ue[Mt]]);return ke};function Qt(xe){const{prefixCls:He,className:ke,rootClassName:Ue,style:Mt,help:sn,errors:hn,warnings:Cn,validateStatus:nn,meta:Wt,hasFeedback:zt,hidden:vn,children:An,fieldId:Tn,required:Ln,isRequired:Xn,onSubItemMetaChange:Qn,layout:Jn}=xe,Zn=Jt(xe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),_n=`${He}-item`,{requiredMark:jn,vertical:Un}=ge.useContext(E.q3),ur=Un||Jn==="vertical",qn=ge.useRef(null),lr=Ee(hn),ir=Ee(Cn),er=sn!=null,tr=!!(er||hn.length||Cn.length),gr=!!qn.current&&(0,Ut.Z)(qn.current),[mr,cr]=ge.useState(null);(0,Pt.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:Wt.errors,Rr=Gn?ir:Wt.warnings;return Bt(Sr,Rr,Wt,"",!!zt,nn)}(),dr=Ce()(_n,ke,Ue,{[`${_n}-with-help`]:er||lr.length||ir.length,[`${_n}-has-feedback`]:or&&zt,[`${_n}-has-success`]:or==="success",[`${_n}-has-warning`]:or==="warning",[`${_n}-has-error`]:or==="error",[`${_n}-is-validating`]:or==="validating",[`${_n}-hidden`]:vn,[`${_n}-${Jn}`]:Jn});return ge.createElement("div",{className:dr,style:Mt,ref:qn},ge.createElement(mt.Z,Object.assign({className:`${_n}-row`},(0,wt.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"])),ge.createElement(rn,Object.assign({htmlFor:Tn},xe,{requiredMark:jn,required:Ln!=null?Ln:Xn,prefixCls:He,vertical:ur})),ge.createElement(Me,Object.assign({},xe,Wt,{errors:lr,warnings:ir,prefixCls:He,status:or,help:sn,marginBottom:mr,onErrorVisibleChanged:vr}),ge.createElement(E.qI.Provider,{value:Qn},ge.createElement(Ct,{prefixCls:He,meta:Wt,errors:Wt.errors,warnings:Wt.warnings,hasFeedback:zt,validateStatus:or},An)))),!!mr&&ge.createElement("div",{className:`${_n}-margin-offset`,style:{marginBottom:-mr}}))}const tn="__SPLIT__",un=null;function yn(xe,He){const ke=Object.keys(xe),Ue=Object.keys(He);return ke.length===Ue.length&&ke.every(Mt=>{const sn=xe[Mt],hn=He[Mt];return sn===hn||typeof sn=="function"||typeof hn=="function"})}const gn=ge.memo(xe=>{let{children:He}=xe;return He},(xe,He)=>yn(xe.control,He.control)&&xe.update===He.update&&xe.childProps.length===He.childProps.length&&xe.childProps.every((ke,Ue)=>ke===He.childProps[Ue]));function On(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function En(xe){const{name:He,noStyle:ke,className:Ue,dependencies:Mt,prefixCls:sn,shouldUpdate:hn,rules:Cn,children:nn,required:Wt,label:zt,messageVariables:vn,trigger:An="onChange",validateTrigger:Tn,hidden:Ln,help:Xn,layout:Qn}=xe,{getPrefixCls:Jn}=ge.useContext(ht.E_),{name:Zn}=ge.useContext(E.q3),_n=Ve(nn),jn=typeof _n=="function",Un=ge.useContext(E.qI),{validateTrigger:ur}=ge.useContext(De.FieldContext),qn=Tn!==void 0?Tn:ur,lr=He!=null,ir=Jn("form",sn),er=(0,Re.Z)(ir),[tr,gr,mr]=Ge(ir,er),cr=(0,ct.ln)("Form.Item"),vr=ge.useContext(De.ListContext),Cr=ge.useRef(null),[or,dr]=qt({}),[Gn,Sr]=(0,ne.Z)(()=>On()),Rr=fr=>{const Yn=vr==null?void 0:vr.getKey(fr.name);if(Sr(fr.destroy?On():fr,!0),ke&&Xn!==!1&&Un){let bn=fr.name;if(fr.destroy)bn=Cr.current||bn;else if(Yn!==void 0){const[kn,Pn]=Yn;bn=[kn].concat((0,it.Z)(Pn)),Cr.current=bn}Un(fr,bn)}},Hr=(fr,Yn)=>{dr(bn=>{const kn=Object.assign({},bn),fn=[].concat((0,it.Z)(fr.name.slice(0,-1)),(0,it.Z)(Yn)).join(tn);return fr.destroy?delete kn[fn]:kn[fn]=fr,kn})},[Er,Ar]=ge.useMemo(()=>{const fr=(0,it.Z)(Gn.errors),Yn=(0,it.Z)(Gn.warnings);return Object.values(or).forEach(bn=>{fr.push.apply(fr,(0,it.Z)(bn.errors||[])),Yn.push.apply(Yn,(0,it.Z)(bn.warnings||[]))}),[fr,Yn]},[or,Gn.errors,Gn.warnings]),Ir=Kt();function Mr(fr,Yn,bn){return ke&&!Ln?ge.createElement(Ct,{prefixCls:ir,hasFeedback:xe.hasFeedback,validateStatus:xe.validateStatus,meta:Gn,errors:Er,warnings:Ar,noStyle:!0},fr):ge.createElement(Qt,Object.assign({key:"row"},xe,{className:Ce()(Ue,mr,er,gr),prefixCls:ir,fieldId:Yn,isRequired:bn,errors:Er,warnings:Ar,meta:Gn,onSubItemMetaChange:Hr,layout:Qn}),fr)}if(!lr&&!jn&&!Mt)return tr(Mr(_n));let _r={};return typeof zt=="string"?_r.label=zt:He&&(_r.label=String(He)),vn&&(_r=Object.assign(Object.assign({},_r),vn)),tr(ge.createElement(De.Field,Object.assign({},xe,{messageVariables:_r,trigger:An,validateTrigger:qn,onMetaChange:Rr}),(fr,Yn,bn)=>{const kn=je(He).length&&Yn?Yn.name:[],Pn=Ft(kn,Zn),fn=Wt!==void 0?Wt:!!(Cn!=null&&Cn.some(xn=>{if(xn&&typeof xn=="object"&&xn.required&&!xn.warningOnly)return!0;if(typeof xn=="function"){const In=xn(bn);return(In==null?void 0:In.required)&&!(In!=null&&In.warningOnly)}return!1})),$n=Object.assign({},fr);let Wn=null;if(Array.isArray(_n)&&lr)Wn=_n;else if(!(jn&&(!(hn||Mt)||lr))){if(!(Mt&&!jn&&!lr))if(ge.isValidElement(_n)){const xn=Object.assign(Object.assign({},_n.props),$n);if(xn.id||(xn.id=Pn),Xn||Er.length>0||Ar.length>0||xe.extra){const Fn=[];(Xn||Er.length>0)&&Fn.push(`${Pn}_help`),xe.extra&&Fn.push(`${Pn}_extra`),xn["aria-describedby"]=Fn.join(" ")}Er.length>0&&(xn["aria-invalid"]="true"),fn&&(xn["aria-required"]="true"),(0,pe.Yr)(_n)&&(xn.ref=Ir(kn,_n)),new Set([].concat((0,it.Z)(je(An)),(0,it.Z)(je(qn)))).forEach(Fn=>{xn[Fn]=function(){for(var rr,Pr,br,Dr,kr,Br=arguments.length,$r=new Array(Br),Tr=0;Tr<Br;Tr++)$r[Tr]=arguments[Tr];(br=$n[Fn])===null||br===void 0||(rr=br).call.apply(rr,[$n].concat($r)),(kr=(Dr=_n.props)[Fn])===null||kr===void 0||(Pr=kr).call.apply(Pr,[Dr].concat($r))}});const Rn=[xn["aria-required"],xn["aria-invalid"],xn["aria-describedby"]];Wn=ge.createElement(gn,{control:$n,update:_n,childProps:Rn},(0,be.Tm)(_n,xn))}else jn&&(hn||Mt)&&!lr?Wn=_n(bn):Wn=_n}return Mr(Wn,Pn,fn)}))}const Mn=En;Mn.useStatus=Dt;var Bn=Mn,xt=function(xe,He){var ke={};for(var Ue in xe)Object.prototype.hasOwnProperty.call(xe,Ue)&&He.indexOf(Ue)<0&&(ke[Ue]=xe[Ue]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Ue=Object.getOwnPropertySymbols(xe);Mt<Ue.length;Mt++)He.indexOf(Ue[Mt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ue[Mt])&&(ke[Ue[Mt]]=xe[Ue[Mt]]);return ke},cn=xe=>{var{prefixCls:He,children:ke}=xe,Ue=xt(xe,["prefixCls","children"]);const{getPrefixCls:Mt}=ge.useContext(ht.E_),sn=Mt("form",He),hn=ge.useMemo(()=>({prefixCls:sn,status:"error"}),[sn]);return ge.createElement(De.List,Object.assign({},Ue),(Cn,nn,Wt)=>ge.createElement(E.Rk.Provider,{value:hn},ke(Cn.map(zt=>Object.assign(Object.assign({},zt),{fieldKey:zt.key})),nn,{errors:Wt.errors,warnings:Wt.warnings})))};function an(){const{form:xe}=ge.useContext(E.q3);return xe}const ze=se;ze.Item=Bn,ze.List=cn,ze.ErrorList=Te,ze.useForm=lt,ze.useFormInstance=an,ze.useWatch=De.useWatch,ze.Provider=E.RV,ze.create=()=>{};var tt=ze},4875:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return It}});var E=re(59301),it=re(84105),ge=re(87395),Xe=re(92310),Ce=re.n(Xe),Oe=re(54476),Pe=re(20068),Re=re(76190),Ee=re(42978),he=re(75931),et=re(67732),Se=re(83652);function ft(){return typeof BigInt=="function"}function We(Me){return!Me&&Me!==0&&!Number.isNaN(Me)||!String(Me).trim()}function we(Me){var Ye=Me.trim(),gt=Ye.startsWith("-");gt&&(Ye=Ye.slice(1)),Ye=Ye.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ye.startsWith(".")&&(Ye="0".concat(Ye));var Et=Ye||"0",jt=Et.split("."),ln=jt[0]||"0",wn=jt[1]||"0";ln==="0"&&wn==="0"&&(gt=!1);var Sn=gt?"-":"";return{negative:gt,negativeStr:Sn,trimStr:Et,integerStr:ln,decimalStr:wn,fullStr:"".concat(Sn).concat(Et)}}function Le(Me){var Ye=String(Me);return!Number.isNaN(Number(Ye))&&Ye.includes("e")}function Ae(Me){var Ye=String(Me);if(Le(Me)){var gt=Number(Ye.slice(Ye.indexOf("e-")+2)),Et=Ye.match(/\.(\d+)/);return Et!=null&&Et[1]&&(gt+=Et[1].length),gt}return Ye.includes(".")&&ot(Ye)?Ye.length-Ye.indexOf(".")-1:0}function Je(Me){var Ye=String(Me);if(Le(Me)){if(Me>Number.MAX_SAFE_INTEGER)return String(ft()?BigInt(Me).toString():Number.MAX_SAFE_INTEGER);if(Me<Number.MIN_SAFE_INTEGER)return String(ft()?BigInt(Me).toString():Number.MIN_SAFE_INTEGER);Ye=Me.toFixed(Ae(Ye))}return we(Ye).fullStr}function ot(Me){return typeof Me=="number"?!Number.isNaN(Me):Me?/^\s*-?\d+(\.\d+)?\s*$/.test(Me)||/^\s*-?\d+\.\s*$/.test(Me)||/^\s*-?\.\d+\s*$/.test(Me):!1}var At=function(){function Me(Ye){if((0,et.Z)(this,Me),(0,Pe.Z)(this,"origin",""),(0,Pe.Z)(this,"negative",void 0),(0,Pe.Z)(this,"integer",void 0),(0,Pe.Z)(this,"decimal",void 0),(0,Pe.Z)(this,"decimalLen",void 0),(0,Pe.Z)(this,"empty",void 0),(0,Pe.Z)(this,"nan",void 0),We(Ye)){this.empty=!0;return}if(this.origin=String(Ye),Ye==="-"||Number.isNaN(Ye)){this.nan=!0;return}var gt=Ye;if(Le(gt)&&(gt=Number(gt)),gt=typeof gt=="string"?gt:Je(gt),ot(gt)){var Et=we(gt);this.negative=Et.negative;var jt=Et.trimStr.split(".");this.integer=BigInt(jt[0]);var ln=jt[1]||"0";this.decimal=BigInt(ln),this.decimalLen=ln.length}else this.nan=!0}return(0,Se.Z)(Me,[{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(gt){var Et="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(gt,"0"));return BigInt(Et)}},{key:"negate",value:function(){var gt=new Me(this.toString());return gt.negative=!gt.negative,gt}},{key:"cal",value:function(gt,Et,jt){var ln=Math.max(this.getDecimalStr().length,gt.getDecimalStr().length),wn=this.alignDecimal(ln),Sn=gt.alignDecimal(ln),rn=Et(wn,Sn).toString(),pn=jt(ln),dn=we(rn),Yt=dn.negativeStr,Rt=dn.trimStr,Lt="".concat(Yt).concat(Rt.padStart(pn+1,"0"));return new Me("".concat(Lt.slice(0,-pn),".").concat(Lt.slice(-pn)))}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var Et=new Me(gt);return Et.isInvalidate()?this:this.cal(Et,function(jt,ln){return jt+ln},function(jt){return jt})}},{key:"multi",value:function(gt){var Et=new Me(gt);return this.isInvalidate()||Et.isInvalidate()?new Me(NaN):this.cal(Et,function(jt,ln){return jt*ln},function(jt){return jt*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(gt){return this.toString()===(gt==null?void 0:gt.toString())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":we("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Me}(),bt=function(){function Me(Ye){if((0,et.Z)(this,Me),(0,Pe.Z)(this,"origin",""),(0,Pe.Z)(this,"number",void 0),(0,Pe.Z)(this,"empty",void 0),We(Ye)){this.empty=!0;return}this.origin=String(Ye),this.number=Number(Ye)}return(0,Se.Z)(Me,[{key:"negate",value:function(){return new Me(-this.toNumber())}},{key:"add",value:function(gt){if(this.isInvalidate())return new Me(gt);var Et=Number(gt);if(Number.isNaN(Et))return this;var jt=this.number+Et;if(jt>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(jt<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var ln=Math.max(Ae(this.number),Ae(Et));return new Me(jt.toFixed(ln))}},{key:"multi",value:function(gt){var Et=Number(gt);if(this.isInvalidate()||Number.isNaN(Et))return new Me(NaN);var jt=this.number*Et;if(jt>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(jt<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var ln=Math.max(Ae(this.number),Ae(Et));return new Me(jt.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(gt){return this.toNumber()===(gt==null?void 0:gt.toNumber())}},{key:"lessEquals",value:function(gt){return this.add(gt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return gt?this.isInvalidate()?"":Je(this.number):this.origin}}]),Me}();function st(Me){return ft()?new At(Me):new bt(Me)}function ut(Me,Ye,gt){var Et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Me==="")return"";var jt=we(Me),ln=jt.negativeStr,wn=jt.integerStr,Sn=jt.decimalStr,rn="".concat(Ye).concat(Sn),pn="".concat(ln).concat(wn);if(gt>=0){var dn=Number(Sn[gt]);if(dn>=5&&!Et){var Yt=st(Me).add("".concat(ln,"0.").concat("0".repeat(gt)).concat(10-dn));return ut(Yt.toString(),Ye,gt,Et)}return gt===0?pn:"".concat(pn).concat(Ye).concat(Sn.padEnd(gt,"0").slice(0,gt))}return rn===".0"?pn:"".concat(pn).concat(rn)}var qe=st,Nt=re(36901),vt=re(34280);function at(Me,Ye){return typeof Proxy!="undefined"&&Me?new Proxy(Me,{get:function(Et,jt){if(Ye[jt])return Ye[jt];var ln=Et[jt];return typeof ln=="function"?ln.bind(Et):ln}}):Me}var kt=re(8654),Be=re(48736);function Ge(Me,Ye){var gt=(0,E.useRef)(null);function Et(){try{var ln=Me.selectionStart,wn=Me.selectionEnd,Sn=Me.value,rn=Sn.substring(0,ln),pn=Sn.substring(wn);gt.current={start:ln,end:wn,value:Sn,beforeTxt:rn,afterTxt:pn}}catch(dn){}}function jt(){if(Me&&gt.current&&Ye)try{var ln=Me.value,wn=gt.current,Sn=wn.beforeTxt,rn=wn.afterTxt,pn=wn.start,dn=ln.length;if(ln.startsWith(Sn))dn=Sn.length;else if(ln.endsWith(rn))dn=ln.length-gt.current.afterTxt.length;else{var Yt=Sn[pn-1],Rt=ln.indexOf(Yt,pn-1);Rt!==-1&&(dn=Rt+1)}Me.setSelectionRange(dn,dn)}catch(Lt){(0,Be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Lt.message))}}return[Et,jt]}var _e=re(49658),ue=function(){var Ye=(0,E.useState)(!1),gt=(0,Ee.Z)(Ye,2),Et=gt[0],jt=gt[1];return(0,vt.Z)(function(){jt((0,_e.Z)())},[]),Et},Qe=ue,Te=re(16089),De=200,ht=600;function me(Me){var Ye=Me.prefixCls,gt=Me.upNode,Et=Me.downNode,jt=Me.upDisabled,ln=Me.downDisabled,wn=Me.onStep,Sn=E.useRef(),rn=E.useRef([]),pn=E.useRef();pn.current=wn;var dn=function(){clearTimeout(Sn.current)},Yt=function(yn,gn){yn.preventDefault(),dn(),pn.current(gn);function On(){pn.current(gn),Sn.current=setTimeout(On,De)}Sn.current=setTimeout(On,ht)};E.useEffect(function(){return function(){dn(),rn.current.forEach(function(un){return Te.Z.cancel(un)})}},[]);var Rt=Qe();if(Rt)return null;var Lt="".concat(Ye,"-handler"),Ct=Ce()(Lt,"".concat(Lt,"-up"),(0,Pe.Z)({},"".concat(Lt,"-up-disabled"),jt)),Jt=Ce()(Lt,"".concat(Lt,"-down"),(0,Pe.Z)({},"".concat(Lt,"-down-disabled"),ln)),Qt=function(){return rn.current.push((0,Te.Z)(dn))},tn={unselectable:"on",role:"button",onMouseUp:Qt,onMouseLeave:Qt};return E.createElement("div",{className:"".concat(Lt,"-wrap")},E.createElement("span",(0,Oe.Z)({},tn,{onMouseDown:function(yn){Yt(yn,!0)},"aria-label":"Increase Value","aria-disabled":jt,className:Ct}),gt||E.createElement("span",{unselectable:"on",className:"".concat(Ye,"-handler-up-inner")})),E.createElement("span",(0,Oe.Z)({},tn,{onMouseDown:function(yn){Yt(yn,!1)},"aria-label":"Decrease Value","aria-disabled":ln,className:Jt}),Et||E.createElement("span",{unselectable:"on",className:"".concat(Ye,"-handler-down-inner")})))}function ce(Me){var Ye=typeof Me=="number"?Je(Me):we(Me).fullStr,gt=Ye.includes(".");return gt?we(Ye.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Me+"0"}var Ze=re(30292),Tt=function(){var Me=(0,E.useRef)(0),Ye=function(){Te.Z.cancel(Me.current)};return(0,E.useEffect)(function(){return Ye},[]),function(gt){Ye(),Me.current=(0,Te.Z)(function(){gt()})}},St=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],ve=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$e=function(Ye,gt){return Ye||gt.isEmpty()?gt.toString():gt.toNumber()},je=function(Ye){var gt=qe(Ye);return gt.isInvalidate()?null:gt},Ft=E.forwardRef(function(Me,Ye){var gt=Me.prefixCls,Et=Me.className,jt=Me.style,ln=Me.min,wn=Me.max,Sn=Me.step,rn=Sn===void 0?1:Sn,pn=Me.defaultValue,dn=Me.value,Yt=Me.disabled,Rt=Me.readOnly,Lt=Me.upHandler,Ct=Me.downHandler,Jt=Me.keyboard,Qt=Me.changeOnWheel,tn=Qt===void 0?!1:Qt,un=Me.controls,yn=un===void 0?!0:un,gn=Me.classNames,On=Me.stringMode,En=Me.parser,Mn=Me.formatter,Bn=Me.precision,xt=Me.decimalSeparator,$t=Me.onChange,cn=Me.onInput,an=Me.onPressEnter,ze=Me.onStep,tt=Me.changeOnBlur,xe=tt===void 0?!0:tt,He=Me.domRef,ke=(0,he.Z)(Me,St),Ue="".concat(gt,"-input"),Mt=E.useRef(null),sn=E.useState(!1),hn=(0,Ee.Z)(sn,2),Cn=hn[0],nn=hn[1],Wt=E.useRef(!1),zt=E.useRef(!1),vn=E.useRef(!1),An=E.useState(function(){return qe(dn!=null?dn:pn)}),Tn=(0,Ee.Z)(An,2),Ln=Tn[0],Xn=Tn[1];function Qn(Pn){dn===void 0&&Xn(Pn)}var Jn=E.useCallback(function(Pn,fn){if(!fn)return Bn>=0?Bn:Math.max(Ae(Pn),Ae(rn))},[Bn,rn]),Zn=E.useCallback(function(Pn){var fn=String(Pn);if(En)return En(fn);var $n=fn;return xt&&($n=$n.replace(xt,".")),$n.replace(/[^\w.-]+/g,"")},[En,xt]),_n=E.useRef(""),jn=E.useCallback(function(Pn,fn){if(Mn)return Mn(Pn,{userTyping:fn,input:String(_n.current)});var $n=typeof Pn=="number"?Je(Pn):Pn;if(!fn){var Wn=Jn($n,fn);if(ot($n)&&(xt||Wn>=0)){var xn=xt||".";$n=ut($n,xn,Wn)}}return $n},[Mn,Jn,xt]),Un=E.useState(function(){var Pn=pn!=null?pn:dn;return Ln.isInvalidate()&&["string","number"].includes((0,Re.Z)(Pn))?Number.isNaN(Pn)?"":Pn:jn(Ln.toString(),!1)}),ur=(0,Ee.Z)(Un,2),qn=ur[0],lr=ur[1];_n.current=qn;function ir(Pn,fn){lr(jn(Pn.isInvalidate()?Pn.toString(!1):Pn.toString(!fn),fn))}var er=E.useMemo(function(){return je(wn)},[wn,Bn]),tr=E.useMemo(function(){return je(ln)},[ln,Bn]),gr=E.useMemo(function(){return!er||!Ln||Ln.isInvalidate()?!1:er.lessEquals(Ln)},[er,Ln]),mr=E.useMemo(function(){return!tr||!Ln||Ln.isInvalidate()?!1:Ln.lessEquals(tr)},[tr,Ln]),cr=Ge(Mt.current,Cn),vr=(0,Ee.Z)(cr,2),Cr=vr[0],or=vr[1],dr=function(fn){return er&&!fn.lessEquals(er)?er:tr&&!tr.lessEquals(fn)?tr:null},Gn=function(fn){return!dr(fn)},Sr=function(fn,$n){var Wn=fn,xn=Gn(Wn)||Wn.isEmpty();if(!Wn.isEmpty()&&!$n&&(Wn=dr(Wn)||Wn,xn=!0),!Rt&&!Yt&&xn){var In=Wn.toString(),Rn=Jn(In,$n);return Rn>=0&&(Wn=qe(ut(In,".",Rn)),Gn(Wn)||(Wn=qe(ut(In,".",Rn,!0)))),Wn.equals(Ln)||(Qn(Wn),$t==null||$t(Wn.isEmpty()?null:$e(On,Wn)),dn===void 0&&ir(Wn,$n)),Wn}return Ln},Rr=Tt(),Hr=function Pn(fn){if(Cr(),_n.current=fn,lr(fn),!zt.current){var $n=Zn(fn),Wn=qe($n);Wn.isNaN()||Sr(Wn,!0)}cn==null||cn(fn),Rr(function(){var xn=fn;En||(xn=fn.replace(/。/g,".")),xn!==fn&&Pn(xn)})},Er=function(){zt.current=!0},Ar=function(){zt.current=!1,Hr(Mt.current.value)},Ir=function(fn){Hr(fn.target.value)},Mr=function(fn){var $n;if(!(fn&&gr||!fn&&mr)){Wt.current=!1;var Wn=qe(vn.current?ce(rn):rn);fn||(Wn=Wn.negate());var xn=(Ln||qe(0)).add(Wn.toString()),In=Sr(xn,!1);ze==null||ze($e(On,In),{offset:vn.current?ce(rn):rn,type:fn?"up":"down"}),($n=Mt.current)===null||$n===void 0||$n.focus()}},_r=function(fn){var $n=qe(Zn(qn)),Wn;$n.isNaN()?Wn=Sr(Ln,fn):Wn=Sr($n,fn),dn!==void 0?ir(Ln,!1):Wn.isNaN()||ir(Wn,!1)},fr=function(){Wt.current=!0},Yn=function(fn){var $n=fn.key,Wn=fn.shiftKey;Wt.current=!0,vn.current=Wn,$n==="Enter"&&(zt.current||(Wt.current=!1),_r(!1),an==null||an(fn)),Jt!==!1&&!zt.current&&["Up","ArrowUp","Down","ArrowDown"].includes($n)&&(Mr($n==="Up"||$n==="ArrowUp"),fn.preventDefault())},bn=function(){Wt.current=!1,vn.current=!1};E.useEffect(function(){if(tn&&Cn){var Pn=function(Wn){Mr(Wn.deltaY<0),Wn.preventDefault()},fn=Mt.current;if(fn)return fn.addEventListener("wheel",Pn,{passive:!1}),function(){return fn.removeEventListener("wheel",Pn)}}});var kn=function(){xe&&_r(!1),nn(!1),Wt.current=!1};return(0,vt.o)(function(){Ln.isInvalidate()||ir(Ln,!1)},[Bn,Mn]),(0,vt.o)(function(){var Pn=qe(dn);Xn(Pn);var fn=qe(Zn(qn));(!Pn.equals(fn)||!Wt.current||Mn)&&ir(Pn,Wt.current)},[dn]),(0,vt.o)(function(){Mn&&or()},[qn]),E.createElement("div",{ref:He,className:Ce()(gt,Et,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(gt,"-focused"),Cn),"".concat(gt,"-disabled"),Yt),"".concat(gt,"-readonly"),Rt),"".concat(gt,"-not-a-number"),Ln.isNaN()),"".concat(gt,"-out-of-range"),!Ln.isInvalidate()&&!Gn(Ln))),style:jt,onFocus:function(){nn(!0)},onBlur:kn,onKeyDown:Yn,onKeyUp:bn,onCompositionStart:Er,onCompositionEnd:Ar,onBeforeInput:fr},yn&&E.createElement(me,{prefixCls:gt,upNode:Lt,downNode:Ct,upDisabled:gr,downDisabled:mr,onStep:Mr}),E.createElement("div",{className:"".concat(Ue,"-wrap")},E.createElement("input",(0,Oe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":ln,"aria-valuemax":wn,"aria-valuenow":Ln.isInvalidate()?null:Ln.toString(),step:rn},ke,{ref:(0,kt.sQ)(Mt,Ye),className:Ue,value:qn,onChange:Ir,disabled:Yt,readOnly:Rt}))))}),Bt=E.forwardRef(function(Me,Ye){var gt=Me.disabled,Et=Me.style,jt=Me.prefixCls,ln=jt===void 0?"rc-input-number":jt,wn=Me.value,Sn=Me.prefix,rn=Me.suffix,pn=Me.addonBefore,dn=Me.addonAfter,Yt=Me.className,Rt=Me.classNames,Lt=(0,he.Z)(Me,ve),Ct=E.useRef(null),Jt=E.useRef(null),Qt=E.useRef(null),tn=function(yn){Qt.current&&(0,Ze.nH)(Qt.current,yn)};return E.useImperativeHandle(Ye,function(){return at(Qt.current,{focus:tn,nativeElement:Ct.current.nativeElement||Jt.current})}),E.createElement(Nt.BaseInput,{className:Yt,triggerFocus:tn,prefixCls:ln,value:wn,disabled:gt,style:Et,prefix:Sn,suffix:rn,addonAfter:dn,addonBefore:pn,classNames:Rt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ct},E.createElement(Ft,(0,Oe.Z)({prefixCls:ln,disabled:gt,ref:Qt,domRef:Jt,className:Rt==null?void 0:Rt.input},Lt)))}),Ht=Bt,Fe=Ht,_t=re(62487),lt=re(82855),ae=re(48755),te=re(60840),ee=re(2171),oe=re(83397),se=re(31756),ne=re(56553),pe=re(24971),be=re(70045),ct=re(36237),Ie=re(53075),Ve=re(64910),pt=re(39082),Dt=re(63356),Ot=re(56119),qt=re(16931),Kt=re(51636),Ut=re(17835);const Pt=Me=>{var Ye;const gt=(Ye=Me.handleVisible)!==null&&Ye!==void 0?Ye:"auto",Et=Me.controlHeightSM-Me.lineWidth*2;return Object.assign(Object.assign({},(0,Ve.T)(Me)),{controlWidth:90,handleWidth:Et,handleFontSize:Me.fontSize/2,handleVisible:gt,handleActiveBg:Me.colorFillAlter,handleBg:Me.colorBgContainer,filledHandleBg:new Ut.FastColor(Me.colorFillSecondary).onBackground(Me.colorBgContainer).toHexString(),handleHoverColor:Me.colorPrimary,handleBorderColor:Me.colorBorder,handleOpacity:gt===!0?1:0,handleVisibleWidth:gt===!0?Et:0})},wt=(Me,Ye)=>{let{componentCls:gt,borderRadiusSM:Et,borderRadiusLG:jt}=Me;const ln=Ye==="lg"?jt:Et;return{[`&-${Ye}`]:{[`${gt}-handler-wrap`]:{borderStartEndRadius:ln,borderEndEndRadius:ln},[`${gt}-handler-up`]:{borderStartEndRadius:ln},[`${gt}-handler-down`]:{borderEndEndRadius:ln}}}},mt=Me=>{const{componentCls:Ye,lineWidth:gt,lineType:Et,borderRadius:jt,inputFontSizeSM:ln,inputFontSizeLG:wn,controlHeightLG:Sn,controlHeightSM:rn,colorError:pn,paddingInlineSM:dn,paddingBlockSM:Yt,paddingBlockLG:Rt,paddingInlineLG:Lt,colorTextDescription:Ct,motionDurationMid:Jt,handleHoverColor:Qt,handleOpacity:tn,paddingInline:un,paddingBlock:yn,handleBg:gn,handleActiveBg:On,colorTextDisabled:En,borderRadiusSM:Mn,borderRadiusLG:Bn,controlWidth:xt,handleBorderColor:$t,filledHandleBg:cn,lineHeightLG:an,calc:ze}=Me;return[{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Me)),(0,Ie.ik)(Me)),{display:"inline-block",width:xt,margin:0,padding:0,borderRadius:jt}),(0,pt.qG)(Me,{[`${Ye}-handler-wrap`]:{background:gn,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(gt)} ${Et} ${$t}`}}})),(0,pt.H8)(Me,{[`${Ye}-handler-wrap`]:{background:cn,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(gt)} ${Et} ${$t}`}},"&:focus-within":{[`${Ye}-handler-wrap`]:{background:gn}}})),(0,pt.vc)(Me,{[`${Ye}-handler-wrap`]:{background:gn,[`${Ye}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(gt)} ${Et} ${$t}`}}})),(0,pt.Mu)(Me)),{"&-rtl":{direction:"rtl",[`${Ye}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:wn,lineHeight:an,borderRadius:Bn,[`input${Ye}-input`]:{height:ze(Sn).sub(ze(gt).mul(2)).equal(),padding:`${(0,ct.unit)(Rt)} ${(0,ct.unit)(Lt)}`}},"&-sm":{padding:0,fontSize:ln,borderRadius:Mn,[`input${Ye}-input`]:{height:ze(rn).sub(ze(gt).mul(2)).equal(),padding:`${(0,ct.unit)(Yt)} ${(0,ct.unit)(dn)}`}},"&-out-of-range":{[`${Ye}-input-wrap`]:{input:{color:pn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Me)),(0,Ie.s7)(Me)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ye}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ye}-group-addon`]:{borderRadius:Bn,fontSize:Me.fontSizeLG}},"&-sm":{[`${Ye}-group-addon`]:{borderRadius:Mn}}},(0,pt.ir)(Me)),(0,pt.S5)(Me)),{[`&:not(${Ye}-compact-first-item):not(${Ye}-compact-last-item)${Ye}-compact-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderRadius:0}},[`&:not(${Ye}-compact-last-item)${Ye}-compact-first-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ye}-compact-first-item)${Ye}-compact-last-item`]:{[`${Ye}, ${Ye}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ye}-input`]:{cursor:"not-allowed"},[Ye]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(Me)),{width:"100%",padding:`${(0,ct.unit)(yn)} ${(0,ct.unit)(un)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:jt,outline:0,transition:`all ${Jt} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ie.nz)(Me.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ye}-handler-wrap, &-focused ${Ye}-handler-wrap`]:{width:Me.handleWidth,opacity:1}})},{[Ye]:Object.assign(Object.assign(Object.assign({[`${Ye}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Me.handleVisibleWidth,opacity:tn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:jt,borderEndEndRadius:jt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Jt}`,overflow:"hidden",[`${Ye}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Ye}-handler-up-inner,
${Ye}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Me.handleFontSize}}},[`${Ye}-handler`]:{height:"50%",overflow:"hidden",color:Ct,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ct.unit)(gt)} ${Et} ${$t}`,transition:`all ${Jt} linear`,"&:active":{background:On},"&:hover":{height:"60%",[`
${Ye}-handler-up-inner,
${Ye}-handler-down-inner
`]:{color:Qt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Dt.Ro)()),{color:Ct,transition:`all ${Jt} linear`,userSelect:"none"})},[`${Ye}-handler-up`]:{borderStartEndRadius:jt},[`${Ye}-handler-down`]:{borderEndEndRadius:jt}},wt(Me,"lg")),wt(Me,"sm")),{"&-disabled, &-readonly":{[`${Ye}-handler-wrap`]:{display:"none"},[`${Ye}-input`]:{color:"inherit"}},[`
${Ye}-handler-up-disabled,
${Ye}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Ye}-handler-up-disabled:hover &-handler-up-inner,
${Ye}-handler-down-disabled:hover &-handler-down-inner
`]:{color:En}})}]},dt=Me=>{const{componentCls:Ye,paddingBlock:gt,paddingInline:Et,inputAffixPadding:jt,controlWidth:ln,borderRadiusLG:wn,borderRadiusSM:Sn,paddingInlineLG:rn,paddingInlineSM:pn,paddingBlockLG:dn,paddingBlockSM:Yt,motionDurationMid:Rt}=Me;return{[`${Ye}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ye}-input`]:{padding:`${(0,ct.unit)(gt)} 0`}},(0,Ie.ik)(Me)),{position:"relative",display:"inline-flex",alignItems:"center",width:ln,padding:0,paddingInlineStart:Et,"&-lg":{borderRadius:wn,paddingInlineStart:rn,[`input${Ye}-input`]:{padding:`${(0,ct.unit)(dn)} 0`}},"&-sm":{borderRadius:Sn,paddingInlineStart:pn,[`input${Ye}-input`]:{padding:`${(0,ct.unit)(Yt)} 0`}},[`&:not(${Ye}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ye}-disabled`]:{background:"transparent"},[`> div${Ye}`]:{width:"100%",border:"none",outline:"none",[`&${Ye}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ye}-handler-wrap`]:{zIndex:2},[Ye]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:jt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Et,marginInlineStart:jt,transition:`margin ${Rt}`}},[`&:hover ${Ye}-handler-wrap, &-focused ${Ye}-handler-wrap`]:{width:Me.handleWidth,opacity:1},[`&:not(${Ye}-affix-wrapper-without-controls):hover ${Ye}-suffix`]:{marginInlineEnd:Me.calc(Me.handleWidth).add(Et).equal()}})}};var en=(0,qt.I$)("InputNumber",Me=>{const Ye=(0,Kt.mergeToken)(Me,(0,Ve.e)(Me));return[mt(Ye),dt(Ye),(0,Ot.c)(Ye)]},Pt,{unitless:{handleOpacity:!0}}),Gt=function(Me,Ye){var gt={};for(var Et in Me)Object.prototype.hasOwnProperty.call(Me,Et)&&Ye.indexOf(Et)<0&&(gt[Et]=Me[Et]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,Et=Object.getOwnPropertySymbols(Me);jt<Et.length;jt++)Ye.indexOf(Et[jt])<0&&Object.prototype.propertyIsEnumerable.call(Me,Et[jt])&&(gt[Et[jt]]=Me[Et[jt]]);return gt};const Ne=E.forwardRef((Me,Ye)=>{const{getPrefixCls:gt,direction:Et}=E.useContext(ae.E_),jt=E.useRef(null);E.useImperativeHandle(Ye,()=>jt.current);const{className:ln,rootClassName:wn,size:Sn,disabled:rn,prefixCls:pn,addonBefore:dn,addonAfter:Yt,prefix:Rt,suffix:Lt,bordered:Ct,readOnly:Jt,status:Qt,controls:tn,variant:un}=Me,yn=Gt(Me,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),gn=gt("input-number",pn),On=(0,oe.Z)(gn),[En,Mn,Bn]=en(gn,On),{compactSize:xt,compactItemClassnames:$t}=(0,be.ri)(gn,Et);let cn=E.createElement(ge.Z,{className:`${gn}-handler-up-inner`}),an=E.createElement(it.Z,{className:`${gn}-handler-down-inner`});const ze=typeof tn=="boolean"?tn:void 0;typeof tn=="object"&&(cn=typeof tn.upIcon=="undefined"?cn:E.createElement("span",{className:`${gn}-handler-up-inner`},tn.upIcon),an=typeof tn.downIcon=="undefined"?an:E.createElement("span",{className:`${gn}-handler-down-inner`},tn.downIcon));const{hasFeedback:tt,status:xe,isFormItemInput:He,feedbackIcon:ke}=E.useContext(ne.aM),Ue=(0,lt.F)(xe,Qt),Mt=(0,se.Z)(Tn=>{var Ln;return(Ln=Sn!=null?Sn:xt)!==null&&Ln!==void 0?Ln:Tn}),sn=E.useContext(ee.Z),hn=rn!=null?rn:sn,[Cn,nn]=(0,pe.Z)("inputNumber",un,Ct),Wt=tt&&E.createElement(E.Fragment,null,ke),zt=Ce()({[`${gn}-lg`]:Mt==="large",[`${gn}-sm`]:Mt==="small",[`${gn}-rtl`]:Et==="rtl",[`${gn}-in-form-item`]:He},Mn),vn=`${gn}-group`,An=E.createElement(Fe,Object.assign({ref:jt,disabled:hn,className:Ce()(Bn,On,ln,wn,$t),upHandler:cn,downHandler:an,prefixCls:gn,readOnly:Jt,controls:ze,prefix:Rt,suffix:Wt||Lt,addonBefore:dn&&E.createElement(_t.Z,{form:!0,space:!0},dn),addonAfter:Yt&&E.createElement(_t.Z,{form:!0,space:!0},Yt),classNames:{input:zt,variant:Ce()({[`${gn}-${Cn}`]:nn},(0,lt.Z)(gn,Ue,tt)),affixWrapper:Ce()({[`${gn}-affix-wrapper-sm`]:Mt==="small",[`${gn}-affix-wrapper-lg`]:Mt==="large",[`${gn}-affix-wrapper-rtl`]:Et==="rtl",[`${gn}-affix-wrapper-without-controls`]:tn===!1||hn},Mn),wrapper:Ce()({[`${vn}-rtl`]:Et==="rtl"},Mn),groupWrapper:Ce()({[`${gn}-group-wrapper-sm`]:Mt==="small",[`${gn}-group-wrapper-lg`]:Mt==="large",[`${gn}-group-wrapper-rtl`]:Et==="rtl",[`${gn}-group-wrapper-${Cn}`]:nn},(0,lt.Z)(`${gn}-group-wrapper`,Ue,tt),Mn)}},yn));return En(An)}),nt=Ne,Ke=Me=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(Ne,Object.assign({},Me)));nt._InternalPanelDoNotUseOrYouWillBeFired=Ke;var It=nt},49397:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return bt}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(36901),Ce=re(8654),Oe=re(62487),Pe=re(86013),Re=re(82855),Ee=re(48755),he=re(2171),et=re(83397),Se=re(31756),ft=re(56553),We=re(24971),we=re(70045),Le=re(23826),Ae=re(53075);function Je(st){return!!(st.prefix||st.suffix||st.allowClear||st.showCount)}var ot=function(st,ut){var qe={};for(var Nt in st)Object.prototype.hasOwnProperty.call(st,Nt)&&ut.indexOf(Nt)<0&&(qe[Nt]=st[Nt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Nt=Object.getOwnPropertySymbols(st);vt<Nt.length;vt++)ut.indexOf(Nt[vt])<0&&Object.prototype.propertyIsEnumerable.call(st,Nt[vt])&&(qe[Nt[vt]]=st[Nt[vt]]);return qe},bt=(0,E.forwardRef)((st,ut)=>{const{prefixCls:qe,bordered:Nt=!0,status:vt,size:at,disabled:kt,onBlur:Be,onFocus:Ge,suffix:_e,allowClear:ue,addonAfter:Qe,addonBefore:Te,className:De,style:ht,styles:me,rootClassName:ce,onChange:Ze,classNames:Tt,variant:St}=st,ve=ot(st,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$e,direction:je,allowClear:Ft,autoComplete:Bt,className:Ht,style:Fe,classNames:_t,styles:lt}=(0,Ee.dj)("input"),ae=$e("input",qe),te=(0,E.useRef)(null),ee=(0,et.Z)(ae),[oe,se,ne]=(0,Ae.TI)(ae,ce),[pe]=(0,Ae.ZP)(ae,ee),{compactSize:be,compactItemClassnames:ct}=(0,we.ri)(ae,je),Ie=(0,Se.Z)(It=>{var Me;return(Me=at!=null?at:be)!==null&&Me!==void 0?Me:It}),Ve=E.useContext(he.Z),pt=kt!=null?kt:Ve,{status:Dt,hasFeedback:Ot,feedbackIcon:qt}=(0,E.useContext)(ft.aM),Kt=(0,Re.F)(Dt,vt),Ut=Je(st)||!!Ot,Pt=(0,E.useRef)(Ut),wt=(0,Le.Z)(te,!0),mt=It=>{wt(),Be==null||Be(It)},dt=It=>{wt(),Ge==null||Ge(It)},en=It=>{wt(),Ze==null||Ze(It)},Gt=(Ot||_e)&&E.createElement(E.Fragment,null,_e,Ot&&qt),Ne=(0,Pe.Z)(ue!=null?ue:Ft),[nt,Ke]=(0,We.Z)("input",St,Nt);return oe(pe(E.createElement(Xe.default,Object.assign({ref:(0,Ce.sQ)(ut,te),prefixCls:ae,autoComplete:Bt},ve,{disabled:pt,onBlur:mt,onFocus:dt,style:Object.assign(Object.assign({},Fe),ht),styles:Object.assign(Object.assign({},lt),me),suffix:Gt,allowClear:Ne,className:ge()(De,ce,ne,ee,ct,Ht),onChange:en,addonBefore:Te&&E.createElement(Oe.Z,{form:!0,space:!0},Te),addonAfter:Qe&&E.createElement(Oe.Z,{form:!0,space:!0},Qe),classNames:Object.assign(Object.assign(Object.assign({},Tt),_t),{input:ge()({[`${ae}-sm`]:Ie==="small",[`${ae}-lg`]:Ie==="large",[`${ae}-rtl`]:je==="rtl"},Tt==null?void 0:Tt.input,_t.input,se),variant:ge()({[`${ae}-${nt}`]:Ke},(0,Re.Z)(ae,Kt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Ie==="small",[`${ae}-affix-wrapper-lg`]:Ie==="large",[`${ae}-affix-wrapper-rtl`]:je==="rtl"},se),wrapper:ge()({[`${ae}-group-rtl`]:je==="rtl"},se),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Ie==="small",[`${ae}-group-wrapper-lg`]:Ie==="large",[`${ae}-group-wrapper-rtl`]:je==="rtl",[`${ae}-group-wrapper-${nt}`]:Ke},(0,Re.Z)(`${ae}-group-wrapper`,Kt,Ot),se)})}))))})},79809:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return ut}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(22711),Ce=re(86013),Oe=re(82855),Pe=re(48755),Re=re(2171),Ee=re(83397),he=re(31756),et=re(56553),Se=re(24971),ft=re(70045),We=re(30292),we=re(53075),Le=re(16931),Ae=re(51636),Je=re(64910);const ot=qe=>{const{componentCls:Nt,paddingLG:vt}=qe,at=`${Nt}-textarea`;return{[`textarea${Nt}`]:{maxWidth:"100%",height:"auto",minHeight:qe.controlHeight,lineHeight:qe.lineHeight,verticalAlign:"bottom",transition:`all ${qe.motionDurationSlow}`,resize:"vertical",[`&${Nt}-mouse-active`]:{transition:`all ${qe.motionDurationSlow}, height 0s, width 0s`}},[`${Nt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[at]:{position:"relative","&-show-count":{[`> ${Nt}`]:{height:"100%"},[`${Nt}-data-count`]:{position:"absolute",bottom:qe.calc(qe.fontSize).mul(qe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:qe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${Nt},
&-affix-wrapper${at}-has-feedback ${Nt}
`]:{paddingInlineEnd:vt},[`&-affix-wrapper${Nt}-affix-wrapper`]:{padding:0,[`> textarea${Nt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:qe.calc(qe.controlHeight).sub(qe.calc(qe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Nt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Nt}-clear-icon`]:{position:"absolute",insetInlineEnd:qe.paddingInline,insetBlockStart:qe.paddingXS},[`${at}-suffix`]:{position:"absolute",top:0,insetInlineEnd:qe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Nt}-affix-wrapper-sm`]:{[`${Nt}-suffix`]:{[`${Nt}-clear-icon`]:{insetInlineEnd:qe.paddingInlineSM}}}}}};var At=(0,Le.I$)(["Input","TextArea"],qe=>{const Nt=(0,Ae.mergeToken)(qe,(0,Je.e)(qe));return[ot(Nt)]},Je.T,{resetFont:!1}),bt=function(qe,Nt){var vt={};for(var at in qe)Object.prototype.hasOwnProperty.call(qe,at)&&Nt.indexOf(at)<0&&(vt[at]=qe[at]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,at=Object.getOwnPropertySymbols(qe);kt<at.length;kt++)Nt.indexOf(at[kt])<0&&Object.prototype.propertyIsEnumerable.call(qe,at[kt])&&(vt[at[kt]]=qe[at[kt]]);return vt},ut=(0,E.forwardRef)((qe,Nt)=>{var vt;const{prefixCls:at,bordered:kt=!0,size:Be,disabled:Ge,status:_e,allowClear:ue,classNames:Qe,rootClassName:Te,className:De,style:ht,styles:me,variant:ce,showCount:Ze,onMouseDown:Tt,onResize:St}=qe,ve=bt(qe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:$e,direction:je,allowClear:Ft,autoComplete:Bt,className:Ht,style:Fe,classNames:_t,styles:lt}=(0,Pe.dj)("textArea"),ae=E.useContext(Re.Z),te=Ge!=null?Ge:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=E.useContext(et.aM),ne=(0,Oe.F)(ee,_e),pe=E.useRef(null);E.useImperativeHandle(Nt,()=>{var Ke;return{resizableTextArea:(Ke=pe.current)===null||Ke===void 0?void 0:Ke.resizableTextArea,focus:It=>{var Me,Ye;(0,We.nH)((Ye=(Me=pe.current)===null||Me===void 0?void 0:Me.resizableTextArea)===null||Ye===void 0?void 0:Ye.textArea,It)},blur:()=>{var It;return(It=pe.current)===null||It===void 0?void 0:It.blur()}}});const be=$e("input",at),ct=(0,Ee.Z)(be),[Ie,Ve,pt]=(0,we.TI)(be,Te),[Dt]=At(be,ct),{compactSize:Ot,compactItemClassnames:qt}=(0,ft.ri)(be,je),Kt=(0,he.Z)(Ke=>{var It;return(It=Be!=null?Be:Ot)!==null&&It!==void 0?It:Ke}),[Ut,Pt]=(0,Se.Z)("textArea",ce,kt),wt=(0,Ce.Z)(ue!=null?ue:Ft),[mt,dt]=E.useState(!1),[en,Gt]=E.useState(!1),Ne=Ke=>{dt(!0),Tt==null||Tt(Ke);const It=()=>{dt(!1),document.removeEventListener("mouseup",It)};document.addEventListener("mouseup",It)},nt=Ke=>{var It,Me;if(St==null||St(Ke),mt&&typeof getComputedStyle=="function"){const Ye=(Me=(It=pe.current)===null||It===void 0?void 0:It.nativeElement)===null||Me===void 0?void 0:Me.querySelector("textarea");Ye&&getComputedStyle(Ye).resize==="both"&&Gt(!0)}};return Ie(Dt(E.createElement(Xe.default,Object.assign({autoComplete:Bt},ve,{style:Object.assign(Object.assign({},Fe),ht),styles:Object.assign(Object.assign({},lt),me),disabled:te,allowClear:wt,className:ge()(pt,ct,De,Te,qt,Ht,en&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Qe),_t),{textarea:ge()({[`${be}-sm`]:Kt==="small",[`${be}-lg`]:Kt==="large"},Ve,Qe==null?void 0:Qe.textarea,_t.textarea,mt&&`${be}-mouse-active`),variant:ge()({[`${be}-${Ut}`]:Pt},(0,Oe.Z)(be,ne)),affixWrapper:ge()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:je==="rtl",[`${be}-affix-wrapper-sm`]:Kt==="small",[`${be}-affix-wrapper-lg`]:Kt==="large",[`${be}-textarea-show-count`]:Ze||((vt=qe.count)===null||vt===void 0?void 0:vt.show)},Ve)}),prefixCls:be,suffix:oe&&E.createElement("span",{className:`${be}-textarea-suffix`},se),showCount:Ze,ref:pe,onResize:nt,onMouseDown:Ne}))))})},23826:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return it}});var E=re(59301);function it(ge,Xe){const Ce=(0,E.useRef)([]),Oe=()=>{Ce.current.push(setTimeout(()=>{var Pe,Re,Ee,he;!((Pe=ge.current)===null||Pe===void 0)&&Pe.input&&((Re=ge.current)===null||Re===void 0?void 0:Re.input.getAttribute("type"))==="password"&&(!((Ee=ge.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((he=ge.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(Xe&&Oe(),()=>Ce.current.forEach(Pe=>{Pe&&clearTimeout(Pe)})),[]),Oe}},37568:function(on,Vt,re){"use strict";re.d(Vt,{default:function(){return _t}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(48755),Ce=re(56553),Oe=re(53075),Re=lt=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(Xe.E_),{prefixCls:ee,className:oe}=lt,se=ae("input-group",ee),ne=ae("input"),[pe,be,ct]=(0,Oe.ZP)(ne),Ie=ge()(se,ct,{[`${se}-lg`]:lt.size==="large",[`${se}-sm`]:lt.size==="small",[`${se}-compact`]:lt.compact,[`${se}-rtl`]:te==="rtl"},be,oe),Ve=(0,E.useContext)(Ce.aM),pt=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ve),{isFormItemInput:!1}),[Ve]);return pe(E.createElement("span",{className:Ie,style:lt.style,onMouseEnter:lt.onMouseEnter,onMouseLeave:lt.onMouseLeave,onFocus:lt.onFocus,onBlur:lt.onBlur},E.createElement(Ce.aM.Provider,{value:pt},lt.children)))},Ee=re(49397),he=re(94480),et=re(6089),Se=re(26112),ft=re(82855),We=re(31756),we=re(16931),Le=re(51636),Ae=re(64910);const Je=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 ot=(0,we.I$)(["Input","OTP"],lt=>{const ae=(0,Le.mergeToken)(lt,(0,Ae.e)(lt));return[Je(ae)]},Ae.T),At=re(16089),bt=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},ut=E.forwardRef((lt,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=lt,pe=bt(lt,["value","onChange","onActiveChange","index","mask"]),be=te&&typeof ne=="string"?ne:te,ct=Ot=>{ee(se,Ot.target.value)},Ie=E.useRef(null);E.useImperativeHandle(ae,()=>Ie.current);const Ve=()=>{(0,At.Z)(()=>{var Ot;const qt=(Ot=Ie.current)===null||Ot===void 0?void 0:Ot.input;document.activeElement===qt&&qt&&qt.select()})},pt=Ot=>{const{key:qt,ctrlKey:Kt,metaKey:Ut}=Ot;qt==="ArrowLeft"?oe(se-1):qt==="ArrowRight"?oe(se+1):qt==="z"&&(Kt||Ut)&&Ot.preventDefault(),Ve()},Dt=Ot=>{Ot.key==="Backspace"&&!te&&oe(se-1),Ve()};return E.createElement(Ee.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Ie,value:be,onInput:ct,onFocus:Ve,onKeyDown:pt,onKeyUp:Dt,onMouseDown:Ve,onMouseUp:Ve}))}),qe=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 Nt(lt){return(lt||"").split("")}const vt=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 kt=E.forwardRef((lt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:be,separator:ct,variant:Ie,disabled:Ve,status:pt,autoFocus:Dt,mask:Ot,type:qt,onInput:Kt,inputMode:Ut}=lt,Pt=qe(lt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:wt,direction:mt}=E.useContext(Xe.E_),dt=wt("otp",te),en=(0,Se.Z)(Pt,{aria:!0,data:!0,attr:!0}),[Gt,Ne,nt]=ot(dt),Ke=(0,We.Z)(Rt=>oe!=null?oe:Rt),It=E.useContext(Ce.aM),Me=(0,ft.F)(It.status,pt),Ye=E.useMemo(()=>Object.assign(Object.assign({},It),{status:Me,hasFeedback:!1,feedbackIcon:null}),[It,Me]),gt=E.useRef(null),Et=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var Rt;(Rt=Et.current[0])===null||Rt===void 0||Rt.focus()},blur:()=>{var Rt;for(let Lt=0;Lt<ee;Lt+=1)(Rt=Et.current[Lt])===null||Rt===void 0||Rt.blur()},nativeElement:gt.current}));const jt=Rt=>be?be(Rt):Rt,[ln,wn]=E.useState(()=>Nt(jt(se||"")));E.useEffect(()=>{ne!==void 0&&wn(Nt(ne))},[ne]);const Sn=(0,et.Z)(Rt=>{wn(Rt),Kt&&Kt(Rt),pe&&Rt.length===ee&&Rt.every(Lt=>Lt)&&Rt.some((Lt,Ct)=>ln[Ct]!==Lt)&&pe(Rt.join(""))}),rn=(0,et.Z)((Rt,Lt)=>{let Ct=(0,he.Z)(ln);for(let Qt=0;Qt<Rt;Qt+=1)Ct[Qt]||(Ct[Qt]="");Lt.length<=1?Ct[Rt]=Lt:Ct=Ct.slice(0,Rt).concat(Nt(Lt)),Ct=Ct.slice(0,ee);for(let Qt=Ct.length-1;Qt>=0&&!Ct[Qt];Qt-=1)Ct.pop();const Jt=jt(Ct.map(Qt=>Qt||" ").join(""));return Ct=Nt(Jt).map((Qt,tn)=>Qt===" "&&!Ct[tn]?Ct[tn]:Qt),Ct}),pn=(Rt,Lt)=>{var Ct;const Jt=rn(Rt,Lt),Qt=Math.min(Rt+Lt.length,ee-1);Qt!==Rt&&Jt[Rt]!==void 0&&((Ct=Et.current[Qt])===null||Ct===void 0||Ct.focus()),Sn(Jt)},dn=Rt=>{var Lt;(Lt=Et.current[Rt])===null||Lt===void 0||Lt.focus()},Yt={variant:Ie,disabled:Ve,status:Me,mask:Ot,type:qt,inputMode:Ut};return Gt(E.createElement("div",Object.assign({},en,{ref:gt,className:ge()(dt,{[`${dt}-sm`]:Ke==="small",[`${dt}-lg`]:Ke==="large",[`${dt}-rtl`]:mt==="rtl"},nt,Ne)}),E.createElement(Ce.aM.Provider,{value:Ye},Array.from({length:ee}).map((Rt,Lt)=>{const Ct=`otp-${Lt}`,Jt=ln[Lt]||"";return E.createElement(E.Fragment,{key:Ct},E.createElement(ut,Object.assign({ref:Qt=>{Et.current[Lt]=Qt},index:Lt,size:Ke,htmlSize:1,className:`${dt}-input`,onChange:pn,value:Jt,onActiveChange:dn,autoFocus:Lt===0&&Dt},Yt)),Lt<ee-1&&E.createElement(vt,{separator:ct,index:Lt,prefixCls:dt}))}))))}),Be=re(73331),Ge=re(15277),_e=re(2738),ue=re(8654),Qe=re(2171),Te=re(23826),De=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 ht=lt=>lt?E.createElement(Ge.Z,null):E.createElement(Be.Z,null),me={click:"onClick",hover:"onMouseOver"};var Ze=E.forwardRef((lt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=ht}=lt,ne=E.useContext(Qe.Z),pe=te!=null?te:ne,be=typeof oe=="object"&&oe.visible!==void 0,[ct,Ie]=(0,E.useState)(()=>be?oe.visible:!1),Ve=(0,E.useRef)(null);E.useEffect(()=>{be&&Ie(oe.visible)},[be,oe]);const pt=(0,Te.Z)(Ve),Dt=()=>{var Ke;if(pe)return;ct&&pt();const It=!ct;Ie(It),typeof oe=="object"&&((Ke=oe.onVisibleChange)===null||Ke===void 0||Ke.call(oe,It))},Ot=Ke=>{const It=me[ee]||"",Me=se(ct),Ye={[It]:Dt,className:`${Ke}-icon`,key:"passwordIcon",onMouseDown:gt=>{gt.preventDefault()},onMouseUp:gt=>{gt.preventDefault()}};return E.cloneElement(E.isValidElement(Me)?Me:E.createElement("span",null,Me),Ye)},{className:qt,prefixCls:Kt,inputPrefixCls:Ut,size:Pt}=lt,wt=De(lt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:mt}=E.useContext(Xe.E_),dt=mt("input",Ut),en=mt("input-password",Kt),Gt=oe&&Ot(en),Ne=ge()(en,qt,{[`${en}-${Pt}`]:!!Pt}),nt=Object.assign(Object.assign({},(0,_e.Z)(wt,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:Ne,prefixCls:dt,suffix:Gt});return Pt&&(nt.size=Pt),E.createElement(Ee.Z,Object.assign({ref:(0,ue.sQ)(ae,Ve)},nt))}),Tt=re(47472),St=re(22703),ve=re(7939),$e=re(70045),je=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:se,suffix:ne,enterButton:pe=!1,addonAfter:be,loading:ct,disabled:Ie,onSearch:Ve,onChange:pt,onCompositionStart:Dt,onCompositionEnd:Ot}=lt,qt=je(lt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Kt,direction:Ut}=E.useContext(Xe.E_),Pt=E.useRef(!1),wt=Kt("input-search",te),mt=Kt("input",ee),{compactSize:dt}=(0,$e.ri)(wt,Ut),en=(0,We.Z)(pn=>{var dn;return(dn=se!=null?se:dt)!==null&&dn!==void 0?dn:pn}),Gt=E.useRef(null),Ne=pn=>{pn!=null&&pn.target&&pn.type==="click"&&Ve&&Ve(pn.target.value,pn,{source:"clear"}),pt==null||pt(pn)},nt=pn=>{var dn;document.activeElement===((dn=Gt.current)===null||dn===void 0?void 0:dn.input)&&pn.preventDefault()},Ke=pn=>{var dn,Yt;Ve&&Ve((Yt=(dn=Gt.current)===null||dn===void 0?void 0:dn.input)===null||Yt===void 0?void 0:Yt.value,pn,{source:"input"})},It=pn=>{Pt.current||ct||Ke(pn)},Me=typeof pe=="boolean"?E.createElement(Tt.Z,null):null,Ye=`${wt}-button`;let gt;const Et=pe||{},jt=Et.type&&Et.type.__ANT_BUTTON===!0;jt||Et.type==="button"?gt=(0,St.Tm)(Et,Object.assign({onMouseDown:nt,onClick:pn=>{var dn,Yt;(Yt=(dn=Et==null?void 0:Et.props)===null||dn===void 0?void 0:dn.onClick)===null||Yt===void 0||Yt.call(dn,pn),Ke(pn)},key:"enterButton"},jt?{className:Ye,size:en}:{})):gt=E.createElement(ve.ZP,{className:Ye,type:pe?"primary":void 0,size:en,disabled:Ie,key:"enterButton",onMouseDown:nt,onClick:Ke,loading:ct,icon:Me},pe),be&&(gt=[gt,(0,St.Tm)(be,{key:"addonAfter"})]);const ln=ge()(wt,{[`${wt}-rtl`]:Ut==="rtl",[`${wt}-${en}`]:!!en,[`${wt}-with-button`]:!!pe},oe),wn=Object.assign(Object.assign({},qt),{className:ln,prefixCls:mt,type:"search"}),Sn=pn=>{Pt.current=!0,Dt==null||Dt(pn)},rn=pn=>{Pt.current=!1,Ot==null||Ot(pn)};return E.createElement(Ee.Z,Object.assign({ref:(0,ue.sQ)(Gt,ae),onPressEnter:It},wn,{size:en,onCompositionStart:Sn,onCompositionEnd:rn,addonAfter:gt,suffix:ne,onChange:Ne,disabled:Ie}))}),Ht=re(79809);const Fe=Ee.Z;Fe.Group=Re,Fe.Search=Bt,Fe.TextArea=Ht.Z,Fe.Password=Ze,Fe.OTP=kt;var _t=Fe},24303:function(on,Vt,re){"use strict";re.d(Vt,{D:function(){return qe},Z:function(){return at}});var E=re(59301),it=re(54476),ge={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"},Xe=ge,Ce=re(7657),Oe=function(Be,Ge){return E.createElement(Ce.Z,(0,it.Z)({},Be,{ref:Ge,icon:Xe}))},Pe=E.forwardRef(Oe),Re=Pe,Ee=re(33853),he=re(38819),et=re(92310),Se=re.n(et),ft=re(2738),We=re(48755),we=re(6989),Le=re(36237),Ae=re(48923),Je=re(16931);const ot=kt=>{const{componentCls:Be,siderBg:Ge,motionDurationMid:_e,motionDurationSlow:ue,antCls:Qe,triggerHeight:Te,triggerColor:De,triggerBg:ht,headerHeight:me,zeroTriggerWidth:ce,zeroTriggerHeight:Ze,borderRadiusLG:Tt,lightSiderBg:St,lightTriggerColor:ve,lightTriggerBg:$e,bodyBg:je}=kt;return{[Be]:{position:"relative",minWidth:0,background:Ge,transition:`all ${_e}, background 0s`,"&-has-trigger":{paddingBottom:Te},"&-right":{order:1},[`${Be}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Qe}-menu${Qe}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Be}-children`]:{overflow:"hidden"},[`${Be}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Te,color:De,lineHeight:(0,Le.unit)(Te),textAlign:"center",background:ht,cursor:"pointer",transition:`all ${_e}`},[`${Be}-zero-width-trigger`]:{position:"absolute",top:me,insetInlineEnd:kt.calc(ce).mul(-1).equal(),zIndex:1,width:ce,height:Ze,color:De,fontSize:kt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ge,borderRadius:`0 ${(0,Le.unit)(Tt)} ${(0,Le.unit)(Tt)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:kt.calc(ce).mul(-1).equal(),borderRadius:`${(0,Le.unit)(Tt)} 0 0 ${(0,Le.unit)(Tt)}`}},"&-light":{background:St,[`${Be}-trigger`]:{color:ve,background:$e},[`${Be}-zero-width-trigger`]:{color:ve,background:$e,border:`1px solid ${je}`,borderInlineStart:0}}}}};var At=(0,Je.I$)(["Layout","Sider"],kt=>[ot(kt)],Ae.eh,{deprecatedTokens:Ae.jn}),bt=function(kt,Be){var Ge={};for(var _e in kt)Object.prototype.hasOwnProperty.call(kt,_e)&&Be.indexOf(_e)<0&&(Ge[_e]=kt[_e]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,_e=Object.getOwnPropertySymbols(kt);ue<_e.length;ue++)Be.indexOf(_e[ue])<0&&Object.prototype.propertyIsEnumerable.call(kt,_e[ue])&&(Ge[_e[ue]]=kt[_e[ue]]);return Ge};const st={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ut=kt=>!Number.isNaN(Number.parseFloat(kt))&&isFinite(kt),qe=E.createContext({}),Nt=(()=>{let kt=0;return function(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return kt+=1,`${Be}${kt}`}})();var at=E.forwardRef((kt,Be)=>{const{prefixCls:Ge,className:_e,trigger:ue,children:Qe,defaultCollapsed:Te=!1,theme:De="dark",style:ht={},collapsible:me=!1,reverseArrow:ce=!1,width:Ze=200,collapsedWidth:Tt=80,zeroWidthTriggerStyle:St,breakpoint:ve,onCollapse:$e,onBreakpoint:je}=kt,Ft=bt(kt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Bt}=(0,E.useContext)(we.V),[Ht,Fe]=(0,E.useState)("collapsed"in kt?kt.collapsed:Te),[_t,lt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in kt&&Fe(kt.collapsed)},[kt.collapsed]);const ae=(en,Gt)=>{"collapsed"in kt||Fe(en),$e==null||$e(en,Gt)},{getPrefixCls:te,direction:ee}=(0,E.useContext)(We.E_),oe=te("layout-sider",Ge),[se,ne,pe]=At(oe),be=(0,E.useRef)(null);be.current=en=>{lt(en.matches),je==null||je(en.matches),Ht!==en.matches&&ae(en.matches,"responsive")},(0,E.useEffect)(()=>{function en(Ne){return be.current(Ne)}let Gt;if(typeof window!="undefined"){const{matchMedia:Ne}=window;if(Ne&&ve&&ve in st){Gt=Ne(`screen and (max-width: ${st[ve]})`);try{Gt.addEventListener("change",en)}catch(nt){Gt.addListener(en)}en(Gt)}}return()=>{try{Gt==null||Gt.removeEventListener("change",en)}catch(Ne){Gt==null||Gt.removeListener(en)}}},[ve]),(0,E.useEffect)(()=>{const en=Nt("ant-sider-");return Bt.addSider(en),()=>Bt.removeSider(en)},[]);const ct=()=>{ae(!Ht,"clickTrigger")},Ie=(0,ft.Z)(Ft,["collapsed"]),Ve=Ht?Tt:Ze,pt=ut(Ve)?`${Ve}px`:String(Ve),Dt=parseFloat(String(Tt||0))===0?E.createElement("span",{onClick:ct,className:Se()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ce?"right":"left"}`),style:St},ue||E.createElement(Re,null)):null,Ot=ee==="rtl"==!ce,Ut={expanded:Ot?E.createElement(he.Z,null):E.createElement(Ee.Z,null),collapsed:Ot?E.createElement(Ee.Z,null):E.createElement(he.Z,null)}[Ht?"collapsed":"expanded"],Pt=ue!==null?Dt||E.createElement("div",{className:`${oe}-trigger`,onClick:ct,style:{width:pt}},ue||Ut):null,wt=Object.assign(Object.assign({},ht),{flex:`0 0 ${pt}`,maxWidth:pt,minWidth:pt,width:pt}),mt=Se()(oe,`${oe}-${De}`,{[`${oe}-collapsed`]:!!Ht,[`${oe}-has-trigger`]:me&&ue!==null&&!Dt,[`${oe}-below`]:!!_t,[`${oe}-zero-width`]:parseFloat(pt)===0},_e,ne,pe),dt=E.useMemo(()=>({siderCollapsed:Ht}),[Ht]);return se(E.createElement(qe.Provider,{value:dt},E.createElement("aside",Object.assign({className:mt},Ie,{style:wt,ref:Be}),E.createElement("div",{className:`${oe}-children`},Qe),me||_t&&Dt?Pt:null)))})},6989:function(on,Vt,re){"use strict";re.d(Vt,{V:function(){return it}});var E=re(59301);const it=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(on,Vt,re){"use strict";re.d(Vt,{eh:function(){return Xe},jn:function(){return Ce}});var E=re(36237),it=re(16931);const ge=Oe=>{const{antCls:Pe,componentCls:Re,colorText:Ee,footerBg:he,headerHeight:et,headerPadding:Se,headerColor:ft,footerPadding:We,fontSize:we,bodyBg:Le,headerBg:Ae}=Oe;return{[Re]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Le,"&, *":{boxSizing:"border-box"},[`&${Re}-has-sider`]:{flexDirection:"row",[`> ${Re}, > ${Re}-content`]:{width:0}},[`${Re}-header, &${Re}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Re}-header`]:{height:et,padding:Se,color:ft,lineHeight:(0,E.unit)(et),background:Ae,[`${Pe}-menu`]:{lineHeight:"inherit"}},[`${Re}-footer`]:{padding:We,color:Ee,fontSize:we,background:he},[`${Re}-content`]:{flex:"auto",color:Ee,minHeight:0}}},Xe=Oe=>{const{colorBgLayout:Pe,controlHeight:Re,controlHeightLG:Ee,colorText:he,controlHeightSM:et,marginXXS:Se,colorTextLightSolid:ft,colorBgContainer:We}=Oe,we=Ee*1.25;return{colorBgHeader:"#001529",colorBgBody:Pe,colorBgTrigger:"#002140",bodyBg:Pe,headerBg:"#001529",headerHeight:Re*2,headerPadding:`0 ${we}px`,headerColor:he,footerPadding:`${et}px ${we}px`,footerBg:Pe,siderBg:"#001529",triggerHeight:Ee+Se*2,triggerBg:"#002140",triggerColor:ft,zeroTriggerWidth:Ee,zeroTriggerHeight:Ee,lightSiderBg:We,lightTriggerBg:We,lightTriggerColor:he}},Ce=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vt.ZP=(0,it.I$)("Layout",Oe=>[ge(Oe)],Xe,{deprecatedTokens:Ce})},78857:function(on,Vt,re){"use strict";re.d(Vt,{J:function(){return Oe}});var E=re(59301),it=re(8654),ge=re(62487),Xe=function(Pe,Re){var Ee={};for(var he in Pe)Object.prototype.hasOwnProperty.call(Pe,he)&&Re.indexOf(he)<0&&(Ee[he]=Pe[he]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,he=Object.getOwnPropertySymbols(Pe);et<he.length;et++)Re.indexOf(he[et])<0&&Object.prototype.propertyIsEnumerable.call(Pe,he[et])&&(Ee[he[et]]=Pe[he[et]]);return Ee};const Ce=E.createContext(null),Oe=E.forwardRef((Pe,Re)=>{const{children:Ee}=Pe,he=Xe(Pe,["children"]),et=E.useContext(Ce),Se=E.useMemo(()=>Object.assign(Object.assign({},et),he),[et,he.prefixCls,he.mode,he.selectable,he.rootClassName]),ft=(0,it.t4)(Ee),We=(0,it.x1)(Re,ft?(0,it.C4)(Ee):null);return E.createElement(Ce.Provider,{value:Se},E.createElement(ge.Z,{space:!0},ft?E.cloneElement(Ee,{ref:We}):Ee))});Vt.Z=Ce},93041:function(on,Vt,re){"use strict";re.d(Vt,{default:function(){return se}});var E=re(59301),it=re(28321),ge=re(24303),Xe=re(18785),Ce=re(92310),Oe=re.n(Ce),Pe=re(6089),Re=re(2738),Ee=re(86641),he=re(22703),et=re(48755),Se=re(83397),We=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),we=function(ne,pe){var be={};for(var ct in ne)Object.prototype.hasOwnProperty.call(ne,ct)&&pe.indexOf(ct)<0&&(be[ct]=ne[ct]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,ct=Object.getOwnPropertySymbols(ne);Ie<ct.length;Ie++)pe.indexOf(ct[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ne,ct[Ie])&&(be[ct[Ie]]=ne[ct[Ie]]);return be},Ae=ne=>{const{prefixCls:pe,className:be,dashed:ct}=ne,Ie=we(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ve}=E.useContext(et.E_),pt=Ve("menu",pe),Dt=Oe()({[`${pt}-item-divider-dashed`]:!!ct},be);return E.createElement(it.iz,Object.assign({className:Dt},Ie))},Je=re(11592),ot=re(25399),bt=ne=>{var pe;const{className:be,children:ct,icon:Ie,title:Ve,danger:pt,extra:Dt}=ne,{prefixCls:Ot,firstLevel:qt,direction:Kt,disableMenuItemTitleTooltip:Ut,inlineCollapsed:Pt}=E.useContext(We),wt=nt=>{const Ke=ct==null?void 0:ct[0],It=E.createElement("span",{className:Oe()(`${Ot}-title-content`,{[`${Ot}-title-content-with-extra`]:!!Dt||Dt===0})},ct);return(!Ie||E.isValidElement(ct)&&ct.type==="span")&&ct&&nt&&qt&&typeof Ke=="string"?E.createElement("div",{className:`${Ot}-inline-collapsed-noicon`},Ke.charAt(0)):It},{siderCollapsed:mt}=E.useContext(ge.D);let dt=Ve;typeof Ve=="undefined"?dt=qt?ct:"":Ve===!1&&(dt="");const en={title:dt};!mt&&!Pt&&(en.title=null,en.open=!1);const Gt=(0,Je.Z)(ct).length;let Ne=E.createElement(it.ck,Object.assign({},(0,Re.Z)(ne,["title","icon","danger"]),{className:Oe()({[`${Ot}-item-danger`]:pt,[`${Ot}-item-only-child`]:(Ie?Gt+1:Gt)===1},be),title:typeof Ve=="string"?Ve:void 0}),(0,he.Tm)(Ie,{className:Oe()(E.isValidElement(Ie)?(pe=Ie.props)===null||pe===void 0?void 0:pe.className:"",`${Ot}-item-icon`)}),wt(Pt));return Ut||(Ne=E.createElement(ot.Z,Object.assign({},en,{placement:Kt==="rtl"?"left":"right",classNames:{root:`${Ot}-inline-collapsed-tooltip`}}),Ne)),Ne},st=re(78857),ut=re(36237),qe=re(17835),Nt=re(63356),vt=re(34961),at=re(46e3),kt=re(34925),Be=re(16931),Ge=re(51636),ue=ne=>{const{componentCls:pe,motionDurationSlow:be,horizontalLineHeight:ct,colorSplit:Ie,lineWidth:Ve,lineType:pt,itemPaddingInline:Dt}=ne;return{[`${pe}-horizontal`]:{lineHeight:ct,border:0,borderBottom:`${(0,ut.unit)(Ve)} ${pt} ${Ie}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Dt},[`> ${pe}-item:hover,
> ${pe}-item-active,
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},Te=ne=>{let{componentCls:pe,menuArrowOffset:be,calc:ct}=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,ut.unit)(ct(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ut.unit)(be)})`}}}}};const De=ne=>Object.assign({},(0,Nt.oN)(ne));var me=(ne,pe)=>{const{componentCls:be,itemColor:ct,itemSelectedColor:Ie,subMenuItemSelectedColor:Ve,groupTitleColor:pt,itemBg:Dt,subMenuItemBg:Ot,itemSelectedBg:qt,activeBarHeight:Kt,activeBarWidth:Ut,activeBarBorderWidth:Pt,motionDurationSlow:wt,motionEaseInOut:mt,motionEaseOut:dt,itemPaddingInline:en,motionDurationMid:Gt,itemHoverColor:Ne,lineType:nt,colorSplit:Ke,itemDisabledColor:It,dangerItemColor:Me,dangerItemHoverColor:Ye,dangerItemSelectedColor:gt,dangerItemActiveBg:Et,dangerItemSelectedBg:jt,popupBg:ln,itemHoverBg:wn,itemActiveBg:Sn,menuSubMenuBg:rn,horizontalItemSelectedColor:pn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:Yt,horizontalItemHoverBg:Rt}=ne;return{[`${be}-${pe}, ${be}-${pe} > ${be}`]:{color:ct,background:Dt,[`&${be}-root:focus-visible`]:Object.assign({},De(ne)),[`${be}-item`]:{"&-group-title, &-extra":{color:pt}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:Ve},[`${be}-item, ${be}-submenu-title`]:{color:ct,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},De(ne))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${It} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:Ne}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:wn},"&:active":{backgroundColor:Sn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:wn},"&:active":{backgroundColor:Sn}}},[`${be}-item-danger`]:{color:Me,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:Ye}},[`&${be}-item:active`]:{background:Et}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Ie,[`&${be}-item-danger`]:{color:gt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:qt,[`&${be}-item-danger`]:{backgroundColor:jt}},[`&${be}-submenu > ${be}`]:{backgroundColor:rn},[`&${be}-popup > ${be}`]:{backgroundColor:ln},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:ln},[`&${be}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:Pt,marginTop:ne.calc(Pt).mul(-1).equal(),marginBottom:0,borderRadius:Yt,"&::after":{position:"absolute",insetInline:en,bottom:0,borderBottom:`${(0,ut.unit)(Kt)} solid transparent`,transition:`border-color ${wt} ${mt}`,content:'""'},"&:hover, &-active, &-open":{background:Rt,"&::after":{borderBottomWidth:Kt,borderBottomColor:pn}},"&-selected":{color:pn,backgroundColor:dn,"&:hover":{backgroundColor:dn},"&::after":{borderBottomWidth:Kt,borderBottomColor:pn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,ut.unit)(Pt)} ${nt} ${Ke}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:Ot},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ut.unit)(Ut)} solid ${Ie}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Gt} ${dt}`,`opacity ${Gt} ${dt}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:gt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Gt} ${mt}`,`opacity ${Gt} ${mt}`].join(",")}}}}}};const ce=ne=>{const{componentCls:pe,itemHeight:be,itemMarginInline:ct,padding:Ie,menuArrowSize:Ve,marginXS:pt,itemMarginBlock:Dt,itemWidth:Ot,itemPaddingInline:qt}=ne,Kt=ne.calc(Ve).add(Ie).add(pt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:be,lineHeight:(0,ut.unit)(be),paddingInline:qt,overflow:"hidden",textOverflow:"ellipsis",marginInline:ct,marginBlock:Dt,width:Ot},[`> ${pe}-item,
> ${pe}-submenu > ${pe}-submenu-title`]:{height:be,lineHeight:(0,ut.unit)(be)},[`${pe}-item-group-list ${pe}-submenu-title,
${pe}-submenu-title`]:{paddingInlineEnd:Kt}}};var Tt=ne=>{const{componentCls:pe,iconCls:be,itemHeight:ct,colorTextLightSolid:Ie,dropdownWidth:Ve,controlHeightLG:pt,motionEaseOut:Dt,paddingXL:Ot,itemMarginInline:qt,fontSizeLG:Kt,motionDurationFast:Ut,motionDurationSlow:Pt,paddingXS:wt,boxShadowSecondary:mt,collapsedWidth:dt,collapsedIconSize:en}=ne,Gt={height:ct,lineHeight:(0,ut.unit)(ct),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:mt})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Ve,maxHeight:`calc(100vh - ${(0,ut.unit)(ne.calc(pt).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 ${Pt}`,`background ${Pt}`,`padding ${Ut} ${Dt}`].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`]:Gt,[`& ${pe}-item-group-title`]:{paddingInlineStart:Ot}},[`${pe}-item`]:Gt}},{[`${pe}-inline-collapsed`]:{width:dt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Kt,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,ut.unit)(ne.calc(en).div(2).equal())} - ${(0,ut.unit)(qt)})`,textOverflow:"clip",[`
${pe}-submenu-arrow,
${pe}-submenu-expand-icon
`]:{opacity:0},[`${pe}-item-icon, ${be}`]:{margin:0,fontSize:en,lineHeight:(0,ut.unit)(ct),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Ie}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Nt.vS),{paddingInline:wt})}}]};const St=ne=>{const{componentCls:pe,motionDurationSlow:be,motionDurationMid:ct,motionEaseInOut:Ie,motionEaseOut:Ve,iconCls:pt,iconSize:Dt,iconMarginInlineEnd:Ot}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Ie}`].join(","),[`${pe}-item-icon, ${pt}`]:{minWidth:Dt,fontSize:Dt,transition:[`font-size ${ct} ${Ve}`,`margin ${be} ${Ie}`,`color ${be}`].join(","),"+ span":{marginInlineStart:Ot,opacity:1,transition:[`opacity ${be} ${Ie}`,`margin ${be}`,`color ${be}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Nt.Ro)()),[`&${pe}-item-only-child`]:{[`> ${pt}, > ${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:be,motionEaseInOut:ct,borderRadius:Ie,menuArrowSize:Ve,menuArrowOffset:pt}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ve,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${ct}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ve).mul(.6).equal(),height:ne.calc(Ve).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ie,transition:[`background ${be} ${ct}`,`transform ${be} ${ct}`,`top ${be} ${ct}`,`color ${be} ${ct}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ut.unit)(ne.calc(pt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ut.unit)(pt)})`}}}}},$e=ne=>{const{antCls:pe,componentCls:be,fontSize:ct,motionDurationSlow:Ie,motionDurationMid:Ve,motionEaseInOut:pt,paddingXS:Dt,padding:Ot,colorSplit:qt,lineWidth:Kt,zIndexPopup:Ut,borderRadiusLG:Pt,subMenuItemBorderRadius:wt,menuArrowSize:mt,menuArrowOffset:dt,lineType:en,groupTitleLineHeight:Gt,groupTitleFontSize:Ne}=ne;return[{"":{[be]:Object.assign(Object.assign({},(0,Nt.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nt.Wf)(ne)),(0,Nt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ct,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ie} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,ut.unit)(Dt)} ${(0,ut.unit)(Ot)}`,fontSize:Ne,lineHeight:Gt,transition:`all ${Ie}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Ie} ${pt}`,`background ${Ie} ${pt}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Ie} ${pt}`,`background ${Ie} ${pt}`,`padding ${Ve} ${pt}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Ie} ${pt}`,`padding ${Ie} ${pt}`].join(",")},[`${be}-title-content`]:{transition:`color ${Ie}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:qt,borderStyle:en,borderWidth:0,borderTopWidth:Kt,marginBlock:Kt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),St(ne)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,ut.unit)(ne.calc(ct).mul(2).equal())} ${(0,ut.unit)(Ot)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ut,borderRadius:Pt,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pt},St(ne)),ve(ne)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:wt},[`${be}-submenu-title::after`]:{transition:`transform ${Ie} ${pt}`}})},"\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 ${be}-submenu-arrow,
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ut.unit)(dt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ut.unit)(ne.calc(dt).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,ut.unit)(ne.calc(mt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ut.unit)(ne.calc(dt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ut.unit)(dt)})`}}})},{[`${pe}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},je=ne=>{var pe,be,ct;const{colorPrimary:Ie,colorError:Ve,colorTextDisabled:pt,colorErrorBg:Dt,colorText:Ot,colorTextDescription:qt,colorBgContainer:Kt,colorFillAlter:Ut,colorFillContent:Pt,lineWidth:wt,lineWidthBold:mt,controlItemBgActive:dt,colorBgTextHover:en,controlHeightLG:Gt,lineHeight:Ne,colorBgElevated:nt,marginXXS:Ke,padding:It,fontSize:Me,controlHeightSM:Ye,fontSizeLG:gt,colorTextLightSolid:Et,colorErrorHover:jt}=ne,ln=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,wn=(be=ne.activeBarBorderWidth)!==null&&be!==void 0?be:wt,Sn=(ct=ne.itemMarginInline)!==null&&ct!==void 0?ct:ne.marginXXS,rn=new qe.FastColor(Et).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:Ot,itemColor:Ot,colorItemTextHover:Ot,itemHoverColor:Ot,colorItemTextHoverHorizontal:Ie,horizontalItemHoverColor:Ie,colorGroupTitle:qt,groupTitleColor:qt,colorItemTextSelected:Ie,itemSelectedColor:Ie,subMenuItemSelectedColor:Ie,colorItemTextSelectedHorizontal:Ie,horizontalItemSelectedColor:Ie,colorItemBg:Kt,itemBg:Kt,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Pt,itemActiveBg:dt,colorSubItemBg:Ut,subMenuItemBg:Ut,colorItemBgSelected:dt,itemSelectedBg:dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:ln,colorActiveBarHeight:mt,activeBarHeight:mt,colorActiveBarBorderSize:wt,activeBarBorderWidth:wn,colorItemTextDisabled:pt,itemDisabledColor:pt,colorDangerItemText:Ve,dangerItemColor:Ve,colorDangerItemTextHover:Ve,dangerItemHoverColor:Ve,colorDangerItemTextSelected:Ve,dangerItemSelectedColor:Ve,colorDangerItemBgActive:Dt,dangerItemActiveBg:Dt,colorDangerItemBgSelected:Dt,dangerItemSelectedBg:Dt,itemMarginInline:Sn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Gt,groupTitleLineHeight:Ne,collapsedWidth:Gt*2,popupBg:nt,itemMarginBlock:Ke,itemPaddingInline:It,horizontalLineHeight:`${Gt*1.15}px`,iconSize:Me,iconMarginInlineEnd:Ye-Me,collapsedIconSize:gt,groupTitleFontSize:Me,darkItemDisabledColor:new qe.FastColor(Et).setA(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:Ve,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Et,darkItemSelectedBg:Ie,darkDangerItemSelectedBg:Ve,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Et,darkDangerItemHoverColor:jt,darkDangerItemSelectedColor:Et,darkDangerItemActiveBg:Ve,itemWidth:ln?`calc(100% + ${wn}px)`:`calc(100% - ${Sn*2}px)`}};var Ft=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Be.I$)("Menu",Ie=>{const{colorBgElevated:Ve,controlHeightLG:pt,fontSize:Dt,darkItemColor:Ot,darkDangerItemColor:qt,darkItemBg:Kt,darkSubMenuItemBg:Ut,darkItemSelectedColor:Pt,darkItemSelectedBg:wt,darkDangerItemSelectedBg:mt,darkItemHoverBg:dt,darkGroupTitleColor:en,darkItemHoverColor:Gt,darkItemDisabledColor:Ne,darkDangerItemHoverColor:nt,darkDangerItemSelectedColor:Ke,darkDangerItemActiveBg:It,popupBg:Me,darkPopupBg:Ye}=Ie,gt=Ie.calc(Dt).div(7).mul(5).equal(),Et=(0,Ge.mergeToken)(Ie,{menuArrowSize:gt,menuHorizontalHeight:Ie.calc(pt).mul(1.15).equal(),menuArrowOffset:Ie.calc(gt).mul(.25).equal(),menuSubMenuBg:Ve,calc:Ie.calc,popupBg:Me}),jt=(0,Ge.mergeToken)(Et,{itemColor:Ot,itemHoverColor:Gt,groupTitleColor:en,itemSelectedColor:Pt,subMenuItemSelectedColor:Pt,itemBg:Kt,popupBg:Ye,subMenuItemBg:Ut,itemActiveBg:"transparent",itemSelectedBg:wt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:dt,itemDisabledColor:Ne,dangerItemColor:qt,dangerItemHoverColor:nt,dangerItemSelectedColor:Ke,dangerItemActiveBg:It,dangerItemSelectedBg:mt,menuSubMenuBg:Ut,horizontalItemSelectedColor:Pt,horizontalItemSelectedBg:wt});return[$e(Et),ue(Et),Tt(Et),me(Et,"light"),me(jt,"dark"),Te(Et),(0,vt.Z)(Et),(0,at.oN)(Et,"slide-up"),(0,at.oN)(Et,"slide-down"),(0,kt._y)(Et,"zoom-big")]},je,{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:be,unitless:{groupTitleLineHeight:!0}})(ne,pe)},Bt=re(75030),Fe=ne=>{var pe;const{popupClassName:be,icon:ct,title:Ie,theme:Ve}=ne,pt=E.useContext(We),{prefixCls:Dt,inlineCollapsed:Ot,theme:qt}=pt,Kt=(0,it.Xl)();let Ut;if(!ct)Ut=Ot&&!Kt.length&&Ie&&typeof Ie=="string"?E.createElement("div",{className:`${Dt}-inline-collapsed-noicon`},Ie.charAt(0)):E.createElement("span",{className:`${Dt}-title-content`},Ie);else{const mt=E.isValidElement(Ie)&&Ie.type==="span";Ut=E.createElement(E.Fragment,null,(0,he.Tm)(ct,{className:Oe()(E.isValidElement(ct)?(pe=ct.props)===null||pe===void 0?void 0:pe.className:"",`${Dt}-item-icon`)}),mt?Ie:E.createElement("span",{className:`${Dt}-title-content`},Ie))}const Pt=E.useMemo(()=>Object.assign(Object.assign({},pt),{firstLevel:!1}),[pt]),[wt]=(0,Bt.Cn)("Menu");return E.createElement(We.Provider,{value:Pt},E.createElement(it.Wd,Object.assign({},(0,Re.Z)(ne,["icon"]),{title:Ut,popupClassName:Oe()(Dt,be,`${Dt}-${Ve||qt}`),popupStyle:Object.assign({zIndex:wt},ne.popupStyle)})))},_t=function(ne,pe){var be={};for(var ct in ne)Object.prototype.hasOwnProperty.call(ne,ct)&&pe.indexOf(ct)<0&&(be[ct]=ne[ct]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,ct=Object.getOwnPropertySymbols(ne);Ie<ct.length;Ie++)pe.indexOf(ct[Ie])<0&&Object.prototype.propertyIsEnumerable.call(ne,ct[Ie])&&(be[ct[Ie]]=ne[ct[Ie]]);return be};function lt(ne){return ne===null||ne===!1}const ae={item:bt,submenu:Fe,divider:Ae};var ee=(0,E.forwardRef)((ne,pe)=>{var be;const ct=E.useContext(st.Z),Ie=ct||{},{getPrefixCls:Ve,getPopupContainer:pt,direction:Dt,menu:Ot}=E.useContext(et.E_),qt=Ve(),{prefixCls:Kt,className:Ut,style:Pt,theme:wt="light",expandIcon:mt,_internalDisableMenuItemTitleTooltip:dt,inlineCollapsed:en,siderCollapsed:Gt,rootClassName:Ne,mode:nt,selectable:Ke,onClick:It,overflowedIndicatorPopupClassName:Me}=ne,Ye=_t(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gt=(0,Re.Z)(Ye,["collapsedWidth"]);(be=Ie.validator)===null||be===void 0||be.call(Ie,{mode:nt});const Et=(0,Pe.Z)(function(){var Qt;It==null||It.apply(void 0,arguments),(Qt=Ie.onClick)===null||Qt===void 0||Qt.call(Ie)}),jt=Ie.mode||nt,ln=Ke!=null?Ke:Ie.selectable,wn=en!=null?en:Gt,Sn={horizontal:{motionName:`${qt}-slide-up`},inline:(0,Ee.Z)(qt),other:{motionName:`${qt}-zoom-big`}},rn=Ve("menu",Kt||Ie.prefixCls),pn=(0,Se.Z)(rn),[dn,Yt,Rt]=Ft(rn,pn,!ct),Lt=Oe()(`${rn}-${wt}`,Ot==null?void 0:Ot.className,Ut),Ct=E.useMemo(()=>{var Qt,tn;if(typeof mt=="function"||lt(mt))return mt||null;if(typeof Ie.expandIcon=="function"||lt(Ie.expandIcon))return Ie.expandIcon||null;if(typeof(Ot==null?void 0:Ot.expandIcon)=="function"||lt(Ot==null?void 0:Ot.expandIcon))return(Ot==null?void 0:Ot.expandIcon)||null;const un=(Qt=mt!=null?mt:Ie==null?void 0:Ie.expandIcon)!==null&&Qt!==void 0?Qt:Ot==null?void 0:Ot.expandIcon;return(0,he.Tm)(un,{className:Oe()(`${rn}-submenu-expand-icon`,E.isValidElement(un)?(tn=un.props)===null||tn===void 0?void 0:tn.className:void 0)})},[mt,Ie==null?void 0:Ie.expandIcon,Ot==null?void 0:Ot.expandIcon,rn]),Jt=E.useMemo(()=>({prefixCls:rn,inlineCollapsed:wn||!1,direction:Dt,firstLevel:!0,theme:wt,mode:jt,disableMenuItemTitleTooltip:dt}),[rn,wn,Dt,dt,wt]);return dn(E.createElement(st.Z.Provider,{value:null},E.createElement(We.Provider,{value:Jt},E.createElement(it.ZP,Object.assign({getPopupContainer:pt,overflowedIndicator:E.createElement(Xe.Z,null),overflowedIndicatorPopupClassName:Oe()(rn,`${rn}-${wt}`,Me),mode:jt,selectable:ln,onClick:Et},gt,{inlineCollapsed:wn,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Pt),className:Lt,prefixCls:rn,direction:Dt,defaultMotions:Sn,expandIcon:Ct,ref:pe,rootClassName:Oe()(Ne,Yt,Ie.rootClassName,Rt,pn),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((ne,pe)=>{const be=(0,E.useRef)(null),ct=E.useContext(ge.D);return(0,E.useImperativeHandle)(pe,()=>({menu:be.current,focus:Ie=>{var Ve;(Ve=be.current)===null||Ve===void 0||Ve.focus(Ie)}})),E.createElement(ee,Object.assign({ref:be},ne,ct))});oe.Item=bt,oe.SubMenu=Fe,oe.Divider=Ae,oe.ItemGroup=it.BW;var se=oe},89787:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Gt}});var E=re(59301),it=re(17835),ge=re(29679),Xe=re(40001),Ce=re(19248),Oe=re(99267),Pe=re(92310),Re=re.n(Pe),Ee=re(2738),he=re(48755),et=re(54476),Se=re(33885),ft=re(75931),We={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},we=function(){var nt=(0,E.useRef)([]),Ke=(0,E.useRef)(null);return(0,E.useEffect)(function(){var It=Date.now(),Me=!1;nt.current.forEach(function(Ye){if(Ye){Me=!0;var gt=Ye.style;gt.transitionDuration=".3s, .3s, .3s, .06s",Ke.current&&It-Ke.current<100&&(gt.transitionDuration="0s, 0s")}}),Me&&(Ke.current=Date.now())}),nt.current},Le=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ae=function(nt){var Ke=(0,Se.Z)((0,Se.Z)({},We),nt),It=Ke.className,Me=Ke.percent,Ye=Ke.prefixCls,gt=Ke.strokeColor,Et=Ke.strokeLinecap,jt=Ke.strokeWidth,ln=Ke.style,wn=Ke.trailColor,Sn=Ke.trailWidth,rn=Ke.transition,pn=(0,ft.Z)(Ke,Le);delete pn.gapPosition;var dn=Array.isArray(Me)?Me:[Me],Yt=Array.isArray(gt)?gt:[gt],Rt=we(),Lt=jt/2,Ct=100-jt/2,Jt="M ".concat(Et==="round"?Lt:0,",").concat(Lt,`
L `).concat(Et==="round"?Ct:100,",").concat(Lt),Qt="0 0 100 ".concat(jt),tn=0;return E.createElement("svg",(0,et.Z)({className:Re()("".concat(Ye,"-line"),It),viewBox:Qt,preserveAspectRatio:"none",style:ln},pn),E.createElement("path",{className:"".concat(Ye,"-line-trail"),d:Jt,strokeLinecap:Et,stroke:wn,strokeWidth:Sn||jt,fillOpacity:"0"}),dn.map(function(un,yn){var gn=1;switch(Et){case"round":gn=1-jt/100;break;case"square":gn=1-jt/2/100;break;default:gn=1;break}var On={strokeDasharray:"".concat(un*gn,"px, 100px"),strokeDashoffset:"-".concat(tn,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},En=Yt[yn]||Yt[Yt.length-1];return tn+=un,E.createElement("path",{key:yn,className:"".concat(Ye,"-line-path"),d:Jt,strokeLinecap:Et,stroke:En,strokeWidth:jt,fillOpacity:"0",ref:function(Bn){Rt[yn]=Bn},style:On})}))},Je=Ae,ot=re(76190),At=re(42978),bt=re(47273),st=0,ut=(0,bt.Z)();function qe(){var Ne;return ut?(Ne=st,st+=1):Ne="TEST_OR_SSR",Ne}var Nt=function(Ne){var nt=E.useState(),Ke=(0,At.Z)(nt,2),It=Ke[0],Me=Ke[1];return E.useEffect(function(){Me("rc_progress_".concat(qe()))},[]),Ne||It},vt=function(nt){var Ke=nt.bg,It=nt.children;return E.createElement("div",{style:{width:"100%",height:"100%",background:Ke}},It)};function at(Ne,nt){return Object.keys(Ne).map(function(Ke){var It=parseFloat(Ke),Me="".concat(Math.floor(It*nt),"%");return"".concat(Ne[Ke]," ").concat(Me)})}var kt=E.forwardRef(function(Ne,nt){var Ke=Ne.prefixCls,It=Ne.color,Me=Ne.gradientId,Ye=Ne.radius,gt=Ne.style,Et=Ne.ptg,jt=Ne.strokeLinecap,ln=Ne.strokeWidth,wn=Ne.size,Sn=Ne.gapDegree,rn=It&&(0,ot.Z)(It)==="object",pn=rn?"#FFF":void 0,dn=wn/2,Yt=E.createElement("circle",{className:"".concat(Ke,"-circle-path"),r:Ye,cx:dn,cy:dn,stroke:pn,strokeLinecap:jt,strokeWidth:ln,opacity:Et===0?0:1,style:gt,ref:nt});if(!rn)return Yt;var Rt="".concat(Me,"-conic"),Lt=Sn?"".concat(180+Sn/2,"deg"):"0deg",Ct=at(It,(360-Sn)/360),Jt=at(It,1),Qt="conic-gradient(from ".concat(Lt,", ").concat(Ct.join(", "),")"),tn="linear-gradient(to ".concat(Sn?"bottom":"top",", ").concat(Jt.join(", "),")");return E.createElement(E.Fragment,null,E.createElement("mask",{id:Rt},Yt),E.createElement("foreignObject",{x:0,y:0,width:wn,height:wn,mask:"url(#".concat(Rt,")")},E.createElement(vt,{bg:tn},E.createElement(vt,{bg:Qt}))))}),Be=kt,Ge=100,_e=function(nt,Ke,It,Me,Ye,gt,Et,jt,ln,wn){var Sn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=It/100*360*((360-gt)/360),pn=gt===0?0:{bottom:0,top:180,left:90,right:-90}[Et],dn=(100-Me)/100*Ke;ln==="round"&&Me!==100&&(dn+=wn/2,dn>=Ke&&(dn=Ke-.01));var Yt=Ge/2;return{stroke:typeof jt=="string"?jt:void 0,strokeDasharray:"".concat(Ke,"px ").concat(nt),strokeDashoffset:dn+Sn,transform:"rotate(".concat(Ye+rn+pn,"deg)"),transformOrigin:"".concat(Yt,"px ").concat(Yt,"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}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Qe(Ne){var nt=Ne!=null?Ne:[];return Array.isArray(nt)?nt:[nt]}var Te=function(nt){var Ke=(0,Se.Z)((0,Se.Z)({},We),nt),It=Ke.id,Me=Ke.prefixCls,Ye=Ke.steps,gt=Ke.strokeWidth,Et=Ke.trailWidth,jt=Ke.gapDegree,ln=jt===void 0?0:jt,wn=Ke.gapPosition,Sn=Ke.trailColor,rn=Ke.strokeLinecap,pn=Ke.style,dn=Ke.className,Yt=Ke.strokeColor,Rt=Ke.percent,Lt=(0,ft.Z)(Ke,ue),Ct=Ge/2,Jt=Nt(It),Qt="".concat(Jt,"-gradient"),tn=Ct-gt/2,un=Math.PI*2*tn,yn=ln>0?90+ln/2:-90,gn=un*((360-ln)/360),On=(0,ot.Z)(Ye)==="object"?Ye:{count:Ye,gap:2},En=On.count,Mn=On.gap,Bn=Qe(Rt),xt=Qe(Yt),$t=xt.find(function(ke){return ke&&(0,ot.Z)(ke)==="object"}),cn=$t&&(0,ot.Z)($t)==="object",an=cn?"butt":rn,ze=_e(un,gn,0,100,yn,ln,wn,Sn,an,gt),tt=we(),xe=function(){var Ue=0;return Bn.map(function(Mt,sn){var hn=xt[sn]||xt[xt.length-1],Cn=_e(un,gn,Ue,Mt,yn,ln,wn,hn,an,gt);return Ue+=Mt,E.createElement(Be,{key:sn,color:hn,ptg:Mt,radius:tn,prefixCls:Me,gradientId:Qt,style:Cn,strokeLinecap:an,strokeWidth:gt,gapDegree:ln,ref:function(Wt){tt[sn]=Wt},size:Ge})}).reverse()},He=function(){var Ue=Math.round(En*(Bn[0]/100)),Mt=100/En,sn=0;return new Array(En).fill(null).map(function(hn,Cn){var nn=Cn<=Ue-1?xt[0]:Sn,Wt=nn&&(0,ot.Z)(nn)==="object"?"url(#".concat(Qt,")"):void 0,zt=_e(un,gn,sn,Mt,yn,ln,wn,nn,"butt",gt,Mn);return sn+=(gn-zt.strokeDashoffset+Mn)*100/gn,E.createElement("circle",{key:Cn,className:"".concat(Me,"-circle-path"),r:tn,cx:Ct,cy:Ct,stroke:Wt,strokeWidth:gt,opacity:1,style:zt,ref:function(An){tt[Cn]=An}})})};return E.createElement("svg",(0,et.Z)({className:Re()("".concat(Me,"-circle"),dn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:pn,id:It,role:"presentation"},Lt),!En&&E.createElement("circle",{className:"".concat(Me,"-circle-trail"),r:tn,cx:Ct,cy:Ct,stroke:Sn,strokeLinecap:an,strokeWidth:Et||gt,style:ze}),En?He():xe())},De=Te,ht={Line:Je,Circle:De},me=re(25399),ce=re(68361);function Ze(Ne){return!Ne||Ne<0?0:Ne>100?100:Ne}function Tt(Ne){let{success:nt,successPercent:Ke}=Ne,It=Ke;return nt&&"progress"in nt&&(It=nt.progress),nt&&"percent"in nt&&(It=nt.percent),It}const St=Ne=>{let{percent:nt,success:Ke,successPercent:It}=Ne;const Me=Ze(Tt({success:Ke,successPercent:It}));return[Me,Ze(Ze(nt)-Me)]},ve=Ne=>{let{success:nt={},strokeColor:Ke}=Ne;const{strokeColor:It}=nt;return[It||ce.presetPrimaryColors.green,Ke||null]},$e=(Ne,nt,Ke)=>{var It,Me,Ye,gt;let Et=-1,jt=-1;if(nt==="step"){const ln=Ke.steps,wn=Ke.strokeWidth;typeof Ne=="string"||typeof Ne=="undefined"?(Et=Ne==="small"?2:14,jt=wn!=null?wn:8):typeof Ne=="number"?[Et,jt]=[Ne,Ne]:[Et=14,jt=8]=Array.isArray(Ne)?Ne:[Ne.width,Ne.height],Et*=ln}else if(nt==="line"){const ln=Ke==null?void 0:Ke.strokeWidth;typeof Ne=="string"||typeof Ne=="undefined"?jt=ln||(Ne==="small"?6:8):typeof Ne=="number"?[Et,jt]=[Ne,Ne]:[Et=-1,jt=8]=Array.isArray(Ne)?Ne:[Ne.width,Ne.height]}else(nt==="circle"||nt==="dashboard")&&(typeof Ne=="string"||typeof Ne=="undefined"?[Et,jt]=Ne==="small"?[60,60]:[120,120]:typeof Ne=="number"?[Et,jt]=[Ne,Ne]:Array.isArray(Ne)&&(Et=(Me=(It=Ne[0])!==null&&It!==void 0?It:Ne[1])!==null&&Me!==void 0?Me:120,jt=(gt=(Ye=Ne[0])!==null&&Ye!==void 0?Ye:Ne[1])!==null&&gt!==void 0?gt:120));return[Et,jt]},je=3,Ft=Ne=>je/Ne*100;var Ht=Ne=>{const{prefixCls:nt,trailColor:Ke=null,strokeLinecap:It="round",gapPosition:Me,gapDegree:Ye,width:gt=120,type:Et,children:jt,success:ln,size:wn=gt,steps:Sn}=Ne,[rn,pn]=$e(wn,"circle");let{strokeWidth:dn}=Ne;dn===void 0&&(dn=Math.max(Ft(rn),6));const Yt={width:rn,height:pn,fontSize:rn*.15+6},Rt=E.useMemo(()=>{if(Ye||Ye===0)return Ye;if(Et==="dashboard")return 75},[Ye,Et]),Lt=St(Ne),Ct=Me||Et==="dashboard"&&"bottom"||void 0,Jt=Object.prototype.toString.call(Ne.strokeColor)==="[object Object]",Qt=ve({success:ln,strokeColor:Ne.strokeColor}),tn=Re()(`${nt}-inner`,{[`${nt}-circle-gradient`]:Jt}),un=E.createElement(De,{steps:Sn,percent:Sn?Lt[1]:Lt,strokeWidth:dn,trailWidth:dn,strokeColor:Sn?Qt[1]:Qt,strokeLinecap:It,trailColor:Ke,prefixCls:nt,gapDegree:Rt,gapPosition:Ct}),yn=rn<=20,gn=E.createElement("div",{className:tn,style:Yt},un,!yn&&jt);return yn?E.createElement(me.Z,{title:jt},gn):gn},Fe=re(36237),_t=re(63356),lt=re(16931),ae=re(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Ne=>{const nt=Ne?"100%":"-100%";return new Fe.Keyframes(`antProgress${Ne?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${nt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${nt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Ne=>{const{componentCls:nt,iconCls:Ke}=Ne;return{[nt]:Object.assign(Object.assign({},(0,_t.Wf)(Ne)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ne.fontSize},[`${nt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${nt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ne.remainingColor,borderRadius:Ne.lineBorderRadius},[`${nt}-inner:not(${nt}-circle-gradient)`]:{[`${nt}-circle-path`]:{stroke:Ne.defaultColor}},[`${nt}-success-bg, ${nt}-bg`]:{position:"relative",background:Ne.defaultColor,borderRadius:Ne.lineBorderRadius,transition:`all ${Ne.motionDurationSlow} ${Ne.motionEaseInOutCirc}`},[`${nt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${nt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ne.marginXXS}},[`${nt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${nt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${nt}-text-inner`]:{color:Ne.colorWhite,[`&${nt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${nt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ne.colorSuccess},[`${nt}-text`]:{display:"inline-block",marginInlineStart:Ne.marginXS,color:Ne.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ke]:{fontSize:Ne.fontSize},[`&${nt}-text-outer`]:{width:"max-content"},[`&${nt}-text-outer${nt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ne.marginXS}},[`${nt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Fe.unit)(Ne.paddingXXS)}`,[`&${nt}-text-start`]:{justifyContent:"start"},[`&${nt}-text-end`]:{justifyContent:"end"}},[`&${nt}-status-active`]:{[`${nt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ne.colorBgContainer,borderRadius:Ne.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Ne.progressActiveMotionDuration,animationTimingFunction:Ne.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${nt}-rtl${nt}-status-active`]:{[`${nt}-bg::before`]:{animationName:oe(!0)}},[`&${nt}-status-exception`]:{[`${nt}-bg`]:{backgroundColor:Ne.colorError},[`${nt}-text`]:{color:Ne.colorError}},[`&${nt}-status-exception ${nt}-inner:not(${nt}-circle-gradient)`]:{[`${nt}-circle-path`]:{stroke:Ne.colorError}},[`&${nt}-status-success`]:{[`${nt}-bg`]:{backgroundColor:Ne.colorSuccess},[`${nt}-text`]:{color:Ne.colorSuccess}},[`&${nt}-status-success ${nt}-inner:not(${nt}-circle-gradient)`]:{[`${nt}-circle-path`]:{stroke:Ne.colorSuccess}}})}},ne=Ne=>{const{componentCls:nt,iconCls:Ke}=Ne;return{[nt]:{[`${nt}-circle-trail`]:{stroke:Ne.remainingColor},[`&${nt}-circle ${nt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${nt}-circle ${nt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ne.circleTextColor,fontSize:Ne.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ke]:{fontSize:Ne.circleIconFontSize}},[`${nt}-circle&-status-exception`]:{[`${nt}-text`]:{color:Ne.colorError}},[`${nt}-circle&-status-success`]:{[`${nt}-text`]:{color:Ne.colorSuccess}}},[`${nt}-inline-circle`]:{lineHeight:1,[`${nt}-inner`]:{verticalAlign:"bottom"}}}},pe=Ne=>{const{componentCls:nt}=Ne;return{[nt]:{[`${nt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ne.progressStepMinWidth,marginInlineEnd:Ne.progressStepMarginInlineEnd,backgroundColor:Ne.remainingColor,transition:`all ${Ne.motionDurationSlow}`,"&-active":{backgroundColor:Ne.defaultColor}}}}}},be=Ne=>{const{componentCls:nt,iconCls:Ke}=Ne;return{[nt]:{[`${nt}-small&-line, ${nt}-small&-line ${nt}-text ${Ke}`]:{fontSize:Ne.fontSizeSM}}}},ct=Ne=>({circleTextColor:Ne.colorText,defaultColor:Ne.colorInfo,remainingColor:Ne.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ne.fontSize/Ne.fontSizeSM}em`});var Ie=(0,lt.I$)("Progress",Ne=>{const nt=Ne.calc(Ne.marginXXS).div(2).equal(),Ke=(0,ae.mergeToken)(Ne,{progressStepMarginInlineEnd:nt,progressStepMinWidth:nt,progressActiveMotionDuration:"2.4s"});return[se(Ke),ne(Ke),pe(Ke),be(Ke)]},ct),Ve=function(Ne,nt){var Ke={};for(var It in Ne)Object.prototype.hasOwnProperty.call(Ne,It)&&nt.indexOf(It)<0&&(Ke[It]=Ne[It]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,It=Object.getOwnPropertySymbols(Ne);Me<It.length;Me++)nt.indexOf(It[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,It[Me])&&(Ke[It[Me]]=Ne[It[Me]]);return Ke};const pt=Ne=>{let nt=[];return Object.keys(Ne).forEach(Ke=>{const It=parseFloat(Ke.replace(/%/g,""));Number.isNaN(It)||nt.push({key:It,value:Ne[Ke]})}),nt=nt.sort((Ke,It)=>Ke.key-It.key),nt.map(Ke=>{let{key:It,value:Me}=Ke;return`${Me} ${It}%`}).join(", ")},Dt=(Ne,nt)=>{const{from:Ke=ce.presetPrimaryColors.blue,to:It=ce.presetPrimaryColors.blue,direction:Me=nt==="rtl"?"to left":"to right"}=Ne,Ye=Ve(Ne,["from","to","direction"]);if(Object.keys(Ye).length!==0){const Et=pt(Ye),jt=`linear-gradient(${Me}, ${Et})`;return{background:jt,[te]:jt}}const gt=`linear-gradient(${Me}, ${Ke}, ${It})`;return{background:gt,[te]:gt}};var qt=Ne=>{const{prefixCls:nt,direction:Ke,percent:It,size:Me,strokeWidth:Ye,strokeColor:gt,strokeLinecap:Et="round",children:jt,trailColor:ln=null,percentPosition:wn,success:Sn}=Ne,{align:rn,type:pn}=wn,dn=gt&&typeof gt!="string"?Dt(gt,Ke):{[te]:gt,background:gt},Yt=Et==="square"||Et==="butt"?0:void 0,Rt=Me!=null?Me:[-1,Ye||(Me==="small"?6:8)],[Lt,Ct]=$e(Rt,"line",{strokeWidth:Ye}),Jt={backgroundColor:ln||void 0,borderRadius:Yt},Qt=Object.assign(Object.assign({width:`${Ze(It)}%`,height:Ct,borderRadius:Yt},dn),{[ee]:Ze(It)/100}),tn=Tt(Ne),un={width:`${Ze(tn)}%`,height:Ct,borderRadius:Yt,backgroundColor:Sn==null?void 0:Sn.strokeColor},yn={width:Lt<0?"100%":Lt},gn=E.createElement("div",{className:`${nt}-inner`,style:Jt},E.createElement("div",{className:Re()(`${nt}-bg`,`${nt}-bg-${pn}`),style:Qt},pn==="inner"&&jt),tn!==void 0&&E.createElement("div",{className:`${nt}-success-bg`,style:un})),On=pn==="outer"&&rn==="start",En=pn==="outer"&&rn==="end";return pn==="outer"&&rn==="center"?E.createElement("div",{className:`${nt}-layout-bottom`},gn,jt):E.createElement("div",{className:`${nt}-outer`,style:yn},On&&jt,gn,En&&jt)},Ut=Ne=>{const{size:nt,steps:Ke,rounding:It=Math.round,percent:Me=0,strokeWidth:Ye=8,strokeColor:gt,trailColor:Et=null,prefixCls:jt,children:ln}=Ne,wn=It(Ke*(Me/100)),Sn=nt==="small"?2:14,rn=nt!=null?nt:[Sn,Ye],[pn,dn]=$e(rn,"step",{steps:Ke,strokeWidth:Ye}),Yt=pn/Ke,Rt=Array.from({length:Ke});for(let Lt=0;Lt<Ke;Lt++){const Ct=Array.isArray(gt)?gt[Lt]:gt;Rt[Lt]=E.createElement("div",{key:Lt,className:Re()(`${jt}-steps-item`,{[`${jt}-steps-item-active`]:Lt<=wn-1}),style:{backgroundColor:Lt<=wn-1?Ct:Et,width:Yt,height:dn}})}return E.createElement("div",{className:`${jt}-steps-outer`},Rt,ln)},Pt=function(Ne,nt){var Ke={};for(var It in Ne)Object.prototype.hasOwnProperty.call(Ne,It)&&nt.indexOf(It)<0&&(Ke[It]=Ne[It]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,It=Object.getOwnPropertySymbols(Ne);Me<It.length;Me++)nt.indexOf(It[Me])<0&&Object.prototype.propertyIsEnumerable.call(Ne,It[Me])&&(Ke[It[Me]]=Ne[It[Me]]);return Ke};const wt=null,mt=["normal","exception","active","success"];var en=E.forwardRef((Ne,nt)=>{const{prefixCls:Ke,className:It,rootClassName:Me,steps:Ye,strokeColor:gt,percent:Et=0,size:jt="default",showInfo:ln=!0,type:wn="line",status:Sn,format:rn,style:pn,percentPosition:dn={}}=Ne,Yt=Pt(Ne,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Rt="end",type:Lt="outer"}=dn,Ct=Array.isArray(gt)?gt[0]:gt,Jt=typeof gt=="string"||Array.isArray(gt)?gt:void 0,Qt=E.useMemo(()=>{if(Ct){const xe=typeof Ct=="string"?Ct:Object.values(Ct)[0];return new it.FastColor(xe).isLight()}return!1},[gt]),tn=E.useMemo(()=>{var xe,He;const ke=Tt(Ne);return parseInt(ke!==void 0?(xe=ke!=null?ke:0)===null||xe===void 0?void 0:xe.toString():(He=Et!=null?Et:0)===null||He===void 0?void 0:He.toString(),10)},[Et,Ne.success,Ne.successPercent]),un=E.useMemo(()=>!mt.includes(Sn)&&tn>=100?"success":Sn||"normal",[Sn,tn]),{getPrefixCls:yn,direction:gn,progress:On}=E.useContext(he.E_),En=yn("progress",Ke),[Mn,Bn,xt]=Ie(En),$t=wn==="line",cn=$t&&!Ye,an=E.useMemo(()=>{if(!ln)return null;const xe=Tt(Ne);let He;const ke=rn||(Mt=>`${Mt}%`),Ue=$t&&Qt&&Lt==="inner";return Lt==="inner"||rn||un!=="exception"&&un!=="success"?He=ke(Ze(Et),Ze(xe)):un==="exception"?He=$t?E.createElement(Ce.Z,null):E.createElement(Oe.Z,null):un==="success"&&(He=$t?E.createElement(ge.Z,null):E.createElement(Xe.Z,null)),E.createElement("span",{className:Re()(`${En}-text`,{[`${En}-text-bright`]:Ue,[`${En}-text-${Rt}`]:cn,[`${En}-text-${Lt}`]:cn}),title:typeof He=="string"?He:void 0},He)},[ln,Et,tn,un,wn,En,rn]);let ze;wn==="line"?ze=Ye?E.createElement(Ut,Object.assign({},Ne,{strokeColor:Jt,prefixCls:En,steps:typeof Ye=="object"?Ye.count:Ye}),an):E.createElement(qt,Object.assign({},Ne,{strokeColor:Ct,prefixCls:En,direction:gn,percentPosition:{align:Rt,type:Lt}}),an):(wn==="circle"||wn==="dashboard")&&(ze=E.createElement(Ht,Object.assign({},Ne,{strokeColor:Ct,prefixCls:En,progressStatus:un}),an));const tt=Re()(En,`${En}-status-${un}`,{[`${En}-${wn==="dashboard"&&"circle"||wn}`]:wn!=="line",[`${En}-inline-circle`]:wn==="circle"&&$e(jt,"circle")[0]<=20,[`${En}-line`]:cn,[`${En}-line-align-${Rt}`]:cn,[`${En}-line-position-${Lt}`]:cn,[`${En}-steps`]:Ye,[`${En}-show-info`]:ln,[`${En}-${jt}`]:typeof jt=="string",[`${En}-rtl`]:gn==="rtl"},On==null?void 0:On.className,It,Me,Bn,xt);return Mn(E.createElement("div",Object.assign({ref:nt,style:Object.assign(Object.assign({},On==null?void 0:On.style),pn),className:tt,role:"progressbar","aria-valuenow":tn,"aria-valuemin":0,"aria-valuemax":100},(0,Ee.Z)(Yt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ze))}),Gt=en},63139:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return St}});var E=re(59301),it=re(54476),ge={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"},Xe=ge,Ce=re(7657),Oe=function($e,je){return E.createElement(Ce.Z,(0,it.Z)({},$e,{ref:je,icon:Xe}))},Pe=E.forwardRef(Oe),Re=Pe,Ee=re(92310),he=re.n(Ee),et=re(20068),Se=re(42978),ft=re(75931),We=re(18929),we=re(10228),Le=re(26112);function Ae(ve,$e){var je=ve.disabled,Ft=ve.prefixCls,Bt=ve.character,Ht=ve.characterRender,Fe=ve.index,_t=ve.count,lt=ve.value,ae=ve.allowHalf,te=ve.focused,ee=ve.onHover,oe=ve.onClick,se=function(Dt){ee(Dt,Fe)},ne=function(Dt){oe(Dt,Fe)},pe=function(Dt){Dt.keyCode===we.Z.ENTER&&oe(Dt,Fe)},be=Fe+1,ct=new Set([Ft]);lt===0&&Fe===0&&te?ct.add("".concat(Ft,"-focused")):ae&&lt+.5>=be&&lt<be?(ct.add("".concat(Ft,"-half")),ct.add("".concat(Ft,"-active")),te&&ct.add("".concat(Ft,"-focused"))):(be<=lt?ct.add("".concat(Ft,"-full")):ct.add("".concat(Ft,"-zero")),be===lt&&te&&ct.add("".concat(Ft,"-focused")));var Ie=typeof Bt=="function"?Bt(ve):Bt,Ve=E.createElement("li",{className:he()(Array.from(ct)),ref:$e},E.createElement("div",{onClick:je?null:ne,onKeyDown:je?null:pe,onMouseMove:je?null:se,role:"radio","aria-checked":lt>Fe?"true":"false","aria-posinset":Fe+1,"aria-setsize":_t,tabIndex:je?-1:0},E.createElement("div",{className:"".concat(Ft,"-first")},Ie),E.createElement("div",{className:"".concat(Ft,"-second")},Ie)));return Ht&&(Ve=Ht(Ve,ve)),Ve}var Je=E.forwardRef(Ae);function ot(){var ve=E.useRef({});function $e(Ft){return ve.current[Ft]}function je(Ft){return function(Bt){ve.current[Ft]=Bt}}return[$e,je]}function At(ve){var $e=ve.pageXOffset,je="scrollLeft";if(typeof $e!="number"){var Ft=ve.document;$e=Ft.documentElement[je],typeof $e!="number"&&($e=Ft.body[je])}return $e}function bt(ve){var $e,je,Ft=ve.ownerDocument,Bt=Ft.body,Ht=Ft&&Ft.documentElement,Fe=ve.getBoundingClientRect();return $e=Fe.left,je=Fe.top,$e-=Ht.clientLeft||Bt.clientLeft||0,je-=Ht.clientTop||Bt.clientTop||0,{left:$e,top:je}}function st(ve){var $e=bt(ve),je=ve.ownerDocument,Ft=je.defaultView||je.parentWindow;return $e.left+=At(Ft),$e.left}var ut=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function qe(ve,$e){var je=ve.prefixCls,Ft=je===void 0?"rc-rate":je,Bt=ve.className,Ht=ve.defaultValue,Fe=ve.value,_t=ve.count,lt=_t===void 0?5:_t,ae=ve.allowHalf,te=ae===void 0?!1:ae,ee=ve.allowClear,oe=ee===void 0?!0:ee,se=ve.keyboard,ne=se===void 0?!0:se,pe=ve.character,be=pe===void 0?"\u2605":pe,ct=ve.characterRender,Ie=ve.disabled,Ve=ve.direction,pt=Ve===void 0?"ltr":Ve,Dt=ve.tabIndex,Ot=Dt===void 0?0:Dt,qt=ve.autoFocus,Kt=ve.onHoverChange,Ut=ve.onChange,Pt=ve.onFocus,wt=ve.onBlur,mt=ve.onKeyDown,dt=ve.onMouseLeave,en=(0,ft.Z)(ve,ut),Gt=ot(),Ne=(0,Se.Z)(Gt,2),nt=Ne[0],Ke=Ne[1],It=E.useRef(null),Me=function(){if(!Ie){var an;(an=It.current)===null||an===void 0||an.focus()}};E.useImperativeHandle($e,function(){return{focus:Me,blur:function(){if(!Ie){var an;(an=It.current)===null||an===void 0||an.blur()}}}});var Ye=(0,We.Z)(Ht||0,{value:Fe}),gt=(0,Se.Z)(Ye,2),Et=gt[0],jt=gt[1],ln=(0,We.Z)(null),wn=(0,Se.Z)(ln,2),Sn=wn[0],rn=wn[1],pn=function(an,ze){var tt=pt==="rtl",xe=an+1;if(te){var He=nt(an),ke=st(He),Ue=He.clientWidth;(tt&&ze-ke>Ue/2||!tt&&ze-ke<Ue/2)&&(xe-=.5)}return xe},dn=function(an){jt(an),Ut==null||Ut(an)},Yt=E.useState(!1),Rt=(0,Se.Z)(Yt,2),Lt=Rt[0],Ct=Rt[1],Jt=function(){Ct(!0),Pt==null||Pt()},Qt=function(){Ct(!1),wt==null||wt()},tn=E.useState(null),un=(0,Se.Z)(tn,2),yn=un[0],gn=un[1],On=function(an,ze){var tt=pn(ze,an.pageX);tt!==Sn&&(gn(tt),rn(null)),Kt==null||Kt(tt)},En=function(an){Ie||(gn(null),rn(null),Kt==null||Kt(void 0)),an&&(dt==null||dt(an))},Mn=function(an,ze){var tt=pn(ze,an.pageX),xe=!1;oe&&(xe=tt===Et),En(),dn(xe?0:tt),rn(xe?tt:null)},Bn=function(an){var ze=an.keyCode,tt=pt==="rtl",xe=te?.5:1;ne&&(ze===we.Z.RIGHT&&Et<lt&&!tt?(dn(Et+xe),an.preventDefault()):ze===we.Z.LEFT&&Et>0&&!tt||ze===we.Z.RIGHT&&Et>0&&tt?(dn(Et-xe),an.preventDefault()):ze===we.Z.LEFT&&Et<lt&&tt&&(dn(Et+xe),an.preventDefault())),mt==null||mt(an)};E.useEffect(function(){qt&&!Ie&&Me()},[]);var xt=new Array(lt).fill(0).map(function(cn,an){return E.createElement(Je,{ref:Ke(an),index:an,count:lt,disabled:Ie,prefixCls:"".concat(Ft,"-star"),allowHalf:te,value:yn===null?Et:yn,onClick:Mn,onHover:On,key:cn||an,character:be,characterRender:ct,focused:Lt})}),$t=he()(Ft,Bt,(0,et.Z)((0,et.Z)({},"".concat(Ft,"-disabled"),Ie),"".concat(Ft,"-rtl"),pt==="rtl"));return E.createElement("ul",(0,it.Z)({className:$t,onMouseLeave:En,tabIndex:Ie?-1:Ot,onFocus:Ie?null:Jt,onBlur:Ie?null:Qt,onKeyDown:Ie?null:Bn,ref:It},(0,Le.Z)(en,{aria:!0,data:!0,attr:!0})),xt)}var Nt=E.forwardRef(qe),vt=Nt,at=re(48755),kt=re(25399),Be=re(36237),Ge=re(63356),_e=re(16931),ue=re(51636);const Qe=ve=>{const{componentCls:$e}=ve;return{[`${$e}-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,Be.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 ${$e}-star-first, &-half ${$e}-star-second`]:{opacity:1},[`&-half ${$e}-star-first, &-full ${$e}-star-second`]:{color:"inherit"}}}},Te=ve=>({[`&-rtl${ve.componentCls}`]:{direction:"rtl"}}),De=ve=>{const{componentCls:$e}=ve;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(ve)),{display:"inline-block",margin:0,padding:0,color:ve.starColor,fontSize:ve.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${$e} ${$e}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Qe(ve)),Te(ve))}},ht=ve=>({starColor:ve.yellow6,starSize:ve.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ve.colorFillContent});var me=(0,_e.I$)("Rate",ve=>{const $e=(0,ue.mergeToken)(ve,{});return[De($e)]},ht),ce=re(2171),Ze=function(ve,$e){var je={};for(var Ft in ve)Object.prototype.hasOwnProperty.call(ve,Ft)&&$e.indexOf(Ft)<0&&(je[Ft]=ve[Ft]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,Ft=Object.getOwnPropertySymbols(ve);Bt<Ft.length;Bt++)$e.indexOf(Ft[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ft[Bt])&&(je[Ft[Bt]]=ve[Ft[Bt]]);return je},St=E.forwardRef((ve,$e)=>{const{prefixCls:je,className:Ft,rootClassName:Bt,style:Ht,tooltips:Fe,character:_t=E.createElement(Re,null),disabled:lt}=ve,ae=Ze(ve,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(Dt,Ot)=>{let{index:qt}=Ot;return Fe?E.createElement(kt.Z,{title:Fe[qt]},Dt):Dt},{getPrefixCls:ee,direction:oe,rate:se}=E.useContext(at.E_),ne=ee("rate",je),[pe,be,ct]=me(ne),Ie=Object.assign(Object.assign({},se==null?void 0:se.style),Ht),Ve=E.useContext(ce.Z),pt=lt!=null?lt:Ve;return pe(E.createElement(vt,Object.assign({ref:$e,character:_t,characterRender:te,disabled:pt},ae,{className:he()(Ft,Bt,be,ct,se==null?void 0:se.className),style:Ie,prefixCls:ne,direction:oe})))})},82326:function(on,Vt,re){"use strict";var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(37463),Ce=re(2738),Oe=re(75030),Pe=re(86641),Re=re(45915),Ee=re(82855),he=re(48755),et=re(38406),Se=re(2171),ft=re(83397),We=re(31756),we=re(56553),Le=re(24971),Ae=re(70045),Je=re(57700),ot=re(1722),At=re(90376),bt=re(68525),st=re(90005),ut=function(kt,Be){var Ge={};for(var _e in kt)Object.prototype.hasOwnProperty.call(kt,_e)&&Be.indexOf(_e)<0&&(Ge[_e]=kt[_e]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,_e=Object.getOwnPropertySymbols(kt);ue<_e.length;ue++)Be.indexOf(_e[ue])<0&&Object.prototype.propertyIsEnumerable.call(kt,_e[ue])&&(Ge[_e[ue]]=kt[_e[ue]]);return Ge};const qe="SECRET_COMBOBOX_MODE_DO_NOT_USE",Nt=(kt,Be)=>{var Ge;const{prefixCls:_e,bordered:ue,className:Qe,rootClassName:Te,getPopupContainer:De,popupClassName:ht,dropdownClassName:me,listHeight:ce=256,placement:Ze,listItemHeight:Tt,size:St,disabled:ve,notFoundContent:$e,status:je,builtinPlacements:Ft,dropdownMatchSelectWidth:Bt,popupMatchSelectWidth:Ht,direction:Fe,style:_t,allowClear:lt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=kt,pe=ut(kt,["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:be,getPrefixCls:ct,renderEmpty:Ie,direction:Ve,virtual:pt,popupMatchSelectWidth:Dt,popupOverflow:Ot}=E.useContext(he.E_),qt=(0,he.dj)("select"),[,Kt]=(0,Je.ZP)(),Ut=Tt!=null?Tt:Kt==null?void 0:Kt.controlHeight,Pt=ct("select",_e),wt=ct(),mt=Fe!=null?Fe:Ve,{compactSize:dt,compactItemClassnames:en}=(0,Ae.ri)(Pt,mt),[Gt,Ne]=(0,Le.Z)("select",ae,ue),nt=(0,ft.Z)(Pt),[Ke,It,Me]=(0,At.Z)(Pt,nt),Ye=E.useMemo(()=>{const{mode:Bn}=kt;if(Bn!=="combobox")return Bn===qe?"combobox":Bn},[kt.mode]),gt=Ye==="multiple"||Ye==="tags",Et=(0,st.Z)(kt.suffixIcon,kt.showArrow),jt=(Ge=Ht!=null?Ht:Bt)!==null&&Ge!==void 0?Ge:Dt,{status:ln,hasFeedback:wn,isFormItemInput:Sn,feedbackIcon:rn}=E.useContext(we.aM),pn=(0,Ee.F)(ln,je);let dn;$e!==void 0?dn=$e:Ye==="combobox"?dn=null:dn=(Ie==null?void 0:Ie("Select"))||E.createElement(et.Z,{componentName:"Select"});const{suffixIcon:Yt,itemIcon:Rt,removeIcon:Lt,clearIcon:Ct}=(0,bt.Z)(Object.assign(Object.assign({},pe),{multiple:gt,hasFeedback:wn,feedbackIcon:rn,showSuffixIcon:Et,prefixCls:Pt,componentName:"Select"})),Jt=lt===!0?{clearIcon:Ct}:lt,Qt=(0,Ce.Z)(pe,["suffixIcon","itemIcon"]),tn=ge()(ht||me,{[`${Pt}-dropdown-${mt}`]:mt==="rtl"},Te,Me,nt,It),un=(0,We.Z)(Bn=>{var xt;return(xt=St!=null?St:dt)!==null&&xt!==void 0?xt:Bn}),yn=E.useContext(Se.Z),gn=ve!=null?ve:yn,On=ge()({[`${Pt}-lg`]:un==="large",[`${Pt}-sm`]:un==="small",[`${Pt}-rtl`]:mt==="rtl",[`${Pt}-${Gt}`]:Ne,[`${Pt}-in-form-item`]:Sn},(0,Ee.Z)(Pt,pn,wn),en,qt.className,Qe,Te,Me,nt,It),En=E.useMemo(()=>Ze!==void 0?Ze:mt==="rtl"?"bottomRight":"bottomLeft",[Ze,mt]),[Mn]=(0,Oe.Cn)("SelectLike",te==null?void 0:te.zIndex);return Ke(E.createElement(Xe.ZP,Object.assign({ref:Be,virtual:pt,showSearch:qt.showSearch},Qt,{style:Object.assign(Object.assign({},qt.style),_t),dropdownMatchSelectWidth:jt,transitionName:(0,Pe.m)(wt,"slide-up",ee),builtinPlacements:(0,ot.Z)(Ft,Ot),listHeight:ce,listItemHeight:Ut,mode:Ye,prefixCls:Pt,placement:En,direction:mt,prefix:ne,suffixIcon:Yt,menuItemSelectedIcon:Rt,removeIcon:Lt,allowClear:Jt,notFoundContent:dn,className:On,getPopupContainer:De||be,dropdownClassName:tn,disabled:gn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Mn}),maxCount:gt?se:void 0,tagRender:gt?oe:void 0})))},vt=E.forwardRef(Nt),at=(0,Re.Z)(vt,"dropdownAlign");vt.SECRET_COMBOBOX_MODE_DO_NOT_USE=qe,vt.Option=Xe.Wx,vt.OptGroup=Xe.Xo,vt._InternalPanelDoNotUseOrYouWillBeFired=at,Vt.default=vt},1722:function(on,Vt){"use strict";const re=it=>{const Xe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:it==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Xe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Xe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Xe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Xe),{points:["br","tr"],offset:[0,-4]})}};function E(it,ge){return it||re(ge)}Vt.Z=E},90376:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return _e}});var E=re(63356),it=re(56119),ge=re(16931),Xe=re(51636),Ce=re(46e3),Oe=re(93873);const Pe=ue=>{const{optionHeight:Qe,optionFontSize:Te,optionLineHeight:De,optionPadding:ht}=ue;return{position:"relative",display:"block",minHeight:Qe,padding:ht,color:ue.colorText,fontWeight:"normal",fontSize:Te,lineHeight:De,boxSizing:"border-box"}};var Ee=ue=>{const{antCls:Qe,componentCls:Te}=ue,De=`${Te}-item`,ht=`&${Qe}-slide-up-enter${Qe}-slide-up-enter-active`,me=`&${Qe}-slide-up-appear${Qe}-slide-up-appear-active`,ce=`&${Qe}-slide-up-leave${Qe}-slide-up-leave-active`,Ze=`${Te}-dropdown-placement-`,Tt=`${De}-option-selected`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[`
${ht}${Ze}bottomLeft,
${me}${Ze}bottomLeft
`]:{animationName:Ce.fJ},[`
${ht}${Ze}topLeft,
${me}${Ze}topLeft,
${ht}${Ze}topRight,
${me}${Ze}topRight
`]:{animationName:Ce.Qt},[`${ce}${Ze}bottomLeft`]:{animationName:Ce.Uw},[`
${ce}${Ze}topLeft,
${ce}${Ze}topRight
`]:{animationName:Ce.ly},"&-hidden":{display:"none"},[De]:Object.assign(Object.assign({},Pe(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${De}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${De}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${De}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${De}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Pe(ue)),{color:ue.colorTextDisabled})}),[`${Tt}:has(+ ${Tt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Tt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ce.oN)(ue,"slide-up"),(0,Ce.oN)(ue,"slide-down"),(0,Oe.Fm)(ue,"move-up"),(0,Oe.Fm)(ue,"move-down")]},he=re(26743),et=re(36237);function Se(ue,Qe){const{componentCls:Te,inputPaddingHorizontalBase:De,borderRadius:ht}=ue,me=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),ce=Qe?`${Te}-${Qe}`:"";return{[`${Te}-single${ce}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Te}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(ue,!0)),{display:"flex",borderRadius:ht,flex:"1 1 auto",[`${Te}-selection-wrap:after`]:{lineHeight:(0,et.unit)(me)},[`${Te}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Te}-selection-item,
${Te}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,et.unit)(me),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:empty:after`,`${Te}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Te}-show-arrow ${Te}-selection-item,
&${Te}-show-arrow ${Te}-selection-search,
&${Te}-show-arrow ${Te}-selection-placeholder
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Te}-open ${Te}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,et.unit)(De)}`,[`${Te}-selection-search-input`]:{height:me,fontSize:ue.fontSize},"&:after":{lineHeight:(0,et.unit)(me)}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,et.unit)(De)}`,"&:after":{display:"none"}}}}}}}function ft(ue){const{componentCls:Qe}=ue,Te=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Se(ue),Se((0,Xe.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${Qe}-single${Qe}-sm`]:{[`&:not(${Qe}-customize-input)`]:{[`${Qe}-selector`]:{padding:`0 ${(0,et.unit)(Te)}`},[`&${Qe}-show-arrow ${Qe}-selection-search`]:{insetInlineEnd:ue.calc(Te).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
&${Qe}-show-arrow ${Qe}-selection-item,
&${Qe}-show-arrow ${Qe}-selection-placeholder
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Se((0,Xe.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const We=ue=>{const{fontSize:Qe,lineHeight:Te,lineWidth:De,controlHeight:ht,controlHeightSM:me,controlHeightLG:ce,paddingXXS:Ze,controlPaddingHorizontal:Tt,zIndexPopupBase:St,colorText:ve,fontWeightStrong:$e,controlItemBgActive:je,controlItemBgHover:Ft,colorBgContainer:Bt,colorFillSecondary:Ht,colorBgContainerDisabled:Fe,colorTextDisabled:_t,colorPrimaryHover:lt,colorPrimary:ae,controlOutline:te}=ue,ee=Ze*2,oe=De*2,se=Math.min(ht-ee,ht-oe),ne=Math.min(me-ee,me-oe),pe=Math.min(ce-ee,ce-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ze/2),zIndexPopup:St+50,optionSelectedColor:ve,optionSelectedFontWeight:$e,optionSelectedBg:je,optionActiveBg:Ft,optionPadding:`${(ht-Qe*Te)/2}px ${Tt}px`,optionFontSize:Qe,optionLineHeight:Te,optionHeight:ht,selectorBg:Bt,clearBg:Bt,singleItemHeightLG:ce,multipleItemBg:Ht,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:Fe,multipleItemColorDisabled:_t,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:lt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Ze}},we=(ue,Qe)=>{const{componentCls:Te,antCls:De,controlOutlineWidth:ht}=ue;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${Qe.borderColor}`,background:ue.selectorBg},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${De}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{borderColor:Qe.hoverBorderHover},[`${Te}-focused& ${Te}-selector`]:{borderColor:Qe.activeBorderColor,boxShadow:`0 0 0 ${(0,et.unit)(ht)} ${Qe.activeOutlineColor}`,outline:0},[`${Te}-prefix`]:{color:Qe.color}}}},Le=(ue,Qe)=>({[`&${ue.componentCls}-status-${Qe.status}`]:Object.assign({},we(ue,Qe))}),Ae=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},we(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Le(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Le(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),Je=(ue,Qe)=>{const{componentCls:Te,antCls:De}=ue;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{background:Qe.bg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:Qe.color},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${De}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{background:Qe.hoverBg},[`${Te}-focused& ${Te}-selector`]:{background:ue.selectorBg,borderColor:Qe.activeBorderColor,outline:0}}}},ot=(ue,Qe)=>({[`&${ue.componentCls}-status-${Qe.status}`]:Object.assign({},Je(ue,Qe))}),At=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Je(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),ot(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),ot(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),bt=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),st=(ue,Qe)=>{const{componentCls:Te,antCls:De}=ue;return{[`&:not(${Te}-customize-input) ${Te}-selector`]:{borderWidth:`0 0 ${(0,et.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:Qe.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Te}-disabled):not(${Te}-customize-input):not(${De}-pagination-size-changer)`]:{[`&:hover ${Te}-selector`]:{borderColor:Qe.hoverBorderHover},[`${Te}-focused& ${Te}-selector`]:{borderColor:Qe.activeBorderColor,outline:0},[`${Te}-prefix`]:{color:Qe.color}}}},ut=(ue,Qe)=>({[`&${ue.componentCls}-status-${Qe.status}`]:Object.assign({},st(ue,Qe))}),qe=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},st(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),ut(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),ut(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,et.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var vt=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ae(ue)),At(ue)),bt(ue)),qe(ue))});const at=ue=>{const{componentCls:Qe}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${Qe}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Qe}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},kt=ue=>{const{componentCls:Qe}=ue;return{[`${Qe}-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"}}}},Be=ue=>{const{antCls:Qe,componentCls:Te,inputPaddingHorizontalBase:De,iconCls:ht}=ue;return{[Te]:Object.assign(Object.assign({},(0,E.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Te}-customize-input) ${Te}-selector`]:Object.assign(Object.assign({},at(ue)),kt(ue)),[`${Te}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${Qe}-typography`]:{display:"inline"}}),[`${Te}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Te}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:De,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[ht]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Te}-suffix)`]:{pointerEvents:"auto"}},[`${Te}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Te}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Te}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Te}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:De,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Te}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Te}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Te}-has-feedback`]:{[`${Te}-clear`]:{insetInlineEnd:ue.calc(De).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},Ge=ue=>{const{componentCls:Qe}=ue;return[{[Qe]:{[`&${Qe}-in-form-item`]:{width:"100%"}}},Be(ue),ft(ue),(0,he.ZP)(ue),Ee(ue),{[`${Qe}-rtl`]:{direction:"rtl"}},(0,it.c)(ue,{borderElCls:`${Qe}-selector`,focusElCls:`${Qe}-focused`})]};var _e=(0,ge.I$)("Select",(ue,Qe)=>{let{rootPrefixCls:Te}=Qe;const De=(0,Xe.mergeToken)(ue,{rootPrefixCls:Te,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[Ge(De),vt(De)]},We,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(on,Vt,re){"use strict";re.d(Vt,{_z:function(){return Oe},gp:function(){return Xe}});var E=re(36237),it=re(63356),ge=re(51636);const Xe=he=>{const{multipleSelectItemHeight:et,paddingXXS:Se,lineWidth:ft,INTERNAL_FIXED_ITEM_MARGIN:We}=he,we=he.max(he.calc(Se).sub(ft).equal(),0),Le=he.max(he.calc(we).sub(We).equal(),0);return{basePadding:we,containerPadding:Le,itemHeight:(0,E.unit)(et),itemLineHeight:(0,E.unit)(he.calc(et).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ce=he=>{const{multipleSelectItemHeight:et,selectHeight:Se,lineWidth:ft}=he;return he.calc(Se).sub(et).div(2).sub(ft).equal()},Oe=he=>{const{componentCls:et,iconCls:Se,borderRadiusSM:ft,motionDurationSlow:We,paddingXS:we,multipleItemColorDisabled:Le,multipleItemBorderColorDisabled:Ae,colorIcon:Je,colorIconHover:ot,INTERNAL_FIXED_ITEM_MARGIN:At}=he;return{[`${et}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${et}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:At,borderRadius:ft,cursor:"default",transition:`font-size ${We}, line-height ${We}, height ${We}`,marginInlineEnd:he.calc(At).mul(2).equal(),paddingInlineStart:we,paddingInlineEnd:he.calc(we).div(2).equal(),[`${et}-disabled&`]:{color:Le,borderColor:Ae,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(we).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,it.Ro)()),{display:"inline-flex",alignItems:"center",color:Je,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Se}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ot}})}}}},Pe=(he,et)=>{const{componentCls:Se,INTERNAL_FIXED_ITEM_MARGIN:ft}=he,We=`${Se}-selection-overflow`,we=he.multipleSelectItemHeight,Le=Ce(he),Ae=et?`${Se}-${et}`:"",Je=Xe(he);return{[`${Se}-multiple${Ae}`]:Object.assign(Object.assign({},Oe(he)),{[`${Se}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Je.basePadding,paddingBlock:Je.containerPadding,borderRadius:he.borderRadius,[`${Se}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(ft)} 0`,lineHeight:(0,E.unit)(we),visibility:"hidden",content:'"\\a0"'}},[`${Se}-selection-item`]:{height:Je.itemHeight,lineHeight:(0,E.unit)(Je.itemLineHeight)},[`${Se}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(we),marginBlock:ft}},[`${Se}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Je.basePadding).equal()},[`${We}-item + ${We}-item,
${Se}-prefix + ${Se}-selection-wrap
`]:{[`${Se}-selection-search`]:{marginInlineStart:0},[`${Se}-selection-placeholder`]:{insetInlineStart:0}},[`${We}-item-suffix`]:{minHeight:Je.itemHeight,marginBlock:ft},[`${Se}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Le).equal(),"\n &-input,\n &-mirror\n ":{height:we,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(we),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"}},[`${Se}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Je.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function Re(he,et){const{componentCls:Se}=he,ft=et?`${Se}-${et}`:"",We={[`${Se}-multiple${ft}`]:{fontSize:he.fontSize,[`${Se}-selector`]:{[`${Se}-show-search&`]:{cursor:"text"}},[`
&${Se}-show-arrow ${Se}-selector,
&${Se}-allow-clear ${Se}-selector
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Pe(he,et),We]}const Ee=he=>{const{componentCls:et}=he,Se=(0,ge.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),ft=(0,ge.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[Re(he),Re(Se,"sm"),{[`${et}-multiple${et}-sm`]:{[`${et}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${et}-selection-search`]:{marginInlineStart:2}}},Re(ft,"lg")]};Vt.ZP=Ee},68525:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});var E=re(59301),it=re(40001),ge=re(19248),Xe=re(99267),Ce=re(84105),Oe=re(58617),Pe=re(47472);function Re(Ee){let{suffixIcon:he,clearIcon:et,menuItemSelectedIcon:Se,removeIcon:ft,loading:We,multiple:we,hasFeedback:Le,prefixCls:Ae,showSuffixIcon:Je,feedbackIcon:ot,showArrow:At,componentName:bt}=Ee;const st=et!=null?et:E.createElement(ge.Z,null),ut=at=>he===null&&!Le&&!At?null:E.createElement(E.Fragment,null,Je!==!1&&at,Le&&ot);let qe=null;if(he!==void 0)qe=ut(he);else if(We)qe=ut(E.createElement(Oe.Z,{spin:!0}));else{const at=`${Ae}-suffix`;qe=kt=>{let{open:Be,showSearch:Ge}=kt;return ut(Be&&Ge?E.createElement(Pe.Z,{className:at}):E.createElement(Ce.Z,{className:at}))}}let Nt=null;Se!==void 0?Nt=Se:we?Nt=E.createElement(it.Z,null):Nt=null;let vt=null;return ft!==void 0?vt=ft:vt=E.createElement(Xe.Z,null),{clearIcon:st,suffixIcon:qe,itemIcon:Nt,removeIcon:vt}}},90005:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return E}});function E(it,ge){return ge!==void 0?ge:it!==null}},11938:function(on,Vt,re){"use strict";re.d(Vt,{default:function(){return kt}});var E=re(59301),it=re(40192),ge=re(22703),Xe=re(92310),Ce=re.n(Xe),Oe=re(26112),Pe=re(48755),Re=re(458),he=Be=>{const{value:Ge,formatter:_e,precision:ue,decimalSeparator:Qe,groupSeparator:Te="",prefixCls:De}=Be;let ht;if(typeof _e=="function")ht=_e(Ge);else{const me=String(Ge),ce=me.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ce||me==="-")ht=me;else{const Ze=ce[1];let Tt=ce[2]||"0",St=ce[4]||"";Tt=Tt.replace(/\B(?=(\d{3})+(?!\d))/g,Te),typeof ue=="number"&&(St=St.padEnd(ue,"0").slice(0,ue>0?ue:0)),St&&(St=`${Qe}${St}`),ht=[E.createElement("span",{key:"int",className:`${De}-content-value-int`},Ze,Tt),St&&E.createElement("span",{key:"decimal",className:`${De}-content-value-decimal`},St)]}}return E.createElement("span",{className:`${De}-content-value`},ht)},et=re(63356),Se=re(16931),ft=re(51636);const We=Be=>{const{componentCls:Ge,marginXXS:_e,padding:ue,colorTextDescription:Qe,titleFontSize:Te,colorTextHeading:De,contentFontSize:ht,fontFamily:me}=Be;return{[Ge]:Object.assign(Object.assign({},(0,et.Wf)(Be)),{[`${Ge}-title`]:{marginBottom:_e,color:Qe,fontSize:Te},[`${Ge}-skeleton`]:{paddingTop:ue},[`${Ge}-content`]:{color:De,fontSize:ht,fontFamily:me,[`${Ge}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ge}-content-prefix, ${Ge}-content-suffix`]:{display:"inline-block"},[`${Ge}-content-prefix`]:{marginInlineEnd:_e},[`${Ge}-content-suffix`]:{marginInlineStart:_e}}})}},we=Be=>{const{fontSizeHeading3:Ge,fontSize:_e}=Be;return{titleFontSize:_e,contentFontSize:Ge}};var Le=(0,Se.I$)("Statistic",Be=>{const Ge=(0,ft.mergeToken)(Be,{});return[We(Ge)]},we),Ae=function(Be,Ge){var _e={};for(var ue in Be)Object.prototype.hasOwnProperty.call(Be,ue)&&Ge.indexOf(ue)<0&&(_e[ue]=Be[ue]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ue=Object.getOwnPropertySymbols(Be);Qe<ue.length;Qe++)Ge.indexOf(ue[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Be,ue[Qe])&&(_e[ue[Qe]]=Be[ue[Qe]]);return _e},ot=Be=>{const{prefixCls:Ge,className:_e,rootClassName:ue,style:Qe,valueStyle:Te,value:De=0,title:ht,valueRender:me,prefix:ce,suffix:Ze,loading:Tt=!1,formatter:St,precision:ve,decimalSeparator:$e=".",groupSeparator:je=",",onMouseEnter:Ft,onMouseLeave:Bt}=Be,Ht=Ae(Be,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Fe,direction:_t,className:lt,style:ae}=(0,Pe.dj)("statistic"),te=Fe("statistic",Ge),[ee,oe,se]=Le(te),ne=E.createElement(he,{decimalSeparator:$e,groupSeparator:je,prefixCls:te,formatter:St,precision:ve,value:De}),pe=Ce()(te,{[`${te}-rtl`]:_t==="rtl"},lt,_e,ue,oe,se),be=(0,Oe.Z)(Ht,{aria:!0,data:!0});return ee(E.createElement("div",Object.assign({},be,{className:pe,style:Object.assign(Object.assign({},ae),Qe),onMouseEnter:Ft,onMouseLeave:Bt}),ht&&E.createElement("div",{className:`${te}-title`},ht),E.createElement(Re.Z,{paragraph:!1,loading:Tt,className:`${te}-skeleton`},E.createElement("div",{style:Te,className:`${te}-content`},ce&&E.createElement("span",{className:`${te}-content-prefix`},ce),me?me(ne):ne,Ze&&E.createElement("span",{className:`${te}-content-suffix`},Ze)))))};const At=[["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 bt(Be,Ge){let _e=Be;const ue=/\[[^\]]*]/g,Qe=(Ge.match(ue)||[]).map(me=>me.slice(1,-1)),Te=Ge.replace(ue,"[]"),De=At.reduce((me,ce)=>{let[Ze,Tt]=ce;if(me.includes(Ze)){const St=Math.floor(_e/Tt);return _e-=St*Tt,me.replace(new RegExp(`${Ze}+`,"g"),ve=>{const $e=ve.length;return St.toString().padStart($e,"0")})}return me},Te);let ht=0;return De.replace(ue,()=>{const me=Qe[ht];return ht+=1,me})}function st(Be,Ge){const{format:_e=""}=Ge,ue=new Date(Be).getTime(),Qe=Date.now(),Te=Math.max(ue-Qe,0);return bt(Te,_e)}var ut=function(Be,Ge){var _e={};for(var ue in Be)Object.prototype.hasOwnProperty.call(Be,ue)&&Ge.indexOf(ue)<0&&(_e[ue]=Be[ue]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ue=Object.getOwnPropertySymbols(Be);Qe<ue.length;Qe++)Ge.indexOf(ue[Qe])<0&&Object.prototype.propertyIsEnumerable.call(Be,ue[Qe])&&(_e[ue[Qe]]=Be[ue[Qe]]);return _e};const qe=1e3/30;function Nt(Be){return new Date(Be).getTime()}const vt=Be=>{const{value:Ge,format:_e="HH:mm:ss",onChange:ue,onFinish:Qe}=Be,Te=ut(Be,["value","format","onChange","onFinish"]),De=(0,it.Z)(),ht=E.useRef(null),me=()=>{Qe==null||Qe(),ht.current&&(clearInterval(ht.current),ht.current=null)},ce=()=>{const St=Nt(Ge);St>=Date.now()&&(ht.current=setInterval(()=>{De(),ue==null||ue(St-Date.now()),St<Date.now()&&me()},qe))};E.useEffect(()=>(ce(),()=>{ht.current&&(clearInterval(ht.current),ht.current=null)}),[Ge]);const Ze=(St,ve)=>st(St,Object.assign(Object.assign({},ve),{format:_e})),Tt=St=>(0,ge.Tm)(St,{title:void 0});return E.createElement(ot,Object.assign({},Te,{value:Ge,valueRender:Tt,formatter:Ze}))};var at=E.memo(vt);ot.Countdown=at;var kt=ot},58755:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Qe}});var E=re(59301),it=re(58617),ge=re(92310),Xe=re.n(ge),Ce=re(54476),Oe=re(20068),Pe=re(42978),Re=re(75931),Ee=re(18929),he=re(10228),et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Se=E.forwardRef(function(Te,De){var ht,me=Te.prefixCls,ce=me===void 0?"rc-switch":me,Ze=Te.className,Tt=Te.checked,St=Te.defaultChecked,ve=Te.disabled,$e=Te.loadingIcon,je=Te.checkedChildren,Ft=Te.unCheckedChildren,Bt=Te.onClick,Ht=Te.onChange,Fe=Te.onKeyDown,_t=(0,Re.Z)(Te,et),lt=(0,Ee.Z)(!1,{value:Tt,defaultValue:St}),ae=(0,Pe.Z)(lt,2),te=ae[0],ee=ae[1];function oe(be,ct){var Ie=te;return ve||(Ie=be,ee(Ie),Ht==null||Ht(Ie,ct)),Ie}function se(be){be.which===he.Z.LEFT?oe(!1,be):be.which===he.Z.RIGHT&&oe(!0,be),Fe==null||Fe(be)}function ne(be){var ct=oe(!te,be);Bt==null||Bt(ct,be)}var pe=Xe()(ce,Ze,(ht={},(0,Oe.Z)(ht,"".concat(ce,"-checked"),te),(0,Oe.Z)(ht,"".concat(ce,"-disabled"),ve),ht));return E.createElement("button",(0,Ce.Z)({},_t,{type:"button",role:"switch","aria-checked":te,disabled:ve,className:pe,ref:De,onKeyDown:se,onClick:ne}),$e,E.createElement("span",{className:"".concat(ce,"-inner")},E.createElement("span",{className:"".concat(ce,"-inner-checked")},je),E.createElement("span",{className:"".concat(ce,"-inner-unchecked")},Ft)))});Se.displayName="Switch";var ft=Se,We=re(12919),we=re(48755),Le=re(2171),Ae=re(31756),Je=re(36237),ot=re(17835),At=re(63356),bt=re(16931),st=re(51636);const ut=Te=>{const{componentCls:De,trackHeightSM:ht,trackPadding:me,trackMinWidthSM:ce,innerMinMarginSM:Ze,innerMaxMarginSM:Tt,handleSizeSM:St,calc:ve}=Te,$e=`${De}-inner`,je=(0,Je.unit)(ve(St).add(ve(me).mul(2)).equal()),Ft=(0,Je.unit)(ve(Tt).mul(2).equal());return{[De]:{[`&${De}-small`]:{minWidth:ce,height:ht,lineHeight:(0,Je.unit)(ht),[`${De}-inner`]:{paddingInlineStart:Tt,paddingInlineEnd:Ze,[`${$e}-checked, ${$e}-unchecked`]:{minHeight:ht},[`${$e}-checked`]:{marginInlineStart:`calc(-100% + ${je} - ${Ft})`,marginInlineEnd:`calc(100% - ${je} + ${Ft})`},[`${$e}-unchecked`]:{marginTop:ve(ht).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${De}-handle`]:{width:St,height:St},[`${De}-loading-icon`]:{top:ve(ve(St).sub(Te.switchLoadingIconSize)).div(2).equal(),fontSize:Te.switchLoadingIconSize},[`&${De}-checked`]:{[`${De}-inner`]:{paddingInlineStart:Ze,paddingInlineEnd:Tt,[`${$e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$e}-unchecked`]:{marginInlineStart:`calc(100% - ${je} + ${Ft})`,marginInlineEnd:`calc(-100% + ${je} - ${Ft})`}},[`${De}-handle`]:{insetInlineStart:`calc(100% - ${(0,Je.unit)(ve(St).add(me).equal())})`}},[`&:not(${De}-disabled):active`]:{[`&:not(${De}-checked) ${$e}`]:{[`${$e}-unchecked`]:{marginInlineStart:ve(Te.marginXXS).div(2).equal(),marginInlineEnd:ve(Te.marginXXS).mul(-1).div(2).equal()}},[`&${De}-checked ${$e}`]:{[`${$e}-checked`]:{marginInlineStart:ve(Te.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ve(Te.marginXXS).div(2).equal()}}}}}}},qe=Te=>{const{componentCls:De,handleSize:ht,calc:me}=Te;return{[De]:{[`${De}-loading-icon${Te.iconCls}`]:{position:"relative",top:me(me(ht).sub(Te.fontSize)).div(2).equal(),color:Te.switchLoadingIconColor,verticalAlign:"top"},[`&${De}-checked ${De}-loading-icon`]:{color:Te.switchColor}}}},Nt=Te=>{const{componentCls:De,trackPadding:ht,handleBg:me,handleShadow:ce,handleSize:Ze,calc:Tt}=Te,St=`${De}-handle`;return{[De]:{[St]:{position:"absolute",top:ht,insetInlineStart:ht,width:Ze,height:Ze,transition:`all ${Te.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:me,borderRadius:Tt(Ze).div(2).equal(),boxShadow:ce,transition:`all ${Te.switchDuration} ease-in-out`,content:'""'}},[`&${De}-checked ${St}`]:{insetInlineStart:`calc(100% - ${(0,Je.unit)(Tt(Ze).add(ht).equal())})`},[`&:not(${De}-disabled):active`]:{[`${St}::before`]:{insetInlineEnd:Te.switchHandleActiveInset,insetInlineStart:0},[`&${De}-checked ${St}::before`]:{insetInlineEnd:0,insetInlineStart:Te.switchHandleActiveInset}}}}},vt=Te=>{const{componentCls:De,trackHeight:ht,trackPadding:me,innerMinMargin:ce,innerMaxMargin:Ze,handleSize:Tt,calc:St}=Te,ve=`${De}-inner`,$e=(0,Je.unit)(St(Tt).add(St(me).mul(2)).equal()),je=(0,Je.unit)(St(Ze).mul(2).equal());return{[De]:{[ve]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ze,paddingInlineEnd:ce,transition:`padding-inline-start ${Te.switchDuration} ease-in-out, padding-inline-end ${Te.switchDuration} ease-in-out`,[`${ve}-checked, ${ve}-unchecked`]:{display:"block",color:Te.colorTextLightSolid,fontSize:Te.fontSizeSM,transition:`margin-inline-start ${Te.switchDuration} ease-in-out, margin-inline-end ${Te.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ht},[`${ve}-checked`]:{marginInlineStart:`calc(-100% + ${$e} - ${je})`,marginInlineEnd:`calc(100% - ${$e} + ${je})`},[`${ve}-unchecked`]:{marginTop:St(ht).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${De}-checked ${ve}`]:{paddingInlineStart:ce,paddingInlineEnd:Ze,[`${ve}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ve}-unchecked`]:{marginInlineStart:`calc(100% - ${$e} + ${je})`,marginInlineEnd:`calc(-100% + ${$e} - ${je})`}},[`&:not(${De}-disabled):active`]:{[`&:not(${De}-checked) ${ve}`]:{[`${ve}-unchecked`]:{marginInlineStart:St(me).mul(2).equal(),marginInlineEnd:St(me).mul(-1).mul(2).equal()}},[`&${De}-checked ${ve}`]:{[`${ve}-checked`]:{marginInlineStart:St(me).mul(-1).mul(2).equal(),marginInlineEnd:St(me).mul(2).equal()}}}}}},at=Te=>{const{componentCls:De,trackHeight:ht,trackMinWidth:me}=Te;return{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Te)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:me,height:ht,lineHeight:(0,Je.unit)(ht),verticalAlign:"middle",background:Te.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Te.motionDurationMid}`,userSelect:"none",[`&:hover:not(${De}-disabled)`]:{background:Te.colorTextTertiary}}),(0,At.Qy)(Te)),{[`&${De}-checked`]:{background:Te.switchColor,[`&:hover:not(${De}-disabled)`]:{background:Te.colorPrimaryHover}},[`&${De}-loading, &${De}-disabled`]:{cursor:"not-allowed",opacity:Te.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${De}-rtl`]:{direction:"rtl"}})}},kt=Te=>{const{fontSize:De,lineHeight:ht,controlHeight:me,colorWhite:ce}=Te,Ze=De*ht,Tt=me/2,St=2,ve=Ze-St*2,$e=Tt-St*2;return{trackHeight:Ze,trackHeightSM:Tt,trackMinWidth:ve*2+St*4,trackMinWidthSM:$e*2+St*2,trackPadding:St,handleBg:ce,handleSize:ve,handleSizeSM:$e,handleShadow:`0 2px 4px 0 ${new ot.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ve/2,innerMaxMargin:ve+St+St*2,innerMinMarginSM:$e/2,innerMaxMarginSM:$e+St+St*2}};var Be=(0,bt.I$)("Switch",Te=>{const De=(0,st.mergeToken)(Te,{switchDuration:Te.motionDurationMid,switchColor:Te.colorPrimary,switchDisabledOpacity:Te.opacityLoading,switchLoadingIconSize:Te.calc(Te.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Te.opacityLoading})`,switchHandleActiveInset:"-30%"});return[at(De),vt(De),Nt(De),qe(De),ut(De)]},kt),Ge=function(Te,De){var ht={};for(var me in Te)Object.prototype.hasOwnProperty.call(Te,me)&&De.indexOf(me)<0&&(ht[me]=Te[me]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,me=Object.getOwnPropertySymbols(Te);ce<me.length;ce++)De.indexOf(me[ce])<0&&Object.prototype.propertyIsEnumerable.call(Te,me[ce])&&(ht[me[ce]]=Te[me[ce]]);return ht};const ue=E.forwardRef((Te,De)=>{const{prefixCls:ht,size:me,disabled:ce,loading:Ze,className:Tt,rootClassName:St,style:ve,checked:$e,value:je,defaultChecked:Ft,defaultValue:Bt,onChange:Ht}=Te,Fe=Ge(Te,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[_t,lt]=(0,Ee.Z)(!1,{value:$e!=null?$e:je,defaultValue:Ft!=null?Ft:Bt}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(we.E_),oe=E.useContext(Le.Z),se=(ce!=null?ce:oe)||Ze,ne=ae("switch",ht),pe=E.createElement("div",{className:`${ne}-handle`},Ze&&E.createElement(it.Z,{className:`${ne}-loading-icon`})),[be,ct,Ie]=Be(ne),Ve=(0,Ae.Z)(me),pt=Xe()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ve==="small",[`${ne}-loading`]:Ze,[`${ne}-rtl`]:te==="rtl"},Tt,St,ct,Ie),Dt=Object.assign(Object.assign({},ee==null?void 0:ee.style),ve),Ot=function(){lt(arguments.length<=0?void 0:arguments[0]),Ht==null||Ht.apply(void 0,arguments)};return be(E.createElement(We.Z,{component:"Switch"},E.createElement(ft,Object.assign({},Fe,{checked:_t,onChange:Ot,prefixCls:ne,className:pt,style:Dt,disabled:se,ref:De,loadingIcon:pe}))))});ue.__ANT_SWITCH=!0;var Qe=ue},96599:function(on,Vt,re){"use strict";re.d(Vt,{default:function(){return _e}});var E=re(59301),it=re(92310),ge=re.n(it),Xe=re(2738),Ce=re(29509),Oe=re(78776),Pe=re(22703),Re=re(12919),Ee=re(48755),he=re(36237),et=re(17835),Se=re(63356),ft=re(51636),We=re(16931);const we=ue=>{const{paddingXXS:Qe,lineWidth:Te,tagPaddingHorizontal:De,componentCls:ht,calc:me}=ue,ce=me(De).sub(Te).equal(),Ze=me(Qe).sub(Te).equal();return{[ht]:Object.assign(Object.assign({},(0,Se.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:ce,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,he.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ht}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${ht}-close-icon`]:{marginInlineStart:Ze,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${ht}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ht}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:ce}}),[`${ht}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Le=ue=>{const{lineWidth:Qe,fontSizeIcon:Te,calc:De}=ue,ht=ue.fontSizeSM;return(0,ft.mergeToken)(ue,{tagFontSize:ht,tagLineHeight:(0,he.unit)(De(ue.lineHeightSM).mul(ht).equal()),tagIconSize:De(Te).sub(De(Qe).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},Ae=ue=>({defaultBg:new et.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var Je=(0,We.I$)("Tag",ue=>{const Qe=Le(ue);return we(Qe)},Ae),ot=function(ue,Qe){var Te={};for(var De in ue)Object.prototype.hasOwnProperty.call(ue,De)&&Qe.indexOf(De)<0&&(Te[De]=ue[De]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,De=Object.getOwnPropertySymbols(ue);ht<De.length;ht++)Qe.indexOf(De[ht])<0&&Object.prototype.propertyIsEnumerable.call(ue,De[ht])&&(Te[De[ht]]=ue[De[ht]]);return Te},bt=E.forwardRef((ue,Qe)=>{const{prefixCls:Te,style:De,className:ht,checked:me,onChange:ce,onClick:Ze}=ue,Tt=ot(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:St,tag:ve}=E.useContext(Ee.E_),$e=_t=>{ce==null||ce(!me),Ze==null||Ze(_t)},je=St("tag",Te),[Ft,Bt,Ht]=Je(je),Fe=ge()(je,`${je}-checkable`,{[`${je}-checkable-checked`]:me},ve==null?void 0:ve.className,ht,Bt,Ht);return Ft(E.createElement("span",Object.assign({},Tt,{ref:Qe,style:Object.assign(Object.assign({},De),ve==null?void 0:ve.style),className:Fe,onClick:$e})))}),st=re(93427);const ut=ue=>(0,st.Z)(ue,(Qe,Te)=>{let{textColor:De,lightBorderColor:ht,lightColor:me,darkColor:ce}=Te;return{[`${ue.componentCls}${ue.componentCls}-${Qe}`]:{color:De,background:me,borderColor:ht,"&-inverse":{color:ue.colorTextLightSolid,background:ce,borderColor:ce},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var qe=(0,We.bk)(["Tag","preset"],ue=>{const Qe=Le(ue);return ut(Qe)},Ae);function Nt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const vt=(ue,Qe,Te)=>{const De=Nt(Te);return{[`${ue.componentCls}${ue.componentCls}-${Qe}`]:{color:ue[`color${Te}`],background:ue[`color${De}Bg`],borderColor:ue[`color${De}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var at=(0,We.bk)(["Tag","status"],ue=>{const Qe=Le(ue);return[vt(Qe,"success","Success"),vt(Qe,"processing","Info"),vt(Qe,"error","Error"),vt(Qe,"warning","Warning")]},Ae),kt=function(ue,Qe){var Te={};for(var De in ue)Object.prototype.hasOwnProperty.call(ue,De)&&Qe.indexOf(De)<0&&(Te[De]=ue[De]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,De=Object.getOwnPropertySymbols(ue);ht<De.length;ht++)Qe.indexOf(De[ht])<0&&Object.prototype.propertyIsEnumerable.call(ue,De[ht])&&(Te[De[ht]]=ue[De[ht]]);return Te};const Ge=E.forwardRef((ue,Qe)=>{const{prefixCls:Te,className:De,rootClassName:ht,style:me,children:ce,icon:Ze,color:Tt,onClose:St,bordered:ve=!0,visible:$e}=ue,je=kt(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Ft,direction:Bt,tag:Ht}=E.useContext(Ee.E_),[Fe,_t]=E.useState(!0),lt=(0,Xe.Z)(je,["closeIcon","closable"]);E.useEffect(()=>{$e!==void 0&&_t($e)},[$e]);const ae=(0,Ce.o2)(Tt),te=(0,Ce.yT)(Tt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Tt&&!ee?Tt:void 0},Ht==null?void 0:Ht.style),me),se=Ft("tag",Te),[ne,pe,be]=Je(se),ct=ge()(se,Ht==null?void 0:Ht.className,{[`${se}-${Tt}`]:ee,[`${se}-has-color`]:Tt&&!ee,[`${se}-hidden`]:!Fe,[`${se}-rtl`]:Bt==="rtl",[`${se}-borderless`]:!ve},De,ht,pe,be),Ie=Kt=>{Kt.stopPropagation(),St==null||St(Kt),!Kt.defaultPrevented&&_t(!1)},[,Ve]=(0,Oe.Z)((0,Oe.w)(ue),(0,Oe.w)(Ht),{closable:!1,closeIconRender:Kt=>{const Ut=E.createElement("span",{className:`${se}-close-icon`,onClick:Ie},Kt);return(0,Pe.wm)(Kt,Ut,Pt=>({onClick:wt=>{var mt;(mt=Pt==null?void 0:Pt.onClick)===null||mt===void 0||mt.call(Pt,wt),Ie(wt)},className:ge()(Pt==null?void 0:Pt.className,`${se}-close-icon`)}))}}),pt=typeof je.onClick=="function"||ce&&ce.type==="a",Dt=Ze||null,Ot=Dt?E.createElement(E.Fragment,null,Dt,ce&&E.createElement("span",null,ce)):ce,qt=E.createElement("span",Object.assign({},lt,{ref:Qe,className:ct,style:oe}),Ot,Ve,ae&&E.createElement(qe,{key:"preset",prefixCls:se}),te&&E.createElement(at,{key:"status",prefixCls:se}));return ne(pt?E.createElement(Re.Z,{component:"Tag"},qt):qt)});Ge.CheckableTag=bt;var _e=Ge},99498:function(on,Vt,re){(function(E){E(re(89780))})(function(E){E.defineOption("placeholder","",function(Re,Ee,he){var et=he&&he!=E.Init;if(Ee&&!et)Re.on("blur",Ce),Re.on("change",Oe),Re.on("swapDoc",Oe),E.on(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose=function(){Xe(Re)}),Oe(Re);else if(!Ee&&et){Re.off("blur",Ce),Re.off("change",Oe),Re.off("swapDoc",Oe),E.off(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose),it(Re);var Se=Re.getWrapperElement();Se.className=Se.className.replace(" CodeMirror-empty","")}Ee&&!Re.hasFocus()&&Ce(Re)});function it(Re){Re.state.placeholder&&(Re.state.placeholder.parentNode.removeChild(Re.state.placeholder),Re.state.placeholder=null)}function ge(Re){it(Re);var Ee=Re.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Re.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var he=Re.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),Ee.appendChild(he),Re.display.lineSpace.insertBefore(Ee,Re.display.lineSpace.firstChild)}function Xe(Re){setTimeout(function(){var Ee=!1,he=Re.getInputField();he.nodeName=="TEXTAREA"?Ee=!he.value:Re.lineCount()==1&&(Ee=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),Ee?ge(Re):it(Re)},20)}function Ce(Re){Pe(Re)&&ge(Re)}function Oe(Re){var Ee=Re.getWrapperElement(),he=Pe(Re);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ge(Re):it(Re)}function Pe(Re){return Re.lineCount()===1&&Re.getLine(0)===""}})},25717:function(on,Vt,re){(function(E){E(re(89780))})(function(E){var it={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=E.Pos;E.defineOption("autoCloseBrackets",!1,function(we,Le,Ae){Ae&&Ae!=E.Init&&(we.removeKeyMap(Ce),we.state.closeBrackets=null),Le&&(Oe(Xe(Le,"pairs")),we.state.closeBrackets=Le,we.addKeyMap(Ce))});function Xe(we,Le){return Le=="pairs"&&typeof we=="string"?we:typeof we=="object"&&we[Le]!=null?we[Le]:it[Le]}var Ce={Backspace:Ee,Enter:he};function Oe(we){for(var Le=0;Le<we.length;Le++){var Ae=we.charAt(Le),Je="'"+Ae+"'";Ce[Je]||(Ce[Je]=Pe(Ae))}}Oe(it.pairs+"`");function Pe(we){return function(Le){return Se(Le,we)}}function Re(we){var Le=we.state.closeBrackets;if(!Le||Le.override)return Le;var Ae=we.getModeAt(we.getCursor());return Ae.closeBrackets||Le}function Ee(we){var Le=Re(we);if(!Le||we.getOption("disableInput"))return E.Pass;for(var Ae=Xe(Le,"pairs"),Je=we.listSelections(),ot=0;ot<Je.length;ot++){if(!Je[ot].empty())return E.Pass;var At=ft(we,Je[ot].head);if(!At||Ae.indexOf(At)%2!=0)return E.Pass}for(var ot=Je.length-1;ot>=0;ot--){var bt=Je[ot].head;we.replaceRange("",ge(bt.line,bt.ch-1),ge(bt.line,bt.ch+1),"+delete")}}function he(we){var Le=Re(we),Ae=Le&&Xe(Le,"explode");if(!Ae||we.getOption("disableInput"))return E.Pass;for(var Je=we.listSelections(),ot=0;ot<Je.length;ot++){if(!Je[ot].empty())return E.Pass;var At=ft(we,Je[ot].head);if(!At||Ae.indexOf(At)%2!=0)return E.Pass}we.operation(function(){var bt=we.lineSeparator()||`
`;we.replaceSelection(bt+bt,null),we.execCommand("goCharLeft"),Je=we.listSelections();for(var st=0;st<Je.length;st++){var ut=Je[st].head.line;we.indentLine(ut,null,!0),we.indentLine(ut+1,null,!0)}})}function et(we){var Le=E.cmpPos(we.anchor,we.head)>0;return{anchor:new ge(we.anchor.line,we.anchor.ch+(Le?-1:1)),head:new ge(we.head.line,we.head.ch+(Le?1:-1))}}function Se(we,Le){var Ae=Re(we);if(!Ae||we.getOption("disableInput"))return E.Pass;var Je=Xe(Ae,"pairs"),ot=Je.indexOf(Le);if(ot==-1)return E.Pass;for(var At=Xe(Ae,"closeBefore"),bt=Xe(Ae,"triples"),st=Je.charAt(ot+1)==Le,ut=we.listSelections(),qe=ot%2==0,Nt,vt=0;vt<ut.length;vt++){var at=ut[vt],kt=at.head,Be,Ge=we.getRange(kt,ge(kt.line,kt.ch+1));if(qe&&!at.empty())Be="surround";else if((st||!qe)&&Ge==Le)st&&We(we,kt)?Be="both":bt.indexOf(Le)>=0&&we.getRange(kt,ge(kt.line,kt.ch+3))==Le+Le+Le?Be="skipThree":Be="skip";else if(st&&kt.ch>1&&bt.indexOf(Le)>=0&&we.getRange(ge(kt.line,kt.ch-2),kt)==Le+Le){if(kt.ch>2&&/\bstring/.test(we.getTokenTypeAt(ge(kt.line,kt.ch-2))))return E.Pass;Be="addFour"}else if(st){var _e=kt.ch==0?" ":we.getRange(ge(kt.line,kt.ch-1),kt);if(!E.isWordChar(Ge)&&_e!=Le&&!E.isWordChar(_e))Be="both";else return E.Pass}else if(qe&&(Ge.length===0||/\s/.test(Ge)||At.indexOf(Ge)>-1))Be="both";else return E.Pass;if(!Nt)Nt=Be;else if(Nt!=Be)return E.Pass}var ue=ot%2?Je.charAt(ot-1):Le,Qe=ot%2?Le:Je.charAt(ot+1);we.operation(function(){if(Nt=="skip")we.execCommand("goCharRight");else if(Nt=="skipThree")for(var Te=0;Te<3;Te++)we.execCommand("goCharRight");else if(Nt=="surround"){for(var De=we.getSelections(),Te=0;Te<De.length;Te++)De[Te]=ue+De[Te]+Qe;we.replaceSelections(De,"around"),De=we.listSelections().slice();for(var Te=0;Te<De.length;Te++)De[Te]=et(De[Te]);we.setSelections(De)}else Nt=="both"?(we.replaceSelection(ue+Qe,null),we.triggerElectric(ue+Qe),we.execCommand("goCharLeft")):Nt=="addFour"&&(we.replaceSelection(ue+ue+ue+ue,"before"),we.execCommand("goCharRight"))})}function ft(we,Le){var Ae=we.getRange(ge(Le.line,Le.ch-1),ge(Le.line,Le.ch+1));return Ae.length==2?Ae:null}function We(we,Le){var Ae=we.getTokenAt(ge(Le.line,Le.ch+1));return/\bstring/.test(Ae.type)&&Ae.start==Le.ch&&(Le.ch==0||!/\bstring/.test(we.getTokenTypeAt(Le)))}})},6313:function(on,Vt,re){(function(E){E(re(89780),re(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Ee,he,et){if(et!=E.Init&&et&&Ee.removeKeyMap("autoCloseTags"),!!he){var Se={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Se["'/'"]=function(ft){return Oe(ft)}),(typeof he!="object"||he.whenOpening!==!1)&&(Se["'>'"]=function(ft){return Xe(ft)}),Ee.addKeyMap(Se)}});var it=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["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 Xe(Ee){if(Ee.getOption("disableInput"))return E.Pass;for(var he=Ee.listSelections(),et=[],Se=Ee.getOption("autoCloseTags"),ft=0;ft<he.length;ft++){if(!he[ft].empty())return E.Pass;var We=he[ft].head,we=Ee.getTokenAt(We),Le=E.innerMode(Ee.getMode(),we.state),Ae=Le.state,Je=Le.mode.xmlCurrentTag&&Le.mode.xmlCurrentTag(Ae),ot=Je&&Je.name;if(!ot)return E.Pass;var At=Le.mode.configuration=="html",bt=typeof Se=="object"&&Se.dontCloseTags||At&&it,st=typeof Se=="object"&&Se.indentTags||At&&ge;we.end>We.ch&&(ot=ot.slice(0,ot.length-we.end+We.ch));var ut=ot.toLowerCase();if(!ot||we.type=="string"&&(we.end!=We.ch||!/[\"\']/.test(we.string.charAt(we.string.length-1))||we.string.length==1)||we.type=="tag"&&Je.close||we.string.indexOf("/")==We.ch-we.start-1||bt&&Pe(bt,ut)>-1||Re(Ee,Le.mode.xmlCurrentContext&&Le.mode.xmlCurrentContext(Ae)||[],ot,We,!0))return E.Pass;var qe=typeof Se=="object"&&Se.emptyTags;if(qe&&Pe(qe,ot)>-1){et[ft]={text:"/>",newPos:E.Pos(We.line,We.ch+2)};continue}var Nt=st&&Pe(st,ut)>-1;et[ft]={indent:Nt,text:">"+(Nt?`
`:"")+"</"+ot+">",newPos:Nt?E.Pos(We.line+1,0):E.Pos(We.line,We.ch+1)}}for(var vt=typeof Se=="object"&&Se.dontIndentOnAutoClose,ft=he.length-1;ft>=0;ft--){var at=et[ft];Ee.replaceRange(at.text,he[ft].head,he[ft].anchor,"+insert");var kt=Ee.listSelections().slice(0);kt[ft]={head:at.newPos,anchor:at.newPos},Ee.setSelections(kt),!vt&&at.indent&&(Ee.indentLine(at.newPos.line,null,!0),Ee.indentLine(at.newPos.line+1,null,!0))}}function Ce(Ee,he){for(var et=Ee.listSelections(),Se=[],ft=he?"/":"</",We=Ee.getOption("autoCloseTags"),we=typeof We=="object"&&We.dontIndentOnSlash,Le=0;Le<et.length;Le++){if(!et[Le].empty())return E.Pass;var Ae=et[Le].head,Je=Ee.getTokenAt(Ae),ot=E.innerMode(Ee.getMode(),Je.state),At=ot.state;if(he&&(Je.type=="string"||Je.string.charAt(0)!="<"||Je.start!=Ae.ch-1))return E.Pass;var bt,st=ot.mode.name!="xml"&&Ee.getMode().name=="htmlmixed";if(st&&ot.mode.name=="javascript")bt=ft+"script";else if(st&&ot.mode.name=="css")bt=ft+"style";else{var ut=ot.mode.xmlCurrentContext&&ot.mode.xmlCurrentContext(At);if(!ut||ut.length&&Re(Ee,ut,ut[ut.length-1],Ae))return E.Pass;bt=ft+ut[ut.length-1]}Ee.getLine(Ae.line).charAt(Je.end)!=">"&&(bt+=">"),Se[Le]=bt}if(Ee.replaceSelections(Se),et=Ee.listSelections(),!we)for(var Le=0;Le<et.length;Le++)(Le==et.length-1||et[Le].head.line<et[Le+1].head.line)&&Ee.indentLine(et[Le].head.line)}function Oe(Ee){return Ee.getOption("disableInput")?E.Pass:Ce(Ee,!0)}E.commands.closeTag=function(Ee){return Ce(Ee)};function Pe(Ee,he){if(Ee.indexOf)return Ee.indexOf(he);for(var et=0,Se=Ee.length;et<Se;++et)if(Ee[et]==he)return et;return-1}function Re(Ee,he,et,Se,ft){if(!E.scanForClosingTag)return!1;var We=Math.min(Ee.lastLine()+1,Se.line+500),we=E.scanForClosingTag(Ee,Se,null,We);if(!we||we.tag!=et)return!1;for(var Le=ft?1:0,Ae=he.length-1;Ae>=0&&he[Ae]==et;Ae--)++Le;Se=we.to;for(var Ae=1;Ae<Le;Ae++){var Je=E.scanForClosingTag(Ee,Se,null,We);if(!Je||Je.tag!=et)return!1;Se=Je.to}return!0}})},32855:function(on,Vt,re){(function(E){E(re(89780))})(function(E){"use strict";var it=E.Pos;function ge(Ae,Je){return Ae.line-Je.line||Ae.ch-Je.ch}var Xe="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",Ce=Xe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Oe=new RegExp("<(/?)(["+Xe+"]["+Ce+"]*)","g");function Pe(Ae,Je,ot,At){this.line=Je,this.ch=ot,this.cm=Ae,this.text=Ae.getLine(Je),this.min=At?Math.max(At.from,Ae.firstLine()):Ae.firstLine(),this.max=At?Math.min(At.to-1,Ae.lastLine()):Ae.lastLine()}function Re(Ae,Je){var ot=Ae.cm.getTokenTypeAt(it(Ae.line,Je));return ot&&/\btag\b/.test(ot)}function Ee(Ae){if(!(Ae.line>=Ae.max))return Ae.ch=0,Ae.text=Ae.cm.getLine(++Ae.line),!0}function he(Ae){if(!(Ae.line<=Ae.min))return Ae.text=Ae.cm.getLine(--Ae.line),Ae.ch=Ae.text.length,!0}function et(Ae){for(;;){var Je=Ae.text.indexOf(">",Ae.ch);if(Je==-1){if(Ee(Ae))continue;return}if(!Re(Ae,Je+1)){Ae.ch=Je+1;continue}var ot=Ae.text.lastIndexOf("/",Je),At=ot>-1&&!/\S/.test(Ae.text.slice(ot+1,Je));return Ae.ch=Je+1,At?"selfClose":"regular"}}function Se(Ae){for(;;){var Je=Ae.ch?Ae.text.lastIndexOf("<",Ae.ch-1):-1;if(Je==-1){if(he(Ae))continue;return}if(!Re(Ae,Je+1)){Ae.ch=Je;continue}Oe.lastIndex=Je,Ae.ch=Je;var ot=Oe.exec(Ae.text);if(ot&&ot.index==Je)return ot}}function ft(Ae){for(;;){Oe.lastIndex=Ae.ch;var Je=Oe.exec(Ae.text);if(!Je){if(Ee(Ae))continue;return}if(!Re(Ae,Je.index+1)){Ae.ch=Je.index+1;continue}return Ae.ch=Je.index+Je[0].length,Je}}function We(Ae){for(;;){var Je=Ae.ch?Ae.text.lastIndexOf(">",Ae.ch-1):-1;if(Je==-1){if(he(Ae))continue;return}if(!Re(Ae,Je+1)){Ae.ch=Je;continue}var ot=Ae.text.lastIndexOf("/",Je),At=ot>-1&&!/\S/.test(Ae.text.slice(ot+1,Je));return Ae.ch=Je+1,At?"selfClose":"regular"}}function we(Ae,Je){for(var ot=[];;){var At=ft(Ae),bt,st=Ae.line,ut=Ae.ch-(At?At[0].length:0);if(!At||!(bt=et(Ae)))return;if(bt!="selfClose")if(At[1]){for(var qe=ot.length-1;qe>=0;--qe)if(ot[qe]==At[2]){ot.length=qe;break}if(qe<0&&(!Je||Je==At[2]))return{tag:At[2],from:it(st,ut),to:it(Ae.line,Ae.ch)}}else ot.push(At[2])}}function Le(Ae,Je){for(var ot=[];;){var At=We(Ae);if(!At)return;if(At=="selfClose"){Se(Ae);continue}var bt=Ae.line,st=Ae.ch,ut=Se(Ae);if(!ut)return;if(ut[1])ot.push(ut[2]);else{for(var qe=ot.length-1;qe>=0;--qe)if(ot[qe]==ut[2]){ot.length=qe;break}if(qe<0&&(!Je||Je==ut[2]))return{tag:ut[2],from:it(Ae.line,Ae.ch),to:it(bt,st)}}}}E.registerHelper("fold","xml",function(Ae,Je){for(var ot=new Pe(Ae,Je.line,0);;){var At=ft(ot);if(!At||ot.line!=Je.line)return;var bt=et(ot);if(!bt)return;if(!At[1]&&bt!="selfClose"){var st=it(ot.line,ot.ch),ut=we(ot,At[2]);return ut&&ge(ut.from,st)>0?{from:st,to:ut.from}:null}}}),E.findMatchingTag=function(Ae,Je,ot){var At=new Pe(Ae,Je.line,Je.ch,ot);if(!(At.text.indexOf(">")==-1&&At.text.indexOf("<")==-1)){var bt=et(At),st=bt&&it(At.line,At.ch),ut=bt&&Se(At);if(!(!bt||!ut||ge(At,Je)>0)){var qe={from:it(At.line,At.ch),to:st,tag:ut[2]};return bt=="selfClose"?{open:qe,close:null,at:"open"}:ut[1]?{open:Le(At,ut[2]),close:qe,at:"close"}:(At=new Pe(Ae,st.line,st.ch,ot),{open:qe,close:we(At,ut[2]),at:"open"})}}},E.findEnclosingTag=function(Ae,Je,ot,At){for(var bt=new Pe(Ae,Je.line,Je.ch,ot);;){var st=Le(bt,At);if(!st)break;var ut=new Pe(Ae,Je.line,Je.ch,ot),qe=we(ut,st.tag);if(qe)return{open:st,close:qe}}},E.scanForClosingTag=function(Ae,Je,ot,At){var bt=new Pe(Ae,Je.line,Je.ch,At?{from:0,to:At}:null);return we(bt,ot)}})},89780:function(on){(function(Vt,re){on.exports=re()})(this,function(){"use strict";var Vt=navigator.userAgent,re=navigator.platform,E=/gecko\/\d/i.test(Vt),it=/MSIE \d/.test(Vt),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vt),Xe=/Edge\/(\d+)/.exec(Vt),Ce=it||ge||Xe,Oe=Ce&&(it?document.documentMode||6:+(Xe||ge)[1]),Pe=!Xe&&/WebKit\//.test(Vt),Re=Pe&&/Qt\/\d+\.\d+/.test(Vt),Ee=!Xe&&/Chrome\//.test(Vt),he=/Opera\//.test(Vt),et=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Vt),ft=/PhantomJS/.test(Vt),We=!Xe&&/AppleWebKit/.test(Vt)&&/Mobile\/\w+/.test(Vt),we=/Android/.test(Vt),Le=We||we||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Vt),Ae=We||/Mac/.test(re),Je=/\bCrOS\b/.test(Vt),ot=/win/i.test(re),At=he&&Vt.match(/Version\/(\d*\.\d*)/);At&&(At=Number(At[1])),At&&At>=15&&(he=!1,Pe=!0);var bt=Ae&&(Re||he&&(At==null||At<12.11)),st=E||Ce&&Oe>=9;function ut(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var qe=function(a,y){var x=a.className,b=ut(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 Nt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function vt(a,y){return Nt(a).appendChild(y)}function at(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 kt(a,y,x,b){var z=at(a,y,x,b);return z.setAttribute("role","presentation"),z}var Be;document.createRange?Be=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:Be=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 Ge(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 ue(a,y){var x=a.className;ut(y).test(x)||(a.className+=(x?" ":"")+y)}function Qe(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!ut(x[b]).test(y)&&(y+=" "+x[b]);return y}var Te=function(a){a.select()};We?Te=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ce&&(Te=function(a){try{a.select()}catch(y){}});function De(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ht(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function me(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=b||0,le=z||0;;){var de=a.indexOf(" ",ie);if(de<0||de>=y)return le+(y-ie);le+=de-ie,le+=x-le%x,ie=de+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=De(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 Ze(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Tt=50,St={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},$e={origin:"*mouse"},je={origin:"+move"};function Ft(a,y,x){for(var b=0,z=0;;){var ie=a.indexOf(" ",b);ie==-1&&(ie=a.length);var le=ie-b;if(ie==a.length||z+le>=y)return b+Math.min(le,y-z);if(z+=ie-b,z+=x-z%x,b=ie+1,z>=y)return b}}var Bt=[""];function Ht(a){for(;Bt.length<=a;)Bt.push(Fe(Bt)+" ");return Bt[a]}function Fe(a){return a[a.length-1]}function _t(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&&ht(y,x),x}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var 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 be(a){return a.charCodeAt(0)>=768&&pe.test(a)}function ct(a,y,x){for(;(x<0?y>0:y<a.length)&&be(a.charAt(y));)y+=x;return y}function Ie(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 Ve(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var le=a[ie];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",ie),z=!0)}z||b(y,x,"ltr")}var pt=null;function Dt(a,y,x){var b;pt=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:pt=z),ie.from==y&&(ie.from!=ie.to&&x!="before"?b=z:pt=z)}return b!=null?b:pt}var Ot=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(ye){return ye<=247?a.charAt(ye):1424<=ye&&ye<=1524?"R":1536<=ye&&ye<=1785?y.charAt(ye-1536):1774<=ye&&ye<=2220?"r":8192<=ye&&ye<=8203?"w":ye==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,le=/[Lb1n]/,de=/[1n]/;function fe(ye,rt,yt){this.level=ye,this.from=rt,this.to=yt}return function(ye,rt){var yt=rt=="ltr"?"L":"R";if(ye.length==0||rt=="ltr"&&!b.test(ye))return!1;for(var Xt=ye.length,Zt=[],mn=0;mn<Xt;++mn)Zt.push(x(ye.charCodeAt(mn)));for(var Dn=0,Nn=yt;Dn<Xt;++Dn){var zn=Zt[Dn];zn=="m"?Zt[Dn]=Nn:Nn=zn}for(var Vn=0,Hn=yt;Vn<Xt;++Vn){var Kn=Zt[Vn];Kn=="1"&&Hn=="r"?Zt[Vn]="n":ie.test(Kn)&&(Hn=Kn,Kn=="r"&&(Zt[Vn]="R"))}for(var sr=1,nr=Zt[0];sr<Xt-1;++sr){var wr=Zt[sr];wr=="+"&&nr=="1"&&Zt[sr+1]=="1"?Zt[sr]="1":wr==","&&nr==Zt[sr+1]&&(nr=="1"||nr=="n")&&(Zt[sr]=nr),nr=wr}for(var Wr=0;Wr<Xt;++Wr){var li=Zt[Wr];if(li==",")Zt[Wr]="N";else if(li=="%"){var Ur=void 0;for(Ur=Wr+1;Ur<Xt&&Zt[Ur]=="%";++Ur);for(var Ti=Wr&&Zt[Wr-1]=="!"||Ur<Xt&&Zt[Ur]=="1"?"1":"N",Ei=Wr;Ei<Ur;++Ei)Zt[Ei]=Ti;Wr=Ur-1}}for(var qr=0,Ii=yt;qr<Xt;++qr){var di=Zt[qr];Ii=="L"&&di=="1"?Zt[qr]="L":ie.test(di)&&(Ii=di)}for(var ii=0;ii<Xt;++ii)if(z.test(Zt[ii])){var ei=void 0;for(ei=ii+1;ei<Xt&&z.test(Zt[ei]);++ei);for(var Kr=(ii?Zt[ii-1]:yt)=="L",Pi=(ei<Xt?Zt[ei]:yt)=="L",Vo=Kr==Pi?Kr?"L":"R":yt,bo=ii;bo<ei;++bo)Zt[bo]=Vo;ii=ei-1}for(var pi=[],eo,si=0;si<Xt;)if(le.test(Zt[si])){var bl=si;for(++si;si<Xt&&le.test(Zt[si]);++si);pi.push(new fe(0,bl,si))}else{var oo=si,Oo=pi.length,Do=rt=="rtl"?1:0;for(++si;si<Xt&&Zt[si]!="L";++si);for(var bi=oo;bi<si;)if(de.test(Zt[bi])){oo<bi&&(pi.splice(Oo,0,new fe(1,oo,bi)),Oo+=Do);var Go=bi;for(++bi;bi<si&&de.test(Zt[bi]);++bi);pi.splice(Oo,0,new fe(2,Go,bi)),Oo+=Do,oo=bi}else++bi;oo<si&&pi.splice(Oo,0,new fe(1,oo,si))}return rt=="ltr"&&(pi[0].level==1&&(eo=ye.match(/^\s+/))&&(pi[0].from=eo[0].length,pi.unshift(new fe(0,0,eo[0].length))),Fe(pi).level==1&&(eo=ye.match(/\s+$/))&&(Fe(pi).to-=eo[0].length,pi.push(new fe(0,Xt-eo[0].length,Xt)))),rt=="rtl"?pi.reverse():pi}}();function qt(a,y){var x=a.order;return x==null&&(x=a.order=Ot(a.text,y)),x}var Kt=[],Ut=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]||Kt).concat(x)}};function Pt(a,y){return a._handlers&&a._handlers[y]||Kt}function wt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,z=b&&b[y];if(z){var ie=Ze(z,x);ie>-1&&(b[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function mt(a,y){var x=Pt(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 dt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),mt(a,x||y.type,a,y),It(y)||y.codemirrorIgnore}function en(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)Ze(x,y[b])==-1&&x.push(y[b])}function Gt(a,y){return Pt(a,y).length>0}function Ne(a){a.prototype.on=function(y,x){Ut(this,y,x)},a.prototype.off=function(y,x){wt(this,y,x)}}function nt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ke(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function It(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Me(a){nt(a),Ke(a)}function Ye(a){return a.target||a.srcElement}function gt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ae&&a.ctrlKey&&y==1&&(y=3),y}var Et=function(){if(Ce&&Oe<9)return!1;var a=at("div");return"draggable"in a||"dragDrop"in a}(),jt;function ln(a){if(jt==null){var y=at("span","\u200B");vt(a,at("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(jt=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ce&&Oe<8))}var x=jt?at("span","\u200B"):at("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var wn;function Sn(a){if(wn!=null)return wn;var y=vt(a,document.createTextNode("A\u062EA")),x=Be(y,0,1).getBoundingClientRect(),b=Be(y,1,2).getBoundingClientRect();return Nt(a),!x||x.left==x.right?!1:wn=b.right-x.right<3}var rn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),le=ie.indexOf("\r");le!=-1?(x.push(ie.slice(0,le)),y+=le+1):(x.push(ie),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},pn=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=at("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Yt=null;function Rt(a){if(Yt!=null)return Yt;var y=vt(a,at("span","x")),x=y.getBoundingClientRect(),b=Be(y,0,1).getBoundingClientRect();return Yt=Math.abs(x.left-b.left)>1}var Lt={},Ct={};function Jt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Lt[a]=y}function Qt(a,y){Ct[a]=y}function tn(a){if(typeof a=="string"&&Ct.hasOwnProperty(a))a=Ct[a];else if(a&&typeof a.name=="string"&&Ct.hasOwnProperty(a.name)){var y=Ct[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 tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function un(a,y){y=tn(y);var x=Lt[y.name];if(!x)return un(a,"text/plain");var b=x(a,y);if(yn.hasOwnProperty(y.name)){var z=yn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(b.hasOwnProperty(ie)&&(b["_"+ie]=b[ie]),b[ie]=z[ie])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var yn={};function gn(a,y){var x=yn.hasOwnProperty(a)?yn[a]:yn[a]={};ht(y,x)}function On(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 En(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function Mn(a,y,x){return a.startState?a.startState(y,x):!0}var Bn=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};Bn.prototype.eol=function(){return this.pos>=this.string.length},Bn.prototype.sol=function(){return this.pos==this.lineStart},Bn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bn.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},Bn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Bn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Bn.prototype.skipToEnd=function(){this.pos=this.string.length},Bn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Bn.prototype.backUp=function(a){this.pos-=a},Bn.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)},Bn.prototype.indentation=function(){return me(this.string,null,this.tabSize)-(this.lineStart?me(this.string,this.lineStart,this.tabSize):0)},Bn.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},z=this.string.substr(this.pos,a.length);if(b(z)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},Bn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Bn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Bn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function xt(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 $t(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(ie){var le=ie.text;z==x.line&&(le=le.slice(0,x.ch)),z==y.line&&(le=le.slice(y.ch)),b.push(le),++z}),b}function cn(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function an(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function ze(a){if(a.parent==null)return null;for(var y=a.parent,x=Ze(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 tt(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],ie=z.height;if(y<ie){a=z;continue e}y-=ie,x+=z.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var de=a.lines[le],fe=de.height;if(y<fe)break;y-=fe}return x+le}function xe(a,y){return y>=a.first&&y<a.first+a.size}function He(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function ke(a,y,x){if(x===void 0&&(x=null),!(this instanceof ke))return new ke(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Ue(a,y){return a.line-y.line||a.ch-y.ch}function Mt(a,y){return a.sticky==y.sticky&&Ue(a,y)==0}function sn(a){return ke(a.line,a.ch)}function hn(a,y){return Ue(a,y)<0?y:a}function Cn(a,y){return Ue(a,y)<0?a:y}function nn(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Wt(a,y){if(y.line<a.first)return ke(a.first,0);var x=a.first+a.size-1;return y.line>x?ke(x,xt(a,x).text.length):zt(y,xt(a,y.line).text.length)}function zt(a,y){var x=a.ch;return x==null||x>y?ke(a.line,y):x<0?ke(a.line,0):a}function vn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Wt(a,y[b]);return x}var An=function(a,y){this.state=a,this.lookAhead=y},Tn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Tn.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}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(a,y,x){return y instanceof An?new Tn(a,On(a.mode,y.state),x,y.lookAhead):new Tn(a,On(a.mode,y),x)},Tn.prototype.save=function(a){var y=a!==!1?On(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new An(y,this.maxLookAhead):y};function Ln(a,y,x,b){var z=[a.state.modeGen],ie={};qn(a,y.text,a.doc.mode,x,function(ye,rt){return z.push(ye,rt)},ie,b);for(var le=x.state,de=function(ye){x.baseTokens=z;var rt=a.state.overlays[ye],yt=1,Xt=0;x.state=!0,qn(a,y.text,rt.mode,x,function(Zt,mn){for(var Dn=yt;Xt<Zt;){var Nn=z[yt];Nn>Zt&&z.splice(yt,1,Zt,z[yt+1],Nn),yt+=2,Xt=Math.min(Zt,Nn)}if(mn)if(rt.opaque)z.splice(Dn,yt-Dn,Zt,"overlay "+mn),yt=Dn+2;else for(;Dn<yt;Dn+=2){var zn=z[Dn+1];z[Dn+1]=(zn?zn+" ":"")+"overlay "+mn}},ie),x.state=le,x.baseTokens=null,x.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)de(fe);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function Xn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Qn(a,ze(y)),z=y.text.length>a.options.maxHighlightLength&&On(a.doc.mode,b.state),ie=Ln(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 Tn(b,!0,y);var ie=lr(a,y,x),le=ie>b.first&&xt(b,ie-1).stateAfter,de=le?Tn.fromSaved(b,le,ie):new Tn(b,Mn(b.mode),ie);return b.iter(ie,y,function(fe){Jn(a,fe.text,de);var ye=de.line;fe.stateAfter=ye==y-1||ye%5==0||ye>=z.viewFrom&&ye<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 Bn(y,a.options.tabSize,x);for(ie.start=ie.pos=b||0,y==""&&Zn(z,x.state);!ie.eol();)_n(z,ie,x.state),ie.start=ie.pos}function Zn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=En(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function _n(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=En(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 jn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Un(a,y,x,b){var z=a.doc,ie=z.mode,le;y=Wt(z,y);var de=xt(z,y.line),fe=Qn(a,y.line,x),ye=new Bn(de.text,a.options.tabSize,fe),rt;for(b&&(rt=[]);(b||ye.pos<y.ch)&&!ye.eol();)ye.start=ye.pos,le=_n(ie,ye,fe.state),b&&rt.push(new jn(ye,le,On(z.mode,fe.state)));return b?rt:new jn(ye,le,fe.state)}function ur(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function qn(a,y,x,b,z,ie,le){var de=x.flattenSpans;de==null&&(de=a.options.flattenSpans);var fe=0,ye=null,rt=new Bn(y,a.options.tabSize,b),yt,Xt=a.options.addModeClass&&[null];for(y==""&&ur(Zn(x,b.state),ie);!rt.eol();){if(rt.pos>a.options.maxHighlightLength?(de=!1,le&&Jn(a,y,b,rt.pos),rt.pos=y.length,yt=null):yt=ur(_n(x,rt,b.state,Xt),ie),Xt){var Zt=Xt[0].name;Zt&&(yt="m-"+(yt?Zt+" "+yt:Zt))}if(!de||ye!=yt){for(;fe<rt.start;)fe=Math.min(rt.start,fe+5e3),z(fe,ye);ye=yt}rt.start=rt.pos}for(;fe<rt.pos;){var mn=Math.min(rt.pos,fe+5e3);z(mn,ye),fe=mn}}function lr(a,y,x){for(var b,z,ie=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),de=y;de>le;--de){if(de<=ie.first)return ie.first;var fe=xt(ie,de-1),ye=fe.stateAfter;if(ye&&(!x||de+(ye instanceof An?ye.lookAhead:0)<=ie.modeFrontier))return de;var rt=me(fe.text,null,a.options.tabSize);(z==null||b>rt)&&(z=de-1,b=rt)}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=xt(a,b).stateAfter;if(z&&(!(z instanceof An)||b+z.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var er=!1,tr=!1;function gr(){er=!0}function mr(){tr=!0}function cr(a,y,x){this.marker=a,this.from=y,this.to=x}function vr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function Cr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function or(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function dr(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var fe=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);(b||(b=[])).push(new cr(le,ie.from,fe?null:ie.to))}}return b}function Gn(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var ie=a[z],le=ie.marker,de=ie.to==null||(le.inclusiveRight?ie.to>=y:ie.to>y);if(de||ie.from==y&&le.type=="bookmark"&&(!x||ie.marker.insertLeft)){var fe=ie.from==null||(le.inclusiveLeft?ie.from<=y:ie.from<y);(b||(b=[])).push(new cr(le,fe?null:ie.from-y,ie.to==null?null:ie.to-y))}}return b}function Sr(a,y){if(y.full)return null;var x=xe(a,y.from.line)&&xt(a,y.from.line).markedSpans,b=xe(a,y.to.line)&&xt(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,ie=y.to.ch,le=Ue(y.from,y.to)==0,de=dr(x,z,le),fe=Gn(b,ie,le),ye=y.text.length==1,rt=Fe(y.text).length+(ye?z:0);if(de)for(var yt=0;yt<de.length;++yt){var Xt=de[yt];if(Xt.to==null){var Zt=vr(fe,Xt.marker);Zt?ye&&(Xt.to=Zt.to==null?null:Zt.to+rt):Xt.to=z}}if(fe)for(var mn=0;mn<fe.length;++mn){var Dn=fe[mn];if(Dn.to!=null&&(Dn.to+=rt),Dn.from==null){var Nn=vr(de,Dn.marker);Nn||(Dn.from=rt,ye&&(de||(de=[])).push(Dn))}else Dn.from+=rt,ye&&(de||(de=[])).push(Dn)}de&&(de=Rr(de)),fe&&fe!=de&&(fe=Rr(fe));var zn=[de];if(!ye){var Vn=y.text.length-2,Hn;if(Vn>0&&de)for(var Kn=0;Kn<de.length;++Kn)de[Kn].to==null&&(Hn||(Hn=[])).push(new cr(de[Kn].marker,null,null));for(var sr=0;sr<Vn;++sr)zn.push(Hn);zn.push(fe)}return zn}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(Zt){if(Zt.markedSpans)for(var mn=0;mn<Zt.markedSpans.length;++mn){var Dn=Zt.markedSpans[mn].marker;Dn.readOnly&&(!b||Ze(b,Dn)==-1)&&(b||(b=[])).push(Dn)}}),!b)return null;for(var z=[{from:y,to:x}],ie=0;ie<b.length;++ie)for(var le=b[ie],de=le.find(0),fe=0;fe<z.length;++fe){var ye=z[fe];if(!(Ue(ye.to,de.from)<0||Ue(ye.from,de.to)>0)){var rt=[fe,1],yt=Ue(ye.from,de.from),Xt=Ue(ye.to,de.to);(yt<0||!le.inclusiveLeft&&!yt)&&rt.push({from:ye.from,to:de.from}),(Xt>0||!le.inclusiveRight&&!Xt)&&rt.push({from:de.to,to:ye.to}),z.splice.apply(z,rt),fe+=rt.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 Mr(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=Ue(b.from,z.from)||Ir(a)-Ir(y);if(ie)return-ie;var le=Ue(b.to,z.to)||Mr(a)-Mr(y);return le||y.id-a.id}function fr(a,y){var x=tr&&a.markedSpans,b;if(x)for(var z=void 0,ie=0;ie<x.length;++ie)z=x[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||_r(b,z.marker)<0)&&(b=z.marker);return b}function Yn(a){return fr(a,!0)}function bn(a){return fr(a,!1)}function kn(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 Pn(a,y,x,b,z){var ie=xt(a,y),le=tr&&ie.markedSpans;if(le)for(var de=0;de<le.length;++de){var fe=le[de];if(fe.marker.collapsed){var ye=fe.marker.find(0),rt=Ue(ye.from,x)||Ir(fe.marker)-Ir(z),yt=Ue(ye.to,b)||Mr(fe.marker)-Mr(z);if(!(rt>=0&&yt<=0||rt<=0&&yt>=0)&&(rt<=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Ue(ye.to,x)>=0:Ue(ye.to,x)>0)||rt>=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?Ue(ye.from,b)<=0:Ue(ye.from,b)<0)))return!0}}}function fn(a){for(var y;y=Yn(a);)a=y.find(-1,!0).line;return a}function $n(a){for(var y;y=bn(a);)a=y.find(1,!0).line;return a}function Wn(a){for(var y,x;y=bn(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function xn(a,y){var x=xt(a,y),b=fn(x);return x==b?y:ze(b)}function In(a,y){if(y>a.lastLine())return y;var x=xt(a,y),b;if(!Rn(a,x))return y;for(;b=bn(x);)x=b.find(1,!0).line;return ze(x)+1}function Rn(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&&Fn(a,y,b))return!0}}}function Fn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Fn(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)&&Fn(a,y,z))return!0}function rr(a){a=fn(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var z=x.lines[b];if(z==a)break;y+=z.height}for(var ie=x.parent;ie;x=ie,ie=x.parent)for(var le=0;le<ie.children.length;++le){var de=ie.children[le];if(de==x)break;y+=de.height}return y}function Pr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Yn(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=bn(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=xt(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 Dr=function(a,y,x){this.text=a,Ar(this,y),this.height=x?x(this):1};Dr.prototype.lineNo=function(){return ze(this)},Ne(Dr);function kr(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&&an(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=kt("span",null,null,Pe?"padding-right: .1px":null),b={pre:kt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,le=void 0;b.pos=0,b.addToken=Fi,Sn(a.display.measure)&&(le=qt(ie,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var de=y!=a.display.externalMeasured&&ze(ie);Lr(ie,b,Xn(a,ie,de)),ie.styleClasses&&(ie.styleClasses.bgClass&&(b.bgClass=Qe(ie.styleClasses.bgClass,b.bgClass||"")),ie.styleClasses.textClass&&(b.textClass=Qe(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(Pe){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 mt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Qe(b.pre.className,b.textClass||"")),b}function ki(a){var y=at("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,z,ie,le){if(y){var de=a.splitSpaces?xi(y,a.trailingSpace):y,fe=a.cm.state.specialChars,ye=!1,rt;if(!fe.test(y))a.col+=y.length,rt=document.createTextNode(de),a.map.push(a.pos,a.pos+y.length,rt),Ce&&Oe<9&&(ye=!0),a.pos+=y.length;else{rt=document.createDocumentFragment();for(var yt=0;;){fe.lastIndex=yt;var Xt=fe.exec(y),Zt=Xt?Xt.index-yt:y.length-yt;if(Zt){var mn=document.createTextNode(de.slice(yt,yt+Zt));Ce&&Oe<9?rt.appendChild(at("span",[mn])):rt.appendChild(mn),a.map.push(a.pos,a.pos+Zt,mn),a.col+=Zt,a.pos+=Zt}if(!Xt)break;yt+=Zt+1;var Dn=void 0;if(Xt[0]==" "){var Nn=a.cm.options.tabSize,zn=Nn-a.col%Nn;Dn=rt.appendChild(at("span",Ht(zn),"cm-tab")),Dn.setAttribute("role","presentation"),Dn.setAttribute("cm-text"," "),a.col+=zn}else Xt[0]=="\r"||Xt[0]==`
`?(Dn=rt.appendChild(at("span",Xt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Dn.setAttribute("cm-text",Xt[0]),a.col+=1):(Dn=a.cm.options.specialCharPlaceholder(Xt[0]),Dn.setAttribute("cm-text",Xt[0]),Ce&&Oe<9?rt.appendChild(at("span",[Dn])):rt.appendChild(Dn),a.col+=1);a.map.push(a.pos,a.pos+1,Dn),a.pos++}}if(a.trailingSpace=de.charCodeAt(y.length-1)==32,x||b||z||ye||ie||le){var Vn=x||"";b&&(Vn+=b),z&&(Vn+=z);var Hn=at("span",[rt],Vn,ie);if(le)for(var Kn in le)le.hasOwnProperty(Kn)&&Kn!="style"&&Kn!="class"&&Hn.setAttribute(Kn,le[Kn]);return a.content.appendChild(Hn)}a.content.appendChild(rt)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),b+=ie,x=ie==" "}return b}function mi(a,y){return function(x,b,z,ie,le,de,fe){z=z?z+" cm-force-border":"cm-force-border";for(var ye=x.pos,rt=ye+b.length;;){for(var yt=void 0,Xt=0;Xt<y.length&&(yt=y[Xt],!(yt.to>ye&&yt.from<=ye));Xt++);if(yt.to>=rt)return a(x,b,z,ie,le,de,fe);a(x,b.slice(0,yt.to-ye),z,ie,null,de,fe),ie=null,b=b.slice(yt.to-ye),ye=yt.to}}}function Xi(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Lr(a,y,x){var b=a.markedSpans,z=a.text,ie=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,z.slice(ie,ie=x[le]),Zr(x[le+1],y.cm.options));return}for(var de=z.length,fe=0,ye=1,rt="",yt,Xt,Zt=0,mn,Dn,Nn,zn,Vn;;){if(Zt==fe){mn=Dn=Nn=Xt="",Vn=null,zn=null,Zt=1/0;for(var Hn=[],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)Hn.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&&Zt>nr.to&&(Zt=nr.to,Dn=""),wr.className&&(mn+=" "+wr.className),wr.css&&(Xt=(Xt?Xt+";":"")+wr.css),wr.startStyle&&nr.from==fe&&(Nn+=" "+wr.startStyle),wr.endStyle&&nr.to==Zt&&(Kn||(Kn=[])).push(wr.endStyle,nr.to),wr.title&&((Vn||(Vn={})).title=wr.title),wr.attributes)for(var Wr in wr.attributes)(Vn||(Vn={}))[Wr]=wr.attributes[Wr];wr.collapsed&&(!zn||_r(zn.marker,wr)<0)&&(zn=nr)}else nr.from>fe&&Zt>nr.from&&(Zt=nr.from)}if(Kn)for(var li=0;li<Kn.length;li+=2)Kn[li+1]==Zt&&(Dn+=" "+Kn[li]);if(!zn||zn.from==fe)for(var Ur=0;Ur<Hn.length;++Ur)Xi(y,0,Hn[Ur]);if(zn&&(zn.from||0)==fe){if(Xi(y,(zn.to==null?de+1:zn.to)-fe,zn.marker,zn.from==null),zn.to==null)return;zn.to==fe&&(zn=!1)}}if(fe>=de)break;for(var Ti=Math.min(de,Zt);;){if(rt){var Ei=fe+rt.length;if(!zn){var qr=Ei>Ti?rt.slice(0,Ti-fe):rt;y.addToken(y,qr,yt?yt+mn:mn,Nn,fe+qr.length==Zt?Dn:"",Xt,Vn)}if(Ei>=Ti){rt=rt.slice(Ti-fe),fe=Ti;break}fe=Ei,Nn=""}rt=z.slice(ie,ie=x[ye++]),yt=Zr(x[ye++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=Wn(y),this.size=this.rest?ze(Fe(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Rn(a,y)}function ni(a,y,x){for(var b=[],z,ie=y;ie<x;ie=z){var le=new to(a.doc,xt(a.doc,ie),ie);z=ie+le.size,b.push(le)}return b}var Li=null;function ao(a){Li?Li.ops.push(a):a.ownsGroup=Li={ops:[a],delayedCallbacks:[]}}function Yi(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var z=a.ops[b];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(x<y.length)}function vi(a,y){var x=a.ownsGroup;if(x)try{Yi(x)}finally{Li=null,y(x)}}var Ai=null;function Vr(a,y){var x=Pt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;Li?z=Li.delayedCallbacks:Ai?z=Ai:(z=Ai=[],setTimeout(_i,0));for(var ie=function(de){z.push(function(){return x[de].apply(null,b)})},le=0;le<x.length;++le)ie(le)}}function _i(){var a=Ai;Ai=null;for(var y=0;y<a.length;++y)a[y]()}function lo(a,y,x,b){for(var z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?so(a,y):ie=="gutter"?yr(a,y,x,b):ie=="class"?ar(a,y):ie=="widget"&&hr(a,y,b)}y.changes=null}function ji(a){return a.node==a.text&&(a.node=at("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ce&&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=ji(y);y.background=b.insertBefore(at("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?ji(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function yr(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=ji(y);y.gutterBackground=at("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var le=ji(y),de=y.gutter=at("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(de),le.insertBefore(de,y.text),y.line.gutterClass&&(de.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=de.appendChild(at("div",He(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 ye=a.display.gutterSpecs[fe].className,rt=ie.hasOwnProperty(ye)&&ie[ye];rt&&de.appendChild(at("div",[rt],"CodeMirror-gutter-elt","left: "+b.gutterLeft[ye]+"px; width: "+b.gutterWidth[ye]+"px"))}}}function hr(a,y,x){y.alignable&&(y.alignable=null);for(var b=ut("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(jr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)jr(a,y.rest[b],y,x,!1)}function jr(a,y,x,b,z){if(y.widgets)for(var ie=ji(x),le=0,de=y.widgets;le<de.length;++le){var fe=de[le],ye=at("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||ye.setAttribute("cm-ignore-events","true"),Wi(fe,ye,x,b),a.display.input.setUneditable(ye),z&&fe.above?ie.insertBefore(ye,x.gutter||x.text):ie.appendChild(ye),Vr(fe,"redraw")}}function Wi(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(!Ge(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;"),vt(y.display.measure,at("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function ui(a,y){for(var x=Ye(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=vt(a.measure,at("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 Oi(a){return Tt-a.display.nativeBarWidth}function Ji(a){return a.display.scroller.clientWidth-Oi(a)-a.display.barWidth}function no(a){return a.display.scroller.clientHeight-Oi(a)-a.display.barHeight}function Zi(a,y,x){var b=a.options.lineWrapping,z=b&&Ji(a);if(!y.measure.heights||b&&y.measure.width!=z){var ie=y.measure.heights=[];if(b){y.measure.width=z;for(var le=y.text.firstChild.getClientRects(),de=0;de<le.length-1;de++){var fe=le[de],ye=le[de+1];Math.abs(fe.bottom-ye.bottom)>2&&ie.push((fe.bottom+ye.top)/2-x.top)}}ie.push(x.bottom-x.top)}}function Mo(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(ze(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function Za(a,y){y=fn(y);var x=ze(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,vt(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=ze(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=Mo(b,y,x);return{line:y,view:b,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function zi(a,y,x,b,z){y.before&&(x=-1);var ie=x+(b||""),le;return y.cache.hasOwnProperty(ie)?le=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Zi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[ie]=le)),{left:le.left,right:le.right,top:z?le.rtop:le.top,bottom:z?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,z,ie,le,de,fe,ye=0;ye<a.length;ye+=3)if(de=a[ye],fe=a[ye+1],y<de?(z=0,ie=1,le="left"):y<fe?(z=y-de,ie=z+1):(ye==a.length-3||y==fe&&a[ye+3]>y)&&(ie=fe-de,z=ie-1,y>=fe&&(le="right")),z!=null){if(b=a[ye+2],de==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&z==0)for(;ye&&a[ye-2]==a[ye-3]&&a[ye-1].insertLeft;)b=a[(ye-=3)+2],le="left";if(x=="right"&&z==fe-de)for(;ye<a.length-3&&a[ye+3]==a[ye+4]&&!a[ye+5].insertLeft;)b=a[(ye+=3)+2],le="right";break}return{node:b,start:z,end:ie,collapse:le,coverStart:de,coverEnd:fe}}function Va(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function Ca(a,y,x,b){var z=xa(y.map,x,b),ie=z.node,le=z.start,de=z.end,fe=z.collapse,ye;if(ie.nodeType==3){for(var rt=0;rt<4;rt++){for(;le&&be(y.line.text.charAt(z.coverStart+le));)--le;for(;z.coverStart+de<z.coverEnd&&be(y.line.text.charAt(z.coverStart+de));)++de;if(Ce&&Oe<9&&le==0&&de==z.coverEnd-z.coverStart?ye=ie.parentNode.getBoundingClientRect():ye=Va(Be(ie,le,de).getClientRects(),b),ye.left||ye.right||le==0)break;de=le,le=le-1,fe="right"}Ce&&Oe<11&&(ye=Ga(a.display.measure,ye))}else{le>0&&(fe=b="right");var yt;a.options.lineWrapping&&(yt=ie.getClientRects()).length>1?ye=yt[b=="right"?yt.length-1:0]:ye=ie.getBoundingClientRect()}if(Ce&&Oe<9&&!le&&(!ye||!ye.left&&!ye.right)){var Xt=ie.parentNode.getClientRects()[0];Xt?ye={left:Xt.left,right:Xt.left+Gi(a.display),top:Xt.top,bottom:Xt.bottom}:ye=ba}for(var Zt=ye.top-y.rect.top,mn=ye.bottom-y.rect.top,Dn=(Zt+mn)/2,Nn=y.view.measure.heights,zn=0;zn<Nn.length-1&&!(Dn<Nn[zn]);zn++);var Vn=zn?Nn[zn-1]:0,Hn=Nn[zn],Kn={left:(fe=="right"?ye.right:ye.left)-y.rect.left,right:(fe=="left"?ye.left:ye.right)-y.rect.left,top:Vn,bottom:Hn};return!ye.left&&!ye.right&&(Kn.bogus=!0),a.options.singleCursorHeightPerLine||(Kn.rtop=Zt,Kn.rbottom=mn),Kn}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Rt(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,Nt(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 Ee&&we?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Ee&&we?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=gi(a.widgets[x]));return y}function Bo(a,y,x,b,z){if(!z){var ie=Yo(y);x.top+=ie,x.bottom+=ie}if(b=="line")return x;b||(b="local");var le=rr(y);if(b=="local"?le+=Xr(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var de=a.display.lineSpace.getBoundingClientRect();le+=de.top+(b=="window"?0:Sa());var fe=de.left+(b=="window"?0:Xo());x.left+=fe,x.right+=fe}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,z=y.top;if(x=="page")b-=Xo(),z-=Sa();else if(x=="local"||!x){var ie=a.display.sizer.getBoundingClientRect();b+=ie.left,z+=ie.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:z-le.top}}function To(a,y,x,b,z){return b||(b=xt(a.doc,y.line)),Bo(a,b,ya(a,b,y.ch,z),x)}function Ci(a,y,x,b,z,ie){b=b||xt(a.doc,y.line),z||(z=uo(a,b));function le(mn,Dn){var Nn=zi(a,z,mn,Dn?"right":"left",ie);return Dn?Nn.left=Nn.right:Nn.right=Nn.left,Bo(a,b,Nn,x)}var de=qt(b,a.doc.direction),fe=y.ch,ye=y.sticky;if(fe>=b.text.length?(fe=b.text.length,ye="before"):fe<=0&&(fe=0,ye="after"),!de)return le(ye=="before"?fe-1:fe,ye=="before");function rt(mn,Dn,Nn){var zn=de[Dn],Vn=zn.level==1;return le(Nn?mn-1:mn,Vn!=Nn)}var yt=Dt(de,fe,ye),Xt=pt,Zt=rt(fe,yt,ye=="before");return Xt!=null&&(Zt.other=rt(fe,Xt,ye!="before")),Zt}function Or(a,y){var x=0;y=Wt(a.doc,y),a.options.lineWrapping||(x=Gi(a.display)*y.ch);var b=xt(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=ke(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=tt(b,x),ie=b.first+b.size-1;if(z>ie)return xr(b.first+b.size-1,xt(b,ie).text.length,null,1,1);y<0&&(y=0);for(var le=xt(b,z);;){var de=Vi(a,le,z,y,x),fe=kn(le,de.ch+(de.xRel>0||de.outside>0?1:0));if(!fe)return de;var ye=fe.find(1);if(ye.line==z)return ye;le=xt(b,z=ye.line)}}function fi(a,y,x,b){b-=Yo(y);var z=y.text.length,ie=Ie(function(le){return zi(a,x,le-1).bottom<=b},z,0);return z=Ie(function(le){return zi(a,x,le).top>b},ie,z),{begin:ie,end:z}}function Yr(a,y,x,b){x||(x=uo(a,y));var z=Bo(a,y,zi(a,x,b),"line").top;return fi(a,y,x,z)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Vi(a,y,x,b,z){z-=rr(y);var ie=uo(a,y),le=Yo(y),de=0,fe=y.text.length,ye=!0,rt=qt(y,a.doc.direction);if(rt){var yt=(a.options.lineWrapping?ro:Hi)(a,y,x,ie,rt,b,z);ye=yt.level!=1,de=ye?yt.from:yt.to-1,fe=ye?yt.to:yt.from-1}var Xt=null,Zt=null,mn=Ie(function(sr){var nr=zi(a,ie,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,z,!1)?(nr.top<=z&&nr.left<=b&&(Xt=sr,Zt=nr),!0):!1},de,fe),Dn,Nn,zn=!1;if(Zt){var Vn=b-Zt.left<Zt.right-b,Hn=Vn==ye;mn=Xt+(Hn?0:1),Nn=Hn?"after":"before",Dn=Vn?Zt.left:Zt.right}else{!ye&&(mn==fe||mn==de)&&mn++,Nn=mn==0?"after":mn==y.text.length?"before":zi(a,ie,mn-(ye?1:0)).bottom+le<=z==ye?"after":"before";var Kn=Ci(a,ke(x,mn,Nn),"line",y,ie);Dn=Kn.left,zn=z<Kn.top?-1:z>=Kn.bottom?1:0}return mn=ct(y.text,mn,1),xr(x,mn,Nn,zn,b-Dn)}function Hi(a,y,x,b,z,ie,le){var de=Ie(function(yt){var Xt=z[yt],Zt=Xt.level!=1;return ri(Ci(a,ke(x,Zt?Xt.to:Xt.from,Zt?"before":"after"),"line",y,b),ie,le,!0)},0,z.length-1),fe=z[de];if(de>0){var ye=fe.level!=1,rt=Ci(a,ke(x,ye?fe.from:fe.to,ye?"after":"before"),"line",y,b);ri(rt,ie,le,!0)&&rt.top>le&&(fe=z[de-1])}return fe}function ro(a,y,x,b,z,ie,le){var de=fi(a,y,b,le),fe=de.begin,ye=de.end;/\s/.test(y.text.charAt(ye-1))&&ye--;for(var rt=null,yt=null,Xt=0;Xt<z.length;Xt++){var Zt=z[Xt];if(!(Zt.from>=ye||Zt.to<=fe)){var mn=Zt.level!=1,Dn=zi(a,b,mn?Math.min(ye,Zt.to)-1:Math.max(fe,Zt.from)).right,Nn=Dn<ie?ie-Dn+1e9:Dn-ie;(!rt||yt>Nn)&&(rt=Zt,yt=Nn)}}return rt||(rt=z[z.length-1]),rt.from<fe&&(rt={from:fe,to:rt.to,level:rt.level}),rt.to>ye&&(rt={from:rt.from,to:ye,level:rt.level}),rt}var Di;function Mi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Di==null){Di=at("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Di.appendChild(document.createTextNode("x")),Di.appendChild(at("br"));Di.appendChild(document.createTextNode("x"))}vt(a.measure,Di);var x=Di.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Nt(a.measure),x||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=at("span","xxxxxxxxxx"),x=at("pre",[y],"CodeMirror-line-like");vt(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function co(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,le=0;ie;ie=ie.nextSibling,++le){var de=a.display.gutterSpecs[le].className;x[de]=ie.offsetLeft+ie.clientLeft+z,b[de]=ie.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Mi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Gi(a.display)-3);return function(z){if(Rn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var le=0;le<z.widgets.length;le++)z.widgets[le].height&&(ie+=z.widgets[le].height);return x?ie+(Math.ceil(z.text.length/b)||1)*y:ie+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var z=x(b);z!=b.height&&an(b,z)})}function So(a,y,x,b){var z=a.display;if(!x&&Ye(y).getAttribute("cm-not-content")=="true")return null;var ie,le,de=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-de.left,le=y.clientY-de.top}catch(yt){return null}var fe=ci(a,ie,le),ye;if(b&&fe.xRel>0&&(ye=xt(a.doc,fe.line).text).length==fe.ch){var rt=me(ye,ye.length,a.options.tabSize)-ye.length;fe=ke(fe.line,Math.max(0,Math.round((ie-Qi(a.display).left)/Gi(a.display))-rt))}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&&xn(a.doc,y)<z.viewTo&&ho(a);else if(x<=z.viewFrom)tr&&In(a.doc,x+b)>z.viewFrom?ho(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)ho(a);else if(y<=z.viewFrom){var ie=Ea(a,x,x+b,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=b):ho(a)}else if(x>=z.viewTo){var le=Ea(a,y,y,-1);le?(z.view=z.view.slice(0,le.index),z.viewTo=le.lineN):ho(a)}else{var de=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);de&&fe?(z.view=z.view.slice(0,de.index).concat(ni(a,de.lineN,fe.lineN)).concat(z.view.slice(fe.index)),z.viewTo+=b):ho(a)}var ye=z.externalMeasured;ye&&(x<ye.lineN?ye.lineN+=b:y<ye.lineN+ye.size&&(z.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ie=b.view[wo(a,y)];if(ie.node!=null){var le=ie.changes||(ie.changes=[]);Ze(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var z=wo(a,y),ie,le=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var de=a.display.viewFrom,fe=0;fe<z;fe++)de+=le[fe].size;if(de!=y){if(b>0){if(z==le.length-1)return null;ie=de+le[z].size-y,z++}else ie=de-y;y+=ie,x+=ie}for(;xn(a.doc,x)!=x;){if(z==(b<0?0:le.length-1))return null;x+=b*le[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function $s(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ni(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ni(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(ni(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var z=y[b];!z.hidden&&(!z.node||z.changes)&&++x}return x}function Qo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),ie=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var de=x.sel.ranges[le];if(!(de.from().line>=a.display.viewTo||de.to().line<a.display.viewFrom)){var fe=de.empty();(fe||a.options.showCursorWhenSelecting)&&El(a,de.head,z),fe||zs(a,de,ie)}}return b}function El(a,y,x){var b=Ci(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(at("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(at("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=b.other.left+"px",ie.style.top=b.other.top+"px",ie.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function zs(a,y,x){var b=a.display,z=a.doc,ie=document.createDocumentFragment(),le=Qi(a.display),de=le.left,fe=Math.max(b.sizerWidth,Ji(a)-b.sizer.offsetLeft)-le.right,ye=z.direction=="ltr";function rt(Hn,Kn,sr,nr){Kn<0&&(Kn=0),Kn=Math.round(Kn),nr=Math.round(nr),ie.appendChild(at("div",null,"CodeMirror-selected","position: absolute; left: "+Hn+`px;
top: `+Kn+"px; width: "+(sr==null?fe-Hn:sr)+`px;
height: `+(nr-Kn)+"px"))}function yt(Hn,Kn,sr){var nr=xt(z,Hn),wr=nr.text.length,Wr,li;function Ur(qr,Ii){return To(a,ke(Hn,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=qt(nr,z.direction);return Ve(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=(ye?Vo:bo)&&pi,bl=(ye?bo:Vo)&&eo,oo=si?de:(ei?Kr:Pi).left,Oo=bl?fe:(ei?Pi:Kr).right;rt(oo,Kr.top,Oo-oo,Kr.bottom)}else{var Do,bi,Go,xl;ei?(Do=ye&&Vo&&pi?de:Kr.left,bi=ye?fe:Ti(qr,di,"before"),Go=ye?de:Ti(Ii,di,"after"),xl=ye&&bo&&eo?fe:Pi.right):(Do=ye?Ti(qr,di,"before"):de,bi=!ye&&Vo&&pi?fe:Kr.right,Go=!ye&&bo&&eo?de:Pi.left,xl=ye?Ti(Ii,di,"after"):fe),rt(Do,Kr.top,bi-Do,Kr.bottom),Kr.bottom<Pi.top&&rt(de,Kr.bottom,null,Pi.top),rt(Go,Pi.top,xl-Go,Pi.bottom)}(!Wr||Ia(Kr,Wr)<0)&&(Wr=Kr),Ia(Pi,Wr)<0&&(Wr=Pi),(!li||Ia(Kr,li)<0)&&(li=Kr),Ia(Pi,li)<0&&(li=Pi)}),{start:Wr,end:li}}var Xt=y.from(),Zt=y.to();if(Xt.line==Zt.line)yt(Xt.line,Xt.ch,Zt.ch);else{var mn=xt(z,Xt.line),Dn=xt(z,Zt.line),Nn=fn(mn)==fn(Dn),zn=yt(Xt.line,Xt.ch,Nn?mn.text.length+1:null).end,Vn=yt(Zt.line,Nn?0:null,Zt.ch).start;Nn&&(zn.top<Vn.top-2?(rt(zn.right,zn.top,null,zn.bottom),rt(de,Vn.top,Vn.left,Vn.bottom)):rt(zn.right,zn.top,Vn.left-zn.right,zn.bottom)),zn.bottom<Vn.top&&rt(de,zn.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||(mt(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Pe&&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&&(mt(a,"blur",a,y),a.state.focused=!1,qe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],ie=a.options.lineWrapping,le=void 0,de=0;if(!z.hidden){if(Ce&&Oe<8){var fe=z.node.offsetTop+z.node.offsetHeight;le=fe-x,x=fe}else{var ye=z.node.getBoundingClientRect();le=ye.bottom-ye.top,!ie&&z.text.firstChild&&(de=z.text.firstChild.getBoundingClientRect().right-ye.left-1)}var rt=z.line.height-le;if((rt>.005||rt<-.005)&&(an(z.line,le),kl(z.line),z.rest))for(var yt=0;yt<z.rest.length;yt++)kl(z.rest[yt]);if(de>a.display.sizerWidth){var Xt=Math.ceil(de/Gi(a.display));Xt>a.display.maxLineLength&&(a.display.maxLineLength=Xt,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function kl(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 ka(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=tt(y,b),le=tt(y,z);if(x&&x.ensure){var de=x.ensure.from.line,fe=x.ensure.to.line;de<ie?(ie=de,le=tt(y,rr(xt(y,de))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=le&&(ie=tt(y,rr(xt(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:ie,to:Math.max(le,ie+1)}}function Hs(a,y){if(!dt(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&&!ft){var ie=at("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-Xr(a.display))+`px;
height: `+(y.bottom-y.top+Oi(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 js(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?ke(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?ke(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var le=!1,de=Ci(a,y),fe=!x||x==y?de:Ci(a,x);z={left:Math.min(de.left,fe.left),top:Math.min(de.top,fe.top)-b,right:Math.max(de.left,fe.left),bottom:Math.max(de.bottom,fe.bottom)+b};var ye=Qa(a,z),rt=a.doc.scrollTop,yt=a.doc.scrollLeft;if(ye.scrollTop!=null&&(qo(a,ye.scrollTop),Math.abs(a.doc.scrollTop-rt)>1&&(le=!0)),ye.scrollLeft!=null&&(Eo(a,ye.scrollLeft),Math.abs(a.doc.scrollLeft-yt)>1&&(le=!0)),!le)break}return z}function Ws(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=Mi(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ie=no(a),le={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var de=a.doc.height+$i(x),fe=y.top<b,ye=y.bottom>de-b;if(y.top<z)le.scrollTop=fe?0:y.top;else if(y.bottom>z+ie){var rt=Math.min(y.top,(ye?de:y.bottom)-ie);rt!=z&&(le.scrollTop=rt)}var yt=a.options.fixedGutter?0:x.gutters.offsetWidth,Xt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-yt,Zt=Ji(a)-x.gutters.offsetWidth,mn=y.right-y.left>Zt;return mn&&(y.right=y.left+Zt),y.left<10?le.scrollLeft=0:y.left<Xt?le.scrollLeft=Math.max(0,y.left+yt-(mn?0:10)):y.right>Zt+Xt-3&&(le.scrollLeft=y.right+(mn?0:10)-Zt),le}function Ja(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Oa(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)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Zs(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Or(a,y.from),b=Or(a,y.to);Ol(a,x,b,y.margin)}}function Ol(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}),Dl(a,y,!0),E&&el(a),na(a,100))}function Dl(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+Oi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=at("div",[at("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=at("div",[at("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Ut(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Ut(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ce&&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=Ae&&!Se?"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;Ml(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),Ml(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Ml(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&&qe(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),Ut(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&&ue(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 ko(a){var y=a.curOp;y&&vi(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Gs(x)})}function Gs(a){for(var y=a.ops,x=0;x<y.length;x++)Us(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var z=0;z<y.length;z++)Xs(y[z]);for(var ie=0;ie<y.length;ie++)Ys(y[ie]);for(var le=0;le<y.length;le++)Qs(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&br(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Da(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+Oi(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&&Dl(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=js(y,Wt(b,a.scrollToPos.from),Wt(b,a.scrollToPos.to),a.scrollToPos.margin);Hs(y,z)}var ie=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(ie)for(var de=0;de<ie.length;++de)ie[de].lines.length||mt(ie[de],"hide");if(le)for(var fe=0;fe<le.length;++fe)le[fe].lines.length&&mt(le[fe],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&mt(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{ko(a)}}function oi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Po(a);try{return y.apply(a,arguments)}finally{ko(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);Po(this);try{return a.apply(this,arguments)}finally{ko(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{ko(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,De(Js,a))}function Js(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Qn(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(b.line>=a.display.viewFrom){var le=ie.styles,de=ie.text.length>a.options.maxHighlightLength?On(y.mode,b.state):null,fe=Ln(a,ie,b,!0);de&&(b.state=de),ie.styles=fe.styles;var ye=ie.styleClasses,rt=fe.classes;rt?ie.styleClasses=rt:ye&&(ie.styleClasses=null);for(var yt=!le||le.length!=ie.styles.length||ye!=rt&&(!ye||!rt||ye.bgClass!=rt.bgClass||ye.textClass!=rt.textClass),Xt=0;!yt&&Xt<le.length;++Xt)yt=le[Xt]!=ie.styles[Xt];yt&&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 Da=function(a,y,x){var b=a.display;this.viewport=y,this.visible=ka(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=[]};Da.prototype.signal=function(a,y){Gt(a,y)&&this.events.push(arguments)},Da.prototype.finish=function(){for(var a=0;a<this.events.length;a++)mt.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=Oi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Oi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=_e();if(!y||!Ge(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ge(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&&Ge(document.body,a.anchorNode)&&Ge(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function qa(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return ho(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var z=b.first+b.size,ie=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(z,x.viewTo)),tr&&(ie=xn(a.doc,ie),le=In(a.doc,le));var de=ie!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;$s(a,ie,le),x.viewOffset=rr(xt(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 ye=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(ye),Nt(x.cursorDiv),Nt(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=ka(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=ka(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 Da(a,y);if(qa(a,x)){Pa(a),Ll(a,x);var b=ea(a);Qo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,z=a.options.lineNumbers,ie=b.lineDiv,le=ie.firstChild;function de(mn){var Dn=mn.nextSibling;return Pe&&Ae&&a.display.currentWheelTarget==mn?mn.style.display="none":mn.parentNode.removeChild(mn),Dn}for(var fe=b.view,ye=b.viewFrom,rt=0;rt<fe.length;rt++){var yt=fe[rt];if(!yt.hidden)if(!yt.node||yt.node.parentNode!=ie){var Xt=pr(a,yt,ye,x);ie.insertBefore(Xt,le)}else{for(;le!=yt.node;)le=de(le);var Zt=z&&y!=null&&y<=ye&&yt.lineNumber;yt.changes&&(Ze(yt.changes,"gutter")>-1&&(Zt=!1),lo(a,yt,ye,x)),Zt&&(Nt(yt.lineNumber),yt.lineNumber.appendChild(document.createTextNode(He(a.options,ye)))),le=yt.node.nextSibling}ye+=yt.size}for(;le;)le=de(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Oi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ie=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=ie),x[le].gutterBackground&&(x[le].gutterBackground.style.left=ie));var de=x[le].alignable;if(de)for(var fe=0;fe<de.length;fe++)de[fe].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=He(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(at("div",[at("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,le=z.offsetWidth-ie;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ie,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,z=0;z<a.length;z++){var ie=a[z],le=null;if(typeof ie!="string"&&(le=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ie,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;Nt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],ie=z.className,le=z.style,de=y.appendChild(at("div",null,"CodeMirror-gutter "+ie));le&&(de.style.cssText=le),ie=="CodeMirror-linenumbers"&&(a.lineGutter=de,de.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Si(a),Al(a)}function ru(a,y,x,b){var z=this;this.input=x,z.scrollbarFiller=at("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=at("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=kt("div",null,"CodeMirror-code"),z.selectionDiv=at("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=at("div",null,"CodeMirror-cursors"),z.measure=at("div",null,"CodeMirror-measure"),z.lineMeasure=at("div",null,"CodeMirror-measure"),z.lineSpace=kt("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=kt("div",[z.lineSpace],"CodeMirror-lines");z.mover=at("div",[ie],null,"position: relative"),z.sizer=at("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=at("div",null,null,"position: absolute; height: "+Tt+"px; width: 1px;"),z.gutters=at("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=at("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=at("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ce&&Oe<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Pe&&!(E&&Le)&&(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 Ma=0,Ni=null;Ce?Ni=-.53:E?Ni=15:Ee?Ni=-.7:et&&(Ni=-1/3);function Fl(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=Fl(a);return y.x*=Ni,y.y*=Ni,y}function _l(a,y){var x=Fl(y),b=x.x,z=x.y,ie=a.display,le=ie.scroller,de=le.scrollWidth>le.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&de||z&&fe){if(z&&Ae&&Pe){e:for(var ye=y.target,rt=ie.view;ye!=le;ye=ye.parentNode)for(var yt=0;yt<rt.length;yt++)if(rt[yt].node==ye){a.display.currentWheelTarget=ye;break e}}if(b&&!E&&!he&&Ni!=null){z&&fe&&qo(a,Math.max(0,le.scrollTop+z*Ni)),Eo(a,Math.max(0,le.scrollLeft+b*Ni)),(!z||z&&fe)&&nt(y),ie.wheelStartX=null;return}if(z&&Ni!=null){var Xt=z*Ni,Zt=a.doc.scrollTop,mn=Zt+ie.wrapper.clientHeight;Xt<0?Zt=Math.max(0,Zt+Xt-50):mn=Math.min(a.doc.height,mn+Xt+50),el(a,{top:Zt,bottom:mn})}Ma<20&&(ie.wheelStartX==null?(ie.wheelStartX=le.scrollLeft,ie.wheelStartY=le.scrollTop,ie.wheelDX=b,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var Dn=le.scrollLeft-ie.wheelStartX,Nn=le.scrollTop-ie.wheelStartY,zn=Nn&&ie.wheelDY&&Nn/ie.wheelDY||Dn&&ie.wheelDX&&Dn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,zn&&(Ni=(Ni*Ma+zn)/(Ma+1),++Ma)}},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(!Mt(x.anchor,b.anchor)||!Mt(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(sn(this.ranges[y].anchor),sn(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(Ue(y,b.from())>=0&&Ue(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return Cn(this.anchor,this.head)},Fr.prototype.to=function(){return hn(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(Xt,Zt){return Ue(Xt.from(),Zt.from())}),x=Ze(y,z);for(var ie=1;ie<y.length;ie++){var le=y[ie],de=y[ie-1],fe=Ue(de.to(),le.from());if(b&&!le.empty()?fe>0:fe>=0){var ye=Cn(de.from(),le.from()),rt=hn(de.to(),le.to()),yt=de.empty()?le.from()==le.head:de.from()==de.head;ie<=x&&--x,y.splice(--ie,2,new Fr(yt?rt:ye,yt?ye:rt))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?ke(a.from.line+a.text.length-1,Fe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $l(a,y){if(Ue(a,y.from)<0)return a;if(Ue(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),ke(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?ke(x.line,a.ch-y.ch+x.ch):ke(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],z=ke(a.first,0),ie=z,le=0;le<y.length;le++){var de=y[le],fe=zl(de.from,z,ie),ye=zl(mo(de),z,ie);if(z=de.to,ie=ye,x=="around"){var rt=a.sel.ranges[le],yt=Ue(rt.head,rt.anchor)<0;b[le]=new Fr(yt?ye:fe,yt?fe:ye)}else b[le]=new Fr(fe,fe)}return new Ri(b,a.sel.primIndex)}function ol(a){a.doc.mode=un(a.options,a.doc.modeOption),ia(a)}function ia(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,na(a,100),a.state.modeGen++,a.curOp&&Si(a)}function Hl(a,y){return y.from.ch==0&&y.to.ch==0&&Fe(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function z(Vn){return x?x[Vn]:null}function ie(Vn,Hn,Kn){kr(Vn,Hn,Kn,b),Vr(Vn,"change",Vn,y)}function le(Vn,Hn){for(var Kn=[],sr=Vn;sr<Hn;++sr)Kn.push(new Dr(ye[sr],z(sr),b));return Kn}var de=y.from,fe=y.to,ye=y.text,rt=xt(a,de.line),yt=xt(a,fe.line),Xt=Fe(ye),Zt=z(ye.length-1),mn=fe.line-de.line;if(y.full)a.insert(0,le(0,ye.length)),a.remove(ye.length,a.size-ye.length);else if(Hl(a,y)){var Dn=le(0,ye.length-1);ie(yt,yt.text,Zt),mn&&a.remove(de.line,mn),Dn.length&&a.insert(de.line,Dn)}else if(rt==yt)if(ye.length==1)ie(rt,rt.text.slice(0,de.ch)+Xt+rt.text.slice(fe.ch),Zt);else{var Nn=le(1,ye.length-1);Nn.push(new Dr(Xt+rt.text.slice(fe.ch),Zt,b)),ie(rt,rt.text.slice(0,de.ch)+ye[0],z(0)),a.insert(de.line+1,Nn)}else if(ye.length==1)ie(rt,rt.text.slice(0,de.ch)+ye[0]+yt.text.slice(fe.ch),z(0)),a.remove(de.line+1,mn);else{ie(rt,rt.text.slice(0,de.ch)+ye[0],z(0)),ie(yt,Xt+yt.text.slice(fe.ch),Zt);var zn=le(1,ye.length-1);mn>1&&a.remove(de.line+1,mn-1),a.insert(de.line+1,zn)}Vr(a,"change",a,y)}function vo(a,y,x){function b(z,ie,le){if(z.linked)for(var de=0;de<z.linked.length;++de){var fe=z.linked[de];if(fe.doc!=ie){var ye=le&&fe.sharedHist;x&&!ye||(y(fe.doc,ye),b(fe.doc,z,ye))}}}b(a,null,!0)}function jl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),Wl(a),a.options.lineWrapping||br(a),a.options.mode=y.modeOption,Si(a)}function Wl(a){(a.doc.direction=="rtl"?ue:qe)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Bi(a,function(){Wl(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:sn(y.from),to:mo(y),text:$t(a,y.from,y.to)};return Gl(a,x,y.from.line,y.to.line+1),vo(a,function(b){return Gl(b,x,y.from.line,y.to.line+1)},!0),x}function Zl(a){for(;a.length;){var y=Fe(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Zl(a.done),Fe(a.done);if(a.done.length&&!Fe(a.done).ranges)return Fe(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Fe(a.done)}function Vl(a,y,x,b){var z=a.history;z.undone.length=0;var ie=+new Date,le,de;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(z,z.lastOp==b)))de=Fe(le.changes),Ue(y.from,y.to)==0&&Ue(y.from,de.to)==0?de.to=mo(y):le.changes.push(ll(a,y));else{var fe=Fe(z.done);for((!fe||!fe.ranges)&&Ta(a.sel,z.done),le={changes:[ll(a,y)],generation:z.generation},z.done.push(le);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,de||mt(a,"historyAdded")}function su(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var z=a.history,ie=b&&b.origin;x==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||su(a,ie,Fe(z.done),y))?z.done[z.done.length-1]=y:Ta(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=x,b&&b.clearRedo!==!1&&Zl(z.undone)}function Ta(a,y){var x=Fe(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=le.markedSpans),++ie})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],z=0;z<y.text.length;++z)b.push(cu(x[z]));return b}function Ul(a,y){var x=du(a,y),b=Sr(a,y);if(!x)return b;if(!b)return x;for(var z=0;z<x.length;++z){var ie=x[z],le=b[z];if(ie&&le)e:for(var de=0;de<le.length;++de){for(var fe=le[de],ye=0;ye<ie.length;++ye)if(ie[ye].marker==fe.marker)continue e;ie.push(fe)}else le&&(x[z]=le)}return x}function Ro(a,y,x){for(var b=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){b.push(x?Ri.prototype.deepCopy.call(ie):ie);continue}var le=ie.changes,de=[];b.push({changes:de});for(var fe=0;fe<le.length;++fe){var ye=le[fe],rt=void 0;if(de.push({from:ye.from,to:ye.to,text:ye.text}),y)for(var yt in ye)(rt=yt.match(/^spans_(\d+)$/))&&Ze(y,Number(rt[1]))>-1&&(Fe(de)[yt]=ye[yt],delete ye[yt])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var ie=Ue(y,z)<0;ie!=Ue(x,z)<0?(z=y,y=x):ie!=Ue(y,x)<0&&(y=x)}return new Fr(z,y)}else return new Fr(x||y,y)}function La(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,z)],0),b)}function Kl(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)b[ie]=sl(a.sel.ranges[ie],y[ie],null,z);var le=Ui(a.cm,b,a.sel.primIndex);hi(a,le,x)}function ul(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,hi(a,Ui(a.cm,z,a.sel.primIndex),b)}function Xl(a,y,x,b){hi(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new Fr(Wt(a,z[ie].anchor),Wt(a,z[ie].head))},origin:x&&x.origin};return mt(a,"beforeSelectionChange",a,b),a.cm&&mt(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Ui(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,z=Fe(b);z&&z.ranges?(b[b.length-1]=y,Aa(a,y,x)):hi(a,y,x)}function hi(a,y,x){Aa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Aa(a,y,x){(Gt(a,"beforeSelectionChange")||a.cm&&Gt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Ue(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,en(a.cm)),Vr(a,"cursorActivity",a))}function Jl(a){Ql(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var z,ie=0;ie<y.ranges.length;ie++){var le=y.ranges[ie],de=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],fe=Na(a,le.anchor,de&&de.anchor,x,b),ye=Na(a,le.head,de&&de.head,x,b);(z||fe!=le.anchor||ye!=le.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new Fr(fe,ye))}return z?Ui(a.cm,z,y.primIndex):y}function Fo(a,y,x,b,z){var ie=xt(a,y.line);if(ie.markedSpans)for(var le=0;le<ie.markedSpans.length;++le){var de=ie.markedSpans[le],fe=de.marker,ye="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,rt="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((de.from==null||(ye?de.from<=y.ch:de.from<y.ch))&&(de.to==null||(rt?de.to>=y.ch:de.to>y.ch))){if(z&&(mt(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(ie.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var yt=fe.find(b<0?1:-1),Xt=void 0;if((b<0?rt:ye)&&(yt=es(a,yt,-b,yt&&yt.line==y.line?ie:null)),yt&&yt.line==y.line&&(Xt=Ue(yt,x))&&(b<0?Xt<0:Xt>0))return Fo(a,yt,y,b,z)}var Zt=fe.find(b<0?-1:1);return(b<0?ye:rt)&&(Zt=es(a,Zt,b,Zt.line==y.line?ie:null)),Zt?Fo(a,Zt,y,b,z):null}}return y}function Na(a,y,x,b,z){var ie=b||1,le=Fo(a,y,x,ie,z)||!z&&Fo(a,y,x,ie,!0)||Fo(a,y,x,-ie,z)||!z&&Fo(a,y,x,-ie,!0);return le||(a.cantEdit=!0,ke(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Wt(a,ke(y.line-1)):null:x>0&&y.ch==(b||xt(a,y.line)).text.length?y.line<a.first+a.size-1?ke(y.line+1,0):null:new ke(y.line,y.ch+x)}function ts(a){a.setSelection(ke(a.firstLine(),0),ke(a.lastLine()),ve)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(z,ie,le,de){z&&(b.from=Wt(a,z)),ie&&(b.to=Wt(a,ie)),le&&(b.text=le),de!==void 0&&(b.origin=de)}),mt(a,"beforeChange",a,b),a.cm&&mt(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(!((Gt(a,"beforeChange")||a.cm&&Gt(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]==""&&Ue(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&&Ze(b,z.history)==-1&&(ls(z.history,y),b.push(z.history)),oa(z,y,null,Sr(z,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,ie,le=a.sel,de=y=="undo"?z.done:z.undone,fe=y=="undo"?z.undone:z.done,ye=0;ye<de.length&&(ie=de[ye],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));ye++);if(ye!=de.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=de.pop(),ie.ranges){if(Ta(ie,fe),x&&!ie.equals(a.sel)){hi(a,ie,{clearRedo:!1});return}le=ie}else if(b){de.push(ie);return}else break;var rt=[];Ta(le,fe),fe.push({changes:rt,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var yt=Gt(a,"beforeChange")||a.cm&&Gt(a.cm,"beforeChange"),Xt=function(Dn){var Nn=ie.changes[Dn];if(Nn.origin=y,yt&&!ns(a,Nn,!1))return de.length=0,{};rt.push(ll(a,Nn));var zn=Dn?il(a,Nn):Fe(de);oa(a,Nn,zn,Ul(a,Nn)),!Dn&&a.cm&&a.cm.scrollIntoView({from:Nn.from,to:mo(Nn)});var Vn=[];vo(a,function(Hn,Kn){!Kn&&Ze(Vn,Hn.history)==-1&&(ls(Hn.history,Nn),Vn.push(Hn.history)),oa(Hn,Nn,null,Ul(Hn,Nn))})},Zt=ie.changes.length-1;Zt>=0;--Zt){var mn=Xt(Zt);if(mn)return mn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(_t(a.sel.ranges,function(z){return new Fr(ke(z.anchor.line+y,z.anchor.ch),ke(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:ke(a.first,0),to:ke(y.to.line+z,y.to.ch),text:[Fe(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:ke(ie,xt(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=$t(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,ke(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,z=a.display,ie=y.from,le=y.to,de=!1,fe=ie.line;a.options.lineWrapping||(fe=ze(fn(xt(b,ie.line))),b.iter(fe,le.line+1,function(Zt){if(Zt==z.maxLine)return de=!0,!0})),b.sel.contains(y.from,y.to)>-1&&en(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,ie.line+y.text.length,function(Zt){var mn=Pr(Zt);mn>z.maxLineLength&&(z.maxLine=Zt,z.maxLineLength=mn,z.maxLineChanged=!0,de=!1)}),de&&(a.curOp.updateMaxLine=!0)),ir(b,ie.line),na(a,400);var ye=y.text.length-(le.line-ie.line)-1;y.full?Si(a):ie.line==le.line&&y.text.length==1&&!Hl(a.doc,y)?fo(a,ie.line,"text"):Si(a,ie.line,le.line+1,ye);var rt=Gt(a,"changes"),yt=Gt(a,"change");if(yt||rt){var Xt={from:ie,to:le,text:y.text,removed:y.removed,origin:y.origin};yt&&Vr(a,"change",a,Xt),rt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Xt)}a.display.selForContextMenu=null}function $o(a,y,x,b,z){var ie;b||(b=x),Ue(b,x)<0&&(ie=[b,x],x=ie[0],b=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),_o(a,{from:x,to:b,text:y,origin:z})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var z=0;z<a.length;++z){var ie=a[z],le=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var de=0;de<ie.ranges.length;de++)os(ie.ranges[de].anchor,y,x,b),os(ie.ranges[de].head,y,x,b);continue}for(var fe=0;fe<ie.changes.length;++fe){var ye=ie.changes[fe];if(x<ye.from.line)ye.from=ke(ye.from.line+b,ye.from.ch),ye.to=ke(ye.to.line+b,ye.to.ch);else if(y<=ye.to.line){le=!1;break}}le||(a.splice(0,z+1),z=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,z=y.text.length-(b-x)-1;as(a.done,x,b,z),as(a.undone,x,b,z)}function aa(a,y,x,b){var z=y,ie=y;return typeof y=="number"?ie=xt(a,nn(a,y)):z=ze(y),z==null?null:(b(ie,z)&&a.cm&&fo(a.cm,z,x),ie)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var z=this.lines[x];this.height-=z.height,Br(z),Vr(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var z=a[b];y+=z.chunkSize(),x+=z.height,z.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],z=b.chunkSize();if(a<z){var ie=Math.min(y,z-a),le=b.height;if(b.removeInner(a,ie),this.height-=le-b.height,z==ie&&(this.children.splice(x--,1),b.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var de=[];this.collapse(de),this.children=[new la(de)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var le=z.lines.length%25+25,de=le;de<z.lines.length;){var fe=new la(z.lines.slice(de,de+=25));z.height-=fe.height,this.children.splice(++b,0,fe),fe.parent=this}z.lines=z.lines.slice(0,le),this.maybeSpill()}break}a-=ie}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var z=Ze(a.parent.children,a);a.parent.children.splice(z+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var z=this.children[b],ie=z.chunkSize();if(a<ie){var le=Math.min(y,ie-a);if(z.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=ie}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=ze(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);an(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&&(Rn(this.doc,b)||an(b,b.height+z),x&&Bi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,z),Vr(x,"lineWidgetChanged",x,a,ze(b))}))},Ne(ua);function ss(a,y,x){rr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ja(a,x)}function pu(a,y,x,b){var z=new ua(a,x,b),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),aa(a,y,"widget",function(le){var de=le.widgets||(le.widgets=[]);if(z.insertAt==null?de.push(z):de.splice(Math.min(de.length-1,Math.max(0,z.insertAt)),0,z),z.line=le,ie&&!Rn(a,le)){var fe=rr(le)<a.scrollTop;an(le,le.height+gi(z)),fe&&Ja(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Vr(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:ze(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),Gt(this,"clear")){var x=this.find();x&&Vr(this,"clear",x.from,x.to)}for(var b=null,z=null,ie=0;ie<this.lines.length;++ie){var le=this.lines[ie],de=vr(le.markedSpans,this);a&&!this.collapsed?fo(a,ze(le),"text"):a&&(de.to!=null&&(z=ze(le)),de.from!=null&&(b=ze(le))),le.markedSpans=Cr(le.markedSpans,de),de.from==null&&this.collapsed&&!Rn(this.doc,le)&&a&&an(le,Mi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var ye=fn(this.lines[fe]),rt=Pr(ye);rt>a.display.maxLineLength&&(a.display.maxLine=ye,a.display.maxLineLength=rt,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&&ko(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z<this.lines.length;++z){var ie=this.lines[z],le=vr(ie.markedSpans,this);if(le.from!=null&&(x=ke(y?ie:ze(ie),le.from),a==-1))return x;if(le.to!=null&&(b=ke(y?ie:ze(ie),le.to),a==1))return b}return x&&{from:x,to:b}},go.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Bi(b,function(){var z=y.line,ie=ze(y.line),le=qi(b,ie);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Rn(x.doc,z)&&x.height!=null){var de=x.height;x.height=null;var fe=gi(x)-de;fe&&an(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||Ze(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(Ze(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Ne(go);function zo(a,y,x,b,z){if(b&&b.shared)return mu(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return oi(a.cm,zo)(a,y,x,b,z);var ie=new go(a,z),le=Ue(y,x);if(b&&ht(b,ie,!1),le>0||le==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=kt("span",[ie.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Pn(a,y.line,y,x,ie)||y.line!=x.line&&Pn(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,ye;if(a.iter(de,x.line+1,function(yt){fe&&ie.collapsed&&!fe.options.lineWrapping&&fn(yt)==fe.display.maxLine&&(ye=!0),ie.collapsed&&de!=y.line&&an(yt,0),or(yt,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(yt){Rn(a,yt)&&an(yt,0)}),ie.clearOnEnter&&Ut(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(ye&&(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 rt=y.line;rt<=x.line;rt++)fo(fe,rt,"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)},Ne(ca);function mu(a,y,x,b,z){b=ht(b),b.shared=!1;var ie=[zo(a,y,x,b,z)],le=ie[0],de=b.widgetNode;return vo(a,function(fe){de&&(b.widgetNode=de.cloneNode(!0)),ie.push(zo(fe,Wt(fe,y),Wt(fe,x),b,z));for(var ye=0;ye<fe.linked.length;++ye)if(fe.linked[ye].isParent)return;le=Fe(ie)}),new ca(ie,le)}function cs(a){return a.findMarks(ke(a.first,0),a.clipPos(ke(a.lastLine())),function(y){return y.parent})}function vu(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),ie=a.clipPos(z.from),le=a.clipPos(z.to);if(Ue(ie,le)){var de=zo(a,ie,le,b.primary,b.primary.type);b.markers.push(de),de.parent=b}}}function gu(a){for(var y=function(b){var z=a[b],ie=[z.primary.doc];vo(z.primary.doc,function(fe){return ie.push(fe)});for(var le=0;le<z.markers.length;le++){var de=z.markers[le];Ze(ie,de.doc)==-1&&(de.parent=null,z.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,wi=function(a,y,x,b,z){if(!(this instanceof wi))return new wi(a,y,x,b,z);x==null&&(x=0),sa.call(this,[new la([new Dr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ie=ke(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=cn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:ai(function(a){var y=ke(this.first,0),x=this.first+this.size-1;_o(this,{from:y,to:ke(x,xt(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=Wt(this,y),x=x?Wt(this,x):y,$o(this,a,y,x,b)},getRange:function(a,y,x){var b=$t(this,Wt(this,a),Wt(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(xe(this,a))return xt(this,a)},getLineNumber:function(a){return ze(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=xt(this,a)),fn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Wt(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,Wt(this,typeof a=="number"?ke(a,y||0):a),null,x)}),setSelection:ai(function(a,y,x){Xl(this,Wt(this,a),Wt(this,y||a),x)}),extendSelection:ai(function(a,y,x){La(this,Wt(this,a),y&&Wt(this,y),x)}),extendSelections:ai(function(a,y){Kl(this,vn(this,a),y)}),extendSelectionsBy:ai(function(a,y){var x=_t(this.sel.ranges,a);Kl(this,vn(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(Wt(this,a[z].anchor),Wt(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(Wt(this,a),Wt(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=$t(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=$t(this,x[b].from(),x[b].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[b]=z}return y},replaceSelection:function(a,y,x){for(var b=[],z=0;z<this.sel.ranges.length;z++)b[z]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:ai(function(a,y,x){for(var b=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var le=z.ranges[ie];b[ie]={from:le.from(),to:le.to(),text:this.splitLines(a[ie]),origin:x}}for(var de=y&&y!="end"&&ou(this,b,y),fe=b.length-1;fe>=0;fe--)_o(this,b[fe]);de?Yl(this,de):this.cm&&Ao(this.cm)}),undo:ai(function(){Ra(this,"undo")}),redo:ai(function(){Ra(this,"redo")}),undoSelection:ai(function(){Ra(this,"undo",!0)}),redoSelection:ai(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Ba(this.history.maxGeneration),vo(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(a){var y=this.history=new Ba(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:ai(function(a,y,x){return aa(this,a,"gutter",function(b){var z=b.gutterMarkers||(b.gutterMarkers={});return z[y]=x,!x&&ne(z)&&(b.gutterMarkers=null),!0})}),clearGutter:ai(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!xe(this,a)||(y=a,a=xt(this,a),!a))return null}else if(y=ze(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(ut(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:ai(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=b[z];if(ie)if(x==null)b[z]=null;else{var le=ie.match(ut(x));if(!le)return!1;var de=le.index+le[0].length;b[z]=ie.slice(0,le.index)+(!le.index||de==ie.length?"":" ")+ie.slice(de)||null}else return!1;return!0})}),addLineWidget:ai(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return zo(this,Wt(this,a),Wt(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=Wt(this,a),zo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Wt(this,a);var y=[],x=xt(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=Wt(this,a),y=Wt(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var le=ie.markedSpans;if(le)for(var de=0;de<le.length;de++){var fe=le[de];!(fe.to!=null&&z==a.line&&a.ch>=fe.to||fe.from==null&&z!=a.line||fe.from!=null&&z==y.line&&fe.from>=y.ch)&&(!x||x(fe.marker))&&b.push(fe.marker.parent||fe.marker)}++z}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(z){var ie=z.text.length+b;if(ie>a)return y=a,!0;a-=ie,++x}),Wt(this,ke(x,y))},indexFromPos:function(a){a=Wt(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(cn(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(cn(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):rn(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),!(dt(y,a)||ui(y.display,a))){nt(a),Ce&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var z=b.length,ie=Array(z),le=0,de=function(){++le==z&&oi(y,function(){x=Wt(y.doc,x);var Zt={from:x,to:x,text:y.doc.splitLines(ie.filter(function(mn){return mn!=null}).join(y.doc.lineSeparator())),origin:"paste"};_o(y.doc,Zt),Yl(y.doc,po(Wt(y.doc,x),Wt(y.doc,mo(Zt))))})()},fe=function(Zt,mn){if(y.options.allowDropFileTypes&&Ze(y.options.allowDropFileTypes,Zt.type)==-1){de();return}var Dn=new FileReader;Dn.onerror=function(){return de()},Dn.onload=function(){var Nn=Dn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Nn)){de();return}ie[mn]=Nn,de()},Dn.readAsText(Zt)},ye=0;ye<b.length;ye++)fe(b[ye],ye);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 rt=a.dataTransfer.getData("Text");if(rt){var yt;if(y.state.draggingText&&!y.state.draggingText.copy&&(yt=y.listSelections()),Aa(y.doc,po(x,x)),yt)for(var Xt=0;Xt<yt.length;++Xt)$o(y.doc,"",yt[Xt].anchor,yt[Xt].head,"drag");y.replaceSelection(rt,"around","paste"),y.display.input.focus()}}catch(Zt){}}}}function xu(a,y){if(Ce&&(!a.state.draggingText||+new Date-ds<100)){Me(y);return}if(!(dt(a,y)||ui(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!et)){var x=at("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=at("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),vt(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;Ut(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Ut(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=Ae?io.macDefault:io.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,ie,le=0;le<y.length-1;le++){var de=y[le];if(/^(cmd|meta|m)$/i.test(de))ie=!0;else if(/^a(lt)?$/i.test(de))x=!0;else if(/^(c|ctrl|control)$/i.test(de))b=!0;else if(/^s(hift)?$/i.test(de))z=!0;else throw new Error("Unrecognized modifier name: "+de)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Pu(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var z=_t(x.split(" "),Iu),ie=0;ie<z.length;ie++){var le=void 0,de=void 0;ie==z.length-1?(de=z.join(" "),le=b):(de=z.slice(0,ie+1).join(" "),le="...");var fe=y[de];if(!fe)y[de]=le;else if(fe!=le)throw new Error("Inconsistent bindings for "+de)}delete a[x]}for(var ye in y)a[ye]=y[ye];return a}function Ho(a,y,x,b){y=_a(y);var z=y.call?y.call(a,b):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Ho(a,y.fallthrough,x,b);for(var ie=0;ie<y.fallthrough.length;ie++){var le=Ho(a,y.fallthrough[ie],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function vs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(bt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(bt?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 jo(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var ie=y(x[z]);b.length&&Ue(ie.from,Fe(b).to)<=0;){var le=b.pop();if(Ue(le.from,ie.from)<0){ie.from=le.from;break}}b.push(ie)}Bi(a,function(){for(var de=b.length-1;de>=0;de--)$o(a.doc,"",b[de].from,b[de].to,"+delete");Ao(a)})}function cl(a,y,x){var b=ct(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 ke(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=qt(x,y.doc.direction);if(ie){var le=z<0?Fe(ie):ie[0],de=z<0==(le.level==1),fe=de?"after":"before",ye;if(le.level>0||y.doc.direction=="rtl"){var rt=uo(y,x);ye=z<0?x.text.length-1:0;var yt=zi(y,rt,ye).top;ye=Ie(function(Xt){return zi(y,rt,Xt).top==yt},z<0==(le.level==1)?le.from:le.to-1,ye),fe=="before"&&(ye=cl(x,ye,1))}else ye=z<0?le.to:le.from;return new ke(b,ye,fe)}}return new ke(b,z<0?x.text.length:0,z<0?"before":"after")}function ku(a,y,x,b){var z=qt(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=Dt(z,x.ch,x.sticky),le=z[ie];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var de=function(zn,Vn){return cl(y,zn instanceof ke?zn.ch:zn,Vn)},fe,ye=function(zn){return a.options.lineWrapping?(fe=fe||uo(a,y),Yr(a,y,fe,zn)):{begin:0,end:y.text.length}},rt=ye(x.sticky=="before"?de(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var yt=le.level==1==b<0,Xt=de(x,yt?1:-1);if(Xt!=null&&(yt?Xt<=le.to&&Xt<=rt.end:Xt>=le.from&&Xt>=rt.begin)){var Zt=yt?"before":"after";return new ke(x.line,Xt,Zt)}}var mn=function(zn,Vn,Hn){for(var Kn=function(Wr,li){return li?new ke(x.line,de(Wr,1),"before"):new ke(x.line,Wr,"after")};zn>=0&&zn<z.length;zn+=Vn){var sr=z[zn],nr=Vn>0==(sr.level!=1),wr=nr?Hn.begin:de(Hn.end,-1);if(sr.from<=wr&&wr<sr.to||(wr=nr?sr.from:de(sr.to,-1),Hn.begin<=wr&&wr<Hn.end))return Kn(wr,nr)}},Dn=mn(ie+b,b,rt);if(Dn)return Dn;var Nn=b>0?rt.end:de(rt.begin,-1);return Nn!=null&&!(b>0&&Nn==y.text.length)&&(Dn=mn(b>0?0:z.length-1,b,ye(Nn)),Dn)?Dn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ve)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=xt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:ke(y.head.line+1,0)}:{from:y.head,to:ke(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return jo(a,function(y){return{from:ke(y.from().line,0),to:Wt(a.doc,ke(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:ke(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ke(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ke(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 Ou(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")},je)},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")},je)},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},je)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,z=0;z<x.length;z++){var ie=x[z].from(),le=me(a.getLine(ie.line),ie.ch,b);y.push(Ht(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Bi(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var z=y[b].head,ie=xt(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new ke(z.line,z.ch-1)),z.ch>0)z=new ke(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),ke(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var le=xt(a.doc,z.line-1).text;le&&(z=new ke(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),ke(z.line-1,le.length-1),z,"+transpose"))}}x.push(new Fr(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return Bi(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Ao(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=xt(a.doc,y),b=fn(x);return b!=x&&(y=ze(b)),fl(!0,a,b,y,1)}function Ou(a,y){var x=xt(a.doc,y),b=$n(x);return b!=x&&(y=ze(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=xt(a.doc,x.line),z=qt(b,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=ie&&y.ch;return ke(x.line,le?0:ie,x.sticky)}return x}function $a(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=St}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function Du(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 Mu=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:Mu.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=Du(a,y,b);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Vr(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(nt(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(),!dt(y,a))){Ce&&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&&(Ae?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!Ae&&!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;ue(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(qe(y,"CodeMirror-crosshair"),wt(document,"keyup",x),wt(document,"mouseover",x))}Ut(document,"keyup",x),Ut(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),dt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ui(y.display,a)||dt(y,a)||a.ctrlKey&&!a.altKey||Ae&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,nt(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&&Ue(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(!(dt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Pe||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=gt(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):Ye(a)==x.scroller&&nt(a):z==2?(b&&La(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(st?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,z){var ie="Click";return b=="double"?ie="Double"+ie:b=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,pa(a,vs(ie,z),z,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),de=le(a,x)!=St}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=Je?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=Ae?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Ae?x.altKey:x.ctrlKey)),z}function Fu(a,y,x,b){Ce?setTimeout(De(Il,a),0):a.curOp.focus=_e();var z=Ru(a,x,b),ie=a.doc.sel,le;a.options.dragDrop&&Et&&!a.isReadOnly()&&x=="single"&&(le=ie.contains(y))>-1&&(Ue((le=ie.ranges[le]).from(),y)<0||y.xRel>0)&&(Ue(le.to(),y)>0||y.xRel<0)?_u(a,b,y,z):$u(a,b,y,z)}function _u(a,y,x,b){var z=a.display,ie=!1,le=oi(a,function(ye){Pe&&(z.scroller.draggable=!1),a.state.draggingText=!1,wt(z.wrapper.ownerDocument,"mouseup",le),wt(z.wrapper.ownerDocument,"mousemove",de),wt(z.scroller,"dragstart",fe),wt(z.scroller,"drop",le),ie||(nt(ye),b.addNew||La(a.doc,x,null,null,b.extend),Pe&&!et||Ce&&Oe==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),de=function(ye){ie=ie||Math.abs(y.clientX-ye.clientX)+Math.abs(y.clientY-ye.clientY)>=10},fe=function(){return ie=!0};Pe&&(z.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Ut(z.wrapper.ownerDocument,"mouseup",le),Ut(z.wrapper.ownerDocument,"mousemove",de),Ut(z.scroller,"dragstart",fe),Ut(z.scroller,"drop",le),Pl(a),setTimeout(function(){return z.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(ke(y.line,0),Wt(a.doc,ke(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;nt(y);var le,de,fe=ie.sel,ye=fe.ranges;if(b.addNew&&!b.extend?(de=ie.sel.contains(x),de>-1?le=ye[de]:le=new Fr(x,x)):(le=ie.sel.primary(),de=ie.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=So(a,y,!0,!0),de=-1;else{var rt=Ps(a,x,b.unit);b.extend?le=sl(le,rt.anchor,rt.head,b.extend):le=rt}b.addNew?de==-1?(de=ye.length,hi(ie,Ui(a,ye.concat([le]),de),{scroll:!1,origin:"*mouse"})):ye.length>1&&ye[de].empty()&&b.unit=="char"&&!b.extend?(hi(ie,Ui(a,ye.slice(0,de).concat(ye.slice(de+1)),0),{scroll:!1,origin:"*mouse"}),fe=ie.sel):ul(ie,de,le,$e):(de=0,hi(ie,new Ri([le],0),$e),fe=ie.sel);var yt=x;function Xt(Hn){if(Ue(yt,Hn)!=0)if(yt=Hn,b.unit=="rectangle"){for(var Kn=[],sr=a.options.tabSize,nr=me(xt(ie,x.line).text,x.ch,sr),wr=me(xt(ie,Hn.line).text,Hn.ch,sr),Wr=Math.min(nr,wr),li=Math.max(nr,wr),Ur=Math.min(x.line,Hn.line),Ti=Math.min(a.lastLine(),Math.max(x.line,Hn.line));Ur<=Ti;Ur++){var Ei=xt(ie,Ur).text,qr=Ft(Ei,Wr,sr);Wr==li?Kn.push(new Fr(ke(Ur,qr),ke(Ur,qr))):Ei.length>qr&&Kn.push(new Fr(ke(Ur,qr),ke(Ur,Ft(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(Hn)}else{var Ii=le,di=Ps(a,Hn,b.unit),ii=Ii.anchor,ei;Ue(di.anchor,ii)>0?(ei=di.head,ii=Cn(Ii.from(),di.anchor)):(ei=di.anchor,ii=hn(Ii.to(),di.head));var Kr=fe.ranges.slice(0);Kr[de]=zu(a,new Fr(Wt(ie,ii),ei)),hi(ie,Ui(a,Kr,de),$e)}}var Zt=z.wrapper.getBoundingClientRect(),mn=0;function Dn(Hn){var Kn=++mn,sr=So(a,Hn,!0,b.unit=="rectangle");if(sr)if(Ue(sr,yt)!=0){a.curOp.focus=_e(),Xt(sr);var nr=ka(z,ie);(sr.line>=nr.to||sr.line<nr.from)&&setTimeout(oi(a,function(){mn==Kn&&Dn(Hn)}),150)}else{var wr=Hn.clientY<Zt.top?-20:Hn.clientY>Zt.bottom?20:0;wr&&setTimeout(oi(a,function(){mn==Kn&&(z.scroller.scrollTop+=wr,Dn(Hn))}),50)}}function Nn(Hn){a.state.selectingText=!1,mn=1/0,Hn&&(nt(Hn),z.input.focus()),wt(z.wrapper.ownerDocument,"mousemove",zn),wt(z.wrapper.ownerDocument,"mouseup",Vn),ie.history.lastSelOrigin=null}var zn=oi(a,function(Hn){Hn.buttons===0||!gt(Hn)?Nn(Hn):Dn(Hn)}),Vn=oi(a,Nn);a.state.selectingText=Vn,Ut(z.wrapper.ownerDocument,"mousemove",zn),Ut(z.wrapper.ownerDocument,"mouseup",Vn)}function zu(a,y){var x=y.anchor,b=y.head,z=xt(a.doc,x.line);if(Ue(x,b)==0&&x.sticky==b.sticky)return y;var ie=qt(z);if(!ie)return y;var le=Dt(ie,x.ch,x.sticky),de=ie[le];if(de.from!=x.ch&&de.to!=x.ch)return y;var fe=le+(de.from==x.ch==(de.level!=1)?0:1);if(fe==0||fe==ie.length)return y;var ye;if(b.line!=x.line)ye=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var rt=Dt(ie,b.ch,b.sticky),yt=rt-le||(b.ch-x.ch)*(de.level==1?-1:1);rt==fe-1||rt==fe?ye=yt<0:ye=yt>0}var Xt=ie[fe+(ye?-1:0)],Zt=ye==(Xt.level==1),mn=Zt?Xt.from:Xt.to,Dn=Zt?"after":"before";return x.ch==mn&&x.sticky==Dn?y:new Fr(new ke(x.line,mn,Dn),b)}function ks(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(Xt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&nt(y);var le=a.display,de=le.lineDiv.getBoundingClientRect();if(ie>de.bottom||!Gt(a,x))return It(y);ie-=de.top-le.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var ye=le.gutters.childNodes[fe];if(ye&&ye.getBoundingClientRect().right>=z){var rt=tt(a.doc,ie),yt=a.display.gutterSpecs[fe];return mt(a,x,a,rt,yt.className,y),It(y)}}}function ml(a,y){return ks(a,y,"gutterClick",!0)}function Os(a,y){ui(a.display,y)||Hu(a,y)||dt(a,y,"contextmenu")||st||a.display.input.onContextMenu(y)}function Hu(a,y){return Gt(a,"gutterContextMenu")?ks(a,y,"gutterContextMenu",!1):!1}function Ds(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 Wo={toString:function(){return"CodeMirror.Init"}},Ms={},za={};function ju(a){var y=a.optionHandlers;function x(b,z,ie,le){a.defaults[b]=z,ie&&(y[b]=le?function(de,fe,ye){ye!=Wo&&ie(de,fe,ye)}:ie)}a.defineOption=x,a.Init=Wo,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Si(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var ie=[],le=b.doc.first;b.doc.iter(function(fe){for(var ye=0;;){var rt=fe.text.indexOf(z,ye);if(rt==-1)break;ye=rt+z.length,ie.push(ke(le,rt))}le++});for(var de=ie.length-1;de>=0;de--)$o(b.doc,z,ie[de],ke(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!=Wo&&b.refresh()}),x("specialCharPlaceholder",ki,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Le?"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",!ot),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ds(b),ra(b)},!0),x("keyMap","default",function(b,z,ie){var le=_a(z),de=ie!=Wo&&_a(ie);de&&de.detach&&de.detach(b,le),le.attach&&le.attach(b,de||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Zu,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=rl(z,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Tl(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=rl(b.options.gutters,z),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Qo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(Lo(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Wu),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 Wu(a,y,x){var b=x&&x!=Wo;if(!y!=!b){var z=a.display.dragFunctions,ie=y?Ut:wt;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?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(qe(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?ht(y):{},ht(Ms,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,Ds(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&&!Le&&ie.input.focus(),Ce&&Oe<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Po(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!Le||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Lo(this);for(var le in za)za.hasOwnProperty(le)&&za[le](this,y[le],Wo);Nl(this),y.finishInit&&y.finishInit(this);for(var de=0;de<vl.length;++de)vl[de](this);ko(this),Pe&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Gr.defaults=Ms,Gr.optionHandlers=za;function Vu(a){var y=a.display;Ut(y.scroller,"mousedown",oi(a,Is)),Ce&&Oe<11?Ut(y.scroller,"dblclick",oi(a,function(fe){if(!dt(a,fe)){var ye=So(a,fe);if(!(!ye||ml(a,fe)||ui(a.display,fe))){nt(fe);var rt=a.findWordAt(ye);La(a.doc,rt.anchor,rt.head)}}})):Ut(y.scroller,"dblclick",function(fe){return dt(a,fe)||nt(fe)}),Ut(y.scroller,"contextmenu",function(fe){return Os(a,fe)}),Ut(y.input.getField(),"contextmenu",function(fe){y.scroller.contains(fe.target)||Os(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 ye=fe.touches[0];return ye.radiusX<=1&&ye.radiusY<=1}function le(fe,ye){if(ye.left==null)return!0;var rt=ye.left-fe.left,yt=ye.top-fe.top;return rt*rt+yt*yt>20*20}Ut(y.scroller,"touchstart",function(fe){if(!dt(a,fe)&&!ie(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var ye=+new Date;y.activeTouch={start:ye,moved:!1,prev:ye-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),Ut(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Ut(y.scroller,"touchend",function(fe){var ye=y.activeTouch;if(ye&&!ui(y,fe)&&ye.left!=null&&!ye.moved&&new Date-ye.start<300){var rt=a.coordsChar(y.activeTouch,"page"),yt;!ye.prev||le(ye,ye.prev)?yt=new Fr(rt,rt):!ye.prev.prev||le(ye,ye.prev.prev)?yt=a.findWordAt(rt):yt=new Fr(ke(rt.line,0),Wt(a.doc,ke(rt.line+1,0))),a.setSelection(yt.anchor,yt.head),a.focus(),nt(fe)}z()}),Ut(y.scroller,"touchcancel",z),Ut(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),mt(a,"scroll",a))}),Ut(y.scroller,"mousewheel",function(fe){return _l(a,fe)}),Ut(y.scroller,"DOMMouseScroll",function(fe){return _l(a,fe)}),Ut(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){dt(a,fe)||Me(fe)},over:function(fe){dt(a,fe)||(Cu(a,fe),Me(fe))},start:function(fe){return xu(a,fe)},drop:oi(a,bu),leave:function(fe){dt(a,fe)||fs(a)}};var de=y.input.getField();Ut(de,"keyup",function(fe){return ws.call(a,fe)}),Ut(de,"keydown",oi(a,Ss)),Ut(de,"keypress",oi(a,Es)),Ut(de,"focus",function(fe){return Ya(a,fe)}),Ut(de,"blur",function(fe){return Lo(a,fe)})}var vl=[];Gr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var z=a.doc,ie;x==null&&(x="add"),x=="smart"&&(z.mode.indent?ie=Qn(a,y).state:x="prev");var le=a.options.tabSize,de=xt(z,y),fe=me(de.text,null,le);de.stateAfter&&(de.stateAfter=null);var ye=de.text.match(/^\s*/)[0],rt;if(!b&&!/\S/.test(de.text))rt=0,x="not";else if(x=="smart"&&(rt=z.mode.indent(ie,de.text.slice(ye.length),de.text),rt==St||rt>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?rt=me(xt(z,y-1).text,null,le):rt=0:x=="add"?rt=fe+a.options.indentUnit:x=="subtract"?rt=fe-a.options.indentUnit:typeof x=="number"&&(rt=fe+x),rt=Math.max(0,rt);var yt="",Xt=0;if(a.options.indentWithTabs)for(var Zt=Math.floor(rt/le);Zt;--Zt)Xt+=le,yt+=" ";if(Xt<rt&&(yt+=Ht(rt-Xt)),yt!=ye)return $o(z,yt,ke(y,0),ke(y,ye.length),"+input"),de.stateAfter=null,!0;for(var mn=0;mn<z.sel.ranges.length;mn++){var Dn=z.sel.ranges[mn];if(Dn.head.line==y&&Dn.head.ch<ye.length){var Nn=ke(y,ye.length);ul(z,mn,new Fr(Nn,Nn));break}}}var Ki=null;function Ha(a){Ki=a}function gl(a,y,x,b,z){var ie=a.doc;a.display.shift=!1,b||(b=ie.sel);var le=+new Date-200,de=z=="paste"||a.state.pasteIncoming>le,fe=rn(y),ye=null;if(de&&b.ranges.length>1)if(Ki&&Ki.text.join(`
`)==y){if(b.ranges.length%Ki.text.length==0){ye=[];for(var rt=0;rt<Ki.text.length;rt++)ye.push(ie.splitLines(Ki.text[rt]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(ye=_t(fe,function(zn){return[zn]}));for(var yt=a.curOp.updateInput,Xt=b.ranges.length-1;Xt>=0;Xt--){var Zt=b.ranges[Xt],mn=Zt.from(),Dn=Zt.to();Zt.empty()&&(x&&x>0?mn=ke(mn.line,mn.ch-x):a.state.overwrite&&!de?Dn=ke(Dn.line,Math.min(xt(ie,Dn.line).text.length,Dn.ch+Fe(fe).length)):de&&Ki&&Ki.lineWise&&Ki.text.join(`
`)==fe.join(`
`)&&(mn=Dn=ke(mn.line,0)));var Nn={from:mn,to:Dn,text:ye?ye[Xt%ye.length]:fe,origin:z||(de?"paste":a.state.cutIncoming>le?"cut":"+input")};_o(a.doc,Nn),Vr(a,"inputRead",a,Nn)}y&&!de&&Ts(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=yt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Bs(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Bi(y,function(){return gl(y,x,0,null,"paste")}),!0}function Ts(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),le=!1;if(ie.electricChars){for(var de=0;de<ie.electricChars.length;de++)if(y.indexOf(ie.electricChars.charAt(de))>-1){le=ga(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(xt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(le=ga(a,z.head.line,"smart"));le&&Vr(a,"electricInput",a,z.head.line)}}}function Ls(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,ie={anchor:ke(z,0),head:ke(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=at("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=at("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Pe?a.style.width="1000px":a.setAttribute("wrap","off"),We&&(a.style.border="1px solid black"),As(a),y}function Gu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,z){var ie=this.options,le=ie[b];ie[b]==z&&b!="mode"||(ie[b]=z,y.hasOwnProperty(b)&&oi(this,y[b])(this,z,le),mt(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(le){return le.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(b){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var le=z[ie].modeSpec;if(le==b||typeof b=="string"&&le.name==b){z.splice(ie,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(b,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),xe(this.doc,b)&&ga(this,b,z,ie)}),indentSelection:yi(function(b){for(var z=this.doc.sel.ranges,ie=-1,le=0;le<z.length;le++){var de=z[le];if(de.empty())de.head.line>ie&&(ga(this,de.head.line,b,!0),ie=de.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var fe=de.from(),ye=de.to(),rt=Math.max(ie,fe.line);ie=Math.min(this.lastLine(),ye.line-(ye.ch?0:1))+1;for(var yt=rt;yt<ie;++yt)ga(this,yt,b);var Xt=this.doc.sel.ranges;fe.ch==0&&z.length==Xt.length&&Xt[le].from().ch>0&&ul(this.doc,le,new Fr(fe,Xt[le].to()),ve)}}}),getTokenAt:function(b,z){return Un(this,b,z)},getLineTokens:function(b,z){return Un(this,ke(b),z,!0)},getTokenTypeAt:function(b){b=Wt(this.doc,b);var z=Xn(this,xt(this.doc,b.line)),ie=0,le=(z.length-1)/2,de=b.ch,fe;if(de==0)fe=z[2];else for(;;){var ye=ie+le>>1;if((ye?z[ye*2-1]:0)>=de)le=ye;else if(z[ye*2+1]<de)ie=ye+1;else{fe=z[ye*2+2];break}}var rt=fe?fe.indexOf("overlay "):-1;return rt<0?fe:rt==0?null:fe.slice(0,rt-1)},getModeAt:function(b){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(b).state).mode:z},getHelper:function(b,z){return this.getHelpers(b,z)[0]},getHelpers:function(b,z){var ie=[];if(!x.hasOwnProperty(z))return ie;var le=x[z],de=this.getModeAt(b);if(typeof de[z]=="string")le[de[z]]&&ie.push(le[de[z]]);else if(de[z])for(var fe=0;fe<de[z].length;fe++){var ye=le[de[z][fe]];ye&&ie.push(ye)}else de.helperType&&le[de.helperType]?ie.push(le[de.helperType]):le[de.name]&&ie.push(le[de.name]);for(var rt=0;rt<le._global.length;rt++){var yt=le._global[rt];yt.pred(de,this)&&Ze(ie,yt.val)==-1&&ie.push(yt.val)}return ie},getStateAfter:function(b,z){var ie=this.doc;return b=nn(ie,b==null?ie.first+ie.size-1:b),Qn(this,b+1,z).state},cursorCoords:function(b,z){var ie,le=this.doc.sel.primary();return b==null?ie=le.head:typeof b=="object"?ie=Wt(this.doc,b):ie=b?le.from():le.to(),Ci(this,ie,z||"page")},charCoords:function(b,z){return To(this,Wt(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,tt(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,ie){var le=!1,de;if(typeof b=="number"){var fe=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>fe&&(b=fe,le=!0),de=xt(this.doc,b)}else de=b;return Bo(this,de,{top:0,left:0},z||"page",ie||le).top+(le?this.doc.height-rr(de):0)},defaultTextHeight:function(){return Mi(this.display)},defaultCharWidth:function(){return Gi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,ie,le,de){var fe=this.display;b=Ci(this,Wt(this.doc,b));var ye=b.bottom,rt=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),fe.sizer.appendChild(z),le=="over")ye=b.top;else if(le=="above"||le=="near"){var yt=Math.max(fe.wrapper.clientHeight,this.doc.height),Xt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+z.offsetHeight>yt)&&b.top>z.offsetHeight?ye=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=yt&&(ye=b.bottom),rt+z.offsetWidth>Xt&&(rt=Xt-z.offsetWidth)}z.style.top=ye+"px",z.style.left=z.style.right="",de=="right"?(rt=fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(de=="left"?rt=0:de=="middle"&&(rt=(fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=rt+"px"),ie&&Ws(this,{left:rt,top:ye,right:rt+z.offsetWidth,bottom:ye+z.offsetHeight})},triggerOnKeyDown:yi(Ss),triggerOnKeyPress:yi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:yi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Ts(this,b)}),findPosH:function(b,z,ie,le){var de=1;z<0&&(de=-1,z=-z);for(var fe=Wt(this.doc,b),ye=0;ye<z&&(fe=yl(this.doc,fe,de,ie,le),!fe.hitSide);++ye);return fe},moveH:yi(function(b,z){var ie=this;this.extendSelectionsBy(function(le){return ie.display.shift||ie.doc.extend||le.empty()?yl(ie.doc,le.head,b,z,ie.options.rtlMoveVisually):b<0?le.from():le.to()},je)}),deleteH:yi(function(b,z){var ie=this.doc.sel,le=this.doc;ie.somethingSelected()?le.replaceSelection("",null,"+delete"):jo(this,function(de){var fe=yl(le,de.head,b,z,!1);return b<0?{from:fe,to:de.head}:{from:de.head,to:fe}})}),findPosV:function(b,z,ie,le){var de=1,fe=le;z<0&&(de=-1,z=-z);for(var ye=Wt(this.doc,b),rt=0;rt<z;++rt){var yt=Ci(this,ye,"div");if(fe==null?fe=yt.left:yt.left=fe,ye=Rs(this,yt,de,ie),ye.hitSide)break}return ye},moveV:yi(function(b,z){var ie=this,le=this.doc,de=[],fe=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(rt){if(fe)return b<0?rt.from():rt.to();var yt=Ci(ie,rt.head,"div");rt.goalColumn!=null&&(yt.left=rt.goalColumn),de.push(yt.left);var Xt=Rs(ie,yt,b,z);return z=="page"&&rt==le.sel.primary()&&Ja(ie,To(ie,Xt,"div").top-yt.top),Xt},je),de.length)for(var ye=0;ye<le.sel.ranges.length;ye++)le.sel.ranges[ye].goalColumn=de[ye]}),findWordAt:function(b){var z=this.doc,ie=xt(z,b.line).text,le=b.ch,de=b.ch;if(ie){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||de==ie.length)&&le?--le:++de;for(var ye=ie.charAt(le),rt=se(ye,fe)?function(yt){return se(yt,fe)}:/\s/.test(ye)?function(yt){return/\s/.test(yt)}:function(yt){return!/\s/.test(yt)&&!se(yt)};le>0&&rt(ie.charAt(le-1));)--le;for(;de<ie.length&&rt(ie.charAt(de));)++de}return new Fr(ke(b.line,le),ke(b.line,de))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):qe(this.display.cursorDiv,"CodeMirror-overwrite"),mt(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-Oi(this)-this.display.barHeight,width:b.scrollWidth-Oi(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:ke(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):Ol(this,b.from,b.to,b.margin)}),setSize:yi(function(b,z){var ie=this,le=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};b!=null&&(this.display.wrapper.style.width=le(b)),z!=null&&(this.display.wrapper.style.height=le(z)),this.options.lineWrapping&&Ko(this);var de=this.display.viewFrom;this.doc.iter(de,this.display.viewTo,function(fe){if(fe.widgets){for(var ye=0;ye<fe.widgets.length;ye++)if(fe.widgets[ye].noHScroll){fo(ie,de,"widget");break}}++de}),this.curOp.forceUpdate=!0,mt(this,"refresh",this)}),operation:function(b){return Bi(this,b)},startOperation:function(){return Po(this)},endOperation:function(){return ko(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-Mi(this.display))>.5||this.options.lineWrapping)&&Ka(this),mt(this,"refresh",this)}),swapDoc:yi(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),jl(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}},Ne(a),a.registerHelper=function(b,z,ie){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=ie},a.registerGlobalHelper=function(b,z,ie,le){a.registerHelper(b,z,le),x[b]._global.push({pred:ie,val:le})}}function yl(a,y,x,b,z){var ie=y,le=x,de=xt(a,y.line),fe=z&&a.direction=="rtl"?-x:x;function ye(){var Vn=y.line+fe;return Vn<a.first||Vn>=a.first+a.size?!1:(y=new ke(Vn,y.ch,y.sticky),de=xt(a,Vn))}function rt(Vn){var Hn;if(b=="codepoint"){var Kn=de.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Kn)?Hn=null:Hn=new ke(y.line,Math.max(0,Math.min(de.text.length,y.ch+x*(Kn>=55296&&Kn<56320?2:1))),-x)}else z?Hn=ku(a.cm,de,y,x):Hn=dl(de,y,x);if(Hn==null)if(!Vn&&ye())y=fl(z,a.cm,de,y.line,fe);else return!1;else y=Hn;return!0}if(b=="char"||b=="codepoint")rt();else if(b=="column")rt(!0);else if(b=="word"||b=="group")for(var yt=null,Xt=b=="group",Zt=a.cm&&a.cm.getHelper(y,"wordChars"),mn=!0;!(x<0&&!rt(!mn));mn=!1){var Dn=de.text.charAt(y.ch)||`
`,Nn=se(Dn,Zt)?"w":Xt&&Dn==`
`?"n":!Xt||/\s/.test(Dn)?null:"p";if(Xt&&!mn&&!Nn&&(Nn="s"),yt&&yt!=Nn){x<0&&(x=1,rt(),y.sticky="after");break}if(Nn&&(yt=Nn),x>0&&!rt(!mn))break}var zn=Na(a,y,ie,le,!0);return Mt(ie,zn)&&(zn.hitSide=!0),zn}function Rs(a,y,x,b){var z=a.doc,ie=y.left,le;if(b=="page"){var de=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(de-.5*Mi(a.display),3);le=(x>0?y.bottom:y.top)+x*fe}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var ye;ye=ci(a,ie,le),!!ye.outside;){if(x<0?le<=0:le>=z.height){ye.hitSide=!0;break}le+=x*5}return ye}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}Ut(z,"paste",function(de){!ie(de)||dt(b,de)||Bs(de,b)||Oe<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),Ut(z,"compositionstart",function(de){y.composing={data:de.data,done:!1}}),Ut(z,"compositionupdate",function(de){y.composing||(y.composing={data:de.data,done:!1})}),Ut(z,"compositionend",function(de){y.composing&&(de.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Ut(z,"touchstart",function(){return x.forceCompositionEnd()}),Ut(z,"input",function(){y.composing||y.readFromDOMSoon()});function le(de){if(!(!ie(de)||dt(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 ye=Ki.text.join(`
`);if(de.clipboardData.setData("Text",ye),de.clipboardData.getData("Text")==ye){de.preventDefault();return}}var rt=Ns(),yt=rt.firstChild;b.display.lineSpace.insertBefore(rt,b.display.lineSpace.firstChild),yt.value=Ki.text.join(`
`);var Xt=document.activeElement;Te(yt),setTimeout(function(){b.display.lineSpace.removeChild(rt),Xt.focus(),Xt==z&&x.showPrimarySelection()},50)}}Ut(z,"copy",le),Ut(z,"cut",le)},zr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},zr.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},zr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},zr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=ja(y,a.anchorNode,a.anchorOffset),le=ja(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&le&&!le.bad&&Ue(Cn(ie,le),b)==0&&Ue(hn(ie,le),z)==0)){var de=y.display.view,fe=b.line>=y.display.viewFrom&&Fs(y,b)||{node:de[0].measure.map[2],offset:0},ye=z.line<y.display.viewTo&&Fs(y,z);if(!ye){var rt=de[de.length-1].measure,yt=rt.maps?rt.maps[rt.maps.length-1]:rt.map;ye={node:yt[yt.length-1],offset:yt[yt.length-2]-yt[yt.length-3]}}if(!fe||!ye){a.removeAllRanges();return}var Xt=a.rangeCount&&a.getRangeAt(0),Zt;try{Zt=Be(fe.node,fe.offset,ye.offset,ye.node)}catch(mn){}Zt&&(!E&&y.state.focused?(a.collapse(fe.node,fe.offset),Zt.collapsed||(a.removeAllRanges(),a.addRange(Zt))):(a.removeAllRanges(),a.addRange(Zt)),Xt&&a.anchorNode==null?a.addRange(Xt):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){vt(this.cm.display.cursorDiv,a.cursors),vt(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 Ge(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(we&&Ee&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=ja(y,a.anchorNode,a.anchorOffset),b=ja(y,a.focusNode,a.focusOffset);x&&b&&Bi(y,function(){hi(y.doc,po(x,b),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=ke(b.line-1,xt(a.doc,b.line-1).length)),z.ch==xt(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=ke(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,le,de;b.line==y.viewFrom||(ie=wo(a,b.line))==0?(le=ze(y.view[0].line),de=y.view[0].node):(le=ze(y.view[ie].line),de=y.view[ie-1].node.nextSibling);var fe=wo(a,z.line),ye,rt;if(fe==y.view.length-1?(ye=y.viewTo-1,rt=y.lineDiv.lastChild):(ye=ze(y.view[fe+1].line)-1,rt=y.view[fe+1].node.previousSibling),!de)return!1;for(var yt=a.doc.splitLines(Ku(a,de,rt,le,ye)),Xt=$t(a.doc,ke(le,0),ke(ye,xt(a.doc,ye).text.length));yt.length>1&&Xt.length>1;)if(Fe(yt)==Fe(Xt))yt.pop(),Xt.pop(),ye--;else if(yt[0]==Xt[0])yt.shift(),Xt.shift(),le++;else break;for(var Zt=0,mn=0,Dn=yt[0],Nn=Xt[0],zn=Math.min(Dn.length,Nn.length);Zt<zn&&Dn.charCodeAt(Zt)==Nn.charCodeAt(Zt);)++Zt;for(var Vn=Fe(yt),Hn=Fe(Xt),Kn=Math.min(Vn.length-(yt.length==1?Zt:0),Hn.length-(Xt.length==1?Zt:0));mn<Kn&&Vn.charCodeAt(Vn.length-mn-1)==Hn.charCodeAt(Hn.length-mn-1);)++mn;if(yt.length==1&&Xt.length==1&&le==b.line)for(;Zt&&Zt>b.ch&&Vn.charCodeAt(Vn.length-mn-1)==Hn.charCodeAt(Hn.length-mn-1);)Zt--,mn++;yt[yt.length-1]=Vn.slice(0,Vn.length-mn).replace(/^\u200b+/,""),yt[0]=yt[0].slice(Zt).replace(/\u200b+$/,"");var sr=ke(le,Zt),nr=ke(ye,Xt.length?Fe(Xt).length-mn:0);if(yt.length>1||yt[0]||Ue(sr,nr))return $o(a.doc,yt,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=xt(a.doc,y.line),z=Mo(x,b,y.line),ie=qt(b,a.doc.direction),le="left";if(ie){var de=Dt(ie,y.ch);le=de%2?"right":"left"}var fe=xa(z.map,y.ch,le);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Zo(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,z){var ie="",le=!1,de=a.doc.lineSeparator(),fe=!1;function ye(Zt){return function(mn){return mn.id==Zt}}function rt(){le&&(ie+=de,fe&&(ie+=de),le=fe=!1)}function yt(Zt){Zt&&(rt(),ie+=Zt)}function Xt(Zt){if(Zt.nodeType==1){var mn=Zt.getAttribute("cm-text");if(mn){yt(mn);return}var Dn=Zt.getAttribute("cm-marker"),Nn;if(Dn){var zn=a.findMarks(ke(b,0),ke(z+1,0),ye(+Dn));zn.length&&(Nn=zn[0].find(0))&&yt($t(a.doc,Nn.from,Nn.to).join(de));return}if(Zt.getAttribute("contenteditable")=="false")return;var Vn=/^(pre|div|p|li|table|br)$/i.test(Zt.nodeName);if(!/^br$/i.test(Zt.nodeName)&&Zt.textContent.length==0)return;Vn&&rt();for(var Hn=0;Hn<Zt.childNodes.length;Hn++)Xt(Zt.childNodes[Hn]);/^(pre|p)$/i.test(Zt.nodeName)&&(fe=!0),Vn&&(le=!0)}else Zt.nodeType==3&&yt(Zt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Xt(y),y!=x;)y=y.nextSibling,fe=!1;return ie}function ja(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Zo(a.clipPos(ke(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||!Ge(b,y))return Zo(ke(ze(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var ie=a.rest?Fe(a.rest):a.line;return Zo(ke(ze(ie),ie.text.length),z)}var le=y.nodeType==3?y:null,de=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));de.parentNode!=b;)de=de.parentNode;var fe=a.measure,ye=fe.maps;function rt(Nn,zn,Vn){for(var Hn=-1;Hn<(ye?ye.length:0);Hn++)for(var Kn=Hn<0?fe.map:ye[Hn],sr=0;sr<Kn.length;sr+=3){var nr=Kn[sr+2];if(nr==Nn||nr==zn){var wr=ze(Hn<0?a.line:a.rest[Hn]),Wr=Kn[sr]+Vn;return(Vn<0||nr!=Nn)&&(Wr=Kn[sr+(Vn?1:0)]),ke(wr,Wr)}}}var yt=rt(le,de,x);if(yt)return Zo(yt,z);for(var Xt=de.nextSibling,Zt=le?le.nodeValue.length-x:0;Xt;Xt=Xt.nextSibling){if(yt=rt(Xt,Xt.firstChild,0),yt)return Zo(ke(yt.line,yt.ch-Zt),z);Zt+=Xt.textContent.length}for(var mn=de.previousSibling,Dn=x;mn;mn=mn.previousSibling){if(yt=rt(mn,mn.firstChild,-1),yt)return Zo(ke(yt.line,yt.ch+Dn),z);Dn+=mn.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),We&&(z.style.width="0px"),Ut(z,"input",function(){Ce&&Oe>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Ut(z,"paste",function(le){dt(b,le)||Bs(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ie(le){if(!dt(b,le)){if(b.somethingSelected())Ha({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var de=Ls(b);Ha({lineWise:!0,text:de.text}),le.type=="cut"?b.setSelections(de.ranges,null,ve):(x.prevInput="",z.value=de.text.join(`
`),Te(z))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Ut(z,"cut",ie),Ut(z,"copy",ie),Ut(a.scroller,"paste",function(le){if(!(ui(a,le)||dt(b,le))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var de=new Event("paste");de.clipboardData=le.clipboardData,z.dispatchEvent(de)}}),Ut(a.lineSpace,"selectstart",function(le){ui(a,le)||nt(le)}),Ut(z,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Ut(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Qr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Qr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Qr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var z=Ci(a,x.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+le.top-ie.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+le.left-ie.left))}return b},Qr.prototype.showSelection=function(a){var y=this.cm,x=y.display;vt(x.cursorDiv,a.cursors),vt(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&&Te(this.textarea),Ce&&Oe>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ce&&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"&&(!Le||_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||pn(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(Ce&&Oe>=9&&this.hasSelection===z||Ae&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!b&&(b="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,de=Math.min(b.length,z.length);le<de&&b.charCodeAt(le)==z.charCodeAt(le);)++le;return Bi(y,function(){gl(y,z.slice(le),b.length-le,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qr.prototype.onKeyPress=function(){Ce&&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),le=b.scroller.scrollTop;if(!ie||he)return;var de=x.options.resetSelectionOnContextMenu;de&&x.doc.sel.contains(ie)==-1&&oi(x,hi)(x.doc,po(ie),ve);var fe=z.style.cssText,ye=y.wrapper.style.cssText,rt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-rt.top-5)+"px; left: "+(a.clientX-rt.left-5)+`px;
z-index: 1000; background: `+(Ce?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var yt;Pe&&(yt=window.scrollY),b.input.focus(),Pe&&window.scrollTo(null,yt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=Zt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Xt(){if(z.selectionStart!=null){var Dn=x.somethingSelected(),Nn="\u200B"+(Dn?z.value:"");z.value="\u21DA",z.value=Nn,y.prevInput=Dn?"":"\u200B",z.selectionStart=1,z.selectionEnd=Nn.length,b.selForContextMenu=x.doc.sel}}function Zt(){if(y.contextMenuPending==Zt&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ye,z.style.cssText=fe,Ce&&Oe<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),z.selectionStart!=null)){(!Ce||Ce&&Oe<9)&&Xt();var Dn=0,Nn=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):Dn++<10?b.detectingSelectAll=setTimeout(Nn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Nn,200)}}if(Ce&&Oe>=9&&Xt(),st){Me(a);var mn=function(){wt(window,"mouseup",mn),setTimeout(Zt,20)};Ut(window,"mouseup",mn)}else setTimeout(Zt,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?ht(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&&(Ut(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var le=ie.submit=function(){b(),ie.submit=z,ie.submit(),ie.submit=le}}catch(fe){}}y.finishInit=function(fe){fe.save=b,fe.getTextArea=function(){return a},fe.toTextArea=function(){fe.toTextArea=isNaN,b(),a.parentNode.removeChild(fe.getWrapperElement()),a.style.display="",a.form&&(wt(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=wt,a.on=Ut,a.wheelEventPixels=iu,a.Doc=wi,a.splitLines=rn,a.countColumn=me,a.findColumn=Ft,a.isWordChar=oe,a.Pass=St,a.signal=mt,a.Line=Dr,a.changeEnd=mo,a.scrollbarModel=Bl,a.Pos=ke,a.cmpPos=Ue,a.modes=Lt,a.mimeModes=Ct,a.resolveMode=tn,a.getMode=un,a.modeExtensions=yn,a.extendMode=gn,a.copyState=On,a.startState=Mn,a.innerMode=En,a.commands=ha,a.keyMap=io,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=Ho,a.normalizeKeyMap=Pu,a.StringStream=Bn,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=nt,a.e_stopPropagation=Ke,a.e_stop=Me,a.addClass=ue,a.contains=Ge,a.rmClass=qe,a.keyNames=yo}ju(Gr),Gu(Gr);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Wa in wi.prototype)wi.prototype.hasOwnProperty(Wa)&&Ze(Ju,Wa)<0&&(Gr.prototype[Wa]=function(a){return function(){return a.apply(this.doc,arguments)}}(wi.prototype[Wa]));return Ne(wi),Gr.inputStyles={textarea:Qr,contenteditable:zr},Gr.defineMode=function(a){!Gr.defaults.mode&&a!="null"&&(Gr.defaults.mode=a),Jt.apply(this,arguments)},Gr.defineMIME=Qt,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(on,Vt,re){(function(E){E(re(89780),re(15525),re(98101))})(function(E){"use strict";E.defineMode("markdown",function(it,ge){var Xe=E.getMode(it,"text/html"),Ce=Xe.name=="null";function Oe(me){if(E.findModeByName){var ce=E.findModeByName(me);ce&&(me=ce.mime||ce.mimes[0])}var Ze=E.getMode(it,me);return Ze.name=="null"?null:Ze}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var Pe={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 Re in Pe)Pe.hasOwnProperty(Re)&&ge.tokenTypeOverrides[Re]&&(Pe[Re]=ge.tokenTypeOverrides[Re]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,Se=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ft=/^ {0,3}(?:\={1,}|-{2,})\s*$/,We=/^[^#!\[\]*_\\<>` "'(~:]+/,we=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Le=/^\s*\[[^\]]+?\]:.*$/,Ae=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Je=" ";function ot(me,ce,Ze){return ce.f=ce.inline=Ze,Ze(me,ce)}function At(me,ce,Ze){return ce.f=ce.block=Ze,Ze(me,ce)}function bt(me){return!me||!/\S/.test(me.string)}function st(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==qe){var ce=Ce;if(!ce){var Ze=E.innerMode(Xe,me.htmlState);ce=Ze.mode.name=="xml"&&Ze.state.tagStart===null&&!Ze.state.context&&Ze.state.tokenize.isInText}ce&&(me.f=kt,me.block=ut,me.htmlState=null)}return me.trailingSpace=0,me.trailingSpaceNewLine=!1,me.prevLine=me.thisLine,me.thisLine={stream:null},null}function ut(me,ce){var Ze=me.column()===ce.indentation,Tt=bt(ce.prevLine.stream),St=ce.indentedCode,ve=ce.prevLine.hr,$e=ce.list!==!1,je=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var Ft=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,$e)){for(ce.list=null;Ft<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=Ft-ce.listStack[ce.listStack.length-1])}var Bt=!Tt&&!ve&&!ce.prevLine.header&&(!$e||!St)&&!ce.prevLine.fencedCodeEnd,Ht=(ce.list===!1||ve||Tt)&&ce.indentation<=je&&me.match(Ee),Fe=null;if(ce.indentationDiff>=4&&(St||ce.prevLine.fencedCodeEnd||ce.prevLine.header||Tt))return me.skipToEnd(),ce.indentedCode=!0,Pe.code;if(me.eatSpace())return null;if(Ze&&ce.indentation<=je&&(Fe=me.match(Se))&&Fe[1].length<=6)return ce.quote=0,ce.header=Fe[1].length,ce.thisLine.header=!0,ge.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,vt(ce);if(ce.indentation<=je&&me.eat(">"))return ce.quote=Ze?1:ce.quote+1,ge.highlightFormatting&&(ce.formatting="quote"),me.eatSpace(),vt(ce);if(!Ht&&!ce.setext&&Ze&&ce.indentation<=je&&(Fe=me.match(he))){var _t=Fe[1]?"ol":"ul";return ce.indentation=Ft+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,ge.taskLists&&me.match(et,!1)&&(ce.taskList=!0),ce.f=ce.inline,ge.highlightFormatting&&(ce.formatting=["list","list-"+_t]),vt(ce)}else{if(Ze&&ce.indentation<=je&&(Fe=me.match(we,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Fe[1]+"+ *$"),ce.localMode=ge.fencedCodeBlockHighlighting&&Oe(Fe[2]||ge.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=E.startState(ce.localMode)),ce.f=ce.block=Nt,ge.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,vt(ce);if(ce.setext||(!Bt||!$e)&&!ce.quote&&ce.list===!1&&!ce.code&&!Ht&&!Le.test(me.string)&&(Fe=me.lookAhead(1))&&(Fe=Fe.match(ft)))return ce.setext?(ce.header=ce.setext,ce.setext=0,me.skipToEnd(),ge.highlightFormatting&&(ce.formatting="header")):(ce.header=Fe[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,vt(ce);if(Ht)return me.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Pe.hr;if(me.peek()==="[")return ot(me,ce,Qe)}return ot(me,ce,ce.inline)}function qe(me,ce){var Ze=Xe.token(me,ce.htmlState);if(!Ce){var Tt=E.innerMode(Xe,ce.htmlState);(Tt.mode.name=="xml"&&Tt.state.tagStart===null&&!Tt.state.context&&Tt.state.tokenize.isInText||ce.md_inside&&me.current().indexOf(">")>-1)&&(ce.f=kt,ce.block=ut,ce.htmlState=null)}return Ze}function Nt(me,ce){var Ze=ce.listStack[ce.listStack.length-1]||0,Tt=ce.indentation<Ze,St=Ze+3;if(ce.fencedEndRE&&ce.indentation<=St&&(Tt||me.match(ce.fencedEndRE))){ge.highlightFormatting&&(ce.formatting="code-block");var ve;return Tt||(ve=vt(ce)),ce.localMode=ce.localState=null,ce.block=ut,ce.f=kt,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,Tt?At(me,ce,ce.block):ve}else return ce.localMode?ce.localMode.token(me,ce.localState):(me.skipToEnd(),Pe.code)}function vt(me){var ce=[];if(me.formatting){ce.push(Pe.formatting),typeof me.formatting=="string"&&(me.formatting=[me.formatting]);for(var Ze=0;Ze<me.formatting.length;Ze++)ce.push(Pe.formatting+"-"+me.formatting[Ze]),me.formatting[Ze]==="header"&&ce.push(Pe.formatting+"-"+me.formatting[Ze]+"-"+me.header),me.formatting[Ze]==="quote"&&(!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=me.quote?ce.push(Pe.formatting+"-"+me.formatting[Ze]+"-"+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(Pe.linkHref,"url"):(me.strong&&ce.push(Pe.strong),me.em&&ce.push(Pe.em),me.strikethrough&&ce.push(Pe.strikethrough),me.emoji&&ce.push(Pe.emoji),me.linkText&&ce.push(Pe.linkText),me.code&&ce.push(Pe.code),me.image&&ce.push(Pe.image),me.imageAltText&&ce.push(Pe.imageAltText,"link"),me.imageMarker&&ce.push(Pe.imageMarker)),me.header&&ce.push(Pe.header,Pe.header+"-"+me.header),me.quote&&(ce.push(Pe.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=me.quote?ce.push(Pe.quote+"-"+me.quote):ce.push(Pe.quote+"-"+ge.maxBlockquoteDepth)),me.list!==!1){var Tt=(me.listStack.length-1)%3;Tt?Tt===1?ce.push(Pe.list2):ce.push(Pe.list3):ce.push(Pe.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 at(me,ce){if(me.match(We,!0))return vt(ce)}function kt(me,ce){var Ze=ce.text(me,ce);if(typeof Ze!="undefined")return Ze;if(ce.list)return ce.list=null,vt(ce);if(ce.taskList){var Tt=me.match(et,!0)[1]===" ";return Tt?ce.taskOpen=!0:ce.taskClosed=!0,ge.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,vt(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&me.match(/^#+$/,!0))return ge.highlightFormatting&&(ce.formatting="header"),vt(ce);var St=me.next();if(ce.linkTitle){ce.linkTitle=!1;var ve=St;St==="("&&(ve=")"),ve=(ve+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+ve+"\\\\]+|\\\\\\\\|\\\\.)"+ve;if(me.match(new RegExp($e),!0))return Pe.linkHref}if(St==="`"){var je=ce.formatting;ge.highlightFormatting&&(ce.formatting="code"),me.eatWhile("`");var Ft=me.current().length;if(ce.code==0&&(!ce.quote||Ft==1))return ce.code=Ft,vt(ce);if(Ft==ce.code){var Bt=vt(ce);return ce.code=0,Bt}else return ce.formatting=je,vt(ce)}else if(ce.code)return vt(ce);if(St==="\\"&&(me.next(),ge.highlightFormatting)){var Ht=vt(ce),Fe=Pe.formatting+"-escape";return Ht?Ht+" "+Fe:Fe}if(St==="!"&&me.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,ge.highlightFormatting&&(ce.formatting="image"),vt(ce);if(St==="["&&ce.imageMarker&&me.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,ge.highlightFormatting&&(ce.formatting="image"),vt(ce);if(St==="]"&&ce.imageAltText){ge.highlightFormatting&&(ce.formatting="image");var Ht=vt(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Ge,Ht}if(St==="["&&!ce.image)return ce.linkText&&me.match(/^.*?\]/)||(ce.linkText=!0,ge.highlightFormatting&&(ce.formatting="link")),vt(ce);if(St==="]"&&ce.linkText){ge.highlightFormatting&&(ce.formatting="link");var Ht=vt(ce);return ce.linkText=!1,ce.inline=ce.f=me.match(/\(.*?\)| ?\[.*?\]/,!1)?Ge:kt,Ht}if(St==="<"&&me.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Be,ge.highlightFormatting&&(ce.formatting="link");var Ht=vt(ce);return Ht?Ht+=" ":Ht="",Ht+Pe.linkInline}if(St==="<"&&me.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Be,ge.highlightFormatting&&(ce.formatting="link");var Ht=vt(ce);return Ht?Ht+=" ":Ht="",Ht+Pe.linkEmail}if(ge.xml&&St==="<"&&me.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var _t=me.string.indexOf(">",me.pos);if(_t!=-1){var lt=me.string.substring(me.start,_t);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(lt)&&(ce.md_inside=!0)}return me.backUp(1),ce.htmlState=E.startState(Xe),At(me,ce,qe)}if(ge.xml&&St==="<"&&me.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(St==="*"||St==="_"){for(var ae=1,te=me.pos==1?" ":me.string.charAt(me.pos-2);ae<3&&me.eat(St);)ae++;var ee=me.peek()||" ",oe=!/\s/.test(ee)&&(!Ae.test(ee)||/\s/.test(te)||Ae.test(te)),se=!/\s/.test(te)&&(!Ae.test(te)||/\s/.test(ee)||Ae.test(ee)),ne=null,pe=null;if(ae%2&&(!ce.em&&oe&&(St==="*"||!se||Ae.test(te))?ne=!0:ce.em==St&&se&&(St==="*"||!oe||Ae.test(ee))&&(ne=!1)),ae>1&&(!ce.strong&&oe&&(St==="*"||!se||Ae.test(te))?pe=!0:ce.strong==St&&se&&(St==="*"||!oe||Ae.test(ee))&&(pe=!1)),pe!=null||ne!=null){ge.highlightFormatting&&(ce.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(ce.em=St),pe===!0&&(ce.strong=St);var Bt=vt(ce);return ne===!1&&(ce.em=!1),pe===!1&&(ce.strong=!1),Bt}}else if(St===" "&&(me.eat("*")||me.eat("_"))){if(me.peek()===" ")return vt(ce);me.backUp(1)}if(ge.strikethrough){if(St==="~"&&me.eatWhile(St)){if(ce.strikethrough){ge.highlightFormatting&&(ce.formatting="strikethrough");var Bt=vt(ce);return ce.strikethrough=!1,Bt}else if(me.match(/^[^\s]/,!1))return ce.strikethrough=!0,ge.highlightFormatting&&(ce.formatting="strikethrough"),vt(ce)}else if(St===" "&&me.match(/^~~/,!0)){if(me.peek()===" ")return vt(ce);me.backUp(2)}}if(ge.emoji&&St===":"&&me.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,ge.highlightFormatting&&(ce.formatting="emoji");var be=vt(ce);return ce.emoji=!1,be}return St===" "&&(me.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),vt(ce)}function Be(me,ce){var Ze=me.next();if(Ze===">"){ce.f=ce.inline=kt,ge.highlightFormatting&&(ce.formatting="link");var Tt=vt(ce);return Tt?Tt+=" ":Tt="",Tt+Pe.linkInline}return me.match(/^[^>]+/,!0),Pe.linkInline}function Ge(me,ce){if(me.eatSpace())return null;var Ze=me.next();return Ze==="("||Ze==="["?(ce.f=ce.inline=ue(Ze==="("?")":"]"),ge.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,vt(ce)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(me){return function(ce,Ze){var Tt=ce.next();if(Tt===me){Ze.f=Ze.inline=kt,ge.highlightFormatting&&(Ze.formatting="link-string");var St=vt(Ze);return Ze.linkHref=!1,St}return ce.match(_e[me]),Ze.linkHref=!0,vt(Ze)}}function Qe(me,ce){return me.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Te,me.next(),ge.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,vt(ce)):ot(me,ce,kt)}function Te(me,ce){if(me.match(/^\]:/,!0)){ce.f=ce.inline=De,ge.highlightFormatting&&(ce.formatting="link");var Ze=vt(ce);return ce.linkText=!1,Ze}return me.match(/^([^\]\\]|\\.)+/,!0),Pe.linkText}function De(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=kt,Pe.linkHref+" url")}var ht={startState:function(){return{f:ut,prevLine:{stream:null},thisLine:{stream:null},block:ut,htmlState:null,indentation:0,inline:kt,text:at,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(Xe,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 st(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!=qe)){var Ze=me.match(/^\s*/,!0)[0].replace(/\t/g,Je).length;if(ce.indentation=Ze,ce.indentationDiff=null,Ze>0)return null}}return ce.f(me,ce)},innerMode:function(me){return me.block==qe?{state:me.htmlState,mode:Xe}:me.localState?{state:me.localState,mode:me.localMode}:{state:me,mode:ht}},indent:function(me,ce,Ze){return me.block==qe&&Xe.indent?Xe.indent(me.htmlState,ce,Ze):me.localState&&me.localMode.indent?me.localMode.indent(me.localState,ce,Ze):E.Pass},blankLine:st,getType:vt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ht},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(on,Vt,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 it=0;it<E.modeInfo.length;it++){var ge=E.modeInfo[it];ge.mimes&&(ge.mime=ge.mimes[0])}E.findModeByMIME=function(Xe){Xe=Xe.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Oe=E.modeInfo[Ce];if(Oe.mime==Xe)return Oe;if(Oe.mimes){for(var Pe=0;Pe<Oe.mimes.length;Pe++)if(Oe.mimes[Pe]==Xe)return Oe}}if(/\+xml$/.test(Xe))return E.findModeByMIME("application/xml");if(/\+json$/.test(Xe))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Xe){Xe=Xe.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Oe=E.modeInfo[Ce];if(Oe.ext){for(var Pe=0;Pe<Oe.ext.length;Pe++)if(Oe.ext[Pe]==Xe)return Oe}}},E.findModeByFileName=function(Xe){for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Oe=E.modeInfo[Ce];if(Oe.file&&Oe.file.test(Xe))return Oe}var Pe=Xe.lastIndexOf("."),Re=Pe>-1&&Xe.substring(Pe+1,Xe.length);if(Re)return E.findModeByExtension(Re)},E.findModeByName=function(Xe){Xe=Xe.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var Oe=E.modeInfo[Ce];if(Oe.name.toLowerCase()==Xe)return Oe;if(Oe.alias){for(var Pe=0;Pe<Oe.alias.length;Pe++)if(Oe.alias[Pe].toLowerCase()==Xe)return Oe}}}})},67549:function(on,Vt,re){(function(E){E(re(89780))})(function(E){"use strict";E.defineMode("stex",function(it,ge){"use strict";function Xe(We,we){We.cmdState.push(we)}function Ce(We){return We.cmdState.length>0?We.cmdState[We.cmdState.length-1]:null}function Oe(We){var we=We.cmdState.pop();we&&we.closeBracket()}function Pe(We){for(var we=We.cmdState,Le=we.length-1;Le>=0;Le--){var Ae=we[Le];if(Ae.name!="DEFAULT")return Ae}return{styleIdentifier:function(){return null}}}function Re(We,we,Le){return function(){this.name=We,this.bracketNo=0,this.style=we,this.styles=Le,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ee={};Ee.importmodule=Re("importmodule","tag",["string","builtin"]),Ee.documentclass=Re("documentclass","tag",["","atom"]),Ee.usepackage=Re("usepackage","tag",["atom"]),Ee.begin=Re("begin","tag",["atom"]),Ee.end=Re("end","tag",["atom"]),Ee.label=Re("label","tag",["atom"]),Ee.ref=Re("ref","tag",["atom"]),Ee.eqref=Re("eqref","tag",["atom"]),Ee.cite=Re("cite","tag",["atom"]),Ee.bibitem=Re("bibitem","tag",["atom"]),Ee.Bibitem=Re("Bibitem","tag",["atom"]),Ee.RBibitem=Re("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(We,we){We.f=we}function et(We,we){var Le;if(We.match(/^\\[a-zA-Z@]+/)){var Ae=We.current().slice(1);return Le=Ee.hasOwnProperty(Ae)?Ee[Ae]:Ee.DEFAULT,Le=new Le,Xe(we,Le),he(we,ft),Le.style}if(We.match(/^\\[$&%#{}_]/)||We.match(/^\\[,;!\/\\]/))return"tag";if(We.match("\\["))return he(we,function(ot,At){return Se(ot,At,"\\]")}),"keyword";if(We.match("\\("))return he(we,function(ot,At){return Se(ot,At,"\\)")}),"keyword";if(We.match("$$"))return he(we,function(ot,At){return Se(ot,At,"$$")}),"keyword";if(We.match("$"))return he(we,function(ot,At){return Se(ot,At,"$")}),"keyword";var Je=We.next();if(Je=="%")return We.skipToEnd(),"comment";if(Je=="}"||Je=="]"){if(Le=Ce(we),Le)Le.closeBracket(Je),he(we,ft);else return"error";return"bracket"}else return Je=="{"||Je=="["?(Le=Ee.DEFAULT,Le=new Le,Xe(we,Le),"bracket"):/\d/.test(Je)?(We.eatWhile(/[\w.%]/),"atom"):(We.eatWhile(/[\w\-_]/),Le=Pe(we),Le.name=="begin"&&(Le.argument=We.current()),Le.styleIdentifier())}function Se(We,we,Le){if(We.eatSpace())return null;if(Le&&We.match(Le))return he(we,et),"keyword";if(We.match(/^\\[a-zA-Z@]+/))return"tag";if(We.match(/^[a-zA-Z]+/))return"variable-2";if(We.match(/^\\[$&%#{}_]/)||We.match(/^\\[,;!\/]/)||We.match(/^[\^_&]/))return"tag";if(We.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(We.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ae=We.next();return Ae=="{"||Ae=="}"||Ae=="["||Ae=="]"||Ae=="("||Ae==")"?"bracket":Ae=="%"?(We.skipToEnd(),"comment"):"error"}function ft(We,we){var Le=We.peek(),Ae;return Le=="{"||Le=="["?(Ae=Ce(we),Ae.openBracket(Le),We.eat(Le),he(we,et),"bracket"):/[ \t\r]/.test(Le)?(We.eat(Le),null):(he(we,et),Oe(we),et(We,we))}return{startState:function(){var We=ge.inMathMode?function(we,Le){return Se(we,Le)}:et;return{cmdState:[],f:We}},copyState:function(We){return{cmdState:We.cmdState.slice(),f:We.f}},token:function(We,we){return we.f(We,we)},blankLine:function(We){We.f=et,We.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(on,Vt,re){(function(E){E(re(89780))})(function(E){"use strict";var it={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},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Xe,Ce){var Oe=Xe.indentUnit,Pe={},Re=Ce.htmlMode?it:ge;for(var Ee in Re)Pe[Ee]=Re[Ee];for(var Ee in Ce)Pe[Ee]=Ce[Ee];var he,et;function Se(Be,Ge){function _e(Te){return Ge.tokenize=Te,Te(Be,Ge)}var ue=Be.next();if(ue=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?_e(we("atom","]]>")):null:Be.match("--")?_e(we("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),_e(Le(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),Ge.tokenize=we("meta","?>"),"meta"):(he=Be.eat("/")?"closeTag":"openTag",Ge.tokenize=ft,"tag bracket");if(ue=="&"){var Qe;return Be.eat("#")?Be.eat("x")?Qe=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):Qe=Be.eatWhile(/[\d]/)&&Be.eat(";"):Qe=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),Qe?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}Se.isInText=!0;function ft(Be,Ge){var _e=Be.next();if(_e==">"||_e=="/"&&Be.eat(">"))return Ge.tokenize=Se,he=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return he="equals",null;if(_e=="<"){Ge.tokenize=Se,Ge.state=At,Ge.tagName=Ge.tagStart=null;var ue=Ge.tokenize(Be,Ge);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(Ge.tokenize=We(_e),Ge.stringStartCol=Be.column(),Ge.tokenize(Be,Ge)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function We(Be){var Ge=function(_e,ue){for(;!_e.eol();)if(_e.next()==Be){ue.tokenize=ft;break}return"string"};return Ge.isInAttribute=!0,Ge}function we(Be,Ge){return function(_e,ue){for(;!_e.eol();){if(_e.match(Ge)){ue.tokenize=Se;break}_e.next()}return Be}}function Le(Be){return function(Ge,_e){for(var ue;(ue=Ge.next())!=null;){if(ue=="<")return _e.tokenize=Le(Be+1),_e.tokenize(Ge,_e);if(ue==">")if(Be==1){_e.tokenize=Se;break}else return _e.tokenize=Le(Be-1),_e.tokenize(Ge,_e)}return"meta"}}function Ae(Be,Ge,_e){this.prev=Be.context,this.tagName=Ge,this.indent=Be.indented,this.startOfLine=_e,(Pe.doNotIndent.hasOwnProperty(Ge)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function Je(Be){Be.context&&(Be.context=Be.context.prev)}function ot(Be,Ge){for(var _e;;){if(!Be.context||(_e=Be.context.tagName,!Pe.contextGrabbers.hasOwnProperty(_e)||!Pe.contextGrabbers[_e].hasOwnProperty(Ge)))return;Je(Be)}}function At(Be,Ge,_e){return Be=="openTag"?(_e.tagStart=Ge.column(),bt):Be=="closeTag"?st:At}function bt(Be,Ge,_e){return Be=="word"?(_e.tagName=Ge.current(),et="tag",Nt):Pe.allowMissingTagName&&Be=="endTag"?(et="tag bracket",Nt(Be,Ge,_e)):(et="error",bt)}function st(Be,Ge,_e){if(Be=="word"){var ue=Ge.current();return _e.context&&_e.context.tagName!=ue&&Pe.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&Je(_e),_e.context&&_e.context.tagName==ue||Pe.matchClosing===!1?(et="tag",ut):(et="tag error",qe)}else return Pe.allowMissingTagName&&Be=="endTag"?(et="tag bracket",ut(Be,Ge,_e)):(et="error",qe)}function ut(Be,Ge,_e){return Be!="endTag"?(et="error",ut):(Je(_e),At)}function qe(Be,Ge,_e){return et="error",ut(Be,Ge,_e)}function Nt(Be,Ge,_e){if(Be=="word")return et="attribute",vt;if(Be=="endTag"||Be=="selfcloseTag"){var ue=_e.tagName,Qe=_e.tagStart;return _e.tagName=_e.tagStart=null,Be=="selfcloseTag"||Pe.autoSelfClosers.hasOwnProperty(ue)?ot(_e,ue):(ot(_e,ue),_e.context=new Ae(_e,ue,Qe==_e.indented)),At}return et="error",Nt}function vt(Be,Ge,_e){return Be=="equals"?at:(Pe.allowMissing||(et="error"),Nt(Be,Ge,_e))}function at(Be,Ge,_e){return Be=="string"?kt:Be=="word"&&Pe.allowUnquoted?(et="string",Nt):(et="error",Nt(Be,Ge,_e))}function kt(Be,Ge,_e){return Be=="string"?kt:Nt(Be,Ge,_e)}return{startState:function(Be){var Ge={tokenize:Se,state:At,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(Ge.baseIndent=Be),Ge},token:function(Be,Ge){if(!Ge.tagName&&Be.sol()&&(Ge.indented=Be.indentation()),Be.eatSpace())return null;he=null;var _e=Ge.tokenize(Be,Ge);return(_e||he)&&_e!="comment"&&(et=null,Ge.state=Ge.state(he||_e,Be,Ge),et&&(_e=et=="error"?_e+" error":et)),_e},indent:function(Be,Ge,_e){var ue=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+Oe;if(ue&&ue.noIndent)return E.Pass;if(Be.tokenize!=ft&&Be.tokenize!=Se)return _e?_e.match(/^(\s*)/)[0].length:0;if(Be.tagName)return Pe.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+Oe*(Pe.multilineTagIndentFactor||1);if(Pe.alignCDATA&&/<!\[CDATA\[/.test(Ge))return 0;var Qe=Ge&&/^<(\/)?([\w_:\.-]*)/.exec(Ge);if(Qe&&Qe[1])for(;ue;)if(ue.tagName==Qe[2]){ue=ue.prev;break}else if(Pe.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Qe)for(;ue;){var Te=Pe.contextGrabbers[ue.tagName];if(Te&&Te.hasOwnProperty(Qe[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+Oe:Be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Pe.htmlMode?"html":"xml",helperType:Pe.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==at&&(Be.state=Nt)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var Ge=[],_e=Be.context;_e;_e=_e.prev)_e.tagName&&Ge.push(_e.tagName);return Ge.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(on,Vt,re){"use strict";re.d(Vt,{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 se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function it(ae,te){function ee(){this.constructor=ae}E(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ge(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,ne){function pe(Ie){try{ct(oe.next(Ie))}catch(Ve){ne(Ve)}}function be(Ie){try{ct(oe.throw(Ie))}catch(Ve){ne(Ve)}}function ct(Ie){var Ve;Ie.done?se(Ie.value):(Ve=Ie.value,Ve instanceof ee?Ve:new ee(function(pt){pt(Ve)})).then(pe,be)}ct((oe=oe.apply(ae,te||[])).next())})}function Xe(ae,te){var ee,oe,se,ne,pe={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function be(ct){return function(Ie){return function(Ve){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&Ve[0]?oe.return:Ve[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ve[1])).done)return se;switch(oe=0,se&&(Ve=[2&Ve[0],se.value]),Ve[0]){case 0:case 1:se=Ve;break;case 4:return pe.label++,{value:Ve[1],done:!1};case 5:pe.label++,oe=Ve[1],Ve=[0];continue;case 7:Ve=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||Ve[0]!==6&&Ve[0]!==2)){pe=0;continue}if(Ve[0]===3&&(!se||Ve[1]>se[0]&&Ve[1]<se[3])){pe.label=Ve[1];break}if(Ve[0]===6&&pe.label<se[1]){pe.label=se[1],se=Ve;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(Ve);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}Ve=te.call(ae,pe)}catch(pt){Ve=[6,pt],oe=0}finally{ee=se=0}if(5&Ve[0])throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}([ct,Ie])}}}function Ce(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),se=0;for(te=0;te<ee;te++)for(var ne=arguments[te],pe=0,be=ne.length;pe<be;pe++,se++)oe[se]=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,se=ee;oe<se.length;oe++){var ne=se[oe],pe=ne[0],be=ne[1];te.setAttribute(pe,be)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,ne){var 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",se.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 se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(te/2).toString()),se.setAttribute("cy",(ee/2).toString()),se.setAttribute("rx",(te/2).toString()),se.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(se,oe),se},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,se,ne,pe,be){var ct=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ct,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",pe.toString()]]),ct.appendChild(be),ct},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}(),Pe=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}(),Re=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(ne){var pe=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var be=document.createElementNS("http://www.w3.org/2000/svg","svg");be.setAttribute("xmlns","http://www.w3.org/2000/svg"),be.setAttribute("width",ee.width.baseVal.valueAsString),be.setAttribute("height",ee.height.baseVal.valueAsString),be.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),be.innerHTML=ee.innerHTML,se.naturalSize===!0?(be.width.baseVal.value=te.naturalWidth,be.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(be.width.baseVal.value=se.width,be.height.baseVal.value=se.height),pe.width=be.width.baseVal.value,pe.height=be.height.baseVal.value;var ct=be.outerHTML,Ie=pe.getContext("2d");se.markersOnly!==!0&&Ie.drawImage(te,0,0,pe.width,pe.height);var Ve=window.URL,pt=new Image(pe.width,pe.height);pt.setAttribute("crossOrigin","anonymous");var Dt=new Blob([ct],{type:"image/svg+xml"}),Ot=Ve.createObjectURL(Dt);pt.onload=function(){Ie.drawImage(pt,0,0),Ve.revokeObjectURL(Ot);var qt=pe.toDataURL(se.imageType,se.imageQuality);ne(qt)},pt.src=Ot})},ae}(),Ee=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 et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Se("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Se("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}(),et=function(ae,te){this.selector=ae,this.style=te},Se=function(ae,te){this.localName=ae,this.style=te},ft=function(){function ae(te,ee,oe,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var 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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(se,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},ae.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ae.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,ee,oe){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=ee,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){se.actionToolbarButtonClicked(ne,oe)}),oe){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Se("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 Se("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Se("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Se("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 Se("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Se("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 Se("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new et("."+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}(),We=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new Se("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 Se("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Se("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Se("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Se("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 Se("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Se("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 Se("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Se("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var pe;ne.uiStyleSettings=se.uiStyleSettings;var be=document.createElement("div");be.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),be.innerHTML=ne.icon,be.title=ne.title,be.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(be),se.buttonRow.appendChild(be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,pe){var be,ct;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((be=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be:ee.toolboxActiveButtonStyleColorsClass.name):""+((ct=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:ee.toolboxButtonStyleColorsClass.name))})},ae}(),we=function(ae,te){this.title=ae,this.icon=te},Le=function(ae){function te(ee,oe,se,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=se,pe.setCurrentColor=pe.setCurrentColor.bind(pe),pe.getColorBox=pe.getColorBox.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=ee.getColorBox(se);oe.appendChild(ne),ee.colorBoxes.push(ne)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,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 be=document.createElement("div");return be.style.display="inline-block",be.style.width=ne-2+"px",be.style.height=ne-2+"px",be.style.backgroundColor=ee,be.style.borderRadius=ne/2+"px",ee==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.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(be),pe},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(we),Ae=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}(),Je=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}(),ot=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}(),At=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}(),bt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Oe.createTransform()),ne.setupControlBox(),ne}return it(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 se=this.unrotatePoint(ee);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var 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,se=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,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+ee.y-this.manipulationStartY,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}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),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(),se=Oe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Oe.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=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 Je,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 ot;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,se=oe,ne=(this.width+this.CB_DISTANCE)/2-ee/2,pe=(this.height+this.CB_DISTANCE)/2-ee/2,be=this.height+this.CB_DISTANCE-ee/2,ct=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,ct,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,pe),this.positionGrip(this.controlGrips.centerRight.visual,ct,pe),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,be),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,be),this.positionGrip(this.controlGrips.bottomRight.visual,ct,be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:At.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:At.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(At.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(At.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(Ae),st=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return it(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}(bt),ut=function(ae){function te(ee,oe,se,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=se,pe.setCurrentWidth=pe.setCurrentWidth.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentWidth(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=se.toString(),pe.style.marginRight="5px",ne.appendChild(pe);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.style.alignItems="center";var ct=document.createElement("hr");ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,ct.style.flexGrow="2",be.appendChild(ct),ne.appendChild(be),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(we),qe=function(ae){function te(ee,oe,se,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=se,pe.setCurrentStyle=pe.setCurrentStyle.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.styles.length-5+"%",ne.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentStyle(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.overflow="hidden";var be=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;pe.innerHTML=be,ne.appendChild(pe),ee.styleBoxes.push(ne)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(we),Nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Le("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(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}(st),vt=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"},at=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return it(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 ot;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,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(Ae),kt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Le("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(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}(at),Be=function(ae){function te(ee,oe,se,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=se,pe.setCurrentFont=pe.setCurrentFont.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/ee.fonts.length-5+"%",ne.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentFont(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.style.display="flex",pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.fontFamily=se,pe.style.overflow="hidden";var be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(be),ne.appendChild(pe),ee.fontBoxes.push(ne)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(we),Ge=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Le("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=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 se=(1*this.width-this.width*this.padding*2/100)/ee.width,ne=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,ne)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,ne=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,ne=this.height/2-oe.height*ee/2),{x:se,y:ne}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(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 se=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*ee,y:se.height*ee};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&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}(bt),_e=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Le("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return it(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],se=oe[0],ne=oe[1],pe=oe[2],be=oe[3],ct=!1,Ie=0;Ie<this.canvasElement.height;Ie++)for(var Ve=0;Ve<this.canvasElement.width;Ve++)ee.data[Ie*this.canvasElement.width*4+4*Ve+3]>0&&(ct=!0,Ie<ne&&(ne=Ie),Ve<se&&(se=Ve),Ie>be&&(be=Ie),Ve>pe&&(pe=Ve));if(ct){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(be-ne)/this.pixelRatio;var pt=document.createElement("canvas");pt.width=pe-se,pt.height=be-ne,pt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,be-ne),0,0),this.drawingImgUrl=pt.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}(bt),ue=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(be){var ct="both";switch(be){case 0:ct="both";break;case 1:ct="start";break;case 2:ct="end";break;case 3:ct="none"}var Ie=document.createElement("div");if(Ie.style.display="flex",Ie.style.flexGrow="2",Ie.style.alignItems="center",Ie.style.justifyContent="space-between",Ie.style.padding="5px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderColor=ct===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ee.setCurrentType(ct,Ie)}),oe.appendChild(Ie),ct==="both"||ct==="start"){var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.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>`,Ve.style.marginLeft="5px",Ie.appendChild(Ve)}var pt=document.createElement("div");pt.style.display="flex",pt.style.alignItems="center",pt.style.minHeight="20px",pt.style.flexGrow="2";var Dt=document.createElement("hr");if(Dt.style.minWidth="20px",Dt.style.border="0px",Dt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Dt.style.flexGrow="2",pt.appendChild(Dt),Ie.appendChild(pt),ct==="both"||ct==="end"){var Ot=document.createElement("div");Ot.style.display="flex",Ot.style.alignItems="center",Ot.style.minHeight="20px",Ot.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>`,Ot.style.marginRight="5px",Ie.appendChild(Ot)}ne.typeBoxes.push(Ie)},ne=this,pe=0;pe<4;pe++)se(pe);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(we),Qe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return it(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+ne/2)+" "+ee+","+(oe-ne/2)+" "+(ee+se/2)+","+(oe+ne/2)},te.prototype.createTips=function(){this.arrow1=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 se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(kt),Te=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Le("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return it(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}(st),De=function(ae){function te(ee,oe,se,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=se,pe.setCurrentOpacity=pe.setCurrentOpacity.bind(pe),pe}return it(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){ee.setCurrentOpacity(se,ne)}),oe.appendChild(ne);var pe=document.createElement("div");pe.innerText=100*se+"%",ne.appendChild(pe),ee.opacityBoxes.push(ne)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(we),ht=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Le("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new De("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(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}(Te),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>',Ze=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Le("Text color",se.defaultColorSet,ne.color,me),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Le("Fill color",se.defaultColorSet,ne.bgColor,ce),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new ot,ne.tipGrip.visual.transform.baseVal.appendItem(Oe.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return it(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),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){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}(Ge),Tt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Le("Line color",Ce(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Le("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new De("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return it(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}(bt),St=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return it(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 se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',te}(kt),ve=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return it(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}(Tt),$e=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}(),je=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Le("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return it(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}(at),Ft=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Le("Line color",Ce(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Le("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,ce),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new qe("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Be("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Le("Text color",se.defaultColorSet,ne.textColor,me),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return it(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}(bt),Bt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Ht=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return it(te,ae),te}(Bt),Fe=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var ne=ae.call(this,ee,se)||this;return ne.marker=oe,ne}return it(te,ae),te}(Bt),_t=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 vt,this._isOpen=!1,this.undoRedoManager=new $e,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 _t,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[Nt,_e,Qe,Ge,ve,Tt,ht,Ze,St,Te,kt,je,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Nt,_e,Qe,Ge,Tt,ht,Ze]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Nt,_e,Qe,Ge,ht]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Bt(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Xe(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Re).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var ne=new Bt(ee,!0);se(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(se){return se(new Bt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,se=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(oe,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof Ge?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},ae.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ae.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.top},ae.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ae.prototype.addDefs=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=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 ft(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 We(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new Fe(te,te._currentMarker,!0);se(ne),ne.defaultPrevented&&(ee=!0)}),!ee){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(se){return se(new Fe(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var be=new Fe(te,void 0,!0);pe(be),be.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var be=se.markers[pe];se.setCurrentMarker(se.markers[pe]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(ct){return ct(new Fe(te,be))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Bt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new Bt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Bt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Bt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return ge(this,void 0,void 0,function(){var te,ee,oe=this;return Xe(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return te=se.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new Ht(oe,te,ee))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},ae.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var se=ee._availableMarkerTypes.find(function(pe){return pe.typeName===oe.typeName});if(se!==void 0){var ne=ee.addNewMarker(se);ne.restoreState(oe),ee.markers.push(ne)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new Bt(ee))})},ae.prototype.addNewMarker=function(te){var ee=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(se){return se.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new Fe(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new Fe(ee,te))})},ae.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))})),this._currentMarker=te,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(oe){return oe(new Fe(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ae.prototype.addLicenseKey=function(te){Pe.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(on,Vt,re){"use strict";re.d(Vt,{ZP:function(){return Pe}});var E=re(42978),it=re(59301),ge=re(47273),Xe=0,Ce=(0,ge.Z)();function Oe(){var Re;return Ce?(Re=Xe,Xe+=1):Re="TEST_OR_SSR",Re}function Pe(Re){var Ee=it.useState(),he=(0,E.Z)(Ee,2),et=he[0],Se=he[1];return it.useEffect(function(){Se("rc_select_".concat(Oe()))},[]),Re||et}},37463:function(on,Vt,re){"use strict";re.d(Vt,{Ac:function(){return dt},Xo:function(){return Gt},Wx:function(){return nt},ZP:function(){return an},lk:function(){return At}});var E=re(54476),it=re(94480),ge=re(20068),Xe=re(33885),Ce=re(42978),Oe=re(75931),Pe=re(76190),Re=re(18929),Ee=re(48736),he=re(59301),et=re(92310),Se=re.n(et),ft=re(34280),We=re(49658),we=re(8654),Le=function(tt){var xe=tt.className,He=tt.customizeIcon,ke=tt.customizeIconProps,Ue=tt.children,Mt=tt.onMouseDown,sn=tt.onClick,hn=typeof He=="function"?He(ke):He;return he.createElement("span",{className:xe,onMouseDown:function(nn){nn.preventDefault(),Mt==null||Mt(nn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:sn,"aria-hidden":!0},hn!==void 0?hn:he.createElement("span",{className:Se()(xe.split(/\s+/).map(function(Cn){return"".concat(Cn,"-icon")}))},Ue))},Ae=Le,Je=function(tt,xe,He,ke,Ue){var Mt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,sn=arguments.length>6?arguments[6]:void 0,hn=arguments.length>7?arguments[7]:void 0,Cn=he.useMemo(function(){if((0,Pe.Z)(ke)==="object")return ke.clearIcon;if(Ue)return Ue},[ke,Ue]),nn=he.useMemo(function(){return!!(!Mt&&ke&&(He.length||sn)&&!(hn==="combobox"&&sn===""))},[ke,Mt,He.length,sn,hn]);return{allowClear:nn,clearIcon:he.createElement(Ae,{className:"".concat(tt,"-clear"),onMouseDown:xe,customizeIcon:Cn},"\xD7")}},ot=he.createContext(null);function At(){return he.useContext(ot)}function bt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,tt=he.useState(!1),xe=(0,Ce.Z)(tt,2),He=xe[0],ke=xe[1],Ue=he.useRef(null),Mt=function(){window.clearTimeout(Ue.current)};he.useEffect(function(){return Mt},[]);var sn=function(Cn,nn){Mt(),Ue.current=window.setTimeout(function(){ke(Cn),nn&&nn()},ze)};return[He,sn,Mt]}function st(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,tt=he.useRef(null),xe=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(xe.current)}},[]);function He(ke){(ke||tt.current===null)&&(tt.current=ke),window.clearTimeout(xe.current),xe.current=window.setTimeout(function(){tt.current=null},ze)}return[function(){return tt.current},He]}function ut(ze,tt,xe,He){var ke=he.useRef(null);ke.current={open:tt,triggerOpen:xe,customizedTrigger:He},he.useEffect(function(){function Ue(Mt){var sn;if(!((sn=ke.current)!==null&&sn!==void 0&&sn.customizedTrigger)){var hn=Mt.target;hn.shadowRoot&&Mt.composed&&(hn=Mt.composedPath()[0]||hn),ke.current.open&&ze().filter(function(Cn){return Cn}).every(function(Cn){return!Cn.contains(hn)&&Cn!==hn})&&ke.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ue),function(){return window.removeEventListener("mousedown",Ue)}},[])}var qe=re(10228);function Nt(ze){return ze&&![qe.Z.ESC,qe.Z.SHIFT,qe.Z.BACKSPACE,qe.Z.TAB,qe.Z.WIN_KEY,qe.Z.ALT,qe.Z.META,qe.Z.WIN_KEY_RIGHT,qe.Z.CTRL,qe.Z.SEMICOLON,qe.Z.EQUALS,qe.Z.CAPS_LOCK,qe.Z.CONTEXT_MENU,qe.Z.F1,qe.Z.F2,qe.Z.F3,qe.Z.F4,qe.Z.F5,qe.Z.F6,qe.Z.F7,qe.Z.F8,qe.Z.F9,qe.Z.F10,qe.Z.F11,qe.Z.F12].includes(ze)}var vt=re(26112),at=re(83836);function kt(ze,tt,xe){var He=(0,Xe.Z)((0,Xe.Z)({},ze),xe?tt:{});return Object.keys(tt).forEach(function(ke){var Ue=tt[ke];typeof Ue=="function"&&(He[ke]=function(){for(var Mt,sn=arguments.length,hn=new Array(sn),Cn=0;Cn<sn;Cn++)hn[Cn]=arguments[Cn];return Ue.apply(void 0,hn),(Mt=ze[ke])===null||Mt===void 0?void 0:Mt.call.apply(Mt,[ze].concat(hn))})}),He}var Be=kt,Ge=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_e=function(tt,xe){var He=tt.prefixCls,ke=tt.id,Ue=tt.inputElement,Mt=tt.autoFocus,sn=tt.autoComplete,hn=tt.editable,Cn=tt.activeDescendantId,nn=tt.value,Wt=tt.open,zt=tt.attrs,vn=(0,Oe.Z)(tt,Ge),An=Ue||he.createElement("input",null),Tn=An,Ln=Tn.ref,Xn=Tn.props;return(0,Ee.Kp)(!("maxLength"in An.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),An=he.cloneElement(An,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({type:"search"},Be(vn,Xn,!0)),{},{id:ke,ref:(0,we.sQ)(xe,Ln),autoComplete:sn||"off",autoFocus:Mt,className:Se()("".concat(He,"-selection-search-input"),Xn==null?void 0:Xn.className),role:"combobox","aria-expanded":Wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ke,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ke,"_list"),"aria-activedescendant":Wt?Cn:void 0},zt),{},{value:hn?nn:"",readOnly:!hn,unselectable:hn?null:"on",style:(0,Xe.Z)((0,Xe.Z)({},Xn.style),{},{opacity:hn?null:0})})),An},ue=he.forwardRef(_e),Qe=ue;function Te(ze){return Array.isArray(ze)?ze:ze!==void 0?[ze]:[]}var De=typeof window!="undefined"&&window.document&&window.document.documentElement,ht=De;function me(ze){return ze!=null}function ce(ze){return!ze&&ze!==0}function Ze(ze){return["string","number"].includes((0,Pe.Z)(ze))}function Tt(ze){var tt=void 0;return ze&&(Ze(ze.title)?tt=ze.title.toString():Ze(ze.label)&&(tt=ze.label.toString())),tt}function St(ze,tt){ht?he.useLayoutEffect(ze,tt):he.useEffect(ze,tt)}function ve(ze){var tt;return(tt=ze.key)!==null&&tt!==void 0?tt:ze.value}var $e=function(tt){tt.preventDefault(),tt.stopPropagation()},je=function(tt){var xe=tt.id,He=tt.prefixCls,ke=tt.values,Ue=tt.open,Mt=tt.searchValue,sn=tt.autoClearSearchValue,hn=tt.inputRef,Cn=tt.placeholder,nn=tt.disabled,Wt=tt.mode,zt=tt.showSearch,vn=tt.autoFocus,An=tt.autoComplete,Tn=tt.activeDescendantId,Ln=tt.tabIndex,Xn=tt.removeIcon,Qn=tt.maxTagCount,Jn=tt.maxTagTextLength,Zn=tt.maxTagPlaceholder,_n=Zn===void 0?function(Pn){return"+ ".concat(Pn.length," ...")}:Zn,jn=tt.tagRender,Un=tt.onToggleOpen,ur=tt.onRemove,qn=tt.onInputChange,lr=tt.onInputPaste,ir=tt.onInputKeyDown,er=tt.onInputMouseDown,tr=tt.onInputCompositionStart,gr=tt.onInputCompositionEnd,mr=tt.onInputBlur,cr=he.useRef(null),vr=(0,he.useState)(0),Cr=(0,Ce.Z)(vr,2),or=Cr[0],dr=Cr[1],Gn=(0,he.useState)(!1),Sr=(0,Ce.Z)(Gn,2),Rr=Sr[0],Hr=Sr[1],Er="".concat(He,"-selection"),Ar=Ue||Wt==="multiple"&&sn===!1||Wt==="tags"?Mt:"",Ir=Wt==="tags"||Wt==="multiple"&&sn===!1||zt&&(Ue||Rr);St(function(){dr(cr.current.scrollWidth)},[Ar]);var Mr=function(fn,$n,Wn,xn,In){return he.createElement("span",{title:Tt(fn),className:Se()("".concat(Er,"-item"),(0,ge.Z)({},"".concat(Er,"-item-disabled"),Wn))},he.createElement("span",{className:"".concat(Er,"-item-content")},$n),xn&&he.createElement(Ae,{className:"".concat(Er,"-item-remove"),onMouseDown:$e,onClick:In,customizeIcon:Xn},"\xD7"))},_r=function(fn,$n,Wn,xn,In,Rn){var Fn=function(Pr){$e(Pr),Un(!Ue)};return he.createElement("span",{onMouseDown:Fn},jn({label:$n,value:fn,disabled:Wn,closable:xn,onClose:In,isMaxTag:!!Rn}))},fr=function(fn){var $n=fn.disabled,Wn=fn.label,xn=fn.value,In=!nn&&!$n,Rn=Wn;if(typeof Jn=="number"&&(typeof Wn=="string"||typeof Wn=="number")){var Fn=String(Rn);Fn.length>Jn&&(Rn="".concat(Fn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(fn)};return typeof jn=="function"?_r(xn,Rn,$n,In,rr):Mr(fn,Rn,$n,In,rr)},Yn=function(fn){if(!ke.length)return null;var $n=typeof _n=="function"?_n(fn):_n;return typeof jn=="function"?_r(void 0,$n,!1,!1,void 0,!0):Mr({title:$n},$n,!1)},bn=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){Hr(!0)},onBlur:function(){Hr(!1)}},he.createElement(Qe,{ref:hn,open:Ue,prefixCls:He,id:xe,inputElement:null,disabled:nn,autoFocus:vn,autoComplete:An,editable:Ir,activeDescendantId:Tn,value:Ar,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:gr,onBlur:mr,tabIndex:Ln,attrs:(0,vt.Z)(tt,!0)}),he.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Ar,"\xA0")),kn=he.createElement(at.Z,{prefixCls:"".concat(Er,"-overflow"),data:ke,renderItem:fr,renderRest:Yn,suffix:bn,itemKey:ve,maxCount:Qn});return he.createElement("span",{className:"".concat(Er,"-wrap")},kn,!ke.length&&!Ar&&he.createElement("span",{className:"".concat(Er,"-placeholder")},Cn))},Ft=je,Bt=function(tt){var xe=tt.inputElement,He=tt.prefixCls,ke=tt.id,Ue=tt.inputRef,Mt=tt.disabled,sn=tt.autoFocus,hn=tt.autoComplete,Cn=tt.activeDescendantId,nn=tt.mode,Wt=tt.open,zt=tt.values,vn=tt.placeholder,An=tt.tabIndex,Tn=tt.showSearch,Ln=tt.searchValue,Xn=tt.activeValue,Qn=tt.maxLength,Jn=tt.onInputKeyDown,Zn=tt.onInputMouseDown,_n=tt.onInputChange,jn=tt.onInputPaste,Un=tt.onInputCompositionStart,ur=tt.onInputCompositionEnd,qn=tt.onInputBlur,lr=tt.title,ir=he.useState(!1),er=(0,Ce.Z)(ir,2),tr=er[0],gr=er[1],mr=nn==="combobox",cr=mr||Tn,vr=zt[0],Cr=Ln||"";mr&&Xn&&!tr&&(Cr=Xn),he.useEffect(function(){mr&&gr(!1)},[mr,Xn]);var or=nn!=="combobox"&&!Wt&&!Tn?!1:!!Cr,dr=lr===void 0?Tt(vr):lr,Gn=he.useMemo(function(){return vr?null:he.createElement("span",{className:"".concat(He,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},vn)},[vr,or,vn,He]);return he.createElement("span",{className:"".concat(He,"-selection-wrap")},he.createElement("span",{className:"".concat(He,"-selection-search")},he.createElement(Qe,{ref:Ue,prefixCls:He,id:ke,open:Wt,inputElement:xe,disabled:Mt,autoFocus:sn,autoComplete:hn,editable:cr,activeDescendantId:Cn,value:Cr,onKeyDown:Jn,onMouseDown:Zn,onChange:function(Rr){gr(!0),_n(Rr)},onPaste:jn,onCompositionStart:Un,onCompositionEnd:ur,onBlur:qn,tabIndex:An,attrs:(0,vt.Z)(tt,!0),maxLength:mr?Qn:void 0})),!mr&&vr?he.createElement("span",{className:"".concat(He,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Gn)},Ht=Bt,Fe=function(tt,xe){var He=(0,he.useRef)(null),ke=(0,he.useRef)(!1),Ue=tt.prefixCls,Mt=tt.open,sn=tt.mode,hn=tt.showSearch,Cn=tt.tokenWithEnter,nn=tt.disabled,Wt=tt.prefix,zt=tt.autoClearSearchValue,vn=tt.onSearch,An=tt.onSearchSubmit,Tn=tt.onToggleOpen,Ln=tt.onInputKeyDown,Xn=tt.onInputBlur,Qn=tt.domRef;he.useImperativeHandle(xe,function(){return{focus:function(dr){He.current.focus(dr)},blur:function(){He.current.blur()}}});var Jn=st(0),Zn=(0,Ce.Z)(Jn,2),_n=Zn[0],jn=Zn[1],Un=function(dr){var Gn=dr.which,Sr=He.current instanceof HTMLTextAreaElement;!Sr&&Mt&&(Gn===qe.Z.UP||Gn===qe.Z.DOWN)&&dr.preventDefault(),Ln&&Ln(dr),Gn===qe.Z.ENTER&&sn==="tags"&&!ke.current&&!Mt&&(An==null||An(dr.target.value)),!(Sr&&!Mt&&~[qe.Z.UP,qe.Z.DOWN,qe.Z.LEFT,qe.Z.RIGHT].indexOf(Gn))&&Nt(Gn)&&Tn(!0)},ur=function(){jn(!0)},qn=(0,he.useRef)(null),lr=function(dr){vn(dr,!0,ke.current)!==!1&&Tn(!0)},ir=function(){ke.current=!0},er=function(dr){ke.current=!1,sn!=="combobox"&&lr(dr.target.value)},tr=function(dr){var Gn=dr.target.value;if(Cn&&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!==He.current){var Sr=document.body.style.msTouchAction!==void 0;Sr?setTimeout(function(){He.current.focus()}):He.current.focus()}},cr=function(dr){var Gn=_n();dr.target!==He.current&&!Gn&&!(sn==="combobox"&&nn)&&dr.preventDefault(),(sn!=="combobox"&&(!hn||!Gn)||!Mt)&&(Mt&&zt!==!1&&vn("",!0,!1),Tn())},vr={inputRef:He,onInputKeyDown:Un,onInputMouseDown:ur,onInputChange:tr,onInputPaste:gr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Xn},Cr=sn==="multiple"||sn==="tags"?he.createElement(Ft,(0,E.Z)({},tt,vr)):he.createElement(Ht,(0,E.Z)({},tt,vr));return he.createElement("div",{ref:Qn,className:"".concat(Ue,"-selector"),onClick:mr,onMouseDown:cr},Wt&&he.createElement("div",{className:"".concat(Ue,"-prefix")},Wt),Cr)},_t=he.forwardRef(Fe),lt=_t,ae=re(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(tt){var xe=tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xe,adjustY:1},htmlRegion:"scroll"}}},oe=function(tt,xe){var He=tt.prefixCls,ke=tt.disabled,Ue=tt.visible,Mt=tt.children,sn=tt.popupElement,hn=tt.animation,Cn=tt.transitionName,nn=tt.dropdownStyle,Wt=tt.dropdownClassName,zt=tt.direction,vn=zt===void 0?"ltr":zt,An=tt.placement,Tn=tt.builtinPlacements,Ln=tt.dropdownMatchSelectWidth,Xn=tt.dropdownRender,Qn=tt.dropdownAlign,Jn=tt.getPopupContainer,Zn=tt.empty,_n=tt.getTriggerDOMNode,jn=tt.onPopupVisibleChange,Un=tt.onPopupMouseEnter,ur=(0,Oe.Z)(tt,te),qn="".concat(He,"-dropdown"),lr=sn;Xn&&(lr=Xn(sn));var ir=he.useMemo(function(){return Tn||ee(Ln)},[Tn,Ln]),er=hn?"".concat(qn,"-").concat(hn):Cn,tr=typeof Ln=="number",gr=he.useMemo(function(){return tr?null:Ln===!1?"minWidth":"width"},[Ln,tr]),mr=nn;tr&&(mr=(0,Xe.Z)((0,Xe.Z)({},mr),{},{width:Ln}));var cr=he.useRef(null);return he.useImperativeHandle(xe,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:jn?["click"]:[],hideAction:jn?["click"]:[],popupPlacement:An||(vn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:he.createElement("div",{onMouseEnter:Un},lr),ref:cr,stretch:gr,popupAlign:Qn,popupVisible:Ue,getPopupContainer:Jn,popupClassName:Se()(Wt,(0,ge.Z)({},"".concat(qn,"-empty"),Zn)),popupStyle:mr,getTriggerDOMNode:_n,onPopupVisibleChange:jn}),Mt)},se=he.forwardRef(oe),ne=se,pe=re(66712);function be(ze,tt){var xe=ze.key,He;return"value"in ze&&(He=ze.value),xe!=null?xe:He!==void 0?He:"rc-index-key-".concat(tt)}function ct(ze){return typeof ze!="undefined"&&!Number.isNaN(ze)}function Ie(ze,tt){var xe=ze||{},He=xe.label,ke=xe.value,Ue=xe.options,Mt=xe.groupLabel,sn=He||(tt?"children":"label");return{label:sn,value:ke||"value",options:Ue||"options",groupLabel:Mt||sn}}function Ve(ze){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=tt.fieldNames,He=tt.childrenAsData,ke=[],Ue=Ie(xe,!1),Mt=Ue.label,sn=Ue.value,hn=Ue.options,Cn=Ue.groupLabel;function nn(Wt,zt){Array.isArray(Wt)&&Wt.forEach(function(vn){if(zt||!(hn in vn)){var An=vn[sn];ke.push({key:be(vn,ke.length),groupOption:zt,data:vn,label:vn[Mt],value:An})}else{var Tn=vn[Cn];Tn===void 0&&He&&(Tn=vn.label),ke.push({key:be(vn,ke.length),group:!0,data:vn,label:Tn}),nn(vn[hn],!0)}})}return nn(ze,!1),ke}function pt(ze){var tt=(0,Xe.Z)({},ze);return"props"in tt||Object.defineProperty(tt,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),tt}}),tt}var Dt=function(tt,xe,He){if(!xe||!xe.length)return null;var ke=!1,Ue=function sn(hn,Cn){var nn=(0,pe.Z)(Cn),Wt=nn[0],zt=nn.slice(1);if(!Wt)return[hn];var vn=hn.split(Wt);return ke=ke||vn.length>1,vn.reduce(function(An,Tn){return[].concat((0,it.Z)(An),(0,it.Z)(sn(Tn,zt)))},[]).filter(Boolean)},Mt=Ue(tt,xe);return ke?typeof He!="undefined"?Mt.slice(0,He):Mt:null},Ot=he.createContext(null),qt=Ot;function Kt(ze){var tt=ze.visible,xe=ze.values;if(!tt)return null;var He=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(xe.slice(0,He).map(function(ke){var Ue=ke.label,Mt=ke.value;return["number","string"].includes((0,Pe.Z)(Ue))?Ue:Mt}).join(", ")),xe.length>He?", ...":null)}var Ut=["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"],Pt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wt=function(tt){return tt==="tags"||tt==="multiple"},mt=he.forwardRef(function(ze,tt){var xe,He=ze.id,ke=ze.prefixCls,Ue=ze.className,Mt=ze.showSearch,sn=ze.tagRender,hn=ze.direction,Cn=ze.omitDomProps,nn=ze.displayValues,Wt=ze.onDisplayValuesChange,zt=ze.emptyOptions,vn=ze.notFoundContent,An=vn===void 0?"Not Found":vn,Tn=ze.onClear,Ln=ze.mode,Xn=ze.disabled,Qn=ze.loading,Jn=ze.getInputElement,Zn=ze.getRawInputElement,_n=ze.open,jn=ze.defaultOpen,Un=ze.onDropdownVisibleChange,ur=ze.activeValue,qn=ze.onActiveValueChange,lr=ze.activeDescendantId,ir=ze.searchValue,er=ze.autoClearSearchValue,tr=ze.onSearch,gr=ze.onSearchSplit,mr=ze.tokenSeparators,cr=ze.allowClear,vr=ze.prefix,Cr=ze.suffixIcon,or=ze.clearIcon,dr=ze.OptionList,Gn=ze.animation,Sr=ze.transitionName,Rr=ze.dropdownStyle,Hr=ze.dropdownClassName,Er=ze.dropdownMatchSelectWidth,Ar=ze.dropdownRender,Ir=ze.dropdownAlign,Mr=ze.placement,_r=ze.builtinPlacements,fr=ze.getPopupContainer,Yn=ze.showAction,bn=Yn===void 0?[]:Yn,kn=ze.onFocus,Pn=ze.onBlur,fn=ze.onKeyUp,$n=ze.onKeyDown,Wn=ze.onMouseDown,xn=(0,Oe.Z)(ze,Ut),In=wt(Ln),Rn=(Mt!==void 0?Mt:In)||Ln==="combobox",Fn=(0,Xe.Z)({},xn);Pt.forEach(function(Or){delete Fn[Or]}),Cn==null||Cn.forEach(function(Or){delete Fn[Or]});var rr=he.useState(!1),Pr=(0,Ce.Z)(rr,2),br=Pr[0],Dr=Pr[1];he.useEffect(function(){Dr((0,We.Z)())},[]);var kr=he.useRef(null),Br=he.useRef(null),$r=he.useRef(null),Tr=he.useRef(null),Zr=he.useRef(null),ti=he.useRef(!1),ki=bt(),Fi=(0,Ce.Z)(ki,3),xi=Fi[0],mi=Fi[1],Xi=Fi[2];he.useImperativeHandle(tt,function(){var Or,xr;return{focus:(Or=Tr.current)===null||Or===void 0?void 0:Or.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:kr.current||Br.current}});var Lr=he.useMemo(function(){var Or;if(Ln!=="combobox")return ir;var xr=(Or=nn[0])===null||Or===void 0?void 0:Or.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,Ln,nn]),to=Ln==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof Zn=="function"&&Zn(),Li=(0,we.x1)(Br,ni==null||(xe=ni.props)===null||xe===void 0?void 0:xe.ref),ao=he.useState(!1),Yi=(0,Ce.Z)(ao,2),vi=Yi[0],Ai=Yi[1];(0,ft.Z)(function(){Ai(!0)},[]);var Vr=(0,Re.Z)(!1,{defaultValue:jn,value:_n}),_i=(0,Ce.Z)(Vr,2),lo=_i[0],ji=_i[1],Jr=vi?lo:!1,xo=!An&&zt;(Xn||xo&&Jr&&Ln==="combobox")&&(Jr=!1);var so=xo?!1:Jr,ar=he.useCallback(function(Or){var xr=Or!==void 0?Or:!Jr;Xn||(ji(xr),Jr!==xr&&(Un==null||Un(xr)))},[Xn,Jr,ji,Un]),yr=he.useMemo(function(){return(mr||[]).some(function(Or){return[`
`,`\r
`].includes(Or)})},[mr]),hr=he.useContext(qt)||{},pr=hr.maxCount,Nr=hr.rawValues,jr=function(xr,ci,fi){if(!(In&&ct(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Yr=!0,ri=xr;qn==null||qn(null);var Vi=Dt(xr,mr,ct(pr)?pr-Nr.size:void 0),Hi=fi?null:Vi;return Ln!=="combobox"&&Hi&&(ri="",gr==null||gr(Hi),ar(!1),Yr=!1),tr&&Lr!==ri&&tr(ri,{source:ci?"typing":"effect"}),Yr}},Wi=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};he.useEffect(function(){!Jr&&!In&&Ln!=="combobox"&&jr("",!1,!1)},[Jr]),he.useEffect(function(){lo&&Xn&&ji(!1),Xn&&!ti.current&&mi(!1)},[Xn]);var gi=st(),ui=(0,Ce.Z)(gi,2),Xr=ui[0],$i=ui[1],Qi=he.useRef(!1),Oi=function(xr){var ci=Xr(),fi=xr.key,Yr=fi==="Enter";if(Yr&&(Ln!=="combobox"&&xr.preventDefault(),Jr||ar(!0)),$i(!!Lr),fi==="Backspace"&&!ci&&In&&!Lr&&nn.length){for(var ri=(0,it.Z)(nn),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&&Wt(ri,{type:"remove",values:[Vi]})}for(var Di=arguments.length,Mi=new Array(Di>1?Di-1:0),Gi=1;Gi<Di;Gi++)Mi[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(Mi))}$n==null||$n.apply(void 0,[xr].concat(Mi))},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),fn==null||fn.apply(void 0,[xr].concat(fi))},no=function(xr){var ci=nn.filter(function(fi){return fi!==xr});Wt(ci,{type:"remove",values:[xr]})},Zi=function(){Qi.current=!1},Mo=he.useRef(!1),Za=function(){mi(!0),Xn||(kn&&!Mo.current&&kn.apply(void 0,arguments),bn.includes("focus")&&ar(!0)),Mo.current=!0},ya=function(){ti.current=!0,mi(!1,function(){Mo.current=!1,ti.current=!1,ar(!1)}),!Xn&&(Lr&&(Ln==="tags"?tr(Lr,{source:"submit"}):Ln==="multiple"&&tr("",{source:"blur"})),Pn&&Pn.apply(void 0,arguments))},qi=[];he.useEffect(function(){return function(){qi.forEach(function(Or){return clearTimeout(Or)}),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 Di=qi.indexOf(ri);if(Di!==-1&&qi.splice(Di,1),Xi(),!br&&!Yr.contains(document.activeElement)){var Mi;(Mi=Tr.current)===null||Mi===void 0||Mi.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];Wn==null||Wn.apply(void 0,[xr].concat(Hi))},zi=he.useState({}),ba=(0,Ce.Z)(zi,2),xa=ba[1];function Va(){xa({})}var Ca;ni&&(Ca=function(xr){ar(xr)}),ut(function(){var Or;return[kr.current,(Or=$r.current)===null||Or===void 0?void 0:Or.getPopupElement()]},so,ar,!!ni);var Ga=he.useMemo(function(){return(0,Xe.Z)((0,Xe.Z)({},ze),{},{notFoundContent:An,open:Jr,triggerOpen:so,id:He,showSearch:Rn,multiple:In,toggleOpen:ar})},[ze,An,so,Jr,He,Rn,In,ar]),Uo=!!Cr||Qn,Ko;Uo&&(Ko=he.createElement(Ae,{className:Se()("".concat(ke,"-arrow"),(0,ge.Z)({},"".concat(ke,"-arrow-loading"),Qn)),customizeIcon:Cr,customizeIconProps:{loading:Qn,searchValue:Lr,open:Jr,focused:xi,showSearch:Rn}}));var Co=function(){var xr;Tn==null||Tn(),(xr=Tr.current)===null||xr===void 0||xr.focus(),Wt([],{type:"clear",values:nn}),jr("",!1,!1)},Xo=Je(ke,Co,nn,cr,or,Xn,Lr,Ln),Sa=Xo.allowClear,Yo=Xo.clearIcon,Bo=he.createElement(dr,{ref:Zr}),wa=Se()(ke,Ue,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(ke,"-focused"),xi),"".concat(ke,"-multiple"),In),"".concat(ke,"-single"),!In),"".concat(ke,"-allow-clear"),cr),"".concat(ke,"-show-arrow"),Uo),"".concat(ke,"-disabled"),Xn),"".concat(ke,"-loading"),Qn),"".concat(ke,"-open"),Jr),"".concat(ke,"-customize-input"),to),"".concat(ke,"-show-search"),Rn)),To=he.createElement(ne,{ref:$r,disabled:Xn,prefixCls:ke,visible:so,popupElement:Bo,animation:Gn,transitionName:Sr,dropdownStyle:Rr,dropdownClassName:Hr,direction:hn,dropdownMatchSelectWidth:Er,dropdownRender:Ar,dropdownAlign:Ir,placement:Mr,builtinPlacements:_r,getPopupContainer:fr,empty:zt,getTriggerDOMNode:function(xr){return Br.current||xr},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},ni?he.cloneElement(ni,{ref:Li}):he.createElement(lt,(0,E.Z)({},ze,{domRef:Br,prefixCls:ke,inputElement:to,ref:Tr,id:He,prefix:vr,showSearch:Rn,autoClearSearchValue:er,mode:Ln,activeDescendantId:lr,tagRender:sn,values:nn,open:Jr,onToggleOpen:ar,activeValue:ur,searchValue:Lr,onSearch:jr,onSearchSubmit:Wi,onRemove:no,tokenWithEnter:yr,onInputBlur:Zi}))),Ci;return ni?Ci=To:Ci=he.createElement("div",(0,E.Z)({className:wa},Fn,{ref:kr,onMouseDown:uo,onKeyDown:Oi,onKeyUp:Ji,onFocus:Za,onBlur:ya}),he.createElement(Kt,{visible:xi&&!Jr,values:nn}),To,Ko,Sa&&Yo),he.createElement(ot.Provider,{value:Ga},Ci)}),dt=mt,en=function(){return null};en.isSelectOptGroup=!0;var Gt=en,Ne=function(){return null};Ne.isSelectOption=!0;var nt=Ne,Ke=re(80547),It=re(2738),Me=re(48911);function Ye(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var gt=["disabled","title","children","style","className"];function Et(ze){return typeof ze=="string"||typeof ze=="number"}var jt=function(tt,xe){var He=At(),ke=He.prefixCls,Ue=He.id,Mt=He.open,sn=He.multiple,hn=He.mode,Cn=He.searchValue,nn=He.toggleOpen,Wt=He.notFoundContent,zt=He.onPopupScroll,vn=he.useContext(qt),An=vn.maxCount,Tn=vn.flattenOptions,Ln=vn.onActiveValue,Xn=vn.defaultActiveFirstOption,Qn=vn.onSelect,Jn=vn.menuItemSelectedIcon,Zn=vn.rawValues,_n=vn.fieldNames,jn=vn.virtual,Un=vn.direction,ur=vn.listHeight,qn=vn.listItemHeight,lr=vn.optionRender,ir="".concat(ke,"-item"),er=(0,Ke.Z)(function(){return Tn},[Mt,Tn],function(Yn,bn){return bn[0]&&Yn[1]!==bn[1]}),tr=he.useRef(null),gr=he.useMemo(function(){return sn&&ct(An)&&(Zn==null?void 0:Zn.size)>=An},[sn,An,Zn==null?void 0:Zn.size]),mr=function(bn){bn.preventDefault()},cr=function(bn){var kn;(kn=tr.current)===null||kn===void 0||kn.scrollTo(typeof bn=="number"?{index:bn}:bn)},vr=he.useCallback(function(Yn){return hn==="combobox"?!1:Zn.has(Yn)},[hn,(0,it.Z)(Zn).toString(),Zn.size]),Cr=function(bn){for(var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pn=er.length,fn=0;fn<Pn;fn+=1){var $n=(bn+fn*kn+Pn)%Pn,Wn=er[$n]||{},xn=Wn.group,In=Wn.data;if(!xn&&!(In!=null&&In.disabled)&&(vr(In.value)||!gr))return $n}return-1},or=he.useState(function(){return Cr(0)}),dr=(0,Ce.Z)(or,2),Gn=dr[0],Sr=dr[1],Rr=function(bn){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Sr(bn);var Pn={source:kn?"keyboard":"mouse"},fn=er[bn];if(!fn){Ln(null,-1,Pn);return}Ln(fn.value,bn,Pn)};(0,he.useEffect)(function(){Rr(Xn!==!1?Cr(0):-1)},[er.length,Cn]);var Hr=he.useCallback(function(Yn){return hn==="combobox"?String(Yn).toLowerCase()===Cn.toLowerCase():Zn.has(Yn)},[hn,Cn,(0,it.Z)(Zn).toString(),Zn.size]);(0,he.useEffect)(function(){var Yn=setTimeout(function(){if(!sn&&Mt&&Zn.size===1){var kn=Array.from(Zn)[0],Pn=er.findIndex(function(fn){var $n=fn.data;return Cn?String($n.value).startsWith(Cn):$n.value===kn});Pn!==-1&&(Rr(Pn),cr(Pn))}});if(Mt){var bn;(bn=tr.current)===null||bn===void 0||bn.scrollTo(void 0)}return function(){return clearTimeout(Yn)}},[Mt,Cn]);var Er=function(bn){bn!==void 0&&Qn(bn,{selected:!Zn.has(bn)}),sn||nn(!1)};if(he.useImperativeHandle(xe,function(){return{onKeyDown:function(bn){var kn=bn.which,Pn=bn.ctrlKey;switch(kn){case qe.Z.N:case qe.Z.P:case qe.Z.UP:case qe.Z.DOWN:{var fn=0;if(kn===qe.Z.UP?fn=-1:kn===qe.Z.DOWN?fn=1:Ye()&&Pn&&(kn===qe.Z.N?fn=1:kn===qe.Z.P&&(fn=-1)),fn!==0){var $n=Cr(Gn+fn,fn);cr($n),Rr($n,!0)}break}case qe.Z.TAB:case qe.Z.ENTER:{var Wn,xn=er[Gn];xn&&!(xn!=null&&(Wn=xn.data)!==null&&Wn!==void 0&&Wn.disabled)&&!gr?Er(xn.value):Er(void 0),Mt&&bn.preventDefault();break}case qe.Z.ESC:nn(!1),Mt&&bn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(bn){cr(bn)}}}),er.length===0)return he.createElement("div",{role:"listbox",id:"".concat(Ue,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},Wt);var Ar=Object.keys(_n).map(function(Yn){return _n[Yn]}),Ir=function(bn){return bn.label};function Mr(Yn,bn){var kn=Yn.group;return{role:kn?"presentation":"option",id:"".concat(Ue,"_list_").concat(bn)}}var _r=function(bn){var kn=er[bn];if(!kn)return null;var Pn=kn.data||{},fn=Pn.value,$n=kn.group,Wn=(0,vt.Z)(Pn,!0),xn=Ir(kn);return kn?he.createElement("div",(0,E.Z)({"aria-label":typeof xn=="string"&&!$n?xn:null},Wn,{key:bn},Mr(kn,bn),{"aria-selected":Hr(fn)}),fn):null},fr={role:"listbox",id:"".concat(Ue,"_list")};return he.createElement(he.Fragment,null,jn&&he.createElement("div",(0,E.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),_r(Gn-1),_r(Gn),_r(Gn+1)),he.createElement(Me.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:zt,virtual:jn,direction:Un,innerProps:jn?null:fr},function(Yn,bn){var kn=Yn.group,Pn=Yn.groupOption,fn=Yn.data,$n=Yn.label,Wn=Yn.value,xn=fn.key;if(kn){var In,Rn=(In=fn.title)!==null&&In!==void 0?In:Et($n)?$n.toString():void 0;return he.createElement("div",{className:Se()(ir,"".concat(ir,"-group"),fn.className),title:Rn},$n!==void 0?$n:xn)}var Fn=fn.disabled,rr=fn.title,Pr=fn.children,br=fn.style,Dr=fn.className,kr=(0,Oe.Z)(fn,gt),Br=(0,It.Z)(kr,Ar),$r=vr(Wn),Tr=Fn||!$r&&gr,Zr="".concat(ir,"-option"),ti=Se()(ir,Zr,Dr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Zr,"-grouped"),Pn),"".concat(Zr,"-active"),Gn===bn&&!Tr),"".concat(Zr,"-disabled"),Tr),"".concat(Zr,"-selected"),$r)),ki=Ir(Yn),Fi=!Jn||typeof Jn=="function"||$r,xi=typeof ki=="number"?ki:ki||Wn,mi=Et(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),he.createElement("div",(0,E.Z)({},(0,vt.Z)(Br),jn?{}:Mr(Yn,bn),{"aria-selected":Hr(Wn),className:ti,title:mi,onMouseMove:function(){Gn===bn||Tr||Rr(bn)},onClick:function(){Tr||Er(Wn)},style:br}),he.createElement("div",{className:"".concat(Zr,"-content")},typeof lr=="function"?lr(Yn,{index:bn}):xi),he.isValidElement(Jn)||$r,Fi&&he.createElement(Ae,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:Wn,disabled:Tr,isSelected:$r}},$r?"\u2713":null))}))},ln=he.forwardRef(jt),wn=ln,Sn=function(ze,tt){var xe=he.useRef({values:new Map,options:new Map}),He=he.useMemo(function(){var Ue=xe.current,Mt=Ue.values,sn=Ue.options,hn=ze.map(function(Wt){if(Wt.label===void 0){var zt;return(0,Xe.Z)((0,Xe.Z)({},Wt),{},{label:(zt=Mt.get(Wt.value))===null||zt===void 0?void 0:zt.label})}return Wt}),Cn=new Map,nn=new Map;return hn.forEach(function(Wt){Cn.set(Wt.value,Wt),nn.set(Wt.value,tt.get(Wt.value)||sn.get(Wt.value))}),xe.current.values=Cn,xe.current.options=nn,hn},[ze,tt]),ke=he.useCallback(function(Ue){return tt.get(Ue)||xe.current.options.get(Ue)},[tt]);return[He,ke]};function rn(ze,tt){return Te(ze).join("").toUpperCase().includes(tt)}var pn=function(ze,tt,xe,He,ke){return he.useMemo(function(){if(!xe||He===!1)return ze;var Ue=tt.options,Mt=tt.label,sn=tt.value,hn=[],Cn=typeof He=="function",nn=xe.toUpperCase(),Wt=Cn?He:function(vn,An){return ke?rn(An[ke],nn):An[Ue]?rn(An[Mt!=="children"?Mt:"label"],nn):rn(An[sn],nn)},zt=Cn?function(vn){return pt(vn)}:function(vn){return vn};return ze.forEach(function(vn){if(vn[Ue]){var An=Wt(xe,zt(vn));if(An)hn.push(vn);else{var Tn=vn[Ue].filter(function(Ln){return Wt(xe,zt(Ln))});Tn.length&&hn.push((0,Xe.Z)((0,Xe.Z)({},vn),{},(0,ge.Z)({},Ue,Tn)))}return}Wt(xe,zt(vn))&&hn.push(vn)}),hn},[ze,He,ke,xe,tt])},dn=re(6551),Yt=re(11592),Rt=["children","value"],Lt=["children"];function Ct(ze){var tt=ze,xe=tt.key,He=tt.props,ke=He.children,Ue=He.value,Mt=(0,Oe.Z)(He,Rt);return(0,Xe.Z)({key:xe,value:Ue!==void 0?Ue:xe,children:ke},Mt)}function Jt(ze){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Yt.Z)(ze).map(function(xe,He){if(!he.isValidElement(xe)||!xe.type)return null;var ke=xe,Ue=ke.type.isSelectOptGroup,Mt=ke.key,sn=ke.props,hn=sn.children,Cn=(0,Oe.Z)(sn,Lt);return tt||!Ue?Ct(xe):(0,Xe.Z)((0,Xe.Z)({key:"__RC_SELECT_GRP__".concat(Mt===null?He:Mt,"__"),label:Mt},Cn),{},{options:Jt(hn)})}).filter(function(xe){return xe})}var Qt=function(tt,xe,He,ke,Ue){return he.useMemo(function(){var Mt=tt,sn=!tt;sn&&(Mt=Jt(xe));var hn=new Map,Cn=new Map,nn=function(vn,An,Tn){Tn&&typeof Tn=="string"&&vn.set(An[Tn],An)},Wt=function zt(vn){for(var An=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn<vn.length;Tn+=1){var Ln=vn[Tn];!Ln[He.options]||An?(hn.set(Ln[He.value],Ln),nn(Cn,Ln,He.label),nn(Cn,Ln,ke),nn(Cn,Ln,Ue)):zt(Ln[He.options],!0)}};return Wt(Mt),{options:Mt,valueOptions:hn,labelOptions:Cn}},[tt,xe,He,ke,Ue])},tn=Qt;function un(ze){var tt=he.useRef();tt.current=ze;var xe=he.useCallback(function(){return tt.current.apply(tt,arguments)},[]);return xe}function yn(ze){var tt=ze.mode,xe=ze.options,He=ze.children,ke=ze.backfill,Ue=ze.allowClear,Mt=ze.placeholder,sn=ze.getInputElement,hn=ze.showSearch,Cn=ze.onSearch,nn=ze.defaultOpen,Wt=ze.autoFocus,zt=ze.labelInValue,vn=ze.value,An=ze.inputValue,Tn=ze.optionLabelProp,Ln=isMultiple(tt),Xn=hn!==void 0?hn:Ln||tt==="combobox",Qn=xe||convertChildrenToData(He);if(warning(tt!=="tags"||Qn.every(function(jn){return!jn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),tt==="tags"||tt==="combobox"){var Jn=Qn.some(function(jn){return jn.options?jn.options.some(function(Un){return typeof("value"in Un?Un.value:Un.key)=="number"}):typeof("value"in jn?jn.value:jn.key)=="number"});warning(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(tt!=="combobox"||!Tn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(tt==="combobox"||!ke,"`backfill` only works with `combobox` mode."),warning(tt==="combobox"||!sn,"`getInputElement` only work with `combobox` mode."),noteOnce(tt!=="combobox"||!sn||!Ue||!Mt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Cn&&!Xn&&tt!=="combobox"&&tt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!nn||Wt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),vn!=null){var Zn=toArray(vn);warning(!zt||Zn.every(function(jn){return _typeof(jn)==="object"&&("key"in jn||"value"in jn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ln||Array.isArray(vn),"`value` should be array when `mode` is `multiple` or `tags`")}if(He){var _n=null;toNodeArray(He).some(function(jn){if(!React.isValidElement(jn)||!jn.type)return!1;var Un=jn,ur=Un.type;if(ur.isSelectOption)return!1;if(ur.isSelectOptGroup){var qn=toNodeArray(jn.props.children).every(function(lr){return!React.isValidElement(lr)||!jn.type||lr.type.isSelectOption?!0:(_n=lr.type,!1)});return!qn}return _n=ur,!0}),_n&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_n.displayName||_n.name||_n,"`.")),warning(An===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function gn(ze,tt){if(ze){var xe=function He(ke){for(var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=0;Mt<ke.length;Mt++){var sn=ke[Mt];if(sn[tt==null?void 0:tt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ue&&Array.isArray(sn[tt==null?void 0:tt.options])&&He(sn[tt==null?void 0:tt.options],!0))break}};xe(ze)}}var On=null,En=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Mn=["inputValue"];function Bn(ze){return!ze||(0,Pe.Z)(ze)!=="object"}var xt=he.forwardRef(function(ze,tt){var xe=ze.id,He=ze.mode,ke=ze.prefixCls,Ue=ke===void 0?"rc-select":ke,Mt=ze.backfill,sn=ze.fieldNames,hn=ze.inputValue,Cn=ze.searchValue,nn=ze.onSearch,Wt=ze.autoClearSearchValue,zt=Wt===void 0?!0:Wt,vn=ze.onSelect,An=ze.onDeselect,Tn=ze.dropdownMatchSelectWidth,Ln=Tn===void 0?!0:Tn,Xn=ze.filterOption,Qn=ze.filterSort,Jn=ze.optionFilterProp,Zn=ze.optionLabelProp,_n=ze.options,jn=ze.optionRender,Un=ze.children,ur=ze.defaultActiveFirstOption,qn=ze.menuItemSelectedIcon,lr=ze.virtual,ir=ze.direction,er=ze.listHeight,tr=er===void 0?200:er,gr=ze.listItemHeight,mr=gr===void 0?20:gr,cr=ze.labelRender,vr=ze.value,Cr=ze.defaultValue,or=ze.labelInValue,dr=ze.onChange,Gn=ze.maxCount,Sr=(0,Oe.Z)(ze,En),Rr=(0,dn.ZP)(xe),Hr=wt(He),Er=!!(!_n&&Un),Ar=he.useMemo(function(){return Xn===void 0&&He==="combobox"?!1:Xn},[Xn,He]),Ir=he.useMemo(function(){return Ie(sn,Er)},[JSON.stringify(sn),Er]),Mr=(0,Re.Z)("",{value:Cn!==void 0?Cn:hn,postState:function(yr){return yr||""}}),_r=(0,Ce.Z)(Mr,2),fr=_r[0],Yn=_r[1],bn=tn(_n,Un,Ir,Jn,Zn),kn=bn.valueOptions,Pn=bn.labelOptions,fn=bn.options,$n=he.useCallback(function(ar){var yr=Te(ar);return yr.map(function(hr){var pr,Nr,jr,Wi,gi;if(Bn(hr))pr=hr;else{var ui;jr=hr.key,Nr=hr.label,pr=(ui=hr.value)!==null&&ui!==void 0?ui:jr}var Xr=kn.get(pr);if(Xr){var $i;if(Nr===void 0&&(Nr=Xr==null?void 0:Xr[Zn||Ir.label]),jr===void 0&&(jr=($i=Xr==null?void 0:Xr.key)!==null&&$i!==void 0?$i:pr),Wi=Xr==null?void 0:Xr.disabled,gi=Xr==null?void 0:Xr.title,0)var Qi}return{label:Nr,value:pr,key:jr,disabled:Wi,title:gi}})},[Ir,Zn,kn]),Wn=(0,Re.Z)(Cr,{value:vr}),xn=(0,Ce.Z)(Wn,2),In=xn[0],Rn=xn[1],Fn=he.useMemo(function(){var ar,yr=Hr&&In===null?[]:In,hr=$n(yr);return He==="combobox"&&ce((ar=hr[0])===null||ar===void 0?void 0:ar.value)?[]:hr},[In,$n,He,Hr]),rr=Sn(Fn,kn),Pr=(0,Ce.Z)(rr,2),br=Pr[0],Dr=Pr[1],kr=he.useMemo(function(){if(!He&&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,Xe.Z)((0,Xe.Z)({},yr),{},{label:(hr=typeof cr=="function"?cr(yr):yr.label)!==null&&hr!==void 0?hr:yr.value})})},[He,br,cr]),Br=he.useMemo(function(){return new Set(br.map(function(ar){return ar.value}))},[br]);he.useEffect(function(){if(He==="combobox"){var ar,yr=(ar=br[0])===null||ar===void 0?void 0:ar.value;Yn(me(yr)?String(yr):"")}},[br]);var $r=un(function(ar,yr){var hr=yr!=null?yr:ar;return(0,ge.Z)((0,ge.Z)({},Ir.value,ar),Ir.label,hr)}),Tr=he.useMemo(function(){if(He!=="tags")return fn;var ar=(0,it.Z)(fn),yr=function(pr){return kn.has(pr)};return(0,it.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,fn,kn,br,He]),Zr=pn(Tr,Ir,fr,Ar,Jn),ti=he.useMemo(function(){return He!=="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,it.Z)(Zr))},[$r,Jn,He,Zr,fr,Ir]),ki=function ar(yr){var hr=(0,it.Z)(yr).sort(function(pr,Nr){return Qn(pr,Nr,{searchValue:fr})});return hr.map(function(pr){return Array.isArray(pr.options)?(0,Xe.Z)((0,Xe.Z)({},pr),{},{options:pr.options.length>0?ar(pr.options):pr.options}):pr})},Fi=he.useMemo(function(){return Qn?ki(ti):ti},[ti,Qn,fr]),xi=he.useMemo(function(){return Ve(Fi,{fieldNames:Ir,childrenAsData:Er})},[Fi,Ir,Er]),mi=function(yr){var hr=$n(yr);if(Rn(hr),dr&&(hr.length!==br.length||hr.some(function(jr,Wi){var gi;return((gi=br[Wi])===null||gi===void 0?void 0:gi.value)!==(jr==null?void 0:jr.value)}))){var pr=or?hr:hr.map(function(jr){return jr.value}),Nr=hr.map(function(jr){return pt(Dr(jr.value))});dr(Hr?pr:pr[0],Hr?Nr:Nr[0])}},Xi=he.useState(null),Lr=(0,Ce.Z)(Xi,2),to=Lr[0],ni=Lr[1],Li=he.useState(0),ao=(0,Ce.Z)(Li,2),Yi=ao[0],vi=ao[1],Ai=ur!==void 0?ur:He!=="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),Mt&&He==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[Mt,He]),_i=function(yr,hr,pr){var Nr=function(){var no,Zi=Dr(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,pt(Zi)]};if(hr&&vn){var jr=Nr(),Wi=(0,Ce.Z)(jr,2),gi=Wi[0],ui=Wi[1];vn(gi,ui)}else if(!hr&&An&&pr!=="clear"){var Xr=Nr(),$i=(0,Ce.Z)(Xr,2),Qi=$i[0],Oi=$i[1];An(Qi,Oi)}},lo=un(function(ar,yr){var hr,pr=Hr?yr.selected:!0;pr?hr=Hr?[].concat((0,it.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),_i(ar,pr),He==="combobox"?ni(""):(!wt||zt)&&(Yn(""),ni(""))}),ji=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(jr){_i(jr.value,!1,pr)})},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,it.Z)(Br),[pr])));mi(Nr),_i(pr,!0),Yn("")}return}hr.source!=="blur"&&(He==="combobox"&&mi(yr),nn==null||nn(yr))},xo=function(yr){var hr=yr;He!=="tags"&&(hr=yr.map(function(Nr){var jr=Pn.get(Nr);return jr==null?void 0:jr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,it.Z)(Br),(0,it.Z)(hr))));mi(pr),pr.forEach(function(Nr){_i(Nr,!0)})},so=he.useMemo(function(){var ar=lr!==!1&&Ln!==!1;return(0,Xe.Z)((0,Xe.Z)({},bn),{},{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:jn})},[Gn,bn,xi,Vr,Ai,lo,qn,Br,Ir,lr,Ln,ir,tr,mr,Er,jn]);return he.createElement(qt.Provider,{value:so},he.createElement(dt,(0,E.Z)({},Sr,{id:Rr,prefixCls:Ue,ref:tt,omitDomProps:Mn,mode:He,displayValues:kr,onDisplayValuesChange:ji,direction:ir,searchValue:fr,onSearch:Jr,autoClearSearchValue:zt,onSearchSplit:xo,dropdownMatchSelectWidth:Ln,OptionList:wn,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Yi)})))}),$t=xt;$t.Option=nt,$t.OptGroup=Gt;var cn=$t,an=cn},22711:function(on,Vt,re){"use strict";re.r(Vt),re.d(Vt,{ResizableTextArea:function(){return Be},default:function(){return Qe}});var E=re(54476),it=re(20068),ge=re(33885),Xe=re(94480),Ce=re(42978),Oe=re(75931),Pe=re(92310),Re=re.n(Pe),Ee=re(36901),he=re(66003),et=re(30292),Se=re(18929),ft=re(59301),We=re(76190),we=re(29301),Le=re(34280),Ae=re(16089),Je=`
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;
`,ot=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],At={},bt;function st(Te){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(De&&At[ht])return At[ht];var me=window.getComputedStyle(Te),ce=me.getPropertyValue("box-sizing")||me.getPropertyValue("-moz-box-sizing")||me.getPropertyValue("-webkit-box-sizing"),Ze=parseFloat(me.getPropertyValue("padding-bottom"))+parseFloat(me.getPropertyValue("padding-top")),Tt=parseFloat(me.getPropertyValue("border-bottom-width"))+parseFloat(me.getPropertyValue("border-top-width")),St=ot.map(function($e){return"".concat($e,":").concat(me.getPropertyValue($e))}).join(";"),ve={sizingStyle:St,paddingSize:Ze,borderSize:Tt,boxSizing:ce};return De&&ht&&(At[ht]=ve),ve}function ut(Te){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bt||(bt=document.createElement("textarea"),bt.setAttribute("tab-index","-1"),bt.setAttribute("aria-hidden","true"),bt.setAttribute("name","hiddenTextarea"),document.body.appendChild(bt)),Te.getAttribute("wrap")?bt.setAttribute("wrap",Te.getAttribute("wrap")):bt.removeAttribute("wrap");var ce=st(Te,De),Ze=ce.paddingSize,Tt=ce.borderSize,St=ce.boxSizing,ve=ce.sizingStyle;bt.setAttribute("style","".concat(ve,";").concat(Je)),bt.value=Te.value||Te.placeholder||"";var $e=void 0,je=void 0,Ft,Bt=bt.scrollHeight;if(St==="border-box"?Bt+=Tt:St==="content-box"&&(Bt-=Ze),ht!==null||me!==null){bt.value=" ";var Ht=bt.scrollHeight-Ze;ht!==null&&($e=Ht*ht,St==="border-box"&&($e=$e+Ze+Tt),Bt=Math.max($e,Bt)),me!==null&&(je=Ht*me,St==="border-box"&&(je=je+Ze+Tt),Ft=Bt>je?"":"hidden",Bt=Math.min(je,Bt))}var Fe={height:Bt,overflowY:Ft,resize:"none"};return $e&&(Fe.minHeight=$e),je&&(Fe.maxHeight=je),Fe}var qe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Nt=0,vt=1,at=2,kt=ft.forwardRef(function(Te,De){var ht=Te,me=ht.prefixCls,ce=ht.defaultValue,Ze=ht.value,Tt=ht.autoSize,St=ht.onResize,ve=ht.className,$e=ht.style,je=ht.disabled,Ft=ht.onChange,Bt=ht.onInternalAutoSize,Ht=(0,Oe.Z)(ht,qe),Fe=(0,Se.Z)(ce,{value:Ze,postState:function(nt){return nt!=null?nt:""}}),_t=(0,Ce.Z)(Fe,2),lt=_t[0],ae=_t[1],te=function(nt){ae(nt.target.value),Ft==null||Ft(nt)},ee=ft.useRef();ft.useImperativeHandle(De,function(){return{textArea:ee.current}});var oe=ft.useMemo(function(){return Tt&&(0,We.Z)(Tt)==="object"?[Tt.minRows,Tt.maxRows]:[]},[Tt]),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],be=!!Tt,ct=function(){try{if(document.activeElement===ee.current){var nt=ee.current,Ke=nt.selectionStart,It=nt.selectionEnd,Me=nt.scrollTop;ee.current.setSelectionRange(Ke,It),ee.current.scrollTop=Me}}catch(Ye){}},Ie=ft.useState(at),Ve=(0,Ce.Z)(Ie,2),pt=Ve[0],Dt=Ve[1],Ot=ft.useState(),qt=(0,Ce.Z)(Ot,2),Kt=qt[0],Ut=qt[1],Pt=function(){Dt(Nt)};(0,Le.Z)(function(){be&&Pt()},[Ze,ne,pe,be]),(0,Le.Z)(function(){if(pt===Nt)Dt(vt);else if(pt===vt){var Ne=ut(ee.current,!1,ne,pe);Dt(at),Ut(Ne)}else ct()},[pt]);var wt=ft.useRef(),mt=function(){Ae.Z.cancel(wt.current)},dt=function(nt){pt===at&&(St==null||St(nt),Tt&&(mt(),wt.current=(0,Ae.Z)(function(){Pt()})))};ft.useEffect(function(){return mt},[]);var en=be?Kt:null,Gt=(0,ge.Z)((0,ge.Z)({},$e),en);return(pt===Nt||pt===vt)&&(Gt.overflowY="hidden",Gt.overflowX="hidden"),ft.createElement(we.Z,{onResize:dt,disabled:!(Tt||St)},ft.createElement("textarea",(0,E.Z)({},Ht,{ref:ee,style:Gt,className:Re()(me,ve,(0,it.Z)({},"".concat(me,"-disabled"),je)),disabled:je,value:lt,onChange:te})))}),Be=kt,Ge=["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=ft.forwardRef(function(Te,De){var ht,me=Te.defaultValue,ce=Te.value,Ze=Te.onFocus,Tt=Te.onBlur,St=Te.onChange,ve=Te.allowClear,$e=Te.maxLength,je=Te.onCompositionStart,Ft=Te.onCompositionEnd,Bt=Te.suffix,Ht=Te.prefixCls,Fe=Ht===void 0?"rc-textarea":Ht,_t=Te.showCount,lt=Te.count,ae=Te.className,te=Te.style,ee=Te.disabled,oe=Te.hidden,se=Te.classNames,ne=Te.styles,pe=Te.onResize,be=Te.onClear,ct=Te.onPressEnter,Ie=Te.readOnly,Ve=Te.autoSize,pt=Te.onKeyDown,Dt=(0,Oe.Z)(Te,Ge),Ot=(0,Se.Z)(me,{value:ce,defaultValue:me}),qt=(0,Ce.Z)(Ot,2),Kt=qt[0],Ut=qt[1],Pt=Kt==null?"":String(Kt),wt=ft.useState(!1),mt=(0,Ce.Z)(wt,2),dt=mt[0],en=mt[1],Gt=ft.useRef(!1),Ne=ft.useState(null),nt=(0,Ce.Z)(Ne,2),Ke=nt[0],It=nt[1],Me=(0,ft.useRef)(null),Ye=(0,ft.useRef)(null),gt=function(){var $t;return($t=Ye.current)===null||$t===void 0?void 0:$t.textArea},Et=function(){gt().focus()};(0,ft.useImperativeHandle)(De,function(){var xt;return{resizableTextArea:Ye.current,focus:Et,blur:function(){gt().blur()},nativeElement:((xt=Me.current)===null||xt===void 0?void 0:xt.nativeElement)||gt()}}),(0,ft.useEffect)(function(){en(function(xt){return!ee&&xt})},[ee]);var jt=ft.useState(null),ln=(0,Ce.Z)(jt,2),wn=ln[0],Sn=ln[1];ft.useEffect(function(){if(wn){var xt;(xt=gt()).setSelectionRange.apply(xt,(0,Xe.Z)(wn))}},[wn]);var rn=(0,he.Z)(lt,_t),pn=(ht=rn.max)!==null&&ht!==void 0?ht:$e,dn=Number(pn)>0,Yt=rn.strategy(Pt),Rt=!!pn&&Yt>pn,Lt=function($t,cn){var an=cn;!Gt.current&&rn.exceedFormatter&&rn.max&&rn.strategy(cn)>rn.max&&(an=rn.exceedFormatter(cn,{max:rn.max}),cn!==an&&Sn([gt().selectionStart||0,gt().selectionEnd||0])),Ut(an),(0,et.rJ)($t.currentTarget,$t,St,an)},Ct=function($t){Gt.current=!0,je==null||je($t)},Jt=function($t){Gt.current=!1,Lt($t,$t.currentTarget.value),Ft==null||Ft($t)},Qt=function($t){Lt($t,$t.target.value)},tn=function($t){$t.key==="Enter"&&ct&&ct($t),pt==null||pt($t)},un=function($t){en(!0),Ze==null||Ze($t)},yn=function($t){en(!1),Tt==null||Tt($t)},gn=function($t){Ut(""),Et(),(0,et.rJ)(gt(),$t,St)},On=Bt,En;rn.show&&(rn.showFormatter?En=rn.showFormatter({value:Pt,count:Yt,maxLength:pn}):En="".concat(Yt).concat(dn?" / ".concat(pn):""),On=ft.createElement(ft.Fragment,null,On,ft.createElement("span",{className:Re()("".concat(Fe,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},En)));var Mn=function($t){var cn;pe==null||pe($t),(cn=gt())!==null&&cn!==void 0&&cn.style.height&&It(!0)},Bn=!Ve&&!_t&&!ve;return ft.createElement(Ee.BaseInput,{ref:Me,value:Pt,allowClear:ve,handleReset:gn,suffix:On,prefixCls:Fe,classNames:(0,ge.Z)((0,ge.Z)({},se),{},{affixWrapper:Re()(se==null?void 0:se.affixWrapper,(0,it.Z)((0,it.Z)({},"".concat(Fe,"-show-count"),_t),"".concat(Fe,"-textarea-allow-clear"),ve))}),disabled:ee,focused:dt,className:Re()(ae,Rt&&"".concat(Fe,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),Ke&&!Bn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof En=="string"?En:void 0}},hidden:oe,readOnly:Ie,onClear:be},ft.createElement(Be,(0,E.Z)({},Dt,{autoSize:Ve,maxLength:$e,onKeyDown:tn,onChange:Qt,onFocus:un,onBlur:yn,onCompositionStart:Ct,onCompositionEnd:Jt,className:Re()(se==null?void 0:se.textarea),style:(0,ge.Z)((0,ge.Z)({},ne==null?void 0:ne.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:Fe,onResize:Mn,ref:Ye,readOnly:Ie})))}),ue=_e,Qe=ue},48911:function(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return lt}});var E=re(54476),it=re(76190),ge=re(33885),Xe=re(20068),Ce=re(42978),Oe=re(75931),Pe=re(92310),Re=re.n(Pe),Ee=re(29301),he=re(70425),et=re(34280),Se=re(59301),ft=re(4676),We=Se.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,be=ae.onInnerResize,ct=ae.innerProps,Ie=ae.rtl,Ve=ae.extra,pt={},Dt={display:"flex",flexDirection:"column"};return oe!==void 0&&(pt={height:ee,position:"relative",overflow:"hidden"},Dt=(0,ge.Z)((0,ge.Z)({},Dt),{},(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({transform:"translateY(".concat(oe,"px)")},Ie?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Se.createElement("div",{style:pt},Se.createElement(Ee.Z,{onResize:function(qt){var Kt=qt.offsetHeight;Kt&&be&&be()}},Se.createElement("div",(0,E.Z)({style:Dt,className:Re()((0,Xe.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},ct),ne,Ve)))});We.displayName="Filler";var we=We;function Le(ae){var te=ae.children,ee=ae.setRef,oe=Se.useCallback(function(se){ee(se)},[]);return Se.cloneElement(te,{ref:oe})}function Ae(ae,te,ee,oe,se,ne,pe,be){var ct=be.getKey;return ae.slice(te,ee+1).map(function(Ie,Ve){var pt=te+Ve,Dt=pe(Ie,pt,{style:{width:oe},offsetX:se}),Ot=ct(Ie);return Se.createElement(Le,{key:Ot,setRef:function(Kt){return ne(Ie,Kt)}},Dt)})}function Je(ae,te,ee,oe){var se=ee-ae,ne=te-ee,pe=Math.min(se,ne)*2;if(oe<=pe){var be=Math.floor(oe/2);return oe%2?ee+be+1:ee-be}return se>ne?ee-(oe-ne):ee+(oe-se)}function ot(ae,te,ee){var oe=ae.length,se=te.length,ne,pe;if(oe===0&&se===0)return null;oe<se?(ne=ae,pe=te):(ne=te,pe=ae);var be={__EMPTY_ITEM__:!0};function ct(qt){return qt!==void 0?ee(qt):be}for(var Ie=null,Ve=Math.abs(oe-se)!==1,pt=0;pt<pe.length;pt+=1){var Dt=ct(ne[pt]),Ot=ct(pe[pt]);if(Dt!==Ot){Ie=pt,Ve=Ve||Dt!==ct(pe[pt+1]);break}}return Ie===null?null:{index:Ie,multiple:Ve}}function At(ae,te,ee){var oe=Se.useState(ae),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],be=Se.useState(null),ct=(0,Ce.Z)(be,2),Ie=ct[0],Ve=ct[1];return Se.useEffect(function(){var pt=ot(ne||[],ae||[],te);(pt==null?void 0:pt.index)!==void 0&&(ee==null||ee(pt.index),Ve(ae[pt.index])),pe(ae)},[ae]),[Ie]}var bt=re(16089),st=(typeof navigator=="undefined"?"undefined":(0,it.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ut=st,qe=function(ae,te,ee,oe){var se=(0,Se.useRef)(!1),ne=(0,Se.useRef)(null);function pe(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var be=(0,Se.useRef)({top:ae,bottom:te,left:ee,right:oe});return be.current.top=ae,be.current.bottom=te,be.current.left=ee,be.current.right=oe,function(ct,Ie){var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pt=ct?Ie<0&&be.current.left||Ie>0&&be.current.right:Ie<0&&be.current.top||Ie>0&&be.current.bottom;return Ve&&pt?(clearTimeout(ne.current),se.current=!1):(!pt||se.current)&&pe(),!se.current&&pt}};function Nt(ae,te,ee,oe,se,ne,pe){var be=(0,Se.useRef)(0),ct=(0,Se.useRef)(null),Ie=(0,Se.useRef)(null),Ve=(0,Se.useRef)(!1),pt=qe(te,ee,oe,se);function Dt(wt,mt){if(bt.Z.cancel(ct.current),!pt(!1,mt)){var dt=wt;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;be.current+=mt,Ie.current=mt,ut||dt.preventDefault(),ct.current=(0,bt.Z)(function(){var en=Ve.current?10:1;pe(be.current*en,!1),be.current=0})}}function Ot(wt,mt){pe(mt,!0),ut||wt.preventDefault()}var qt=(0,Se.useRef)(null),Kt=(0,Se.useRef)(null);function Ut(wt){if(ae){bt.Z.cancel(Kt.current),Kt.current=(0,bt.Z)(function(){qt.current=null},2);var mt=wt.deltaX,dt=wt.deltaY,en=wt.shiftKey,Gt=mt,Ne=dt;(qt.current==="sx"||!qt.current&&en&&dt&&!mt)&&(Gt=dt,Ne=0,qt.current="sx");var nt=Math.abs(Gt),Ke=Math.abs(Ne);qt.current===null&&(qt.current=ne&&nt>Ke?"x":"y"),qt.current==="y"?Dt(wt,Ne):Ot(wt,Gt)}}function Pt(wt){ae&&(Ve.current=wt.detail===Ie.current)}return[Ut,Pt]}function vt(ae,te,ee,oe){var se=Se.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Ce.Z)(se,2),pe=ne[0],be=ne[1],ct=function(Ve){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,Dt=pe.get(Ve),Ot=pe.get(pt);if(Dt===void 0||Ot===void 0)for(var qt=ae.length,Kt=be.length;Kt<qt;Kt+=1){var Ut,Pt=ae[Kt],wt=te(Pt);pe.set(wt,Kt);var mt=(Ut=ee.get(wt))!==null&&Ut!==void 0?Ut:oe;if(be[Kt]=(be[Kt-1]||0)+mt,wt===Ve&&(Dt=Kt),wt===pt&&(Ot=Kt),Dt!==void 0&&Ot!==void 0)break}return{top:be[Dt-1]||0,bottom:be[Ot]}};return ct}var at=re(67732),kt=re(83652),Be=function(){function ae(){(0,at.Z)(this,ae),(0,Xe.Z)(this,"maps",void 0),(0,Xe.Z)(this,"id",0),(0,Xe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,kt.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}(),Ge=Be;function _e(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function ue(ae,te,ee){var oe=Se.useState(0),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],be=(0,Se.useRef)(new Map),ct=(0,Se.useRef)(new Ge),Ie=(0,Se.useRef)(0);function Ve(){Ie.current+=1}function pt(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ve();var qt=function(){var Pt=!1;be.current.forEach(function(wt,mt){if(wt&&wt.offsetParent){var dt=wt.offsetHeight,en=getComputedStyle(wt),Gt=en.marginTop,Ne=en.marginBottom,nt=_e(Gt),Ke=_e(Ne),It=dt+nt+Ke;ct.current.get(mt)!==It&&(ct.current.set(mt,It),Pt=!0)}}),Pt&&pe(function(wt){return wt+1})};if(Ot)qt();else{Ie.current+=1;var Kt=Ie.current;Promise.resolve().then(function(){Kt===Ie.current&&qt()})}}function Dt(Ot,qt){var Kt=ae(Ot),Ut=be.current.get(Kt);qt?(be.current.set(Kt,qt),pt()):be.current.delete(Kt),!Ut!=!qt&&(qt?te==null||te(Ot):ee==null||ee(Ot))}return(0,Se.useEffect)(function(){return Ve},[]),[Dt,pt,ct.current,ne]}var Qe=14/15;function Te(ae,te,ee){var oe=(0,Se.useRef)(!1),se=(0,Se.useRef)(0),ne=(0,Se.useRef)(0),pe=(0,Se.useRef)(null),be=(0,Se.useRef)(null),ct,Ie=function(Ot){if(oe.current){var qt=Math.ceil(Ot.touches[0].pageX),Kt=Math.ceil(Ot.touches[0].pageY),Ut=se.current-qt,Pt=ne.current-Kt,wt=Math.abs(Ut)>Math.abs(Pt);wt?se.current=qt:ne.current=Kt;var mt=ee(wt,wt?Ut:Pt,!1,Ot);mt&&Ot.preventDefault(),clearInterval(be.current),mt&&(be.current=setInterval(function(){wt?Ut*=Qe:Pt*=Qe;var dt=Math.floor(wt?Ut:Pt);(!ee(wt,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(be.current)},16))}},Ve=function(){oe.current=!1,ct()},pt=function(Ot){ct(),Ot.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(Ot.touches[0].pageX),ne.current=Math.ceil(Ot.touches[0].pageY),pe.current=Ot.target,pe.current.addEventListener("touchmove",Ie,{passive:!1}),pe.current.addEventListener("touchend",Ve,{passive:!0}))};ct=function(){pe.current&&(pe.current.removeEventListener("touchmove",Ie),pe.current.removeEventListener("touchend",Ve))},(0,et.Z)(function(){return ae&&te.current.addEventListener("touchstart",pt,{passive:!0}),function(){var Dt;(Dt=te.current)===null||Dt===void 0||Dt.removeEventListener("touchstart",pt),ct(),clearInterval(be.current)}},[ae])}function De(ae){return Math.floor(Math.pow(ae,.5))}function ht(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){Se.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,pe,be=function(){bt.Z.cancel(ne)},ct=function Dt(){be(),ne=(0,bt.Z)(function(){ee(pe),Dt()})},Ie=function(){se=!1,be()},Ve=function(Ot){if(!(Ot.target.draggable||Ot.button!==0)){var qt=Ot;qt._virtualHandled||(qt._virtualHandled=!0,se=!0)}},pt=function(Ot){if(se){var qt=ht(Ot,!1),Kt=oe.getBoundingClientRect(),Ut=Kt.top,Pt=Kt.bottom;if(qt<=Ut){var wt=Ut-qt;pe=-De(wt),ct()}else if(qt>=Pt){var mt=qt-Pt;pe=De(mt),ct()}else be()}};return oe.addEventListener("mousedown",Ve),oe.ownerDocument.addEventListener("mouseup",Ie),oe.ownerDocument.addEventListener("mousemove",pt),oe.ownerDocument.addEventListener("dragend",Ie),function(){oe.removeEventListener("mousedown",Ve),oe.ownerDocument.removeEventListener("mouseup",Ie),oe.ownerDocument.removeEventListener("mousemove",pt),oe.ownerDocument.removeEventListener("dragend",Ie),be()}}},[ae])}var ce=10;function Ze(ae,te,ee,oe,se,ne,pe,be){var ct=Se.useRef(),Ie=Se.useState(null),Ve=(0,Ce.Z)(Ie,2),pt=Ve[0],Dt=Ve[1];return(0,et.Z)(function(){if(pt&&pt.times<ce){if(!ae.current){Dt(function(rn){return(0,ge.Z)({},rn)});return}ne();var Ot=pt.targetAlign,qt=pt.originAlign,Kt=pt.index,Ut=pt.offset,Pt=ae.current.clientHeight,wt=!1,mt=Ot,dt=null;if(Pt){for(var en=Ot||qt,Gt=0,Ne=0,nt=0,Ke=Math.min(te.length-1,Kt),It=0;It<=Ke;It+=1){var Me=se(te[It]);Ne=Gt;var Ye=ee.get(Me);nt=Ne+(Ye===void 0?oe:Ye),Gt=nt}for(var gt=en==="top"?Ut:Pt-Ut,Et=Ke;Et>=0;Et-=1){var jt=se(te[Et]),ln=ee.get(jt);if(ln===void 0){wt=!0;break}if(gt-=ln,gt<=0)break}switch(en){case"top":dt=Ne-Ut;break;case"bottom":dt=nt-Pt+Ut;break;default:{var wn=ae.current.scrollTop,Sn=wn+Pt;Ne<wn?mt="top":nt>Sn&&(mt="bottom")}}dt!==null&&pe(dt),dt!==pt.lastTop&&(wt=!0)}wt&&Dt((0,ge.Z)((0,ge.Z)({},pt),{},{times:pt.times+1,targetAlign:mt,lastTop:dt}))}},[pt,ae.current]),function(Ot){if(Ot==null){be();return}if(bt.Z.cancel(ct.current),typeof Ot=="number")pe(Ot);else if(Ot&&(0,it.Z)(Ot)==="object"){var qt,Kt=Ot.align;"index"in Ot?qt=Ot.index:qt=te.findIndex(function(wt){return se(wt)===Ot.key});var Ut=Ot.offset,Pt=Ut===void 0?0:Ut;Dt({times:0,index:qt,offset:Pt,originAlign:Kt})}}}var Tt=Se.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,be=ae.onStopMove,ct=ae.onScroll,Ie=ae.horizontal,Ve=ae.spinSize,pt=ae.containerSize,Dt=ae.style,Ot=ae.thumbStyle,qt=ae.showScrollBar,Kt=Se.useState(!1),Ut=(0,Ce.Z)(Kt,2),Pt=Ut[0],wt=Ut[1],mt=Se.useState(null),dt=(0,Ce.Z)(mt,2),en=dt[0],Gt=dt[1],Ne=Se.useState(null),nt=(0,Ce.Z)(Ne,2),Ke=nt[0],It=nt[1],Me=!oe,Ye=Se.useRef(),gt=Se.useRef(),Et=Se.useState(qt),jt=(0,Ce.Z)(Et,2),ln=jt[0],wn=jt[1],Sn=Se.useRef(),rn=function(){qt===!0||qt===!1||(clearTimeout(Sn.current),wn(!0),Sn.current=setTimeout(function(){wn(!1)},3e3))},pn=ne-pt||0,dn=pt-Ve||0,Yt=Se.useMemo(function(){if(se===0||pn===0)return 0;var gn=se/pn;return gn*dn},[se,pn,dn]),Rt=function(On){On.stopPropagation(),On.preventDefault()},Lt=Se.useRef({top:Yt,dragging:Pt,pageY:en,startTop:Ke});Lt.current={top:Yt,dragging:Pt,pageY:en,startTop:Ke};var Ct=function(On){wt(!0),Gt(ht(On,Ie)),It(Lt.current.top),pe(),On.stopPropagation(),On.preventDefault()};Se.useEffect(function(){var gn=function(Bn){Bn.preventDefault()},On=Ye.current,En=gt.current;return On.addEventListener("touchstart",gn,{passive:!1}),En.addEventListener("touchstart",Ct,{passive:!1}),function(){On.removeEventListener("touchstart",gn),En.removeEventListener("touchstart",Ct)}},[]);var Jt=Se.useRef();Jt.current=pn;var Qt=Se.useRef();Qt.current=dn,Se.useEffect(function(){if(Pt){var gn,On=function(Bn){var xt=Lt.current,$t=xt.dragging,cn=xt.pageY,an=xt.startTop;bt.Z.cancel(gn);var ze=Ye.current.getBoundingClientRect(),tt=pt/(Ie?ze.width:ze.height);if($t){var xe=(ht(Bn,Ie)-cn)*tt,He=an;!Me&&Ie?He-=xe:He+=xe;var ke=Jt.current,Ue=Qt.current,Mt=Ue?He/Ue:0,sn=Math.ceil(Mt*ke);sn=Math.max(sn,0),sn=Math.min(sn,ke),gn=(0,bt.Z)(function(){ct(sn,Ie)})}},En=function(){wt(!1),be()};return window.addEventListener("mousemove",On,{passive:!0}),window.addEventListener("touchmove",On,{passive:!0}),window.addEventListener("mouseup",En,{passive:!0}),window.addEventListener("touchend",En,{passive:!0}),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",En),window.removeEventListener("touchend",En),bt.Z.cancel(gn)}}},[Pt]),Se.useEffect(function(){return rn(),function(){clearTimeout(Sn.current)}},[se]),Se.useImperativeHandle(te,function(){return{delayHidden:rn}});var tn="".concat(ee,"-scrollbar"),un={position:"absolute",visibility:ln?null:"hidden"},yn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ie?(Object.assign(un,{height:8,left:0,right:0,bottom:0}),Object.assign(yn,(0,Xe.Z)({height:"100%",width:Ve},Me?"left":"right",Yt))):(Object.assign(un,(0,Xe.Z)({width:8,top:0,bottom:0},Me?"right":"left",0)),Object.assign(yn,{width:"100%",height:Ve,top:Yt})),Se.createElement("div",{ref:Ye,className:Re()(tn,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},"".concat(tn,"-horizontal"),Ie),"".concat(tn,"-vertical"),!Ie),"".concat(tn,"-visible"),ln)),style:(0,ge.Z)((0,ge.Z)({},un),Dt),onMouseDown:Rt,onMouseMove:rn},Se.createElement("div",{ref:gt,className:Re()("".concat(tn,"-thumb"),(0,Xe.Z)({},"".concat(tn,"-thumb-moving"),Pt)),style:(0,ge.Z)((0,ge.Z)({},yn),Ot),onMouseDown:Ct}))}),St=Tt,ve=20;function $e(){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 je=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ft=[],Bt={overflowY:"auto",overflowAnchor:"none"};function Ht(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,pe=ae.itemHeight,be=ae.fullHeight,ct=be===void 0?!0:be,Ie=ae.style,Ve=ae.data,pt=ae.children,Dt=ae.itemKey,Ot=ae.virtual,qt=ae.direction,Kt=ae.scrollWidth,Ut=ae.component,Pt=Ut===void 0?"div":Ut,wt=ae.onScroll,mt=ae.onVirtualScroll,dt=ae.onVisibleChange,en=ae.innerProps,Gt=ae.extraRender,Ne=ae.styles,nt=ae.showScrollBar,Ke=nt===void 0?"optional":nt,It=(0,Oe.Z)(ae,je),Me=Se.useCallback(function(bn){return typeof Dt=="function"?Dt(bn):bn==null?void 0:bn[Dt]},[Dt]),Ye=ue(Me,null,null),gt=(0,Ce.Z)(Ye,4),Et=gt[0],jt=gt[1],ln=gt[2],wn=gt[3],Sn=!!(Ot!==!1&&ne&&pe),rn=Se.useMemo(function(){return Object.values(ln.maps).reduce(function(bn,kn){return bn+kn},0)},[ln.id,ln.maps]),pn=Sn&&Ve&&(Math.max(pe*Ve.length,rn)>ne||!!Kt),dn=qt==="rtl",Yt=Re()(oe,(0,Xe.Z)({},"".concat(oe,"-rtl"),dn),se),Rt=Ve||Ft,Lt=(0,Se.useRef)(),Ct=(0,Se.useRef)(),Jt=(0,Se.useRef)(),Qt=(0,Se.useState)(0),tn=(0,Ce.Z)(Qt,2),un=tn[0],yn=tn[1],gn=(0,Se.useState)(0),On=(0,Ce.Z)(gn,2),En=On[0],Mn=On[1],Bn=(0,Se.useState)(!1),xt=(0,Ce.Z)(Bn,2),$t=xt[0],cn=xt[1],an=function(){cn(!0)},ze=function(){cn(!1)},tt={getKey:Me};function xe(bn){yn(function(kn){var Pn;typeof bn=="function"?Pn=bn(kn):Pn=bn;var fn=ur(Pn);return Lt.current.scrollTop=fn,fn})}var He=(0,Se.useRef)({start:0,end:Rt.length}),ke=(0,Se.useRef)(),Ue=At(Rt,Me),Mt=(0,Ce.Z)(Ue,1),sn=Mt[0];ke.current=sn;var hn=Se.useMemo(function(){if(!Sn)return{scrollHeight:void 0,start:0,end:Rt.length-1,offset:void 0};if(!pn){var bn;return{scrollHeight:((bn=Ct.current)===null||bn===void 0?void 0:bn.offsetHeight)||0,start:0,end:Rt.length-1,offset:void 0}}for(var kn=0,Pn,fn,$n,Wn=Rt.length,xn=0;xn<Wn;xn+=1){var In=Rt[xn],Rn=Me(In),Fn=ln.get(Rn),rr=kn+(Fn===void 0?pe:Fn);rr>=un&&Pn===void 0&&(Pn=xn,fn=kn),rr>un+ne&&$n===void 0&&($n=xn),kn=rr}return Pn===void 0&&(Pn=0,fn=0,$n=Math.ceil(ne/pe)),$n===void 0&&($n=Rt.length-1),$n=Math.min($n+1,Rt.length-1),{scrollHeight:kn,start:Pn,end:$n,offset:fn}},[pn,Sn,un,Rt,wn,ne]),Cn=hn.scrollHeight,nn=hn.start,Wt=hn.end,zt=hn.offset;He.current.start=nn,He.current.end=Wt,Se.useLayoutEffect(function(){var bn=ln.getRecord();if(bn.size===1){var kn=Array.from(bn.keys())[0],Pn=bn.get(kn),fn=Rt[nn];if(fn&&Pn===void 0){var $n=Me(fn);if($n===kn){var Wn=ln.get(kn),xn=Wn-pe;xe(function(In){return In+xn})}}}ln.resetRecord()},[Cn]);var vn=Se.useState({width:0,height:ne}),An=(0,Ce.Z)(vn,2),Tn=An[0],Ln=An[1],Xn=function(kn){Ln({width:kn.offsetWidth,height:kn.offsetHeight})},Qn=(0,Se.useRef)(),Jn=(0,Se.useRef)(),Zn=Se.useMemo(function(){return $e(Tn.width,Kt)},[Tn.width,Kt]),_n=Se.useMemo(function(){return $e(Tn.height,Cn)},[Tn.height,Cn]),jn=Cn-ne,Un=(0,Se.useRef)(jn);Un.current=jn;function ur(bn){var kn=bn;return Number.isNaN(Un.current)||(kn=Math.min(kn,Un.current)),kn=Math.max(kn,0),kn}var qn=un<=0,lr=un>=jn,ir=En<=0,er=En>=Kt,tr=qe(qn,lr,ir,er),gr=function(){return{x:dn?-En:En,y:un}},mr=(0,Se.useRef)(gr()),cr=(0,he.zX)(function(bn){if(mt){var kn=(0,ge.Z)((0,ge.Z)({},gr()),bn);(mr.current.x!==kn.x||mr.current.y!==kn.y)&&(mt(kn),mr.current=kn)}});function vr(bn,kn){var Pn=bn;kn?((0,ft.flushSync)(function(){Mn(Pn)}),cr()):xe(Pn)}function Cr(bn){var kn=bn.currentTarget.scrollTop;kn!==un&&xe(kn),wt==null||wt(bn),cr()}var or=function(kn){var Pn=kn,fn=Kt?Kt-Tn.width:0;return Pn=Math.max(Pn,0),Pn=Math.min(Pn,fn),Pn},dr=(0,he.zX)(function(bn,kn){kn?((0,ft.flushSync)(function(){Mn(function(Pn){var fn=Pn+(dn?-bn:bn);return or(fn)})}),cr()):xe(function(Pn){var fn=Pn+bn;return fn})}),Gn=Nt(Sn,qn,lr,ir,er,!!Kt,dr),Sr=(0,Ce.Z)(Gn,2),Rr=Sr[0],Hr=Sr[1];Te(Sn,Lt,function(bn,kn,Pn,fn){var $n=fn;return tr(bn,kn,Pn)?!1:!$n||!$n._virtualHandled?($n&&($n._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:bn?kn:0,deltaY:bn?0:kn}),!0):!1}),me(pn,Lt,function(bn){xe(function(kn){return kn+bn})}),(0,et.Z)(function(){function bn(Pn){var fn=qn&&Pn.detail<0,$n=lr&&Pn.detail>0;Sn&&!fn&&!$n&&Pn.preventDefault()}var kn=Lt.current;return kn.addEventListener("wheel",Rr,{passive:!1}),kn.addEventListener("DOMMouseScroll",Hr,{passive:!0}),kn.addEventListener("MozMousePixelScroll",bn,{passive:!1}),function(){kn.removeEventListener("wheel",Rr),kn.removeEventListener("DOMMouseScroll",Hr),kn.removeEventListener("MozMousePixelScroll",bn)}},[Sn,qn,lr]),(0,et.Z)(function(){if(Kt){var bn=or(En);Mn(bn),cr({x:bn})}},[Tn.width,Kt]);var Er=function(){var kn,Pn;(kn=Qn.current)===null||kn===void 0||kn.delayHidden(),(Pn=Jn.current)===null||Pn===void 0||Pn.delayHidden()},Ar=Ze(Lt,Rt,ln,pe,Me,function(){return jt(!0)},xe,Er);Se.useImperativeHandle(te,function(){return{nativeElement:Jt.current,getScrollInfo:gr,scrollTo:function(kn){function Pn(fn){return fn&&(0,it.Z)(fn)==="object"&&("left"in fn||"top"in fn)}Pn(kn)?(kn.left!==void 0&&Mn(or(kn.left)),Ar(kn.top)):Ar(kn)}}}),(0,et.Z)(function(){if(dt){var bn=Rt.slice(nn,Wt+1);dt(bn,Rt)}},[nn,Wt,Rt]);var Ir=vt(Rt,Me,ln,pe),Mr=Gt==null?void 0:Gt({start:nn,end:Wt,virtual:pn,offsetX:En,offsetY:zt,rtl:dn,getSize:Ir}),_r=Ae(Rt,nn,Wt,Kt,En,Et,pt,tt),fr=null;ne&&(fr=(0,ge.Z)((0,Xe.Z)({},ct?"height":"maxHeight",ne),Bt),Sn&&(fr.overflowY="hidden",Kt&&(fr.overflowX="hidden"),$t&&(fr.pointerEvents="none")));var Yn={};return dn&&(Yn.dir="rtl"),Se.createElement("div",(0,E.Z)({ref:Jt,style:(0,ge.Z)((0,ge.Z)({},Ie),{},{position:"relative"}),className:Yt},Yn,It),Se.createElement(Ee.Z,{onResize:Xn},Se.createElement(Pt,{className:"".concat(oe,"-holder"),style:fr,ref:Lt,onScroll:Cr,onMouseEnter:Er},Se.createElement(we,{prefixCls:oe,height:Cn,offsetX:En,offsetY:zt,scrollWidth:Kt,onInnerResize:jt,ref:Ct,innerProps:en,rtl:dn,extra:Mr},_r))),pn&&Cn>ne&&Se.createElement(St,{ref:Qn,prefixCls:oe,scrollOffset:un,scrollRange:Cn,rtl:dn,onScroll:vr,onStartMove:an,onStopMove:ze,spinSize:_n,containerSize:Tn.height,style:Ne==null?void 0:Ne.verticalScrollBar,thumbStyle:Ne==null?void 0:Ne.verticalScrollBarThumb,showScrollBar:Ke}),pn&&Kt>Tn.width&&Se.createElement(St,{ref:Jn,prefixCls:oe,scrollOffset:En,scrollRange:Kt,rtl:dn,onScroll:vr,onStartMove:an,onStopMove:ze,spinSize:Zn,containerSize:Tn.width,horizontal:!0,style:Ne==null?void 0:Ne.horizontalScrollBar,thumbStyle:Ne==null?void 0:Ne.horizontalScrollBarThumb,showScrollBar:Ke}))}var Fe=Se.forwardRef(Ht);Fe.displayName="List";var _t=Fe,lt=_t},51581:function(on,Vt,re){"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});var E=function(){function Se(ft,We){for(var we=0;we<We.length;we++){var Le=We[we];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(ft,Le.key,Le)}}return function(ft,We,we){return We&&Se(ft.prototype,We),we&&Se(ft,we),ft}}(),it=re(59301),ge=Oe(it),Xe=re(12708),Ce=Oe(Xe);function Oe(Se){return Se&&Se.__esModule?Se:{default:Se}}function Pe(Se,ft){var We={};for(var we in Se)ft.indexOf(we)>=0||Object.prototype.hasOwnProperty.call(Se,we)&&(We[we]=Se[we]);return We}function Re(Se,ft){if(!(Se instanceof ft))throw new TypeError("Cannot call a class as a function")}function Ee(Se,ft){if(!Se)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ft&&(typeof ft=="object"||typeof ft=="function")?ft:Se}function he(Se,ft){if(typeof ft!="function"&&ft!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ft);Se.prototype=Object.create(ft&&ft.prototype,{constructor:{value:Se,enumerable:!1,writable:!0,configurable:!0}}),ft&&(Object.setPrototypeOf?Object.setPrototypeOf(Se,ft):Se.__proto__=ft)}var et=function(Se){he(ft,Se);function ft(We){Re(this,ft);var we=Ee(this,(ft.__proto__||Object.getPrototypeOf(ft)).call(this,We));return we.scrollListener=we.scrollListener.bind(we),we.eventListenerOptions=we.eventListenerOptions.bind(we),we.mousewheelListener=we.mousewheelListener.bind(we),we}return E(ft,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var we=this.getParentElement(this.scrollComponent);we.scrollTop=we.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var we=!1,Le={get passive(){we=!0}};try{document.addEventListener("test",null,Le),document.removeEventListener("test",null,Le)}catch(Ae){}return we}},{key:"eventListenerOptions",value:function(){var we=this.props.useCapture;return this.isPassiveSupported()&&(we={useCapture:this.props.useCapture,passive:!0}),we}},{key:"setDefaultLoader",value:function(we){this.defaultLoader=we}},{key:"detachMousewheelListener",value:function(){var we=window;this.props.useWindow===!1&&(we=this.scrollComponent.parentNode),we.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var we=window;this.props.useWindow===!1&&(we=this.getParentElement(this.scrollComponent)),we.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),we.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(we){var Le=this.props.getScrollParent&&this.props.getScrollParent();return Le!=null?Le:we&&we.parentNode}},{key:"filterProps",value:function(we){return we}},{key:"attachScrollListener",value:function(){var we=this.getParentElement(this.scrollComponent);if(!(!this.props.hasMore||!we)){var Le=window;this.props.useWindow===!1&&(Le=we),Le.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),Le.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),Le.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(we){we.deltaY===1&&!this.isPassiveSupported()&&we.preventDefault()}},{key:"scrollListener",value:function(){var we=this.scrollComponent,Le=window,Ae=this.getParentElement(we),Je=void 0;if(this.props.useWindow){var ot=document.documentElement||document.body.parentNode||document.body,At=Le.pageYOffset!==void 0?Le.pageYOffset:ot.scrollTop;this.props.isReverse?Je=At:Je=this.calculateOffset(we,At)}else this.props.isReverse?Je=Ae.scrollTop:Je=we.scrollHeight-Ae.scrollTop-Ae.clientHeight;Je<Number(this.props.threshold)&&we&&we.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=Ae.scrollHeight,this.beforeScrollTop=Ae.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(we,Le){return we?this.calculateTopPosition(we)+(we.offsetHeight-Le-window.innerHeight):0}},{key:"calculateTopPosition",value:function(we){return we?we.offsetTop+this.calculateTopPosition(we.offsetParent):0}},{key:"render",value:function(){var we=this,Le=this.filterProps(this.props),Ae=Le.children,Je=Le.element,ot=Le.hasMore,At=Le.initialLoad,bt=Le.isReverse,st=Le.loader,ut=Le.loadMore,qe=Le.pageStart,Nt=Le.ref,vt=Le.threshold,at=Le.useCapture,kt=Le.useWindow,Be=Le.getScrollParent,Ge=Pe(Le,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);Ge.ref=function(ue){we.scrollComponent=ue,Nt&&Nt(ue)};var _e=[Ae];return ot&&(st?bt?_e.unshift(st):_e.push(st):this.defaultLoader&&(bt?_e.unshift(this.defaultLoader):_e.push(this.defaultLoader))),ge.default.createElement(Je,Ge,_e)}}]),ft}(it.Component);et.propTypes={children:Ce.default.node.isRequired,element:Ce.default.node,hasMore:Ce.default.bool,initialLoad:Ce.default.bool,isReverse:Ce.default.bool,loader:Ce.default.node,loadMore:Ce.default.func.isRequired,pageStart:Ce.default.number,ref:Ce.default.func,getScrollParent:Ce.default.func,threshold:Ce.default.number,useCapture:Ce.default.bool,useWindow:Ce.default.bool},et.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},Vt.default=et,on.exports=Vt.default},26724:function(on,Vt,re){on.exports=re(51581)},93314:function(on){"use strict";on.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(on,Vt,re){"use strict";re.d(Vt,{Z:function(){return Re}});const E=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,it=(Ee,he)=>(!he||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",ge=(Ee,he)=>{if(Ee.clientHeight<Ee.scrollHeight||Ee.clientWidth<Ee.scrollWidth){const et=getComputedStyle(Ee,null);return it(et.overflowY,he)||it(et.overflowX,he)||(Se=>{const ft=(We=>{if(!We.ownerDocument||!We.ownerDocument.defaultView)return null;try{return We.ownerDocument.defaultView.frameElement}catch(we){return null}})(Se);return!!ft&&(ft.clientHeight<Se.scrollHeight||ft.clientWidth<Se.scrollWidth)})(Ee)}return!1},Xe=(Ee,he,et,Se,ft,We,we,Le)=>We<Ee&&we>he||We>Ee&&we<he?0:We<=Ee&&Le<=et||we>=he&&Le>=et?We-Ee-Se:we>he&&Le<et||We<Ee&&Le>et?we-he+ft:0,Ce=Ee=>{const he=Ee.parentElement;return he==null?Ee.getRootNode().host||null:he},Oe=(Ee,he)=>{var et,Se,ft,We;if(typeof document=="undefined")return[];const{scrollMode:we,block:Le,inline:Ae,boundary:Je,skipOverflowHiddenElements:ot}=he,At=typeof Je=="function"?Je:St=>St!==Je;if(!E(Ee))throw new TypeError("Invalid target");const bt=document.scrollingElement||document.documentElement,st=[];let ut=Ee;for(;E(ut)&&At(ut);){if(ut=Ce(ut),ut===bt){st.push(ut);break}ut!=null&&ut===document.body&&ge(ut)&&!ge(document.documentElement)||ut!=null&&ge(ut,ot)&&st.push(ut)}const qe=(Se=(et=window.visualViewport)==null?void 0:et.width)!=null?Se:innerWidth,Nt=(We=(ft=window.visualViewport)==null?void 0:ft.height)!=null?We:innerHeight,{scrollX:vt,scrollY:at}=window,{height:kt,width:Be,top:Ge,right:_e,bottom:ue,left:Qe}=Ee.getBoundingClientRect(),{top:Te,right:De,bottom:ht,left:me}=(St=>{const ve=window.getComputedStyle(St);return{top:parseFloat(ve.scrollMarginTop)||0,right:parseFloat(ve.scrollMarginRight)||0,bottom:parseFloat(ve.scrollMarginBottom)||0,left:parseFloat(ve.scrollMarginLeft)||0}})(Ee);let ce=Le==="start"||Le==="nearest"?Ge-Te:Le==="end"?ue+ht:Ge+kt/2-Te+ht,Ze=Ae==="center"?Qe+Be/2-me+De:Ae==="end"?_e+De:Qe-me;const Tt=[];for(let St=0;St<st.length;St++){const ve=st[St],{height:$e,width:je,top:Ft,right:Bt,bottom:Ht,left:Fe}=ve.getBoundingClientRect();if(we==="if-needed"&&Ge>=0&&Qe>=0&&ue<=Nt&&_e<=qe&&(ve===bt&&!ge(ve)||Ge>=Ft&&ue<=Ht&&Qe>=Fe&&_e<=Bt))return Tt;const _t=getComputedStyle(ve),lt=parseInt(_t.borderLeftWidth,10),ae=parseInt(_t.borderTopWidth,10),te=parseInt(_t.borderRightWidth,10),ee=parseInt(_t.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in ve?ve.offsetWidth-ve.clientWidth-lt-te:0,pe="offsetHeight"in ve?ve.offsetHeight-ve.clientHeight-ae-ee:0,be="offsetWidth"in ve?ve.offsetWidth===0?0:je/ve.offsetWidth:0,ct="offsetHeight"in ve?ve.offsetHeight===0?0:$e/ve.offsetHeight:0;if(bt===ve)oe=Le==="start"?ce:Le==="end"?ce-Nt:Le==="nearest"?Xe(at,at+Nt,Nt,ae,ee,at+ce,at+ce+kt,kt):ce-Nt/2,se=Ae==="start"?Ze:Ae==="center"?Ze-qe/2:Ae==="end"?Ze-qe:Xe(vt,vt+qe,qe,lt,te,vt+Ze,vt+Ze+Be,Be),oe=Math.max(0,oe+at),se=Math.max(0,se+vt);else{oe=Le==="start"?ce-Ft-ae:Le==="end"?ce-Ht+ee+pe:Le==="nearest"?Xe(Ft,Ht,$e,ae,ee+pe,ce,ce+kt,kt):ce-(Ft+$e/2)+pe/2,se=Ae==="start"?Ze-Fe-lt:Ae==="center"?Ze-(Fe+je/2)+ne/2:Ae==="end"?Ze-Bt+te+ne:Xe(Fe,Bt,je,lt,te+ne,Ze,Ze+Be,Be);const{scrollLeft:Ie,scrollTop:Ve}=ve;oe=ct===0?0:Math.max(0,Math.min(Ve+oe/ct,ve.scrollHeight-$e/ct+pe)),se=be===0?0:Math.max(0,Math.min(Ie+se/be,ve.scrollWidth-je/be+ne)),ce+=Ve-oe,Ze+=Ie-se}Tt.push({el:ve,top:oe,left:se})}return Tt},Pe=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function Re(Ee,he){if(!Ee.isConnected||!(ft=>{let We=ft;for(;We&&We.parentNode;){if(We.parentNode===document)return!0;We=We.parentNode instanceof ShadowRoot?We.parentNode.host:We.parentNode}return!1})(Ee))return;const et=(ft=>{const We=window.getComputedStyle(ft);return{top:parseFloat(We.scrollMarginTop)||0,right:parseFloat(We.scrollMarginRight)||0,bottom:parseFloat(We.scrollMarginBottom)||0,left:parseFloat(We.scrollMarginLeft)||0}})(Ee);if((ft=>typeof ft=="object"&&typeof ft.behavior=="function")(he))return he.behavior(Oe(Ee,he));const Se=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:ft,top:We,left:we}of Oe(Ee,Pe(he))){const Le=We-et.top+et.bottom,Ae=we-et.left+et.right;ft.scroll({top:Le,left:Ae,behavior:Se})}}}}]);