|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7043],{40001:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},49198:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},73331:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},15277:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},33853:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},32134:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},61485:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},47472:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},87395:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(54476),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(he,Ze){return Ve.createElement(Ce.Z,(0,E.Z)({},he,{ref:Ze,icon:Je}))},Oe=Ve.forwardRef(be),$e=Oe},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(nn,jt){"use strict";jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},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 nn={},jt="5.0",ie={},E=null,Ve=!1,ge=!1,Je=null,Ce=!1,be=null,Oe=null,$e=0;$e<arguments.length;$e++){var De=arguments[$e];if(De!==null)switch(typeof De){case"number":jt=De.toFixed(1);break;case"string":De.match(new RegExp("^[0-9]\\.[0-9]+$"))?jt=De:Je=De;break;case"object":typeof De.is3D!="undefined"?E=De:ie=De;break;case"boolean":Ve=De,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},ie.material_id!==void 0&&!ge&&(Ve=!0)),Je!==null&&ie.id===void 0&&(ie.id=Je);var he="",Ze="",Ee=!1,mt=null,Qe=null,Me=null,Ne=!1,Ae=null,ft=null,xt=null,It=null,pt=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var Re=function(Ie){return parseFloat(Ie)>4?parseFloat(Ie):5};nn.setHTML5Codebase=function(Ie,Xe){Oe=Ie,rt(Ie,Xe)},nn.setJavaCodebase=nn.setJavaCodebaseVersion=nn.isCompiledInstalled=nn.setPreCompiledScriptPath=nn.setPreCompiledResourcePath=function(){},nn.setHTML5CodebaseVersion=function(Ie,Xe){var qe=parseFloat(Ie);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}be=Ie,ue(Ie,Xe)},nn.getHTML5CodebaseVersion=function(){return Qe},nn.getParameters=function(){return ie},nn.setFontsCSSURL=function(Ie){It=Ie},nn.setGiacJSURL=function(Ie){},nn.setJNLPFile=function(Ie){he=Ie},nn.setJNLPBaseDir=function(Ie){},nn.inject=function(){function Ie(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",qe=ie.id,en,Ft=!1,_t=0;_t<arguments.length;_t++){var je=arguments[_t];typeof je=="string"?(je=je.toLowerCase(),je.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=je:qe=arguments[_t]):typeof je=="boolean"?Ft=je:je instanceof HTMLElement&&(en=je)}Ht();function Ht(){if(!Ce){setTimeout(Ht,200);return}Xe=bt(Xe);var gt=en||document.getElementById(qe);if(!gt){console.log("possibly bug on ajax loading? ");return}if(nn.removeExistingApplet(gt,!1),ie.width===void 0&>.clientWidth&&(ie.width=gt.clientWidth),ie.height===void 0&>.clientHeight&&(ie.height=gt.clientHeight),!(ie.width&&ie.height)&&Xe==="html5"&&(delete ie.width,delete ie.height),mt=Xe,Xe==="screenshot")nt(gt,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!lt()||Ie())&&Ke()),ae?(mt="screenshot",Et(gt,ie,Ft,Xe)):it(gt,ie,Ft)}}};function lt(){try{return window.self!==window.top}catch(Ie){return!0}}function Ke(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}nn.getViews=function(){return E},nn.isJavaInstalled=function(){return!1};var Ot=function(Ie){var Xe=function(_t){var je=JSON.parse(_t),Ht=function(te){return te.type=="G"||te.type=="E"},gt=je.elements?je.elements.filter(Ht)[0]:je;if(!gt||!gt.url){qe();return}ie.fileName=gt.url,at(gt.settings||{}),E.is3D=!0;var ae="https://www.geogebra.org/images/";nn.setPreviewImage(Ae||gt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Ie()},qe=function(){ie.onError&&ie.onError(),Nt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},en=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ft="/materials/"+ie.material_id+"?scope=basic";Ue("https://"+en+"/api/proxy.php?path="+encodeURIComponent(Ft),Xe,qe)};function at(Ie){var Xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){Ie[qe]=!!Ie[qe]}),Xe.forEach(function(qe){ie[qe]===void 0&&Ie[qe]!==void 0&&(ie[qe]=Ie[qe])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function Ue(Ie,Xe,qe){var en=new XMLHttpRequest;en.open("GET",Ie),en.onload=function(){Xe(en.responseText)},en.onerror=qe,en.send()}nn.isHTML5Installed=function(){return!0},nn.getLoadedAppletType=function(){return mt},nn.setPreviewImage=function(Ie,Xe,qe){Ae=Ie,ft=Xe,xt=qe},nn.removeExistingApplet=function(Ie,Xe){var qe;typeof Ie=="string"&&(Ie=document.getElementById(Ie)),mt=null;var en=null;for(qe=0;qe<Ie.childNodes.length;qe++){var Ft=Ie.childNodes[qe],_t=Ft.className;_t==="applet_screenshot"?Xe?(Ft.style.display="block",mt="screenshot"):Ft.style.display="none":_t!=="applet_scaler prerender"&&(Ie.removeChild(Ft),en=_t&&_t.indexOf("appletParameters")!=-1?Ft.id:null,qe--)}var je=ie.id!==void 0?ie.id:en,Ht=window[je];Ht&&typeof Ht.getBase64=="function"&&(Ht.remove(),window[je]=null)},nn.refreshHitPoints=function(){if(Re(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ie=nn.getAppletObject();return Ie&&typeof Ie.recalculateEnvironments=="function"?(Ie.recalculateEnvironments(),!0):!1},nn.startAnimation=function(){var Ie=nn.getAppletObject();return Ie&&typeof Ie.startAnimation=="function"?(Ie.startAnimation(),!0):!1},nn.stopAnimation=function(){var Ie=nn.getAppletObject();return Ie&&typeof Ie.stopAnimation=="function"?(Ie.stopAnimation(),!0):!1},nn.getAppletObject=function(){var Ie=ie.id!==void 0?ie.id:"ggbApplet";return window[Ie]},nn.resize=function(){};var Ct=function(Ie,Xe,qe){var en=document.createElement("param");en.setAttribute("name",Xe),en.setAttribute("value",qe),Ie.appendChild(en)},He=function(Ie){return Ie&&Ie!=="false"},it=function(Ie,Xe,qe){Re(Qe)<=4.2&&(qe=!0);var en=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Qe||ggbHTML5LoadedCodebaseIsWebSimple&&!Ne)&&(en=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ft=document.createElement("div");Ft.classList.add("appletParameters","notranslate");var _t=Xe.width,je=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(Re(Qe)<=4.4)He(Xe.showToolBar)&&(Xe.height-=7),He(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&He(Xe.showToolBar)&&(Xe.width=605,_t=605);else{var Ht=100;(He(Xe.showToolBar)||He(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),Ht=He(Xe.showMenuBar)?245:155),_t<Ht&&(Xe.width=Ht,_t=Ht)}Ft.style.border="none",Ft.style.display="inline-block";for(var gt in Xe)Xe.hasOwnProperty(gt)&>!=="appletOnLoad"&&Ft.setAttribute("data-param-"+gt,Xe[gt]);It&&Ft.setAttribute("data-param-fontscssurl",It),nn.resize=function(){GGBAppletUtils.responsiveResize(Ie,Xe)},window.addEventListener("resize",function(Pt){nn.resize()});var ae=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!qe&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||Ft.setAttribute("data-param-showSplash","false");var te=Ie.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=Le(_t,je,Xe.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=_t+"px",te.style.height=je+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),Re(Qe)>=5?(Xe.appletOnLoad=function(Pt){var St=Ie.querySelector(".ggb_preview");St&&St.parentNode.removeChild(St),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Pt)},ee||te.appendChild(oe)):Ft.appendChild(oe),te.appendChild(Ft),ee||Ie.appendChild(te),setTimeout(function(){nn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Ft),Ie.appendChild(se),Xe.appletOnLoad=function(Pt){nn.resize(),ae(Pt)}}function ne(Pt,St){St&&typeof St.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pt,St.appletOnLoad):renderGGBElement(Pt),Nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",St)}function pe(Pt,St){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pt,params:St}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xe){ne(xe.article,xe.params)}),html5AppletsToProcess=null)},Re(Qe)<5&&(Pt.className+=" geogebraweb")):ne(Pt,St)}if(en){scriptLoadStarted=!0;for(var ye=0;ye<Ft.childNodes.length;ye++){var ct=Ft.childNodes[ye].tagName;ct==="TABLE"&&(Ft.removeChild(Ft.childNodes[ye]),ye--)}if(ggbHTML5LoadedScript!==null){var Pe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pe!=null&&Pe.parentNode.removeChild(Pe)}var Ge=document.createElement("script"),dt=function(){pe(Ft,Xe)};Ge.src=Ze+Me,ggbHTML5LoadedCodebaseIsWebSimple=Ne,ggbHTML5LoadedCodebaseVersion=Qe,ggbHTML5LoadedScript=Ge.src,Nt("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",Xe),!Oe&&(!be||be=="5.0")?(Ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dt()):Ze.requirejs?__webpack_require__.e(2667).then(function(){var Pt=[__webpack_require__(72667)];dt.apply(null,Pt)}.bind(this)).catch(__webpack_require__.oe):(Ge.onload=dt,Ie.appendChild(Ge))}else pe(Ft,Xe);Xe.height=je,Xe.width=_t},nt=function(Ie,Xe,qe){var en=Le(Xe.width,Xe.height,Xe.borderColor,qe),Ft=document.createElement("div");Ft.style.position="relative",Ft.style.display="block",Ft.style.width=Xe.width+"px",Ft.style.height=Xe.height+"px",Ft.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),Ft.appendChild(en);var _t=GGBAppletUtils.getScale(Xe,Ie,qe);qe?(Ie.appendChild(ke()),window.GGBT_wsf_view||(Ie.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),Ie.appendChild(Ft),_t!==1&&!isNaN(_t)&&(GGBAppletUtils.scaleElement(Ft,_t),Ft.style.width=Xe.width+"px",Ft.style.height=Xe.height+"px",Ft.parentNode.style.width=Xe.width*_t+"px",Ft.parentNode.style.height=Xe.height*_t+"px"),nn.resize=function(){de(Ie,en,Ft,qe)},window.addEventListener("resize",function(je){nn.resize()}),nn.resize()};function de(Ie,Xe,qe,en){if(Ie.contains(Xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ie)}var Ft=GGBAppletUtils.getScale(ie,Ie,en);qe.parentNode!==null&&(!isNaN(Ft)&&Ft!==1?(GGBAppletUtils.scaleElement(qe,Ft),qe.parentNode.style.width=ie.width*Ft+"px",qe.parentNode.style.height=ie.height*Ft+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=ie.width+"px",qe.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ie),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}nn.onExitFullscreen=function(Ie,Xe){Xe.appendChild(Ie)};var Et=function(Ie,Xe,qe,en){nt(Ie,Xe,!0);for(var Ft=function(){var Ht=[];for(je=0;je<Ie.childNodes.length;je++)Ht.push(Ie.childNodes[je]);if(window.GGBT_wsf_view){var gt=window.GGBT_wsf_view.renderFullScreen(Ie,Xe.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(Ie).find(".fullscreencontent");te.length>0?(gt.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):it(gt,Xe,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else mt=en,it(Ie,Xe,!1);if(!window.GGBT_wsf_view)for(je=0;je<Ht.length;je++)Ie.removeChild(Ht[je])},_t=Ie.getElementsByClassName("ggb_preview_play"),je=0;je<_t.length;je++)_t[je].addEventListener("click",Ft,!1),_t[je].addEventListener("ontouchstart",Ft,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ie),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ke=function(){var Ie=document.createElement("div");if(Ie.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xe='.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");}',qe=document.createElement("style");qe.styleSheet?qe.styleSheet.cssText=Xe:qe.appendChild(document.createTextNode(Xe)),document.getElementsByTagName("head")[0].appendChild(qe)}return Ie},Le=function(Ie,Xe,qe,en){var Ft=document.createElement("div");Ft.className="ggb_preview",Ft.style.position="absolute",Ft.style.zIndex="90",Ft.style.width=Ie-2+"px",Ft.style.height=Xe-2+"px",Ft.style.top="0px",Ft.style.left="0px",Ft.style.overflow="hidden",Ft.style.backgroundColor="white";var _t="lightgrey";qe!==void 0&&(qe==="none"?_t="transparent":_t=qe),Ft.style.border="1px solid "+_t;var je=document.createElement("img");if(je.style.position="relative",je.style.zIndex="1000",je.style.top="-1px",je.style.left="-1px",Ae!==null&&je.setAttribute("src",Ae),je.style.opacity=.7,ft!==null){var Ht,gt,ae;if(!en){Ht=document.createElement("img"),Ht.style.position="absolute",Ht.style.zIndex="1001",Ht.style.opacity=1,je.style.opacity=.3,gt=360,gt>Ie/4*3&&(gt=Ie/4*3),ae=gt/5.8,Ht.setAttribute("src",ft),Ht.setAttribute("width",gt),Ht.setAttribute("height",ae);var te=(Ie-gt)/2,ee=(Xe-ae)/2;Ht.style.left=te+"px",Ht.style.top=ee+"px",Ft.appendChild(Ht)}}return Ft.appendChild(je),Ft},bt=function(Ie){return Ie=Ie.toLowerCase(),Ie==="html5"||Ie==="screenshot"?Ie:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ue=function(Ie,Xe){if(Qe=Ie,Xe){rt(Qe,!0);return}var qe=!Ve;if(qe){var en=Re(Qe);!isNaN(en)&&en<4.4&&(qe=!1)}var Ft,_t;window.location.protocol.substr(0,4)==="http"?Ft=window.location.protocol:Ft="http:";var je=Qe.indexOf("//");je>0?_t=Qe:je===0?_t=Ft+Qe:_t="https://www.geogebra.org/apps/5.2.814.0/";for(var Ht in ve)if(Qe.slice(ve[Ht].length*-1)===ve[Ht]||Qe.slice((ve[Ht].length+1)*-1)===ve[Ht]+"/"){rt(_t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!He(ie.showToolBar)&&!He(ie.showMenuBar)&&!He(ie.showAlgebraInput)&&!He(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?_t+="webSimple/":_t+="web3d/",rt(_t,!1)},rt=function(Ie,Xe){if(Ie.requirejs){Ze=Ie;return}Ie.slice(-1)!=="/"&&(Ie+="/"),Ze=Ie,Xe===null&&(Xe=Ie.indexOf("http")===-1),Ee=Xe,Me="web.nocache.js",Ne=!1;var qe=Ze.split("/");qe.length>1&&(!Xe&&qe[qe.length-2]==="webSimple"?(Me="webSimple.nocache.js",Ne=!0):ve.indexOf(qe[qe.length-2])>=0&&(Me=qe[qe.length-2]+".nocache.js")),qe=Ie.split("/"),Qe=qe[qe.length-3],Qe.substr(0,4)==="test"?Qe=Qe.substr(4,1)+"."+Qe.substr(5,1):(Qe.substr(0,3)==="war"||Qe.substr(0,4)==="beta")&&(Qe="5.0");var en=parseFloat(Qe);en!==NaN&&en<5&&Ie.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+en+" is deprecated. Using version latest instead."),ue("5.0",Xe))},Nt=function(Ie,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log(Ie)};ie.material_id!==void 0?Ot(yt):yt();function yt(){var Ie=jt;be!==null?Ie=be:parseFloat(Ie)<5&&(Ie="5.0"),ue(Ie,!1),Oe!==null&&rt(Oe,Ee),Ce=!0}return nn},GGBAppletUtils=function(){"use strict";function nn(){return window.GGBT_wsf_edit!==void 0}function jt(Ce,be){be!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+be+","+be+")",Ce.style.webkitTransform="scale("+be+","+be+")",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 ie(Ce,be,Oe,$e,De,he){var Ze=null;if(he!=null&&he!="")for(var Ee=Ce.parentNode;Ee!=null;)if((" "+Ee.className+" ").indexOf(" "+he+" ")>-1){Ze=Ee;break}else Ee=Ee.parentNode;var mt=0,Qe=0,Me=0,Ne=0,Ae=0,ft=0,xt=0;if(Ze)mt=Ze.offsetWidth,Qe=Math.max($e?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(mt=Math.min(window.innerWidth,document.documentElement.clientWidth),Qe=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=mt):(mt=window.innerWidth,Qe=window.innerHeight,Me=window.innerWidth),Ce){var It=Ce.getBoundingClientRect();It.left>0&&It.left<=mt&&(De===void 0||!De)&&(document.dir==="rtl"?(Ae=mt-It.width-It.left,ft=Me<=480?10:30):(ft=It.left,Ae=Me<=480?10:30),Ne=ft+Ae)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pt=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne=40,xt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne=0,xt=40)}}return Ce&&((Oe===void 0||!Oe)&&be>0&&be+Ne<mt?mt=be:mt-=Ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Oe===void 0||!Oe)&&(Qe-=xt)),{width:mt,height:Qe}}function E(Ce,be,Oe,$e,De){if(Ce.isScreenshoGenerator)return 1;var he=$e!==void 0&&$e,Ze=Ce.noScaleMargin!=null&&Ce.noScaleMargin,Ee=function(pt){return pt&&pt!=="false"},mt=Ee(Ce.autoHeight),Qe=ie(be,Ce.width,Oe,mt,he&&window.GGBT_wsf_view||Ze,De),Me=parseInt(Qe.width),Ne=Ce.width,Ae=Ce.height;if(Ne===void 0){var ft=be.querySelector(".appletParameters");ft&&(Ne=ft.offsetWidth,Ae=ft.offsetHeight)}var xt=Me/Ne,It=he?1:Qe.height/Ae;return Oe!==void 0&&!Oe&&(xt=Math.min(1,xt),It=Math.min(1,It)),Math.min(xt,It)}function Ve(Ce,be,Oe){var $e=1,De,he=!1;if(Ce.hasOwnProperty("allowUpscale")&&(he=Ce.allowUpscale),Ce.hasOwnProperty("scale")&&($e=parseFloat(Ce.scale),(isNaN($e)||$e===null||$e===0)&&($e=1),$e>1&&(he=!0)),be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))De=E(Ce,be,he,Oe,Ce.scaleContainerClass);else return $e;return he&&(!Ce.hasOwnProperty("scale")||$e===1)?De:Math.min($e,De)}function ge(Ce){var be=Math.min(window.innerWidth,document.documentElement.clientWidth),Oe=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=Ce.getBoundingClientRect(),De=(be-$e.width)/2,he=(Oe-$e.height)/2;he<0&&(he=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(De<40?Ce.style.left="40px":Ce.style.left=De+"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=De+"px")}function Je(Ce,be){var Oe=Ce.querySelector(".appletParameters");if(Oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!==Oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(Oe.parentElement&&/fullscreen/.test(Oe.parentElement.className))return;var $e=Ve(be,Ce);nn()&&Oe.setAttribute("data-param-scale",$e);for(var De=null,he=0;he<Ce.childNodes.length;he++)if(Ce.childNodes[he].className!==void 0&&Ce.childNodes[he].className.match(/^applet_scaler/)){De=Ce.childNodes[he];break}if(De!==null&&De.querySelector(".noscale")!==null)return;var Ze=be.id!==void 0?be.id:"ggbApplet",Ee=window[Ze];(Ee==null||!Ee.recalculateEnvironments)&&De!==null&&!De.className.match(/fullscreen/)&&(De.parentNode.style.transform="",!isNaN($e)&&$e!==1?(De.parentNode.style.width=be.width*$e+"px",De.parentNode.style.height=be.height*$e+"px",jt(De,$e)):(jt(De,1),De.parentNode.style.width=be.width+"px",De.parentNode.style.height=be.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($(Oe).parents(".content-added-content"))}}return{responsiveResize:Je,isFlexibleWorksheetEditor:nn,positionCenter:ge,getScale:Ve,scaleElement:jt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var nn=n.location.search;return nn.indexOf(J)!=-1||nn.indexOf(K)!=-1}function q(nn,jt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(nn){var jt=s[L].bindings;s[L].bindings=function(){for(var ie=jt?jt():{},E=nn[webModule.__softPermutationId],Ve=O;Ve<E.length;Ve++){var ge=E[Ve];ie[ge[O]]=ge[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var nn=o.createElement(Q);if(nn.id=L,nn.style.cssText=R+S,nn.tabIndex=-1,o.body.appendChild(nn),t=nn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var jt=document.compatMode==U?V:W;t.write(jt+X),t.close()}}}function w(nn){function jt(E){function Ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ge=Ve();if(ge){E();return}function Je(){if(!ge){if(!Ve())return;ge=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Je,!1),Ce&&clearInterval(Ce)}}o.addEventListener&&o.addEventListener(Z,Je,!1);var Ce=setInterval(function(){Je()},$)}function ie(E){var Ve=u(),ge=Ve.body,Je=Ve.createElement(_);Je.language=ab,Je.crossOrigin=W,Je.src=E,webModule.__errFn&&(Je.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),ge.appendChild(Je)}jt(function(){ie(nn)})}webModule.__startLoadingFragment=function(nn){return C(nn)},webModule.__installRunAsyncCode=function(nn){var jt=u(),ie=jt.body,E=jt.createElement(_);E.language=ab,E.text=nn,ie.appendChild(E),ie.removeChild(E)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(nn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(nn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(nn){var jt=c[nn];return jt==null?null:jt},r=d,webModule.__errFn=e}function B(){function nn(Ce){var be=Ce.lastIndexOf(rb);be==-1&&(be=Ce.length);var Oe=Ce.indexOf(sb);Oe==-1&&(Oe=Ce.length);var $e=Ce.lastIndexOf(tb,Math.min(Oe,be));return $e>=O?Ce.substring(O,$e+P):W}function jt(Ce){if(!Ce.match(/^\w+:\/\//)){var be=o.createElement(ub);be.src=Ce+vb,Ce=nn(be.src)}return Ce}function ie(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function E(){for(var Ce=o.getElementsByTagName(_),be=O;be<Ce.length;++be)if(Ce[be].src.indexOf(xb)!=-1)return nn(Ce[be].src);return W}function Ve(){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 Je=ie();return Je==W&&(Je=E()),Je==W&&(Je=Ve()),Je==W&&ge()&&(Je=nn(o.location.href)),Je=jt(Je),Je}function C(nn){return nn.match(/^\//)||nn.match(/^[a-zA-Z]+:\/\//)?nn:webModule.__moduleBase+nn}function D(){var nn=[],jt=O,ie=[],E=[];function Ve(Ce){var be=E[Ce](),Oe=ie[Ce];if(be in Oe)return be;var $e=[];for(var De in Oe)$e[Oe[De]]=De;throw r&&r(Ce,$e,be),null}if(__gwt_isKnownPropertyValue=function(Ce,be){return be in ie[Ce]},webModule.__getPropMap=function(){var Ce={};for(var be in ie)ie.hasOwnProperty(be)&&(Ce[be]=Ve(be));return Ce},webModule.__computePropValue=Ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Je=ge.indexOf(Db);Je!=-1&&(jt=parseInt(ge.substring(Je+P),$),ge=ge.substring(O,Je))}catch(Ce){}return webModule.__softPermutationId=jt,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(nn,jt,ie){"use strict";ie.d(jt,{Ax:function(){return Je},Ds:function(){return Ce},KI:function(){return Oe},SI:function(){return ge},f1:function(){return Ve}});var E=ie(35783);function Ve($e){let De=!0;if($e.length>0){for(let he=0;he<$e.length;he++)if($e[he].compile_success==0||!$e[he].compile_success){De=!1;break}}else De=!1;return De}function ge($e,De=""){let he=[];for(let Ze=0;Ze<$e.length;Ze++){let Ee=$e[Ze],mt=De?`${De}/${Ee.name}`:`${Ee.name}`;he.push({title:Ee.name,type:Ee.type,isLeaf:Ee.type!=="tree",key:mt})}return he}function Je($e,De,he){for(let Ze=0;Ze<$e.length;Ze++){let Ee=$e[Ze];if(Ee.key===De){Ee.children=he;break}Ee.children&&Je(Ee.children,De,he)}return $e}function Ce($e,De,he){let Ze;return function(){let Ee=this,mt=arguments,Qe=function(){Ze=null,he||$e.apply(Ee,mt)},Me=he&&!Ze;clearTimeout(Ze),Ze=setTimeout(Qe,De),Me&&$e.apply(Ee,mt)}}const be=!0,Oe=E.Z.API_SERVER},86793:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return De}});var E=ie(59301),Ve=ie(37568),ge=ie(96599),Je=ie(6767),Ce={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},be=ie(62772);const{TextArea:Oe}=Ve.default;class $e extends E.Component{constructor(Ze){super(Ze),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Ze,onAnswerChange:Ee,addChildAnswer:mt,exerciseIsPublish:Qe,answers:Me,activeOptionErrorIndex:Ne,flex:Ae="0 0 1000px"}=this.props;console.log("----",Me);let{inputVisible:ft,EditInputIndex:xt}=this.state;return E.createElement("div",{className:Ce.flex},E.createElement("div",{className:`${Ce.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Ze+1,"):"),E.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Me==null?void 0:Me.map((It,pt)=>E.createElement(E.Fragment,null,xt!==pt?(It==null?void 0:It.length)>0?E.createElement(ge.default,{className:"edit-tag",key:It,closable:!(Ze===0&&pt===0),onClose:Re=>{Re.preventDefault(),(Me==null?void 0:Me.length)===1&&pt===0?this.props.deleteChildAnswermain(Ze,pt):this.props.deleteChildAnswer(Ze,pt)}},E.createElement("span",{onDoubleClick:Re=>{this.setState({EditInputIndex:pt}),Re.preventDefault()}},It)):E.createElement(Ve.default,{defaultValue:It,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Re=>{if(Re.target.value.replaceAll(" ","").length<=0){Je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ee(Ze,pt,Re.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):E.createElement(Ve.default,{defaultValue:It,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Re=>{if(Re.target.value.replaceAll(" ","").length<=0){Je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ee(Ze,pt,Re.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!ft&&E.createElement(ge.default,{className:"site-tag-plus",onClick:()=>{mt(Ze),this.setState({inputVisible:!0})}},E.createElement(be.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var De=$e},30690:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Qe}});var E=ie(59301),Ve=ie(32862),ge=Object.defineProperty,Je=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,De=(Me,Ne,Ae)=>Ne in Me?ge(Me,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Me[Ne]=Ae,he=(Me,Ne)=>{for(var Ae in Ne||(Ne={}))Oe.call(Ne,Ae)&&De(Me,Ae,Ne[Ae]);if(be)for(var Ae of be(Ne))$e.call(Ne,Ae)&&De(Me,Ae,Ne[Ae]);return Me},Ze=(Me,Ne)=>Je(Me,Ce(Ne)),Ee=(Me,Ne,Ae)=>De(Me,typeof Ne!="symbol"?Ne+"":Ne,Ae);const mt="\u2581";class Qe extends E.Component{constructor(){super(...arguments),Ee(this,"getChCountBeforeCursor",(Ne,Ae)=>{const ft=Ae.line;let xt=0;for(let pt=0;pt<ft;pt++)xt+=Ne.getLine(pt).split(mt).length-1;const It=Ne.getLine(ft).substring(0,Ae.ch);return xt+=It.split(mt).length-1,xt}),Ee(this,"onCMBeforeChange",(Ne,Ae)=>{const ft=Ne.getRange(Ae.from,Ae.to);let xt=0;if(Ae.text.forEach(It=>{xt+=It.split(mt).length-1}),ft&&ft.indexOf(mt)!=-1){const It=ft.split(mt).length-1,pt=this.getChCountBeforeCursor(Ne,Ae.from);console.log(`\u5220\u9664${It}\u4E2A\uFF0C \u4E4B\u524D\u6709${pt}\u4E2A\uFF0C\u65B0\u589E${xt}\u4E2A`),this.props.deleteEmptyDisabled?Ae.cancel():this.props.onPlaceholderChange&&this.props.onPlaceholderChange(pt,It,xt)}else if(xt){const It=this.getChCountBeforeCursor(Ne,Ae.from);console.log(`\u65B0\u589E${xt}\u4E2A\uFF0C\u4E4B\u524D\u6709${It}\u4E2A`),this.props.onPlaceholderChange&&this.props.onPlaceholderChange(It,0,xt)}})}render(){return E.createElement(Ve.Z,Ze(he({},this.props),{onCMBeforeChange:this.onCMBeforeChange}))}}},78265:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Ze}});var E=ie(59301),Ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ge=ie(92310),Je=ie.n(ge),Ce=ie(29787),be=ie(2859),Oe=ie(22972),$e=ie(68911),De=(Ee,mt,Qe)=>new Promise((Me,Ne)=>{var Ae=It=>{try{xt(Qe.next(It))}catch(pt){Ne(pt)}},ft=It=>{try{xt(Qe.throw(It))}catch(pt){Ne(pt)}},xt=It=>It.done?Me(It.value):Promise.resolve(It.value).then(Ae,ft);xt((Qe=Qe.apply(Ee,mt)).next())}),Ze=({data:Ee,className:mt,fullWidth:Qe,style:Me={},onClose:Ne,onOk:Ae,showFullTools:ft,noAssociationId:xt})=>{const It=(0,E.useRef)(null),pt=(0,E.useRef)(null),Re=(0,E.useRef)(null),lt=(0,E.useRef)(null),[Ke,Ot]=(0,E.useState)(!1),[at,Ue]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(Re.current||(Re.current=document.createElement("style"),document.head.appendChild(Re.current)),Ee!=null&&Ee.visible?(document.body.setAttribute("data-custom","y-hidden"),Re.current.innerHTML=" html { overflow-y: hidden; }",Ee!=null&&Ee.src&&Ct()):(document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null)),()=>{document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null)}),[Ee==null?void 0:Ee.visible]);const Ct=()=>De(void 0,null,function*(){Ot(!0),Ue("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,$e.ZJ)(Ee==null?void 0:Ee.src);It.current.src="",It.current.src=de,It.current.onload=function(){nt()},Ot(!1),Ue("")}),He=de=>De(void 0,null,function*(){Ot(!0),Ue("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Et=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ee.title,file:de.dataUrl}});Et!=null&&Et.id&&!xt?(yield(0,Oe.ZP)(`/api/attachments/${Ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:Et==null?void 0:Et.id,settings:JSON.stringify(de.state)}})).status===0&&Ae():Et!=null&&Et.id&&Ae(Et),Ot(!1),Ue("")}),it=()=>{const de=document.querySelector('a[href="https://markerjs.com/"]');de&&de.parentNode&&(de.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(ke=>{const Le=document.querySelector(ke.name);Le&&Le.setAttribute("title",ke.title)})},nt=()=>{pt.current=new be.hP(It.current),pt.current.targetRoot=lt.current,pt.current.addEventListener("render",He),pt.current.addEventListener("beforeclose",Ne),ft&&(pt.current.availableMarkerTypes=pt.current.ALL_MARKER_TYPES,pt.current.uiStyleSettings.redoButtonVisible=!0,pt.current.uiStyleSettings.notesButtonVisible=!0,pt.current.uiStyleSettings.zoomButtonVisible=!0,pt.current.uiStyleSettings.zoomOutButtonVisible=!0,pt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pt.current.uiStyleSettings,pt.current.show(),Ee!=null&&Ee.snapshotData&&pt.current.restoreState(Ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),it()},300)};return E.createElement(E.Fragment,null,(Ee==null?void 0:Ee.visible)&&E.createElement(Ce.Z,{spinning:Ke,tip:at,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:lt,className:Je()(Ve.imageDimensions,mt,Qe?Ve.fullWidth:""),style:Me},E.createElement("img",{className:Ve.img,ref:It}))))}},9043:function(nn,jt,ie){"use strict";var E=ie(59301),Ve=ie(77019),ge=ie(5269),Je=ie(31691),Ce=ie(7939),be=ie(56375),Oe=ie(50718),$e=ie(48136),De=ie(59301);const he=(0,E.forwardRef)(({callback:Ze,showSaveButton:Ee,value:mt=""},Qe)=>{const Me=(0,E.useRef)(),Ne=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],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}`}]}]}],ft=pt=>{Me.current.setValue(Me.current.getValue()+" "+pt.value+" ")},xt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:De.createElement(Ve.Z,{className:Oe.Z.lists,gutter:[10,10]},Ne.map((pt,Re)=>De.createElement(ge.Z,{flex:"110px",className:Oe.Z.item},De.createElement("div",null,De.createElement(be.Z,{value:`$$${pt.value}$$`}),pt.name),De.createElement("div",{className:Oe.Z.children},pt.children.map((lt,Ke)=>De.createElement("div",{key:Ke},De.createElement("h1",null,lt.name),De.createElement(Ve.Z,{gutter:[10,10]},lt.data.map((Ot,at)=>De.createElement(ge.Z,{key:at,onClick:()=>ft(Ot),className:Oe.Z.diamond},De.createElement(be.Z,{value:"`$$"+Ot.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:De.createElement(Ve.Z,{className:Oe.Z.lists,gutter:[10,10]},Ae.map((pt,Re)=>De.createElement(ge.Z,{flex:"110px",className:Oe.Z.item},De.createElement("div",null,De.createElement(be.Z,{value:"`$$"+pt.value+"$$`"}),pt.name),De.createElement("div",{className:Oe.Z.children},pt.children.map((lt,Ke)=>De.createElement("div",{key:Ke},lt.name&&De.createElement("h1",null,lt.name),De.createElement(Ve.Z,{gutter:[10,10]},lt.data.map((Ot,at)=>De.createElement(ge.Z,{key:at,onClick:()=>ft(Ot),className:Oe.Z.diamond},De.createElement(be.Z,{value:"`$$"+Ot.value+"$$`"}))))))))))}],It=()=>{var pt=document.createElement("div");pt.innerHTML=Me.current.getValue();var Re=pt.innerText;return Ze&&Ze(Re),Re};return(0,E.useImperativeHandle)(Qe,()=>({getData:It})),De.createElement("div",{className:Oe.Z.mathWrap},De.createElement(Je.default,{defaultActiveKey:"1",items:xt}),De.createElement("math-field",{locale:"zh_cn",className:Oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Me,style:{width:800,marginTop:30,fontSize:18}},mt||""),Ee&&De.createElement("div",{className:Oe.Z.button},De.createElement(Ce.ZP,{size:"large",onClick:It,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jt.Z=he},71347:function(nn,jt,ie){"use strict";var E=ie(59301),Ve=ie(93314),ge=ie(7939),Je=Object.defineProperty,Ce=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,he=(Qe,Me,Ne)=>Me in Qe?Je(Qe,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):Qe[Me]=Ne,Ze=(Qe,Me)=>{for(var Ne in Me||(Me={}))$e.call(Me,Ne)&&he(Qe,Ne,Me[Ne]);if(Oe)for(var Ne of Oe(Me))De.call(Me,Ne)&&he(Qe,Ne,Me[Ne]);return Qe},Ee=(Qe,Me)=>Ce(Qe,be(Me));const mt=({img:Qe,buttonProps:Me={},styles:Ne={},customText:Ae,ButtonText:ft,ButtonClick:xt,Buttonclass:It,ButtonTwo:pt,imgStyles:Re,loading:lt=!1,className:Ke=""})=>E.createElement("section",{className:`tc animated fadeIn ${Ke}`,style:Ze({color:"#999",margin:"100px auto",visibility:lt?"hidden":"visible"},Ne)},E.createElement("img",{src:Qe||Ve,style:Ee(Ze({},Re),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},Ae||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ft&&E.createElement(ge.ZP,Ze({className:It,onClick:xt},Me),ft),pt&&pt);jt.Z=mt},98893:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return It}});var E=ie(59301),Ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=ie(7939),Je=ie(70557),Ce=ie(94871),be=ie(25399),Oe=ie(68911),$e=ie(58870),De=ie(71347),he=ie(35783),Ze=ie(25341),Ee=ie(59301),mt=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Ae=(pt,Re,lt)=>Re in pt?mt(pt,Re,{enumerable:!0,configurable:!0,writable:!0,value:lt}):pt[Re]=lt,ft=(pt,Re)=>{for(var lt in Re||(Re={}))Me.call(Re,lt)&&Ae(pt,lt,Re[lt]);if(Qe)for(var lt of Qe(Re))Ne.call(Re,lt)&&Ae(pt,lt,Re[lt]);return pt},xt=(pt,Re,lt)=>new Promise((Ke,Ot)=>{var at=He=>{try{Ct(lt.next(He))}catch(it){Ot(it)}},Ue=He=>{try{Ct(lt.throw(He))}catch(it){Ot(it)}},Ct=He=>He.done?Ke(He.value):Promise.resolve(He.value).then(at,Ue);Ct((lt=lt.apply(pt,Re)).next())}),It=({editOffice:pt="view",data:Re,issaver:lt,onSaver:Ke,theme:Ot,type:at,filename:Ue,monacoEditor:Ct,className:He,style:it,close:nt,onClose:de,hasMask:Et,disabledDownload:ke,onImgDimensions:Le,showNodata:bt,recordInfo:ve})=>{const[ue,rt]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Nt,yt]=(0,E.useState)(""),[Ie,Xe]=(0,E.useState)(),qe=window.ENV==="build"?"/react/build":"",en=location.host.startsWith("localhost")?he.Z.PROXY_SERVER:he.Z.API_SERVER,_t=10*(1024*1024),je=(0,E.useRef)();Re!=null&&Re.startsWith("/api")&&at!=="txt"&&(Re=he.Z.API_SERVER+Re);const Ht=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();Ue&&Ct&&(Ct.filename=Ue),(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(ye=>{let ct=ye.split("=");ct[0]==="_educoder_session"&&yt(ct[1])})},[]),(0,E.useEffect)(()=>{at==="office"&&(Re.indexOf("bigfilescdn.")>-1||Re.indexOf("bigfiles1")>-1?Xe({url:Re,fileType:Ht(Re),model:Re.indexOf("model=edit")?"edit":"view"}):Re.indexOf("coze")>-1?Xe({url:Re,fileType:"doc",model:"view"}):ae())},[at,Re]);function gt(se){return xt(this,null,function*(){se.data.type==="pdfdata"&&(Ke(se.data.data),window.removeEventListener("message",gt,!1)),console.log("mess---:",se.data)})}const ae=()=>xt(void 0,null,function*(){console.log("data:",Re);let se=Re;Re.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const pe=yield(0,$e.gJ)({attachment_id:ne});pe.url=en+pe.url,Xe(pe)}),te=()=>{if(Re.startsWith("http")||Re.startsWith("blob:")){ee();return}(0,Oe.Sv)(Ue||"educoder",Re,Ue)},ee=()=>{ve&&(0,Ze.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,Oe.Nd)(Ue||"educoder",decodeURIComponent(Re))};(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"&&de()};return Ee.createElement("div",{style:ft({},it||{}),className:`${Et&&Ve.bgBlack} ${at?Ve.wrp:"hide"}`},!!at&&nt&&Ee.createElement("div",{id:"closePop",className:Ve.close,ref:je},!!Le&&Ee.createElement(be.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>je.current},Ee.createElement("span",{onClick:()=>{de(),Le()}},Ee.createElement("i",{className:"icon-yulanpizhu"}))),!ke&&window.parent===window&&Ee.createElement(be.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>je.current},Ee.createElement("span",{onClick:ee},Ee.createElement("i",{className:"icon-quxiaozhiding"}))),lt&&Ee.createElement(be.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>je.current},Ee.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",gt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},Ee.createElement("i",{className:"icon-baocun"}))),Ee.createElement(be.Z,{title:"\u5173\u95ED",getPopupContainer:()=>je.current},Ee.createElement("span",{className:"",onClick:()=>{de()}},Ee.createElement("i",{className:"icon-guanbi1"})))),Ee.createElement("div",{className:`${Ve[He]} ${He} ${Ve.monaco} ${at==="txt"?"show":"hide"}`},at==="txt"&&Ee.createElement(Ee.Fragment,null,Ee.createElement(Ce.ZP,ft({},Ct)))),at==="audio"&&Ee.createElement("audio",{src:`${(Re==null?void 0:Re.indexOf("http://"))>-1||(Re==null?void 0:Re.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Re}`,autoPlay:!0}),at==="video"&&Ee.createElement(Ee.Fragment,null,(Re==null?void 0:Re.indexOf("http"))>-1?Ee.createElement("video",{controls:!0,src:`${Re}`,autoPlay:!0}):Ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Re}`,autoPlay:!0})),at==="office"&&Ie&&Ee.createElement("iframe",{src:`${qe}/office.html?key=${Ie.key}&url=${btoa(Ie.url)}&callbackUrl=${en+(Ie.callbackUrl||"")}&fileType=${Ie.fileType}&title=${Ie.title||""}&model=${pt}&officeServer=${he.Z.ONLYOFFICE}&disabledDownload=${!!ke}`}),at==="html"&&Ee.createElement("iframe",{src:Re+"&disposition=inline"}),at==="pdf"&&Ee.createElement("iframe",{id:"pdfiframe",src:`${qe}/js/pdf/index.html?filename=${Ue||"educoder.pdf"}&url=${encodeURIComponent(Re)}&disabledDownload=${!!ke}&model=${pt}`}),at==="image"&&Ee.createElement("img",{src:`${(Re==null?void 0:Re.indexOf("http://"))>-1||(Re==null?void 0:Re.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Re}`}),(at==="other"||at==="download")&&Ee.createElement(Ee.Fragment,null,bt?Ee.createElement(De.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ee.createElement(ge.ZP,{icon:Ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:ke},"\u4E0B\u8F7D")}):Ee.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:ke},Ee.createElement(Je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),at==="flowChart"&&Ee.createElement("div",{className:"embed"},Ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Re||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},56375:function(nn,jt,ie){"use strict";ie.d(jt,{z:function(){return Ct},Z:function(){return He}});var E=ie(59301),Ve=ie(64310),ge=ie(74410),Je=ie(64018),Ce=ie(16471),be=ie(35783),Oe=ie(68911),$e=ie(15342),De=ie(44104),he=ie(7939),Ze=ie(1012),Ee=ie(98893),mt=ie(59301),Me=({html:it})=>{const nt=(0,E.useRef)(null),de=(0,E.useRef)(null),Et=`.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 ke=nt.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=it,ke.appendChild(de.current);const Le=document.createElement("style");return Le.textContent=Et,ke.appendChild(Le),()=>{ke.innerHTML=""}},[]),(0,E.useEffect)(()=>{de.current&&(de.current.innerHTML=it)},[it]),mt.createElement("div",{ref:nt})};function Ne(it){const nt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],de=new RegExp(`\\b(${nt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Et=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return it.replace(de,"").replace(Et,"").trim()}var Ae={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ft=Object.defineProperty,xt=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Re=(it,nt,de)=>nt in it?ft(it,nt,{enumerable:!0,configurable:!0,writable:!0,value:de}):it[nt]=de,lt=(it,nt)=>{for(var de in nt||(nt={}))It.call(nt,de)&&Re(it,de,nt[de]);if(xt)for(var de of xt(nt))pt.call(nt,de)&&Re(it,de,nt[de]);return it};const Ke="@\u2581\u2581@",Ot="@\u2581@",at=/<pre[^>]*>/g;function Ue(it){let nt=document.createElement("div");return nt.innerHTML=it,nt.childNodes.length===0?"":nt.childNodes[0].nodeValue}const Ct=(it,nt)=>{it=it||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Le=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return nt?it.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(bt,ve,ue,rt,Nt,yt,Ie)=>{const Xe=ve||rt||yt,qe=ue||Nt||Ie||"?";return be.Z.API_SERVER+"/api/attachments/"+Xe+qe+"&t="+(0,Oe.Jn)(Xe,Date.now())+(bt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(it=it.replace(Le,(bt,ve,ue,rt,Nt,yt,Ie)=>{const Xe=ve||rt||yt,qe=ue||Nt||Ie||"?";return be.Z.API_SERVER+"/attachments/download/"+Xe+qe+"&t="+(0,Oe.Jn)(Xe,Date.now())+(bt.indexOf(")")>-1?")":"&")}).replace(de,(bt,ve,ue,rt,Nt,yt,Ie)=>{const Xe=ve||rt||yt,qe=ue||Nt||Ie||"?";return be.Z.API_SERVER+"/api/attachments/"+Xe+qe+"&t="+(0,Oe.Jn)(Xe,Date.now())+(bt.indexOf(")")>-1?")":"&")}).replace(Et,(bt,ve,ue,rt,Nt)=>{const yt=ve||rt,Ie=ue||Nt||"";return'"'+be.Z.API_SERVER+"/api/attachments/"+yt+Ie+yt+Ie+"&t="+(0,Oe.Jn)(yt,Date.now())}).replace(ke,(bt,ve,ue,rt,Nt)=>{const yt=ve||rt,Ie=ue||Nt||"";return"("+be.Z.API_SERVER+"/files/uploads/"+yt+Ie+yt+Ie+"&t="+(0,Oe.Jn)(yt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),it)};var He=({value:it="",edit:nt=!1,className:de,showTextOnly:Et,showLines:ke,style:Le={},stylesPrev:bt={},highlightKeywords:ve,showProgramFill:ue,isProgramFill:rt,disabledFill:Nt=!1,programFillValue:yt,openEditor:Ie=()=>{},onFillChange:Xe=Ft=>{},onFillBlur:qe=()=>{},onFillFocus:en=()=>{}})=>{let Ft=Ne(String(it||""));const _t=(0,E.useRef)(),je=(0,E.useRef)(),[Ht,gt]=(0,E.useState)(""),[ae,te]=(0,E.useState)("office"),[ee,oe]=(0,E.useState)([]),se=(0,E.useRef)("a"+(0,Ze.Z)()),ne={},pe=wt=>/<style[\s\S]*?>/i.test(wt||""),ye=(wt,Kt,Lt)=>{const Jt=document.createElement(wt===Ot?"input":"textarea");Jt.style.width="100%",Jt.style.height=wt===Ot?"40px":"151px",Jt.rows=5,Jt.spellcheck=!1,Jt.name="edu-program-fill",Jt.placeholder="\u8BF7\u8F93\u5165",Jt.dataset.id=Kt;const sn=Object.keys(ne).length;return ne[sn]=Jt,`<span class="edu-program-fill-wrap ${wt===Ot?"":"show"}" style="width:${wt===Ot?"600px":"100%"}" title=${Lt||""}><span>${Jt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ct(wt){return wt=wt.replace(/!\[.*?\]\(.*?\)/g,""),wt=wt.replace(/\[.*?\]\(.*?\)/g,""),wt=wt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),wt=wt.replace(/<embed.*?>/g,""),wt=wt.replace(/<img.*?>/g,""),wt=wt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),wt=wt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),wt=wt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),wt=wt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),wt}const Pe=wt=>!Et&&pe(Ft)?wt:wt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Kt,Lt){let Jt=Lt.replace(/(\n|\r)/g,"").split("}"),sn=[];return Jt.map(vn=>{vn!=""&&sn.push(`.${se.current} ${vn}`)}),`<style>${sn.join("}")}</style>`}),Ge=(0,E.useMemo)(()=>{(0,ge.Iy)();try{const Jt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,vn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Sn=/\(\/attachments\/download\//g;Ft=Ft.replace(Sn,"("+be.Z.API_SERVER+"/attachments/download/").replace(Jt,"("+be.Z.API_SERVER+"/api/attachments/").replace(sn,'"'+be.Z.API_SERVER+"/api/attachments/").replace(vn,'"'+be.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,`
|
|
|
`),_t.current.style.display="none"}catch(Jt){}if(ue){let Jt=-1;return Ft=Ft.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(sn,vn,Sn){var Fe;return++Jt,ye(sn,Jt,(Fe=yt==null?void 0:yt[Jt])==null?void 0:Fe.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Pe(Ft||"")}</pre>`}let wt=Pe(Ft);wt=(0,ge.ZP)(wt);const Kt=(0,ge.ez)();Ft.match(/\[TOC\]/)&&(wt=wt.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),wt=wt.replace(/(__special_katext_id_\d+__)/g,(Jt,sn)=>{const{type:vn,expression:Sn}=Kt[sn];return(0,$e.renderToString)(Ue(Sn)||"",{displayMode:vn==="block",throwOnError:!1,output:"html"})}),wt=wt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Lt=document.createElement("div");if(Lt.innerHTML=wt,Et)return Lt.innerText;if(ve){const Jt=ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return xe(Lt,Jt),Lt.innerHTML}return setTimeout(()=>kt(),500),Lt.innerHTML},[Ft,ve]);(0,E.useEffect)(()=>{Be.current&&Be.current.querySelectorAll(["input","textarea"]).forEach(Kt=>{Kt.oninput=dt,Kt.onblur=Pt,Kt.onfocus=St})},[ee]),(0,E.useEffect)(()=>{var wt,Kt,Lt,Jt,sn;if(yt!=null&&yt.length)try{const vn=Be.current.querySelectorAll(".edu-program-fill-score"),Sn=Be.current.querySelectorAll('[name="edu-program-fill"]');for(const[Fe,ht]of Sn.entries())ht.value=((wt=yt==null?void 0:yt[Fe])==null?void 0:wt.value)||"",((Kt=yt==null?void 0:yt[Fe])==null?void 0:Kt.type)==="warning"?ht.className="program-fill-warning":((Lt=yt==null?void 0:yt[Fe])==null?void 0:Lt.type)==="success"?ht.className="program-fill-success":ht.className="";for(const[Fe,ht]of vn.entries())ht.innerHTML=(Jt=yt==null?void 0:yt[Fe])!=null&&Jt.score?`${(sn=yt==null?void 0:yt[Fe])==null?void 0:sn.score}\u5206`:"";oe(yt)}catch(vn){console.log(vn,"error")}},[yt]);const dt=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,oe([...ee]),Xe(ee,wt.target.dataset.id)},Pt=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,oe([...ee]),qe(ee,wt.target.dataset.id)},St=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,oe([...ee]),en(ee,wt.target.dataset.id)};function xe(wt,Kt){return wt.childNodes.forEach(Lt=>{var Jt;if(Lt.childNodes.length>0)xe(Lt,Kt);else if(Lt.nodeName!=="IMG")if(Lt.innerHTML)Lt.innerHTML=(Jt=Lt.innerHTML)==null?void 0:Jt.replace(new RegExp(Kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const sn=document.createElement("span");sn.innerHTML=Lt.textContent.replace(new RegExp(Kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Lt.replaceWith(sn)}})}const Be=(0,E.useRef)();ge.jb.WebkitLineClamp=ke,ke&&(Le=lt(lt({},Le),ge.jb));function Tt(wt){let Kt=wt.target;if(Kt.tagName.toUpperCase()==="A"){let Lt=Kt.getAttribute("href");if(Lt.indexOf("office")>-1)wt.preventDefault(),gt(Lt),te("office");else if(Lt.indexOf("application/pdf")>-1)wt.preventDefault(),gt(Lt),te("pdf");else if(Lt.indexOf("text/html")>-1)wt.preventDefault(),gt(Lt),te("html");else if(Lt.startsWith("#")){wt.preventDefault();let Jt=document.getElementById(Lt.replace("#",""));Jt&&Jt.scrollIntoView(!0)}}}const kt=()=>{var wt;const Kt=(wt=Be.current)==null?void 0:wt.querySelectorAll("video");Kt==null||Kt.forEach(Lt=>{if(Lt.oncontextmenu=()=>!1,Lt.src.indexOf(".m3u8")>-1&&!Lt.canPlayType("application/vnd.apple.mpegurl")){if(Ce.ZP.isSupported()){var Jt=new Ce.ZP;Jt.loadSource(Lt.src),Jt.attachMedia(Lt)}}})};(0,E.useEffect)(()=>{if(Be.current&&Ge&&Ge.match(at)&&window.PR.prettyPrint(),Be.current)return Be.current.addEventListener("click",Tt),()=>{var wt;(wt=Be.current)==null||wt.removeEventListener("click",Tt),(0,ge.AL)(),(0,ge.Iy)()}},[Ge,Be.current,Tt]);const Gt=wt=>{wt.target.nodeName==="IMG"&&wt.target.className.indexOf("draw-flowchart")>-1?(_t.current.style.zIndex=1,_t.current.style.display="flex",_t.current.style.width=wt.target.clientWidth+"px",_t.current.style.height=wt.target.clientHeight+"px",_t.current.style.top=wt.target.offsetTop+"px",_t.current.style.left=wt.target.offsetLeft+"px",wt.target.id&&(je.current=wt.target.id)):_t.current.style.display="none"},Qt=()=>{_t.current.style.display="none"};return(0,E.useEffect)(()=>{var wt;const Kt=Lt=>{Lt.preventDefault(),Lt.clipboardData.setData("text",window.getSelection().toString())};return(wt=Be.current)==null||wt.addEventListener("copy",Kt),()=>{var Lt;(Lt=Be.current)==null||Lt.removeEventListener("copy",Kt)}},[Be.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:Qt},Et&&E.createElement("div",{ref:Be,className:`${Ae.mdBody} `},Ge),!Et&&!pe(Ge)&&E.createElement("div",{ref:Be,style:lt({},Le),onMouseOver:Gt,className:`${de||""} ${Nt?"disabled-fill":""} markdown-body ${Ae.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ge}}),!Et&&pe(Ge)&&E.createElement(Me,{html:Ge}),E.createElement("div",{ref:_t,className:`${Ae.button} ${nt?"":Ae.previewFlowChart}`},E.createElement(De.Z,null,E.createElement(he.ZP,{onClick:()=>{nt?Ie(je.current):(gt(je.current),te("flowChart"))}},nt?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement(Ee.Z,{close:!0,data:Ht,type:Ht!=null&&Ht.length?ae:"",style:lt({},bt),onClose:()=>gt("")}))}},56383:function(nn,jt,ie){"use strict";ie.d(jt,{h:function(){return pt}});var E=ie(59301),Ve=ie(82326),ge=ie(28284),Je=ie(7939),Ce=ie(89780),be=ie.n(Ce),Oe=ie(3706),$e=ie(96772),De=Object.defineProperty,he=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Me=(Re,lt,Ke)=>lt in Re?De(Re,lt,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Re[lt]=Ke,Ne=(Re,lt)=>{for(var Ke in lt||(lt={}))mt.call(lt,Ke)&&Me(Re,Ke,lt[Ke]);if(Ee)for(var Ke of Ee(lt))Qe.call(lt,Ke)&&Me(Re,Ke,lt[Ke]);return Re},Ae=(Re,lt)=>he(Re,Ze(lt));const ft=Ve.default.Option,xt={labelCol:{span:4},wrapperCol:{span:20}},It={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"]};jt.Z=({callback:Re,onCancel:lt})=>{const[Ke,Ot]=(0,E.useState)("python");function at(Ct){Ot(It[Ct][1])}function Ue(Ct){Re(Ct)}return E.createElement(ge.default,Ae(Ne({},xt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ue,style:{width:500}}),E.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(Ve.default,{getPopupContainer:Ct=>Ct.parentNode,onChange:at},Object.keys(It).map(Ct=>E.createElement(ft,{key:Ct,value:Ct},It[Ct][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(pt,{mode:Ke})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Je.ZP,{type:"ghost",onClick:lt},"\u53D6\u6D88")))};function pt({value:Re,onChange:lt,mode:Ke,options:Ot={}}){const at=(0,E.useRef)(),[Ue,Ct]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Ue){let He=function(it){const nt=it.getValue();lt&<(nt)};return Ue.on("change",He),()=>{Ue.off("change",He)}}},[Ue,lt]),(0,E.useEffect)(()=>{Ue&&Ue.setOption("mode",Ke)},[Ue,Ke]),(0,E.useEffect)(()=>{Ue&&(Re!==Ue.getValue()||Re==="")&&setTimeout(()=>{Ue.setValue(Re||"")},300)},[Ue,Re]),(0,E.useEffect)(()=>{if(at.current&&!Ue){const He=be().fromTextArea(at.current,Ne({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ot));Ct(He)}},[at.current,Ue]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:at}))}},32862:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Tn}});var E=ie(59301),Ve=ie(63823),ge=ie(89780),Je=ie.n(ge),Ce=ie(76374),be=ie(3706),Oe=ie(6313),$e=ie(25717),De=ie(99498),he=ie(25419),Ze=ie(67549),Ee=ie(56375),mt=({value:an="",className:Cn,showTextOnly:fn,showLines:kn,style:lr={}})=>{const er=(0,E.useMemo)(()=>"",[an]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:er}}))},Qe=Object.defineProperty,Me=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,It=(an,Cn,fn)=>Cn in an?Qe(an,Cn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):an[Cn]=fn,pt=(an,Cn)=>{for(var fn in Cn||(Cn={}))ft.call(Cn,fn)&&It(an,fn,Cn[fn]);if(Ae)for(var fn of Ae(Cn))xt.call(Cn,fn)&&It(an,fn,Cn[fn]);return an},Re=(an,Cn)=>Me(an,Ne(Cn));let lt=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ke({onActionCallback:an,title:Cn,icon:fn,actionName:kn,className:lr="",children:er}){function Gn(){an(kn)}return E.createElement("a",{title:Cn,className:lr,onClick:Gn},E.createElement("i",{className:`${fn}`}),er)}var Ot=({watch:an,showNullButton:Cn,showNullProgramButton:fn,onActionCallback:kn,fullScreen:lr,insertTemp:er,hidetoolBar:Gn,extraUse:sr})=>{const hr=[...lt,{title:`${an?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${an?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!Gn&&hr.map((yr,ur)=>E.createElement("li",{key:ur},yr.actionName?E.createElement(Ke,Re(pt({},yr),{onActionCallback:kn})):E.createElement("span",{className:"v-line"}))),Cn?E.createElement("li",null,E.createElement(Ke,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kn},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,fn?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:kn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:kn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,er&&E.createElement("li",null,E.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${er}`,onActionCallback:kn},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),sr&&E.createElement("li",null,sr),E.createElement("li",{className:"btn-full-screen"},E.createElement(Ke,{icon:`${lr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:lr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kn})))},at=ie(88969),Ue=ie(28284),Ct=ie(37568),He=ie(7939),it=Object.defineProperty,nt=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,bt=(an,Cn,fn)=>Cn in an?it(an,Cn,{enumerable:!0,configurable:!0,writable:!0,value:fn}):an[Cn]=fn,ve=(an,Cn)=>{for(var fn in Cn||(Cn={}))ke.call(Cn,fn)&&bt(an,fn,Cn[fn]);if(Et)for(var fn of Et(Cn))Le.call(Cn,fn)&&bt(an,fn,Cn[fn]);return an},ue=(an,Cn)=>nt(an,de(Cn));const rt={labelCol:{span:4},wrapperCol:{span:20}};var Nt=({callback:an,onCancel:Cn})=>{function fn(kn){an(kn)}return E.createElement(Ue.default,ue(ve({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fn,style:{width:500}}),E.createElement(Ue.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(Ct.default,null)),E.createElement(Ue.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(Ct.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(He.ZP,{type:"ghost",onClick:Cn},"\u53D6\u6D88")))},yt=ie(56383),Ie=ie(79203),Xe=ie(62957),qe=ie(77019),en=ie(78265),Ft=ie(59301),_t=({callback:an,onCancel:Cn})=>{const fn=document.createElement("canvas"),kn=fn.getContext("2d");fn.width=1e3,fn.height=800,kn.fillStyle="#ffffff",kn.fillRect(0,0,fn.width,fn.height);const lr=fn.toDataURL("image/png");return Ft.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ft.createElement(qe.Z,{style:{height:"100vh"}},Ft.createElement(en.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:lr,visible:!0,title:String(Date.now())},onOk:er=>{an({src:er.url})},onClose:Cn})))},je=ie(36207),Ht=ie(5269),gt=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,E.forwardRef)(({onCancel:an,editImgId:Cn,callback:fn},kn)=>{let lr=(0,E.useRef)(),er=(0,E.useRef)(),Gn=(0,E.useRef)(),sr=(0,E.useRef)(!1);const hr=(0,E.useRef)(!1);console.log("ref:",kn);const[yr,ur]=(0,E.useState)(0),[$t,un]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{ur(1)},[]),(0,E.useImperativeHandle)(kn,()=>({setHeight:un})),te.createElement("div",{ref:hr,className:"body-overflow-initial"},te.createElement(je.Z,{width:"100vw",height:$t,footer:null,closable:!0,placement:"bottom",open:!!yr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(jn=>{fn({src:`/api/attachments/${jn}`,id:jn})})},title:te.createElement(qe.Z,{align:"middle"},te.createElement(Ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Ht.Z,{onClick:()=>{un($t==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Ht.Z,{onClick:()=>{window.saveDrawData(jn=>{if(jn===null){gt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}gt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),fn({src:`/api/attachments/${jn}`,id:jn,disabledClose:!0})})}},te.createElement(He.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Cn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:er})))}),se=ie(35783),ne=ie(47889),pe=ie(4875);const ye=ne.ZP.Group,ct={margin:"0 8px"};var Pe=({callback:an,onCancel:Cn})=>{function fn(kn){an(kn)}return E.createElement(Ue.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fn},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(Ue.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(Ue.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(Ue.default.Item,{name:"align"},E.createElement(ye,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(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(He.ZP,{type:"ghost",onClick:Cn},"\u53D6\u6D88")))},Ge=ie(58755),dt=ie(45936),Pt=ie.n(dt),xe=(0,E.forwardRef)(({use3d:an,width:Cn,height:fn,callback:kn,showSaveButton:lr},er)=>{const Gn=(0,E.useRef)(),sr=(0,E.useRef)(),[hr,yr]=(0,E.useState)(!1),ur=(0,E.useRef)({id:Gn,appName:"graphing",width:Cn||1e3,height:fn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{sr.current=new(Pt())(ur.current,!0),window.onload=function(){sr.current.inject("applet_container")}},[]);const $t=()=>{var un=window.ggbApplet.getPNGBase64(1,!0,72);return kn&&kn(un),un};return(0,E.useEffect)(()=>{ur.current.appName=hr?"3D":"graphing",sr.current.inject("applet_container")},[hr]),(0,E.useEffect)(()=>{yr(an)},[an]),(0,E.useImperativeHandle)(er,()=>({getImgData:$t})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gn}),E.createElement(qe.Z,{align:"middle"},E.createElement(Ht.Z,{flex:1},E.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:hr,onChange:un=>yr(un)})),E.createElement(Ht.Z,null,E.createElement(He.ZP,{size:"large",onClick:$t,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Be=ie(9043);const Tt="link",kt="upload-image",Gt="add-flowchart",Qt="draw-image",wt="add-flowchart",Kt="code-block",Lt="add-table",Jt="------------",sn={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var vn=ie(2408),Sn=ie(68911);function Fe(){}let ht=0;const Bt=1e4,Vt="\u2581",cn="@\u2581\u2581@",bn="@\u2581@",Zn=`
|
|
|
**\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`,zn=["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(an){return/^\d+$/.test(an)?`${an}px`:an}const Pn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",_n={[Pn+"-B"]:"bold",[Pn+"-I"]:"italic"},On={[Tt]:"\u6DFB\u52A0\u94FE\u63A5",[Kt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[kt]:"\u6DFB\u52A0\u56FE\u7247",[Qt]:"\u6DFB\u52A0\u753B\u56FE",[Gt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Lt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Tn=({defaultValue:an="",onChange:Cn,width:fn="100%",height:kn=400,miniToolbar:lr=!1,isFocus:er=!1,watch:Gn,insertTemp:sr,mode:hr="markdown",id:yr="markdown-editor-id",showResizeBar:ur=!1,noStorage:$t=!1,showNullButton:un=!1,showNullProgramButton:jn=!1,hidetoolBar:mr=!1,fullScreen:ze=!1,onBlur:ot,onCMBeforeChange:Se,onFullScreen:We,className:we="",disablePaste:_e=!1,disabled:vt=!1,disabledFill:on=!1,placeholder:ln="",values:gn="",extraUse:Rt,onAddBlank:Mt})=>{const[Dt,dn]=(0,E.useState)(null),[et,tt]=(0,E.useState)(an),[Te,Xt]=(0,E.useState)(Gn),[Ln,Vn]=(0,E.useState)(ze),[yn,Wt]=(0,E.useState)(""),[st,xn]=(0,E.useState)(0),[An,Hn]=(0,E.useState)(kn),[Un,Jn]=(0,E.useState)(!1),[pn,Wn]=(0,E.useState)(0),[tr,or]=(0,E.useState)(0),nr=(0,E.useRef)(),pr=(0,E.useRef)(),br=(0,E.useRef)(),Kn=(0,E.useRef)(),ar=(0,E.useRef)(),Fn=(0,E.useRef)(),rr=(0,Ve.useDispatch)();(0,E.useEffect)(()=>{const qt=window.scrollY||window.pageYOffset;tt(gn),Dt==null||Dt.setValue(gn),window.scrollTo(0,qt)},[gn]),(0,E.useEffect)(()=>{We==null||We(Ln)},[Ln]),(0,E.useEffect)(()=>{if(nr.current){let qt=function(Dn,Nn){var Sr;if(_e){Nn.preventDefault();return}const Tr=Nn.clipboardData;if(Tr){const Dr=Tr.types.toString(),Lr=Tr.items;if(Dr==="Files"||Tr.types.indexOf("Files")>-1){if(Nn.preventDefault(),hr=="stex")return;try{let Nr=Lr[1];((Sr=Lr[0])==null?void 0:Sr.kind)==="file"&&(Nr=Lr[0]);const Fr=Nr.getAsFile(),zr=Fr.name.split(".").pop();(0,Ie.I)(Fr,$r=>{var jr,Xr,ei;$r.id?((jr=Fr==null?void 0:Fr.type)==null?void 0:jr.indexOf("image"))>-1?hn.replaceSelection(`<img width="100%" src="/api/attachments/${$r.id}?type=${$r.content_type})" alt="" />`):((Xr=Fr==null?void 0:Fr.type)==null?void 0:Xr.indexOf("video"))>-1?hn.replaceSelection(`<video width="100%" controls src="/api/attachments/${$r.id}"></video>`):((ei=Fr==null?void 0:Fr.type)==null?void 0:ei.indexOf("pdf"))>-1?hn.replaceSelection(`<a href="/api/attachments/${$r.id}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):zn.includes(zr)?hn.replaceSelection(`<a href="/api/attachments/${$r.id}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):hn.replaceSelection(`[${Fr.name}](/api/attachments/${$r.id}?type=${$r.content_type})`):($r==null?void 0:$r.status)===401&&(document.location.href="/user/login")})}catch(Nr){gt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const hn=Je().fromTextArea(nr.current,{mode:hr,lineNumbers:!lr,lineWrapping:!0,value:an,autoCloseTags:!0,autoCloseBrackets:!0});return hn.on("keyup",function(Dn,Nn){Nn.keyCode===8&&(Dn.getValue()==""?hn.setOption("placeholder",ln):hn.setOption("placeholder",null))}),hn.on("keydown",function(Dn,Nn){if(Nn.keyCode===8){var Sr=Qn(Dn);Sr&&Nn.preventDefault()}}),er&&hn.focus(),hn.on("paste",qt),vt&&hn.on("beforeChange",function(Dn,Nn){(Nn.origin==="paste"||Nn.origin==="+input")&&Nn.cancel()}),dn(hn),()=>{hn.off("paste",qt)}}},[]);const Cr=(0,E.useCallback)(()=>{if(pr.current)try{}catch(qt){console.log(qt,"---- to set md editor body height")}},[An,pr,Ln]);(0,E.useEffect)(()=>{function qt(){let hn=new Ce.Z(Dn=>{for(let Nn of Dn)(Nn.target.offsetHeight>0||Nn.target.offsetWidth>0)&&(Cr(),Dt.setSize("100%","100%"),Dt.refresh())});return hn.observe(nr.current.parentElement),hn}if(Dt){const hn=qt();return()=>{var Dn,Nn;(Dn=nr.current)!=null&&Dn.parentElement&&hn.unobserve((Nn=nr.current)==null?void 0:Nn.parentElement)}}},[Dt,Cr]),(0,E.useEffect)(()=>{if(Dt){let qt=[];for(const[hn,Dn]of Object.entries(_n)){let Nn={[hn]:()=>{Er(Dn)}};qt.push(Nn),Dt.addKeyMap(Nn)}return()=>{for(let hn of qt)Dt.removeKeyMap(hn)}}},[Dt]),(0,E.useEffect)(()=>{ze!==Ln&&Vn(ze)},[ze]),(0,vn.Z)(()=>{if(!$t&&st>0){let qt=new Date().getTime(),hn=window.sessionStorage.getItem(yr);qt>=st+Bt&&(!hn||hn!==et)&&(window.sessionStorage.setItem(yr,et),Jn(!0))}},Bt),(0,E.useEffect)(()=>{Xt(Gn)},[Dt,Gn]),(0,E.useEffect)(()=>{Dt&&er&&Dt.focus()},[Dt,er]),(0,E.useEffect)(()=>{if(Te&&Dt){let qt=function(Dn){let Nn=Dn.target;if(Kn.current){let Sr=Nn.scrollTop/Nn.scrollHeight;Kn.current.scrollTop=Kn.current.scrollHeight*Sr}};const hn=Dt.getScrollerElement();return hn.addEventListener("scroll",qt),()=>{hn.removeEventListener("scroll",qt)}}},[Dt,Te]),(0,E.useEffect)(()=>{if(Dt&&Se){let qt=function(hn,Dn){Se(hn,Dn)};return Dt.on("beforeChange",qt),()=>{Dt.off("beforeChange",qt)}}},[Dt,Se]),(0,E.useEffect)(()=>{if(Dt&&ot){let qt=function(){ot(Dt.getValue())};return Dt.on("blur",qt),()=>{Dt.off("blur",qt)}}},[Dt,ot]);function Qn(qt,hn){var Dn=qt.getDoc(),Nn=Dn.getCursor(),Sr=Dn.getLine(Nn.line),Tr=Sr.charAt(Nn.ch-1),Dr=Sr.lastIndexOf("@\u2581@",Nn.ch),Lr=Sr.lastIndexOf("@\u2581\u2581@",Nn.ch),Nr=Dr>Lr?Dr:Lr,Fr=Dr>Lr?3:4;if(cn.indexOf(Tr)===-1)return null;if(console.log("change1:",hn,qt,Sr,Nn,Nr,Dr,Lr,Tr),Nr>=0&&Nn.ch-Nr<5){var zr=Nr+Fr;return Dn.replaceRange("",{line:Nn.line,ch:Nr},{line:Nn.line,ch:zr}),{line:Nn.line,ch:zr}}return null}(0,E.useEffect)(()=>{if(Dt){let qt=function(hn,Dn){const Nn=hn.getValue();tt(Nn),xn(new Date().getTime()),hn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Cn&&(jn?Cn(Nn,tn(Nn)):Cn(Nn))};return Dt.on("change",qt),()=>{Dt.off("change",qt)}}},[Dt,Cn]),(0,E.useEffect)(()=>{if(Dt)if(an==null)Dt.setValue(""),tt("");else{const qt=window.scrollY||window.pageYOffset;an!==Dt.getValue()&&(Dt.setValue(an),tt(an),Dt.setCursor(vt?1:Dt.lineCount(),0),window.scrollTo(0,qt))}},[Dt,an]);const Er=(0,E.useCallback)(qt=>{const hn=Dt.getCursor(),Dn=Dt.getSelection();let Nn=Dn.split(`
|
|
|
`);switch(qt){case"bold":return Dt.replaceSelection("**"+Dn+"**"),Dn===""&&Dt.setCursor(hn.line,hn.ch+2),Dt.focus();case"italic":return Dt.replaceSelection("*"+Dn+"*"),Dn===""&&Dt.setCursor(hn.line,hn.ch+1),Dt.focus();case"code":return Dt.replaceSelection("`"+Dn+"`"),Dn===""&&Dt.setCursor(hn.line,hn.ch+1),Dt.focus();case"inline-latex":return(0,Sn.Ye)(rr)?void 0:(Wt("inline-latex"),Dt.focus());case"latex":return Dt.replaceSelection("```latex\n"+Dn+"\n```"),Dt.setCursor(hn.line+1,Dn.length+1),Dt.focus();case"line-break":return Dt.replaceSelection(`<br/>
|
|
|
`),Dt.focus();case"list-ul":return Dn===""?Dt.replaceSelection("- "+Dn):Dt.replaceSelection(Nn.map(Sr=>Sr===""?"":`- ${Sr}`).join(`
|
|
|
`)),Dt.focus();case"list-ol":return Dn===""?Dt.replaceSelection("1. "+Dn):Dt.replaceSelection(Nn.map((Sr,Tr)=>Sr===""?"":`${Tr+1}. ${Sr}`).join(`
|
|
|
`)),Dt.focus();case"add-null-ch":Mt==null||Mt();return;case"add-signal":return Dn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection(bn),Dt.focus();case"add-multiple":return Dn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection(cn),Dt.focus();case"inster-template-1":return Dn===""&&Dt.setCursor(hn.line,hn.ch),Dt.replaceSelection(Zn),Dt.focus();case"eraser":return Dt.setValue(""),Dt.focus();case"trigger-watch":return Xt(!Te),Dt.focus();case"trigger-full-screen":return Vn(!Ln),Dt.focus();case Tt:Wt(Tt);return;case Kt:Wt(Kt);return;case kt:Wt(kt);return;case Qt:Wt(Qt);return;case"maths-latex":if((0,Sn.Ye)(rr))return;Wt("maths-latex");return;case Gt:ar.current="",sessionStorage.removeItem("file_id"),Wt(Gt);return;case Lt:Wt(Lt);return;default:throw new Error}},[Dt,Te,Ln]),qn=(0,E.useCallback)((qt,hn)=>{var Dn,Nn,Sr,Tr,Dr,Lr;qt!=null&&qt.disabledClose||Wt("");const{src:Nr,alt:Fr,id:zr}=qt||{};switch(yn){case Tt:const{title:oi,link:ti}=qt;return Dt.replaceSelection(`[${oi}](${ti})`),Dt.focus();case Kt:const{language:ai,content:wr}=qt;return Dt.replaceSelection(["```"+ai,wr,"```"].join(`
|
|
|
`)),Dt.focus();case"maths-latex":for(var $r=atob(qt),jr=new Uint8Array($r.length),Xr=0;Xr<$r.length;Xr++)jr[Xr]=$r.charCodeAt(Xr);var ei=new Blob([jr],{type:"image/png"});(0,Ie.I)(ei,Si=>{Si.id?Dt.replaceSelection(``):(Si==null?void 0:Si.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Sn.Ye)(rr))return;Dt.replaceSelection("`$$"+qt+"$$`");break;case wt:if(!zr)return;Dt.getValue().indexOf(Nr)===-1?Dt.replaceSelection(`<center><img id="${zr}" width="80%" src="${Nr}" class="draw-flowchart" alt="${Fr||""}" /></center>`):document.getElementById(zr).src=se.Z.API_SERVER+Nr+"?t="+Date.now();break;case kt:case Qt:const gr=hn,Zr=(Sr=(Nn=(Dn=gr==null?void 0:gr.name)==null?void 0:Dn.split("."))==null?void 0:Nn.pop)==null?void 0:Sr.call(Nn);return((Tr=gr==null?void 0:gr.type)==null?void 0:Tr.indexOf("image"))>-1||!(gr!=null&&gr.type)?gr!=null&&gr.align||gr!=null&&gr.width?Dt.replaceSelection(`<p style="text-align:${gr.align||"initial"}"><img width="${gr.width?gr.width+"%":"initial"}" src="${Nr}" alt="${Fr||""}" /></p>`):Dt.replaceSelection(`<img width="100%" src="${Nr}" alt="${Fr||""}" />`):((Dr=gr==null?void 0:gr.type)==null?void 0:Dr.indexOf("video"))>-1?Dt.replaceSelection(`<video width="100%" controls src="${Nr}"></video>`):((Lr=gr==null?void 0:gr.type)==null?void 0:Lr.indexOf("pdf"))>-1?Dt.replaceSelection(`<a href="${Nr}?type=${gr.type}&disposition=inline" target="_blank">${gr.name}</a>`):zn.includes(Zr)?Dt.replaceSelection(`<a href="${Nr}?type=office&disposition=inline" target="_blank">${gr.name}</a>`):Dt.replaceSelection(`[${gr.name}](${Nr})`),Dt.focus();case Lt:const{row:_r,col:li,align:Xi}=qt;let Bi=`
|
|
|
`;for(let Si=0;Si<_r;Si++){let pi=[],Gr=[];for(let di=0;di<li;di++)Si===1&&Gr.push(sn[Xi]),pi.push(" ");Si===1&&(Bi+=`| ${Gr.join(" | ")} |
|
|
|
`),Bi+=`| ${pi.join(li===1?"":" | ")} |
|
|
|
`}return Dt.replaceSelection(Bi+`
|
|
|
`),Dt.focus();default:throw new Error}},[Dt,yn]),In=(0,E.useMemo)(()=>{switch(yn){case Tt:return E.createElement(Nt,{callback:qn,onCancel:cr});case Kt:return E.createElement(yt.Z,{callback:qn,onCancel:cr});case kt:return E.createElement(Ie.Z,{callback:qn,onCancel:cr});case Gt:return E.createElement(oe,{editImgId:ar.current,callback:qn,onCancel:cr});case Lt:return E.createElement(Pe,{callback:qn,onCancel:cr});case"maths-latex":return E.createElement(xe,{showSaveButton:!0,callback:qn});case"inline-latex":return E.createElement(Be.Z,{showSaveButton:!0,callback:qn});default:return null}},[yn]);function cr(){Wt("")}(0,E.useEffect)(()=>{if(br.current){let qt=function(Dr){Sr=!0,Tr=Dr.pageY},hn=function(){Sr=!1},Dn=function(Dr){if(Sr){let Lr=Dr.pageY-Tr;Lr<0&&(Lr=0),Lr>300&&(Lr=300);let Nr=kn+Lr+"px";Hn(Nr)}},Nn=br.current,Sr=!1,Tr=0;return Nn.addEventListener("mousedown",qt),document.addEventListener("mousemove",Dn),document.addEventListener("mouseup",hn),()=>{Nn.removeEventListener("mousedown",qt),document.removeEventListener("mousemove",Dn),document.removeEventListener("mouseup",hn)}}},[Dt,br]),(0,E.useEffect)(()=>{Hn(kn)},[kn]);const fr=rn(fn),xr=rn(An),Mn={width:fr,height:xr},Ut=(0,E.useMemo)(()=>{if(st){let qt=new Date(st),hn=qt.getHours(),Dn=qt.getMinutes(),Nn=qt.getSeconds();return hn=hn<10?"0"+hn:hn,Dn=Dn<10?"0"+Dn:Dn,Nn=Nn<10?"0"+Nn:Nn,`${hn}:${Dn}:${Nn}`}return 0},[st]),tn=qt=>{const hn=[];if(jn){let Dn=-1;qt=qt.replace(/(@▁▁@|@▁@)/g,function(Nn,Sr,Tr){hn.push({multiLine:Nn!==bn})})}return hn};function Yt(){window.sessionStorage.removeItem(yr),Jn(!1),xn(0)}function Zt(){Jn(!1),xn(0),Dt.setValue(window.sessionStorage.getItem(yr))}(0,E.useEffect)(()=>{On[yn]&&yn!==Qt&&yn!==Gt&&setTimeout(()=>{const qt=document.getElementsByClassName("markdown-popup-form")[0],hn=window.innerWidth/2-qt.offsetWidth/2,Dn=window.innerHeight/2-qt.offsetHeight/2;Wn(hn),or(Dn)},0)},[yn]);const wn=qt=>{qt.preventDefault();const hn=qt.clientX-pn,Dn=qt.clientY-tr;document.body.onmousemove=Nn=>{let Sr=Nn.clientX-hn,Tr=Nn.clientY-Dn;const Dr=document.getElementsByClassName("markdown-popup-form")[0],Lr=window.innerWidth-Dr.offsetWidth,Nr=window.innerHeight-Dr.offsetHeight;Sr=Math.max(0,Math.min(Sr,Lr)),Tr=Math.max(0,Math.min(Tr,Nr)),Rn(Nn.clientX,Nn.clientY,hn,Dn)&&(Wn(Sr),or(Tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Rn=(qt,hn,Dn,Nn)=>{const Sr=document.body.clientHeight,Tr=document.body.clientWidth;return qt<20&&Dn>qt||qt>Tr-20&&Dn<qt||hn<20&&Nn>hn||hn>Sr-20&&Nn<hn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:pr},E.createElement("div",{className:`markdown-editor-container ${we} ${Te?"on-preview":""} ${lr?"mini":""} ${Ln?"full-screen":""}`,style:Mn},E.createElement(Ot,{insertTemp:sr,watch:Te,fullScreen:Ln,showNullButton:un,showNullProgramButton:jn,onActionCallback:Er,hidetoolBar:mr,extraUse:Rt}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:nr,placeholder:ln})),Te?E.createElement("div",{ref:Kn,className:"preview-container"},hr==="stex"&&E.createElement(mt,{value:et}),hr!=="stex"&&E.createElement(Ee.Z,{edit:!0,disabledFill:on,showProgramFill:jn,value:et,openEditor:qt=>{var hn;ar.current=qt,(hn=Fn.current)==null||hn.setHeight("100vh"),setTimeout(()=>{Wt("add-flowchart")},150)}})):null))),ur?E.createElement("a",{ref:br,className:"editor-resize"}):null,yn===Qt&&E.createElement(_t,{callback:qn,onCancel:cr}),yn===Gt&&E.createElement(oe,{ref:Fn,editImgId:ar.current,callback:qn,onCancel:cr}),E.createElement(at.Z,null,On[yn]&&yn!==Qt&&yn!==Gt?E.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:pn,top:tr},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:wn},On[yn]),open:!0,onCancel:cr,footer:null,destroyOnClose:!0,width:yn===Gt?"1200px":null,height:yn===Gt?"80vh":null,className:"markdown-popup-form"},In):null))}},79203:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return lt},I:function(){return Ot}});var E=ie(28284),Ve=ie(6767),ge=ie(37568),Je=ie(44104),Ce=ie(4875),be=ie(47889),Oe=ie(7939),$e=ie(8240),De=ie(59301),he=ie(59301),Ze=Object.defineProperty,Ee=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Ae=(at,Ue,Ct)=>Ue in at?Ze(at,Ue,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):at[Ue]=Ct,ft=(at,Ue)=>{for(var Ct in Ue||(Ue={}))Me.call(Ue,Ct)&&Ae(at,Ct,Ue[Ct]);if(Qe)for(var Ct of Qe(Ue))Ne.call(Ue,Ct)&&Ae(at,Ct,Ue[Ct]);return at},xt=(at,Ue)=>Ee(at,mt(Ue));const{useForm:It}=E.default,pt={width:280,marginRight:10},Re={labelCol:{span:5},wrapperCol:{span:19}};var lt=({callback:at,onCancel:Ue})=>{const[Ct]=It();let He=(0,De.useRef)();function it(Et){He.current.width=Ct.getFieldValue("width"),He.current.align=Ct.getFieldValue("align"),at(Et,He.current)}function nt(Et,ke){if(Et.status===-1){Ve.ZP.error(Et.message);return}Ct.setFieldsValue({src:`/api/attachments/${Et.id}`,type:ke.type})}function de(Et){let ke=Et.target.files[0];He.current=ke,Ot(ke,nt)}return he.createElement(E.default,xt(ft({form:Ct},Re),{className:"upload-image-panel",onFinish:it,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:pt})),he.createElement(Ke,{onFileChange:de}))),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(Je.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(be.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(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),he.createElement(Oe.ZP,{type:"default",onClick:Ue},"\u53D6\u6D88"))))};function Ke({onFileChange:at}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:at}))}function Ot(at,Ue){if(!at)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ct=new FormData;Ct.append("editormd-image-file",at),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var He=new window.XMLHttpRequest;He.withCredentials=!0,He.addEventListener("load",function(it){Ue(JSON.parse(it.target.responseText),at)},!1),He.addEventListener("error",function(it){console.error(it)},!1),He.open("POST",`${$e.KI}/api/attachments.json`),He.send(Ct)}},88969:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return ge}});var E=ie(59301),Ve=ie(4676);class ge extends E.Component{constructor(Ce){super(Ce);const be=window.document;this.node=be.createElement("div"),be.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,Ve.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(nn,jt,ie){"use strict";ie.d(jt,{SV:function(){return _t},ZP:function(){return Ft}});var E=ie(59301),Ve=ie(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"]},Je={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(`
|
|
|
`)}]},be={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(`
|
|
|
`)}]},Oe={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 $e=ie(53184),De=ie.n($e),he=(je,Ht,gt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(gt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(gt.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((gt=gt.apply(je,Ht)).next())});const Ze={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Ee=(je,Ht,gt,ae)=>{const te=Ht.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:gt.lineNumber,endColumn:gt.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:je.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},mt=(je,Ht,gt,ae)=>{je.languages.registerCompletionItemProvider(Ht,{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:[...Ee(je,te,ee,se),...gt.map(ye=>({label:ye,kind:je.languages.CompletionItemKind.Keyword,documentation:ye,insertText:ye,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(ye=>({label:ye.label,kind:je.languages.CompletionItemKind.Snippet,documentation:ye.content,insertText:ne.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:je.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var Qe=je=>{Ze.languages.forEach(Ht=>{je.languages.registerDocumentFormattingEditProvider(Ht,{provideDocumentFormattingEdits(gt){return he(this,null,function*(){const ae=De()(gt.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:gt.getFullModelRange(),text:ae}]})}})}),mt(je,"java",Je.keywords,Je.quickKey),mt(je,"cpp",Ce.keywords,Ce.quickKey),mt(je,"c",ge.keywords,[]),mt(je,"python",be.keywords,be.quickKey),mt(je,"scala",Oe.keywords,Oe.quickKey)};const Me="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,Ae=(je,Ht,gt)=>Ht in je?Ne(je,Ht,{enumerable:!0,configurable:!0,writable:!0,value:gt}):je[Ht]=gt,ft=(je,Ht,gt)=>Ae(je,typeof Ht!="symbol"?Ht+"":Ht,gt);const xt=class $s{constructor(Ht,gt,ae){this.placeholder=Ht,this.editor=gt,this.monaco=ae,gt.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)}};ft(xt,"ID","editor.widget.placeholderHint");var pt=xt,Re=ie(96236),lt=ie(6767),Ke=ie(25399),Ot=ie(89392),at=ie(99936),Ue=ie(56102),Ct=Object.defineProperty,He=Object.defineProperties,it=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,ke=(je,Ht,gt)=>Ht in je?Ct(je,Ht,{enumerable:!0,configurable:!0,writable:!0,value:gt}):je[Ht]=gt,Le=(je,Ht)=>{for(var gt in Ht||(Ht={}))de.call(Ht,gt)&&ke(je,gt,Ht[gt]);if(nt)for(var gt of nt(Ht))Et.call(Ht,gt)&&ke(je,gt,Ht[gt]);return je},bt=(je,Ht)=>He(je,it(Ht)),ve=(je,Ht)=>{var gt={};for(var ae in je)de.call(je,ae)&&Ht.indexOf(ae)<0&&(gt[ae]=je[ae]);if(je!=null&&nt)for(var ae of nt(je))Ht.indexOf(ae)<0&&Et.call(je,ae)&&(gt[ae]=je[ae]);return gt},ue=(je,Ht,gt)=>new Promise((ae,te)=>{var ee=ne=>{try{se(gt.next(ne))}catch(pe){te(pe)}},oe=ne=>{try{se(gt.throw(ne))}catch(pe){te(pe)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(ee,oe);se((gt=gt.apply(je,Ht)).next())});function rt(je){return/^\d+$/.test(je)?`${je}px`:je}function Nt(){}let yt=!1;const Ie={"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 Xe(je=[]){let Ht=je;if(Array.isArray(je)){for(let gt=0;gt<je.length;gt++){let ae=Ie[je[gt]];if(ae)return ae}return Ht[0]}return Ie[Ht]||Ht}let qe=null;const en=()=>ue(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(je){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",je)}});var Ft=je=>{var Ht=je,{width:gt="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:ne={},theme:pe="vs-dark",onEditBlur:ye,isCopy:ct=!1,onSave:Pe,autoHeight:Ge=!1,forbidCopy:dt=!1,forbidCopyTips:Pt,onChange:St=Nt,editorDidMount:xe=Nt,onFocus:Be=Nt,onBreakPoint:Tt=Nt,breakPointValue:kt=[],filename:Gt="educoder.txt",errorLine:Qt,errorContent:wt="",highlightLine:Kt,openBreakPoint:Lt=!1,placeholder:Jt="",showMiniMap:sn=!0}=Ht,vn=ve(Ht,["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 Sn=(0,E.useRef)(),Fe=(0,E.useRef)({}),ht=(0,E.useRef)(),Bt=(0,E.useRef)(),Vt=(0,E.useRef)([]),cn=(0,E.useRef)(!1),bn=(0,E.useRef)(),Zn=(0,E.useRef)(),zn=(0,E.useRef)(!1),[rn,En]=(0,E.useState)(!1);function Pn(){let $t;return Sn.current&&($t=new Ve.Z(un=>{for(let jn of un)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&Fe.current.instance.layout()}),$t.observe(Sn.current)),$t}function _n(){lt.ZP.warning({content:decodeURIComponent(Pt||Me),key:"monaco-editor-tip"})}const On=()=>{let $t=Fe.current.instance;if(te!=null&&$t&&rn){const un=$t.getModel();un&&te!==un.getValue()&&(yt=!0,un.setValue(te),$t.layout(),yt=!1)}};(0,E.useEffect)(()=>{const $t=at.Z.subscribe("formatDocument",un=>{var jn;let mr=Fe.current.instance;(jn=mr==null?void 0:mr.getAction)==null||jn.call(mr,"editor.action.formatDocument").run()});return window.updateMonacoValue=un=>{St(un)},$t},[]),(0,E.useEffect)(()=>{var $t;let un=Fe.current.instance;Bt.current&&clearTimeout(Bt.current),Bt.current=setTimeout(()=>{On()},500),te&&(te!=null&&te.length)&&(($t=un==null?void 0:un.updateOptions)==null||$t.call(un,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,rn,Fe.current]),(0,E.useEffect)(()=>{if(Qt&&Fe.current&&Fe.current.instance){let un=Fe.current.instance;un.changeViewZones(function(jn){var mr=document.createElement("div");mr.style.padding="10px 20px",mr.style.width="calc(100% - 20px)",mr.className="my-error-line-wrp",mr.innerHTML=wt,jn.addZone({afterLineNumber:Qt||11,heightInLines:3,domNode:mr})});var $t={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}};un.addOverlayWidget($t),un.revealPositionInCenter({lineNumber:20,column:1})}},[Qt,Fe.current,rn]);const Tn=($t="",un)=>{if(!$t||$t.trim()==="")return!0;const mr=Fe.current.instance.getModel().getLineTokens(un);let ze=!1;for(let ot=0;ot<2;ot++)mr.getStandardTokenType(ot)===1&&(ze=!0);return ze};(0,E.useEffect)(()=>{var $t;const un=($t=Fe.current)==null?void 0:$t.instance;if(un&&rn&&dt){const jn=un.onDidBlurEditorWidget(()=>{zn.current=!1}),mr=un.onDidFocusEditorText(()=>{zn.current=!0});return()=>{jn.dispose(),mr.dispose()}}},[Fe.current,rn,dt]),(0,E.useEffect)(()=>{var $t;if(($t=Fe.current)!=null&&$t.instance&&rn&&Lt){let un=Fe.current.instance,jn=un.getModel();if(!jn)return;(()=>{var Rt;let Mt=[],Dt=[];const dn=jn.getAllDecorations();for(let tt of dn)tt.options.className==="highlighted-line"&&(Mt.push((Rt=tt==null?void 0:tt.range)==null?void 0:Rt.startLineNumber),Dt.push(tt==null?void 0:tt.id));if(Kt===Mt[0])return;jn.deltaDecorations(Dt,[]);const et=jn.getLineCount();Kt&&Kt<=et&&(un.deltaDecorations([],[{range:new qe.Range(Kt,1,Kt,jn.getLineMaxColumn(Kt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),un.revealLineInCenter(Kt))})();const ze=(Rt=!1)=>{var Mt;let Dt=[],dn=[];const et=jn.getAllDecorations();for(let tt of et)tt.options.linesDecorationsClassName==="breakpoints-select"&&(Dt.push((Mt=tt==null?void 0:tt.range)==null?void 0:Mt.startLineNumber),dn.push(tt==null?void 0:tt.id));if(Rt)return{lines:Dt,ids:dn};Tt(Dt)},ot=Rt=>ue(void 0,null,function*(){let Mt={range:new qe.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jn.deltaDecorations([],[Mt]),ze()}),Se=Rt=>ue(void 0,null,function*(){let Mt=[];const Dt=un.getLineDecorations(Rt);for(let dn of Dt)dn.options.linesDecorationsClassName==="breakpoints-select"&&Mt.push(dn.id);yield jn.deltaDecorations(Mt,[]),ze()}),We=Rt=>{let Mt=un.getLineDecorations(Rt);for(let Dt of Mt)if(Dt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ot.isEqual)(kt,ze(!0).lines)){jn.deltaDecorations(ze(!0).ids,[]);const Rt=kt.map(Mt=>({range:new qe.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jn.deltaDecorations([],Rt)}const we=un.onDidChangeModelContent(Rt=>{let Mt=un.getPosition();if(Mt){let Dt=Mt.lineNumber;clearTimeout(Zn.current),Zn.current=setTimeout(()=>{Tn(jn.getLineContent(Dt),Dt)?Se(Dt):We(Dt)?(Se(Dt),ot(Dt)):ze()},100)}}),_e=un.onMouseDown(Rt=>{var Mt,Dt,dn;if(Rt.target.detail&&((dn=(Dt=(Mt=Rt.target)==null?void 0:Mt.element)==null?void 0:Dt.className)!=null&&dn.includes("line-numbers"))){let et=Rt.target.position.lineNumber;if(Tn(jn.getLineContent(et),et))return;We(et)?Se(et):ot(et)}}),vt=Rt=>{let Mt={range:new qe.Range(Rt,1,Rt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Vt.current=un.deltaDecorations(Vt.current,[Mt])},on=()=>{Vt.current=un.deltaDecorations(Vt.current,[])},ln=un.onMouseMove(Rt=>{var Mt,Dt,dn;if(on(),Rt.target.detail&&((dn=(Dt=(Mt=Rt.target)==null?void 0:Mt.element)==null?void 0:Dt.className)!=null&&dn.includes("line-numbers"))){let et=Rt.target.position.lineNumber;if(Tn(jn.getLineContent(et),et))return;vt(et)}}),gn=un.onMouseLeave(()=>{on()});return()=>{we.dispose(),_e.dispose(),ln.dispose(),gn.dispose()}}},[Fe.current,rn,kt,Kt,Lt,ee]),(0,E.useEffect)(()=>{var $t;($t=Fe.current)!=null&&$t.instance&&Lt&&Fe.current.instance.setPosition({lineNumber:0,column:0})},[Kt]);function an(){let $t=Fe.current.instance;if($t){const un=$t.getSelection(),jn=Fe.current.pastePos||{},mr=new qe.Range(jn.startLineNumber||un.endLineNumber,jn.startColumn||un.endColumn,jn.endLineNumber||un.endLineNumber,jn.endColumn||un.endColumn);setTimeout(()=>{$t.executeEdits("",[{range:mr,text:""}])},300)}}function Cn($t){(window.navigator.platform.match("Mac")?$t.metaKey:$t.ctrlKey)&&$t.keyCode==83&&($t.preventDefault(),Pe())}const fn=()=>{if(Ge&&Fe.current.instance){const $t=Fe.current.instance.getContentHeight();yr($t<ae?ae:$t)}else yr(ae)};function kn($t){var un=document.createEvent("MouseEvents");un.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),$t.dispatchEvent(un)}const lr=$t=>{if(!zn.current)return;const{keyCode:un,ctrlKey:jn,metaKey:mr,target:ze,type:ot}=$t;return(ot==="paste"||(un===67||un===86)&&(mr||jn))&&ze.nodeName==="TEXTAREA"&&(_n(),$t.preventDefault()),!1};function er($t,un){var jn=window.URL||window.webkitURL||window,mr=new Blob([un]),ze=document.createElementNS("http://www.w3.org/1999/xhtml","a");ze.href=jn.createObjectURL(mr),ze.download=$t,kn(ze)}(0,E.useEffect)(()=>{fn()},[fn]),(0,E.useEffect)(()=>{Sn.current&&!rn&&Promise.all([ie.e(8909),ie.e(1859)]).then(ie.bind(ie,71448)).then($t=>{try{qe=$t,Fe.current.instance=qe.editor.create(Sn.current,{value:te,language:Xe(ee),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:sn||!1}},ne);const un=Fe.current.instance;let ze=[...Re.BH._menuItems].find(we=>we[0]._debugName=="EditorContext")[1],ot=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Se=(we,_e)=>{var vt,on;let ln=we._first;do _e.includes((on=(vt=ln.element)==null?void 0:vt.command)==null?void 0:on.id)&&we._remove(ln);while(ln=ln.next)};if(xe(un,qe),setTimeout(()=>{fn(),Fe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{er(Gt||"educoder.txt",un.getValue())}})},500),Fe.current.subscription=un.onDidChangeModelContent(we=>{cn.current?clearTimeout(bn.current):(fn(),St(un.getValue(),we)),bn.current=setTimeout(()=>{cn.current=!1},500)}),window.Monaco||Qe(qe,Xe(ee)),dt&&(Se(ze,ot),Sn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",lr),window.removeEventListener("paste",lr),window.addEventListener("keydown",lr),window.addEventListener("paste",lr)),window.Monaco=qe,ye&&un.onDidBlurEditorWidget(()=>{ye(un.getValue())}),Be&&un.onDidFocusEditorText(()=>{dt&&en(),Be(un.getValue())}),dt){en();try{un.onDidPaste(we=>{const _e=un.getSelection(),vt=Fe.current.pastePos||{},on=new qe.Range(vt.startLineNumber||_e.endLineNumber,vt.startColumn||_e.endColumn,vt.endLineNumber||_e.endLineNumber,vt.endColumn||_e.endColumn);un.executeEdits("",[{range:we.range,text:""}])})}catch(we){}}let We=Pn();return Jt&&typeof Jt=="string"&&new pt(Jt,un,qe),En(!0),()=>{const we=Fe.current.instance;we.dispose();const _e=we.getModel();_e&&_e.dispose(),Fe.current.subscription&&Fe.current.subscription.dispose(),We.unobserve(Sn.current)}}catch(un){}})},[]),(0,E.useEffect)(()=>{if(Fe.current.instance&&rn)return document.addEventListener("keydown",Cn,!1),()=>{document.removeEventListener("keydown",Cn)}},[Pe,rn]),(0,E.useEffect)(()=>{let $t=Fe.current.instance;if($t&&rn){let un=Xe(ee);qe.editor.setModelLanguage($t.getModel(),un)}},[ee,rn]),(0,E.useEffect)(()=>{Fe.current.instance&&rn&&qe.editor.setTheme(pe)},[pe,rn]),(0,E.useEffect)(()=>{let $t=Fe.current.instance;ht.current=se,$t&&rn&&($t.updateOptions(Le({},se)),setTimeout(()=>{$t.getModel().updateOptions(Le({},se))},200))},[JSON.stringify(se),rn]),(0,E.useEffect)(()=>{let $t=Fe.current.instance;$t&&rn&&$t.layout()},[gt,ae,rn]);const[Gn,sr]=(0,E.useState)(rt(gt)),[hr,yr]=(0,E.useState)(rt(ae)),ur=bt(Le({},oe),{width:Gn,height:hr,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:Sn,style:ur,onFocus:()=>{dt&&en()}},ct&&E.createElement(Ue.CopyToClipboard,{text:te,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(Ke.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function _t({width:je="100%",height:Ht="100%",original:gt,modified:ae,language:te,options:ee={}}){const oe=(0,E.useRef)(),[se,ne]=(0,E.useState)(null);function pe(Ge){let dt;return oe.current&&(dt=new Ve.Z(Pt=>{for(let St of Pt)(St.target.offsetHeight>0||St.target.offsetWidth>0)&&Ge.layout()}),dt.observe(oe.current)),dt}(0,E.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ge=>{qe=Ge;const dt=qe.editor.createDiffEditor(oe.current,bt(Le({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(dt);let Pt=pe(dt);return()=>{dt.dispose();const St=dt.getModel();St&&St.dispose(),Pt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{se&&se.setModel({original:qe.editor.createModel(gt,te),modified:qe.editor.createModel(ae,te)})},[gt,ae,te,se]);const ye=rt(je),ct=rt(Ht),Pe={width:ye,height:ct};return E.createElement("div",{className:"my-diff-editor",ref:oe,style:Pe})}},2408:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Ve}});var E=ie(59301);function Ve(ge,Je){const Ce=(0,E.useRef)();(0,E.useEffect)(()=>{Ce.current=ge}),(0,E.useEffect)(()=>{function be(){Ce.current()}if(Je!==null){let Oe=setInterval(be,Je);return()=>clearInterval(Oe)}},[Je])}},14008:function(nn,jt,ie){"use strict";ie.r(jt),ie.d(jt,{default:function(){return dn}});var E=ie(59301),Ve=ie(63823),ge=ie(93041),Je=ie(24404),Ce=ie(28284),be=ie(6767),Oe=ie(37285),$e=ie(91882),De=ie(77019),he=ie(5269),Ze=ie(25399),Ee=ie(37568),mt=ie(7939),Qe=ie(32134),Me=ie(8973),Ne=ie(62957),Ae=ie(62673),ft=ie(4875),xt=ie(58870),It=ie(32862),pt=ie(56375),Re={flex_box_center:"flex_box_center___T9vjl",flex_space_between:"flex_space_between___zZP1J",flex_box_vertical_center:"flex_box_vertical_center___vbIhw",flex_box_center_end:"flex_box_center_end___SjRau",flex_box_column:"flex_box_column___Ic_zi",wrap:"wrap___GtXAk",modal:"modal___mDuC3",titleWrap:"titleWrap___EzCZh",required:"required___KgfdI",title:"title___TMgfc",colorGray:"colorGray___xNVTs",choiceWrap:"choiceWrap___Rv9ug",answer:"answer___hVpls",activeAnswer:"activeAnswer___oJoq9",deleteIcon:"deleteIcon___bkn4b",addIcon:"addIcon___S2pDY",editorWrap:"editorWrap___BOx_r",htmlWrap:"htmlWrap___ERVlQ",radio:"radio___lrt5b",color333:"color333___pz3OT",color999:"color999___jtQ7e",questionType:"questionType___qUnUb",questionChoices:"questionChoices___n36qp"},lt=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Ue=(et,tt,Te)=>tt in et?lt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,Ct=(et,tt)=>{for(var Te in tt||(tt={}))Ot.call(tt,Te)&&Ue(et,Te,tt[Te]);if(Ke)for(var Te of Ke(tt))at.call(tt,Te)&&Ue(et,Te,tt[Te]);return et},He=(et,tt)=>{var Te={};for(var Xt in et)Ot.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&Ke)for(var Xt of Ke(et))tt.indexOf(Xt)<0&&at.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},it=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const nt=["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"],de=(et,tt)=>{var Te=et,{problemset:Xt,globalSetting:Ln,loading:Vn,dispatch:yn,onRef:Wt=()=>{},editData:st}=Te,xn=He(Te,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[An,Hn]=(0,E.useState)([]),[Un,Jn]=(0,E.useState)(),[pn,Wn]=(0,E.useState)([]),[tr,or]=(0,E.useState)(""),[nr,pr]=(0,E.useState)(5),[br,Kn]=(0,E.useState)(!1),ar=(0,Ve.useParams)();(0,E.useEffect)(()=>{Hn(["","","",""])},[]),(0,E.useEffect)(()=>{if(!(st!=null&&st.question_choices)){Kn(!0);return}or(st==null?void 0:st.question_title),pr(parseInt(st==null?void 0:st.question_score)),Hn(st==null?void 0:st.question_choices.map(In=>In.choice_text));const qn=[];st==null||st.standard_answer.map((In,cr)=>{qn.push(In-1)}),Wn(qn)},[st]),(0,E.useImperativeHandle)(tt,()=>({onSave:Fn,isEdit:br}));const Fn=()=>it(void 0,null,function*(){if(!tr)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const qn=An.findIndex(fr=>!fr);if(qn>-1)return be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${nt[qn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!pn.length)return be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(pn.length<1)return be.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const In=An.map((fr,xr)=>({choice_text:fr,is_answer:pn.includes(xr)?xr+1:0}));let cr;st.question_id?cr=yield yn({type:"exercise/editExerciseQuestion",payload:{id:st.question_id,question_title:tr,question_type:1,question_score:"5.0",question_choices:In.map(fr=>fr.choice_text),standard_answers:In.filter(fr=>fr.is_answer).map(fr=>fr.is_answer)}}):cr=yield yn({type:"exercise/addExerciseQuestion",payload:{categoryId:ar.categoryId,question_title:tr,question_type:1,question_score:"5.0",question_choices:In.map(fr=>fr.choice_text),standard_answers:In.filter(fr=>fr.is_answer).map(fr=>fr.is_answer)}}),cr.status===0&&(be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Kn(!1),yn({type:"exercise/editExercise",payload:Ct({},ar)}))}),rr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Cr=qn=>it(void 0,null,function*(){switch(qn.id){case"del":let In;Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return it(this,null,function*(){yield(0,xt.Fl)({id:st.question_id}),yn({type:"exercise/editExercise",payload:Ct({},ar)})})}});break;case"up":case"down":yield yn({type:"exercise/exeriseMoveUpDown",payload:{id:st.question_id,opr:qn.id}}),yn({type:"exercise/editExercise",payload:Ct({},ar)});break;case"edit":Kn(!0);break}}),Qn=()=>{var qn;return E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},st.key,"\u3001\u591A\u9009\u9898"),"\uFF08",st.question_score,"\u5206\uFF09"),!st.hideAction&&rr.map(function(In,cr){return In.id==="up"&&st.key===1||In.id==="down"&&st.key===st.len?null:E.createElement(Ze.Z,{key:cr,placement:"bottom",title:In.name},E.createElement("span",{onClick:()=>Cr(In),className:In.icon}))})),E.createElement("div",{className:"mt5"},E.createElement(pt.Z,{value:st.question_title})),E.createElement("div",{className:Re.questionChoices},(qn=st==null?void 0:st.question_choices)==null?void 0:qn.map(function(In,cr){return E.createElement(De.Z,null,E.createElement(he.Z,null,E.createElement(Ae.default,{key:cr,checked:st.standard_answer.includes(cr+1),disabled:!0},nt[cr],".")),E.createElement(he.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},E.createElement(pt.Z,{value:In.choice_text}))))})))},Er=()=>E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),E.createElement("p",{className:Re.titleWrap},E.createElement("span",{className:Re.required},"*"),E.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),E.createElement(It.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:tr,onChange:qn=>or(qn)}),An.map((qn,In)=>E.createElement("div",{className:Re.choiceWrap,key:In},E.createElement(Ze.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Re.answer} ${pn.includes(In)?Re.activeAnswer:""}`,onClick:()=>{pn.includes(In)?Wn(pn.filter(cr=>cr!==In)):Wn([...pn,In])}},nt[In])),E.createElement("div",{className:Re.editorWrap},Un===In?E.createElement(It.Z,{id:`single-question-option-${In}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:qn,onChange:cr=>{An[In]=cr,Hn(An)}}):E.createElement("div",{className:Re.htmlWrap,onClick:()=>Jn(In)},E.createElement(pt.Z,{value:qn}))),In>1&&E.createElement(Ze.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Re.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>Hn(An.filter((cr,fr)=>fr!==In))})),In<7&&In===An.length-1&&E.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Re.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Hn([...An,""])})))),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(ft.Z,{value:nr,max:1e4,min:-1,onChange:qn=>{pr(qn)}})," \u5206"),E.createElement("aside",{className:"tr"},st.question_id&&E.createElement(mt.ZP,{type:"default",onClick:()=>Kn(!1)},"\u53D6\u6D88"),E.createElement(mt.ZP,{className:"ml20",type:"primary",onClick:()=>Fn()},"\u4FDD\u5B58")));return E.createElement("section",{className:Re.wrap},!br&&Qn(),br&&Er())};var Et=(0,Ve.connect)(({problemset:et,loading:tt,globalSetting:Te})=>({problemset:et,globalSetting:Te,loading:tt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(de)),ke=ie(47889),Le=Object.defineProperty,bt=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,rt=(et,tt,Te)=>tt in et?Le(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,Nt=(et,tt)=>{for(var Te in tt||(tt={}))ve.call(tt,Te)&&rt(et,Te,tt[Te]);if(bt)for(var Te of bt(tt))ue.call(tt,Te)&&rt(et,Te,tt[Te]);return et},yt=(et,tt)=>{var Te={};for(var Xt in et)ve.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&bt)for(var Xt of bt(et))tt.indexOf(Xt)<0&&ue.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},Ie=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const Xe=["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"],qe=(et,tt)=>{var Te=et,{problemset:Xt,globalSetting:Ln,loading:Vn,dispatch:yn,onRef:Wt=()=>{},editData:st}=Te,xn=yt(Te,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[An,Hn]=(0,E.useState)([]),[Un,Jn]=(0,E.useState)(),[pn,Wn]=(0,E.useState)([]),[tr,or]=(0,E.useState)(""),[nr,pr]=(0,E.useState)(0),[br,Kn]=(0,E.useState)(!1),ar=(0,Ve.useParams)();(0,E.useEffect)(()=>{Hn(["","","",""])},[]),(0,E.useEffect)(()=>{if(!(st!=null&&st.question_choices)){Kn(!0);return}or(st==null?void 0:st.question_title),pr(parseInt(st==null?void 0:st.question_score)),Hn(st==null?void 0:st.question_choices.map(In=>In.choice_text));const qn=[];st==null||st.standard_answer.map((In,cr)=>{qn.push(In-1)}),Wn(qn)},[st]),(0,E.useImperativeHandle)(tt,()=>({onSave:Fn,isEdit:br}));const Fn=()=>Ie(void 0,null,function*(){if(!tr)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u76EE"),!1;const qn=An.findIndex(fr=>!fr);if(qn>-1)return be.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Xe[qn]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!pn.length)return be.ZP.info("\u8BF7\u8BBE\u7F6E\u672C\u9898\u7684\u6B63\u786E\u7B54\u6848\uFF0C\u70B9\u51FB\u9009\u9879A/B...\u5373\u53EF\u5B8C\u6210\u8BBE\u7F6E"),!1;if(pn.length<1)return be.ZP.info("\u8BF7\u9009\u62E9\u7B54\u6848"),!1;const In=An.map((fr,xr)=>({choice_text:fr,is_answer:pn.includes(xr)?xr+1:0}));let cr;st.question_id?cr=yield(0,Me.Kc)({id:st.question_id,question_title:tr,question_type:1,question_score:nr,question_choices:In.map(fr=>fr.choice_text),standard_answers:In.filter(fr=>fr.is_answer).map(fr=>fr.is_answer)}):cr=yield(0,Me.iV)({exercise_bank_id:ar.topicId,question_title:tr,question_type:1,question_score:"5.0",question_choices:In.map(fr=>fr.choice_text),standard_answers:In.filter(fr=>fr.is_answer).map(fr=>fr.is_answer)}),cr.status===0&&(be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Kn(!1)),yield yn({type:"polls/getExerciseBanks",payload:Nt({},ar)})}),rr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Cr=qn=>Ie(void 0,null,function*(){switch(qn.id){case"del":let In;Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Ie(this,null,function*(){yield(0,Me.x$)({pollsId:st.question_id}),yn({type:"polls/getExerciseBanks",payload:Nt({},ar)})})}});break;case"up":case"down":yield(0,Me.W)({exerciseId:st==null?void 0:st.question_id,opr:qn.id}),yn({type:"polls/getExerciseBanks",payload:Nt({},ar)});break;case"edit":Kn(!0);break}}),Qn=()=>{var qn;return E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},st.key,"\u3001\u5355\u9009\u9898"),"\uFF08",st.question_score,"\u5206\uFF09"),!st.hideAction&&rr.map(function(In,cr){return In.id==="up"&&st.key===1||In.id==="down"&&st.key===st.len?null:E.createElement(Ze.Z,{key:cr,placement:"bottom",title:In.name},E.createElement("span",{onClick:()=>Cr(In),className:In.icon}))})),E.createElement("div",{className:"mt5"},E.createElement(pt.Z,{value:st.question_title})),E.createElement("div",{className:Re.questionChoices},(qn=st==null?void 0:st.question_choices)==null?void 0:qn.map(function(In,cr){return E.createElement(De.Z,null,E.createElement(he.Z,null,E.createElement(ke.ZP,{key:cr,checked:st.standard_answer.includes(cr+1),disabled:!0},Xe[cr],".")),E.createElement(he.Z,{flex:"1"},E.createElement("span",{className:"c-black font14"},E.createElement(pt.Z,{value:In.choice_text}))))})))},Er=()=>E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u9009\u62E9\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09")),E.createElement("p",{className:Re.titleWrap},E.createElement("span",{className:Re.required},"*"),E.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),E.createElement(It.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:tr,onChange:qn=>or(qn)}),An.map((qn,In)=>E.createElement("div",{className:Re.choiceWrap,key:In},E.createElement(Ze.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},E.createElement("div",{className:`${Re.answer} ${pn.includes(In)?Re.activeAnswer:""}`,onClick:()=>{pn.includes(In)?Wn(pn.filter(cr=>cr!==In)):Wn([...pn,In])}},Xe[In])),E.createElement("div",{className:Re.editorWrap},Un===In?E.createElement(It.Z,{id:`single-question-option-${In}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:qn,onChange:cr=>{An[In]=cr,Hn(An)}}):E.createElement("div",{className:Re.htmlWrap,onClick:()=>Jn(In)},E.createElement(pt.Z,{value:qn}))),In>1&&E.createElement(Ze.Z,{title:"\u5220\u9664"},E.createElement("i",{className:`${Re.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>Hn(An.filter((cr,fr)=>fr!==In))})),In<7&&In===An.length-1&&E.createElement(Ze.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement("i",{className:`${Re.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>Hn([...An,""])})))),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\u8F93\u5165\u6846\u53EF\u8BBE\u7F6E\u7B54\u6848\uFF1B\u9009\u4E2D\u7684\u9009\u9879\u5373\u4E3A\u6B63\u786E\u7B54\u6848\uFF0C\u9009\u62E9\u591A\u4E2A\u7B54\u6848\u5373\u4E3A\u591A\u9009\u9898"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(ft.Z,{value:nr,max:1e4,min:-1,onChange:qn=>{pr(qn)}})," \u5206"),E.createElement("aside",{className:"tr"},st.question_id&&E.createElement(mt.ZP,{type:"default",onClick:()=>Kn(!1)},"\u53D6\u6D88"),E.createElement(mt.ZP,{className:"ml20",type:"primary",onClick:()=>Fn()},"\u4FDD\u5B58")));return E.createElement("section",{className:Re.wrap},!br&&Qn(),br&&Er())};var en=(0,Ve.connect)(({problemset:et,loading:tt,globalSetting:Te})=>({problemset:et,globalSetting:Te,loading:tt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(qe)),Ft=Object.defineProperty,_t=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,gt=(et,tt,Te)=>tt in et?Ft(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,ae=(et,tt)=>{for(var Te in tt||(tt={}))je.call(tt,Te)&>(et,Te,tt[Te]);if(_t)for(var Te of _t(tt))Ht.call(tt,Te)&>(et,Te,tt[Te]);return et},te=(et,tt)=>{var Te={};for(var Xt in et)je.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&_t)for(var Xt of _t(et))tt.indexOf(Xt)<0&&Ht.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},ee=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const oe=["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"],se=(et,tt)=>{var Te=et,{problemset:Xt,globalSetting:Ln,loading:Vn,dispatch:yn,onRef:Wt=()=>{},editData:st}=Te,xn=te(Te,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[An,Hn]=(0,E.useState)(),[Un,Jn]=(0,E.useState)(""),[pn,Wn]=(0,E.useState)(!1),[tr,or]=(0,E.useState)(5),nr=(0,Ve.useParams)();(0,E.useEffect)(()=>{if(!(st!=null&&st.question_choices)){Wn(!0);return}Jn(st==null?void 0:st.question_title),or(st==null?void 0:st.question_score),Hn(st.standard_answer[0]+"")},[st]),(0,E.useImperativeHandle)(tt,()=>({onSave:pr,isEdit:pn}));const pr=()=>ee(void 0,null,function*(){if(!Un)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;if(!An)return be.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1;const rr=[{choice_text:"\u6B63\u786E",is_answer:An==="1"?1:0},{choice_text:"\u9519\u8BEF",is_answer:An==="2"?2:0}];let Cr;return st.question_id?Cr=yield(0,Me.Kc)({id:st.question_id,question_title:Un,question_type:2,question_score:tr,question_choices:rr.map(Qn=>Qn.choice_text),standard_answers:rr.filter(Qn=>Qn.is_answer).map(Qn=>Qn.is_answer)}):Cr=yield(0,Me.iV)({exercise_bank_id:nr.topicId,question_title:Un,question_type:2,question_score:tr,question_choices:rr.map(Qn=>Qn.choice_text),standard_answers:rr.filter(Qn=>Qn.is_answer).map(Qn=>Qn.is_answer)}),Cr.status===0&&(be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Wn(!1)),yn({type:"polls/getExerciseBanks",payload:ae({},nr)}),{name:Un,choices:rr}}),br=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Kn=rr=>ee(void 0,null,function*(){switch(rr.id){case"del":let Cr;Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return ee(this,null,function*(){yield(0,Me.x$)({pollsId:st.question_id}),yn({type:"polls/getExerciseBanks",payload:ae({},nr)})})}});break;case"up":case"down":yield(0,Me.W)({exerciseId:st==null?void 0:st.question_id,opr:rr.id}),yn({type:"polls/getExerciseBanks",payload:ae({},nr)});break;case"edit":Wn(!0);break}}),ar=()=>{var rr;return E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},st.key,"\u3001\u5224\u65AD\u9898"),"\uFF08",st.question_score,"\u5206\uFF09"),!st.hideAction&&br.map(function(Cr,Qn){return Cr.id==="up"&&st.key===1||Cr.id==="down"&&st.key===st.len?null:E.createElement(Ze.Z,{key:Qn,placement:"bottom",title:Cr.name},E.createElement("span",{onClick:()=>Kn(Cr),className:Cr.icon}))})),E.createElement("div",{className:"mt5"},st.question_title),E.createElement("div",{className:Re.questionChoices},(rr=st==null?void 0:st.question_choices)==null?void 0:rr.map(function(Cr,Qn){return E.createElement(ke.ZP,{key:Qn,checked:st.standard_answer.includes(Qn+1),disabled:!0},oe[Qn],". ",E.createElement("span",{className:"c-black font14"},Cr.choice_text))})))},Fn=()=>E.createElement("aside",null,E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5224\u65AD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848\uFF09"),E.createElement("p",{className:Re.titleWrap},E.createElement("span",{className:Re.required},"*"),E.createElement("span",{className:Re.title},"\u9898\u5E72\uFF1A")),E.createElement(It.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:Un,onChange:rr=>Jn(rr)}),E.createElement("p",{className:Re.titleWrap},E.createElement("span",{className:Re.required},"*"),E.createElement("span",{className:Re.title},"\u7B54\u6848\u9009\u9879\uFF1A",E.createElement("span",{className:Re.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),E.createElement(ke.ZP.Group,{buttonStyle:"solid",value:An,onChange:rr=>Hn(rr.target.value)},E.createElement(ke.ZP.Button,{value:"1",className:`${Re.radio} mr40`},"\u6B63\u786E"),E.createElement(ke.ZP.Button,{value:"2",className:Re.radio},"\u9519\u8BEF")),E.createElement("p",{className:"c-orange"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u70B9\u51FB\u9009\u9879\uFF0C\u53EF\u4EE5\u76F4\u63A5\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848"),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(ft.Z,{value:tr,max:1e4,min:-1,onChange:rr=>{or(rr)}})," \u5206"),E.createElement("aside",{className:"tr"},st.question_id&&E.createElement(mt.ZP,{type:"default",onClick:()=>Wn(!1)},"\u53D6\u6D88"),E.createElement(mt.ZP,{className:"ml20",type:"primary",onClick:()=>pr()},"\u4FDD\u5B58")));return E.createElement("section",{className:Re.wrap},!pn&&ar(),pn&&Fn())};var ne=(0,Ve.connect)(({problemset:et,loading:tt,globalSetting:Te})=>({problemset:et,globalSetting:Te,loading:tt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(se)),pe=ie(30690),ye=ie(86793),ct=ie(68911),Pe=Object.defineProperty,Ge=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,St=(et,tt,Te)=>tt in et?Pe(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,xe=(et,tt)=>{for(var Te in tt||(tt={}))dt.call(tt,Te)&&St(et,Te,tt[Te]);if(Ge)for(var Te of Ge(tt))Pt.call(tt,Te)&&St(et,Te,tt[Te]);return et},Be=(et,tt)=>{var Te={};for(var Xt in et)dt.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&Ge)for(var Xt of Ge(et))tt.indexOf(Xt)<0&&Pt.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},Tt=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const kt=null,Gt=(et,tt)=>{var Te=et,{problemset:Xt,globalSetting:Ln,loading:Vn,dispatch:yn,editData:Wt}=Te,st=Be(Te,["problemset","globalSetting","loading","dispatch","editData"]);const[xn,An]=(0,E.useState)(""),[Hn,Un]=(0,E.useState)(""),[Jn,pn]=(0,E.useState)([]),[Wn,tr]=(0,E.useState)(""),[or,nr]=(0,E.useState)(),[pr,br]=(0,E.useState)(!1),[Kn,ar]=(0,E.useState)(5),[Fn,rr]=(0,E.useState)(!1),Cr=(0,Ve.useParams)();(0,E.useEffect)(()=>{if(!(Wt!=null&&Wt.question_title)){rr(!0);return}An(Wt==null?void 0:Wt.question_title),nr(Wt==null?void 0:Wt.is_ordered),ar(Wt==null?void 0:Wt.question_score);const Yt=Wt==null?void 0:Wt.standard_answer.map(Zt=>Zt.answer_text);pn(Yt)},[Xt.editData]),(0,E.useEffect)(()=>{br(!1)},[Fn]),(0,E.useImperativeHandle)(tt,()=>({onSave:Qn,isEdit:Fn}));const Qn=()=>Tt(void 0,null,function*(){let Yt=[],Zt=!1;if(Jn.forEach((Rn,qt)=>{Yt.push({choice_id:qt+1,answer_text:[]}),Rn.forEach((hn,Dn)=>{Yt[qt].answer_text.push(hn),(!hn||!(0,ct.eR)(hn,1e4))&&(tr(`${qt}-${Dn}`),be.ZP.info(hn?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Zt=!0)})}),Zt)return!1;let wn;return Wt.question_id?wn=yield(0,Me.Kc)({id:Wt.question_id,question_title:xn,question_type:3,question_score:Kn,is_ordered:or,standard_answers:Yt}):wn=yield(0,Me.iV)({exercise_bank_id:Cr.topicId,question_title:xn,question_type:3,question_score:Kn,is_ordered:or,standard_answers:Yt}),wn.status===0&&(be.ZP.success("\u4FDD\u5B58\u6210\u529F"),rr(!1)),yn({type:"polls/getExerciseBanks",payload:xe({},Cr)}),{name:xn,analysis:Hn,standard_answers:Yt,is_ordered:or}}),Er=(Yt,Zt,wn)=>{const Rn=Jn.slice();if(Zt&&Rn.splice(Yt,Zt),wn&&pr)for(let qt=0;qt<wn;qt++)Rn.splice(Yt+qt,0,[""]);br(!0),pn(Rn)},qn=(Yt,Zt,wn)=>{tr("");let Rn=Jn.slice();Rn[Yt][Zt]=wn,pn(Rn)},In=Yt=>{let Zt=Jn.slice();Zt[Yt]=[...Zt[Yt],""],pn(Zt)},cr=(Yt,Zt)=>{let wn=Jn.slice();if(!wn[Yt][Zt]){wn[Yt]=wn[Yt].filter((Rn,qt)=>qt!==Zt),pn(wn);return}Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Re.modal,onOk:()=>{wn[Yt]=wn[Yt].filter((Rn,qt)=>qt!==Zt),pn(wn)}})},fr=Yt=>{Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Re.modal,onOk:()=>{let Zt=Jn.slice();Zt=Jn.filter((wn,Rn)=>Yt!==Rn),pn(Zt)}})},xr=()=>E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u586B\u7A7A\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF0C\u8BF7\u8BBE\u7F6E\u6807\u51C6\u7B54\u6848 \uFF1B\u652F\u6301\u6700\u591A5\u4E2A\u7A7A\uFF0C\u6BCF\u7A7A\u5F97\u5206\u6309\u7167\u672C\u9898\u7684\u603B\u5206\u5E73\u5747\u8BA1\u7B97\uFF09")),E.createElement("div",null,E.createElement(pe.Z,{id:"completion-question-tittle",placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE",height:155,defaultValue:xn,onChange:Yt=>An(Yt),showNullButton:!0,onPlaceholderChange:Er})),E.createElement("div",{className:"mt20"},Jn.map((Yt,Zt)=>E.createElement(ye.Z,{key:Zt,answers:Yt,index:Zt,is_md:!0,activeOptionErrorIndex:Wn,onAnswerChange:qn,addChildAnswer:In,deleteChildAnswer:cr,deleteChildAnswermain:fr}))),E.createElement("div",{className:"mt20"},Jn.length>1&&E.createElement("span",null,E.createElement(Ae.default,{checked:or,onChange:Yt=>nr(Yt.target.checked),className:`${Re.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),E.createElement("span",{className:`${Re.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(ft.Z,{value:Kn,max:1e4,min:-1,onChange:Yt=>{ar(Yt)}})," \u5206"),E.createElement("aside",{className:"tr"},Wt.question_id&&E.createElement(mt.ZP,{type:"default",onClick:()=>rr(!1)},"\u53D6\u6D88"),E.createElement(mt.ZP,{className:"ml20",type:"primary",onClick:()=>Qn()},"\u4FDD\u5B58"))),Mn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],Ut=Yt=>Tt(void 0,null,function*(){switch(Yt.id){case"del":let Zt;Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Tt(this,null,function*(){yield(0,Me.x$)({pollsId:Wt.question_id}),yn({type:"polls/getExerciseBanks",payload:xe({},Cr)})})}});break;case"up":case"down":yield(0,Me.W)({exerciseId:Wt==null?void 0:Wt.question_id,opr:Yt.id}),yn({type:"polls/getExerciseBanks",payload:xe({},Cr)});break;case"edit":rr(!0);break}}),tn=()=>{var Yt;return E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Wt.key,"\u3001\u586B\u7A7A\u9898"),"\uFF08",Wt.question_score,"\u5206\uFF09"),!Wt.hideAction&&Mn.map(function(Zt,wn){return Zt.id==="up"&&Wt.key===1||Zt.id==="down"&&Wt.key===Wt.len?null:E.createElement(Ze.Z,{key:wn,placement:"bottom",title:Zt.name},E.createElement("span",{onClick:()=>Ut(Zt),className:Zt.icon}))})),E.createElement("div",{className:"mt5"},Wt.question_title),E.createElement("div",{className:Re.questionChoices},(Yt=Wt==null?void 0:Wt.standard_answer)==null?void 0:Yt.map(function(Zt,wn){return E.createElement(De.Z,null,E.createElement(he.Z,null,"\u7B54\u6848\uFF08\u586B\u7A7A",Zt.choice_id,"\uFF09\uFF1A"),E.createElement(he.Z,{flex:"1"},E.createElement(Ee.default,{key:wn,checked:Wt.standard_answer.includes(wn),disabled:!0,value:Zt.answer_text})))})))};return E.createElement("section",{className:Re.wrap},!Fn&&tn(),Fn&&xr())};var Qt=(0,Ve.connect)(({problemset:et,loading:tt,globalSetting:Te})=>({problemset:et,globalSetting:Te,loading:tt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Gt)),wt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,sn=(et,tt,Te)=>tt in et?wt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,vn=(et,tt)=>{for(var Te in tt||(tt={}))Lt.call(tt,Te)&&sn(et,Te,tt[Te]);if(Kt)for(var Te of Kt(tt))Jt.call(tt,Te)&&sn(et,Te,tt[Te]);return et},Sn=(et,tt)=>{var Te={};for(var Xt in et)Lt.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&Kt)for(var Xt of Kt(et))tt.indexOf(Xt)<0&&Jt.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},Fe=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const ht=null,Bt=(et,tt)=>{var Te=et,{problemset:Xt,globalSetting:Ln,loading:Vn,dispatch:yn,onRef:Wt=()=>{},editData:st}=Te,xn=Sn(Te,["problemset","globalSetting","loading","dispatch","onRef","editData"]);const[An,Hn]=(0,E.useState)(""),[Un,Jn]=(0,E.useState)(""),[pn,Wn]=(0,E.useState)(""),[tr,or]=(0,E.useState)(5),[nr,pr]=(0,E.useState)(!1),br=(0,Ve.useParams)();(0,E.useEffect)(()=>{var Qn;if(!(st!=null&&st.question_title)){pr(!0);return}Hn(st==null?void 0:st.question_title),Wn((Qn=st==null?void 0:st.standard_answer)==null?void 0:Qn[0]),or(st==null?void 0:st.question_score)},[Xt.editData]),(0,E.useImperativeHandle)(tt,()=>({onSave:Kn,isEdit:nr}));const Kn=()=>Fe(void 0,null,function*(){if(!An)return be.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;let Qn;return st.question_id?Qn=yield(0,Me.Kc)({id:st.question_id,question_title:An,question_type:4,question_score:tr,standard_answers:[pn]}):Qn=yield(0,Me.iV)({exercise_bank_id:br.topicId,question_title:An,question_type:4,question_score:tr,standard_answers:[pn]}),Qn.status===0&&(be.ZP.success("\u4FDD\u5B58\u6210\u529F"),pr(!1),yn({type:"polls/getExerciseBanks",payload:vn({},br)})),{name:An,answer_texts:[pn],analysis:Un}}),ar=()=>E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u7B80\u7B54\u9898"),"\uFF08\u4E3B\u89C2\u9898\uFF0C\u672A\u4F5C\u7B54\u7684\u60C5\u51B5\u4E0B\u81EA\u52A8\u8BC4\u4E3A\u96F6\u5206\uFF09")),E.createElement(It.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:An,onChange:Qn=>Hn(Qn)}),E.createElement("p",{className:Re.titleWrap},E.createElement("span",{className:Re.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),E.createElement(It.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:pn,onChange:Qn=>Wn(Qn)}),E.createElement("p",{className:""},"\u5206\u503C\uFF1A",E.createElement(ft.Z,{value:tr,max:1e4,min:-1,onChange:Qn=>{or(Qn)}})," \u5206"),E.createElement("aside",{className:"tr"},st.question_id&&E.createElement(mt.ZP,{type:"default",onClick:()=>pr(!1)},"\u53D6\u6D88"),E.createElement(mt.ZP,{className:"ml20",type:"primary",onClick:()=>Kn()},"\u4FDD\u5B58"))),Fn=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],rr=Qn=>Fe(void 0,null,function*(){switch(Qn.id){case"del":let Er;Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return Fe(this,null,function*(){yield(0,Me.x$)({pollsId:st.question_id}),yn({type:"polls/getExerciseBanks",payload:vn({},br)})})}});break;case"up":case"down":yield(0,Me.W)({exerciseId:st==null?void 0:st.question_id,opr:Qn.id}),yn({type:"polls/getExerciseBanks",payload:vn({},br)});break;case"edit":pr(!0);break}}),Cr=()=>E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},st.key,"\u3001\u7B80\u7B54\u9898"),"\uFF08",st.question_score,"\u5206\uFF09"),!st.hideAction&&Fn.map(function(Qn,Er){return Qn.id==="up"&&st.key===1||Qn.id==="down"&&st.key===st.len?null:E.createElement(Ze.Z,{key:Er,placement:"bottom",title:Qn.name},E.createElement("span",{onClick:()=>rr(Qn),className:Qn.icon}))})),E.createElement("div",{className:"mt5"},st.question_title),E.createElement("div",{className:Re.questionChoices},E.createElement("p",null,E.createElement("strong",null,"\u53C2\u8003\u7B54\u6848\uFF1A")),E.createElement(pt.Z,{value:pn})));return E.createElement("section",{className:Re.wrap},!nr&&Cr(),nr&&ar())};var Vt=(0,Ve.connect)(({problemset:et,loading:tt,globalSetting:Te})=>({problemset:et,globalSetting:Te,loading:tt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Bt)),cn=Object.defineProperty,bn=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,rn=(et,tt,Te)=>tt in et?cn(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,En=(et,tt)=>{for(var Te in tt||(tt={}))Zn.call(tt,Te)&&rn(et,Te,tt[Te]);if(bn)for(var Te of bn(tt))zn.call(tt,Te)&&rn(et,Te,tt[Te]);return et},Pn=(et,tt)=>{var Te={};for(var Xt in et)Zn.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&bn)for(var Xt of bn(et))tt.indexOf(Xt)<0&&zn.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},_n=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const On=null,Tn=(et,tt)=>{var Te=et,{problemset:Xt,globalSetting:Ln,loading:Vn,dispatch:yn,editData:Wt}=Te,st=Pn(Te,["problemset","globalSetting","loading","dispatch","editData"]);const[xn,An]=(0,E.useState)(""),[Hn,Un]=(0,E.useState)(""),[Jn,pn]=(0,E.useState)(""),[Wn,tr]=(0,E.useState)([]),[or,nr]=(0,E.useState)(""),[pr,br]=(0,E.useState)(),[Kn,ar]=(0,E.useState)(!1),[Fn,rr]=(0,E.useState)([]),[Cr,Qn]=(0,E.useState)(!1),Er=(0,Ve.useParams)();(0,E.useEffect)(()=>{var Mn;Wt.edit&&Qn(!0),An(Wt.shixun_name),Un(Wt.question_title);const Ut=[];(Mn=Wt.shixun)==null||Mn.map(tn=>{Ut.push(tn.challenge_score)}),rr(Ut)},[Wt]),(0,E.useEffect)(()=>{ar(!1)},[Cr]),(0,E.useImperativeHandle)(tt,()=>({onSave:qn,isEdit:Cr}));const qn=()=>_n(void 0,null,function*(){let Mn=[];if(!1)return!1;let tn;return Wt.question_id?tn=yield(0,Me.Kc)({id:Wt.question_id,question_title:Hn,shixun_name:xn,shixun_id:Wt.shixun_id,question_type:5,question_scores:Fn}):tn=yield(0,Me.iV)({exercise_bank_id:Er.topicId,question_title:Hn,shixun_name:xn,shixun_id:Wt.shixun_id,question_type:5,question_scores:Fn}),tn.status===0&&(be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Qn(!1)),yield yn({type:"polls/getExerciseBanks",payload:En({},Er)}),{name:Hn,analysis:Jn,standard_answers:Mn,is_ordered:pr}}),In=()=>{var Mn;return E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},"\u5B9E\u8BAD\u9898"),"\uFF08\u5BA2\u89C2\u9898\uFF0C\u7531\u7CFB\u7EDF\u81EA\u52A8\u8BC4\u5206\uFF0C\u5141\u8BB8\u624B\u52A8\u8C03\u5206\uFF09")),E.createElement("div",{className:"mt10"},E.createElement(Ee.default,{defaultValue:xn,onChange:Ut=>{An(Ut.target.value)}})),E.createElement("div",{className:"mt10"},E.createElement(It.Z,{id:"single-question-option-0",height:155,placeholder:"\u8BF7\u8F93\u5165\u5B9E\u8BAD\u9898\u5B8C\u6210\u8981\u6C42",defaultValue:Hn,onChange:Ut=>{Un(Ut)}})),E.createElement("div",{className:"mt20"},(Mn=Wt.shixun)==null?void 0:Mn.map((Ut,tn)=>E.createElement(De.Z,{gutter:[20,20]},E.createElement(he.Z,{flex:"1"},tn+1,".",Ut.challenge_name),E.createElement(he.Z,null,E.createElement(ft.Z,{defaultValue:Fn[tn],onChange:Yt=>{Fn[tn]=Yt,rr(Fn),console.log("srore:L",Fn[tn])}}))))),E.createElement("div",{className:"mt20"},Wn.length>1&&E.createElement("span",null,E.createElement(Ae.default,{checked:pr,onChange:Ut=>br(Ut.target.checked),className:`${Re.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),E.createElement("span",{className:`${Re.color999} font12`},"\uFF08\u9009\u4E2D\uFF0C\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u987A\u5E8F\u5FC5\u987B\u4E0E\u53C2\u8003\u7B54\u6848\u4E00\u81F4\uFF09"))),E.createElement("aside",{className:"tr"},!(Wt!=null&&Wt.edit)&&E.createElement(mt.ZP,{type:"default",onClick:()=>Qn(!1)},"\u53D6\u6D88"),E.createElement(mt.ZP,{className:"ml20",type:"primary",onClick:()=>qn()},"\u4FDD\u5B58")))},cr=[{name:"\u5220\u9664",icon:"iconfont c-light-black ml30 icon-shanchu",id:"del"},{name:"\u4E0A\u79FB",icon:"iconfont c-green ml30 icon-shangyi_Hover",id:"up"},{name:"\u4E0B\u79FB",icon:"iconfont c-green ml30 icon-xiayi_moren",id:"down"},{name:"\u7F16\u8F91",icon:"iconfont c-green ml30 icon-bianjishijuan3x",id:"edit"}],fr=Mn=>_n(void 0,null,function*(){switch(Mn.id){case"del":let Ut;Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F",onOk(){return _n(this,null,function*(){yield(0,Me.x$)({pollsId:Wt.question_id}),yn({type:"polls/getExerciseBanks",payload:En({},Er)})})}});break;case"up":case"down":yield(0,Me.W)({exerciseId:Wt==null?void 0:Wt.question_id,opr:Mn.id}),yn({type:"polls/getExerciseBanks",payload:En({},Er)});break;case"edit":Qn(!0);break}}),xr=()=>{var Mn;return E.createElement("aside",null,E.createElement("div",{className:Re.questionType},E.createElement("div",null,E.createElement("span",{className:"font16 c-blue"},Wt.key,"\u3001\u5B9E\u8BAD\u9898"),"\uFF08",Wt.question_score,"\u5206\uFF09"),E.createElement("div",{className:"tr"},E.createElement(Ve.Link,{target:"_blank",to:`/shixuns/${Wt.shixun_identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),!Wt.hideAction&&cr.map(function(Ut,tn){return Ut.id==="up"&&Wt.key===1||Ut.id==="down"&&Wt.key===Wt.len?null:E.createElement(Ze.Z,{key:tn,placement:"bottom",title:Ut.name},E.createElement("span",{onClick:()=>fr(Ut),className:Ut.icon}))}))),E.createElement("div",{className:"font16"},Wt.shixun_name),E.createElement("div",{className:"mt30"}),(Mn=Wt.shixun)==null?void 0:Mn.map(function(Ut,tn){return E.createElement("div",{key:tn},"\u7B2C",tn+1,"\u5173 ",E.createElement("span",{className:"ml10"},Ut.challenge_name)," ",E.createElement("span",{className:"ml10"},Ut.challenge_score))}))};return E.createElement("section",{className:Re.wrap},!Cr&&xr(),Cr&&In())};var an=(0,Ve.connect)(({problemset:et,loading:tt,globalSetting:Te})=>({problemset:et,globalSetting:Te,loading:tt.effects}),null,null,{forwardRef:!0})((0,E.forwardRef)(Tn)),Cn=ie(36207),fn=ie(31709),kn={flex_box_center:"flex_box_center___hUmFx",flex_space_between:"flex_space_between___ZQWRF",flex_box_vertical_center:"flex_box_vertical_center___NvFWH",flex_box_center_end:"flex_box_center_end___VzfH9",flex_box_column:"flex_box_column___jzLHY",wrp:"wrp___tA5YW",drawer:"drawer___aMsAr",menu:"menu___EdF6h",actived:"actived___rUgO6",actived2:"actived2___ENpPA",listItem:"listItem___Ixzli",info:"info___KHkuz",title:"title___pDJPn",titleLeft:"titleLeft___UBBKz",titleRight:"titleRight___WrCz9",search:"search___AEwRm",description:"description___CYPQc",menuCourse:"menuCourse___gwZ0E"},lr=Object.defineProperty,er=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,hr=(et,tt,Te)=>tt in et?lr(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,yr=(et,tt)=>{for(var Te in tt||(tt={}))Gn.call(tt,Te)&&hr(et,Te,tt[Te]);if(er)for(var Te of er(tt))sr.call(tt,Te)&&hr(et,Te,tt[Te]);return et},ur=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const{Search:$t}=Ee.default,un=[{id:"type",name:"\u7B5B\u9009",children:[{name:"\u5168\u90E8\u5B9E\u8BAD",id:"all",type:"type"},{name:"\u6211\u7684\u5B9E\u8BAD",id:"mine",type:"type"}]},{id:"diff",name:"\u96BE\u5EA6",children:[{name:"\u5168\u90E8",id:"",type:"diff"},{name:"\u521D\u7EA7",id:1,type:"diff"},{name:"\u4E2D\u7EA7",id:2,type:"diff"},{name:"\u4E2D\u9AD8\u7EA7",id:3,type:"diff"},{name:"\u9AD8\u7EA7",id:4,type:"diff"}]}],jn=({classroomList:et,loading:tt,dispatch:Te,callback:Xt})=>{var Ln;const Vn=(0,Ve.useParams)(),yn=(0,Ve.useLocation)(),{actionTabs:Wt}=et,[st]=Ce.default.useForm(),{shixunLists:xn}=et,[An,Hn]=(0,E.useState)([]),[Un,Jn]=(0,E.useState)({page:1,type:"all",diff:"",status:"published",order:"desc",limit:20,sort:"publish_time",no_jupyter:1});return(0,E.useEffect)(()=>{Te({type:"classroomList/getShixunLists",payload:yr({},Un)})},[Vn.categoryId]),(0,E.useEffect)(()=>{Hn([])},[et.actionTabs.key]),et.actionTabs.key!=="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"?null:E.createElement(Cn.Z,{title:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",placement:"bottom",height:"100%",closable:!1,open:et.actionTabs.key==="\u9009\u7528\u5B9E\u8DF5\u9879\u76EE",key:"bottom",rootClassName:kn.drawer,footer:E.createElement("div",{className:"tc"},E.createElement(mt.ZP,{size:"middle",onClick:()=>{Te({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8}},"\u53D6\u6D88"),E.createElement(mt.ZP,{size:"middle",onClick:()=>ur(void 0,null,function*(){var pn;An.length>1?be.ZP.error("\u53EA\u80FD\u9009\u62E9\u4E00\u4E2A\u5B9E\u8DF5\u9879\u76EE"):An.length===0?be.ZP.error("\u8BF7\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE"):(Xt&&Xt((pn=xn==null?void 0:xn.shixun_list)==null?void 0:pn.filter(Wn=>Wn.id===An[0])[0]),Te({type:"classroomList/setActionTabs",payload:{key:""}}))}),type:"primary"},"\u786E\u5B9A"))},E.createElement("section",{className:"tc"},E.createElement($t,{placeholder:"\u5B9E\u8BAD\u4FE1\u606F/\u9662\u6821\u540D\u79F0/\u521B\u5EFA\u8005",enterButton:"\u641C\u7D22",size:"middle",className:kn.search,onSearch:pn=>{Un.keyword=pn,Te({type:"classroomList/getShixunLists",payload:yr({},Un)})}})),E.createElement("section",{className:"edu-container"},un.map(function(pn,Wn){var tr;return E.createElement("ul",{className:kn.menu,key:Wn},E.createElement("li",null,pn.name),(tr=pn==null?void 0:pn.children)==null?void 0:tr.map(function(or,nr){return E.createElement("li",{key:nr,className:Un[pn.id]==or.id?kn.actived:"",onClick:()=>{Un[pn.id]=or.id,Jn(yr({},Un)),Te({type:"classroomList/getShixunLists",payload:yr({},Un)})}},E.createElement("strong",null,or.name))}))}),(Ln=xn==null?void 0:xn.shixun_list)==null?void 0:Ln.map(function(pn,Wn){return E.createElement("div",{className:kn.listItem,key:Wn},E.createElement(Ae.default,{checked:An.includes(pn.id),value:pn.id,onChange:tr=>{let or=An.indexOf(pn.id);An.indexOf(pn.id)>-1?Hn(An.filter(nr=>nr!==pn.id)):Hn(An.concat(pn.id))}}),E.createElement("div",{className:kn.info},E.createElement("div",{className:kn.title},E.createElement("div",{className:kn.titleLeft},E.createElement("strong",{className:"font16",dangerouslySetInnerHTML:{__html:pn.title}}))),E.createElement("div",{className:"flex-wrp mt10 font14 c-light-black"},E.createElement("span",{className:kn.description,dangerouslySetInnerHTML:{__html:pn.description}})),E.createElement("div",{className:" mt15"},pn.challenge_names.map(function(tr,or){return E.createElement("span",{key:or,className:"mr30"},"\u7B2C",or+1,"\u5173 ",tr," ")})),E.createElement(Oe.Z,{dashed:!0}),E.createElement("div",{className:"c-light-black mt20"},E.createElement("span",null,pn.author_name),E.createElement("span",{className:"ml15 mr15"},"|"),E.createElement("span",null,pn.author_school_name),E.createElement("span",{className:"ml15 mr15"},"|"),E.createElement("span",null,"\u96BE\u5EA6\u7CFB\u6570:",pn.level),E.createElement("span",{className:"ml15 mr15"},"|"),E.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570:"),E.createElement("span",null,pn.study_count))))}),E.createElement("p",null)),E.createElement("div",{className:"tc"},E.createElement(fn.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showQuickJumper:!0,total:xn==null?void 0:xn.shixuns_count,onChange:pn=>{Un.page=pn,Hn([]),Te({type:"classroomList/getShixunLists",payload:yr({},Un)})}})))};var mr=(0,Ve.connect)(({classroomList:et,loading:tt})=>({classroomList:et,loading:tt}))(jn),ze={flex_box_center:"flex_box_center___SQWFF",flex_space_between:"flex_space_between___CnFKV",flex_box_vertical_center:"flex_box_vertical_center___pIPP9",flex_box_center_end:"flex_box_center_end___wiYA8",flex_box_column:"flex_box_column___elCPc",bg:"bg___EaPuT",containerTitle:"containerTitle___ixpkx",containerDesc:"containerDesc___r2R0u",listItem:"listItem___jvD98",info:"info___dCwGz",title:"title___UW6TT",titleLeft:"titleLeft___MquHc",titleRight:"titleRight___aWhE3",acitons:"acitons___yle7y"},ot=Object.defineProperty,Se=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,_e=(et,tt,Te)=>tt in et?ot(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):et[tt]=Te,vt=(et,tt)=>{for(var Te in tt||(tt={}))We.call(tt,Te)&&_e(et,Te,tt[Te]);if(Se)for(var Te of Se(tt))we.call(tt,Te)&&_e(et,Te,tt[Te]);return et},on=(et,tt)=>{var Te={};for(var Xt in et)We.call(et,Xt)&&tt.indexOf(Xt)<0&&(Te[Xt]=et[Xt]);if(et!=null&&Se)for(var Xt of Se(et))tt.indexOf(Xt)<0&&we.call(et,Xt)&&(Te[Xt]=et[Xt]);return Te},ln=(et,tt,Te)=>new Promise((Xt,Ln)=>{var Vn=st=>{try{Wt(Te.next(st))}catch(xn){Ln(xn)}},yn=st=>{try{Wt(Te.throw(st))}catch(xn){Ln(xn)}},Wt=st=>st.done?Xt(st.value):Promise.resolve(st.value).then(Vn,yn);Wt((Te=Te.apply(et,tt)).next())});const{SubMenu:gn}=ge.default,{Content:Rt,Sider:Mt}=Je.default,Dt=et=>{var tt=et,{polls:Te,globalSetting:Xt,loading:Ln,user:Vn,dispatch:yn}=tt,Wt=on(tt,["polls","globalSetting","loading","user","dispatch"]),st,xn,An,Hn,Un,Jn,pn,Wn,tr,or,nr,pr,br,Kn,ar,Fn,rr,Cr,Qn,Er,qn,In,cr,fr,xr,Mn,Ut,tn,Yt,Zt,wn,Rn,qt,hn,Dn,Nn,Sr,Tr,Dr,Lr,Nr,Fr,zr,$r,jr,Xr,ei,oi,ti,ai,wr,gr,Zr,_r,li,Xi;const Bi=(0,Ve.useParams)(),Si=(0,Ve.useLocation)(),{userInfo:pi}=Vn,[Gr]=Ce.default.useForm(),[di,Vi]=(0,E.useState)([]),[Li,Jr]=(0,E.useState)(!1),oo=[{name:"\u9009\u62E9\u9898",id:0},{name:"\u5224\u65AD\u9898",id:2},{name:"\u586B\u7A7A\u9898",id:3},{name:"\u7B80\u7B54\u9898",id:4},{name:"\u5B9E\u8BAD\u9898",id:5}],Fi=(0,E.useRef)();(0,E.useEffect)(()=>{var ir,kr,Wr,Ri,mi,si;(ir=Te.exerciseBanks)!=null&&ir.exercise_questions&&(Vi([...(kr=Te.exerciseBanks)==null?void 0:kr.exercise_questions]),Gr.setFieldsValue({exercise_name:(Ri=(Wr=Te.exerciseBanks)==null?void 0:Wr.exercise)==null?void 0:Ri.exercise_name,exercise_description:(si=(mi=Te.exerciseBanks)==null?void 0:mi.exercise)==null?void 0:si.exercise_description}))},[Te.exerciseBanks]),(0,E.useEffect)(()=>{yn({type:"polls/getExerciseBanks",payload:vt({},Bi)})},[Bi.categoryId]);const Br=()=>ln(void 0,null,function*(){var ir,kr;yield Gr.validateFields();const Wr=Gr.getFieldValue();Wr.is_md=!0,Wr.topicId=(kr=(ir=Te.exerciseBanks)==null?void 0:ir.exercise)==null?void 0:kr.id,Jr(!1),yield(0,Me.hO)(vt({},Wr)),yn({type:"polls/getExerciseBanks",payload:vt({},Bi)})}),Mr=ir=>ln(void 0,null,function*(){const kr=yield Fi==null?void 0:Fi.current;if(kr!=null&&kr.isEdit){be.ZP.error("\u4E0D\u80FD\u540C\u65F6\u7F16\u8F91\u4E24\u9898");return}ir===5?yn({type:"classroomList/setActionTabs",payload:{key:"\u9009\u7528\u5B9E\u8DF5\u9879\u76EE"}}):Vi([...di,{question_type:ir}])}),Or=function(){return di==null?void 0:di.map(function(ir,kr){if(ir.key=kr+1,ir.len=di.length,ir.question_type===0)return E.createElement("aside",null,E.createElement(en,{ref:Fi,editData:ir}),E.createElement(Oe.Z,null));if(ir.question_type===1)return E.createElement("aside",null,E.createElement(Et,{ref:Fi,editData:ir}),E.createElement(Oe.Z,null));if(ir.question_type===2)return E.createElement("aside",null,E.createElement(ne,{ref:Fi,editData:ir}),E.createElement(Oe.Z,null));if(ir.question_type===3)return E.createElement("aside",null,E.createElement(Qt,{editData:ir}),E.createElement(Oe.Z,null));if(ir.question_type===4)return E.createElement("aside",null,E.createElement(Vt,{editData:ir}),E.createElement(Oe.Z,null));if(ir.question_type===5)return E.createElement("aside",null,E.createElement(an,{editData:ir}),E.createElement(Oe.Z,null))})};return E.createElement("section",{className:"edu-container"},E.createElement("section",{className:"animated fadeIn"},E.createElement("aside",{className:"mt10"},pi&&E.createElement($e.Z,{separator:">"},E.createElement($e.Z.Item,null,E.createElement(Ve.Link,{to:`/users/${pi.login}/topics/personal`},"\u6211\u7684\u9898\u5E93")),E.createElement($e.Z.Item,null,E.createElement(Ve.Link,{to:`/users/${pi==null?void 0:pi.login}/topics/${Bi.topicId}/${Bi.topictype}/exercise/detail`},"\u8BE6\u60C5")),E.createElement($e.Z.Item,null,"\u7F16\u8F91"))),E.createElement("aside",{className:[ze.title,"mt20"].join(" ")},E.createElement(De.Z,{style:{width:"100%"},align:"middle"},E.createElement(he.Z,{flex:"1"},E.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u8BD5\u5377"),E.createElement(ct.VV,{status:[(xn=(st=Te.exerciseBanks)==null?void 0:st.exercise)!=null&&xn.is_public?"\u516C\u5F00":"\u79C1\u6709"]})),E.createElement(he.Z,null,E.createElement(Ve.Link,{className:"font16 c-light-black",to:`/users/${pi.login}/topics/personal`},"\u8FD4\u56DE"))))),E.createElement("section",{className:[ze.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},!Li&&E.createElement("aside",null,E.createElement("div",{className:ze.containerDesc},E.createElement("div",null,(Hn=(An=Te.exerciseBanks)==null?void 0:An.exercise)==null?void 0:Hn.exercise_name),E.createElement("div",null,E.createElement(Ze.Z,{title:"\u7F16\u8F91"},E.createElement("span",{onClick:()=>Jr(!0),className:"iconfont c-green ml30 icon-bianjishijuan3x"})))),E.createElement("div",{className:"c-light-black"},(Jn=(Un=Te.exerciseBanks)==null?void 0:Un.exercise)==null?void 0:Jn.exercise_description)),Li&&E.createElement(Ce.default,{layout:"vertical",form:Gr},E.createElement(Ce.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u6807\u9898\uFF1A",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BD5\u5377\u6807\u9898"}]},E.createElement(Ee.default,{maxLength:60,placeholder:"\u8BD5\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),E.createElement(Ce.default.Item,{label:"\u8BD5\u5377\u987B\u77E5\uFF1A",name:"exercise_description"},E.createElement(Ee.default.TextArea,{rows:6,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u8BD5\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u5236100\u4E2A\u5B57\u7B26"})),E.createElement(Ce.default.Item,{className:"tr"},E.createElement(mt.ZP,{type:"primary",onClick:()=>{Br()}},"\u4FDD\u5B58")))),E.createElement("p",{className:"mt10",style:{display:"flex"}},E.createElement("span",{className:"fl",style:{flex:"1"}},!!((Wn=(pn=Te.exerciseBanks)==null?void 0:pn.exercise_types)!=null&&Wn.q_singles)&&E.createElement("span",{className:"ml20"},"\u5355\u9009\u9898",(or=(tr=Te.exerciseBanks)==null?void 0:tr.exercise_types)==null?void 0:or.q_singles,"\u9898\uFF0C\u5171",(pr=(nr=Te.exerciseBanks)==null?void 0:nr.exercise_types)==null?void 0:pr.q_singles_scores,"\u5206"),!!((Kn=(br=Te.exerciseBanks)==null?void 0:br.exercise_types)!=null&&Kn.q_doubles)&&E.createElement("span",{className:"ml20"},"\u591A\u9009\u9898",(Fn=(ar=Te.exerciseBanks)==null?void 0:ar.exercise_types)==null?void 0:Fn.q_doubles,"\u9898\uFF0C\u5171",(Cr=(rr=Te.exerciseBanks)==null?void 0:rr.exercise_types)==null?void 0:Cr.q_doubles_scores,"\u5206"),!!((Er=(Qn=Te.exerciseBanks)==null?void 0:Qn.exercise_types)!=null&&Er.q_judges)&&E.createElement("span",{className:"ml20"},"\u5224\u65AD\u9898",(In=(qn=Te.exerciseBanks)==null?void 0:qn.exercise_types)==null?void 0:In.q_judges,"\u9898\uFF0C\u5171",(fr=(cr=Te.exerciseBanks)==null?void 0:cr.exercise_types)==null?void 0:fr.q_judges_scores,"\u5206"),!!((Mn=(xr=Te.exerciseBanks)==null?void 0:xr.exercise_types)!=null&&Mn.q_nulls)&&E.createElement("span",{className:"ml20"},"\u586B\u7A7A\u9898",(tn=(Ut=Te.exerciseBanks)==null?void 0:Ut.exercise_types)==null?void 0:tn.q_nulls,"\u9898\uFF0C\u5171",(Zt=(Yt=Te.exerciseBanks)==null?void 0:Yt.exercise_types)==null?void 0:Zt.q_nulls_scores,"\u5206"),!!((Rn=(wn=Te.exerciseBanks)==null?void 0:wn.exercise_types)!=null&&Rn.q_mains)&&E.createElement("span",{className:"ml20"},"\u7B80\u7B54\u9898",(hn=(qt=Te.exerciseBanks)==null?void 0:qt.exercise_types)==null?void 0:hn.q_mains,"\u9898\uFF0C\u5171",(Nn=(Dn=Te.exerciseBanks)==null?void 0:Dn.exercise_types)==null?void 0:Nn.q_mains_scores,"\u5206"),!!((Tr=(Sr=Te.exerciseBanks)==null?void 0:Sr.exercise_types)!=null&&Tr.q_shixuns)&&E.createElement("span",{className:"ml20"},"\u5B9E\u8BAD\u9898",(Lr=(Dr=Te.exerciseBanks)==null?void 0:Dr.exercise_types)==null?void 0:Lr.q_shixuns,"\u9898\uFF0C\u5171",(Fr=(Nr=Te.exerciseBanks)==null?void 0:Nr.exercise_types)==null?void 0:Fr.q_shixuns_scores,"\u5206"),!!(($r=(zr=Te.exerciseBanks)==null?void 0:zr.exercise_types)!=null&&$r.q_pros)&&E.createElement("span",{className:"ml20"},"\u7F16\u7A0B\u9898",(Xr=(jr=Te.exerciseBanks)==null?void 0:jr.exercise_types)==null?void 0:Xr.q_pros,"\u9898\uFF0C\u5171",(oi=(ei=Te.exerciseBanks)==null?void 0:ei.exercise_types)==null?void 0:oi.q_pros_scores,"\u5206")),E.createElement("span",{className:"fr"},!!((ai=(ti=Te.exerciseBanks)==null?void 0:ti.exercise_types)!=null&&ai.q_counts)&&E.createElement("span",null,"\u5408\u8BA1 ",E.createElement("span",{className:"color-blue"},(gr=(wr=Te.exerciseBanks)==null?void 0:wr.exercise_types)==null?void 0:gr.q_counts)," \u9898\uFF0C \u5171 ",E.createElement("span",{className:`${((_r=(Zr=Te.exerciseBanks)==null?void 0:Zr.exercise_types)==null?void 0:_r.q_scores)>100?"color-red font-bd":"color-orange"}`},(Xi=(li=Te.exerciseBanks)==null?void 0:li.exercise_types)==null?void 0:Xi.q_scores)," \u5206"))),di!=""&&E.createElement("section",{className:[ze.bg,"pt30","pl20","pr20","pb20","mt20"].join(" ")},Or()),E.createElement("section",{style:{display:"flex"},className:[ze.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},E.createElement("div",{style:{flex:"1"}},oo.map(function(ir,kr){return E.createElement(mt.ZP,{className:"mr20",type:"primary",onClick:()=>Mr(ir.id)},E.createElement(Qe.Z,{className:"mr5"}),ir.name)}))),E.createElement(mr,{callback:ir=>{di.push({shixun:ir.challenge_names.map(kr=>({challenge_name:kr,challenge_score:5})),shixun_name:ir.title,shixun_id:ir.id,question_type:5,edit:!0}),Vi([...di])}}))};var dn=(0,Ve.connect)(({polls:et,loading:tt,user:Te,globalSetting:Xt})=>({polls:et,globalSetting:Xt,user:Te,loading:tt.effects}))(Dt)},74410:function(nn,jt,ie){"use strict";ie.d(jt,{AL:function(){return pt},Iy:function(){return Ze},Qv:function(){return Qe},ez:function(){return It},jb:function(){return Ee}});var E=ie(32834),Ve=ie.n(E),ge=ie(11690),Je=ie.n(ge);let Ce=1;function be(at,Ue){const Ct=at.match(/^(\s+)(?:```)/);if(Ct===null)return Ue;const He=Ct[1];return Ue.split(`
|
|
|
`).map(it=>{const nt=it.match(/^\s+/);if(nt===null)return it;const[de]=nt;return de.length>=He.length?it.slice(He.length):it}).join(`
|
|
|
`)}let Oe=[],$e=["<ul>"];const De=new(Ve()).Renderer,he=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ze(){Oe.length=0,$e=["<ul>"]}const Ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function mt(at,Ue,Ct,He){if(Ue>=at.length||at[Ue].level<=Ct)return Ue;var it=at[Ue];He.push("<li><a href='#"+Ce+it.anchor+"'>"+it.text+"</a>"),Ue++;var nt=[];return Ue=mt(at,Ue,it.level,nt),nt.length>0&&(He.push("<ul>"),nt.forEach(function(de){He.push(de)}),He.push("</ul>")),He.push("</li>"),Ue=mt(at,Ue,Ct,He),Ue}function Qe(){return mt(Oe,0,0,$e),$e.push("</ul>"),$e.join("")}const Me={heading(at){const Ue=he.exec(at);if(Ce+=1,Ue)return{type:"heading",raw:Ue[0],depth:Ue[1].length,text:Ue[2]}},fences(at){const Ue=this.rules.block.fences.exec(at);if(Ue){const Ct=Ue[0];let He=be(Ct,Ue[3]||"");const it=Ue[2]?Ue[2].trim():Ue[2];if(["latex","katex","math"].indexOf(it)>=0){const nt=ft(),de=He;He=nt,xt[nt]={type:"block",expression:de}}return{type:"code",raw:Ct,lang:it,text:He}}}},Ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ae=0;const ft=()=>`__special_katext_id_${Ae++}__`;let xt={};function It(){return xt}function pt(){Ae=0,xt={}}function Re(at){return at=at.replace(Ne,(Ue,Ct)=>{const He=ft();return xt[He]={type:"inline",expression:Ct},He}),at}const lt=De.listitem;De.listitem=function(at){return lt(Re(at))};const Ke=De.paragraph;De.paragraph=function(at){return Ke(Re(at))};const Ot=De.tablecell;De.tablecell=function(at,Ue){return Ot(Re(at),Ue)},De.code=function(at,Ue,Ct){const He=(Ue||"").match(/\S*/)[0];return He?["latex","katex","math"].indexOf(He)>=0?`<p class='editormd-tex'>${at}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ue}">${Ct?at:(0,ge.escape)(at,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ct?at:(0,ge.escape)(at,!0))+"</code></pre>"},De.heading=function(at,Ue,Ct){let He=this.options.headerPrefix+Ct.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Oe.push({anchor:He,level:Ue,text:at}),"<h"+Ue+' id="'+Ce+He+'">'+at+"</h"+Ue+">"},Ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ve().use({tokenizer:Me,renderer:De}),jt.ZP=Ve()},86013:function(nn,jt,ie){"use strict";var E=ie(59301),Ve=ie(19248);const ge=Je=>{let Ce;return typeof Je=="object"&&(Je!=null&&Je.clearIcon)?Ce=Je:Je&&(Ce={clearIcon:E.createElement(Ve.Z,null)}),Ce};jt.Z=ge},91882:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return ke}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(11592),Ce=ie(26112),be=ie(22703),Oe=ie(48755),$e=ie(84105),De=ie(19563);const he=Le=>{let{children:bt}=Le;const{getPrefixCls:ve}=E.useContext(Oe.E_),ue=ve("breadcrumb");return E.createElement("li",{className:`${ue}-separator`,"aria-hidden":"true"},bt===""?bt:bt||"/")};he.__ANT_BREADCRUMB_SEPARATOR=!0;var Ze=he,Ee=function(Le,bt){var ve={};for(var ue in Le)Object.prototype.hasOwnProperty.call(Le,ue)&&bt.indexOf(ue)<0&&(ve[ue]=Le[ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ue=Object.getOwnPropertySymbols(Le);rt<ue.length;rt++)bt.indexOf(ue[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,ue[rt])&&(ve[ue[rt]]=Le[ue[rt]]);return ve};function mt(Le,bt){if(Le.title===void 0||Le.title===null)return null;const ve=Object.keys(bt).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${ve})`,"g"),(ue,rt)=>bt[rt]||ue)}function Qe(Le,bt,ve,ue){if(ve==null)return null;const{className:rt,onClick:Nt}=bt,yt=Ee(bt,["className","onClick"]),Ie=Object.assign(Object.assign({},(0,Ce.Z)(yt,{data:!0,aria:!0})),{onClick:Nt});return ue!==void 0?E.createElement("a",Object.assign({},Ie,{className:ge()(`${Le}-link`,rt),href:ue}),ve):E.createElement("span",Object.assign({},Ie,{className:ge()(`${Le}-link`,rt)}),ve)}function Me(Le,bt){return(ue,rt,Nt,yt,Ie)=>{if(bt)return bt(ue,rt,Nt,yt);const Xe=mt(ue,rt);return Qe(Le,ue,Xe,Ie)}}var Ne=function(Le,bt){var ve={};for(var ue in Le)Object.prototype.hasOwnProperty.call(Le,ue)&&bt.indexOf(ue)<0&&(ve[ue]=Le[ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ue=Object.getOwnPropertySymbols(Le);rt<ue.length;rt++)bt.indexOf(ue[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,ue[rt])&&(ve[ue[rt]]=Le[ue[rt]]);return ve};const Ae=Le=>{const{prefixCls:bt,separator:ve="/",children:ue,menu:rt,overlay:Nt,dropdownProps:yt,href:Ie}=Le,qe=(en=>{if(rt||Nt){const Ft=Object.assign({},yt);if(rt){const _t=rt||{},{items:je}=_t,Ht=Ne(_t,["items"]);Ft.menu=Object.assign(Object.assign({},Ht),{items:je==null?void 0:je.map((gt,ae)=>{var{key:te,title:ee,label:oe,path:se}=gt,ne=Ne(gt,["key","title","label","path"]);let pe=oe!=null?oe:ee;return se&&(pe=E.createElement("a",{href:`${Ie}${se}`},pe)),Object.assign(Object.assign({},ne),{key:te!=null?te:ae,label:pe})})})}else Nt&&(Ft.overlay=Nt);return E.createElement(De.Z,Object.assign({placement:"bottom"},Ft),E.createElement("span",{className:`${bt}-overlay-link`},en,E.createElement($e.Z,null)))}return en})(ue);return qe!=null?E.createElement(E.Fragment,null,E.createElement("li",null,qe),ve&&E.createElement(Ze,null,ve)):null},ft=Le=>{const{prefixCls:bt,children:ve,href:ue}=Le,rt=Ne(Le,["prefixCls","children","href"]),{getPrefixCls:Nt}=E.useContext(Oe.E_),yt=Nt("breadcrumb",bt);return E.createElement(Ae,Object.assign({},rt,{prefixCls:yt}),Qe(yt,rt,ve,ue))};ft.__ANT_BREADCRUMB_ITEM=!0;var xt=ft,It=ie(36237),pt=ie(63356),Re=ie(16931),lt=ie(51636);const Ke=Le=>{const{componentCls:bt,iconCls:ve,calc:ue}=Le;return{[bt]:Object.assign(Object.assign({},(0,pt.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[ve]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${(0,It.unit)(Le.paddingXXS)}`,borderRadius:Le.borderRadiusSM,height:Le.fontHeight,display:"inline-block",marginInline:ue(Le.marginXXS).mul(-1).equal(),"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,pt.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${bt}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${bt}-link`]:{[`
|
|
|
> ${ve} + span,
|
|
|
> ${ve} + a
|
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${bt}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.fontHeight,display:"inline-block",padding:`0 ${(0,It.unit)(Le.paddingXXS)}`,marginInline:ue(Le.marginXXS).mul(-1).equal(),[`> ${ve}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}},Ot=Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS});var at=(0,Re.I$)("Breadcrumb",Le=>{const bt=(0,lt.mergeToken)(Le,{});return Ke(bt)},Ot),Ue=function(Le,bt){var ve={};for(var ue in Le)Object.prototype.hasOwnProperty.call(Le,ue)&&bt.indexOf(ue)<0&&(ve[ue]=Le[ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ue=Object.getOwnPropertySymbols(Le);rt<ue.length;rt++)bt.indexOf(ue[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,ue[rt])&&(ve[ue[rt]]=Le[ue[rt]]);return ve};function Ct(Le){const{breadcrumbName:bt,children:ve}=Le,ue=Ue(Le,["breadcrumbName","children"]),rt=Object.assign({title:bt},ue);return ve&&(rt.menu={items:ve.map(Nt=>{var{breadcrumbName:yt}=Nt,Ie=Ue(Nt,["breadcrumbName"]);return Object.assign(Object.assign({},Ie),{title:yt})})}),rt}function He(Le,bt){return(0,E.useMemo)(()=>Le||(bt?bt.map(Ct):null),[Le,bt])}var it=function(Le,bt){var ve={};for(var ue in Le)Object.prototype.hasOwnProperty.call(Le,ue)&&bt.indexOf(ue)<0&&(ve[ue]=Le[ue]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,ue=Object.getOwnPropertySymbols(Le);rt<ue.length;rt++)bt.indexOf(ue[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,ue[rt])&&(ve[ue[rt]]=Le[ue[rt]]);return ve};const nt=(Le,bt)=>{if(bt===void 0)return bt;let ve=(bt||"").replace(/^\//,"");return Object.keys(Le).forEach(ue=>{ve=ve.replace(`:${ue}`,Le[ue])}),ve},de=Le=>{const{prefixCls:bt,separator:ve="/",style:ue,className:rt,rootClassName:Nt,routes:yt,items:Ie,children:Xe,itemRender:qe,params:en={}}=Le,Ft=it(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:_t,direction:je,breadcrumb:Ht}=E.useContext(Oe.E_);let gt;const ae=_t("breadcrumb",bt),[te,ee,oe]=at(ae),se=He(Ie,yt),ne=Me(ae,qe);if(se&&se.length>0){const ct=[],Pe=Ie||yt;gt=se.map((Ge,dt)=>{const{path:Pt,key:St,type:xe,menu:Be,overlay:Tt,onClick:kt,className:Gt,separator:Qt,dropdownProps:wt}=Ge,Kt=nt(en,Pt);Kt!==void 0&&ct.push(Kt);const Lt=St!=null?St:dt;if(xe==="separator")return E.createElement(Ze,{key:Lt},Qt);const Jt={},sn=dt===se.length-1;Be?Jt.menu=Be:Tt&&(Jt.overlay=Tt);let{href:vn}=Ge;return ct.length&&Kt!==void 0&&(vn=`#/${ct.join("/")}`),E.createElement(Ae,Object.assign({key:Lt},Jt,(0,Ce.Z)(Ge,{data:!0,aria:!0}),{className:Gt,dropdownProps:wt,href:vn,separator:sn?"":ve,onClick:kt,prefixCls:ae}),ne(Ge,en,Pe,ct,vn))})}else if(Xe){const ct=(0,Je.Z)(Xe).length;gt=(0,Je.Z)(Xe).map((Pe,Ge)=>{if(!Pe)return Pe;const dt=Ge===ct-1;return(0,be.Tm)(Pe,{separator:dt?"":ve,key:Ge})})}const pe=ge()(ae,Ht==null?void 0:Ht.className,{[`${ae}-rtl`]:je==="rtl"},rt,Nt,ee,oe),ye=Object.assign(Object.assign({},Ht==null?void 0:Ht.style),ue);return te(E.createElement("nav",Object.assign({className:pe,style:ye},Ft),E.createElement("ol",null,gt)))};de.Item=xt,de.Separator=Ze;var Et=de,ke=Et},62673:function(nn,jt,ie){"use strict";ie.d(jt,{default:function(){return at}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(16632),Ce=ie(8654),be=ie(12919),Oe=ie(63872),$e=ie(48755),De=ie(2171),he=ie(83397),Ze=ie(56553),mt=E.createContext(null),Qe=ie(36170),Me=ie(74632),Ne=function(Ue,Ct){var He={};for(var it in Ue)Object.prototype.hasOwnProperty.call(Ue,it)&&Ct.indexOf(it)<0&&(He[it]=Ue[it]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,it=Object.getOwnPropertySymbols(Ue);nt<it.length;nt++)Ct.indexOf(it[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,it[nt])&&(He[it[nt]]=Ue[it[nt]]);return He};const Ae=(Ue,Ct)=>{var He;const{prefixCls:it,className:nt,rootClassName:de,children:Et,indeterminate:ke=!1,style:Le,onMouseEnter:bt,onMouseLeave:ve,skipGroup:ue=!1,disabled:rt}=Ue,Nt=Ne(Ue,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:yt,direction:Ie,checkbox:Xe}=E.useContext($e.E_),qe=E.useContext(mt),{isFormItemInput:en}=E.useContext(Ze.aM),Ft=E.useContext(De.Z),_t=(He=(qe==null?void 0:qe.disabled)||rt)!==null&&He!==void 0?He:Ft,je=E.useRef(Nt.value),Ht=E.useRef(null),gt=(0,Ce.sQ)(Ct,Ht);E.useEffect(()=>{qe==null||qe.registerValue(Nt.value)},[]),E.useEffect(()=>{if(!ue)return Nt.value!==je.current&&(qe==null||qe.cancelValue(je.current),qe==null||qe.registerValue(Nt.value),je.current=Nt.value),()=>qe==null?void 0:qe.cancelValue(Nt.value)},[Nt.value]),E.useEffect(()=>{var Ge;!((Ge=Ht.current)===null||Ge===void 0)&&Ge.input&&(Ht.current.input.indeterminate=ke)},[ke]);const ae=yt("checkbox",it),te=(0,he.Z)(ae),[ee,oe,se]=(0,Qe.ZP)(ae,te),ne=Object.assign({},Nt);qe&&!ue&&(ne.onChange=function(){Nt.onChange&&Nt.onChange.apply(Nt,arguments),qe.toggleOption&&qe.toggleOption({label:Et,value:Nt.value})},ne.name=qe.name,ne.checked=qe.value.includes(Nt.value));const pe=ge()(`${ae}-wrapper`,{[`${ae}-rtl`]:Ie==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:_t,[`${ae}-wrapper-in-form-item`]:en},Xe==null?void 0:Xe.className,nt,de,se,te,oe),ye=ge()({[`${ae}-indeterminate`]:ke},Oe.A,oe),[ct,Pe]=(0,Me.Z)(ne.onClick);return ee(E.createElement(be.Z,{component:"Checkbox",disabled:_t},E.createElement("label",{className:pe,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Le),onMouseEnter:bt,onMouseLeave:ve,onClick:ct},E.createElement(Je.Z,Object.assign({},ne,{onClick:Pe,prefixCls:ae,className:ye,disabled:_t,ref:gt})),Et!==void 0&&E.createElement("span",{className:`${ae}-label`},Et))))};var xt=E.forwardRef(Ae),It=ie(94480),pt=ie(2738),Re=function(Ue,Ct){var He={};for(var it in Ue)Object.prototype.hasOwnProperty.call(Ue,it)&&Ct.indexOf(it)<0&&(He[it]=Ue[it]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,it=Object.getOwnPropertySymbols(Ue);nt<it.length;nt++)Ct.indexOf(it[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,it[nt])&&(He[it[nt]]=Ue[it[nt]]);return He},Ke=E.forwardRef((Ue,Ct)=>{const{defaultValue:He,children:it,options:nt=[],prefixCls:de,className:Et,rootClassName:ke,style:Le,onChange:bt}=Ue,ve=Re(Ue,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ue,direction:rt}=E.useContext($e.E_),[Nt,yt]=E.useState(ve.value||He||[]),[Ie,Xe]=E.useState([]);E.useEffect(()=>{"value"in ve&&yt(ve.value||[])},[ve.value]);const qe=E.useMemo(()=>nt.map(ye=>typeof ye=="string"||typeof ye=="number"?{label:ye,value:ye}:ye),[nt]),en=ye=>{Xe(ct=>ct.filter(Pe=>Pe!==ye))},Ft=ye=>{Xe(ct=>[].concat((0,It.Z)(ct),[ye]))},_t=ye=>{const ct=Nt.indexOf(ye.value),Pe=(0,It.Z)(Nt);ct===-1?Pe.push(ye.value):Pe.splice(ct,1),"value"in ve||yt(Pe),bt==null||bt(Pe.filter(Ge=>Ie.includes(Ge)).sort((Ge,dt)=>{const Pt=qe.findIndex(xe=>xe.value===Ge),St=qe.findIndex(xe=>xe.value===dt);return Pt-St}))},je=ue("checkbox",de),Ht=`${je}-group`,gt=(0,he.Z)(je),[ae,te,ee]=(0,Qe.ZP)(je,gt),oe=(0,pt.Z)(ve,["value","disabled"]),se=nt.length?qe.map(ye=>E.createElement(xt,{prefixCls:je,key:ye.value.toString(),disabled:"disabled"in ye?ye.disabled:ve.disabled,value:ye.value,checked:Nt.includes(ye.value),onChange:ye.onChange,className:`${Ht}-item`,style:ye.style,title:ye.title,id:ye.id,required:ye.required},ye.label)):it,ne={toggleOption:_t,value:Nt,disabled:ve.disabled,name:ve.name,registerValue:Ft,cancelValue:en},pe=ge()(Ht,{[`${Ht}-rtl`]:rt==="rtl"},Et,ke,ee,gt,te);return ae(E.createElement("div",Object.assign({className:pe,style:Le},oe,{ref:Ct}),E.createElement(mt.Provider,{value:ne},se)))});const Ot=xt;Ot.Group=Ke,Ot.__ANT_CHECKBOX=!0;var at=Ot},36170:function(nn,jt,ie){"use strict";ie.d(jt,{C2:function(){return be}});var E=ie(36237),Ve=ie(63356),ge=ie(51636),Je=ie(16931);const Ce=Oe=>{const{checkboxCls:$e}=Oe,De=`${$e}-wrapper`;return[{[`${$e}-group`]:Object.assign(Object.assign({},(0,Ve.Wf)(Oe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Oe.marginXS,[`> ${Oe.antCls}-row`]:{flex:1}}),[De]:Object.assign(Object.assign({},(0,Ve.Wf)(Oe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${De}`]:{marginInlineStart:0},[`&${De}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[$e]:Object.assign(Object.assign({},(0,Ve.Wf)(Oe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Oe.borderRadiusSM,alignSelf:"center",[`${$e}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${$e}-inner`]:Object.assign({},(0,Ve.oN)(Oe))},[`${$e}-inner`]:{boxSizing:"border-box",display:"block",width:Oe.checkboxSize,height:Oe.checkboxSize,direction:"ltr",backgroundColor:Oe.colorBgContainer,border:`${(0,E.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Oe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Oe.calc(Oe.checkboxSize).div(14).mul(5).equal(),height:Oe.calc(Oe.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(Oe.lineWidthBold)} solid ${Oe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Oe.motionDurationFast} ${Oe.motionEaseInBack}, opacity ${Oe.motionDurationFast}`}},"& + span":{paddingInlineStart:Oe.paddingXS,paddingInlineEnd:Oe.paddingXS}})},{[`
|
|
|
${De}:not(${De}-disabled),
|
|
|
${$e}:not(${$e}-disabled)
|
|
|
`]:{[`&:hover ${$e}-inner`]:{borderColor:Oe.colorPrimary}},[`${De}:not(${De}-disabled)`]:{[`&:hover ${$e}-checked:not(${$e}-disabled) ${$e}-inner`]:{backgroundColor:Oe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${$e}-checked:not(${$e}-disabled):after`]:{borderColor:Oe.colorPrimaryHover}}},{[`${$e}-checked`]:{[`${$e}-inner`]:{backgroundColor:Oe.colorPrimary,borderColor:Oe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Oe.motionDurationMid} ${Oe.motionEaseOutBack} ${Oe.motionDurationFast}`}}},[`
|
|
|
${De}-checked:not(${De}-disabled),
|
|
|
${$e}-checked:not(${$e}-disabled)
|
|
|
`]:{[`&:hover ${$e}-inner`]:{backgroundColor:Oe.colorPrimaryHover,borderColor:"transparent"}}},{[$e]:{"&-indeterminate":{[`${$e}-inner`]:{backgroundColor:`${Oe.colorBgContainer} !important`,borderColor:`${Oe.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Oe.calc(Oe.fontSizeLG).div(2).equal(),height:Oe.calc(Oe.fontSizeLG).div(2).equal(),backgroundColor:Oe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${$e}-inner`]:{backgroundColor:`${Oe.colorBgContainer} !important`,borderColor:`${Oe.colorPrimary} !important`}}}},{[`${De}-disabled`]:{cursor:"not-allowed"},[`${$e}-disabled`]:{[`&, ${$e}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${$e}-inner`]:{background:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,"&:after":{borderColor:Oe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Oe.colorTextDisabled},[`&${$e}-indeterminate ${$e}-inner::after`]:{background:Oe.colorTextDisabled}}}]};function be(Oe,$e){const De=(0,ge.mergeToken)($e,{checkboxCls:`.${Oe}`,checkboxSize:$e.controlInteractiveSize});return[Ce(De)]}jt.ZP=(0,Je.I$)("Checkbox",(Oe,$e)=>{let{prefixCls:De}=$e;return[be(De,Oe)]})},38406:function(nn,jt,ie){"use strict";var E=ie(59301),Ve=ie(48755),ge=ie(584);const Je=Ce=>{const{componentName:be}=Ce,{getPrefixCls:Oe}=(0,E.useContext)(Ve.E_),$e=Oe("empty");switch(be){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:`${$e}-small`});case"Table.filter":return null;default:return E.createElement(ge.Z,null)}};jt.Z=Je},37285:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Qe}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(48755),Ce=ie(36237),be=ie(63356),Oe=ie(16931),$e=ie(51636);const De=Me=>{const{componentCls:Ne,sizePaddingEdgeHorizontal:Ae,colorSplit:ft,lineWidth:xt,textPaddingInline:It,orientationMargin:pt,verticalMarginInline:Re}=Me;return{[Ne]:Object.assign(Object.assign({},(0,be.Wf)(Me)),{borderBlockStart:`${(0,Ce.unit)(xt)} solid ${ft}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Re,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,Ce.unit)(xt)} solid ${ft}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,Ce.unit)(Me.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,Ce.unit)(Me.dividerHorizontalWithTextGutterMargin)} 0`,color:Me.colorTextHeading,fontWeight:500,fontSize:Me.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${ft}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,Ce.unit)(xt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ne}-with-text-start`]:{"&::before":{width:`calc(${pt} * 100%)`},"&::after":{width:`calc(100% - ${pt} * 100%)`}},[`&-horizontal${Ne}-with-text-end`]:{"&::before":{width:`calc(100% - ${pt} * 100%)`},"&::after":{width:`calc(${pt} * 100%)`}},[`${Ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:It},"&-dashed":{background:"none",borderColor:ft,borderStyle:"dashed",borderWidth:`${(0,Ce.unit)(xt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ne}-dashed`]:{borderInlineStartWidth:xt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:ft,borderStyle:"dotted",borderWidth:`${(0,Ce.unit)(xt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ne}-dotted`]:{borderInlineStartWidth:xt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ne}-with-text`]:{color:Me.colorText,fontWeight:"normal",fontSize:Me.fontSize},[`&-horizontal${Ne}-with-text-start${Ne}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ne}-inner-text`]:{paddingInlineStart:Ae}},[`&-horizontal${Ne}-with-text-end${Ne}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ne}-inner-text`]:{paddingInlineEnd:Ae}}})}},he=Me=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Me.marginXS});var Ze=(0,Oe.I$)("Divider",Me=>{const Ne=(0,$e.mergeToken)(Me,{dividerHorizontalWithTextGutterMargin:Me.margin,dividerHorizontalGutterMargin:Me.marginLG,sizePaddingEdgeHorizontal:0});return[De(Ne)]},he,{unitless:{orientationMargin:!0}}),Ee=function(Me,Ne){var Ae={};for(var ft in Me)Object.prototype.hasOwnProperty.call(Me,ft)&&Ne.indexOf(ft)<0&&(Ae[ft]=Me[ft]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,ft=Object.getOwnPropertySymbols(Me);xt<ft.length;xt++)Ne.indexOf(ft[xt])<0&&Object.prototype.propertyIsEnumerable.call(Me,ft[xt])&&(Ae[ft[xt]]=Me[ft[xt]]);return Ae},Qe=Me=>{const{getPrefixCls:Ne,direction:Ae,className:ft,style:xt}=(0,Je.dj)("divider"),{prefixCls:It,type:pt="horizontal",orientation:Re="center",orientationMargin:lt,className:Ke,rootClassName:Ot,children:at,dashed:Ue,variant:Ct="solid",plain:He,style:it}=Me,nt=Ee(Me,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),de=Ne("divider",It),[Et,ke,Le]=Ze(de),bt=!!at,ve=E.useMemo(()=>Re==="left"?Ae==="rtl"?"end":"start":Re==="right"?Ae==="rtl"?"start":"end":Re,[Ae,Re]),ue=ve==="start"&<!=null,rt=ve==="end"&<!=null,Nt=ge()(de,ft,ke,Le,`${de}-${pt}`,{[`${de}-with-text`]:bt,[`${de}-with-text-${ve}`]:bt,[`${de}-dashed`]:!!Ue,[`${de}-${Ct}`]:Ct!=="solid",[`${de}-plain`]:!!He,[`${de}-rtl`]:Ae==="rtl",[`${de}-no-default-orientation-margin-start`]:ue,[`${de}-no-default-orientation-margin-end`]:rt},Ke,Ot),yt=E.useMemo(()=>typeof lt=="number"?lt:/^\d+$/.test(lt)?Number(lt):lt,[lt]),Ie={marginInlineStart:ue?yt:void 0,marginInlineEnd:rt?yt:void 0};return Et(E.createElement("div",Object.assign({className:Nt,style:Object.assign(Object.assign({},xt),it)},nt,{role:"separator"}),at&&pt!=="vertical"&&E.createElement("span",{className:`${de}-inner-text`,style:Ie},at)))}},36207:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return ct}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(33885),Ce=ie(42978),be=ie(43403),Oe=ie(34280),$e=E.createContext(null),De=E.createContext({}),he=$e,Ze=ie(20068),Ee=ie(54476),mt=ie(77900),Qe=ie(10228),Me=ie(26112),Ne=ie(75931),Ae=ie(8654),ft=["prefixCls","className","containerRef"],xt=function(Ge){var dt=Ge.prefixCls,Pt=Ge.className,St=Ge.containerRef,xe=(0,Ne.Z)(Ge,ft),Be=E.useContext(De),Tt=Be.panel,kt=(0,Ae.x1)(Tt,St);return E.createElement("div",(0,Ee.Z)({className:ge()("".concat(dt,"-content"),Pt),role:"dialog",ref:kt},(0,Me.Z)(Ge,{aria:!0}),{"aria-modal":"true"},xe))},It=xt,pt=ie(48736);function Re(Pe){return typeof Pe=="string"&&String(Number(Pe))===Pe?((0,pt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Pe)):Pe}function lt(Pe){warning(!("wrapperClassName"in Pe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Pe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ot(Pe,Ge){var dt,Pt,St,xe=Pe.prefixCls,Be=Pe.open,Tt=Pe.placement,kt=Pe.inline,Gt=Pe.push,Qt=Pe.forceRender,wt=Pe.autoFocus,Kt=Pe.keyboard,Lt=Pe.classNames,Jt=Pe.rootClassName,sn=Pe.rootStyle,vn=Pe.zIndex,Sn=Pe.className,Fe=Pe.id,ht=Pe.style,Bt=Pe.motion,Vt=Pe.width,cn=Pe.height,bn=Pe.children,Zn=Pe.mask,zn=Pe.maskClosable,rn=Pe.maskMotion,En=Pe.maskClassName,Pn=Pe.maskStyle,_n=Pe.afterOpenChange,On=Pe.onClose,Tn=Pe.onMouseEnter,an=Pe.onMouseOver,Cn=Pe.onMouseLeave,fn=Pe.onClick,kn=Pe.onKeyDown,lr=Pe.onKeyUp,er=Pe.styles,Gn=Pe.drawerRender,sr=E.useRef(),hr=E.useRef(),yr=E.useRef();E.useImperativeHandle(Ge,function(){return sr.current});var ur=function(Mt){var Dt=Mt.keyCode,dn=Mt.shiftKey;switch(Dt){case Qe.Z.TAB:{if(Dt===Qe.Z.TAB){if(!dn&&document.activeElement===yr.current){var et;(et=hr.current)===null||et===void 0||et.focus({preventScroll:!0})}else if(dn&&document.activeElement===hr.current){var tt;(tt=yr.current)===null||tt===void 0||tt.focus({preventScroll:!0})}}break}case Qe.Z.ESC:{On&&Kt&&(Mt.stopPropagation(),On(Mt));break}}};E.useEffect(function(){if(Be&&wt){var Rt;(Rt=sr.current)===null||Rt===void 0||Rt.focus({preventScroll:!0})}},[Be]);var $t=E.useState(!1),un=(0,Ce.Z)($t,2),jn=un[0],mr=un[1],ze=E.useContext(he),ot;typeof Gt=="boolean"?ot=Gt?{}:{distance:0}:ot=Gt||{};var Se=(dt=(Pt=(St=ot)===null||St===void 0?void 0:St.distance)!==null&&Pt!==void 0?Pt:ze==null?void 0:ze.pushDistance)!==null&&dt!==void 0?dt:180,We=E.useMemo(function(){return{pushDistance:Se,push:function(){mr(!0)},pull:function(){mr(!1)}}},[Se]);E.useEffect(function(){if(Be){var Rt;ze==null||(Rt=ze.push)===null||Rt===void 0||Rt.call(ze)}else{var Mt;ze==null||(Mt=ze.pull)===null||Mt===void 0||Mt.call(ze)}},[Be]),E.useEffect(function(){return function(){var Rt;ze==null||(Rt=ze.pull)===null||Rt===void 0||Rt.call(ze)}},[]);var we=Zn&&E.createElement(mt.default,(0,Ee.Z)({key:"mask"},rn,{visible:Be}),function(Rt,Mt){var Dt=Rt.className,dn=Rt.style;return E.createElement("div",{className:ge()("".concat(xe,"-mask"),Dt,Lt==null?void 0:Lt.mask,En),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},dn),Pn),er==null?void 0:er.mask),onClick:zn&&Be?On:void 0,ref:Mt})}),_e=typeof Bt=="function"?Bt(Tt):Bt,vt={};if(jn&&Se)switch(Tt){case"top":vt.transform="translateY(".concat(Se,"px)");break;case"bottom":vt.transform="translateY(".concat(-Se,"px)");break;case"left":vt.transform="translateX(".concat(Se,"px)");break;default:vt.transform="translateX(".concat(-Se,"px)");break}Tt==="left"||Tt==="right"?vt.width=Re(Vt):vt.height=Re(cn);var on={onMouseEnter:Tn,onMouseOver:an,onMouseLeave:Cn,onClick:fn,onKeyDown:kn,onKeyUp:lr},ln=E.createElement(mt.default,(0,Ee.Z)({key:"panel"},_e,{visible:Be,forceRender:Qt,onVisibleChanged:function(Mt){_n==null||_n(Mt)},removeOnLeave:!1,leavedClassName:"".concat(xe,"-content-wrapper-hidden")}),function(Rt,Mt){var Dt=Rt.className,dn=Rt.style,et=E.createElement(It,(0,Ee.Z)({id:Fe,containerRef:Mt,prefixCls:xe,className:ge()(Sn,Lt==null?void 0:Lt.content),style:(0,Je.Z)((0,Je.Z)({},ht),er==null?void 0:er.content)},(0,Me.Z)(Pe,{aria:!0}),on),bn);return E.createElement("div",(0,Ee.Z)({className:ge()("".concat(xe,"-content-wrapper"),Lt==null?void 0:Lt.wrapper,Dt),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},vt),dn),er==null?void 0:er.wrapper)},(0,Me.Z)(Pe,{data:!0})),Gn?Gn(et):et)}),gn=(0,Je.Z)({},sn);return vn&&(gn.zIndex=vn),E.createElement(he.Provider,{value:We},E.createElement("div",{className:ge()(xe,"".concat(xe,"-").concat(Tt),Jt,(0,Ze.Z)((0,Ze.Z)({},"".concat(xe,"-open"),Be),"".concat(xe,"-inline"),kt)),style:gn,tabIndex:-1,ref:sr,onKeyDown:ur},we,E.createElement("div",{tabIndex:0,ref:hr,style:Ke,"aria-hidden":"true","data-sentinel":"start"}),ln,E.createElement("div",{tabIndex:0,ref:yr,style:Ke,"aria-hidden":"true","data-sentinel":"end"})))}var at=E.forwardRef(Ot),Ue=at,Ct=function(Ge){var dt=Ge.open,Pt=dt===void 0?!1:dt,St=Ge.prefixCls,xe=St===void 0?"rc-drawer":St,Be=Ge.placement,Tt=Be===void 0?"right":Be,kt=Ge.autoFocus,Gt=kt===void 0?!0:kt,Qt=Ge.keyboard,wt=Qt===void 0?!0:Qt,Kt=Ge.width,Lt=Kt===void 0?378:Kt,Jt=Ge.mask,sn=Jt===void 0?!0:Jt,vn=Ge.maskClosable,Sn=vn===void 0?!0:vn,Fe=Ge.getContainer,ht=Ge.forceRender,Bt=Ge.afterOpenChange,Vt=Ge.destroyOnClose,cn=Ge.onMouseEnter,bn=Ge.onMouseOver,Zn=Ge.onMouseLeave,zn=Ge.onClick,rn=Ge.onKeyDown,En=Ge.onKeyUp,Pn=Ge.panelRef,_n=E.useState(!1),On=(0,Ce.Z)(_n,2),Tn=On[0],an=On[1],Cn=E.useState(!1),fn=(0,Ce.Z)(Cn,2),kn=fn[0],lr=fn[1];(0,Oe.Z)(function(){lr(!0)},[]);var er=kn?Pt:!1,Gn=E.useRef(),sr=E.useRef();(0,Oe.Z)(function(){er&&(sr.current=document.activeElement)},[er]);var hr=function(jn){var mr;if(an(jn),Bt==null||Bt(jn),!jn&&sr.current&&!((mr=Gn.current)!==null&&mr!==void 0&&mr.contains(sr.current))){var ze;(ze=sr.current)===null||ze===void 0||ze.focus({preventScroll:!0})}},yr=E.useMemo(function(){return{panel:Pn}},[Pn]);if(!ht&&!Tn&&!er&&Vt)return null;var ur={onMouseEnter:cn,onMouseOver:bn,onMouseLeave:Zn,onClick:zn,onKeyDown:rn,onKeyUp:En},$t=(0,Je.Z)((0,Je.Z)({},Ge),{},{open:er,prefixCls:xe,placement:Tt,autoFocus:Gt,keyboard:wt,width:Lt,mask:sn,maskClosable:Sn,inline:Fe===!1,afterOpenChange:hr,ref:Gn},ur);return E.createElement(De.Provider,{value:yr},E.createElement(be.Z,{open:er||ht||Tn,autoDestroy:!1,getContainer:Fe,autoLock:sn&&(er||Tn)},E.createElement(Ue,$t)))},He=Ct,it=He,nt=ie(62487),de=ie(75030),Et=ie(86641),ke=ie(55743),Le=ie(48755),bt=ie(91190),ve=ie(78776),ue=ie(458),Nt=Pe=>{var Ge,dt;const{prefixCls:Pt,title:St,footer:xe,extra:Be,loading:Tt,onClose:kt,headerStyle:Gt,bodyStyle:Qt,footerStyle:wt,children:Kt,classNames:Lt,styles:Jt}=Pe,sn=(0,Le.dj)("drawer"),vn=E.useCallback(Vt=>E.createElement("button",{type:"button",onClick:kt,"aria-label":"Close",className:`${Pt}-close`},Vt),[kt]),[Sn,Fe]=(0,ve.Z)((0,ve.w)(Pe),(0,ve.w)(sn),{closable:!0,closeIconRender:vn}),ht=E.useMemo(()=>{var Vt,cn;return!St&&!Sn?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Vt=sn.styles)===null||Vt===void 0?void 0:Vt.header),Gt),Jt==null?void 0:Jt.header),className:ge()(`${Pt}-header`,{[`${Pt}-header-close-only`]:Sn&&!St&&!Be},(cn=sn.classNames)===null||cn===void 0?void 0:cn.header,Lt==null?void 0:Lt.header)},E.createElement("div",{className:`${Pt}-header-title`},Fe,St&&E.createElement("div",{className:`${Pt}-title`},St)),Be&&E.createElement("div",{className:`${Pt}-extra`},Be))},[Sn,Fe,Be,Gt,Pt,St]),Bt=E.useMemo(()=>{var Vt,cn;if(!xe)return null;const bn=`${Pt}-footer`;return E.createElement("div",{className:ge()(bn,(Vt=sn.classNames)===null||Vt===void 0?void 0:Vt.footer,Lt==null?void 0:Lt.footer),style:Object.assign(Object.assign(Object.assign({},(cn=sn.styles)===null||cn===void 0?void 0:cn.footer),wt),Jt==null?void 0:Jt.footer)},xe)},[xe,wt,Pt]);return E.createElement(E.Fragment,null,ht,E.createElement("div",{className:ge()(`${Pt}-body`,Lt==null?void 0:Lt.body,(Ge=sn.classNames)===null||Ge===void 0?void 0:Ge.body),style:Object.assign(Object.assign(Object.assign({},(dt=sn.styles)===null||dt===void 0?void 0:dt.body),Qt),Jt==null?void 0:Jt.body)},Tt?E.createElement(ue.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Pt}-body-skeleton`}):Kt),Bt)},yt=ie(36237),Ie=ie(63356),Xe=ie(16931),qe=ie(51636);const en=Pe=>{const Ge="100%";return{left:`translateX(-${Ge})`,right:`translateX(${Ge})`,top:`translateY(-${Ge})`,bottom:`translateY(${Ge})`}[Pe]},Ft=(Pe,Ge)=>({"&-enter, &-appear":Object.assign(Object.assign({},Pe),{"&-active":Ge}),"&-leave":Object.assign(Object.assign({},Ge),{"&-active":Pe})}),_t=(Pe,Ge)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ge}`}}},Ft({opacity:Pe},{opacity:1})),je=(Pe,Ge)=>[_t(.7,Ge),Ft({transform:en(Pe)},{transform:"none"})];var gt=Pe=>{const{componentCls:Ge,motionDurationSlow:dt}=Pe;return{[Ge]:{[`${Ge}-mask-motion`]:_t(0,dt),[`${Ge}-panel-motion`]:["left","right","top","bottom"].reduce((Pt,St)=>Object.assign(Object.assign({},Pt),{[`&-${St}`]:je(St,dt)}),{})}}};const ae=Pe=>{const{borderRadiusSM:Ge,componentCls:dt,zIndexPopup:Pt,colorBgMask:St,colorBgElevated:xe,motionDurationSlow:Be,motionDurationMid:Tt,paddingXS:kt,padding:Gt,paddingLG:Qt,fontSizeLG:wt,lineHeightLG:Kt,lineWidth:Lt,lineType:Jt,colorSplit:sn,marginXS:vn,colorIcon:Sn,colorIconHover:Fe,colorBgTextHover:ht,colorBgTextActive:Bt,colorText:Vt,fontWeightStrong:cn,footerPaddingBlock:bn,footerPaddingInline:Zn,calc:zn}=Pe,rn=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Pt,pointerEvents:"none",color:Vt,"&-pure":{position:"relative",background:xe,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:Pe.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:Pe.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:Pe.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:Pe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Pt,background:St,pointerEvents:"auto"},[rn]:{position:"absolute",zIndex:Pt,maxWidth:"100vw",transition:`all ${Be}`,"&-hidden":{display:"none"}},[`&-left > ${rn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Pe.boxShadowDrawerLeft},[`&-right > ${rn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Pe.boxShadowDrawerRight},[`&-top > ${rn}`]:{top:0,insetInline:0,boxShadow:Pe.boxShadowDrawerUp},[`&-bottom > ${rn}`]:{bottom:0,insetInline:0,boxShadow:Pe.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:xe,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,yt.unit)(Gt)} ${(0,yt.unit)(Qt)}`,fontSize:wt,lineHeight:Kt,borderBottom:`${(0,yt.unit)(Lt)} ${Jt} ${sn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:zn(wt).add(kt).equal(),height:zn(wt).add(kt).equal(),borderRadius:Ge,justifyContent:"center",alignItems:"center",marginInlineEnd:vn,color:Sn,fontWeight:cn,fontSize:wt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Tt}`,textRendering:"auto","&:hover":{color:Fe,backgroundColor:ht,textDecoration:"none"},"&:active":{backgroundColor:Bt}},(0,Ie.Qy)(Pe)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:Pe.fontWeightStrong,fontSize:wt,lineHeight:Kt},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Qt,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,yt.unit)(bn)} ${(0,yt.unit)(Zn)}`,borderTop:`${(0,yt.unit)(Lt)} ${Jt} ${sn}`},"&-rtl":{direction:"rtl"}}}},te=Pe=>({zIndexPopup:Pe.zIndexPopupBase,footerPaddingBlock:Pe.paddingXS,footerPaddingInline:Pe.padding});var ee=(0,Xe.I$)("Drawer",Pe=>{const Ge=(0,qe.mergeToken)(Pe,{});return[ae(Ge),gt(Ge)]},te),oe=function(Pe,Ge){var dt={};for(var Pt in Pe)Object.prototype.hasOwnProperty.call(Pe,Pt)&&Ge.indexOf(Pt)<0&&(dt[Pt]=Pe[Pt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Pt=Object.getOwnPropertySymbols(Pe);St<Pt.length;St++)Ge.indexOf(Pt[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Pt[St])&&(dt[Pt[St]]=Pe[Pt[St]]);return dt};const se=null,ne={distance:180},pe=Pe=>{var Ge;const{rootClassName:dt,width:Pt,height:St,size:xe="default",mask:Be=!0,push:Tt=ne,open:kt,afterOpenChange:Gt,onClose:Qt,prefixCls:wt,getContainer:Kt,style:Lt,className:Jt,visible:sn,afterVisibleChange:vn,maskStyle:Sn,drawerStyle:Fe,contentWrapperStyle:ht}=Pe,Bt=oe(Pe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Vt,getPrefixCls:cn,direction:bn,className:Zn,style:zn,classNames:rn,styles:En}=(0,Le.dj)("drawer"),Pn=cn("drawer",wt),[_n,On,Tn]=ee(Pn),an=Kt===void 0&&Vt?()=>Vt(document.body):Kt,Cn=ge()({"no-mask":!Be,[`${Pn}-rtl`]:bn==="rtl"},dt,On,Tn),fn=E.useMemo(()=>Pt!=null?Pt:xe==="large"?736:378,[Pt,xe]),kn=E.useMemo(()=>St!=null?St:xe==="large"?736:378,[St,xe]),lr={motionName:(0,Et.m)(Pn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},er=$t=>({motionName:(0,Et.m)(Pn,`panel-motion-${$t}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Gn=(0,bt.H)(),[sr,hr]=(0,de.Cn)("Drawer",Bt.zIndex),{classNames:yr={},styles:ur={}}=Bt;return _n(E.createElement(nt.Z,{form:!0,space:!0},E.createElement(ke.Z.Provider,{value:hr},E.createElement(it,Object.assign({prefixCls:Pn,onClose:Qt,maskMotion:lr,motion:er},Bt,{classNames:{mask:ge()(yr.mask,rn.mask),content:ge()(yr.content,rn.content),wrapper:ge()(yr.wrapper,rn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ur.mask),Sn),En.mask),content:Object.assign(Object.assign(Object.assign({},ur.content),Fe),En.content),wrapper:Object.assign(Object.assign(Object.assign({},ur.wrapper),ht),En.wrapper)},open:kt!=null?kt:sn,mask:Be,push:Tt,width:fn,height:kn,style:Object.assign(Object.assign({},zn),Lt),className:ge()(Zn,Jt),rootClassName:Cn,getContainer:an,afterOpenChange:Gt!=null?Gt:vn,panelRef:Gn,zIndex:sr}),E.createElement(Nt,Object.assign({prefixCls:Pn},Bt,{onClose:Qt}))))))},ye=Pe=>{const{prefixCls:Ge,style:dt,className:Pt,placement:St="right"}=Pe,xe=oe(Pe,["prefixCls","style","className","placement"]),{getPrefixCls:Be}=E.useContext(Le.E_),Tt=Be("drawer",Ge),[kt,Gt,Qt]=ee(Tt),wt=ge()(Tt,`${Tt}-pure`,`${Tt}-${St}`,Gt,Qt,Pt);return kt(E.createElement("div",{className:wt,style:dt},E.createElement(Nt,Object.assign({prefixCls:Tt},xe))))};pe._InternalPanelDoNotUseOrYouWillBeFired=ye;var ct=pe},19563:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return yt}});var E=ie(59301),Ve=ie(33853),ge=ie(38819),Je=ie(92310),Ce=ie.n(Je),be=ie(96478),Oe=ie(6089),$e=ie(18929),De=ie(2738),he=ie(75030),Ee=Ie=>typeof Ie!="object"&&typeof Ie!="function"||Ie===null,mt=ie(52838),Qe=ie(45915),Me=ie(22703),Ne=ie(32383),Ae=ie(55743),ft=ie(48755),xt=ie(83397),It=ie(93041),pt=ie(78857),Re=ie(57700),lt=ie(36237),Ke=ie(63356),Ot=ie(46e3),at=ie(93873),Ue=ie(34925),Ct=ie(37645),He=ie(36305),it=ie(16931),nt=ie(51636),Et=Ie=>{const{componentCls:Xe,menuCls:qe,colorError:en,colorTextLightSolid:Ft}=Ie,_t=`${qe}-item`;return{[`${Xe}, ${Xe}-menu-submenu`]:{[`${qe} ${_t}`]:{[`&${_t}-danger:not(${_t}-disabled)`]:{color:en,"&:hover":{color:Ft,backgroundColor:en}}}}}};const ke=Ie=>{const{componentCls:Xe,menuCls:qe,zIndexPopup:en,dropdownArrowDistance:Ft,sizePopupArrow:_t,antCls:je,iconCls:Ht,motionDurationMid:gt,paddingBlock:ae,fontSize:te,dropdownEdgeChildPadding:ee,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:ne,colorBgElevated:pe}=Ie;return[{[Xe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:en,display:"block","&::before":{position:"absolute",insetBlock:Ie.calc(_t).div(2).sub(Ft).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${je}-btn`]:{[`& > ${Ht}-down, & > ${je}-btn-icon > ${Ht}-down`]:{fontSize:se}},[`${Xe}-wrap`]:{position:"relative",[`${je}-btn > ${Ht}-down`]:{fontSize:se},[`${Ht}-down::before`]:{transition:`transform ${gt}`}},[`${Xe}-wrap-open`]:{[`${Ht}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${je}-slide-down-enter${je}-slide-down-enter-active${Xe}-placement-bottomLeft,
|
|
|
&${je}-slide-down-appear${je}-slide-down-appear-active${Xe}-placement-bottomLeft,
|
|
|
&${je}-slide-down-enter${je}-slide-down-enter-active${Xe}-placement-bottom,
|
|
|
&${je}-slide-down-appear${je}-slide-down-appear-active${Xe}-placement-bottom,
|
|
|
&${je}-slide-down-enter${je}-slide-down-enter-active${Xe}-placement-bottomRight,
|
|
|
&${je}-slide-down-appear${je}-slide-down-appear-active${Xe}-placement-bottomRight`]:{animationName:Ot.fJ},[`&${je}-slide-up-enter${je}-slide-up-enter-active${Xe}-placement-topLeft,
|
|
|
&${je}-slide-up-appear${je}-slide-up-appear-active${Xe}-placement-topLeft,
|
|
|
&${je}-slide-up-enter${je}-slide-up-enter-active${Xe}-placement-top,
|
|
|
&${je}-slide-up-appear${je}-slide-up-appear-active${Xe}-placement-top,
|
|
|
&${je}-slide-up-enter${je}-slide-up-enter-active${Xe}-placement-topRight,
|
|
|
&${je}-slide-up-appear${je}-slide-up-appear-active${Xe}-placement-topRight`]:{animationName:Ot.Qt},[`&${je}-slide-down-leave${je}-slide-down-leave-active${Xe}-placement-bottomLeft,
|
|
|
&${je}-slide-down-leave${je}-slide-down-leave-active${Xe}-placement-bottom,
|
|
|
&${je}-slide-down-leave${je}-slide-down-leave-active${Xe}-placement-bottomRight`]:{animationName:Ot.Uw},[`&${je}-slide-up-leave${je}-slide-up-leave-active${Xe}-placement-topLeft,
|
|
|
&${je}-slide-up-leave${je}-slide-up-leave-active${Xe}-placement-top,
|
|
|
&${je}-slide-up-leave${je}-slide-up-leave-active${Xe}-placement-topRight`]:{animationName:Ot.ly}}},(0,Ct.ZP)(Ie,pe,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Xe} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:en,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Xe}, ${Xe}-menu-submenu`]:Object.assign(Object.assign({},(0,Ke.Wf)(Ie)),{[qe]:Object.assign(Object.assign({padding:ee,listStyleType:"none",backgroundColor:pe,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,Ke.Qy)(Ie)),{"&:empty":{padding:0,boxShadow:"none"},[`${qe}-item-group-title`]:{padding:`${(0,lt.unit)(ae)} ${(0,lt.unit)(ne)}`,color:Ie.colorTextDescription,transition:`all ${gt}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:te,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${gt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${qe}-item-extra`]:{paddingInlineStart:Ie.padding,marginInlineStart:"auto",fontSize:Ie.fontSizeSM,color:Ie.colorTextDescription}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,lt.unit)(ae)} ${(0,lt.unit)(ne)}`,color:Ie.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${gt}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,Ke.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:pe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,lt.unit)(Ie.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${Xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${Xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${(0,lt.unit)(Ie.marginXS)}`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:Ie.calc(ne).add(Ie.fontSizeSM).equal()},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${Xe}-menu-submenu-title`]:{[`&, ${Xe}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:pe,cursor:"not-allowed"}},[`${qe}-submenu-selected ${Xe}-menu-submenu-title`]:{color:Ie.colorPrimary}})})},[(0,Ot.oN)(Ie,"slide-up"),(0,Ot.oN)(Ie,"slide-down"),(0,at.Fm)(Ie,"move-up"),(0,at.Fm)(Ie,"move-down"),(0,Ue._y)(Ie,"zoom-big")]]},Le=Ie=>Object.assign(Object.assign({zIndexPopup:Ie.zIndexPopupBase+50,paddingBlock:(Ie.controlHeight-Ie.fontSize*Ie.lineHeight)/2},(0,Ct.wZ)({contentRadius:Ie.borderRadiusLG,limitVerticalRadius:!0})),(0,He.w)(Ie));var bt=(0,it.I$)("Dropdown",Ie=>{const{marginXXS:Xe,sizePopupArrow:qe,paddingXXS:en,componentCls:Ft}=Ie,_t=(0,nt.mergeToken)(Ie,{menuCls:`${Ft}-menu`,dropdownArrowDistance:Ie.calc(qe).div(2).add(Xe).equal(),dropdownEdgeChildPadding:en});return[ke(_t),Et(_t)]},Le,{resetStyle:!1});const ve=null,ue=Ie=>{var Xe;const{menu:qe,arrow:en,prefixCls:Ft,children:_t,trigger:je,disabled:Ht,dropdownRender:gt,getPopupContainer:ae,overlayClassName:te,rootClassName:ee,overlayStyle:oe,open:se,onOpenChange:ne,visible:pe,onVisibleChange:ye,mouseEnterDelay:ct=.15,mouseLeaveDelay:Pe=.1,autoAdjustOverflow:Ge=!0,placement:dt="",overlay:Pt,transitionName:St}=Ie,{getPopupContainer:xe,getPrefixCls:Be,direction:Tt,dropdown:kt}=E.useContext(ft.E_),Gt=(0,Ne.ln)("Dropdown"),Qt=E.useMemo(()=>{const an=Be();return St!==void 0?St:dt.includes("top")?`${an}-slide-down`:`${an}-slide-up`},[Be,dt,St]),wt=E.useMemo(()=>dt?dt.includes("Center")?dt.slice(0,dt.indexOf("Center")):dt:Tt==="rtl"?"bottomRight":"bottomLeft",[dt,Tt]),Kt=Be("dropdown",Ft),Lt=(0,xt.Z)(Kt),[Jt,sn,vn]=bt(Kt,Lt),[,Sn]=(0,Re.ZP)(),Fe=E.Children.only(Ee(_t)?E.createElement("span",null,_t):_t),ht=(0,Me.Tm)(Fe,{className:Ce()(`${Kt}-trigger`,{[`${Kt}-rtl`]:Tt==="rtl"},Fe.props.className),disabled:(Xe=Fe.props.disabled)!==null&&Xe!==void 0?Xe:Ht}),Bt=Ht?[]:je,Vt=!!(Bt!=null&&Bt.includes("contextMenu")),[cn,bn]=(0,$e.Z)(!1,{value:se!=null?se:pe}),Zn=(0,Oe.Z)(an=>{ne==null||ne(an,{source:"trigger"}),ye==null||ye(an),bn(an)}),zn=Ce()(te,ee,sn,vn,Lt,kt==null?void 0:kt.className,{[`${Kt}-rtl`]:Tt==="rtl"}),rn=(0,mt.Z)({arrowPointAtCenter:typeof en=="object"&&en.pointAtCenter,autoAdjustOverflow:Ge,offset:Sn.marginXXS,arrowWidth:en?Sn.sizePopupArrow:0,borderRadius:Sn.borderRadius}),En=E.useCallback(()=>{qe!=null&&qe.selectable&&(qe!=null&&qe.multiple)||(ne==null||ne(!1,{source:"menu"}),bn(!1))},[qe==null?void 0:qe.selectable,qe==null?void 0:qe.multiple]),Pn=()=>{let an;return qe!=null&&qe.items?an=E.createElement(It.default,Object.assign({},qe)):typeof Pt=="function"?an=Pt():an=Pt,gt&&(an=gt(an)),an=E.Children.only(typeof an=="string"?E.createElement("span",null,an):an),E.createElement(pt.J,{prefixCls:`${Kt}-menu`,rootClassName:Ce()(vn,Lt),expandIcon:E.createElement("span",{className:`${Kt}-menu-submenu-arrow`},Tt==="rtl"?E.createElement(Ve.Z,{className:`${Kt}-menu-submenu-arrow-icon`}):E.createElement(ge.Z,{className:`${Kt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:En,validator:Cn=>{let{mode:fn}=Cn}},an)},[_n,On]=(0,he.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let Tn=E.createElement(be.Z,Object.assign({alignPoint:Vt},(0,De.Z)(Ie,["rootClassName"]),{mouseEnterDelay:ct,mouseLeaveDelay:Pe,visible:cn,builtinPlacements:rn,arrow:!!en,overlayClassName:zn,prefixCls:Kt,getPopupContainer:ae||xe,transitionName:Qt,trigger:Bt,overlay:Pn,placement:wt,onVisibleChange:Zn,overlayStyle:Object.assign(Object.assign(Object.assign({},kt==null?void 0:kt.style),oe),{zIndex:_n})}),ht);return _n&&(Tn=E.createElement(Ae.Z.Provider,{value:On},Tn)),Jt(Tn)},rt=(0,Qe.Z)(ue,"align",void 0,"dropdown",Ie=>Ie),Nt=Ie=>E.createElement(rt,Object.assign({},Ie),E.createElement("span",null));ue._InternalPanelDoNotUseOrYouWillBeFired=Nt;var yt=ue},584:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return It}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(9017),Ce=ie(17835),be=ie(57700),$e=()=>{const[,pt]=(0,be.ZP)(),[Re]=(0,Je.Z)("Empty"),Ke=new Ce.FastColor(pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return E.createElement("svg",{style:Ke,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(Re==null?void 0:Re.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[,pt]=(0,be.ZP)(),[Re]=(0,Je.Z)("Empty"),{colorFill:lt,colorFillTertiary:Ke,colorFillQuaternary:Ot,colorBgContainer:at}=pt,{borderColor:Ue,shadowColor:Ct,contentColor:He}=(0,E.useMemo)(()=>({borderColor:new Ce.FastColor(lt).onBackground(at).toHexString(),shadowColor:new Ce.FastColor(Ke).onBackground(at).toHexString(),contentColor:new Ce.FastColor(Ot).onBackground(at).toHexString()}),[lt,Ke,Ot,at]);return E.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("title",null,(Re==null?void 0:Re.description)||"Empty"),E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{fill:Ct,cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{fillRule:"nonzero",stroke:Ue},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:He}))))},Ze=ie(16931),Ee=ie(51636);const mt=pt=>{const{componentCls:Re,margin:lt,marginXS:Ke,marginXL:Ot,fontSize:at,lineHeight:Ue}=pt;return{[Re]:{marginInline:Ke,fontSize:at,lineHeight:Ue,textAlign:"center",[`${Re}-image`]:{height:pt.emptyImgHeight,marginBottom:Ke,opacity:pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Re}-description`]:{color:pt.colorTextDescription},[`${Re}-footer`]:{marginTop:lt},"&-normal":{marginBlock:Ot,color:pt.colorTextDescription,[`${Re}-description`]:{color:pt.colorTextDescription},[`${Re}-image`]:{height:pt.emptyImgHeightMD}},"&-small":{marginBlock:Ke,color:pt.colorTextDescription,[`${Re}-image`]:{height:pt.emptyImgHeightSM}}}}};var Qe=(0,Ze.I$)("Empty",pt=>{const{componentCls:Re,controlHeightLG:lt,calc:Ke}=pt,Ot=(0,Ee.mergeToken)(pt,{emptyImgCls:`${Re}-img`,emptyImgHeight:Ke(lt).mul(2.5).equal(),emptyImgHeightMD:lt,emptyImgHeightSM:Ke(lt).mul(.875).equal()});return[mt(Ot)]}),Me=ie(48755),Ne=function(pt,Re){var lt={};for(var Ke in pt)Object.prototype.hasOwnProperty.call(pt,Ke)&&Re.indexOf(Ke)<0&&(lt[Ke]=pt[Ke]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,Ke=Object.getOwnPropertySymbols(pt);Ot<Ke.length;Ot++)Re.indexOf(Ke[Ot])<0&&Object.prototype.propertyIsEnumerable.call(pt,Ke[Ot])&&(lt[Ke[Ot]]=pt[Ke[Ot]]);return lt};const Ae=E.createElement($e,null),ft=E.createElement(he,null),xt=pt=>{const{className:Re,rootClassName:lt,prefixCls:Ke,image:Ot=Ae,description:at,children:Ue,imageStyle:Ct,style:He,classNames:it,styles:nt}=pt,de=Ne(pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Et,direction:ke,className:Le,style:bt,classNames:ve,styles:ue}=(0,Me.dj)("empty"),rt=Et("empty",Ke),[Nt,yt,Ie]=Qe(rt),[Xe]=(0,Je.Z)("Empty"),qe=typeof at!="undefined"?at:Xe==null?void 0:Xe.description,en=typeof qe=="string"?qe:"empty";let Ft=null;return typeof Ot=="string"?Ft=E.createElement("img",{alt:en,src:Ot}):Ft=Ot,Nt(E.createElement("div",Object.assign({className:ge()(yt,Ie,rt,Le,{[`${rt}-normal`]:Ot===ft,[`${rt}-rtl`]:ke==="rtl"},Re,lt,ve.root,it==null?void 0:it.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ue.root),bt),nt==null?void 0:nt.root),He)},de),E.createElement("div",{className:ge()(`${rt}-image`,ve.image,it==null?void 0:it.image),style:Object.assign(Object.assign(Object.assign({},Ct),ue.image),nt==null?void 0:nt.image)},Ft),qe&&E.createElement("div",{className:ge()(`${rt}-description`,ve.description,it==null?void 0:it.description),style:Object.assign(Object.assign({},ue.description),nt==null?void 0:nt.description)},qe),Ue&&E.createElement("div",{className:ge()(`${rt}-footer`,ve.footer,it==null?void 0:it.footer),style:Object.assign(Object.assign({},ue.footer),nt==null?void 0:nt.footer)},Ue)))};xt.PRESENTED_IMAGE_DEFAULT=Ae,xt.PRESENTED_IMAGE_SIMPLE=ft;var It=xt},28284:function(nn,jt,ie){"use strict";ie.d(jt,{default:function(){return ot}});var E=ie(56553),Ve=ie(94480),ge=ie(59301),Je=ie(92310),Ce=ie.n(Je),be=ie(77900),Oe=ie(86641),$e=ie(83397);function De(Se){const[We,we]=ge.useState(Se);return ge.useEffect(()=>{const _e=setTimeout(()=>{we(Se)},Se.length?0:10);return()=>{clearTimeout(_e)}},[Se]),We}var he=ie(36237),Ze=ie(63356),Ee=ie(34925),mt=ie(34961),Qe=ie(51636),Me=ie(16931),Ae=Se=>{const{componentCls:We}=Se,we=`${We}-show-help`,_e=`${We}-show-help-item`;return{[we]:{transition:`opacity ${Se.motionDurationFast} ${Se.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[_e]:{overflow:"hidden",transition:`height ${Se.motionDurationFast} ${Se.motionEaseInOut},
|
|
|
opacity ${Se.motionDurationFast} ${Se.motionEaseInOut},
|
|
|
transform ${Se.motionDurationFast} ${Se.motionEaseInOut} !important`,[`&${_e}-appear, &${_e}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${_e}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ft=Se=>({legend:{display:"block",width:"100%",marginBottom:Se.marginLG,padding:0,color:Se.colorTextDescription,fontSize:Se.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,he.unit)(Se.lineWidth)} ${Se.lineType} ${Se.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)(Se.controlOutlineWidth)} ${Se.controlOutline}`},output:{display:"block",paddingTop:15,color:Se.colorText,fontSize:Se.fontSize,lineHeight:Se.lineHeight}}),xt=(Se,We)=>{const{formItemCls:we}=Se;return{[we]:{[`${we}-label > label`]:{height:We},[`${we}-control-input`]:{minHeight:We}}}},It=Se=>{const{componentCls:We}=Se;return{[Se.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ze.Wf)(Se)),ft(Se)),{[`${We}-text`]:{display:"inline-block",paddingInlineEnd:Se.paddingSM},"&-small":Object.assign({},xt(Se,Se.controlHeightSM)),"&-large":Object.assign({},xt(Se,Se.controlHeightLG))})}},pt=Se=>{const{formItemCls:We,iconCls:we,rootPrefixCls:_e,antCls:vt,labelRequiredMarkColor:on,labelColor:ln,labelFontSize:gn,labelHeight:Rt,labelColonMarginInlineStart:Mt,labelColonMarginInlineEnd:Dt,itemMarginBottom:dn}=Se;return{[We]:Object.assign(Object.assign({},(0,Ze.Wf)(Se)),{marginBottom:dn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${vt}-row`]:{display:"none"},"&-has-warning":{[`${We}-split`]:{color:Se.colorError}},"&-has-error":{[`${We}-split`]:{color:Se.colorWarning}},[`${We}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Se.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Rt,color:ln,fontSize:gn,[`> ${we}`]:{fontSize:Se.fontSize,verticalAlign:"top"},[`&${We}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Se.marginXXS,color:on,fontSize:Se.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${We}-required-mark-hidden, &${We}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${We}-optional`]:{display:"inline-block",marginInlineStart:Se.marginXXS,color:Se.colorTextDescription,[`&${We}-required-mark-hidden`]:{display:"none"}},[`${We}-tooltip`]:{color:Se.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Se.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Mt,marginInlineEnd:Dt},[`&${We}-no-colon::after`]:{content:'"\\a0"'}}},[`${We}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${_e}-col-'"]):not([class*="' ${_e}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Se.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[We]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Se.colorTextDescription,fontSize:Se.fontSize,lineHeight:Se.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Se.controlHeightSM,transition:`color ${Se.motionDurationMid} ${Se.motionEaseOut}`},"&-explain":{"&-error":{color:Se.colorError},"&-warning":{color:Se.colorWarning}}},[`&-with-help ${We}-explain`]:{height:"auto",opacity:1},[`${We}-feedback-icon`]:{fontSize:Se.fontSize,textAlign:"center",visibility:"visible",animationName:Ee.kr,animationDuration:Se.motionDurationMid,animationTimingFunction:Se.motionEaseOutBack,pointerEvents:"none","&-success":{color:Se.colorSuccess},"&-error":{color:Se.colorError},"&-warning":{color:Se.colorWarning},"&-validating":{color:Se.colorPrimary}}})}},Re=(Se,We)=>{const{formItemCls:we}=Se;return{[`${We}-horizontal`]:{[`${we}-label`]:{flexGrow:0},[`${we}-control`]:{flex:"1 1 0",minWidth:0},[`${we}-label[class$='-24'], ${we}-label[class*='-24 ']`]:{[`& + ${we}-control`]:{minWidth:"unset"}}}}},lt=Se=>{const{componentCls:We,formItemCls:we,inlineItemMarginBottom:_e}=Se;return{[`${We}-inline`]:{display:"flex",flexWrap:"wrap",[we]:{flex:"none",marginInlineEnd:Se.margin,marginBottom:_e,"&-row":{flexWrap:"nowrap"},[`> ${we}-label,
|
|
|
> ${we}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${we}-label`]:{flex:"none"},[`${We}-text`]:{display:"inline-block"},[`${we}-has-feedback`]:{display:"inline-block"}}}}},Ke=Se=>({padding:Se.verticalLabelPadding,margin:Se.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ot=Se=>{const{componentCls:We,formItemCls:we,rootPrefixCls:_e}=Se;return{[`${we} ${we}-label`]:Ke(Se),[`${We}:not(${We}-inline)`]:{[we]:{flexWrap:"wrap",[`${we}-label, ${we}-control`]:{[`&:not([class*=" ${_e}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},at=Se=>{const{componentCls:We,formItemCls:we,antCls:_e}=Se;return{[`${We}-vertical`]:{[`${we}:not(${we}-horizontal)`]:{[`${we}-row`]:{flexDirection:"column"},[`${we}-label > label`]:{height:"auto"},[`${we}-control`]:{width:"100%"},[`${we}-label,
|
|
|
${_e}-col-24${we}-label,
|
|
|
${_e}-col-xl-24${we}-label`]:Ke(Se)}},[`@media (max-width: ${(0,he.unit)(Se.screenXSMax)})`]:[Ot(Se),{[We]:{[`${we}:not(${we}-horizontal)`]:{[`${_e}-col-xs-24${we}-label`]:Ke(Se)}}}],[`@media (max-width: ${(0,he.unit)(Se.screenSMMax)})`]:{[We]:{[`${we}:not(${we}-horizontal)`]:{[`${_e}-col-sm-24${we}-label`]:Ke(Se)}}},[`@media (max-width: ${(0,he.unit)(Se.screenMDMax)})`]:{[We]:{[`${we}:not(${we}-horizontal)`]:{[`${_e}-col-md-24${we}-label`]:Ke(Se)}}},[`@media (max-width: ${(0,he.unit)(Se.screenLGMax)})`]:{[We]:{[`${we}:not(${we}-horizontal)`]:{[`${_e}-col-lg-24${we}-label`]:Ke(Se)}}}}},Ue=Se=>{const{formItemCls:We,antCls:we}=Se;return{[`${We}-vertical`]:{[`${We}-row`]:{flexDirection:"column"},[`${We}-label > label`]:{height:"auto"},[`${We}-control`]:{width:"100%"}},[`${We}-vertical ${We}-label,
|
|
|
${we}-col-24${We}-label,
|
|
|
${we}-col-xl-24${We}-label`]:Ke(Se),[`@media (max-width: ${(0,he.unit)(Se.screenXSMax)})`]:[Ot(Se),{[We]:{[`${we}-col-xs-24${We}-label`]:Ke(Se)}}],[`@media (max-width: ${(0,he.unit)(Se.screenSMMax)})`]:{[We]:{[`${we}-col-sm-24${We}-label`]:Ke(Se)}},[`@media (max-width: ${(0,he.unit)(Se.screenMDMax)})`]:{[We]:{[`${we}-col-md-24${We}-label`]:Ke(Se)}},[`@media (max-width: ${(0,he.unit)(Se.screenLGMax)})`]:{[We]:{[`${we}-col-lg-24${We}-label`]:Ke(Se)}}}},Ct=Se=>({labelRequiredMarkColor:Se.colorError,labelColor:Se.colorTextHeading,labelFontSize:Se.fontSize,labelHeight:Se.controlHeight,labelColonMarginInlineStart:Se.marginXXS/2,labelColonMarginInlineEnd:Se.marginXS,itemMarginBottom:Se.marginLG,verticalLabelPadding:`0 0 ${Se.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),He=(Se,We)=>(0,Qe.mergeToken)(Se,{formItemCls:`${Se.componentCls}-item`,rootPrefixCls:We});var it=(0,Me.I$)("Form",(Se,We)=>{let{rootPrefixCls:we}=We;const _e=He(Se,we);return[It(_e),pt(_e),Ae(_e),Re(_e,_e.componentCls),Re(_e,_e.formItemCls),lt(_e),at(_e),Ue(_e),(0,mt.Z)(_e),Ee.kr]},Ct,{order:-1e3});const nt=[];function de(Se,We,we){let _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Se=="string"?Se:`${We}-${_e}`,error:Se,errorStatus:we}}var ke=Se=>{let{help:We,helpStatus:we,errors:_e=nt,warnings:vt=nt,className:on,fieldId:ln,onVisibleChanged:gn}=Se;const{prefixCls:Rt}=ge.useContext(E.Rk),Mt=`${Rt}-item-explain`,Dt=(0,$e.Z)(Rt),[dn,et,tt]=it(Rt,Dt),Te=ge.useMemo(()=>(0,Oe.Z)(Rt),[Rt]),Xt=De(_e),Ln=De(vt),Vn=ge.useMemo(()=>We!=null?[de(We,"help",we)]:[].concat((0,Ve.Z)(Xt.map((st,xn)=>de(st,"error","error",xn))),(0,Ve.Z)(Ln.map((st,xn)=>de(st,"warning","warning",xn)))),[We,we,Xt,Ln]),yn=ge.useMemo(()=>{const st={};return Vn.forEach(xn=>{let{key:An}=xn;st[An]=(st[An]||0)+1}),Vn.map((xn,An)=>Object.assign(Object.assign({},xn),{key:st[xn.key]>1?`${xn.key}-fallback-${An}`:xn.key}))},[Vn]),Wt={};return ln&&(Wt.id=`${ln}_help`),dn(ge.createElement(be.default,{motionDeadline:Te.motionDeadline,motionName:`${Rt}-show-help`,visible:!!yn.length,onVisibleChanged:gn},st=>{const{className:xn,style:An}=st;return ge.createElement("div",Object.assign({},Wt,{className:Ce()(Mt,xn,tt,Dt,on,et),style:An}),ge.createElement(be.CSSMotionList,Object.assign({keys:yn},(0,Oe.Z)(Rt),{motionName:`${Rt}-show-help-item`,component:!1}),Hn=>{const{key:Un,error:Jn,errorStatus:pn,className:Wn,style:tr}=Hn;return ge.createElement("div",{key:Un,className:Ce()(Wn,{[`${Mt}-${pn}`]:pn}),style:tr},Jn)}))}))},Le=ie(22001),bt=ie(48755),ve=ie(2171),ue=ie(31756),rt=ie(23069),Nt=ie(76846),yt=ie(16722);const Ie=["parentNode"],Xe="form_item";function qe(Se){return Se===void 0||Se===!1?[]:Array.isArray(Se)?Se:[Se]}function en(Se,We){if(!Se.length)return;const we=Se.join("_");return We?`${We}_${we}`:Ie.includes(we)?`${Xe}_${we}`:we}function Ft(Se,We,we,_e,vt,on){let ln=_e;return on!==void 0?ln=on:we.validating?ln="validating":Se.length?ln="error":We.length?ln="warning":(we.touched||vt&&we.validated)&&(ln="success"),ln}var _t=function(Se,We){var we={};for(var _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&We.indexOf(_e)<0&&(we[_e]=Se[_e]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Se);vt<_e.length;vt++)We.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_e[vt])&&(we[_e[vt]]=Se[_e[vt]]);return we};function je(Se){return qe(Se).join("_")}function Ht(Se,We){const we=We.getFieldInstance(Se),_e=(0,Nt.bn)(we);if(_e)return _e;const vt=en(qe(Se),We.__INTERNAL__.name);if(vt)return document.getElementById(vt)}function gt(Se){const[We]=(0,Le.useForm)(),we=ge.useRef({}),_e=ge.useMemo(()=>Se!=null?Se:Object.assign(Object.assign({},We),{__INTERNAL__:{itemRef:vt=>on=>{const ln=je(vt);on?we.current[ln]=on:delete we.current[ln]}},scrollToField:function(vt){let on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:ln}=on,gn=_t(on,["focus"]),Rt=Ht(vt,_e);Rt&&((0,yt.Z)(Rt,Object.assign({scrollMode:"if-needed",block:"nearest"},gn)),ln&&_e.focusField(vt))},focusField:vt=>{var on,ln;const gn=_e.getFieldInstance(vt);typeof(gn==null?void 0:gn.focus)=="function"?gn.focus():(ln=(on=Ht(vt,_e))===null||on===void 0?void 0:on.focus)===null||ln===void 0||ln.call(on)},getFieldInstance:vt=>{const on=je(vt);return we.current[on]}}),[Se,We]);return[_e]}var ae=ie(98350),te=function(Se,We){var we={};for(var _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&We.indexOf(_e)<0&&(we[_e]=Se[_e]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Se);vt<_e.length;vt++)We.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_e[vt])&&(we[_e[vt]]=Se[_e[vt]]);return we};const ee=(Se,We)=>{const we=ge.useContext(ve.Z),{getPrefixCls:_e,direction:vt,requiredMark:on,colon:ln,scrollToFirstError:gn,className:Rt,style:Mt}=(0,bt.dj)("form"),{prefixCls:Dt,className:dn,rootClassName:et,size:tt,disabled:Te=we,form:Xt,colon:Ln,labelAlign:Vn,labelWrap:yn,labelCol:Wt,wrapperCol:st,hideRequiredMark:xn,layout:An="horizontal",scrollToFirstError:Hn,requiredMark:Un,onFinishFailed:Jn,name:pn,style:Wn,feedbackIcons:tr,variant:or}=Se,nr=te(Se,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),pr=(0,ue.Z)(tt),br=ge.useContext(ae.Z),Kn=ge.useMemo(()=>Un!==void 0?Un:xn?!1:on!==void 0?on:!0,[xn,Un,on]),ar=Ln!=null?Ln:ln,Fn=_e("form",Dt),rr=(0,$e.Z)(Fn),[Cr,Qn,Er]=it(Fn,rr),qn=Ce()(Fn,`${Fn}-${An}`,{[`${Fn}-hide-required-mark`]:Kn===!1,[`${Fn}-rtl`]:vt==="rtl",[`${Fn}-${pr}`]:pr},Er,rr,Qn,Rt,dn,et),[In]=gt(Xt),{__INTERNAL__:cr}=In;cr.name=pn;const fr=ge.useMemo(()=>({name:pn,labelAlign:Vn,labelCol:Wt,labelWrap:yn,wrapperCol:st,vertical:An==="vertical",colon:ar,requiredMark:Kn,itemRef:cr.itemRef,form:In,feedbackIcons:tr}),[pn,Vn,Wt,st,An,ar,Kn,In,tr]),xr=ge.useRef(null);ge.useImperativeHandle(We,()=>{var tn;return Object.assign(Object.assign({},In),{nativeElement:(tn=xr.current)===null||tn===void 0?void 0:tn.nativeElement})});const Mn=(tn,Yt)=>{if(tn){let Zt={block:"nearest"};typeof tn=="object"&&(Zt=Object.assign(Object.assign({},Zt),tn)),In.scrollToField(Yt,Zt)}},Ut=tn=>{if(Jn==null||Jn(tn),tn.errorFields.length){const Yt=tn.errorFields[0].name;if(Hn!==void 0){Mn(Hn,Yt);return}gn!==void 0&&Mn(gn,Yt)}};return Cr(ge.createElement(E.pg.Provider,{value:or},ge.createElement(ve.n,{disabled:Te},ge.createElement(rt.Z.Provider,{value:pr},ge.createElement(E.RV,{validateMessages:br},ge.createElement(E.q3.Provider,{value:fr},ge.createElement(Le.default,Object.assign({id:pn},nr,{name:pn,onFinishFailed:Ut,form:In,ref:xr,style:Object.assign(Object.assign({},Mt),Wn),className:qn}))))))))};var se=ge.forwardRef(ee),ne=ie(41799),pe=ie(8654),ye=ie(22703),ct=ie(32383),Pe=ie(11592);function Ge(Se){if(typeof Se=="function")return Se;const We=(0,Pe.Z)(Se);return We.length<=1?We[0]:We}const dt=()=>{const{status:Se,errors:We=[],warnings:we=[]}=ge.useContext(E.aM);return{status:Se,errors:We,warnings:we}};dt.Context=E.aM;var Pt=dt,St=ie(16089);function xe(Se){const[We,we]=ge.useState(Se),_e=ge.useRef(null),vt=ge.useRef([]),on=ge.useRef(!1);ge.useEffect(()=>(on.current=!1,()=>{on.current=!0,St.Z.cancel(_e.current),_e.current=null}),[]);function ln(gn){on.current||(_e.current===null&&(vt.current=[],_e.current=(0,St.Z)(()=>{_e.current=null,we(Rt=>{let Mt=Rt;return vt.current.forEach(Dt=>{Mt=Dt(Mt)}),Mt})})),vt.current.push(gn))}return[We,ln]}function Be(){const{itemRef:Se}=ge.useContext(E.q3),We=ge.useRef({});function we(_e,vt){const on=vt&&typeof vt=="object"&&(0,pe.C4)(vt),ln=_e.join("_");return(We.current.name!==ln||We.current.originRef!==on)&&(We.current.name=ln,We.current.originRef=on,We.current.ref=(0,pe.sQ)(Se(_e),on)),We.current.ref}return we}var Tt=ie(29194),kt=ie(34280),Gt=ie(2738),Qt=ie(65970),wt=ie(70425),Kt=ie(5472);const Lt=Se=>{const{formItemCls:We}=Se;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${We}-control`]:{display:"flex"}}}};var Jt=(0,Me.bk)(["Form","item-item"],(Se,We)=>{let{rootPrefixCls:we}=We;const _e=He(Se,we);return[Lt(_e)]}),sn=function(Se,We){var we={};for(var _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&We.indexOf(_e)<0&&(we[_e]=Se[_e]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Se);vt<_e.length;vt++)We.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_e[vt])&&(we[_e[vt]]=Se[_e[vt]]);return we};const vn=24;var Fe=Se=>{const{prefixCls:We,status:we,labelCol:_e,wrapperCol:vt,children:on,errors:ln,warnings:gn,_internalItemRender:Rt,extra:Mt,help:Dt,fieldId:dn,marginBottom:et,onErrorVisibleChanged:tt,label:Te}=Se,Xt=`${We}-item`,Ln=ge.useContext(E.q3),Vn=ge.useMemo(()=>{let nr=Object.assign({},vt||Ln.wrapperCol||{});return Te===null&&!_e&&!vt&&Ln.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(br=>{const Kn=br?[br]:[],ar=(0,wt.U2)(Ln.labelCol,Kn),Fn=typeof ar=="object"?ar:{},rr=(0,wt.U2)(nr,Kn),Cr=typeof rr=="object"?rr:{};"span"in Fn&&!("offset"in Cr)&&Fn.span<vn&&(nr=(0,wt.t8)(nr,[].concat(Kn,["offset"]),Fn.span))}),nr},[vt,Ln]),yn=Ce()(`${Xt}-control`,Vn.className),Wt=ge.useMemo(()=>{const{labelCol:nr,wrapperCol:pr}=Ln;return sn(Ln,["labelCol","wrapperCol"])},[Ln]),st=ge.useRef(null),[xn,An]=ge.useState(0);(0,kt.Z)(()=>{Mt&&st.current?An(st.current.clientHeight):An(0)},[Mt]);const Hn=ge.createElement("div",{className:`${Xt}-control-input`},ge.createElement("div",{className:`${Xt}-control-input-content`},on)),Un=ge.useMemo(()=>({prefixCls:We,status:we}),[We,we]),Jn=et!==null||ln.length||gn.length?ge.createElement(E.Rk.Provider,{value:Un},ge.createElement(ke,{fieldId:dn,errors:ln,warnings:gn,help:Dt,helpStatus:we,className:`${Xt}-explain-connected`,onVisibleChanged:tt})):null,pn={};dn&&(pn.id=`${dn}_extra`);const Wn=Mt?ge.createElement("div",Object.assign({},pn,{className:`${Xt}-extra`,ref:st}),Mt):null,tr=Jn||Wn?ge.createElement("div",{className:`${Xt}-additional`,style:et?{minHeight:et+xn}:{}},Jn,Wn):null,or=Rt&&Rt.mark==="pro_table_render"&&Rt.render?Rt.render(Se,{input:Hn,errorList:Jn,extra:Wn}):ge.createElement(ge.Fragment,null,Hn,tr);return ge.createElement(E.q3.Provider,{value:Wt},ge.createElement(Kt.Z,Object.assign({},Vn,{className:yn}),or),ge.createElement(Jt,{prefixCls:We}))},ht=ie(61485),Bt=ie(9017),Vt=ie(85981),cn=ie(25399),bn=function(Se,We){var we={};for(var _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&We.indexOf(_e)<0&&(we[_e]=Se[_e]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Se);vt<_e.length;vt++)We.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_e[vt])&&(we[_e[vt]]=Se[_e[vt]]);return we};function Zn(Se){return Se?typeof Se=="object"&&!ge.isValidElement(Se)?Se:{title:Se}:null}var rn=Se=>{let{prefixCls:We,label:we,htmlFor:_e,labelCol:vt,labelAlign:on,colon:ln,required:gn,requiredMark:Rt,tooltip:Mt,vertical:Dt}=Se;var dn;const[et]=(0,Bt.Z)("Form"),{labelAlign:tt,labelCol:Te,labelWrap:Xt,colon:Ln}=ge.useContext(E.q3);if(!we)return null;const Vn=vt||Te||{},yn=on||tt,Wt=`${We}-item-label`,st=Ce()(Wt,yn==="left"&&`${Wt}-left`,Vn.className,{[`${Wt}-wrap`]:!!Xt});let xn=we;const An=ln===!0||Ln!==!1&&ln!==!1;An&&!Dt&&typeof we=="string"&&we.trim()&&(xn=we.replace(/[:|:]\s*$/,""));const Un=Zn(Mt);if(Un){const{icon:nr=ge.createElement(ht.Z,null)}=Un,pr=bn(Un,["icon"]),br=ge.createElement(cn.Z,Object.assign({},pr),ge.cloneElement(nr,{className:`${We}-item-tooltip`,title:"",onClick:Kn=>{Kn.preventDefault()},tabIndex:null}));xn=ge.createElement(ge.Fragment,null,xn,br)}const Jn=Rt==="optional",pn=typeof Rt=="function",Wn=Rt===!1;pn?xn=Rt(xn,{required:!!gn}):Jn&&!gn&&(xn=ge.createElement(ge.Fragment,null,xn,ge.createElement("span",{className:`${We}-item-optional`,title:""},(et==null?void 0:et.optional)||((dn=Vt.Z.Form)===null||dn===void 0?void 0:dn.optional))));let tr;Wn?tr="hidden":(Jn||pn)&&(tr="optional");const or=Ce()({[`${We}-item-required`]:gn,[`${We}-item-required-mark-${tr}`]:tr,[`${We}-item-no-colon`]:!An});return ge.createElement(Kt.Z,Object.assign({},Vn,{className:st}),ge.createElement("label",{htmlFor:_e,className:or,title:typeof we=="string"?we:""},xn))},En=ie(29679),Pn=ie(19248),_n=ie(96512),On=ie(58617);const Tn={success:En.Z,warning:_n.Z,error:Pn.Z,validating:On.Z};function an(Se){let{children:We,errors:we,warnings:_e,hasFeedback:vt,validateStatus:on,prefixCls:ln,meta:gn,noStyle:Rt}=Se;const Mt=`${ln}-item`,{feedbackIcons:Dt}=ge.useContext(E.q3),dn=Ft(we,_e,gn,null,!!vt,on),{isFormItemInput:et,status:tt,hasFeedback:Te,feedbackIcon:Xt}=ge.useContext(E.aM),Ln=ge.useMemo(()=>{var Vn;let yn;if(vt){const st=vt!==!0&&vt.icons||Dt,xn=dn&&((Vn=st==null?void 0:st({status:dn,errors:we,warnings:_e}))===null||Vn===void 0?void 0:Vn[dn]),An=dn&&Tn[dn];yn=xn!==!1&&An?ge.createElement("span",{className:Ce()(`${Mt}-feedback-icon`,`${Mt}-feedback-icon-${dn}`)},xn||ge.createElement(An,null)):null}const Wt={status:dn||"",errors:we,warnings:_e,hasFeedback:!!vt,feedbackIcon:yn,isFormItemInput:!0};return Rt&&(Wt.status=(dn!=null?dn:tt)||"",Wt.isFormItemInput=et,Wt.hasFeedback=!!(vt!=null?vt:Te),Wt.feedbackIcon=vt!==void 0?Wt.feedbackIcon:Xt),Wt},[dn,vt,Rt,et,tt]);return ge.createElement(E.aM.Provider,{value:Ln},We)}var Cn=function(Se,We){var we={};for(var _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&We.indexOf(_e)<0&&(we[_e]=Se[_e]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Se);vt<_e.length;vt++)We.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_e[vt])&&(we[_e[vt]]=Se[_e[vt]]);return we};function fn(Se){const{prefixCls:We,className:we,rootClassName:_e,style:vt,help:on,errors:ln,warnings:gn,validateStatus:Rt,meta:Mt,hasFeedback:Dt,hidden:dn,children:et,fieldId:tt,required:Te,isRequired:Xt,onSubItemMetaChange:Ln,layout:Vn}=Se,yn=Cn(Se,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Wt=`${We}-item`,{requiredMark:st,vertical:xn}=ge.useContext(E.q3),An=xn||Vn==="vertical",Hn=ge.useRef(null),Un=De(ln),Jn=De(gn),pn=on!=null,Wn=!!(pn||ln.length||gn.length),tr=!!Hn.current&&(0,Tt.Z)(Hn.current),[or,nr]=ge.useState(null);(0,kt.Z)(()=>{if(Wn&&Hn.current){const Fn=getComputedStyle(Hn.current);nr(parseInt(Fn.marginBottom,10))}},[Wn,tr]);const pr=Fn=>{Fn||nr(null)},Kn=function(){let Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const rr=Fn?Un:Mt.errors,Cr=Fn?Jn:Mt.warnings;return Ft(rr,Cr,Mt,"",!!Dt,Rt)}(),ar=Ce()(Wt,we,_e,{[`${Wt}-with-help`]:pn||Un.length||Jn.length,[`${Wt}-has-feedback`]:Kn&&Dt,[`${Wt}-has-success`]:Kn==="success",[`${Wt}-has-warning`]:Kn==="warning",[`${Wt}-has-error`]:Kn==="error",[`${Wt}-is-validating`]:Kn==="validating",[`${Wt}-hidden`]:dn,[`${Wt}-${Vn}`]:Vn});return ge.createElement("div",{className:ar,style:vt,ref:Hn},ge.createElement(Qt.Z,Object.assign({className:`${Wt}-row`},(0,Gt.Z)(yn,["_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:tt},Se,{requiredMark:st,required:Te!=null?Te:Xt,prefixCls:We,vertical:An})),ge.createElement(Fe,Object.assign({},Se,Mt,{errors:Un,warnings:Jn,prefixCls:We,status:Kn,help:on,marginBottom:or,onErrorVisibleChanged:pr}),ge.createElement(E.qI.Provider,{value:Ln},ge.createElement(an,{prefixCls:We,meta:Mt,errors:Mt.errors,warnings:Mt.warnings,hasFeedback:Dt,validateStatus:Kn},et)))),!!or&&ge.createElement("div",{className:`${Wt}-margin-offset`,style:{marginBottom:-or}}))}const kn="__SPLIT__",lr=null;function er(Se,We){const we=Object.keys(Se),_e=Object.keys(We);return we.length===_e.length&&we.every(vt=>{const on=Se[vt],ln=We[vt];return on===ln||typeof on=="function"||typeof ln=="function"})}const Gn=ge.memo(Se=>{let{children:We}=Se;return We},(Se,We)=>er(Se.control,We.control)&&Se.update===We.update&&Se.childProps.length===We.childProps.length&&Se.childProps.every((we,_e)=>we===We.childProps[_e]));function sr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function hr(Se){const{name:We,noStyle:we,className:_e,dependencies:vt,prefixCls:on,shouldUpdate:ln,rules:gn,children:Rt,required:Mt,label:Dt,messageVariables:dn,trigger:et="onChange",validateTrigger:tt,hidden:Te,help:Xt,layout:Ln}=Se,{getPrefixCls:Vn}=ge.useContext(bt.E_),{name:yn}=ge.useContext(E.q3),Wt=Ge(Rt),st=typeof Wt=="function",xn=ge.useContext(E.qI),{validateTrigger:An}=ge.useContext(Le.FieldContext),Hn=tt!==void 0?tt:An,Un=We!=null,Jn=Vn("form",on),pn=(0,$e.Z)(Jn),[Wn,tr,or]=it(Jn,pn),nr=(0,ct.ln)("Form.Item"),pr=ge.useContext(Le.ListContext),br=ge.useRef(null),[Kn,ar]=xe({}),[Fn,rr]=(0,ne.Z)(()=>sr()),Cr=xr=>{const Mn=pr==null?void 0:pr.getKey(xr.name);if(rr(xr.destroy?sr():xr,!0),we&&Xt!==!1&&xn){let Ut=xr.name;if(xr.destroy)Ut=br.current||Ut;else if(Mn!==void 0){const[tn,Yt]=Mn;Ut=[tn].concat((0,Ve.Z)(Yt)),br.current=Ut}xn(xr,Ut)}},Qn=(xr,Mn)=>{ar(Ut=>{const tn=Object.assign({},Ut),Zt=[].concat((0,Ve.Z)(xr.name.slice(0,-1)),(0,Ve.Z)(Mn)).join(kn);return xr.destroy?delete tn[Zt]:tn[Zt]=xr,tn})},[Er,qn]=ge.useMemo(()=>{const xr=(0,Ve.Z)(Fn.errors),Mn=(0,Ve.Z)(Fn.warnings);return Object.values(Kn).forEach(Ut=>{xr.push.apply(xr,(0,Ve.Z)(Ut.errors||[])),Mn.push.apply(Mn,(0,Ve.Z)(Ut.warnings||[]))}),[xr,Mn]},[Kn,Fn.errors,Fn.warnings]),In=Be();function cr(xr,Mn,Ut){return we&&!Te?ge.createElement(an,{prefixCls:Jn,hasFeedback:Se.hasFeedback,validateStatus:Se.validateStatus,meta:Fn,errors:Er,warnings:qn,noStyle:!0},xr):ge.createElement(fn,Object.assign({key:"row"},Se,{className:Ce()(_e,or,pn,tr),prefixCls:Jn,fieldId:Mn,isRequired:Ut,errors:Er,warnings:qn,meta:Fn,onSubItemMetaChange:Qn,layout:Ln}),xr)}if(!Un&&!st&&!vt)return Wn(cr(Wt));let fr={};return typeof Dt=="string"?fr.label=Dt:We&&(fr.label=String(We)),dn&&(fr=Object.assign(Object.assign({},fr),dn)),Wn(ge.createElement(Le.Field,Object.assign({},Se,{messageVariables:fr,trigger:et,validateTrigger:Hn,onMetaChange:Cr}),(xr,Mn,Ut)=>{const tn=qe(We).length&&Mn?Mn.name:[],Yt=en(tn,yn),Zt=Mt!==void 0?Mt:!!(gn!=null&&gn.some(qt=>{if(qt&&typeof qt=="object"&&qt.required&&!qt.warningOnly)return!0;if(typeof qt=="function"){const hn=qt(Ut);return(hn==null?void 0:hn.required)&&!(hn!=null&&hn.warningOnly)}return!1})),wn=Object.assign({},xr);let Rn=null;if(Array.isArray(Wt)&&Un)Rn=Wt;else if(!(st&&(!(ln||vt)||Un))){if(!(vt&&!st&&!Un))if(ge.isValidElement(Wt)){const qt=Object.assign(Object.assign({},Wt.props),wn);if(qt.id||(qt.id=Yt),Xt||Er.length>0||qn.length>0||Se.extra){const Nn=[];(Xt||Er.length>0)&&Nn.push(`${Yt}_help`),Se.extra&&Nn.push(`${Yt}_extra`),qt["aria-describedby"]=Nn.join(" ")}Er.length>0&&(qt["aria-invalid"]="true"),Zt&&(qt["aria-required"]="true"),(0,pe.Yr)(Wt)&&(qt.ref=In(tn,Wt)),new Set([].concat((0,Ve.Z)(qe(et)),(0,Ve.Z)(qe(Hn)))).forEach(Nn=>{qt[Nn]=function(){for(var Sr,Tr,Dr,Lr,Nr,Fr=arguments.length,zr=new Array(Fr),$r=0;$r<Fr;$r++)zr[$r]=arguments[$r];(Dr=wn[Nn])===null||Dr===void 0||(Sr=Dr).call.apply(Sr,[wn].concat(zr)),(Nr=(Lr=Wt.props)[Nn])===null||Nr===void 0||(Tr=Nr).call.apply(Tr,[Lr].concat(zr))}});const Dn=[qt["aria-required"],qt["aria-invalid"],qt["aria-describedby"]];Rn=ge.createElement(Gn,{control:wn,update:Wt,childProps:Dn},(0,ye.Tm)(Wt,qt))}else st&&(ln||vt)&&!Un?Rn=Wt(Ut):Rn=Wt}return cr(Rn,Yt,Zt)}))}const yr=hr;yr.useStatus=Pt;var ur=yr,$t=function(Se,We){var we={};for(var _e in Se)Object.prototype.hasOwnProperty.call(Se,_e)&&We.indexOf(_e)<0&&(we[_e]=Se[_e]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Se);vt<_e.length;vt++)We.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Se,_e[vt])&&(we[_e[vt]]=Se[_e[vt]]);return we},jn=Se=>{var{prefixCls:We,children:we}=Se,_e=$t(Se,["prefixCls","children"]);const{getPrefixCls:vt}=ge.useContext(bt.E_),on=vt("form",We),ln=ge.useMemo(()=>({prefixCls:on,status:"error"}),[on]);return ge.createElement(Le.List,Object.assign({},_e),(gn,Rt,Mt)=>ge.createElement(E.Rk.Provider,{value:ln},we(gn.map(Dt=>Object.assign(Object.assign({},Dt),{fieldKey:Dt.key})),Rt,{errors:Mt.errors,warnings:Mt.warnings})))};function mr(){const{form:Se}=ge.useContext(E.q3);return Se}const ze=se;ze.Item=ur,ze.List=jn,ze.ErrorList=ke,ze.useForm=gt,ze.useFormInstance=mr,ze.useWatch=Le.useWatch,ze.Provider=E.RV,ze.create=()=>{};var ot=ze},4875:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Sn}});var E=ie(59301),Ve=ie(84105),ge=ie(87395),Je=ie(92310),Ce=ie.n(Je),be=ie(54476),Oe=ie(20068),$e=ie(76190),De=ie(42978),he=ie(75931),Ze=ie(67732),Ee=ie(83652);function mt(){return typeof BigInt=="function"}function Qe(Fe){return!Fe&&Fe!==0&&!Number.isNaN(Fe)||!String(Fe).trim()}function Me(Fe){var ht=Fe.trim(),Bt=ht.startsWith("-");Bt&&(ht=ht.slice(1)),ht=ht.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ht.startsWith(".")&&(ht="0".concat(ht));var Vt=ht||"0",cn=Vt.split("."),bn=cn[0]||"0",Zn=cn[1]||"0";bn==="0"&&Zn==="0"&&(Bt=!1);var zn=Bt?"-":"";return{negative:Bt,negativeStr:zn,trimStr:Vt,integerStr:bn,decimalStr:Zn,fullStr:"".concat(zn).concat(Vt)}}function Ne(Fe){var ht=String(Fe);return!Number.isNaN(Number(ht))&&ht.includes("e")}function Ae(Fe){var ht=String(Fe);if(Ne(Fe)){var Bt=Number(ht.slice(ht.indexOf("e-")+2)),Vt=ht.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(Bt+=Vt[1].length),Bt}return ht.includes(".")&&xt(ht)?ht.length-ht.indexOf(".")-1:0}function ft(Fe){var ht=String(Fe);if(Ne(Fe)){if(Fe>Number.MAX_SAFE_INTEGER)return String(mt()?BigInt(Fe).toString():Number.MAX_SAFE_INTEGER);if(Fe<Number.MIN_SAFE_INTEGER)return String(mt()?BigInt(Fe).toString():Number.MIN_SAFE_INTEGER);ht=Fe.toFixed(Ae(ht))}return Me(ht).fullStr}function xt(Fe){return typeof Fe=="number"?!Number.isNaN(Fe):Fe?/^\s*-?\d+(\.\d+)?\s*$/.test(Fe)||/^\s*-?\d+\.\s*$/.test(Fe)||/^\s*-?\.\d+\s*$/.test(Fe):!1}var It=function(){function Fe(ht){if((0,Ze.Z)(this,Fe),(0,Oe.Z)(this,"origin",""),(0,Oe.Z)(this,"negative",void 0),(0,Oe.Z)(this,"integer",void 0),(0,Oe.Z)(this,"decimal",void 0),(0,Oe.Z)(this,"decimalLen",void 0),(0,Oe.Z)(this,"empty",void 0),(0,Oe.Z)(this,"nan",void 0),Qe(ht)){this.empty=!0;return}if(this.origin=String(ht),ht==="-"||Number.isNaN(ht)){this.nan=!0;return}var Bt=ht;if(Ne(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:ft(Bt),xt(Bt)){var Vt=Me(Bt);this.negative=Vt.negative;var cn=Vt.trimStr.split(".");this.integer=BigInt(cn[0]);var bn=cn[1]||"0";this.decimal=BigInt(bn),this.decimalLen=bn.length}else this.nan=!0}return(0,Ee.Z)(Fe,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Bt){var Vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(Vt)}},{key:"negate",value:function(){var Bt=new Fe(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,Vt,cn){var bn=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),Zn=this.alignDecimal(bn),zn=Bt.alignDecimal(bn),rn=Vt(Zn,zn).toString(),En=cn(bn),Pn=Me(rn),_n=Pn.negativeStr,On=Pn.trimStr,Tn="".concat(_n).concat(On.padStart(En+1,"0"));return new Fe("".concat(Tn.slice(0,-En),".").concat(Tn.slice(-En)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new Fe(Bt);var Vt=new Fe(Bt);return Vt.isInvalidate()?this:this.cal(Vt,function(cn,bn){return cn+bn},function(cn){return cn})}},{key:"multi",value:function(Bt){var Vt=new Fe(Bt);return this.isInvalidate()||Vt.isInvalidate()?new Fe(NaN):this.cal(Vt,function(cn,bn){return cn*bn},function(cn){return cn*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Bt){return this.toString()===(Bt==null?void 0:Bt.toString())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":Me("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Fe}(),pt=function(){function Fe(ht){if((0,Ze.Z)(this,Fe),(0,Oe.Z)(this,"origin",""),(0,Oe.Z)(this,"number",void 0),(0,Oe.Z)(this,"empty",void 0),Qe(ht)){this.empty=!0;return}this.origin=String(ht),this.number=Number(ht)}return(0,Ee.Z)(Fe,[{key:"negate",value:function(){return new Fe(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new Fe(Bt);var Vt=Number(Bt);if(Number.isNaN(Vt))return this;var cn=this.number+Vt;if(cn>Number.MAX_SAFE_INTEGER)return new Fe(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Fe(Number.MIN_SAFE_INTEGER);var bn=Math.max(Ae(this.number),Ae(Vt));return new Fe(cn.toFixed(bn))}},{key:"multi",value:function(Bt){var Vt=Number(Bt);if(this.isInvalidate()||Number.isNaN(Vt))return new Fe(NaN);var cn=this.number*Vt;if(cn>Number.MAX_SAFE_INTEGER)return new Fe(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Fe(Number.MIN_SAFE_INTEGER);var bn=Math.max(Ae(this.number),Ae(Vt));return new Fe(cn.toFixed(bn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Bt){return this.toNumber()===(Bt==null?void 0:Bt.toNumber())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":ft(this.number):this.origin}}]),Fe}();function Re(Fe){return mt()?new It(Fe):new pt(Fe)}function lt(Fe,ht,Bt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Fe==="")return"";var cn=Me(Fe),bn=cn.negativeStr,Zn=cn.integerStr,zn=cn.decimalStr,rn="".concat(ht).concat(zn),En="".concat(bn).concat(Zn);if(Bt>=0){var Pn=Number(zn[Bt]);if(Pn>=5&&!Vt){var _n=Re(Fe).add("".concat(bn,"0.").concat("0".repeat(Bt)).concat(10-Pn));return lt(_n.toString(),ht,Bt,Vt)}return Bt===0?En:"".concat(En).concat(ht).concat(zn.padEnd(Bt,"0").slice(0,Bt))}return rn===".0"?En:"".concat(En).concat(rn)}var Ke=Re,Ot=ie(36901),at=ie(34280);function Ue(Fe,ht){return typeof Proxy!="undefined"&&Fe?new Proxy(Fe,{get:function(Vt,cn){if(ht[cn])return ht[cn];var bn=Vt[cn];return typeof bn=="function"?bn.bind(Vt):bn}}):Fe}var Ct=ie(8654),He=ie(48736);function it(Fe,ht){var Bt=(0,E.useRef)(null);function Vt(){try{var bn=Fe.selectionStart,Zn=Fe.selectionEnd,zn=Fe.value,rn=zn.substring(0,bn),En=zn.substring(Zn);Bt.current={start:bn,end:Zn,value:zn,beforeTxt:rn,afterTxt:En}}catch(Pn){}}function cn(){if(Fe&&Bt.current&&ht)try{var bn=Fe.value,Zn=Bt.current,zn=Zn.beforeTxt,rn=Zn.afterTxt,En=Zn.start,Pn=bn.length;if(bn.startsWith(zn))Pn=zn.length;else if(bn.endsWith(rn))Pn=bn.length-Bt.current.afterTxt.length;else{var _n=zn[En-1],On=bn.indexOf(_n,En-1);On!==-1&&(Pn=On+1)}Fe.setSelectionRange(Pn,Pn)}catch(Tn){(0,He.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Tn.message))}}return[Vt,cn]}var nt=ie(49658),de=function(){var ht=(0,E.useState)(!1),Bt=(0,De.Z)(ht,2),Vt=Bt[0],cn=Bt[1];return(0,at.Z)(function(){cn((0,nt.Z)())},[]),Vt},Et=de,ke=ie(16089),Le=200,bt=600;function ve(Fe){var ht=Fe.prefixCls,Bt=Fe.upNode,Vt=Fe.downNode,cn=Fe.upDisabled,bn=Fe.downDisabled,Zn=Fe.onStep,zn=E.useRef(),rn=E.useRef([]),En=E.useRef();En.current=Zn;var Pn=function(){clearTimeout(zn.current)},_n=function(er,Gn){er.preventDefault(),Pn(),En.current(Gn);function sr(){En.current(Gn),zn.current=setTimeout(sr,Le)}zn.current=setTimeout(sr,bt)};E.useEffect(function(){return function(){Pn(),rn.current.forEach(function(lr){return ke.Z.cancel(lr)})}},[]);var On=Et();if(On)return null;var Tn="".concat(ht,"-handler"),an=Ce()(Tn,"".concat(Tn,"-up"),(0,Oe.Z)({},"".concat(Tn,"-up-disabled"),cn)),Cn=Ce()(Tn,"".concat(Tn,"-down"),(0,Oe.Z)({},"".concat(Tn,"-down-disabled"),bn)),fn=function(){return rn.current.push((0,ke.Z)(Pn))},kn={unselectable:"on",role:"button",onMouseUp:fn,onMouseLeave:fn};return E.createElement("div",{className:"".concat(Tn,"-wrap")},E.createElement("span",(0,be.Z)({},kn,{onMouseDown:function(er){_n(er,!0)},"aria-label":"Increase Value","aria-disabled":cn,className:an}),Bt||E.createElement("span",{unselectable:"on",className:"".concat(ht,"-handler-up-inner")})),E.createElement("span",(0,be.Z)({},kn,{onMouseDown:function(er){_n(er,!1)},"aria-label":"Decrease Value","aria-disabled":bn,className:Cn}),Vt||E.createElement("span",{unselectable:"on",className:"".concat(ht,"-handler-down-inner")})))}function ue(Fe){var ht=typeof Fe=="number"?ft(Fe):Me(Fe).fullStr,Bt=ht.includes(".");return Bt?Me(ht.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Fe+"0"}var rt=ie(30292),Nt=function(){var Fe=(0,E.useRef)(0),ht=function(){ke.Z.cancel(Fe.current)};return(0,E.useEffect)(function(){return ht},[]),function(Bt){ht(),Fe.current=(0,ke.Z)(function(){Bt()})}},yt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Ie=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Xe=function(ht,Bt){return ht||Bt.isEmpty()?Bt.toString():Bt.toNumber()},qe=function(ht){var Bt=Ke(ht);return Bt.isInvalidate()?null:Bt},en=E.forwardRef(function(Fe,ht){var Bt=Fe.prefixCls,Vt=Fe.className,cn=Fe.style,bn=Fe.min,Zn=Fe.max,zn=Fe.step,rn=zn===void 0?1:zn,En=Fe.defaultValue,Pn=Fe.value,_n=Fe.disabled,On=Fe.readOnly,Tn=Fe.upHandler,an=Fe.downHandler,Cn=Fe.keyboard,fn=Fe.changeOnWheel,kn=fn===void 0?!1:fn,lr=Fe.controls,er=lr===void 0?!0:lr,Gn=Fe.classNames,sr=Fe.stringMode,hr=Fe.parser,yr=Fe.formatter,ur=Fe.precision,$t=Fe.decimalSeparator,un=Fe.onChange,jn=Fe.onInput,mr=Fe.onPressEnter,ze=Fe.onStep,ot=Fe.changeOnBlur,Se=ot===void 0?!0:ot,We=Fe.domRef,we=(0,he.Z)(Fe,yt),_e="".concat(Bt,"-input"),vt=E.useRef(null),on=E.useState(!1),ln=(0,De.Z)(on,2),gn=ln[0],Rt=ln[1],Mt=E.useRef(!1),Dt=E.useRef(!1),dn=E.useRef(!1),et=E.useState(function(){return Ke(Pn!=null?Pn:En)}),tt=(0,De.Z)(et,2),Te=tt[0],Xt=tt[1];function Ln(Yt){Pn===void 0&&Xt(Yt)}var Vn=E.useCallback(function(Yt,Zt){if(!Zt)return ur>=0?ur:Math.max(Ae(Yt),Ae(rn))},[ur,rn]),yn=E.useCallback(function(Yt){var Zt=String(Yt);if(hr)return hr(Zt);var wn=Zt;return $t&&(wn=wn.replace($t,".")),wn.replace(/[^\w.-]+/g,"")},[hr,$t]),Wt=E.useRef(""),st=E.useCallback(function(Yt,Zt){if(yr)return yr(Yt,{userTyping:Zt,input:String(Wt.current)});var wn=typeof Yt=="number"?ft(Yt):Yt;if(!Zt){var Rn=Vn(wn,Zt);if(xt(wn)&&($t||Rn>=0)){var qt=$t||".";wn=lt(wn,qt,Rn)}}return wn},[yr,Vn,$t]),xn=E.useState(function(){var Yt=En!=null?En:Pn;return Te.isInvalidate()&&["string","number"].includes((0,$e.Z)(Yt))?Number.isNaN(Yt)?"":Yt:st(Te.toString(),!1)}),An=(0,De.Z)(xn,2),Hn=An[0],Un=An[1];Wt.current=Hn;function Jn(Yt,Zt){Un(st(Yt.isInvalidate()?Yt.toString(!1):Yt.toString(!Zt),Zt))}var pn=E.useMemo(function(){return qe(Zn)},[Zn,ur]),Wn=E.useMemo(function(){return qe(bn)},[bn,ur]),tr=E.useMemo(function(){return!pn||!Te||Te.isInvalidate()?!1:pn.lessEquals(Te)},[pn,Te]),or=E.useMemo(function(){return!Wn||!Te||Te.isInvalidate()?!1:Te.lessEquals(Wn)},[Wn,Te]),nr=it(vt.current,gn),pr=(0,De.Z)(nr,2),br=pr[0],Kn=pr[1],ar=function(Zt){return pn&&!Zt.lessEquals(pn)?pn:Wn&&!Wn.lessEquals(Zt)?Wn:null},Fn=function(Zt){return!ar(Zt)},rr=function(Zt,wn){var Rn=Zt,qt=Fn(Rn)||Rn.isEmpty();if(!Rn.isEmpty()&&!wn&&(Rn=ar(Rn)||Rn,qt=!0),!On&&!_n&&qt){var hn=Rn.toString(),Dn=Vn(hn,wn);return Dn>=0&&(Rn=Ke(lt(hn,".",Dn)),Fn(Rn)||(Rn=Ke(lt(hn,".",Dn,!0)))),Rn.equals(Te)||(Ln(Rn),un==null||un(Rn.isEmpty()?null:Xe(sr,Rn)),Pn===void 0&&Jn(Rn,wn)),Rn}return Te},Cr=Nt(),Qn=function Yt(Zt){if(br(),Wt.current=Zt,Un(Zt),!Dt.current){var wn=yn(Zt),Rn=Ke(wn);Rn.isNaN()||rr(Rn,!0)}jn==null||jn(Zt),Cr(function(){var qt=Zt;hr||(qt=Zt.replace(/。/g,".")),qt!==Zt&&Yt(qt)})},Er=function(){Dt.current=!0},qn=function(){Dt.current=!1,Qn(vt.current.value)},In=function(Zt){Qn(Zt.target.value)},cr=function(Zt){var wn;if(!(Zt&&tr||!Zt&&or)){Mt.current=!1;var Rn=Ke(dn.current?ue(rn):rn);Zt||(Rn=Rn.negate());var qt=(Te||Ke(0)).add(Rn.toString()),hn=rr(qt,!1);ze==null||ze(Xe(sr,hn),{offset:dn.current?ue(rn):rn,type:Zt?"up":"down"}),(wn=vt.current)===null||wn===void 0||wn.focus()}},fr=function(Zt){var wn=Ke(yn(Hn)),Rn;wn.isNaN()?Rn=rr(Te,Zt):Rn=rr(wn,Zt),Pn!==void 0?Jn(Te,!1):Rn.isNaN()||Jn(Rn,!1)},xr=function(){Mt.current=!0},Mn=function(Zt){var wn=Zt.key,Rn=Zt.shiftKey;Mt.current=!0,dn.current=Rn,wn==="Enter"&&(Dt.current||(Mt.current=!1),fr(!1),mr==null||mr(Zt)),Cn!==!1&&!Dt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(wn)&&(cr(wn==="Up"||wn==="ArrowUp"),Zt.preventDefault())},Ut=function(){Mt.current=!1,dn.current=!1};E.useEffect(function(){if(kn&&gn){var Yt=function(Rn){cr(Rn.deltaY<0),Rn.preventDefault()},Zt=vt.current;if(Zt)return Zt.addEventListener("wheel",Yt,{passive:!1}),function(){return Zt.removeEventListener("wheel",Yt)}}});var tn=function(){Se&&fr(!1),Rt(!1),Mt.current=!1};return(0,at.o)(function(){Te.isInvalidate()||Jn(Te,!1)},[ur,yr]),(0,at.o)(function(){var Yt=Ke(Pn);Xt(Yt);var Zt=Ke(yn(Hn));(!Yt.equals(Zt)||!Mt.current||yr)&&Jn(Yt,Mt.current)},[Pn]),(0,at.o)(function(){yr&&Kn()},[Hn]),E.createElement("div",{ref:We,className:Ce()(Bt,Vt,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat(Bt,"-focused"),gn),"".concat(Bt,"-disabled"),_n),"".concat(Bt,"-readonly"),On),"".concat(Bt,"-not-a-number"),Te.isNaN()),"".concat(Bt,"-out-of-range"),!Te.isInvalidate()&&!Fn(Te))),style:cn,onFocus:function(){Rt(!0)},onBlur:tn,onKeyDown:Mn,onKeyUp:Ut,onCompositionStart:Er,onCompositionEnd:qn,onBeforeInput:xr},er&&E.createElement(ve,{prefixCls:Bt,upNode:Tn,downNode:an,upDisabled:tr,downDisabled:or,onStep:cr}),E.createElement("div",{className:"".concat(_e,"-wrap")},E.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":bn,"aria-valuemax":Zn,"aria-valuenow":Te.isInvalidate()?null:Te.toString(),step:rn},we,{ref:(0,Ct.sQ)(vt,ht),className:_e,value:Hn,onChange:In,disabled:_n,readOnly:On}))))}),Ft=E.forwardRef(function(Fe,ht){var Bt=Fe.disabled,Vt=Fe.style,cn=Fe.prefixCls,bn=cn===void 0?"rc-input-number":cn,Zn=Fe.value,zn=Fe.prefix,rn=Fe.suffix,En=Fe.addonBefore,Pn=Fe.addonAfter,_n=Fe.className,On=Fe.classNames,Tn=(0,he.Z)(Fe,Ie),an=E.useRef(null),Cn=E.useRef(null),fn=E.useRef(null),kn=function(er){fn.current&&(0,rt.nH)(fn.current,er)};return E.useImperativeHandle(ht,function(){return Ue(fn.current,{focus:kn,nativeElement:an.current.nativeElement||Cn.current})}),E.createElement(Ot.BaseInput,{className:_n,triggerFocus:kn,prefixCls:bn,value:Zn,disabled:Bt,style:Vt,prefix:zn,suffix:rn,addonAfter:Pn,addonBefore:En,classNames:On,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:an},E.createElement(en,(0,be.Z)({prefixCls:bn,disabled:Bt,ref:fn,domRef:Cn,className:On==null?void 0:On.input},Tn)))}),_t=Ft,je=_t,Ht=ie(62487),gt=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),ne=ie(56553),pe=ie(24971),ye=ie(70045),ct=ie(36237),Pe=ie(53075),Ge=ie(64910),dt=ie(39082),Pt=ie(63356),St=ie(56119),xe=ie(16931),Be=ie(51636),Tt=ie(17835);const kt=Fe=>{var ht;const Bt=(ht=Fe.handleVisible)!==null&&ht!==void 0?ht:"auto",Vt=Fe.controlHeightSM-Fe.lineWidth*2;return Object.assign(Object.assign({},(0,Ge.T)(Fe)),{controlWidth:90,handleWidth:Vt,handleFontSize:Fe.fontSize/2,handleVisible:Bt,handleActiveBg:Fe.colorFillAlter,handleBg:Fe.colorBgContainer,filledHandleBg:new Tt.FastColor(Fe.colorFillSecondary).onBackground(Fe.colorBgContainer).toHexString(),handleHoverColor:Fe.colorPrimary,handleBorderColor:Fe.colorBorder,handleOpacity:Bt===!0?1:0,handleVisibleWidth:Bt===!0?Vt:0})},Gt=(Fe,ht)=>{let{componentCls:Bt,borderRadiusSM:Vt,borderRadiusLG:cn}=Fe;const bn=ht==="lg"?cn:Vt;return{[`&-${ht}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:bn,borderEndEndRadius:bn},[`${Bt}-handler-up`]:{borderStartEndRadius:bn},[`${Bt}-handler-down`]:{borderEndEndRadius:bn}}}},Qt=Fe=>{const{componentCls:ht,lineWidth:Bt,lineType:Vt,borderRadius:cn,inputFontSizeSM:bn,inputFontSizeLG:Zn,controlHeightLG:zn,controlHeightSM:rn,colorError:En,paddingInlineSM:Pn,paddingBlockSM:_n,paddingBlockLG:On,paddingInlineLG:Tn,colorTextDescription:an,motionDurationMid:Cn,handleHoverColor:fn,handleOpacity:kn,paddingInline:lr,paddingBlock:er,handleBg:Gn,handleActiveBg:sr,colorTextDisabled:hr,borderRadiusSM:yr,borderRadiusLG:ur,controlWidth:$t,handleBorderColor:un,filledHandleBg:jn,lineHeightLG:mr,calc:ze}=Fe;return[{[ht]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Fe)),(0,Pe.ik)(Fe)),{display:"inline-block",width:$t,margin:0,padding:0,borderRadius:cn}),(0,dt.qG)(Fe,{[`${ht}-handler-wrap`]:{background:Gn,[`${ht}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(Bt)} ${Vt} ${un}`}}})),(0,dt.H8)(Fe,{[`${ht}-handler-wrap`]:{background:jn,[`${ht}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(Bt)} ${Vt} ${un}`}},"&:focus-within":{[`${ht}-handler-wrap`]:{background:Gn}}})),(0,dt.vc)(Fe,{[`${ht}-handler-wrap`]:{background:Gn,[`${ht}-handler-down`]:{borderBlockStart:`${(0,ct.unit)(Bt)} ${Vt} ${un}`}}})),(0,dt.Mu)(Fe)),{"&-rtl":{direction:"rtl",[`${ht}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Zn,lineHeight:mr,borderRadius:ur,[`input${ht}-input`]:{height:ze(zn).sub(ze(Bt).mul(2)).equal(),padding:`${(0,ct.unit)(On)} ${(0,ct.unit)(Tn)}`}},"&-sm":{padding:0,fontSize:bn,borderRadius:yr,[`input${ht}-input`]:{height:ze(rn).sub(ze(Bt).mul(2)).equal(),padding:`${(0,ct.unit)(_n)} ${(0,ct.unit)(Pn)}`}},"&-out-of-range":{[`${ht}-input-wrap`]:{input:{color:En}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Fe)),(0,Pe.s7)(Fe)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ht}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ht}-group-addon`]:{borderRadius:ur,fontSize:Fe.fontSizeLG}},"&-sm":{[`${ht}-group-addon`]:{borderRadius:yr}}},(0,dt.ir)(Fe)),(0,dt.S5)(Fe)),{[`&:not(${ht}-compact-first-item):not(${ht}-compact-last-item)${ht}-compact-item`]:{[`${ht}, ${ht}-group-addon`]:{borderRadius:0}},[`&:not(${ht}-compact-last-item)${ht}-compact-first-item`]:{[`${ht}, ${ht}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ht}-compact-first-item)${ht}-compact-last-item`]:{[`${ht}, ${ht}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ht}-input`]:{cursor:"not-allowed"},[ht]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Fe)),{width:"100%",padding:`${(0,ct.unit)(er)} ${(0,ct.unit)(lr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:cn,outline:0,transition:`all ${Cn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Pe.nz)(Fe.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ht}-handler-wrap, &-focused ${ht}-handler-wrap`]:{width:Fe.handleWidth,opacity:1}})},{[ht]:Object.assign(Object.assign(Object.assign({[`${ht}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Fe.handleVisibleWidth,opacity:kn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:cn,borderEndEndRadius:cn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${Cn}`,overflow:"hidden",[`${ht}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${ht}-handler-up-inner,
|
|
|
${ht}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Fe.handleFontSize}}},[`${ht}-handler`]:{height:"50%",overflow:"hidden",color:an,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ct.unit)(Bt)} ${Vt} ${un}`,transition:`all ${Cn} linear`,"&:active":{background:sr},"&:hover":{height:"60%",[`
|
|
|
${ht}-handler-up-inner,
|
|
|
${ht}-handler-down-inner
|
|
|
`]:{color:fn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Pt.Ro)()),{color:an,transition:`all ${Cn} linear`,userSelect:"none"})},[`${ht}-handler-up`]:{borderStartEndRadius:cn},[`${ht}-handler-down`]:{borderEndEndRadius:cn}},Gt(Fe,"lg")),Gt(Fe,"sm")),{"&-disabled, &-readonly":{[`${ht}-handler-wrap`]:{display:"none"},[`${ht}-input`]:{color:"inherit"}},[`
|
|
|
${ht}-handler-up-disabled,
|
|
|
${ht}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${ht}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${ht}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:hr}})}]},wt=Fe=>{const{componentCls:ht,paddingBlock:Bt,paddingInline:Vt,inputAffixPadding:cn,controlWidth:bn,borderRadiusLG:Zn,borderRadiusSM:zn,paddingInlineLG:rn,paddingInlineSM:En,paddingBlockLG:Pn,paddingBlockSM:_n,motionDurationMid:On}=Fe;return{[`${ht}-affix-wrapper`]:Object.assign(Object.assign({[`input${ht}-input`]:{padding:`${(0,ct.unit)(Bt)} 0`}},(0,Pe.ik)(Fe)),{position:"relative",display:"inline-flex",alignItems:"center",width:bn,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:Zn,paddingInlineStart:rn,[`input${ht}-input`]:{padding:`${(0,ct.unit)(Pn)} 0`}},"&-sm":{borderRadius:zn,paddingInlineStart:En,[`input${ht}-input`]:{padding:`${(0,ct.unit)(_n)} 0`}},[`&:not(${ht}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ht}-disabled`]:{background:"transparent"},[`> div${ht}`]:{width:"100%",border:"none",outline:"none",[`&${ht}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ht}-handler-wrap`]:{zIndex:2},[ht]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:cn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Vt,marginInlineStart:cn,transition:`margin ${On}`}},[`&:hover ${ht}-handler-wrap, &-focused ${ht}-handler-wrap`]:{width:Fe.handleWidth,opacity:1},[`&:not(${ht}-affix-wrapper-without-controls):hover ${ht}-suffix`]:{marginInlineEnd:Fe.calc(Fe.handleWidth).add(Vt).equal()}})}};var Kt=(0,xe.I$)("InputNumber",Fe=>{const ht=(0,Be.mergeToken)(Fe,(0,Ge.e)(Fe));return[Qt(ht),wt(ht),(0,St.c)(ht)]},kt,{unitless:{handleOpacity:!0}}),Lt=function(Fe,ht){var Bt={};for(var Vt in Fe)Object.prototype.hasOwnProperty.call(Fe,Vt)&&ht.indexOf(Vt)<0&&(Bt[Vt]=Fe[Vt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Vt=Object.getOwnPropertySymbols(Fe);cn<Vt.length;cn++)ht.indexOf(Vt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Vt[cn])&&(Bt[Vt[cn]]=Fe[Vt[cn]]);return Bt};const Jt=E.forwardRef((Fe,ht)=>{const{getPrefixCls:Bt,direction:Vt}=E.useContext(ae.E_),cn=E.useRef(null);E.useImperativeHandle(ht,()=>cn.current);const{className:bn,rootClassName:Zn,size:zn,disabled:rn,prefixCls:En,addonBefore:Pn,addonAfter:_n,prefix:On,suffix:Tn,bordered:an,readOnly:Cn,status:fn,controls:kn,variant:lr}=Fe,er=Lt(Fe,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Gn=Bt("input-number",En),sr=(0,oe.Z)(Gn),[hr,yr,ur]=Kt(Gn,sr),{compactSize:$t,compactItemClassnames:un}=(0,ye.ri)(Gn,Vt);let jn=E.createElement(ge.Z,{className:`${Gn}-handler-up-inner`}),mr=E.createElement(Ve.Z,{className:`${Gn}-handler-down-inner`});const ze=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(jn=typeof kn.upIcon=="undefined"?jn:E.createElement("span",{className:`${Gn}-handler-up-inner`},kn.upIcon),mr=typeof kn.downIcon=="undefined"?mr:E.createElement("span",{className:`${Gn}-handler-down-inner`},kn.downIcon));const{hasFeedback:ot,status:Se,isFormItemInput:We,feedbackIcon:we}=E.useContext(ne.aM),_e=(0,gt.F)(Se,fn),vt=(0,se.Z)(tt=>{var Te;return(Te=zn!=null?zn:$t)!==null&&Te!==void 0?Te:tt}),on=E.useContext(ee.Z),ln=rn!=null?rn:on,[gn,Rt]=(0,pe.Z)("inputNumber",lr,an),Mt=ot&&E.createElement(E.Fragment,null,we),Dt=Ce()({[`${Gn}-lg`]:vt==="large",[`${Gn}-sm`]:vt==="small",[`${Gn}-rtl`]:Vt==="rtl",[`${Gn}-in-form-item`]:We},yr),dn=`${Gn}-group`,et=E.createElement(je,Object.assign({ref:cn,disabled:ln,className:Ce()(ur,sr,bn,Zn,un),upHandler:jn,downHandler:mr,prefixCls:Gn,readOnly:Cn,controls:ze,prefix:On,suffix:Mt||Tn,addonBefore:Pn&&E.createElement(Ht.Z,{form:!0,space:!0},Pn),addonAfter:_n&&E.createElement(Ht.Z,{form:!0,space:!0},_n),classNames:{input:Dt,variant:Ce()({[`${Gn}-${gn}`]:Rt},(0,gt.Z)(Gn,_e,ot)),affixWrapper:Ce()({[`${Gn}-affix-wrapper-sm`]:vt==="small",[`${Gn}-affix-wrapper-lg`]:vt==="large",[`${Gn}-affix-wrapper-rtl`]:Vt==="rtl",[`${Gn}-affix-wrapper-without-controls`]:kn===!1||ln},yr),wrapper:Ce()({[`${dn}-rtl`]:Vt==="rtl"},yr),groupWrapper:Ce()({[`${Gn}-group-wrapper-sm`]:vt==="small",[`${Gn}-group-wrapper-lg`]:vt==="large",[`${Gn}-group-wrapper-rtl`]:Vt==="rtl",[`${Gn}-group-wrapper-${gn}`]:Rt},(0,gt.Z)(`${Gn}-group-wrapper`,_e,ot),yr)}},er));return hr(et)}),sn=Jt,vn=Fe=>E.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},E.createElement(Jt,Object.assign({},Fe)));sn._InternalPanelDoNotUseOrYouWillBeFired=vn;var Sn=sn},49397:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return pt}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(36901),Ce=ie(8654),be=ie(62487),Oe=ie(86013),$e=ie(82855),De=ie(48755),he=ie(2171),Ze=ie(83397),Ee=ie(31756),mt=ie(56553),Qe=ie(24971),Me=ie(70045),Ne=ie(23826),Ae=ie(53075);function ft(Re){return!!(Re.prefix||Re.suffix||Re.allowClear||Re.showCount)}var xt=function(Re,lt){var Ke={};for(var Ot in Re)Object.prototype.hasOwnProperty.call(Re,Ot)&<.indexOf(Ot)<0&&(Ke[Ot]=Re[Ot]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ot=Object.getOwnPropertySymbols(Re);at<Ot.length;at++)lt.indexOf(Ot[at])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ot[at])&&(Ke[Ot[at]]=Re[Ot[at]]);return Ke},pt=(0,E.forwardRef)((Re,lt)=>{const{prefixCls:Ke,bordered:Ot=!0,status:at,size:Ue,disabled:Ct,onBlur:He,onFocus:it,suffix:nt,allowClear:de,addonAfter:Et,addonBefore:ke,className:Le,style:bt,styles:ve,rootClassName:ue,onChange:rt,classNames:Nt,variant:yt}=Re,Ie=xt(Re,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Xe,direction:qe,allowClear:en,autoComplete:Ft,className:_t,style:je,classNames:Ht,styles:gt}=(0,De.dj)("input"),ae=Xe("input",Ke),te=(0,E.useRef)(null),ee=(0,Ze.Z)(ae),[oe,se,ne]=(0,Ae.TI)(ae,ue),[pe]=(0,Ae.ZP)(ae,ee),{compactSize:ye,compactItemClassnames:ct}=(0,Me.ri)(ae,qe),Pe=(0,Ee.Z)(Sn=>{var Fe;return(Fe=Ue!=null?Ue:ye)!==null&&Fe!==void 0?Fe:Sn}),Ge=E.useContext(he.Z),dt=Ct!=null?Ct:Ge,{status:Pt,hasFeedback:St,feedbackIcon:xe}=(0,E.useContext)(mt.aM),Be=(0,$e.F)(Pt,at),Tt=ft(Re)||!!St,kt=(0,E.useRef)(Tt),Gt=(0,Ne.Z)(te,!0),Qt=Sn=>{Gt(),He==null||He(Sn)},wt=Sn=>{Gt(),it==null||it(Sn)},Kt=Sn=>{Gt(),rt==null||rt(Sn)},Lt=(St||nt)&&E.createElement(E.Fragment,null,nt,St&&xe),Jt=(0,Oe.Z)(de!=null?de:en),[sn,vn]=(0,Qe.Z)("input",yt,Ot);return oe(pe(E.createElement(Je.default,Object.assign({ref:(0,Ce.sQ)(lt,te),prefixCls:ae,autoComplete:Ft},Ie,{disabled:dt,onBlur:Qt,onFocus:wt,style:Object.assign(Object.assign({},je),bt),styles:Object.assign(Object.assign({},gt),ve),suffix:Lt,allowClear:Jt,className:ge()(Le,ue,ne,ee,ct,_t),onChange:Kt,addonBefore:ke&&E.createElement(be.Z,{form:!0,space:!0},ke),addonAfter:Et&&E.createElement(be.Z,{form:!0,space:!0},Et),classNames:Object.assign(Object.assign(Object.assign({},Nt),Ht),{input:ge()({[`${ae}-sm`]:Pe==="small",[`${ae}-lg`]:Pe==="large",[`${ae}-rtl`]:qe==="rtl"},Nt==null?void 0:Nt.input,Ht.input,se),variant:ge()({[`${ae}-${sn}`]:vn},(0,$e.Z)(ae,Be)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Pe==="small",[`${ae}-affix-wrapper-lg`]:Pe==="large",[`${ae}-affix-wrapper-rtl`]:qe==="rtl"},se),wrapper:ge()({[`${ae}-group-rtl`]:qe==="rtl"},se),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Pe==="small",[`${ae}-group-wrapper-lg`]:Pe==="large",[`${ae}-group-wrapper-rtl`]:qe==="rtl",[`${ae}-group-wrapper-${sn}`]:vn},(0,$e.Z)(`${ae}-group-wrapper`,Be,St),se)})}))))})},79809:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return lt}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(22711),Ce=ie(86013),be=ie(82855),Oe=ie(48755),$e=ie(2171),De=ie(83397),he=ie(31756),Ze=ie(56553),Ee=ie(24971),mt=ie(70045),Qe=ie(30292),Me=ie(53075),Ne=ie(16931),Ae=ie(51636),ft=ie(64910);const xt=Ke=>{const{componentCls:Ot,paddingLG:at}=Ke,Ue=`${Ot}-textarea`;return{[`textarea${Ot}`]:{maxWidth:"100%",height:"auto",minHeight:Ke.controlHeight,lineHeight:Ke.lineHeight,verticalAlign:"bottom",transition:`all ${Ke.motionDurationSlow}`,resize:"vertical",[`&${Ot}-mouse-active`]:{transition:`all ${Ke.motionDurationSlow}, height 0s, width 0s`}},[`${Ot}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ue]:{position:"relative","&-show-count":{[`> ${Ot}`]:{height:"100%"},[`${Ot}-data-count`]:{position:"absolute",bottom:Ke.calc(Ke.fontSize).mul(Ke.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ke.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Ot},
|
|
|
&-affix-wrapper${Ue}-has-feedback ${Ot}
|
|
|
`]:{paddingInlineEnd:at},[`&-affix-wrapper${Ot}-affix-wrapper`]:{padding:0,[`> textarea${Ot}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ke.calc(Ke.controlHeight).sub(Ke.calc(Ke.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ot}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ot}-clear-icon`]:{position:"absolute",insetInlineEnd:Ke.paddingInline,insetBlockStart:Ke.paddingXS},[`${Ue}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ke.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ot}-affix-wrapper-sm`]:{[`${Ot}-suffix`]:{[`${Ot}-clear-icon`]:{insetInlineEnd:Ke.paddingInlineSM}}}}}};var It=(0,Ne.I$)(["Input","TextArea"],Ke=>{const Ot=(0,Ae.mergeToken)(Ke,(0,ft.e)(Ke));return[xt(Ot)]},ft.T,{resetFont:!1}),pt=function(Ke,Ot){var at={};for(var Ue in Ke)Object.prototype.hasOwnProperty.call(Ke,Ue)&&Ot.indexOf(Ue)<0&&(at[Ue]=Ke[Ue]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Ue=Object.getOwnPropertySymbols(Ke);Ct<Ue.length;Ct++)Ot.indexOf(Ue[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Ue[Ct])&&(at[Ue[Ct]]=Ke[Ue[Ct]]);return at},lt=(0,E.forwardRef)((Ke,Ot)=>{var at;const{prefixCls:Ue,bordered:Ct=!0,size:He,disabled:it,status:nt,allowClear:de,classNames:Et,rootClassName:ke,className:Le,style:bt,styles:ve,variant:ue,showCount:rt,onMouseDown:Nt,onResize:yt}=Ke,Ie=pt(Ke,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Xe,direction:qe,allowClear:en,autoComplete:Ft,className:_t,style:je,classNames:Ht,styles:gt}=(0,Oe.dj)("textArea"),ae=E.useContext($e.Z),te=it!=null?it:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=E.useContext(Ze.aM),ne=(0,be.F)(ee,nt),pe=E.useRef(null);E.useImperativeHandle(Ot,()=>{var vn;return{resizableTextArea:(vn=pe.current)===null||vn===void 0?void 0:vn.resizableTextArea,focus:Sn=>{var Fe,ht;(0,Qe.nH)((ht=(Fe=pe.current)===null||Fe===void 0?void 0:Fe.resizableTextArea)===null||ht===void 0?void 0:ht.textArea,Sn)},blur:()=>{var Sn;return(Sn=pe.current)===null||Sn===void 0?void 0:Sn.blur()}}});const ye=Xe("input",Ue),ct=(0,De.Z)(ye),[Pe,Ge,dt]=(0,Me.TI)(ye,ke),[Pt]=It(ye,ct),{compactSize:St,compactItemClassnames:xe}=(0,mt.ri)(ye,qe),Be=(0,he.Z)(vn=>{var Sn;return(Sn=He!=null?He:St)!==null&&Sn!==void 0?Sn:vn}),[Tt,kt]=(0,Ee.Z)("textArea",ue,Ct),Gt=(0,Ce.Z)(de!=null?de:en),[Qt,wt]=E.useState(!1),[Kt,Lt]=E.useState(!1),Jt=vn=>{wt(!0),Nt==null||Nt(vn);const Sn=()=>{wt(!1),document.removeEventListener("mouseup",Sn)};document.addEventListener("mouseup",Sn)},sn=vn=>{var Sn,Fe;if(yt==null||yt(vn),Qt&&typeof getComputedStyle=="function"){const ht=(Fe=(Sn=pe.current)===null||Sn===void 0?void 0:Sn.nativeElement)===null||Fe===void 0?void 0:Fe.querySelector("textarea");ht&&getComputedStyle(ht).resize==="both"&&Lt(!0)}};return Pe(Pt(E.createElement(Je.default,Object.assign({autoComplete:Ft},Ie,{style:Object.assign(Object.assign({},je),bt),styles:Object.assign(Object.assign({},gt),ve),disabled:te,allowClear:Gt,className:ge()(dt,ct,Le,ke,xe,_t,Kt&&`${ye}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Et),Ht),{textarea:ge()({[`${ye}-sm`]:Be==="small",[`${ye}-lg`]:Be==="large"},Ge,Et==null?void 0:Et.textarea,Ht.textarea,Qt&&`${ye}-mouse-active`),variant:ge()({[`${ye}-${Tt}`]:kt},(0,be.Z)(ye,ne)),affixWrapper:ge()(`${ye}-textarea-affix-wrapper`,{[`${ye}-affix-wrapper-rtl`]:qe==="rtl",[`${ye}-affix-wrapper-sm`]:Be==="small",[`${ye}-affix-wrapper-lg`]:Be==="large",[`${ye}-textarea-show-count`]:rt||((at=Ke.count)===null||at===void 0?void 0:at.show)},Ge)}),prefixCls:ye,suffix:oe&&E.createElement("span",{className:`${ye}-textarea-suffix`},se),showCount:rt,ref:pe,onResize:sn,onMouseDown:Jt}))))})},23826:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Ve}});var E=ie(59301);function Ve(ge,Je){const Ce=(0,E.useRef)([]),be=()=>{Ce.current.push(setTimeout(()=>{var Oe,$e,De,he;!((Oe=ge.current)===null||Oe===void 0)&&Oe.input&&(($e=ge.current)===null||$e===void 0?void 0:$e.input.getAttribute("type"))==="password"&&(!((De=ge.current)===null||De===void 0)&&De.input.hasAttribute("value"))&&((he=ge.current)===null||he===void 0||he.input.removeAttribute("value"))}))};return(0,E.useEffect)(()=>(Je&&be(),()=>Ce.current.forEach(Oe=>{Oe&&clearTimeout(Oe)})),[]),be}},37568:function(nn,jt,ie){"use strict";ie.d(jt,{default:function(){return Ht}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(48755),Ce=ie(56553),be=ie(53075),$e=gt=>{const{getPrefixCls:ae,direction:te}=(0,E.useContext)(Je.E_),{prefixCls:ee,className:oe}=gt,se=ae("input-group",ee),ne=ae("input"),[pe,ye,ct]=(0,be.ZP)(ne),Pe=ge()(se,ct,{[`${se}-lg`]:gt.size==="large",[`${se}-sm`]:gt.size==="small",[`${se}-compact`]:gt.compact,[`${se}-rtl`]:te==="rtl"},ye,oe),Ge=(0,E.useContext)(Ce.aM),dt=(0,E.useMemo)(()=>Object.assign(Object.assign({},Ge),{isFormItemInput:!1}),[Ge]);return pe(E.createElement("span",{className:Pe,style:gt.style,onMouseEnter:gt.onMouseEnter,onMouseLeave:gt.onMouseLeave,onFocus:gt.onFocus,onBlur:gt.onBlur},E.createElement(Ce.aM.Provider,{value:dt},gt.children)))},De=ie(49397),he=ie(94480),Ze=ie(6089),Ee=ie(26112),mt=ie(82855),Qe=ie(31756),Me=ie(16931),Ne=ie(51636),Ae=ie(64910);const ft=gt=>{const{componentCls:ae,paddingXS:te}=gt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:gt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:gt.calc(gt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:gt.paddingXS}}}};var xt=(0,Me.I$)(["Input","OTP"],gt=>{const ae=(0,Ne.mergeToken)(gt,(0,Ae.e)(gt));return[ft(ae)]},Ae.T),It=ie(16089),pt=function(gt,ae){var te={};for(var ee in gt)Object.prototype.hasOwnProperty.call(gt,ee)&&ae.indexOf(ee)<0&&(te[ee]=gt[ee]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(gt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,ee[oe])&&(te[ee[oe]]=gt[ee[oe]]);return te},lt=E.forwardRef((gt,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:ne}=gt,pe=pt(gt,["value","onChange","onActiveChange","index","mask"]),ye=te&&typeof ne=="string"?ne:te,ct=St=>{ee(se,St.target.value)},Pe=E.useRef(null);E.useImperativeHandle(ae,()=>Pe.current);const Ge=()=>{(0,It.Z)(()=>{var St;const xe=(St=Pe.current)===null||St===void 0?void 0:St.input;document.activeElement===xe&&xe&&xe.select()})},dt=St=>{const{key:xe,ctrlKey:Be,metaKey:Tt}=St;xe==="ArrowLeft"?oe(se-1):xe==="ArrowRight"?oe(se+1):xe==="z"&&(Be||Tt)&&St.preventDefault(),Ge()},Pt=St=>{St.key==="Backspace"&&!te&&oe(se-1),Ge()};return E.createElement(De.Z,Object.assign({type:ne===!0?"password":"text"},pe,{ref:Pe,value:ye,onInput:ct,onFocus:Ge,onKeyDown:dt,onKeyUp:Pt,onMouseDown:Ge,onMouseUp:Ge}))}),Ke=function(gt,ae){var te={};for(var ee in gt)Object.prototype.hasOwnProperty.call(gt,ee)&&ae.indexOf(ee)<0&&(te[ee]=gt[ee]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(gt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,ee[oe])&&(te[ee[oe]]=gt[ee[oe]]);return te};function Ot(gt){return(gt||"").split("")}const at=gt=>{const{index:ae,prefixCls:te,separator:ee}=gt,oe=typeof ee=="function"?ee(ae):ee;return oe?E.createElement("span",{className:`${te}-separator`},oe):null};var Ct=E.forwardRef((gt,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:ne,onChange:pe,formatter:ye,separator:ct,variant:Pe,disabled:Ge,status:dt,autoFocus:Pt,mask:St,type:xe,onInput:Be,inputMode:Tt}=gt,kt=Ke(gt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Gt,direction:Qt}=E.useContext(Je.E_),wt=Gt("otp",te),Kt=(0,Ee.Z)(kt,{aria:!0,data:!0,attr:!0}),[Lt,Jt,sn]=xt(wt),vn=(0,Qe.Z)(On=>oe!=null?oe:On),Sn=E.useContext(Ce.aM),Fe=(0,mt.F)(Sn.status,dt),ht=E.useMemo(()=>Object.assign(Object.assign({},Sn),{status:Fe,hasFeedback:!1,feedbackIcon:null}),[Sn,Fe]),Bt=E.useRef(null),Vt=E.useRef({});E.useImperativeHandle(ae,()=>({focus:()=>{var On;(On=Vt.current[0])===null||On===void 0||On.focus()},blur:()=>{var On;for(let Tn=0;Tn<ee;Tn+=1)(On=Vt.current[Tn])===null||On===void 0||On.blur()},nativeElement:Bt.current}));const cn=On=>ye?ye(On):On,[bn,Zn]=E.useState(()=>Ot(cn(se||"")));E.useEffect(()=>{ne!==void 0&&Zn(Ot(ne))},[ne]);const zn=(0,Ze.Z)(On=>{Zn(On),Be&&Be(On),pe&&On.length===ee&&On.every(Tn=>Tn)&&On.some((Tn,an)=>bn[an]!==Tn)&&pe(On.join(""))}),rn=(0,Ze.Z)((On,Tn)=>{let an=(0,he.Z)(bn);for(let fn=0;fn<On;fn+=1)an[fn]||(an[fn]="");Tn.length<=1?an[On]=Tn:an=an.slice(0,On).concat(Ot(Tn)),an=an.slice(0,ee);for(let fn=an.length-1;fn>=0&&!an[fn];fn-=1)an.pop();const Cn=cn(an.map(fn=>fn||" ").join(""));return an=Ot(Cn).map((fn,kn)=>fn===" "&&!an[kn]?an[kn]:fn),an}),En=(On,Tn)=>{var an;const Cn=rn(On,Tn),fn=Math.min(On+Tn.length,ee-1);fn!==On&&Cn[On]!==void 0&&((an=Vt.current[fn])===null||an===void 0||an.focus()),zn(Cn)},Pn=On=>{var Tn;(Tn=Vt.current[On])===null||Tn===void 0||Tn.focus()},_n={variant:Pe,disabled:Ge,status:Fe,mask:St,type:xe,inputMode:Tt};return Lt(E.createElement("div",Object.assign({},Kt,{ref:Bt,className:ge()(wt,{[`${wt}-sm`]:vn==="small",[`${wt}-lg`]:vn==="large",[`${wt}-rtl`]:Qt==="rtl"},sn,Jt)}),E.createElement(Ce.aM.Provider,{value:ht},Array.from({length:ee}).map((On,Tn)=>{const an=`otp-${Tn}`,Cn=bn[Tn]||"";return E.createElement(E.Fragment,{key:an},E.createElement(lt,Object.assign({ref:fn=>{Vt.current[Tn]=fn},index:Tn,size:vn,htmlSize:1,className:`${wt}-input`,onChange:En,value:Cn,onActiveChange:Pn,autoFocus:Tn===0&&Pt},_n)),Tn<ee-1&&E.createElement(at,{separator:ct,index:Tn,prefixCls:wt}))}))))}),He=ie(73331),it=ie(15277),nt=ie(2738),de=ie(8654),Et=ie(2171),ke=ie(23826),Le=function(gt,ae){var te={};for(var ee in gt)Object.prototype.hasOwnProperty.call(gt,ee)&&ae.indexOf(ee)<0&&(te[ee]=gt[ee]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(gt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,ee[oe])&&(te[ee[oe]]=gt[ee[oe]]);return te};const bt=gt=>gt?E.createElement(it.Z,null):E.createElement(He.Z,null),ve={click:"onClick",hover:"onMouseOver"};var rt=E.forwardRef((gt,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=bt}=gt,ne=E.useContext(Et.Z),pe=te!=null?te:ne,ye=typeof oe=="object"&&oe.visible!==void 0,[ct,Pe]=(0,E.useState)(()=>ye?oe.visible:!1),Ge=(0,E.useRef)(null);E.useEffect(()=>{ye&&Pe(oe.visible)},[ye,oe]);const dt=(0,ke.Z)(Ge),Pt=()=>{var vn;if(pe)return;ct&&dt();const Sn=!ct;Pe(Sn),typeof oe=="object"&&((vn=oe.onVisibleChange)===null||vn===void 0||vn.call(oe,Sn))},St=vn=>{const Sn=ve[ee]||"",Fe=se(ct),ht={[Sn]:Pt,className:`${vn}-icon`,key:"passwordIcon",onMouseDown:Bt=>{Bt.preventDefault()},onMouseUp:Bt=>{Bt.preventDefault()}};return E.cloneElement(E.isValidElement(Fe)?Fe:E.createElement("span",null,Fe),ht)},{className:xe,prefixCls:Be,inputPrefixCls:Tt,size:kt}=gt,Gt=Le(gt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Qt}=E.useContext(Je.E_),wt=Qt("input",Tt),Kt=Qt("input-password",Be),Lt=oe&&St(Kt),Jt=ge()(Kt,xe,{[`${Kt}-${kt}`]:!!kt}),sn=Object.assign(Object.assign({},(0,nt.Z)(Gt,["suffix","iconRender","visibilityToggle"])),{type:ct?"text":"password",className:Jt,prefixCls:wt,suffix:Lt});return kt&&(sn.size=kt),E.createElement(De.Z,Object.assign({ref:(0,de.sQ)(ae,Ge)},sn))}),Nt=ie(47472),yt=ie(22703),Ie=ie(7939),Xe=ie(70045),qe=function(gt,ae){var te={};for(var ee in gt)Object.prototype.hasOwnProperty.call(gt,ee)&&ae.indexOf(ee)<0&&(te[ee]=gt[ee]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(gt);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,ee[oe])&&(te[ee[oe]]=gt[ee[oe]]);return te},Ft=E.forwardRef((gt,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:ne,enterButton:pe=!1,addonAfter:ye,loading:ct,disabled:Pe,onSearch:Ge,onChange:dt,onCompositionStart:Pt,onCompositionEnd:St}=gt,xe=qe(gt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Be,direction:Tt}=E.useContext(Je.E_),kt=E.useRef(!1),Gt=Be("input-search",te),Qt=Be("input",ee),{compactSize:wt}=(0,Xe.ri)(Gt,Tt),Kt=(0,Qe.Z)(En=>{var Pn;return(Pn=se!=null?se:wt)!==null&&Pn!==void 0?Pn:En}),Lt=E.useRef(null),Jt=En=>{En!=null&&En.target&&En.type==="click"&&Ge&&Ge(En.target.value,En,{source:"clear"}),dt==null||dt(En)},sn=En=>{var Pn;document.activeElement===((Pn=Lt.current)===null||Pn===void 0?void 0:Pn.input)&&En.preventDefault()},vn=En=>{var Pn,_n;Ge&&Ge((_n=(Pn=Lt.current)===null||Pn===void 0?void 0:Pn.input)===null||_n===void 0?void 0:_n.value,En,{source:"input"})},Sn=En=>{kt.current||ct||vn(En)},Fe=typeof pe=="boolean"?E.createElement(Nt.Z,null):null,ht=`${Gt}-button`;let Bt;const Vt=pe||{},cn=Vt.type&&Vt.type.__ANT_BUTTON===!0;cn||Vt.type==="button"?Bt=(0,yt.Tm)(Vt,Object.assign({onMouseDown:sn,onClick:En=>{var Pn,_n;(_n=(Pn=Vt==null?void 0:Vt.props)===null||Pn===void 0?void 0:Pn.onClick)===null||_n===void 0||_n.call(Pn,En),vn(En)},key:"enterButton"},cn?{className:ht,size:Kt}:{})):Bt=E.createElement(Ie.ZP,{className:ht,type:pe?"primary":void 0,size:Kt,disabled:Pe,key:"enterButton",onMouseDown:sn,onClick:vn,loading:ct,icon:Fe},pe),ye&&(Bt=[Bt,(0,yt.Tm)(ye,{key:"addonAfter"})]);const bn=ge()(Gt,{[`${Gt}-rtl`]:Tt==="rtl",[`${Gt}-${Kt}`]:!!Kt,[`${Gt}-with-button`]:!!pe},oe),Zn=Object.assign(Object.assign({},xe),{className:bn,prefixCls:Qt,type:"search"}),zn=En=>{kt.current=!0,Pt==null||Pt(En)},rn=En=>{kt.current=!1,St==null||St(En)};return E.createElement(De.Z,Object.assign({ref:(0,de.sQ)(Lt,ae),onPressEnter:Sn},Zn,{size:Kt,onCompositionStart:zn,onCompositionEnd:rn,addonAfter:Bt,suffix:ne,onChange:Jt,disabled:Pe}))}),_t=ie(79809);const je=De.Z;je.Group=$e,je.Search=Ft,je.TextArea=_t.Z,je.Password=rt,je.OTP=Ct;var Ht=je},24303:function(nn,jt,ie){"use strict";ie.d(jt,{D:function(){return Ke},Z:function(){return Ue}});var E=ie(59301),Ve=ie(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"},Je=ge,Ce=ie(7657),be=function(He,it){return E.createElement(Ce.Z,(0,Ve.Z)({},He,{ref:it,icon:Je}))},Oe=E.forwardRef(be),$e=Oe,De=ie(33853),he=ie(38819),Ze=ie(92310),Ee=ie.n(Ze),mt=ie(2738),Qe=ie(48755),Me=ie(6989),Ne=ie(36237),Ae=ie(48923),ft=ie(16931);const xt=Ct=>{const{componentCls:He,siderBg:it,motionDurationMid:nt,motionDurationSlow:de,antCls:Et,triggerHeight:ke,triggerColor:Le,triggerBg:bt,headerHeight:ve,zeroTriggerWidth:ue,zeroTriggerHeight:rt,borderRadiusLG:Nt,lightSiderBg:yt,lightTriggerColor:Ie,lightTriggerBg:Xe,bodyBg:qe}=Ct;return{[He]:{position:"relative",minWidth:0,background:it,transition:`all ${nt}, background 0s`,"&-has-trigger":{paddingBottom:ke},"&-right":{order:1},[`${He}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Et}-menu${Et}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${He}-children`]:{overflow:"hidden"},[`${He}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:ke,color:Le,lineHeight:(0,Ne.unit)(ke),textAlign:"center",background:bt,cursor:"pointer",transition:`all ${nt}`},[`${He}-zero-width-trigger`]:{position:"absolute",top:ve,insetInlineEnd:Ct.calc(ue).mul(-1).equal(),zIndex:1,width:ue,height:rt,color:Le,fontSize:Ct.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:it,borderRadius:`0 ${(0,Ne.unit)(Nt)} ${(0,Ne.unit)(Nt)} 0`,cursor:"pointer",transition:`background ${de} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${de}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ct.calc(ue).mul(-1).equal(),borderRadius:`${(0,Ne.unit)(Nt)} 0 0 ${(0,Ne.unit)(Nt)}`}},"&-light":{background:yt,[`${He}-trigger`]:{color:Ie,background:Xe},[`${He}-zero-width-trigger`]:{color:Ie,background:Xe,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var It=(0,ft.I$)(["Layout","Sider"],Ct=>[xt(Ct)],Ae.eh,{deprecatedTokens:Ae.jn}),pt=function(Ct,He){var it={};for(var nt in Ct)Object.prototype.hasOwnProperty.call(Ct,nt)&&He.indexOf(nt)<0&&(it[nt]=Ct[nt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,nt=Object.getOwnPropertySymbols(Ct);de<nt.length;de++)He.indexOf(nt[de])<0&&Object.prototype.propertyIsEnumerable.call(Ct,nt[de])&&(it[nt[de]]=Ct[nt[de]]);return it};const Re={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},lt=Ct=>!Number.isNaN(Number.parseFloat(Ct))&&isFinite(Ct),Ke=E.createContext({}),Ot=(()=>{let Ct=0;return function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ct+=1,`${He}${Ct}`}})();var Ue=E.forwardRef((Ct,He)=>{const{prefixCls:it,className:nt,trigger:de,children:Et,defaultCollapsed:ke=!1,theme:Le="dark",style:bt={},collapsible:ve=!1,reverseArrow:ue=!1,width:rt=200,collapsedWidth:Nt=80,zeroWidthTriggerStyle:yt,breakpoint:Ie,onCollapse:Xe,onBreakpoint:qe}=Ct,en=pt(Ct,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ft}=(0,E.useContext)(Me.V),[_t,je]=(0,E.useState)("collapsed"in Ct?Ct.collapsed:ke),[Ht,gt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in Ct&&je(Ct.collapsed)},[Ct.collapsed]);const ae=(Kt,Lt)=>{"collapsed"in Ct||je(Kt),Xe==null||Xe(Kt,Lt)},{getPrefixCls:te,direction:ee}=(0,E.useContext)(Qe.E_),oe=te("layout-sider",it),[se,ne,pe]=It(oe),ye=(0,E.useRef)(null);ye.current=Kt=>{gt(Kt.matches),qe==null||qe(Kt.matches),_t!==Kt.matches&&ae(Kt.matches,"responsive")},(0,E.useEffect)(()=>{function Kt(Jt){return ye.current(Jt)}let Lt;if(typeof window!="undefined"){const{matchMedia:Jt}=window;if(Jt&&Ie&&Ie in Re){Lt=Jt(`screen and (max-width: ${Re[Ie]})`);try{Lt.addEventListener("change",Kt)}catch(sn){Lt.addListener(Kt)}Kt(Lt)}}return()=>{try{Lt==null||Lt.removeEventListener("change",Kt)}catch(Jt){Lt==null||Lt.removeListener(Kt)}}},[Ie]),(0,E.useEffect)(()=>{const Kt=Ot("ant-sider-");return Ft.addSider(Kt),()=>Ft.removeSider(Kt)},[]);const ct=()=>{ae(!_t,"clickTrigger")},Pe=(0,mt.Z)(en,["collapsed"]),Ge=_t?Nt:rt,dt=lt(Ge)?`${Ge}px`:String(Ge),Pt=parseFloat(String(Nt||0))===0?E.createElement("span",{onClick:ct,className:Ee()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ue?"right":"left"}`),style:yt},de||E.createElement($e,null)):null,St=ee==="rtl"==!ue,Tt={expanded:St?E.createElement(he.Z,null):E.createElement(De.Z,null),collapsed:St?E.createElement(De.Z,null):E.createElement(he.Z,null)}[_t?"collapsed":"expanded"],kt=de!==null?Pt||E.createElement("div",{className:`${oe}-trigger`,onClick:ct,style:{width:dt}},de||Tt):null,Gt=Object.assign(Object.assign({},bt),{flex:`0 0 ${dt}`,maxWidth:dt,minWidth:dt,width:dt}),Qt=Ee()(oe,`${oe}-${Le}`,{[`${oe}-collapsed`]:!!_t,[`${oe}-has-trigger`]:ve&&de!==null&&!Pt,[`${oe}-below`]:!!Ht,[`${oe}-zero-width`]:parseFloat(dt)===0},nt,ne,pe),wt=E.useMemo(()=>({siderCollapsed:_t}),[_t]);return se(E.createElement(Ke.Provider,{value:wt},E.createElement("aside",Object.assign({className:Qt},Pe,{style:Gt,ref:He}),E.createElement("div",{className:`${oe}-children`},Et),ve||Ht&&Pt?kt:null)))})},6989:function(nn,jt,ie){"use strict";ie.d(jt,{V:function(){return Ve}});var E=ie(59301);const Ve=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(nn,jt,ie){"use strict";ie.d(jt,{default:function(){return Re}});var E=ie(94480),Ve=ie(59301),ge=ie(92310),Je=ie.n(ge),Ce=ie(2738),be=ie(48755),Oe=ie(6989),$e=ie(11592),De=ie(24303);function he(lt,Ke,Ot){return typeof Ot=="boolean"?Ot:lt.length?!0:(0,$e.Z)(Ke).some(Ue=>Ue.type===De.Z)}var Ze=ie(48923),Ee=function(lt,Ke){var Ot={};for(var at in lt)Object.prototype.hasOwnProperty.call(lt,at)&&Ke.indexOf(at)<0&&(Ot[at]=lt[at]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,at=Object.getOwnPropertySymbols(lt);Ue<at.length;Ue++)Ke.indexOf(at[Ue])<0&&Object.prototype.propertyIsEnumerable.call(lt,at[Ue])&&(Ot[at[Ue]]=lt[at[Ue]]);return Ot};function mt(lt){let{suffixCls:Ke,tagName:Ot,displayName:at}=lt;return Ue=>Ve.forwardRef((He,it)=>Ve.createElement(Ue,Object.assign({ref:it,suffixCls:Ke,tagName:Ot},He)))}const Qe=Ve.forwardRef((lt,Ke)=>{const{prefixCls:Ot,suffixCls:at,className:Ue,tagName:Ct}=lt,He=Ee(lt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:it}=Ve.useContext(be.E_),nt=it("layout",Ot),[de,Et,ke]=(0,Ze.ZP)(nt),Le=at?`${nt}-${at}`:nt;return de(Ve.createElement(Ct,Object.assign({className:Je()(Ot||Le,Ue,Et,ke),ref:Ke},He)))}),Me=Ve.forwardRef((lt,Ke)=>{const{direction:Ot}=Ve.useContext(be.E_),[at,Ue]=Ve.useState([]),{prefixCls:Ct,className:He,rootClassName:it,children:nt,hasSider:de,tagName:Et,style:ke}=lt,Le=Ee(lt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),bt=(0,Ce.Z)(Le,["suffixCls"]),{getPrefixCls:ve,className:ue,style:rt}=(0,be.dj)("layout"),Nt=ve("layout",Ct),yt=he(at,nt,de),[Ie,Xe,qe]=(0,Ze.ZP)(Nt),en=Je()(Nt,{[`${Nt}-has-sider`]:yt,[`${Nt}-rtl`]:Ot==="rtl"},ue,He,it,Xe,qe),Ft=Ve.useMemo(()=>({siderHook:{addSider:_t=>{Ue(je=>[].concat((0,E.Z)(je),[_t]))},removeSider:_t=>{Ue(je=>je.filter(Ht=>Ht!==_t))}}}),[]);return Ie(Ve.createElement(Oe.V.Provider,{value:Ft},Ve.createElement(Et,Object.assign({ref:Ke,className:en,style:Object.assign(Object.assign({},rt),ke)},bt),nt)))}),Ne=mt({tagName:"div",displayName:"Layout"})(Me),Ae=mt({suffixCls:"header",tagName:"header",displayName:"Header"})(Qe),ft=mt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Qe),xt=mt({suffixCls:"content",tagName:"main",displayName:"Content"})(Qe);var It=Ne;const pt=It;pt.Header=Ae,pt.Footer=ft,pt.Content=xt,pt.Sider=De.Z,pt._InternalSiderContext=De.D;var Re=pt},48923:function(nn,jt,ie){"use strict";ie.d(jt,{eh:function(){return Je},jn:function(){return Ce}});var E=ie(36237),Ve=ie(16931);const ge=be=>{const{antCls:Oe,componentCls:$e,colorText:De,footerBg:he,headerHeight:Ze,headerPadding:Ee,headerColor:mt,footerPadding:Qe,fontSize:Me,bodyBg:Ne,headerBg:Ae}=be;return{[$e]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ne,"&, *":{boxSizing:"border-box"},[`&${$e}-has-sider`]:{flexDirection:"row",[`> ${$e}, > ${$e}-content`]:{width:0}},[`${$e}-header, &${$e}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${$e}-header`]:{height:Ze,padding:Ee,color:mt,lineHeight:(0,E.unit)(Ze),background:Ae,[`${Oe}-menu`]:{lineHeight:"inherit"}},[`${$e}-footer`]:{padding:Qe,color:De,fontSize:Me,background:he},[`${$e}-content`]:{flex:"auto",color:De,minHeight:0}}},Je=be=>{const{colorBgLayout:Oe,controlHeight:$e,controlHeightLG:De,colorText:he,controlHeightSM:Ze,marginXXS:Ee,colorTextLightSolid:mt,colorBgContainer:Qe}=be,Me=De*1.25;return{colorBgHeader:"#001529",colorBgBody:Oe,colorBgTrigger:"#002140",bodyBg:Oe,headerBg:"#001529",headerHeight:$e*2,headerPadding:`0 ${Me}px`,headerColor:he,footerPadding:`${Ze}px ${Me}px`,footerBg:Oe,siderBg:"#001529",triggerHeight:De+Ee*2,triggerBg:"#002140",triggerColor:mt,zeroTriggerWidth:De,zeroTriggerHeight:De,lightSiderBg:Qe,lightTriggerBg:Qe,lightTriggerColor:he}},Ce=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];jt.ZP=(0,Ve.I$)("Layout",be=>[ge(be)],Je,{deprecatedTokens:Ce})},78857:function(nn,jt,ie){"use strict";ie.d(jt,{J:function(){return be}});var E=ie(59301),Ve=ie(8654),ge=ie(62487),Je=function(Oe,$e){var De={};for(var he in Oe)Object.prototype.hasOwnProperty.call(Oe,he)&&$e.indexOf(he)<0&&(De[he]=Oe[he]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,he=Object.getOwnPropertySymbols(Oe);Ze<he.length;Ze++)$e.indexOf(he[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Oe,he[Ze])&&(De[he[Ze]]=Oe[he[Ze]]);return De};const Ce=E.createContext(null),be=E.forwardRef((Oe,$e)=>{const{children:De}=Oe,he=Je(Oe,["children"]),Ze=E.useContext(Ce),Ee=E.useMemo(()=>Object.assign(Object.assign({},Ze),he),[Ze,he.prefixCls,he.mode,he.selectable,he.rootClassName]),mt=(0,Ve.t4)(De),Qe=(0,Ve.x1)($e,mt?(0,Ve.C4)(De):null);return E.createElement(Ce.Provider,{value:Ee},E.createElement(ge.Z,{space:!0},mt?E.cloneElement(De,{ref:Qe}):De))});jt.Z=Ce},93041:function(nn,jt,ie){"use strict";ie.d(jt,{default:function(){return se}});var E=ie(59301),Ve=ie(28321),ge=ie(24303),Je=ie(18785),Ce=ie(92310),be=ie.n(Ce),Oe=ie(6089),$e=ie(2738),De=ie(86641),he=ie(22703),Ze=ie(48755),Ee=ie(83397),Qe=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Me=function(ne,pe){var ye={};for(var ct in ne)Object.prototype.hasOwnProperty.call(ne,ct)&&pe.indexOf(ct)<0&&(ye[ct]=ne[ct]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ct=Object.getOwnPropertySymbols(ne);Pe<ct.length;Pe++)pe.indexOf(ct[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,ct[Pe])&&(ye[ct[Pe]]=ne[ct[Pe]]);return ye},Ae=ne=>{const{prefixCls:pe,className:ye,dashed:ct}=ne,Pe=Me(ne,["prefixCls","className","dashed"]),{getPrefixCls:Ge}=E.useContext(Ze.E_),dt=Ge("menu",pe),Pt=be()({[`${dt}-item-divider-dashed`]:!!ct},ye);return E.createElement(Ve.iz,Object.assign({className:Pt},Pe))},ft=ie(11592),xt=ie(25399),pt=ne=>{var pe;const{className:ye,children:ct,icon:Pe,title:Ge,danger:dt,extra:Pt}=ne,{prefixCls:St,firstLevel:xe,direction:Be,disableMenuItemTitleTooltip:Tt,inlineCollapsed:kt}=E.useContext(Qe),Gt=sn=>{const vn=ct==null?void 0:ct[0],Sn=E.createElement("span",{className:be()(`${St}-title-content`,{[`${St}-title-content-with-extra`]:!!Pt||Pt===0})},ct);return(!Pe||E.isValidElement(ct)&&ct.type==="span")&&ct&&sn&&xe&&typeof vn=="string"?E.createElement("div",{className:`${St}-inline-collapsed-noicon`},vn.charAt(0)):Sn},{siderCollapsed:Qt}=E.useContext(ge.D);let wt=Ge;typeof Ge=="undefined"?wt=xe?ct:"":Ge===!1&&(wt="");const Kt={title:wt};!Qt&&!kt&&(Kt.title=null,Kt.open=!1);const Lt=(0,ft.Z)(ct).length;let Jt=E.createElement(Ve.ck,Object.assign({},(0,$e.Z)(ne,["title","icon","danger"]),{className:be()({[`${St}-item-danger`]:dt,[`${St}-item-only-child`]:(Pe?Lt+1:Lt)===1},ye),title:typeof Ge=="string"?Ge:void 0}),(0,he.Tm)(Pe,{className:be()(E.isValidElement(Pe)?(pe=Pe.props)===null||pe===void 0?void 0:pe.className:"",`${St}-item-icon`)}),Gt(kt));return Tt||(Jt=E.createElement(xt.Z,Object.assign({},Kt,{placement:Be==="rtl"?"left":"right",classNames:{root:`${St}-inline-collapsed-tooltip`}}),Jt)),Jt},Re=ie(78857),lt=ie(36237),Ke=ie(17835),Ot=ie(63356),at=ie(34961),Ue=ie(46e3),Ct=ie(34925),He=ie(16931),it=ie(51636),de=ne=>{const{componentCls:pe,motionDurationSlow:ye,horizontalLineHeight:ct,colorSplit:Pe,lineWidth:Ge,lineType:dt,itemPaddingInline:Pt}=ne;return{[`${pe}-horizontal`]:{lineHeight:ct,border:0,borderBottom:`${(0,lt.unit)(Ge)} ${dt} ${Pe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Pt},[`> ${pe}-item:hover,
|
|
|
> ${pe}-item-active,
|
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},ke=ne=>{let{componentCls:pe,menuArrowOffset:ye,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,lt.unit)(ct(ye).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,lt.unit)(ye)})`}}}}};const Le=ne=>Object.assign({},(0,Ot.oN)(ne));var ve=(ne,pe)=>{const{componentCls:ye,itemColor:ct,itemSelectedColor:Pe,subMenuItemSelectedColor:Ge,groupTitleColor:dt,itemBg:Pt,subMenuItemBg:St,itemSelectedBg:xe,activeBarHeight:Be,activeBarWidth:Tt,activeBarBorderWidth:kt,motionDurationSlow:Gt,motionEaseInOut:Qt,motionEaseOut:wt,itemPaddingInline:Kt,motionDurationMid:Lt,itemHoverColor:Jt,lineType:sn,colorSplit:vn,itemDisabledColor:Sn,dangerItemColor:Fe,dangerItemHoverColor:ht,dangerItemSelectedColor:Bt,dangerItemActiveBg:Vt,dangerItemSelectedBg:cn,popupBg:bn,itemHoverBg:Zn,itemActiveBg:zn,menuSubMenuBg:rn,horizontalItemSelectedColor:En,horizontalItemSelectedBg:Pn,horizontalItemBorderRadius:_n,horizontalItemHoverBg:On}=ne;return{[`${ye}-${pe}, ${ye}-${pe} > ${ye}`]:{color:ct,background:Pt,[`&${ye}-root:focus-visible`]:Object.assign({},Le(ne)),[`${ye}-item`]:{"&-group-title, &-extra":{color:dt}},[`${ye}-submenu-selected > ${ye}-submenu-title`]:{color:Ge},[`${ye}-item, ${ye}-submenu-title`]:{color:ct,[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},Le(ne))},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${Sn} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:Jt}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:zn}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:zn}}},[`${ye}-item-danger`]:{color:Fe,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:ht}},[`&${ye}-item:active`]:{background:Vt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:Pe,[`&${ye}-item-danger`]:{color:Bt},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:xe,[`&${ye}-item-danger`]:{backgroundColor:cn}},[`&${ye}-submenu > ${ye}`]:{backgroundColor:rn},[`&${ye}-popup > ${ye}`]:{backgroundColor:bn},[`&${ye}-submenu-popup > ${ye}`]:{backgroundColor:bn},[`&${ye}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:kt,marginTop:ne.calc(kt).mul(-1).equal(),marginBottom:0,borderRadius:_n,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${(0,lt.unit)(Be)} solid transparent`,transition:`border-color ${Gt} ${Qt}`,content:'""'},"&:hover, &-active, &-open":{background:On,"&::after":{borderBottomWidth:Be,borderBottomColor:En}},"&-selected":{color:En,backgroundColor:Pn,"&:hover":{backgroundColor:Pn},"&::after":{borderBottomWidth:Be,borderBottomColor:En}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${(0,lt.unit)(kt)} ${sn} ${vn}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:St},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,lt.unit)(Tt)} solid ${Pe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Lt} ${wt}`,`opacity ${Lt} ${wt}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:Bt}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Lt} ${Qt}`,`opacity ${Lt} ${Qt}`].join(",")}}}}}};const ue=ne=>{const{componentCls:pe,itemHeight:ye,itemMarginInline:ct,padding:Pe,menuArrowSize:Ge,marginXS:dt,itemMarginBlock:Pt,itemWidth:St,itemPaddingInline:xe}=ne,Be=ne.calc(Ge).add(Pe).add(dt).equal();return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:ye,lineHeight:(0,lt.unit)(ye),paddingInline:xe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ct,marginBlock:Pt,width:St},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:ye,lineHeight:(0,lt.unit)(ye)},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:Be}}};var Nt=ne=>{const{componentCls:pe,iconCls:ye,itemHeight:ct,colorTextLightSolid:Pe,dropdownWidth:Ge,controlHeightLG:dt,motionEaseOut:Pt,paddingXL:St,itemMarginInline:xe,fontSizeLG:Be,motionDurationFast:Tt,motionDurationSlow:kt,paddingXS:Gt,boxShadowSecondary:Qt,collapsedWidth:wt,collapsedIconSize:Kt}=ne,Lt={height:ct,lineHeight:(0,lt.unit)(ct),listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},ue(ne))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},ue(ne)),{boxShadow:Qt})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Ge,maxHeight:`calc(100vh - ${(0,lt.unit)(ne.calc(dt).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 ${kt}`,`background ${kt}`,`padding ${Tt} ${Pt}`].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`]:Lt,[`& ${pe}-item-group-title`]:{paddingInlineStart:St}},[`${pe}-item`]:Lt}},{[`${pe}-inline-collapsed`]:{width:wt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:Be,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,lt.unit)(ne.calc(Kt).div(2).equal())} - ${(0,lt.unit)(xe)})`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${ye}`]:{margin:0,fontSize:Kt,lineHeight:(0,lt.unit)(ct),"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:Pe}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Ot.vS),{paddingInline:Gt})}}]};const yt=ne=>{const{componentCls:pe,motionDurationSlow:ye,motionDurationMid:ct,motionEaseInOut:Pe,motionEaseOut:Ge,iconCls:dt,iconSize:Pt,iconMarginInlineEnd:St}=ne;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding calc(${ye} + 0.1s) ${Pe}`].join(","),[`${pe}-item-icon, ${dt}`]:{minWidth:Pt,fontSize:Pt,transition:[`font-size ${ct} ${Ge}`,`margin ${ye} ${Pe}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:St,opacity:1,transition:[`opacity ${ye} ${Pe}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Ot.Ro)()),[`&${pe}-item-only-child`]:{[`> ${dt}, > ${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"}}}},Ie=ne=>{const{componentCls:pe,motionDurationSlow:ye,motionEaseInOut:ct,borderRadius:Pe,menuArrowSize:Ge,menuArrowOffset:dt}=ne;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:Ge,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${ct}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(Ge).mul(.6).equal(),height:ne.calc(Ge).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Pe,transition:[`background ${ye} ${ct}`,`transform ${ye} ${ct}`,`top ${ye} ${ct}`,`color ${ye} ${ct}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,lt.unit)(ne.calc(dt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,lt.unit)(dt)})`}}}}},Xe=ne=>{const{antCls:pe,componentCls:ye,fontSize:ct,motionDurationSlow:Pe,motionDurationMid:Ge,motionEaseInOut:dt,paddingXS:Pt,padding:St,colorSplit:xe,lineWidth:Be,zIndexPopup:Tt,borderRadiusLG:kt,subMenuItemBorderRadius:Gt,menuArrowSize:Qt,menuArrowOffset:wt,lineType:Kt,groupTitleLineHeight:Lt,groupTitleFontSize:Jt}=ne;return[{"":{[ye]:Object.assign(Object.assign({},(0,Ot.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ot.Wf)(ne)),(0,Ot.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ct,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Pe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${(0,lt.unit)(Pt)} ${(0,lt.unit)(St)}`,fontSize:Jt,lineHeight:Lt,transition:`all ${Pe}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${Pe} ${dt}`,`background ${Pe} ${dt}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${Pe} ${dt}`,`background ${Pe} ${dt}`,`padding ${Ge} ${dt}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${Pe} ${dt}`,`padding ${Pe} ${dt}`].join(",")},[`${ye}-title-content`]:{transition:`color ${Pe}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${pe}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ye}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Kt,borderWidth:0,borderTopWidth:Be,marginBlock:Be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yt(ne)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${(0,lt.unit)(ne.calc(ct).mul(2).equal())} ${(0,lt.unit)(St)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:kt,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:kt},yt(ne)),Ie(ne)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Gt},[`${ye}-submenu-title::after`]:{transition:`transform ${Pe} ${dt}`}})},"\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}}}),Ie(ne)),{[`&-inline-collapsed ${ye}-submenu-arrow,
|
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,lt.unit)(wt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,lt.unit)(ne.calc(wt).mul(-1).equal())})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(${(0,lt.unit)(ne.calc(Qt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,lt.unit)(ne.calc(wt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,lt.unit)(wt)})`}}})},{[`${pe}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]},qe=ne=>{var pe,ye,ct;const{colorPrimary:Pe,colorError:Ge,colorTextDisabled:dt,colorErrorBg:Pt,colorText:St,colorTextDescription:xe,colorBgContainer:Be,colorFillAlter:Tt,colorFillContent:kt,lineWidth:Gt,lineWidthBold:Qt,controlItemBgActive:wt,colorBgTextHover:Kt,controlHeightLG:Lt,lineHeight:Jt,colorBgElevated:sn,marginXXS:vn,padding:Sn,fontSize:Fe,controlHeightSM:ht,fontSizeLG:Bt,colorTextLightSolid:Vt,colorErrorHover:cn}=ne,bn=(pe=ne.activeBarWidth)!==null&&pe!==void 0?pe:0,Zn=(ye=ne.activeBarBorderWidth)!==null&&ye!==void 0?ye:Gt,zn=(ct=ne.itemMarginInline)!==null&&ct!==void 0?ct:ne.marginXXS,rn=new Ke.FastColor(Vt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:St,itemColor:St,colorItemTextHover:St,itemHoverColor:St,colorItemTextHoverHorizontal:Pe,horizontalItemHoverColor:Pe,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:Pe,itemSelectedColor:Pe,subMenuItemSelectedColor:Pe,colorItemTextSelectedHorizontal:Pe,horizontalItemSelectedColor:Pe,colorItemBg:Be,itemBg:Be,colorItemBgHover:Kt,itemHoverBg:Kt,colorItemBgActive:kt,itemActiveBg:wt,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:wt,itemSelectedBg:wt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:bn,colorActiveBarHeight:Qt,activeBarHeight:Qt,colorActiveBarBorderSize:Gt,activeBarBorderWidth:Zn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Ge,dangerItemColor:Ge,colorDangerItemTextHover:Ge,dangerItemHoverColor:Ge,colorDangerItemTextSelected:Ge,dangerItemSelectedColor:Ge,colorDangerItemBgActive:Pt,dangerItemActiveBg:Pt,colorDangerItemBgSelected:Pt,dangerItemSelectedBg:Pt,itemMarginInline:zn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Lt,groupTitleLineHeight:Jt,collapsedWidth:Lt*2,popupBg:sn,itemMarginBlock:vn,itemPaddingInline:Sn,horizontalLineHeight:`${Lt*1.15}px`,iconSize:Fe,iconMarginInlineEnd:ht-Fe,collapsedIconSize:Bt,groupTitleFontSize:Fe,darkItemDisabledColor:new Ke.FastColor(Vt).setA(.25).toRgbString(),darkItemColor:rn,darkDangerItemColor:Ge,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vt,darkItemSelectedBg:Pe,darkDangerItemSelectedBg:Ge,darkItemHoverBg:"transparent",darkGroupTitleColor:rn,darkItemHoverColor:Vt,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:Ge,itemWidth:bn?`calc(100% + ${Zn}px)`:`calc(100% - ${zn*2}px)`}};var en=function(ne){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,He.I$)("Menu",Pe=>{const{colorBgElevated:Ge,controlHeightLG:dt,fontSize:Pt,darkItemColor:St,darkDangerItemColor:xe,darkItemBg:Be,darkSubMenuItemBg:Tt,darkItemSelectedColor:kt,darkItemSelectedBg:Gt,darkDangerItemSelectedBg:Qt,darkItemHoverBg:wt,darkGroupTitleColor:Kt,darkItemHoverColor:Lt,darkItemDisabledColor:Jt,darkDangerItemHoverColor:sn,darkDangerItemSelectedColor:vn,darkDangerItemActiveBg:Sn,popupBg:Fe,darkPopupBg:ht}=Pe,Bt=Pe.calc(Pt).div(7).mul(5).equal(),Vt=(0,it.mergeToken)(Pe,{menuArrowSize:Bt,menuHorizontalHeight:Pe.calc(dt).mul(1.15).equal(),menuArrowOffset:Pe.calc(Bt).mul(.25).equal(),menuSubMenuBg:Ge,calc:Pe.calc,popupBg:Fe}),cn=(0,it.mergeToken)(Vt,{itemColor:St,itemHoverColor:Lt,groupTitleColor:Kt,itemSelectedColor:kt,subMenuItemSelectedColor:kt,itemBg:Be,popupBg:ht,subMenuItemBg:Tt,itemActiveBg:"transparent",itemSelectedBg:Gt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:wt,itemDisabledColor:Jt,dangerItemColor:xe,dangerItemHoverColor:sn,dangerItemSelectedColor:vn,dangerItemActiveBg:Sn,dangerItemSelectedBg:Qt,menuSubMenuBg:Tt,horizontalItemSelectedColor:kt,horizontalItemSelectedBg:Gt});return[Xe(Vt),de(Vt),Nt(Vt),ve(Vt,"light"),ve(cn,"dark"),ke(Vt),(0,at.Z)(Vt),(0,Ue.oN)(Vt,"slide-up"),(0,Ue.oN)(Vt,"slide-down"),(0,Ct._y)(Vt,"zoom-big")]},qe,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:ye,unitless:{groupTitleLineHeight:!0}})(ne,pe)},Ft=ie(75030),je=ne=>{var pe;const{popupClassName:ye,icon:ct,title:Pe,theme:Ge}=ne,dt=E.useContext(Qe),{prefixCls:Pt,inlineCollapsed:St,theme:xe}=dt,Be=(0,Ve.Xl)();let Tt;if(!ct)Tt=St&&!Be.length&&Pe&&typeof Pe=="string"?E.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Pe.charAt(0)):E.createElement("span",{className:`${Pt}-title-content`},Pe);else{const Qt=E.isValidElement(Pe)&&Pe.type==="span";Tt=E.createElement(E.Fragment,null,(0,he.Tm)(ct,{className:be()(E.isValidElement(ct)?(pe=ct.props)===null||pe===void 0?void 0:pe.className:"",`${Pt}-item-icon`)}),Qt?Pe:E.createElement("span",{className:`${Pt}-title-content`},Pe))}const kt=E.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]),[Gt]=(0,Ft.Cn)("Menu");return E.createElement(Qe.Provider,{value:kt},E.createElement(Ve.Wd,Object.assign({},(0,$e.Z)(ne,["icon"]),{title:Tt,popupClassName:be()(Pt,ye,`${Pt}-${Ge||xe}`),popupStyle:Object.assign({zIndex:Gt},ne.popupStyle)})))},Ht=function(ne,pe){var ye={};for(var ct in ne)Object.prototype.hasOwnProperty.call(ne,ct)&&pe.indexOf(ct)<0&&(ye[ct]=ne[ct]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,ct=Object.getOwnPropertySymbols(ne);Pe<ct.length;Pe++)pe.indexOf(ct[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ne,ct[Pe])&&(ye[ct[Pe]]=ne[ct[Pe]]);return ye};function gt(ne){return ne===null||ne===!1}const ae={item:pt,submenu:je,divider:Ae};var ee=(0,E.forwardRef)((ne,pe)=>{var ye;const ct=E.useContext(Re.Z),Pe=ct||{},{getPrefixCls:Ge,getPopupContainer:dt,direction:Pt,menu:St}=E.useContext(Ze.E_),xe=Ge(),{prefixCls:Be,className:Tt,style:kt,theme:Gt="light",expandIcon:Qt,_internalDisableMenuItemTitleTooltip:wt,inlineCollapsed:Kt,siderCollapsed:Lt,rootClassName:Jt,mode:sn,selectable:vn,onClick:Sn,overflowedIndicatorPopupClassName:Fe}=ne,ht=Ht(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Bt=(0,$e.Z)(ht,["collapsedWidth"]);(ye=Pe.validator)===null||ye===void 0||ye.call(Pe,{mode:sn});const Vt=(0,Oe.Z)(function(){var fn;Sn==null||Sn.apply(void 0,arguments),(fn=Pe.onClick)===null||fn===void 0||fn.call(Pe)}),cn=Pe.mode||sn,bn=vn!=null?vn:Pe.selectable,Zn=Kt!=null?Kt:Lt,zn={horizontal:{motionName:`${xe}-slide-up`},inline:(0,De.Z)(xe),other:{motionName:`${xe}-zoom-big`}},rn=Ge("menu",Be||Pe.prefixCls),En=(0,Ee.Z)(rn),[Pn,_n,On]=en(rn,En,!ct),Tn=be()(`${rn}-${Gt}`,St==null?void 0:St.className,Tt),an=E.useMemo(()=>{var fn,kn;if(typeof Qt=="function"||gt(Qt))return Qt||null;if(typeof Pe.expandIcon=="function"||gt(Pe.expandIcon))return Pe.expandIcon||null;if(typeof(St==null?void 0:St.expandIcon)=="function"||gt(St==null?void 0:St.expandIcon))return(St==null?void 0:St.expandIcon)||null;const lr=(fn=Qt!=null?Qt:Pe==null?void 0:Pe.expandIcon)!==null&&fn!==void 0?fn:St==null?void 0:St.expandIcon;return(0,he.Tm)(lr,{className:be()(`${rn}-submenu-expand-icon`,E.isValidElement(lr)?(kn=lr.props)===null||kn===void 0?void 0:kn.className:void 0)})},[Qt,Pe==null?void 0:Pe.expandIcon,St==null?void 0:St.expandIcon,rn]),Cn=E.useMemo(()=>({prefixCls:rn,inlineCollapsed:Zn||!1,direction:Pt,firstLevel:!0,theme:Gt,mode:cn,disableMenuItemTitleTooltip:wt}),[rn,Zn,Pt,wt,Gt]);return Pn(E.createElement(Re.Z.Provider,{value:null},E.createElement(Qe.Provider,{value:Cn},E.createElement(Ve.ZP,Object.assign({getPopupContainer:dt,overflowedIndicator:E.createElement(Je.Z,null),overflowedIndicatorPopupClassName:be()(rn,`${rn}-${Gt}`,Fe),mode:cn,selectable:bn,onClick:Vt},Bt,{inlineCollapsed:Zn,style:Object.assign(Object.assign({},St==null?void 0:St.style),kt),className:Tn,prefixCls:rn,direction:Pt,defaultMotions:zn,expandIcon:an,ref:pe,rootClassName:be()(Jt,_n,Pe.rootClassName,On,En),_internalComponents:ae})))))});const oe=(0,E.forwardRef)((ne,pe)=>{const ye=(0,E.useRef)(null),ct=E.useContext(ge.D);return(0,E.useImperativeHandle)(pe,()=>({menu:ye.current,focus:Pe=>{var Ge;(Ge=ye.current)===null||Ge===void 0||Ge.focus(Pe)}})),E.createElement(ee,Object.assign({ref:ye},ne,ct))});oe.Item=pt,oe.SubMenu=je,oe.Divider=Ae,oe.ItemGroup=Ve.BW;var se=oe},31709:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return St}});var E=ie(59301),Ve=ie(54476),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Je=ge,Ce=ie(7657),be=function(Be,Tt){return E.createElement(Ce.Z,(0,Ve.Z)({},Be,{ref:Tt,icon:Je}))},Oe=E.forwardRef(be),$e=Oe,De=ie(49198),he=ie(33853),Ze=ie(38819),Ee=ie(92310),mt=ie.n(Ee),Qe=ie(20068),Me=ie(76190),Ne=ie(33885),Ae=ie(42978),ft=ie(18929),xt=ie(10228),It=ie(26112),pt=ie(48736),Re=ie(17119),lt=[10,20,50,100],Ke=function(Be){var Tt=Be.pageSizeOptions,kt=Tt===void 0?lt:Tt,Gt=Be.locale,Qt=Be.changeSize,wt=Be.pageSize,Kt=Be.goButton,Lt=Be.quickGo,Jt=Be.rootPrefixCls,sn=Be.disabled,vn=Be.buildOptionText,Sn=Be.showSizeChanger,Fe=Be.sizeChangerRender,ht=E.useState(""),Bt=(0,Ae.Z)(ht,2),Vt=Bt[0],cn=Bt[1],bn=function(){return!Vt||Number.isNaN(Vt)?void 0:Number(Vt)},Zn=typeof vn=="function"?vn:function(Cn){return"".concat(Cn," ").concat(Gt.items_per_page)},zn=function(fn){cn(fn.target.value)},rn=function(fn){Kt||Vt===""||(cn(""),!(fn.relatedTarget&&(fn.relatedTarget.className.indexOf("".concat(Jt,"-item-link"))>=0||fn.relatedTarget.className.indexOf("".concat(Jt,"-item"))>=0))&&(Lt==null||Lt(bn())))},En=function(fn){Vt!==""&&(fn.keyCode===xt.Z.ENTER||fn.type==="click")&&(cn(""),Lt==null||Lt(bn()))},Pn=function(){return kt.some(function(fn){return fn.toString()===wt.toString()})?kt:kt.concat([wt]).sort(function(fn,kn){var lr=Number.isNaN(Number(fn))?0:Number(fn),er=Number.isNaN(Number(kn))?0:Number(kn);return lr-er})},_n="".concat(Jt,"-options");if(!Sn&&!Lt)return null;var On=null,Tn=null,an=null;return Sn&&Fe&&(On=Fe({disabled:sn,size:wt,onSizeChange:function(fn){Qt==null||Qt(Number(fn))},"aria-label":Gt.page_size,className:"".concat(_n,"-size-changer"),options:Pn().map(function(Cn){return{label:Zn(Cn),value:Cn}})})),Lt&&(Kt&&(an=typeof Kt=="boolean"?E.createElement("button",{type:"button",onClick:En,onKeyUp:En,disabled:sn,className:"".concat(_n,"-quick-jumper-button")},Gt.jump_to_confirm):E.createElement("span",{onClick:En,onKeyUp:En},Kt)),Tn=E.createElement("div",{className:"".concat(_n,"-quick-jumper")},Gt.jump_to,E.createElement("input",{disabled:sn,type:"text",value:Vt,onChange:zn,onKeyUp:En,onBlur:rn,"aria-label":Gt.page}),Gt.page,an)),E.createElement("li",{className:_n},On,Tn)},Ot=Ke,at=function(Be){var Tt=Be.rootPrefixCls,kt=Be.page,Gt=Be.active,Qt=Be.className,wt=Be.showTitle,Kt=Be.onClick,Lt=Be.onKeyPress,Jt=Be.itemRender,sn="".concat(Tt,"-item"),vn=mt()(sn,"".concat(sn,"-").concat(kt),(0,Qe.Z)((0,Qe.Z)({},"".concat(sn,"-active"),Gt),"".concat(sn,"-disabled"),!kt),Qt),Sn=function(){Kt(kt)},Fe=function(Vt){Lt(Vt,Kt,kt)},ht=Jt(kt,"page",E.createElement("a",{rel:"nofollow"},kt));return ht?E.createElement("li",{title:wt?String(kt):null,className:vn,onClick:Sn,onKeyDown:Fe,tabIndex:0},ht):null},Ue=at,Ct=function(Be,Tt,kt){return kt};function He(){}function it(xe){var Be=Number(xe);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}function nt(xe,Be,Tt){var kt=typeof xe=="undefined"?Be:xe;return Math.floor((Tt-1)/kt)+1}var de=function(Be){var Tt=Be.prefixCls,kt=Tt===void 0?"rc-pagination":Tt,Gt=Be.selectPrefixCls,Qt=Gt===void 0?"rc-select":Gt,wt=Be.className,Kt=Be.current,Lt=Be.defaultCurrent,Jt=Lt===void 0?1:Lt,sn=Be.total,vn=sn===void 0?0:sn,Sn=Be.pageSize,Fe=Be.defaultPageSize,ht=Fe===void 0?10:Fe,Bt=Be.onChange,Vt=Bt===void 0?He:Bt,cn=Be.hideOnSinglePage,bn=Be.align,Zn=Be.showPrevNextJumpers,zn=Zn===void 0?!0:Zn,rn=Be.showQuickJumper,En=Be.showLessItems,Pn=Be.showTitle,_n=Pn===void 0?!0:Pn,On=Be.onShowSizeChange,Tn=On===void 0?He:On,an=Be.locale,Cn=an===void 0?Re.Z:an,fn=Be.style,kn=Be.totalBoundaryShowSizeChanger,lr=kn===void 0?50:kn,er=Be.disabled,Gn=Be.simple,sr=Be.showTotal,hr=Be.showSizeChanger,yr=hr===void 0?vn>lr:hr,ur=Be.sizeChangerRender,$t=Be.pageSizeOptions,un=Be.itemRender,jn=un===void 0?Ct:un,mr=Be.jumpPrevIcon,ze=Be.jumpNextIcon,ot=Be.prevIcon,Se=Be.nextIcon,We=E.useRef(null),we=(0,ft.Z)(10,{value:Sn,defaultValue:ht}),_e=(0,Ae.Z)(we,2),vt=_e[0],on=_e[1],ln=(0,ft.Z)(1,{value:Kt,defaultValue:Jt,postState:function(gr){return Math.max(1,Math.min(gr,nt(void 0,vt,vn)))}}),gn=(0,Ae.Z)(ln,2),Rt=gn[0],Mt=gn[1],Dt=E.useState(Rt),dn=(0,Ae.Z)(Dt,2),et=dn[0],tt=dn[1];(0,E.useEffect)(function(){tt(Rt)},[Rt]);var Te=Vt!==He,Xt="current"in Be,Ln=Math.max(1,Rt-(En?3:5)),Vn=Math.min(nt(void 0,vt,vn),Rt+(En?3:5));function yn(wr,gr){var Zr=wr||E.createElement("button",{type:"button","aria-label":gr,className:"".concat(kt,"-item-link")});return typeof wr=="function"&&(Zr=E.createElement(wr,(0,Ne.Z)({},Be))),Zr}function Wt(wr){var gr=wr.target.value,Zr=nt(void 0,vt,vn),_r;return gr===""?_r=gr:Number.isNaN(Number(gr))?_r=et:gr>=Zr?_r=Zr:_r=Number(gr),_r}function st(wr){return it(wr)&&wr!==Rt&&it(vn)&&vn>0}var xn=vn>vt?rn:!1;function An(wr){(wr.keyCode===xt.Z.UP||wr.keyCode===xt.Z.DOWN)&&wr.preventDefault()}function Hn(wr){var gr=Wt(wr);switch(gr!==et&&tt(gr),wr.keyCode){case xt.Z.ENTER:pn(gr);break;case xt.Z.UP:pn(gr-1);break;case xt.Z.DOWN:pn(gr+1);break;default:break}}function Un(wr){pn(Wt(wr))}function Jn(wr){var gr=nt(wr,vt,vn),Zr=Rt>gr&&gr!==0?gr:Rt;on(wr),tt(Zr),Tn==null||Tn(Rt,wr),Mt(Zr),Vt==null||Vt(Zr,wr)}function pn(wr){if(st(wr)&&!er){var gr=nt(void 0,vt,vn),Zr=wr;return wr>gr?Zr=gr:wr<1&&(Zr=1),Zr!==et&&tt(Zr),Mt(Zr),Vt==null||Vt(Zr,vt),Zr}return Rt}var Wn=Rt>1,tr=Rt<nt(void 0,vt,vn);function or(){Wn&&pn(Rt-1)}function nr(){tr&&pn(Rt+1)}function pr(){pn(Ln)}function br(){pn(Vn)}function Kn(wr,gr){if(wr.key==="Enter"||wr.charCode===xt.Z.ENTER||wr.keyCode===xt.Z.ENTER){for(var Zr=arguments.length,_r=new Array(Zr>2?Zr-2:0),li=2;li<Zr;li++)_r[li-2]=arguments[li];gr.apply(void 0,_r)}}function ar(wr){Kn(wr,or)}function Fn(wr){Kn(wr,nr)}function rr(wr){Kn(wr,pr)}function Cr(wr){Kn(wr,br)}function Qn(wr){var gr=jn(wr,"prev",yn(ot,"prev page"));return E.isValidElement(gr)?E.cloneElement(gr,{disabled:!Wn}):gr}function Er(wr){var gr=jn(wr,"next",yn(Se,"next page"));return E.isValidElement(gr)?E.cloneElement(gr,{disabled:!tr}):gr}function qn(wr){(wr.type==="click"||wr.keyCode===xt.Z.ENTER)&&pn(et)}var In=null,cr=(0,It.Z)(Be,{aria:!0,data:!0}),fr=sr&&E.createElement("li",{className:"".concat(kt,"-total-text")},sr(vn,[vn===0?0:(Rt-1)*vt+1,Rt*vt>vn?vn:Rt*vt])),xr=null,Mn=nt(void 0,vt,vn);if(cn&&vn<=vt)return null;var Ut=[],tn={rootPrefixCls:kt,onClick:pn,onKeyPress:Kn,showTitle:_n,itemRender:jn,page:-1},Yt=Rt-1>0?Rt-1:0,Zt=Rt+1<Mn?Rt+1:Mn,wn=rn&&rn.goButton,Rn=(0,Me.Z)(Gn)==="object"?Gn.readOnly:!Gn,qt=wn,hn=null;Gn&&(wn&&(typeof wn=="boolean"?qt=E.createElement("button",{type:"button",onClick:qn,onKeyUp:qn},Cn.jump_to_confirm):qt=E.createElement("span",{onClick:qn,onKeyUp:qn},wn),qt=E.createElement("li",{title:_n?"".concat(Cn.jump_to).concat(Rt,"/").concat(Mn):null,className:"".concat(kt,"-simple-pager")},qt)),hn=E.createElement("li",{title:_n?"".concat(Rt,"/").concat(Mn):null,className:"".concat(kt,"-simple-pager")},Rn?et:E.createElement("input",{type:"text","aria-label":Cn.jump_to,value:et,disabled:er,onKeyDown:An,onKeyUp:Hn,onChange:Hn,onBlur:Un,size:3}),E.createElement("span",{className:"".concat(kt,"-slash")},"/"),Mn));var Dn=En?1:2;if(Mn<=3+Dn*2){Mn||Ut.push(E.createElement(Ue,(0,Ve.Z)({},tn,{key:"noPager",page:1,className:"".concat(kt,"-item-disabled")})));for(var Nn=1;Nn<=Mn;Nn+=1)Ut.push(E.createElement(Ue,(0,Ve.Z)({},tn,{key:Nn,page:Nn,active:Rt===Nn})))}else{var Sr=En?Cn.prev_3:Cn.prev_5,Tr=En?Cn.next_3:Cn.next_5,Dr=jn(Ln,"jump-prev",yn(mr,"prev page")),Lr=jn(Vn,"jump-next",yn(ze,"next page"));zn&&(In=Dr?E.createElement("li",{title:_n?Sr:null,key:"prev",onClick:pr,tabIndex:0,onKeyDown:rr,className:mt()("".concat(kt,"-jump-prev"),(0,Qe.Z)({},"".concat(kt,"-jump-prev-custom-icon"),!!mr))},Dr):null,xr=Lr?E.createElement("li",{title:_n?Tr:null,key:"next",onClick:br,tabIndex:0,onKeyDown:Cr,className:mt()("".concat(kt,"-jump-next"),(0,Qe.Z)({},"".concat(kt,"-jump-next-custom-icon"),!!ze))},Lr):null);var Nr=Math.max(1,Rt-Dn),Fr=Math.min(Rt+Dn,Mn);Rt-1<=Dn&&(Fr=1+Dn*2),Mn-Rt<=Dn&&(Nr=Mn-Dn*2);for(var zr=Nr;zr<=Fr;zr+=1)Ut.push(E.createElement(Ue,(0,Ve.Z)({},tn,{key:zr,page:zr,active:Rt===zr})));if(Rt-1>=Dn*2&&Rt!==3&&(Ut[0]=E.cloneElement(Ut[0],{className:mt()("".concat(kt,"-item-after-jump-prev"),Ut[0].props.className)}),Ut.unshift(In)),Mn-Rt>=Dn*2&&Rt!==Mn-2){var $r=Ut[Ut.length-1];Ut[Ut.length-1]=E.cloneElement($r,{className:mt()("".concat(kt,"-item-before-jump-next"),$r.props.className)}),Ut.push(xr)}Nr!==1&&Ut.unshift(E.createElement(Ue,(0,Ve.Z)({},tn,{key:1,page:1}))),Fr!==Mn&&Ut.push(E.createElement(Ue,(0,Ve.Z)({},tn,{key:Mn,page:Mn})))}var jr=Qn(Yt);if(jr){var Xr=!Wn||!Mn;jr=E.createElement("li",{title:_n?Cn.prev_page:null,onClick:or,tabIndex:Xr?null:0,onKeyDown:ar,className:mt()("".concat(kt,"-prev"),(0,Qe.Z)({},"".concat(kt,"-disabled"),Xr)),"aria-disabled":Xr},jr)}var ei=Er(Zt);if(ei){var oi,ti;Gn?(oi=!tr,ti=Wn?0:null):(oi=!tr||!Mn,ti=oi?null:0),ei=E.createElement("li",{title:_n?Cn.next_page:null,onClick:nr,tabIndex:ti,onKeyDown:Fn,className:mt()("".concat(kt,"-next"),(0,Qe.Z)({},"".concat(kt,"-disabled"),oi)),"aria-disabled":oi},ei)}var ai=mt()(kt,wt,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(kt,"-start"),bn==="start"),"".concat(kt,"-center"),bn==="center"),"".concat(kt,"-end"),bn==="end"),"".concat(kt,"-simple"),Gn),"".concat(kt,"-disabled"),er));return E.createElement("ul",(0,Ve.Z)({className:ai,style:fn,ref:We},cr),fr,jr,Gn?hn:Ut,ei,E.createElement(Ot,{locale:Cn,rootPrefixCls:kt,disabled:er,selectPrefixCls:Qt,changeSize:Jn,pageSize:vt,pageSizeOptions:$t,quickGo:xn?pn:null,goButton:qt,showSizeChanger:yr,sizeChangerRender:ur}))},Et=de,ke=ie(61852),Le=ie(48755),bt=ie(31756),ve=ie(13783),ue=ie(9017),rt=ie(82326),Nt=ie(57700),yt=ie(36237),Ie=ie(53075),Xe=ie(64910),qe=ie(39082),en=ie(63356),Ft=ie(51636),_t=ie(16931);const je=xe=>{const{componentCls:Be}=xe;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:xe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:xe.colorBorder,backgroundColor:xe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:xe.itemActiveBgDisabled},a:{color:xe.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:xe.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Ht=xe=>{const{componentCls:Be}=xe;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:xe.itemSizeSM,lineHeight:(0,yt.unit)(xe.itemSizeSM)},[`&${Be}-mini ${Be}-item`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:(0,yt.unit)(xe.calc(xe.itemSizeSM).sub(2).equal())},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:xe.itemSizeSM,height:xe.itemSizeSM,margin:0,lineHeight:(0,yt.unit)(xe.itemSizeSM)},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Be}-mini ${Be}-prev ${Be}-item-link,
|
|
|
&${Be}-mini ${Be}-next ${Be}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:xe.itemSizeSM,lineHeight:(0,yt.unit)(xe.itemSizeSM)}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:xe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,yt.unit)(xe.itemSizeSM)},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:xe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:xe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:xe.itemSizeSM,lineHeight:(0,yt.unit)(xe.itemSizeSM),input:Object.assign(Object.assign({},(0,Ie.x0)(xe)),{width:xe.paginationMiniQuickJumperInputWidth,height:xe.controlHeightSM})}}}},gt=xe=>{const{componentCls:Be}=xe;return{[`
|
|
|
&${Be}-simple ${Be}-prev,
|
|
|
&${Be}-simple ${Be}-next
|
|
|
`]:{height:xe.itemSizeSM,lineHeight:(0,yt.unit)(xe.itemSizeSM),verticalAlign:"top",[`${Be}-item-link`]:{height:xe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive},"&::after":{height:xe.itemSizeSM,lineHeight:(0,yt.unit)(xe.itemSizeSM)}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:xe.itemSizeSM,marginInlineEnd:xe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,yt.unit)(xe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:xe.itemInputBg,border:`${(0,yt.unit)(xe.lineWidth)} ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadius,outline:"none",transition:`border-color ${xe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:xe.colorPrimary},"&:focus":{borderColor:xe.colorPrimaryHover,boxShadow:`${(0,yt.unit)(xe.inputOutlineOffset)} 0 ${(0,yt.unit)(xe.controlOutlineWidth)} ${xe.controlOutline}`},"&[disabled]":{color:xe.colorTextDisabled,backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,cursor:"not-allowed"}}}}},ae=xe=>{const{componentCls:Be}=xe;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:xe.colorPrimary,fontSize:xe.fontSizeSM,opacity:0,transition:`all ${xe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:xe.colorTextDisabled,letterSpacing:xe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:xe.paginationEllipsisTextIndent,opacity:1,transition:`all ${xe.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{marginInlineEnd:xe.marginXS},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-next,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:xe.itemSize,height:xe.itemSize,color:xe.colorText,fontFamily:xe.fontFamily,lineHeight:(0,yt.unit)(xe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:xe.borderRadius,cursor:"pointer",transition:`all ${xe.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{outline:0,button:{color:xe.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:xe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,yt.unit)(xe.lineWidth)} ${xe.lineType} transparent`,borderRadius:xe.borderRadius,outline:"none",transition:`all ${xe.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:xe.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:xe.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:xe.paginationSlashMarginInlineEnd,marginInlineStart:xe.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:xe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:xe.controlHeight,marginInlineStart:xe.marginXS,lineHeight:(0,yt.unit)(xe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ie.ik)(xe)),(0,qe.$U)(xe,{borderColor:xe.colorBorder,hoverBorderColor:xe.colorPrimaryHover,activeBorderColor:xe.colorPrimary,activeShadow:xe.activeShadow})),{"&[disabled]":Object.assign({},(0,qe.Xy)(xe)),width:xe.calc(xe.controlHeightLG).mul(1.25).equal(),height:xe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:xe.marginXS,marginInlineEnd:xe.marginXS})}}}},te=xe=>{const{componentCls:Be}=xe;return{[`${Be}-item`]:{display:"inline-block",minWidth:xe.itemSize,height:xe.itemSize,marginInlineEnd:xe.marginXS,fontFamily:xe.fontFamily,lineHeight:(0,yt.unit)(xe.calc(xe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:xe.itemBg,border:`${(0,yt.unit)(xe.lineWidth)} ${xe.lineType} transparent`,borderRadius:xe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,yt.unit)(xe.paginationItemPaddingInline)}`,color:xe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${xe.motionDurationMid}`,backgroundColor:xe.colorBgTextHover},"&:active":{backgroundColor:xe.colorBgTextActive}},"&-active":{fontWeight:xe.fontWeightStrong,backgroundColor:xe.itemActiveBg,borderColor:xe.colorPrimary,a:{color:xe.colorPrimary},"&:hover":{borderColor:xe.colorPrimaryHover},"&:hover a":{color:xe.colorPrimaryHover}}}}},ee=xe=>{const{componentCls:Be}=xe;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,en.Wf)(xe)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-total-text`]:{display:"inline-block",height:xe.itemSize,marginInlineEnd:xe.marginXS,lineHeight:(0,yt.unit)(xe.calc(xe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),te(xe)),ae(xe)),gt(xe)),Ht(xe)),je(xe)),{[`@media only screen and (max-width: ${xe.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${xe.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${xe.componentCls}-rtl`]:{direction:"rtl"}}},oe=xe=>{const{componentCls:Be}=xe;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,en.Qy)(xe)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,en.oN)(xe))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,en.oN)(xe))}}}},se=xe=>Object.assign({itemBg:xe.colorBgContainer,itemSize:xe.controlHeight,itemSizeSM:xe.controlHeightSM,itemActiveBg:xe.colorBgContainer,itemLinkBg:xe.colorBgContainer,itemActiveColorDisabled:xe.colorTextDisabled,itemActiveBgDisabled:xe.controlItemBgActiveDisabled,itemInputBg:xe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Xe.T)(xe)),ne=xe=>(0,Ft.mergeToken)(xe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:xe.calc(xe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:xe.calc(xe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:xe.calc(xe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:xe.calc(xe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:xe.marginSM,paginationSlashMarginInlineEnd:xe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Xe.e)(xe));var pe=(0,_t.I$)("Pagination",xe=>{const Be=ne(xe);return[ee(Be),oe(Be)]},se);const ye=xe=>{const{componentCls:Be}=xe;return{[`${Be}${Be}-bordered${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:xe.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:xe.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,a:{color:xe.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:xe.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,color:xe.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder}}},[`${Be}${Be}-bordered:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:xe.colorPrimaryHover,backgroundColor:xe.itemBg},[`${Be}-item-link`]:{backgroundColor:xe.itemLinkBg,borderColor:xe.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,color:xe.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:xe.colorBorder,color:xe.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:xe.itemBg,border:`${(0,yt.unit)(xe.lineWidth)} ${xe.lineType} ${xe.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:xe.colorPrimary,backgroundColor:xe.itemBg,a:{color:xe.colorPrimary}},"&-active":{borderColor:xe.colorPrimary}}}}};var ct=(0,_t.bk)(["Pagination","bordered"],xe=>{const Be=ne(xe);return[ye(Be)]},se);function Pe(xe){return(0,E.useMemo)(()=>typeof xe=="boolean"?[xe,{}]:xe&&typeof xe=="object"?[!0,xe]:[void 0,void 0],[xe])}var Ge=function(xe,Be){var Tt={};for(var kt in xe)Object.prototype.hasOwnProperty.call(xe,kt)&&Be.indexOf(kt)<0&&(Tt[kt]=xe[kt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,kt=Object.getOwnPropertySymbols(xe);Gt<kt.length;Gt++)Be.indexOf(kt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(xe,kt[Gt])&&(Tt[kt[Gt]]=xe[kt[Gt]]);return Tt},Pt=xe=>{const{align:Be,prefixCls:Tt,selectPrefixCls:kt,className:Gt,rootClassName:Qt,style:wt,size:Kt,locale:Lt,responsive:Jt,showSizeChanger:sn,selectComponentClass:vn,pageSizeOptions:Sn}=xe,Fe=Ge(xe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ht}=(0,ve.Z)(Jt),[,Bt]=(0,Nt.ZP)(),{getPrefixCls:Vt,direction:cn,showSizeChanger:bn,className:Zn,style:zn}=(0,Le.dj)("pagination"),rn=Vt("pagination",Tt),[En,Pn,_n]=pe(rn),On=(0,bt.Z)(Kt),Tn=On==="small"||!!(ht&&!On&&Jt),[an]=(0,ue.Z)("Pagination",ke.Z),Cn=Object.assign(Object.assign({},an),Lt),[fn,kn]=Pe(sn),[lr,er]=Pe(bn),Gn=fn!=null?fn:lr,sr=kn!=null?kn:er,hr=vn||rt.default,yr=E.useMemo(()=>Sn?Sn.map(ze=>Number(ze)):void 0,[Sn]),ur=ze=>{var ot;const{disabled:Se,size:We,onSizeChange:we,"aria-label":_e,className:vt,options:on}=ze,{className:ln,onChange:gn}=sr||{},Rt=(ot=on.find(Mt=>String(Mt.value)===String(We)))===null||ot===void 0?void 0:ot.value;return E.createElement(hr,Object.assign({disabled:Se,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Mt=>Mt.parentNode,"aria-label":_e,options:on},sr,{value:Rt,onChange:(Mt,Dt)=>{we==null||we(Mt),gn==null||gn(Mt,Dt)},size:Tn?"small":"middle",className:mt()(vt,ln)}))},$t=E.useMemo(()=>{const ze=E.createElement("span",{className:`${rn}-item-ellipsis`},"\u2022\u2022\u2022"),ot=E.createElement("button",{className:`${rn}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?E.createElement(Ze.Z,null):E.createElement(he.Z,null)),Se=E.createElement("button",{className:`${rn}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?E.createElement(he.Z,null):E.createElement(Ze.Z,null)),We=E.createElement("a",{className:`${rn}-item-link`},E.createElement("div",{className:`${rn}-item-container`},cn==="rtl"?E.createElement(De.Z,{className:`${rn}-item-link-icon`}):E.createElement($e,{className:`${rn}-item-link-icon`}),ze)),we=E.createElement("a",{className:`${rn}-item-link`},E.createElement("div",{className:`${rn}-item-container`},cn==="rtl"?E.createElement($e,{className:`${rn}-item-link-icon`}):E.createElement(De.Z,{className:`${rn}-item-link-icon`}),ze));return{prevIcon:ot,nextIcon:Se,jumpPrevIcon:We,jumpNextIcon:we}},[cn,rn]),un=Vt("select",kt),jn=mt()({[`${rn}-${Be}`]:!!Be,[`${rn}-mini`]:Tn,[`${rn}-rtl`]:cn==="rtl",[`${rn}-bordered`]:Bt.wireframe},Zn,Gt,Qt,Pn,_n),mr=Object.assign(Object.assign({},zn),wt);return En(E.createElement(E.Fragment,null,Bt.wireframe&&E.createElement(ct,{prefixCls:rn}),E.createElement(Et,Object.assign({},$t,Fe,{style:mr,prefixCls:rn,selectPrefixCls:un,className:jn,locale:Cn,pageSizeOptions:yr,showSizeChanger:Gn,sizeChangerRender:ur}))))},St=Pt},82326:function(nn,jt,ie){"use strict";var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(37463),Ce=ie(2738),be=ie(75030),Oe=ie(86641),$e=ie(45915),De=ie(82855),he=ie(48755),Ze=ie(38406),Ee=ie(2171),mt=ie(83397),Qe=ie(31756),Me=ie(56553),Ne=ie(24971),Ae=ie(70045),ft=ie(57700),xt=ie(1722),It=ie(90376),pt=ie(68525),Re=ie(90005),lt=function(Ct,He){var it={};for(var nt in Ct)Object.prototype.hasOwnProperty.call(Ct,nt)&&He.indexOf(nt)<0&&(it[nt]=Ct[nt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,nt=Object.getOwnPropertySymbols(Ct);de<nt.length;de++)He.indexOf(nt[de])<0&&Object.prototype.propertyIsEnumerable.call(Ct,nt[de])&&(it[nt[de]]=Ct[nt[de]]);return it};const Ke="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ot=(Ct,He)=>{var it;const{prefixCls:nt,bordered:de,className:Et,rootClassName:ke,getPopupContainer:Le,popupClassName:bt,dropdownClassName:ve,listHeight:ue=256,placement:rt,listItemHeight:Nt,size:yt,disabled:Ie,notFoundContent:Xe,status:qe,builtinPlacements:en,dropdownMatchSelectWidth:Ft,popupMatchSelectWidth:_t,direction:je,style:Ht,allowClear:gt,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:ne}=Ct,pe=lt(Ct,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:ye,getPrefixCls:ct,renderEmpty:Pe,direction:Ge,virtual:dt,popupMatchSelectWidth:Pt,popupOverflow:St}=E.useContext(he.E_),xe=(0,he.dj)("select"),[,Be]=(0,ft.ZP)(),Tt=Nt!=null?Nt:Be==null?void 0:Be.controlHeight,kt=ct("select",nt),Gt=ct(),Qt=je!=null?je:Ge,{compactSize:wt,compactItemClassnames:Kt}=(0,Ae.ri)(kt,Qt),[Lt,Jt]=(0,Ne.Z)("select",ae,de),sn=(0,mt.Z)(kt),[vn,Sn,Fe]=(0,It.Z)(kt,sn),ht=E.useMemo(()=>{const{mode:ur}=Ct;if(ur!=="combobox")return ur===Ke?"combobox":ur},[Ct.mode]),Bt=ht==="multiple"||ht==="tags",Vt=(0,Re.Z)(Ct.suffixIcon,Ct.showArrow),cn=(it=_t!=null?_t:Ft)!==null&&it!==void 0?it:Pt,{status:bn,hasFeedback:Zn,isFormItemInput:zn,feedbackIcon:rn}=E.useContext(Me.aM),En=(0,De.F)(bn,qe);let Pn;Xe!==void 0?Pn=Xe:ht==="combobox"?Pn=null:Pn=(Pe==null?void 0:Pe("Select"))||E.createElement(Ze.Z,{componentName:"Select"});const{suffixIcon:_n,itemIcon:On,removeIcon:Tn,clearIcon:an}=(0,pt.Z)(Object.assign(Object.assign({},pe),{multiple:Bt,hasFeedback:Zn,feedbackIcon:rn,showSuffixIcon:Vt,prefixCls:kt,componentName:"Select"})),Cn=gt===!0?{clearIcon:an}:gt,fn=(0,Ce.Z)(pe,["suffixIcon","itemIcon"]),kn=ge()(bt||ve,{[`${kt}-dropdown-${Qt}`]:Qt==="rtl"},ke,Fe,sn,Sn),lr=(0,Qe.Z)(ur=>{var $t;return($t=yt!=null?yt:wt)!==null&&$t!==void 0?$t:ur}),er=E.useContext(Ee.Z),Gn=Ie!=null?Ie:er,sr=ge()({[`${kt}-lg`]:lr==="large",[`${kt}-sm`]:lr==="small",[`${kt}-rtl`]:Qt==="rtl",[`${kt}-${Lt}`]:Jt,[`${kt}-in-form-item`]:zn},(0,De.Z)(kt,En,Zn),Kt,xe.className,Et,ke,Fe,sn,Sn),hr=E.useMemo(()=>rt!==void 0?rt:Qt==="rtl"?"bottomRight":"bottomLeft",[rt,Qt]),[yr]=(0,be.Cn)("SelectLike",te==null?void 0:te.zIndex);return vn(E.createElement(Je.ZP,Object.assign({ref:He,virtual:dt,showSearch:xe.showSearch},fn,{style:Object.assign(Object.assign({},xe.style),Ht),dropdownMatchSelectWidth:cn,transitionName:(0,Oe.m)(Gt,"slide-up",ee),builtinPlacements:(0,xt.Z)(en,St),listHeight:ue,listItemHeight:Tt,mode:ht,prefixCls:kt,placement:hr,direction:Qt,prefix:ne,suffixIcon:_n,menuItemSelectedIcon:On,removeIcon:Tn,allowClear:Cn,notFoundContent:Pn,className:sr,getPopupContainer:Le||ye,dropdownClassName:kn,disabled:Gn,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:yr}),maxCount:Bt?se:void 0,tagRender:Bt?oe:void 0})))},at=E.forwardRef(Ot),Ue=(0,$e.Z)(at,"dropdownAlign");at.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ke,at.Option=Je.Wx,at.OptGroup=Je.Xo,at._InternalPanelDoNotUseOrYouWillBeFired=Ue,jt.default=at},1722:function(nn,jt){"use strict";const ie=Ve=>{const Je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ve==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Je),{points:["br","tr"],offset:[0,-4]})}};function E(Ve,ge){return Ve||ie(ge)}jt.Z=E},90376:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return nt}});var E=ie(63356),Ve=ie(56119),ge=ie(16931),Je=ie(51636),Ce=ie(46e3),be=ie(93873);const Oe=de=>{const{optionHeight:Et,optionFontSize:ke,optionLineHeight:Le,optionPadding:bt}=de;return{position:"relative",display:"block",minHeight:Et,padding:bt,color:de.colorText,fontWeight:"normal",fontSize:ke,lineHeight:Le,boxSizing:"border-box"}};var De=de=>{const{antCls:Et,componentCls:ke}=de,Le=`${ke}-item`,bt=`&${Et}-slide-up-enter${Et}-slide-up-enter-active`,ve=`&${Et}-slide-up-appear${Et}-slide-up-appear-active`,ue=`&${Et}-slide-up-leave${Et}-slide-up-leave-active`,rt=`${ke}-dropdown-placement-`,Nt=`${Le}-option-selected`;return[{[`${ke}-dropdown`]:Object.assign(Object.assign({},(0,E.Wf)(de)),{position:"absolute",top:-9999,zIndex:de.zIndexPopup,boxSizing:"border-box",padding:de.paddingXXS,overflow:"hidden",fontSize:de.fontSize,fontVariant:"initial",backgroundColor:de.colorBgElevated,borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary,[`
|
|
|
${bt}${rt}bottomLeft,
|
|
|
${ve}${rt}bottomLeft
|
|
|
`]:{animationName:Ce.fJ},[`
|
|
|
${bt}${rt}topLeft,
|
|
|
${ve}${rt}topLeft,
|
|
|
${bt}${rt}topRight,
|
|
|
${ve}${rt}topRight
|
|
|
`]:{animationName:Ce.Qt},[`${ue}${rt}bottomLeft`]:{animationName:Ce.Uw},[`
|
|
|
${ue}${rt}topLeft,
|
|
|
${ue}${rt}topRight
|
|
|
`]:{animationName:Ce.ly},"&-hidden":{display:"none"},[Le]:Object.assign(Object.assign({},Oe(de)),{cursor:"pointer",transition:`background ${de.motionDurationSlow} ease`,borderRadius:de.borderRadiusSM,"&-group":{color:de.colorTextDescription,fontSize:de.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},E.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Le}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${Le}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${Le}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${Le}-option-selected`]:{backgroundColor:de.colorBgContainerDisabled},color:de.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:de.calc(de.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Oe(de)),{color:de.colorTextDisabled})}),[`${Nt}:has(+ ${Nt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Nt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ce.oN)(de,"slide-up"),(0,Ce.oN)(de,"slide-down"),(0,be.Fm)(de,"move-up"),(0,be.Fm)(de,"move-down")]},he=ie(26743),Ze=ie(36237);function Ee(de,Et){const{componentCls:ke,inputPaddingHorizontalBase:Le,borderRadius:bt}=de,ve=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),ue=Et?`${ke}-${Et}`:"";return{[`${ke}-single${ue}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${ke}-selector`]:Object.assign(Object.assign({},(0,E.Wf)(de,!0)),{display:"flex",borderRadius:bt,flex:"1 1 auto",[`${ke}-selection-wrap:after`]:{lineHeight:(0,Ze.unit)(ve)},[`${ke}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${ke}-selection-item,
|
|
|
${ke}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,Ze.unit)(ve),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${ke}-selection-item:empty:after`,`${ke}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${ke}-show-arrow ${ke}-selection-item,
|
|
|
&${ke}-show-arrow ${ke}-selection-search,
|
|
|
&${ke}-show-arrow ${ke}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${ke}-open ${ke}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${ke}-customize-input)`]:{[`${ke}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ze.unit)(Le)}`,[`${ke}-selection-search-input`]:{height:ve,fontSize:de.fontSize},"&:after":{lineHeight:(0,Ze.unit)(ve)}}},[`&${ke}-customize-input`]:{[`${ke}-selector`]:{"&:after":{display:"none"},[`${ke}-selection-search`]:{position:"static",width:"100%"},[`${ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ze.unit)(Le)}`,"&:after":{display:"none"}}}}}}}function mt(de){const{componentCls:Et}=de,ke=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[Ee(de),Ee((0,Je.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${Et}-single${Et}-sm`]:{[`&:not(${Et}-customize-input)`]:{[`${Et}-selector`]:{padding:`0 ${(0,Ze.unit)(ke)}`},[`&${Et}-show-arrow ${Et}-selection-search`]:{insetInlineEnd:de.calc(ke).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Et}-show-arrow ${Et}-selection-item,
|
|
|
&${Et}-show-arrow ${Et}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},Ee((0,Je.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const Qe=de=>{const{fontSize:Et,lineHeight:ke,lineWidth:Le,controlHeight:bt,controlHeightSM:ve,controlHeightLG:ue,paddingXXS:rt,controlPaddingHorizontal:Nt,zIndexPopupBase:yt,colorText:Ie,fontWeightStrong:Xe,controlItemBgActive:qe,controlItemBgHover:en,colorBgContainer:Ft,colorFillSecondary:_t,colorBgContainerDisabled:je,colorTextDisabled:Ht,colorPrimaryHover:gt,colorPrimary:ae,controlOutline:te}=de,ee=rt*2,oe=Le*2,se=Math.min(bt-ee,bt-oe),ne=Math.min(ve-ee,ve-oe),pe=Math.min(ue-ee,ue-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(rt/2),zIndexPopup:yt+50,optionSelectedColor:Ie,optionSelectedFontWeight:Xe,optionSelectedBg:qe,optionActiveBg:en,optionPadding:`${(bt-Et*ke)/2}px ${Nt}px`,optionFontSize:Et,optionLineHeight:ke,optionHeight:bt,selectorBg:Ft,clearBg:Ft,singleItemHeightLG:ue,multipleItemBg:_t,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:pe,multipleSelectorBgDisabled:je,multipleItemColorDisabled:Ht,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:gt,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:rt}},Me=(de,Et)=>{const{componentCls:ke,antCls:Le,controlOutlineWidth:bt}=de;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} ${Et.borderColor}`,background:de.selectorBg},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Le}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:Et.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:Et.activeBorderColor,boxShadow:`0 0 0 ${(0,Ze.unit)(bt)} ${Et.activeOutlineColor}`,outline:0},[`${ke}-prefix`]:{color:Et.color}}}},Ne=(de,Et)=>({[`&${de.componentCls}-status-${Et.status}`]:Object.assign({},Me(de,Et))}),Ae=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Me(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),Ne(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),Ne(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),ft=(de,Et)=>{const{componentCls:ke,antCls:Le}=de;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{background:Et.bg,border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} transparent`,color:Et.color},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Le}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{background:Et.hoverBg},[`${ke}-focused& ${ke}-selector`]:{background:de.selectorBg,borderColor:Et.activeBorderColor,outline:0}}}},xt=(de,Et)=>({[`&${de.componentCls}-status-${Et.status}`]:Object.assign({},ft(de,Et))}),It=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ft(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),xt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),xt(de,{status:"warning",bg:de.colorWarningBg,hoverBg:de.colorWarningBgHover,activeBorderColor:de.colorWarning,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{borderColor:de.colorBorder,background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.colorBgContainer,border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),pt=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} transparent`},[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`},[`&${de.componentCls}-status-error`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorError}},[`&${de.componentCls}-status-warning`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorWarning}}}}),Re=(de,Et)=>{const{componentCls:ke,antCls:Le}=de;return{[`&:not(${ke}-customize-input) ${ke}-selector`]:{borderWidth:`0 0 ${(0,Ze.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:Et.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${ke}-disabled):not(${ke}-customize-input):not(${Le}-pagination-size-changer)`]:{[`&:hover ${ke}-selector`]:{borderColor:Et.hoverBorderHover},[`${ke}-focused& ${ke}-selector`]:{borderColor:Et.activeBorderColor,outline:0},[`${ke}-prefix`]:{color:Et.color}}}},lt=(de,Et)=>({[`&${de.componentCls}-status-${Et.status}`]:Object.assign({},Re(de,Et))}),Ke=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Re(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),lt(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),lt(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,Ze.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var at=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ae(de)),It(de)),pt(de)),Ke(de))});const Ue=de=>{const{componentCls:Et}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${Et}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Et}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ct=de=>{const{componentCls:Et}=de;return{[`${Et}-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"}}}},He=de=>{const{antCls:Et,componentCls:ke,inputPaddingHorizontalBase:Le,iconCls:bt}=de;return{[ke]:Object.assign(Object.assign({},(0,E.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${ke}-customize-input) ${ke}-selector`]:Object.assign(Object.assign({},Ue(de)),Ct(de)),[`${ke}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},E.vS),{[`> ${Et}-typography`]:{display:"inline"}}),[`${ke}-selection-placeholder`]:Object.assign(Object.assign({},E.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${ke}-arrow`]:Object.assign(Object.assign({},(0,E.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${de.motionDurationSlow} ease`,[bt]:{verticalAlign:"top",transition:`transform ${de.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ke}-suffix)`]:{pointerEvents:"auto"}},[`${ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ke}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${ke}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Le,zIndex:1,display:"inline-block",width:de.fontSizeIcon,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${de.motionDurationMid} ease, opacity ${de.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:de.colorTextTertiary}},[`&:hover ${ke}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${ke}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${ke}-has-feedback`]:{[`${ke}-clear`]:{insetInlineEnd:de.calc(Le).add(de.fontSize).add(de.paddingXS).equal()}}}}}},it=de=>{const{componentCls:Et}=de;return[{[Et]:{[`&${Et}-in-form-item`]:{width:"100%"}}},He(de),mt(de),(0,he.ZP)(de),De(de),{[`${Et}-rtl`]:{direction:"rtl"}},(0,Ve.c)(de,{borderElCls:`${Et}-selector`,focusElCls:`${Et}-focused`})]};var nt=(0,ge.I$)("Select",(de,Et)=>{let{rootPrefixCls:ke}=Et;const Le=(0,Je.mergeToken)(de,{rootPrefixCls:ke,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[it(Le),at(Le)]},Qe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(nn,jt,ie){"use strict";ie.d(jt,{_z:function(){return be},gp:function(){return Je}});var E=ie(36237),Ve=ie(63356),ge=ie(51636);const Je=he=>{const{multipleSelectItemHeight:Ze,paddingXXS:Ee,lineWidth:mt,INTERNAL_FIXED_ITEM_MARGIN:Qe}=he,Me=he.max(he.calc(Ee).sub(mt).equal(),0),Ne=he.max(he.calc(Me).sub(Qe).equal(),0);return{basePadding:Me,containerPadding:Ne,itemHeight:(0,E.unit)(Ze),itemLineHeight:(0,E.unit)(he.calc(Ze).sub(he.calc(he.lineWidth).mul(2)).equal())}},Ce=he=>{const{multipleSelectItemHeight:Ze,selectHeight:Ee,lineWidth:mt}=he;return he.calc(Ee).sub(Ze).div(2).sub(mt).equal()},be=he=>{const{componentCls:Ze,iconCls:Ee,borderRadiusSM:mt,motionDurationSlow:Qe,paddingXS:Me,multipleItemColorDisabled:Ne,multipleItemBorderColorDisabled:Ae,colorIcon:ft,colorIconHover:xt,INTERNAL_FIXED_ITEM_MARGIN:It}=he;return{[`${Ze}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ze}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:It,borderRadius:mt,cursor:"default",transition:`font-size ${Qe}, line-height ${Qe}, height ${Qe}`,marginInlineEnd:he.calc(It).mul(2).equal(),paddingInlineStart:Me,paddingInlineEnd:he.calc(Me).div(2).equal(),[`${Ze}-disabled&`]:{color:Ne,borderColor:Ae,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:he.calc(Me).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ve.Ro)()),{display:"inline-flex",alignItems:"center",color:ft,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:xt}})}}}},Oe=(he,Ze)=>{const{componentCls:Ee,INTERNAL_FIXED_ITEM_MARGIN:mt}=he,Qe=`${Ee}-selection-overflow`,Me=he.multipleSelectItemHeight,Ne=Ce(he),Ae=Ze?`${Ee}-${Ze}`:"",ft=Je(he);return{[`${Ee}-multiple${Ae}`]:Object.assign(Object.assign({},be(he)),{[`${Ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ft.basePadding,paddingBlock:ft.containerPadding,borderRadius:he.borderRadius,[`${Ee}-disabled&`]:{background:he.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,E.unit)(mt)} 0`,lineHeight:(0,E.unit)(Me),visibility:"hidden",content:'"\\a0"'}},[`${Ee}-selection-item`]:{height:ft.itemHeight,lineHeight:(0,E.unit)(ft.itemLineHeight)},[`${Ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,E.unit)(Me),marginBlock:mt}},[`${Ee}-prefix`]:{marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ft.basePadding).equal()},[`${Qe}-item + ${Qe}-item,
|
|
|
${Ee}-prefix + ${Ee}-selection-wrap
|
|
|
`]:{[`${Ee}-selection-search`]:{marginInlineStart:0},[`${Ee}-selection-placeholder`]:{insetInlineStart:0}},[`${Qe}-item-suffix`]:{minHeight:ft.itemHeight,marginBlock:mt},[`${Ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(Ne).equal(),"\n &-input,\n &-mirror\n ":{height:Me,fontFamily:he.fontFamily,lineHeight:(0,E.unit)(Me),transition:`all ${he.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:he.calc(he.inputPaddingHorizontalBase).sub(ft.basePadding).equal(),insetInlineEnd:he.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${he.motionDurationSlow}`}})}};function $e(he,Ze){const{componentCls:Ee}=he,mt=Ze?`${Ee}-${Ze}`:"",Qe={[`${Ee}-multiple${mt}`]:{fontSize:he.fontSize,[`${Ee}-selector`]:{[`${Ee}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Ee}-show-arrow ${Ee}-selector,
|
|
|
&${Ee}-allow-clear ${Ee}-selector
|
|
|
`]:{paddingInlineEnd:he.calc(he.fontSizeIcon).add(he.controlPaddingHorizontal).equal()}}};return[Oe(he,Ze),Qe]}const De=he=>{const{componentCls:Ze}=he,Ee=(0,ge.mergeToken)(he,{selectHeight:he.controlHeightSM,multipleSelectItemHeight:he.multipleItemHeightSM,borderRadius:he.borderRadiusSM,borderRadiusSM:he.borderRadiusXS}),mt=(0,ge.mergeToken)(he,{fontSize:he.fontSizeLG,selectHeight:he.controlHeightLG,multipleSelectItemHeight:he.multipleItemHeightLG,borderRadius:he.borderRadiusLG,borderRadiusSM:he.borderRadius});return[$e(he),$e(Ee,"sm"),{[`${Ze}-multiple${Ze}-sm`]:{[`${Ze}-selection-placeholder`]:{insetInline:he.calc(he.controlPaddingHorizontalSM).sub(he.lineWidth).equal()},[`${Ze}-selection-search`]:{marginInlineStart:2}}},$e(mt,"lg")]};jt.ZP=De},68525:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});var E=ie(59301),Ve=ie(40001),ge=ie(19248),Je=ie(99267),Ce=ie(84105),be=ie(58617),Oe=ie(47472);function $e(De){let{suffixIcon:he,clearIcon:Ze,menuItemSelectedIcon:Ee,removeIcon:mt,loading:Qe,multiple:Me,hasFeedback:Ne,prefixCls:Ae,showSuffixIcon:ft,feedbackIcon:xt,showArrow:It,componentName:pt}=De;const Re=Ze!=null?Ze:E.createElement(ge.Z,null),lt=Ue=>he===null&&!Ne&&!It?null:E.createElement(E.Fragment,null,ft!==!1&&Ue,Ne&&xt);let Ke=null;if(he!==void 0)Ke=lt(he);else if(Qe)Ke=lt(E.createElement(be.Z,{spin:!0}));else{const Ue=`${Ae}-suffix`;Ke=Ct=>{let{open:He,showSearch:it}=Ct;return lt(He&&it?E.createElement(Oe.Z,{className:Ue}):E.createElement(Ce.Z,{className:Ue}))}}let Ot=null;Ee!==void 0?Ot=Ee:Me?Ot=E.createElement(Ve.Z,null):Ot=null;let at=null;return mt!==void 0?at=mt:at=E.createElement(Je.Z,null),{clearIcon:Re,suffixIcon:Ke,itemIcon:Ot,removeIcon:at}}},90005:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return E}});function E(Ve,ge){return ge!==void 0?ge:Ve!==null}},58755:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return Et}});var E=ie(59301),Ve=ie(58617),ge=ie(92310),Je=ie.n(ge),Ce=ie(54476),be=ie(20068),Oe=ie(42978),$e=ie(75931),De=ie(18929),he=ie(10228),Ze=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ee=E.forwardRef(function(ke,Le){var bt,ve=ke.prefixCls,ue=ve===void 0?"rc-switch":ve,rt=ke.className,Nt=ke.checked,yt=ke.defaultChecked,Ie=ke.disabled,Xe=ke.loadingIcon,qe=ke.checkedChildren,en=ke.unCheckedChildren,Ft=ke.onClick,_t=ke.onChange,je=ke.onKeyDown,Ht=(0,$e.Z)(ke,Ze),gt=(0,De.Z)(!1,{value:Nt,defaultValue:yt}),ae=(0,Oe.Z)(gt,2),te=ae[0],ee=ae[1];function oe(ye,ct){var Pe=te;return Ie||(Pe=ye,ee(Pe),_t==null||_t(Pe,ct)),Pe}function se(ye){ye.which===he.Z.LEFT?oe(!1,ye):ye.which===he.Z.RIGHT&&oe(!0,ye),je==null||je(ye)}function ne(ye){var ct=oe(!te,ye);Ft==null||Ft(ct,ye)}var pe=Je()(ue,rt,(bt={},(0,be.Z)(bt,"".concat(ue,"-checked"),te),(0,be.Z)(bt,"".concat(ue,"-disabled"),Ie),bt));return E.createElement("button",(0,Ce.Z)({},Ht,{type:"button",role:"switch","aria-checked":te,disabled:Ie,className:pe,ref:Le,onKeyDown:se,onClick:ne}),Xe,E.createElement("span",{className:"".concat(ue,"-inner")},E.createElement("span",{className:"".concat(ue,"-inner-checked")},qe),E.createElement("span",{className:"".concat(ue,"-inner-unchecked")},en)))});Ee.displayName="Switch";var mt=Ee,Qe=ie(12919),Me=ie(48755),Ne=ie(2171),Ae=ie(31756),ft=ie(36237),xt=ie(17835),It=ie(63356),pt=ie(16931),Re=ie(51636);const lt=ke=>{const{componentCls:Le,trackHeightSM:bt,trackPadding:ve,trackMinWidthSM:ue,innerMinMarginSM:rt,innerMaxMarginSM:Nt,handleSizeSM:yt,calc:Ie}=ke,Xe=`${Le}-inner`,qe=(0,ft.unit)(Ie(yt).add(Ie(ve).mul(2)).equal()),en=(0,ft.unit)(Ie(Nt).mul(2).equal());return{[Le]:{[`&${Le}-small`]:{minWidth:ue,height:bt,lineHeight:(0,ft.unit)(bt),[`${Le}-inner`]:{paddingInlineStart:Nt,paddingInlineEnd:rt,[`${Xe}-checked, ${Xe}-unchecked`]:{minHeight:bt},[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${en})`,marginInlineEnd:`calc(100% - ${qe} + ${en})`},[`${Xe}-unchecked`]:{marginTop:Ie(bt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Le}-handle`]:{width:yt,height:yt},[`${Le}-loading-icon`]:{top:Ie(Ie(yt).sub(ke.switchLoadingIconSize)).div(2).equal(),fontSize:ke.switchLoadingIconSize},[`&${Le}-checked`]:{[`${Le}-inner`]:{paddingInlineStart:rt,paddingInlineEnd:Nt,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${en})`,marginInlineEnd:`calc(-100% + ${qe} - ${en})`}},[`${Le}-handle`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(Ie(yt).add(ve).equal())})`}},[`&:not(${Le}-disabled):active`]:{[`&:not(${Le}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:Ie(ke.marginXXS).div(2).equal(),marginInlineEnd:Ie(ke.marginXXS).mul(-1).div(2).equal()}},[`&${Le}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:Ie(ke.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ie(ke.marginXXS).div(2).equal()}}}}}}},Ke=ke=>{const{componentCls:Le,handleSize:bt,calc:ve}=ke;return{[Le]:{[`${Le}-loading-icon${ke.iconCls}`]:{position:"relative",top:ve(ve(bt).sub(ke.fontSize)).div(2).equal(),color:ke.switchLoadingIconColor,verticalAlign:"top"},[`&${Le}-checked ${Le}-loading-icon`]:{color:ke.switchColor}}}},Ot=ke=>{const{componentCls:Le,trackPadding:bt,handleBg:ve,handleShadow:ue,handleSize:rt,calc:Nt}=ke,yt=`${Le}-handle`;return{[Le]:{[yt]:{position:"absolute",top:bt,insetInlineStart:bt,width:rt,height:rt,transition:`all ${ke.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ve,borderRadius:Nt(rt).div(2).equal(),boxShadow:ue,transition:`all ${ke.switchDuration} ease-in-out`,content:'""'}},[`&${Le}-checked ${yt}`]:{insetInlineStart:`calc(100% - ${(0,ft.unit)(Nt(rt).add(bt).equal())})`},[`&:not(${Le}-disabled):active`]:{[`${yt}::before`]:{insetInlineEnd:ke.switchHandleActiveInset,insetInlineStart:0},[`&${Le}-checked ${yt}::before`]:{insetInlineEnd:0,insetInlineStart:ke.switchHandleActiveInset}}}}},at=ke=>{const{componentCls:Le,trackHeight:bt,trackPadding:ve,innerMinMargin:ue,innerMaxMargin:rt,handleSize:Nt,calc:yt}=ke,Ie=`${Le}-inner`,Xe=(0,ft.unit)(yt(Nt).add(yt(ve).mul(2)).equal()),qe=(0,ft.unit)(yt(rt).mul(2).equal());return{[Le]:{[Ie]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:rt,paddingInlineEnd:ue,transition:`padding-inline-start ${ke.switchDuration} ease-in-out, padding-inline-end ${ke.switchDuration} ease-in-out`,[`${Ie}-checked, ${Ie}-unchecked`]:{display:"block",color:ke.colorTextLightSolid,fontSize:ke.fontSizeSM,transition:`margin-inline-start ${ke.switchDuration} ease-in-out, margin-inline-end ${ke.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:bt},[`${Ie}-checked`]:{marginInlineStart:`calc(-100% + ${Xe} - ${qe})`,marginInlineEnd:`calc(100% - ${Xe} + ${qe})`},[`${Ie}-unchecked`]:{marginTop:yt(bt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Le}-checked ${Ie}`]:{paddingInlineStart:ue,paddingInlineEnd:rt,[`${Ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ie}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe} + ${qe})`,marginInlineEnd:`calc(-100% + ${Xe} - ${qe})`}},[`&:not(${Le}-disabled):active`]:{[`&:not(${Le}-checked) ${Ie}`]:{[`${Ie}-unchecked`]:{marginInlineStart:yt(ve).mul(2).equal(),marginInlineEnd:yt(ve).mul(-1).mul(2).equal()}},[`&${Le}-checked ${Ie}`]:{[`${Ie}-checked`]:{marginInlineStart:yt(ve).mul(-1).mul(2).equal(),marginInlineEnd:yt(ve).mul(2).equal()}}}}}},Ue=ke=>{const{componentCls:Le,trackHeight:bt,trackMinWidth:ve}=ke;return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(ke)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ve,height:bt,lineHeight:(0,ft.unit)(bt),verticalAlign:"middle",background:ke.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ke.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Le}-disabled)`]:{background:ke.colorTextTertiary}}),(0,It.Qy)(ke)),{[`&${Le}-checked`]:{background:ke.switchColor,[`&:hover:not(${Le}-disabled)`]:{background:ke.colorPrimaryHover}},[`&${Le}-loading, &${Le}-disabled`]:{cursor:"not-allowed",opacity:ke.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Le}-rtl`]:{direction:"rtl"}})}},Ct=ke=>{const{fontSize:Le,lineHeight:bt,controlHeight:ve,colorWhite:ue}=ke,rt=Le*bt,Nt=ve/2,yt=2,Ie=rt-yt*2,Xe=Nt-yt*2;return{trackHeight:rt,trackHeightSM:Nt,trackMinWidth:Ie*2+yt*4,trackMinWidthSM:Xe*2+yt*2,trackPadding:yt,handleBg:ue,handleSize:Ie,handleSizeSM:Xe,handleShadow:`0 2px 4px 0 ${new xt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ie/2,innerMaxMargin:Ie+yt+yt*2,innerMinMarginSM:Xe/2,innerMaxMarginSM:Xe+yt+yt*2}};var He=(0,pt.I$)("Switch",ke=>{const Le=(0,Re.mergeToken)(ke,{switchDuration:ke.motionDurationMid,switchColor:ke.colorPrimary,switchDisabledOpacity:ke.opacityLoading,switchLoadingIconSize:ke.calc(ke.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${ke.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ue(Le),at(Le),Ot(Le),Ke(Le),lt(Le)]},Ct),it=function(ke,Le){var bt={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&Le.indexOf(ve)<0&&(bt[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,ve=Object.getOwnPropertySymbols(ke);ue<ve.length;ue++)Le.indexOf(ve[ue])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[ue])&&(bt[ve[ue]]=ke[ve[ue]]);return bt};const de=E.forwardRef((ke,Le)=>{const{prefixCls:bt,size:ve,disabled:ue,loading:rt,className:Nt,rootClassName:yt,style:Ie,checked:Xe,value:qe,defaultChecked:en,defaultValue:Ft,onChange:_t}=ke,je=it(ke,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ht,gt]=(0,De.Z)(!1,{value:Xe!=null?Xe:qe,defaultValue:en!=null?en:Ft}),{getPrefixCls:ae,direction:te,switch:ee}=E.useContext(Me.E_),oe=E.useContext(Ne.Z),se=(ue!=null?ue:oe)||rt,ne=ae("switch",bt),pe=E.createElement("div",{className:`${ne}-handle`},rt&&E.createElement(Ve.Z,{className:`${ne}-loading-icon`})),[ye,ct,Pe]=He(ne),Ge=(0,Ae.Z)(ve),dt=Je()(ee==null?void 0:ee.className,{[`${ne}-small`]:Ge==="small",[`${ne}-loading`]:rt,[`${ne}-rtl`]:te==="rtl"},Nt,yt,ct,Pe),Pt=Object.assign(Object.assign({},ee==null?void 0:ee.style),Ie),St=function(){gt(arguments.length<=0?void 0:arguments[0]),_t==null||_t.apply(void 0,arguments)};return ye(E.createElement(Qe.Z,{component:"Switch"},E.createElement(mt,Object.assign({},je,{checked:Ht,onChange:St,prefixCls:ne,className:dt,style:Pt,disabled:se,ref:Le,loadingIcon:pe}))))});de.__ANT_SWITCH=!0;var Et=de},96599:function(nn,jt,ie){"use strict";ie.d(jt,{default:function(){return nt}});var E=ie(59301),Ve=ie(92310),ge=ie.n(Ve),Je=ie(2738),Ce=ie(29509),be=ie(78776),Oe=ie(22703),$e=ie(12919),De=ie(48755),he=ie(36237),Ze=ie(17835),Ee=ie(63356),mt=ie(51636),Qe=ie(16931);const Me=de=>{const{paddingXXS:Et,lineWidth:ke,tagPaddingHorizontal:Le,componentCls:bt,calc:ve}=de,ue=ve(Le).sub(ke).equal(),rt=ve(Et).sub(ke).equal();return{[bt]:Object.assign(Object.assign({},(0,Ee.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:ue,fontSize:de.tagFontSize,lineHeight:de.tagLineHeight,whiteSpace:"nowrap",background:de.defaultBg,border:`${(0,he.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadiusSM,opacity:1,transition:`all ${de.motionDurationMid}`,textAlign:"start",position:"relative",[`&${bt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${bt}-close-icon`]:{marginInlineStart:rt,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${bt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${de.iconCls}-close, ${de.iconCls}-close:hover`]:{color:de.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${bt}-checkable-checked):hover`]:{color:de.colorPrimary,backgroundColor:de.colorFillSecondary},"&:active, &-checked":{color:de.colorTextLightSolid},"&-checked":{backgroundColor:de.colorPrimary,"&:hover":{backgroundColor:de.colorPrimaryHover}},"&:active":{backgroundColor:de.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${de.iconCls} + span, > span + ${de.iconCls}`]:{marginInlineStart:ue}}),[`${bt}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},Ne=de=>{const{lineWidth:Et,fontSizeIcon:ke,calc:Le}=de,bt=de.fontSizeSM;return(0,mt.mergeToken)(de,{tagFontSize:bt,tagLineHeight:(0,he.unit)(Le(de.lineHeightSM).mul(bt).equal()),tagIconSize:Le(ke).sub(Le(Et).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Ae=de=>({defaultBg:new Ze.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var ft=(0,Qe.I$)("Tag",de=>{const Et=Ne(de);return Me(Et)},Ae),xt=function(de,Et){var ke={};for(var Le in de)Object.prototype.hasOwnProperty.call(de,Le)&&Et.indexOf(Le)<0&&(ke[Le]=de[Le]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Le=Object.getOwnPropertySymbols(de);bt<Le.length;bt++)Et.indexOf(Le[bt])<0&&Object.prototype.propertyIsEnumerable.call(de,Le[bt])&&(ke[Le[bt]]=de[Le[bt]]);return ke},pt=E.forwardRef((de,Et)=>{const{prefixCls:ke,style:Le,className:bt,checked:ve,onChange:ue,onClick:rt}=de,Nt=xt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:yt,tag:Ie}=E.useContext(De.E_),Xe=Ht=>{ue==null||ue(!ve),rt==null||rt(Ht)},qe=yt("tag",ke),[en,Ft,_t]=ft(qe),je=ge()(qe,`${qe}-checkable`,{[`${qe}-checkable-checked`]:ve},Ie==null?void 0:Ie.className,bt,Ft,_t);return en(E.createElement("span",Object.assign({},Nt,{ref:Et,style:Object.assign(Object.assign({},Le),Ie==null?void 0:Ie.style),className:je,onClick:Xe})))}),Re=ie(93427);const lt=de=>(0,Re.Z)(de,(Et,ke)=>{let{textColor:Le,lightBorderColor:bt,lightColor:ve,darkColor:ue}=ke;return{[`${de.componentCls}${de.componentCls}-${Et}`]:{color:Le,background:ve,borderColor:bt,"&-inverse":{color:de.colorTextLightSolid,background:ue,borderColor:ue},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ke=(0,Qe.bk)(["Tag","preset"],de=>{const Et=Ne(de);return lt(Et)},Ae);function Ot(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const at=(de,Et,ke)=>{const Le=Ot(ke);return{[`${de.componentCls}${de.componentCls}-${Et}`]:{color:de[`color${ke}`],background:de[`color${Le}Bg`],borderColor:de[`color${Le}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ue=(0,Qe.bk)(["Tag","status"],de=>{const Et=Ne(de);return[at(Et,"success","Success"),at(Et,"processing","Info"),at(Et,"error","Error"),at(Et,"warning","Warning")]},Ae),Ct=function(de,Et){var ke={};for(var Le in de)Object.prototype.hasOwnProperty.call(de,Le)&&Et.indexOf(Le)<0&&(ke[Le]=de[Le]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Le=Object.getOwnPropertySymbols(de);bt<Le.length;bt++)Et.indexOf(Le[bt])<0&&Object.prototype.propertyIsEnumerable.call(de,Le[bt])&&(ke[Le[bt]]=de[Le[bt]]);return ke};const it=E.forwardRef((de,Et)=>{const{prefixCls:ke,className:Le,rootClassName:bt,style:ve,children:ue,icon:rt,color:Nt,onClose:yt,bordered:Ie=!0,visible:Xe}=de,qe=Ct(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:en,direction:Ft,tag:_t}=E.useContext(De.E_),[je,Ht]=E.useState(!0),gt=(0,Je.Z)(qe,["closeIcon","closable"]);E.useEffect(()=>{Xe!==void 0&&Ht(Xe)},[Xe]);const ae=(0,Ce.o2)(Nt),te=(0,Ce.yT)(Nt),ee=ae||te,oe=Object.assign(Object.assign({backgroundColor:Nt&&!ee?Nt:void 0},_t==null?void 0:_t.style),ve),se=en("tag",ke),[ne,pe,ye]=ft(se),ct=ge()(se,_t==null?void 0:_t.className,{[`${se}-${Nt}`]:ee,[`${se}-has-color`]:Nt&&!ee,[`${se}-hidden`]:!je,[`${se}-rtl`]:Ft==="rtl",[`${se}-borderless`]:!Ie},Le,bt,pe,ye),Pe=Be=>{Be.stopPropagation(),yt==null||yt(Be),!Be.defaultPrevented&&Ht(!1)},[,Ge]=(0,be.Z)((0,be.w)(de),(0,be.w)(_t),{closable:!1,closeIconRender:Be=>{const Tt=E.createElement("span",{className:`${se}-close-icon`,onClick:Pe},Be);return(0,Oe.wm)(Be,Tt,kt=>({onClick:Gt=>{var Qt;(Qt=kt==null?void 0:kt.onClick)===null||Qt===void 0||Qt.call(kt,Gt),Pe(Gt)},className:ge()(kt==null?void 0:kt.className,`${se}-close-icon`)}))}}),dt=typeof qe.onClick=="function"||ue&&ue.type==="a",Pt=rt||null,St=Pt?E.createElement(E.Fragment,null,Pt,ue&&E.createElement("span",null,ue)):ue,xe=E.createElement("span",Object.assign({},gt,{ref:Et,className:ct,style:oe}),St,Ge,ae&&E.createElement(Ke,{key:"preset",prefixCls:se}),te&&E.createElement(Ue,{key:"status",prefixCls:se}));return ne(dt?E.createElement($e.Z,{component:"Tag"},xe):xe)});it.CheckableTag=pt;var nt=it},99498:function(nn,jt,ie){(function(E){E(ie(89780))})(function(E){E.defineOption("placeholder","",function($e,De,he){var Ze=he&&he!=E.Init;if(De&&!Ze)$e.on("blur",Ce),$e.on("change",be),$e.on("swapDoc",be),E.on($e.getInputField(),"compositionupdate",$e.state.placeholderCompose=function(){Je($e)}),be($e);else if(!De&&Ze){$e.off("blur",Ce),$e.off("change",be),$e.off("swapDoc",be),E.off($e.getInputField(),"compositionupdate",$e.state.placeholderCompose),Ve($e);var Ee=$e.getWrapperElement();Ee.className=Ee.className.replace(" CodeMirror-empty","")}De&&!$e.hasFocus()&&Ce($e)});function Ve($e){$e.state.placeholder&&($e.state.placeholder.parentNode.removeChild($e.state.placeholder),$e.state.placeholder=null)}function ge($e){Ve($e);var De=$e.state.placeholder=document.createElement("pre");De.style.cssText="height: 0; overflow: visible",De.style.direction=$e.getOption("direction"),De.className="CodeMirror-placeholder CodeMirror-line-like";var he=$e.getOption("placeholder");typeof he=="string"&&(he=document.createTextNode(he)),De.appendChild(he),$e.display.lineSpace.insertBefore(De,$e.display.lineSpace.firstChild)}function Je($e){setTimeout(function(){var De=!1,he=$e.getInputField();he.nodeName=="TEXTAREA"?De=!he.value:$e.lineCount()==1&&(De=!/[^\u200b]/.test(he.querySelector(".CodeMirror-line").textContent)),De?ge($e):Ve($e)},20)}function Ce($e){Oe($e)&&ge($e)}function be($e){var De=$e.getWrapperElement(),he=Oe($e);De.className=De.className.replace(" CodeMirror-empty","")+(he?" CodeMirror-empty":""),he?ge($e):Ve($e)}function Oe($e){return $e.lineCount()===1&&$e.getLine(0)===""}})},25717:function(nn,jt,ie){(function(E){E(ie(89780))})(function(E){var Ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Me,Ne,Ae){Ae&&Ae!=E.Init&&(Me.removeKeyMap(Ce),Me.state.closeBrackets=null),Ne&&(be(Je(Ne,"pairs")),Me.state.closeBrackets=Ne,Me.addKeyMap(Ce))});function Je(Me,Ne){return Ne=="pairs"&&typeof Me=="string"?Me:typeof Me=="object"&&Me[Ne]!=null?Me[Ne]:Ve[Ne]}var Ce={Backspace:De,Enter:he};function be(Me){for(var Ne=0;Ne<Me.length;Ne++){var Ae=Me.charAt(Ne),ft="'"+Ae+"'";Ce[ft]||(Ce[ft]=Oe(Ae))}}be(Ve.pairs+"`");function Oe(Me){return function(Ne){return Ee(Ne,Me)}}function $e(Me){var Ne=Me.state.closeBrackets;if(!Ne||Ne.override)return Ne;var Ae=Me.getModeAt(Me.getCursor());return Ae.closeBrackets||Ne}function De(Me){var Ne=$e(Me);if(!Ne||Me.getOption("disableInput"))return E.Pass;for(var Ae=Je(Ne,"pairs"),ft=Me.listSelections(),xt=0;xt<ft.length;xt++){if(!ft[xt].empty())return E.Pass;var It=mt(Me,ft[xt].head);if(!It||Ae.indexOf(It)%2!=0)return E.Pass}for(var xt=ft.length-1;xt>=0;xt--){var pt=ft[xt].head;Me.replaceRange("",ge(pt.line,pt.ch-1),ge(pt.line,pt.ch+1),"+delete")}}function he(Me){var Ne=$e(Me),Ae=Ne&&Je(Ne,"explode");if(!Ae||Me.getOption("disableInput"))return E.Pass;for(var ft=Me.listSelections(),xt=0;xt<ft.length;xt++){if(!ft[xt].empty())return E.Pass;var It=mt(Me,ft[xt].head);if(!It||Ae.indexOf(It)%2!=0)return E.Pass}Me.operation(function(){var pt=Me.lineSeparator()||`
|
|
|
`;Me.replaceSelection(pt+pt,null),Me.execCommand("goCharLeft"),ft=Me.listSelections();for(var Re=0;Re<ft.length;Re++){var lt=ft[Re].head.line;Me.indentLine(lt,null,!0),Me.indentLine(lt+1,null,!0)}})}function Ze(Me){var Ne=E.cmpPos(Me.anchor,Me.head)>0;return{anchor:new ge(Me.anchor.line,Me.anchor.ch+(Ne?-1:1)),head:new ge(Me.head.line,Me.head.ch+(Ne?1:-1))}}function Ee(Me,Ne){var Ae=$e(Me);if(!Ae||Me.getOption("disableInput"))return E.Pass;var ft=Je(Ae,"pairs"),xt=ft.indexOf(Ne);if(xt==-1)return E.Pass;for(var It=Je(Ae,"closeBefore"),pt=Je(Ae,"triples"),Re=ft.charAt(xt+1)==Ne,lt=Me.listSelections(),Ke=xt%2==0,Ot,at=0;at<lt.length;at++){var Ue=lt[at],Ct=Ue.head,He,it=Me.getRange(Ct,ge(Ct.line,Ct.ch+1));if(Ke&&!Ue.empty())He="surround";else if((Re||!Ke)&&it==Ne)Re&&Qe(Me,Ct)?He="both":pt.indexOf(Ne)>=0&&Me.getRange(Ct,ge(Ct.line,Ct.ch+3))==Ne+Ne+Ne?He="skipThree":He="skip";else if(Re&&Ct.ch>1&&pt.indexOf(Ne)>=0&&Me.getRange(ge(Ct.line,Ct.ch-2),Ct)==Ne+Ne){if(Ct.ch>2&&/\bstring/.test(Me.getTokenTypeAt(ge(Ct.line,Ct.ch-2))))return E.Pass;He="addFour"}else if(Re){var nt=Ct.ch==0?" ":Me.getRange(ge(Ct.line,Ct.ch-1),Ct);if(!E.isWordChar(it)&&nt!=Ne&&!E.isWordChar(nt))He="both";else return E.Pass}else if(Ke&&(it.length===0||/\s/.test(it)||It.indexOf(it)>-1))He="both";else return E.Pass;if(!Ot)Ot=He;else if(Ot!=He)return E.Pass}var de=xt%2?ft.charAt(xt-1):Ne,Et=xt%2?Ne:ft.charAt(xt+1);Me.operation(function(){if(Ot=="skip")Me.execCommand("goCharRight");else if(Ot=="skipThree")for(var ke=0;ke<3;ke++)Me.execCommand("goCharRight");else if(Ot=="surround"){for(var Le=Me.getSelections(),ke=0;ke<Le.length;ke++)Le[ke]=de+Le[ke]+Et;Me.replaceSelections(Le,"around"),Le=Me.listSelections().slice();for(var ke=0;ke<Le.length;ke++)Le[ke]=Ze(Le[ke]);Me.setSelections(Le)}else Ot=="both"?(Me.replaceSelection(de+Et,null),Me.triggerElectric(de+Et),Me.execCommand("goCharLeft")):Ot=="addFour"&&(Me.replaceSelection(de+de+de+de,"before"),Me.execCommand("goCharRight"))})}function mt(Me,Ne){var Ae=Me.getRange(ge(Ne.line,Ne.ch-1),ge(Ne.line,Ne.ch+1));return Ae.length==2?Ae:null}function Qe(Me,Ne){var Ae=Me.getTokenAt(ge(Ne.line,Ne.ch+1));return/\bstring/.test(Ae.type)&&Ae.start==Ne.ch&&(Ne.ch==0||!/\bstring/.test(Me.getTokenTypeAt(Ne)))}})},6313:function(nn,jt,ie){(function(E){E(ie(89780),ie(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(De,he,Ze){if(Ze!=E.Init&&Ze&&De.removeKeyMap("autoCloseTags"),!!he){var Ee={name:"autoCloseTags"};(typeof he!="object"||he.whenClosing!==!1)&&(Ee["'/'"]=function(mt){return be(mt)}),(typeof he!="object"||he.whenOpening!==!1)&&(Ee["'>'"]=function(mt){return Je(mt)}),De.addKeyMap(Ee)}});var Ve=["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 Je(De){if(De.getOption("disableInput"))return E.Pass;for(var he=De.listSelections(),Ze=[],Ee=De.getOption("autoCloseTags"),mt=0;mt<he.length;mt++){if(!he[mt].empty())return E.Pass;var Qe=he[mt].head,Me=De.getTokenAt(Qe),Ne=E.innerMode(De.getMode(),Me.state),Ae=Ne.state,ft=Ne.mode.xmlCurrentTag&&Ne.mode.xmlCurrentTag(Ae),xt=ft&&ft.name;if(!xt)return E.Pass;var It=Ne.mode.configuration=="html",pt=typeof Ee=="object"&&Ee.dontCloseTags||It&&Ve,Re=typeof Ee=="object"&&Ee.indentTags||It&≥Me.end>Qe.ch&&(xt=xt.slice(0,xt.length-Me.end+Qe.ch));var lt=xt.toLowerCase();if(!xt||Me.type=="string"&&(Me.end!=Qe.ch||!/[\"\']/.test(Me.string.charAt(Me.string.length-1))||Me.string.length==1)||Me.type=="tag"&&ft.close||Me.string.indexOf("/")==Qe.ch-Me.start-1||pt&&Oe(pt,lt)>-1||$e(De,Ne.mode.xmlCurrentContext&&Ne.mode.xmlCurrentContext(Ae)||[],xt,Qe,!0))return E.Pass;var Ke=typeof Ee=="object"&&Ee.emptyTags;if(Ke&&Oe(Ke,xt)>-1){Ze[mt]={text:"/>",newPos:E.Pos(Qe.line,Qe.ch+2)};continue}var Ot=Re&&Oe(Re,lt)>-1;Ze[mt]={indent:Ot,text:">"+(Ot?`
|
|
|
|
|
|
`:"")+"</"+xt+">",newPos:Ot?E.Pos(Qe.line+1,0):E.Pos(Qe.line,Qe.ch+1)}}for(var at=typeof Ee=="object"&&Ee.dontIndentOnAutoClose,mt=he.length-1;mt>=0;mt--){var Ue=Ze[mt];De.replaceRange(Ue.text,he[mt].head,he[mt].anchor,"+insert");var Ct=De.listSelections().slice(0);Ct[mt]={head:Ue.newPos,anchor:Ue.newPos},De.setSelections(Ct),!at&&Ue.indent&&(De.indentLine(Ue.newPos.line,null,!0),De.indentLine(Ue.newPos.line+1,null,!0))}}function Ce(De,he){for(var Ze=De.listSelections(),Ee=[],mt=he?"/":"</",Qe=De.getOption("autoCloseTags"),Me=typeof Qe=="object"&&Qe.dontIndentOnSlash,Ne=0;Ne<Ze.length;Ne++){if(!Ze[Ne].empty())return E.Pass;var Ae=Ze[Ne].head,ft=De.getTokenAt(Ae),xt=E.innerMode(De.getMode(),ft.state),It=xt.state;if(he&&(ft.type=="string"||ft.string.charAt(0)!="<"||ft.start!=Ae.ch-1))return E.Pass;var pt,Re=xt.mode.name!="xml"&&De.getMode().name=="htmlmixed";if(Re&&xt.mode.name=="javascript")pt=mt+"script";else if(Re&&xt.mode.name=="css")pt=mt+"style";else{var lt=xt.mode.xmlCurrentContext&&xt.mode.xmlCurrentContext(It);if(!lt||lt.length&&$e(De,lt,lt[lt.length-1],Ae))return E.Pass;pt=mt+lt[lt.length-1]}De.getLine(Ae.line).charAt(ft.end)!=">"&&(pt+=">"),Ee[Ne]=pt}if(De.replaceSelections(Ee),Ze=De.listSelections(),!Me)for(var Ne=0;Ne<Ze.length;Ne++)(Ne==Ze.length-1||Ze[Ne].head.line<Ze[Ne+1].head.line)&&De.indentLine(Ze[Ne].head.line)}function be(De){return De.getOption("disableInput")?E.Pass:Ce(De,!0)}E.commands.closeTag=function(De){return Ce(De)};function Oe(De,he){if(De.indexOf)return De.indexOf(he);for(var Ze=0,Ee=De.length;Ze<Ee;++Ze)if(De[Ze]==he)return Ze;return-1}function $e(De,he,Ze,Ee,mt){if(!E.scanForClosingTag)return!1;var Qe=Math.min(De.lastLine()+1,Ee.line+500),Me=E.scanForClosingTag(De,Ee,null,Qe);if(!Me||Me.tag!=Ze)return!1;for(var Ne=mt?1:0,Ae=he.length-1;Ae>=0&&he[Ae]==Ze;Ae--)++Ne;Ee=Me.to;for(var Ae=1;Ae<Ne;Ae++){var ft=E.scanForClosingTag(De,Ee,null,Qe);if(!ft||ft.tag!=Ze)return!1;Ee=ft.to}return!0}})},32855:function(nn,jt,ie){(function(E){E(ie(89780))})(function(E){"use strict";var Ve=E.Pos;function ge(Ae,ft){return Ae.line-ft.line||Ae.ch-ft.ch}var Je="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=Je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("<(/?)(["+Je+"]["+Ce+"]*)","g");function Oe(Ae,ft,xt,It){this.line=ft,this.ch=xt,this.cm=Ae,this.text=Ae.getLine(ft),this.min=It?Math.max(It.from,Ae.firstLine()):Ae.firstLine(),this.max=It?Math.min(It.to-1,Ae.lastLine()):Ae.lastLine()}function $e(Ae,ft){var xt=Ae.cm.getTokenTypeAt(Ve(Ae.line,ft));return xt&&/\btag\b/.test(xt)}function De(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 Ze(Ae){for(;;){var ft=Ae.text.indexOf(">",Ae.ch);if(ft==-1){if(De(Ae))continue;return}if(!$e(Ae,ft+1)){Ae.ch=ft+1;continue}var xt=Ae.text.lastIndexOf("/",ft),It=xt>-1&&!/\S/.test(Ae.text.slice(xt+1,ft));return Ae.ch=ft+1,It?"selfClose":"regular"}}function Ee(Ae){for(;;){var ft=Ae.ch?Ae.text.lastIndexOf("<",Ae.ch-1):-1;if(ft==-1){if(he(Ae))continue;return}if(!$e(Ae,ft+1)){Ae.ch=ft;continue}be.lastIndex=ft,Ae.ch=ft;var xt=be.exec(Ae.text);if(xt&&xt.index==ft)return xt}}function mt(Ae){for(;;){be.lastIndex=Ae.ch;var ft=be.exec(Ae.text);if(!ft){if(De(Ae))continue;return}if(!$e(Ae,ft.index+1)){Ae.ch=ft.index+1;continue}return Ae.ch=ft.index+ft[0].length,ft}}function Qe(Ae){for(;;){var ft=Ae.ch?Ae.text.lastIndexOf(">",Ae.ch-1):-1;if(ft==-1){if(he(Ae))continue;return}if(!$e(Ae,ft+1)){Ae.ch=ft;continue}var xt=Ae.text.lastIndexOf("/",ft),It=xt>-1&&!/\S/.test(Ae.text.slice(xt+1,ft));return Ae.ch=ft+1,It?"selfClose":"regular"}}function Me(Ae,ft){for(var xt=[];;){var It=mt(Ae),pt,Re=Ae.line,lt=Ae.ch-(It?It[0].length:0);if(!It||!(pt=Ze(Ae)))return;if(pt!="selfClose")if(It[1]){for(var Ke=xt.length-1;Ke>=0;--Ke)if(xt[Ke]==It[2]){xt.length=Ke;break}if(Ke<0&&(!ft||ft==It[2]))return{tag:It[2],from:Ve(Re,lt),to:Ve(Ae.line,Ae.ch)}}else xt.push(It[2])}}function Ne(Ae,ft){for(var xt=[];;){var It=Qe(Ae);if(!It)return;if(It=="selfClose"){Ee(Ae);continue}var pt=Ae.line,Re=Ae.ch,lt=Ee(Ae);if(!lt)return;if(lt[1])xt.push(lt[2]);else{for(var Ke=xt.length-1;Ke>=0;--Ke)if(xt[Ke]==lt[2]){xt.length=Ke;break}if(Ke<0&&(!ft||ft==lt[2]))return{tag:lt[2],from:Ve(Ae.line,Ae.ch),to:Ve(pt,Re)}}}}E.registerHelper("fold","xml",function(Ae,ft){for(var xt=new Oe(Ae,ft.line,0);;){var It=mt(xt);if(!It||xt.line!=ft.line)return;var pt=Ze(xt);if(!pt)return;if(!It[1]&&pt!="selfClose"){var Re=Ve(xt.line,xt.ch),lt=Me(xt,It[2]);return lt&&ge(lt.from,Re)>0?{from:Re,to:lt.from}:null}}}),E.findMatchingTag=function(Ae,ft,xt){var It=new Oe(Ae,ft.line,ft.ch,xt);if(!(It.text.indexOf(">")==-1&&It.text.indexOf("<")==-1)){var pt=Ze(It),Re=pt&&Ve(It.line,It.ch),lt=pt&&Ee(It);if(!(!pt||!lt||ge(It,ft)>0)){var Ke={from:Ve(It.line,It.ch),to:Re,tag:lt[2]};return pt=="selfClose"?{open:Ke,close:null,at:"open"}:lt[1]?{open:Ne(It,lt[2]),close:Ke,at:"close"}:(It=new Oe(Ae,Re.line,Re.ch,xt),{open:Ke,close:Me(It,lt[2]),at:"open"})}}},E.findEnclosingTag=function(Ae,ft,xt,It){for(var pt=new Oe(Ae,ft.line,ft.ch,xt);;){var Re=Ne(pt,It);if(!Re)break;var lt=new Oe(Ae,ft.line,ft.ch,xt),Ke=Me(lt,Re.tag);if(Ke)return{open:Re,close:Ke}}},E.scanForClosingTag=function(Ae,ft,xt,It){var pt=new Oe(Ae,ft.line,ft.ch,It?{from:0,to:It}:null);return Me(pt,xt)}})},89780:function(nn){(function(jt,ie){nn.exports=ie()})(this,function(){"use strict";var jt=navigator.userAgent,ie=navigator.platform,E=/gecko\/\d/i.test(jt),Ve=/MSIE \d/.test(jt),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt),Je=/Edge\/(\d+)/.exec(jt),Ce=Ve||ge||Je,be=Ce&&(Ve?document.documentMode||6:+(Je||ge)[1]),Oe=!Je&&/WebKit\//.test(jt),$e=Oe&&/Qt\/\d+\.\d+/.test(jt),De=!Je&&/Chrome\//.test(jt),he=/Opera\//.test(jt),Ze=/Apple Computer/.test(navigator.vendor),Ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(jt),mt=/PhantomJS/.test(jt),Qe=!Je&&/AppleWebKit/.test(jt)&&/Mobile\/\w+/.test(jt),Me=/Android/.test(jt),Ne=Qe||Me||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(jt),Ae=Qe||/Mac/.test(ie),ft=/\bCrOS\b/.test(jt),xt=/win/i.test(ie),It=he&&jt.match(/Version\/(\d*\.\d*)/);It&&(It=Number(It[1])),It&&It>=15&&(he=!1,Oe=!0);var pt=Ae&&($e||he&&(It==null||It<12.11)),Re=E||Ce&&be>=9;function lt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ke=function(a,y){var x=a.className,b=lt(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 Ot(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function at(a,y){return Ot(a).appendChild(y)}function Ue(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 re=0;re<y.length;++re)z.appendChild(y[re]);return z}function Ct(a,y,x,b){var z=Ue(a,y,x,b);return z.setAttribute("role","presentation"),z}var He;document.createRange?He=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:He=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 it(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function nt(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function de(a,y){var x=a.className;lt(y).test(x)||(a.className+=(x?" ":"")+y)}function Et(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!lt(x[b]).test(y)&&(y+=" "+x[b]);return y}var ke=function(a){a.select()};Qe?ke=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ce&&(ke=function(a){try{a.select()}catch(y){}});function Le(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function bt(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 ve(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var re=b||0,le=z||0;;){var ce=a.indexOf(" ",re);if(ce<0||ce>=y)return le+(y-re);le+=ce-re,le+=x-le%x,re=ce+1}}var ue=function(){this.id=null,this.f=null,this.time=0,this.handler=Le(this.onTimeout,this)};ue.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ue.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 rt(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Nt=50,yt={toString:function(){return"CodeMirror.Pass"}},Ie={scroll:!1},Xe={origin:"*mouse"},qe={origin:"+move"};function en(a,y,x){for(var b=0,z=0;;){var re=a.indexOf(" ",b);re==-1&&(re=a.length);var le=re-b;if(re==a.length||z+le>=y)return b+Math.min(le,y-z);if(z+=re-b,z+=x-z%x,b=re+1,z>=y)return b}}var Ft=[""];function _t(a){for(;Ft.length<=a;)Ft.push(je(Ft)+" ");return Ft[a]}function je(a){return a[a.length-1]}function Ht(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function gt(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&&bt(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 ye(a){return a.charCodeAt(0)>=768&&pe.test(a)}function ct(a,y,x){for(;(x<0?y>0:y<a.length)&&ye(a.charAt(y));)y+=x;return y}function Pe(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,re=b<0?Math.ceil(z):Math.floor(z);if(re==y)return a(re)?y:x;a(re)?x=re:y=re+b}}function Ge(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,re=0;re<a.length;++re){var le=a[re];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",re),z=!0)}z||b(y,x,"ltr")}var dt=null;function Pt(a,y,x){var b;dt=null;for(var z=0;z<a.length;++z){var re=a[z];if(re.from<y&&re.to>y)return z;re.to==y&&(re.from!=re.to&&x=="before"?b=z:dt=z),re.from==y&&(re.from!=re.to&&x!="before"?b=z:dt=z)}return b!=null?b:dt}var St=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(me){return me<=247?a.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?y.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,re=/[LRr]/,le=/[Lb1n]/,ce=/[1n]/;function fe(me,Ye,ut){this.level=me,this.from=Ye,this.to=ut}return function(me,Ye){var ut=Ye=="ltr"?"L":"R";if(me.length==0||Ye=="ltr"&&!b.test(me))return!1;for(var zt=me.length,At=[],mn=0;mn<zt;++mn)At.push(x(me.charCodeAt(mn)));for(var Bn=0,$n=ut;Bn<zt;++Bn){var Xn=At[Bn];Xn=="m"?At[Bn]=$n:$n=Xn}for(var dr=0,Yn=ut;dr<zt;++dr){var vr=At[dr];vr=="1"&&Yn=="r"?At[dr]="n":re.test(vr)&&(Yn=vr,vr=="r"&&(At[dr]="R"))}for(var Pr=1,Ir=At[0];Pr<zt-1;++Pr){var Rr=At[Pr];Rr=="+"&&Ir=="1"&&At[Pr+1]=="1"?At[Pr]="1":Rr==","&&Ir==At[Pr+1]&&(Ir=="1"||Ir=="n")&&(At[Pr]=Ir),Ir=Rr}for(var Kr=0;Kr<zt;++Kr){var yi=At[Kr];if(yi==",")At[Kr]="N";else if(yi=="%"){var Qr=void 0;for(Qr=Kr+1;Qr<zt&&At[Qr]=="%";++Qr);for(var Wi=Kr&&At[Kr-1]=="!"||Qr<zt&&At[Qr]=="1"?"1":"N",Ti=Kr;Ti<Qr;++Ti)At[Ti]=Wi;Kr=Qr-1}}for(var ui=0,Ai=ut;ui<zt;++ui){var Ci=At[ui];Ai=="L"&&Ci=="1"?At[ui]="L":re.test(Ci)&&(Ai=Ci)}for(var hi=0;hi<zt;++hi)if(z.test(At[hi])){var ci=void 0;for(ci=hi+1;ci<zt&&z.test(At[ci]);++ci);for(var qr=(hi?At[hi-1]:ut)=="L",Ni=(ci<zt?At[ci]:ut)=="L",Vo=qr==Ni?qr?"L":"R":ut,xo=hi;xo<ci;++xo)At[xo]=Vo;hi=ci-1}for(var Ii=[],io,bi=0;bi<zt;)if(le.test(At[bi])){var bl=bi;for(++bi;bi<zt&&le.test(At[bi]);++bi);Ii.push(new fe(0,bl,bi))}else{var uo=bi,Oo=Ii.length,Do=Ye=="rtl"?1:0;for(++bi;bi<zt&&At[bi]!="L";++bi);for(var Oi=uo;Oi<bi;)if(ce.test(At[Oi])){uo<Oi&&(Ii.splice(Oo,0,new fe(1,uo,Oi)),Oo+=Do);var Go=Oi;for(++Oi;Oi<bi&&ce.test(At[Oi]);++Oi);Ii.splice(Oo,0,new fe(2,Go,Oi)),Oo+=Do,uo=Oi}else++Oi;uo<bi&&Ii.splice(Oo,0,new fe(1,uo,bi))}return Ye=="ltr"&&(Ii[0].level==1&&(io=me.match(/^\s+/))&&(Ii[0].from=io[0].length,Ii.unshift(new fe(0,0,io[0].length))),je(Ii).level==1&&(io=me.match(/\s+$/))&&(je(Ii).to-=io[0].length,Ii.push(new fe(0,zt-io[0].length,zt)))),Ye=="rtl"?Ii.reverse():Ii}}();function xe(a,y){var x=a.order;return x==null&&(x=a.order=St(a.text,y)),x}var Be=[],Tt=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]||Be).concat(x)}};function kt(a,y){return a._handlers&&a._handlers[y]||Be}function Gt(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 re=rt(z,x);re>-1&&(b[y]=z.slice(0,re).concat(z.slice(re+1)))}}}function Qt(a,y){var x=kt(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 wt(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Qt(a,x||y.type,a,y),Sn(y)||y.codemirrorIgnore}function Kt(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)rt(x,y[b])==-1&&x.push(y[b])}function Lt(a,y){return kt(a,y).length>0}function Jt(a){a.prototype.on=function(y,x){Tt(this,y,x)},a.prototype.off=function(y,x){Gt(this,y,x)}}function sn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function vn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Sn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Fe(a){sn(a),vn(a)}function ht(a){return a.target||a.srcElement}function Bt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ae&&a.ctrlKey&&y==1&&(y=3),y}var Vt=function(){if(Ce&&be<9)return!1;var a=Ue("div");return"draggable"in a||"dragDrop"in a}(),cn;function bn(a){if(cn==null){var y=Ue("span","\u200B");at(a,Ue("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(cn=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ce&&be<8))}var x=cn?Ue("span","\u200B"):Ue("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var Zn;function zn(a){if(Zn!=null)return Zn;var y=at(a,document.createTextNode("A\u062EA")),x=He(y,0,1).getBoundingClientRect(),b=He(y,1,2).getBoundingClientRect();return Ot(a),!x||x.left==x.right?!1:Zn=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 re=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),le=re.indexOf("\r");le!=-1?(x.push(re.slice(0,le)),y+=le+1):(x.push(re),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},En=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},Pn=function(){var a=Ue("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),_n=null;function On(a){if(_n!=null)return _n;var y=at(a,Ue("span","x")),x=y.getBoundingClientRect(),b=He(y,0,1).getBoundingClientRect();return _n=Math.abs(x.left-b.left)>1}var Tn={},an={};function Cn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Tn[a]=y}function fn(a,y){an[a]=y}function kn(a){if(typeof a=="string"&&an.hasOwnProperty(a))a=an[a];else if(a&&typeof a.name=="string"&&an.hasOwnProperty(a.name)){var y=an[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 kn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return kn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function lr(a,y){y=kn(y);var x=Tn[y.name];if(!x)return lr(a,"text/plain");var b=x(a,y);if(er.hasOwnProperty(y.name)){var z=er[y.name];for(var re in z)z.hasOwnProperty(re)&&(b.hasOwnProperty(re)&&(b["_"+re]=b[re]),b[re]=z[re])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var er={};function Gn(a,y){var x=er.hasOwnProperty(a)?er[a]:er[a]={};bt(y,x)}function sr(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 hr(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 yr(a,y,x){return a.startState?a.startState(y,x):!0}var ur=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};ur.prototype.eol=function(){return this.pos>=this.string.length},ur.prototype.sol=function(){return this.pos==this.lineStart},ur.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ur.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ur.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},ur.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},ur.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},ur.prototype.skipToEnd=function(){this.pos=this.string.length},ur.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},ur.prototype.backUp=function(a){this.pos-=a},ur.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},ur.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},ur.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 re=this.string.slice(this.pos).match(a);return re&&re.index>0?null:(re&&y!==!1&&(this.pos+=re[0].length),re)}},ur.prototype.current=function(){return this.string.slice(this.start,this.pos)},ur.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},ur.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},ur.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function $t(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],re=z.chunkSize();if(y<re){x=z;break}y-=re}return x.lines[y]}function un(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(re){var le=re.text;z==x.line&&(le=le.slice(0,x.ch)),z==y.line&&(le=le.slice(y.ch)),b.push(le),++z}),b}function jn(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function mr(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=rt(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 ot(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],re=z.height;if(y<re){a=z;continue e}y-=re,x+=z.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ce=a.lines[le],fe=ce.height;if(y<fe)break;y-=fe}return x+le}function Se(a,y){return y>=a.first&&y<a.first+a.size}function We(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function we(a,y,x){if(x===void 0&&(x=null),!(this instanceof we))return new we(a,y,x);this.line=a,this.ch=y,this.sticky=x}function _e(a,y){return a.line-y.line||a.ch-y.ch}function vt(a,y){return a.sticky==y.sticky&&_e(a,y)==0}function on(a){return we(a.line,a.ch)}function ln(a,y){return _e(a,y)<0?y:a}function gn(a,y){return _e(a,y)<0?a:y}function Rt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Mt(a,y){if(y.line<a.first)return we(a.first,0);var x=a.first+a.size-1;return y.line>x?we(x,$t(a,x).text.length):Dt(y,$t(a,y.line).text.length)}function Dt(a,y){var x=a.ch;return x==null||x>y?we(a.line,y):x<0?we(a.line,0):a}function dn(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Mt(a,y[b]);return x}var et=function(a,y){this.state=a,this.lookAhead=y},tt=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};tt.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},tt.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}},tt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},tt.fromSaved=function(a,y,x){return y instanceof et?new tt(a,sr(a.mode,y.state),x,y.lookAhead):new tt(a,sr(a.mode,y),x)},tt.prototype.save=function(a){var y=a!==!1?sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new et(y,this.maxLookAhead):y};function Te(a,y,x,b){var z=[a.state.modeGen],re={};Hn(a,y.text,a.doc.mode,x,function(me,Ye){return z.push(me,Ye)},re,b);for(var le=x.state,ce=function(me){x.baseTokens=z;var Ye=a.state.overlays[me],ut=1,zt=0;x.state=!0,Hn(a,y.text,Ye.mode,x,function(At,mn){for(var Bn=ut;zt<At;){var $n=z[ut];$n>At&&z.splice(ut,1,At,z[ut+1],$n),ut+=2,zt=Math.min(At,$n)}if(mn)if(Ye.opaque)z.splice(Bn,ut-Bn,At,"overlay "+mn),ut=Bn+2;else for(;Bn<ut;Bn+=2){var Xn=z[Bn+1];z[Bn+1]=(Xn?Xn+" ":"")+"overlay "+mn}},re),x.state=le,x.baseTokens=null,x.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)ce(fe);return{styles:z,classes:re.bgClass||re.textClass?re:null}}function Xt(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Ln(a,ze(y)),z=y.text.length>a.options.maxHighlightLength&&sr(a.doc.mode,b.state),re=Te(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=re.styles,re.classes?y.styleClasses=re.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Ln(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new tt(b,!0,y);var re=Un(a,y,x),le=re>b.first&&$t(b,re-1).stateAfter,ce=le?tt.fromSaved(b,le,re):new tt(b,yr(b.mode),re);return b.iter(re,y,function(fe){Vn(a,fe.text,ce);var me=ce.line;fe.stateAfter=me==y-1||me%5==0||me>=z.viewFrom&&me<z.viewTo?ce.save():null,ce.nextLine()}),x&&(b.modeFrontier=ce.line),ce}function Vn(a,y,x,b){var z=a.doc.mode,re=new ur(y,a.options.tabSize,x);for(re.start=re.pos=b||0,y==""&&yn(z,x.state);!re.eol();)Wt(z,re,x.state),re.start=re.pos}function yn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=hr(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Wt(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=hr(a,x).mode);var re=a.token(y,x);if(y.pos>y.start)return re}throw new Error("Mode "+a.name+" failed to advance stream.")}var st=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function xn(a,y,x,b){var z=a.doc,re=z.mode,le;y=Mt(z,y);var ce=$t(z,y.line),fe=Ln(a,y.line,x),me=new ur(ce.text,a.options.tabSize,fe),Ye;for(b&&(Ye=[]);(b||me.pos<y.ch)&&!me.eol();)me.start=me.pos,le=Wt(re,me,fe.state),b&&Ye.push(new st(me,le,sr(z.mode,fe.state)));return b?Ye:new st(me,le,fe.state)}function An(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 Hn(a,y,x,b,z,re,le){var ce=x.flattenSpans;ce==null&&(ce=a.options.flattenSpans);var fe=0,me=null,Ye=new ur(y,a.options.tabSize,b),ut,zt=a.options.addModeClass&&[null];for(y==""&&An(yn(x,b.state),re);!Ye.eol();){if(Ye.pos>a.options.maxHighlightLength?(ce=!1,le&&Vn(a,y,b,Ye.pos),Ye.pos=y.length,ut=null):ut=An(Wt(x,Ye,b.state,zt),re),zt){var At=zt[0].name;At&&(ut="m-"+(ut?At+" "+ut:At))}if(!ce||me!=ut){for(;fe<Ye.start;)fe=Math.min(Ye.start,fe+5e3),z(fe,me);me=ut}Ye.start=Ye.pos}for(;fe<Ye.pos;){var mn=Math.min(Ye.pos,fe+5e3);z(mn,me),fe=mn}}function Un(a,y,x){for(var b,z,re=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ce=y;ce>le;--ce){if(ce<=re.first)return re.first;var fe=$t(re,ce-1),me=fe.stateAfter;if(me&&(!x||ce+(me instanceof et?me.lookAhead:0)<=re.modeFrontier))return ce;var Ye=ve(fe.text,null,a.options.tabSize);(z==null||b>Ye)&&(z=ce-1,b=Ye)}return z}function Jn(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=$t(a,b).stateAfter;if(z&&(!(z instanceof et)||b+z.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var pn=!1,Wn=!1;function tr(){pn=!0}function or(){Wn=!0}function nr(a,y,x){this.marker=a,this.from=y,this.to=x}function pr(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function br(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function Kn(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function ar(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var re=a[z],le=re.marker,ce=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||!re.marker.insertLeft)){var fe=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);(b||(b=[])).push(new nr(le,re.from,fe?null:re.to))}}return b}function Fn(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var re=a[z],le=re.marker,ce=re.to==null||(le.inclusiveRight?re.to>=y:re.to>y);if(ce||re.from==y&&le.type=="bookmark"&&(!x||re.marker.insertLeft)){var fe=re.from==null||(le.inclusiveLeft?re.from<=y:re.from<y);(b||(b=[])).push(new nr(le,fe?null:re.from-y,re.to==null?null:re.to-y))}}return b}function rr(a,y){if(y.full)return null;var x=Se(a,y.from.line)&&$t(a,y.from.line).markedSpans,b=Se(a,y.to.line)&&$t(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,re=y.to.ch,le=_e(y.from,y.to)==0,ce=ar(x,z,le),fe=Fn(b,re,le),me=y.text.length==1,Ye=je(y.text).length+(me?z:0);if(ce)for(var ut=0;ut<ce.length;++ut){var zt=ce[ut];if(zt.to==null){var At=pr(fe,zt.marker);At?me&&(zt.to=At.to==null?null:At.to+Ye):zt.to=z}}if(fe)for(var mn=0;mn<fe.length;++mn){var Bn=fe[mn];if(Bn.to!=null&&(Bn.to+=Ye),Bn.from==null){var $n=pr(ce,Bn.marker);$n||(Bn.from=Ye,me&&(ce||(ce=[])).push(Bn))}else Bn.from+=Ye,me&&(ce||(ce=[])).push(Bn)}ce&&(ce=Cr(ce)),fe&&fe!=ce&&(fe=Cr(fe));var Xn=[ce];if(!me){var dr=y.text.length-2,Yn;if(dr>0&&ce)for(var vr=0;vr<ce.length;++vr)ce[vr].to==null&&(Yn||(Yn=[])).push(new nr(ce[vr].marker,null,null));for(var Pr=0;Pr<dr;++Pr)Xn.push(Yn);Xn.push(fe)}return Xn}function Cr(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 Qn(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(At){if(At.markedSpans)for(var mn=0;mn<At.markedSpans.length;++mn){var Bn=At.markedSpans[mn].marker;Bn.readOnly&&(!b||rt(b,Bn)==-1)&&(b||(b=[])).push(Bn)}}),!b)return null;for(var z=[{from:y,to:x}],re=0;re<b.length;++re)for(var le=b[re],ce=le.find(0),fe=0;fe<z.length;++fe){var me=z[fe];if(!(_e(me.to,ce.from)<0||_e(me.from,ce.to)>0)){var Ye=[fe,1],ut=_e(me.from,ce.from),zt=_e(me.to,ce.to);(ut<0||!le.inclusiveLeft&&!ut)&&Ye.push({from:me.from,to:ce.from}),(zt>0||!le.inclusiveRight&&!zt)&&Ye.push({from:ce.to,to:me.to}),z.splice.apply(z,Ye),fe+=Ye.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 qn(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function In(a){return a.inclusiveLeft?-1:0}function cr(a){return a.inclusiveRight?1:0}function fr(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),z=y.find(),re=_e(b.from,z.from)||In(a)-In(y);if(re)return-re;var le=_e(b.to,z.to)||cr(a)-cr(y);return le||y.id-a.id}function xr(a,y){var x=Wn&&a.markedSpans,b;if(x)for(var z=void 0,re=0;re<x.length;++re)z=x[re],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||fr(b,z.marker)<0)&&(b=z.marker);return b}function Mn(a){return xr(a,!0)}function Ut(a){return xr(a,!1)}function tn(a,y){var x=Wn&&a.markedSpans,b;if(x)for(var z=0;z<x.length;++z){var re=x[z];re.marker.collapsed&&(re.from==null||re.from<y)&&(re.to==null||re.to>y)&&(!b||fr(b,re.marker)<0)&&(b=re.marker)}return b}function Yt(a,y,x,b,z){var re=$t(a,y),le=Wn&&re.markedSpans;if(le)for(var ce=0;ce<le.length;++ce){var fe=le[ce];if(fe.marker.collapsed){var me=fe.marker.find(0),Ye=_e(me.from,x)||In(fe.marker)-In(z),ut=_e(me.to,b)||cr(fe.marker)-cr(z);if(!(Ye>=0&&ut<=0||Ye<=0&&ut>=0)&&(Ye<=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?_e(me.to,x)>=0:_e(me.to,x)>0)||Ye>=0&&(fe.marker.inclusiveRight&&z.inclusiveLeft?_e(me.from,b)<=0:_e(me.from,b)<0)))return!0}}}function Zt(a){for(var y;y=Mn(a);)a=y.find(-1,!0).line;return a}function wn(a){for(var y;y=Ut(a);)a=y.find(1,!0).line;return a}function Rn(a){for(var y,x;y=Ut(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function qt(a,y){var x=$t(a,y),b=Zt(x);return x==b?y:ze(b)}function hn(a,y){if(y>a.lastLine())return y;var x=$t(a,y),b;if(!Dn(a,x))return y;for(;b=Ut(x);)x=b.find(1,!0).line;return ze(x)+1}function Dn(a,y){var x=Wn&&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&&Nn(a,y,b))return!0}}}function Nn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Nn(a,b.line,pr(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,re=0;re<y.markedSpans.length;++re)if(z=y.markedSpans[re],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&Nn(a,y,z))return!0}function Sr(a){a=Zt(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 re=x.parent;re;x=re,re=x.parent)for(var le=0;le<re.children.length;++le){var ce=re.children[le];if(ce==x)break;y+=ce.height}return y}function Tr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Mn(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=Ut(b);){var re=x.find(0,!0);y-=b.text.length-re.from.ch,b=re.to.line,y+=b.text.length-re.to.ch}return y}function Dr(a){var y=a.display,x=a.doc;y.maxLine=$t(x,x.first),y.maxLineLength=Tr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var z=Tr(b);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var Lr=function(a,y,x){this.text=a,qn(this,y),this.height=x?x(this):1};Lr.prototype.lineNo=function(){return ze(this)},Jt(Lr);function Nr(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),qn(a,x);var z=b?b(a):1;z!=a.height&&mr(a,z)}function Fr(a){a.parent=null,Er(a)}var zr={},$r={};function jr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?$r:zr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Xr(a,y){var x=Ct("span",null,null,Oe?"padding-right: .1px":null),b={pre:Ct("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 re=z?y.rest[z-1]:y.line,le=void 0;b.pos=0,b.addToken=oi,zn(a.display.measure)&&(le=xe(re,a.doc.direction))&&(b.addToken=ai(b.addToken,le)),b.map=[];var ce=y!=a.display.externalMeasured&&ze(re);gr(re,b,Xt(a,re,ce)),re.styleClasses&&(re.styleClasses.bgClass&&(b.bgClass=Et(re.styleClasses.bgClass,b.bgClass||"")),re.styleClasses.textClass&&(b.textClass=Et(re.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(bn(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(Oe){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 Qt(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Et(b.pre.className,b.textClass||"")),b}function ei(a){var y=Ue("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function oi(a,y,x,b,z,re,le){if(y){var ce=a.splitSpaces?ti(y,a.trailingSpace):y,fe=a.cm.state.specialChars,me=!1,Ye;if(!fe.test(y))a.col+=y.length,Ye=document.createTextNode(ce),a.map.push(a.pos,a.pos+y.length,Ye),Ce&&be<9&&(me=!0),a.pos+=y.length;else{Ye=document.createDocumentFragment();for(var ut=0;;){fe.lastIndex=ut;var zt=fe.exec(y),At=zt?zt.index-ut:y.length-ut;if(At){var mn=document.createTextNode(ce.slice(ut,ut+At));Ce&&be<9?Ye.appendChild(Ue("span",[mn])):Ye.appendChild(mn),a.map.push(a.pos,a.pos+At,mn),a.col+=At,a.pos+=At}if(!zt)break;ut+=At+1;var Bn=void 0;if(zt[0]==" "){var $n=a.cm.options.tabSize,Xn=$n-a.col%$n;Bn=Ye.appendChild(Ue("span",_t(Xn),"cm-tab")),Bn.setAttribute("role","presentation"),Bn.setAttribute("cm-text"," "),a.col+=Xn}else zt[0]=="\r"||zt[0]==`
|
|
|
`?(Bn=Ye.appendChild(Ue("span",zt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Bn.setAttribute("cm-text",zt[0]),a.col+=1):(Bn=a.cm.options.specialCharPlaceholder(zt[0]),Bn.setAttribute("cm-text",zt[0]),Ce&&be<9?Ye.appendChild(Ue("span",[Bn])):Ye.appendChild(Bn),a.col+=1);a.map.push(a.pos,a.pos+1,Bn),a.pos++}}if(a.trailingSpace=ce.charCodeAt(y.length-1)==32,x||b||z||me||re||le){var dr=x||"";b&&(dr+=b),z&&(dr+=z);var Yn=Ue("span",[Ye],dr,re);if(le)for(var vr in le)le.hasOwnProperty(vr)&&vr!="style"&&vr!="class"&&Yn.setAttribute(vr,le[vr]);return a.content.appendChild(Yn)}a.content.appendChild(Ye)}}function ti(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var re=a.charAt(z);re==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(re="\xA0"),b+=re,x=re==" "}return b}function ai(a,y){return function(x,b,z,re,le,ce,fe){z=z?z+" cm-force-border":"cm-force-border";for(var me=x.pos,Ye=me+b.length;;){for(var ut=void 0,zt=0;zt<y.length&&(ut=y[zt],!(ut.to>me&&ut.from<=me));zt++);if(ut.to>=Ye)return a(x,b,z,re,le,ce,fe);a(x,b.slice(0,ut.to-me),z,re,null,ce,fe),re=null,b=b.slice(ut.to-me),me=ut.to}}}function wr(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 gr(a,y,x){var b=a.markedSpans,z=a.text,re=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,z.slice(re,re=x[le]),jr(x[le+1],y.cm.options));return}for(var ce=z.length,fe=0,me=1,Ye="",ut,zt,At=0,mn,Bn,$n,Xn,dr;;){if(At==fe){mn=Bn=$n=zt="",dr=null,Xn=null,At=1/0;for(var Yn=[],vr=void 0,Pr=0;Pr<b.length;++Pr){var Ir=b[Pr],Rr=Ir.marker;if(Rr.type=="bookmark"&&Ir.from==fe&&Rr.widgetNode)Yn.push(Rr);else if(Ir.from<=fe&&(Ir.to==null||Ir.to>fe||Rr.collapsed&&Ir.to==fe&&Ir.from==fe)){if(Ir.to!=null&&Ir.to!=fe&&At>Ir.to&&(At=Ir.to,Bn=""),Rr.className&&(mn+=" "+Rr.className),Rr.css&&(zt=(zt?zt+";":"")+Rr.css),Rr.startStyle&&Ir.from==fe&&($n+=" "+Rr.startStyle),Rr.endStyle&&Ir.to==At&&(vr||(vr=[])).push(Rr.endStyle,Ir.to),Rr.title&&((dr||(dr={})).title=Rr.title),Rr.attributes)for(var Kr in Rr.attributes)(dr||(dr={}))[Kr]=Rr.attributes[Kr];Rr.collapsed&&(!Xn||fr(Xn.marker,Rr)<0)&&(Xn=Ir)}else Ir.from>fe&&At>Ir.from&&(At=Ir.from)}if(vr)for(var yi=0;yi<vr.length;yi+=2)vr[yi+1]==At&&(Bn+=" "+vr[yi]);if(!Xn||Xn.from==fe)for(var Qr=0;Qr<Yn.length;++Qr)wr(y,0,Yn[Qr]);if(Xn&&(Xn.from||0)==fe){if(wr(y,(Xn.to==null?ce+1:Xn.to)-fe,Xn.marker,Xn.from==null),Xn.to==null)return;Xn.to==fe&&(Xn=!1)}}if(fe>=ce)break;for(var Wi=Math.min(ce,At);;){if(Ye){var Ti=fe+Ye.length;if(!Xn){var ui=Ti>Wi?Ye.slice(0,Wi-fe):Ye;y.addToken(y,ui,ut?ut+mn:mn,$n,fe+ui.length==At?Bn:"",zt,dr)}if(Ti>=Wi){Ye=Ye.slice(Wi-fe),fe=Wi;break}fe=Ti,$n=""}Ye=z.slice(re,re=x[me++]),ut=jr(x[me++],y.cm.options)}}}function Zr(a,y,x){this.line=y,this.rest=Rn(y),this.size=this.rest?ze(je(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Dn(a,y)}function _r(a,y,x){for(var b=[],z,re=y;re<x;re=z){var le=new Zr(a.doc,$t(a.doc,re),re);z=re+le.size,b.push(le)}return b}var li=null;function Xi(a){li?li.ops.push(a):a.ownsGroup=li={ops:[a],delayedCallbacks:[]}}function Bi(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 Si(a,y){var x=a.ownsGroup;if(x)try{Bi(x)}finally{li=null,y(x)}}var pi=null;function Gr(a,y){var x=kt(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;li?z=li.delayedCallbacks:pi?z=pi:(z=pi=[],setTimeout(di,0));for(var re=function(ce){z.push(function(){return x[ce].apply(null,b)})},le=0;le<x.length;++le)re(le)}}function di(){var a=pi;pi=null;for(var y=0;y<a.length;++y)a[y]()}function Vi(a,y,x,b){for(var z=0;z<y.changes.length;z++){var re=y.changes[z];re=="text"?Fi(a,y):re=="gutter"?Mr(a,y,x,b):re=="class"?Br(a,y):re=="widget"&&Or(a,y,b)}y.changes=null}function Li(a){return a.node==a.text&&(a.node=Ue("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ce&&be<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=Li(y);y.background=b.insertBefore(Ue("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function oo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):Xr(a,y)}function Fi(a,y){var x=y.text.className,b=oo(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,Br(a,y)):x&&(y.text.className=x)}function Br(a,y){Jr(a,y),y.line.wrapClass?Li(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 Mr(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=Li(y);y.gutterBackground=Ue("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 re=y.line.gutterMarkers;if(a.options.lineNumbers||re){var le=Li(y),ce=y.gutter=Ue("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ce),le.insertBefore(ce,y.text),y.line.gutterClass&&(ce.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(y.lineNumber=ce.appendChild(Ue("div",We(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),re)for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var me=a.display.gutterSpecs[fe].className,Ye=re.hasOwnProperty(me)&&re[me];Ye&&ce.appendChild(Ue("div",[Ye],"CodeMirror-gutter-elt","left: "+b.gutterLeft[me]+"px; width: "+b.gutterWidth[me]+"px"))}}}function Or(a,y,x){y.alignable&&(y.alignable=null);for(var b=lt("CodeMirror-linewidget"),z=y.node.firstChild,re=void 0;z;z=re)re=z.nextSibling,b.test(z.className)&&y.node.removeChild(z);kr(a,y,x)}function ir(a,y,x,b){var z=oo(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),Br(a,y),Mr(a,y,x,b),kr(a,y,b),y.node}function kr(a,y,x){if(Wr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Wr(a,y.rest[b],y,x,!1)}function Wr(a,y,x,b,z){if(y.widgets)for(var re=Li(x),le=0,ce=y.widgets;le<ce.length;++le){var fe=ce[le],me=Ue("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||me.setAttribute("cm-ignore-events","true"),Ri(fe,me,x,b),a.display.input.setUneditable(me),z&&fe.above?re.insertBefore(me,x.gutter||x.text):re.appendChild(me),Gr(fe,"redraw")}}function Ri(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 mi(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!it(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;"),at(y.display.measure,Ue("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function si(a,y){for(var x=ht(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 ni(a){return a.lineSpace.offsetTop}function Gi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function to(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=at(a.measure,Ue("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 $i(a){return Nt-a.display.nativeBarWidth}function no(a){return a.display.scroller.clientWidth-$i(a)-a.display.barWidth}function ao(a){return a.display.scroller.clientHeight-$i(a)-a.display.barHeight}function Yi(a,y,x){var b=a.options.lineWrapping,z=b&&no(a);if(!y.measure.heights||b&&y.measure.width!=z){var re=y.measure.heights=[];if(b){y.measure.width=z;for(var le=y.text.firstChild.getClientRects(),ce=0;ce<le.length-1;ce++){var fe=le[ce],me=le[ce+1];Math.abs(fe.bottom-me.bottom)>2&&re.push((fe.bottom+me.top)/2-x.top)}}re.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 _a(a,y){y=Zt(y);var x=ze(y),b=a.display.externalMeasured=new Zr(a.doc,y,x);b.lineN=x;var z=b.built=Xr(a,b);return b.text=z.pre,at(a.display.lineMeasure,z.pre),b}function ya(a,y,x,b){return Ui(a,co(a,y),x,b)}function ro(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 co(a,y){var x=ze(y),b=ro(a,x);b&&!b.text?b=null:b&&b.changes&&(Vi(a,b,x,fo(a)),a.curOp.forceUpdate=!0),b||(b=_a(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 Ui(a,y,x,b,z){y.before&&(x=-1);var re=x+(b||""),le;return y.cache.hasOwnProperty(re)?le=y.cache[re]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Yi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[re]=le)),{left:le.left,right:le.right,top: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,re,le,ce,fe,me=0;me<a.length;me+=3)if(ce=a[me],fe=a[me+1],y<ce?(z=0,re=1,le="left"):y<fe?(z=y-ce,re=z+1):(me==a.length-3||y==fe&&a[me+3]>y)&&(re=fe-ce,z=re-1,y>=fe&&(le="right")),z!=null){if(b=a[me+2],ce==fe&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&z==0)for(;me&&a[me-2]==a[me-3]&&a[me-1].insertLeft;)b=a[(me-=3)+2],le="left";if(x=="right"&&z==fe-ce)for(;me<a.length-3&&a[me+3]==a[me+4]&&!a[me+5].insertLeft;)b=a[(me+=3)+2],le="right";break}return{node:b,start:z,end:re,collapse:le,coverStart:ce,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),re=z.node,le=z.start,ce=z.end,fe=z.collapse,me;if(re.nodeType==3){for(var Ye=0;Ye<4;Ye++){for(;le&&ye(y.line.text.charAt(z.coverStart+le));)--le;for(;z.coverStart+ce<z.coverEnd&&ye(y.line.text.charAt(z.coverStart+ce));)++ce;if(Ce&&be<9&&le==0&&ce==z.coverEnd-z.coverStart?me=re.parentNode.getBoundingClientRect():me=Va(He(re,le,ce).getClientRects(),b),me.left||me.right||le==0)break;ce=le,le=le-1,fe="right"}Ce&&be<11&&(me=Ga(a.display.measure,me))}else{le>0&&(fe=b="right");var ut;a.options.lineWrapping&&(ut=re.getClientRects()).length>1?me=ut[b=="right"?ut.length-1:0]:me=re.getBoundingClientRect()}if(Ce&&be<9&&!le&&(!me||!me.left&&!me.right)){var zt=re.parentNode.getClientRects()[0];zt?me={left:zt.left,right:zt.left+Qi(a.display),top:zt.top,bottom:zt.bottom}:me=ba}for(var At=me.top-y.rect.top,mn=me.bottom-y.rect.top,Bn=(At+mn)/2,$n=y.view.measure.heights,Xn=0;Xn<$n.length-1&&!(Bn<$n[Xn]);Xn++);var dr=Xn?$n[Xn-1]:0,Yn=$n[Xn],vr={left:(fe=="right"?me.right:me.left)-y.rect.left,right:(fe=="left"?me.left:me.right)-y.rect.left,top:dr,bottom:Yn};return!me.left&&!me.right&&(vr.bogus=!0),a.options.singleCursorHeightPerLine||(vr.rtop=At,vr.rbottom=mn),vr}function Ga(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!On(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,Ot(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 De&&Me?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return De&&Me?-(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+=mi(a.widgets[x]));return y}function ko(a,y,x,b,z){if(!z){var re=Yo(y);x.top+=re,x.bottom+=re}if(b=="line")return x;b||(b="local");var le=Sr(y);if(b=="local"?le+=ni(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ce=a.display.lineSpace.getBoundingClientRect();le+=ce.top+(b=="window"?0:Sa());var fe=ce.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 re=a.display.sizer.getBoundingClientRect();b+=re.left,z+=re.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=$t(a.doc,y.line)),ko(a,b,ya(a,b,y.ch,z),x)}function Di(a,y,x,b,z,re){b=b||$t(a.doc,y.line),z||(z=co(a,b));function le(mn,Bn){var $n=Ui(a,z,mn,Bn?"right":"left",re);return Bn?$n.left=$n.right:$n.right=$n.left,ko(a,b,$n,x)}var ce=xe(b,a.doc.direction),fe=y.ch,me=y.sticky;if(fe>=b.text.length?(fe=b.text.length,me="before"):fe<=0&&(fe=0,me="after"),!ce)return le(me=="before"?fe-1:fe,me=="before");function Ye(mn,Bn,$n){var Xn=ce[Bn],dr=Xn.level==1;return le($n?mn-1:mn,dr!=$n)}var ut=Pt(ce,fe,me),zt=dt,At=Ye(fe,ut,me=="before");return zt!=null&&(At.other=Ye(fe,zt,me!="before")),At}function Hr(a,y){var x=0;y=Mt(a.doc,y),a.options.lineWrapping||(x=Qi(a.display)*y.ch);var b=$t(a.doc,y.line),z=Sr(b)+ni(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function Ar(a,y,x,b,z){var re=we(a,y,x);return re.xRel=z,b&&(re.outside=b),re}function xi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return Ar(b.first,0,null,-1,-1);var z=ot(b,x),re=b.first+b.size-1;if(z>re)return Ar(b.first+b.size-1,$t(b,re).text.length,null,1,1);y<0&&(y=0);for(var le=$t(b,z);;){var ce=Ji(a,le,z,y,x),fe=tn(le,ce.ch+(ce.xRel>0||ce.outside>0?1:0));if(!fe)return ce;var me=fe.find(1);if(me.line==z)return me;le=$t(b,z=me.line)}}function wi(a,y,x,b){b-=Yo(y);var z=y.text.length,re=Pe(function(le){return Ui(a,x,le-1).bottom<=b},z,0);return z=Pe(function(le){return Ui(a,x,le).top>b},re,z),{begin:re,end:z}}function ri(a,y,x,b){x||(x=co(a,y));var z=ko(a,y,Ui(a,x,b),"line").top;return wi(a,y,x,z)}function fi(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Ji(a,y,x,b,z){z-=Sr(y);var re=co(a,y),le=Yo(y),ce=0,fe=y.text.length,me=!0,Ye=xe(y,a.doc.direction);if(Ye){var ut=(a.options.lineWrapping?lo:Ki)(a,y,x,re,Ye,b,z);me=ut.level!=1,ce=me?ut.from:ut.to-1,fe=me?ut.to:ut.from-1}var zt=null,At=null,mn=Pe(function(Pr){var Ir=Ui(a,re,Pr);return Ir.top+=le,Ir.bottom+=le,fi(Ir,b,z,!1)?(Ir.top<=z&&Ir.left<=b&&(zt=Pr,At=Ir),!0):!1},ce,fe),Bn,$n,Xn=!1;if(At){var dr=b-At.left<At.right-b,Yn=dr==me;mn=zt+(Yn?0:1),$n=Yn?"after":"before",Bn=dr?At.left:At.right}else{!me&&(mn==fe||mn==ce)&&mn++,$n=mn==0?"after":mn==y.text.length?"before":Ui(a,re,mn-(me?1:0)).bottom+le<=z==me?"after":"before";var vr=Di(a,we(x,mn,$n),"line",y,re);Bn=vr.left,Xn=z<vr.top?-1:z>=vr.bottom?1:0}return mn=ct(y.text,mn,1),Ar(x,mn,$n,Xn,b-Bn)}function Ki(a,y,x,b,z,re,le){var ce=Pe(function(ut){var zt=z[ut],At=zt.level!=1;return fi(Di(a,we(x,At?zt.to:zt.from,At?"before":"after"),"line",y,b),re,le,!0)},0,z.length-1),fe=z[ce];if(ce>0){var me=fe.level!=1,Ye=Di(a,we(x,me?fe.from:fe.to,me?"after":"before"),"line",y,b);fi(Ye,re,le,!0)&&Ye.top>le&&(fe=z[ce-1])}return fe}function lo(a,y,x,b,z,re,le){var ce=wi(a,y,b,le),fe=ce.begin,me=ce.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Ye=null,ut=null,zt=0;zt<z.length;zt++){var At=z[zt];if(!(At.from>=me||At.to<=fe)){var mn=At.level!=1,Bn=Ui(a,b,mn?Math.min(me,At.to)-1:Math.max(fe,At.from)).right,$n=Bn<re?re-Bn+1e9:Bn-re;(!Ye||ut>$n)&&(Ye=At,ut=$n)}}return Ye||(Ye=z[z.length-1]),Ye.from<fe&&(Ye={from:fe,to:Ye.to,level:Ye.level}),Ye.to>me&&(Ye={from:Ye.from,to:me,level:Ye.level}),Ye}var zi;function Hi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(zi==null){zi=Ue("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)zi.appendChild(document.createTextNode("x")),zi.appendChild(Ue("br"));zi.appendChild(document.createTextNode("x"))}at(a.measure,zi);var x=zi.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),Ot(a.measure),x||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ue("span","xxxxxxxxxx"),x=Ue("pre",[y],"CodeMirror-line-like");at(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function fo(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,re=y.gutters.firstChild,le=0;re;re=re.nextSibling,++le){var ce=a.display.gutterSpecs[le].className;x[ce]=re.offsetLeft+re.clientLeft+z,b[ce]=re.clientWidth}return{fixedPos:Ua(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Ua(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=Hi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(z){if(Dn(a.doc,z))return 0;var re=0;if(z.widgets)for(var le=0;le<z.widgets.length;le++)z.widgets[le].height&&(re+=z.widgets[le].height);return x?re+(Math.ceil(z.text.length/b)||1)*y:re+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var z=x(b);z!=b.height&&mr(b,z)})}function So(a,y,x,b){var z=a.display;if(!x&&ht(y).getAttribute("cm-not-content")=="true")return null;var re,le,ce=z.lineSpace.getBoundingClientRect();try{re=y.clientX-ce.left,le=y.clientY-ce.top}catch(ut){return null}var fe=xi(a,re,le),me;if(b&&fe.xRel>0&&(me=$t(a.doc,fe.line).text).length==fe.ch){var Ye=ve(me,me.length,a.options.tabSize)-me.length;fe=we(fe.line,Math.max(0,Math.round((re-to(a.display).left)/Qi(a.display))-Ye))}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 Mi(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)Wn&&qt(a.doc,y)<z.viewTo&&po(a);else if(x<=z.viewFrom)Wn&&hn(a.doc,x+b)>z.viewFrom?po(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)po(a);else if(y<=z.viewFrom){var re=Ea(a,x,x+b,1);re?(z.view=z.view.slice(re.index),z.viewFrom=re.lineN,z.viewTo+=b):po(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):po(a)}else{var ce=Ea(a,y,y,-1),fe=Ea(a,x,x+b,1);ce&&fe?(z.view=z.view.slice(0,ce.index).concat(_r(a,ce.lineN,fe.lineN)).concat(z.view.slice(fe.index)),z.viewTo+=b):po(a)}var me=z.externalMeasured;me&&(x<me.lineN?me.lineN+=b:y<me.lineN+me.size&&(z.externalMeasured=null))}function ho(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 re=b.view[wo(a,y)];if(re.node!=null){var le=re.changes||(re.changes=[]);rt(le,x)==-1&&le.push(x)}}}function po(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),re,le=a.display.view;if(!Wn||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var ce=a.display.viewFrom,fe=0;fe<z;fe++)ce+=le[fe].size;if(ce!=y){if(b>0){if(z==le.length-1)return null;re=ce+le[z].size-y,z++}else re=ce-y;y+=re,x+=re}for(;qt(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 zs(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=_r(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=_r(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(_r(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 Jo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),re=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var ce=x.sel.ranges[le];if(!(ce.from().line>=a.display.viewTo||ce.to().line<a.display.viewFrom)){var fe=ce.empty();(fe||a.options.showCursorWhenSelecting)&&El(a,ce.head,z),fe||Hs(a,ce,re)}}return b}function El(a,y,x){var b=Di(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(Ue("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 re=x.appendChild(Ue("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));re.style.display="",re.style.left=b.other.left+"px",re.style.top=b.other.top+"px",re.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function Hs(a,y,x){var b=a.display,z=a.doc,re=document.createDocumentFragment(),le=to(a.display),ce=le.left,fe=Math.max(b.sizerWidth,no(a)-b.sizer.offsetLeft)-le.right,me=z.direction=="ltr";function Ye(Yn,vr,Pr,Ir){vr<0&&(vr=0),vr=Math.round(vr),Ir=Math.round(Ir),re.appendChild(Ue("div",null,"CodeMirror-selected","position: absolute; left: "+Yn+`px;
|
|
|
top: `+vr+"px; width: "+(Pr==null?fe-Yn:Pr)+`px;
|
|
|
height: `+(Ir-vr)+"px"))}function ut(Yn,vr,Pr){var Ir=$t(z,Yn),Rr=Ir.text.length,Kr,yi;function Qr(ui,Ai){return To(a,we(Yn,ui),"div",Ir,Ai)}function Wi(ui,Ai,Ci){var hi=ri(a,Ir,null,ui),ci=Ai=="ltr"==(Ci=="after")?"left":"right",qr=Ci=="after"?hi.begin:hi.end-(/\s/.test(Ir.text.charAt(hi.end-1))?2:1);return Qr(qr,ci)[ci]}var Ti=xe(Ir,z.direction);return Ge(Ti,vr||0,Pr==null?Rr:Pr,function(ui,Ai,Ci,hi){var ci=Ci=="ltr",qr=Qr(ui,ci?"left":"right"),Ni=Qr(Ai-1,ci?"right":"left"),Vo=vr==null&&ui==0,xo=Pr==null&&Ai==Rr,Ii=hi==0,io=!Ti||hi==Ti.length-1;if(Ni.top-qr.top<=3){var bi=(me?Vo:xo)&&Ii,bl=(me?xo:Vo)&&io,uo=bi?ce:(ci?qr:Ni).left,Oo=bl?fe:(ci?Ni:qr).right;Ye(uo,qr.top,Oo-uo,qr.bottom)}else{var Do,Oi,Go,xl;ci?(Do=me&&Vo&&Ii?ce:qr.left,Oi=me?fe:Wi(ui,Ci,"before"),Go=me?ce:Wi(Ai,Ci,"after"),xl=me&&xo&&io?fe:Ni.right):(Do=me?Wi(ui,Ci,"before"):ce,Oi=!me&&Vo&&Ii?fe:qr.right,Go=!me&&xo&&io?ce:Ni.left,xl=me?Wi(Ai,Ci,"after"):fe),Ye(Do,qr.top,Oi-Do,qr.bottom),qr.bottom<Ni.top&&Ye(ce,qr.bottom,null,Ni.top),Ye(Go,Ni.top,xl-Go,Ni.bottom)}(!Kr||Ia(qr,Kr)<0)&&(Kr=qr),Ia(Ni,Kr)<0&&(Kr=Ni),(!yi||Ia(qr,yi)<0)&&(yi=qr),Ia(Ni,yi)<0&&(yi=Ni)}),{start:Kr,end:yi}}var zt=y.from(),At=y.to();if(zt.line==At.line)ut(zt.line,zt.ch,At.ch);else{var mn=$t(z,zt.line),Bn=$t(z,At.line),$n=Zt(mn)==Zt(Bn),Xn=ut(zt.line,zt.ch,$n?mn.text.length+1:null).end,dr=ut(At.line,$n?0:null,At.ch).start;$n&&(Xn.top<dr.top-2?(Ye(Xn.right,Xn.top,null,Xn.bottom),Ye(ce,dr.top,dr.left,dr.bottom)):Ye(Xn.right,Xn.top,dr.left-Xn.right,Xn.bottom)),Xn.bottom<dr.top&&Ye(ce,Xn.bottom,null,dr.top)}x.appendChild(re)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Ao(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 Bl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ao(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Qt(a,"focus",a,y),a.state.focused=!0,de(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Oe&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Ao(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Qt(a,"blur",a,y),a.state.focused=!1,Ke(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ba(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],re=a.options.lineWrapping,le=void 0,ce=0;if(!z.hidden){if(Ce&&be<8){var fe=z.node.offsetTop+z.node.offsetHeight;le=fe-x,x=fe}else{var me=z.node.getBoundingClientRect();le=me.bottom-me.top,!re&&z.text.firstChild&&(ce=z.text.firstChild.getBoundingClientRect().right-me.left-1)}var Ye=z.line.height-le;if((Ye>.005||Ye<-.005)&&(mr(z.line,le),Pl(z.line),z.rest))for(var ut=0;ut<z.rest.length;ut++)Pl(z.rest[ut]);if(ce>a.display.sizerWidth){var zt=Math.ceil(ce/Qi(a.display));zt>a.display.maxLineLength&&(a.display.maxLineLength=zt,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Pl(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 Pa(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-ni(a));var z=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,re=ot(y,b),le=ot(y,z);if(x&&x.ensure){var ce=x.ensure.from.line,fe=x.ensure.to.line;ce<re?(re=ce,le=ot(y,Sr($t(y,ce))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=le&&(re=ot(y,Sr($t(y,fe))-a.wrapper.clientHeight),le=fe)}return{from:re,to:Math.max(le,re+1)}}function js(a,y){if(!wt(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&&!mt){var re=Ue("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-x.viewOffset-ni(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+$i(a)+x.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(re),re.scrollIntoView(z),a.display.lineSpace.removeChild(re)}}}function Ws(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?we(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?we(y.line,y.ch+1,"before"):y);for(var re=0;re<5;re++){var le=!1,ce=Di(a,y),fe=!x||x==y?ce:Di(a,x);z={left:Math.min(ce.left,fe.left),top:Math.min(ce.top,fe.top)-b,right:Math.max(ce.left,fe.left),bottom:Math.max(ce.bottom,fe.bottom)+b};var me=Ja(a,z),Ye=a.doc.scrollTop,ut=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Ye)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-ut)>1&&(le=!0)),!le)break}return z}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=Hi(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,re=ao(a),le={};y.bottom-y.top>re&&(y.bottom=y.top+re);var ce=a.doc.height+Gi(x),fe=y.top<b,me=y.bottom>ce-b;if(y.top<z)le.scrollTop=fe?0:y.top;else if(y.bottom>z+re){var Ye=Math.min(y.top,(me?ce:y.bottom)-re);Ye!=z&&(le.scrollTop=Ye)}var ut=a.options.fixedGutter?0:x.gutters.offsetWidth,zt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-ut,At=no(a)-x.gutters.offsetWidth,mn=y.right-y.left>At;return mn&&(y.right=y.left+At),y.left<10?le.scrollLeft=0:y.left<zt?le.scrollLeft=Math.max(0,y.left+ut-(mn?0:10)):y.right>At+zt-3&&(le.scrollLeft=y.right+(mn?0:10)-At),le}function Qa(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function No(a){Oa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Hr(a,y.from),b=Hr(a,y.to);Ol(a,x,b,y.margin)}}function Ol(a,y,x,b){var z=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,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,Nl(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+Gi(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+$i(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=Ue("div",[Ue("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Ue("div",[Ue("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),Tt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Tt(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ce&&be<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 re=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=Ae&&!Ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ue,this.disableVert=new ue},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),re=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);re!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function Lo(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&&Ba(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 kl={native:Io,null:ta};function Tl(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ke(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new kl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Tt(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&&de(a.display.wrapper,a.display.scrollbars.addClass)}var Vs=0;function Bo(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},Xi(a.curOp)}function Po(a){var y=a.curOp;y&&Si(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 re=0;re<y.length;re++)Ys(y[re]);for(var le=0;le<y.length;le++)Js(y[le])}function Us(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&Dr(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&&Ba(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+$i(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-no(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==nt();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Lo(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Al(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=Ws(y,Mt(b,a.scrollToPos.from),Mt(b,a.scrollToPos.to),a.scrollToPos.margin);js(y,z)}var re=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(re)for(var ce=0;ce<re.length;++ce)re[ce].lines.length||Qt(re[ce],"hide");if(le)for(var fe=0;fe<le.length;++fe)le[fe].lines.length&&Qt(le[fe],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Qt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ji(a,y){if(a.curOp)return y();Bo(a);try{return y()}finally{Po(a)}}function gi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Bo(a);try{return y.apply(a,arguments)}finally{Po(a)}}}function Pi(a){return function(){if(this.curOp)return a.apply(this,arguments);Bo(this);try{return a.apply(this,arguments)}finally{Po(this)}}}function vi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Bo(y);try{return a.apply(this,arguments)}finally{Po(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Le(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Ln(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(re){if(b.line>=a.display.viewFrom){var le=re.styles,ce=re.text.length>a.options.maxHighlightLength?sr(y.mode,b.state):null,fe=Te(a,re,b,!0);ce&&(b.state=ce),re.styles=fe.styles;var me=re.styleClasses,Ye=fe.classes;Ye?re.styleClasses=Ye:me&&(re.styleClasses=null);for(var ut=!le||le.length!=re.styles.length||me!=Ye&&(!me||!Ye||me.bgClass!=Ye.bgClass||me.textClass!=Ye.textClass),zt=0;!ut&&zt<le.length;++zt)ut=le[zt]!=re.styles[zt];ut&&z.push(b.line),re.stateAfter=b.save(),b.nextLine()}else re.text.length<=a.options.maxHighlightLength&&Vn(a,re.text,b),re.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&ji(a,function(){for(var re=0;re<z.length;re++)ho(a,z[re],"text")})}}var Da=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Pa(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=no(a),this.force=x,this.dims=fo(a),this.events=[]};Da.prototype.signal=function(a,y){Lt(a,y)&&this.events.push(arguments)},Da.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Qt.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=$i(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=$i(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=nt();if(!y||!it(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&it(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==nt())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&it(document.body,a.anchorNode)&&it(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 po(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;Ll(a)&&(po(a),y.dims=fo(a));var z=b.first+b.size,re=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<re&&re-x.viewFrom<20&&(re=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(z,x.viewTo)),Wn&&(re=qt(a.doc,re),le=hn(a.doc,le));var ce=re!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,re,le),x.viewOffset=Sr($t(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var fe=Sl(a);if(!ce&&fe==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var me=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(me),Ot(x.cursorDiv),Ot(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ce&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Al(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==no(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Gi(a.display)-ao(a),x.top)}),y.visible=Pa(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Pa(a.display,a.doc,x));if(!qa(a,y))break;Ba(a);var z=ea(a);Jo(a),Lo(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)){Ba(a),Al(a,x);var b=ea(a);Jo(a),Lo(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,z=a.options.lineNumbers,re=b.lineDiv,le=re.firstChild;function ce(mn){var Bn=mn.nextSibling;return Oe&&Ae&&a.display.currentWheelTarget==mn?mn.style.display="none":mn.parentNode.removeChild(mn),Bn}for(var fe=b.view,me=b.viewFrom,Ye=0;Ye<fe.length;Ye++){var ut=fe[Ye];if(!ut.hidden)if(!ut.node||ut.node.parentNode!=re){var zt=ir(a,ut,me,x);re.insertBefore(zt,le)}else{for(;le!=ut.node;)le=ce(le);var At=z&&y!=null&&y<=me&&ut.lineNumber;ut.changes&&(rt(ut.changes,"gutter")>-1&&(At=!1),Vi(a,ut,me,x)),At&&(Ot(ut.lineNumber),ut.lineNumber.appendChild(document.createTextNode(We(a.options,me)))),le=ut.node.nextSibling}me+=ut.size}for(;le;)le=ce(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+$i(a)+"px"}function Nl(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,re=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=re),x[le].gutterBackground&&(x[le].gutterBackground.style.left=re));var ce=x[le].alignable;if(ce)for(var fe=0;fe<ce.length;fe++)ce[fe].style.left=re}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function Ll(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=We(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(Ue("div",[Ue("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=z.firstChild.offsetWidth,le=z.offsetWidth-re;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(re,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,z=0;z<a.length;z++){var re=a[z],le=null;if(typeof re!="string"&&(le=re.style,re=re.className),re=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:re,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Fl(a){var y=a.gutters,x=a.gutterSpecs;Ot(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],re=z.className,le=z.style,ce=y.appendChild(Ue("div",null,"CodeMirror-gutter "+re));le&&(ce.style.cssText=le),re=="CodeMirror-linenumbers"&&(a.lineGutter=ce,ce.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Fl(a.display),Mi(a),Nl(a)}function ru(a,y,x,b){var z=this;this.input=x,z.scrollbarFiller=Ue("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Ue("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=Ct("div",null,"CodeMirror-code"),z.selectionDiv=Ue("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Ue("div",null,"CodeMirror-cursors"),z.measure=Ue("div",null,"CodeMirror-measure"),z.lineMeasure=Ue("div",null,"CodeMirror-measure"),z.lineSpace=Ct("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var re=Ct("div",[z.lineSpace],"CodeMirror-lines");z.mover=Ue("div",[re],null,"position: relative"),z.sizer=Ue("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Ue("div",null,null,"position: absolute; height: "+Nt+"px; width: 1px;"),z.gutters=Ue("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Ue("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Ue("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ce&&be<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Oe&&!(E&&Ne)&&(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),Fl(z),x.init(z)}var Ma=0,Zi=null;Ce?Zi=-.53:E?Zi=15:De?Zi=-.7:Ze&&(Zi=-1/3);function Rl(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=Rl(a);return y.x*=Zi,y.y*=Zi,y}function $l(a,y){var x=Rl(y),b=x.x,z=x.y,re=a.display,le=re.scroller,ce=le.scrollWidth>le.clientWidth,fe=le.scrollHeight>le.clientHeight;if(b&&ce||z&&fe){if(z&&Ae&&Oe){e:for(var me=y.target,Ye=re.view;me!=le;me=me.parentNode)for(var ut=0;ut<Ye.length;ut++)if(Ye[ut].node==me){a.display.currentWheelTarget=me;break e}}if(b&&!E&&!he&&Zi!=null){z&&fe&&qo(a,Math.max(0,le.scrollTop+z*Zi)),Eo(a,Math.max(0,le.scrollLeft+b*Zi)),(!z||z&&fe)&&sn(y),re.wheelStartX=null;return}if(z&&Zi!=null){var zt=z*Zi,At=a.doc.scrollTop,mn=At+re.wrapper.clientHeight;zt<0?At=Math.max(0,At+zt-50):mn=Math.min(a.doc.height,mn+zt+50),el(a,{top:At,bottom:mn})}Ma<20&&(re.wheelStartX==null?(re.wheelStartX=le.scrollLeft,re.wheelStartY=le.scrollTop,re.wheelDX=b,re.wheelDY=z,setTimeout(function(){if(re.wheelStartX!=null){var Bn=le.scrollLeft-re.wheelStartX,$n=le.scrollTop-re.wheelStartY,Xn=$n&&re.wheelDY&&$n/re.wheelDY||Bn&&re.wheelDX&&Bn/re.wheelDX;re.wheelStartX=re.wheelStartY=null,Xn&&(Zi=(Zi*Ma+Xn)/(Ma+1),++Ma)}},200)):(re.wheelDX+=b,re.wheelDY+=z))}}var _i=function(a,y){this.ranges=a,this.primIndex=y};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.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(!vt(x.anchor,b.anchor)||!vt(x.head,b.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Vr(on(this.ranges[y].anchor),on(this.ranges[y].head));return new _i(a,this.primIndex)},_i.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},_i.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(_e(y,b.from())>=0&&_e(a,b.to())<=0)return x}return-1};var Vr=function(a,y){this.anchor=a,this.head=y};Vr.prototype.from=function(){return gn(this.anchor,this.head)},Vr.prototype.to=function(){return ln(this.anchor,this.head)},Vr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function qi(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(zt,At){return _e(zt.from(),At.from())}),x=rt(y,z);for(var re=1;re<y.length;re++){var le=y[re],ce=y[re-1],fe=_e(ce.to(),le.from());if(b&&!le.empty()?fe>0:fe>=0){var me=gn(ce.from(),le.from()),Ye=ln(ce.to(),le.to()),ut=ce.empty()?le.from()==le.head:ce.from()==ce.head;re<=x&&--x,y.splice(--re,2,new Vr(ut?Ye:me,ut?me:Ye))}}return new _i(y,x)}function mo(a,y){return new _i([new Vr(a,y||a)],0)}function go(a){return a.text?we(a.from.line+a.text.length-1,je(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(_e(a,y.from)<0)return a;if(_e(a,y.to)<=0)return go(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+=go(y).ch-y.to.ch),we(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 Vr(zl(z.anchor,y),zl(z.head,y)))}return qi(a.cm,x,a.sel.primIndex)}function Hl(a,y,x){return a.line==y.line?we(x.line,a.ch-y.ch+x.ch):we(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],z=we(a.first,0),re=z,le=0;le<y.length;le++){var ce=y[le],fe=Hl(ce.from,z,re),me=Hl(go(ce),z,re);if(z=ce.to,re=me,x=="around"){var Ye=a.sel.ranges[le],ut=_e(Ye.head,Ye.anchor)<0;b[le]=new Vr(ut?me:fe,ut?fe:me)}else b[le]=new Vr(fe,fe)}return new _i(b,a.sel.primIndex)}function ol(a){a.doc.mode=lr(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&&Mi(a)}function jl(a,y){return y.from.ch==0&&y.to.ch==0&&je(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function z(dr){return x?x[dr]:null}function re(dr,Yn,vr){Nr(dr,Yn,vr,b),Gr(dr,"change",dr,y)}function le(dr,Yn){for(var vr=[],Pr=dr;Pr<Yn;++Pr)vr.push(new Lr(me[Pr],z(Pr),b));return vr}var ce=y.from,fe=y.to,me=y.text,Ye=$t(a,ce.line),ut=$t(a,fe.line),zt=je(me),At=z(me.length-1),mn=fe.line-ce.line;if(y.full)a.insert(0,le(0,me.length)),a.remove(me.length,a.size-me.length);else if(jl(a,y)){var Bn=le(0,me.length-1);re(ut,ut.text,At),mn&&a.remove(ce.line,mn),Bn.length&&a.insert(ce.line,Bn)}else if(Ye==ut)if(me.length==1)re(Ye,Ye.text.slice(0,ce.ch)+zt+Ye.text.slice(fe.ch),At);else{var $n=le(1,me.length-1);$n.push(new Lr(zt+Ye.text.slice(fe.ch),At,b)),re(Ye,Ye.text.slice(0,ce.ch)+me[0],z(0)),a.insert(ce.line+1,$n)}else if(me.length==1)re(Ye,Ye.text.slice(0,ce.ch)+me[0]+ut.text.slice(fe.ch),z(0)),a.remove(ce.line+1,mn);else{re(Ye,Ye.text.slice(0,ce.ch)+me[0],z(0)),re(ut,zt+ut.text.slice(fe.ch),At);var Xn=le(1,me.length-1);mn>1&&a.remove(ce.line+1,mn-1),a.insert(ce.line+1,Xn)}Gr(a,"change",a,y)}function vo(a,y,x){function b(z,re,le){if(z.linked)for(var ce=0;ce<z.linked.length;++ce){var fe=z.linked[ce];if(fe.doc!=re){var me=le&&fe.sharedHist;x&&!me||(y(fe.doc,me),b(fe.doc,z,me))}}}b(a,null,!0)}function Wl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),Zl(a),a.options.lineWrapping||Dr(a),a.options.mode=y.modeOption,Mi(a)}function Zl(a){(a.doc.direction=="rtl"?de:Ke)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){ji(a,function(){Zl(a),Mi(a)})}function ka(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:on(y.from),to:go(y),text:un(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 _l(a){for(;a.length;){var y=je(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return _l(a.done),je(a.done);if(a.done.length&&!je(a.done).ranges)return je(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),je(a.done)}function Vl(a,y,x,b){var z=a.history;z.undone.length=0;var re=+new Date,le,ce;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>re-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(z,z.lastOp==b)))ce=je(le.changes),_e(y.from,y.to)==0&&_e(y.from,ce.to)==0?ce.to=go(y):le.changes.push(ll(a,y));else{var fe=je(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=re,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,ce||Qt(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,re=b&&b.origin;x==z.lastSelOp||re&&z.lastSelOrigin==re&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==re||su(a,re,je(z.done),y))?z.done[z.done.length-1]=y:Ta(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=re,z.lastSelOp=x,b&&b.clearRedo!==!1&&_l(z.undone)}function Ta(a,y){var x=je(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Gl(a,y,x,b){var z=y["spans_"+a.id],re=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]={}))[re]=le.markedSpans),++re})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],z=0;z<y.text.length;++z)b.push(cu(x[z]));return b}function Ul(a,y){var x=du(a,y),b=rr(a,y);if(!x)return b;if(!b)return x;for(var z=0;z<x.length;++z){var re=x[z],le=b[z];if(re&&le)e:for(var ce=0;ce<le.length;++ce){for(var fe=le[ce],me=0;me<re.length;++me)if(re[me].marker==fe.marker)continue e;re.push(fe)}else le&&(x[z]=le)}return x}function Fo(a,y,x){for(var b=[],z=0;z<a.length;++z){var re=a[z];if(re.ranges){b.push(x?_i.prototype.deepCopy.call(re):re);continue}var le=re.changes,ce=[];b.push({changes:ce});for(var fe=0;fe<le.length;++fe){var me=le[fe],Ye=void 0;if(ce.push({from:me.from,to:me.to,text:me.text}),y)for(var ut in me)(Ye=ut.match(/^spans_(\d+)$/))&&rt(y,Number(Ye[1]))>-1&&(je(ce)[ut]=me[ut],delete me[ut])}}return b}function sl(a,y,x,b){if(b){var z=a.anchor;if(x){var re=_e(y,z)<0;re!=_e(x,z)<0?(z=y,y=x):re!=_e(y,x)<0&&(y=x)}return new Vr(z,y)}else return new Vr(x||y,y)}function Aa(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Ei(a,new _i([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),re=0;re<a.sel.ranges.length;re++)b[re]=sl(a.sel.ranges[re],y[re],null,z);var le=qi(a.cm,b,a.sel.primIndex);Ei(a,le,x)}function ul(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,Ei(a,qi(a.cm,z,a.sel.primIndex),b)}function Xl(a,y,x,b){Ei(a,mo(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(z){this.ranges=[];for(var re=0;re<z.length;re++)this.ranges[re]=new Vr(Mt(a,z[re].anchor),Mt(a,z[re].head))},origin:x&&x.origin};return Qt(a,"beforeSelectionChange",a,b),a.cm&&Qt(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?qi(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,z=je(b);z&&z.ranges?(b[b.length-1]=y,Na(a,y,x)):Ei(a,y,x)}function Ei(a,y,x){Na(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Na(a,y,x){(Lt(a,"beforeSelectionChange")||a.cm&&Lt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(_e(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&No(a.cm)}function Jl(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Kt(a.cm)),Gr(a,"cursorActivity",a))}function Ql(a){Jl(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var z,re=0;re<y.ranges.length;re++){var le=y.ranges[re],ce=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[re],fe=La(a,le.anchor,ce&&ce.anchor,x,b),me=La(a,le.head,ce&&ce.head,x,b);(z||fe!=le.anchor||me!=le.head)&&(z||(z=y.ranges.slice(0,re)),z[re]=new Vr(fe,me))}return z?qi(a.cm,z,y.primIndex):y}function Ro(a,y,x,b,z){var re=$t(a,y.line);if(re.markedSpans)for(var le=0;le<re.markedSpans.length;++le){var ce=re.markedSpans[le],fe=ce.marker,me="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,Ye="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((ce.from==null||(me?ce.from<=y.ch:ce.from<y.ch))&&(ce.to==null||(Ye?ce.to>=y.ch:ce.to>y.ch))){if(z&&(Qt(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(re.markedSpans){--le;continue}else break;if(!fe.atomic)continue;if(x){var ut=fe.find(b<0?1:-1),zt=void 0;if((b<0?Ye:me)&&(ut=es(a,ut,-b,ut&&ut.line==y.line?re:null)),ut&&ut.line==y.line&&(zt=_e(ut,x))&&(b<0?zt<0:zt>0))return Ro(a,ut,y,b,z)}var At=fe.find(b<0?-1:1);return(b<0?me:Ye)&&(At=es(a,At,b,At.line==y.line?re:null)),At?Ro(a,At,y,b,z):null}}return y}function La(a,y,x,b,z){var re=b||1,le=Ro(a,y,x,re,z)||!z&&Ro(a,y,x,re,!0)||Ro(a,y,x,-re,z)||!z&&Ro(a,y,x,-re,!0);return le||(a.cantEdit=!0,we(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Mt(a,we(y.line-1)):null:x>0&&y.ch==(b||$t(a,y.line)).text.length?y.line<a.first+a.size-1?we(y.line+1,0):null:new we(y.line,y.ch+x)}function ts(a){a.setSelection(we(a.firstLine(),0),we(a.lastLine()),Ie)}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,re,le,ce){z&&(b.from=Mt(a,z)),re&&(b.to=Mt(a,re)),le&&(b.text=le),ce!==void 0&&(b.origin=ce)}),Qt(a,"beforeChange",a,b),a.cm&&Qt(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 gi(a.cm,$o)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Lt(a,"beforeChange")||a.cm&&Lt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=pn&&!x&&Qn(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]==""&&_e(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,rr(a,y));var b=[];vo(a,function(z,re){!re&&rt(b,z.history)==-1&&(ls(z.history,y),b.push(z.history)),oa(z,y,null,rr(z,y))})}}function Fa(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,re,le=a.sel,ce=y=="undo"?z.done:z.undone,fe=y=="undo"?z.undone:z.done,me=0;me<ce.length&&(re=ce[me],!(x?re.ranges&&!re.equals(a.sel):!re.ranges));me++);if(me!=ce.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(re=ce.pop(),re.ranges){if(Ta(re,fe),x&&!re.equals(a.sel)){Ei(a,re,{clearRedo:!1});return}le=re}else if(b){ce.push(re);return}else break;var Ye=[];Ta(le,fe),fe.push({changes:Ye,generation:z.generation}),z.generation=re.generation||++z.maxGeneration;for(var ut=Lt(a,"beforeChange")||a.cm&&Lt(a.cm,"beforeChange"),zt=function(Bn){var $n=re.changes[Bn];if($n.origin=y,ut&&!ns(a,$n,!1))return ce.length=0,{};Ye.push(ll(a,$n));var Xn=Bn?il(a,$n):je(ce);oa(a,$n,Xn,Ul(a,$n)),!Bn&&a.cm&&a.cm.scrollIntoView({from:$n.from,to:go($n)});var dr=[];vo(a,function(Yn,vr){!vr&&rt(dr,Yn.history)==-1&&(ls(Yn.history,$n),dr.push(Yn.history)),oa(Yn,$n,null,Ul(Yn,$n))})},At=re.changes.length-1;At>=0;--At){var mn=zt(At);if(mn)return mn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new _i(Ht(a.sel.ranges,function(z){return new Vr(we(z.anchor.line+y,z.anchor.ch),we(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Mi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)ho(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return gi(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:we(a.first,0),to:we(y.to.line+z,y.to.ch),text:[je(y.text)],origin:y.origin}}var re=a.lastLine();y.to.line>re&&(y={from:y.from,to:we(re,$t(a,re).text.length),text:[y.text[0]],origin:y.origin}),y.removed=un(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Na(a,x,Ie),a.cantEdit&&La(a,we(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,z=a.display,re=y.from,le=y.to,ce=!1,fe=re.line;a.options.lineWrapping||(fe=ze(Zt($t(b,re.line))),b.iter(fe,le.line+1,function(At){if(At==z.maxLine)return ce=!0,!0})),b.sel.contains(y.from,y.to)>-1&&Kt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(fe,re.line+y.text.length,function(At){var mn=Tr(At);mn>z.maxLineLength&&(z.maxLine=At,z.maxLineLength=mn,z.maxLineChanged=!0,ce=!1)}),ce&&(a.curOp.updateMaxLine=!0)),Jn(b,re.line),na(a,400);var me=y.text.length-(le.line-re.line)-1;y.full?Mi(a):re.line==le.line&&y.text.length==1&&!jl(a.doc,y)?ho(a,re.line,"text"):Mi(a,re.line,le.line+1,me);var Ye=Lt(a,"changes"),ut=Lt(a,"change");if(ut||Ye){var zt={from:re,to:le,text:y.text,removed:y.removed,origin:y.origin};ut&&Gr(a,"change",a,zt),Ye&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(zt)}a.display.selForContextMenu=null}function zo(a,y,x,b,z){var re;b||(b=x),_e(b,x)<0&&(re=[b,x],x=re[0],b=re[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin: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 re=a[z],le=!0;if(re.ranges){re.copied||(re=a[z]=re.deepCopy(),re.copied=!0);for(var ce=0;ce<re.ranges.length;ce++)os(re.ranges[ce].anchor,y,x,b),os(re.ranges[ce].head,y,x,b);continue}for(var fe=0;fe<re.changes.length;++fe){var me=re.changes[fe];if(x<me.from.line)me.from=we(me.from.line+b,me.from.ch),me.to=we(me.to.line+b,me.to.ch);else if(y<=me.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,re=y;return typeof y=="number"?re=$t(a,Rt(a,y)):z=ze(y),z==null?null:(b(re,z)&&a.cm&&ho(a.cm,z,x),re)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var z=this.lines[x];this.height-=z.height,Fr(z),Gr(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 re=Math.min(y,z-a),le=b.height;if(b.removeInner(a,re),this.height-=le-b.height,z==re&&(this.children.splice(x--,1),b.parent=null),(y-=re)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ce=[];this.collapse(ce),this.children=[new la(ce)],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],re=z.chunkSize();if(a<=re){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var le=z.lines.length%25+25,ce=le;ce<z.lines.length;){var fe=new la(z.lines.slice(ce,ce+=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-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var z=rt(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],re=z.chunkSize();if(a<re){var le=Math.min(y,re-a);if(z.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=re}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=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 re=mi(this);mr(x,Math.max(0,x.height-re)),a&&(ji(a,function(){ss(a,x,-re),ho(a,b,"widget")}),Gr(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var z=mi(this)-y;z&&(Dn(this.doc,b)||mr(b,b.height+z),x&&ji(x,function(){x.curOp.forceUpdate=!0,ss(x,b,z),Gr(x,"lineWidgetChanged",x,a,ze(b))}))},Jt(ua);function ss(a,y,x){Sr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Qa(a,x)}function pu(a,y,x,b){var z=new ua(a,x,b),re=a.cm;return re&&z.noHScroll&&(re.display.alignWidgets=!0),aa(a,y,"widget",function(le){var ce=le.widgets||(le.widgets=[]);if(z.insertAt==null?ce.push(z):ce.splice(Math.min(ce.length-1,Math.max(0,z.insertAt)),0,z),z.line=le,re&&!Dn(a,le)){var fe=Sr(le)<a.scrollTop;mr(le,le.height+mi(z)),fe&&Qa(re,z.height),re.curOp.forceUpdate=!0}return!0}),re&&Gr(re,"lineWidgetAdded",re,z,typeof y=="number"?y:ze(y)),z}var us=0,yo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};yo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Bo(a),Lt(this,"clear")){var x=this.find();x&&Gr(this,"clear",x.from,x.to)}for(var b=null,z=null,re=0;re<this.lines.length;++re){var le=this.lines[re],ce=pr(le.markedSpans,this);a&&!this.collapsed?ho(a,ze(le),"text"):a&&(ce.to!=null&&(z=ze(le)),ce.from!=null&&(b=ze(le))),le.markedSpans=br(le.markedSpans,ce),ce.from==null&&this.collapsed&&!Dn(this.doc,le)&&a&&mr(le,Hi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var me=Zt(this.lines[fe]),Ye=Tr(me);Ye>a.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Ye,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Mi(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Gr(a,"markerCleared",a,this,b,z),y&&Po(a),this.parent&&this.parent.clear()}},yo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z<this.lines.length;++z){var re=this.lines[z],le=pr(re.markedSpans,this);if(le.from!=null&&(x=we(y?re:ze(re),le.from),a==-1))return x;if(le.to!=null&&(b=we(y?re:ze(re),le.to),a==1))return b}return x&&{from:x,to:b}},yo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||ji(b,function(){var z=y.line,re=ze(y.line),le=ro(b,re);if(le&&(Uo(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Dn(x.doc,z)&&x.height!=null){var ce=x.height;x.height=null;var fe=mi(x)-ce;fe&&mr(z,z.height+fe)}Gr(b,"markerChanged",b,a)})},yo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||rt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},yo.prototype.detachLine=function(a){if(this.lines.splice(rt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Jt(yo);function Ho(a,y,x,b,z){if(b&&b.shared)return mu(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return gi(a.cm,Ho)(a,y,x,b,z);var re=new yo(a,z),le=_e(y,x);if(b&&bt(b,re,!1),le>0||le==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=Ct("span",[re.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(Yt(a,y.line,y,x,re)||y.line!=x.line&&Yt(a,x.line,y,x,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");or()}re.addToHistory&&Vl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ce=y.line,fe=a.cm,me;if(a.iter(ce,x.line+1,function(ut){fe&&re.collapsed&&!fe.options.lineWrapping&&Zt(ut)==fe.display.maxLine&&(me=!0),re.collapsed&&ce!=y.line&&mr(ut,0),Kn(ut,new nr(re,ce==y.line?y.ch:null,ce==x.line?x.ch:null)),++ce}),re.collapsed&&a.iter(y.line,x.line+1,function(ut){Dn(a,ut)&&mr(ut,0)}),re.clearOnEnter&&Tt(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(tr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),re.collapsed&&(re.id=++us,re.atomic=!0),fe){if(me&&(fe.curOp.updateMaxLine=!0),re.collapsed)Mi(fe,y.line,x.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var Ye=y.line;Ye<=x.line;Ye++)ho(fe,Ye,"text");re.atomic&&Ql(fe.doc),Gr(fe,"markerAdded",fe,re)}return re}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Gr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Jt(ca);function mu(a,y,x,b,z){b=bt(b),b.shared=!1;var re=[Ho(a,y,x,b,z)],le=re[0],ce=b.widgetNode;return vo(a,function(fe){ce&&(b.widgetNode=ce.cloneNode(!0)),re.push(Ho(fe,Mt(fe,y),Mt(fe,x),b,z));for(var me=0;me<fe.linked.length;++me)if(fe.linked[me].isParent)return;le=je(re)}),new ca(re,le)}function cs(a){return a.findMarks(we(a.first,0),a.clipPos(we(a.lastLine())),function(y){return y.parent})}function gu(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),re=a.clipPos(z.from),le=a.clipPos(z.to);if(_e(re,le)){var ce=Ho(a,re,le,b.primary,b.primary.type);b.markers.push(ce),ce.parent=b}}}function vu(a){for(var y=function(b){var z=a[b],re=[z.primary.doc];vo(z.primary.doc,function(fe){return re.push(fe)});for(var le=0;le<z.markers.length;le++){var ce=z.markers[le];rt(re,ce.doc)==-1&&(ce.parent=null,z.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,ki=function(a,y,x,b,z){if(!(this instanceof ki))return new ki(a,y,x,b,z);x==null&&(x=0),sa.call(this,[new la([new Lr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var re=we(x,0);this.sel=mo(re),this.history=new ka(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:re,to:re,text:a}),Ei(this,mo(re),Ie)};ki.prototype=te(sa.prototype,{constructor:ki,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=jn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:vi(function(a){var y=we(this.first,0),x=this.first+this.size-1;$o(this,{from:y,to:we(x,$t(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Ei(this,mo(y),Ie)}),replaceRange:function(a,y,x,b){y=Mt(this,y),x=x?Mt(this,x):y,zo(this,a,y,x,b)},getRange:function(a,y,x){var b=un(this,Mt(this,a),Mt(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(Se(this,a))return $t(this,a)},getLineNumber:function(a){return ze(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=$t(this,a)),Zt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Mt(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:vi(function(a,y,x){Xl(this,Mt(this,typeof a=="number"?we(a,y||0):a),null,x)}),setSelection:vi(function(a,y,x){Xl(this,Mt(this,a),Mt(this,y||a),x)}),extendSelection:vi(function(a,y,x){Aa(this,Mt(this,a),y&&Mt(this,y),x)}),extendSelections:vi(function(a,y){Kl(this,dn(this,a),y)}),extendSelectionsBy:vi(function(a,y){var x=Ht(this.sel.ranges,a);Kl(this,dn(this,x),y)}),setSelections:vi(function(a,y,x){if(a.length){for(var b=[],z=0;z<a.length;z++)b[z]=new Vr(Mt(this,a[z].anchor),Mt(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Ei(this,qi(this.cm,b,y),x)}}),addSelection:vi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Vr(Mt(this,a),Mt(this,y||a))),Ei(this,qi(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=un(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=un(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:vi(function(a,y,x){for(var b=[],z=this.sel,re=0;re<z.ranges.length;re++){var le=z.ranges[re];b[re]={from:le.from(),to:le.to(),text:this.splitLines(a[re]),origin:x}}for(var ce=y&&y!="end"&&ou(this,b,y),fe=b.length-1;fe>=0;fe--)$o(this,b[fe]);ce?Yl(this,ce):this.cm&&No(this.cm)}),undo:vi(function(){Fa(this,"undo")}),redo:vi(function(){Fa(this,"redo")}),undoSelection:vi(function(){Fa(this,"undo",!0)}),redoSelection:vi(function(){Fa(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 ka(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:Fo(this.history.done),undone:Fo(this.history.undone)}},setHistory:function(a){var y=this.history=new ka(this.history.maxGeneration);y.done=Fo(a.done.slice(0),null,!0),y.undone=Fo(a.undone.slice(0),null,!0)},setGutterMarker:vi(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:vi(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(!Se(this,a)||(y=a,a=$t(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:vi(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(lt(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:vi(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",re=b[z];if(re)if(x==null)b[z]=null;else{var le=re.match(lt(x));if(!le)return!1;var ce=le.index+le[0].length;b[z]=re.slice(0,le.index)+(!le.index||ce==re.length?"":" ")+re.slice(ce)||null}else return!1;return!0})}),addLineWidget:vi(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Ho(this,Mt(this,a),Mt(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=Mt(this,a),Ho(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Mt(this,a);var y=[],x=$t(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=Mt(this,a),y=Mt(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(re){var le=re.markedSpans;if(le)for(var ce=0;ce<le.length;ce++){var fe=le[ce];!(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 re=z.text.length+b;if(re>a)return y=a,!0;a-=re,++x}),Mt(this,we(x,y))},indexFromPos:function(a){a=Mt(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 ki(jn(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 ki(jn(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}],gu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Yr&&(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),vu(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 ka(null),a.history.done=Fo(this.history.done,b),a.history.undone=Fo(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:vi(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))})}),ki.prototype.eachLine=ki.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(wt(y,a)||si(y.display,a))){sn(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,re=Array(z),le=0,ce=function(){++le==z&&gi(y,function(){x=Mt(y.doc,x);var At={from:x,to:x,text:y.doc.splitLines(re.filter(function(mn){return mn!=null}).join(y.doc.lineSeparator())),origin:"paste"};$o(y.doc,At),Yl(y.doc,mo(Mt(y.doc,x),Mt(y.doc,go(At))))})()},fe=function(At,mn){if(y.options.allowDropFileTypes&&rt(y.options.allowDropFileTypes,At.type)==-1){ce();return}var Bn=new FileReader;Bn.onerror=function(){return ce()},Bn.onload=function(){var $n=Bn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test($n)){ce();return}re[mn]=$n,ce()},Bn.readAsText(At)},me=0;me<b.length;me++)fe(b[me],me);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ye=a.dataTransfer.getData("Text");if(Ye){var ut;if(y.state.draggingText&&!y.state.draggingText.copy&&(ut=y.listSelections()),Na(y.doc,mo(x,x)),ut)for(var zt=0;zt<ut.length;++zt)zo(y.doc,"",ut[zt].anchor,ut[zt].head,"drag");y.replaceSelection(Ye,"around","paste"),y.display.input.focus()}}catch(At){}}}}function xu(a,y){if(Ce&&(!a.state.draggingText||+new Date-ds<100)){Fe(y);return}if(!(wt(a,y)||si(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Ze)){var x=Ue("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=Ue("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),at(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 re=0;re<x.length;re++)a(x[re])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;Tt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),Tt(window,"blur",function(){return hs(Ao)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var bo={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++)bo[da+48]=bo[da+96]=String(da);for(var Ra=65;Ra<=90;Ra++)bo[Ra]=String.fromCharCode(Ra);for(var fa=1;fa<=12;fa++)bo[fa+111]=bo[fa+63235]="F"+fa;var so={};so.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"},so.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"},so.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"},so.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"]},so.default=Ae?so.macDefault:so.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,re,le=0;le<y.length-1;le++){var ce=y[le];if(/^(cmd|meta|m)$/i.test(ce))re=!0;else if(/^a(lt)?$/i.test(ce))x=!0;else if(/^(c|ctrl|control)$/i.test(ce))b=!0;else if(/^s(hift)?$/i.test(ce))z=!0;else throw new Error("Unrecognized modifier name: "+ce)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),re&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Bu(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=Ht(x.split(" "),Iu),re=0;re<z.length;re++){var le=void 0,ce=void 0;re==z.length-1?(ce=z.join(" "),le=b):(ce=z.slice(0,re+1).join(" "),le="...");var fe=y[ce];if(!fe)y[ce]=le;else if(fe!=le)throw new Error("Inconsistent bindings for "+ce)}delete a[x]}for(var me in y)a[me]=y[me];return a}function jo(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 jo(a,y.fallthrough,x,b);for(var re=0;re<y.fallthrough.length;re++){var le=jo(a,y.fallthrough[re],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:bo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function gs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(pt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(pt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(he&&a.keyCode==34&&a.char)return!1;var x=bo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),gs(x,a,y))}function $a(a){return typeof a=="string"?so[a]:a}function Wo(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var re=y(x[z]);b.length&&_e(re.from,je(b).to)<=0;){var le=b.pop();if(_e(le.from,re.from)<0){re.from=le.from;break}}b.push(re)}ji(a,function(){for(var ce=b.length-1;ce>=0;ce--)zo(a.doc,"",b[ce].from,b[ce].to,"+delete");No(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 we(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var re=xe(x,y.doc.direction);if(re){var le=z<0?je(re):re[0],ce=z<0==(le.level==1),fe=ce?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Ye=co(y,x);me=z<0?x.text.length-1:0;var ut=Ui(y,Ye,me).top;me=Pe(function(zt){return Ui(y,Ye,zt).top==ut},z<0==(le.level==1)?le.from:le.to-1,me),fe=="before"&&(me=cl(x,me,1))}else me=z<0?le.to:le.from;return new we(b,me,fe)}}return new we(b,z<0?x.text.length:0,z<0?"before":"after")}function Pu(a,y,x,b){var z=xe(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 re=Pt(z,x.ch,x.sticky),le=z[re];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var ce=function(Xn,dr){return cl(y,Xn instanceof we?Xn.ch:Xn,dr)},fe,me=function(Xn){return a.options.lineWrapping?(fe=fe||co(a,y),ri(a,y,fe,Xn)):{begin:0,end:y.text.length}},Ye=me(x.sticky=="before"?ce(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var ut=le.level==1==b<0,zt=ce(x,ut?1:-1);if(zt!=null&&(ut?zt<=le.to&&zt<=Ye.end:zt>=le.from&&zt>=Ye.begin)){var At=ut?"before":"after";return new we(x.line,zt,At)}}var mn=function(Xn,dr,Yn){for(var vr=function(Kr,yi){return yi?new we(x.line,ce(Kr,1),"before"):new we(x.line,Kr,"after")};Xn>=0&&Xn<z.length;Xn+=dr){var Pr=z[Xn],Ir=dr>0==(Pr.level!=1),Rr=Ir?Yn.begin:ce(Yn.end,-1);if(Pr.from<=Rr&&Rr<Pr.to||(Rr=Ir?Pr.from:ce(Pr.to,-1),Yn.begin<=Rr&&Rr<Yn.end))return vr(Rr,Ir)}},Bn=mn(re+b,b,Ye);if(Bn)return Bn;var $n=b>0?Ye.end:ce(Ye.begin,-1);return $n!=null&&!(b>0&&$n==y.text.length)&&(Bn=mn(b>0?0:z.length-1,b,me($n)),Bn)?Bn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ie)},killLine:function(a){return Wo(a,function(y){if(y.empty()){var x=$t(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:we(y.head.line+1,0)}:{from:y.head,to:we(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Wo(a,function(y){return{from:we(y.from().line,0),to:Mt(a.doc,we(y.to().line+1,0))}})},delLineLeft:function(a){return Wo(a,function(y){return{from:we(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Wo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return Wo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(we(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(we(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")},qe)},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")},qe)},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},qe)},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 re=x[z].from(),le=ve(a.getLine(re.line),re.ch,b);y.push(_t(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ji(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var z=y[b].head,re=$t(a.doc,z.line).text;if(re){if(z.ch==re.length&&(z=new we(z.line,z.ch-1)),z.ch>0)z=new we(z.line,z.ch+1),a.replaceRange(re.charAt(z.ch-1)+re.charAt(z.ch-2),we(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var le=$t(a.doc,z.line-1).text;le&&(z=new we(z.line,1),a.replaceRange(re.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),we(z.line-1,le.length-1),z,"+transpose"))}}x.push(new Vr(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return ji(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);No(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=$t(a.doc,y),b=Zt(x);return b!=x&&(y=ze(b)),fl(!0,a,b,y,1)}function Ou(a,y){var x=$t(a.doc,y),b=wn(x);return b!=x&&(y=ze(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=$t(a.doc,x.line),z=xe(b,a.doc.direction);if(!z||z[0].level==0){var re=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=re&&y.ch;return we(x.line,le?0:re,x.sticky)}return x}function za(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=yt}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function Du(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var z=jo(y,a.state.keyMaps[b],x,a);if(z)return z}return a.options.extraKeys&&jo(y,a.options.extraKeys,x,a)||jo(y,a.options.keyMap,x,a)}var Mu=new ue;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"&&Gr(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(sn(x),Xa(a)),!!z}function Cs(a,y){var x=vs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return za(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return za(a,b)}):pa(a,x,y,function(b){return za(a,b)}):!1}function ku(a,y,x){return pa(a,"'"+x+"'",y,function(b){return za(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=nt(),!wt(y,a))){Ce&&be<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&&!Pn&&(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;de(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Ke(y,"CodeMirror-crosshair"),Gt(document,"keyup",x),Gt(document,"mouseover",x))}Tt(document,"keyup",x),Tt(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),wt(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(si(y.display,a)||wt(y,a)||a.ctrlKey&&!a.altKey||Ae&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(he&&x==hl){hl=null,sn(a);return}if(!(he&&(!a.which||a.which<10)&&Cs(y,a))){var z=String.fromCharCode(b==null?x:b);z!="\b"&&(ku(y,a,z)||y.display.input.onKeyPress(a))}}}var Au=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+Au>a&&_e(y,this.pos)==0&&x==this.button};var ma,ga;function Nu(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(wt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,si(x,a)){Oe||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),z=Bt(a),re=b?Nu(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Lu(y,z,b,re,a))&&(z==1?b?Ru(y,b,re,a):ht(a)==x.scroller&&sn(a):z==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(Re?y.display.input.onContextMenu(a):Bl(y)))}}}function Lu(a,y,x,b,z){var re="Click";return b=="double"?re="Double"+re:b=="triple"&&(re="Triple"+re),re=(y==1?"Left":y==2?"Middle":"Right")+re,pa(a,gs(re,z),z,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ce=le(a,x)!=yt}finally{a.state.suppressEdits=!1}return ce})}function Fu(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var re=ft?x.shiftKey&&x.metaKey:x.altKey;z.unit=re?"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 Ru(a,y,x,b){Ce?setTimeout(Le(Il,a),0):a.curOp.focus=nt();var z=Fu(a,x,b),re=a.doc.sel,le;a.options.dragDrop&&Vt&&!a.isReadOnly()&&x=="single"&&(le=re.contains(y))>-1&&(_e((le=re.ranges[le]).from(),y)<0||y.xRel>0)&&(_e(le.to(),y)>0||y.xRel<0)?$u(a,b,y,z):zu(a,b,y,z)}function $u(a,y,x,b){var z=a.display,re=!1,le=gi(a,function(me){Oe&&(z.scroller.draggable=!1),a.state.draggingText=!1,Gt(z.wrapper.ownerDocument,"mouseup",le),Gt(z.wrapper.ownerDocument,"mousemove",ce),Gt(z.scroller,"dragstart",fe),Gt(z.scroller,"drop",le),re||(sn(me),b.addNew||Aa(a.doc,x,null,null,b.extend),Oe&&!Ze||Ce&&be==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),ce=function(me){re=re||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},fe=function(){return re=!0};Oe&&(z.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Tt(z.wrapper.ownerDocument,"mouseup",le),Tt(z.wrapper.ownerDocument,"mousemove",ce),Tt(z.scroller,"dragstart",fe),Tt(z.scroller,"drop",le),Bl(a),setTimeout(function(){return z.input.focus()},20)}function Bs(a,y,x){if(x=="char")return new Vr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Vr(we(y.line,0),Mt(a.doc,we(y.line+1,0)));var b=x(a,y);return new Vr(b.from,b.to)}function zu(a,y,x,b){var z=a.display,re=a.doc;sn(y);var le,ce,fe=re.sel,me=fe.ranges;if(b.addNew&&!b.extend?(ce=re.sel.contains(x),ce>-1?le=me[ce]:le=new Vr(x,x)):(le=re.sel.primary(),ce=re.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Vr(x,x)),x=So(a,y,!0,!0),ce=-1;else{var Ye=Bs(a,x,b.unit);b.extend?le=sl(le,Ye.anchor,Ye.head,b.extend):le=Ye}b.addNew?ce==-1?(ce=me.length,Ei(re,qi(a,me.concat([le]),ce),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ce].empty()&&b.unit=="char"&&!b.extend?(Ei(re,qi(a,me.slice(0,ce).concat(me.slice(ce+1)),0),{scroll:!1,origin:"*mouse"}),fe=re.sel):ul(re,ce,le,Xe):(ce=0,Ei(re,new _i([le],0),Xe),fe=re.sel);var ut=x;function zt(Yn){if(_e(ut,Yn)!=0)if(ut=Yn,b.unit=="rectangle"){for(var vr=[],Pr=a.options.tabSize,Ir=ve($t(re,x.line).text,x.ch,Pr),Rr=ve($t(re,Yn.line).text,Yn.ch,Pr),Kr=Math.min(Ir,Rr),yi=Math.max(Ir,Rr),Qr=Math.min(x.line,Yn.line),Wi=Math.min(a.lastLine(),Math.max(x.line,Yn.line));Qr<=Wi;Qr++){var Ti=$t(re,Qr).text,ui=en(Ti,Kr,Pr);Kr==yi?vr.push(new Vr(we(Qr,ui),we(Qr,ui))):Ti.length>ui&&vr.push(new Vr(we(Qr,ui),we(Qr,en(Ti,yi,Pr))))}vr.length||vr.push(new Vr(x,x)),Ei(re,qi(a,fe.ranges.slice(0,ce).concat(vr),ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Yn)}else{var Ai=le,Ci=Bs(a,Yn,b.unit),hi=Ai.anchor,ci;_e(Ci.anchor,hi)>0?(ci=Ci.head,hi=gn(Ai.from(),Ci.anchor)):(ci=Ci.anchor,hi=ln(Ai.to(),Ci.head));var qr=fe.ranges.slice(0);qr[ce]=Hu(a,new Vr(Mt(re,hi),ci)),Ei(re,qi(a,qr,ce),Xe)}}var At=z.wrapper.getBoundingClientRect(),mn=0;function Bn(Yn){var vr=++mn,Pr=So(a,Yn,!0,b.unit=="rectangle");if(Pr)if(_e(Pr,ut)!=0){a.curOp.focus=nt(),zt(Pr);var Ir=Pa(z,re);(Pr.line>=Ir.to||Pr.line<Ir.from)&&setTimeout(gi(a,function(){mn==vr&&Bn(Yn)}),150)}else{var Rr=Yn.clientY<At.top?-20:Yn.clientY>At.bottom?20:0;Rr&&setTimeout(gi(a,function(){mn==vr&&(z.scroller.scrollTop+=Rr,Bn(Yn))}),50)}}function $n(Yn){a.state.selectingText=!1,mn=1/0,Yn&&(sn(Yn),z.input.focus()),Gt(z.wrapper.ownerDocument,"mousemove",Xn),Gt(z.wrapper.ownerDocument,"mouseup",dr),re.history.lastSelOrigin=null}var Xn=gi(a,function(Yn){Yn.buttons===0||!Bt(Yn)?$n(Yn):Bn(Yn)}),dr=gi(a,$n);a.state.selectingText=dr,Tt(z.wrapper.ownerDocument,"mousemove",Xn),Tt(z.wrapper.ownerDocument,"mouseup",dr)}function Hu(a,y){var x=y.anchor,b=y.head,z=$t(a.doc,x.line);if(_e(x,b)==0&&x.sticky==b.sticky)return y;var re=xe(z);if(!re)return y;var le=Pt(re,x.ch,x.sticky),ce=re[le];if(ce.from!=x.ch&&ce.to!=x.ch)return y;var fe=le+(ce.from==x.ch==(ce.level!=1)?0:1);if(fe==0||fe==re.length)return y;var me;if(b.line!=x.line)me=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ye=Pt(re,b.ch,b.sticky),ut=Ye-le||(b.ch-x.ch)*(ce.level==1?-1:1);Ye==fe-1||Ye==fe?me=ut<0:me=ut>0}var zt=re[fe+(me?-1:0)],At=me==(zt.level==1),mn=At?zt.from:zt.to,Bn=At?"after":"before";return x.ch==mn&&x.sticky==Bn?y:new Vr(new we(x.line,mn,Bn),b)}function Ps(a,y,x,b){var z,re;if(y.touches)z=y.touches[0].clientX,re=y.touches[0].clientY;else try{z=y.clientX,re=y.clientY}catch(zt){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&sn(y);var le=a.display,ce=le.lineDiv.getBoundingClientRect();if(re>ce.bottom||!Lt(a,x))return Sn(y);re-=ce.top-le.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var me=le.gutters.childNodes[fe];if(me&&me.getBoundingClientRect().right>=z){var Ye=ot(a.doc,re),ut=a.display.gutterSpecs[fe];return Qt(a,x,a,Ye,ut.className,y),Sn(y)}}}function ml(a,y){return Ps(a,y,"gutterClick",!0)}function Os(a,y){si(a.display,y)||ju(a,y)||wt(a,y,"contextmenu")||Re||a.display.input.onContextMenu(y)}function ju(a,y){return Lt(a,"gutterContextMenu")?Ps(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 Zo={toString:function(){return"CodeMirror.Init"}},Ms={},Ha={};function Wu(a){var y=a.optionHandlers;function x(b,z,re,le){a.defaults[b]=z,re&&(y[b]=le?function(ce,fe,me){me!=Zo&&re(ce,fe,me)}:re)}a.defineOption=x,a.Init=Zo,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),Mi(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var re=[],le=b.doc.first;b.doc.iter(function(fe){for(var me=0;;){var Ye=fe.text.indexOf(z,me);if(Ye==-1)break;me=Ye+z.length,re.push(we(le,Ye))}le++});for(var ce=re.length-1;ce>=0;ce--)zo(b.doc,z,re[ce],we(re[ce].line,re[ce].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,re){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),re!=Zo&&b.refresh()}),x("specialCharPlaceholder",ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!xt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Ds(b),ra(b)},!0),x("keyMap","default",function(b,z,re){var le=$a(z),ce=re!=Zo&&$a(re);ce&&ce.detach&&ce.detach(b,le),le.attach&&le.attach(b,ce||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!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 Lo(b)},!0),x("scrollbarStyle","native",function(b){Tl(b),Lo(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,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(Ao(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,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,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 Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var z=a.display.dragFunctions,re=y?Tt:Gt;re(a.display.scroller,"dragstart",z.start),re(a.display.scroller,"dragenter",z.enter),re(a.display.scroller,"dragover",z.over),re(a.display.scroller,"dragleave",z.leave),re(a.display.scroller,"drop",z.drop)}}function _u(a){a.options.lineWrapping?(de(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ke(a.display.wrapper,"CodeMirror-wrap"),Dr(a)),Ka(a),Mi(a),Co(a),setTimeout(function(){return Lo(a)},100)}function Yr(a,y){var x=this;if(!(this instanceof Yr))return new Yr(a,y);this.options=y=y?bt(y):{},bt(Ms,y,!1);var b=y.value;typeof b=="string"?b=new ki(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new Yr.inputStyles[y.inputStyle](this),re=this.display=new ru(a,b,z,y);re.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 ue,keySeq:null,specialChars:null},y.autofocus&&!Ne&&re.input.focus(),Ce&&be<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Vu(this),Su(),Bo(this),this.curOp.forceUpdate=!0,Wl(this,b),y.autofocus&&!Ne||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Ao(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Ll(this),y.finishInit&&y.finishInit(this);for(var ce=0;ce<gl.length;++ce)gl[ce](this);Po(this),Oe&&y.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}Yr.defaults=Ms,Yr.optionHandlers=Ha;function Vu(a){var y=a.display;Tt(y.scroller,"mousedown",gi(a,Is)),Ce&&be<11?Tt(y.scroller,"dblclick",gi(a,function(fe){if(!wt(a,fe)){var me=So(a,fe);if(!(!me||ml(a,fe)||si(a.display,fe))){sn(fe);var Ye=a.findWordAt(me);Aa(a.doc,Ye.anchor,Ye.head)}}})):Tt(y.scroller,"dblclick",function(fe){return wt(a,fe)||sn(fe)}),Tt(y.scroller,"contextmenu",function(fe){return Os(a,fe)}),Tt(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 re(fe){if(fe.touches.length!=1)return!1;var me=fe.touches[0];return me.radiusX<=1&&me.radiusY<=1}function le(fe,me){if(me.left==null)return!0;var Ye=me.left-fe.left,ut=me.top-fe.top;return Ye*Ye+ut*ut>20*20}Tt(y.scroller,"touchstart",function(fe){if(!wt(a,fe)&&!re(fe)&&!ml(a,fe)){y.input.ensurePolled(),clearTimeout(x);var me=+new Date;y.activeTouch={start:me,moved:!1,prev:me-b.end<=300?b:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),Tt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Tt(y.scroller,"touchend",function(fe){var me=y.activeTouch;if(me&&!si(y,fe)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Ye=a.coordsChar(y.activeTouch,"page"),ut;!me.prev||le(me,me.prev)?ut=new Vr(Ye,Ye):!me.prev.prev||le(me,me.prev.prev)?ut=a.findWordAt(Ye):ut=new Vr(we(Ye.line,0),Mt(a.doc,we(Ye.line+1,0))),a.setSelection(ut.anchor,ut.head),a.focus(),sn(fe)}z()}),Tt(y.scroller,"touchcancel",z),Tt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),Qt(a,"scroll",a))}),Tt(y.scroller,"mousewheel",function(fe){return $l(a,fe)}),Tt(y.scroller,"DOMMouseScroll",function(fe){return $l(a,fe)}),Tt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){wt(a,fe)||Fe(fe)},over:function(fe){wt(a,fe)||(Cu(a,fe),Fe(fe))},start:function(fe){return xu(a,fe)},drop:gi(a,bu),leave:function(fe){wt(a,fe)||fs(a)}};var ce=y.input.getField();Tt(ce,"keyup",function(fe){return ws.call(a,fe)}),Tt(ce,"keydown",gi(a,Ss)),Tt(ce,"keypress",gi(a,Es)),Tt(ce,"focus",function(fe){return Ya(a,fe)}),Tt(ce,"blur",function(fe){return Ao(a,fe)})}var gl=[];Yr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var z=a.doc,re;x==null&&(x="add"),x=="smart"&&(z.mode.indent?re=Ln(a,y).state:x="prev");var le=a.options.tabSize,ce=$t(z,y),fe=ve(ce.text,null,le);ce.stateAfter&&(ce.stateAfter=null);var me=ce.text.match(/^\s*/)[0],Ye;if(!b&&!/\S/.test(ce.text))Ye=0,x="not";else if(x=="smart"&&(Ye=z.mode.indent(re,ce.text.slice(me.length),ce.text),Ye==yt||Ye>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?Ye=ve($t(z,y-1).text,null,le):Ye=0:x=="add"?Ye=fe+a.options.indentUnit:x=="subtract"?Ye=fe-a.options.indentUnit:typeof x=="number"&&(Ye=fe+x),Ye=Math.max(0,Ye);var ut="",zt=0;if(a.options.indentWithTabs)for(var At=Math.floor(Ye/le);At;--At)zt+=le,ut+=" ";if(zt<Ye&&(ut+=_t(Ye-zt)),ut!=me)return zo(z,ut,we(y,0),we(y,me.length),"+input"),ce.stateAfter=null,!0;for(var mn=0;mn<z.sel.ranges.length;mn++){var Bn=z.sel.ranges[mn];if(Bn.head.line==y&&Bn.head.ch<me.length){var $n=we(y,me.length);ul(z,mn,new Vr($n,$n));break}}}var eo=null;function ja(a){eo=a}function vl(a,y,x,b,z){var re=a.doc;a.display.shift=!1,b||(b=re.sel);var le=+new Date-200,ce=z=="paste"||a.state.pasteIncoming>le,fe=rn(y),me=null;if(ce&&b.ranges.length>1)if(eo&&eo.text.join(`
|
|
|
`)==y){if(b.ranges.length%eo.text.length==0){me=[];for(var Ye=0;Ye<eo.text.length;Ye++)me.push(re.splitLines(eo.text[Ye]))}}else fe.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(me=Ht(fe,function(Xn){return[Xn]}));for(var ut=a.curOp.updateInput,zt=b.ranges.length-1;zt>=0;zt--){var At=b.ranges[zt],mn=At.from(),Bn=At.to();At.empty()&&(x&&x>0?mn=we(mn.line,mn.ch-x):a.state.overwrite&&!ce?Bn=we(Bn.line,Math.min($t(re,Bn.line).text.length,Bn.ch+je(fe).length)):ce&&eo&&eo.lineWise&&eo.text.join(`
|
|
|
`)==fe.join(`
|
|
|
`)&&(mn=Bn=we(mn.line,0)));var $n={from:mn,to:Bn,text:me?me[zt%me.length]:fe,origin:z||(ce?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,$n),Gr(a,"inputRead",a,$n)}y&&!ce&&Ts(a,y),No(a),a.curOp.updateInput<2&&(a.curOp.updateInput=ut),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function ks(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ji(y,function(){return vl(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 re=a.getModeAt(z.head),le=!1;if(re.electricChars){for(var ce=0;ce<re.electricChars.length;ce++)if(y.indexOf(re.electricChars.charAt(ce))>-1){le=va(a,z.head.line,"smart");break}}else re.electricInput&&re.electricInput.test($t(a.doc,z.head.line).text.slice(0,z.head.ch))&&(le=va(a,z.head.line,"smart"));le&&Gr(a,"electricInput",a,z.head.line)}}}function As(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,re={anchor:we(z,0),head:we(z+1,0)};x.push(re),y.push(a.getRange(re.anchor,re.head))}return{text:y,ranges:x}}function Ns(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ls(){var a=Ue("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ue("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Oe?a.style.width="1000px":a.setAttribute("wrap","off"),Qe&&(a.style.border="1px solid black"),Ns(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 re=this.options,le=re[b];re[b]==z&&b!="mode"||(re[b]=z,y.hasOwnProperty(b)&&gi(this,y[b])(this,z,le),Qt(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,re=0;re<z.length;++re)if(z[re]==b||z[re].name==b)return z.splice(re,1),!0},addOverlay:Pi(function(b,z){var re=b.token?b:a.getMode(this.options,b);if(re.startState)throw new Error("Overlays may not be stateful.");gt(this.state.overlays,{mode:re,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(le){return le.priority}),this.state.modeGen++,Mi(this)}),removeOverlay:Pi(function(b){for(var z=this.state.overlays,re=0;re<z.length;++re){var le=z[re].modeSpec;if(le==b||typeof b=="string"&&le.name==b){z.splice(re,1),this.state.modeGen++,Mi(this);return}}}),indentLine:Pi(function(b,z,re){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Se(this.doc,b)&&va(this,b,z,re)}),indentSelection:Pi(function(b){for(var z=this.doc.sel.ranges,re=-1,le=0;le<z.length;le++){var ce=z[le];if(ce.empty())ce.head.line>re&&(va(this,ce.head.line,b,!0),re=ce.head.line,le==this.doc.sel.primIndex&&No(this));else{var fe=ce.from(),me=ce.to(),Ye=Math.max(re,fe.line);re=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var ut=Ye;ut<re;++ut)va(this,ut,b);var zt=this.doc.sel.ranges;fe.ch==0&&z.length==zt.length&&zt[le].from().ch>0&&ul(this.doc,le,new Vr(fe,zt[le].to()),Ie)}}}),getTokenAt:function(b,z){return xn(this,b,z)},getLineTokens:function(b,z){return xn(this,we(b),z,!0)},getTokenTypeAt:function(b){b=Mt(this.doc,b);var z=Xt(this,$t(this.doc,b.line)),re=0,le=(z.length-1)/2,ce=b.ch,fe;if(ce==0)fe=z[2];else for(;;){var me=re+le>>1;if((me?z[me*2-1]:0)>=ce)le=me;else if(z[me*2+1]<ce)re=me+1;else{fe=z[me*2+2];break}}var Ye=fe?fe.indexOf("overlay "):-1;return Ye<0?fe:Ye==0?null:fe.slice(0,Ye-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 re=[];if(!x.hasOwnProperty(z))return re;var le=x[z],ce=this.getModeAt(b);if(typeof ce[z]=="string")le[ce[z]]&&re.push(le[ce[z]]);else if(ce[z])for(var fe=0;fe<ce[z].length;fe++){var me=le[ce[z][fe]];me&&re.push(me)}else ce.helperType&&le[ce.helperType]?re.push(le[ce.helperType]):le[ce.name]&&re.push(le[ce.name]);for(var Ye=0;Ye<le._global.length;Ye++){var ut=le._global[Ye];ut.pred(ce,this)&&rt(re,ut.val)==-1&&re.push(ut.val)}return re},getStateAfter:function(b,z){var re=this.doc;return b=Rt(re,b==null?re.first+re.size-1:b),Ln(this,b+1,z).state},cursorCoords:function(b,z){var re,le=this.doc.sel.primary();return b==null?re=le.head:typeof b=="object"?re=Mt(this.doc,b):re=b?le.from():le.to(),Di(this,re,z||"page")},charCoords:function(b,z){return To(this,Mt(this.doc,b),z||"page")},coordsChar:function(b,z){return b=wa(this,b,z||"page"),xi(this,b.left,b.top)},lineAtHeight:function(b,z){return b=wa(this,{top:b,left:0},z||"page").top,ot(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,re){var le=!1,ce;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),ce=$t(this.doc,b)}else ce=b;return ko(this,ce,{top:0,left:0},z||"page",re||le).top+(le?this.doc.height-Sr(ce):0)},defaultTextHeight:function(){return Hi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,re,le,ce){var fe=this.display;b=Di(this,Mt(this.doc,b));var me=b.bottom,Ye=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),fe.sizer.appendChild(z),le=="over")me=b.top;else if(le=="above"||le=="near"){var ut=Math.max(fe.wrapper.clientHeight,this.doc.height),zt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(le=="above"||b.bottom+z.offsetHeight>ut)&&b.top>z.offsetHeight?me=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=ut&&(me=b.bottom),Ye+z.offsetWidth>zt&&(Ye=zt-z.offsetWidth)}z.style.top=me+"px",z.style.left=z.style.right="",ce=="right"?(Ye=fe.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(ce=="left"?Ye=0:ce=="middle"&&(Ye=(fe.sizer.clientWidth-z.offsetWidth)/2),z.style.left=Ye+"px"),re&&Zs(this,{left:Ye,top:me,right:Ye+z.offsetWidth,bottom:me+z.offsetHeight})},triggerOnKeyDown:Pi(Ss),triggerOnKeyPress:Pi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Pi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Pi(function(b){Ts(this,b)}),findPosH:function(b,z,re,le){var ce=1;z<0&&(ce=-1,z=-z);for(var fe=Mt(this.doc,b),me=0;me<z&&(fe=yl(this.doc,fe,ce,re,le),!fe.hitSide);++me);return fe},moveH:Pi(function(b,z){var re=this;this.extendSelectionsBy(function(le){return re.display.shift||re.doc.extend||le.empty()?yl(re.doc,le.head,b,z,re.options.rtlMoveVisually):b<0?le.from():le.to()},qe)}),deleteH:Pi(function(b,z){var re=this.doc.sel,le=this.doc;re.somethingSelected()?le.replaceSelection("",null,"+delete"):Wo(this,function(ce){var fe=yl(le,ce.head,b,z,!1);return b<0?{from:fe,to:ce.head}:{from:ce.head,to:fe}})}),findPosV:function(b,z,re,le){var ce=1,fe=le;z<0&&(ce=-1,z=-z);for(var me=Mt(this.doc,b),Ye=0;Ye<z;++Ye){var ut=Di(this,me,"div");if(fe==null?fe=ut.left:ut.left=fe,me=Fs(this,ut,ce,re),me.hitSide)break}return me},moveV:Pi(function(b,z){var re=this,le=this.doc,ce=[],fe=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(Ye){if(fe)return b<0?Ye.from():Ye.to();var ut=Di(re,Ye.head,"div");Ye.goalColumn!=null&&(ut.left=Ye.goalColumn),ce.push(ut.left);var zt=Fs(re,ut,b,z);return z=="page"&&Ye==le.sel.primary()&&Qa(re,To(re,zt,"div").top-ut.top),zt},qe),ce.length)for(var me=0;me<le.sel.ranges.length;me++)le.sel.ranges[me].goalColumn=ce[me]}),findWordAt:function(b){var z=this.doc,re=$t(z,b.line).text,le=b.ch,ce=b.ch;if(re){var fe=this.getHelper(b,"wordChars");(b.sticky=="before"||ce==re.length)&&le?--le:++ce;for(var me=re.charAt(le),Ye=se(me,fe)?function(ut){return se(ut,fe)}:/\s/.test(me)?function(ut){return/\s/.test(ut)}:function(ut){return!/\s/.test(ut)&&!se(ut)};le>0&&Ye(re.charAt(le-1));)--le;for(;ce<re.length&&Ye(re.charAt(ce));)++ce}return new Vr(we(b.line,le),we(b.line,ce))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),Qt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==nt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pi(function(b,z){Qo(this,b,z)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-$i(this)-this.display.barHeight,width:b.scrollWidth-$i(this)-this.display.barWidth,clientHeight:ao(this),clientWidth:no(this)}},scrollIntoView:Pi(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:we(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?_s(this,b):Ol(this,b.from,b.to,b.margin)}),setSize:Pi(function(b,z){var re=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 ce=this.display.viewFrom;this.doc.iter(ce,this.display.viewTo,function(fe){if(fe.widgets){for(var me=0;me<fe.widgets.length;me++)if(fe.widgets[me].noHScroll){ho(re,ce,"widget");break}}++ce}),this.curOp.forceUpdate=!0,Qt(this,"refresh",this)}),operation:function(b){return ji(this,b)},startOperation:function(){return Bo(this)},endOperation:function(){return Po(this)},refresh:Pi(function(){var b=this.display.cachedTextHeight;Mi(this),this.curOp.forceUpdate=!0,Co(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-Hi(this.display))>.5||this.options.lineWrapping)&&Ka(this),Qt(this,"refresh",this)}),swapDoc:Pi(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Wl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Gr(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}},Jt(a),a.registerHelper=function(b,z,re){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=re},a.registerGlobalHelper=function(b,z,re,le){a.registerHelper(b,z,le),x[b]._global.push({pred:re,val:le})}}function yl(a,y,x,b,z){var re=y,le=x,ce=$t(a,y.line),fe=z&&a.direction=="rtl"?-x:x;function me(){var dr=y.line+fe;return dr<a.first||dr>=a.first+a.size?!1:(y=new we(dr,y.ch,y.sticky),ce=$t(a,dr))}function Ye(dr){var Yn;if(b=="codepoint"){var vr=ce.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(vr)?Yn=null:Yn=new we(y.line,Math.max(0,Math.min(ce.text.length,y.ch+x*(vr>=55296&&vr<56320?2:1))),-x)}else z?Yn=Pu(a.cm,ce,y,x):Yn=dl(ce,y,x);if(Yn==null)if(!dr&&me())y=fl(z,a.cm,ce,y.line,fe);else return!1;else y=Yn;return!0}if(b=="char"||b=="codepoint")Ye();else if(b=="column")Ye(!0);else if(b=="word"||b=="group")for(var ut=null,zt=b=="group",At=a.cm&&a.cm.getHelper(y,"wordChars"),mn=!0;!(x<0&&!Ye(!mn));mn=!1){var Bn=ce.text.charAt(y.ch)||`
|
|
|
`,$n=se(Bn,At)?"w":zt&&Bn==`
|
|
|
`?"n":!zt||/\s/.test(Bn)?null:"p";if(zt&&!mn&&!$n&&($n="s"),ut&&ut!=$n){x<0&&(x=1,Ye(),y.sticky="after");break}if($n&&(ut=$n),x>0&&!Ye(!mn))break}var Xn=La(a,y,re,le,!0);return vt(re,Xn)&&(Xn.hitSide=!0),Xn}function Fs(a,y,x,b){var z=a.doc,re=y.left,le;if(b=="page"){var ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(ce-.5*Hi(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 me;me=xi(a,re,le),!!me.outside;){if(x<0?le<=0:le>=z.height){me.hitSide=!0;break}le+=x*5}return me}var Ur=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ur.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;Ns(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function re(ce){for(var fe=ce.target;fe;fe=fe.parentNode){if(fe==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}Tt(z,"paste",function(ce){!re(ce)||wt(b,ce)||ks(ce,b)||be<=11&&setTimeout(gi(b,function(){return y.updateFromDOM()}),20)}),Tt(z,"compositionstart",function(ce){y.composing={data:ce.data,done:!1}}),Tt(z,"compositionupdate",function(ce){y.composing||(y.composing={data:ce.data,done:!1})}),Tt(z,"compositionend",function(ce){y.composing&&(ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Tt(z,"touchstart",function(){return x.forceCompositionEnd()}),Tt(z,"input",function(){y.composing||y.readFromDOMSoon()});function le(ce){if(!(!re(ce)||wt(b,ce))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ce.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var fe=As(b);ja({lineWise:!0,text:fe.text}),ce.type=="cut"&&b.operation(function(){b.setSelections(fe.ranges,0,Ie),b.replaceSelection("",null,"cut")})}else return;if(ce.clipboardData){ce.clipboardData.clearData();var me=eo.text.join(`
|
|
|
`);if(ce.clipboardData.setData("Text",me),ce.clipboardData.getData("Text")==me){ce.preventDefault();return}}var Ye=Ls(),ut=Ye.firstChild;b.display.lineSpace.insertBefore(Ye,b.display.lineSpace.firstChild),ut.value=eo.text.join(`
|
|
|
`);var zt=document.activeElement;ke(ut),setTimeout(function(){b.display.lineSpace.removeChild(Ye),zt.focus(),zt==z&&x.showPrimarySelection()},50)}}Tt(z,"copy",le),Tt(z,"cut",le)},Ur.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Ur.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Ur.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Ur.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ur.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 re=Wa(y,a.anchorNode,a.anchorOffset),le=Wa(y,a.focusNode,a.focusOffset);if(!(re&&!re.bad&&le&&!le.bad&&_e(gn(re,le),b)==0&&_e(ln(re,le),z)==0)){var ce=y.display.view,fe=b.line>=y.display.viewFrom&&Rs(y,b)||{node:ce[0].measure.map[2],offset:0},me=z.line<y.display.viewTo&&Rs(y,z);if(!me){var Ye=ce[ce.length-1].measure,ut=Ye.maps?Ye.maps[Ye.maps.length-1]:Ye.map;me={node:ut[ut.length-1],offset:ut[ut.length-2]-ut[ut.length-3]}}if(!fe||!me){a.removeAllRanges();return}var zt=a.rangeCount&&a.getRangeAt(0),At;try{At=He(fe.node,fe.offset,me.offset,me.node)}catch(mn){}At&&(!E&&y.state.focused?(a.collapse(fe.node,fe.offset),At.collapsed||(a.removeAllRanges(),a.addRange(At))):(a.removeAllRanges(),a.addRange(At)),zt&&a.anchorNode==null?a.addRange(zt):E&&this.startGracePeriod()),this.rememberSelection()}},Ur.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)},Ur.prototype.showMultipleSelections=function(a){at(this.cm.display.cursorDiv,a.cursors),at(this.cm.display.selectionDiv,a.selection)},Ur.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Ur.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return it(this.div,y)},Ur.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ur.prototype.blur=function(){this.div.blur()},Ur.prototype.getField=function(){return this.div},Ur.prototype.supportsTouch=function(){return!0},Ur.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ji(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)},Ur.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Ur.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Me&&De&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Wa(y,a.anchorNode,a.anchorOffset),b=Wa(y,a.focusNode,a.focusOffset);x&&b&&ji(y,function(){Ei(y.doc,mo(x,b),Ie),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},Ur.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=we(b.line-1,$t(a.doc,b.line-1).length)),z.ch==$t(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=we(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var re,le,ce;b.line==y.viewFrom||(re=wo(a,b.line))==0?(le=ze(y.view[0].line),ce=y.view[0].node):(le=ze(y.view[re].line),ce=y.view[re-1].node.nextSibling);var fe=wo(a,z.line),me,Ye;if(fe==y.view.length-1?(me=y.viewTo-1,Ye=y.lineDiv.lastChild):(me=ze(y.view[fe+1].line)-1,Ye=y.view[fe+1].node.previousSibling),!ce)return!1;for(var ut=a.doc.splitLines(Ku(a,ce,Ye,le,me)),zt=un(a.doc,we(le,0),we(me,$t(a.doc,me).text.length));ut.length>1&&zt.length>1;)if(je(ut)==je(zt))ut.pop(),zt.pop(),me--;else if(ut[0]==zt[0])ut.shift(),zt.shift(),le++;else break;for(var At=0,mn=0,Bn=ut[0],$n=zt[0],Xn=Math.min(Bn.length,$n.length);At<Xn&&Bn.charCodeAt(At)==$n.charCodeAt(At);)++At;for(var dr=je(ut),Yn=je(zt),vr=Math.min(dr.length-(ut.length==1?At:0),Yn.length-(zt.length==1?At:0));mn<vr&&dr.charCodeAt(dr.length-mn-1)==Yn.charCodeAt(Yn.length-mn-1);)++mn;if(ut.length==1&&zt.length==1&&le==b.line)for(;At&&At>b.ch&&dr.charCodeAt(dr.length-mn-1)==Yn.charCodeAt(Yn.length-mn-1);)At--,mn++;ut[ut.length-1]=dr.slice(0,dr.length-mn).replace(/^\u200b+/,""),ut[0]=ut[0].slice(At).replace(/\u200b+$/,"");var Pr=we(le,At),Ir=we(me,zt.length?je(zt).length-mn:0);if(ut.length>1||ut[0]||_e(Pr,Ir))return zo(a.doc,ut,Pr,Ir,"+input"),!0},Ur.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ur.prototype.reset=function(){this.forceCompositionEnd()},Ur.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ur.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))},Ur.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ji(this.cm,function(){return Mi(a.cm)})},Ur.prototype.setUneditable=function(a){a.contentEditable="false"},Ur.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||gi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Ur.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Ur.prototype.onContextMenu=function(){},Ur.prototype.resetPosition=function(){},Ur.prototype.needsContentAttribute=!0;function Rs(a,y){var x=ro(a,y.line);if(!x||x.hidden)return null;var b=$t(a.doc,y.line),z=Mo(x,b,y.line),re=xe(b,a.doc.direction),le="left";if(re){var ce=Pt(re,y.ch);le=ce%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 _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,z){var re="",le=!1,ce=a.doc.lineSeparator(),fe=!1;function me(At){return function(mn){return mn.id==At}}function Ye(){le&&(re+=ce,fe&&(re+=ce),le=fe=!1)}function ut(At){At&&(Ye(),re+=At)}function zt(At){if(At.nodeType==1){var mn=At.getAttribute("cm-text");if(mn){ut(mn);return}var Bn=At.getAttribute("cm-marker"),$n;if(Bn){var Xn=a.findMarks(we(b,0),we(z+1,0),me(+Bn));Xn.length&&($n=Xn[0].find(0))&&ut(un(a.doc,$n.from,$n.to).join(ce));return}if(At.getAttribute("contenteditable")=="false")return;var dr=/^(pre|div|p|li|table|br)$/i.test(At.nodeName);if(!/^br$/i.test(At.nodeName)&&At.textContent.length==0)return;dr&&Ye();for(var Yn=0;Yn<At.childNodes.length;Yn++)zt(At.childNodes[Yn]);/^(pre|p)$/i.test(At.nodeName)&&(fe=!0),dr&&(le=!0)}else At.nodeType==3&&ut(At.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;zt(y),y!=x;)y=y.nextSibling,fe=!1;return re}function Wa(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return _o(a.clipPos(we(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 re=a.display.view[z];if(re.node==b)return Xu(re,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,z=!1;if(!y||!it(b,y))return _o(we(ze(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var re=a.rest?je(a.rest):a.line;return _o(we(ze(re),re.text.length),z)}var le=y.nodeType==3?y:null,ce=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ce.parentNode!=b;)ce=ce.parentNode;var fe=a.measure,me=fe.maps;function Ye($n,Xn,dr){for(var Yn=-1;Yn<(me?me.length:0);Yn++)for(var vr=Yn<0?fe.map:me[Yn],Pr=0;Pr<vr.length;Pr+=3){var Ir=vr[Pr+2];if(Ir==$n||Ir==Xn){var Rr=ze(Yn<0?a.line:a.rest[Yn]),Kr=vr[Pr]+dr;return(dr<0||Ir!=$n)&&(Kr=vr[Pr+(dr?1:0)]),we(Rr,Kr)}}}var ut=Ye(le,ce,x);if(ut)return _o(ut,z);for(var zt=ce.nextSibling,At=le?le.nodeValue.length-x:0;zt;zt=zt.nextSibling){if(ut=Ye(zt,zt.firstChild,0),ut)return _o(we(ut.line,ut.ch-At),z);At+=zt.textContent.length}for(var mn=ce.previousSibling,Bn=x;mn;mn=mn.previousSibling){if(ut=Ye(mn,mn.firstChild,-1),ut)return _o(we(ut.line,ut.ch+Bn),z);Bn+=mn.textContent.length}}var ii=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ue,this.hasSelection=!1,this.composing=null};ii.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Qe&&(z.style.width="0px"),Tt(z,"input",function(){Ce&&be>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Tt(z,"paste",function(le){wt(b,le)||ks(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function re(le){if(!wt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ce=As(b);ja({lineWise:!0,text:ce.text}),le.type=="cut"?b.setSelections(ce.ranges,null,Ie):(x.prevInput="",z.value=ce.text.join(`
|
|
|
`),ke(z))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}Tt(z,"cut",re),Tt(z,"copy",re),Tt(a.scroller,"paste",function(le){if(!(si(a,le)||wt(b,le))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ce=new Event("paste");ce.clipboardData=le.clipboardData,z.dispatchEvent(ce)}}),Tt(a.lineSpace,"selectstart",function(le){si(a,le)||sn(le)}),Tt(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"})}}),Tt(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},ii.prototype.createField=function(a){this.wrapper=Ls(),this.textarea=this.wrapper.firstChild},ii.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ii.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var z=Di(a,x.sel.primary().head,"div"),re=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+le.top-re.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+le.left-re.left))}return b},ii.prototype.showSelection=function(a){var y=this.cm,x=y.display;at(x.cursorDiv,a.cursors),at(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ii.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&&ke(this.textarea),Ce&&be>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",Ce&&be>=9&&(this.hasSelection=null))}},ii.prototype.getField=function(){return this.textarea},ii.prototype.supportsTouch=function(){return!1},ii.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||nt()!=this.textarea))try{this.textarea.focus()}catch(a){}},ii.prototype.blur=function(){this.textarea.blur()},ii.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ii.prototype.receivedFocus=function(){this.slowPoll()},ii.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ii.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)},ii.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||En(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&&be>=9&&this.hasSelection===z||Ae&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var re=z.charCodeAt(0);if(re==8203&&!b&&(b="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ce=Math.min(b.length,z.length);le<ce&&b.charCodeAt(le)==z.charCodeAt(le);)++le;return ji(y,function(){vl(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},ii.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ii.prototype.onKeyPress=function(){Ce&&be>=9&&(this.hasSelection=null),this.fastPoll()},ii.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var re=So(x,a),le=b.scroller.scrollTop;if(!re||he)return;var ce=x.options.resetSelectionOnContextMenu;ce&&x.doc.sel.contains(re)==-1&&gi(x,Ei)(x.doc,mo(re),Ie);var fe=z.style.cssText,me=y.wrapper.style.cssText,Ye=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Ye.top-5)+"px; left: "+(a.clientX-Ye.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 ut;Oe&&(ut=window.scrollY),b.input.focus(),Oe&&window.scrollTo(null,ut),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=At,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function zt(){if(z.selectionStart!=null){var Bn=x.somethingSelected(),$n="\u200B"+(Bn?z.value:"");z.value="\u21DA",z.value=$n,y.prevInput=Bn?"":"\u200B",z.selectionStart=1,z.selectionEnd=$n.length,b.selForContextMenu=x.doc.sel}}function At(){if(y.contextMenuPending==At&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,z.style.cssText=fe,Ce&&be<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),z.selectionStart!=null)){(!Ce||Ce&&be<9)&&zt();var Bn=0,$n=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?gi(x,ts)(x):Bn++<10?b.detectingSelectAll=setTimeout($n,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout($n,200)}}if(Ce&&be>=9&&zt(),Re){Fe(a);var mn=function(){Gt(window,"mouseup",mn),setTimeout(At,20)};Tt(window,"mouseup",mn)}else setTimeout(At,50)},ii.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ii.prototype.setUneditable=function(){},ii.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?bt(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=nt();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ce.getValue()}var z;if(a.form&&(Tt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var re=a.form;z=re.submit;try{var le=re.submit=function(){b(),re.submit=z,re.submit(),re.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&&(Gt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var ce=Yr(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return ce}function Ju(a){a.off=Gt,a.on=Tt,a.wheelEventPixels=iu,a.Doc=ki,a.splitLines=rn,a.countColumn=ve,a.findColumn=en,a.isWordChar=oe,a.Pass=yt,a.signal=Qt,a.Line=Lr,a.changeEnd=go,a.scrollbarModel=kl,a.Pos=we,a.cmpPos=_e,a.modes=Tn,a.mimeModes=an,a.resolveMode=kn,a.getMode=lr,a.modeExtensions=er,a.extendMode=Gn,a.copyState=sr,a.startState=yr,a.innerMode=hr,a.commands=ha,a.keyMap=so,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Bu,a.StringStream=ur,a.SharedTextMarker=ca,a.TextMarker=yo,a.LineWidget=ua,a.e_preventDefault=sn,a.e_stopPropagation=vn,a.e_stop=Fe,a.addClass=de,a.contains=it,a.rmClass=Ke,a.keyNames=bo}Wu(Yr),Gu(Yr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in ki.prototype)ki.prototype.hasOwnProperty(Za)&&rt(Qu,Za)<0&&(Yr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(ki.prototype[Za]));return Jt(ki),Yr.inputStyles={textarea:ii,contenteditable:Ur},Yr.defineMode=function(a){!Yr.defaults.mode&&a!="null"&&(Yr.defaults.mode=a),Cn.apply(this,arguments)},Yr.defineMIME=fn,Yr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Yr.defineMIME("text/plain","null"),Yr.defineExtension=function(a,y){Yr.prototype[a]=y},Yr.defineDocExtension=function(a,y){ki.prototype[a]=y},Yr.fromTextArea=Yu,Ju(Yr),Yr.version="5.58.2",Yr})},25419:function(nn,jt,ie){(function(E){E(ie(89780),ie(15525),ie(98101))})(function(E){"use strict";E.defineMode("markdown",function(Ve,ge){var Je=E.getMode(Ve,"text/html"),Ce=Je.name=="null";function be(ve){if(E.findModeByName){var ue=E.findModeByName(ve);ue&&(ve=ue.mime||ue.mimes[0])}var rt=E.getMode(Ve,ve);return rt.name=="null"?null:rt}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 Oe={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 $e in Oe)Oe.hasOwnProperty($e)&&ge.tokenTypeOverrides[$e]&&(Oe[$e]=ge.tokenTypeOverrides[$e]);var De=/^([*\-_])(?:\s*\1){2,}\s*$/,he=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ze=/^\[(x| )\](?=\s)/i,Ee=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,mt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Qe=/^[^#!\[\]*_\\<>` "'(~:]+/,Me=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ne=/^\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]/,ft=" ";function xt(ve,ue,rt){return ue.f=ue.inline=rt,rt(ve,ue)}function It(ve,ue,rt){return ue.f=ue.block=rt,rt(ve,ue)}function pt(ve){return!ve||!/\S/.test(ve.string)}function Re(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==Ke){var ue=Ce;if(!ue){var rt=E.innerMode(Je,ve.htmlState);ue=rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText}ue&&(ve.f=Ct,ve.block=lt,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function lt(ve,ue){var rt=ve.column()===ue.indentation,Nt=pt(ue.prevLine.stream),yt=ue.indentedCode,Ie=ue.prevLine.hr,Xe=ue.list!==!1,qe=(ue.listStack[ue.listStack.length-1]||0)+3;ue.indentedCode=!1;var en=ue.indentation;if(ue.indentationDiff===null&&(ue.indentationDiff=ue.indentation,Xe)){for(ue.list=null;en<ue.listStack[ue.listStack.length-1];)ue.listStack.pop(),ue.listStack.length?ue.indentation=ue.listStack[ue.listStack.length-1]:ue.list=!1;ue.list!==!1&&(ue.indentationDiff=en-ue.listStack[ue.listStack.length-1])}var Ft=!Nt&&!Ie&&!ue.prevLine.header&&(!Xe||!yt)&&!ue.prevLine.fencedCodeEnd,_t=(ue.list===!1||Ie||Nt)&&ue.indentation<=qe&&ve.match(De),je=null;if(ue.indentationDiff>=4&&(yt||ue.prevLine.fencedCodeEnd||ue.prevLine.header||Nt))return ve.skipToEnd(),ue.indentedCode=!0,Oe.code;if(ve.eatSpace())return null;if(rt&&ue.indentation<=qe&&(je=ve.match(Ee))&&je[1].length<=6)return ue.quote=0,ue.header=je[1].length,ue.thisLine.header=!0,ge.highlightFormatting&&(ue.formatting="header"),ue.f=ue.inline,at(ue);if(ue.indentation<=qe&&ve.eat(">"))return ue.quote=rt?1:ue.quote+1,ge.highlightFormatting&&(ue.formatting="quote"),ve.eatSpace(),at(ue);if(!_t&&!ue.setext&&rt&&ue.indentation<=qe&&(je=ve.match(he))){var Ht=je[1]?"ol":"ul";return ue.indentation=en+ve.current().length,ue.list=!0,ue.quote=0,ue.listStack.push(ue.indentation),ue.em=!1,ue.strong=!1,ue.code=!1,ue.strikethrough=!1,ge.taskLists&&ve.match(Ze,!1)&&(ue.taskList=!0),ue.f=ue.inline,ge.highlightFormatting&&(ue.formatting=["list","list-"+Ht]),at(ue)}else{if(rt&&ue.indentation<=qe&&(je=ve.match(Me,!0)))return ue.quote=0,ue.fencedEndRE=new RegExp(je[1]+"+ *$"),ue.localMode=ge.fencedCodeBlockHighlighting&&be(je[2]||ge.fencedCodeBlockDefaultMode),ue.localMode&&(ue.localState=E.startState(ue.localMode)),ue.f=ue.block=Ot,ge.highlightFormatting&&(ue.formatting="code-block"),ue.code=-1,at(ue);if(ue.setext||(!Ft||!Xe)&&!ue.quote&&ue.list===!1&&!ue.code&&!_t&&!Ne.test(ve.string)&&(je=ve.lookAhead(1))&&(je=je.match(mt)))return ue.setext?(ue.header=ue.setext,ue.setext=0,ve.skipToEnd(),ge.highlightFormatting&&(ue.formatting="header")):(ue.header=je[0].charAt(0)=="="?1:2,ue.setext=ue.header),ue.thisLine.header=!0,ue.f=ue.inline,at(ue);if(_t)return ve.skipToEnd(),ue.hr=!0,ue.thisLine.hr=!0,Oe.hr;if(ve.peek()==="[")return xt(ve,ue,Et)}return xt(ve,ue,ue.inline)}function Ke(ve,ue){var rt=Je.token(ve,ue.htmlState);if(!Ce){var Nt=E.innerMode(Je,ue.htmlState);(Nt.mode.name=="xml"&&Nt.state.tagStart===null&&!Nt.state.context&&Nt.state.tokenize.isInText||ue.md_inside&&ve.current().indexOf(">")>-1)&&(ue.f=Ct,ue.block=lt,ue.htmlState=null)}return rt}function Ot(ve,ue){var rt=ue.listStack[ue.listStack.length-1]||0,Nt=ue.indentation<rt,yt=rt+3;if(ue.fencedEndRE&&ue.indentation<=yt&&(Nt||ve.match(ue.fencedEndRE))){ge.highlightFormatting&&(ue.formatting="code-block");var Ie;return Nt||(Ie=at(ue)),ue.localMode=ue.localState=null,ue.block=lt,ue.f=Ct,ue.fencedEndRE=null,ue.code=0,ue.thisLine.fencedCodeEnd=!0,Nt?It(ve,ue,ue.block):Ie}else return ue.localMode?ue.localMode.token(ve,ue.localState):(ve.skipToEnd(),Oe.code)}function at(ve){var ue=[];if(ve.formatting){ue.push(Oe.formatting),typeof ve.formatting=="string"&&(ve.formatting=[ve.formatting]);for(var rt=0;rt<ve.formatting.length;rt++)ue.push(Oe.formatting+"-"+ve.formatting[rt]),ve.formatting[rt]==="header"&&ue.push(Oe.formatting+"-"+ve.formatting[rt]+"-"+ve.header),ve.formatting[rt]==="quote"&&(!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ve.quote?ue.push(Oe.formatting+"-"+ve.formatting[rt]+"-"+ve.quote):ue.push("error"))}if(ve.taskOpen)return ue.push("meta"),ue.length?ue.join(" "):null;if(ve.taskClosed)return ue.push("property"),ue.length?ue.join(" "):null;if(ve.linkHref?ue.push(Oe.linkHref,"url"):(ve.strong&&ue.push(Oe.strong),ve.em&&ue.push(Oe.em),ve.strikethrough&&ue.push(Oe.strikethrough),ve.emoji&&ue.push(Oe.emoji),ve.linkText&&ue.push(Oe.linkText),ve.code&&ue.push(Oe.code),ve.image&&ue.push(Oe.image),ve.imageAltText&&ue.push(Oe.imageAltText,"link"),ve.imageMarker&&ue.push(Oe.imageMarker)),ve.header&&ue.push(Oe.header,Oe.header+"-"+ve.header),ve.quote&&(ue.push(Oe.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=ve.quote?ue.push(Oe.quote+"-"+ve.quote):ue.push(Oe.quote+"-"+ge.maxBlockquoteDepth)),ve.list!==!1){var Nt=(ve.listStack.length-1)%3;Nt?Nt===1?ue.push(Oe.list2):ue.push(Oe.list3):ue.push(Oe.list1)}return ve.trailingSpaceNewLine?ue.push("trailing-space-new-line"):ve.trailingSpace&&ue.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),ue.length?ue.join(" "):null}function Ue(ve,ue){if(ve.match(Qe,!0))return at(ue)}function Ct(ve,ue){var rt=ue.text(ve,ue);if(typeof rt!="undefined")return rt;if(ue.list)return ue.list=null,at(ue);if(ue.taskList){var Nt=ve.match(Ze,!0)[1]===" ";return Nt?ue.taskOpen=!0:ue.taskClosed=!0,ge.highlightFormatting&&(ue.formatting="task"),ue.taskList=!1,at(ue)}if(ue.taskOpen=!1,ue.taskClosed=!1,ue.header&&ve.match(/^#+$/,!0))return ge.highlightFormatting&&(ue.formatting="header"),at(ue);var yt=ve.next();if(ue.linkTitle){ue.linkTitle=!1;var Ie=yt;yt==="("&&(Ie=")"),Ie=(Ie+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xe="^\\s*(?:[^"+Ie+"\\\\]+|\\\\\\\\|\\\\.)"+Ie;if(ve.match(new RegExp(Xe),!0))return Oe.linkHref}if(yt==="`"){var qe=ue.formatting;ge.highlightFormatting&&(ue.formatting="code"),ve.eatWhile("`");var en=ve.current().length;if(ue.code==0&&(!ue.quote||en==1))return ue.code=en,at(ue);if(en==ue.code){var Ft=at(ue);return ue.code=0,Ft}else return ue.formatting=qe,at(ue)}else if(ue.code)return at(ue);if(yt==="\\"&&(ve.next(),ge.highlightFormatting)){var _t=at(ue),je=Oe.formatting+"-escape";return _t?_t+" "+je:je}if(yt==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ue.imageMarker=!0,ue.image=!0,ge.highlightFormatting&&(ue.formatting="image"),at(ue);if(yt==="["&&ue.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ue.imageMarker=!1,ue.imageAltText=!0,ge.highlightFormatting&&(ue.formatting="image"),at(ue);if(yt==="]"&&ue.imageAltText){ge.highlightFormatting&&(ue.formatting="image");var _t=at(ue);return ue.imageAltText=!1,ue.image=!1,ue.inline=ue.f=it,_t}if(yt==="["&&!ue.image)return ue.linkText&&ve.match(/^.*?\]/)||(ue.linkText=!0,ge.highlightFormatting&&(ue.formatting="link")),at(ue);if(yt==="]"&&ue.linkText){ge.highlightFormatting&&(ue.formatting="link");var _t=at(ue);return ue.linkText=!1,ue.inline=ue.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?it:Ct,_t}if(yt==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ue.f=ue.inline=He,ge.highlightFormatting&&(ue.formatting="link");var _t=at(ue);return _t?_t+=" ":_t="",_t+Oe.linkInline}if(yt==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ue.f=ue.inline=He,ge.highlightFormatting&&(ue.formatting="link");var _t=at(ue);return _t?_t+=" ":_t="",_t+Oe.linkEmail}if(ge.xml&&yt==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ht=ve.string.indexOf(">",ve.pos);if(Ht!=-1){var gt=ve.string.substring(ve.start,Ht);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(gt)&&(ue.md_inside=!0)}return ve.backUp(1),ue.htmlState=E.startState(Je),It(ve,ue,Ke)}if(ge.xml&&yt==="<"&&ve.match(/^\/\w*?>/))return ue.md_inside=!1,"tag";if(yt==="*"||yt==="_"){for(var ae=1,te=ve.pos==1?" ":ve.string.charAt(ve.pos-2);ae<3&&ve.eat(yt);)ae++;var ee=ve.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&&(!ue.em&&oe&&(yt==="*"||!se||Ae.test(te))?ne=!0:ue.em==yt&&se&&(yt==="*"||!oe||Ae.test(ee))&&(ne=!1)),ae>1&&(!ue.strong&&oe&&(yt==="*"||!se||Ae.test(te))?pe=!0:ue.strong==yt&&se&&(yt==="*"||!oe||Ae.test(ee))&&(pe=!1)),pe!=null||ne!=null){ge.highlightFormatting&&(ue.formatting=ne==null?"strong":pe==null?"em":"strong em"),ne===!0&&(ue.em=yt),pe===!0&&(ue.strong=yt);var Ft=at(ue);return ne===!1&&(ue.em=!1),pe===!1&&(ue.strong=!1),Ft}}else if(yt===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return at(ue);ve.backUp(1)}if(ge.strikethrough){if(yt==="~"&&ve.eatWhile(yt)){if(ue.strikethrough){ge.highlightFormatting&&(ue.formatting="strikethrough");var Ft=at(ue);return ue.strikethrough=!1,Ft}else if(ve.match(/^[^\s]/,!1))return ue.strikethrough=!0,ge.highlightFormatting&&(ue.formatting="strikethrough"),at(ue)}else if(yt===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return at(ue);ve.backUp(2)}}if(ge.emoji&&yt===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ue.emoji=!0,ge.highlightFormatting&&(ue.formatting="emoji");var ye=at(ue);return ue.emoji=!1,ye}return yt===" "&&(ve.match(/^ +$/,!1)?ue.trailingSpace++:ue.trailingSpace&&(ue.trailingSpaceNewLine=!0)),at(ue)}function He(ve,ue){var rt=ve.next();if(rt===">"){ue.f=ue.inline=Ct,ge.highlightFormatting&&(ue.formatting="link");var Nt=at(ue);return Nt?Nt+=" ":Nt="",Nt+Oe.linkInline}return ve.match(/^[^>]+/,!0),Oe.linkInline}function it(ve,ue){if(ve.eatSpace())return null;var rt=ve.next();return rt==="("||rt==="["?(ue.f=ue.inline=de(rt==="("?")":"]"),ge.highlightFormatting&&(ue.formatting="link-string"),ue.linkHref=!0,at(ue)):"error"}var nt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(ve){return function(ue,rt){var Nt=ue.next();if(Nt===ve){rt.f=rt.inline=Ct,ge.highlightFormatting&&(rt.formatting="link-string");var yt=at(rt);return rt.linkHref=!1,yt}return ue.match(nt[ve]),rt.linkHref=!0,at(rt)}}function Et(ve,ue){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ue.f=ke,ve.next(),ge.highlightFormatting&&(ue.formatting="link"),ue.linkText=!0,at(ue)):xt(ve,ue,Ct)}function ke(ve,ue){if(ve.match(/^\]:/,!0)){ue.f=ue.inline=Le,ge.highlightFormatting&&(ue.formatting="link");var rt=at(ue);return ue.linkText=!1,rt}return ve.match(/^([^\]\\]|\\.)+/,!0),Oe.linkText}function Le(ve,ue){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?ue.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ue.f=ue.inline=Ct,Oe.linkHref+" url")}var bt={startState:function(){return{f:lt,prevLine:{stream:null},thisLine:{stream:null},block:lt,htmlState:null,indentation:0,inline:Ct,text:Ue,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&E.copyState(Je,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?E.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,ue){if(ue.formatting=!1,ve!=ue.thisLine.stream){if(ue.header=0,ue.hr=!1,ve.match(/^\s*$/,!0))return Re(ue),null;if(ue.prevLine=ue.thisLine,ue.thisLine={stream:ve},ue.taskList=!1,ue.trailingSpace=0,ue.trailingSpaceNewLine=!1,!ue.localState&&(ue.f=ue.block,ue.f!=Ke)){var rt=ve.match(/^\s*/,!0)[0].replace(/\t/g,ft).length;if(ue.indentation=rt,ue.indentationDiff=null,rt>0)return null}}return ue.f(ve,ue)},innerMode:function(ve){return ve.block==Ke?{state:ve.htmlState,mode:Je}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:bt}},indent:function(ve,ue,rt){return ve.block==Ke&&Je.indent?Je.indent(ve.htmlState,ue,rt):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ue,rt):E.Pass},blankLine:Re,getType:at,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return bt},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(nn,jt,ie){(function(E){E(ie(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 Ve=0;Ve<E.modeInfo.length;Ve++){var ge=E.modeInfo[Ve];ge.mimes&&(ge.mime=ge.mimes[0])}E.findModeByMIME=function(Je){Je=Je.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var be=E.modeInfo[Ce];if(be.mime==Je)return be;if(be.mimes){for(var Oe=0;Oe<be.mimes.length;Oe++)if(be.mimes[Oe]==Je)return be}}if(/\+xml$/.test(Je))return E.findModeByMIME("application/xml");if(/\+json$/.test(Je))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Je){Je=Je.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var be=E.modeInfo[Ce];if(be.ext){for(var Oe=0;Oe<be.ext.length;Oe++)if(be.ext[Oe]==Je)return be}}},E.findModeByFileName=function(Je){for(var Ce=0;Ce<E.modeInfo.length;Ce++){var be=E.modeInfo[Ce];if(be.file&&be.file.test(Je))return be}var Oe=Je.lastIndexOf("."),$e=Oe>-1&&Je.substring(Oe+1,Je.length);if($e)return E.findModeByExtension($e)},E.findModeByName=function(Je){Je=Je.toLowerCase();for(var Ce=0;Ce<E.modeInfo.length;Ce++){var be=E.modeInfo[Ce];if(be.name.toLowerCase()==Je)return be;if(be.alias){for(var Oe=0;Oe<be.alias.length;Oe++)if(be.alias[Oe].toLowerCase()==Je)return be}}}})},67549:function(nn,jt,ie){(function(E){E(ie(89780))})(function(E){"use strict";E.defineMode("stex",function(Ve,ge){"use strict";function Je(Qe,Me){Qe.cmdState.push(Me)}function Ce(Qe){return Qe.cmdState.length>0?Qe.cmdState[Qe.cmdState.length-1]:null}function be(Qe){var Me=Qe.cmdState.pop();Me&&Me.closeBracket()}function Oe(Qe){for(var Me=Qe.cmdState,Ne=Me.length-1;Ne>=0;Ne--){var Ae=Me[Ne];if(Ae.name!="DEFAULT")return Ae}return{styleIdentifier:function(){return null}}}function $e(Qe,Me,Ne){return function(){this.name=Qe,this.bracketNo=0,this.style=Me,this.styles=Ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var De={};De.importmodule=$e("importmodule","tag",["string","builtin"]),De.documentclass=$e("documentclass","tag",["","atom"]),De.usepackage=$e("usepackage","tag",["atom"]),De.begin=$e("begin","tag",["atom"]),De.end=$e("end","tag",["atom"]),De.label=$e("label","tag",["atom"]),De.ref=$e("ref","tag",["atom"]),De.eqref=$e("eqref","tag",["atom"]),De.cite=$e("cite","tag",["atom"]),De.bibitem=$e("bibitem","tag",["atom"]),De.Bibitem=$e("Bibitem","tag",["atom"]),De.RBibitem=$e("RBibitem","tag",["atom"]),De.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function he(Qe,Me){Qe.f=Me}function Ze(Qe,Me){var Ne;if(Qe.match(/^\\[a-zA-Z@]+/)){var Ae=Qe.current().slice(1);return Ne=De.hasOwnProperty(Ae)?De[Ae]:De.DEFAULT,Ne=new Ne,Je(Me,Ne),he(Me,mt),Ne.style}if(Qe.match(/^\\[$&%#{}_]/)||Qe.match(/^\\[,;!\/\\]/))return"tag";if(Qe.match("\\["))return he(Me,function(xt,It){return Ee(xt,It,"\\]")}),"keyword";if(Qe.match("\\("))return he(Me,function(xt,It){return Ee(xt,It,"\\)")}),"keyword";if(Qe.match("$$"))return he(Me,function(xt,It){return Ee(xt,It,"$$")}),"keyword";if(Qe.match("$"))return he(Me,function(xt,It){return Ee(xt,It,"$")}),"keyword";var ft=Qe.next();if(ft=="%")return Qe.skipToEnd(),"comment";if(ft=="}"||ft=="]"){if(Ne=Ce(Me),Ne)Ne.closeBracket(ft),he(Me,mt);else return"error";return"bracket"}else return ft=="{"||ft=="["?(Ne=De.DEFAULT,Ne=new Ne,Je(Me,Ne),"bracket"):/\d/.test(ft)?(Qe.eatWhile(/[\w.%]/),"atom"):(Qe.eatWhile(/[\w\-_]/),Ne=Oe(Me),Ne.name=="begin"&&(Ne.argument=Qe.current()),Ne.styleIdentifier())}function Ee(Qe,Me,Ne){if(Qe.eatSpace())return null;if(Ne&&Qe.match(Ne))return he(Me,Ze),"keyword";if(Qe.match(/^\\[a-zA-Z@]+/))return"tag";if(Qe.match(/^[a-zA-Z]+/))return"variable-2";if(Qe.match(/^\\[$&%#{}_]/)||Qe.match(/^\\[,;!\/]/)||Qe.match(/^[\^_&]/))return"tag";if(Qe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Qe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ae=Qe.next();return Ae=="{"||Ae=="}"||Ae=="["||Ae=="]"||Ae=="("||Ae==")"?"bracket":Ae=="%"?(Qe.skipToEnd(),"comment"):"error"}function mt(Qe,Me){var Ne=Qe.peek(),Ae;return Ne=="{"||Ne=="["?(Ae=Ce(Me),Ae.openBracket(Ne),Qe.eat(Ne),he(Me,Ze),"bracket"):/[ \t\r]/.test(Ne)?(Qe.eat(Ne),null):(he(Me,Ze),be(Me),Ze(Qe,Me))}return{startState:function(){var Qe=ge.inMathMode?function(Me,Ne){return Ee(Me,Ne)}:Ze;return{cmdState:[],f:Qe}},copyState:function(Qe){return{cmdState:Qe.cmdState.slice(),f:Qe.f}},token:function(Qe,Me){return Me.f(Qe,Me)},blankLine:function(Qe){Qe.f=Ze,Qe.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(nn,jt,ie){(function(E){E(ie(89780))})(function(E){"use strict";var Ve={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(Je,Ce){var be=Je.indentUnit,Oe={},$e=Ce.htmlMode?Ve:ge;for(var De in $e)Oe[De]=$e[De];for(var De in Ce)Oe[De]=Ce[De];var he,Ze;function Ee(He,it){function nt(ke){return it.tokenize=ke,ke(He,it)}var de=He.next();if(de=="<")return He.eat("!")?He.eat("[")?He.match("CDATA[")?nt(Me("atom","]]>")):null:He.match("--")?nt(Me("comment","-->")):He.match("DOCTYPE",!0,!0)?(He.eatWhile(/[\w\._\-]/),nt(Ne(1))):null:He.eat("?")?(He.eatWhile(/[\w\._\-]/),it.tokenize=Me("meta","?>"),"meta"):(he=He.eat("/")?"closeTag":"openTag",it.tokenize=mt,"tag bracket");if(de=="&"){var Et;return He.eat("#")?He.eat("x")?Et=He.eatWhile(/[a-fA-F\d]/)&&He.eat(";"):Et=He.eatWhile(/[\d]/)&&He.eat(";"):Et=He.eatWhile(/[\w\.\-:]/)&&He.eat(";"),Et?"atom":"error"}else return He.eatWhile(/[^&<]/),null}Ee.isInText=!0;function mt(He,it){var nt=He.next();if(nt==">"||nt=="/"&&He.eat(">"))return it.tokenize=Ee,he=nt==">"?"endTag":"selfcloseTag","tag bracket";if(nt=="=")return he="equals",null;if(nt=="<"){it.tokenize=Ee,it.state=It,it.tagName=it.tagStart=null;var de=it.tokenize(He,it);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(nt)?(it.tokenize=Qe(nt),it.stringStartCol=He.column(),it.tokenize(He,it)):(He.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Qe(He){var it=function(nt,de){for(;!nt.eol();)if(nt.next()==He){de.tokenize=mt;break}return"string"};return it.isInAttribute=!0,it}function Me(He,it){return function(nt,de){for(;!nt.eol();){if(nt.match(it)){de.tokenize=Ee;break}nt.next()}return He}}function Ne(He){return function(it,nt){for(var de;(de=it.next())!=null;){if(de=="<")return nt.tokenize=Ne(He+1),nt.tokenize(it,nt);if(de==">")if(He==1){nt.tokenize=Ee;break}else return nt.tokenize=Ne(He-1),nt.tokenize(it,nt)}return"meta"}}function Ae(He,it,nt){this.prev=He.context,this.tagName=it,this.indent=He.indented,this.startOfLine=nt,(Oe.doNotIndent.hasOwnProperty(it)||He.context&&He.context.noIndent)&&(this.noIndent=!0)}function ft(He){He.context&&(He.context=He.context.prev)}function xt(He,it){for(var nt;;){if(!He.context||(nt=He.context.tagName,!Oe.contextGrabbers.hasOwnProperty(nt)||!Oe.contextGrabbers[nt].hasOwnProperty(it)))return;ft(He)}}function It(He,it,nt){return He=="openTag"?(nt.tagStart=it.column(),pt):He=="closeTag"?Re:It}function pt(He,it,nt){return He=="word"?(nt.tagName=it.current(),Ze="tag",Ot):Oe.allowMissingTagName&&He=="endTag"?(Ze="tag bracket",Ot(He,it,nt)):(Ze="error",pt)}function Re(He,it,nt){if(He=="word"){var de=it.current();return nt.context&&nt.context.tagName!=de&&Oe.implicitlyClosed.hasOwnProperty(nt.context.tagName)&&ft(nt),nt.context&&nt.context.tagName==de||Oe.matchClosing===!1?(Ze="tag",lt):(Ze="tag error",Ke)}else return Oe.allowMissingTagName&&He=="endTag"?(Ze="tag bracket",lt(He,it,nt)):(Ze="error",Ke)}function lt(He,it,nt){return He!="endTag"?(Ze="error",lt):(ft(nt),It)}function Ke(He,it,nt){return Ze="error",lt(He,it,nt)}function Ot(He,it,nt){if(He=="word")return Ze="attribute",at;if(He=="endTag"||He=="selfcloseTag"){var de=nt.tagName,Et=nt.tagStart;return nt.tagName=nt.tagStart=null,He=="selfcloseTag"||Oe.autoSelfClosers.hasOwnProperty(de)?xt(nt,de):(xt(nt,de),nt.context=new Ae(nt,de,Et==nt.indented)),It}return Ze="error",Ot}function at(He,it,nt){return He=="equals"?Ue:(Oe.allowMissing||(Ze="error"),Ot(He,it,nt))}function Ue(He,it,nt){return He=="string"?Ct:He=="word"&&Oe.allowUnquoted?(Ze="string",Ot):(Ze="error",Ot(He,it,nt))}function Ct(He,it,nt){return He=="string"?Ct:Ot(He,it,nt)}return{startState:function(He){var it={tokenize:Ee,state:It,indented:He||0,tagName:null,tagStart:null,context:null};return He!=null&&(it.baseIndent=He),it},token:function(He,it){if(!it.tagName&&He.sol()&&(it.indented=He.indentation()),He.eatSpace())return null;he=null;var nt=it.tokenize(He,it);return(nt||he)&&nt!="comment"&&(Ze=null,it.state=it.state(he||nt,He,it),Ze&&(nt=Ze=="error"?nt+" error":Ze)),nt},indent:function(He,it,nt){var de=He.context;if(He.tokenize.isInAttribute)return He.tagStart==He.indented?He.stringStartCol+1:He.indented+be;if(de&&de.noIndent)return E.Pass;if(He.tokenize!=mt&&He.tokenize!=Ee)return nt?nt.match(/^(\s*)/)[0].length:0;if(He.tagName)return Oe.multilineTagIndentPastTag!==!1?He.tagStart+He.tagName.length+2:He.tagStart+be*(Oe.multilineTagIndentFactor||1);if(Oe.alignCDATA&&/<!\[CDATA\[/.test(it))return 0;var Et=it&&/^<(\/)?([\w_:\.-]*)/.exec(it);if(Et&&Et[1])for(;de;)if(de.tagName==Et[2]){de=de.prev;break}else if(Oe.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(Et)for(;de;){var ke=Oe.contextGrabbers[de.tagName];if(ke&&ke.hasOwnProperty(Et[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+be:He.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Oe.htmlMode?"html":"xml",helperType:Oe.htmlMode?"html":"xml",skipAttribute:function(He){He.state==Ue&&(He.state=Ot)},xmlCurrentTag:function(He){return He.tagName?{name:He.tagName,close:He.type=="closeTag"}:null},xmlCurrentContext:function(He){for(var it=[],nt=He.context;nt;nt=nt.prev)nt.tagName&&it.push(nt.tagName);return it.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(nn,jt,ie){"use strict";ie.d(jt,{hP:function(){return gt}});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 Ve(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(Pe){try{ct(oe.next(Pe))}catch(Ge){ne(Ge)}}function ye(Pe){try{ct(oe.throw(Pe))}catch(Ge){ne(Ge)}}function ct(Pe){var Ge;Pe.done?se(Pe.value):(Ge=Pe.value,Ge instanceof ee?Ge:new ee(function(dt){dt(Ge)})).then(pe,ye)}ct((oe=oe.apply(ae,te||[])).next())})}function Je(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:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function ye(ct){return function(Pe){return function(Ge){if(ee)throw new TypeError("Generator is already executing.");for(;pe;)try{if(ee=1,oe&&(se=2&Ge[0]?oe.return:Ge[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ge[1])).done)return se;switch(oe=0,se&&(Ge=[2&Ge[0],se.value]),Ge[0]){case 0:case 1:se=Ge;break;case 4:return pe.label++,{value:Ge[1],done:!1};case 5:pe.label++,oe=Ge[1],Ge=[0];continue;case 7:Ge=pe.ops.pop(),pe.trys.pop();continue;default:if(se=pe.trys,!((se=se.length>0&&se[se.length-1])||Ge[0]!==6&&Ge[0]!==2)){pe=0;continue}if(Ge[0]===3&&(!se||Ge[1]>se[0]&&Ge[1]<se[3])){pe.label=Ge[1];break}if(Ge[0]===6&&pe.label<se[1]){pe.label=se[1],se=Ge;break}if(se&&pe.label<se[2]){pe.label=se[2],pe.ops.push(Ge);break}se[2]&&pe.ops.pop(),pe.trys.pop();continue}Ge=te.call(ae,pe)}catch(dt){Ge=[6,dt],oe=0}finally{ee=se=0}if(5&Ge[0])throw Ge[1];return{value:Ge[0]?Ge[1]:void 0,done:!0}}([ct,Pe])}}}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,ye=ne.length;pe<ye;pe++,se++)oe[se]=ne[pe];return oe}var be=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],ye=ne[1];te.setAttribute(pe,ye)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,ne){var 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,ye){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(ye),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}(),Oe=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}(),$e=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 ye=document.createElementNS("http://www.w3.org/2000/svg","svg");ye.setAttribute("xmlns","http://www.w3.org/2000/svg"),ye.setAttribute("width",ee.width.baseVal.valueAsString),ye.setAttribute("height",ee.height.baseVal.valueAsString),ye.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),ye.innerHTML=ee.innerHTML,se.naturalSize===!0?(ye.width.baseVal.value=te.naturalWidth,ye.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(ye.width.baseVal.value=se.width,ye.height.baseVal.value=se.height),pe.width=ye.width.baseVal.value,pe.height=ye.height.baseVal.value;var ct=ye.outerHTML,Pe=pe.getContext("2d");se.markersOnly!==!0&&Pe.drawImage(te,0,0,pe.width,pe.height);var Ge=window.URL,dt=new Image(pe.width,pe.height);dt.setAttribute("crossOrigin","anonymous");var Pt=new Blob([ct],{type:"image/svg+xml"}),St=Ge.createObjectURL(Pt);dt.onload=function(){Pe.drawImage(dt,0,0),Ge.revokeObjectURL(St);var xe=pe.toDataURL(se.imageType,se.imageQuality);ne(xe)},dt.src=St})},ae}(),De=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 Ze("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Ze("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ee("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ee("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),Ze=function(ae,te){this.selector=ae,this.style=te},Ee=function(ae,te){this.localName=ae,this.style=te},mt=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 Ee("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ee("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ee("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ee("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ee("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ee("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
padding: `+te+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),Qe=function(){function ae(te,ee,oe,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 Ee("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ee("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
|
|
|
padding: `+ee+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Ze("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},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 ye=document.createElement("div");ye.className=se.toolboxButtonStyleClass.name+" "+((pe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pe!==void 0?pe:se.toolboxButtonStyleColorsClass.name),ye.innerHTML=ne.icon,ye.title=ne.title,ye.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(ye),se.buttonRow.appendChild(ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,pe){var ye,ct;ne.className=ee.toolboxButtonStyleClass.name+" "+(pe===oe?""+((ye=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ye!==void 0?ye:ee.toolboxActiveButtonStyleColorsClass.name):""+((ct=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ct!==void 0?ct:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Me=function(ae,te){this.title=ae,this.icon=te},Ne=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 Ve(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 ye=document.createElement("div");return ye.style.display="inline-block",ye.style.width=ne-2+"px",ye.style.height=ne-2+"px",ye.style.backgroundColor=ee,ye.style.borderRadius=ne/2+"px",ee==="transparent"&&(ye.style.fill=this.uiStyleSettings.toolboxAccentColor,ye.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),pe.appendChild(ye),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}(Me),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}(),ft=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),xt=function(){function ae(){this.GRIP_SIZE=10,this.visual=be.createGroup(),this.visual.appendChild(be.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(be.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}(),It=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}(),pt=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(be.createTransform()),ne.setupControlBox(),ne}return Ve(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=be.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=be.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=be.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=be.createGroup();var ee=be.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=be.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=be.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 ft,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var ee=new xt;return ee.visual.transform.baseVal.appendItem(be.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,ye=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,ye),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,ye),this.positionGrip(this.controlGrips.bottomRight.visual,ct,ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var ne=ee.transform.baseVal.getItem(0);ne.setTranslate(oe,se),ee.transform.baseVal.replaceItem(ne,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:It.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:It.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(It.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(It.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),Re=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 Ve(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=be.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),be.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&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&be.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}(pt),lt=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 Ve(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 ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.display="flex",ye.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",ye.appendChild(ct),ne.appendChild(ye),ee.widthBoxes.push(ne)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Me),Ke=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 Ve(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 ye=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
|
</svg>`;pe.innerHTML=ye,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}(Me),Ot=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ve(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}(Re),at=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"},Ue=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 Ve(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=be.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new xt;return ee.visual.transform.baseVal.appendItem(be.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),Ct=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ve(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=be.createGroup(),this.selectorLine=be.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=be.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()),be.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),be.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}(Ue),He=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 Ve(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 ye=document.createElement("div");ye.style.whiteSpace="nowrap",ye.style.overflow="hidden",ye.style.textOverflow="ellipsis",ye.innerHTML="The quick brown fox jumps over the lazy dog",pe.appendChild(ye),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}(Me),it=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ne("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Ve(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=be.createGroup(),this.bgRectangle=be.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=be.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(be.createTransform()),this.textElement.transform.baseVal.appendItem(be.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(be.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&&(be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.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&&be.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&&be.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}(pt),nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ne("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Ve(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=be.createGroup(),this.drawingImage=be.createImage(),this.visual.appendChild(this.drawingImage);var ee=be.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),be.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),be.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],ye=oe[3],ct=!1,Pe=0;Pe<this.canvasElement.height;Pe++)for(var Ge=0;Ge<this.canvasElement.width;Ge++)ee.data[Pe*this.canvasElement.width*4+4*Ge+3]>0&&(ct=!0,Pe<ne&&(ne=Pe),Ge<se&&(se=Ge),Pe>ye&&(ye=Pe),Ge>pe&&(pe=Ge));if(ct){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(pe-se)/this.pixelRatio,this.height=(ye-ne)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=pe-se,dt.height=ye-ne,dt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,pe-se,ye-ne),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){be.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),be.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}(pt),de=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 Ve(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(ye){var ct="both";switch(ye){case 0:ct="both";break;case 1:ct="start";break;case 2:ct="end";break;case 3:ct="none"}var Pe=document.createElement("div");if(Pe.style.display="flex",Pe.style.flexGrow="2",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.borderColor=ct===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){ee.setCurrentType(ct,Pe)}),oe.appendChild(Pe),ct==="both"||ct==="start"){var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.alignItems="center",Ge.style.minHeight="20px",Ge.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ge.style.marginLeft="5px",Pe.appendChild(Ge)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var Pt=document.createElement("hr");if(Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Pt.style.flexGrow="2",dt.appendChild(Pt),Pe.appendChild(dt),ct==="both"||ct==="end"){var St=document.createElement("div");St.style.display="flex",St.style.alignItems="center",St.style.minHeight="20px",St.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>`,St.style.marginRight="5px",Pe.appendChild(St)}ne.typeBoxes.push(Pe)},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}(Me),Et=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 de("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Ve(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=be.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(be.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=be.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(be.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",be.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),be.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}(Ct),ke=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ne("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Ve(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}(Re),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.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 Ve(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}(Me),bt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ne("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Le("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ve(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&be.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}(ke),ve='<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>',ue='<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>',rt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ne("Text color",se.defaultColorSet,ne.color,ve),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ne("Fill color",se.defaultColorSet,ne.bgColor,ue),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new xt,ne.tipGrip.visual.transform.baseVal.appendItem(be.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Ve(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(){be.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=be.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&&(be.setAttributes(this.bgRectangle,[["fill",ee]]),be.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(){be.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}(it),Nt=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ne("Line color",Ce(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ne("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,ue),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new Le("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ve(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=be.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),be.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&&be.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&be.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&be.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&be.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&be.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}(pt),yt=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return Ve(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=be.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(be.createTransform()),this.visual.appendChild(this.tip1),this.tip2=be.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(be.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&&(be.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()]]),be.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}(Ct),Ie=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 Ve(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}(Nt),Xe=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}(),qe=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ve(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=be.createGroup(),this.selectorCurve=be.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=be.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()),be.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),be.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),be.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=be.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=be.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}(Ue),en=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,oe,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ne("Line color",Ce(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ne("Fill color",Ce(se.defaultColorSet,["transparent"]),ne.fillColor,ue),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new He("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ne("Text color",se.defaultColorSet,ne.textColor,ve),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Ve(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=be.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=be.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=be.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=be.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),be.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')"]]),be.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&&be.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&&be.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),be.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&&be.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&be.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&be.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&be.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}(pt),Ft=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}(),_t=function(ae){function te(ee,oe,se){var ne=ae.call(this,ee,!1)||this;return ne.dataUrl=oe,ne.state=se,ne}return Ve(te,ae),te}(Ft),je=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 Ve(te,ae),te}(Ft),Ht=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}(),gt=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 at,this._isOpen=!1,this.undoRedoManager=new Xe,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 Ht,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[Ot,nt,Et,it,Ie,Nt,bt,rt,yt,ke,Ct,qe,en]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ot,nt,Et,it,Nt,bt,rt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ot,nt,Et,it,bt]},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(),Oe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&De.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=De.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Ft(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Je(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new $e).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 Ft(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 Ft(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 it?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=be.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 mt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Qe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},ae.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ae.prototype.toolbarButtonClicked=function(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ae.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new je(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 je(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(pe){var ye=new je(te,void 0,!0);pe(ye),ye.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(pe){var ye=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 je(te,ye))})},se=this,ne=this.markers.length-1;ne>=0;ne--)oe(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},ae.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Ft(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ne){return ne(new Ft(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 Ft(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 Ft(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 Je(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 _t(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 Ft(ee))})},ae.prototype.addNewMarker=function(te){var ee=be.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 je(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof nt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(nt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new je(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 je(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 je(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 je(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){Oe.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 Ft(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 Ft(te))}))},ae.instanceCounter=0,ae}()},6551:function(nn,jt,ie){"use strict";ie.d(jt,{ZP:function(){return Oe}});var E=ie(42978),Ve=ie(59301),ge=ie(47273),Je=0,Ce=(0,ge.Z)();function be(){var $e;return Ce?($e=Je,Je+=1):$e="TEST_OR_SSR",$e}function Oe($e){var De=Ve.useState(),he=(0,E.Z)(De,2),Ze=he[0],Ee=he[1];return Ve.useEffect(function(){Ee("rc_select_".concat(be()))},[]),$e||Ze}},37463:function(nn,jt,ie){"use strict";ie.d(jt,{Ac:function(){return wt},Xo:function(){return Lt},Wx:function(){return sn},ZP:function(){return mr},lk:function(){return It}});var E=ie(54476),Ve=ie(94480),ge=ie(20068),Je=ie(33885),Ce=ie(42978),be=ie(75931),Oe=ie(76190),$e=ie(18929),De=ie(48736),he=ie(59301),Ze=ie(92310),Ee=ie.n(Ze),mt=ie(34280),Qe=ie(49658),Me=ie(8654),Ne=function(ot){var Se=ot.className,We=ot.customizeIcon,we=ot.customizeIconProps,_e=ot.children,vt=ot.onMouseDown,on=ot.onClick,ln=typeof We=="function"?We(we):We;return he.createElement("span",{className:Se,onMouseDown:function(Rt){Rt.preventDefault(),vt==null||vt(Rt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:on,"aria-hidden":!0},ln!==void 0?ln:he.createElement("span",{className:Ee()(Se.split(/\s+/).map(function(gn){return"".concat(gn,"-icon")}))},_e))},Ae=Ne,ft=function(ot,Se,We,we,_e){var vt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,on=arguments.length>6?arguments[6]:void 0,ln=arguments.length>7?arguments[7]:void 0,gn=he.useMemo(function(){if((0,Oe.Z)(we)==="object")return we.clearIcon;if(_e)return _e},[we,_e]),Rt=he.useMemo(function(){return!!(!vt&&we&&(We.length||on)&&!(ln==="combobox"&&on===""))},[we,vt,We.length,on,ln]);return{allowClear:Rt,clearIcon:he.createElement(Ae,{className:"".concat(ot,"-clear"),onMouseDown:Se,customizeIcon:gn},"\xD7")}},xt=he.createContext(null);function It(){return he.useContext(xt)}function pt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ot=he.useState(!1),Se=(0,Ce.Z)(ot,2),We=Se[0],we=Se[1],_e=he.useRef(null),vt=function(){window.clearTimeout(_e.current)};he.useEffect(function(){return vt},[]);var on=function(gn,Rt){vt(),_e.current=window.setTimeout(function(){we(gn),Rt&&Rt()},ze)};return[We,on,vt]}function Re(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ot=he.useRef(null),Se=he.useRef(null);he.useEffect(function(){return function(){window.clearTimeout(Se.current)}},[]);function We(we){(we||ot.current===null)&&(ot.current=we),window.clearTimeout(Se.current),Se.current=window.setTimeout(function(){ot.current=null},ze)}return[function(){return ot.current},We]}function lt(ze,ot,Se,We){var we=he.useRef(null);we.current={open:ot,triggerOpen:Se,customizedTrigger:We},he.useEffect(function(){function _e(vt){var on;if(!((on=we.current)!==null&&on!==void 0&&on.customizedTrigger)){var ln=vt.target;ln.shadowRoot&&vt.composed&&(ln=vt.composedPath()[0]||ln),we.current.open&&ze().filter(function(gn){return gn}).every(function(gn){return!gn.contains(ln)&&gn!==ln})&&we.current.triggerOpen(!1)}}return window.addEventListener("mousedown",_e),function(){return window.removeEventListener("mousedown",_e)}},[])}var Ke=ie(10228);function Ot(ze){return ze&&![Ke.Z.ESC,Ke.Z.SHIFT,Ke.Z.BACKSPACE,Ke.Z.TAB,Ke.Z.WIN_KEY,Ke.Z.ALT,Ke.Z.META,Ke.Z.WIN_KEY_RIGHT,Ke.Z.CTRL,Ke.Z.SEMICOLON,Ke.Z.EQUALS,Ke.Z.CAPS_LOCK,Ke.Z.CONTEXT_MENU,Ke.Z.F1,Ke.Z.F2,Ke.Z.F3,Ke.Z.F4,Ke.Z.F5,Ke.Z.F6,Ke.Z.F7,Ke.Z.F8,Ke.Z.F9,Ke.Z.F10,Ke.Z.F11,Ke.Z.F12].includes(ze)}var at=ie(26112),Ue=ie(83836);function Ct(ze,ot,Se){var We=(0,Je.Z)((0,Je.Z)({},ze),Se?ot:{});return Object.keys(ot).forEach(function(we){var _e=ot[we];typeof _e=="function"&&(We[we]=function(){for(var vt,on=arguments.length,ln=new Array(on),gn=0;gn<on;gn++)ln[gn]=arguments[gn];return _e.apply(void 0,ln),(vt=ze[we])===null||vt===void 0?void 0:vt.call.apply(vt,[ze].concat(ln))})}),We}var He=Ct,it=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],nt=function(ot,Se){var We=ot.prefixCls,we=ot.id,_e=ot.inputElement,vt=ot.autoFocus,on=ot.autoComplete,ln=ot.editable,gn=ot.activeDescendantId,Rt=ot.value,Mt=ot.open,Dt=ot.attrs,dn=(0,be.Z)(ot,it),et=_e||he.createElement("input",null),tt=et,Te=tt.ref,Xt=tt.props;return(0,De.Kp)(!("maxLength"in et.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),et=he.cloneElement(et,(0,Je.Z)((0,Je.Z)((0,Je.Z)({type:"search"},He(dn,Xt,!0)),{},{id:we,ref:(0,Me.sQ)(Se,Te),autoComplete:on||"off",autoFocus:vt,className:Ee()("".concat(We,"-selection-search-input"),Xt==null?void 0:Xt.className),role:"combobox","aria-expanded":Mt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(we,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(we,"_list"),"aria-activedescendant":Mt?gn:void 0},Dt),{},{value:ln?Rt:"",readOnly:!ln,unselectable:ln?null:"on",style:(0,Je.Z)((0,Je.Z)({},Xt.style),{},{opacity:ln?null:0})})),et},de=he.forwardRef(nt),Et=de;function ke(ze){return Array.isArray(ze)?ze:ze!==void 0?[ze]:[]}var Le=typeof window!="undefined"&&window.document&&window.document.documentElement,bt=Le;function ve(ze){return ze!=null}function ue(ze){return!ze&&ze!==0}function rt(ze){return["string","number"].includes((0,Oe.Z)(ze))}function Nt(ze){var ot=void 0;return ze&&(rt(ze.title)?ot=ze.title.toString():rt(ze.label)&&(ot=ze.label.toString())),ot}function yt(ze,ot){bt?he.useLayoutEffect(ze,ot):he.useEffect(ze,ot)}function Ie(ze){var ot;return(ot=ze.key)!==null&&ot!==void 0?ot:ze.value}var Xe=function(ot){ot.preventDefault(),ot.stopPropagation()},qe=function(ot){var Se=ot.id,We=ot.prefixCls,we=ot.values,_e=ot.open,vt=ot.searchValue,on=ot.autoClearSearchValue,ln=ot.inputRef,gn=ot.placeholder,Rt=ot.disabled,Mt=ot.mode,Dt=ot.showSearch,dn=ot.autoFocus,et=ot.autoComplete,tt=ot.activeDescendantId,Te=ot.tabIndex,Xt=ot.removeIcon,Ln=ot.maxTagCount,Vn=ot.maxTagTextLength,yn=ot.maxTagPlaceholder,Wt=yn===void 0?function(Yt){return"+ ".concat(Yt.length," ...")}:yn,st=ot.tagRender,xn=ot.onToggleOpen,An=ot.onRemove,Hn=ot.onInputChange,Un=ot.onInputPaste,Jn=ot.onInputKeyDown,pn=ot.onInputMouseDown,Wn=ot.onInputCompositionStart,tr=ot.onInputCompositionEnd,or=ot.onInputBlur,nr=he.useRef(null),pr=(0,he.useState)(0),br=(0,Ce.Z)(pr,2),Kn=br[0],ar=br[1],Fn=(0,he.useState)(!1),rr=(0,Ce.Z)(Fn,2),Cr=rr[0],Qn=rr[1],Er="".concat(We,"-selection"),qn=_e||Mt==="multiple"&&on===!1||Mt==="tags"?vt:"",In=Mt==="tags"||Mt==="multiple"&&on===!1||Dt&&(_e||Cr);yt(function(){ar(nr.current.scrollWidth)},[qn]);var cr=function(Zt,wn,Rn,qt,hn){return he.createElement("span",{title:Nt(Zt),className:Ee()("".concat(Er,"-item"),(0,ge.Z)({},"".concat(Er,"-item-disabled"),Rn))},he.createElement("span",{className:"".concat(Er,"-item-content")},wn),qt&&he.createElement(Ae,{className:"".concat(Er,"-item-remove"),onMouseDown:Xe,onClick:hn,customizeIcon:Xt},"\xD7"))},fr=function(Zt,wn,Rn,qt,hn,Dn){var Nn=function(Tr){Xe(Tr),xn(!_e)};return he.createElement("span",{onMouseDown:Nn},st({label:wn,value:Zt,disabled:Rn,closable:qt,onClose:hn,isMaxTag:!!Dn}))},xr=function(Zt){var wn=Zt.disabled,Rn=Zt.label,qt=Zt.value,hn=!Rt&&!wn,Dn=Rn;if(typeof Vn=="number"&&(typeof Rn=="string"||typeof Rn=="number")){var Nn=String(Dn);Nn.length>Vn&&(Dn="".concat(Nn.slice(0,Vn),"..."))}var Sr=function(Dr){Dr&&Dr.stopPropagation(),An(Zt)};return typeof st=="function"?fr(qt,Dn,wn,hn,Sr):cr(Zt,Dn,wn,hn,Sr)},Mn=function(Zt){if(!we.length)return null;var wn=typeof Wt=="function"?Wt(Zt):Wt;return typeof st=="function"?fr(void 0,wn,!1,!1,void 0,!0):cr({title:wn},wn,!1)},Ut=he.createElement("div",{className:"".concat(Er,"-search"),style:{width:Kn},onFocus:function(){Qn(!0)},onBlur:function(){Qn(!1)}},he.createElement(Et,{ref:ln,open:_e,prefixCls:We,id:Se,inputElement:null,disabled:Rt,autoFocus:dn,autoComplete:et,editable:In,activeDescendantId:tt,value:qn,onKeyDown:Jn,onMouseDown:pn,onChange:Hn,onPaste:Un,onCompositionStart:Wn,onCompositionEnd:tr,onBlur:or,tabIndex:Te,attrs:(0,at.Z)(ot,!0)}),he.createElement("span",{ref:nr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},qn,"\xA0")),tn=he.createElement(Ue.Z,{prefixCls:"".concat(Er,"-overflow"),data:we,renderItem:xr,renderRest:Mn,suffix:Ut,itemKey:Ie,maxCount:Ln});return he.createElement("span",{className:"".concat(Er,"-wrap")},tn,!we.length&&!qn&&he.createElement("span",{className:"".concat(Er,"-placeholder")},gn))},en=qe,Ft=function(ot){var Se=ot.inputElement,We=ot.prefixCls,we=ot.id,_e=ot.inputRef,vt=ot.disabled,on=ot.autoFocus,ln=ot.autoComplete,gn=ot.activeDescendantId,Rt=ot.mode,Mt=ot.open,Dt=ot.values,dn=ot.placeholder,et=ot.tabIndex,tt=ot.showSearch,Te=ot.searchValue,Xt=ot.activeValue,Ln=ot.maxLength,Vn=ot.onInputKeyDown,yn=ot.onInputMouseDown,Wt=ot.onInputChange,st=ot.onInputPaste,xn=ot.onInputCompositionStart,An=ot.onInputCompositionEnd,Hn=ot.onInputBlur,Un=ot.title,Jn=he.useState(!1),pn=(0,Ce.Z)(Jn,2),Wn=pn[0],tr=pn[1],or=Rt==="combobox",nr=or||tt,pr=Dt[0],br=Te||"";or&&Xt&&!Wn&&(br=Xt),he.useEffect(function(){or&&tr(!1)},[or,Xt]);var Kn=Rt!=="combobox"&&!Mt&&!tt?!1:!!br,ar=Un===void 0?Nt(pr):Un,Fn=he.useMemo(function(){return pr?null:he.createElement("span",{className:"".concat(We,"-selection-placeholder"),style:Kn?{visibility:"hidden"}:void 0},dn)},[pr,Kn,dn,We]);return he.createElement("span",{className:"".concat(We,"-selection-wrap")},he.createElement("span",{className:"".concat(We,"-selection-search")},he.createElement(Et,{ref:_e,prefixCls:We,id:we,open:Mt,inputElement:Se,disabled:vt,autoFocus:on,autoComplete:ln,editable:nr,activeDescendantId:gn,value:br,onKeyDown:Vn,onMouseDown:yn,onChange:function(Cr){tr(!0),Wt(Cr)},onPaste:st,onCompositionStart:xn,onCompositionEnd:An,onBlur:Hn,tabIndex:et,attrs:(0,at.Z)(ot,!0),maxLength:or?Ln:void 0})),!or&&pr?he.createElement("span",{className:"".concat(We,"-selection-item"),title:ar,style:Kn?{visibility:"hidden"}:void 0},pr.label):null,Fn)},_t=Ft,je=function(ot,Se){var We=(0,he.useRef)(null),we=(0,he.useRef)(!1),_e=ot.prefixCls,vt=ot.open,on=ot.mode,ln=ot.showSearch,gn=ot.tokenWithEnter,Rt=ot.disabled,Mt=ot.prefix,Dt=ot.autoClearSearchValue,dn=ot.onSearch,et=ot.onSearchSubmit,tt=ot.onToggleOpen,Te=ot.onInputKeyDown,Xt=ot.onInputBlur,Ln=ot.domRef;he.useImperativeHandle(Se,function(){return{focus:function(ar){We.current.focus(ar)},blur:function(){We.current.blur()}}});var Vn=Re(0),yn=(0,Ce.Z)(Vn,2),Wt=yn[0],st=yn[1],xn=function(ar){var Fn=ar.which,rr=We.current instanceof HTMLTextAreaElement;!rr&&vt&&(Fn===Ke.Z.UP||Fn===Ke.Z.DOWN)&&ar.preventDefault(),Te&&Te(ar),Fn===Ke.Z.ENTER&&on==="tags"&&!we.current&&!vt&&(et==null||et(ar.target.value)),!(rr&&!vt&&~[Ke.Z.UP,Ke.Z.DOWN,Ke.Z.LEFT,Ke.Z.RIGHT].indexOf(Fn))&&Ot(Fn)&&tt(!0)},An=function(){st(!0)},Hn=(0,he.useRef)(null),Un=function(ar){dn(ar,!0,we.current)!==!1&&tt(!0)},Jn=function(){we.current=!0},pn=function(ar){we.current=!1,on!=="combobox"&&Un(ar.target.value)},Wn=function(ar){var Fn=ar.target.value;if(gn&&Hn.current&&/[\r\n]/.test(Hn.current)){var rr=Hn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fn=Fn.replace(rr,Hn.current)}Hn.current=null,Un(Fn)},tr=function(ar){var Fn=ar.clipboardData,rr=Fn==null?void 0:Fn.getData("text");Hn.current=rr||""},or=function(ar){var Fn=ar.target;if(Fn!==We.current){var rr=document.body.style.msTouchAction!==void 0;rr?setTimeout(function(){We.current.focus()}):We.current.focus()}},nr=function(ar){var Fn=Wt();ar.target!==We.current&&!Fn&&!(on==="combobox"&&Rt)&&ar.preventDefault(),(on!=="combobox"&&(!ln||!Fn)||!vt)&&(vt&&Dt!==!1&&dn("",!0,!1),tt())},pr={inputRef:We,onInputKeyDown:xn,onInputMouseDown:An,onInputChange:Wn,onInputPaste:tr,onInputCompositionStart:Jn,onInputCompositionEnd:pn,onInputBlur:Xt},br=on==="multiple"||on==="tags"?he.createElement(en,(0,E.Z)({},ot,pr)):he.createElement(_t,(0,E.Z)({},ot,pr));return he.createElement("div",{ref:Ln,className:"".concat(_e,"-selector"),onClick:or,onMouseDown:nr},Mt&&he.createElement("div",{className:"".concat(_e,"-prefix")},Mt),br)},Ht=he.forwardRef(je),gt=Ht,ae=ie(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(ot){var Se=ot===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Se,adjustY:1},htmlRegion:"scroll"}}},oe=function(ot,Se){var We=ot.prefixCls,we=ot.disabled,_e=ot.visible,vt=ot.children,on=ot.popupElement,ln=ot.animation,gn=ot.transitionName,Rt=ot.dropdownStyle,Mt=ot.dropdownClassName,Dt=ot.direction,dn=Dt===void 0?"ltr":Dt,et=ot.placement,tt=ot.builtinPlacements,Te=ot.dropdownMatchSelectWidth,Xt=ot.dropdownRender,Ln=ot.dropdownAlign,Vn=ot.getPopupContainer,yn=ot.empty,Wt=ot.getTriggerDOMNode,st=ot.onPopupVisibleChange,xn=ot.onPopupMouseEnter,An=(0,be.Z)(ot,te),Hn="".concat(We,"-dropdown"),Un=on;Xt&&(Un=Xt(on));var Jn=he.useMemo(function(){return tt||ee(Te)},[tt,Te]),pn=ln?"".concat(Hn,"-").concat(ln):gn,Wn=typeof Te=="number",tr=he.useMemo(function(){return Wn?null:Te===!1?"minWidth":"width"},[Te,Wn]),or=Rt;Wn&&(or=(0,Je.Z)((0,Je.Z)({},or),{},{width:Te}));var nr=he.useRef(null);return he.useImperativeHandle(Se,function(){return{getPopupElement:function(){var br;return(br=nr.current)===null||br===void 0?void 0:br.popupElement}}}),he.createElement(ae.Z,(0,E.Z)({},An,{showAction:st?["click"]:[],hideAction:st?["click"]:[],popupPlacement:et||(dn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Jn,prefixCls:Hn,popupTransitionName:pn,popup:he.createElement("div",{onMouseEnter:xn},Un),ref:nr,stretch:tr,popupAlign:Ln,popupVisible:_e,getPopupContainer:Vn,popupClassName:Ee()(Mt,(0,ge.Z)({},"".concat(Hn,"-empty"),yn)),popupStyle:or,getTriggerDOMNode:Wt,onPopupVisibleChange:st}),vt)},se=he.forwardRef(oe),ne=se,pe=ie(66712);function ye(ze,ot){var Se=ze.key,We;return"value"in ze&&(We=ze.value),Se!=null?Se:We!==void 0?We:"rc-index-key-".concat(ot)}function ct(ze){return typeof ze!="undefined"&&!Number.isNaN(ze)}function Pe(ze,ot){var Se=ze||{},We=Se.label,we=Se.value,_e=Se.options,vt=Se.groupLabel,on=We||(ot?"children":"label");return{label:on,value:we||"value",options:_e||"options",groupLabel:vt||on}}function Ge(ze){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=ot.fieldNames,We=ot.childrenAsData,we=[],_e=Pe(Se,!1),vt=_e.label,on=_e.value,ln=_e.options,gn=_e.groupLabel;function Rt(Mt,Dt){Array.isArray(Mt)&&Mt.forEach(function(dn){if(Dt||!(ln in dn)){var et=dn[on];we.push({key:ye(dn,we.length),groupOption:Dt,data:dn,label:dn[vt],value:et})}else{var tt=dn[gn];tt===void 0&&We&&(tt=dn.label),we.push({key:ye(dn,we.length),group:!0,data:dn,label:tt}),Rt(dn[ln],!0)}})}return Rt(ze,!1),we}function dt(ze){var ot=(0,Je.Z)({},ze);return"props"in ot||Object.defineProperty(ot,"props",{get:function(){return(0,De.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ot}}),ot}var Pt=function(ot,Se,We){if(!Se||!Se.length)return null;var we=!1,_e=function on(ln,gn){var Rt=(0,pe.Z)(gn),Mt=Rt[0],Dt=Rt.slice(1);if(!Mt)return[ln];var dn=ln.split(Mt);return we=we||dn.length>1,dn.reduce(function(et,tt){return[].concat((0,Ve.Z)(et),(0,Ve.Z)(on(tt,Dt)))},[]).filter(Boolean)},vt=_e(ot,Se);return we?typeof We!="undefined"?vt.slice(0,We):vt:null},St=he.createContext(null),xe=St;function Be(ze){var ot=ze.visible,Se=ze.values;if(!ot)return null;var We=50;return he.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Se.slice(0,We).map(function(we){var _e=we.label,vt=we.value;return["number","string"].includes((0,Oe.Z)(_e))?_e:vt}).join(", ")),Se.length>We?", ...":null)}var Tt=["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"],kt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Gt=function(ot){return ot==="tags"||ot==="multiple"},Qt=he.forwardRef(function(ze,ot){var Se,We=ze.id,we=ze.prefixCls,_e=ze.className,vt=ze.showSearch,on=ze.tagRender,ln=ze.direction,gn=ze.omitDomProps,Rt=ze.displayValues,Mt=ze.onDisplayValuesChange,Dt=ze.emptyOptions,dn=ze.notFoundContent,et=dn===void 0?"Not Found":dn,tt=ze.onClear,Te=ze.mode,Xt=ze.disabled,Ln=ze.loading,Vn=ze.getInputElement,yn=ze.getRawInputElement,Wt=ze.open,st=ze.defaultOpen,xn=ze.onDropdownVisibleChange,An=ze.activeValue,Hn=ze.onActiveValueChange,Un=ze.activeDescendantId,Jn=ze.searchValue,pn=ze.autoClearSearchValue,Wn=ze.onSearch,tr=ze.onSearchSplit,or=ze.tokenSeparators,nr=ze.allowClear,pr=ze.prefix,br=ze.suffixIcon,Kn=ze.clearIcon,ar=ze.OptionList,Fn=ze.animation,rr=ze.transitionName,Cr=ze.dropdownStyle,Qn=ze.dropdownClassName,Er=ze.dropdownMatchSelectWidth,qn=ze.dropdownRender,In=ze.dropdownAlign,cr=ze.placement,fr=ze.builtinPlacements,xr=ze.getPopupContainer,Mn=ze.showAction,Ut=Mn===void 0?[]:Mn,tn=ze.onFocus,Yt=ze.onBlur,Zt=ze.onKeyUp,wn=ze.onKeyDown,Rn=ze.onMouseDown,qt=(0,be.Z)(ze,Tt),hn=Gt(Te),Dn=(vt!==void 0?vt:hn)||Te==="combobox",Nn=(0,Je.Z)({},qt);kt.forEach(function(Hr){delete Nn[Hr]}),gn==null||gn.forEach(function(Hr){delete Nn[Hr]});var Sr=he.useState(!1),Tr=(0,Ce.Z)(Sr,2),Dr=Tr[0],Lr=Tr[1];he.useEffect(function(){Lr((0,Qe.Z)())},[]);var Nr=he.useRef(null),Fr=he.useRef(null),zr=he.useRef(null),$r=he.useRef(null),jr=he.useRef(null),Xr=he.useRef(!1),ei=pt(),oi=(0,Ce.Z)(ei,3),ti=oi[0],ai=oi[1],wr=oi[2];he.useImperativeHandle(ot,function(){var Hr,Ar;return{focus:(Hr=$r.current)===null||Hr===void 0?void 0:Hr.focus,blur:(Ar=$r.current)===null||Ar===void 0?void 0:Ar.blur,scrollTo:function(wi){var ri;return(ri=jr.current)===null||ri===void 0?void 0:ri.scrollTo(wi)},nativeElement:Nr.current||Fr.current}});var gr=he.useMemo(function(){var Hr;if(Te!=="combobox")return Jn;var Ar=(Hr=Rt[0])===null||Hr===void 0?void 0:Hr.value;return typeof Ar=="string"||typeof Ar=="number"?String(Ar):""},[Jn,Te,Rt]),Zr=Te==="combobox"&&typeof Vn=="function"&&Vn()||null,_r=typeof yn=="function"&&yn(),li=(0,Me.x1)(Fr,_r==null||(Se=_r.props)===null||Se===void 0?void 0:Se.ref),Xi=he.useState(!1),Bi=(0,Ce.Z)(Xi,2),Si=Bi[0],pi=Bi[1];(0,mt.Z)(function(){pi(!0)},[]);var Gr=(0,$e.Z)(!1,{defaultValue:st,value:Wt}),di=(0,Ce.Z)(Gr,2),Vi=di[0],Li=di[1],Jr=Si?Vi:!1,oo=!et&&Dt;(Xt||oo&&Jr&&Te==="combobox")&&(Jr=!1);var Fi=oo?!1:Jr,Br=he.useCallback(function(Hr){var Ar=Hr!==void 0?Hr:!Jr;Xt||(Li(Ar),Jr!==Ar&&(xn==null||xn(Ar)))},[Xt,Jr,Li,xn]),Mr=he.useMemo(function(){return(or||[]).some(function(Hr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Hr)})},[or]),Or=he.useContext(xe)||{},ir=Or.maxCount,kr=Or.rawValues,Wr=function(Ar,xi,wi){if(!(hn&&ct(ir)&&(kr==null?void 0:kr.size)>=ir)){var ri=!0,fi=Ar;Hn==null||Hn(null);var Ji=Pt(Ar,or,ct(ir)?ir-kr.size:void 0),Ki=wi?null:Ji;return Te!=="combobox"&&Ki&&(fi="",tr==null||tr(Ki),Br(!1),ri=!1),Wn&&gr!==fi&&Wn(fi,{source:xi?"typing":"effect"}),ri}},Ri=function(Ar){!Ar||!Ar.trim()||Wn(Ar,{source:"submit"})};he.useEffect(function(){!Jr&&!hn&&Te!=="combobox"&&Wr("",!1,!1)},[Jr]),he.useEffect(function(){Vi&&Xt&&Li(!1),Xt&&!Xr.current&&ai(!1)},[Xt]);var mi=Re(),si=(0,Ce.Z)(mi,2),ni=si[0],Gi=si[1],to=he.useRef(!1),$i=function(Ar){var xi=ni(),wi=Ar.key,ri=wi==="Enter";if(ri&&(Te!=="combobox"&&Ar.preventDefault(),Jr||Br(!0)),Gi(!!gr),wi==="Backspace"&&!xi&&hn&&!gr&&Rt.length){for(var fi=(0,Ve.Z)(Rt),Ji=null,Ki=fi.length-1;Ki>=0;Ki-=1){var lo=fi[Ki];if(!lo.disabled){fi.splice(Ki,1),Ji=lo;break}}Ji&&Mt(fi,{type:"remove",values:[Ji]})}for(var zi=arguments.length,Hi=new Array(zi>1?zi-1:0),Qi=1;Qi<zi;Qi++)Hi[Qi-1]=arguments[Qi];if(Jr&&(!ri||!to.current)){var fo;ri&&(to.current=!0),(fo=jr.current)===null||fo===void 0||fo.onKeyDown.apply(fo,[Ar].concat(Hi))}wn==null||wn.apply(void 0,[Ar].concat(Hi))},no=function(Ar){for(var xi=arguments.length,wi=new Array(xi>1?xi-1:0),ri=1;ri<xi;ri++)wi[ri-1]=arguments[ri];if(Jr){var fi;(fi=jr.current)===null||fi===void 0||fi.onKeyUp.apply(fi,[Ar].concat(wi))}Ar.key==="Enter"&&(to.current=!1),Zt==null||Zt.apply(void 0,[Ar].concat(wi))},ao=function(Ar){var xi=Rt.filter(function(wi){return wi!==Ar});Mt(xi,{type:"remove",values:[Ar]})},Yi=function(){to.current=!1},Mo=he.useRef(!1),_a=function(){ai(!0),Xt||(tn&&!Mo.current&&tn.apply(void 0,arguments),Ut.includes("focus")&&Br(!0)),Mo.current=!0},ya=function(){Xr.current=!0,ai(!1,function(){Mo.current=!1,Xr.current=!1,Br(!1)}),!Xt&&(gr&&(Te==="tags"?Wn(gr,{source:"submit"}):Te==="multiple"&&Wn("",{source:"blur"})),Yt&&Yt.apply(void 0,arguments))},ro=[];he.useEffect(function(){return function(){ro.forEach(function(Hr){return clearTimeout(Hr)}),ro.splice(0,ro.length)}},[]);var co=function(Ar){var xi,wi=Ar.target,ri=(xi=zr.current)===null||xi===void 0?void 0:xi.getPopupElement();if(ri&&ri.contains(wi)){var fi=setTimeout(function(){var zi=ro.indexOf(fi);if(zi!==-1&&ro.splice(zi,1),wr(),!Dr&&!ri.contains(document.activeElement)){var Hi;(Hi=$r.current)===null||Hi===void 0||Hi.focus()}});ro.push(fi)}for(var Ji=arguments.length,Ki=new Array(Ji>1?Ji-1:0),lo=1;lo<Ji;lo++)Ki[lo-1]=arguments[lo];Rn==null||Rn.apply(void 0,[Ar].concat(Ki))},Ui=he.useState({}),ba=(0,Ce.Z)(Ui,2),xa=ba[1];function Va(){xa({})}var Ca;_r&&(Ca=function(Ar){Br(Ar)}),lt(function(){var Hr;return[Nr.current,(Hr=zr.current)===null||Hr===void 0?void 0:Hr.getPopupElement()]},Fi,Br,!!_r);var Ga=he.useMemo(function(){return(0,Je.Z)((0,Je.Z)({},ze),{},{notFoundContent:et,open:Jr,triggerOpen:Fi,id:We,showSearch:Dn,multiple:hn,toggleOpen:Br})},[ze,et,Fi,Jr,We,Dn,hn,Br]),Uo=!!br||Ln,Ko;Uo&&(Ko=he.createElement(Ae,{className:Ee()("".concat(we,"-arrow"),(0,ge.Z)({},"".concat(we,"-arrow-loading"),Ln)),customizeIcon:br,customizeIconProps:{loading:Ln,searchValue:gr,open:Jr,focused:ti,showSearch:Dn}}));var Co=function(){var Ar;tt==null||tt(),(Ar=$r.current)===null||Ar===void 0||Ar.focus(),Mt([],{type:"clear",values:Rt}),Wr("",!1,!1)},Xo=ft(we,Co,Rt,nr,Kn,Xt,gr,Te),Sa=Xo.allowClear,Yo=Xo.clearIcon,ko=he.createElement(ar,{ref:jr}),wa=Ee()(we,_e,(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(we,"-focused"),ti),"".concat(we,"-multiple"),hn),"".concat(we,"-single"),!hn),"".concat(we,"-allow-clear"),nr),"".concat(we,"-show-arrow"),Uo),"".concat(we,"-disabled"),Xt),"".concat(we,"-loading"),Ln),"".concat(we,"-open"),Jr),"".concat(we,"-customize-input"),Zr),"".concat(we,"-show-search"),Dn)),To=he.createElement(ne,{ref:zr,disabled:Xt,prefixCls:we,visible:Fi,popupElement:ko,animation:Fn,transitionName:rr,dropdownStyle:Cr,dropdownClassName:Qn,direction:ln,dropdownMatchSelectWidth:Er,dropdownRender:qn,dropdownAlign:In,placement:cr,builtinPlacements:fr,getPopupContainer:xr,empty:Dt,getTriggerDOMNode:function(Ar){return Fr.current||Ar},onPopupVisibleChange:Ca,onPopupMouseEnter:Va},_r?he.cloneElement(_r,{ref:li}):he.createElement(gt,(0,E.Z)({},ze,{domRef:Fr,prefixCls:we,inputElement:Zr,ref:$r,id:We,prefix:pr,showSearch:Dn,autoClearSearchValue:pn,mode:Te,activeDescendantId:Un,tagRender:on,values:Rt,open:Jr,onToggleOpen:Br,activeValue:An,searchValue:gr,onSearch:Wr,onSearchSubmit:Ri,onRemove:ao,tokenWithEnter:Mr,onInputBlur:Yi}))),Di;return _r?Di=To:Di=he.createElement("div",(0,E.Z)({className:wa},Nn,{ref:Nr,onMouseDown:co,onKeyDown:$i,onKeyUp:no,onFocus:_a,onBlur:ya}),he.createElement(Be,{visible:ti&&!Jr,values:Rt}),To,Ko,Sa&&Yo),he.createElement(xt.Provider,{value:Ga},Di)}),wt=Qt,Kt=function(){return null};Kt.isSelectOptGroup=!0;var Lt=Kt,Jt=function(){return null};Jt.isSelectOption=!0;var sn=Jt,vn=ie(80547),Sn=ie(2738),Fe=ie(48911);function ht(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Bt=["disabled","title","children","style","className"];function Vt(ze){return typeof ze=="string"||typeof ze=="number"}var cn=function(ot,Se){var We=It(),we=We.prefixCls,_e=We.id,vt=We.open,on=We.multiple,ln=We.mode,gn=We.searchValue,Rt=We.toggleOpen,Mt=We.notFoundContent,Dt=We.onPopupScroll,dn=he.useContext(xe),et=dn.maxCount,tt=dn.flattenOptions,Te=dn.onActiveValue,Xt=dn.defaultActiveFirstOption,Ln=dn.onSelect,Vn=dn.menuItemSelectedIcon,yn=dn.rawValues,Wt=dn.fieldNames,st=dn.virtual,xn=dn.direction,An=dn.listHeight,Hn=dn.listItemHeight,Un=dn.optionRender,Jn="".concat(we,"-item"),pn=(0,vn.Z)(function(){return tt},[vt,tt],function(Mn,Ut){return Ut[0]&&Mn[1]!==Ut[1]}),Wn=he.useRef(null),tr=he.useMemo(function(){return on&&ct(et)&&(yn==null?void 0:yn.size)>=et},[on,et,yn==null?void 0:yn.size]),or=function(Ut){Ut.preventDefault()},nr=function(Ut){var tn;(tn=Wn.current)===null||tn===void 0||tn.scrollTo(typeof Ut=="number"?{index:Ut}:Ut)},pr=he.useCallback(function(Mn){return ln==="combobox"?!1:yn.has(Mn)},[ln,(0,Ve.Z)(yn).toString(),yn.size]),br=function(Ut){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Yt=pn.length,Zt=0;Zt<Yt;Zt+=1){var wn=(Ut+Zt*tn+Yt)%Yt,Rn=pn[wn]||{},qt=Rn.group,hn=Rn.data;if(!qt&&!(hn!=null&&hn.disabled)&&(pr(hn.value)||!tr))return wn}return-1},Kn=he.useState(function(){return br(0)}),ar=(0,Ce.Z)(Kn,2),Fn=ar[0],rr=ar[1],Cr=function(Ut){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;rr(Ut);var Yt={source:tn?"keyboard":"mouse"},Zt=pn[Ut];if(!Zt){Te(null,-1,Yt);return}Te(Zt.value,Ut,Yt)};(0,he.useEffect)(function(){Cr(Xt!==!1?br(0):-1)},[pn.length,gn]);var Qn=he.useCallback(function(Mn){return ln==="combobox"?String(Mn).toLowerCase()===gn.toLowerCase():yn.has(Mn)},[ln,gn,(0,Ve.Z)(yn).toString(),yn.size]);(0,he.useEffect)(function(){var Mn=setTimeout(function(){if(!on&&vt&&yn.size===1){var tn=Array.from(yn)[0],Yt=pn.findIndex(function(Zt){var wn=Zt.data;return gn?String(wn.value).startsWith(gn):wn.value===tn});Yt!==-1&&(Cr(Yt),nr(Yt))}});if(vt){var Ut;(Ut=Wn.current)===null||Ut===void 0||Ut.scrollTo(void 0)}return function(){return clearTimeout(Mn)}},[vt,gn]);var Er=function(Ut){Ut!==void 0&&Ln(Ut,{selected:!yn.has(Ut)}),on||Rt(!1)};if(he.useImperativeHandle(Se,function(){return{onKeyDown:function(Ut){var tn=Ut.which,Yt=Ut.ctrlKey;switch(tn){case Ke.Z.N:case Ke.Z.P:case Ke.Z.UP:case Ke.Z.DOWN:{var Zt=0;if(tn===Ke.Z.UP?Zt=-1:tn===Ke.Z.DOWN?Zt=1:ht()&&Yt&&(tn===Ke.Z.N?Zt=1:tn===Ke.Z.P&&(Zt=-1)),Zt!==0){var wn=br(Fn+Zt,Zt);nr(wn),Cr(wn,!0)}break}case Ke.Z.TAB:case Ke.Z.ENTER:{var Rn,qt=pn[Fn];qt&&!(qt!=null&&(Rn=qt.data)!==null&&Rn!==void 0&&Rn.disabled)&&!tr?Er(qt.value):Er(void 0),vt&&Ut.preventDefault();break}case Ke.Z.ESC:Rt(!1),vt&&Ut.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ut){nr(Ut)}}}),pn.length===0)return he.createElement("div",{role:"listbox",id:"".concat(_e,"_list"),className:"".concat(Jn,"-empty"),onMouseDown:or},Mt);var qn=Object.keys(Wt).map(function(Mn){return Wt[Mn]}),In=function(Ut){return Ut.label};function cr(Mn,Ut){var tn=Mn.group;return{role:tn?"presentation":"option",id:"".concat(_e,"_list_").concat(Ut)}}var fr=function(Ut){var tn=pn[Ut];if(!tn)return null;var Yt=tn.data||{},Zt=Yt.value,wn=tn.group,Rn=(0,at.Z)(Yt,!0),qt=In(tn);return tn?he.createElement("div",(0,E.Z)({"aria-label":typeof qt=="string"&&!wn?qt:null},Rn,{key:Ut},cr(tn,Ut),{"aria-selected":Qn(Zt)}),Zt):null},xr={role:"listbox",id:"".concat(_e,"_list")};return he.createElement(he.Fragment,null,st&&he.createElement("div",(0,E.Z)({},xr,{style:{height:0,width:0,overflow:"hidden"}}),fr(Fn-1),fr(Fn),fr(Fn+1)),he.createElement(Fe.Z,{itemKey:"key",ref:Wn,data:pn,height:An,itemHeight:Hn,fullHeight:!1,onMouseDown:or,onScroll:Dt,virtual:st,direction:xn,innerProps:st?null:xr},function(Mn,Ut){var tn=Mn.group,Yt=Mn.groupOption,Zt=Mn.data,wn=Mn.label,Rn=Mn.value,qt=Zt.key;if(tn){var hn,Dn=(hn=Zt.title)!==null&&hn!==void 0?hn:Vt(wn)?wn.toString():void 0;return he.createElement("div",{className:Ee()(Jn,"".concat(Jn,"-group"),Zt.className),title:Dn},wn!==void 0?wn:qt)}var Nn=Zt.disabled,Sr=Zt.title,Tr=Zt.children,Dr=Zt.style,Lr=Zt.className,Nr=(0,be.Z)(Zt,Bt),Fr=(0,Sn.Z)(Nr,qn),zr=pr(Rn),$r=Nn||!zr&&tr,jr="".concat(Jn,"-option"),Xr=Ee()(Jn,jr,Lr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(jr,"-grouped"),Yt),"".concat(jr,"-active"),Fn===Ut&&!$r),"".concat(jr,"-disabled"),$r),"".concat(jr,"-selected"),zr)),ei=In(Mn),oi=!Vn||typeof Vn=="function"||zr,ti=typeof ei=="number"?ei:ei||Rn,ai=Vt(ti)?ti.toString():void 0;return Sr!==void 0&&(ai=Sr),he.createElement("div",(0,E.Z)({},(0,at.Z)(Fr),st?{}:cr(Mn,Ut),{"aria-selected":Qn(Rn),className:Xr,title:ai,onMouseMove:function(){Fn===Ut||$r||Cr(Ut)},onClick:function(){$r||Er(Rn)},style:Dr}),he.createElement("div",{className:"".concat(jr,"-content")},typeof Un=="function"?Un(Mn,{index:Ut}):ti),he.isValidElement(Vn)||zr,oi&&he.createElement(Ae,{className:"".concat(Jn,"-option-state"),customizeIcon:Vn,customizeIconProps:{value:Rn,disabled:$r,isSelected:zr}},zr?"\u2713":null))}))},bn=he.forwardRef(cn),Zn=bn,zn=function(ze,ot){var Se=he.useRef({values:new Map,options:new Map}),We=he.useMemo(function(){var _e=Se.current,vt=_e.values,on=_e.options,ln=ze.map(function(Mt){if(Mt.label===void 0){var Dt;return(0,Je.Z)((0,Je.Z)({},Mt),{},{label:(Dt=vt.get(Mt.value))===null||Dt===void 0?void 0:Dt.label})}return Mt}),gn=new Map,Rt=new Map;return ln.forEach(function(Mt){gn.set(Mt.value,Mt),Rt.set(Mt.value,ot.get(Mt.value)||on.get(Mt.value))}),Se.current.values=gn,Se.current.options=Rt,ln},[ze,ot]),we=he.useCallback(function(_e){return ot.get(_e)||Se.current.options.get(_e)},[ot]);return[We,we]};function rn(ze,ot){return ke(ze).join("").toUpperCase().includes(ot)}var En=function(ze,ot,Se,We,we){return he.useMemo(function(){if(!Se||We===!1)return ze;var _e=ot.options,vt=ot.label,on=ot.value,ln=[],gn=typeof We=="function",Rt=Se.toUpperCase(),Mt=gn?We:function(dn,et){return we?rn(et[we],Rt):et[_e]?rn(et[vt!=="children"?vt:"label"],Rt):rn(et[on],Rt)},Dt=gn?function(dn){return dt(dn)}:function(dn){return dn};return ze.forEach(function(dn){if(dn[_e]){var et=Mt(Se,Dt(dn));if(et)ln.push(dn);else{var tt=dn[_e].filter(function(Te){return Mt(Se,Dt(Te))});tt.length&&ln.push((0,Je.Z)((0,Je.Z)({},dn),{},(0,ge.Z)({},_e,tt)))}return}Mt(Se,Dt(dn))&&ln.push(dn)}),ln},[ze,We,we,Se,ot])},Pn=ie(6551),_n=ie(11592),On=["children","value"],Tn=["children"];function an(ze){var ot=ze,Se=ot.key,We=ot.props,we=We.children,_e=We.value,vt=(0,be.Z)(We,On);return(0,Je.Z)({key:Se,value:_e!==void 0?_e:Se,children:we},vt)}function Cn(ze){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,_n.Z)(ze).map(function(Se,We){if(!he.isValidElement(Se)||!Se.type)return null;var we=Se,_e=we.type.isSelectOptGroup,vt=we.key,on=we.props,ln=on.children,gn=(0,be.Z)(on,Tn);return ot||!_e?an(Se):(0,Je.Z)((0,Je.Z)({key:"__RC_SELECT_GRP__".concat(vt===null?We:vt,"__"),label:vt},gn),{},{options:Cn(ln)})}).filter(function(Se){return Se})}var fn=function(ot,Se,We,we,_e){return he.useMemo(function(){var vt=ot,on=!ot;on&&(vt=Cn(Se));var ln=new Map,gn=new Map,Rt=function(dn,et,tt){tt&&typeof tt=="string"&&dn.set(et[tt],et)},Mt=function Dt(dn){for(var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=0;tt<dn.length;tt+=1){var Te=dn[tt];!Te[We.options]||et?(ln.set(Te[We.value],Te),Rt(gn,Te,We.label),Rt(gn,Te,we),Rt(gn,Te,_e)):Dt(Te[We.options],!0)}};return Mt(vt),{options:vt,valueOptions:ln,labelOptions:gn}},[ot,Se,We,we,_e])},kn=fn;function lr(ze){var ot=he.useRef();ot.current=ze;var Se=he.useCallback(function(){return ot.current.apply(ot,arguments)},[]);return Se}function er(ze){var ot=ze.mode,Se=ze.options,We=ze.children,we=ze.backfill,_e=ze.allowClear,vt=ze.placeholder,on=ze.getInputElement,ln=ze.showSearch,gn=ze.onSearch,Rt=ze.defaultOpen,Mt=ze.autoFocus,Dt=ze.labelInValue,dn=ze.value,et=ze.inputValue,tt=ze.optionLabelProp,Te=isMultiple(ot),Xt=ln!==void 0?ln:Te||ot==="combobox",Ln=Se||convertChildrenToData(We);if(warning(ot!=="tags"||Ln.every(function(st){return!st.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ot==="tags"||ot==="combobox"){var Vn=Ln.some(function(st){return st.options?st.options.some(function(xn){return typeof("value"in xn?xn.value:xn.key)=="number"}):typeof("value"in st?st.value:st.key)=="number"});warning(!Vn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ot!=="combobox"||!tt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ot==="combobox"||!we,"`backfill` only works with `combobox` mode."),warning(ot==="combobox"||!on,"`getInputElement` only work with `combobox` mode."),noteOnce(ot!=="combobox"||!on||!_e||!vt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),gn&&!Xt&&ot!=="combobox"&&ot!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rt||Mt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),dn!=null){var yn=toArray(dn);warning(!Dt||yn.every(function(st){return _typeof(st)==="object"&&("key"in st||"value"in st)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Te||Array.isArray(dn),"`value` should be array when `mode` is `multiple` or `tags`")}if(We){var Wt=null;toNodeArray(We).some(function(st){if(!React.isValidElement(st)||!st.type)return!1;var xn=st,An=xn.type;if(An.isSelectOption)return!1;if(An.isSelectOptGroup){var Hn=toNodeArray(st.props.children).every(function(Un){return!React.isValidElement(Un)||!st.type||Un.type.isSelectOption?!0:(Wt=Un.type,!1)});return!Hn}return Wt=An,!0}),Wt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Wt.displayName||Wt.name||Wt,"`.")),warning(et===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Gn(ze,ot){if(ze){var Se=function We(we){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=0;vt<we.length;vt++){var on=we[vt];if(on[ot==null?void 0:ot.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!_e&&Array.isArray(on[ot==null?void 0:ot.options])&&We(on[ot==null?void 0:ot.options],!0))break}};Se(ze)}}var sr=null,hr=["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"],yr=["inputValue"];function ur(ze){return!ze||(0,Oe.Z)(ze)!=="object"}var $t=he.forwardRef(function(ze,ot){var Se=ze.id,We=ze.mode,we=ze.prefixCls,_e=we===void 0?"rc-select":we,vt=ze.backfill,on=ze.fieldNames,ln=ze.inputValue,gn=ze.searchValue,Rt=ze.onSearch,Mt=ze.autoClearSearchValue,Dt=Mt===void 0?!0:Mt,dn=ze.onSelect,et=ze.onDeselect,tt=ze.dropdownMatchSelectWidth,Te=tt===void 0?!0:tt,Xt=ze.filterOption,Ln=ze.filterSort,Vn=ze.optionFilterProp,yn=ze.optionLabelProp,Wt=ze.options,st=ze.optionRender,xn=ze.children,An=ze.defaultActiveFirstOption,Hn=ze.menuItemSelectedIcon,Un=ze.virtual,Jn=ze.direction,pn=ze.listHeight,Wn=pn===void 0?200:pn,tr=ze.listItemHeight,or=tr===void 0?20:tr,nr=ze.labelRender,pr=ze.value,br=ze.defaultValue,Kn=ze.labelInValue,ar=ze.onChange,Fn=ze.maxCount,rr=(0,be.Z)(ze,hr),Cr=(0,Pn.ZP)(Se),Qn=Gt(We),Er=!!(!Wt&&xn),qn=he.useMemo(function(){return Xt===void 0&&We==="combobox"?!1:Xt},[Xt,We]),In=he.useMemo(function(){return Pe(on,Er)},[JSON.stringify(on),Er]),cr=(0,$e.Z)("",{value:gn!==void 0?gn:ln,postState:function(Mr){return Mr||""}}),fr=(0,Ce.Z)(cr,2),xr=fr[0],Mn=fr[1],Ut=kn(Wt,xn,In,Vn,yn),tn=Ut.valueOptions,Yt=Ut.labelOptions,Zt=Ut.options,wn=he.useCallback(function(Br){var Mr=ke(Br);return Mr.map(function(Or){var ir,kr,Wr,Ri,mi;if(ur(Or))ir=Or;else{var si;Wr=Or.key,kr=Or.label,ir=(si=Or.value)!==null&&si!==void 0?si:Wr}var ni=tn.get(ir);if(ni){var Gi;if(kr===void 0&&(kr=ni==null?void 0:ni[yn||In.label]),Wr===void 0&&(Wr=(Gi=ni==null?void 0:ni.key)!==null&&Gi!==void 0?Gi:ir),Ri=ni==null?void 0:ni.disabled,mi=ni==null?void 0:ni.title,0)var to}return{label:kr,value:ir,key:Wr,disabled:Ri,title:mi}})},[In,yn,tn]),Rn=(0,$e.Z)(br,{value:pr}),qt=(0,Ce.Z)(Rn,2),hn=qt[0],Dn=qt[1],Nn=he.useMemo(function(){var Br,Mr=Qn&&hn===null?[]:hn,Or=wn(Mr);return We==="combobox"&&ue((Br=Or[0])===null||Br===void 0?void 0:Br.value)?[]:Or},[hn,wn,We,Qn]),Sr=zn(Nn,tn),Tr=(0,Ce.Z)(Sr,2),Dr=Tr[0],Lr=Tr[1],Nr=he.useMemo(function(){if(!We&&Dr.length===1){var Br=Dr[0];if(Br.value===null&&(Br.label===null||Br.label===void 0))return[]}return Dr.map(function(Mr){var Or;return(0,Je.Z)((0,Je.Z)({},Mr),{},{label:(Or=typeof nr=="function"?nr(Mr):Mr.label)!==null&&Or!==void 0?Or:Mr.value})})},[We,Dr,nr]),Fr=he.useMemo(function(){return new Set(Dr.map(function(Br){return Br.value}))},[Dr]);he.useEffect(function(){if(We==="combobox"){var Br,Mr=(Br=Dr[0])===null||Br===void 0?void 0:Br.value;Mn(ve(Mr)?String(Mr):"")}},[Dr]);var zr=lr(function(Br,Mr){var Or=Mr!=null?Mr:Br;return(0,ge.Z)((0,ge.Z)({},In.value,Br),In.label,Or)}),$r=he.useMemo(function(){if(We!=="tags")return Zt;var Br=(0,Ve.Z)(Zt),Mr=function(ir){return tn.has(ir)};return(0,Ve.Z)(Dr).sort(function(Or,ir){return Or.value<ir.value?-1:1}).forEach(function(Or){var ir=Or.value;Mr(ir)||Br.push(zr(ir,Or.label))}),Br},[zr,Zt,tn,Dr,We]),jr=En($r,In,xr,qn,Vn),Xr=he.useMemo(function(){return We!=="tags"||!xr||jr.some(function(Br){return Br[Vn||"value"]===xr})||jr.some(function(Br){return Br[In.value]===xr})?jr:[zr(xr)].concat((0,Ve.Z)(jr))},[zr,Vn,We,jr,xr,In]),ei=function Br(Mr){var Or=(0,Ve.Z)(Mr).sort(function(ir,kr){return Ln(ir,kr,{searchValue:xr})});return Or.map(function(ir){return Array.isArray(ir.options)?(0,Je.Z)((0,Je.Z)({},ir),{},{options:ir.options.length>0?Br(ir.options):ir.options}):ir})},oi=he.useMemo(function(){return Ln?ei(Xr):Xr},[Xr,Ln,xr]),ti=he.useMemo(function(){return Ge(oi,{fieldNames:In,childrenAsData:Er})},[oi,In,Er]),ai=function(Mr){var Or=wn(Mr);if(Dn(Or),ar&&(Or.length!==Dr.length||Or.some(function(Wr,Ri){var mi;return((mi=Dr[Ri])===null||mi===void 0?void 0:mi.value)!==(Wr==null?void 0:Wr.value)}))){var ir=Kn?Or:Or.map(function(Wr){return Wr.value}),kr=Or.map(function(Wr){return dt(Lr(Wr.value))});ar(Qn?ir:ir[0],Qn?kr:kr[0])}},wr=he.useState(null),gr=(0,Ce.Z)(wr,2),Zr=gr[0],_r=gr[1],li=he.useState(0),Xi=(0,Ce.Z)(li,2),Bi=Xi[0],Si=Xi[1],pi=An!==void 0?An:We!=="combobox",Gr=he.useCallback(function(Br,Mr){var Or=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ir=Or.source,kr=ir===void 0?"keyboard":ir;Si(Mr),vt&&We==="combobox"&&Br!==null&&kr==="keyboard"&&_r(String(Br))},[vt,We]),di=function(Mr,Or,ir){var kr=function(){var ao,Yi=Lr(Mr);return[Kn?{label:Yi==null?void 0:Yi[In.label],value:Mr,key:(ao=Yi==null?void 0:Yi.key)!==null&&ao!==void 0?ao:Mr}:Mr,dt(Yi)]};if(Or&&dn){var Wr=kr(),Ri=(0,Ce.Z)(Wr,2),mi=Ri[0],si=Ri[1];dn(mi,si)}else if(!Or&&et&&ir!=="clear"){var ni=kr(),Gi=(0,Ce.Z)(ni,2),to=Gi[0],$i=Gi[1];et(to,$i)}},Vi=lr(function(Br,Mr){var Or,ir=Qn?Mr.selected:!0;ir?Or=Qn?[].concat((0,Ve.Z)(Dr),[Br]):[Br]:Or=Dr.filter(function(kr){return kr.value!==Br}),ai(Or),di(Br,ir),We==="combobox"?_r(""):(!Gt||Dt)&&(Mn(""),_r(""))}),Li=function(Mr,Or){ai(Mr);var ir=Or.type,kr=Or.values;(ir==="remove"||ir==="clear")&&kr.forEach(function(Wr){di(Wr.value,!1,ir)})},Jr=function(Mr,Or){if(Mn(Mr),_r(null),Or.source==="submit"){var ir=(Mr||"").trim();if(ir){var kr=Array.from(new Set([].concat((0,Ve.Z)(Fr),[ir])));ai(kr),di(ir,!0),Mn("")}return}Or.source!=="blur"&&(We==="combobox"&&ai(Mr),Rt==null||Rt(Mr))},oo=function(Mr){var Or=Mr;We!=="tags"&&(Or=Mr.map(function(kr){var Wr=Yt.get(kr);return Wr==null?void 0:Wr.value}).filter(function(kr){return kr!==void 0}));var ir=Array.from(new Set([].concat((0,Ve.Z)(Fr),(0,Ve.Z)(Or))));ai(ir),ir.forEach(function(kr){di(kr,!0)})},Fi=he.useMemo(function(){var Br=Un!==!1&&Te!==!1;return(0,Je.Z)((0,Je.Z)({},Ut),{},{flattenOptions:ti,onActiveValue:Gr,defaultActiveFirstOption:pi,onSelect:Vi,menuItemSelectedIcon:Hn,rawValues:Fr,fieldNames:In,virtual:Br,direction:Jn,listHeight:Wn,listItemHeight:or,childrenAsData:Er,maxCount:Fn,optionRender:st})},[Fn,Ut,ti,Gr,pi,Vi,Hn,Fr,In,Un,Te,Jn,Wn,or,Er,st]);return he.createElement(xe.Provider,{value:Fi},he.createElement(wt,(0,E.Z)({},rr,{id:Cr,prefixCls:_e,ref:ot,omitDomProps:yr,mode:We,displayValues:Nr,onDisplayValuesChange:Li,direction:Jn,searchValue:xr,onSearch:Jr,autoClearSearchValue:Dt,onSearchSplit:oo,dropdownMatchSelectWidth:Te,OptionList:Zn,emptyOptions:!ti.length,activeValue:Zr,activeDescendantId:"".concat(Cr,"_list_").concat(Bi)})))}),un=$t;un.Option=sn,un.OptGroup=Lt;var jn=un,mr=jn},22711:function(nn,jt,ie){"use strict";ie.r(jt),ie.d(jt,{ResizableTextArea:function(){return He},default:function(){return Et}});var E=ie(54476),Ve=ie(20068),ge=ie(33885),Je=ie(94480),Ce=ie(42978),be=ie(75931),Oe=ie(92310),$e=ie.n(Oe),De=ie(36901),he=ie(66003),Ze=ie(30292),Ee=ie(18929),mt=ie(59301),Qe=ie(76190),Me=ie(29301),Ne=ie(34280),Ae=ie(16089),ft=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,xt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],It={},pt;function Re(ke){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=ke.getAttribute("id")||ke.getAttribute("data-reactid")||ke.getAttribute("name");if(Le&&It[bt])return It[bt];var ve=window.getComputedStyle(ke),ue=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),rt=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),Nt=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),yt=xt.map(function(Xe){return"".concat(Xe,":").concat(ve.getPropertyValue(Xe))}).join(";"),Ie={sizingStyle:yt,paddingSize:rt,borderSize:Nt,boxSizing:ue};return Le&&bt&&(It[bt]=Ie),Ie}function lt(ke){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pt||(pt=document.createElement("textarea"),pt.setAttribute("tab-index","-1"),pt.setAttribute("aria-hidden","true"),pt.setAttribute("name","hiddenTextarea"),document.body.appendChild(pt)),ke.getAttribute("wrap")?pt.setAttribute("wrap",ke.getAttribute("wrap")):pt.removeAttribute("wrap");var ue=Re(ke,Le),rt=ue.paddingSize,Nt=ue.borderSize,yt=ue.boxSizing,Ie=ue.sizingStyle;pt.setAttribute("style","".concat(Ie,";").concat(ft)),pt.value=ke.value||ke.placeholder||"";var Xe=void 0,qe=void 0,en,Ft=pt.scrollHeight;if(yt==="border-box"?Ft+=Nt:yt==="content-box"&&(Ft-=rt),bt!==null||ve!==null){pt.value=" ";var _t=pt.scrollHeight-rt;bt!==null&&(Xe=_t*bt,yt==="border-box"&&(Xe=Xe+rt+Nt),Ft=Math.max(Xe,Ft)),ve!==null&&(qe=_t*ve,yt==="border-box"&&(qe=qe+rt+Nt),en=Ft>qe?"":"hidden",Ft=Math.min(qe,Ft))}var je={height:Ft,overflowY:en,resize:"none"};return Xe&&(je.minHeight=Xe),qe&&(je.maxHeight=qe),je}var Ke=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ot=0,at=1,Ue=2,Ct=mt.forwardRef(function(ke,Le){var bt=ke,ve=bt.prefixCls,ue=bt.defaultValue,rt=bt.value,Nt=bt.autoSize,yt=bt.onResize,Ie=bt.className,Xe=bt.style,qe=bt.disabled,en=bt.onChange,Ft=bt.onInternalAutoSize,_t=(0,be.Z)(bt,Ke),je=(0,Ee.Z)(ue,{value:rt,postState:function(sn){return sn!=null?sn:""}}),Ht=(0,Ce.Z)(je,2),gt=Ht[0],ae=Ht[1],te=function(sn){ae(sn.target.value),en==null||en(sn)},ee=mt.useRef();mt.useImperativeHandle(Le,function(){return{textArea:ee.current}});var oe=mt.useMemo(function(){return Nt&&(0,Qe.Z)(Nt)==="object"?[Nt.minRows,Nt.maxRows]:[]},[Nt]),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],ye=!!Nt,ct=function(){try{if(document.activeElement===ee.current){var sn=ee.current,vn=sn.selectionStart,Sn=sn.selectionEnd,Fe=sn.scrollTop;ee.current.setSelectionRange(vn,Sn),ee.current.scrollTop=Fe}}catch(ht){}},Pe=mt.useState(Ue),Ge=(0,Ce.Z)(Pe,2),dt=Ge[0],Pt=Ge[1],St=mt.useState(),xe=(0,Ce.Z)(St,2),Be=xe[0],Tt=xe[1],kt=function(){Pt(Ot)};(0,Ne.Z)(function(){ye&&kt()},[rt,ne,pe,ye]),(0,Ne.Z)(function(){if(dt===Ot)Pt(at);else if(dt===at){var Jt=lt(ee.current,!1,ne,pe);Pt(Ue),Tt(Jt)}else ct()},[dt]);var Gt=mt.useRef(),Qt=function(){Ae.Z.cancel(Gt.current)},wt=function(sn){dt===Ue&&(yt==null||yt(sn),Nt&&(Qt(),Gt.current=(0,Ae.Z)(function(){kt()})))};mt.useEffect(function(){return Qt},[]);var Kt=ye?Be:null,Lt=(0,ge.Z)((0,ge.Z)({},Xe),Kt);return(dt===Ot||dt===at)&&(Lt.overflowY="hidden",Lt.overflowX="hidden"),mt.createElement(Me.Z,{onResize:wt,disabled:!(Nt||yt)},mt.createElement("textarea",(0,E.Z)({},_t,{ref:ee,style:Lt,className:$e()(ve,Ie,(0,Ve.Z)({},"".concat(ve,"-disabled"),qe)),disabled:qe,value:gt,onChange:te})))}),He=Ct,it=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],nt=mt.forwardRef(function(ke,Le){var bt,ve=ke.defaultValue,ue=ke.value,rt=ke.onFocus,Nt=ke.onBlur,yt=ke.onChange,Ie=ke.allowClear,Xe=ke.maxLength,qe=ke.onCompositionStart,en=ke.onCompositionEnd,Ft=ke.suffix,_t=ke.prefixCls,je=_t===void 0?"rc-textarea":_t,Ht=ke.showCount,gt=ke.count,ae=ke.className,te=ke.style,ee=ke.disabled,oe=ke.hidden,se=ke.classNames,ne=ke.styles,pe=ke.onResize,ye=ke.onClear,ct=ke.onPressEnter,Pe=ke.readOnly,Ge=ke.autoSize,dt=ke.onKeyDown,Pt=(0,be.Z)(ke,it),St=(0,Ee.Z)(ve,{value:ue,defaultValue:ve}),xe=(0,Ce.Z)(St,2),Be=xe[0],Tt=xe[1],kt=Be==null?"":String(Be),Gt=mt.useState(!1),Qt=(0,Ce.Z)(Gt,2),wt=Qt[0],Kt=Qt[1],Lt=mt.useRef(!1),Jt=mt.useState(null),sn=(0,Ce.Z)(Jt,2),vn=sn[0],Sn=sn[1],Fe=(0,mt.useRef)(null),ht=(0,mt.useRef)(null),Bt=function(){var un;return(un=ht.current)===null||un===void 0?void 0:un.textArea},Vt=function(){Bt().focus()};(0,mt.useImperativeHandle)(Le,function(){var $t;return{resizableTextArea:ht.current,focus:Vt,blur:function(){Bt().blur()},nativeElement:(($t=Fe.current)===null||$t===void 0?void 0:$t.nativeElement)||Bt()}}),(0,mt.useEffect)(function(){Kt(function($t){return!ee&&$t})},[ee]);var cn=mt.useState(null),bn=(0,Ce.Z)(cn,2),Zn=bn[0],zn=bn[1];mt.useEffect(function(){if(Zn){var $t;($t=Bt()).setSelectionRange.apply($t,(0,Je.Z)(Zn))}},[Zn]);var rn=(0,he.Z)(gt,Ht),En=(bt=rn.max)!==null&&bt!==void 0?bt:Xe,Pn=Number(En)>0,_n=rn.strategy(kt),On=!!En&&_n>En,Tn=function(un,jn){var mr=jn;!Lt.current&&rn.exceedFormatter&&rn.max&&rn.strategy(jn)>rn.max&&(mr=rn.exceedFormatter(jn,{max:rn.max}),jn!==mr&&zn([Bt().selectionStart||0,Bt().selectionEnd||0])),Tt(mr),(0,Ze.rJ)(un.currentTarget,un,yt,mr)},an=function(un){Lt.current=!0,qe==null||qe(un)},Cn=function(un){Lt.current=!1,Tn(un,un.currentTarget.value),en==null||en(un)},fn=function(un){Tn(un,un.target.value)},kn=function(un){un.key==="Enter"&&ct&&ct(un),dt==null||dt(un)},lr=function(un){Kt(!0),rt==null||rt(un)},er=function(un){Kt(!1),Nt==null||Nt(un)},Gn=function(un){Tt(""),Vt(),(0,Ze.rJ)(Bt(),un,yt)},sr=Ft,hr;rn.show&&(rn.showFormatter?hr=rn.showFormatter({value:kt,count:_n,maxLength:En}):hr="".concat(_n).concat(Pn?" / ".concat(En):""),sr=mt.createElement(mt.Fragment,null,sr,mt.createElement("span",{className:$e()("".concat(je,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},hr)));var yr=function(un){var jn;pe==null||pe(un),(jn=Bt())!==null&&jn!==void 0&&jn.style.height&&Sn(!0)},ur=!Ge&&!Ht&&!Ie;return mt.createElement(De.BaseInput,{ref:Fe,value:kt,allowClear:Ie,handleReset:Gn,suffix:sr,prefixCls:je,classNames:(0,ge.Z)((0,ge.Z)({},se),{},{affixWrapper:$e()(se==null?void 0:se.affixWrapper,(0,Ve.Z)((0,Ve.Z)({},"".concat(je,"-show-count"),Ht),"".concat(je,"-textarea-allow-clear"),Ie))}),disabled:ee,focused:wt,className:$e()(ae,On&&"".concat(je,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),vn&&!ur?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof hr=="string"?hr:void 0}},hidden:oe,readOnly:Pe,onClear:ye},mt.createElement(He,(0,E.Z)({},Pt,{autoSize:Ge,maxLength:Xe,onKeyDown:kn,onChange:fn,onFocus:lr,onBlur:er,onCompositionStart:an,onCompositionEnd:Cn,className:$e()(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:je,onResize:yr,ref:ht,readOnly:Pe})))}),de=nt,Et=de},48911:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return gt}});var E=ie(54476),Ve=ie(76190),ge=ie(33885),Je=ie(20068),Ce=ie(42978),be=ie(75931),Oe=ie(92310),$e=ie.n(Oe),De=ie(29301),he=ie(70425),Ze=ie(34280),Ee=ie(59301),mt=ie(4676),Qe=Ee.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,ne=ae.children,pe=ae.prefixCls,ye=ae.onInnerResize,ct=ae.innerProps,Pe=ae.rtl,Ge=ae.extra,dt={},Pt={display:"flex",flexDirection:"column"};return oe!==void 0&&(dt={height:ee,position:"relative",overflow:"hidden"},Pt=(0,ge.Z)((0,ge.Z)({},Pt),{},(0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)({transform:"translateY(".concat(oe,"px)")},Pe?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),Ee.createElement("div",{style:dt},Ee.createElement(De.Z,{onResize:function(xe){var Be=xe.offsetHeight;Be&&ye&&ye()}},Ee.createElement("div",(0,E.Z)({style:Pt,className:$e()((0,Je.Z)({},"".concat(pe,"-holder-inner"),pe)),ref:te},ct),ne,Ge)))});Qe.displayName="Filler";var Me=Qe;function Ne(ae){var te=ae.children,ee=ae.setRef,oe=Ee.useCallback(function(se){ee(se)},[]);return Ee.cloneElement(te,{ref:oe})}function Ae(ae,te,ee,oe,se,ne,pe,ye){var ct=ye.getKey;return ae.slice(te,ee+1).map(function(Pe,Ge){var dt=te+Ge,Pt=pe(Pe,dt,{style:{width:oe},offsetX:se}),St=ct(Pe);return Ee.createElement(Ne,{key:St,setRef:function(Be){return ne(Pe,Be)}},Pt)})}function ft(ae,te,ee,oe){var se=ee-ae,ne=te-ee,pe=Math.min(se,ne)*2;if(oe<=pe){var ye=Math.floor(oe/2);return oe%2?ee+ye+1:ee-ye}return se>ne?ee-(oe-ne):ee+(oe-se)}function xt(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 ye={__EMPTY_ITEM__:!0};function ct(xe){return xe!==void 0?ee(xe):ye}for(var Pe=null,Ge=Math.abs(oe-se)!==1,dt=0;dt<pe.length;dt+=1){var Pt=ct(ne[dt]),St=ct(pe[dt]);if(Pt!==St){Pe=dt,Ge=Ge||Pt!==ct(pe[dt+1]);break}}return Pe===null?null:{index:Pe,multiple:Ge}}function It(ae,te,ee){var oe=Ee.useState(ae),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],ye=Ee.useState(null),ct=(0,Ce.Z)(ye,2),Pe=ct[0],Ge=ct[1];return Ee.useEffect(function(){var dt=xt(ne||[],ae||[],te);(dt==null?void 0:dt.index)!==void 0&&(ee==null||ee(dt.index),Ge(ae[dt.index])),pe(ae)},[ae]),[Pe]}var pt=ie(16089),Re=(typeof navigator=="undefined"?"undefined":(0,Ve.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),lt=Re,Ke=function(ae,te,ee,oe){var se=(0,Ee.useRef)(!1),ne=(0,Ee.useRef)(null);function pe(){clearTimeout(ne.current),se.current=!0,ne.current=setTimeout(function(){se.current=!1},50)}var ye=(0,Ee.useRef)({top:ae,bottom:te,left:ee,right:oe});return ye.current.top=ae,ye.current.bottom=te,ye.current.left=ee,ye.current.right=oe,function(ct,Pe){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,dt=ct?Pe<0&&ye.current.left||Pe>0&&ye.current.right:Pe<0&&ye.current.top||Pe>0&&ye.current.bottom;return Ge&&dt?(clearTimeout(ne.current),se.current=!1):(!dt||se.current)&&pe(),!se.current&&dt}};function Ot(ae,te,ee,oe,se,ne,pe){var ye=(0,Ee.useRef)(0),ct=(0,Ee.useRef)(null),Pe=(0,Ee.useRef)(null),Ge=(0,Ee.useRef)(!1),dt=Ke(te,ee,oe,se);function Pt(Gt,Qt){if(pt.Z.cancel(ct.current),!dt(!1,Qt)){var wt=Gt;if(!wt._virtualHandled)wt._virtualHandled=!0;else return;ye.current+=Qt,Pe.current=Qt,lt||wt.preventDefault(),ct.current=(0,pt.Z)(function(){var Kt=Ge.current?10:1;pe(ye.current*Kt,!1),ye.current=0})}}function St(Gt,Qt){pe(Qt,!0),lt||Gt.preventDefault()}var xe=(0,Ee.useRef)(null),Be=(0,Ee.useRef)(null);function Tt(Gt){if(ae){pt.Z.cancel(Be.current),Be.current=(0,pt.Z)(function(){xe.current=null},2);var Qt=Gt.deltaX,wt=Gt.deltaY,Kt=Gt.shiftKey,Lt=Qt,Jt=wt;(xe.current==="sx"||!xe.current&&Kt&&wt&&!Qt)&&(Lt=wt,Jt=0,xe.current="sx");var sn=Math.abs(Lt),vn=Math.abs(Jt);xe.current===null&&(xe.current=ne&&sn>vn?"x":"y"),xe.current==="y"?Pt(Gt,Jt):St(Gt,Lt)}}function kt(Gt){ae&&(Ge.current=Gt.detail===Pe.current)}return[Tt,kt]}function at(ae,te,ee,oe){var se=Ee.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),ne=(0,Ce.Z)(se,2),pe=ne[0],ye=ne[1],ct=function(Ge){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,Pt=pe.get(Ge),St=pe.get(dt);if(Pt===void 0||St===void 0)for(var xe=ae.length,Be=ye.length;Be<xe;Be+=1){var Tt,kt=ae[Be],Gt=te(kt);pe.set(Gt,Be);var Qt=(Tt=ee.get(Gt))!==null&&Tt!==void 0?Tt:oe;if(ye[Be]=(ye[Be-1]||0)+Qt,Gt===Ge&&(Pt=Be),Gt===dt&&(St=Be),Pt!==void 0&&St!==void 0)break}return{top:ye[Pt-1]||0,bottom:ye[St]}};return ct}var Ue=ie(67732),Ct=ie(83652),He=function(){function ae(){(0,Ue.Z)(this,ae),(0,Je.Z)(this,"maps",void 0),(0,Je.Z)(this,"id",0),(0,Je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ct.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}(),it=He;function nt(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function de(ae,te,ee){var oe=Ee.useState(0),se=(0,Ce.Z)(oe,2),ne=se[0],pe=se[1],ye=(0,Ee.useRef)(new Map),ct=(0,Ee.useRef)(new it),Pe=(0,Ee.useRef)(0);function Ge(){Pe.current+=1}function dt(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge();var xe=function(){var kt=!1;ye.current.forEach(function(Gt,Qt){if(Gt&&Gt.offsetParent){var wt=Gt.offsetHeight,Kt=getComputedStyle(Gt),Lt=Kt.marginTop,Jt=Kt.marginBottom,sn=nt(Lt),vn=nt(Jt),Sn=wt+sn+vn;ct.current.get(Qt)!==Sn&&(ct.current.set(Qt,Sn),kt=!0)}}),kt&&pe(function(Gt){return Gt+1})};if(St)xe();else{Pe.current+=1;var Be=Pe.current;Promise.resolve().then(function(){Be===Pe.current&&xe()})}}function Pt(St,xe){var Be=ae(St),Tt=ye.current.get(Be);xe?(ye.current.set(Be,xe),dt()):ye.current.delete(Be),!Tt!=!xe&&(xe?te==null||te(St):ee==null||ee(St))}return(0,Ee.useEffect)(function(){return Ge},[]),[Pt,dt,ct.current,ne]}var Et=14/15;function ke(ae,te,ee){var oe=(0,Ee.useRef)(!1),se=(0,Ee.useRef)(0),ne=(0,Ee.useRef)(0),pe=(0,Ee.useRef)(null),ye=(0,Ee.useRef)(null),ct,Pe=function(St){if(oe.current){var xe=Math.ceil(St.touches[0].pageX),Be=Math.ceil(St.touches[0].pageY),Tt=se.current-xe,kt=ne.current-Be,Gt=Math.abs(Tt)>Math.abs(kt);Gt?se.current=xe:ne.current=Be;var Qt=ee(Gt,Gt?Tt:kt,!1,St);Qt&&St.preventDefault(),clearInterval(ye.current),Qt&&(ye.current=setInterval(function(){Gt?Tt*=Et:kt*=Et;var wt=Math.floor(Gt?Tt:kt);(!ee(Gt,wt,!0)||Math.abs(wt)<=.1)&&clearInterval(ye.current)},16))}},Ge=function(){oe.current=!1,ct()},dt=function(St){ct(),St.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(St.touches[0].pageX),ne.current=Math.ceil(St.touches[0].pageY),pe.current=St.target,pe.current.addEventListener("touchmove",Pe,{passive:!1}),pe.current.addEventListener("touchend",Ge,{passive:!0}))};ct=function(){pe.current&&(pe.current.removeEventListener("touchmove",Pe),pe.current.removeEventListener("touchend",Ge))},(0,Ze.Z)(function(){return ae&&te.current.addEventListener("touchstart",dt,{passive:!0}),function(){var Pt;(Pt=te.current)===null||Pt===void 0||Pt.removeEventListener("touchstart",dt),ct(),clearInterval(ye.current)}},[ae])}function Le(ae){return Math.floor(Math.pow(ae,.5))}function bt(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function ve(ae,te,ee){Ee.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,ne,pe,ye=function(){pt.Z.cancel(ne)},ct=function Pt(){ye(),ne=(0,pt.Z)(function(){ee(pe),Pt()})},Pe=function(){se=!1,ye()},Ge=function(St){if(!(St.target.draggable||St.button!==0)){var xe=St;xe._virtualHandled||(xe._virtualHandled=!0,se=!0)}},dt=function(St){if(se){var xe=bt(St,!1),Be=oe.getBoundingClientRect(),Tt=Be.top,kt=Be.bottom;if(xe<=Tt){var Gt=Tt-xe;pe=-Le(Gt),ct()}else if(xe>=kt){var Qt=xe-kt;pe=Le(Qt),ct()}else ye()}};return oe.addEventListener("mousedown",Ge),oe.ownerDocument.addEventListener("mouseup",Pe),oe.ownerDocument.addEventListener("mousemove",dt),oe.ownerDocument.addEventListener("dragend",Pe),function(){oe.removeEventListener("mousedown",Ge),oe.ownerDocument.removeEventListener("mouseup",Pe),oe.ownerDocument.removeEventListener("mousemove",dt),oe.ownerDocument.removeEventListener("dragend",Pe),ye()}}},[ae])}var ue=10;function rt(ae,te,ee,oe,se,ne,pe,ye){var ct=Ee.useRef(),Pe=Ee.useState(null),Ge=(0,Ce.Z)(Pe,2),dt=Ge[0],Pt=Ge[1];return(0,Ze.Z)(function(){if(dt&&dt.times<ue){if(!ae.current){Pt(function(rn){return(0,ge.Z)({},rn)});return}ne();var St=dt.targetAlign,xe=dt.originAlign,Be=dt.index,Tt=dt.offset,kt=ae.current.clientHeight,Gt=!1,Qt=St,wt=null;if(kt){for(var Kt=St||xe,Lt=0,Jt=0,sn=0,vn=Math.min(te.length-1,Be),Sn=0;Sn<=vn;Sn+=1){var Fe=se(te[Sn]);Jt=Lt;var ht=ee.get(Fe);sn=Jt+(ht===void 0?oe:ht),Lt=sn}for(var Bt=Kt==="top"?Tt:kt-Tt,Vt=vn;Vt>=0;Vt-=1){var cn=se(te[Vt]),bn=ee.get(cn);if(bn===void 0){Gt=!0;break}if(Bt-=bn,Bt<=0)break}switch(Kt){case"top":wt=Jt-Tt;break;case"bottom":wt=sn-kt+Tt;break;default:{var Zn=ae.current.scrollTop,zn=Zn+kt;Jt<Zn?Qt="top":sn>zn&&(Qt="bottom")}}wt!==null&&pe(wt),wt!==dt.lastTop&&(Gt=!0)}Gt&&Pt((0,ge.Z)((0,ge.Z)({},dt),{},{times:dt.times+1,targetAlign:Qt,lastTop:wt}))}},[dt,ae.current]),function(St){if(St==null){ye();return}if(pt.Z.cancel(ct.current),typeof St=="number")pe(St);else if(St&&(0,Ve.Z)(St)==="object"){var xe,Be=St.align;"index"in St?xe=St.index:xe=te.findIndex(function(Gt){return se(Gt)===St.key});var Tt=St.offset,kt=Tt===void 0?0:Tt;Pt({times:0,index:xe,offset:kt,originAlign:Be})}}}var Nt=Ee.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,pe=ae.onStartMove,ye=ae.onStopMove,ct=ae.onScroll,Pe=ae.horizontal,Ge=ae.spinSize,dt=ae.containerSize,Pt=ae.style,St=ae.thumbStyle,xe=ae.showScrollBar,Be=Ee.useState(!1),Tt=(0,Ce.Z)(Be,2),kt=Tt[0],Gt=Tt[1],Qt=Ee.useState(null),wt=(0,Ce.Z)(Qt,2),Kt=wt[0],Lt=wt[1],Jt=Ee.useState(null),sn=(0,Ce.Z)(Jt,2),vn=sn[0],Sn=sn[1],Fe=!oe,ht=Ee.useRef(),Bt=Ee.useRef(),Vt=Ee.useState(xe),cn=(0,Ce.Z)(Vt,2),bn=cn[0],Zn=cn[1],zn=Ee.useRef(),rn=function(){xe===!0||xe===!1||(clearTimeout(zn.current),Zn(!0),zn.current=setTimeout(function(){Zn(!1)},3e3))},En=ne-dt||0,Pn=dt-Ge||0,_n=Ee.useMemo(function(){if(se===0||En===0)return 0;var Gn=se/En;return Gn*Pn},[se,En,Pn]),On=function(sr){sr.stopPropagation(),sr.preventDefault()},Tn=Ee.useRef({top:_n,dragging:kt,pageY:Kt,startTop:vn});Tn.current={top:_n,dragging:kt,pageY:Kt,startTop:vn};var an=function(sr){Gt(!0),Lt(bt(sr,Pe)),Sn(Tn.current.top),pe(),sr.stopPropagation(),sr.preventDefault()};Ee.useEffect(function(){var Gn=function(ur){ur.preventDefault()},sr=ht.current,hr=Bt.current;return sr.addEventListener("touchstart",Gn,{passive:!1}),hr.addEventListener("touchstart",an,{passive:!1}),function(){sr.removeEventListener("touchstart",Gn),hr.removeEventListener("touchstart",an)}},[]);var Cn=Ee.useRef();Cn.current=En;var fn=Ee.useRef();fn.current=Pn,Ee.useEffect(function(){if(kt){var Gn,sr=function(ur){var $t=Tn.current,un=$t.dragging,jn=$t.pageY,mr=$t.startTop;pt.Z.cancel(Gn);var ze=ht.current.getBoundingClientRect(),ot=dt/(Pe?ze.width:ze.height);if(un){var Se=(bt(ur,Pe)-jn)*ot,We=mr;!Fe&&Pe?We-=Se:We+=Se;var we=Cn.current,_e=fn.current,vt=_e?We/_e:0,on=Math.ceil(vt*we);on=Math.max(on,0),on=Math.min(on,we),Gn=(0,pt.Z)(function(){ct(on,Pe)})}},hr=function(){Gt(!1),ye()};return window.addEventListener("mousemove",sr,{passive:!0}),window.addEventListener("touchmove",sr,{passive:!0}),window.addEventListener("mouseup",hr,{passive:!0}),window.addEventListener("touchend",hr,{passive:!0}),function(){window.removeEventListener("mousemove",sr),window.removeEventListener("touchmove",sr),window.removeEventListener("mouseup",hr),window.removeEventListener("touchend",hr),pt.Z.cancel(Gn)}}},[kt]),Ee.useEffect(function(){return rn(),function(){clearTimeout(zn.current)}},[se]),Ee.useImperativeHandle(te,function(){return{delayHidden:rn}});var kn="".concat(ee,"-scrollbar"),lr={position:"absolute",visibility:bn?null:"hidden"},er={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Pe?(Object.assign(lr,{height:8,left:0,right:0,bottom:0}),Object.assign(er,(0,Je.Z)({height:"100%",width:Ge},Fe?"left":"right",_n))):(Object.assign(lr,(0,Je.Z)({width:8,top:0,bottom:0},Fe?"right":"left",0)),Object.assign(er,{width:"100%",height:Ge,top:_n})),Ee.createElement("div",{ref:ht,className:$e()(kn,(0,Je.Z)((0,Je.Z)((0,Je.Z)({},"".concat(kn,"-horizontal"),Pe),"".concat(kn,"-vertical"),!Pe),"".concat(kn,"-visible"),bn)),style:(0,ge.Z)((0,ge.Z)({},lr),Pt),onMouseDown:On,onMouseMove:rn},Ee.createElement("div",{ref:Bt,className:$e()("".concat(kn,"-thumb"),(0,Je.Z)({},"".concat(kn,"-thumb-moving"),kt)),style:(0,ge.Z)((0,ge.Z)({},er),St),onMouseDown:an}))}),yt=Nt,Ie=20;function Xe(){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,Ie),Math.floor(ee)}var qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],en=[],Ft={overflowY:"auto",overflowAnchor:"none"};function _t(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,ne=ae.height,pe=ae.itemHeight,ye=ae.fullHeight,ct=ye===void 0?!0:ye,Pe=ae.style,Ge=ae.data,dt=ae.children,Pt=ae.itemKey,St=ae.virtual,xe=ae.direction,Be=ae.scrollWidth,Tt=ae.component,kt=Tt===void 0?"div":Tt,Gt=ae.onScroll,Qt=ae.onVirtualScroll,wt=ae.onVisibleChange,Kt=ae.innerProps,Lt=ae.extraRender,Jt=ae.styles,sn=ae.showScrollBar,vn=sn===void 0?"optional":sn,Sn=(0,be.Z)(ae,qe),Fe=Ee.useCallback(function(Ut){return typeof Pt=="function"?Pt(Ut):Ut==null?void 0:Ut[Pt]},[Pt]),ht=de(Fe,null,null),Bt=(0,Ce.Z)(ht,4),Vt=Bt[0],cn=Bt[1],bn=Bt[2],Zn=Bt[3],zn=!!(St!==!1&&ne&&pe),rn=Ee.useMemo(function(){return Object.values(bn.maps).reduce(function(Ut,tn){return Ut+tn},0)},[bn.id,bn.maps]),En=zn&&Ge&&(Math.max(pe*Ge.length,rn)>ne||!!Be),Pn=xe==="rtl",_n=$e()(oe,(0,Je.Z)({},"".concat(oe,"-rtl"),Pn),se),On=Ge||en,Tn=(0,Ee.useRef)(),an=(0,Ee.useRef)(),Cn=(0,Ee.useRef)(),fn=(0,Ee.useState)(0),kn=(0,Ce.Z)(fn,2),lr=kn[0],er=kn[1],Gn=(0,Ee.useState)(0),sr=(0,Ce.Z)(Gn,2),hr=sr[0],yr=sr[1],ur=(0,Ee.useState)(!1),$t=(0,Ce.Z)(ur,2),un=$t[0],jn=$t[1],mr=function(){jn(!0)},ze=function(){jn(!1)},ot={getKey:Fe};function Se(Ut){er(function(tn){var Yt;typeof Ut=="function"?Yt=Ut(tn):Yt=Ut;var Zt=An(Yt);return Tn.current.scrollTop=Zt,Zt})}var We=(0,Ee.useRef)({start:0,end:On.length}),we=(0,Ee.useRef)(),_e=It(On,Fe),vt=(0,Ce.Z)(_e,1),on=vt[0];we.current=on;var ln=Ee.useMemo(function(){if(!zn)return{scrollHeight:void 0,start:0,end:On.length-1,offset:void 0};if(!En){var Ut;return{scrollHeight:((Ut=an.current)===null||Ut===void 0?void 0:Ut.offsetHeight)||0,start:0,end:On.length-1,offset:void 0}}for(var tn=0,Yt,Zt,wn,Rn=On.length,qt=0;qt<Rn;qt+=1){var hn=On[qt],Dn=Fe(hn),Nn=bn.get(Dn),Sr=tn+(Nn===void 0?pe:Nn);Sr>=lr&&Yt===void 0&&(Yt=qt,Zt=tn),Sr>lr+ne&&wn===void 0&&(wn=qt),tn=Sr}return Yt===void 0&&(Yt=0,Zt=0,wn=Math.ceil(ne/pe)),wn===void 0&&(wn=On.length-1),wn=Math.min(wn+1,On.length-1),{scrollHeight:tn,start:Yt,end:wn,offset:Zt}},[En,zn,lr,On,Zn,ne]),gn=ln.scrollHeight,Rt=ln.start,Mt=ln.end,Dt=ln.offset;We.current.start=Rt,We.current.end=Mt,Ee.useLayoutEffect(function(){var Ut=bn.getRecord();if(Ut.size===1){var tn=Array.from(Ut.keys())[0],Yt=Ut.get(tn),Zt=On[Rt];if(Zt&&Yt===void 0){var wn=Fe(Zt);if(wn===tn){var Rn=bn.get(tn),qt=Rn-pe;Se(function(hn){return hn+qt})}}}bn.resetRecord()},[gn]);var dn=Ee.useState({width:0,height:ne}),et=(0,Ce.Z)(dn,2),tt=et[0],Te=et[1],Xt=function(tn){Te({width:tn.offsetWidth,height:tn.offsetHeight})},Ln=(0,Ee.useRef)(),Vn=(0,Ee.useRef)(),yn=Ee.useMemo(function(){return Xe(tt.width,Be)},[tt.width,Be]),Wt=Ee.useMemo(function(){return Xe(tt.height,gn)},[tt.height,gn]),st=gn-ne,xn=(0,Ee.useRef)(st);xn.current=st;function An(Ut){var tn=Ut;return Number.isNaN(xn.current)||(tn=Math.min(tn,xn.current)),tn=Math.max(tn,0),tn}var Hn=lr<=0,Un=lr>=st,Jn=hr<=0,pn=hr>=Be,Wn=Ke(Hn,Un,Jn,pn),tr=function(){return{x:Pn?-hr:hr,y:lr}},or=(0,Ee.useRef)(tr()),nr=(0,he.zX)(function(Ut){if(Qt){var tn=(0,ge.Z)((0,ge.Z)({},tr()),Ut);(or.current.x!==tn.x||or.current.y!==tn.y)&&(Qt(tn),or.current=tn)}});function pr(Ut,tn){var Yt=Ut;tn?((0,mt.flushSync)(function(){yr(Yt)}),nr()):Se(Yt)}function br(Ut){var tn=Ut.currentTarget.scrollTop;tn!==lr&&Se(tn),Gt==null||Gt(Ut),nr()}var Kn=function(tn){var Yt=tn,Zt=Be?Be-tt.width:0;return Yt=Math.max(Yt,0),Yt=Math.min(Yt,Zt),Yt},ar=(0,he.zX)(function(Ut,tn){tn?((0,mt.flushSync)(function(){yr(function(Yt){var Zt=Yt+(Pn?-Ut:Ut);return Kn(Zt)})}),nr()):Se(function(Yt){var Zt=Yt+Ut;return Zt})}),Fn=Ot(zn,Hn,Un,Jn,pn,!!Be,ar),rr=(0,Ce.Z)(Fn,2),Cr=rr[0],Qn=rr[1];ke(zn,Tn,function(Ut,tn,Yt,Zt){var wn=Zt;return Wn(Ut,tn,Yt)?!1:!wn||!wn._virtualHandled?(wn&&(wn._virtualHandled=!0),Cr({preventDefault:function(){},deltaX:Ut?tn:0,deltaY:Ut?0:tn}),!0):!1}),ve(En,Tn,function(Ut){Se(function(tn){return tn+Ut})}),(0,Ze.Z)(function(){function Ut(Yt){var Zt=Hn&&Yt.detail<0,wn=Un&&Yt.detail>0;zn&&!Zt&&!wn&&Yt.preventDefault()}var tn=Tn.current;return tn.addEventListener("wheel",Cr,{passive:!1}),tn.addEventListener("DOMMouseScroll",Qn,{passive:!0}),tn.addEventListener("MozMousePixelScroll",Ut,{passive:!1}),function(){tn.removeEventListener("wheel",Cr),tn.removeEventListener("DOMMouseScroll",Qn),tn.removeEventListener("MozMousePixelScroll",Ut)}},[zn,Hn,Un]),(0,Ze.Z)(function(){if(Be){var Ut=Kn(hr);yr(Ut),nr({x:Ut})}},[tt.width,Be]);var Er=function(){var tn,Yt;(tn=Ln.current)===null||tn===void 0||tn.delayHidden(),(Yt=Vn.current)===null||Yt===void 0||Yt.delayHidden()},qn=rt(Tn,On,bn,pe,Fe,function(){return cn(!0)},Se,Er);Ee.useImperativeHandle(te,function(){return{nativeElement:Cn.current,getScrollInfo:tr,scrollTo:function(tn){function Yt(Zt){return Zt&&(0,Ve.Z)(Zt)==="object"&&("left"in Zt||"top"in Zt)}Yt(tn)?(tn.left!==void 0&&yr(Kn(tn.left)),qn(tn.top)):qn(tn)}}}),(0,Ze.Z)(function(){if(wt){var Ut=On.slice(Rt,Mt+1);wt(Ut,On)}},[Rt,Mt,On]);var In=at(On,Fe,bn,pe),cr=Lt==null?void 0:Lt({start:Rt,end:Mt,virtual:En,offsetX:hr,offsetY:Dt,rtl:Pn,getSize:In}),fr=Ae(On,Rt,Mt,Be,hr,Vt,dt,ot),xr=null;ne&&(xr=(0,ge.Z)((0,Je.Z)({},ct?"height":"maxHeight",ne),Ft),zn&&(xr.overflowY="hidden",Be&&(xr.overflowX="hidden"),un&&(xr.pointerEvents="none")));var Mn={};return Pn&&(Mn.dir="rtl"),Ee.createElement("div",(0,E.Z)({ref:Cn,style:(0,ge.Z)((0,ge.Z)({},Pe),{},{position:"relative"}),className:_n},Mn,Sn),Ee.createElement(De.Z,{onResize:Xt},Ee.createElement(kt,{className:"".concat(oe,"-holder"),style:xr,ref:Tn,onScroll:br,onMouseEnter:Er},Ee.createElement(Me,{prefixCls:oe,height:gn,offsetX:hr,offsetY:Dt,scrollWidth:Be,onInnerResize:cn,ref:an,innerProps:Kt,rtl:Pn,extra:cr},fr))),En&&gn>ne&&Ee.createElement(yt,{ref:Ln,prefixCls:oe,scrollOffset:lr,scrollRange:gn,rtl:Pn,onScroll:pr,onStartMove:mr,onStopMove:ze,spinSize:Wt,containerSize:tt.height,style:Jt==null?void 0:Jt.verticalScrollBar,thumbStyle:Jt==null?void 0:Jt.verticalScrollBarThumb,showScrollBar:vn}),En&&Be>tt.width&&Ee.createElement(yt,{ref:Vn,prefixCls:oe,scrollOffset:hr,scrollRange:Be,rtl:Pn,onScroll:pr,onStartMove:mr,onStopMove:ze,spinSize:yn,containerSize:tt.width,horizontal:!0,style:Jt==null?void 0:Jt.horizontalScrollBar,thumbStyle:Jt==null?void 0:Jt.horizontalScrollBarThumb,showScrollBar:vn}))}var je=Ee.forwardRef(_t);je.displayName="List";var Ht=je,gt=Ht},93314:function(nn){"use strict";nn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(nn,jt,ie){"use strict";ie.d(jt,{Z:function(){return $e}});const E=De=>typeof De=="object"&&De!=null&&De.nodeType===1,Ve=(De,he)=>(!he||De!=="hidden")&&De!=="visible"&&De!=="clip",ge=(De,he)=>{if(De.clientHeight<De.scrollHeight||De.clientWidth<De.scrollWidth){const Ze=getComputedStyle(De,null);return Ve(Ze.overflowY,he)||Ve(Ze.overflowX,he)||(Ee=>{const mt=(Qe=>{if(!Qe.ownerDocument||!Qe.ownerDocument.defaultView)return null;try{return Qe.ownerDocument.defaultView.frameElement}catch(Me){return null}})(Ee);return!!mt&&(mt.clientHeight<Ee.scrollHeight||mt.clientWidth<Ee.scrollWidth)})(De)}return!1},Je=(De,he,Ze,Ee,mt,Qe,Me,Ne)=>Qe<De&&Me>he||Qe>De&&Me<he?0:Qe<=De&&Ne<=Ze||Me>=he&&Ne>=Ze?Qe-De-Ee:Me>he&&Ne<Ze||Qe<De&&Ne>Ze?Me-he+mt:0,Ce=De=>{const he=De.parentElement;return he==null?De.getRootNode().host||null:he},be=(De,he)=>{var Ze,Ee,mt,Qe;if(typeof document=="undefined")return[];const{scrollMode:Me,block:Ne,inline:Ae,boundary:ft,skipOverflowHiddenElements:xt}=he,It=typeof ft=="function"?ft:yt=>yt!==ft;if(!E(De))throw new TypeError("Invalid target");const pt=document.scrollingElement||document.documentElement,Re=[];let lt=De;for(;E(lt)&&It(lt);){if(lt=Ce(lt),lt===pt){Re.push(lt);break}lt!=null&<===document.body&&ge(lt)&&!ge(document.documentElement)||lt!=null&&ge(lt,xt)&&Re.push(lt)}const Ke=(Ee=(Ze=window.visualViewport)==null?void 0:Ze.width)!=null?Ee:innerWidth,Ot=(Qe=(mt=window.visualViewport)==null?void 0:mt.height)!=null?Qe:innerHeight,{scrollX:at,scrollY:Ue}=window,{height:Ct,width:He,top:it,right:nt,bottom:de,left:Et}=De.getBoundingClientRect(),{top:ke,right:Le,bottom:bt,left:ve}=(yt=>{const Ie=window.getComputedStyle(yt);return{top:parseFloat(Ie.scrollMarginTop)||0,right:parseFloat(Ie.scrollMarginRight)||0,bottom:parseFloat(Ie.scrollMarginBottom)||0,left:parseFloat(Ie.scrollMarginLeft)||0}})(De);let ue=Ne==="start"||Ne==="nearest"?it-ke:Ne==="end"?de+bt:it+Ct/2-ke+bt,rt=Ae==="center"?Et+He/2-ve+Le:Ae==="end"?nt+Le:Et-ve;const Nt=[];for(let yt=0;yt<Re.length;yt++){const Ie=Re[yt],{height:Xe,width:qe,top:en,right:Ft,bottom:_t,left:je}=Ie.getBoundingClientRect();if(Me==="if-needed"&&it>=0&&Et>=0&&de<=Ot&&nt<=Ke&&(Ie===pt&&!ge(Ie)||it>=en&&de<=_t&&Et>=je&&nt<=Ft))return Nt;const Ht=getComputedStyle(Ie),gt=parseInt(Ht.borderLeftWidth,10),ae=parseInt(Ht.borderTopWidth,10),te=parseInt(Ht.borderRightWidth,10),ee=parseInt(Ht.borderBottomWidth,10);let oe=0,se=0;const ne="offsetWidth"in Ie?Ie.offsetWidth-Ie.clientWidth-gt-te:0,pe="offsetHeight"in Ie?Ie.offsetHeight-Ie.clientHeight-ae-ee:0,ye="offsetWidth"in Ie?Ie.offsetWidth===0?0:qe/Ie.offsetWidth:0,ct="offsetHeight"in Ie?Ie.offsetHeight===0?0:Xe/Ie.offsetHeight:0;if(pt===Ie)oe=Ne==="start"?ue:Ne==="end"?ue-Ot:Ne==="nearest"?Je(Ue,Ue+Ot,Ot,ae,ee,Ue+ue,Ue+ue+Ct,Ct):ue-Ot/2,se=Ae==="start"?rt:Ae==="center"?rt-Ke/2:Ae==="end"?rt-Ke:Je(at,at+Ke,Ke,gt,te,at+rt,at+rt+He,He),oe=Math.max(0,oe+Ue),se=Math.max(0,se+at);else{oe=Ne==="start"?ue-en-ae:Ne==="end"?ue-_t+ee+pe:Ne==="nearest"?Je(en,_t,Xe,ae,ee+pe,ue,ue+Ct,Ct):ue-(en+Xe/2)+pe/2,se=Ae==="start"?rt-je-gt:Ae==="center"?rt-(je+qe/2)+ne/2:Ae==="end"?rt-Ft+te+ne:Je(je,Ft,qe,gt,te+ne,rt,rt+He,He);const{scrollLeft:Pe,scrollTop:Ge}=Ie;oe=ct===0?0:Math.max(0,Math.min(Ge+oe/ct,Ie.scrollHeight-Xe/ct+pe)),se=ye===0?0:Math.max(0,Math.min(Pe+se/ye,Ie.scrollWidth-qe/ye+ne)),ue+=Ge-oe,rt+=Pe-se}Nt.push({el:Ie,top:oe,left:se})}return Nt},Oe=De=>De===!1?{block:"end",inline:"nearest"}:(he=>he===Object(he)&&Object.keys(he).length!==0)(De)?De:{block:"start",inline:"nearest"};function $e(De,he){if(!De.isConnected||!(mt=>{let Qe=mt;for(;Qe&&Qe.parentNode;){if(Qe.parentNode===document)return!0;Qe=Qe.parentNode instanceof ShadowRoot?Qe.parentNode.host:Qe.parentNode}return!1})(De))return;const Ze=(mt=>{const Qe=window.getComputedStyle(mt);return{top:parseFloat(Qe.scrollMarginTop)||0,right:parseFloat(Qe.scrollMarginRight)||0,bottom:parseFloat(Qe.scrollMarginBottom)||0,left:parseFloat(Qe.scrollMarginLeft)||0}})(De);if((mt=>typeof mt=="object"&&typeof mt.behavior=="function")(he))return he.behavior(be(De,he));const Ee=typeof he=="boolean"||he==null?void 0:he.behavior;for(const{el:mt,top:Qe,left:Me}of be(De,Oe(he))){const Ne=Qe-Ze.top+Ze.bottom,Ae=Me-Ze.left+Ze.right;mt.scroll({top:Ne,left:Ae,behavior:Ee})}}}}]);
|