(self.webpackChunk=self.webpackChunk||[]).push([[928],{40001:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(60499),et=le(59301),me={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"},We=me,be=le(7657),Ce=function(fe,Ge){return et.createElement(be.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Oe=et.forwardRef(Ce),Ke=Oe},73331:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(60499),et=le(59301),me={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"},We=me,be=le(7657),Ce=function(fe,Ge){return et.createElement(be.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Oe=et.forwardRef(Ce),Ke=Oe},15277:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(60499),et=le(59301),me={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"},We=me,be=le(7657),Ce=function(fe,Ge){return et.createElement(be.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Oe=et.forwardRef(Ce),Ke=Oe},61485:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(60499),et=le(59301),me={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"},We=me,be=le(7657),Ce=function(fe,Ge){return et.createElement(be.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Oe=et.forwardRef(Ce),Ke=Oe},47472:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(60499),et=le(59301),me={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"},We=me,be=le(7657),Ce=function(fe,Ge){return et.createElement(be.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Oe=et.forwardRef(Ce),Ke=Oe},87395:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(60499),et=le(59301),me={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"},We=me,be=le(7657),Ce=function(fe,Ge){return et.createElement(be.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Oe=et.forwardRef(Ce),Ke=Oe},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Gt,It){"use strict";It.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Gt={},It="5.0",le={},re=null,et=!1,me=!1,We=null,be=!1,Ce=null,Oe=null,Ke=0;Ke4?parseFloat(Te):5};Gt.setHTML5Codebase=function(Te,tt){Oe=Te,st(Te,tt)},Gt.setJavaCodebase=Gt.setJavaCodebaseVersion=Gt.isCompiledInstalled=Gt.setPreCompiledScriptPath=Gt.setPreCompiledResourcePath=function(){},Gt.setHTML5CodebaseVersion=function(Te,tt){var ct=parseFloat(Te);if(ct!==NaN&&ct<5){console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead.");return}Ce=Te,de(Te,tt)},Gt.getHTML5CodebaseVersion=function(){return $e},Gt.getParameters=function(){return le},Gt.setFontsCSSURL=function(Te){St=Te},Gt.setGiacJSURL=function(Te){},Gt.setJNLPFile=function(Te){fe=Te},Gt.setJNLPBaseDir=function(Te){},Gt.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var tt="auto",ct=le.id,rn,wt=!1,Rt=0;Rt=5)return!0;var Te=Gt.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},Gt.startAnimation=function(){var Te=Gt.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},Gt.stopAnimation=function(){var Te=Gt.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},Gt.getAppletObject=function(){var Te=le.id!==void 0?le.id:"ggbApplet";return window[Te]},Gt.resize=function(){};var gt=function(Te,tt,ct){var rn=document.createElement("param");rn.setAttribute("name",tt),rn.setAttribute("value",ct),Te.appendChild(rn)},Be=function(Te){return Te&&Te!=="false"},qe=function(Te,tt,ct){Ye($e)<=4.2&&(ct=!0);var rn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==$e||ggbHTML5LoadedCodebaseIsWebSimple&&!He)&&(rn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var wt=document.createElement("div");wt.classList.add("appletParameters","notranslate");var Rt=tt.width,_e=tt.height;if(tt.disableAutoScale=tt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():tt.disableAutoScale,tt.width!==void 0)if(Ye($e)<=4.4)Be(tt.showToolBar)&&(tt.height-=7),Be(tt.showAlgebraInput)&&(tt.height-=37),tt.width<605&&Be(tt.showToolBar)&&(tt.width=605,Rt=605);else{var Lt=100;(Be(tt.showToolBar)||Be(tt.showMenuBar))&&(tt.hasOwnProperty("customToolBar")&&(tt.customToolbar=tt.customToolBar),Lt=Be(tt.showMenuBar)?245:155),Rt=5?(tt.appletOnLoad=function(Dt){var kt=Te.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ee),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Dt)},z||ee.appendChild(ie)):wt.appendChild(ie),ee.appendChild(wt),z||Te.appendChild(ee),setTimeout(function(){Gt.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(wt),Te.appendChild(ue),tt.appletOnLoad=function(Dt){Gt.resize(),ae(Dt)}}function ne(Dt,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,kt.appletOnLoad):renderGGBElement(Dt),Bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function we(Dt,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Vt){ne(Vt.article,Vt.params)}),html5AppletsToProcess=null)},Ye($e)<5&&(Dt.className+=" geogebraweb")):ne(Dt,kt)}if(rn){scriptLoadStarted=!0;for(var Ve=0;Ve0?(nt.remove(),ee.attr("id","fullscreencontent").show(),jQuery(ae).append(ee),window.dispatchEvent(new Event("resize"))):qe(nt,tt,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else ft=rn,qe(Te,tt,!1);if(!window.GGBT_wsf_view)for(_e=0;_eTe/4*3&&(nt=Te/4*3),ae=nt/5.8,Lt.setAttribute("src",rt),Lt.setAttribute("width",nt),Lt.setAttribute("height",ae);var ee=(Te-nt)/2,z=(tt-ae)/2;Lt.style.left=ee+"px",Lt.style.top=z+"px",wt.appendChild(Lt)}}return wt.appendChild(_e),wt},jt=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},ye=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(Te,tt){if($e=Te,tt){st($e,!0);return}var ct=!et;if(ct){var rn=Ye($e);!isNaN(rn)&&rn<4.4&&(ct=!1)}var wt,Rt;window.location.protocol.substr(0,4)==="http"?wt=window.location.protocol:wt="http:";var _e=$e.indexOf("//");_e>0?Rt=$e:_e===0?Rt=wt+$e:Rt="https://www.geogebra.org/apps/5.2.814.0/";for(var Lt in ye)if($e.slice(ye[Lt].length*-1)===ye[Lt]||$e.slice((ye[Lt].length+1)*-1)===ye[Lt]+"/"){st(Rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ct&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!Be(le.showToolBar)&&!Be(le.showMenuBar)&&!Be(le.showAlgebraInput)&&!Be(le.enableRightClick)&&(!le.appName||le.appName=="classic")?Rt+="webSimple/":Rt+="web3d/",st(Rt,!1)},st=function(Te,tt){if(Te.requirejs){Ge=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),Ge=Te,tt===null&&(tt=Te.indexOf("http")===-1),xe=tt,Ae="web.nocache.js",He=!1;var ct=Ge.split("/");ct.length>1&&(!tt&&ct[ct.length-2]==="webSimple"?(Ae="webSimple.nocache.js",He=!0):ye.indexOf(ct[ct.length-2])>=0&&(Ae=ct[ct.length-2]+".nocache.js")),ct=Te.split("/"),$e=ct[ct.length-3],$e.substr(0,4)==="test"?$e=$e.substr(4,1)+"."+$e.substr(5,1):($e.substr(0,3)==="war"||$e.substr(0,4)==="beta")&&($e="5.0");var rn=parseFloat($e);rn!==NaN&&rn<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+rn+" is deprecated. Using version latest instead."),de("5.0",tt))},Bt=function(Te,tt){window.console&&window.console.log&&(!tt||typeof tt.showLogging=="undefined"||tt.showLogging&&tt.showLogging!=="false")&&console.log(Te)};le.material_id!==void 0?ht(bt):bt();function bt(){var Te=It;Ce!==null?Te=Ce:parseFloat(Te)<5&&(Te="5.0"),de(Te,!1),Oe!==null&&st(Oe,xe),be=!0}return Gt},GGBAppletUtils=function(){"use strict";function Gt(){return window.GGBT_wsf_edit!==void 0}function It(be,Ce){Ce!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ce+","+Ce+")",be.style.webkitTransform="scale("+Ce+","+Ce+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function le(be,Ce,Oe,Ke,Se,fe){var Ge=null;if(fe!=null&&fe!="")for(var xe=be.parentNode;xe!=null;)if((" "+xe.className+" ").indexOf(" "+fe+" ")>-1){Ge=xe;break}else xe=xe.parentNode;var ft=0,$e=0,Ae=0,He=0,Le=0,rt=0,yt=0;if(Ge)ft=Ge.offsetWidth,$e=Math.max(Ke?Ge.offsetWidth:0,Ge.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ft=Math.min(window.innerWidth,document.documentElement.clientWidth),$e=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=ft):(ft=window.innerWidth,$e=window.innerHeight,Ae=window.innerWidth),be){var St=be.getBoundingClientRect();St.left>0&&St.left<=ft&&(Se===void 0||!Se)&&(document.dir==="rtl"?(Le=ft-St.width-St.left,rt=Ae<=480?10:30):(rt=St.left,Le=Ae<=480?10:30),He=rt+Le)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var at=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(He=40,yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He=0,yt=40)}}return be&&((Oe===void 0||!Oe)&&Ce>0&&Ce+He1&&(fe=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))Se=re(be,Ce,fe,Oe,be.scaleContainerClass);else return Ke;return fe&&(!be.hasOwnProperty("scale")||Ke===1)?Se:Math.min(Ke,Se)}function me(be){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),Oe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=be.getBoundingClientRect(),Se=(Ce-Ke.width)/2,fe=(Oe-Ke.height)/2;fe<0&&(fe=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Se<40?be.style.left="40px":be.style.left=Se+"px",be.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?be.style.top="40px":be.style.top=fe+"px",be.style.left=Se+"px")}function We(be,Ce){var Oe=be.querySelector(".appletParameters");if(Oe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==Oe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Oe.parentElement&&/fullscreen/.test(Oe.parentElement.className))return;var Ke=et(Ce,be);Gt()&&Oe.setAttribute("data-param-scale",Ke);for(var Se=null,fe=0;fe=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(Gt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Gt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Gt){var It=c[Gt];return It==null?null:It},r=d,webModule.__errFn=e}function B(){function Gt(be){var Ce=be.lastIndexOf(rb);Ce==-1&&(Ce=be.length);var Oe=be.indexOf(sb);Oe==-1&&(Oe=be.length);var Ke=be.lastIndexOf(tb,Math.min(Oe,Ce));return Ke>=O?be.substring(O,Ke+P):W}function It(be){if(!be.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=be+vb,be=Gt(Ce.src)}return be}function le(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function re(){for(var be=o.getElementsByTagName(_),Ce=O;CeO?be[be.length-P].href:W}function me(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var We=le();return We==W&&(We=re()),We==W&&(We=et()),We==W&&me()&&(We=Gt(o.location.href)),We=It(We),We}function C(Gt){return Gt.match(/^\//)||Gt.match(/^[a-zA-Z]+:\/\//)?Gt:webModule.__moduleBase+Gt}function D(){var Gt=[],It=O,le=[],re=[];function et(be){var Ce=re[be](),Oe=le[be];if(Ce in Oe)return Ce;var Ke=[];for(var Se in Oe)Ke[Oe[Se]]=Se;throw r&&r(be,Ke,Ce),null}if(__gwt_isKnownPropertyValue=function(be,Ce){return Ce in le[be]},webModule.__getPropMap=function(){var be={};for(var Ce in le)le.hasOwnProperty(Ce)&&(be[Ce]=et(Ce));return be},webModule.__computePropValue=et,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var me;try{me=Cb;var We=me.indexOf(Db);We!=-1&&(It=parseInt(me.substring(We+P),$),me=me.substring(O,We))}catch(be){}return webModule.__softPermutationId=It,C(me+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(Gt,It,le){"use strict";le.d(It,{Ax:function(){return We},Ds:function(){return be},KI:function(){return Oe},SI:function(){return me},f1:function(){return et}});var re=le(14185);function et(Ke){let Se=!0;if(Ke.length>0){for(let fe=0;fenew Promise((Ae,He)=>{var Le=St=>{try{yt($e.next(St))}catch(at){He(at)}},rt=St=>{try{yt($e.throw(St))}catch(at){He(at)}},yt=St=>St.done?Ae(St.value):Promise.resolve(St.value).then(Le,rt);yt(($e=$e.apply(xe,ft)).next())}),Ge=({data:xe,className:ft,fullWidth:$e,style:Ae={},onClose:He,onOk:Le,showFullTools:rt,noAssociationId:yt})=>{const St=(0,re.useRef)(null),at=(0,re.useRef)(null),Ye=(0,re.useRef)(null),lt=(0,re.useRef)(null),[Fe,ht]=(0,re.useState)(!1),[Ze,ze]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>(Ye.current||(Ye.current=document.createElement("style"),document.head.appendChild(Ye.current)),xe!=null&&xe.visible?(document.body.setAttribute("data-custom","y-hidden"),Ye.current.innerHTML=" html { overflow-y: hidden; }",xe!=null&&xe.src&>()):(document.body.removeAttribute("data-custom"),Ye.current&&(document.head.removeChild(Ye.current),Ye.current=null)),()=>{document.body.removeAttribute("data-custom"),Ye.current&&(document.head.removeChild(Ye.current),Ye.current=null)}),[xe==null?void 0:xe.visible]);const gt=()=>Se(void 0,null,function*(){ht(!0),ze("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Ke.ZJ)(xe==null?void 0:xe.src);St.current.src="",St.current.src=pe,St.current.onload=function(){Xe()},ht(!1),ze("")}),Be=pe=>Se(void 0,null,function*(){ht(!0),ze("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ct=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:xe.title,file:pe.dataUrl}});Ct!=null&&Ct.id&&!yt?(yield(0,Oe.ZP)(`/api/attachments/${xe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ct==null?void 0:Ct.id,settings:JSON.stringify(pe.state)}})).status===0&&Le():Ct!=null&&Ct.id&&Le(Ct),ht(!1),ze("")}),qe=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Me=>{const Et=document.querySelector(Me.name);Et&&Et.setAttribute("title",Me.title)})},Xe=()=>{at.current=new Ce.hP(St.current),at.current.targetRoot=lt.current,at.current.addEventListener("render",Be),at.current.addEventListener("beforeclose",He),rt&&(at.current.availableMarkerTypes=at.current.ALL_MARKER_TYPES,at.current.uiStyleSettings.redoButtonVisible=!0,at.current.uiStyleSettings.notesButtonVisible=!0,at.current.uiStyleSettings.zoomButtonVisible=!0,at.current.uiStyleSettings.zoomOutButtonVisible=!0,at.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=at.current.uiStyleSettings,at.current.show(),xe!=null&&xe.snapshotData&&at.current.restoreState(xe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qe()},300)};return re.createElement(re.Fragment,null,(xe==null?void 0:xe.visible)&&re.createElement(be.Z,{spinning:Fe,tip:Ze,style:{position:"absolute",width:"100vw"}},re.createElement("div",{ref:lt,className:We()(et.imageDimensions,ft,$e?et.fullWidth:""),style:Ae},re.createElement("img",{className:et.img,ref:St}))))}},9057:function(Gt,It,le){"use strict";var re=le(59301),et=le(77019),me=le(5269),We=le(31691),be=le(7939),Ce=le(35883),Oe=le(74501),Ke=le(48136),Se=le(59301);const fe=(0,re.forwardRef)(({callback:Ge,showSaveButton:xe,value:ft=""},$e)=>{const Ae=(0,re.useRef)(),He=[{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 "}]}]}],Le=[{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}`}]}]}],rt=at=>{Ae.current.setValue(Ae.current.getValue()+" "+at.value+" ")},yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Se.createElement(et.Z,{className:Oe.Z.lists,gutter:[10,10]},He.map((at,Ye)=>Se.createElement(me.Z,{flex:"110px",className:Oe.Z.item},Se.createElement("div",null,Se.createElement(Ce.Z,{value:`$$${at.value}$$`}),at.name),Se.createElement("div",{className:Oe.Z.children},at.children.map((lt,Fe)=>Se.createElement("div",{key:Fe},Se.createElement("h1",null,lt.name),Se.createElement(et.Z,{gutter:[10,10]},lt.data.map((ht,Ze)=>Se.createElement(me.Z,{key:Ze,onClick:()=>rt(ht),className:Oe.Z.diamond},Se.createElement(Ce.Z,{value:"`$$"+ht.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Se.createElement(et.Z,{className:Oe.Z.lists,gutter:[10,10]},Le.map((at,Ye)=>Se.createElement(me.Z,{flex:"110px",className:Oe.Z.item},Se.createElement("div",null,Se.createElement(Ce.Z,{value:"`$$"+at.value+"$$`"}),at.name),Se.createElement("div",{className:Oe.Z.children},at.children.map((lt,Fe)=>Se.createElement("div",{key:Fe},lt.name&&Se.createElement("h1",null,lt.name),Se.createElement(et.Z,{gutter:[10,10]},lt.data.map((ht,Ze)=>Se.createElement(me.Z,{key:Ze,onClick:()=>rt(ht),className:Oe.Z.diamond},Se.createElement(Ce.Z,{value:"`$$"+ht.value+"$$`"}))))))))))}],St=()=>{var at=document.createElement("div");at.innerHTML=Ae.current.getValue();var Ye=at.innerText;return Ge&&Ge(Ye),Ye};return(0,re.useImperativeHandle)($e,()=>({getData:St})),Se.createElement("div",{className:Oe.Z.mathWrap},Se.createElement(We.default,{defaultActiveKey:"1",items:yt}),Se.createElement("math-field",{locale:"zh_cn",className:Oe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ae,style:{width:800,marginTop:30,fontSize:18}},ft||""),xe&&Se.createElement("div",{className:Oe.Z.button},Se.createElement(be.ZP,{size:"large",onClick:St,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});It.Z=fe},90736:function(Gt,It,le){"use strict";var re=le(59301),et=le(4977),me=le(7939),We=Object.defineProperty,be=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,fe=($e,Ae,He)=>Ae in $e?We($e,Ae,{enumerable:!0,configurable:!0,writable:!0,value:He}):$e[Ae]=He,Ge=($e,Ae)=>{for(var He in Ae||(Ae={}))Ke.call(Ae,He)&&fe($e,He,Ae[He]);if(Oe)for(var He of Oe(Ae))Se.call(Ae,He)&&fe($e,He,Ae[He]);return $e},xe=($e,Ae)=>be($e,Ce(Ae));const ft=({img:$e,buttonProps:Ae={},styles:He={},customText:Le,ButtonText:rt,ButtonClick:yt,Buttonclass:St,ButtonTwo:at,imgStyles:Ye,loading:lt=!1,className:Fe=""})=>re.createElement("section",{className:`tc animated fadeIn ${Fe}`,style:Ge({color:"#999",margin:"100px auto",visibility:lt?"hidden":"visible"},He)},re.createElement("img",{src:$e||et,style:xe(Ge({},Ye),{pointerEvents:"none",userSelect:"none"})}),re.createElement("p",{className:"mt20 font14"},Le||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&re.createElement(me.ZP,Ge({className:St,onClick:yt},Ae),rt),at&&at);It.Z=ft},86974:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return St}});var re=le(59301),et={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},me=le(7939),We=le(70557),be=le(34728),Ce=le(25399),Oe=le(76406),Ke=le(84849),Se=le(90736),fe=le(14185),Ge=le(52078),xe=le(59301),ft=Object.defineProperty,$e=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Le=(at,Ye,lt)=>Ye in at?ft(at,Ye,{enumerable:!0,configurable:!0,writable:!0,value:lt}):at[Ye]=lt,rt=(at,Ye)=>{for(var lt in Ye||(Ye={}))Ae.call(Ye,lt)&&Le(at,lt,Ye[lt]);if($e)for(var lt of $e(Ye))He.call(Ye,lt)&&Le(at,lt,Ye[lt]);return at},yt=(at,Ye,lt)=>new Promise((Fe,ht)=>{var Ze=Be=>{try{gt(lt.next(Be))}catch(qe){ht(qe)}},ze=Be=>{try{gt(lt.throw(Be))}catch(qe){ht(qe)}},gt=Be=>Be.done?Fe(Be.value):Promise.resolve(Be.value).then(Ze,ze);gt((lt=lt.apply(at,Ye)).next())}),St=({editOffice:at="view",data:Ye,issaver:lt,onSaver:Fe,theme:ht,type:Ze,filename:ze,monacoEditor:gt,className:Be,style:qe,close:Xe,onClose:pe,hasMask:Ct,disabledDownload:Me,onImgDimensions:Et,showNodata:jt,recordInfo:ye})=>{const[de,st]=(0,re.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Bt,bt]=(0,re.useState)(""),[Te,tt]=(0,re.useState)(),ct=window.ENV==="build"?"/react/build":"",rn=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,Rt=10*(1024*1024),_e=(0,re.useRef)();Ye!=null&&Ye.startsWith("/api")&&Ze!=="txt"&&(Ye=fe.Z.API_SERVER+Ye);const Lt=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();ze&>&&(gt.filename=ze),(0,re.useEffect)(()=>{var ue,ne;const we=(ne=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:ne.split(";");we==null||we.map(Ve=>{let Pt=Ve.split("=");Pt[0]==="_educoder_session"&&bt(Pt[1])})},[]),(0,re.useEffect)(()=>{Ze==="office"&&(Ye.indexOf("bigfilescdn.")>-1||Ye.indexOf("bigfiles1")>-1?tt({url:Ye,fileType:Lt(Ye),model:Ye.indexOf("model=edit")?"edit":"view"}):Ye.indexOf("coze")>-1?tt({url:Ye,fileType:"doc",model:"view"}):ae())},[Ze,Ye]);function nt(ue){return yt(this,null,function*(){ue.data.type==="pdfdata"&&(Fe(ue.data.data),window.removeEventListener("message",nt,!1)),console.log("mess---:",ue.data)})}const ae=()=>yt(void 0,null,function*(){console.log("data:",Ye);let ue=Ye;Ye.startsWith("http")||(ue=location.origin+ue);let ne=new URL(ue).pathname.split("/").pop();const we=yield(0,Ke.gJ)({attachment_id:ne});we.url=rn+we.url,tt(we)}),ee=()=>{if(Ye.startsWith("http")||Ye.startsWith("blob:")){z();return}(0,Oe.Sv)(ze||"educoder",Ye,ze)},z=()=>{ye&&(0,Ge.fc)({id:ye==null?void 0:ye.id,watch_type:1,course_id:ye==null?void 0:ye.course_id}),(0,Oe.Nd)(ze||"educoder",decodeURIComponent(Ye))};(0,re.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=ue=>{var ne;((ne=ue==null?void 0:ue.data)==null?void 0:ne.type)==="closePop"&&pe()};return xe.createElement("div",{style:rt({},qe||{}),className:`${Ct&&et.bgBlack} ${Ze?et.wrp:"hide"}`},!!Ze&&Xe&&xe.createElement("div",{id:"closePop",className:et.close,ref:_e},!!Et&&xe.createElement(Ce.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>_e.current},xe.createElement("span",{onClick:()=>{pe(),Et()}},xe.createElement("i",{className:"icon-yulanpizhu"}))),!Me&&window.parent===window&&xe.createElement(Ce.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>_e.current},xe.createElement("span",{onClick:z},xe.createElement("i",{className:"icon-quxiaozhiding"}))),lt&&xe.createElement(Ce.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>_e.current},xe.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",nt,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},xe.createElement("i",{className:"icon-baocun"}))),xe.createElement(Ce.Z,{title:"\u5173\u95ED",getPopupContainer:()=>_e.current},xe.createElement("span",{className:"",onClick:()=>{pe()}},xe.createElement("i",{className:"icon-guanbi1"})))),xe.createElement("div",{className:`${et[Be]} ${Be} ${et.monaco} ${Ze==="txt"?"show":"hide"}`},Ze==="txt"&&xe.createElement(xe.Fragment,null,xe.createElement(be.ZP,rt({},gt)))),Ze==="audio"&&xe.createElement("audio",{controls:!0,src:`${(Ye==null?void 0:Ye.indexOf("http://"))>-1||(Ye==null?void 0:Ye.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ye}`,autoPlay:!0}),Ze==="video"&&xe.createElement(xe.Fragment,null,(Ye==null?void 0:Ye.indexOf("http"))>-1?xe.createElement("video",{controls:!0,src:`${Ye}`,autoPlay:!0}):xe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ye}`,autoPlay:!0})),Ze==="office"&&Te&&xe.createElement("iframe",{src:`${ct}/office.html?key=${Te.key}&url=${btoa(Te.url)}&callbackUrl=${rn+(Te.callbackUrl||"")}&fileType=${Te.fileType}&title=${Te.title||""}&model=${at}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Me}`}),Ze==="html"&&xe.createElement("iframe",{src:Ye+"&disposition=inline"}),Ze==="pdf"&&xe.createElement("iframe",{id:"pdfiframe",src:`${ct}/js/pdf/index.html?filename=${ze||"educoder.pdf"}&url=${encodeURIComponent(Ye)}&disabledDownload=${!!Me}&model=${at}`}),Ze==="image"&&xe.createElement("img",{src:`${(Ye==null?void 0:Ye.indexOf("http://"))>-1||(Ye==null?void 0:Ye.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ye}`}),(Ze==="other"||Ze==="download")&&xe.createElement(xe.Fragment,null,jt?xe.createElement(Se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xe.createElement(me.ZP,{icon:xe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ee,disabled:Me},"\u4E0B\u8F7D")}):xe.createElement(me.ZP,{type:"primary",size:"middle",onClick:ee,disabled:Me},xe.createElement(We.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ze==="flowChart"&&xe.createElement("div",{className:"embed"},xe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ye||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(Gt,It,le){"use strict";le.d(It,{z:function(){return gt},Z:function(){return Be}});var re=le(59301),et=le(46214),me=le(20047),We=le(64018),be=le(16471),Ce=le(14185),Oe=le(76406),Ke=le(15342),Se=le(44104),fe=le(7939),Ge=le(1012),xe=le(86974),ft=le(59301),Ae=({html:qe})=>{const Xe=(0,re.useRef)(null),pe=(0,re.useRef)(null),Ct=`.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,re.useEffect)(()=>{const Me=Xe.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=qe,Me.appendChild(pe.current);const Et=document.createElement("style");return Et.textContent=Ct,Me.appendChild(Et),()=>{Me.innerHTML=""}},[]),(0,re.useEffect)(()=>{pe.current&&(pe.current.innerHTML=qe)},[qe]),ft.createElement("div",{ref:Xe})};function He(qe){const Xe=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],pe=new RegExp(`\\b(${Xe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ct=/]*>/gi;return qe.replace(pe,"").replace(Ct,"").trim()}var Le={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},rt=Object.defineProperty,yt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Ye=(qe,Xe,pe)=>Xe in qe?rt(qe,Xe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):qe[Xe]=pe,lt=(qe,Xe)=>{for(var pe in Xe||(Xe={}))St.call(Xe,pe)&&Ye(qe,pe,Xe[pe]);if(yt)for(var pe of yt(Xe))at.call(Xe,pe)&&Ye(qe,pe,Xe[pe]);return qe};const Fe="@\u2581\u2581@",ht="@\u2581@",Ze=/]*>/g;function ze(qe){let Xe=document.createElement("div");return Xe.innerHTML=qe,Xe.childNodes.length===0?"":Xe.childNodes[0].nodeValue}const gt=(qe,Xe)=>{qe=qe||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ct=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Me=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Xe?qe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(jt,ye,de,st,Bt,bt,Te)=>{const tt=ye||st||bt,ct=de||Bt||Te||"?";return Ce.Z.API_SERVER+"/api/attachments/"+tt+ct+"&t="+(0,Oe.Jn)(tt,Date.now())+(jt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(qe=qe.replace(Et,(jt,ye,de,st,Bt,bt,Te)=>{const tt=ye||st||bt,ct=de||Bt||Te||"?";return Ce.Z.API_SERVER+"/attachments/download/"+tt+ct+"&t="+(0,Oe.Jn)(tt,Date.now())+(jt.indexOf(")")>-1?")":"&")}).replace(pe,(jt,ye,de,st,Bt,bt,Te)=>{const tt=ye||st||bt,ct=de||Bt||Te||"?";return Ce.Z.API_SERVER+"/api/attachments/"+tt+ct+"&t="+(0,Oe.Jn)(tt,Date.now())+(jt.indexOf(")")>-1?")":"&")}).replace(Ct,(jt,ye,de,st,Bt)=>{const bt=ye||st,Te=de||Bt||"";return'"'+Ce.Z.API_SERVER+"/api/attachments/"+bt+Te+bt+Te+"&t="+(0,Oe.Jn)(bt,Date.now())}).replace(Me,(jt,ye,de,st,Bt)=>{const bt=ye||st,Te=de||Bt||"";return"("+Ce.Z.API_SERVER+"/files/uploads/"+bt+Te+bt+Te+"&t="+(0,Oe.Jn)(bt,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,` `),qe)};var Be=({value:qe="",edit:Xe=!1,className:pe,showTextOnly:Ct,showLines:Me,style:Et={},stylesPrev:jt={},highlightKeywords:ye,showProgramFill:de,isProgramFill:st,disabledFill:Bt=!1,programFillValue:bt,openEditor:Te=()=>{},onFillChange:tt=wt=>{},onFillBlur:ct=()=>{},onFillFocus:rn=()=>{}})=>{let wt=He(String(qe||""));const Rt=(0,re.useRef)(),_e=(0,re.useRef)(),[Lt,nt]=(0,re.useState)(""),[ae,ee]=(0,re.useState)("office"),[z,ie]=(0,re.useState)([]),ue=(0,re.useRef)("a"+(0,Ge.Z)()),ne={},we=pt=>//i.test(pt||""),Ve=(pt,dn,Ft)=>{const Yt=document.createElement(pt===ht?"input":"textarea");Yt.style.width="100%",Yt.style.height=pt===ht?"40px":"151px",Yt.rows=5,Yt.spellcheck=!1,Yt.name="edu-program-fill",Yt.placeholder="\u8BF7\u8F93\u5165",Yt.dataset.id=dn;const an=Object.keys(ne).length;return ne[an]=Yt,`${Yt.outerHTML}`};function Pt(pt){return pt=pt.replace(/!\[.*?\]\(.*?\)/g,""),pt=pt.replace(/\[.*?\]\(.*?\)/g,""),pt=pt.replace(new RegExp("","gs"),""),pt=pt.replace(//g,""),pt=pt.replace(//g,""),pt=pt.replace(new RegExp(".*?<\\/video>","gs"),""),pt=pt.replace(new RegExp(".*?<\\/audio>","gs"),""),pt=pt.replace(new RegExp(".*?<\\/style>","gs"),""),pt=pt.replace(new RegExp(".*?<\\/script>","gs"),""),pt}const je=pt=>!Ct&&we(wt)?pt:pt.replace(/([\s\S]+?)<\/style>/gim,function(dn,Ft){let Yt=Ft.replace(/(\n|\r)/g,"").split("}"),an=[];return Yt.map(Ln=>{Ln!=""&&an.push(`.${ue.current} ${Ln}`)}),``}),Je=(0,re.useMemo)(()=>{(0,me.Iy)();try{const Yt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,an=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ln=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,bn=/\(\/attachments\/download\//g;wt=wt.replace(bn,"("+Ce.Z.API_SERVER+"/attachments/download/").replace(Yt,"("+Ce.Z.API_SERVER+"/api/attachments/").replace(an,'"'+Ce.Z.API_SERVER+"/api/attachments/").replace(Ln,'"'+Ce.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,` `),Rt.current.style.display="none"}catch(Yt){}if(de){let Yt=-1;return wt=wt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(an,Ln,bn){var ke;return++Yt,Ve(an,Yt,(ke=bt==null?void 0:bt[Yt])==null?void 0:ke.value.replaceAll("<","<").replaceAll(">",">"))}),`
${je(wt||"")}
`}let pt=je(wt);pt=(0,me.ZP)(pt);const dn=(0,me.ez)();wt.match(/\[TOC\]/)&&(pt=pt.replace("

[TOC]

",(0,me.Qv)()),(0,me.Iy)()),pt=pt.replace(/(__special_katext_id_\d+__)/g,(Yt,an)=>{const{type:Ln,expression:bn}=dn[an];return(0,Ke.renderToString)(ze(bn)||"",{displayMode:Ln==="block",throwOnError:!1,output:"html"})}),pt=pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,me.AL)();const Ft=document.createElement("div");if(Ft.innerHTML=pt,Ct)return Ft.innerText;if(ye){const Yt=ye.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Vt(Ft,Yt),Ft.innerHTML}return setTimeout(()=>sn(),500),Ft.innerHTML},[wt,ye]);(0,re.useEffect)(()=>{$t.current&&$t.current.querySelectorAll(["input","textarea"]).forEach(dn=>{dn.oninput=dt,dn.onblur=Dt,dn.onfocus=kt})},[z]),(0,re.useEffect)(()=>{var pt,dn,Ft,Yt,an;if(bt!=null&&bt.length)try{const Ln=$t.current.querySelectorAll(".edu-program-fill-score"),bn=$t.current.querySelectorAll('[name="edu-program-fill"]');for(const[ke,Ue]of bn.entries())Ue.value=((pt=bt==null?void 0:bt[ke])==null?void 0:pt.value)||"",((dn=bt==null?void 0:bt[ke])==null?void 0:dn.type)==="warning"?Ue.className="program-fill-warning":((Ft=bt==null?void 0:bt[ke])==null?void 0:Ft.type)==="success"?Ue.className="program-fill-success":Ue.className="";for(const[ke,Ue]of Ln.entries())Ue.innerHTML=(Yt=bt==null?void 0:bt[ke])!=null&&Yt.score?`${(an=bt==null?void 0:bt[ke])==null?void 0:an.score}\u5206`:"";ie(bt)}catch(Ln){console.log(Ln,"error")}},[bt]);const dt=pt=>{z[pt.target.dataset.id]=z[pt.target.dataset.id]||{},z[pt.target.dataset.id].value=pt.target.value,ie([...z]),tt(z,pt.target.dataset.id)},Dt=pt=>{z[pt.target.dataset.id]=z[pt.target.dataset.id]||{},z[pt.target.dataset.id].value=pt.target.value,ie([...z]),ct(z,pt.target.dataset.id)},kt=pt=>{z[pt.target.dataset.id]=z[pt.target.dataset.id]||{},z[pt.target.dataset.id].value=pt.target.value,ie([...z]),rn(z,pt.target.dataset.id)};function Vt(pt,dn){return pt.childNodes.forEach(Ft=>{var Yt;if(Ft.childNodes.length>0)Vt(Ft,dn);else if(Ft.nodeName!=="IMG")if(Ft.innerHTML)Ft.innerHTML=(Yt=Ft.innerHTML)==null?void 0:Yt.replace(new RegExp(dn,"gi"),'$&');else{const an=document.createElement("span");an.innerHTML=Ft.textContent.replace(new RegExp(dn,"gi"),'$&'),Ft.replaceWith(an)}})}const $t=(0,re.useRef)();me.jb.WebkitLineClamp=Me,Me&&(Et=lt(lt({},Et),me.jb));function Tt(pt){let dn=pt.target;if(dn.tagName.toUpperCase()==="A"){let Ft=dn.getAttribute("href");if(Ft.indexOf("office")>-1)pt.preventDefault(),nt(Ft),ee("office");else if(Ft.indexOf("application/pdf")>-1)pt.preventDefault(),nt(Ft),ee("pdf");else if(Ft.indexOf("text/html")>-1)pt.preventDefault(),nt(Ft),ee("html");else if(Ft.startsWith("#")){pt.preventDefault();let Yt=document.getElementById(Ft.replace("#",""));Yt&&Yt.scrollIntoView(!0)}}}const sn=()=>{var pt;const dn=(pt=$t.current)==null?void 0:pt.querySelectorAll("video");dn==null||dn.forEach(Ft=>{if(Ft.oncontextmenu=()=>!1,Ft.src.indexOf(".m3u8")>-1&&!Ft.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var Yt=new be.ZP;Yt.loadSource(Ft.src),Yt.attachMedia(Ft)}}})};(0,re.useEffect)(()=>{if($t.current&&Je&&Je.match(Ze)&&window.PR.prettyPrint(),$t.current)return $t.current.addEventListener("click",Tt),()=>{var pt;(pt=$t.current)==null||pt.removeEventListener("click",Tt),(0,me.AL)(),(0,me.Iy)()}},[Je,$t.current,Tt]);const Jt=pt=>{pt.target.nodeName==="IMG"&&pt.target.className.indexOf("draw-flowchart")>-1?(Rt.current.style.zIndex=1,Rt.current.style.display="flex",Rt.current.style.width=pt.target.clientWidth+"px",Rt.current.style.height=pt.target.clientHeight+"px",Rt.current.style.top=pt.target.offsetTop+"px",Rt.current.style.left=pt.target.offsetLeft+"px",pt.target.id&&(_e.current=pt.target.id)):Rt.current.style.display="none"},on=()=>{Rt.current.style.display="none"};return(0,re.useEffect)(()=>{var pt;const dn=Ft=>{Ft.preventDefault(),Ft.clipboardData.setData("text",window.getSelection().toString())};return(pt=$t.current)==null||pt.addEventListener("copy",dn),()=>{var Ft;(Ft=$t.current)==null||Ft.removeEventListener("copy",dn)}},[$t.current]),re.createElement("div",{style:{position:"relative"},onMouseLeave:on},Ct&&re.createElement("div",{ref:$t,className:`${Le.mdBody} `},Je),!Ct&&!we(Je)&&re.createElement("div",{ref:$t,style:lt({},Et),onMouseOver:Jt,className:`${pe||""} ${Bt?"disabled-fill":""} markdown-body ${Le.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Je}}),!Ct&&we(Je)&&re.createElement(Ae,{html:Je}),re.createElement("div",{ref:Rt,className:`${Le.button} ${Xe?"":Le.previewFlowChart}`},re.createElement(Se.Z,null,re.createElement(fe.ZP,{onClick:()=>{Xe?Te(_e.current):(nt(_e.current),ee("flowChart"))}},Xe?"\u7F16\u8F91":"\u9884\u89C8"))),re.createElement(xe.Z,{close:!0,data:Lt,type:Lt!=null&&Lt.length?ae:"",style:lt({},jt),onClose:()=>nt("")}))}},28267:function(Gt,It,le){"use strict";le.d(It,{h:function(){return at}});var re=le(59301),et=le(82326),me=le(28284),We=le(7939),be=le(89780),Ce=le.n(be),Oe=le(88319),Ke=le(94896),Se=Object.defineProperty,fe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,Ae=(Ye,lt,Fe)=>lt in Ye?Se(Ye,lt,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):Ye[lt]=Fe,He=(Ye,lt)=>{for(var Fe in lt||(lt={}))ft.call(lt,Fe)&&Ae(Ye,Fe,lt[Fe]);if(xe)for(var Fe of xe(lt))$e.call(lt,Fe)&&Ae(Ye,Fe,lt[Fe]);return Ye},Le=(Ye,lt)=>fe(Ye,Ge(lt));const rt=et.default.Option,yt={labelCol:{span:4},wrapperCol:{span:20}},St={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"]};It.Z=({callback:Ye,onCancel:lt})=>{const[Fe,ht]=(0,re.useState)("python");function Ze(gt){ht(St[gt][1])}function ze(gt){Ye(gt)}return re.createElement(me.default,Le(He({},yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ze,style:{width:500}}),re.createElement(me.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(et.default,{getPopupContainer:gt=>gt.parentNode,onChange:Ze},Object.keys(St).map(gt=>re.createElement(rt,{key:gt,value:gt},St[gt][0])))),re.createElement(me.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(at,{mode:Fe})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(We.ZP,{type:"ghost",onClick:lt},"\u53D6\u6D88")))};function at({value:Ye,onChange:lt,mode:Fe,options:ht={}}){const Ze=(0,re.useRef)(),[ze,gt]=(0,re.useState)();return(0,re.useEffect)(()=>{if(ze){let Be=function(qe){const Xe=qe.getValue();lt&<(Xe)};return ze.on("change",Be),()=>{ze.off("change",Be)}}},[ze,lt]),(0,re.useEffect)(()=>{ze&&ze.setOption("mode",Fe)},[ze,Fe]),(0,re.useEffect)(()=>{ze&&(Ye!==ze.getValue()||Ye==="")&&setTimeout(()=>{ze.setValue(Ye||"")},300)},[ze,Ye]),(0,re.useEffect)(()=>{if(Ze.current&&!ze){const Be=Ce().fromTextArea(Ze.current,He({mode:Fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ht));gt(Be)}},[Ze.current,ze]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Ze}))}},39116:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Dn}});var re=le(59301),et=le(44283),me=le(89780),We=le.n(me),be=le(76374),Ce=le(88319),Oe=le(6313),Ke=le(25717),Se=le(99498),fe=le(25419),Ge=le(67549),xe=le(35883),ft=({value:tn="",className:yn,showTextOnly:un,showLines:Tn,style:Yn={}})=>{const zn=(0,re.useMemo)(()=>"",[tn]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:zn}}))},$e=Object.defineProperty,Ae=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,St=(tn,yn,un)=>yn in tn?$e(tn,yn,{enumerable:!0,configurable:!0,writable:!0,value:un}):tn[yn]=un,at=(tn,yn)=>{for(var un in yn||(yn={}))rt.call(yn,un)&&St(tn,un,yn[un]);if(Le)for(var un of Le(yn))yt.call(yn,un)&&St(tn,un,yn[un]);return tn},Ye=(tn,yn)=>Ae(tn,He(yn));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 Fe({onActionCallback:tn,title:yn,icon:un,actionName:Tn,className:Yn="",children:zn}){function Bn(){tn(Tn)}return re.createElement("a",{title:yn,className:Yn,onClick:Bn},re.createElement("i",{className:`${un}`}),zn)}var ht=({watch:tn,showNullButton:yn,showNullProgramButton:un,onActionCallback:Tn,fullScreen:Yn,insertTemp:zn,hidetoolBar:Bn,extraUse:_n})=>{const Vn=[...lt,{title:`${tn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!Bn&&Vn.map((Qn,jn)=>re.createElement("li",{key:jn},Qn.actionName?re.createElement(Fe,Ye(at({},Qn),{onActionCallback:Tn})):re.createElement("span",{className:"v-line"}))),yn?re.createElement("li",null,re.createElement(Fe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tn},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,un?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(Fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tn},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(Fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tn},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,zn&&re.createElement("li",null,re.createElement(Fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${zn}`,onActionCallback:Tn},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),_n&&re.createElement("li",null,_n),re.createElement("li",{className:"btn-full-screen"},re.createElement(Fe,{icon:`${Yn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Yn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tn})))},Ze=le(88487),ze=le(28284),gt=le(37568),Be=le(7939),qe=Object.defineProperty,Xe=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,jt=(tn,yn,un)=>yn in tn?qe(tn,yn,{enumerable:!0,configurable:!0,writable:!0,value:un}):tn[yn]=un,ye=(tn,yn)=>{for(var un in yn||(yn={}))Me.call(yn,un)&&jt(tn,un,yn[un]);if(Ct)for(var un of Ct(yn))Et.call(yn,un)&&jt(tn,un,yn[un]);return tn},de=(tn,yn)=>Xe(tn,pe(yn));const st={labelCol:{span:4},wrapperCol:{span:20}};var Bt=({callback:tn,onCancel:yn})=>{function un(Tn){tn(Tn)}return re.createElement(ze.default,de(ye({},st),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:un,style:{width:500}}),re.createElement(ze.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(gt.default,null)),re.createElement(ze.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(gt.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Be.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},bt=le(28267),Te=le(53332),tt=le(62957),ct=le(77019),rn=le(40254),wt=le(59301),Rt=({callback:tn,onCancel:yn})=>{const un=document.createElement("canvas"),Tn=un.getContext("2d");un.width=1e3,un.height=800,Tn.fillStyle="#ffffff",Tn.fillRect(0,0,un.width,un.height);const Yn=un.toDataURL("image/png");return wt.createElement(tt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},wt.createElement(ct.Z,{style:{height:"100vh"}},wt.createElement(rn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yn,visible:!0,title:String(Date.now())},onOk:zn=>{tn({src:zn.url})},onClose:yn})))},_e=le(36207),Lt=le(5269),nt=le(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ee=le(59301),ie=(0,re.forwardRef)(({onCancel:tn,editImgId:yn,callback:un},Tn)=>{let Yn=(0,re.useRef)(),zn=(0,re.useRef)(),Bn=(0,re.useRef)(),_n=(0,re.useRef)(!1);const Vn=(0,re.useRef)(!1);console.log("ref:",Tn);const[Qn,jn]=(0,re.useState)(0),[xt,Wt]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{jn(1)},[]),(0,re.useImperativeHandle)(Tn,()=>({setHeight:Wt})),ee.createElement("div",{ref:Vn,className:"body-overflow-initial"},ee.createElement(_e.Z,{width:"100vw",height:xt,footer:null,closable:!0,placement:"bottom",open:!!Qn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(In=>{un({src:`/api/attachments/${In}`,id:In})})},title:ee.createElement(ct.Z,{align:"middle"},ee.createElement(Lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ee.createElement(Lt.Z,{onClick:()=>{Wt(xt==="60px"?"100vh":"60px")}},ee.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ee.createElement(Lt.Z,{onClick:()=>{window.saveDrawData(In=>{if(In===null){nt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}nt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),un({src:`/api/attachments/${In}`,id:In,disabledClose:!0})})}},ee.createElement(Be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ee.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${yn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:zn})))}),ue=le(14185),ne=le(47889),we=le(4875);const Ve=ne.ZP.Group,Pt={margin:"0 8px"};var je=({callback:tn,onCancel:yn})=>{function un(Tn){tn(Tn)}return re.createElement(ze.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:un},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:Pt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:Pt},"\u884C\u6570"),re.createElement(ze.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(we.Z,null)),re.createElement("span",{style:Pt},"\u5217\u6570"),re.createElement(ze.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(we.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:Pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(ze.default.Item,{name:"align"},re.createElement(Ve,null,re.createElement(ne.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(ne.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(ne.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(ne.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Be.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},Je=le(58755),dt=le(84915),Dt=le.n(dt),Vt=(0,re.forwardRef)(({use3d:tn,width:yn,height:un,callback:Tn,showSaveButton:Yn},zn)=>{const Bn=(0,re.useRef)(),_n=(0,re.useRef)(),[Vn,Qn]=(0,re.useState)(!1),jn=(0,re.useRef)({id:Bn,appName:"graphing",width:yn||1e3,height:un||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,re.useEffect)(()=>{_n.current=new(Dt())(jn.current,!0),window.onload=function(){_n.current.inject("applet_container")}},[]);const xt=()=>{var Wt=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(Wt),Wt};return(0,re.useEffect)(()=>{jn.current.appName=Vn?"3D":"graphing",_n.current.inject("applet_container")},[Vn]),(0,re.useEffect)(()=>{Qn(tn)},[tn]),(0,re.useImperativeHandle)(zn,()=>({getImgData:xt})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bn}),re.createElement(ct.Z,{align:"middle"},re.createElement(Lt.Z,{flex:1},re.createElement(Je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Vn,onChange:Wt=>Qn(Wt)})),re.createElement(Lt.Z,null,re.createElement(Be.ZP,{size:"large",onClick:xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),$t=le(9057);const Tt="link",sn="upload-image",Jt="add-flowchart",on="draw-image",pt="add-flowchart",dn="code-block",Ft="add-table",Yt="------------",an={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var Ln=le(79006),bn=le(76406);function ke(){}let Ue=0;const mt=1e4,Ht="\u2581",nn="@\u2581\u2581@",fn="@\u2581@",$n=` **\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`,An=["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 pn(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}const vn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kn={[vn+"-B"]:"bold",[vn+"-I"]:"italic"},gn={[Tt]:"\u6DFB\u52A0\u94FE\u63A5",[dn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[sn]:"\u6DFB\u52A0\u56FE\u7247",[on]:"\u6DFB\u52A0\u753B\u56FE",[Jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ft]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dn=({defaultValue:tn="",onChange:yn,width:un="100%",height:Tn=400,miniToolbar:Yn=!1,isFocus:zn=!1,watch:Bn,insertTemp:_n,mode:Vn="markdown",id:Qn="markdown-editor-id",showResizeBar:jn=!1,noStorage:xt=!1,showNullButton:Wt=!1,showNullProgramButton:In=!1,hidetoolBar:Un=!1,fullScreen:Ee=!1,onBlur:Re,onCMBeforeChange:ve,onFullScreen:De,className:ge="",disablePaste:Pe=!1,disabled:Qe=!1,disabledFill:At=!1,placeholder:Nt="",values:Qt="",extraUse:Mt,onAddBlank:ut})=>{const[it,Zt]=(0,re.useState)(null),[hn,ln]=(0,re.useState)(tn),[cn,Zn]=(0,re.useState)(Bn),[Xn,Jn]=(0,re.useState)(Ee),[Nn,Sn]=(0,re.useState)(""),[Pn,Hn]=(0,re.useState)(0),[ur,qn]=(0,re.useState)(Tn),[lr,ir]=(0,re.useState)(!1),[er,tr]=(0,re.useState)(0),[gr,mr]=(0,re.useState)(0),cr=(0,re.useRef)(),vr=(0,re.useRef)(),Cr=(0,re.useRef)(),or=(0,re.useRef)(),dr=(0,re.useRef)(),Fn=(0,re.useRef)(),wr=(0,et.useDispatch)();(0,re.useEffect)(()=>{const Ut=window.scrollY||window.pageYOffset;ln(Qt),it==null||it.setValue(Qt),window.scrollTo(0,Ut)},[Qt]),(0,re.useEffect)(()=>{De==null||De(Xn)},[Xn]),(0,re.useEffect)(()=>{if(cr.current){let Ut=function(xn,Cn){var rr;if(Pe){Cn.preventDefault();return}const Mr=Cn.clipboardData;if(Mr){const br=Mr.types.toString(),Ir=Mr.items;if(br==="Files"||Mr.types.indexOf("Files")>-1){if(Cn.preventDefault(),Vn=="stex")return;try{let Dr=Ir[1];((rr=Ir[0])==null?void 0:rr.kind)==="file"&&(Dr=Ir[0]);const Tr=Dr.getAsFile(),Hr=Tr.name.split(".").pop();(0,Te.I)(Tr,Or=>{var _r,ti,Di;Or.id?((_r=Tr==null?void 0:Tr.type)==null?void 0:_r.indexOf("image"))>-1?Kt.replaceSelection(``):((ti=Tr==null?void 0:Tr.type)==null?void 0:ti.indexOf("video"))>-1?Kt.replaceSelection(``):((Di=Tr==null?void 0:Tr.type)==null?void 0:Di.indexOf("pdf"))>-1?Kt.replaceSelection(`${Tr.name}`):An.includes(Hr)?Kt.replaceSelection(`${Tr.name}`):Kt.replaceSelection(`[${Tr.name}](/api/attachments/${Or.id}?type=${Or.content_type})`):(Or==null?void 0:Or.status)===401&&(document.location.href="/user/login")})}catch(Dr){nt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Kt=We().fromTextArea(cr.current,{mode:Vn,lineNumbers:!Yn,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});return Kt.on("keyup",function(xn,Cn){Cn.keyCode===8&&(xn.getValue()==""?Kt.setOption("placeholder",Nt):Kt.setOption("placeholder",null))}),Kt.on("keydown",function(xn,Cn){if(Cn.keyCode===8){var rr=jr(xn);rr&&Cn.preventDefault()}}),zn&&Kt.focus(),Kt.on("paste",Ut),Qe&&Kt.on("beforeChange",function(xn,Cn){(Cn.origin==="paste"||Cn.origin==="+input")&&Cn.cancel()}),Zt(Kt),()=>{Kt.off("paste",Ut)}}},[]);const Rr=(0,re.useCallback)(()=>{if(vr.current)try{}catch(Ut){console.log(Ut,"---- to set md editor body height")}},[ur,vr,Xn]);(0,re.useEffect)(()=>{function Ut(){let Kt=new be.Z(xn=>{for(let Cn of xn)(Cn.target.offsetHeight>0||Cn.target.offsetWidth>0)&&(Rr(),it.setSize("100%","100%"),it.refresh())});return Kt.observe(cr.current.parentElement),Kt}if(it){const Kt=Ut();return()=>{var xn,Cn;(xn=cr.current)!=null&&xn.parentElement&&Kt.unobserve((Cn=cr.current)==null?void 0:Cn.parentElement)}}},[it,Rr]),(0,re.useEffect)(()=>{if(it){let Ut=[];for(const[Kt,xn]of Object.entries(Kn)){let Cn={[Kt]:()=>{Er(xn)}};Ut.push(Cn),it.addKeyMap(Cn)}return()=>{for(let Kt of Ut)it.removeKeyMap(Kt)}}},[it]),(0,re.useEffect)(()=>{Ee!==Xn&&Jn(Ee)},[Ee]),(0,Ln.Z)(()=>{if(!xt&&Pn>0){let Ut=new Date().getTime(),Kt=window.sessionStorage.getItem(Qn);Ut>=Pn+mt&&(!Kt||Kt!==hn)&&(window.sessionStorage.setItem(Qn,hn),ir(!0))}},mt),(0,re.useEffect)(()=>{Zn(Bn)},[it,Bn]),(0,re.useEffect)(()=>{it&&zn&&it.focus()},[it,zn]),(0,re.useEffect)(()=>{if(cn&&it){let Ut=function(xn){let Cn=xn.target;if(or.current){let rr=Cn.scrollTop/Cn.scrollHeight;or.current.scrollTop=or.current.scrollHeight*rr}};const Kt=it.getScrollerElement();return Kt.addEventListener("scroll",Ut),()=>{Kt.removeEventListener("scroll",Ut)}}},[it,cn]),(0,re.useEffect)(()=>{if(it&&ve){let Ut=function(Kt,xn){ve(Kt,xn)};return it.on("beforeChange",Ut),()=>{it.off("beforeChange",Ut)}}},[it,ve]),(0,re.useEffect)(()=>{if(it&&Re){let Ut=function(){Re(it.getValue())};return it.on("blur",Ut),()=>{it.off("blur",Ut)}}},[it,Re]);function jr(Ut,Kt){var xn=Ut.getDoc(),Cn=xn.getCursor(),rr=xn.getLine(Cn.line),Mr=rr.charAt(Cn.ch-1),br=rr.lastIndexOf("@\u2581@",Cn.ch),Ir=rr.lastIndexOf("@\u2581\u2581@",Cn.ch),Dr=br>Ir?br:Ir,Tr=br>Ir?3:4;if(nn.indexOf(Mr)===-1)return null;if(console.log("change1:",Kt,Ut,rr,Cn,Dr,br,Ir,Mr),Dr>=0&&Cn.ch-Dr<5){var Hr=Dr+Tr;return xn.replaceRange("",{line:Cn.line,ch:Dr},{line:Cn.line,ch:Hr}),{line:Cn.line,ch:Hr}}return null}(0,re.useEffect)(()=>{if(it){let Ut=function(Kt,xn){const Cn=Kt.getValue();ln(Cn),Hn(new Date().getTime()),Kt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),yn&&(In?yn(Cn,qt(Cn)):yn(Cn))};return it.on("change",Ut),()=>{it.off("change",Ut)}}},[it,yn]),(0,re.useEffect)(()=>{if(it)if(tn==null)it.setValue(""),ln("");else{const Ut=window.scrollY||window.pageYOffset;tn!==it.getValue()&&(it.setValue(tn),ln(tn),it.setCursor(Qe?1:it.lineCount(),0),window.scrollTo(0,Ut))}},[it,tn]);const Er=(0,re.useCallback)(Ut=>{const Kt=it.getCursor(),xn=it.getSelection();let Cn=xn.split(` `);switch(Ut){case"bold":return it.replaceSelection("**"+xn+"**"),xn===""&&it.setCursor(Kt.line,Kt.ch+2),it.focus();case"italic":return it.replaceSelection("*"+xn+"*"),xn===""&&it.setCursor(Kt.line,Kt.ch+1),it.focus();case"code":return it.replaceSelection("`"+xn+"`"),xn===""&&it.setCursor(Kt.line,Kt.ch+1),it.focus();case"inline-latex":return(0,bn.Ye)(wr)?void 0:(Sn("inline-latex"),it.focus());case"latex":return it.replaceSelection("```latex\n"+xn+"\n```"),it.setCursor(Kt.line+1,xn.length+1),it.focus();case"line-break":return it.replaceSelection(`
`),it.focus();case"list-ul":return xn===""?it.replaceSelection("- "+xn):it.replaceSelection(Cn.map(rr=>rr===""?"":`- ${rr}`).join(` `)),it.focus();case"list-ol":return xn===""?it.replaceSelection("1. "+xn):it.replaceSelection(Cn.map((rr,Mr)=>rr===""?"":`${Mr+1}. ${rr}`).join(` `)),it.focus();case"add-null-ch":ut==null||ut();return;case"add-signal":return xn===""&&it.setCursor(Kt.line,Kt.ch),it.replaceSelection(fn),it.focus();case"add-multiple":return xn===""&&it.setCursor(Kt.line,Kt.ch),it.replaceSelection(nn),it.focus();case"inster-template-1":return xn===""&&it.setCursor(Kt.line,Kt.ch),it.replaceSelection($n),it.focus();case"eraser":return it.setValue(""),it.focus();case"trigger-watch":return Zn(!cn),it.focus();case"trigger-full-screen":return Jn(!Xn),it.focus();case Tt:Sn(Tt);return;case dn:Sn(dn);return;case sn:Sn(sn);return;case on:Sn(on);return;case"maths-latex":if((0,bn.Ye)(wr))return;Sn("maths-latex");return;case Jt:dr.current="",sessionStorage.removeItem("file_id"),Sn(Jt);return;case Ft:Sn(Ft);return;default:throw new Error}},[it,cn,Xn]),Br=(0,re.useCallback)((Ut,Kt)=>{var xn,Cn,rr,Mr,br,Ir;Ut!=null&&Ut.disabledClose||Sn("");const{src:Dr,alt:Tr,id:Hr}=Ut||{};switch(Nn){case Tt:const{title:Fi,link:xi}=Ut;return it.replaceSelection(`[${Fi}](${xi})`),it.focus();case dn:const{language:mi,content:Yi}=Ut;return it.replaceSelection(["```"+mi,Yi,"```"].join(` `)),it.focus();case"maths-latex":for(var Or=atob(Ut),_r=new Uint8Array(Or.length),ti=0;ti{vi.id?it.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")}),it.focus();case"inline-latex":return(0,bn.Ye)(wr)?void 0:(it.replaceSelection("`$$"+Ut+"$$`"),it.focus());case pt:return Hr?(it.getValue().indexOf(Dr)===-1?it.replaceSelection(`
${Tr||
`):document.getElementById(Hr).src=ue.Z.API_SERVER+Dr+"?t="+Date.now(),it.focus()):void 0;case sn:case on:const Ar=Kt,to=(rr=(Cn=(xn=Ar==null?void 0:Ar.name)==null?void 0:xn.split("."))==null?void 0:Cn.pop)==null?void 0:rr.call(Cn);return((Mr=Ar==null?void 0:Ar.type)==null?void 0:Mr.indexOf("image"))>-1||!(Ar!=null&&Ar.type)?Ar!=null&&Ar.align||Ar!=null&&Ar.width?it.replaceSelection(`

${Tr||

`):it.replaceSelection(`${Tr||`):((br=Ar==null?void 0:Ar.type)==null?void 0:br.indexOf("video"))>-1?it.replaceSelection(``):((Ir=Ar==null?void 0:Ar.type)==null?void 0:Ir.indexOf("pdf"))>-1?it.replaceSelection(`${Ar.name}`):An.includes(to)?it.replaceSelection(`${Ar.name}`):it.replaceSelection(`[${Ar.name}](${Dr})`),it.focus();case Ft:const{row:ni,col:Ai,align:ao}=Ut;let Xi=` `;for(let vi=0;vi{switch(Nn){case Tt:return re.createElement(Bt,{callback:Br,onCancel:Lr});case dn:return re.createElement(bt.Z,{callback:Br,onCancel:Lr});case sn:return re.createElement(Te.Z,{callback:Br,onCancel:Lr});case Jt:return re.createElement(ie,{editImgId:dr.current,callback:Br,onCancel:Lr});case Ft:return re.createElement(je,{callback:Br,onCancel:Lr});case"maths-latex":return re.createElement(Vt,{showSaveButton:!0,callback:Br});case"inline-latex":return re.createElement($t.Z,{showSaveButton:!0,callback:Br});default:return null}},[Nn]);function Lr(){Sn("")}(0,re.useEffect)(()=>{if(Cr.current){let Ut=function(br){rr=!0,Mr=br.pageY},Kt=function(){rr=!1},xn=function(br){if(rr){let Ir=br.pageY-Mr;Ir<0&&(Ir=0),Ir>300&&(Ir=300);let Dr=Tn+Ir+"px";qn(Dr)}},Cn=Cr.current,rr=!1,Mr=0;return Cn.addEventListener("mousedown",Ut),document.addEventListener("mousemove",xn),document.addEventListener("mouseup",Kt),()=>{Cn.removeEventListener("mousedown",Ut),document.removeEventListener("mousemove",xn),document.removeEventListener("mouseup",Kt)}}},[it,Cr]),(0,re.useEffect)(()=>{qn(Tn)},[Tn]);const zr=pn(un),fr=pn(ur),Gn={width:zr,height:fr},_t=(0,re.useMemo)(()=>{if(Pn){let Ut=new Date(Pn),Kt=Ut.getHours(),xn=Ut.getMinutes(),Cn=Ut.getSeconds();return Kt=Kt<10?"0"+Kt:Kt,xn=xn<10?"0"+xn:xn,Cn=Cn<10?"0"+Cn:Cn,`${Kt}:${xn}:${Cn}`}return 0},[Pn]),qt=Ut=>{const Kt=[];if(In){let xn=-1;Ut=Ut.replace(/(@▁▁@|@▁@)/g,function(Cn,rr,Mr){Kt.push({multiLine:Cn!==fn})})}return Kt};function Xt(){window.sessionStorage.removeItem(Qn),ir(!1),Hn(0)}function Ot(){ir(!1),Hn(0),it.setValue(window.sessionStorage.getItem(Qn))}(0,re.useEffect)(()=>{gn[Nn]&&Nn!==on&&Nn!==Jt&&setTimeout(()=>{const Ut=document.getElementsByClassName("markdown-popup-form")[0],Kt=window.innerWidth/2-Ut.offsetWidth/2,xn=window.innerHeight/2-Ut.offsetHeight/2;tr(Kt),mr(xn)},0)},[Nn]);const En=Ut=>{Ut.preventDefault();const Kt=Ut.clientX-er,xn=Ut.clientY-gr;document.body.onmousemove=Cn=>{let rr=Cn.clientX-Kt,Mr=Cn.clientY-xn;const br=document.getElementsByClassName("markdown-popup-form")[0],Ir=window.innerWidth-br.offsetWidth,Dr=window.innerHeight-br.offsetHeight;rr=Math.max(0,Math.min(rr,Ir)),Mr=Math.max(0,Math.min(Mr,Dr)),On(Cn.clientX,Cn.clientY,Kt,xn)&&(tr(rr),mr(Mr))},document.body.onmouseup=function(){document.body.onmousemove=null}},On=(Ut,Kt,xn,Cn)=>{const rr=document.body.clientHeight,Mr=document.body.clientWidth;return Ut<20&&xn>Ut||Ut>Mr-20&&xnKt||Kt>rr-20&&Cn{var Kt;dr.current=Ut,(Kt=Fn.current)==null||Kt.setHeight("100vh"),setTimeout(()=>{Sn("add-flowchart")},150)}})):null))),jn?re.createElement("a",{ref:Cr,className:"editor-resize"}):null,Nn===on&&re.createElement(Rt,{callback:Br,onCancel:Lr}),Nn===Jt&&re.createElement(ie,{ref:Fn,editImgId:dr.current,callback:Br,onCancel:Lr}),re.createElement(Ze.Z,null,gn[Nn]&&Nn!==on&&Nn!==Jt?re.createElement(tt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:gr},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:En},gn[Nn]),open:!0,onCancel:Lr,footer:null,destroyOnClose:!0,width:Nn===Jt?"1200px":null,height:Nn===Jt?"80vh":null,className:"markdown-popup-form"},kr):null))}},53332:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return lt},I:function(){return ht}});var re=le(28284),et=le(6767),me=le(37568),We=le(44104),be=le(4875),Ce=le(47889),Oe=le(7939),Ke=le(23216),Se=le(59301),fe=le(59301),Ge=Object.defineProperty,xe=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Le=(Ze,ze,gt)=>ze in Ze?Ge(Ze,ze,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Ze[ze]=gt,rt=(Ze,ze)=>{for(var gt in ze||(ze={}))Ae.call(ze,gt)&&Le(Ze,gt,ze[gt]);if($e)for(var gt of $e(ze))He.call(ze,gt)&&Le(Ze,gt,ze[gt]);return Ze},yt=(Ze,ze)=>xe(Ze,ft(ze));const{useForm:St}=re.default,at={width:280,marginRight:10},Ye={labelCol:{span:5},wrapperCol:{span:19}};var lt=({callback:Ze,onCancel:ze})=>{const[gt]=St();let Be=(0,Se.useRef)();function qe(Ct){Be.current.width=gt.getFieldValue("width"),Be.current.align=gt.getFieldValue("align"),Ze(Ct,Be.current)}function Xe(Ct,Me){if(Ct.status===-1){et.ZP.error(Ct.message);return}gt.setFieldsValue({src:`/api/attachments/${Ct.id}`,type:Me.type})}function pe(Ct){let Me=Ct.target.files[0];Be.current=Me,ht(Me,Xe)}return fe.createElement(re.default,yt(rt({form:gt},Ye),{className:"upload-image-panel",onFinish:qe,style:{width:470,overflow:"hidden"}}),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},fe.createElement("div",{className:"flex-container"},fe.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},fe.createElement(me.default,{style:at})),fe.createElement(Fe,{onFileChange:pe}))),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(me.default,{style:{width:264}})),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},fe.createElement(We.Z,null,fe.createElement(re.default.Item,{name:"width",style:{margin:0}},fe.createElement(be.Z,{style:{width:264}})),fe.createElement("span",{className:"ml8"},"%"))),fe.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},fe.createElement(Ce.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),fe.createElement("aside",null,fe.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},fe.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Oe.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function Fe({onFileChange:Ze}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:Ze}))}function ht(Ze,ze){if(!Ze)throw new String("\u6CA1\u6709\u6587\u4EF6");let gt=new FormData;gt.append("editormd-image-file",Ze),gt.append("file_param_name","editormd-image-file"),gt.append("byxhr","true");var Be=new window.XMLHttpRequest;Be.withCredentials=!0,Be.addEventListener("load",function(qe){ze(JSON.parse(qe.target.responseText),Ze)},!1),Be.addEventListener("error",function(qe){console.error(qe)},!1),Be.open("POST",`${Ke.KI}/api/attachments.json`),Be.send(gt)}},88487:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return me}});var re=le(59301),et=le(4676);class me extends re.Component{constructor(be){super(be);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,et.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Gt,It,le){"use strict";le.d(It,{SV:function(){return Rt},ZP:function(){return wt}});var re=le(59301),et=le(76374);const me={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"]},We={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"]},be={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Ce={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(` `)}]},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 Ke=le(53184),Se=le.n(Ke),fe=(_e,Lt,nt)=>new Promise((ae,ee)=>{var z=ne=>{try{ue(nt.next(ne))}catch(we){ee(we)}},ie=ne=>{try{ue(nt.throw(ne))}catch(we){ee(we)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);ue((nt=nt.apply(_e,Lt)).next())});const Ge={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},xe=(_e,Lt,nt,ae)=>{const ee=Lt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:nt.lineNumber,endColumn:nt.column});return Array.from(new Set(ee.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:_e.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},ft=(_e,Lt,nt,ae)=>{_e.languages.registerCompletionItemProvider(Lt,{provideCompletionItems(ee,z){const ie=ee.getWordUntilPosition(z),ue={startLineNumber:z.lineNumber,endLineNumber:z.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},ne=ee.getLineContent(z.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...xe(_e,ee,z,ue),...nt.map(Ve=>({label:Ve,kind:_e.languages.CompletionItemKind.Keyword,documentation:Ve,insertText:Ve,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(Ve=>({label:Ve.label,kind:_e.languages.CompletionItemKind.Snippet,documentation:Ve.content,insertText:ne.startsWith("#")?Ve.content.replace(/#/,""):Ve.content,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var $e=_e=>{Ge.languages.forEach(Lt=>{_e.languages.registerDocumentFormattingEditProvider(Lt,{provideDocumentFormattingEdits(nt){return fe(this,null,function*(){const ae=Se()(nt.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:nt.getFullModelRange(),text:ae}]})}})}),ft(_e,"java",We.keywords,We.quickKey),ft(_e,"cpp",be.keywords,be.quickKey),ft(_e,"c",me.keywords,[]),ft(_e,"python",Ce.keywords,Ce.quickKey),ft(_e,"scala",Oe.keywords,Oe.quickKey)};const Ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var He=Object.defineProperty,Le=(_e,Lt,nt)=>Lt in _e?He(_e,Lt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):_e[Lt]=nt,rt=(_e,Lt,nt)=>Le(_e,typeof Lt!="symbol"?Lt+"":Lt,nt);const yt=class zs{constructor(Lt,nt,ae){this.placeholder=Lt,this.editor=nt,this.monaco=ae,nt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return zs.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)}};rt(yt,"ID","editor.widget.placeholderHint");var at=yt,Ye=le(96236),lt=le(6767),Fe=le(25399),ht=le(78267),Ze=le(33156),ze=le(56102),gt=Object.defineProperty,Be=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Me=(_e,Lt,nt)=>Lt in _e?gt(_e,Lt,{enumerable:!0,configurable:!0,writable:!0,value:nt}):_e[Lt]=nt,Et=(_e,Lt)=>{for(var nt in Lt||(Lt={}))pe.call(Lt,nt)&&Me(_e,nt,Lt[nt]);if(Xe)for(var nt of Xe(Lt))Ct.call(Lt,nt)&&Me(_e,nt,Lt[nt]);return _e},jt=(_e,Lt)=>Be(_e,qe(Lt)),ye=(_e,Lt)=>{var nt={};for(var ae in _e)pe.call(_e,ae)&&Lt.indexOf(ae)<0&&(nt[ae]=_e[ae]);if(_e!=null&&Xe)for(var ae of Xe(_e))Lt.indexOf(ae)<0&&Ct.call(_e,ae)&&(nt[ae]=_e[ae]);return nt},de=(_e,Lt,nt)=>new Promise((ae,ee)=>{var z=ne=>{try{ue(nt.next(ne))}catch(we){ee(we)}},ie=ne=>{try{ue(nt.throw(ne))}catch(we){ee(we)}},ue=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);ue((nt=nt.apply(_e,Lt)).next())});function st(_e){return/^\d+$/.test(_e)?`${_e}px`:_e}function Bt(){}let bt=!1;const Te={"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 tt(_e=[]){let Lt=_e;if(Array.isArray(_e)){for(let nt=0;nt<_e.length;nt++){let ae=Te[_e[nt]];if(ae)return ae}return Lt[0]}return Te[Lt]||Lt}let ct=null;const rn=()=>de(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(_e){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",_e)}});var wt=_e=>{var Lt=_e,{width:nt="100%",height:ae="100%",value:ee,language:z="javascript",style:ie={},options:ue={},overrideServices:ne={},theme:we="vs-dark",onEditBlur:Ve,isCopy:Pt=!1,onSave:je,autoHeight:Je=!1,forbidCopy:dt=!1,forbidCopyTips:Dt,onChange:kt=Bt,editorDidMount:Vt=Bt,onFocus:$t=Bt,onBreakPoint:Tt=Bt,breakPointValue:sn=[],filename:Jt="educoder.txt",errorLine:on,errorContent:pt="",highlightLine:dn,openBreakPoint:Ft=!1,placeholder:Yt="",showMiniMap:an=!0}=Lt,Ln=ye(Lt,["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 bn=(0,re.useRef)(),ke=(0,re.useRef)({}),Ue=(0,re.useRef)(),mt=(0,re.useRef)(),Ht=(0,re.useRef)([]),nn=(0,re.useRef)(!1),fn=(0,re.useRef)(),$n=(0,re.useRef)(),An=(0,re.useRef)(!1),[pn,wn]=(0,re.useState)(!1);function vn(){let xt;return bn.current&&(xt=new et.Z(Wt=>{for(let In of Wt)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&ke.current.instance.layout()}),xt.observe(bn.current)),xt}function Kn(){lt.ZP.warning({content:decodeURIComponent(Dt||Ae),key:"monaco-editor-tip"})}const gn=()=>{let xt=ke.current.instance;if(ee!=null&&xt&&pn){const Wt=xt.getModel();Wt&&ee!==Wt.getValue()&&(bt=!0,Wt.setValue(ee),xt.layout(),bt=!1)}};(0,re.useEffect)(()=>{const xt=Ze.Z.subscribe("formatDocument",Wt=>{var In;let Un=ke.current.instance;(In=Un==null?void 0:Un.getAction)==null||In.call(Un,"editor.action.formatDocument").run()});return window.updateMonacoValue=Wt=>{kt(Wt)},xt},[]),(0,re.useEffect)(()=>{var xt;let Wt=ke.current.instance;mt.current&&clearTimeout(mt.current),mt.current=setTimeout(()=>{gn()},500),ee&&(ee!=null&&ee.length)&&((xt=Wt==null?void 0:Wt.updateOptions)==null||xt.call(Wt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ee.split(/\r\n|\r|\n/g).length))+3,5)}))},[ee,pn,ke.current]),(0,re.useEffect)(()=>{if(on&&ke.current&&ke.current.instance){let Wt=ke.current.instance;Wt.changeViewZones(function(In){var Un=document.createElement("div");Un.style.padding="10px 20px",Un.style.width="calc(100% - 20px)",Un.className="my-error-line-wrp",Un.innerHTML=pt,In.addZone({afterLineNumber:on||11,heightInLines:3,domNode:Un})});var xt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Wt.addOverlayWidget(xt),Wt.revealPositionInCenter({lineNumber:20,column:1})}},[on,ke.current,pn]);const Dn=(xt="",Wt)=>{if(!xt||xt.trim()==="")return!0;const Un=ke.current.instance.getModel().getLineTokens(Wt);let Ee=!1;for(let Re=0;Re<2;Re++)Un.getStandardTokenType(Re)===1&&(Ee=!0);return Ee};(0,re.useEffect)(()=>{var xt;const Wt=(xt=ke.current)==null?void 0:xt.instance;if(Wt&&pn&&dt){const In=Wt.onDidBlurEditorWidget(()=>{An.current=!1}),Un=Wt.onDidFocusEditorText(()=>{An.current=!0});return()=>{In.dispose(),Un.dispose()}}},[ke.current,pn,dt]),(0,re.useEffect)(()=>{var xt;if((xt=ke.current)!=null&&xt.instance&&pn&&Ft){let Wt=ke.current.instance,In=Wt.getModel();if(!In)return;(()=>{var Mt;let ut=[],it=[];const Zt=In.getAllDecorations();for(let ln of Zt)ln.options.className==="highlighted-line"&&(ut.push((Mt=ln==null?void 0:ln.range)==null?void 0:Mt.startLineNumber),it.push(ln==null?void 0:ln.id));if(dn===ut[0])return;In.deltaDecorations(it,[]);const hn=In.getLineCount();dn&&dn<=hn&&(Wt.deltaDecorations([],[{range:new ct.Range(dn,1,dn,In.getLineMaxColumn(dn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Wt.revealLineInCenter(dn))})();const Ee=(Mt=!1)=>{var ut;let it=[],Zt=[];const hn=In.getAllDecorations();for(let ln of hn)ln.options.linesDecorationsClassName==="breakpoints-select"&&(it.push((ut=ln==null?void 0:ln.range)==null?void 0:ut.startLineNumber),Zt.push(ln==null?void 0:ln.id));if(Mt)return{lines:it,ids:Zt};Tt(it)},Re=Mt=>de(void 0,null,function*(){let ut={range:new ct.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield In.deltaDecorations([],[ut]),Ee()}),ve=Mt=>de(void 0,null,function*(){let ut=[];const it=Wt.getLineDecorations(Mt);for(let Zt of it)Zt.options.linesDecorationsClassName==="breakpoints-select"&&ut.push(Zt.id);yield In.deltaDecorations(ut,[]),Ee()}),De=Mt=>{let ut=Wt.getLineDecorations(Mt);for(let it of ut)if(it.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ht.isEqual)(sn,Ee(!0).lines)){In.deltaDecorations(Ee(!0).ids,[]);const Mt=sn.map(ut=>({range:new ct.Range(ut,1,ut,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));In.deltaDecorations([],Mt)}const ge=Wt.onDidChangeModelContent(Mt=>{let ut=Wt.getPosition();if(ut){let it=ut.lineNumber;clearTimeout($n.current),$n.current=setTimeout(()=>{Dn(In.getLineContent(it),it)?ve(it):De(it)?(ve(it),Re(it)):Ee()},100)}}),Pe=Wt.onMouseDown(Mt=>{var ut,it,Zt;if(Mt.target.detail&&((Zt=(it=(ut=Mt.target)==null?void 0:ut.element)==null?void 0:it.className)!=null&&Zt.includes("line-numbers"))){let hn=Mt.target.position.lineNumber;if(Dn(In.getLineContent(hn),hn))return;De(hn)?ve(hn):Re(hn)}}),Qe=Mt=>{let ut={range:new ct.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ht.current=Wt.deltaDecorations(Ht.current,[ut])},At=()=>{Ht.current=Wt.deltaDecorations(Ht.current,[])},Nt=Wt.onMouseMove(Mt=>{var ut,it,Zt;if(At(),Mt.target.detail&&((Zt=(it=(ut=Mt.target)==null?void 0:ut.element)==null?void 0:it.className)!=null&&Zt.includes("line-numbers"))){let hn=Mt.target.position.lineNumber;if(Dn(In.getLineContent(hn),hn))return;Qe(hn)}}),Qt=Wt.onMouseLeave(()=>{At()});return()=>{ge.dispose(),Pe.dispose(),Nt.dispose(),Qt.dispose()}}},[ke.current,pn,sn,dn,Ft,z]),(0,re.useEffect)(()=>{var xt;(xt=ke.current)!=null&&xt.instance&&Ft&&ke.current.instance.setPosition({lineNumber:0,column:0})},[dn]);function tn(){let xt=ke.current.instance;if(xt){const Wt=xt.getSelection(),In=ke.current.pastePos||{},Un=new ct.Range(In.startLineNumber||Wt.endLineNumber,In.startColumn||Wt.endColumn,In.endLineNumber||Wt.endLineNumber,In.endColumn||Wt.endColumn);setTimeout(()=>{xt.executeEdits("",[{range:Un,text:""}])},300)}}function yn(xt){(window.navigator.platform.match("Mac")?xt.metaKey:xt.ctrlKey)&&xt.keyCode==83&&(xt.preventDefault(),je())}const un=()=>{if(Je&&ke.current.instance){const xt=ke.current.instance.getContentHeight();Qn(xt{if(!An.current)return;const{keyCode:Wt,ctrlKey:In,metaKey:Un,target:Ee,type:Re}=xt;return(Re==="paste"||(Wt===67||Wt===86)&&(Un||In))&&Ee.nodeName==="TEXTAREA"&&(Kn(),xt.preventDefault()),!1};function zn(xt,Wt){var In=window.URL||window.webkitURL||window,Un=new Blob([Wt]),Ee=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ee.href=In.createObjectURL(Un),Ee.download=xt,Tn(Ee)}(0,re.useEffect)(()=>{un()},[un]),(0,re.useEffect)(()=>{bn.current&&!pn&&Promise.all([le.e(8909),le.e(5977)]).then(le.bind(le,71448)).then(xt=>{try{ct=xt,ke.current.instance=ct.editor.create(bn.current,{value:ee,language:tt(z),theme:we,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:an||!1}},ne);const Wt=ke.current.instance;let Ee=[...Ye.BH._menuItems].find(ge=>ge[0]._debugName=="EditorContext")[1],Re=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ve=(ge,Pe)=>{var Qe,At;let Nt=ge._first;do Pe.includes((At=(Qe=Nt.element)==null?void 0:Qe.command)==null?void 0:At.id)&&ge._remove(Nt);while(Nt=Nt.next)};if(Vt(Wt,ct),setTimeout(()=>{un(),ke.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{zn(Jt||"educoder.txt",Wt.getValue())}})},500),ke.current.subscription=Wt.onDidChangeModelContent(ge=>{nn.current?clearTimeout(fn.current):(un(),kt(Wt.getValue(),ge)),fn.current=setTimeout(()=>{nn.current=!1},500)}),window.Monaco||$e(ct,tt(z)),dt&&(ve(Ee,Re),bn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Yn),window.removeEventListener("paste",Yn),window.addEventListener("keydown",Yn),window.addEventListener("paste",Yn)),window.Monaco=ct,Ve&&Wt.onDidBlurEditorWidget(()=>{Ve(Wt.getValue())}),$t&&Wt.onDidFocusEditorText(()=>{dt&&rn(),$t(Wt.getValue())}),dt){rn();try{Wt.onDidPaste(ge=>{const Pe=Wt.getSelection(),Qe=ke.current.pastePos||{},At=new ct.Range(Qe.startLineNumber||Pe.endLineNumber,Qe.startColumn||Pe.endColumn,Qe.endLineNumber||Pe.endLineNumber,Qe.endColumn||Pe.endColumn);Wt.executeEdits("",[{range:ge.range,text:""}])})}catch(ge){}}let De=vn();return Yt&&typeof Yt=="string"&&new at(Yt,Wt,ct),wn(!0),()=>{const ge=ke.current.instance;ge.dispose();const Pe=ge.getModel();Pe&&Pe.dispose(),ke.current.subscription&&ke.current.subscription.dispose(),De.unobserve(bn.current)}}catch(Wt){}})},[]),(0,re.useEffect)(()=>{if(ke.current.instance&&pn)return document.addEventListener("keydown",yn,!1),()=>{document.removeEventListener("keydown",yn)}},[je,pn]),(0,re.useEffect)(()=>{let xt=ke.current.instance;if(xt&&pn){let Wt=tt(z);ct.editor.setModelLanguage(xt.getModel(),Wt)}},[z,pn]),(0,re.useEffect)(()=>{ke.current.instance&&pn&&ct.editor.setTheme(we)},[we,pn]),(0,re.useEffect)(()=>{let xt=ke.current.instance;Ue.current=ue,xt&&pn&&(xt.updateOptions(Et({},ue)),setTimeout(()=>{xt.getModel().updateOptions(Et({},ue))},200))},[JSON.stringify(ue),pn]),(0,re.useEffect)(()=>{let xt=ke.current.instance;xt&&pn&&xt.layout()},[nt,ae,pn]);const[Bn,_n]=(0,re.useState)(st(nt)),[Vn,Qn]=(0,re.useState)(st(ae)),jn=jt(Et({},ie),{width:Bn,height:Vn,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:bn,style:jn,onFocus:()=>{dt&&rn()}},Pt&&re.createElement(ze.CopyToClipboard,{text:ee,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(Fe.Z,{title:"\u590D\u5236\u4EE3\u7801"},re.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},re.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Rt({width:_e="100%",height:Lt="100%",original:nt,modified:ae,language:ee,options:z={}}){const ie=(0,re.useRef)(),[ue,ne]=(0,re.useState)(null);function we(Je){let dt;return ie.current&&(dt=new et.Z(Dt=>{for(let kt of Dt)(kt.target.offsetHeight>0||kt.target.offsetWidth>0)&&Je.layout()}),dt.observe(ie.current)),dt}(0,re.useEffect)(()=>(ie.current&&Promise.all([le.e(8909),le.e(9404)]).then(le.bind(le,2550)).then(Je=>{ct=Je;const dt=ct.editor.createDiffEditor(ie.current,jt(Et({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},z),{wordWrap:!0}));ne(dt);let Dt=we(dt);return()=>{dt.dispose();const kt=dt.getModel();kt&&kt.dispose(),Dt.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{ue&&ue.setModel({original:ct.editor.createModel(nt,ee),modified:ct.editor.createModel(ae,ee)})},[nt,ae,ee,ue]);const Ve=st(_e),Pt=st(Lt),je={width:Ve,height:Pt};return re.createElement("div",{className:"my-diff-editor",ref:ie,style:je})}},79006:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return et}});var re=le(59301);function et(me,We){const be=(0,re.useRef)();(0,re.useEffect)(()=>{be.current=me}),(0,re.useEffect)(()=>{function Ce(){be.current()}if(We!==null){let Oe=setInterval(Ce,We);return()=>clearInterval(Oe)}},[We])}},1253:function(Gt,It,le){"use strict";le.r(It);var re=le(59301),et=le(44283),me=le(49317),We=le(28284),be=le(6767),Ce=le(77019),Oe=le(5269),Ke=le(37568),Se=le(82326),fe=le(7939),Ge=le(15267),xe=le(39116),ft=Object.defineProperty,$e=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,yt=(ht,Ze,ze)=>Ze in ht?ft(ht,Ze,{enumerable:!0,configurable:!0,writable:!0,value:ze}):ht[Ze]=ze,St=(ht,Ze)=>{for(var ze in Ze||(Ze={}))Le.call(Ze,ze)&&yt(ht,ze,Ze[ze]);if(He)for(var ze of He(Ze))rt.call(Ze,ze)&&yt(ht,ze,Ze[ze]);return ht},at=(ht,Ze)=>$e(ht,Ae(Ze)),Ye=(ht,Ze)=>{var ze={};for(var gt in ht)Le.call(ht,gt)&&Ze.indexOf(gt)<0&&(ze[gt]=ht[gt]);if(ht!=null&&He)for(var gt of He(ht))Ze.indexOf(gt)<0&&rt.call(ht,gt)&&(ze[gt]=ht[gt]);return ze},lt=(ht,Ze,ze)=>new Promise((gt,Be)=>{var qe=Ct=>{try{pe(ze.next(Ct))}catch(Me){Be(Me)}},Xe=Ct=>{try{pe(ze.throw(Ct))}catch(Me){Be(Me)}},pe=Ct=>Ct.done?gt(Ct.value):Promise.resolve(Ct.value).then(qe,Xe);pe((ze=ze.apply(ht,Ze)).next())});const Fe=ht=>{var Ze=ht,{user:ze,globalSetting:gt,loading:Be,dispatch:qe,restful:Xe}=Ze,pe=Ye(Ze,["user","globalSetting","loading","dispatch","restful"]),Ct,Me,Et;const[jt,ye]=(0,re.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),[de,st]=(0,re.useState)(!0),{params:Bt}=pe.match,[bt]=We.default.useForm(),[Te,tt]=(0,re.useState)(` ##### \u7B80\u8981\u63CF\u8FF0 - \u7528\u6237\u6CE8\u518C\u63A5\u53E3 ##### \u8BF7\u6C42URL - \` http://xx.com/api/user/register \` ##### \u8BF7\u6C42\u65B9\u5F0F - POST ##### \u53C2\u6570 |\u53C2\u6570\u540D|\u5FC5\u9009|\u7C7B\u578B|\u8BF4\u660E| |:---- |:---|:----- |----- | |username |\u662F |string |\u7528\u6237\u540D | |password |\u662F |string | \u5BC6\u7801 | |name |\u5426 |string | \u6635\u79F0 | ##### \u8FD4\u56DE\u793A\u4F8B \`\`\` { "error_code": 0, "data": { "uid": "1", "username": "12154545", "name": "\u5434\u7CFB\u6302", "groupid": 2 , "reg_time": "1436864169", "last_login_time": "0", } } \`\`\` ##### \u8FD4\u56DE\u53C2\u6570\u8BF4\u660E |\u53C2\u6570\u540D|\u7C7B\u578B|\u8BF4\u660E| |:----- |:-----|----- | |groupid |int |\u7528\u6237\u7EC4id\uFF0C1\uFF1A\u8D85\u7EA7\u7BA1\u7406\u5458\uFF1B2\uFF1A\u666E\u901A\u7528\u6237 | ##### \u5907\u6CE8 - \u66F4\u591A\u8FD4\u56DE\u9519\u8BEF\u4EE3\u7801\u8BF7\u770B\u9996\u9875\u7684\u9519\u8BEF\u4EE3\u7801\u63CF\u8FF0 \u6B22\u8FCE\u4F7F\u7528\uFF01`);(0,re.useEffect)(()=>{bt.resetFields()},[Bt.id]);const ct=wt=>lt(void 0,null,function*(){const Rt=yield bt.getFieldsValue();let _e="/api/restfuls.json";Bt.id!=0&&(_e=`/api/restfuls/${Bt.id}.json`);const Lt=yield(0,me.ZP)(_e,{method:Bt.id!=0?"put":"post",body:at(St({file_type:0},Rt),{parent_id:Rt.parent_id||""})});Lt.status===0&&(be.ZP.success("\u6DFB\u52A0\u6210\u529F"),pe.history.push(`/ch/rest/${Lt.data.id}`))}),rn=()=>lt(void 0,null,function*(){if(yield qe({type:"restful/getRestful"}),Bt.id!=0){const wt=yield qe({type:"restful/getRestfulDetail",payload:St({},Bt)});bt.setFieldsValue({description:wt==null?void 0:wt.description,name:wt==null?void 0:wt.name}),(0,Ge.ag)()||pe.history.replace("/403")}});return(0,re.useEffect)(()=>{var wt,Rt,_e;(wt=Xe.restful)!=null&&wt.data&&bt.setFieldsValue({parent_id:Bt.categoryId*1}),(Rt=Xe.restfulDetail)!=null&&Rt.description&&Bt.id!=0&&tt((_e=Xe.restfulDetail)==null?void 0:_e.description)},[Xe.restful,(Ct=Xe.restfulDetail)==null?void 0:Ct.description]),(0,re.useEffect)(()=>{st(!0),rn()},[Bt.id]),re.createElement("section",null,re.createElement("aside",{className:"edu-container mt30"},re.createElement(We.default,{onFinish:ct,form:bt,initialValues:{name:""}},re.createElement(Ce.Z,{className:"mt30"},re.createElement(Oe.Z,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),re.createElement(Oe.Z,{flex:"1"},re.createElement(We.default.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},re.createElement(Ke.default,{placeholder:`\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26 `,maxLength:60})))),re.createElement(Ce.Z,{className:""},re.createElement(Oe.Z,{flex:"80px",className:"font14"},"\u6240\u5C5E\u76EE\u5F55:"),re.createElement(Oe.Z,{flex:"1"},re.createElement(We.default.Item,{name:"parent_id",rules:[{required:!0,message:"\u6240\u5C5E\u76EE\u5F55"}]},re.createElement(Se.default,{showSearch:!0,style:{width:200},placeholder:"\u8BF7\u9009\u62E9\u76EE\u5F55",optionFilterProp:"children",filterOption:(wt,Rt)=>Rt.children.toLowerCase().indexOf(wt.toLowerCase())>=0},re.createElement(Se.default.Option,{value:0,key:9999},"\u6839\u76EE\u5F55"),(Et=(Me=Xe==null?void 0:Xe.restful)==null?void 0:Me.data)==null?void 0:Et.map((wt,Rt)=>re.createElement(Se.default.Option,{value:wt.id,key:Rt},wt.title)))))),re.createElement(We.default.Item,{name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},re.createElement(xe.Z,{defaultValue:Te,watch:!0,height:600})),re.createElement(Ce.Z,{align:"middle",justify:"center"},re.createElement(Oe.Z,null,re.createElement(fe.ZP,{style:{width:130},size:"middle",type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))),re.createElement("div",{className:"mt40"}))))};It.default=(0,et.connect)(({user:ht,loading:Ze,globalSetting:ze,restful:gt})=>({user:ht,globalSetting:ze,restful:gt,loading:Ze.models.index}))(Fe)},20047:function(Gt,It,le){"use strict";le.d(It,{AL:function(){return at},Iy:function(){return Ge},Qv:function(){return $e},ez:function(){return St},jb:function(){return xe}});var re=le(32834),et=le.n(re),me=le(11690),We=le.n(me);let be=1;function Ce(Ze,ze){const gt=Ze.match(/^(\s+)(?:```)/);if(gt===null)return ze;const Be=gt[1];return ze.split(` `).map(qe=>{const Xe=qe.match(/^\s+/);if(Xe===null)return qe;const[pe]=Xe;return pe.length>=Be.length?qe.slice(Be.length):qe}).join(` `)}let Oe=[],Ke=["
    "];const Se=new(et()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ge(){Oe.length=0,Ke=["
      "]}const xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ft(Ze,ze,gt,Be){if(ze>=Ze.length||Ze[ze].level<=gt)return ze;var qe=Ze[ze];Be.push("
    • "+qe.text+""),ze++;var Xe=[];return ze=ft(Ze,ze,qe.level,Xe),Xe.length>0&&(Be.push("
        "),Xe.forEach(function(pe){Be.push(pe)}),Be.push("
      ")),Be.push("
    • "),ze=ft(Ze,ze,gt,Be),ze}function $e(){return ft(Oe,0,0,Ke),Ke.push("
    "),Ke.join("")}const Ae={heading(Ze){const ze=fe.exec(Ze);if(be+=1,ze)return{type:"heading",raw:ze[0],depth:ze[1].length,text:ze[2]}},fences(Ze){const ze=this.rules.block.fences.exec(Ze);if(ze){const gt=ze[0];let Be=Ce(gt,ze[3]||"");const qe=ze[2]?ze[2].trim():ze[2];if(["latex","katex","math"].indexOf(qe)>=0){const Xe=rt(),pe=Be;Be=Xe,yt[Xe]={type:"block",expression:pe}}return{type:"code",raw:gt,lang:qe,text:Be}}}},He=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Le=0;const rt=()=>`__special_katext_id_${Le++}__`;let yt={};function St(){return yt}function at(){Le=0,yt={}}function Ye(Ze){return Ze=Ze.replace(He,(ze,gt)=>{const Be=rt();return yt[Be]={type:"inline",expression:gt},Be}),Ze}const lt=Se.listitem;Se.listitem=function(Ze){return lt(Ye(Ze))};const Fe=Se.paragraph;Se.paragraph=function(Ze){return Fe(Ye(Ze))};const ht=Se.tablecell;Se.tablecell=function(Ze,ze){return ht(Ye(Ze),ze)},Se.code=function(Ze,ze,gt){const Be=(ze||"").match(/\S*/)[0];return Be?["latex","katex","math"].indexOf(Be)>=0?`

    ${Ze}

    `:`
    ${gt?Ze:(0,me.escape)(Ze,!0)}
    `:'
    '+(gt?Ze:(0,me.escape)(Ze,!0))+"
    "},Se.heading=function(Ze,ze,gt){let Be=this.options.headerPrefix+gt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Oe.push({anchor:Be,level:ze,text:Ze}),"'+Ze+""},et().setOptions({silent:!0,gfm:!0,pedantic:!1}),et().use({tokenizer:Ae,renderer:Se}),It.ZP=et()},86013:function(Gt,It,le){"use strict";var re=le(59301),et=le(19248);const me=We=>{let be;return typeof We=="object"&&(We!=null&&We.clearIcon)?be=We:We&&(be={clearIcon:re.createElement(et.Z,null)}),be};It.Z=me},38406:function(Gt,It,le){"use strict";var re=le(59301),et=le(48755),me=le(584);const We=be=>{const{componentName:Ce}=be,{getPrefixCls:Oe}=(0,re.useContext)(et.E_),Ke=Oe("empty");switch(Ce){case"Table":case"List":return re.createElement(me.Z,{image:me.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return re.createElement(me.Z,{image:me.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ke}-small`});case"Table.filter":return null;default:return re.createElement(me.Z,null)}};It.Z=We},36207:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Pt}});var re=le(59301),et=le(92310),me=le.n(et),We=le(85899),be=le(72190),Ce=le(43403),Oe=le(34280),Ke=re.createContext(null),Se=re.createContext({}),fe=Ke,Ge=le(18642),xe=le(60499),ft=le(77900),$e=le(10228),Ae=le(26112),He=le(42244),Le=le(8654),rt=["prefixCls","className","containerRef"],yt=function(Je){var dt=Je.prefixCls,Dt=Je.className,kt=Je.containerRef,Vt=(0,He.Z)(Je,rt),$t=re.useContext(Se),Tt=$t.panel,sn=(0,Le.x1)(Tt,kt);return re.createElement("div",(0,xe.Z)({className:me()("".concat(dt,"-content"),Dt),role:"dialog",ref:sn},(0,Ae.Z)(Je,{aria:!0}),{"aria-modal":"true"},Vt))},St=yt,at=le(48736);function Ye(je){return typeof je=="string"&&String(Number(je))===je?((0,at.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(je)):je}function lt(je){warning(!("wrapperClassName"in je),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!je.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Fe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ht(je,Je){var dt,Dt,kt,Vt=je.prefixCls,$t=je.open,Tt=je.placement,sn=je.inline,Jt=je.push,on=je.forceRender,pt=je.autoFocus,dn=je.keyboard,Ft=je.classNames,Yt=je.rootClassName,an=je.rootStyle,Ln=je.zIndex,bn=je.className,ke=je.id,Ue=je.style,mt=je.motion,Ht=je.width,nn=je.height,fn=je.children,$n=je.mask,An=je.maskClosable,pn=je.maskMotion,wn=je.maskClassName,vn=je.maskStyle,Kn=je.afterOpenChange,gn=je.onClose,Dn=je.onMouseEnter,tn=je.onMouseOver,yn=je.onMouseLeave,un=je.onClick,Tn=je.onKeyDown,Yn=je.onKeyUp,zn=je.styles,Bn=je.drawerRender,_n=re.useRef(),Vn=re.useRef(),Qn=re.useRef();re.useImperativeHandle(Je,function(){return _n.current});var jn=function(ut){var it=ut.keyCode,Zt=ut.shiftKey;switch(it){case $e.Z.TAB:{if(it===$e.Z.TAB){if(!Zt&&document.activeElement===Qn.current){var hn;(hn=Vn.current)===null||hn===void 0||hn.focus({preventScroll:!0})}else if(Zt&&document.activeElement===Vn.current){var ln;(ln=Qn.current)===null||ln===void 0||ln.focus({preventScroll:!0})}}break}case $e.Z.ESC:{gn&&dn&&(ut.stopPropagation(),gn(ut));break}}};re.useEffect(function(){if($t&&pt){var Mt;(Mt=_n.current)===null||Mt===void 0||Mt.focus({preventScroll:!0})}},[$t]);var xt=re.useState(!1),Wt=(0,be.Z)(xt,2),In=Wt[0],Un=Wt[1],Ee=re.useContext(fe),Re;typeof Jt=="boolean"?Re=Jt?{}:{distance:0}:Re=Jt||{};var ve=(dt=(Dt=(kt=Re)===null||kt===void 0?void 0:kt.distance)!==null&&Dt!==void 0?Dt:Ee==null?void 0:Ee.pushDistance)!==null&&dt!==void 0?dt:180,De=re.useMemo(function(){return{pushDistance:ve,push:function(){Un(!0)},pull:function(){Un(!1)}}},[ve]);re.useEffect(function(){if($t){var Mt;Ee==null||(Mt=Ee.push)===null||Mt===void 0||Mt.call(Ee)}else{var ut;Ee==null||(ut=Ee.pull)===null||ut===void 0||ut.call(Ee)}},[$t]),re.useEffect(function(){return function(){var Mt;Ee==null||(Mt=Ee.pull)===null||Mt===void 0||Mt.call(Ee)}},[]);var ge=$n&&re.createElement(ft.default,(0,xe.Z)({key:"mask"},pn,{visible:$t}),function(Mt,ut){var it=Mt.className,Zt=Mt.style;return re.createElement("div",{className:me()("".concat(Vt,"-mask"),it,Ft==null?void 0:Ft.mask,wn),style:(0,We.Z)((0,We.Z)((0,We.Z)({},Zt),vn),zn==null?void 0:zn.mask),onClick:An&&$t?gn:void 0,ref:ut})}),Pe=typeof mt=="function"?mt(Tt):mt,Qe={};if(In&&ve)switch(Tt){case"top":Qe.transform="translateY(".concat(ve,"px)");break;case"bottom":Qe.transform="translateY(".concat(-ve,"px)");break;case"left":Qe.transform="translateX(".concat(ve,"px)");break;default:Qe.transform="translateX(".concat(-ve,"px)");break}Tt==="left"||Tt==="right"?Qe.width=Ye(Ht):Qe.height=Ye(nn);var At={onMouseEnter:Dn,onMouseOver:tn,onMouseLeave:yn,onClick:un,onKeyDown:Tn,onKeyUp:Yn},Nt=re.createElement(ft.default,(0,xe.Z)({key:"panel"},Pe,{visible:$t,forceRender:on,onVisibleChanged:function(ut){Kn==null||Kn(ut)},removeOnLeave:!1,leavedClassName:"".concat(Vt,"-content-wrapper-hidden")}),function(Mt,ut){var it=Mt.className,Zt=Mt.style,hn=re.createElement(St,(0,xe.Z)({id:ke,containerRef:ut,prefixCls:Vt,className:me()(bn,Ft==null?void 0:Ft.content),style:(0,We.Z)((0,We.Z)({},Ue),zn==null?void 0:zn.content)},(0,Ae.Z)(je,{aria:!0}),At),fn);return re.createElement("div",(0,xe.Z)({className:me()("".concat(Vt,"-content-wrapper"),Ft==null?void 0:Ft.wrapper,it),style:(0,We.Z)((0,We.Z)((0,We.Z)({},Qe),Zt),zn==null?void 0:zn.wrapper)},(0,Ae.Z)(je,{data:!0})),Bn?Bn(hn):hn)}),Qt=(0,We.Z)({},an);return Ln&&(Qt.zIndex=Ln),re.createElement(fe.Provider,{value:De},re.createElement("div",{className:me()(Vt,"".concat(Vt,"-").concat(Tt),Yt,(0,Ge.Z)((0,Ge.Z)({},"".concat(Vt,"-open"),$t),"".concat(Vt,"-inline"),sn)),style:Qt,tabIndex:-1,ref:_n,onKeyDown:jn},ge,re.createElement("div",{tabIndex:0,ref:Vn,style:Fe,"aria-hidden":"true","data-sentinel":"start"}),Nt,re.createElement("div",{tabIndex:0,ref:Qn,style:Fe,"aria-hidden":"true","data-sentinel":"end"})))}var Ze=re.forwardRef(ht),ze=Ze,gt=function(Je){var dt=Je.open,Dt=dt===void 0?!1:dt,kt=Je.prefixCls,Vt=kt===void 0?"rc-drawer":kt,$t=Je.placement,Tt=$t===void 0?"right":$t,sn=Je.autoFocus,Jt=sn===void 0?!0:sn,on=Je.keyboard,pt=on===void 0?!0:on,dn=Je.width,Ft=dn===void 0?378:dn,Yt=Je.mask,an=Yt===void 0?!0:Yt,Ln=Je.maskClosable,bn=Ln===void 0?!0:Ln,ke=Je.getContainer,Ue=Je.forceRender,mt=Je.afterOpenChange,Ht=Je.destroyOnClose,nn=Je.onMouseEnter,fn=Je.onMouseOver,$n=Je.onMouseLeave,An=Je.onClick,pn=Je.onKeyDown,wn=Je.onKeyUp,vn=Je.panelRef,Kn=re.useState(!1),gn=(0,be.Z)(Kn,2),Dn=gn[0],tn=gn[1],yn=re.useState(!1),un=(0,be.Z)(yn,2),Tn=un[0],Yn=un[1];(0,Oe.Z)(function(){Yn(!0)},[]);var zn=Tn?Dt:!1,Bn=re.useRef(),_n=re.useRef();(0,Oe.Z)(function(){zn&&(_n.current=document.activeElement)},[zn]);var Vn=function(In){var Un;if(tn(In),mt==null||mt(In),!In&&_n.current&&!((Un=Bn.current)!==null&&Un!==void 0&&Un.contains(_n.current))){var Ee;(Ee=_n.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},Qn=re.useMemo(function(){return{panel:vn}},[vn]);if(!Ue&&!Dn&&!zn&&Ht)return null;var jn={onMouseEnter:nn,onMouseOver:fn,onMouseLeave:$n,onClick:An,onKeyDown:pn,onKeyUp:wn},xt=(0,We.Z)((0,We.Z)({},Je),{},{open:zn,prefixCls:Vt,placement:Tt,autoFocus:Jt,keyboard:pt,width:Ft,mask:an,maskClosable:bn,inline:ke===!1,afterOpenChange:Vn,ref:Bn},jn);return re.createElement(Se.Provider,{value:Qn},re.createElement(Ce.Z,{open:zn||Ue||Dn,autoDestroy:!1,getContainer:ke,autoLock:an&&(zn||Dn)},re.createElement(ze,xt)))},Be=gt,qe=Be,Xe=le(62487),pe=le(75030),Ct=le(86641),Me=le(55743),Et=le(48755),jt=le(91190),ye=le(78776),de=le(458),Bt=je=>{var Je,dt;const{prefixCls:Dt,title:kt,footer:Vt,extra:$t,loading:Tt,onClose:sn,headerStyle:Jt,bodyStyle:on,footerStyle:pt,children:dn,classNames:Ft,styles:Yt}=je,an=(0,Et.dj)("drawer"),Ln=re.useCallback(Ht=>re.createElement("button",{type:"button",onClick:sn,"aria-label":"Close",className:`${Dt}-close`},Ht),[sn]),[bn,ke]=(0,ye.Z)((0,ye.w)(je),(0,ye.w)(an),{closable:!0,closeIconRender:Ln}),Ue=re.useMemo(()=>{var Ht,nn;return!kt&&!bn?null:re.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Ht=an.styles)===null||Ht===void 0?void 0:Ht.header),Jt),Yt==null?void 0:Yt.header),className:me()(`${Dt}-header`,{[`${Dt}-header-close-only`]:bn&&!kt&&!$t},(nn=an.classNames)===null||nn===void 0?void 0:nn.header,Ft==null?void 0:Ft.header)},re.createElement("div",{className:`${Dt}-header-title`},ke,kt&&re.createElement("div",{className:`${Dt}-title`},kt)),$t&&re.createElement("div",{className:`${Dt}-extra`},$t))},[bn,ke,$t,Jt,Dt,kt]),mt=re.useMemo(()=>{var Ht,nn;if(!Vt)return null;const fn=`${Dt}-footer`;return re.createElement("div",{className:me()(fn,(Ht=an.classNames)===null||Ht===void 0?void 0:Ht.footer,Ft==null?void 0:Ft.footer),style:Object.assign(Object.assign(Object.assign({},(nn=an.styles)===null||nn===void 0?void 0:nn.footer),pt),Yt==null?void 0:Yt.footer)},Vt)},[Vt,pt,Dt]);return re.createElement(re.Fragment,null,Ue,re.createElement("div",{className:me()(`${Dt}-body`,Ft==null?void 0:Ft.body,(Je=an.classNames)===null||Je===void 0?void 0:Je.body),style:Object.assign(Object.assign(Object.assign({},(dt=an.styles)===null||dt===void 0?void 0:dt.body),on),Yt==null?void 0:Yt.body)},Tt?re.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Dt}-body-skeleton`}):dn),mt)},bt=le(36237),Te=le(63356),tt=le(16931),ct=le(51636);const rn=je=>{const Je="100%";return{left:`translateX(-${Je})`,right:`translateX(${Je})`,top:`translateY(-${Je})`,bottom:`translateY(${Je})`}[je]},wt=(je,Je)=>({"&-enter, &-appear":Object.assign(Object.assign({},je),{"&-active":Je}),"&-leave":Object.assign(Object.assign({},Je),{"&-active":je})}),Rt=(je,Je)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Je}`}}},wt({opacity:je},{opacity:1})),_e=(je,Je)=>[Rt(.7,Je),wt({transform:rn(je)},{transform:"none"})];var nt=je=>{const{componentCls:Je,motionDurationSlow:dt}=je;return{[Je]:{[`${Je}-mask-motion`]:Rt(0,dt),[`${Je}-panel-motion`]:["left","right","top","bottom"].reduce((Dt,kt)=>Object.assign(Object.assign({},Dt),{[`&-${kt}`]:_e(kt,dt)}),{})}}};const ae=je=>{const{borderRadiusSM:Je,componentCls:dt,zIndexPopup:Dt,colorBgMask:kt,colorBgElevated:Vt,motionDurationSlow:$t,motionDurationMid:Tt,paddingXS:sn,padding:Jt,paddingLG:on,fontSizeLG:pt,lineHeightLG:dn,lineWidth:Ft,lineType:Yt,colorSplit:an,marginXS:Ln,colorIcon:bn,colorIconHover:ke,colorBgTextHover:Ue,colorBgTextActive:mt,colorText:Ht,fontWeightStrong:nn,footerPaddingBlock:fn,footerPaddingInline:$n,calc:An}=je,pn=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Dt,pointerEvents:"none",color:Ht,"&-pure":{position:"relative",background:Vt,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:je.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:je.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:je.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:je.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Dt,background:kt,pointerEvents:"auto"},[pn]:{position:"absolute",zIndex:Dt,maxWidth:"100vw",transition:`all ${$t}`,"&-hidden":{display:"none"}},[`&-left > ${pn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:je.boxShadowDrawerLeft},[`&-right > ${pn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:je.boxShadowDrawerRight},[`&-top > ${pn}`]:{top:0,insetInline:0,boxShadow:je.boxShadowDrawerUp},[`&-bottom > ${pn}`]:{bottom:0,insetInline:0,boxShadow:je.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Vt,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,bt.unit)(Jt)} ${(0,bt.unit)(on)}`,fontSize:pt,lineHeight:dn,borderBottom:`${(0,bt.unit)(Ft)} ${Yt} ${an}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:An(pt).add(sn).equal(),height:An(pt).add(sn).equal(),borderRadius:Je,justifyContent:"center",alignItems:"center",marginInlineEnd:Ln,color:bn,fontWeight:nn,fontSize:pt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Tt}`,textRendering:"auto","&:hover":{color:ke,backgroundColor:Ue,textDecoration:"none"},"&:active":{backgroundColor:mt}},(0,Te.Qy)(je)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:je.fontWeightStrong,fontSize:pt,lineHeight:dn},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:on,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,bt.unit)(fn)} ${(0,bt.unit)($n)}`,borderTop:`${(0,bt.unit)(Ft)} ${Yt} ${an}`},"&-rtl":{direction:"rtl"}}}},ee=je=>({zIndexPopup:je.zIndexPopupBase,footerPaddingBlock:je.paddingXS,footerPaddingInline:je.padding});var z=(0,tt.I$)("Drawer",je=>{const Je=(0,ct.mergeToken)(je,{});return[ae(Je),nt(Je)]},ee),ie=function(je,Je){var dt={};for(var Dt in je)Object.prototype.hasOwnProperty.call(je,Dt)&&Je.indexOf(Dt)<0&&(dt[Dt]=je[Dt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Dt=Object.getOwnPropertySymbols(je);kt{var Je;const{rootClassName:dt,width:Dt,height:kt,size:Vt="default",mask:$t=!0,push:Tt=ne,open:sn,afterOpenChange:Jt,onClose:on,prefixCls:pt,getContainer:dn,style:Ft,className:Yt,visible:an,afterVisibleChange:Ln,maskStyle:bn,drawerStyle:ke,contentWrapperStyle:Ue}=je,mt=ie(je,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Ht,getPrefixCls:nn,direction:fn,className:$n,style:An,classNames:pn,styles:wn}=(0,Et.dj)("drawer"),vn=nn("drawer",pt),[Kn,gn,Dn]=z(vn),tn=dn===void 0&&Ht?()=>Ht(document.body):dn,yn=me()({"no-mask":!$t,[`${vn}-rtl`]:fn==="rtl"},dt,gn,Dn),un=re.useMemo(()=>Dt!=null?Dt:Vt==="large"?736:378,[Dt,Vt]),Tn=re.useMemo(()=>kt!=null?kt:Vt==="large"?736:378,[kt,Vt]),Yn={motionName:(0,Ct.m)(vn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},zn=xt=>({motionName:(0,Ct.m)(vn,`panel-motion-${xt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Bn=(0,jt.H)(),[_n,Vn]=(0,pe.Cn)("Drawer",mt.zIndex),{classNames:Qn={},styles:jn={}}=mt;return Kn(re.createElement(Xe.Z,{form:!0,space:!0},re.createElement(Me.Z.Provider,{value:Vn},re.createElement(qe,Object.assign({prefixCls:vn,onClose:on,maskMotion:Yn,motion:zn},mt,{classNames:{mask:me()(Qn.mask,pn.mask),content:me()(Qn.content,pn.content),wrapper:me()(Qn.wrapper,pn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},jn.mask),bn),wn.mask),content:Object.assign(Object.assign(Object.assign({},jn.content),ke),wn.content),wrapper:Object.assign(Object.assign(Object.assign({},jn.wrapper),Ue),wn.wrapper)},open:sn!=null?sn:an,mask:$t,push:Tt,width:un,height:Tn,style:Object.assign(Object.assign({},An),Ft),className:me()($n,Yt),rootClassName:yn,getContainer:tn,afterOpenChange:Jt!=null?Jt:Ln,panelRef:Bn,zIndex:_n}),re.createElement(Bt,Object.assign({prefixCls:vn},mt,{onClose:on}))))))},Ve=je=>{const{prefixCls:Je,style:dt,className:Dt,placement:kt="right"}=je,Vt=ie(je,["prefixCls","style","className","placement"]),{getPrefixCls:$t}=re.useContext(Et.E_),Tt=$t("drawer",Je),[sn,Jt,on]=z(Tt),pt=me()(Tt,`${Tt}-pure`,`${Tt}-${kt}`,Jt,on,Dt);return sn(re.createElement("div",{className:pt,style:dt},re.createElement(Bt,Object.assign({prefixCls:Tt},Vt))))};we._InternalPanelDoNotUseOrYouWillBeFired=Ve;var Pt=we},584:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return St}});var re=le(59301),et=le(92310),me=le.n(et),We=le(9017),be=le(17835),Ce=le(57700),Ke=()=>{const[,at]=(0,Ce.ZP)(),[Ye]=(0,We.Z)("Empty"),Fe=new be.FastColor(at.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:Fe,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},re.createElement("title",null,(Ye==null?void 0:Ye.description)||"Empty"),re.createElement("g",{fill:"none",fillRule:"evenodd"},re.createElement("g",{transform:"translate(24 31.67)"},re.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),re.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"}),re.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)"}),re.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"}),re.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"})),re.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"}),re.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},re.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),re.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},fe=()=>{const[,at]=(0,Ce.ZP)(),[Ye]=(0,We.Z)("Empty"),{colorFill:lt,colorFillTertiary:Fe,colorFillQuaternary:ht,colorBgContainer:Ze}=at,{borderColor:ze,shadowColor:gt,contentColor:Be}=(0,re.useMemo)(()=>({borderColor:new be.FastColor(lt).onBackground(Ze).toHexString(),shadowColor:new be.FastColor(Fe).onBackground(Ze).toHexString(),contentColor:new be.FastColor(ht).onBackground(Ze).toHexString()}),[lt,Fe,ht,Ze]);return re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},re.createElement("title",null,(Ye==null?void 0:Ye.description)||"Empty"),re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},re.createElement("ellipse",{fill:gt,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:ze},re.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"}),re.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Be}))))},Ge=le(16931),xe=le(51636);const ft=at=>{const{componentCls:Ye,margin:lt,marginXS:Fe,marginXL:ht,fontSize:Ze,lineHeight:ze}=at;return{[Ye]:{marginInline:Fe,fontSize:Ze,lineHeight:ze,textAlign:"center",[`${Ye}-image`]:{height:at.emptyImgHeight,marginBottom:Fe,opacity:at.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ye}-description`]:{color:at.colorTextDescription},[`${Ye}-footer`]:{marginTop:lt},"&-normal":{marginBlock:ht,color:at.colorTextDescription,[`${Ye}-description`]:{color:at.colorTextDescription},[`${Ye}-image`]:{height:at.emptyImgHeightMD}},"&-small":{marginBlock:Fe,color:at.colorTextDescription,[`${Ye}-image`]:{height:at.emptyImgHeightSM}}}}};var $e=(0,Ge.I$)("Empty",at=>{const{componentCls:Ye,controlHeightLG:lt,calc:Fe}=at,ht=(0,xe.mergeToken)(at,{emptyImgCls:`${Ye}-img`,emptyImgHeight:Fe(lt).mul(2.5).equal(),emptyImgHeightMD:lt,emptyImgHeightSM:Fe(lt).mul(.875).equal()});return[ft(ht)]}),Ae=le(48755),He=function(at,Ye){var lt={};for(var Fe in at)Object.prototype.hasOwnProperty.call(at,Fe)&&Ye.indexOf(Fe)<0&&(lt[Fe]=at[Fe]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Fe=Object.getOwnPropertySymbols(at);ht{const{className:Ye,rootClassName:lt,prefixCls:Fe,image:ht=Le,description:Ze,children:ze,imageStyle:gt,style:Be,classNames:qe,styles:Xe}=at,pe=He(at,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ct,direction:Me,className:Et,style:jt,classNames:ye,styles:de}=(0,Ae.dj)("empty"),st=Ct("empty",Fe),[Bt,bt,Te]=$e(st),[tt]=(0,We.Z)("Empty"),ct=typeof Ze!="undefined"?Ze:tt==null?void 0:tt.description,rn=typeof ct=="string"?ct:"empty";let wt=null;return typeof ht=="string"?wt=re.createElement("img",{alt:rn,src:ht}):wt=ht,Bt(re.createElement("div",Object.assign({className:me()(bt,Te,st,Et,{[`${st}-normal`]:ht===rt,[`${st}-rtl`]:Me==="rtl"},Ye,lt,ye.root,qe==null?void 0:qe.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),jt),Xe==null?void 0:Xe.root),Be)},pe),re.createElement("div",{className:me()(`${st}-image`,ye.image,qe==null?void 0:qe.image),style:Object.assign(Object.assign(Object.assign({},gt),de.image),Xe==null?void 0:Xe.image)},wt),ct&&re.createElement("div",{className:me()(`${st}-description`,ye.description,qe==null?void 0:qe.description),style:Object.assign(Object.assign({},de.description),Xe==null?void 0:Xe.description)},ct),ze&&re.createElement("div",{className:me()(`${st}-footer`,ye.footer,qe==null?void 0:qe.footer),style:Object.assign(Object.assign({},de.footer),Xe==null?void 0:Xe.footer)},ze)))};yt.PRESENTED_IMAGE_DEFAULT=Le,yt.PRESENTED_IMAGE_SIMPLE=rt;var St=yt},28284:function(Gt,It,le){"use strict";le.d(It,{default:function(){return Re}});var re=le(56553),et=le(77654),me=le(59301),We=le(92310),be=le.n(We),Ce=le(77900),Oe=le(86641),Ke=le(83397);function Se(ve){const[De,ge]=me.useState(ve);return me.useEffect(()=>{const Pe=setTimeout(()=>{ge(ve)},ve.length?0:10);return()=>{clearTimeout(Pe)}},[ve]),De}var fe=le(36237),Ge=le(63356),xe=le(34925),ft=le(34961),$e=le(51636),Ae=le(16931),Le=ve=>{const{componentCls:De}=ve,ge=`${De}-show-help`,Pe=`${De}-show-help-item`;return{[ge]:{transition:`opacity ${ve.motionDurationFast} ${ve.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Pe]:{overflow:"hidden",transition:`height ${ve.motionDurationFast} ${ve.motionEaseInOut}, opacity ${ve.motionDurationFast} ${ve.motionEaseInOut}, transform ${ve.motionDurationFast} ${ve.motionEaseInOut} !important`,[`&${Pe}-appear, &${Pe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Pe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const rt=ve=>({legend:{display:"block",width:"100%",marginBottom:ve.marginLG,padding:0,color:ve.colorTextDescription,fontSize:ve.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,fe.unit)(ve.controlOutlineWidth)} ${ve.controlOutline}`},output:{display:"block",paddingTop:15,color:ve.colorText,fontSize:ve.fontSize,lineHeight:ve.lineHeight}}),yt=(ve,De)=>{const{formItemCls:ge}=ve;return{[ge]:{[`${ge}-label > label`]:{height:De},[`${ge}-control-input`]:{minHeight:De}}}},St=ve=>{const{componentCls:De}=ve;return{[ve.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(ve)),rt(ve)),{[`${De}-text`]:{display:"inline-block",paddingInlineEnd:ve.paddingSM},"&-small":Object.assign({},yt(ve,ve.controlHeightSM)),"&-large":Object.assign({},yt(ve,ve.controlHeightLG))})}},at=ve=>{const{formItemCls:De,iconCls:ge,rootPrefixCls:Pe,antCls:Qe,labelRequiredMarkColor:At,labelColor:Nt,labelFontSize:Qt,labelHeight:Mt,labelColonMarginInlineStart:ut,labelColonMarginInlineEnd:it,itemMarginBottom:Zt}=ve;return{[De]:Object.assign(Object.assign({},(0,Ge.Wf)(ve)),{marginBottom:Zt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${Qe}-row`]:{display:"none"},"&-has-warning":{[`${De}-split`]:{color:ve.colorError}},"&-has-error":{[`${De}-split`]:{color:ve.colorWarning}},[`${De}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ve.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Mt,color:Nt,fontSize:Qt,[`> ${ge}`]:{fontSize:ve.fontSize,verticalAlign:"top"},[`&${De}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ve.marginXXS,color:At,fontSize:ve.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${De}-required-mark-hidden, &${De}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${De}-optional`]:{display:"inline-block",marginInlineStart:ve.marginXXS,color:ve.colorTextDescription,[`&${De}-required-mark-hidden`]:{display:"none"}},[`${De}-tooltip`]:{color:ve.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ve.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ut,marginInlineEnd:it},[`&${De}-no-colon::after`]:{content:'"\\a0"'}}},[`${De}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Pe}-col-'"]):not([class*="' ${Pe}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ve.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[De]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ve.colorTextDescription,fontSize:ve.fontSize,lineHeight:ve.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ve.controlHeightSM,transition:`color ${ve.motionDurationMid} ${ve.motionEaseOut}`},"&-explain":{"&-error":{color:ve.colorError},"&-warning":{color:ve.colorWarning}}},[`&-with-help ${De}-explain`]:{height:"auto",opacity:1},[`${De}-feedback-icon`]:{fontSize:ve.fontSize,textAlign:"center",visibility:"visible",animationName:xe.kr,animationDuration:ve.motionDurationMid,animationTimingFunction:ve.motionEaseOutBack,pointerEvents:"none","&-success":{color:ve.colorSuccess},"&-error":{color:ve.colorError},"&-warning":{color:ve.colorWarning},"&-validating":{color:ve.colorPrimary}}})}},Ye=(ve,De)=>{const{formItemCls:ge}=ve;return{[`${De}-horizontal`]:{[`${ge}-label`]:{flexGrow:0},[`${ge}-control`]:{flex:"1 1 0",minWidth:0},[`${ge}-label[class$='-24'], ${ge}-label[class*='-24 ']`]:{[`& + ${ge}-control`]:{minWidth:"unset"}}}}},lt=ve=>{const{componentCls:De,formItemCls:ge,inlineItemMarginBottom:Pe}=ve;return{[`${De}-inline`]:{display:"flex",flexWrap:"wrap",[ge]:{flex:"none",marginInlineEnd:ve.margin,marginBottom:Pe,"&-row":{flexWrap:"nowrap"},[`> ${ge}-label, > ${ge}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ge}-label`]:{flex:"none"},[`${De}-text`]:{display:"inline-block"},[`${ge}-has-feedback`]:{display:"inline-block"}}}}},Fe=ve=>({padding:ve.verticalLabelPadding,margin:ve.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ht=ve=>{const{componentCls:De,formItemCls:ge,rootPrefixCls:Pe}=ve;return{[`${ge} ${ge}-label`]:Fe(ve),[`${De}:not(${De}-inline)`]:{[ge]:{flexWrap:"wrap",[`${ge}-label, ${ge}-control`]:{[`&:not([class*=" ${Pe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ze=ve=>{const{componentCls:De,formItemCls:ge,antCls:Pe}=ve;return{[`${De}-vertical`]:{[`${ge}:not(${ge}-horizontal)`]:{[`${ge}-row`]:{flexDirection:"column"},[`${ge}-label > label`]:{height:"auto"},[`${ge}-control`]:{width:"100%"},[`${ge}-label, ${Pe}-col-24${ge}-label, ${Pe}-col-xl-24${ge}-label`]:Fe(ve)}},[`@media (max-width: ${(0,fe.unit)(ve.screenXSMax)})`]:[ht(ve),{[De]:{[`${ge}:not(${ge}-horizontal)`]:{[`${Pe}-col-xs-24${ge}-label`]:Fe(ve)}}}],[`@media (max-width: ${(0,fe.unit)(ve.screenSMMax)})`]:{[De]:{[`${ge}:not(${ge}-horizontal)`]:{[`${Pe}-col-sm-24${ge}-label`]:Fe(ve)}}},[`@media (max-width: ${(0,fe.unit)(ve.screenMDMax)})`]:{[De]:{[`${ge}:not(${ge}-horizontal)`]:{[`${Pe}-col-md-24${ge}-label`]:Fe(ve)}}},[`@media (max-width: ${(0,fe.unit)(ve.screenLGMax)})`]:{[De]:{[`${ge}:not(${ge}-horizontal)`]:{[`${Pe}-col-lg-24${ge}-label`]:Fe(ve)}}}}},ze=ve=>{const{formItemCls:De,antCls:ge}=ve;return{[`${De}-vertical`]:{[`${De}-row`]:{flexDirection:"column"},[`${De}-label > label`]:{height:"auto"},[`${De}-control`]:{width:"100%"}},[`${De}-vertical ${De}-label, ${ge}-col-24${De}-label, ${ge}-col-xl-24${De}-label`]:Fe(ve),[`@media (max-width: ${(0,fe.unit)(ve.screenXSMax)})`]:[ht(ve),{[De]:{[`${ge}-col-xs-24${De}-label`]:Fe(ve)}}],[`@media (max-width: ${(0,fe.unit)(ve.screenSMMax)})`]:{[De]:{[`${ge}-col-sm-24${De}-label`]:Fe(ve)}},[`@media (max-width: ${(0,fe.unit)(ve.screenMDMax)})`]:{[De]:{[`${ge}-col-md-24${De}-label`]:Fe(ve)}},[`@media (max-width: ${(0,fe.unit)(ve.screenLGMax)})`]:{[De]:{[`${ge}-col-lg-24${De}-label`]:Fe(ve)}}}},gt=ve=>({labelRequiredMarkColor:ve.colorError,labelColor:ve.colorTextHeading,labelFontSize:ve.fontSize,labelHeight:ve.controlHeight,labelColonMarginInlineStart:ve.marginXXS/2,labelColonMarginInlineEnd:ve.marginXS,itemMarginBottom:ve.marginLG,verticalLabelPadding:`0 0 ${ve.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Be=(ve,De)=>(0,$e.mergeToken)(ve,{formItemCls:`${ve.componentCls}-item`,rootPrefixCls:De});var qe=(0,Ae.I$)("Form",(ve,De)=>{let{rootPrefixCls:ge}=De;const Pe=Be(ve,ge);return[St(Pe),at(Pe),Le(Pe),Ye(Pe,Pe.componentCls),Ye(Pe,Pe.formItemCls),lt(Pe),Ze(Pe),ze(Pe),(0,ft.Z)(Pe),xe.kr]},gt,{order:-1e3});const Xe=[];function pe(ve,De,ge){let Pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ve=="string"?ve:`${De}-${Pe}`,error:ve,errorStatus:ge}}var Me=ve=>{let{help:De,helpStatus:ge,errors:Pe=Xe,warnings:Qe=Xe,className:At,fieldId:Nt,onVisibleChanged:Qt}=ve;const{prefixCls:Mt}=me.useContext(re.Rk),ut=`${Mt}-item-explain`,it=(0,Ke.Z)(Mt),[Zt,hn,ln]=qe(Mt,it),cn=me.useMemo(()=>(0,Oe.Z)(Mt),[Mt]),Zn=Se(Pe),Xn=Se(Qe),Jn=me.useMemo(()=>De!=null?[pe(De,"help",ge)]:[].concat((0,et.Z)(Zn.map((Pn,Hn)=>pe(Pn,"error","error",Hn))),(0,et.Z)(Xn.map((Pn,Hn)=>pe(Pn,"warning","warning",Hn)))),[De,ge,Zn,Xn]),Nn=me.useMemo(()=>{const Pn={};return Jn.forEach(Hn=>{let{key:ur}=Hn;Pn[ur]=(Pn[ur]||0)+1}),Jn.map((Hn,ur)=>Object.assign(Object.assign({},Hn),{key:Pn[Hn.key]>1?`${Hn.key}-fallback-${ur}`:Hn.key}))},[Jn]),Sn={};return Nt&&(Sn.id=`${Nt}_help`),Zt(me.createElement(Ce.default,{motionDeadline:cn.motionDeadline,motionName:`${Mt}-show-help`,visible:!!Nn.length,onVisibleChanged:Qt},Pn=>{const{className:Hn,style:ur}=Pn;return me.createElement("div",Object.assign({},Sn,{className:be()(ut,Hn,ln,it,At,hn),style:ur}),me.createElement(Ce.CSSMotionList,Object.assign({keys:Nn},(0,Oe.Z)(Mt),{motionName:`${Mt}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:gr}=qn;return me.createElement("div",{key:lr,className:be()(tr,{[`${ut}-${er}`]:er}),style:gr},ir)}))}))},Et=le(69180),jt=le(48755),ye=le(2171),de=le(31756),st=le(23069),Bt=le(76846),bt=le(16722);const Te=["parentNode"],tt="form_item";function ct(ve){return ve===void 0||ve===!1?[]:Array.isArray(ve)?ve:[ve]}function rn(ve,De){if(!ve.length)return;const ge=ve.join("_");return De?`${De}_${ge}`:Te.includes(ge)?`${tt}_${ge}`:ge}function wt(ve,De,ge,Pe,Qe,At){let Nt=Pe;return At!==void 0?Nt=At:ge.validating?Nt="validating":ve.length?Nt="error":De.length?Nt="warning":(ge.touched||Qe&&ge.validated)&&(Nt="success"),Nt}var Rt=function(ve,De){var ge={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&De.indexOf(Pe)<0&&(ge[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Pe=Object.getOwnPropertySymbols(ve);Qeve!=null?ve:Object.assign(Object.assign({},De),{__INTERNAL__:{itemRef:Qe=>At=>{const Nt=_e(Qe);At?ge.current[Nt]=At:delete ge.current[Nt]}},scrollToField:function(Qe){let At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Nt}=At,Qt=Rt(At,["focus"]),Mt=Lt(Qe,Pe);Mt&&((0,bt.Z)(Mt,Object.assign({scrollMode:"if-needed",block:"nearest"},Qt)),Nt&&Pe.focusField(Qe))},focusField:Qe=>{var At,Nt;const Qt=Pe.getFieldInstance(Qe);typeof(Qt==null?void 0:Qt.focus)=="function"?Qt.focus():(Nt=(At=Lt(Qe,Pe))===null||At===void 0?void 0:At.focus)===null||Nt===void 0||Nt.call(At)},getFieldInstance:Qe=>{const At=_e(Qe);return ge.current[At]}}),[ve,De]);return[Pe]}var ae=le(98350),ee=function(ve,De){var ge={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&De.indexOf(Pe)<0&&(ge[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Pe=Object.getOwnPropertySymbols(ve);Qe{const ge=me.useContext(ye.Z),{getPrefixCls:Pe,direction:Qe,requiredMark:At,colon:Nt,scrollToFirstError:Qt,className:Mt,style:ut}=(0,jt.dj)("form"),{prefixCls:it,className:Zt,rootClassName:hn,size:ln,disabled:cn=ge,form:Zn,colon:Xn,labelAlign:Jn,labelWrap:Nn,labelCol:Sn,wrapperCol:Pn,hideRequiredMark:Hn,layout:ur="horizontal",scrollToFirstError:qn,requiredMark:lr,onFinishFailed:ir,name:er,style:tr,feedbackIcons:gr,variant:mr}=ve,cr=ee(ve,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),vr=(0,de.Z)(ln),Cr=me.useContext(ae.Z),or=me.useMemo(()=>lr!==void 0?lr:Hn?!1:At!==void 0?At:!0,[Hn,lr,At]),dr=Xn!=null?Xn:Nt,Fn=Pe("form",it),wr=(0,Ke.Z)(Fn),[Rr,jr,Er]=qe(Fn,wr),Br=be()(Fn,`${Fn}-${ur}`,{[`${Fn}-hide-required-mark`]:or===!1,[`${Fn}-rtl`]:Qe==="rtl",[`${Fn}-${vr}`]:vr},Er,wr,jr,Mt,Zt,hn),[kr]=nt(Zn),{__INTERNAL__:Lr}=kr;Lr.name=er;const zr=me.useMemo(()=>({name:er,labelAlign:Jn,labelCol:Sn,labelWrap:Nn,wrapperCol:Pn,vertical:ur==="vertical",colon:dr,requiredMark:or,itemRef:Lr.itemRef,form:kr,feedbackIcons:gr}),[er,Jn,Sn,Pn,ur,dr,or,kr,gr]),fr=me.useRef(null);me.useImperativeHandle(De,()=>{var qt;return Object.assign(Object.assign({},kr),{nativeElement:(qt=fr.current)===null||qt===void 0?void 0:qt.nativeElement})});const Gn=(qt,Xt)=>{if(qt){let Ot={block:"nearest"};typeof qt=="object"&&(Ot=Object.assign(Object.assign({},Ot),qt)),kr.scrollToField(Xt,Ot)}},_t=qt=>{if(ir==null||ir(qt),qt.errorFields.length){const Xt=qt.errorFields[0].name;if(qn!==void 0){Gn(qn,Xt);return}Qt!==void 0&&Gn(Qt,Xt)}};return Rr(me.createElement(re.pg.Provider,{value:mr},me.createElement(ye.n,{disabled:cn},me.createElement(st.Z.Provider,{value:vr},me.createElement(re.RV,{validateMessages:Cr},me.createElement(re.q3.Provider,{value:zr},me.createElement(Et.default,Object.assign({id:er},cr,{name:er,onFinishFailed:_t,form:kr,ref:fr,style:Object.assign(Object.assign({},ut),tr),className:Br}))))))))};var ue=me.forwardRef(z),ne=le(41799),we=le(8654),Ve=le(22703),Pt=le(32383),je=le(11592);function Je(ve){if(typeof ve=="function")return ve;const De=(0,je.Z)(ve);return De.length<=1?De[0]:De}const dt=()=>{const{status:ve,errors:De=[],warnings:ge=[]}=me.useContext(re.aM);return{status:ve,errors:De,warnings:ge}};dt.Context=re.aM;var Dt=dt,kt=le(16089);function Vt(ve){const[De,ge]=me.useState(ve),Pe=me.useRef(null),Qe=me.useRef([]),At=me.useRef(!1);me.useEffect(()=>(At.current=!1,()=>{At.current=!0,kt.Z.cancel(Pe.current),Pe.current=null}),[]);function Nt(Qt){At.current||(Pe.current===null&&(Qe.current=[],Pe.current=(0,kt.Z)(()=>{Pe.current=null,ge(Mt=>{let ut=Mt;return Qe.current.forEach(it=>{ut=it(ut)}),ut})})),Qe.current.push(Qt))}return[De,Nt]}function $t(){const{itemRef:ve}=me.useContext(re.q3),De=me.useRef({});function ge(Pe,Qe){const At=Qe&&typeof Qe=="object"&&(0,we.C4)(Qe),Nt=Pe.join("_");return(De.current.name!==Nt||De.current.originRef!==At)&&(De.current.name=Nt,De.current.originRef=At,De.current.ref=(0,we.sQ)(ve(Pe),At)),De.current.ref}return ge}var Tt=le(29194),sn=le(34280),Jt=le(2738),on=le(65970),pt=le(70425),dn=le(5472);const Ft=ve=>{const{formItemCls:De}=ve;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${De}-control`]:{display:"flex"}}}};var Yt=(0,Ae.bk)(["Form","item-item"],(ve,De)=>{let{rootPrefixCls:ge}=De;const Pe=Be(ve,ge);return[Ft(Pe)]}),an=function(ve,De){var ge={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&De.indexOf(Pe)<0&&(ge[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Pe=Object.getOwnPropertySymbols(ve);Qe{const{prefixCls:De,status:ge,labelCol:Pe,wrapperCol:Qe,children:At,errors:Nt,warnings:Qt,_internalItemRender:Mt,extra:ut,help:it,fieldId:Zt,marginBottom:hn,onErrorVisibleChanged:ln,label:cn}=ve,Zn=`${De}-item`,Xn=me.useContext(re.q3),Jn=me.useMemo(()=>{let cr=Object.assign({},Qe||Xn.wrapperCol||{});return cn===null&&!Pe&&!Qe&&Xn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,pt.U2)(Xn.labelCol,or),Fn=typeof dr=="object"?dr:{},wr=(0,pt.U2)(cr,or),Rr=typeof wr=="object"?wr:{};"span"in Fn&&!("offset"in Rr)&&Fn.span{const{labelCol:cr,wrapperCol:vr}=Xn;return an(Xn,["labelCol","wrapperCol"])},[Xn]),Pn=me.useRef(null),[Hn,ur]=me.useState(0);(0,sn.Z)(()=>{ut&&Pn.current?ur(Pn.current.clientHeight):ur(0)},[ut]);const qn=me.createElement("div",{className:`${Zn}-control-input`},me.createElement("div",{className:`${Zn}-control-input-content`},At)),lr=me.useMemo(()=>({prefixCls:De,status:ge}),[De,ge]),ir=hn!==null||Nt.length||Qt.length?me.createElement(re.Rk.Provider,{value:lr},me.createElement(Me,{fieldId:Zt,errors:Nt,warnings:Qt,help:it,helpStatus:ge,className:`${Zn}-explain-connected`,onVisibleChanged:ln})):null,er={};Zt&&(er.id=`${Zt}_extra`);const tr=ut?me.createElement("div",Object.assign({},er,{className:`${Zn}-extra`,ref:Pn}),ut):null,gr=ir||tr?me.createElement("div",{className:`${Zn}-additional`,style:hn?{minHeight:hn+Hn}:{}},ir,tr):null,mr=Mt&&Mt.mark==="pro_table_render"&&Mt.render?Mt.render(ve,{input:qn,errorList:ir,extra:tr}):me.createElement(me.Fragment,null,qn,gr);return me.createElement(re.q3.Provider,{value:Sn},me.createElement(dn.Z,Object.assign({},Jn,{className:Nn}),mr),me.createElement(Yt,{prefixCls:De}))},Ue=le(61485),mt=le(9017),Ht=le(85981),nn=le(25399),fn=function(ve,De){var ge={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&De.indexOf(Pe)<0&&(ge[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Pe=Object.getOwnPropertySymbols(ve);Qe{let{prefixCls:De,label:ge,htmlFor:Pe,labelCol:Qe,labelAlign:At,colon:Nt,required:Qt,requiredMark:Mt,tooltip:ut,vertical:it}=ve;var Zt;const[hn]=(0,mt.Z)("Form"),{labelAlign:ln,labelCol:cn,labelWrap:Zn,colon:Xn}=me.useContext(re.q3);if(!ge)return null;const Jn=Qe||cn||{},Nn=At||ln,Sn=`${De}-item-label`,Pn=be()(Sn,Nn==="left"&&`${Sn}-left`,Jn.className,{[`${Sn}-wrap`]:!!Zn});let Hn=ge;const ur=Nt===!0||Xn!==!1&&Nt!==!1;ur&&!it&&typeof ge=="string"&&ge.trim()&&(Hn=ge.replace(/[:|:]\s*$/,""));const lr=$n(ut);if(lr){const{icon:cr=me.createElement(Ue.Z,null)}=lr,vr=fn(lr,["icon"]),Cr=me.createElement(nn.Z,Object.assign({},vr),me.cloneElement(cr,{className:`${De}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Hn=me.createElement(me.Fragment,null,Hn,Cr)}const ir=Mt==="optional",er=typeof Mt=="function",tr=Mt===!1;er?Hn=Mt(Hn,{required:!!Qt}):ir&&!Qt&&(Hn=me.createElement(me.Fragment,null,Hn,me.createElement("span",{className:`${De}-item-optional`,title:""},(hn==null?void 0:hn.optional)||((Zt=Ht.Z.Form)===null||Zt===void 0?void 0:Zt.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=be()({[`${De}-item-required`]:Qt,[`${De}-item-required-mark-${gr}`]:gr,[`${De}-item-no-colon`]:!ur});return me.createElement(dn.Z,Object.assign({},Jn,{className:Pn}),me.createElement("label",{htmlFor:Pe,className:mr,title:typeof ge=="string"?ge:""},Hn))},wn=le(29679),vn=le(19248),Kn=le(96512),gn=le(58617);const Dn={success:wn.Z,warning:Kn.Z,error:vn.Z,validating:gn.Z};function tn(ve){let{children:De,errors:ge,warnings:Pe,hasFeedback:Qe,validateStatus:At,prefixCls:Nt,meta:Qt,noStyle:Mt}=ve;const ut=`${Nt}-item`,{feedbackIcons:it}=me.useContext(re.q3),Zt=wt(ge,Pe,Qt,null,!!Qe,At),{isFormItemInput:hn,status:ln,hasFeedback:cn,feedbackIcon:Zn}=me.useContext(re.aM),Xn=me.useMemo(()=>{var Jn;let Nn;if(Qe){const Pn=Qe!==!0&&Qe.icons||it,Hn=Zt&&((Jn=Pn==null?void 0:Pn({status:Zt,errors:ge,warnings:Pe}))===null||Jn===void 0?void 0:Jn[Zt]),ur=Zt&&Dn[Zt];Nn=Hn!==!1&&ur?me.createElement("span",{className:be()(`${ut}-feedback-icon`,`${ut}-feedback-icon-${Zt}`)},Hn||me.createElement(ur,null)):null}const Sn={status:Zt||"",errors:ge,warnings:Pe,hasFeedback:!!Qe,feedbackIcon:Nn,isFormItemInput:!0};return Mt&&(Sn.status=(Zt!=null?Zt:ln)||"",Sn.isFormItemInput=hn,Sn.hasFeedback=!!(Qe!=null?Qe:cn),Sn.feedbackIcon=Qe!==void 0?Sn.feedbackIcon:Zn),Sn},[Zt,Qe,Mt,hn,ln]);return me.createElement(re.aM.Provider,{value:Xn},De)}var yn=function(ve,De){var ge={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&De.indexOf(Pe)<0&&(ge[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Pe=Object.getOwnPropertySymbols(ve);Qe{if(tr&&qn.current){const Fn=getComputedStyle(qn.current);cr(parseInt(Fn.marginBottom,10))}},[tr,gr]);const vr=Fn=>{Fn||cr(null)},or=function(){let Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const wr=Fn?lr:ut.errors,Rr=Fn?ir:ut.warnings;return wt(wr,Rr,ut,"",!!it,Mt)}(),dr=be()(Sn,ge,Pe,{[`${Sn}-with-help`]:er||lr.length||ir.length,[`${Sn}-has-feedback`]:or&&it,[`${Sn}-has-success`]:or==="success",[`${Sn}-has-warning`]:or==="warning",[`${Sn}-has-error`]:or==="error",[`${Sn}-is-validating`]:or==="validating",[`${Sn}-hidden`]:Zt,[`${Sn}-${Jn}`]:Jn});return me.createElement("div",{className:dr,style:Qe,ref:qn},me.createElement(on.Z,Object.assign({className:`${Sn}-row`},(0,Jt.Z)(Nn,["_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"])),me.createElement(pn,Object.assign({htmlFor:ln},ve,{requiredMark:Pn,required:cn!=null?cn:Zn,prefixCls:De,vertical:ur})),me.createElement(ke,Object.assign({},ve,ut,{errors:lr,warnings:ir,prefixCls:De,status:or,help:At,marginBottom:mr,onErrorVisibleChanged:vr}),me.createElement(re.qI.Provider,{value:Xn},me.createElement(tn,{prefixCls:De,meta:ut,errors:ut.errors,warnings:ut.warnings,hasFeedback:it,validateStatus:or},hn)))),!!mr&&me.createElement("div",{className:`${Sn}-margin-offset`,style:{marginBottom:-mr}}))}const Tn="__SPLIT__",Yn=null;function zn(ve,De){const ge=Object.keys(ve),Pe=Object.keys(De);return ge.length===Pe.length&&ge.every(Qe=>{const At=ve[Qe],Nt=De[Qe];return At===Nt||typeof At=="function"||typeof Nt=="function"})}const Bn=me.memo(ve=>{let{children:De}=ve;return De},(ve,De)=>zn(ve.control,De.control)&&ve.update===De.update&&ve.childProps.length===De.childProps.length&&ve.childProps.every((ge,Pe)=>ge===De.childProps[Pe]));function _n(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Vn(ve){const{name:De,noStyle:ge,className:Pe,dependencies:Qe,prefixCls:At,shouldUpdate:Nt,rules:Qt,children:Mt,required:ut,label:it,messageVariables:Zt,trigger:hn="onChange",validateTrigger:ln,hidden:cn,help:Zn,layout:Xn}=ve,{getPrefixCls:Jn}=me.useContext(jt.E_),{name:Nn}=me.useContext(re.q3),Sn=Je(Mt),Pn=typeof Sn=="function",Hn=me.useContext(re.qI),{validateTrigger:ur}=me.useContext(Et.FieldContext),qn=ln!==void 0?ln:ur,lr=De!=null,ir=Jn("form",At),er=(0,Ke.Z)(ir),[tr,gr,mr]=qe(ir,er),cr=(0,Pt.ln)("Form.Item"),vr=me.useContext(Et.ListContext),Cr=me.useRef(null),[or,dr]=Vt({}),[Fn,wr]=(0,ne.Z)(()=>_n()),Rr=fr=>{const Gn=vr==null?void 0:vr.getKey(fr.name);if(wr(fr.destroy?_n():fr,!0),ge&&Zn!==!1&&Hn){let _t=fr.name;if(fr.destroy)_t=Cr.current||_t;else if(Gn!==void 0){const[qt,Xt]=Gn;_t=[qt].concat((0,et.Z)(Xt)),Cr.current=_t}Hn(fr,_t)}},jr=(fr,Gn)=>{dr(_t=>{const qt=Object.assign({},_t),Ot=[].concat((0,et.Z)(fr.name.slice(0,-1)),(0,et.Z)(Gn)).join(Tn);return fr.destroy?delete qt[Ot]:qt[Ot]=fr,qt})},[Er,Br]=me.useMemo(()=>{const fr=(0,et.Z)(Fn.errors),Gn=(0,et.Z)(Fn.warnings);return Object.values(or).forEach(_t=>{fr.push.apply(fr,(0,et.Z)(_t.errors||[])),Gn.push.apply(Gn,(0,et.Z)(_t.warnings||[]))}),[fr,Gn]},[or,Fn.errors,Fn.warnings]),kr=$t();function Lr(fr,Gn,_t){return ge&&!cn?me.createElement(tn,{prefixCls:ir,hasFeedback:ve.hasFeedback,validateStatus:ve.validateStatus,meta:Fn,errors:Er,warnings:Br,noStyle:!0},fr):me.createElement(un,Object.assign({key:"row"},ve,{className:be()(Pe,mr,er,gr),prefixCls:ir,fieldId:Gn,isRequired:_t,errors:Er,warnings:Br,meta:Fn,onSubItemMetaChange:jr,layout:Xn}),fr)}if(!lr&&!Pn&&!Qe)return tr(Lr(Sn));let zr={};return typeof it=="string"?zr.label=it:De&&(zr.label=String(De)),Zt&&(zr=Object.assign(Object.assign({},zr),Zt)),tr(me.createElement(Et.Field,Object.assign({},ve,{messageVariables:zr,trigger:hn,validateTrigger:qn,onMetaChange:Rr}),(fr,Gn,_t)=>{const qt=ct(De).length&&Gn?Gn.name:[],Xt=rn(qt,Nn),Ot=ut!==void 0?ut:!!(Qt!=null&&Qt.some(Ut=>{if(Ut&&typeof Ut=="object"&&Ut.required&&!Ut.warningOnly)return!0;if(typeof Ut=="function"){const Kt=Ut(_t);return(Kt==null?void 0:Kt.required)&&!(Kt!=null&&Kt.warningOnly)}return!1})),En=Object.assign({},fr);let On=null;if(Array.isArray(Sn)&&lr)On=Sn;else if(!(Pn&&(!(Nt||Qe)||lr))){if(!(Qe&&!Pn&&!lr))if(me.isValidElement(Sn)){const Ut=Object.assign(Object.assign({},Sn.props),En);if(Ut.id||(Ut.id=Xt),Zn||Er.length>0||Br.length>0||ve.extra){const Cn=[];(Zn||Er.length>0)&&Cn.push(`${Xt}_help`),ve.extra&&Cn.push(`${Xt}_extra`),Ut["aria-describedby"]=Cn.join(" ")}Er.length>0&&(Ut["aria-invalid"]="true"),Ot&&(Ut["aria-required"]="true"),(0,we.Yr)(Sn)&&(Ut.ref=kr(qt,Sn)),new Set([].concat((0,et.Z)(ct(hn)),(0,et.Z)(ct(qn)))).forEach(Cn=>{Ut[Cn]=function(){for(var rr,Mr,br,Ir,Dr,Tr=arguments.length,Hr=new Array(Tr),Or=0;Or{var{prefixCls:De,children:ge}=ve,Pe=xt(ve,["prefixCls","children"]);const{getPrefixCls:Qe}=me.useContext(jt.E_),At=Qe("form",De),Nt=me.useMemo(()=>({prefixCls:At,status:"error"}),[At]);return me.createElement(Et.List,Object.assign({},Pe),(Qt,Mt,ut)=>me.createElement(re.Rk.Provider,{value:Nt},ge(Qt.map(it=>Object.assign(Object.assign({},it),{fieldKey:it.key})),Mt,{errors:ut.errors,warnings:ut.warnings})))};function Un(){const{form:ve}=me.useContext(re.q3);return ve}const Ee=ue;Ee.Item=jn,Ee.List=In,Ee.ErrorList=Me,Ee.useForm=nt,Ee.useFormInstance=Un,Ee.useWatch=Et.useWatch,Ee.Provider=re.RV,Ee.create=()=>{};var Re=Ee},4875:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return bn}});var re=le(59301),et=le(84105),me=le(87395),We=le(92310),be=le.n(We),Ce=le(60499),Oe=le(18642),Ke=le(43749),Se=le(72190),fe=le(42244),Ge=le(38705),xe=le(17212);function ft(){return typeof BigInt=="function"}function $e(ke){return!ke&&ke!==0&&!Number.isNaN(ke)||!String(ke).trim()}function Ae(ke){var Ue=ke.trim(),mt=Ue.startsWith("-");mt&&(Ue=Ue.slice(1)),Ue=Ue.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ue.startsWith(".")&&(Ue="0".concat(Ue));var Ht=Ue||"0",nn=Ht.split("."),fn=nn[0]||"0",$n=nn[1]||"0";fn==="0"&&$n==="0"&&(mt=!1);var An=mt?"-":"";return{negative:mt,negativeStr:An,trimStr:Ht,integerStr:fn,decimalStr:$n,fullStr:"".concat(An).concat(Ht)}}function He(ke){var Ue=String(ke);return!Number.isNaN(Number(Ue))&&Ue.includes("e")}function Le(ke){var Ue=String(ke);if(He(ke)){var mt=Number(Ue.slice(Ue.indexOf("e-")+2)),Ht=Ue.match(/\.(\d+)/);return Ht!=null&&Ht[1]&&(mt+=Ht[1].length),mt}return Ue.includes(".")&&yt(Ue)?Ue.length-Ue.indexOf(".")-1:0}function rt(ke){var Ue=String(ke);if(He(ke)){if(ke>Number.MAX_SAFE_INTEGER)return String(ft()?BigInt(ke).toString():Number.MAX_SAFE_INTEGER);if(ke0&&arguments[0]!==void 0?arguments[0]:!0;return mt?this.isInvalidate()?"":Ae("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ke}(),at=function(){function ke(Ue){if((0,Ge.Z)(this,ke),(0,Oe.Z)(this,"origin",""),(0,Oe.Z)(this,"number",void 0),(0,Oe.Z)(this,"empty",void 0),$e(Ue)){this.empty=!0;return}this.origin=String(Ue),this.number=Number(Ue)}return(0,xe.Z)(ke,[{key:"negate",value:function(){return new ke(-this.toNumber())}},{key:"add",value:function(mt){if(this.isInvalidate())return new ke(mt);var Ht=Number(mt);if(Number.isNaN(Ht))return this;var nn=this.number+Ht;if(nn>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(nnNumber.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(nn0&&arguments[0]!==void 0?arguments[0]:!0;return mt?this.isInvalidate()?"":rt(this.number):this.origin}}]),ke}();function Ye(ke){return ft()?new St(ke):new at(ke)}function lt(ke,Ue,mt){var Ht=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ke==="")return"";var nn=Ae(ke),fn=nn.negativeStr,$n=nn.integerStr,An=nn.decimalStr,pn="".concat(Ue).concat(An),wn="".concat(fn).concat($n);if(mt>=0){var vn=Number(An[mt]);if(vn>=5&&!Ht){var Kn=Ye(ke).add("".concat(fn,"0.").concat("0".repeat(mt)).concat(10-vn));return lt(Kn.toString(),Ue,mt,Ht)}return mt===0?wn:"".concat(wn).concat(Ue).concat(An.padEnd(mt,"0").slice(0,mt))}return pn===".0"?wn:"".concat(wn).concat(pn)}var Fe=Ye,ht=le(36901),Ze=le(34280);function ze(ke,Ue){return typeof Proxy!="undefined"&&ke?new Proxy(ke,{get:function(Ht,nn){if(Ue[nn])return Ue[nn];var fn=Ht[nn];return typeof fn=="function"?fn.bind(Ht):fn}}):ke}var gt=le(8654),Be=le(48736);function qe(ke,Ue){var mt=(0,re.useRef)(null);function Ht(){try{var fn=ke.selectionStart,$n=ke.selectionEnd,An=ke.value,pn=An.substring(0,fn),wn=An.substring($n);mt.current={start:fn,end:$n,value:An,beforeTxt:pn,afterTxt:wn}}catch(vn){}}function nn(){if(ke&&mt.current&&Ue)try{var fn=ke.value,$n=mt.current,An=$n.beforeTxt,pn=$n.afterTxt,wn=$n.start,vn=fn.length;if(fn.startsWith(An))vn=An.length;else if(fn.endsWith(pn))vn=fn.length-mt.current.afterTxt.length;else{var Kn=An[wn-1],gn=fn.indexOf(Kn,wn-1);gn!==-1&&(vn=gn+1)}ke.setSelectionRange(vn,vn)}catch(Dn){(0,Be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Dn.message))}}return[Ht,nn]}var Xe=le(49658),pe=function(){var Ue=(0,re.useState)(!1),mt=(0,Se.Z)(Ue,2),Ht=mt[0],nn=mt[1];return(0,Ze.Z)(function(){nn((0,Xe.Z)())},[]),Ht},Ct=pe,Me=le(16089),Et=200,jt=600;function ye(ke){var Ue=ke.prefixCls,mt=ke.upNode,Ht=ke.downNode,nn=ke.upDisabled,fn=ke.downDisabled,$n=ke.onStep,An=re.useRef(),pn=re.useRef([]),wn=re.useRef();wn.current=$n;var vn=function(){clearTimeout(An.current)},Kn=function(zn,Bn){zn.preventDefault(),vn(),wn.current(Bn);function _n(){wn.current(Bn),An.current=setTimeout(_n,Et)}An.current=setTimeout(_n,jt)};re.useEffect(function(){return function(){vn(),pn.current.forEach(function(Yn){return Me.Z.cancel(Yn)})}},[]);var gn=Ct();if(gn)return null;var Dn="".concat(Ue,"-handler"),tn=be()(Dn,"".concat(Dn,"-up"),(0,Oe.Z)({},"".concat(Dn,"-up-disabled"),nn)),yn=be()(Dn,"".concat(Dn,"-down"),(0,Oe.Z)({},"".concat(Dn,"-down-disabled"),fn)),un=function(){return pn.current.push((0,Me.Z)(vn))},Tn={unselectable:"on",role:"button",onMouseUp:un,onMouseLeave:un};return re.createElement("div",{className:"".concat(Dn,"-wrap")},re.createElement("span",(0,Ce.Z)({},Tn,{onMouseDown:function(zn){Kn(zn,!0)},"aria-label":"Increase Value","aria-disabled":nn,className:tn}),mt||re.createElement("span",{unselectable:"on",className:"".concat(Ue,"-handler-up-inner")})),re.createElement("span",(0,Ce.Z)({},Tn,{onMouseDown:function(zn){Kn(zn,!1)},"aria-label":"Decrease Value","aria-disabled":fn,className:yn}),Ht||re.createElement("span",{unselectable:"on",className:"".concat(Ue,"-handler-down-inner")})))}function de(ke){var Ue=typeof ke=="number"?rt(ke):Ae(ke).fullStr,mt=Ue.includes(".");return mt?Ae(Ue.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ke+"0"}var st=le(30292),Bt=function(){var ke=(0,re.useRef)(0),Ue=function(){Me.Z.cancel(ke.current)};return(0,re.useEffect)(function(){return Ue},[]),function(mt){Ue(),ke.current=(0,Me.Z)(function(){mt()})}},bt=["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"],Te=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],tt=function(Ue,mt){return Ue||mt.isEmpty()?mt.toString():mt.toNumber()},ct=function(Ue){var mt=Fe(Ue);return mt.isInvalidate()?null:mt},rn=re.forwardRef(function(ke,Ue){var mt=ke.prefixCls,Ht=ke.className,nn=ke.style,fn=ke.min,$n=ke.max,An=ke.step,pn=An===void 0?1:An,wn=ke.defaultValue,vn=ke.value,Kn=ke.disabled,gn=ke.readOnly,Dn=ke.upHandler,tn=ke.downHandler,yn=ke.keyboard,un=ke.changeOnWheel,Tn=un===void 0?!1:un,Yn=ke.controls,zn=Yn===void 0?!0:Yn,Bn=ke.classNames,_n=ke.stringMode,Vn=ke.parser,Qn=ke.formatter,jn=ke.precision,xt=ke.decimalSeparator,Wt=ke.onChange,In=ke.onInput,Un=ke.onPressEnter,Ee=ke.onStep,Re=ke.changeOnBlur,ve=Re===void 0?!0:Re,De=ke.domRef,ge=(0,fe.Z)(ke,bt),Pe="".concat(mt,"-input"),Qe=re.useRef(null),At=re.useState(!1),Nt=(0,Se.Z)(At,2),Qt=Nt[0],Mt=Nt[1],ut=re.useRef(!1),it=re.useRef(!1),Zt=re.useRef(!1),hn=re.useState(function(){return Fe(vn!=null?vn:wn)}),ln=(0,Se.Z)(hn,2),cn=ln[0],Zn=ln[1];function Xn(Xt){vn===void 0&&Zn(Xt)}var Jn=re.useCallback(function(Xt,Ot){if(!Ot)return jn>=0?jn:Math.max(Le(Xt),Le(pn))},[jn,pn]),Nn=re.useCallback(function(Xt){var Ot=String(Xt);if(Vn)return Vn(Ot);var En=Ot;return xt&&(En=En.replace(xt,".")),En.replace(/[^\w.-]+/g,"")},[Vn,xt]),Sn=re.useRef(""),Pn=re.useCallback(function(Xt,Ot){if(Qn)return Qn(Xt,{userTyping:Ot,input:String(Sn.current)});var En=typeof Xt=="number"?rt(Xt):Xt;if(!Ot){var On=Jn(En,Ot);if(yt(En)&&(xt||On>=0)){var Ut=xt||".";En=lt(En,Ut,On)}}return En},[Qn,Jn,xt]),Hn=re.useState(function(){var Xt=wn!=null?wn:vn;return cn.isInvalidate()&&["string","number"].includes((0,Ke.Z)(Xt))?Number.isNaN(Xt)?"":Xt:Pn(cn.toString(),!1)}),ur=(0,Se.Z)(Hn,2),qn=ur[0],lr=ur[1];Sn.current=qn;function ir(Xt,Ot){lr(Pn(Xt.isInvalidate()?Xt.toString(!1):Xt.toString(!Ot),Ot))}var er=re.useMemo(function(){return ct($n)},[$n,jn]),tr=re.useMemo(function(){return ct(fn)},[fn,jn]),gr=re.useMemo(function(){return!er||!cn||cn.isInvalidate()?!1:er.lessEquals(cn)},[er,cn]),mr=re.useMemo(function(){return!tr||!cn||cn.isInvalidate()?!1:cn.lessEquals(tr)},[tr,cn]),cr=qe(Qe.current,Qt),vr=(0,Se.Z)(cr,2),Cr=vr[0],or=vr[1],dr=function(Ot){return er&&!Ot.lessEquals(er)?er:tr&&!tr.lessEquals(Ot)?tr:null},Fn=function(Ot){return!dr(Ot)},wr=function(Ot,En){var On=Ot,Ut=Fn(On)||On.isEmpty();if(!On.isEmpty()&&!En&&(On=dr(On)||On,Ut=!0),!gn&&!Kn&&Ut){var Kt=On.toString(),xn=Jn(Kt,En);return xn>=0&&(On=Fe(lt(Kt,".",xn)),Fn(On)||(On=Fe(lt(Kt,".",xn,!0)))),On.equals(cn)||(Xn(On),Wt==null||Wt(On.isEmpty()?null:tt(_n,On)),vn===void 0&&ir(On,En)),On}return cn},Rr=Bt(),jr=function Xt(Ot){if(Cr(),Sn.current=Ot,lr(Ot),!it.current){var En=Nn(Ot),On=Fe(En);On.isNaN()||wr(On,!0)}In==null||In(Ot),Rr(function(){var Ut=Ot;Vn||(Ut=Ot.replace(/。/g,".")),Ut!==Ot&&Xt(Ut)})},Er=function(){it.current=!0},Br=function(){it.current=!1,jr(Qe.current.value)},kr=function(Ot){jr(Ot.target.value)},Lr=function(Ot){var En;if(!(Ot&&gr||!Ot&&mr)){ut.current=!1;var On=Fe(Zt.current?de(pn):pn);Ot||(On=On.negate());var Ut=(cn||Fe(0)).add(On.toString()),Kt=wr(Ut,!1);Ee==null||Ee(tt(_n,Kt),{offset:Zt.current?de(pn):pn,type:Ot?"up":"down"}),(En=Qe.current)===null||En===void 0||En.focus()}},zr=function(Ot){var En=Fe(Nn(qn)),On;En.isNaN()?On=wr(cn,Ot):On=wr(En,Ot),vn!==void 0?ir(cn,!1):On.isNaN()||ir(On,!1)},fr=function(){ut.current=!0},Gn=function(Ot){var En=Ot.key,On=Ot.shiftKey;ut.current=!0,Zt.current=On,En==="Enter"&&(it.current||(ut.current=!1),zr(!1),Un==null||Un(Ot)),yn!==!1&&!it.current&&["Up","ArrowUp","Down","ArrowDown"].includes(En)&&(Lr(En==="Up"||En==="ArrowUp"),Ot.preventDefault())},_t=function(){ut.current=!1,Zt.current=!1};re.useEffect(function(){if(Tn&&Qt){var Xt=function(On){Lr(On.deltaY<0),On.preventDefault()},Ot=Qe.current;if(Ot)return Ot.addEventListener("wheel",Xt,{passive:!1}),function(){return Ot.removeEventListener("wheel",Xt)}}});var qt=function(){ve&&zr(!1),Mt(!1),ut.current=!1};return(0,Ze.o)(function(){cn.isInvalidate()||ir(cn,!1)},[jn,Qn]),(0,Ze.o)(function(){var Xt=Fe(vn);Zn(Xt);var Ot=Fe(Nn(qn));(!Xt.equals(Ot)||!ut.current||Qn)&&ir(Xt,ut.current)},[vn]),(0,Ze.o)(function(){Qn&&or()},[qn]),re.createElement("div",{ref:De,className:be()(mt,Ht,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat(mt,"-focused"),Qt),"".concat(mt,"-disabled"),Kn),"".concat(mt,"-readonly"),gn),"".concat(mt,"-not-a-number"),cn.isNaN()),"".concat(mt,"-out-of-range"),!cn.isInvalidate()&&!Fn(cn))),style:nn,onFocus:function(){Mt(!0)},onBlur:qt,onKeyDown:Gn,onKeyUp:_t,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:fr},zn&&re.createElement(ye,{prefixCls:mt,upNode:Dn,downNode:tn,upDisabled:gr,downDisabled:mr,onStep:Lr}),re.createElement("div",{className:"".concat(Pe,"-wrap")},re.createElement("input",(0,Ce.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":fn,"aria-valuemax":$n,"aria-valuenow":cn.isInvalidate()?null:cn.toString(),step:pn},ge,{ref:(0,gt.sQ)(Qe,Ue),className:Pe,value:qn,onChange:kr,disabled:Kn,readOnly:gn}))))}),wt=re.forwardRef(function(ke,Ue){var mt=ke.disabled,Ht=ke.style,nn=ke.prefixCls,fn=nn===void 0?"rc-input-number":nn,$n=ke.value,An=ke.prefix,pn=ke.suffix,wn=ke.addonBefore,vn=ke.addonAfter,Kn=ke.className,gn=ke.classNames,Dn=(0,fe.Z)(ke,Te),tn=re.useRef(null),yn=re.useRef(null),un=re.useRef(null),Tn=function(zn){un.current&&(0,st.nH)(un.current,zn)};return re.useImperativeHandle(Ue,function(){return ze(un.current,{focus:Tn,nativeElement:tn.current.nativeElement||yn.current})}),re.createElement(ht.BaseInput,{className:Kn,triggerFocus:Tn,prefixCls:fn,value:$n,disabled:mt,style:Ht,prefix:An,suffix:pn,addonAfter:vn,addonBefore:wn,classNames:gn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:tn},re.createElement(rn,(0,Ce.Z)({prefixCls:fn,disabled:mt,ref:un,domRef:yn,className:gn==null?void 0:gn.input},Dn)))}),Rt=wt,_e=Rt,Lt=le(62487),nt=le(82855),ae=le(48755),ee=le(60840),z=le(2171),ie=le(83397),ue=le(31756),ne=le(56553),we=le(24971),Ve=le(70045),Pt=le(36237),je=le(53075),Je=le(64910),dt=le(39082),Dt=le(63356),kt=le(56119),Vt=le(16931),$t=le(51636),Tt=le(17835);const sn=ke=>{var Ue;const mt=(Ue=ke.handleVisible)!==null&&Ue!==void 0?Ue:"auto",Ht=ke.controlHeightSM-ke.lineWidth*2;return Object.assign(Object.assign({},(0,Je.T)(ke)),{controlWidth:90,handleWidth:Ht,handleFontSize:ke.fontSize/2,handleVisible:mt,handleActiveBg:ke.colorFillAlter,handleBg:ke.colorBgContainer,filledHandleBg:new Tt.FastColor(ke.colorFillSecondary).onBackground(ke.colorBgContainer).toHexString(),handleHoverColor:ke.colorPrimary,handleBorderColor:ke.colorBorder,handleOpacity:mt===!0?1:0,handleVisibleWidth:mt===!0?Ht:0})},Jt=(ke,Ue)=>{let{componentCls:mt,borderRadiusSM:Ht,borderRadiusLG:nn}=ke;const fn=Ue==="lg"?nn:Ht;return{[`&-${Ue}`]:{[`${mt}-handler-wrap`]:{borderStartEndRadius:fn,borderEndEndRadius:fn},[`${mt}-handler-up`]:{borderStartEndRadius:fn},[`${mt}-handler-down`]:{borderEndEndRadius:fn}}}},on=ke=>{const{componentCls:Ue,lineWidth:mt,lineType:Ht,borderRadius:nn,inputFontSizeSM:fn,inputFontSizeLG:$n,controlHeightLG:An,controlHeightSM:pn,colorError:wn,paddingInlineSM:vn,paddingBlockSM:Kn,paddingBlockLG:gn,paddingInlineLG:Dn,colorTextDescription:tn,motionDurationMid:yn,handleHoverColor:un,handleOpacity:Tn,paddingInline:Yn,paddingBlock:zn,handleBg:Bn,handleActiveBg:_n,colorTextDisabled:Vn,borderRadiusSM:Qn,borderRadiusLG:jn,controlWidth:xt,handleBorderColor:Wt,filledHandleBg:In,lineHeightLG:Un,calc:Ee}=ke;return[{[Ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(ke)),(0,je.ik)(ke)),{display:"inline-block",width:xt,margin:0,padding:0,borderRadius:nn}),(0,dt.qG)(ke,{[`${Ue}-handler-wrap`]:{background:Bn,[`${Ue}-handler-down`]:{borderBlockStart:`${(0,Pt.unit)(mt)} ${Ht} ${Wt}`}}})),(0,dt.H8)(ke,{[`${Ue}-handler-wrap`]:{background:In,[`${Ue}-handler-down`]:{borderBlockStart:`${(0,Pt.unit)(mt)} ${Ht} ${Wt}`}},"&:focus-within":{[`${Ue}-handler-wrap`]:{background:Bn}}})),(0,dt.vc)(ke,{[`${Ue}-handler-wrap`]:{background:Bn,[`${Ue}-handler-down`]:{borderBlockStart:`${(0,Pt.unit)(mt)} ${Ht} ${Wt}`}}})),(0,dt.Mu)(ke)),{"&-rtl":{direction:"rtl",[`${Ue}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:$n,lineHeight:Un,borderRadius:jn,[`input${Ue}-input`]:{height:Ee(An).sub(Ee(mt).mul(2)).equal(),padding:`${(0,Pt.unit)(gn)} ${(0,Pt.unit)(Dn)}`}},"&-sm":{padding:0,fontSize:fn,borderRadius:Qn,[`input${Ue}-input`]:{height:Ee(pn).sub(Ee(mt).mul(2)).equal(),padding:`${(0,Pt.unit)(Kn)} ${(0,Pt.unit)(vn)}`}},"&-out-of-range":{[`${Ue}-input-wrap`]:{input:{color:wn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(ke)),(0,je.s7)(ke)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ue}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ue}-group-addon`]:{borderRadius:jn,fontSize:ke.fontSizeLG}},"&-sm":{[`${Ue}-group-addon`]:{borderRadius:Qn}}},(0,dt.ir)(ke)),(0,dt.S5)(ke)),{[`&:not(${Ue}-compact-first-item):not(${Ue}-compact-last-item)${Ue}-compact-item`]:{[`${Ue}, ${Ue}-group-addon`]:{borderRadius:0}},[`&:not(${Ue}-compact-last-item)${Ue}-compact-first-item`]:{[`${Ue}, ${Ue}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ue}-compact-first-item)${Ue}-compact-last-item`]:{[`${Ue}, ${Ue}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ue}-input`]:{cursor:"not-allowed"},[Ue]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Dt.Wf)(ke)),{width:"100%",padding:`${(0,Pt.unit)(zn)} ${(0,Pt.unit)(Yn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:nn,outline:0,transition:`all ${yn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,je.nz)(ke.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ue}-handler-wrap, &-focused ${Ue}-handler-wrap`]:{width:ke.handleWidth,opacity:1}})},{[Ue]:Object.assign(Object.assign(Object.assign({[`${Ue}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ke.handleVisibleWidth,opacity:Tn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:nn,borderEndEndRadius:nn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${yn}`,overflow:"hidden",[`${Ue}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Ue}-handler-up-inner, ${Ue}-handler-down-inner `]:{marginInlineEnd:0,fontSize:ke.handleFontSize}}},[`${Ue}-handler`]:{height:"50%",overflow:"hidden",color:tn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Pt.unit)(mt)} ${Ht} ${Wt}`,transition:`all ${yn} linear`,"&:active":{background:_n},"&:hover":{height:"60%",[` ${Ue}-handler-up-inner, ${Ue}-handler-down-inner `]:{color:un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Dt.Ro)()),{color:tn,transition:`all ${yn} linear`,userSelect:"none"})},[`${Ue}-handler-up`]:{borderStartEndRadius:nn},[`${Ue}-handler-down`]:{borderEndEndRadius:nn}},Jt(ke,"lg")),Jt(ke,"sm")),{"&-disabled, &-readonly":{[`${Ue}-handler-wrap`]:{display:"none"},[`${Ue}-input`]:{color:"inherit"}},[` ${Ue}-handler-up-disabled, ${Ue}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Ue}-handler-up-disabled:hover &-handler-up-inner, ${Ue}-handler-down-disabled:hover &-handler-down-inner `]:{color:Vn}})}]},pt=ke=>{const{componentCls:Ue,paddingBlock:mt,paddingInline:Ht,inputAffixPadding:nn,controlWidth:fn,borderRadiusLG:$n,borderRadiusSM:An,paddingInlineLG:pn,paddingInlineSM:wn,paddingBlockLG:vn,paddingBlockSM:Kn,motionDurationMid:gn}=ke;return{[`${Ue}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ue}-input`]:{padding:`${(0,Pt.unit)(mt)} 0`}},(0,je.ik)(ke)),{position:"relative",display:"inline-flex",alignItems:"center",width:fn,padding:0,paddingInlineStart:Ht,"&-lg":{borderRadius:$n,paddingInlineStart:pn,[`input${Ue}-input`]:{padding:`${(0,Pt.unit)(vn)} 0`}},"&-sm":{borderRadius:An,paddingInlineStart:wn,[`input${Ue}-input`]:{padding:`${(0,Pt.unit)(Kn)} 0`}},[`&:not(${Ue}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ue}-disabled`]:{background:"transparent"},[`> div${Ue}`]:{width:"100%",border:"none",outline:"none",[`&${Ue}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ue}-handler-wrap`]:{zIndex:2},[Ue]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:nn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Ht,marginInlineStart:nn,transition:`margin ${gn}`}},[`&:hover ${Ue}-handler-wrap, &-focused ${Ue}-handler-wrap`]:{width:ke.handleWidth,opacity:1},[`&:not(${Ue}-affix-wrapper-without-controls):hover ${Ue}-suffix`]:{marginInlineEnd:ke.calc(ke.handleWidth).add(Ht).equal()}})}};var dn=(0,Vt.I$)("InputNumber",ke=>{const Ue=(0,$t.mergeToken)(ke,(0,Je.e)(ke));return[on(Ue),pt(Ue),(0,kt.c)(Ue)]},sn,{unitless:{handleOpacity:!0}}),Ft=function(ke,Ue){var mt={};for(var Ht in ke)Object.prototype.hasOwnProperty.call(ke,Ht)&&Ue.indexOf(Ht)<0&&(mt[Ht]=ke[Ht]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Ht=Object.getOwnPropertySymbols(ke);nn{const{getPrefixCls:mt,direction:Ht}=re.useContext(ae.E_),nn=re.useRef(null);re.useImperativeHandle(Ue,()=>nn.current);const{className:fn,rootClassName:$n,size:An,disabled:pn,prefixCls:wn,addonBefore:vn,addonAfter:Kn,prefix:gn,suffix:Dn,bordered:tn,readOnly:yn,status:un,controls:Tn,variant:Yn}=ke,zn=Ft(ke,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Bn=mt("input-number",wn),_n=(0,ie.Z)(Bn),[Vn,Qn,jn]=dn(Bn,_n),{compactSize:xt,compactItemClassnames:Wt}=(0,Ve.ri)(Bn,Ht);let In=re.createElement(me.Z,{className:`${Bn}-handler-up-inner`}),Un=re.createElement(et.Z,{className:`${Bn}-handler-down-inner`});const Ee=typeof Tn=="boolean"?Tn:void 0;typeof Tn=="object"&&(In=typeof Tn.upIcon=="undefined"?In:re.createElement("span",{className:`${Bn}-handler-up-inner`},Tn.upIcon),Un=typeof Tn.downIcon=="undefined"?Un:re.createElement("span",{className:`${Bn}-handler-down-inner`},Tn.downIcon));const{hasFeedback:Re,status:ve,isFormItemInput:De,feedbackIcon:ge}=re.useContext(ne.aM),Pe=(0,nt.F)(ve,un),Qe=(0,ue.Z)(ln=>{var cn;return(cn=An!=null?An:xt)!==null&&cn!==void 0?cn:ln}),At=re.useContext(z.Z),Nt=pn!=null?pn:At,[Qt,Mt]=(0,we.Z)("inputNumber",Yn,tn),ut=Re&&re.createElement(re.Fragment,null,ge),it=be()({[`${Bn}-lg`]:Qe==="large",[`${Bn}-sm`]:Qe==="small",[`${Bn}-rtl`]:Ht==="rtl",[`${Bn}-in-form-item`]:De},Qn),Zt=`${Bn}-group`,hn=re.createElement(_e,Object.assign({ref:nn,disabled:Nt,className:be()(jn,_n,fn,$n,Wt),upHandler:In,downHandler:Un,prefixCls:Bn,readOnly:yn,controls:Ee,prefix:gn,suffix:ut||Dn,addonBefore:vn&&re.createElement(Lt.Z,{form:!0,space:!0},vn),addonAfter:Kn&&re.createElement(Lt.Z,{form:!0,space:!0},Kn),classNames:{input:it,variant:be()({[`${Bn}-${Qt}`]:Mt},(0,nt.Z)(Bn,Pe,Re)),affixWrapper:be()({[`${Bn}-affix-wrapper-sm`]:Qe==="small",[`${Bn}-affix-wrapper-lg`]:Qe==="large",[`${Bn}-affix-wrapper-rtl`]:Ht==="rtl",[`${Bn}-affix-wrapper-without-controls`]:Tn===!1||Nt},Qn),wrapper:be()({[`${Zt}-rtl`]:Ht==="rtl"},Qn),groupWrapper:be()({[`${Bn}-group-wrapper-sm`]:Qe==="small",[`${Bn}-group-wrapper-lg`]:Qe==="large",[`${Bn}-group-wrapper-rtl`]:Ht==="rtl",[`${Bn}-group-wrapper-${Qt}`]:Mt},(0,nt.Z)(`${Bn}-group-wrapper`,Pe,Re),Qn)}},zn));return Vn(hn)}),an=Yt,Ln=ke=>re.createElement(ee.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},re.createElement(Yt,Object.assign({},ke)));an._InternalPanelDoNotUseOrYouWillBeFired=Ln;var bn=an},49397:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return at}});var re=le(59301),et=le(92310),me=le.n(et),We=le(36901),be=le(8654),Ce=le(62487),Oe=le(86013),Ke=le(82855),Se=le(48755),fe=le(2171),Ge=le(83397),xe=le(31756),ft=le(56553),$e=le(24971),Ae=le(70045),He=le(23826),Le=le(53075);function rt(Ye){return!!(Ye.prefix||Ye.suffix||Ye.allowClear||Ye.showCount)}var yt=function(Ye,lt){var Fe={};for(var ht in Ye)Object.prototype.hasOwnProperty.call(Ye,ht)&<.indexOf(ht)<0&&(Fe[ht]=Ye[ht]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ht=Object.getOwnPropertySymbols(Ye);Ze{const{prefixCls:Fe,bordered:ht=!0,status:Ze,size:ze,disabled:gt,onBlur:Be,onFocus:qe,suffix:Xe,allowClear:pe,addonAfter:Ct,addonBefore:Me,className:Et,style:jt,styles:ye,rootClassName:de,onChange:st,classNames:Bt,variant:bt}=Ye,Te=yt(Ye,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:tt,direction:ct,allowClear:rn,autoComplete:wt,className:Rt,style:_e,classNames:Lt,styles:nt}=(0,Se.dj)("input"),ae=tt("input",Fe),ee=(0,re.useRef)(null),z=(0,Ge.Z)(ae),[ie,ue,ne]=(0,Le.TI)(ae,de),[we]=(0,Le.ZP)(ae,z),{compactSize:Ve,compactItemClassnames:Pt}=(0,Ae.ri)(ae,ct),je=(0,xe.Z)(bn=>{var ke;return(ke=ze!=null?ze:Ve)!==null&&ke!==void 0?ke:bn}),Je=re.useContext(fe.Z),dt=gt!=null?gt:Je,{status:Dt,hasFeedback:kt,feedbackIcon:Vt}=(0,re.useContext)(ft.aM),$t=(0,Ke.F)(Dt,Ze),Tt=rt(Ye)||!!kt,sn=(0,re.useRef)(Tt),Jt=(0,He.Z)(ee,!0),on=bn=>{Jt(),Be==null||Be(bn)},pt=bn=>{Jt(),qe==null||qe(bn)},dn=bn=>{Jt(),st==null||st(bn)},Ft=(kt||Xe)&&re.createElement(re.Fragment,null,Xe,kt&&Vt),Yt=(0,Oe.Z)(pe!=null?pe:rn),[an,Ln]=(0,$e.Z)("input",bt,ht);return ie(we(re.createElement(We.default,Object.assign({ref:(0,be.sQ)(lt,ee),prefixCls:ae,autoComplete:wt},Te,{disabled:dt,onBlur:on,onFocus:pt,style:Object.assign(Object.assign({},_e),jt),styles:Object.assign(Object.assign({},nt),ye),suffix:Ft,allowClear:Yt,className:me()(Et,de,ne,z,Pt,Rt),onChange:dn,addonBefore:Me&&re.createElement(Ce.Z,{form:!0,space:!0},Me),addonAfter:Ct&&re.createElement(Ce.Z,{form:!0,space:!0},Ct),classNames:Object.assign(Object.assign(Object.assign({},Bt),Lt),{input:me()({[`${ae}-sm`]:je==="small",[`${ae}-lg`]:je==="large",[`${ae}-rtl`]:ct==="rtl"},Bt==null?void 0:Bt.input,Lt.input,ue),variant:me()({[`${ae}-${an}`]:Ln},(0,Ke.Z)(ae,$t)),affixWrapper:me()({[`${ae}-affix-wrapper-sm`]:je==="small",[`${ae}-affix-wrapper-lg`]:je==="large",[`${ae}-affix-wrapper-rtl`]:ct==="rtl"},ue),wrapper:me()({[`${ae}-group-rtl`]:ct==="rtl"},ue),groupWrapper:me()({[`${ae}-group-wrapper-sm`]:je==="small",[`${ae}-group-wrapper-lg`]:je==="large",[`${ae}-group-wrapper-rtl`]:ct==="rtl",[`${ae}-group-wrapper-${an}`]:Ln},(0,Ke.Z)(`${ae}-group-wrapper`,$t,kt),ue)})}))))})},79809:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return lt}});var re=le(59301),et=le(92310),me=le.n(et),We=le(22711),be=le(86013),Ce=le(82855),Oe=le(48755),Ke=le(2171),Se=le(83397),fe=le(31756),Ge=le(56553),xe=le(24971),ft=le(70045),$e=le(30292),Ae=le(53075),He=le(16931),Le=le(51636),rt=le(64910);const yt=Fe=>{const{componentCls:ht,paddingLG:Ze}=Fe,ze=`${ht}-textarea`;return{[`textarea${ht}`]:{maxWidth:"100%",height:"auto",minHeight:Fe.controlHeight,lineHeight:Fe.lineHeight,verticalAlign:"bottom",transition:`all ${Fe.motionDurationSlow}`,resize:"vertical",[`&${ht}-mouse-active`]:{transition:`all ${Fe.motionDurationSlow}, height 0s, width 0s`}},[`${ht}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ze]:{position:"relative","&-show-count":{[`> ${ht}`]:{height:"100%"},[`${ht}-data-count`]:{position:"absolute",bottom:Fe.calc(Fe.fontSize).mul(Fe.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Fe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${ht}, &-affix-wrapper${ze}-has-feedback ${ht} `]:{paddingInlineEnd:Ze},[`&-affix-wrapper${ht}-affix-wrapper`]:{padding:0,[`> textarea${ht}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Fe.calc(Fe.controlHeight).sub(Fe.calc(Fe.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${ht}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${ht}-clear-icon`]:{position:"absolute",insetInlineEnd:Fe.paddingInline,insetBlockStart:Fe.paddingXS},[`${ze}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Fe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${ht}-affix-wrapper-sm`]:{[`${ht}-suffix`]:{[`${ht}-clear-icon`]:{insetInlineEnd:Fe.paddingInlineSM}}}}}};var St=(0,He.I$)(["Input","TextArea"],Fe=>{const ht=(0,Le.mergeToken)(Fe,(0,rt.e)(Fe));return[yt(ht)]},rt.T,{resetFont:!1}),at=function(Fe,ht){var Ze={};for(var ze in Fe)Object.prototype.hasOwnProperty.call(Fe,ze)&&ht.indexOf(ze)<0&&(Ze[ze]=Fe[ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ze=Object.getOwnPropertySymbols(Fe);gt{var Ze;const{prefixCls:ze,bordered:gt=!0,size:Be,disabled:qe,status:Xe,allowClear:pe,classNames:Ct,rootClassName:Me,className:Et,style:jt,styles:ye,variant:de,showCount:st,onMouseDown:Bt,onResize:bt}=Fe,Te=at(Fe,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:tt,direction:ct,allowClear:rn,autoComplete:wt,className:Rt,style:_e,classNames:Lt,styles:nt}=(0,Oe.dj)("textArea"),ae=re.useContext(Ke.Z),ee=qe!=null?qe:ae,{status:z,hasFeedback:ie,feedbackIcon:ue}=re.useContext(Ge.aM),ne=(0,Ce.F)(z,Xe),we=re.useRef(null);re.useImperativeHandle(ht,()=>{var Ln;return{resizableTextArea:(Ln=we.current)===null||Ln===void 0?void 0:Ln.resizableTextArea,focus:bn=>{var ke,Ue;(0,$e.nH)((Ue=(ke=we.current)===null||ke===void 0?void 0:ke.resizableTextArea)===null||Ue===void 0?void 0:Ue.textArea,bn)},blur:()=>{var bn;return(bn=we.current)===null||bn===void 0?void 0:bn.blur()}}});const Ve=tt("input",ze),Pt=(0,Se.Z)(Ve),[je,Je,dt]=(0,Ae.TI)(Ve,Me),[Dt]=St(Ve,Pt),{compactSize:kt,compactItemClassnames:Vt}=(0,ft.ri)(Ve,ct),$t=(0,fe.Z)(Ln=>{var bn;return(bn=Be!=null?Be:kt)!==null&&bn!==void 0?bn:Ln}),[Tt,sn]=(0,xe.Z)("textArea",de,gt),Jt=(0,be.Z)(pe!=null?pe:rn),[on,pt]=re.useState(!1),[dn,Ft]=re.useState(!1),Yt=Ln=>{pt(!0),Bt==null||Bt(Ln);const bn=()=>{pt(!1),document.removeEventListener("mouseup",bn)};document.addEventListener("mouseup",bn)},an=Ln=>{var bn,ke;if(bt==null||bt(Ln),on&&typeof getComputedStyle=="function"){const Ue=(ke=(bn=we.current)===null||bn===void 0?void 0:bn.nativeElement)===null||ke===void 0?void 0:ke.querySelector("textarea");Ue&&getComputedStyle(Ue).resize==="both"&&Ft(!0)}};return je(Dt(re.createElement(We.default,Object.assign({autoComplete:wt},Te,{style:Object.assign(Object.assign({},_e),jt),styles:Object.assign(Object.assign({},nt),ye),disabled:ee,allowClear:Jt,className:me()(dt,Pt,Et,Me,Vt,Rt,dn&&`${Ve}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ct),Lt),{textarea:me()({[`${Ve}-sm`]:$t==="small",[`${Ve}-lg`]:$t==="large"},Je,Ct==null?void 0:Ct.textarea,Lt.textarea,on&&`${Ve}-mouse-active`),variant:me()({[`${Ve}-${Tt}`]:sn},(0,Ce.Z)(Ve,ne)),affixWrapper:me()(`${Ve}-textarea-affix-wrapper`,{[`${Ve}-affix-wrapper-rtl`]:ct==="rtl",[`${Ve}-affix-wrapper-sm`]:$t==="small",[`${Ve}-affix-wrapper-lg`]:$t==="large",[`${Ve}-textarea-show-count`]:st||((Ze=Fe.count)===null||Ze===void 0?void 0:Ze.show)},Je)}),prefixCls:Ve,suffix:ie&&re.createElement("span",{className:`${Ve}-textarea-suffix`},ue),showCount:st,ref:we,onResize:an,onMouseDown:Yt}))))})},23826:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return et}});var re=le(59301);function et(me,We){const be=(0,re.useRef)([]),Ce=()=>{be.current.push(setTimeout(()=>{var Oe,Ke,Se,fe;!((Oe=me.current)===null||Oe===void 0)&&Oe.input&&((Ke=me.current)===null||Ke===void 0?void 0:Ke.input.getAttribute("type"))==="password"&&(!((Se=me.current)===null||Se===void 0)&&Se.input.hasAttribute("value"))&&((fe=me.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,re.useEffect)(()=>(We&&Ce(),()=>be.current.forEach(Oe=>{Oe&&clearTimeout(Oe)})),[]),Ce}},37568:function(Gt,It,le){"use strict";le.d(It,{default:function(){return Lt}});var re=le(59301),et=le(92310),me=le.n(et),We=le(48755),be=le(56553),Ce=le(53075),Ke=nt=>{const{getPrefixCls:ae,direction:ee}=(0,re.useContext)(We.E_),{prefixCls:z,className:ie}=nt,ue=ae("input-group",z),ne=ae("input"),[we,Ve,Pt]=(0,Ce.ZP)(ne),je=me()(ue,Pt,{[`${ue}-lg`]:nt.size==="large",[`${ue}-sm`]:nt.size==="small",[`${ue}-compact`]:nt.compact,[`${ue}-rtl`]:ee==="rtl"},Ve,ie),Je=(0,re.useContext)(be.aM),dt=(0,re.useMemo)(()=>Object.assign(Object.assign({},Je),{isFormItemInput:!1}),[Je]);return we(re.createElement("span",{className:je,style:nt.style,onMouseEnter:nt.onMouseEnter,onMouseLeave:nt.onMouseLeave,onFocus:nt.onFocus,onBlur:nt.onBlur},re.createElement(be.aM.Provider,{value:dt},nt.children)))},Se=le(49397),fe=le(77654),Ge=le(6089),xe=le(26112),ft=le(82855),$e=le(31756),Ae=le(16931),He=le(51636),Le=le(64910);const rt=nt=>{const{componentCls:ae,paddingXS:ee}=nt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ee,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:nt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:nt.calc(nt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:nt.paddingXS}}}};var yt=(0,Ae.I$)(["Input","OTP"],nt=>{const ae=(0,He.mergeToken)(nt,(0,Le.e)(nt));return[rt(ae)]},Le.T),St=le(16089),at=function(nt,ae){var ee={};for(var z in nt)Object.prototype.hasOwnProperty.call(nt,z)&&ae.indexOf(z)<0&&(ee[z]=nt[z]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,z=Object.getOwnPropertySymbols(nt);ie{const{value:ee,onChange:z,onActiveChange:ie,index:ue,mask:ne}=nt,we=at(nt,["value","onChange","onActiveChange","index","mask"]),Ve=ee&&typeof ne=="string"?ne:ee,Pt=kt=>{z(ue,kt.target.value)},je=re.useRef(null);re.useImperativeHandle(ae,()=>je.current);const Je=()=>{(0,St.Z)(()=>{var kt;const Vt=(kt=je.current)===null||kt===void 0?void 0:kt.input;document.activeElement===Vt&&Vt&&Vt.select()})},dt=kt=>{const{key:Vt,ctrlKey:$t,metaKey:Tt}=kt;Vt==="ArrowLeft"?ie(ue-1):Vt==="ArrowRight"?ie(ue+1):Vt==="z"&&($t||Tt)&&kt.preventDefault(),Je()},Dt=kt=>{kt.key==="Backspace"&&!ee&&ie(ue-1),Je()};return re.createElement(Se.Z,Object.assign({type:ne===!0?"password":"text"},we,{ref:je,value:Ve,onInput:Pt,onFocus:Je,onKeyDown:dt,onKeyUp:Dt,onMouseDown:Je,onMouseUp:Je}))}),Fe=function(nt,ae){var ee={};for(var z in nt)Object.prototype.hasOwnProperty.call(nt,z)&&ae.indexOf(z)<0&&(ee[z]=nt[z]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,z=Object.getOwnPropertySymbols(nt);ie{const{index:ae,prefixCls:ee,separator:z}=nt,ie=typeof z=="function"?z(ae):z;return ie?re.createElement("span",{className:`${ee}-separator`},ie):null};var gt=re.forwardRef((nt,ae)=>{const{prefixCls:ee,length:z=6,size:ie,defaultValue:ue,value:ne,onChange:we,formatter:Ve,separator:Pt,variant:je,disabled:Je,status:dt,autoFocus:Dt,mask:kt,type:Vt,onInput:$t,inputMode:Tt}=nt,sn=Fe(nt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Jt,direction:on}=re.useContext(We.E_),pt=Jt("otp",ee),dn=(0,xe.Z)(sn,{aria:!0,data:!0,attr:!0}),[Ft,Yt,an]=yt(pt),Ln=(0,$e.Z)(gn=>ie!=null?ie:gn),bn=re.useContext(be.aM),ke=(0,ft.F)(bn.status,dt),Ue=re.useMemo(()=>Object.assign(Object.assign({},bn),{status:ke,hasFeedback:!1,feedbackIcon:null}),[bn,ke]),mt=re.useRef(null),Ht=re.useRef({});re.useImperativeHandle(ae,()=>({focus:()=>{var gn;(gn=Ht.current[0])===null||gn===void 0||gn.focus()},blur:()=>{var gn;for(let Dn=0;DnVe?Ve(gn):gn,[fn,$n]=re.useState(()=>ht(nn(ue||"")));re.useEffect(()=>{ne!==void 0&&$n(ht(ne))},[ne]);const An=(0,Ge.Z)(gn=>{$n(gn),$t&&$t(gn),we&&gn.length===z&&gn.every(Dn=>Dn)&&gn.some((Dn,tn)=>fn[tn]!==Dn)&&we(gn.join(""))}),pn=(0,Ge.Z)((gn,Dn)=>{let tn=(0,fe.Z)(fn);for(let un=0;un=0&&!tn[un];un-=1)tn.pop();const yn=nn(tn.map(un=>un||" ").join(""));return tn=ht(yn).map((un,Tn)=>un===" "&&!tn[Tn]?tn[Tn]:un),tn}),wn=(gn,Dn)=>{var tn;const yn=pn(gn,Dn),un=Math.min(gn+Dn.length,z-1);un!==gn&&yn[gn]!==void 0&&((tn=Ht.current[un])===null||tn===void 0||tn.focus()),An(yn)},vn=gn=>{var Dn;(Dn=Ht.current[gn])===null||Dn===void 0||Dn.focus()},Kn={variant:je,disabled:Je,status:ke,mask:kt,type:Vt,inputMode:Tt};return Ft(re.createElement("div",Object.assign({},dn,{ref:mt,className:me()(pt,{[`${pt}-sm`]:Ln==="small",[`${pt}-lg`]:Ln==="large",[`${pt}-rtl`]:on==="rtl"},an,Yt)}),re.createElement(be.aM.Provider,{value:Ue},Array.from({length:z}).map((gn,Dn)=>{const tn=`otp-${Dn}`,yn=fn[Dn]||"";return re.createElement(re.Fragment,{key:tn},re.createElement(lt,Object.assign({ref:un=>{Ht.current[Dn]=un},index:Dn,size:Ln,htmlSize:1,className:`${pt}-input`,onChange:wn,value:yn,onActiveChange:vn,autoFocus:Dn===0&&Dt},Kn)),Dnnt?re.createElement(qe.Z,null):re.createElement(Be.Z,null),ye={click:"onClick",hover:"onMouseOver"};var st=re.forwardRef((nt,ae)=>{const{disabled:ee,action:z="click",visibilityToggle:ie=!0,iconRender:ue=jt}=nt,ne=re.useContext(Ct.Z),we=ee!=null?ee:ne,Ve=typeof ie=="object"&&ie.visible!==void 0,[Pt,je]=(0,re.useState)(()=>Ve?ie.visible:!1),Je=(0,re.useRef)(null);re.useEffect(()=>{Ve&&je(ie.visible)},[Ve,ie]);const dt=(0,Me.Z)(Je),Dt=()=>{var Ln;if(we)return;Pt&&dt();const bn=!Pt;je(bn),typeof ie=="object"&&((Ln=ie.onVisibleChange)===null||Ln===void 0||Ln.call(ie,bn))},kt=Ln=>{const bn=ye[z]||"",ke=ue(Pt),Ue={[bn]:Dt,className:`${Ln}-icon`,key:"passwordIcon",onMouseDown:mt=>{mt.preventDefault()},onMouseUp:mt=>{mt.preventDefault()}};return re.cloneElement(re.isValidElement(ke)?ke:re.createElement("span",null,ke),Ue)},{className:Vt,prefixCls:$t,inputPrefixCls:Tt,size:sn}=nt,Jt=Et(nt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:on}=re.useContext(We.E_),pt=on("input",Tt),dn=on("input-password",$t),Ft=ie&&kt(dn),Yt=me()(dn,Vt,{[`${dn}-${sn}`]:!!sn}),an=Object.assign(Object.assign({},(0,Xe.Z)(Jt,["suffix","iconRender","visibilityToggle"])),{type:Pt?"text":"password",className:Yt,prefixCls:pt,suffix:Ft});return sn&&(an.size=sn),re.createElement(Se.Z,Object.assign({ref:(0,pe.sQ)(ae,Je)},an))}),Bt=le(47472),bt=le(22703),Te=le(7939),tt=le(70045),ct=function(nt,ae){var ee={};for(var z in nt)Object.prototype.hasOwnProperty.call(nt,z)&&ae.indexOf(z)<0&&(ee[z]=nt[z]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,z=Object.getOwnPropertySymbols(nt);ie{const{prefixCls:ee,inputPrefixCls:z,className:ie,size:ue,suffix:ne,enterButton:we=!1,addonAfter:Ve,loading:Pt,disabled:je,onSearch:Je,onChange:dt,onCompositionStart:Dt,onCompositionEnd:kt}=nt,Vt=ct(nt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:$t,direction:Tt}=re.useContext(We.E_),sn=re.useRef(!1),Jt=$t("input-search",ee),on=$t("input",z),{compactSize:pt}=(0,tt.ri)(Jt,Tt),dn=(0,$e.Z)(wn=>{var vn;return(vn=ue!=null?ue:pt)!==null&&vn!==void 0?vn:wn}),Ft=re.useRef(null),Yt=wn=>{wn!=null&&wn.target&&wn.type==="click"&&Je&&Je(wn.target.value,wn,{source:"clear"}),dt==null||dt(wn)},an=wn=>{var vn;document.activeElement===((vn=Ft.current)===null||vn===void 0?void 0:vn.input)&&wn.preventDefault()},Ln=wn=>{var vn,Kn;Je&&Je((Kn=(vn=Ft.current)===null||vn===void 0?void 0:vn.input)===null||Kn===void 0?void 0:Kn.value,wn,{source:"input"})},bn=wn=>{sn.current||Pt||Ln(wn)},ke=typeof we=="boolean"?re.createElement(Bt.Z,null):null,Ue=`${Jt}-button`;let mt;const Ht=we||{},nn=Ht.type&&Ht.type.__ANT_BUTTON===!0;nn||Ht.type==="button"?mt=(0,bt.Tm)(Ht,Object.assign({onMouseDown:an,onClick:wn=>{var vn,Kn;(Kn=(vn=Ht==null?void 0:Ht.props)===null||vn===void 0?void 0:vn.onClick)===null||Kn===void 0||Kn.call(vn,wn),Ln(wn)},key:"enterButton"},nn?{className:Ue,size:dn}:{})):mt=re.createElement(Te.ZP,{className:Ue,type:we?"primary":void 0,size:dn,disabled:je,key:"enterButton",onMouseDown:an,onClick:Ln,loading:Pt,icon:ke},we),Ve&&(mt=[mt,(0,bt.Tm)(Ve,{key:"addonAfter"})]);const fn=me()(Jt,{[`${Jt}-rtl`]:Tt==="rtl",[`${Jt}-${dn}`]:!!dn,[`${Jt}-with-button`]:!!we},ie),$n=Object.assign(Object.assign({},Vt),{className:fn,prefixCls:on,type:"search"}),An=wn=>{sn.current=!0,Dt==null||Dt(wn)},pn=wn=>{sn.current=!1,kt==null||kt(wn)};return re.createElement(Se.Z,Object.assign({ref:(0,pe.sQ)(Ft,ae),onPressEnter:bn},$n,{size:dn,onCompositionStart:An,onCompositionEnd:pn,addonAfter:mt,suffix:ne,onChange:Yt,disabled:je}))}),Rt=le(79809);const _e=Se.Z;_e.Group=Ke,_e.Search=wt,_e.TextArea=Rt.Z,_e.Password=st,_e.OTP=gt;var Lt=_e},82326:function(Gt,It,le){"use strict";var re=le(59301),et=le(92310),me=le.n(et),We=le(37463),be=le(2738),Ce=le(75030),Oe=le(86641),Ke=le(45915),Se=le(82855),fe=le(48755),Ge=le(38406),xe=le(2171),ft=le(83397),$e=le(31756),Ae=le(56553),He=le(24971),Le=le(70045),rt=le(57700),yt=le(1722),St=le(90376),at=le(68525),Ye=le(90005),lt=function(gt,Be){var qe={};for(var Xe in gt)Object.prototype.hasOwnProperty.call(gt,Xe)&&Be.indexOf(Xe)<0&&(qe[Xe]=gt[Xe]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Xe=Object.getOwnPropertySymbols(gt);pe{var qe;const{prefixCls:Xe,bordered:pe,className:Ct,rootClassName:Me,getPopupContainer:Et,popupClassName:jt,dropdownClassName:ye,listHeight:de=256,placement:st,listItemHeight:Bt,size:bt,disabled:Te,notFoundContent:tt,status:ct,builtinPlacements:rn,dropdownMatchSelectWidth:wt,popupMatchSelectWidth:Rt,direction:_e,style:Lt,allowClear:nt,variant:ae,dropdownStyle:ee,transitionName:z,tagRender:ie,maxCount:ue,prefix:ne}=gt,we=lt(gt,["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:Ve,getPrefixCls:Pt,renderEmpty:je,direction:Je,virtual:dt,popupMatchSelectWidth:Dt,popupOverflow:kt}=re.useContext(fe.E_),Vt=(0,fe.dj)("select"),[,$t]=(0,rt.ZP)(),Tt=Bt!=null?Bt:$t==null?void 0:$t.controlHeight,sn=Pt("select",Xe),Jt=Pt(),on=_e!=null?_e:Je,{compactSize:pt,compactItemClassnames:dn}=(0,Le.ri)(sn,on),[Ft,Yt]=(0,He.Z)("select",ae,pe),an=(0,ft.Z)(sn),[Ln,bn,ke]=(0,St.Z)(sn,an),Ue=re.useMemo(()=>{const{mode:jn}=gt;if(jn!=="combobox")return jn===Fe?"combobox":jn},[gt.mode]),mt=Ue==="multiple"||Ue==="tags",Ht=(0,Ye.Z)(gt.suffixIcon,gt.showArrow),nn=(qe=Rt!=null?Rt:wt)!==null&&qe!==void 0?qe:Dt,{status:fn,hasFeedback:$n,isFormItemInput:An,feedbackIcon:pn}=re.useContext(Ae.aM),wn=(0,Se.F)(fn,ct);let vn;tt!==void 0?vn=tt:Ue==="combobox"?vn=null:vn=(je==null?void 0:je("Select"))||re.createElement(Ge.Z,{componentName:"Select"});const{suffixIcon:Kn,itemIcon:gn,removeIcon:Dn,clearIcon:tn}=(0,at.Z)(Object.assign(Object.assign({},we),{multiple:mt,hasFeedback:$n,feedbackIcon:pn,showSuffixIcon:Ht,prefixCls:sn,componentName:"Select"})),yn=nt===!0?{clearIcon:tn}:nt,un=(0,be.Z)(we,["suffixIcon","itemIcon"]),Tn=me()(jt||ye,{[`${sn}-dropdown-${on}`]:on==="rtl"},Me,ke,an,bn),Yn=(0,$e.Z)(jn=>{var xt;return(xt=bt!=null?bt:pt)!==null&&xt!==void 0?xt:jn}),zn=re.useContext(xe.Z),Bn=Te!=null?Te:zn,_n=me()({[`${sn}-lg`]:Yn==="large",[`${sn}-sm`]:Yn==="small",[`${sn}-rtl`]:on==="rtl",[`${sn}-${Ft}`]:Yt,[`${sn}-in-form-item`]:An},(0,Se.Z)(sn,wn,$n),dn,Vt.className,Ct,Me,ke,an,bn),Vn=re.useMemo(()=>st!==void 0?st:on==="rtl"?"bottomRight":"bottomLeft",[st,on]),[Qn]=(0,Ce.Cn)("SelectLike",ee==null?void 0:ee.zIndex);return Ln(re.createElement(We.ZP,Object.assign({ref:Be,virtual:dt,showSearch:Vt.showSearch},un,{style:Object.assign(Object.assign({},Vt.style),Lt),dropdownMatchSelectWidth:nn,transitionName:(0,Oe.m)(Jt,"slide-up",z),builtinPlacements:(0,yt.Z)(rn,kt),listHeight:de,listItemHeight:Tt,mode:Ue,prefixCls:sn,placement:Vn,direction:on,prefix:ne,suffixIcon:Kn,menuItemSelectedIcon:gn,removeIcon:Dn,allowClear:yn,notFoundContent:vn,className:_n,getPopupContainer:Et||Ve,dropdownClassName:Tn,disabled:Bn,dropdownStyle:Object.assign(Object.assign({},ee),{zIndex:Qn}),maxCount:mt?ue:void 0,tagRender:mt?ie:void 0})))},Ze=re.forwardRef(ht),ze=(0,Ke.Z)(Ze,"dropdownAlign");Ze.SECRET_COMBOBOX_MODE_DO_NOT_USE=Fe,Ze.Option=We.Wx,Ze.OptGroup=We.Xo,Ze._InternalPanelDoNotUseOrYouWillBeFired=ze,It.default=Ze},1722:function(Gt,It){"use strict";const le=et=>{const We={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:et==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},We),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},We),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},We),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},We),{points:["br","tr"],offset:[0,-4]})}};function re(et,me){return et||le(me)}It.Z=re},90376:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Xe}});var re=le(63356),et=le(56119),me=le(16931),We=le(51636),be=le(46e3),Ce=le(93873);const Oe=pe=>{const{optionHeight:Ct,optionFontSize:Me,optionLineHeight:Et,optionPadding:jt}=pe;return{position:"relative",display:"block",minHeight:Ct,padding:jt,color:pe.colorText,fontWeight:"normal",fontSize:Me,lineHeight:Et,boxSizing:"border-box"}};var Se=pe=>{const{antCls:Ct,componentCls:Me}=pe,Et=`${Me}-item`,jt=`&${Ct}-slide-up-enter${Ct}-slide-up-enter-active`,ye=`&${Ct}-slide-up-appear${Ct}-slide-up-appear-active`,de=`&${Ct}-slide-up-leave${Ct}-slide-up-leave-active`,st=`${Me}-dropdown-placement-`,Bt=`${Et}-option-selected`;return[{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,re.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[` ${jt}${st}bottomLeft, ${ye}${st}bottomLeft `]:{animationName:be.fJ},[` ${jt}${st}topLeft, ${ye}${st}topLeft, ${jt}${st}topRight, ${ye}${st}topRight `]:{animationName:be.Qt},[`${de}${st}bottomLeft`]:{animationName:be.Uw},[` ${de}${st}topLeft, ${de}${st}topRight `]:{animationName:be.ly},"&-hidden":{display:"none"},[Et]:Object.assign(Object.assign({},Oe(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},re.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Et}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${Et}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${Et}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${Et}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Oe(pe)),{color:pe.colorTextDisabled})}),[`${Bt}:has(+ ${Bt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Bt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,be.oN)(pe,"slide-up"),(0,be.oN)(pe,"slide-down"),(0,Ce.Fm)(pe,"move-up"),(0,Ce.Fm)(pe,"move-down")]},fe=le(26743),Ge=le(36237);function xe(pe,Ct){const{componentCls:Me,inputPaddingHorizontalBase:Et,borderRadius:jt}=pe,ye=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),de=Ct?`${Me}-${Ct}`:"";return{[`${Me}-single${de}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${Me}-selector`]:Object.assign(Object.assign({},(0,re.Wf)(pe,!0)),{display:"flex",borderRadius:jt,flex:"1 1 auto",[`${Me}-selection-wrap:after`]:{lineHeight:(0,Ge.unit)(ye)},[`${Me}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Me}-selection-item, ${Me}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Ge.unit)(ye),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Me}-selection-item:empty:after`,`${Me}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Me}-show-arrow ${Me}-selection-item, &${Me}-show-arrow ${Me}-selection-search, &${Me}-show-arrow ${Me}-selection-placeholder `]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${Me}-open ${Me}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${Me}-customize-input)`]:{[`${Me}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ge.unit)(Et)}`,[`${Me}-selection-search-input`]:{height:ye,fontSize:pe.fontSize},"&:after":{lineHeight:(0,Ge.unit)(ye)}}},[`&${Me}-customize-input`]:{[`${Me}-selector`]:{"&:after":{display:"none"},[`${Me}-selection-search`]:{position:"static",width:"100%"},[`${Me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ge.unit)(Et)}`,"&:after":{display:"none"}}}}}}}function ft(pe){const{componentCls:Ct}=pe,Me=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[xe(pe),xe((0,We.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${Ct}-single${Ct}-sm`]:{[`&:not(${Ct}-customize-input)`]:{[`${Ct}-selector`]:{padding:`0 ${(0,Ge.unit)(Me)}`},[`&${Ct}-show-arrow ${Ct}-selection-search`]:{insetInlineEnd:pe.calc(Me).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[` &${Ct}-show-arrow ${Ct}-selection-item, &${Ct}-show-arrow ${Ct}-selection-placeholder `]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},xe((0,We.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const $e=pe=>{const{fontSize:Ct,lineHeight:Me,lineWidth:Et,controlHeight:jt,controlHeightSM:ye,controlHeightLG:de,paddingXXS:st,controlPaddingHorizontal:Bt,zIndexPopupBase:bt,colorText:Te,fontWeightStrong:tt,controlItemBgActive:ct,controlItemBgHover:rn,colorBgContainer:wt,colorFillSecondary:Rt,colorBgContainerDisabled:_e,colorTextDisabled:Lt,colorPrimaryHover:nt,colorPrimary:ae,controlOutline:ee}=pe,z=st*2,ie=Et*2,ue=Math.min(jt-z,jt-ie),ne=Math.min(ye-z,ye-ie),we=Math.min(de-z,de-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(st/2),zIndexPopup:bt+50,optionSelectedColor:Te,optionSelectedFontWeight:tt,optionSelectedBg:ct,optionActiveBg:rn,optionPadding:`${(jt-Ct*Me)/2}px ${Bt}px`,optionFontSize:Ct,optionLineHeight:Me,optionHeight:jt,selectorBg:wt,clearBg:wt,singleItemHeightLG:de,multipleItemBg:Rt,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:ne,multipleItemHeightLG:we,multipleSelectorBgDisabled:_e,multipleItemColorDisabled:Lt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:nt,activeBorderColor:ae,activeOutlineColor:ee,selectAffixPadding:st}},Ae=(pe,Ct)=>{const{componentCls:Me,antCls:Et,controlOutlineWidth:jt}=pe;return{[`&:not(${Me}-customize-input) ${Me}-selector`]:{border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${Ct.borderColor}`,background:pe.selectorBg},[`&:not(${Me}-disabled):not(${Me}-customize-input):not(${Et}-pagination-size-changer)`]:{[`&:hover ${Me}-selector`]:{borderColor:Ct.hoverBorderHover},[`${Me}-focused& ${Me}-selector`]:{borderColor:Ct.activeBorderColor,boxShadow:`0 0 0 ${(0,Ge.unit)(jt)} ${Ct.activeOutlineColor}`,outline:0},[`${Me}-prefix`]:{color:Ct.color}}}},He=(pe,Ct)=>({[`&${pe.componentCls}-status-${Ct.status}`]:Object.assign({},Ae(pe,Ct))}),Le=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ae(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),He(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),He(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),rt=(pe,Ct)=>{const{componentCls:Me,antCls:Et}=pe;return{[`&:not(${Me}-customize-input) ${Me}-selector`]:{background:Ct.bg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:Ct.color},[`&:not(${Me}-disabled):not(${Me}-customize-input):not(${Et}-pagination-size-changer)`]:{[`&:hover ${Me}-selector`]:{background:Ct.hoverBg},[`${Me}-focused& ${Me}-selector`]:{background:pe.selectorBg,borderColor:Ct.activeBorderColor,outline:0}}}},yt=(pe,Ct)=>({[`&${pe.componentCls}-status-${Ct.status}`]:Object.assign({},rt(pe,Ct))}),St=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rt(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),yt(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),yt(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),at=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),Ye=(pe,Ct)=>{const{componentCls:Me,antCls:Et}=pe;return{[`&:not(${Me}-customize-input) ${Me}-selector`]:{borderWidth:`0 0 ${(0,Ge.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:Ct.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${Me}-disabled):not(${Me}-customize-input):not(${Et}-pagination-size-changer)`]:{[`&:hover ${Me}-selector`]:{borderColor:Ct.hoverBorderHover},[`${Me}-focused& ${Me}-selector`]:{borderColor:Ct.activeBorderColor,outline:0},[`${Me}-prefix`]:{color:Ct.color}}}},lt=(pe,Ct)=>({[`&${pe.componentCls}-status-${Ct.status}`]:Object.assign({},Ye(pe,Ct))}),Fe=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ye(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),lt(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),lt(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,Ge.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var Ze=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Le(pe)),St(pe)),at(pe)),Fe(pe))});const ze=pe=>{const{componentCls:Ct}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ct}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ct}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},gt=pe=>{const{componentCls:Ct}=pe;return{[`${Ct}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Be=pe=>{const{antCls:Ct,componentCls:Me,inputPaddingHorizontalBase:Et,iconCls:jt}=pe;return{[Me]:Object.assign(Object.assign({},(0,re.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Me}-customize-input) ${Me}-selector`]:Object.assign(Object.assign({},ze(pe)),gt(pe)),[`${Me}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},re.vS),{[`> ${Ct}-typography`]:{display:"inline"}}),[`${Me}-selection-placeholder`]:Object.assign(Object.assign({},re.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Me}-arrow`]:Object.assign(Object.assign({},(0,re.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Et,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[jt]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Me}-suffix)`]:{pointerEvents:"auto"}},[`${Me}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Me}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Me}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${Me}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Et,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${Me}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${Me}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Me}-has-feedback`]:{[`${Me}-clear`]:{insetInlineEnd:pe.calc(Et).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},qe=pe=>{const{componentCls:Ct}=pe;return[{[Ct]:{[`&${Ct}-in-form-item`]:{width:"100%"}}},Be(pe),ft(pe),(0,fe.ZP)(pe),Se(pe),{[`${Ct}-rtl`]:{direction:"rtl"}},(0,et.c)(pe,{borderElCls:`${Ct}-selector`,focusElCls:`${Ct}-focused`})]};var Xe=(0,me.I$)("Select",(pe,Ct)=>{let{rootPrefixCls:Me}=Ct;const Et=(0,We.mergeToken)(pe,{rootPrefixCls:Me,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[qe(Et),Ze(Et)]},$e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Gt,It,le){"use strict";le.d(It,{_z:function(){return Ce},gp:function(){return We}});var re=le(36237),et=le(63356),me=le(51636);const We=fe=>{const{multipleSelectItemHeight:Ge,paddingXXS:xe,lineWidth:ft,INTERNAL_FIXED_ITEM_MARGIN:$e}=fe,Ae=fe.max(fe.calc(xe).sub(ft).equal(),0),He=fe.max(fe.calc(Ae).sub($e).equal(),0);return{basePadding:Ae,containerPadding:He,itemHeight:(0,re.unit)(Ge),itemLineHeight:(0,re.unit)(fe.calc(Ge).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},be=fe=>{const{multipleSelectItemHeight:Ge,selectHeight:xe,lineWidth:ft}=fe;return fe.calc(xe).sub(Ge).div(2).sub(ft).equal()},Ce=fe=>{const{componentCls:Ge,iconCls:xe,borderRadiusSM:ft,motionDurationSlow:$e,paddingXS:Ae,multipleItemColorDisabled:He,multipleItemBorderColorDisabled:Le,colorIcon:rt,colorIconHover:yt,INTERNAL_FIXED_ITEM_MARGIN:St}=fe;return{[`${Ge}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Ge}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:St,borderRadius:ft,cursor:"default",transition:`font-size ${$e}, line-height ${$e}, height ${$e}`,marginInlineEnd:fe.calc(St).mul(2).equal(),paddingInlineStart:Ae,paddingInlineEnd:fe.calc(Ae).div(2).equal(),[`${Ge}-disabled&`]:{color:He,borderColor:Le,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(Ae).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,et.Ro)()),{display:"inline-flex",alignItems:"center",color:rt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${xe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:yt}})}}}},Oe=(fe,Ge)=>{const{componentCls:xe,INTERNAL_FIXED_ITEM_MARGIN:ft}=fe,$e=`${xe}-selection-overflow`,Ae=fe.multipleSelectItemHeight,He=be(fe),Le=Ge?`${xe}-${Ge}`:"",rt=We(fe);return{[`${xe}-multiple${Le}`]:Object.assign(Object.assign({},Ce(fe)),{[`${xe}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:rt.basePadding,paddingBlock:rt.containerPadding,borderRadius:fe.borderRadius,[`${xe}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,re.unit)(ft)} 0`,lineHeight:(0,re.unit)(Ae),visibility:"hidden",content:'"\\a0"'}},[`${xe}-selection-item`]:{height:rt.itemHeight,lineHeight:(0,re.unit)(rt.itemLineHeight)},[`${xe}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,re.unit)(Ae),marginBlock:ft}},[`${xe}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(rt.basePadding).equal()},[`${$e}-item + ${$e}-item, ${xe}-prefix + ${xe}-selection-wrap `]:{[`${xe}-selection-search`]:{marginInlineStart:0},[`${xe}-selection-placeholder`]:{insetInlineStart:0}},[`${$e}-item-suffix`]:{minHeight:rt.itemHeight,marginBlock:ft},[`${xe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(He).equal(),"\n &-input,\n &-mirror\n ":{height:Ae,fontFamily:fe.fontFamily,lineHeight:(0,re.unit)(Ae),transition:`all ${fe.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${xe}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(rt.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Ke(fe,Ge){const{componentCls:xe}=fe,ft=Ge?`${xe}-${Ge}`:"",$e={[`${xe}-multiple${ft}`]:{fontSize:fe.fontSize,[`${xe}-selector`]:{[`${xe}-show-search&`]:{cursor:"text"}},[` &${xe}-show-arrow ${xe}-selector, &${xe}-allow-clear ${xe}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Oe(fe,Ge),$e]}const Se=fe=>{const{componentCls:Ge}=fe,xe=(0,me.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),ft=(0,me.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Ke(fe),Ke(xe,"sm"),{[`${Ge}-multiple${Ge}-sm`]:{[`${Ge}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Ge}-selection-search`]:{marginInlineStart:2}}},Ke(ft,"lg")]};It.ZP=Se},68525:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});var re=le(59301),et=le(40001),me=le(19248),We=le(99267),be=le(84105),Ce=le(58617),Oe=le(47472);function Ke(Se){let{suffixIcon:fe,clearIcon:Ge,menuItemSelectedIcon:xe,removeIcon:ft,loading:$e,multiple:Ae,hasFeedback:He,prefixCls:Le,showSuffixIcon:rt,feedbackIcon:yt,showArrow:St,componentName:at}=Se;const Ye=Ge!=null?Ge:re.createElement(me.Z,null),lt=ze=>fe===null&&!He&&!St?null:re.createElement(re.Fragment,null,rt!==!1&&ze,He&&yt);let Fe=null;if(fe!==void 0)Fe=lt(fe);else if($e)Fe=lt(re.createElement(Ce.Z,{spin:!0}));else{const ze=`${Le}-suffix`;Fe=gt=>{let{open:Be,showSearch:qe}=gt;return lt(Be&&qe?re.createElement(Oe.Z,{className:ze}):re.createElement(be.Z,{className:ze}))}}let ht=null;xe!==void 0?ht=xe:Ae?ht=re.createElement(et.Z,null):ht=null;let Ze=null;return ft!==void 0?Ze=ft:Ze=re.createElement(We.Z,null),{clearIcon:Ye,suffixIcon:Fe,itemIcon:ht,removeIcon:Ze}}},90005:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return re}});function re(et,me){return me!==void 0?me:et!==null}},58755:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ct}});var re=le(59301),et=le(58617),me=le(92310),We=le.n(me),be=le(60499),Ce=le(18642),Oe=le(72190),Ke=le(42244),Se=le(18929),fe=le(10228),Ge=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xe=re.forwardRef(function(Me,Et){var jt,ye=Me.prefixCls,de=ye===void 0?"rc-switch":ye,st=Me.className,Bt=Me.checked,bt=Me.defaultChecked,Te=Me.disabled,tt=Me.loadingIcon,ct=Me.checkedChildren,rn=Me.unCheckedChildren,wt=Me.onClick,Rt=Me.onChange,_e=Me.onKeyDown,Lt=(0,Ke.Z)(Me,Ge),nt=(0,Se.Z)(!1,{value:Bt,defaultValue:bt}),ae=(0,Oe.Z)(nt,2),ee=ae[0],z=ae[1];function ie(Ve,Pt){var je=ee;return Te||(je=Ve,z(je),Rt==null||Rt(je,Pt)),je}function ue(Ve){Ve.which===fe.Z.LEFT?ie(!1,Ve):Ve.which===fe.Z.RIGHT&&ie(!0,Ve),_e==null||_e(Ve)}function ne(Ve){var Pt=ie(!ee,Ve);wt==null||wt(Pt,Ve)}var we=We()(de,st,(jt={},(0,Ce.Z)(jt,"".concat(de,"-checked"),ee),(0,Ce.Z)(jt,"".concat(de,"-disabled"),Te),jt));return re.createElement("button",(0,be.Z)({},Lt,{type:"button",role:"switch","aria-checked":ee,disabled:Te,className:we,ref:Et,onKeyDown:ue,onClick:ne}),tt,re.createElement("span",{className:"".concat(de,"-inner")},re.createElement("span",{className:"".concat(de,"-inner-checked")},ct),re.createElement("span",{className:"".concat(de,"-inner-unchecked")},rn)))});xe.displayName="Switch";var ft=xe,$e=le(12919),Ae=le(48755),He=le(2171),Le=le(31756),rt=le(36237),yt=le(17835),St=le(63356),at=le(16931),Ye=le(51636);const lt=Me=>{const{componentCls:Et,trackHeightSM:jt,trackPadding:ye,trackMinWidthSM:de,innerMinMarginSM:st,innerMaxMarginSM:Bt,handleSizeSM:bt,calc:Te}=Me,tt=`${Et}-inner`,ct=(0,rt.unit)(Te(bt).add(Te(ye).mul(2)).equal()),rn=(0,rt.unit)(Te(Bt).mul(2).equal());return{[Et]:{[`&${Et}-small`]:{minWidth:de,height:jt,lineHeight:(0,rt.unit)(jt),[`${Et}-inner`]:{paddingInlineStart:Bt,paddingInlineEnd:st,[`${tt}-checked, ${tt}-unchecked`]:{minHeight:jt},[`${tt}-checked`]:{marginInlineStart:`calc(-100% + ${ct} - ${rn})`,marginInlineEnd:`calc(100% - ${ct} + ${rn})`},[`${tt}-unchecked`]:{marginTop:Te(jt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Et}-handle`]:{width:bt,height:bt},[`${Et}-loading-icon`]:{top:Te(Te(bt).sub(Me.switchLoadingIconSize)).div(2).equal(),fontSize:Me.switchLoadingIconSize},[`&${Et}-checked`]:{[`${Et}-inner`]:{paddingInlineStart:st,paddingInlineEnd:Bt,[`${tt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tt}-unchecked`]:{marginInlineStart:`calc(100% - ${ct} + ${rn})`,marginInlineEnd:`calc(-100% + ${ct} - ${rn})`}},[`${Et}-handle`]:{insetInlineStart:`calc(100% - ${(0,rt.unit)(Te(bt).add(ye).equal())})`}},[`&:not(${Et}-disabled):active`]:{[`&:not(${Et}-checked) ${tt}`]:{[`${tt}-unchecked`]:{marginInlineStart:Te(Me.marginXXS).div(2).equal(),marginInlineEnd:Te(Me.marginXXS).mul(-1).div(2).equal()}},[`&${Et}-checked ${tt}`]:{[`${tt}-checked`]:{marginInlineStart:Te(Me.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Te(Me.marginXXS).div(2).equal()}}}}}}},Fe=Me=>{const{componentCls:Et,handleSize:jt,calc:ye}=Me;return{[Et]:{[`${Et}-loading-icon${Me.iconCls}`]:{position:"relative",top:ye(ye(jt).sub(Me.fontSize)).div(2).equal(),color:Me.switchLoadingIconColor,verticalAlign:"top"},[`&${Et}-checked ${Et}-loading-icon`]:{color:Me.switchColor}}}},ht=Me=>{const{componentCls:Et,trackPadding:jt,handleBg:ye,handleShadow:de,handleSize:st,calc:Bt}=Me,bt=`${Et}-handle`;return{[Et]:{[bt]:{position:"absolute",top:jt,insetInlineStart:jt,width:st,height:st,transition:`all ${Me.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ye,borderRadius:Bt(st).div(2).equal(),boxShadow:de,transition:`all ${Me.switchDuration} ease-in-out`,content:'""'}},[`&${Et}-checked ${bt}`]:{insetInlineStart:`calc(100% - ${(0,rt.unit)(Bt(st).add(jt).equal())})`},[`&:not(${Et}-disabled):active`]:{[`${bt}::before`]:{insetInlineEnd:Me.switchHandleActiveInset,insetInlineStart:0},[`&${Et}-checked ${bt}::before`]:{insetInlineEnd:0,insetInlineStart:Me.switchHandleActiveInset}}}}},Ze=Me=>{const{componentCls:Et,trackHeight:jt,trackPadding:ye,innerMinMargin:de,innerMaxMargin:st,handleSize:Bt,calc:bt}=Me,Te=`${Et}-inner`,tt=(0,rt.unit)(bt(Bt).add(bt(ye).mul(2)).equal()),ct=(0,rt.unit)(bt(st).mul(2).equal());return{[Et]:{[Te]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:st,paddingInlineEnd:de,transition:`padding-inline-start ${Me.switchDuration} ease-in-out, padding-inline-end ${Me.switchDuration} ease-in-out`,[`${Te}-checked, ${Te}-unchecked`]:{display:"block",color:Me.colorTextLightSolid,fontSize:Me.fontSizeSM,transition:`margin-inline-start ${Me.switchDuration} ease-in-out, margin-inline-end ${Me.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:jt},[`${Te}-checked`]:{marginInlineStart:`calc(-100% + ${tt} - ${ct})`,marginInlineEnd:`calc(100% - ${tt} + ${ct})`},[`${Te}-unchecked`]:{marginTop:bt(jt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Et}-checked ${Te}`]:{paddingInlineStart:de,paddingInlineEnd:st,[`${Te}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Te}-unchecked`]:{marginInlineStart:`calc(100% - ${tt} + ${ct})`,marginInlineEnd:`calc(-100% + ${tt} - ${ct})`}},[`&:not(${Et}-disabled):active`]:{[`&:not(${Et}-checked) ${Te}`]:{[`${Te}-unchecked`]:{marginInlineStart:bt(ye).mul(2).equal(),marginInlineEnd:bt(ye).mul(-1).mul(2).equal()}},[`&${Et}-checked ${Te}`]:{[`${Te}-checked`]:{marginInlineStart:bt(ye).mul(-1).mul(2).equal(),marginInlineEnd:bt(ye).mul(2).equal()}}}}}},ze=Me=>{const{componentCls:Et,trackHeight:jt,trackMinWidth:ye}=Me;return{[Et]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,St.Wf)(Me)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ye,height:jt,lineHeight:(0,rt.unit)(jt),verticalAlign:"middle",background:Me.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Et}-disabled)`]:{background:Me.colorTextTertiary}}),(0,St.Qy)(Me)),{[`&${Et}-checked`]:{background:Me.switchColor,[`&:hover:not(${Et}-disabled)`]:{background:Me.colorPrimaryHover}},[`&${Et}-loading, &${Et}-disabled`]:{cursor:"not-allowed",opacity:Me.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Et}-rtl`]:{direction:"rtl"}})}},gt=Me=>{const{fontSize:Et,lineHeight:jt,controlHeight:ye,colorWhite:de}=Me,st=Et*jt,Bt=ye/2,bt=2,Te=st-bt*2,tt=Bt-bt*2;return{trackHeight:st,trackHeightSM:Bt,trackMinWidth:Te*2+bt*4,trackMinWidthSM:tt*2+bt*2,trackPadding:bt,handleBg:de,handleSize:Te,handleSizeSM:tt,handleShadow:`0 2px 4px 0 ${new yt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Te/2,innerMaxMargin:Te+bt+bt*2,innerMinMarginSM:tt/2,innerMaxMarginSM:tt+bt+bt*2}};var Be=(0,at.I$)("Switch",Me=>{const Et=(0,Ye.mergeToken)(Me,{switchDuration:Me.motionDurationMid,switchColor:Me.colorPrimary,switchDisabledOpacity:Me.opacityLoading,switchLoadingIconSize:Me.calc(Me.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Me.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ze(Et),Ze(Et),ht(Et),Fe(Et),lt(Et)]},gt),qe=function(Me,Et){var jt={};for(var ye in Me)Object.prototype.hasOwnProperty.call(Me,ye)&&Et.indexOf(ye)<0&&(jt[ye]=Me[ye]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ye=Object.getOwnPropertySymbols(Me);de{const{prefixCls:jt,size:ye,disabled:de,loading:st,className:Bt,rootClassName:bt,style:Te,checked:tt,value:ct,defaultChecked:rn,defaultValue:wt,onChange:Rt}=Me,_e=qe(Me,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Lt,nt]=(0,Se.Z)(!1,{value:tt!=null?tt:ct,defaultValue:rn!=null?rn:wt}),{getPrefixCls:ae,direction:ee,switch:z}=re.useContext(Ae.E_),ie=re.useContext(He.Z),ue=(de!=null?de:ie)||st,ne=ae("switch",jt),we=re.createElement("div",{className:`${ne}-handle`},st&&re.createElement(et.Z,{className:`${ne}-loading-icon`})),[Ve,Pt,je]=Be(ne),Je=(0,Le.Z)(ye),dt=We()(z==null?void 0:z.className,{[`${ne}-small`]:Je==="small",[`${ne}-loading`]:st,[`${ne}-rtl`]:ee==="rtl"},Bt,bt,Pt,je),Dt=Object.assign(Object.assign({},z==null?void 0:z.style),Te),kt=function(){nt(arguments.length<=0?void 0:arguments[0]),Rt==null||Rt.apply(void 0,arguments)};return Ve(re.createElement($e.Z,{component:"Switch"},re.createElement(ft,Object.assign({},_e,{checked:Lt,onChange:kt,prefixCls:ne,className:dt,style:Dt,disabled:ue,ref:Et,loadingIcon:we}))))});pe.__ANT_SWITCH=!0;var Ct=pe},99498:function(Gt,It,le){(function(re){re(le(89780))})(function(re){re.defineOption("placeholder","",function(Ke,Se,fe){var Ge=fe&&fe!=re.Init;if(Se&&!Ge)Ke.on("blur",be),Ke.on("change",Ce),Ke.on("swapDoc",Ce),re.on(Ke.getInputField(),"compositionupdate",Ke.state.placeholderCompose=function(){We(Ke)}),Ce(Ke);else if(!Se&&Ge){Ke.off("blur",be),Ke.off("change",Ce),Ke.off("swapDoc",Ce),re.off(Ke.getInputField(),"compositionupdate",Ke.state.placeholderCompose),et(Ke);var xe=Ke.getWrapperElement();xe.className=xe.className.replace(" CodeMirror-empty","")}Se&&!Ke.hasFocus()&&be(Ke)});function et(Ke){Ke.state.placeholder&&(Ke.state.placeholder.parentNode.removeChild(Ke.state.placeholder),Ke.state.placeholder=null)}function me(Ke){et(Ke);var Se=Ke.state.placeholder=document.createElement("pre");Se.style.cssText="height: 0; overflow: visible",Se.style.direction=Ke.getOption("direction"),Se.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Ke.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Se.appendChild(fe),Ke.display.lineSpace.insertBefore(Se,Ke.display.lineSpace.firstChild)}function We(Ke){setTimeout(function(){var Se=!1,fe=Ke.getInputField();fe.nodeName=="TEXTAREA"?Se=!fe.value:Ke.lineCount()==1&&(Se=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Se?me(Ke):et(Ke)},20)}function be(Ke){Oe(Ke)&&me(Ke)}function Ce(Ke){var Se=Ke.getWrapperElement(),fe=Oe(Ke);Se.className=Se.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?me(Ke):et(Ke)}function Oe(Ke){return Ke.lineCount()===1&&Ke.getLine(0)===""}})},25717:function(Gt,It,le){(function(re){re(le(89780))})(function(re){var et={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},me=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Ae,He,Le){Le&&Le!=re.Init&&(Ae.removeKeyMap(be),Ae.state.closeBrackets=null),He&&(Ce(We(He,"pairs")),Ae.state.closeBrackets=He,Ae.addKeyMap(be))});function We(Ae,He){return He=="pairs"&&typeof Ae=="string"?Ae:typeof Ae=="object"&&Ae[He]!=null?Ae[He]:et[He]}var be={Backspace:Se,Enter:fe};function Ce(Ae){for(var He=0;He=0;yt--){var at=rt[yt].head;Ae.replaceRange("",me(at.line,at.ch-1),me(at.line,at.ch+1),"+delete")}}function fe(Ae){var He=Ke(Ae),Le=He&&We(He,"explode");if(!Le||Ae.getOption("disableInput"))return re.Pass;for(var rt=Ae.listSelections(),yt=0;yt0;return{anchor:new me(Ae.anchor.line,Ae.anchor.ch+(He?-1:1)),head:new me(Ae.head.line,Ae.head.ch+(He?1:-1))}}function xe(Ae,He){var Le=Ke(Ae);if(!Le||Ae.getOption("disableInput"))return re.Pass;var rt=We(Le,"pairs"),yt=rt.indexOf(He);if(yt==-1)return re.Pass;for(var St=We(Le,"closeBefore"),at=We(Le,"triples"),Ye=rt.charAt(yt+1)==He,lt=Ae.listSelections(),Fe=yt%2==0,ht,Ze=0;Ze=0&&Ae.getRange(gt,me(gt.line,gt.ch+3))==He+He+He?Be="skipThree":Be="skip";else if(Ye&>.ch>1&&at.indexOf(He)>=0&&Ae.getRange(me(gt.line,gt.ch-2),gt)==He+He){if(gt.ch>2&&/\bstring/.test(Ae.getTokenTypeAt(me(gt.line,gt.ch-2))))return re.Pass;Be="addFour"}else if(Ye){var Xe=gt.ch==0?" ":Ae.getRange(me(gt.line,gt.ch-1),gt);if(!re.isWordChar(qe)&&Xe!=He&&!re.isWordChar(Xe))Be="both";else return re.Pass}else if(Fe&&(qe.length===0||/\s/.test(qe)||St.indexOf(qe)>-1))Be="both";else return re.Pass;if(!ht)ht=Be;else if(ht!=Be)return re.Pass}var pe=yt%2?rt.charAt(yt-1):He,Ct=yt%2?He:rt.charAt(yt+1);Ae.operation(function(){if(ht=="skip")Ae.execCommand("goCharRight");else if(ht=="skipThree")for(var Me=0;Me<3;Me++)Ae.execCommand("goCharRight");else if(ht=="surround"){for(var Et=Ae.getSelections(),Me=0;Me'"]=function(ft){return We(ft)}),Se.addKeyMap(xe)}});var et=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],me=["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 We(Se){if(Se.getOption("disableInput"))return re.Pass;for(var fe=Se.listSelections(),Ge=[],xe=Se.getOption("autoCloseTags"),ft=0;ft$e.ch&&(yt=yt.slice(0,yt.length-Ae.end+$e.ch));var lt=yt.toLowerCase();if(!yt||Ae.type=="string"&&(Ae.end!=$e.ch||!/[\"\']/.test(Ae.string.charAt(Ae.string.length-1))||Ae.string.length==1)||Ae.type=="tag"&&rt.close||Ae.string.indexOf("/")==$e.ch-Ae.start-1||at&&Oe(at,lt)>-1||Ke(Se,He.mode.xmlCurrentContext&&He.mode.xmlCurrentContext(Le)||[],yt,$e,!0))return re.Pass;var Fe=typeof xe=="object"&&xe.emptyTags;if(Fe&&Oe(Fe,yt)>-1){Ge[ft]={text:"/>",newPos:re.Pos($e.line,$e.ch+2)};continue}var ht=Ye&&Oe(Ye,lt)>-1;Ge[ft]={indent:ht,text:">"+(ht?` `:"")+"",newPos:ht?re.Pos($e.line+1,0):re.Pos($e.line,$e.ch+1)}}for(var Ze=typeof xe=="object"&&xe.dontIndentOnAutoClose,ft=fe.length-1;ft>=0;ft--){var ze=Ge[ft];Se.replaceRange(ze.text,fe[ft].head,fe[ft].anchor,"+insert");var gt=Se.listSelections().slice(0);gt[ft]={head:ze.newPos,anchor:ze.newPos},Se.setSelections(gt),!Ze&&ze.indent&&(Se.indentLine(ze.newPos.line,null,!0),Se.indentLine(ze.newPos.line+1,null,!0))}}function be(Se,fe){for(var Ge=Se.listSelections(),xe=[],ft=fe?"/":""&&(at+=">"),xe[He]=at}if(Se.replaceSelections(xe),Ge=Se.listSelections(),!Ae)for(var He=0;He=0&&fe[Le]==Ge;Le--)++He;xe=Ae.to;for(var Le=1;Le=Le.max))return Le.ch=0,Le.text=Le.cm.getLine(++Le.line),!0}function fe(Le){if(!(Le.line<=Le.min))return Le.text=Le.cm.getLine(--Le.line),Le.ch=Le.text.length,!0}function Ge(Le){for(;;){var rt=Le.text.indexOf(">",Le.ch);if(rt==-1){if(Se(Le))continue;return}if(!Ke(Le,rt+1)){Le.ch=rt+1;continue}var yt=Le.text.lastIndexOf("/",rt),St=yt>-1&&!/\S/.test(Le.text.slice(yt+1,rt));return Le.ch=rt+1,St?"selfClose":"regular"}}function xe(Le){for(;;){var rt=Le.ch?Le.text.lastIndexOf("<",Le.ch-1):-1;if(rt==-1){if(fe(Le))continue;return}if(!Ke(Le,rt+1)){Le.ch=rt;continue}Ce.lastIndex=rt,Le.ch=rt;var yt=Ce.exec(Le.text);if(yt&&yt.index==rt)return yt}}function ft(Le){for(;;){Ce.lastIndex=Le.ch;var rt=Ce.exec(Le.text);if(!rt){if(Se(Le))continue;return}if(!Ke(Le,rt.index+1)){Le.ch=rt.index+1;continue}return Le.ch=rt.index+rt[0].length,rt}}function $e(Le){for(;;){var rt=Le.ch?Le.text.lastIndexOf(">",Le.ch-1):-1;if(rt==-1){if(fe(Le))continue;return}if(!Ke(Le,rt+1)){Le.ch=rt;continue}var yt=Le.text.lastIndexOf("/",rt),St=yt>-1&&!/\S/.test(Le.text.slice(yt+1,rt));return Le.ch=rt+1,St?"selfClose":"regular"}}function Ae(Le,rt){for(var yt=[];;){var St=ft(Le),at,Ye=Le.line,lt=Le.ch-(St?St[0].length:0);if(!St||!(at=Ge(Le)))return;if(at!="selfClose")if(St[1]){for(var Fe=yt.length-1;Fe>=0;--Fe)if(yt[Fe]==St[2]){yt.length=Fe;break}if(Fe<0&&(!rt||rt==St[2]))return{tag:St[2],from:et(Ye,lt),to:et(Le.line,Le.ch)}}else yt.push(St[2])}}function He(Le,rt){for(var yt=[];;){var St=$e(Le);if(!St)return;if(St=="selfClose"){xe(Le);continue}var at=Le.line,Ye=Le.ch,lt=xe(Le);if(!lt)return;if(lt[1])yt.push(lt[2]);else{for(var Fe=yt.length-1;Fe>=0;--Fe)if(yt[Fe]==lt[2]){yt.length=Fe;break}if(Fe<0&&(!rt||rt==lt[2]))return{tag:lt[2],from:et(Le.line,Le.ch),to:et(at,Ye)}}}}re.registerHelper("fold","xml",function(Le,rt){for(var yt=new Oe(Le,rt.line,0);;){var St=ft(yt);if(!St||yt.line!=rt.line)return;var at=Ge(yt);if(!at)return;if(!St[1]&&at!="selfClose"){var Ye=et(yt.line,yt.ch),lt=Ae(yt,St[2]);return lt&&me(lt.from,Ye)>0?{from:Ye,to:lt.from}:null}}}),re.findMatchingTag=function(Le,rt,yt){var St=new Oe(Le,rt.line,rt.ch,yt);if(!(St.text.indexOf(">")==-1&&St.text.indexOf("<")==-1)){var at=Ge(St),Ye=at&&et(St.line,St.ch),lt=at&&xe(St);if(!(!at||!lt||me(St,rt)>0)){var Fe={from:et(St.line,St.ch),to:Ye,tag:lt[2]};return at=="selfClose"?{open:Fe,close:null,at:"open"}:lt[1]?{open:He(St,lt[2]),close:Fe,at:"close"}:(St=new Oe(Le,Ye.line,Ye.ch,yt),{open:Fe,close:Ae(St,lt[2]),at:"open"})}}},re.findEnclosingTag=function(Le,rt,yt,St){for(var at=new Oe(Le,rt.line,rt.ch,yt);;){var Ye=He(at,St);if(!Ye)break;var lt=new Oe(Le,rt.line,rt.ch,yt),Fe=Ae(lt,Ye.tag);if(Fe)return{open:Ye,close:Fe}}},re.scanForClosingTag=function(Le,rt,yt,St){var at=new Oe(Le,rt.line,rt.ch,St?{from:0,to:St}:null);return Ae(at,yt)}})},89780:function(Gt){(function(It,le){Gt.exports=le()})(this,function(){"use strict";var It=navigator.userAgent,le=navigator.platform,re=/gecko\/\d/i.test(It),et=/MSIE \d/.test(It),me=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(It),We=/Edge\/(\d+)/.exec(It),be=et||me||We,Ce=be&&(et?document.documentMode||6:+(We||me)[1]),Oe=!We&&/WebKit\//.test(It),Ke=Oe&&/Qt\/\d+\.\d+/.test(It),Se=!We&&/Chrome\//.test(It),fe=/Opera\//.test(It),Ge=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(It),ft=/PhantomJS/.test(It),$e=!We&&/AppleWebKit/.test(It)&&/Mobile\/\w+/.test(It),Ae=/Android/.test(It),He=$e||Ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(It),Le=$e||/Mac/.test(le),rt=/\bCrOS\b/.test(It),yt=/win/i.test(le),St=fe&&It.match(/Version\/(\d*\.\d*)/);St&&(St=Number(St[1])),St&&St>=15&&(fe=!1,Oe=!0);var at=Le&&(Ke||fe&&(St==null||St<12.11)),Ye=re||be&&Ce>=9;function lt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Fe=function(a,y){var x=a.className,b=lt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function ht(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ze(a,y){return ht(a).appendChild(y)}function ze(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var te=0;te=y)return oe+(y-te);oe+=se-te,oe+=x-oe%x,te=se+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};de.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},de.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x=y)return b+Math.min(oe,y-E);if(E+=te-b,E+=x-E%x,b=te+1,E>=y)return b}}var wt=[""];function Rt(a){for(;wt.length<=a;)wt.push(_e(wt)+" ");return wt[a]}function _e(a){return a[a.length-1]}function Lt(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||z.test(a))}function ue(a,y){return y?y.source.indexOf("\\w")>-1&&ie(a)?!0:y.test(a):ie(a)}function ne(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var we=/[\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 Ve(a){return a.charCodeAt(0)>=768&&we.test(a)}function Pt(a,y,x){for(;(x<0?y>0:yx?-1:1;;){if(y==x)return y;var E=(y+x)/2,te=b<0?Math.ceil(E):Math.floor(E);if(te==y)return a(te)?y:x;a(te)?x=te:y=te+b}}function Je(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,te=0;tey||y==x&&oe.to==y)&&(b(Math.max(oe.from,y),Math.min(oe.to,x),oe.level==1?"rtl":"ltr",te),E=!0)}E||b(y,x,"ltr")}var dt=null;function Dt(a,y,x){var b;dt=null;for(var E=0;Ey)return E;te.to==y&&(te.from!=te.to&&x=="before"?b=E:dt=E),te.from==y&&(te.from!=te.to&&x!="before"?b=E:dt=E)}return b!=null?b:dt}var kt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(he){return he<=247?a.charAt(he):1424<=he&&he<=1524?"R":1536<=he&&he<=1785?y.charAt(he-1536):1774<=he&&he<=2220?"r":8192<=he&&he<=8203?"w":he==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,te=/[LRr]/,oe=/[Lb1n]/,se=/[1n]/;function ce(he,Ie,Ne){this.level=he,this.from=Ie,this.to=Ne}return function(he,Ie){var Ne=Ie=="ltr"?"L":"R";if(he.length==0||Ie=="ltr"&&!b.test(he))return!1;for(var vt=he.length,ot=[],zt=0;zt-1&&(b[y]=E.slice(0,te).concat(E.slice(te+1)))}}}function on(a,y){var x=sn(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E0}function Yt(a){a.prototype.on=function(y,x){Tt(this,y,x)},a.prototype.off=function(y,x){Jt(this,y,x)}}function an(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ln(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function bn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function ke(a){an(a),Ln(a)}function Ue(a){return a.target||a.srcElement}function mt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Le&&a.ctrlKey&&y==1&&(y=3),y}var Ht=function(){if(be&&Ce<9)return!1;var a=ze("div");return"draggable"in a||"dragDrop"in a}(),nn;function fn(a){if(nn==null){var y=ze("span","\u200B");Ze(a,ze("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(nn=y.offsetWidth<=1&&y.offsetHeight>2&&!(be&&Ce<8))}var x=nn?ze("span","\u200B"):ze("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var $n;function An(a){if($n!=null)return $n;var y=Ze(a,document.createTextNode("A\u062EA")),x=Be(y,0,1).getBoundingClientRect(),b=Be(y,1,2).getBoundingClientRect();return ht(a),!x||x.left==x.right?!1:$n=b.right-x.right<3}var pn=` b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(` `,y);E==-1&&(E=a.length);var te=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),oe=te.indexOf("\r");oe!=-1?(x.push(te.slice(0,oe)),y+=oe+1):(x.push(te),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},wn=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},vn=function(){var a=ze("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Kn=null;function gn(a){if(Kn!=null)return Kn;var y=Ze(a,ze("span","x")),x=y.getBoundingClientRect(),b=Be(y,0,1).getBoundingClientRect();return Kn=Math.abs(x.left-b.left)>1}var Dn={},tn={};function yn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Dn[a]=y}function un(a,y){tn[a]=y}function Tn(a){if(typeof a=="string"&&tn.hasOwnProperty(a))a=tn[a];else if(a&&typeof a.name=="string"&&tn.hasOwnProperty(a.name)){var y=tn[a.name];typeof y=="string"&&(y={name:y}),a=ee(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Yn(a,y){y=Tn(y);var x=Dn[y.name];if(!x)return Yn(a,"text/plain");var b=x(a,y);if(zn.hasOwnProperty(y.name)){var E=zn[y.name];for(var te in E)E.hasOwnProperty(te)&&(b.hasOwnProperty(te)&&(b["_"+te]=b[te]),b[te]=E[te])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var oe in y.modeProps)b[oe]=y.modeProps[oe];return b}var zn={};function Bn(a,y){var x=zn.hasOwnProperty(a)?zn[a]:zn[a]={};jt(y,x)}function _n(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Vn(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 Qn(a,y,x){return a.startState?a.startState(y,x):!0}var jn=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};jn.prototype.eol=function(){return this.pos>=this.string.length},jn.prototype.sol=function(){return this.pos==this.lineStart},jn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},jn.prototype.next=function(){if(this.posy},jn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},jn.prototype.skipToEnd=function(){this.pos=this.string.length},jn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},jn.prototype.backUp=function(a){this.pos-=a},jn.prototype.column=function(){return this.lastColumnPos0?null:(te&&y!==!1&&(this.pos+=te[0].length),te)}},jn.prototype.current=function(){return this.string.slice(this.start,this.pos)},jn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},jn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},jn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function xt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],te=E.chunkSize();if(y=a.first&&yx?ge(x,xt(a,x).text.length):it(y,xt(a,y.line).text.length)}function it(a,y){var x=a.ch;return x==null||x>y?ge(a.line,y):x<0?ge(a.line,0):a}function Zt(a,y){for(var x=[],b=0;bthis.maxLookAhead&&(this.maxLookAhead=a),y},ln.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}},ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ln.fromSaved=function(a,y,x){return y instanceof hn?new ln(a,_n(a.mode,y.state),x,y.lookAhead):new ln(a,_n(a.mode,y),x)},ln.prototype.save=function(a){var y=a!==!1?_n(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new hn(y,this.maxLookAhead):y};function cn(a,y,x,b){var E=[a.state.modeGen],te={};qn(a,y.text,a.doc.mode,x,function(he,Ie){return E.push(he,Ie)},te,b);for(var oe=x.state,se=function(he){x.baseTokens=E;var Ie=a.state.overlays[he],Ne=1,vt=0;x.state=!0,qn(a,y.text,Ie.mode,x,function(ot,zt){for(var en=Ne;vtot&&E.splice(Ne,1,ot,E[Ne+1],mn),Ne+=2,vt=Math.min(ot,mn)}if(zt)if(Ie.opaque)E.splice(en,Ne-en,ot,"overlay "+zt),Ne=en+2;else for(;ena.options.maxHighlightLength&&_n(a.doc.mode,b.state),te=cn(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=te.styles,te.classes?y.styleClasses=te.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 Xn(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new ln(b,!0,y);var te=lr(a,y,x),oe=te>b.first&&xt(b,te-1).stateAfter,se=oe?ln.fromSaved(b,oe,te):new ln(b,Qn(b.mode),te);return b.iter(te,y,function(ce){Jn(a,ce.text,se);var he=se.line;ce.stateAfter=he==y-1||he%5==0||he>=E.viewFrom&&hey.start)return te}throw new Error("Mode "+a.name+" failed to advance stream.")}var Pn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Hn(a,y,x,b){var E=a.doc,te=E.mode,oe;y=ut(E,y);var se=xt(E,y.line),ce=Xn(a,y.line,x),he=new jn(se.text,a.options.tabSize,ce),Ie;for(b&&(Ie=[]);(b||he.posa.options.maxHighlightLength?(se=!1,oe&&Jn(a,y,b,Ie.pos),Ie.pos=y.length,Ne=null):Ne=ur(Sn(x,Ie,b.state,vt),te),vt){var ot=vt[0].name;ot&&(Ne="m-"+(Ne?ot+" "+Ne:ot))}if(!se||he!=Ne){for(;ceoe;--se){if(se<=te.first)return te.first;var ce=xt(te,se-1),he=ce.stateAfter;if(he&&(!x||se+(he instanceof hn?he.lookAhead:0)<=te.modeFrontier))return se;var Ie=ye(ce.text,null,a.options.tabSize);(E==null||b>Ie)&&(E=se-1,b=Ie)}return E}function ir(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=xt(a,b).stateAfter;if(E&&(!(E instanceof hn)||b+E.lookAhead=y:te.to>y);(b||(b=[])).push(new cr(oe,te.from,ce?null:te.to))}}return b}function Fn(a,y,x){var b;if(a)for(var E=0;E=y:te.to>y);if(se||te.from==y&&oe.type=="bookmark"&&(!x||te.marker.insertLeft)){var ce=te.from==null||(oe.inclusiveLeft?te.from<=y:te.from0&&se)for(var Wn=0;Wn0)){var Ie=[ce,1],Ne=Pe(he.from,se.from),vt=Pe(he.to,se.to);(Ne<0||!oe.inclusiveLeft&&!Ne)&&Ie.push({from:he.from,to:se.from}),(vt>0||!oe.inclusiveRight&&!vt)&&Ie.push({from:se.to,to:he.to}),E.splice.apply(E,Ie),ce+=Ie.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;xy)&&(!b||zr(b,te.marker)<0)&&(b=te.marker)}return b}function Xt(a,y,x,b,E){var te=xt(a,y),oe=tr&&te.markedSpans;if(oe)for(var se=0;se=0&&Ne<=0||Ie<=0&&Ne>=0)&&(Ie<=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Pe(he.to,x)>=0:Pe(he.to,x)>0)||Ie>=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Pe(he.from,b)<=0:Pe(he.from,b)<0)))return!0}}}function Ot(a){for(var y;y=Gn(a);)a=y.find(-1,!0).line;return a}function En(a){for(var y;y=_t(a);)a=y.find(1,!0).line;return a}function On(a){for(var y,x;y=_t(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Ut(a,y){var x=xt(a,y),b=Ot(x);return x==b?y:Ee(b)}function Kt(a,y){if(y>a.lastLine())return y;var x=xt(a,y),b;if(!xn(a,x))return y;for(;b=_t(x);)x=b.find(1,!0).line;return Ee(x)+1}function xn(a,y){var x=tr&&y.markedSpans;if(x){for(var b=void 0,E=0;Ey.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Ir=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Ir.prototype.lineNo=function(){return Ee(this)},Yt(Ir);function Dr(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),Br(a,x);var E=b?b(a):1;E!=a.height&&Un(a,E)}function Tr(a){a.parent=null,Er(a)}var Hr={},Or={};function _r(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Or:Hr;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=gt("span",null,null,Oe?"padding-right: .1px":null),b={pre:gt("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var te=E?y.rest[E-1]:y.line,oe=void 0;b.pos=0,b.addToken=Fi,An(a.display.measure)&&(oe=Vt(te,a.doc.direction))&&(b.addToken=mi(b.addToken,oe)),b.map=[];var se=y!=a.display.externalMeasured&&Ee(te);Ar(te,b,Zn(a,te,se)),te.styleClasses&&(te.styleClasses.bgClass&&(b.bgClass=Ct(te.styleClasses.bgClass,b.bgClass||"")),te.styleClasses.textClass&&(b.textClass=Ct(te.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(fn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Oe){var ce=b.content.lastChild;(/\bcm-tab\b/.test(ce.className)||ce.querySelector&&ce.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return on(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Ct(b.pre.className,b.textClass||"")),b}function Di(a){var y=ze("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Fi(a,y,x,b,E,te,oe){if(y){var se=a.splitSpaces?xi(y,a.trailingSpace):y,ce=a.cm.state.specialChars,he=!1,Ie;if(!ce.test(y))a.col+=y.length,Ie=document.createTextNode(se),a.map.push(a.pos,a.pos+y.length,Ie),be&&Ce<9&&(he=!0),a.pos+=y.length;else{Ie=document.createDocumentFragment();for(var Ne=0;;){ce.lastIndex=Ne;var vt=ce.exec(y),ot=vt?vt.index-Ne:y.length-Ne;if(ot){var zt=document.createTextNode(se.slice(Ne,Ne+ot));be&&Ce<9?Ie.appendChild(ze("span",[zt])):Ie.appendChild(zt),a.map.push(a.pos,a.pos+ot,zt),a.col+=ot,a.pos+=ot}if(!vt)break;Ne+=ot+1;var en=void 0;if(vt[0]==" "){var mn=a.cm.options.tabSize,kn=mn-a.col%mn;en=Ie.appendChild(ze("span",Rt(kn),"cm-tab")),en.setAttribute("role","presentation"),en.setAttribute("cm-text"," "),a.col+=kn}else vt[0]=="\r"||vt[0]==` `?(en=Ie.appendChild(ze("span",vt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),en.setAttribute("cm-text",vt[0]),a.col+=1):(en=a.cm.options.specialCharPlaceholder(vt[0]),en.setAttribute("cm-text",vt[0]),be&&Ce<9?Ie.appendChild(ze("span",[en])):Ie.appendChild(en),a.col+=1);a.map.push(a.pos,a.pos+1,en),a.pos++}}if(a.trailingSpace=se.charCodeAt(y.length-1)==32,x||b||E||he||te||oe){var Rn=x||"";b&&(Rn+=b),E&&(Rn+=E);var Mn=ze("span",[Ie],Rn,te);if(oe)for(var Wn in oe)oe.hasOwnProperty(Wn)&&Wn!="style"&&Wn!="class"&&Mn.setAttribute(Wn,oe[Wn]);return a.content.appendChild(Mn)}a.content.appendChild(Ie)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Ehe&&Ne.from<=he));vt++);if(Ne.to>=Ie)return a(x,b,E,te,oe,se,ce);a(x,b.slice(0,Ne.to-he),E,te,null,se,ce),te=null,b=b.slice(Ne.to-he),he=Ne.to}}}function Yi(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function Ar(a,y,x){var b=a.markedSpans,E=a.text,te=0;if(!b){for(var oe=1;oece||Sr.collapsed&&nr.to==ce&&nr.from==ce)){if(nr.to!=null&&nr.to!=ce&&ot>nr.to&&(ot=nr.to,en=""),Sr.className&&(zt+=" "+Sr.className),Sr.css&&(vt=(vt?vt+";":"")+Sr.css),Sr.startStyle&&nr.from==ce&&(mn+=" "+Sr.startStyle),Sr.endStyle&&nr.to==ot&&(Wn||(Wn=[])).push(Sr.endStyle,nr.to),Sr.title&&((Rn||(Rn={})).title=Sr.title),Sr.attributes)for(var $r in Sr.attributes)(Rn||(Rn={}))[$r]=Sr.attributes[$r];Sr.collapsed&&(!kn||zr(kn.marker,Sr)<0)&&(kn=nr)}else nr.from>ce&&ot>nr.from&&(ot=nr.from)}if(Wn)for(var li=0;li=se)break;for(var Oi=Math.min(se,ot);;){if(Ie){var Ei=ce+Ie.length;if(!kn){var qr=Ei>Oi?Ie.slice(0,Oi-ce):Ie;y.addToken(y,qr,Ne?Ne+zt:zt,mn,ce+qr.length==ot?en:"",vt,Rn)}if(Ei>=Oi){Ie=Ie.slice(Oi-ce),ce=Oi;break}ce=Ei,mn=""}Ie=E.slice(te,te=x[he++]),Ne=_r(x[he++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=On(y),this.size=this.rest?Ee(_e(this.rest))-x+1:1,this.node=this.text=null,this.hidden=xn(a,y)}function ni(a,y,x){for(var b=[],E,te=y;te2&&te.push((ce.bottom+he.top)/2-x.top)}}te.push(x.bottom-x.top)}}function Lo(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;bx)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function _a(a,y){y=Ot(y);var x=Ee(y),b=a.display.externalMeasured=new to(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,Ze(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Wi(a,uo(a,y),x,b)}function qi(a,y){if(y>=a.display.viewFrom&&y=x.lineN&&yy)&&(te=ce-se,E=te-1,y>=ce&&(oe="right")),E!=null){if(b=a[he+2],se==ce&&x==(b.insertLeft?"left":"right")&&(oe=x),x=="left"&&E==0)for(;he&&a[he-2]==a[he-3]&&a[he-1].insertLeft;)b=a[(he-=3)+2],oe="left";if(x=="right"&&E==ce-se)for(;he=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),te=E.node,oe=E.start,se=E.end,ce=E.collapse,he;if(te.nodeType==3){for(var Ie=0;Ie<4;Ie++){for(;oe&&Ve(y.line.text.charAt(E.coverStart+oe));)--oe;for(;E.coverStart+se0&&(ce=b="right");var Ne;a.options.lineWrapping&&(Ne=te.getClientRects()).length>1?he=Ne[b=="right"?Ne.length-1:0]:he=te.getBoundingClientRect()}if(be&&Ce<9&&!oe&&(!he||!he.left&&!he.right)){var vt=te.parentNode.getClientRects()[0];vt?he={left:vt.left,right:vt.left+Vi(a.display),top:vt.top,bottom:vt.bottom}:he=ba}for(var ot=he.top-y.rect.top,zt=he.bottom-y.rect.top,en=(ot+zt)/2,mn=y.view.measure.heights,kn=0;kn=b.text.length?(ce=b.text.length,he="before"):ce<=0&&(ce=0,he="after"),!se)return oe(he=="before"?ce-1:ce,he=="before");function Ie(zt,en,mn){var kn=se[en],Rn=kn.level==1;return oe(mn?zt-1:zt,Rn!=mn)}var Ne=Dt(se,ce,he),vt=dt,ot=Ie(ce,Ne,he=="before");return vt!=null&&(ot.other=Ie(ce,vt,he!="before")),ot}function Pr(a,y){var x=0;y=ut(a.doc,y),a.options.lineWrapping||(x=Vi(a.display)*y.ch);var b=xt(a.doc,y.line),E=rr(b)+Yr(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function xr(a,y,x,b,E){var te=ge(a,y,x);return te.xRel=E,b&&(te.outside=b),te}function ci(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return xr(b.first,0,null,-1,-1);var E=Re(b,x),te=b.first+b.size-1;if(E>te)return xr(b.first+b.size-1,xt(b,te).text.length,null,1,1);y<0&&(y=0);for(var oe=xt(b,E);;){var se=Gi(a,oe,E,y,x),ce=qt(oe,se.ch+(se.xRel>0||se.outside>0?1:0));if(!ce)return se;var he=ce.find(1);if(he.line==E)return he;oe=xt(b,E=he.line)}}function fi(a,y,x,b){b-=Xo(y);var E=y.text.length,te=je(function(oe){return Wi(a,x,oe-1).bottom<=b},E,0);return E=je(function(oe){return Wi(a,x,oe).top>b},te,E),{begin:te,end:E}}function Xr(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Wi(a,x,b),"line").top;return fi(a,y,x,E)}function ri(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Gi(a,y,x,b,E){E-=rr(y);var te=uo(a,y),oe=Xo(y),se=0,ce=y.text.length,he=!0,Ie=Vt(y,a.doc.direction);if(Ie){var Ne=(a.options.lineWrapping?ro:ji)(a,y,x,te,Ie,b,E);he=Ne.level!=1,se=he?Ne.from:Ne.to-1,ce=he?Ne.to:Ne.from-1}var vt=null,ot=null,zt=je(function(sr){var nr=Wi(a,te,sr);return nr.top+=oe,nr.bottom+=oe,ri(nr,b,E,!1)?(nr.top<=E&&nr.left<=b&&(vt=sr,ot=nr),!0):!1},se,ce),en,mn,kn=!1;if(ot){var Rn=b-ot.left=Wn.bottom?1:0}return zt=Pt(y.text,zt,1),xr(x,zt,mn,kn,b-en)}function ji(a,y,x,b,E,te,oe){var se=je(function(Ne){var vt=E[Ne],ot=vt.level!=1;return ri(Ci(a,ge(x,ot?vt.to:vt.from,ot?"before":"after"),"line",y,b),te,oe,!0)},0,E.length-1),ce=E[se];if(se>0){var he=ce.level!=1,Ie=Ci(a,ge(x,he?ce.from:ce.to,he?"after":"before"),"line",y,b);ri(Ie,te,oe,!0)&&Ie.top>oe&&(ce=E[se-1])}return ce}function ro(a,y,x,b,E,te,oe){var se=fi(a,y,b,oe),ce=se.begin,he=se.end;/\s/.test(y.text.charAt(he-1))&&he--;for(var Ie=null,Ne=null,vt=0;vt=he||ot.to<=ce)){var zt=ot.level!=1,en=Wi(a,b,zt?Math.min(he,ot.to)-1:Math.max(ce,ot.from)).right,mn=enmn)&&(Ie=ot,Ne=mn)}}return Ie||(Ie=E[E.length-1]),Ie.fromhe&&(Ie={from:Ie.from,to:he,level:Ie.level}),Ie}var Ii;function Li(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Ii==null){Ii=ze("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Ii.appendChild(document.createTextNode("x")),Ii.appendChild(ze("br"));Ii.appendChild(document.createTextNode("x"))}Ze(a.measure,Ii);var x=Ii.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),ht(a.measure),x||1}function Vi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ze("span","xxxxxxxxxx"),x=ze("pre",[y],"CodeMirror-line-like");Ze(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,te=y.gutters.firstChild,oe=0;te;te=te.nextSibling,++oe){var se=a.display.gutterSpecs[oe].className;x[se]=te.offsetLeft+te.clientLeft+E,b[se]=te.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=Li(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Vi(a.display)-3);return function(E){if(xn(a.doc,E))return 0;var te=0;if(E.widgets)for(var oe=0;oe0&&(he=xt(a.doc,ce.line).text).length==ce.ch){var Ie=ye(he,he.length,a.options.tabSize)-he.length;ce=ge(ce.line,Math.max(0,Math.round((te-Ji(a.display).left)/Vi(a.display))-Ie))}return ce}function So(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;by)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)tr&&Ut(a.doc,y)E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var te=Ea(a,x,x+b,1);te?(E.view=E.view.slice(te.index),E.viewFrom=te.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var oe=Ea(a,y,y,-1);oe?(E.view=E.view.slice(0,oe.index),E.viewTo=oe.lineN):ho(a)}else{var se=Ea(a,y,y,-1),ce=Ea(a,x,x+b,1);se&&ce?(E.view=E.view.slice(0,se.index).concat(ni(a,se.lineN,ce.lineN)).concat(E.view.slice(ce.index)),E.viewTo+=b):ho(a)}var he=E.externalMeasured;he&&(x=E.lineN&&y=b.viewTo)){var te=b.view[So(a,y)];if(te.node!=null){var oe=te.changes||(te.changes=[]);st(oe,x)==-1&&oe.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),te,oe=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var se=a.display.viewFrom,ce=0;ce0){if(E==oe.length-1)return null;te=se+oe[E].size-y,E++}else te=se-y;y+=te,x+=te}for(;Ut(a.doc,x)!=x;){if(E==(b<0?0:oe.length-1))return null;x+=b*oe[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function Hs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=ni(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=ni(a,y,b.viewFrom).concat(b.view):b.viewFromx&&(b.view=b.view.slice(0,So(a,x)))),b.viewTo=x}function wl(a){for(var y=a.display.view,x=0,b=0;b=a.display.viewTo||se.to().line0?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 kl(a){a.state.focused||(a.display.input.focus(),Xa(a))}function Ml(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ao(a))},100)}function Xa(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(on(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Oe&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ya(a))}function Ao(a,y){a.state.delayingBlurEvent||(a.state.focused&&(on(a,"blur",a,y),a.state.focused=!1,Fe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ma(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b.005||Ie<-.005)&&(Un(E.line,oe),Dl(E.line),E.rest))for(var Ne=0;Nea.display.sizerWidth){var vt=Math.ceil(se/Vi(a.display));vt>a.display.maxLineLength&&(a.display.maxLineLength=vt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Dl(a){if(a.widgets)for(var y=0;y=oe&&(te=Re(y,rr(xt(y,ce))-a.wrapper.clientHeight),oe=ce)}return{from:te,to:Math.max(oe,te+1)}}function js(a,y){if(!pt(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!ft){var te=ze("div","\u200B",null,`position: absolute; top: `+(y.top-x.viewOffset-Yr(a.display))+`px; height: `+(y.bottom-y.top+Pi(a)+x.barHeight)+`px; left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(te),te.scrollIntoView(E),a.display.lineSpace.removeChild(te)}}}function Zs(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?ge(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?ge(y.line,y.ch+1,"before"):y);for(var te=0;te<5;te++){var oe=!1,se=Ci(a,y),ce=!x||x==y?se:Ci(a,x);E={left:Math.min(se.left,ce.left),top:Math.min(se.top,ce.top)-b,right:Math.max(se.left,ce.left),bottom:Math.max(se.bottom,ce.bottom)+b};var he=Ja(a,E),Ie=a.doc.scrollTop,Ne=a.doc.scrollLeft;if(he.scrollTop!=null&&(qo(a,he.scrollTop),Math.abs(a.doc.scrollTop-Ie)>1&&(oe=!0)),he.scrollLeft!=null&&(Eo(a,he.scrollLeft),Math.abs(a.doc.scrollLeft-Ne)>1&&(oe=!0)),!oe)break}return E}function $s(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=Li(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,te=no(a),oe={};y.bottom-y.top>te&&(y.bottom=y.top+te);var se=a.doc.height+Hi(x),ce=y.topse-b;if(y.topE+te){var Ie=Math.min(y.top,(he?se:y.bottom)-te);Ie!=E&&(oe.scrollTop=Ie)}var Ne=a.options.fixedGutter?0:x.gutters.offsetWidth,vt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-Ne,ot=Qi(a)-x.gutters.offsetWidth,zt=y.right-y.left>ot;return zt&&(y.right=y.left+ot),y.left<10?oe.scrollLeft=0:y.leftot+vt-3&&(oe.scrollLeft=y.right+(zt?0:10)-ot),oe}function Qa(a,y){y!=null&&(Pa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Bo(a){Pa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Pa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function _s(a,y){Pa(a),a.curOp.scrollToPos=y}function Pa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=Pr(a,y.from),b=Pr(a,y.to);Pl(a,x,b,y.margin)}}function Pl(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(re||el(a,{top:y}),Il(a,y,!0),re&&el(a),na(a,100))}function Il(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,Bl(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+Hi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Pi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var ko=function(a,y,x){this.cm=x;var b=this.vert=ze("div",[ze("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ze("div",[ze("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),Tt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),Tt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&Ce<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ko.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var te=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+te)+"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}},ko.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ko.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ko.prototype.zeroWidthHack=function(){var a=Le&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new de,this.disableVert=new de},ko.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),te=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);te!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},ko.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Ll(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Ma(a),Ll(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Ll(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 Tl={native:ko,null:ta};function Ol(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Fe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[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&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Gs=0;function Mo(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gs},ao(a.curOp)}function Do(a){var y=a.curOp;y&&vi(y,function(x){for(var b=0;b=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Ia(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Ys(a){var y=a.cm,x=y.display;a.updatedDisplay&&Ma(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Pi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Qi(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Xs(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Xn(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(te){if(b.line>=a.display.viewFrom){var oe=te.styles,se=te.text.length>a.options.maxHighlightLength?_n(y.mode,b.state):null,ce=cn(a,te,b,!0);se&&(b.state=se),te.styles=ce.styles;var he=te.styleClasses,Ie=ce.classes;Ie?te.styleClasses=Ie:he&&(te.styleClasses=null);for(var Ne=!oe||oe.length!=te.styles.length||he!=Ie&&(!he||!Ie||he.bgClass!=Ie.bgClass||he.textClass!=Ie.textClass),vt=0;!Ne&&vtx)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Ti(a,function(){for(var te=0;te=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&wl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,te=Math.max(y.visible.from-a.options.viewportMargin,b.first),oe=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFromoe&&x.viewTo-oe<20&&(oe=Math.min(E,x.viewTo)),tr&&(te=Ut(a.doc,te),oe=Kt(a.doc,oe));var se=te!=x.viewFrom||oe!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,te,oe),x.viewOffset=rr(xt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ce=wl(a);if(!se&&ce==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var he=eu(a);return ce>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),ce>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(he),ht(x.cursorDiv),ht(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,se&&(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==Qi(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Hi(a.display)-no(a),x.top)}),y.visible=Da(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Da(a.display,a.doc,x));if(!qa(a,y))break;Ma(a);var E=ea(a);Jo(a),No(a,E),nl(a,E),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function el(a,y){var x=new Ia(a,y);if(qa(a,x)){Ma(a),Al(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,te=b.lineDiv,oe=te.firstChild;function se(zt){var en=zt.nextSibling;return Oe&&Le&&a.display.currentWheelTarget==zt?zt.style.display="none":zt.parentNode.removeChild(zt),en}for(var ce=b.view,he=b.viewFrom,Ie=0;Ie-1&&(ot=!1),lo(a,Ne,he,x)),ot&&(ht(Ne.lineNumber),Ne.lineNumber.appendChild(document.createTextNode(De(a.options,he)))),oe=Ne.node.nextSibling}he+=Ne.size}for(;oe;)oe=se(oe)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Pi(a)+"px"}function Bl(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Ua(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,te=b+"px",oe=0;oeoe.clientWidth,ce=oe.scrollHeight>oe.clientHeight;if(b&&se||E&&ce){if(E&&Le&&Oe){e:for(var he=y.target,Ie=te.view;he!=oe;he=he.parentNode)for(var Ne=0;Ne=0&&Pe(a,b.to())<=0)return x}return-1};var Fr=function(a,y){this.anchor=a,this.head=y};Fr.prototype.from=function(){return Qt(this.anchor,this.head)},Fr.prototype.to=function(){return Nt(this.anchor,this.head)},Fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ui(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(vt,ot){return Pe(vt.from(),ot.from())}),x=st(y,E);for(var te=1;te0:ce>=0){var he=Qt(se.from(),oe.from()),Ie=Nt(se.to(),oe.to()),Ne=se.empty()?oe.from()==oe.head:se.from()==se.head;te<=x&&--x,y.splice(--te,2,new Fr(Ne?Ie:he,Ne?he:Ie))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?ge(a.from.line+a.text.length-1,_e(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hl(a,y){if(Pe(a,y.from)<0)return a;if(Pe(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),ge(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(se.line+1,zt-1),a.insert(se.line+1,kn)}Gr(a,"change",a,y)}function vo(a,y,x){function b(E,te,oe){if(E.linked)for(var se=0;se1&&!a.done[a.done.length-2].ranges)return a.done.pop(),_e(a.done)}function Gl(a,y,x,b){var E=a.history;E.undone.length=0;var te=+new Date,oe,se;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>te-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(oe=lu(E,E.lastOp==b)))se=_e(oe.changes),Pe(y.from,y.to)==0&&Pe(y.from,se.to)==0?se.to=mo(y):oe.changes.push(ll(a,y));else{var ce=_e(E.done);for((!ce||!ce.ranges)&&Oa(a.sel,E.done),oe={changes:[ll(a,y)],generation:E.generation},E.done.push(oe);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=te,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,se||on(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,te=b&&b.origin;x==E.lastSelOp||te&&E.lastSelOrigin==te&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==te||su(a,te,_e(E.done),y))?E.done[E.done.length-1]=y:Oa(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=te,E.lastSelOp=x,b&&b.clearRedo!==!1&&_l(E.undone)}function Oa(a,y){var x=_e(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Vl(a,y,x,b){var E=y["spans_"+a.id],te=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(oe){oe.markedSpans&&((E||(E=y["spans_"+a.id]={}))[te]=oe.markedSpans),++te})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(_e(se)[Ne]=he[Ne],delete he[Ne])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var te=Pe(y,E)<0;te!=Pe(x,E)<0?(E=y,y=x):te!=Pe(y,x)<0&&(y=x)}return new Fr(E,y)}else return new Fr(x||y,y)}function Aa(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ri([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),te=0;te=y.ch:se.to>y.ch))){if(E&&(on(ce,"beforeCursorEnter"),ce.explicitlyCleared))if(te.markedSpans){--oe;continue}else break;if(!ce.atomic)continue;if(x){var Ne=ce.find(b<0?1:-1),vt=void 0;if((b<0?Ie:he)&&(Ne=es(a,Ne,-b,Ne&&Ne.line==y.line?te:null)),Ne&&Ne.line==y.line&&(vt=Pe(Ne,x))&&(b<0?vt<0:vt>0))return Fo(a,Ne,y,b,E)}var ot=ce.find(b<0?-1:1);return(b<0?he:Ie)&&(ot=es(a,ot,b,ot.line==y.line?te:null)),ot?Fo(a,ot,y,b,E):null}}return y}function Na(a,y,x,b,E){var te=b||1,oe=Fo(a,y,x,te,E)||!E&&Fo(a,y,x,te,!0)||Fo(a,y,x,-te,E)||!E&&Fo(a,y,x,-te,!0);return oe||(a.cantEdit=!0,ge(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?ut(a,ge(y.line-1)):null:x>0&&y.ch==(b||xt(a,y.line)).text.length?y.line=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&Pe(y.from,y.to)==0)){var x=il(a,y);Gl(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,wr(a,y));var b=[];vo(a,function(E,te){!te&&st(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,wr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,te,oe=a.sel,se=y=="undo"?E.done:E.undone,ce=y=="undo"?E.undone:E.done,he=0;he=0;--ot){var zt=vt(ot);if(zt)return zt.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(Lt(a.sel.ranges,function(E){return new Fr(ge(E.anchor.line+y,E.anchor.ch),ge(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){wi(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;ba.lastLine())){if(y.from.linete&&(y={from:y.from,to:ge(te,xt(a,te).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Wt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Ba(a,x,Te),a.cantEdit&&Na(a,ge(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,te=y.from,oe=y.to,se=!1,ce=te.line;a.options.lineWrapping||(ce=Ee(Ot(xt(b,te.line))),b.iter(ce,oe.line+1,function(ot){if(ot==E.maxLine)return se=!0,!0})),b.sel.contains(y.from,y.to)>-1&&dn(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(ce,te.line+y.text.length,function(ot){var zt=Mr(ot);zt>E.maxLineLength&&(E.maxLine=ot,E.maxLineLength=zt,E.maxLineChanged=!0,se=!1)}),se&&(a.curOp.updateMaxLine=!0)),ir(b,te.line),na(a,400);var he=y.text.length-(oe.line-te.line)-1;y.full?wi(a):te.line==oe.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,te.line,"text"):wi(a,te.line,oe.line+1,he);var Ie=Ft(a,"changes"),Ne=Ft(a,"change");if(Ne||Ie){var vt={from:te,to:oe,text:y.text,removed:y.removed,origin:y.origin};Ne&&Gr(a,"change",a,vt),Ie&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(vt)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var te;b||(b=x),Pe(b,x)<0&&(te=[b,x],x=te[0],b=te[1]),typeof y=="string"&&(y=a.splitLines(y)),zo(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x1||!(this.children[0]instanceof la))){var se=[];this.collapse(se),this.children=[new la(se)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var oe=E.lines.length%25+25,se=oe;se10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=he,a.display.maxLineLength=Ie,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&wi(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Gr(a,"markerCleared",a,this,b,E),y&&Do(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E0||oe==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=gt("span",[te.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(Xt(a,y.line,y,x,te)||y.line!=x.line&&Xt(a,x.line,y,x,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}te.addToHistory&&Gl(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var se=y.line,ce=a.cm,he;if(a.iter(se,x.line+1,function(Ne){ce&&te.collapsed&&!ce.options.lineWrapping&&Ot(Ne)==ce.display.maxLine&&(he=!0),te.collapsed&&se!=y.line&&Un(Ne,0),or(Ne,new cr(te,se==y.line?y.ch:null,se==x.line?x.ch:null)),++se}),te.collapsed&&a.iter(y.line,x.line+1,function(Ne){xn(a,Ne)&&Un(Ne,0)}),te.clearOnEnter&&Tt(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(gr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),te.collapsed&&(te.id=++us,te.atomic=!0),ce){if(he&&(ce.curOp.updateMaxLine=!0),te.collapsed)wi(ce,y.line,x.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var Ie=y.line;Ie<=x.line;Ie++)fo(ce,Ie,"text");te.atomic&&Ql(ce.doc),Gr(ce,"markerAdded",ce,te)}return te}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x=0;ce--)zo(this,b[ce]);se?Xl(this,se):this.cm&&Bo(this.cm)}),undo:ai(function(){Ra(this,"undo")}),redo:ai(function(){Ra(this,"redo")}),undoSelection:ai(function(){Ra(this,"undo",!0)}),redoSelection:ai(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,x){a=ut(this,a),y=ut(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(te){var oe=te.markedSpans;if(oe)for(var se=0;se=ce.to||ce.from==null&&E!=a.line||ce.from!=null&&E==y.line&&ce.from>=y.ch)&&(!x||x(ce.marker))&&b.push(ce.marker.parent||ce.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;ba)return y=a,!0;a-=te,++x}),ut(this,ge(x,y))},indexFromPos:function(a){a=ut(this,a);var y=a.ch;if(a.liney&&(y=a.from),a.to!=null&&a.to-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ie=a.dataTransfer.getData("Text");if(Ie){var Ne;if(y.state.draggingText&&!y.state.draggingText.copy&&(Ne=y.listSelections()),Ba(y.doc,po(x,x)),Ne)for(var vt=0;vt=0;se--)Ho(a.doc,"",b[se].from,b[se].to,"+delete");Bo(a)})}function cl(a,y,x){var b=Pt(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 ge(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var te=Vt(x,y.doc.direction);if(te){var oe=E<0?_e(te):te[0],se=E<0==(oe.level==1),ce=se?"after":"before",he;if(oe.level>0||y.doc.direction=="rtl"){var Ie=uo(y,x);he=E<0?x.text.length-1:0;var Ne=Wi(y,Ie,he).top;he=je(function(vt){return Wi(y,Ie,vt).top==Ne},E<0==(oe.level==1)?oe.from:oe.to-1,he),ce=="before"&&(he=cl(x,he,1))}else he=E<0?oe.to:oe.from;return new ge(b,he,ce)}}return new ge(b,E<0?x.text.length:0,E<0?"before":"after")}function Du(a,y,x,b){var E=Vt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var te=Dt(E,x.ch,x.sticky),oe=E[te];if(a.doc.direction=="ltr"&&oe.level%2==0&&(b>0?oe.to>x.ch:oe.from=oe.from&&vt>=Ie.begin)){var ot=Ne?"before":"after";return new ge(x.line,vt,ot)}}var zt=function(kn,Rn,Mn){for(var Wn=function($r,li){return li?new ge(x.line,se($r,1),"before"):new ge(x.line,$r,"after")};kn>=0&&kn0==(sr.level!=1),Sr=nr?Mn.begin:se(Mn.end,-1);if(sr.from<=Sr&&Sr0?Ie.end:se(Ie.begin,-1);return mn!=null&&!(b>0&&mn==y.text.length)&&(en=zt(b>0?0:E.length-1,b,he(mn)),en)?en:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Te)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=xt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new ge(E.line,E.ch+1),a.replaceRange(te.charAt(E.ch-1)+te.charAt(E.ch-2),ge(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var oe=xt(a.doc,E.line-1).text;oe&&(E=new ge(E.line,1),a.replaceRange(te.charAt(0)+a.doc.lineSeparator()+oe.charAt(oe.length-1),ge(E.line-1,oe.length-1),E,"+transpose"))}}x.push(new Fr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Ti(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;ba&&Pe(y,this.pos)==0&&x==this.button};var ma,va;function Bu(a,y){var x=+new Date;return va&&va.compare(x,a,y)?(ma=va=null,"triple"):ma&&ma.compare(x,a,y)?(va=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),va=null,"single")}function ks(a){var y=this,x=y.display;if(!(pt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Oe||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=mt(a),te=b?Bu(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,te,a))&&(E==1?b?Fu(y,b,te,a):Ue(a)==x.scroller&&an(a):E==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Ye?y.display.input.onContextMenu(a):Ml(y)))}}}function Nu(a,y,x,b,E){var te="Click";return b=="double"?te="Double"+te:b=="triple"&&(te="Triple"+te),te=(y==1?"Left":y==2?"Middle":"Right")+te,pa(a,vs(te,E),E,function(oe){if(typeof oe=="string"&&(oe=ha[oe]),!oe)return!1;var se=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),se=oe(a,x)!=bt}finally{a.state.suppressEdits=!1}return se})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var te=rt?x.shiftKey&&x.metaKey:x.altKey;E.unit=te?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Le?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Le?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){be?setTimeout(Et(kl,a),0):a.curOp.focus=Xe();var E=Ru(a,x,b),te=a.doc.sel,oe;a.options.dragDrop&&Ht&&!a.isReadOnly()&&x=="single"&&(oe=te.contains(y))>-1&&(Pe((oe=te.ranges[oe]).from(),y)<0||y.xRel>0)&&(Pe(oe.to(),y)>0||y.xRel<0)?zu(a,b,y,E):Hu(a,b,y,E)}function zu(a,y,x,b){var E=a.display,te=!1,oe=oi(a,function(he){Oe&&(E.scroller.draggable=!1),a.state.draggingText=!1,Jt(E.wrapper.ownerDocument,"mouseup",oe),Jt(E.wrapper.ownerDocument,"mousemove",se),Jt(E.scroller,"dragstart",ce),Jt(E.scroller,"drop",oe),te||(an(he),b.addNew||Aa(a.doc,x,null,null,b.extend),Oe&&!Ge||be&&Ce==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),se=function(he){te=te||Math.abs(y.clientX-he.clientX)+Math.abs(y.clientY-he.clientY)>=10},ce=function(){return te=!0};Oe&&(E.scroller.draggable=!0),a.state.draggingText=oe,oe.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),Tt(E.wrapper.ownerDocument,"mouseup",oe),Tt(E.wrapper.ownerDocument,"mousemove",se),Tt(E.scroller,"dragstart",ce),Tt(E.scroller,"drop",oe),Ml(a),setTimeout(function(){return E.input.focus()},20)}function Ms(a,y,x){if(x=="char")return new Fr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Fr(ge(y.line,0),ut(a.doc,ge(y.line+1,0)));var b=x(a,y);return new Fr(b.from,b.to)}function Hu(a,y,x,b){var E=a.display,te=a.doc;an(y);var oe,se,ce=te.sel,he=ce.ranges;if(b.addNew&&!b.extend?(se=te.sel.contains(x),se>-1?oe=he[se]:oe=new Fr(x,x)):(oe=te.sel.primary(),se=te.sel.primIndex),b.unit=="rectangle")b.addNew||(oe=new Fr(x,x)),x=wo(a,y,!0,!0),se=-1;else{var Ie=Ms(a,x,b.unit);b.extend?oe=sl(oe,Ie.anchor,Ie.head,b.extend):oe=Ie}b.addNew?se==-1?(se=he.length,hi(te,Ui(a,he.concat([oe]),se),{scroll:!1,origin:"*mouse"})):he.length>1&&he[se].empty()&&b.unit=="char"&&!b.extend?(hi(te,Ui(a,he.slice(0,se).concat(he.slice(se+1)),0),{scroll:!1,origin:"*mouse"}),ce=te.sel):ul(te,se,oe,tt):(se=0,hi(te,new Ri([oe],0),tt),ce=te.sel);var Ne=x;function vt(Mn){if(Pe(Ne,Mn)!=0)if(Ne=Mn,b.unit=="rectangle"){for(var Wn=[],sr=a.options.tabSize,nr=ye(xt(te,x.line).text,x.ch,sr),Sr=ye(xt(te,Mn.line).text,Mn.ch,sr),$r=Math.min(nr,Sr),li=Math.max(nr,Sr),Ur=Math.min(x.line,Mn.line),Oi=Math.min(a.lastLine(),Math.max(x.line,Mn.line));Ur<=Oi;Ur++){var Ei=xt(te,Ur).text,qr=rn(Ei,$r,sr);$r==li?Wn.push(new Fr(ge(Ur,qr),ge(Ur,qr))):Ei.length>qr&&Wn.push(new Fr(ge(Ur,qr),ge(Ur,rn(Ei,li,sr))))}Wn.length||Wn.push(new Fr(x,x)),hi(te,Ui(a,ce.ranges.slice(0,se).concat(Wn),se),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Mn)}else{var ki=oe,di=Ms(a,Mn,b.unit),ii=ki.anchor,ei;Pe(di.anchor,ii)>0?(ei=di.head,ii=Qt(ki.from(),di.anchor)):(ei=di.anchor,ii=Nt(ki.to(),di.head));var Kr=ce.ranges.slice(0);Kr[se]=Wu(a,new Fr(ut(te,ii),ei)),hi(te,Ui(a,Kr,se),tt)}}var ot=E.wrapper.getBoundingClientRect(),zt=0;function en(Mn){var Wn=++zt,sr=wo(a,Mn,!0,b.unit=="rectangle");if(sr)if(Pe(sr,Ne)!=0){a.curOp.focus=Xe(),vt(sr);var nr=Da(E,te);(sr.line>=nr.to||sr.lineot.bottom?20:0;Sr&&setTimeout(oi(a,function(){zt==Wn&&(E.scroller.scrollTop+=Sr,en(Mn))}),50)}}function mn(Mn){a.state.selectingText=!1,zt=1/0,Mn&&(an(Mn),E.input.focus()),Jt(E.wrapper.ownerDocument,"mousemove",kn),Jt(E.wrapper.ownerDocument,"mouseup",Rn),te.history.lastSelOrigin=null}var kn=oi(a,function(Mn){Mn.buttons===0||!mt(Mn)?mn(Mn):en(Mn)}),Rn=oi(a,mn);a.state.selectingText=Rn,Tt(E.wrapper.ownerDocument,"mousemove",kn),Tt(E.wrapper.ownerDocument,"mouseup",Rn)}function Wu(a,y){var x=y.anchor,b=y.head,E=xt(a.doc,x.line);if(Pe(x,b)==0&&x.sticky==b.sticky)return y;var te=Vt(E);if(!te)return y;var oe=Dt(te,x.ch,x.sticky),se=te[oe];if(se.from!=x.ch&&se.to!=x.ch)return y;var ce=oe+(se.from==x.ch==(se.level!=1)?0:1);if(ce==0||ce==te.length)return y;var he;if(b.line!=x.line)he=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ie=Dt(te,b.ch,b.sticky),Ne=Ie-oe||(b.ch-x.ch)*(se.level==1?-1:1);Ie==ce-1||Ie==ce?he=Ne<0:he=Ne>0}var vt=te[ce+(he?-1:0)],ot=he==(vt.level==1),zt=ot?vt.from:vt.to,en=ot?"after":"before";return x.ch==zt&&x.sticky==en?y:new Fr(new ge(x.line,zt,en),b)}function Ds(a,y,x,b){var E,te;if(y.touches)E=y.touches[0].clientX,te=y.touches[0].clientY;else try{E=y.clientX,te=y.clientY}catch(vt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&an(y);var oe=a.display,se=oe.lineDiv.getBoundingClientRect();if(te>se.bottom||!Ft(a,x))return bn(y);te-=se.top-oe.viewOffset;for(var ce=0;ce=E){var Ie=Re(a.doc,te),Ne=a.display.gutterSpecs[ce];return on(a,x,a,Ie,Ne.className,y),bn(y)}}}function ml(a,y){return Ds(a,y,"gutterClick",!0)}function Ps(a,y){ui(a.display,y)||ju(a,y)||pt(a,y,"contextmenu")||Ye||a.display.input.onContextMenu(y)}function ju(a,y){return Ft(a,"gutterContextMenu")?Ds(a,y,"gutterContextMenu",!1):!1}function Is(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 $o={toString:function(){return"CodeMirror.Init"}},Ls={},Wa={};function Zu(a){var y=a.optionHandlers;function x(b,E,te,oe){a.defaults[b]=E,te&&(y[b]=oe?function(se,ce,he){he!=$o&&te(se,ce,he)}:te)}a.defineOption=x,a.Init=$o,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),wi(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var te=[],oe=b.doc.first;b.doc.iter(function(ce){for(var he=0;;){var Ie=ce.text.indexOf(E,he);if(Ie==-1)break;he=Ie+E.length,te.push(ge(oe,Ie))}oe++});for(var se=te.length-1;se>=0;se--)Ho(b.doc,E,te[se],ge(te[se].line,te[se].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,te){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),te!=$o&&b.refresh()}),x("specialCharPlaceholder",Di,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",He?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!yt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Is(b),ra(b)},!0),x("keyMap","default",function(b,E,te){var oe=za(E),se=te!=$o&&za(te);se&&se.detach&&se.detach(b,oe),oe.attach&&oe.attach(b,se||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,_u,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?Ua(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ol(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Ao(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,$u),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function $u(a,y,x){var b=x&&x!=$o;if(!y!=!b){var E=a.display.dragFunctions,te=y?Tt:Jt;te(a.display.scroller,"dragstart",E.start),te(a.display.scroller,"dragenter",E.enter),te(a.display.scroller,"dragover",E.over),te(a.display.scroller,"dragleave",E.leave),te(a.display.scroller,"drop",E.drop)}}function _u(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Fe(a.display.wrapper,"CodeMirror-wrap"),br(a)),Ka(a),wi(a),Co(a),setTimeout(function(){return No(a)},100)}function Vr(a,y){var x=this;if(!(this instanceof Vr))return new Vr(a,y);this.options=y=y?jt(y):{},jt(Ls,y,!1);var b=y.value;typeof b=="string"?b=new Si(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Vr.inputStyles[y.inputStyle](this),te=this.display=new ru(a,b,E,y);te.wrapper.CodeMirror=this,Is(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ol(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 de,keySeq:null,specialChars:null},y.autofocus&&!He&&te.input.focus(),be&&Ce<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Gu(this),wu(),Mo(this),this.curOp.forceUpdate=!0,Zl(this,b),y.autofocus&&!He||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Xa(x)},20):Ao(this);for(var oe in Wa)Wa.hasOwnProperty(oe)&&Wa[oe](this,y[oe],$o);Nl(this),y.finishInit&&y.finishInit(this);for(var se=0;se20*20}Tt(y.scroller,"touchstart",function(ce){if(!pt(a,ce)&&!te(ce)&&!ml(a,ce)){y.input.ensurePolled(),clearTimeout(x);var he=+new Date;y.activeTouch={start:he,moved:!1,prev:he-b.end<=300?b:null},ce.touches.length==1&&(y.activeTouch.left=ce.touches[0].pageX,y.activeTouch.top=ce.touches[0].pageY)}}),Tt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Tt(y.scroller,"touchend",function(ce){var he=y.activeTouch;if(he&&!ui(y,ce)&&he.left!=null&&!he.moved&&new Date-he.start<300){var Ie=a.coordsChar(y.activeTouch,"page"),Ne;!he.prev||oe(he,he.prev)?Ne=new Fr(Ie,Ie):!he.prev.prev||oe(he,he.prev.prev)?Ne=a.findWordAt(Ie):Ne=new Fr(ge(Ie.line,0),ut(a.doc,ge(Ie.line+1,0))),a.setSelection(Ne.anchor,Ne.head),a.focus(),an(ce)}E()}),Tt(y.scroller,"touchcancel",E),Tt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),on(a,"scroll",a))}),Tt(y.scroller,"mousewheel",function(ce){return zl(a,ce)}),Tt(y.scroller,"DOMMouseScroll",function(ce){return zl(a,ce)}),Tt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ce){pt(a,ce)||ke(ce)},over:function(ce){pt(a,ce)||(Cu(a,ce),ke(ce))},start:function(ce){return xu(a,ce)},drop:oi(a,bu),leave:function(ce){pt(a,ce)||fs(a)}};var se=y.input.getField();Tt(se,"keyup",function(ce){return Ss.call(a,ce)}),Tt(se,"keydown",oi(a,ws)),Tt(se,"keypress",oi(a,Es)),Tt(se,"focus",function(ce){return Xa(a,ce)}),Tt(se,"blur",function(ce){return Ao(a,ce)})}var vl=[];Vr.defineInitHook=function(a){return vl.push(a)};function ga(a,y,x,b){var E=a.doc,te;x==null&&(x="add"),x=="smart"&&(E.mode.indent?te=Xn(a,y).state:x="prev");var oe=a.options.tabSize,se=xt(E,y),ce=ye(se.text,null,oe);se.stateAfter&&(se.stateAfter=null);var he=se.text.match(/^\s*/)[0],Ie;if(!b&&!/\S/.test(se.text))Ie=0,x="not";else if(x=="smart"&&(Ie=E.mode.indent(te,se.text.slice(he.length),se.text),Ie==bt||Ie>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ie=ye(xt(E,y-1).text,null,oe):Ie=0:x=="add"?Ie=ce+a.options.indentUnit:x=="subtract"?Ie=ce-a.options.indentUnit:typeof x=="number"&&(Ie=ce+x),Ie=Math.max(0,Ie);var Ne="",vt=0;if(a.options.indentWithTabs)for(var ot=Math.floor(Ie/oe);ot;--ot)vt+=oe,Ne+=" ";if(vtoe,ce=pn(y),he=null;if(se&&b.ranges.length>1)if(Ki&&Ki.text.join(` `)==y){if(b.ranges.length%Ki.text.length==0){he=[];for(var Ie=0;Ie=0;vt--){var ot=b.ranges[vt],zt=ot.from(),en=ot.to();ot.empty()&&(x&&x>0?zt=ge(zt.line,zt.ch-x):a.state.overwrite&&!se?en=ge(en.line,Math.min(xt(te,en.line).text.length,en.ch+_e(ce).length)):se&&Ki&&Ki.lineWise&&Ki.text.join(` `)==ce.join(` `)&&(zt=en=ge(zt.line,0)));var mn={from:zt,to:en,text:he?he[vt%he.length]:ce,origin:E||(se?"paste":a.state.cutIncoming>oe?"cut":"+input")};zo(a.doc,mn),Gr(a,"inputRead",a,mn)}y&&!se&&Os(a,y),Bo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Ne),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ti(y,function(){return gl(y,x,0,null,"paste")}),!0}function Os(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var te=a.getModeAt(E.head),oe=!1;if(te.electricChars){for(var se=0;se-1){oe=ga(a,E.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(xt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(oe=ga(a,E.head.line,"smart"));oe&&Gr(a,"electricInput",a,E.head.line)}}}function As(a){for(var y=[],x=[],b=0;bte&&(ga(this,se.head.line,b,!0),te=se.head.line,oe==this.doc.sel.primIndex&&Bo(this));else{var ce=se.from(),he=se.to(),Ie=Math.max(te,ce.line);te=Math.min(this.lastLine(),he.line-(he.ch?0:1))+1;for(var Ne=Ie;Ne0&&ul(this.doc,oe,new Fr(ce,vt[oe].to()),Te)}}}),getTokenAt:function(b,E){return Hn(this,b,E)},getLineTokens:function(b,E){return Hn(this,ge(b),E,!0)},getTokenTypeAt:function(b){b=ut(this.doc,b);var E=Zn(this,xt(this.doc,b.line)),te=0,oe=(E.length-1)/2,se=b.ch,ce;if(se==0)ce=E[2];else for(;;){var he=te+oe>>1;if((he?E[he*2-1]:0)>=se)oe=he;else if(E[he*2+1]ce&&(b=ce,oe=!0),se=xt(this.doc,b)}else se=b;return To(this,se,{top:0,left:0},E||"page",te||oe).top+(oe?this.doc.height-rr(se):0)},defaultTextHeight:function(){return Li(this.display)},defaultCharWidth:function(){return Vi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,te,oe,se){var ce=this.display;b=Ci(this,ut(this.doc,b));var he=b.bottom,Ie=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),ce.sizer.appendChild(E),oe=="over")he=b.top;else if(oe=="above"||oe=="near"){var Ne=Math.max(ce.wrapper.clientHeight,this.doc.height),vt=Math.max(ce.sizer.clientWidth,ce.lineSpace.clientWidth);(oe=="above"||b.bottom+E.offsetHeight>Ne)&&b.top>E.offsetHeight?he=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=Ne&&(he=b.bottom),Ie+E.offsetWidth>vt&&(Ie=vt-E.offsetWidth)}E.style.top=he+"px",E.style.left=E.style.right="",se=="right"?(Ie=ce.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(se=="left"?Ie=0:se=="middle"&&(Ie=(ce.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ie+"px"),te&&$s(this,{left:Ie,top:he,right:Ie+E.offsetWidth,bottom:he+E.offsetHeight})},triggerOnKeyDown:yi(ws),triggerOnKeyPress:yi(Es),triggerOnKeyUp:Ss,triggerOnMouseDown:yi(ks),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:yi(function(b){Os(this,b)}),findPosH:function(b,E,te,oe){var se=1;E<0&&(se=-1,E=-E);for(var ce=ut(this.doc,b),he=0;he0&&Ie(te.charAt(oe-1));)--oe;for(;se.5||this.options.lineWrapping)&&Ka(this),on(this,"refresh",this)}),swapDoc:yi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Zl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Gr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Yt(a),a.registerHelper=function(b,E,te){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=te},a.registerGlobalHelper=function(b,E,te,oe){a.registerHelper(b,E,oe),x[b]._global.push({pred:te,val:oe})}}function yl(a,y,x,b,E){var te=y,oe=x,se=xt(a,y.line),ce=E&&a.direction=="rtl"?-x:x;function he(){var Rn=y.line+ce;return Rn=a.first+a.size?!1:(y=new ge(Rn,y.ch,y.sticky),se=xt(a,Rn))}function Ie(Rn){var Mn;if(b=="codepoint"){var Wn=se.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Wn)?Mn=null:Mn=new ge(y.line,Math.max(0,Math.min(se.text.length,y.ch+x*(Wn>=55296&&Wn<56320?2:1))),-x)}else E?Mn=Du(a.cm,se,y,x):Mn=dl(se,y,x);if(Mn==null)if(!Rn&&he())y=fl(E,a.cm,se,y.line,ce);else return!1;else y=Mn;return!0}if(b=="char"||b=="codepoint")Ie();else if(b=="column")Ie(!0);else if(b=="word"||b=="group")for(var Ne=null,vt=b=="group",ot=a.cm&&a.cm.getHelper(y,"wordChars"),zt=!0;!(x<0&&!Ie(!zt));zt=!1){var en=se.text.charAt(y.ch)||` `,mn=ue(en,ot)?"w":vt&&en==` `?"n":!vt||/\s/.test(en)?null:"p";if(vt&&!zt&&!mn&&(mn="s"),Ne&&Ne!=mn){x<0&&(x=1,Ie(),y.sticky="after");break}if(mn&&(Ne=mn),x>0&&!Ie(!zt))break}var kn=Na(a,y,te,oe,!0);return Qe(te,kn)&&(kn.hitSide=!0),kn}function Rs(a,y,x,b){var E=a.doc,te=y.left,oe;if(b=="page"){var se=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ce=Math.max(se-.5*Li(a.display),3);oe=(x>0?y.bottom:y.top)+x*ce}else b=="line"&&(oe=x>0?y.bottom+3:y.top-3);for(var he;he=ci(a,te,oe),!!he.outside;){if(x<0?oe<=0:oe>=E.height){he.hitSide=!0;break}oe+=x*5}return he}var Wr=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new de,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wr.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;Bs(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function te(se){for(var ce=se.target;ce;ce=ce.parentNode){if(ce==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ce.className))break}return!1}Tt(E,"paste",function(se){!te(se)||pt(b,se)||Ts(se,b)||Ce<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),Tt(E,"compositionstart",function(se){y.composing={data:se.data,done:!1}}),Tt(E,"compositionupdate",function(se){y.composing||(y.composing={data:se.data,done:!1})}),Tt(E,"compositionend",function(se){y.composing&&(se.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Tt(E,"touchstart",function(){return x.forceCompositionEnd()}),Tt(E,"input",function(){y.composing||y.readFromDOMSoon()});function oe(se){if(!(!te(se)||pt(b,se))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),se.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ce=As(b);ja({lineWise:!0,text:ce.text}),se.type=="cut"&&b.operation(function(){b.setSelections(ce.ranges,0,Te),b.replaceSelection("",null,"cut")})}else return;if(se.clipboardData){se.clipboardData.clearData();var he=Ki.text.join(` `);if(se.clipboardData.setData("Text",he),se.clipboardData.getData("Text")==he){se.preventDefault();return}}var Ie=Ns(),Ne=Ie.firstChild;b.display.lineSpace.insertBefore(Ie,b.display.lineSpace.firstChild),Ne.value=Ki.text.join(` `);var vt=document.activeElement;Me(Ne),setTimeout(function(){b.display.lineSpace.removeChild(Ie),vt.focus(),vt==E&&x.showPrimarySelection()},50)}}Tt(E,"copy",oe),Tt(E,"cut",oe)},Wr.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Wr.prototype.prepareSelection=function(){var a=Sl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Wr.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Wr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wr.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line=y.display.viewFrom&&Fs(y,b)||{node:se[0].measure.map[2],offset:0},he=E.linea.firstLine()&&(b=ge(b.line-1,xt(a.doc,b.line-1).length)),E.ch==xt(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var te,oe,se;b.line==y.viewFrom||(te=So(a,b.line))==0?(oe=Ee(y.view[0].line),se=y.view[0].node):(oe=Ee(y.view[te].line),se=y.view[te-1].node.nextSibling);var ce=So(a,E.line),he,Ie;if(ce==y.view.length-1?(he=y.viewTo-1,Ie=y.lineDiv.lastChild):(he=Ee(y.view[ce+1].line)-1,Ie=y.view[ce+1].node.previousSibling),!se)return!1;for(var Ne=a.doc.splitLines(Ku(a,se,Ie,oe,he)),vt=Wt(a.doc,ge(oe,0),ge(he,xt(a.doc,he).text.length));Ne.length>1&&vt.length>1;)if(_e(Ne)==_e(vt))Ne.pop(),vt.pop(),he--;else if(Ne[0]==vt[0])Ne.shift(),vt.shift(),oe++;else break;for(var ot=0,zt=0,en=Ne[0],mn=vt[0],kn=Math.min(en.length,mn.length);otb.ch&&Rn.charCodeAt(Rn.length-zt-1)==Mn.charCodeAt(Mn.length-zt-1);)ot--,zt++;Ne[Ne.length-1]=Rn.slice(0,Rn.length-zt).replace(/^\u200b+/,""),Ne[0]=Ne[0].slice(ot).replace(/\u200b+$/,"");var sr=ge(oe,ot),nr=ge(he,vt.length?_e(vt).length-zt:0);if(Ne.length>1||Ne[0]||Pe(sr,nr))return Ho(a.doc,Ne,sr,nr,"+input"),!0},Wr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wr.prototype.reset=function(){this.forceCompositionEnd()},Wr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wr.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))},Wr.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ti(this.cm,function(){return wi(a.cm)})},Wr.prototype.setUneditable=function(a){a.contentEditable="false"},Wr.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||oi(this.cm,gl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Wr.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Wr.prototype.onContextMenu=function(){},Wr.prototype.resetPosition=function(){},Wr.prototype.needsContentAttribute=!0;function Fs(a,y){var x=qi(a,y.line);if(!x||x.hidden)return null;var b=xt(a.doc,y.line),E=Lo(x,b,y.line),te=Vt(b,a.doc.direction),oe="left";if(te){var se=Dt(te,y.ch);oe=se%2?"right":"left"}var ce=xa(E.map,y.ch,oe);return ce.offset=ce.collapse=="right"?ce.end:ce.start,ce}function Uu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function _o(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var te="",oe=!1,se=a.doc.lineSeparator(),ce=!1;function he(ot){return function(zt){return zt.id==ot}}function Ie(){oe&&(te+=se,ce&&(te+=se),oe=ce=!1)}function Ne(ot){ot&&(Ie(),te+=ot)}function vt(ot){if(ot.nodeType==1){var zt=ot.getAttribute("cm-text");if(zt){Ne(zt);return}var en=ot.getAttribute("cm-marker"),mn;if(en){var kn=a.findMarks(ge(b,0),ge(E+1,0),he(+en));kn.length&&(mn=kn[0].find(0))&&Ne(Wt(a.doc,mn.from,mn.to).join(se));return}if(ot.getAttribute("contenteditable")=="false")return;var Rn=/^(pre|div|p|li|table|br)$/i.test(ot.nodeName);if(!/^br$/i.test(ot.nodeName)&&ot.textContent.length==0)return;Rn&&Ie();for(var Mn=0;Mn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),Tt(E,"paste",function(oe){pt(b,oe)||Ts(oe,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function te(oe){if(!pt(b,oe)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var se=As(b);ja({lineWise:!0,text:se.text}),oe.type=="cut"?b.setSelections(se.ranges,null,Te):(x.prevInput="",E.value=se.text.join(` `),Me(E))}else return;oe.type=="cut"&&(b.state.cutIncoming=+new Date)}}Tt(E,"cut",te),Tt(E,"copy",te),Tt(a.scroller,"paste",function(oe){if(!(ui(a,oe)||pt(b,oe))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var se=new Event("paste");se.clipboardData=oe.clipboardData,E.dispatchEvent(se)}}),Tt(a.lineSpace,"selectstart",function(oe){ui(a,oe)||an(oe)}),Tt(E,"compositionstart",function(){var oe=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:oe,range:b.markText(oe,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Tt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Jr.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},Jr.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Jr.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=Sl(a);if(a.options.moveInputWithCursor){var E=Ci(a,x.sel.primary().head,"div"),te=y.wrapper.getBoundingClientRect(),oe=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+oe.top-te.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+oe.left-te.left))}return b},Jr.prototype.showSelection=function(a){var y=this.cm,x=y.display;Ze(x.cursorDiv,a.cursors),Ze(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Jr.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Me(this.textarea),be&&Ce>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",be&&Ce>=9&&(this.hasSelection=null))}},Jr.prototype.getField=function(){return this.textarea},Jr.prototype.supportsTouch=function(){return!1},Jr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!He||Xe()!=this.textarea))try{this.textarea.focus()}catch(a){}},Jr.prototype.blur=function(){this.textarea.blur()},Jr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Jr.prototype.receivedFocus=function(){this.slowPoll()},Jr.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Jr.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Jr.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||wn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(be&&Ce>=9&&this.hasSelection===E||Le&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var te=E.charCodeAt(0);if(te==8203&&!b&&(b="\u200B"),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var oe=0,se=Math.min(b.length,E.length);oe1e3||E.indexOf(` `)>-1?x.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Jr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Jr.prototype.onKeyPress=function(){be&&Ce>=9&&(this.hasSelection=null),this.fastPoll()},Jr.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var te=wo(x,a),oe=b.scroller.scrollTop;if(!te||fe)return;var se=x.options.resetSelectionOnContextMenu;se&&x.doc.sel.contains(te)==-1&&oi(x,hi)(x.doc,po(te),Te);var ce=E.style.cssText,he=y.wrapper.style.cssText,Ie=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Ie.top-5)+"px; left: "+(a.clientX-Ie.left-5)+`px; z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ne;Oe&&(Ne=window.scrollY),b.input.focus(),Oe&&window.scrollTo(null,Ne),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=ot,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function vt(){if(E.selectionStart!=null){var en=x.somethingSelected(),mn="\u200B"+(en?E.value:"");E.value="\u21DA",E.value=mn,y.prevInput=en?"":"\u200B",E.selectionStart=1,E.selectionEnd=mn.length,b.selForContextMenu=x.doc.sel}}function ot(){if(y.contextMenuPending==ot&&(y.contextMenuPending=!1,y.wrapper.style.cssText=he,E.style.cssText=ce,be&&Ce<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=oe),E.selectionStart!=null)){(!be||be&&Ce<9)&&vt();var en=0,mn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):en++<10?b.detectingSelectAll=setTimeout(mn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(mn,200)}}if(be&&Ce>=9&&vt(),Ye){ke(a);var zt=function(){Jt(window,"mouseup",zt),setTimeout(ot,20)};Tt(window,"mouseup",zt)}else setTimeout(ot,50)},Jr.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Jr.prototype.setUneditable=function(){},Jr.prototype.needsContentAttribute=!1;function Xu(a,y){if(y=y?jt(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=Xe();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=se.getValue()}var E;if(a.form&&(Tt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var te=a.form;E=te.submit;try{var oe=te.submit=function(){b(),te.submit=E,te.submit(),te.submit=oe}}catch(ce){}}y.finishInit=function(ce){ce.save=b,ce.getTextArea=function(){return a},ce.toTextArea=function(){ce.toTextArea=isNaN,b(),a.parentNode.removeChild(ce.getWrapperElement()),a.style.display="",a.form&&(Jt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var se=Vr(function(ce){return a.parentNode.insertBefore(ce,a.nextSibling)},y);return se}function Ju(a){a.off=Jt,a.on=Tt,a.wheelEventPixels=iu,a.Doc=Si,a.splitLines=pn,a.countColumn=ye,a.findColumn=rn,a.isWordChar=ie,a.Pass=bt,a.signal=on,a.Line=Ir,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=ge,a.cmpPos=Pe,a.modes=Dn,a.mimeModes=tn,a.resolveMode=Tn,a.getMode=Yn,a.modeExtensions=zn,a.extendMode=Bn,a.copyState=_n,a.startState=Qn,a.innerMode=Vn,a.commands=ha,a.keyMap=io,a.keyName=gs,a.isModifierKey=ms,a.lookupKey=jo,a.normalizeKeyMap=Mu,a.StringStream=jn,a.SharedTextMarker=ca,a.TextMarker=go,a.LineWidget=ua,a.e_preventDefault=an,a.e_stopPropagation=Ln,a.e_stop=ke,a.addClass=pe,a.contains=qe,a.rmClass=Fe,a.keyNames=yo}Zu(Vr),Vu(Vr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var $a in Si.prototype)Si.prototype.hasOwnProperty($a)&&st(Qu,$a)<0&&(Vr.prototype[$a]=function(a){return function(){return a.apply(this.doc,arguments)}}(Si.prototype[$a]));return Yt(Si),Vr.inputStyles={textarea:Jr,contenteditable:Wr},Vr.defineMode=function(a){!Vr.defaults.mode&&a!="null"&&(Vr.defaults.mode=a),yn.apply(this,arguments)},Vr.defineMIME=un,Vr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Vr.defineMIME("text/plain","null"),Vr.defineExtension=function(a,y){Vr.prototype[a]=y},Vr.defineDocExtension=function(a,y){Si.prototype[a]=y},Vr.fromTextArea=Xu,Ju(Vr),Vr.version="5.58.2",Vr})},25419:function(Gt,It,le){(function(re){re(le(89780),le(15525),le(98101))})(function(re){"use strict";re.defineMode("markdown",function(et,me){var We=re.getMode(et,"text/html"),be=We.name=="null";function Ce(ye){if(re.findModeByName){var de=re.findModeByName(ye);de&&(ye=de.mime||de.mimes[0])}var st=re.getMode(et,ye);return st.name=="null"?null:st}me.highlightFormatting===void 0&&(me.highlightFormatting=!1),me.maxBlockquoteDepth===void 0&&(me.maxBlockquoteDepth=0),me.taskLists===void 0&&(me.taskLists=!1),me.strikethrough===void 0&&(me.strikethrough=!1),me.emoji===void 0&&(me.emoji=!1),me.fencedCodeBlockHighlighting===void 0&&(me.fencedCodeBlockHighlighting=!0),me.fencedCodeBlockDefaultMode===void 0&&(me.fencedCodeBlockDefaultMode="text/plain"),me.xml===void 0&&(me.xml=!0),me.tokenTypeOverrides===void 0&&(me.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 Ke in Oe)Oe.hasOwnProperty(Ke)&&me.tokenTypeOverrides[Ke]&&(Oe[Ke]=me.tokenTypeOverrides[Ke]);var Se=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ge=/^\[(x| )\](?=\s)/i,xe=me.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ft=/^ {0,3}(?:\={1,}|-{2,})\s*$/,$e=/^[^#!\[\]*_\\<>` "'(~:]+/,Ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,He=/^\s*\[[^\]]+?\]:.*$/,Le=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,rt=" ";function yt(ye,de,st){return de.f=de.inline=st,st(ye,de)}function St(ye,de,st){return de.f=de.block=st,st(ye,de)}function at(ye){return!ye||!/\S/.test(ye.string)}function Ye(ye){if(ye.linkTitle=!1,ye.linkHref=!1,ye.linkText=!1,ye.em=!1,ye.strong=!1,ye.strikethrough=!1,ye.quote=0,ye.indentedCode=!1,ye.f==Fe){var de=be;if(!de){var st=re.innerMode(We,ye.htmlState);de=st.mode.name=="xml"&&st.state.tagStart===null&&!st.state.context&&st.state.tokenize.isInText}de&&(ye.f=gt,ye.block=lt,ye.htmlState=null)}return ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,ye.prevLine=ye.thisLine,ye.thisLine={stream:null},null}function lt(ye,de){var st=ye.column()===de.indentation,Bt=at(de.prevLine.stream),bt=de.indentedCode,Te=de.prevLine.hr,tt=de.list!==!1,ct=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var rn=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,tt)){for(de.list=null;rn=4&&(bt||de.prevLine.fencedCodeEnd||de.prevLine.header||Bt))return ye.skipToEnd(),de.indentedCode=!0,Oe.code;if(ye.eatSpace())return null;if(st&&de.indentation<=ct&&(_e=ye.match(xe))&&_e[1].length<=6)return de.quote=0,de.header=_e[1].length,de.thisLine.header=!0,me.highlightFormatting&&(de.formatting="header"),de.f=de.inline,Ze(de);if(de.indentation<=ct&&ye.eat(">"))return de.quote=st?1:de.quote+1,me.highlightFormatting&&(de.formatting="quote"),ye.eatSpace(),Ze(de);if(!Rt&&!de.setext&&st&&de.indentation<=ct&&(_e=ye.match(fe))){var Lt=_e[1]?"ol":"ul";return de.indentation=rn+ye.current().length,de.list=!0,de.quote=0,de.listStack.push(de.indentation),de.em=!1,de.strong=!1,de.code=!1,de.strikethrough=!1,me.taskLists&&ye.match(Ge,!1)&&(de.taskList=!0),de.f=de.inline,me.highlightFormatting&&(de.formatting=["list","list-"+Lt]),Ze(de)}else{if(st&&de.indentation<=ct&&(_e=ye.match(Ae,!0)))return de.quote=0,de.fencedEndRE=new RegExp(_e[1]+"+ *$"),de.localMode=me.fencedCodeBlockHighlighting&&Ce(_e[2]||me.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=re.startState(de.localMode)),de.f=de.block=ht,me.highlightFormatting&&(de.formatting="code-block"),de.code=-1,Ze(de);if(de.setext||(!wt||!tt)&&!de.quote&&de.list===!1&&!de.code&&!Rt&&!He.test(ye.string)&&(_e=ye.lookAhead(1))&&(_e=_e.match(ft)))return de.setext?(de.header=de.setext,de.setext=0,ye.skipToEnd(),me.highlightFormatting&&(de.formatting="header")):(de.header=_e[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,Ze(de);if(Rt)return ye.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Oe.hr;if(ye.peek()==="[")return yt(ye,de,Ct)}return yt(ye,de,de.inline)}function Fe(ye,de){var st=We.token(ye,de.htmlState);if(!be){var Bt=re.innerMode(We,de.htmlState);(Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText||de.md_inside&&ye.current().indexOf(">")>-1)&&(de.f=gt,de.block=lt,de.htmlState=null)}return st}function ht(ye,de){var st=de.listStack[de.listStack.length-1]||0,Bt=de.indentation=ye.quote?de.push(Oe.formatting+"-"+ye.formatting[st]+"-"+ye.quote):de.push("error"))}if(ye.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(ye.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(ye.linkHref?de.push(Oe.linkHref,"url"):(ye.strong&&de.push(Oe.strong),ye.em&&de.push(Oe.em),ye.strikethrough&&de.push(Oe.strikethrough),ye.emoji&&de.push(Oe.emoji),ye.linkText&&de.push(Oe.linkText),ye.code&&de.push(Oe.code),ye.image&&de.push(Oe.image),ye.imageAltText&&de.push(Oe.imageAltText,"link"),ye.imageMarker&&de.push(Oe.imageMarker)),ye.header&&de.push(Oe.header,Oe.header+"-"+ye.header),ye.quote&&(de.push(Oe.quote),!me.maxBlockquoteDepth||me.maxBlockquoteDepth>=ye.quote?de.push(Oe.quote+"-"+ye.quote):de.push(Oe.quote+"-"+me.maxBlockquoteDepth)),ye.list!==!1){var Bt=(ye.listStack.length-1)%3;Bt?Bt===1?de.push(Oe.list2):de.push(Oe.list3):de.push(Oe.list1)}return ye.trailingSpaceNewLine?de.push("trailing-space-new-line"):ye.trailingSpace&&de.push("trailing-space-"+(ye.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function ze(ye,de){if(ye.match($e,!0))return Ze(de)}function gt(ye,de){var st=de.text(ye,de);if(typeof st!="undefined")return st;if(de.list)return de.list=null,Ze(de);if(de.taskList){var Bt=ye.match(Ge,!0)[1]===" ";return Bt?de.taskOpen=!0:de.taskClosed=!0,me.highlightFormatting&&(de.formatting="task"),de.taskList=!1,Ze(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&ye.match(/^#+$/,!0))return me.highlightFormatting&&(de.formatting="header"),Ze(de);var bt=ye.next();if(de.linkTitle){de.linkTitle=!1;var Te=bt;bt==="("&&(Te=")"),Te=(Te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var tt="^\\s*(?:[^"+Te+"\\\\]+|\\\\\\\\|\\\\.)"+Te;if(ye.match(new RegExp(tt),!0))return Oe.linkHref}if(bt==="`"){var ct=de.formatting;me.highlightFormatting&&(de.formatting="code"),ye.eatWhile("`");var rn=ye.current().length;if(de.code==0&&(!de.quote||rn==1))return de.code=rn,Ze(de);if(rn==de.code){var wt=Ze(de);return de.code=0,wt}else return de.formatting=ct,Ze(de)}else if(de.code)return Ze(de);if(bt==="\\"&&(ye.next(),me.highlightFormatting)){var Rt=Ze(de),_e=Oe.formatting+"-escape";return Rt?Rt+" "+_e:_e}if(bt==="!"&&ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,me.highlightFormatting&&(de.formatting="image"),Ze(de);if(bt==="["&&de.imageMarker&&ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,me.highlightFormatting&&(de.formatting="image"),Ze(de);if(bt==="]"&&de.imageAltText){me.highlightFormatting&&(de.formatting="image");var Rt=Ze(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=qe,Rt}if(bt==="["&&!de.image)return de.linkText&&ye.match(/^.*?\]/)||(de.linkText=!0,me.highlightFormatting&&(de.formatting="link")),Ze(de);if(bt==="]"&&de.linkText){me.highlightFormatting&&(de.formatting="link");var Rt=Ze(de);return de.linkText=!1,de.inline=de.f=ye.match(/\(.*?\)| ?\[.*?\]/,!1)?qe:gt,Rt}if(bt==="<"&&ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Be,me.highlightFormatting&&(de.formatting="link");var Rt=Ze(de);return Rt?Rt+=" ":Rt="",Rt+Oe.linkInline}if(bt==="<"&&ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Be,me.highlightFormatting&&(de.formatting="link");var Rt=Ze(de);return Rt?Rt+=" ":Rt="",Rt+Oe.linkEmail}if(me.xml&&bt==="<"&&ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Lt=ye.string.indexOf(">",ye.pos);if(Lt!=-1){var nt=ye.string.substring(ye.start,Lt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(nt)&&(de.md_inside=!0)}return ye.backUp(1),de.htmlState=re.startState(We),St(ye,de,Fe)}if(me.xml&&bt==="<"&&ye.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(bt==="*"||bt==="_"){for(var ae=1,ee=ye.pos==1?" ":ye.string.charAt(ye.pos-2);ae<3&&ye.eat(bt);)ae++;var z=ye.peek()||" ",ie=!/\s/.test(z)&&(!Le.test(z)||/\s/.test(ee)||Le.test(ee)),ue=!/\s/.test(ee)&&(!Le.test(ee)||/\s/.test(z)||Le.test(z)),ne=null,we=null;if(ae%2&&(!de.em&&ie&&(bt==="*"||!ue||Le.test(ee))?ne=!0:de.em==bt&&ue&&(bt==="*"||!ie||Le.test(z))&&(ne=!1)),ae>1&&(!de.strong&&ie&&(bt==="*"||!ue||Le.test(ee))?we=!0:de.strong==bt&&ue&&(bt==="*"||!ie||Le.test(z))&&(we=!1)),we!=null||ne!=null){me.highlightFormatting&&(de.formatting=ne==null?"strong":we==null?"em":"strong em"),ne===!0&&(de.em=bt),we===!0&&(de.strong=bt);var wt=Ze(de);return ne===!1&&(de.em=!1),we===!1&&(de.strong=!1),wt}}else if(bt===" "&&(ye.eat("*")||ye.eat("_"))){if(ye.peek()===" ")return Ze(de);ye.backUp(1)}if(me.strikethrough){if(bt==="~"&&ye.eatWhile(bt)){if(de.strikethrough){me.highlightFormatting&&(de.formatting="strikethrough");var wt=Ze(de);return de.strikethrough=!1,wt}else if(ye.match(/^[^\s]/,!1))return de.strikethrough=!0,me.highlightFormatting&&(de.formatting="strikethrough"),Ze(de)}else if(bt===" "&&ye.match(/^~~/,!0)){if(ye.peek()===" ")return Ze(de);ye.backUp(2)}}if(me.emoji&&bt===":"&&ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,me.highlightFormatting&&(de.formatting="emoji");var Ve=Ze(de);return de.emoji=!1,Ve}return bt===" "&&(ye.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),Ze(de)}function Be(ye,de){var st=ye.next();if(st===">"){de.f=de.inline=gt,me.highlightFormatting&&(de.formatting="link");var Bt=Ze(de);return Bt?Bt+=" ":Bt="",Bt+Oe.linkInline}return ye.match(/^[^>]+/,!0),Oe.linkInline}function qe(ye,de){if(ye.eatSpace())return null;var st=ye.next();return st==="("||st==="["?(de.f=de.inline=pe(st==="("?")":"]"),me.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,Ze(de)):"error"}var Xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(ye){return function(de,st){var Bt=de.next();if(Bt===ye){st.f=st.inline=gt,me.highlightFormatting&&(st.formatting="link-string");var bt=Ze(st);return st.linkHref=!1,bt}return de.match(Xe[ye]),st.linkHref=!0,Ze(st)}}function Ct(ye,de){return ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Me,ye.next(),me.highlightFormatting&&(de.formatting="link"),de.linkText=!0,Ze(de)):yt(ye,de,gt)}function Me(ye,de){if(ye.match(/^\]:/,!0)){de.f=de.inline=Et,me.highlightFormatting&&(de.formatting="link");var st=Ze(de);return de.linkText=!1,st}return ye.match(/^([^\]\\]|\\.)+/,!0),Oe.linkText}function Et(ye,de){return ye.eatSpace()?null:(ye.match(/^[^\s]+/,!0),ye.peek()===void 0?de.linkTitle=!0:ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=gt,Oe.linkHref+" url")}var jt={startState:function(){return{f:lt,prevLine:{stream:null},thisLine:{stream:null},block:lt,htmlState:null,indentation:0,inline:gt,text:ze,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(ye){return{f:ye.f,prevLine:ye.prevLine,thisLine:ye.thisLine,block:ye.block,htmlState:ye.htmlState&&re.copyState(We,ye.htmlState),indentation:ye.indentation,localMode:ye.localMode,localState:ye.localMode?re.copyState(ye.localMode,ye.localState):null,inline:ye.inline,text:ye.text,formatting:!1,linkText:ye.linkText,linkTitle:ye.linkTitle,linkHref:ye.linkHref,code:ye.code,em:ye.em,strong:ye.strong,strikethrough:ye.strikethrough,emoji:ye.emoji,header:ye.header,setext:ye.setext,hr:ye.hr,taskList:ye.taskList,list:ye.list,listStack:ye.listStack.slice(0),quote:ye.quote,indentedCode:ye.indentedCode,trailingSpace:ye.trailingSpace,trailingSpaceNewLine:ye.trailingSpaceNewLine,md_inside:ye.md_inside,fencedEndRE:ye.fencedEndRE}},token:function(ye,de){if(de.formatting=!1,ye!=de.thisLine.stream){if(de.header=0,de.hr=!1,ye.match(/^\s*$/,!0))return Ye(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:ye},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Fe)){var st=ye.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(de.indentation=st,de.indentationDiff=null,st>0)return null}}return de.f(ye,de)},innerMode:function(ye){return ye.block==Fe?{state:ye.htmlState,mode:We}:ye.localState?{state:ye.localState,mode:ye.localMode}:{state:ye,mode:jt}},indent:function(ye,de,st){return ye.block==Fe&&We.indent?We.indent(ye.htmlState,de,st):ye.localState&&ye.localMode.indent?ye.localMode.indent(ye.localState,de,st):re.Pass},blankLine:Ye,getType:Ze,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return jt},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(Gt,It,le){(function(re){re(le(89780))})(function(re){"use strict";re.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 et=0;et-1&&We.substring(Oe+1,We.length);if(Ke)return re.findModeByExtension(Ke)},re.findModeByName=function(We){We=We.toLowerCase();for(var be=0;be0?$e.cmdState[$e.cmdState.length-1]:null}function Ce($e){var Ae=$e.cmdState.pop();Ae&&Ae.closeBracket()}function Oe($e){for(var Ae=$e.cmdState,He=Ae.length-1;He>=0;He--){var Le=Ae[He];if(Le.name!="DEFAULT")return Le}return{styleIdentifier:function(){return null}}}function Ke($e,Ae,He){return function(){this.name=$e,this.bracketNo=0,this.style=Ae,this.styles=He,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Se={};Se.importmodule=Ke("importmodule","tag",["string","builtin"]),Se.documentclass=Ke("documentclass","tag",["","atom"]),Se.usepackage=Ke("usepackage","tag",["atom"]),Se.begin=Ke("begin","tag",["atom"]),Se.end=Ke("end","tag",["atom"]),Se.label=Ke("label","tag",["atom"]),Se.ref=Ke("ref","tag",["atom"]),Se.eqref=Ke("eqref","tag",["atom"]),Se.cite=Ke("cite","tag",["atom"]),Se.bibitem=Ke("bibitem","tag",["atom"]),Se.Bibitem=Ke("Bibitem","tag",["atom"]),Se.RBibitem=Ke("RBibitem","tag",["atom"]),Se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe($e,Ae){$e.f=Ae}function Ge($e,Ae){var He;if($e.match(/^\\[a-zA-Z@]+/)){var Le=$e.current().slice(1);return He=Se.hasOwnProperty(Le)?Se[Le]:Se.DEFAULT,He=new He,We(Ae,He),fe(Ae,ft),He.style}if($e.match(/^\\[$&%#{}_]/)||$e.match(/^\\[,;!\/\\]/))return"tag";if($e.match("\\["))return fe(Ae,function(yt,St){return xe(yt,St,"\\]")}),"keyword";if($e.match("\\("))return fe(Ae,function(yt,St){return xe(yt,St,"\\)")}),"keyword";if($e.match("$$"))return fe(Ae,function(yt,St){return xe(yt,St,"$$")}),"keyword";if($e.match("$"))return fe(Ae,function(yt,St){return xe(yt,St,"$")}),"keyword";var rt=$e.next();if(rt=="%")return $e.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(He=be(Ae),He)He.closeBracket(rt),fe(Ae,ft);else return"error";return"bracket"}else return rt=="{"||rt=="["?(He=Se.DEFAULT,He=new He,We(Ae,He),"bracket"):/\d/.test(rt)?($e.eatWhile(/[\w.%]/),"atom"):($e.eatWhile(/[\w\-_]/),He=Oe(Ae),He.name=="begin"&&(He.argument=$e.current()),He.styleIdentifier())}function xe($e,Ae,He){if($e.eatSpace())return null;if(He&&$e.match(He))return fe(Ae,Ge),"keyword";if($e.match(/^\\[a-zA-Z@]+/))return"tag";if($e.match(/^[a-zA-Z]+/))return"variable-2";if($e.match(/^\\[$&%#{}_]/)||$e.match(/^\\[,;!\/]/)||$e.match(/^[\^_&]/))return"tag";if($e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if($e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Le=$e.next();return Le=="{"||Le=="}"||Le=="["||Le=="]"||Le=="("||Le==")"?"bracket":Le=="%"?($e.skipToEnd(),"comment"):"error"}function ft($e,Ae){var He=$e.peek(),Le;return He=="{"||He=="["?(Le=be(Ae),Le.openBracket(He),$e.eat(He),fe(Ae,Ge),"bracket"):/[ \t\r]/.test(He)?($e.eat(He),null):(fe(Ae,Ge),Ce(Ae),Ge($e,Ae))}return{startState:function(){var $e=me.inMathMode?function(Ae,He){return xe(Ae,He)}:Ge;return{cmdState:[],f:$e}},copyState:function($e){return{cmdState:$e.cmdState.slice(),f:$e.f}},token:function($e,Ae){return Ae.f($e,Ae)},blankLine:function($e){$e.f=Ge,$e.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(Gt,It,le){(function(re){re(le(89780))})(function(re){"use strict";var et={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},me={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(We,be){var Ce=We.indentUnit,Oe={},Ke=be.htmlMode?et:me;for(var Se in Ke)Oe[Se]=Ke[Se];for(var Se in be)Oe[Se]=be[Se];var fe,Ge;function xe(Be,qe){function Xe(Me){return qe.tokenize=Me,Me(Be,qe)}var pe=Be.next();if(pe=="<")return Be.eat("!")?Be.eat("[")?Be.match("CDATA[")?Xe(Ae("atom","]]>")):null:Be.match("--")?Xe(Ae("comment","-->")):Be.match("DOCTYPE",!0,!0)?(Be.eatWhile(/[\w\._\-]/),Xe(He(1))):null:Be.eat("?")?(Be.eatWhile(/[\w\._\-]/),qe.tokenize=Ae("meta","?>"),"meta"):(fe=Be.eat("/")?"closeTag":"openTag",qe.tokenize=ft,"tag bracket");if(pe=="&"){var Ct;return Be.eat("#")?Be.eat("x")?Ct=Be.eatWhile(/[a-fA-F\d]/)&&Be.eat(";"):Ct=Be.eatWhile(/[\d]/)&&Be.eat(";"):Ct=Be.eatWhile(/[\w\.\-:]/)&&Be.eat(";"),Ct?"atom":"error"}else return Be.eatWhile(/[^&<]/),null}xe.isInText=!0;function ft(Be,qe){var Xe=Be.next();if(Xe==">"||Xe=="/"&&Be.eat(">"))return qe.tokenize=xe,fe=Xe==">"?"endTag":"selfcloseTag","tag bracket";if(Xe=="=")return fe="equals",null;if(Xe=="<"){qe.tokenize=xe,qe.state=St,qe.tagName=qe.tagStart=null;var pe=qe.tokenize(Be,qe);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(Xe)?(qe.tokenize=$e(Xe),qe.stringStartCol=Be.column(),qe.tokenize(Be,qe)):(Be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function $e(Be){var qe=function(Xe,pe){for(;!Xe.eol();)if(Xe.next()==Be){pe.tokenize=ft;break}return"string"};return qe.isInAttribute=!0,qe}function Ae(Be,qe){return function(Xe,pe){for(;!Xe.eol();){if(Xe.match(qe)){pe.tokenize=xe;break}Xe.next()}return Be}}function He(Be){return function(qe,Xe){for(var pe;(pe=qe.next())!=null;){if(pe=="<")return Xe.tokenize=He(Be+1),Xe.tokenize(qe,Xe);if(pe==">")if(Be==1){Xe.tokenize=xe;break}else return Xe.tokenize=He(Be-1),Xe.tokenize(qe,Xe)}return"meta"}}function Le(Be,qe,Xe){this.prev=Be.context,this.tagName=qe,this.indent=Be.indented,this.startOfLine=Xe,(Oe.doNotIndent.hasOwnProperty(qe)||Be.context&&Be.context.noIndent)&&(this.noIndent=!0)}function rt(Be){Be.context&&(Be.context=Be.context.prev)}function yt(Be,qe){for(var Xe;;){if(!Be.context||(Xe=Be.context.tagName,!Oe.contextGrabbers.hasOwnProperty(Xe)||!Oe.contextGrabbers[Xe].hasOwnProperty(qe)))return;rt(Be)}}function St(Be,qe,Xe){return Be=="openTag"?(Xe.tagStart=qe.column(),at):Be=="closeTag"?Ye:St}function at(Be,qe,Xe){return Be=="word"?(Xe.tagName=qe.current(),Ge="tag",ht):Oe.allowMissingTagName&&Be=="endTag"?(Ge="tag bracket",ht(Be,qe,Xe)):(Ge="error",at)}function Ye(Be,qe,Xe){if(Be=="word"){var pe=qe.current();return Xe.context&&Xe.context.tagName!=pe&&Oe.implicitlyClosed.hasOwnProperty(Xe.context.tagName)&&rt(Xe),Xe.context&&Xe.context.tagName==pe||Oe.matchClosing===!1?(Ge="tag",lt):(Ge="tag error",Fe)}else return Oe.allowMissingTagName&&Be=="endTag"?(Ge="tag bracket",lt(Be,qe,Xe)):(Ge="error",Fe)}function lt(Be,qe,Xe){return Be!="endTag"?(Ge="error",lt):(rt(Xe),St)}function Fe(Be,qe,Xe){return Ge="error",lt(Be,qe,Xe)}function ht(Be,qe,Xe){if(Be=="word")return Ge="attribute",Ze;if(Be=="endTag"||Be=="selfcloseTag"){var pe=Xe.tagName,Ct=Xe.tagStart;return Xe.tagName=Xe.tagStart=null,Be=="selfcloseTag"||Oe.autoSelfClosers.hasOwnProperty(pe)?yt(Xe,pe):(yt(Xe,pe),Xe.context=new Le(Xe,pe,Ct==Xe.indented)),St}return Ge="error",ht}function Ze(Be,qe,Xe){return Be=="equals"?ze:(Oe.allowMissing||(Ge="error"),ht(Be,qe,Xe))}function ze(Be,qe,Xe){return Be=="string"?gt:Be=="word"&&Oe.allowUnquoted?(Ge="string",ht):(Ge="error",ht(Be,qe,Xe))}function gt(Be,qe,Xe){return Be=="string"?gt:ht(Be,qe,Xe)}return{startState:function(Be){var qe={tokenize:xe,state:St,indented:Be||0,tagName:null,tagStart:null,context:null};return Be!=null&&(qe.baseIndent=Be),qe},token:function(Be,qe){if(!qe.tagName&&Be.sol()&&(qe.indented=Be.indentation()),Be.eatSpace())return null;fe=null;var Xe=qe.tokenize(Be,qe);return(Xe||fe)&&Xe!="comment"&&(Ge=null,qe.state=qe.state(fe||Xe,Be,qe),Ge&&(Xe=Ge=="error"?Xe+" error":Ge)),Xe},indent:function(Be,qe,Xe){var pe=Be.context;if(Be.tokenize.isInAttribute)return Be.tagStart==Be.indented?Be.stringStartCol+1:Be.indented+Ce;if(pe&&pe.noIndent)return re.Pass;if(Be.tokenize!=ft&&Be.tokenize!=xe)return Xe?Xe.match(/^(\s*)/)[0].length:0;if(Be.tagName)return Oe.multilineTagIndentPastTag!==!1?Be.tagStart+Be.tagName.length+2:Be.tagStart+Ce*(Oe.multilineTagIndentFactor||1);if(Oe.alignCDATA&&/$/,blockCommentStart:"",configuration:Oe.htmlMode?"html":"xml",helperType:Oe.htmlMode?"html":"xml",skipAttribute:function(Be){Be.state==ze&&(Be.state=ht)},xmlCurrentTag:function(Be){return Be.tagName?{name:Be.tagName,close:Be.type=="closeTag"}:null},xmlCurrentContext:function(Be){for(var qe=[],Xe=Be.context;Xe;Xe=Xe.prev)Xe.tagName&&qe.push(Xe.tagName);return qe.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(Gt,It,le){"use strict";le.d(It,{hP:function(){return nt}});var re=function(ae,ee){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ie){z.__proto__=ie}||function(z,ie){for(var ue in ie)Object.prototype.hasOwnProperty.call(ie,ue)&&(z[ue]=ie[ue])})(ae,ee)};function et(ae,ee){function z(){this.constructor=ae}re(ae,ee),ae.prototype=ee===null?Object.create(ee):(z.prototype=ee.prototype,new z)}function me(ae,ee,z,ie){return new(z||(z=Promise))(function(ue,ne){function we(je){try{Pt(ie.next(je))}catch(Je){ne(Je)}}function Ve(je){try{Pt(ie.throw(je))}catch(Je){ne(Je)}}function Pt(je){var Je;je.done?ue(je.value):(Je=je.value,Je instanceof z?Je:new z(function(dt){dt(Je)})).then(we,Ve)}Pt((ie=ie.apply(ae,ee||[])).next())})}function We(ae,ee){var z,ie,ue,ne,we={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return ne={next:Ve(0),throw:Ve(1),return:Ve(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ve(Pt){return function(je){return function(Je){if(z)throw new TypeError("Generator is already executing.");for(;we;)try{if(z=1,ie&&(ue=2&Je[0]?ie.return:Je[0]?ie.throw||((ue=ie.return)&&ue.call(ie),0):ie.next)&&!(ue=ue.call(ie,Je[1])).done)return ue;switch(ie=0,ue&&(Je=[2&Je[0],ue.value]),Je[0]){case 0:case 1:ue=Je;break;case 4:return we.label++,{value:Je[1],done:!1};case 5:we.label++,ie=Je[1],Je=[0];continue;case 7:Je=we.ops.pop(),we.trys.pop();continue;default:if(ue=we.trys,!((ue=ue.length>0&&ue[ue.length-1])||Je[0]!==6&&Je[0]!==2)){we=0;continue}if(Je[0]===3&&(!ue||Je[1]>ue[0]&&Je[1]',"select"),this.addActionButton(ie,'',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ie,'',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ie,'',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ie,'',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ie,'',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ie,'',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ie,'',"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 we=document.createElement("div");we.className=""+z.toolbarButtonStyleClass.name,we.setAttribute("data-type-name",ne.typeName),we.innerHTML=ne.icon,we.addEventListener("click",function(){z.markerToolbarButtonClicked(we,ne)}),z.buttons.push(we),z.markerButtons.push(we)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'',"render"),this.addActionButton(ue,'',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(ee){this.buttonClickListeners.push(ee)},ae.prototype.removeButtonClickListener=function(ee){this.buttonClickListeners.indexOf(ee)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ee),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ee=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var z=0;z0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ee,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ee){this.resetButtonStyles(),ee.className=ee.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ee){var z=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===ee});z&&this.setActiveButton(z)},ae.prototype.setCurrentMarker=function(ee){var z=this;this.currentMarker=ee,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){z.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),$e=function(){function ae(ee,z,ie,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=ee,this.displayMode=z,this.uiStyleSettings=ie,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ee;this.toolboxStyleClass=this.styles.addClass(new xe("toolbox",` width: 100%; flex-shrink: 0; display: flex; flex-direction: column; font-family: sans-serif; `+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+` box-sizing: content-box; `+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+` `+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` `+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+` overflow: hidden; `)),this.toolboxStyleColorsClass=this.styles.addClass(new xe("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new xe("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new xe("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new xe("toolbox-panel-row",` display: flex; `+(this.displayMode==="inline"?"position: absolute;":"")+` `+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+` cursor: default; height: `+1.5*this.uiStyleSettings.toolbarHeight+`px; `+(this.displayMode==="inline"?"width: 100%;":"")+` box-sizing: content-box; `)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new xe("toolbox-panel-row_colors",` background-color: `+((ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ee!==void 0?ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new xe("toolbox_button",` display: inline-block; width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px; height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px; padding: `+z+`px; box-sizing: content-box; `)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new xe("toolbox-active-button_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`; fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleColorsClass.name+":hover",` background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+` `)),this.styles.addRule(new Ge("."+this.toolboxButtonStyleClass.name+" svg",` height: `+this.uiStyleSettings.toolbarHeight/2+`px; `))},ae.prototype.show=function(ee){var z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolboxStyleClass.name+" "+((z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ee){var z,ie,ue=this;this.panels=ee,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var we;ne.uiStyleSettings=ue.uiStyleSettings;var Ve=document.createElement("div");Ve.className=ue.toolboxButtonStyleClass.name+" "+((we=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&we!==void 0?we:ue.toolboxButtonStyleColorsClass.name),Ve.innerHTML=ne.icon,Ve.title=ne.title,Ve.addEventListener("click",function(){ue.panelButtonClick(ne)}),ue.panelButtons.push(Ve),ue.buttonRow.appendChild(Ve)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ee){var z=this,ie=-1;if(ee!==this.activePanel){ie=this.panels.indexOf(ee),this.panelRow.innerHTML="";var ue=ee.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ee}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){z.displayMode==="inline"?z.panelRow.style.display="none":z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,we){var Ve,Pt;ne.className=z.toolboxButtonStyleClass.name+" "+(we===ie?""+((Ve=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ve!==void 0?Ve:z.toolboxActiveButtonStyleColorsClass.name):""+((Pt=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Pt!==void 0?Pt:z.toolboxButtonStyleColorsClass.name))})},ae}(),Ae=function(ae,ee){this.title=ae,this.icon=ee},He=function(ae){function ee(z,ie,ue,ne){var we=ae.call(this,z,ne||'')||this;return we.colors=[],we.addTransparent=!1,we.colorBoxes=[],we.colors=ie,we.currentColor=ue,we.setCurrentColor=we.setCurrentColor.bind(we),we.getColorBox=we.getColorBox.bind(we),we}return et(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var ne=z.getColorBox(ue);ie.appendChild(ne),z.colorBoxes.push(ne)}),ie},ee.prototype.getColorBox=function(z){var ie=this,ue=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ue,we=document.createElement("div");we.style.display="inline-block",we.style.boxSizing="content-box",we.style.width=ne-2+"px",we.style.height=ne-2+"px",we.style.padding="1px",we.style.marginRight="2px",we.style.marginBottom="2px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderRadius=(ne+2)/2+"px",we.style.borderColor=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ie.setCurrentColor(z,we)});var Ve=document.createElement("div");return Ve.style.display="inline-block",Ve.style.width=ne-2+"px",Ve.style.height=ne-2+"px",Ve.style.backgroundColor=z,Ve.style.borderRadius=ne/2+"px",z==="transparent"&&(Ve.style.fill=this.uiStyleSettings.toolboxAccentColor,Ve.innerHTML=` `),we.appendChild(Ve),we},ee.prototype.setCurrentColor=function(z,ie){var ue=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},ee}(Ae),Le=function(){function ae(ee,z,ie){this._state="new",this._isSelected=!1,this._container=ee,this._overlayContainer=z,this.globalSettings=ie,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(ee){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(ee,z){},ae.prototype.dblClick=function(ee,z){},ae.prototype.manipulate=function(ee){},ae.prototype.pointerUp=function(ee){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ee){this.container.childNodes.length>0?this.container.insertBefore(ee,this.container.childNodes[0]):this.container.appendChild(ee)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ee){this._state=ee.state,this.notes=ee.notes},ae.prototype.scale=function(ee,z){},ae.prototype.colorChanged=function(ee){this.onColorChanged&&this.onColorChanged(ee),this.stateChanged()},ae.prototype.fillColorChanged=function(ee){this.onFillColorChanged&&this.onFillColorChanged(ee),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ee=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ee.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ee)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),rt=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ee){return this.topLeft.ownsTarget(ee)?this.topLeft:this.topCenter.ownsTarget(ee)?this.topCenter:this.topRight.ownsTarget(ee)?this.topRight:this.centerLeft.ownsTarget(ee)?this.centerLeft:this.centerRight.ownsTarget(ee)?this.centerRight:this.bottomLeft.ownsTarget(ee)?this.bottomLeft:this.bottomCenter.ownsTarget(ee)?this.bottomCenter:this.bottomRight.ownsTarget(ee)?this.bottomRight:void 0},ae}(),yt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Ce.createGroup(),this.visual.appendChild(Ce.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ce.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ee){return ee===this.visual||ee===this.visual.childNodes[0]||ee===this.visual.childNodes[1]},ae}(),St=function(){function ae(){}return ae.toITransformMatrix=function(ee){return{a:ee.a,b:ee.b,c:ee.c,d:ee.d,e:ee.e,f:ee.f}},ae.toSVGMatrix=function(ee,z){return ee.a=z.a,ee.b=z.b,ee.c=z.c,ee.d=z.d,ee.e=z.e,ee.f=z.f,ee},ae}(),at=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Ce.createTransform()),ne.setupControlBox(),ne}return et(ee,ae),Object.defineProperty(ee.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"visual",{get:function(){return this._visual},set:function(z){this._visual=z;var ie=Ce.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!!(this.controlGrips.findGripByVisual(z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z))},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.left=z.x,this.top=z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ue=this.unrotatePoint(z);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){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 we=this.container.transform.baseVal.getItem(0);we.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(we,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ee.prototype.pointerUp=function(z){var ie=this.state;ae.prototype.pointerUp.call(this,z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(z),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ee.prototype.moveVisual=function(z){this.visual.style.transform="translate("+z.x+"px, "+z.y+"px)"},ee.prototype.manipulate=function(z){var ie=this.unrotatePoint(z);this.state==="creating"?this.resize(z):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(z)},ee.prototype.resize=function(z){var ie=this.manipulationStartLeft,ue=this.manipulationStartWidth,ne=this.manipulationStartTop,we=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+z.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=this.manipulationStartWidth+z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+z.y-this.manipulationStartY,we=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:we=this.manipulationStartHeight+z.y-this.manipulationStartY}ue>=0?(this.left=ie,this.width=ue):(this.left=ie+ue,this.width=-ue),we>=0?(this.top=ne,this.height=we):(this.top=ne+we,this.height=-we),this.setSize()},ee.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ee.prototype.rotate=function(z){if(Math.abs(z.x-this.centerX)>.1){var ie=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},ee.prototype.applyRotation=function(){var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0)},ee.prototype.rotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM(),ue=Ce.createPoint(z.x,z.y);return{x:(ue=ue.matrixTransform(ie)).x,y:ue.y}},ee.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM();ie=ie.inverse();var ue=Ce.createPoint(z.x,z.y);return{x:(ue=ue.matrixTransform(ie)).x,y:ue.y}},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=Ce.createGroup();var z=Ce.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=Ce.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Ce.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new rt,this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){var z=this.controlBox.transform.baseVal.getItem(0);z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(z,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()},ee.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()},ee.prototype.createGrip=function(){var z=new yt;return z.visual.transform.baseVal.appendItem(Ce.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,ie=-z/2,ue=ie,ne=(this.width+this.CB_DISTANCE)/2-z/2,we=(this.height+this.CB_DISTANCE)/2-z/2,Ve=this.height+this.CB_DISTANCE-z/2,Pt=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,ue),this.positionGrip(this.controlGrips.topCenter.visual,ne,ue),this.positionGrip(this.controlGrips.topRight.visual,Pt,ue),this.positionGrip(this.controlGrips.centerLeft.visual,ie,we),this.positionGrip(this.controlGrips.centerRight.visual,Pt,we),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Ve),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ve),this.positionGrip(this.controlGrips.bottomRight.visual,Pt,Ve),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ue-3*this.CB_DISTANCE)},ee.prototype.positionGrip=function(z,ie,ue){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,ue),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ee.prototype.showControlBox=function(){this.controlBox.style.display=""},ee.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:St.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:St.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(St.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(St.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie);var ue=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ue.x*z,y:ue.y*ie});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*ie,this.adjustControlBox()},ee}(Le),Ye=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=Ce.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&Ce.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&Ce.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&Ce.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&Ce.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.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))},ee.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.title="Rectangle marker",ee}(at),lt=function(ae){function ee(z,ie,ue,ne){var we=ae.call(this,z,ne||'')||this;return we.widths=[],we.widthBoxes=[],we.widths=ie,we.currentWidth=ue,we.setCurrentWidth=we.setCurrentWidth.bind(we),we}return et(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ue===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentWidth(ue,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.innerText=ue.toString(),we.style.marginRight="5px",ne.appendChild(we);var Ve=document.createElement("div");Ve.style.minHeight="20px",Ve.style.flexGrow="2",Ve.style.display="flex",Ve.style.alignItems="center";var Pt=document.createElement("hr");Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop=ue+"px solid "+z.uiStyleSettings.toolboxColor,Pt.style.flexGrow="2",Ve.appendChild(Pt),ne.appendChild(Ve),z.widthBoxes.push(ne)}),ie},ee.prototype.setCurrentWidth=function(z,ie){var ue=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ee}(Ae),Fe=function(ae){function ee(z,ie,ue,ne){var we=ae.call(this,z,ne||'')||this;return we.styles=[],we.styleBoxes=[],we.styles=ie,we.currentStyle=ue,we.setCurrentStyle=we.setCurrentStyle.bind(we),we}return et(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.styles.length-5+"%",ne.style.borderColor=ue===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentStyle(ue,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.overflow="hidden";var Ve=` `;we.innerHTML=Ve,ne.appendChild(we),z.styleBoxes.push(ne)}),ie},ee.prototype.setCurrentStyle=function(z,ie){var ue=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ee}(Ae),ht=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new He("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new lt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return et(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="FrameMarker",ee.title="Frame marker",ee.icon='',ee}(Ye),Ze=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"},ze=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!(!this.grip1.ownsTarget(z)&&!this.grip2.ownsTarget(z))},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.state==="new"&&(this.x1=z.x,this.y1=z.y,this.x2=z.x,this.y2=z.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(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ee.prototype.pointerUp=function(z){var ie=this.state;ae.prototype.pointerUp.call(this,z),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(z),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ee.prototype.adjustVisual=function(){},ee.prototype.manipulate=function(z){this.state==="creating"?this.resize(z):this.state==="move"?(this.x1=this.manipulationStartX1+z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(z)},ee.prototype.resize=function(z){switch(this.activeGrip){case this.grip1:this.x1=z.x,this.y1=z.y;break;case this.grip2:case void 0:this.x2=z.x,this.y2=z.y}this.adjustVisual(),this.adjustControlBox()},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=Ce.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){this.positionGrips()},ee.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ee.prototype.createGrip=function(){var z=new yt;return z.visual.transform.baseVal.appendItem(Ce.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-z/2,this.y1-z/2),this.positionGrip(this.grip2.visual,this.x2-z/2,this.y2-z/2)},ee.prototype.positionGrip=function(z,ie,ue){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,ue),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.x1=this.x1*z,this.y1=this.y1*ie,this.x2=this.x2*z,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},ee}(Le),gt=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new He("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new lt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorLine&&z!==this.visibleLine)},ee.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.selectorLine=Ce.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ce.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ee.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ce.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ce.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ce.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},ee.typeName="LineMarker",ee.title="Line marker",ee.icon='',ee}(ze),Be=function(ae){function ee(z,ie,ue,ne){var we=ae.call(this,z,ne||'')||this;return we.fonts=[],we.fontBoxes=[],we.fonts=ie,we.currentFont=ue,we.setCurrentFont=we.setCurrentFont.bind(we),we}return et(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(ue){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.fonts.length-5+"%",ne.style.borderColor=ue===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentFont(ue,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.style.display="flex",we.style.minHeight="20px",we.style.flexGrow="2",we.style.fontFamily=ue,we.style.overflow="hidden";var Ve=document.createElement("div");Ve.style.whiteSpace="nowrap",Ve.style.overflow="hidden",Ve.style.textOverflow="ellipsis",Ve.innerHTML="The quick brown fox jumps over the lazy dog",we.appendChild(Ve),ne.appendChild(we),z.fontBoxes.push(ne)}),ie},ee.prototype.setCurrentFont=function(z,ie){var ue=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ee}(Ae),qe=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=ue.defaultColor,ne.fontFamily=ue.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new He("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Be("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){if(ae.prototype.ownsTarget.call(this,z)||z===this.visual||z===this.textElement||z===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(ue){ue===z&&(ie=!0)}),ie},ee.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.bgRectangle=Ce.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ce.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ce.createTransform()),this.textElement.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.renderText=function(){var z=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(ie){z.textElement.appendChild(Ce.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ee.prototype.getTextScale=function(){var z=this.textElement.getBBox(),ie=1;if(z.width>0&&z.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/z.width,ne=(1*this.height-this.height*this.padding*2/100)/z.height;ie=Math.min(ue,ne)}return ie},ee.prototype.getTextPosition=function(z){var ie=this.textElement.getBBox(),ue=0,ne=0;return ie.width>0&&ie.height>0&&(ue=(this.width-ie.width*z)/2,ne=this.height/2-ie.height*z/2),{x:ue,y:ne}},ee.prototype.sizeText=function(){var z=this.textElement.getBBox(),ie=this.getTextScale(),ue=this.getTextPosition(ie);ue.y-=z.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.isMoved=!0,this.setSize(),this.sizeText()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ee.prototype.pointerUp=function(z){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,z),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.showTextEditor=function(){var z=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(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,z.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var ue=ie.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ue)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){z.textEditDivClicked(z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ee.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var z=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),ne={x:ue.width*z,y:ue.height*z};ie.x-=ne.x/2,ie.y-=ne.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*z,12)+"px",this.textElement.style.display="none"}},ee.prototype.textEditDivClicked=function(z){this.text=z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ee.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ee.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ee.prototype.dblClick=function(z,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},ee.prototype.setColor=function(z){this.textElement&&Ce.setAttributes(this.textElement,[["fill",z]]),this.color=z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(z)},ee.prototype.setFont=function(z){this.textElement&&Ce.setAttributes(this.textElement,[["font-family",z]]),this.fontFamily=z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ee.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ee.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},ee.typeName="TextMarker",ee.title="Text marker",ee.icon='',ee}(at),Xe=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ue.defaultColor,ne.lineWidth=ue.defaultStrokeWidth,ne.pixelRatio=ue.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new He("Color",ue.defaultColorSet,ue.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new lt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.drawingImage)},ee.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.drawingImage=Ce.createImage(),this.visual.appendChild(this.drawingImage);var z=Ce.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){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(z.x,z.y),this.drawing=!0):ae.prototype.pointerDown.call(this,z,ie)},ee.prototype.manipulate=function(z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(z.x,z.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),Ce.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,z)},ee.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)},ee.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ee.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ee.prototype.finishCreation=function(){for(var z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=ie[0],ne=ie[1],we=ie[2],Ve=ie[3],Pt=!1,je=0;je0&&(Pt=!0,jeVe&&(Ve=je),Je>we&&(we=Je));if(Pt){this.left=ue/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(we-ue)/this.pixelRatio,this.height=(Ve-ne)/this.pixelRatio;var dt=document.createElement("canvas");dt.width=we-ue,dt.height=Ve-ne,dt.getContext("2d").putImageData(this.canvasContext.getImageData(ue,ne,we-ue,Ve-ne),0,0),this.drawingImgUrl=dt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ee.prototype.setDrawingImage=function(){Ce.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ce.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ee.prototype.setColor=function(z){this.color=z,this.colorChanged(z)},ee.prototype.setLineWidth=function(z){this.lineWidth=z},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){this.createVisual(),ae.prototype.restoreState.call(this,z),this.drawingImgUrl=z.drawingImgUrl,this.setDrawingImage()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setDrawingImage()},ee.typeName="FreehandMarker",ee.title="Freehand marker",ee.icon='',ee}(at),pe=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ue||'')||this;return ne.typeBoxes=[],ne.currentType=ie,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return et(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var ue=function(Ve){var Pt="both";switch(Ve){case 0:Pt="both";break;case 1:Pt="start";break;case 2:Pt="end";break;case 3:Pt="none"}var je=document.createElement("div");if(je.style.display="flex",je.style.flexGrow="2",je.style.alignItems="center",je.style.justifyContent="space-between",je.style.padding="5px",je.style.borderWidth="2px",je.style.borderStyle="solid",je.style.borderColor=Pt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",je.addEventListener("click",function(){z.setCurrentType(Pt,je)}),ie.appendChild(je),Pt==="both"||Pt==="start"){var Je=document.createElement("div");Je.style.display="flex",Je.style.alignItems="center",Je.style.minHeight="20px",Je.innerHTML=` `,Je.style.marginLeft="5px",je.appendChild(Je)}var dt=document.createElement("div");dt.style.display="flex",dt.style.alignItems="center",dt.style.minHeight="20px",dt.style.flexGrow="2";var Dt=document.createElement("hr");if(Dt.style.minWidth="20px",Dt.style.border="0px",Dt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Dt.style.flexGrow="2",dt.appendChild(Dt),je.appendChild(dt),Pt==="both"||Pt==="end"){var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.innerHTML=` `,kt.style.marginRight="5px",je.appendChild(kt)}ne.typeBoxes.push(je)},ne=this,we=0;we<4;we++)ue(we);return ie},ee.prototype.setCurrentType=function(z,ie){var ue=this;this.currentType=z,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ee}(Ae),Ct=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new pe("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.arrow1&&z!==this.arrow2)},ee.prototype.getArrowPoints=function(z,ie){var ue=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-ue/2+","+(ie+ne/2)+" "+z+","+(ie-ne/2)+" "+(z+ue/2)+","+(ie+ne/2)},ee.prototype.createTips=function(){this.arrow1=Ce.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ce.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ce.createTransform()),this.visual.appendChild(this.arrow2)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"&&this.createTips()},ee.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ce.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ce.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var z=0;Math.abs(this.x1-this.x2)>.1&&(z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,0)}},ee.prototype.setArrowType=function(z){this.arrowType=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},ee.typeName="ArrowMarker",ee.title="Arrow marker",ee.icon='',ee}(gt),Me=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.fillColor=ue.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new He("Color",ue.defaultColorSet,ue.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return et(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="CoverMarker",ee.title="Cover marker",ee.icon='',ee}(Ye),Et=function(ae){function ee(z,ie,ue,ne){var we=ae.call(this,z,ne||'')||this;return we.opacities=[],we.opacityBoxes=[],we.opacities=ie,we.currentOpacity=ue,we.setCurrentOpacity=we.setCurrentOpacity.bind(we),we}return et(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(ue){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ue===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentOpacity(ue,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.innerText=100*ue+"%",ne.appendChild(we),z.opacityBoxes.push(ne)}),ie},ee.prototype.setCurrentOpacity=function(z,ie){var ue=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ee}(Ae),jt=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ue.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ue.defaultHighlightOpacity,ne.fillPanel=new He("Color",ue.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new Et("Opacity",ue.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return et(ee,ae),ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&Ce.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="HighlightMarker",ee.title="Highlight marker",ee.icon='',ee}(Me),ye='',de='',st=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=ue.defaultStrokeColor,ne.bgColor=ue.defaultFillColor,ne.fontFamily=ue.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new He("Text color",ue.defaultColorSet,ne.color,ye),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new He("Fill color",ue.defaultColorSet,ne.bgColor,de),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Be("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new yt,ne.tipGrip.visual.transform.baseVal.appendItem(Ce.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return ae.prototype.ownsTarget.call(this,z)||this.tipGrip.ownsTarget(z)||this.tip===z},ee.prototype.createTip=function(){Ce.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ce.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ee.prototype.pointerDown=function(z,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,z,ie)},ee.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,z);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,z),this.setTipPoints(ie),this.positionTip()}},ee.prototype.manipulate=function(z){if(this.tipMoving){var ie=this.unrotatePoint(z);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,z)},ee.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(Ce.setAttributes(this.bgRectangle,[["fill",z]]),Ce.setAttributes(this.tip,[["fill",z]])),this.bgColor=z,this.fillColorChanged(z)},ee.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},ee.prototype.setTipPoints=function(z){z===void 0&&(z=!1);var ie=Math.min(this.height/2,15),ue=this.height/5;z&&(this.tipPosition={x:ie+ue/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.width/2&&this.tipPosition.y>=this.height/2?ne.1)){var z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,0)}},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z),this.createTips(),this.adjustVisual()},ee.typeName="MeasurementMarker",ee.title="Measurement marker",ee.icon='',ee}(gt),Te=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.strokePanel.colors=ue.defaultColorSet,ne.fillColor="transparent",ne}return et(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="EllipseFrameMarker",ee.title="Ellipse frame marker",ee.icon='',ee}(Bt),tt=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(ee){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ee)||(this.undoStack.push(ee),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ee)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ee){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ee)},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 ee=this.undoStack.pop();return ee!==void 0&&this.redoStack.push(ee),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}(),ct=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.strokePanel=new He("Line color",ue.defaultColorSet,ue.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new lt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorCurve&&z!==this.visibleCurve&&!this.curveGrip.ownsTarget(z))},ee.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ee.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.selectorCurve=Ce.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ce.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=z.x,this.curveY=z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},ee.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ce.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ce.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ce.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Ce.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ce.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ee.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ee.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-z/2,this.curveY-z/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()))},ee.prototype.manipulate=function(z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+z.y-this.manipulationStartY),ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){this.activeGrip===this.curveGrip&&(this.curveX=z.x,this.curveY=z.y),ae.prototype.resize.call(this,z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual()},ee.prototype.scale=function(z,ie){this.curveX=this.curveX*z,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,z,ie)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},ee.typeName="CurveMarker",ee.title="Curve marker",ee.icon='',ee}(ze),rn=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,ie,ue)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=ue.defaultColor,ne.strokeWidth=ue.defaultStrokeWidth,ne.strokeDasharray=ue.defaultStrokeDasharray,ne.fillColor=ue.defaultFillColor,ne.textColor=ue.defaultStrokeColor,ne.fontFamily=ue.defaultFontFamily,ne.fontSize=ue.defaultCaptionFontSize,ne.captionText=ue.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new He("Line color",be(ue.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new He("Fill color",be(ue.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new lt("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Fe("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Be("Font",ue.defaultFontFamilies,ue.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new He("Text color",ue.defaultColorSet,ne.textColor,ye),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return et(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.frame&&z!==this.captionBg&&z!==this.captionElement)},ee.prototype.createVisual=function(){this.visual=Ce.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ce.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ce.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Ce.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ee.prototype.setCaptionText=function(z){this.captionText=z,this.captionElement.textContent=this.captionText,this.sizeCaption()},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.sizeCaption=function(){var z=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=z.width+2*this.PADDING,this.captionBoxHeight=z.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Ce.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Ce.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ee.prototype.showTextEditor=function(){var z=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(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&z.finishTextEditing(z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){z.finishTextEditing(z.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){z.finishTextEditing(z.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ee.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"))},ee.prototype.finishTextEditing=function(z){this.setCaptionText(z.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ee.prototype.setFont=function(z){this.captionElement&&Ce.setAttributes(this.captionElement,[["font-family",z]]),this.fontFamily=z,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ee.prototype.setTextColor=function(z){this.captionElement&&Ce.setAttributes(this.captionElement,[["fill",z]]),this.textColor=z,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),Ce.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.dblClick=function(z,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.frame&&Ce.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.captionBg&&Ce.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.frame&&Ce.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.frame&&Ce.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=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 z.typeName=this.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.typeName="CaptionFrameMarker",ee.title="Caption frame marker",ee.icon='',ee}(at),wt=function(){function ae(ee,z){z===void 0&&(z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ee,this.cancelable=z}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Rt=function(ae){function ee(z,ie,ue){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=ie,ne.state=ue,ne}return et(ee,ae),ee}(wt),_e=function(ae){function ee(z,ie,ue){ue===void 0&&(ue=!1);var ne=ae.call(this,z,ue)||this;return ne.marker=ie,ne}return et(ee,ae),ee}(wt),Lt=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(ee,z){this[ee].push(z)},ae.prototype.removeEventListener=function(ee,z){var ie=this[ee].indexOf(z);ie>-1&&this[ee].splice(ie,1)},ae}(),nt=function(){function ae(ee){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ze,this._isOpen=!1,this.undoRedoManager=new tt,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 Lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new fe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ee,this.targetRoot=document.body,this.width=ee.clientWidth,this.height=ee.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[ht,Xe,Ct,qe,Te,Bt,jt,st,bt,Me,gt,ct,rn]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ht,Xe,Ct,qe,Bt,jt,st]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ht,Xe,Ct,qe,jt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ee){var z=this;this._availableMarkerTypes.splice(0),ee.forEach(function(ie){if(typeof ie=="string"){var ue=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===ie});ue!==void 0&&z._availableMarkerTypes.push(ue)}else z._availableMarkerTypes.push(ie)})},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(ee){this._zoomLevel=ee,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 ee=this;this.styles.styleSheetRoot===void 0&&Se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new wt(ee))})},ae.prototype.render=function(){return me(this,void 0,void 0,function(){var ee;return We(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(ee=new Ke).naturalSize=this.renderAtNaturalSize,ee.imageType=this.renderImageType,ee.imageQuality=this.renderImageQuality,ee.markersOnly=this.renderMarkersOnly,ee.width=this.renderWidth,ee.height=this.renderHeight,[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return z.sent(),[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,z.sent()]}})})},ae.prototype.close=function(ee){var z=this;if(ee===void 0&&(ee=!1),this.isOpen){var ie=!1;ee||this.eventListeners.beforeclose.forEach(function(ue){var ne=new wt(z,!0);ue(ne),ne.defaultPrevented&&(ie=!0)}),ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ue){return ue(new wt(z))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ee,z=[],ie=0;iethis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ee:this.editorCanvas.clientWidth,ie=z',ee.title="Powered by marker.js",ee.style.display="grid",ee.style.alignItems="center",ee.style.justifyItems="center",ee.style.padding="3px",ee.style.width="20px",ee.style.height="20px",this.logoUI.appendChild(ee),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 ee=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=ee+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ft(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop-1&&this.markers.splice(this.markers.indexOf(ee),1),ee.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(ee,z){if(ee==="marker"&&z!==void 0)this.createNewMarker(z);else if(ee==="action")switch(z){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 ee=this;if(this._currentMarker!==void 0){var z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ue){var ne=new _e(ee,ee._currentMarker,!0);ue(ne),ne.defaultPrevented&&(z=!0)}),!z){var ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ue){return ue(new _e(ee,ie))})}}},ae.prototype.clear=function(){var ee=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(we){var Ve=new _e(ee,void 0,!0);we(Ve),Ve.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var ie=function(we){var Ve=ue.markers[we];ue.setCurrentMarker(ue.markers[we]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(Pt){return Pt(new _e(ee,Ve))})},ue=this,ne=this.markers.length-1;ne>=0;ne--)ie(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ee;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=(ee=this._currentMarker.notes)!==null&&ee!==void 0?ee:"",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 ee=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var z=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===z.width&&ie.height===z.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),ue1&&this.panTo({x:ee.clientX,y:ee.clientY}))},ae.prototype.onPointerUp=function(ee){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ee.clientX,ee.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ee){this._currentMarker===void 0||this.notesArea!==void 0||ee.key!=="Delete"&&ee.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ee,z){var ie=this.markerImage.getBoundingClientRect();return{x:(ee-ie.left)/this.zoomLevel,y:(z-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ee=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ee+"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(ee){Oe.addKey(ee)},ae.prototype.addEventListener=function(ee,z){this.eventListeners.addEventListener(ee,z)},ae.prototype.removeEventListener=function(ee,z){this.eventListeners.removeEventListener(ee,z)},ae.prototype.renderState=function(ee){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ee),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ee=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(z){return z(new wt(ee))}))},ae.prototype.blur=function(){var ee=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(z){return z(new wt(ee))}))},ae.instanceCounter=0,ae}()},6551:function(Gt,It,le){"use strict";le.d(It,{ZP:function(){return Oe}});var re=le(72190),et=le(59301),me=le(47273),We=0,be=(0,me.Z)();function Ce(){var Ke;return be?(Ke=We,We+=1):Ke="TEST_OR_SSR",Ke}function Oe(Ke){var Se=et.useState(),fe=(0,re.Z)(Se,2),Ge=fe[0],xe=fe[1];return et.useEffect(function(){xe("rc_select_".concat(Ce()))},[]),Ke||Ge}},37463:function(Gt,It,le){"use strict";le.d(It,{Ac:function(){return pt},Xo:function(){return Ft},Wx:function(){return an},ZP:function(){return Un},lk:function(){return St}});var re=le(60499),et=le(77654),me=le(18642),We=le(85899),be=le(72190),Ce=le(42244),Oe=le(43749),Ke=le(18929),Se=le(48736),fe=le(59301),Ge=le(92310),xe=le.n(Ge),ft=le(34280),$e=le(49658),Ae=le(8654),He=function(Re){var ve=Re.className,De=Re.customizeIcon,ge=Re.customizeIconProps,Pe=Re.children,Qe=Re.onMouseDown,At=Re.onClick,Nt=typeof De=="function"?De(ge):De;return fe.createElement("span",{className:ve,onMouseDown:function(Mt){Mt.preventDefault(),Qe==null||Qe(Mt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:At,"aria-hidden":!0},Nt!==void 0?Nt:fe.createElement("span",{className:xe()(ve.split(/\s+/).map(function(Qt){return"".concat(Qt,"-icon")}))},Pe))},Le=He,rt=function(Re,ve,De,ge,Pe){var Qe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,At=arguments.length>6?arguments[6]:void 0,Nt=arguments.length>7?arguments[7]:void 0,Qt=fe.useMemo(function(){if((0,Oe.Z)(ge)==="object")return ge.clearIcon;if(Pe)return Pe},[ge,Pe]),Mt=fe.useMemo(function(){return!!(!Qe&&ge&&(De.length||At)&&!(Nt==="combobox"&&At===""))},[ge,Qe,De.length,At,Nt]);return{allowClear:Mt,clearIcon:fe.createElement(Le,{className:"".concat(Re,"-clear"),onMouseDown:ve,customizeIcon:Qt},"\xD7")}},yt=fe.createContext(null);function St(){return fe.useContext(yt)}function at(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Re=fe.useState(!1),ve=(0,be.Z)(Re,2),De=ve[0],ge=ve[1],Pe=fe.useRef(null),Qe=function(){window.clearTimeout(Pe.current)};fe.useEffect(function(){return Qe},[]);var At=function(Qt,Mt){Qe(),Pe.current=window.setTimeout(function(){ge(Qt),Mt&&Mt()},Ee)};return[De,At,Qe]}function Ye(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Re=fe.useRef(null),ve=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(ve.current)}},[]);function De(ge){(ge||Re.current===null)&&(Re.current=ge),window.clearTimeout(ve.current),ve.current=window.setTimeout(function(){Re.current=null},Ee)}return[function(){return Re.current},De]}function lt(Ee,Re,ve,De){var ge=fe.useRef(null);ge.current={open:Re,triggerOpen:ve,customizedTrigger:De},fe.useEffect(function(){function Pe(Qe){var At;if(!((At=ge.current)!==null&&At!==void 0&&At.customizedTrigger)){var Nt=Qe.target;Nt.shadowRoot&&Qe.composed&&(Nt=Qe.composedPath()[0]||Nt),ge.current.open&&Ee().filter(function(Qt){return Qt}).every(function(Qt){return!Qt.contains(Nt)&&Qt!==Nt})&&ge.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Pe),function(){return window.removeEventListener("mousedown",Pe)}},[])}var Fe=le(10228);function ht(Ee){return Ee&&![Fe.Z.ESC,Fe.Z.SHIFT,Fe.Z.BACKSPACE,Fe.Z.TAB,Fe.Z.WIN_KEY,Fe.Z.ALT,Fe.Z.META,Fe.Z.WIN_KEY_RIGHT,Fe.Z.CTRL,Fe.Z.SEMICOLON,Fe.Z.EQUALS,Fe.Z.CAPS_LOCK,Fe.Z.CONTEXT_MENU,Fe.Z.F1,Fe.Z.F2,Fe.Z.F3,Fe.Z.F4,Fe.Z.F5,Fe.Z.F6,Fe.Z.F7,Fe.Z.F8,Fe.Z.F9,Fe.Z.F10,Fe.Z.F11,Fe.Z.F12].includes(Ee)}var Ze=le(26112),ze=le(83836);function gt(Ee,Re,ve){var De=(0,We.Z)((0,We.Z)({},Ee),ve?Re:{});return Object.keys(Re).forEach(function(ge){var Pe=Re[ge];typeof Pe=="function"&&(De[ge]=function(){for(var Qe,At=arguments.length,Nt=new Array(At),Qt=0;QtJn&&(xn="".concat(Cn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(Ot)};return typeof Pn=="function"?zr(Ut,xn,En,Kt,rr):Lr(Ot,xn,En,Kt,rr)},Gn=function(Ot){if(!ge.length)return null;var En=typeof Sn=="function"?Sn(Ot):Sn;return typeof Pn=="function"?zr(void 0,En,!1,!1,void 0,!0):Lr({title:En},En,!1)},_t=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){jr(!0)},onBlur:function(){jr(!1)}},fe.createElement(Ct,{ref:Nt,open:Pe,prefixCls:De,id:ve,inputElement:null,disabled:Mt,autoFocus:Zt,autoComplete:hn,editable:kr,activeDescendantId:ln,value:Br,onKeyDown:ir,onMouseDown:er,onChange:qn,onPaste:lr,onCompositionStart:tr,onCompositionEnd:gr,onBlur:mr,tabIndex:cn,attrs:(0,Ze.Z)(Re,!0)}),fe.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),qt=fe.createElement(ze.Z,{prefixCls:"".concat(Er,"-overflow"),data:ge,renderItem:fr,renderRest:Gn,suffix:_t,itemKey:Te,maxCount:Xn});return fe.createElement("span",{className:"".concat(Er,"-wrap")},qt,!ge.length&&!Br&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},Qt))},rn=ct,wt=function(Re){var ve=Re.inputElement,De=Re.prefixCls,ge=Re.id,Pe=Re.inputRef,Qe=Re.disabled,At=Re.autoFocus,Nt=Re.autoComplete,Qt=Re.activeDescendantId,Mt=Re.mode,ut=Re.open,it=Re.values,Zt=Re.placeholder,hn=Re.tabIndex,ln=Re.showSearch,cn=Re.searchValue,Zn=Re.activeValue,Xn=Re.maxLength,Jn=Re.onInputKeyDown,Nn=Re.onInputMouseDown,Sn=Re.onInputChange,Pn=Re.onInputPaste,Hn=Re.onInputCompositionStart,ur=Re.onInputCompositionEnd,qn=Re.onInputBlur,lr=Re.title,ir=fe.useState(!1),er=(0,be.Z)(ir,2),tr=er[0],gr=er[1],mr=Mt==="combobox",cr=mr||ln,vr=it[0],Cr=cn||"";mr&&Zn&&!tr&&(Cr=Zn),fe.useEffect(function(){mr&&gr(!1)},[mr,Zn]);var or=Mt!=="combobox"&&!ut&&!ln?!1:!!Cr,dr=lr===void 0?Bt(vr):lr,Fn=fe.useMemo(function(){return vr?null:fe.createElement("span",{className:"".concat(De,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},Zt)},[vr,or,Zt,De]);return fe.createElement("span",{className:"".concat(De,"-selection-wrap")},fe.createElement("span",{className:"".concat(De,"-selection-search")},fe.createElement(Ct,{ref:Pe,prefixCls:De,id:ge,open:ut,inputElement:ve,disabled:Qe,autoFocus:At,autoComplete:Nt,editable:cr,activeDescendantId:Qt,value:Cr,onKeyDown:Jn,onMouseDown:Nn,onChange:function(Rr){gr(!0),Sn(Rr)},onPaste:Pn,onCompositionStart:Hn,onCompositionEnd:ur,onBlur:qn,tabIndex:hn,attrs:(0,Ze.Z)(Re,!0),maxLength:mr?Xn:void 0})),!mr&&vr?fe.createElement("span",{className:"".concat(De,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Fn)},Rt=wt,_e=function(Re,ve){var De=(0,fe.useRef)(null),ge=(0,fe.useRef)(!1),Pe=Re.prefixCls,Qe=Re.open,At=Re.mode,Nt=Re.showSearch,Qt=Re.tokenWithEnter,Mt=Re.disabled,ut=Re.prefix,it=Re.autoClearSearchValue,Zt=Re.onSearch,hn=Re.onSearchSubmit,ln=Re.onToggleOpen,cn=Re.onInputKeyDown,Zn=Re.onInputBlur,Xn=Re.domRef;fe.useImperativeHandle(ve,function(){return{focus:function(dr){De.current.focus(dr)},blur:function(){De.current.blur()}}});var Jn=Ye(0),Nn=(0,be.Z)(Jn,2),Sn=Nn[0],Pn=Nn[1],Hn=function(dr){var Fn=dr.which,wr=De.current instanceof HTMLTextAreaElement;!wr&&Qe&&(Fn===Fe.Z.UP||Fn===Fe.Z.DOWN)&&dr.preventDefault(),cn&&cn(dr),Fn===Fe.Z.ENTER&&At==="tags"&&!ge.current&&!Qe&&(hn==null||hn(dr.target.value)),!(wr&&!Qe&&~[Fe.Z.UP,Fe.Z.DOWN,Fe.Z.LEFT,Fe.Z.RIGHT].indexOf(Fn))&&ht(Fn)&&ln(!0)},ur=function(){Pn(!0)},qn=(0,fe.useRef)(null),lr=function(dr){Zt(dr,!0,ge.current)!==!1&&ln(!0)},ir=function(){ge.current=!0},er=function(dr){ge.current=!1,At!=="combobox"&&lr(dr.target.value)},tr=function(dr){var Fn=dr.target.value;if(Qt&&qn.current&&/[\r\n]/.test(qn.current)){var wr=qn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fn=Fn.replace(wr,qn.current)}qn.current=null,lr(Fn)},gr=function(dr){var Fn=dr.clipboardData,wr=Fn==null?void 0:Fn.getData("text");qn.current=wr||""},mr=function(dr){var Fn=dr.target;if(Fn!==De.current){var wr=document.body.style.msTouchAction!==void 0;wr?setTimeout(function(){De.current.focus()}):De.current.focus()}},cr=function(dr){var Fn=Sn();dr.target!==De.current&&!Fn&&!(At==="combobox"&&Mt)&&dr.preventDefault(),(At!=="combobox"&&(!Nt||!Fn)||!Qe)&&(Qe&&it!==!1&&Zt("",!0,!1),ln())},vr={inputRef:De,onInputKeyDown:Hn,onInputMouseDown:ur,onInputChange:tr,onInputPaste:gr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Zn},Cr=At==="multiple"||At==="tags"?fe.createElement(rn,(0,re.Z)({},Re,vr)):fe.createElement(Rt,(0,re.Z)({},Re,vr));return fe.createElement("div",{ref:Xn,className:"".concat(Pe,"-selector"),onClick:mr,onMouseDown:cr},ut&&fe.createElement("div",{className:"".concat(Pe,"-prefix")},ut),Cr)},Lt=fe.forwardRef(_e),nt=Lt,ae=le(68196),ee=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function(Re){var ve=Re===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ve,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ve,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ve,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ve,adjustY:1},htmlRegion:"scroll"}}},ie=function(Re,ve){var De=Re.prefixCls,ge=Re.disabled,Pe=Re.visible,Qe=Re.children,At=Re.popupElement,Nt=Re.animation,Qt=Re.transitionName,Mt=Re.dropdownStyle,ut=Re.dropdownClassName,it=Re.direction,Zt=it===void 0?"ltr":it,hn=Re.placement,ln=Re.builtinPlacements,cn=Re.dropdownMatchSelectWidth,Zn=Re.dropdownRender,Xn=Re.dropdownAlign,Jn=Re.getPopupContainer,Nn=Re.empty,Sn=Re.getTriggerDOMNode,Pn=Re.onPopupVisibleChange,Hn=Re.onPopupMouseEnter,ur=(0,Ce.Z)(Re,ee),qn="".concat(De,"-dropdown"),lr=At;Zn&&(lr=Zn(At));var ir=fe.useMemo(function(){return ln||z(cn)},[ln,cn]),er=Nt?"".concat(qn,"-").concat(Nt):Qt,tr=typeof cn=="number",gr=fe.useMemo(function(){return tr?null:cn===!1?"minWidth":"width"},[cn,tr]),mr=Mt;tr&&(mr=(0,We.Z)((0,We.Z)({},mr),{},{width:cn}));var cr=fe.useRef(null);return fe.useImperativeHandle(ve,function(){return{getPopupElement:function(){var Cr;return(Cr=cr.current)===null||Cr===void 0?void 0:Cr.popupElement}}}),fe.createElement(ae.Z,(0,re.Z)({},ur,{showAction:Pn?["click"]:[],hideAction:Pn?["click"]:[],popupPlacement:hn||(Zt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Hn},lr),ref:cr,stretch:gr,popupAlign:Xn,popupVisible:Pe,getPopupContainer:Jn,popupClassName:xe()(ut,(0,me.Z)({},"".concat(qn,"-empty"),Nn)),popupStyle:mr,getTriggerDOMNode:Sn,onPopupVisibleChange:Pn}),Qe)},ue=fe.forwardRef(ie),ne=ue,we=le(48745);function Ve(Ee,Re){var ve=Ee.key,De;return"value"in Ee&&(De=Ee.value),ve!=null?ve:De!==void 0?De:"rc-index-key-".concat(Re)}function Pt(Ee){return typeof Ee!="undefined"&&!Number.isNaN(Ee)}function je(Ee,Re){var ve=Ee||{},De=ve.label,ge=ve.value,Pe=ve.options,Qe=ve.groupLabel,At=De||(Re?"children":"label");return{label:At,value:ge||"value",options:Pe||"options",groupLabel:Qe||At}}function Je(Ee){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=Re.fieldNames,De=Re.childrenAsData,ge=[],Pe=je(ve,!1),Qe=Pe.label,At=Pe.value,Nt=Pe.options,Qt=Pe.groupLabel;function Mt(ut,it){Array.isArray(ut)&&ut.forEach(function(Zt){if(it||!(Nt in Zt)){var hn=Zt[At];ge.push({key:Ve(Zt,ge.length),groupOption:it,data:Zt,label:Zt[Qe],value:hn})}else{var ln=Zt[Qt];ln===void 0&&De&&(ln=Zt.label),ge.push({key:Ve(Zt,ge.length),group:!0,data:Zt,label:ln}),Mt(Zt[Nt],!0)}})}return Mt(Ee,!1),ge}function dt(Ee){var Re=(0,We.Z)({},Ee);return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return(0,Se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Re}}),Re}var Dt=function(Re,ve,De){if(!ve||!ve.length)return null;var ge=!1,Pe=function At(Nt,Qt){var Mt=(0,we.Z)(Qt),ut=Mt[0],it=Mt.slice(1);if(!ut)return[Nt];var Zt=Nt.split(ut);return ge=ge||Zt.length>1,Zt.reduce(function(hn,ln){return[].concat((0,et.Z)(hn),(0,et.Z)(At(ln,it)))},[]).filter(Boolean)},Qe=Pe(Re,ve);return ge?typeof De!="undefined"?Qe.slice(0,De):Qe:null},kt=fe.createContext(null),Vt=kt;function $t(Ee){var Re=Ee.visible,ve=Ee.values;if(!Re)return null;var De=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ve.slice(0,De).map(function(ge){var Pe=ge.label,Qe=ge.value;return["number","string"].includes((0,Oe.Z)(Pe))?Pe:Qe}).join(", ")),ve.length>De?", ...":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"],sn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Jt=function(Re){return Re==="tags"||Re==="multiple"},on=fe.forwardRef(function(Ee,Re){var ve,De=Ee.id,ge=Ee.prefixCls,Pe=Ee.className,Qe=Ee.showSearch,At=Ee.tagRender,Nt=Ee.direction,Qt=Ee.omitDomProps,Mt=Ee.displayValues,ut=Ee.onDisplayValuesChange,it=Ee.emptyOptions,Zt=Ee.notFoundContent,hn=Zt===void 0?"Not Found":Zt,ln=Ee.onClear,cn=Ee.mode,Zn=Ee.disabled,Xn=Ee.loading,Jn=Ee.getInputElement,Nn=Ee.getRawInputElement,Sn=Ee.open,Pn=Ee.defaultOpen,Hn=Ee.onDropdownVisibleChange,ur=Ee.activeValue,qn=Ee.onActiveValueChange,lr=Ee.activeDescendantId,ir=Ee.searchValue,er=Ee.autoClearSearchValue,tr=Ee.onSearch,gr=Ee.onSearchSplit,mr=Ee.tokenSeparators,cr=Ee.allowClear,vr=Ee.prefix,Cr=Ee.suffixIcon,or=Ee.clearIcon,dr=Ee.OptionList,Fn=Ee.animation,wr=Ee.transitionName,Rr=Ee.dropdownStyle,jr=Ee.dropdownClassName,Er=Ee.dropdownMatchSelectWidth,Br=Ee.dropdownRender,kr=Ee.dropdownAlign,Lr=Ee.placement,zr=Ee.builtinPlacements,fr=Ee.getPopupContainer,Gn=Ee.showAction,_t=Gn===void 0?[]:Gn,qt=Ee.onFocus,Xt=Ee.onBlur,Ot=Ee.onKeyUp,En=Ee.onKeyDown,On=Ee.onMouseDown,Ut=(0,Ce.Z)(Ee,Tt),Kt=Jt(cn),xn=(Qe!==void 0?Qe:Kt)||cn==="combobox",Cn=(0,We.Z)({},Ut);sn.forEach(function(Pr){delete Cn[Pr]}),Qt==null||Qt.forEach(function(Pr){delete Cn[Pr]});var rr=fe.useState(!1),Mr=(0,be.Z)(rr,2),br=Mr[0],Ir=Mr[1];fe.useEffect(function(){Ir((0,$e.Z)())},[]);var Dr=fe.useRef(null),Tr=fe.useRef(null),Hr=fe.useRef(null),Or=fe.useRef(null),_r=fe.useRef(null),ti=fe.useRef(!1),Di=at(),Fi=(0,be.Z)(Di,3),xi=Fi[0],mi=Fi[1],Yi=Fi[2];fe.useImperativeHandle(Re,function(){var Pr,xr;return{focus:(Pr=Or.current)===null||Pr===void 0?void 0:Pr.focus,blur:(xr=Or.current)===null||xr===void 0?void 0:xr.blur,scrollTo:function(fi){var Xr;return(Xr=_r.current)===null||Xr===void 0?void 0:Xr.scrollTo(fi)},nativeElement:Dr.current||Tr.current}});var Ar=fe.useMemo(function(){var Pr;if(cn!=="combobox")return ir;var xr=(Pr=Mt[0])===null||Pr===void 0?void 0:Pr.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,cn,Mt]),to=cn==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof Nn=="function"&&Nn(),Ai=(0,Ae.x1)(Tr,ni==null||(ve=ni.props)===null||ve===void 0?void 0:ve.ref),ao=fe.useState(!1),Xi=(0,be.Z)(ao,2),vi=Xi[0],Bi=Xi[1];(0,ft.Z)(function(){Bi(!0)},[]);var Gr=(0,Ke.Z)(!1,{defaultValue:Pn,value:Sn}),zi=(0,be.Z)(Gr,2),lo=zi[0],Zi=zi[1],Qr=vi?lo:!1,xo=!hn&⁢(Zn||xo&&Qr&&cn==="combobox")&&(Qr=!1);var so=xo?!1:Qr,ar=fe.useCallback(function(Pr){var xr=Pr!==void 0?Pr:!Qr;Zn||(Zi(xr),Qr!==xr&&(Hn==null||Hn(xr)))},[Zn,Qr,Zi,Hn]),yr=fe.useMemo(function(){return(mr||[]).some(function(Pr){return[` `,`\r `].includes(Pr)})},[mr]),hr=fe.useContext(Vt)||{},pr=hr.maxCount,Nr=hr.rawValues,Zr=function(xr,ci,fi){if(!(Kt&&Pt(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Xr=!0,ri=xr;qn==null||qn(null);var Gi=Dt(xr,mr,Pt(pr)?pr-Nr.size:void 0),ji=fi?null:Gi;return cn!=="combobox"&&ji&&(ri="",gr==null||gr(ji),ar(!1),Xr=!1),tr&&Ar!==ri&&tr(ri,{source:ci?"typing":"effect"}),Xr}},$i=function(xr){!xr||!xr.trim()||tr(xr,{source:"submit"})};fe.useEffect(function(){!Qr&&!Kt&&cn!=="combobox"&&Zr("",!1,!1)},[Qr]),fe.useEffect(function(){lo&&Zn&&Zi(!1),Zn&&!ti.current&&mi(!1)},[Zn]);var gi=Ye(),ui=(0,be.Z)(gi,2),Yr=ui[0],Hi=ui[1],Ji=fe.useRef(!1),Pi=function(xr){var ci=Yr(),fi=xr.key,Xr=fi==="Enter";if(Xr&&(cn!=="combobox"&&xr.preventDefault(),Qr||ar(!0)),Hi(!!Ar),fi==="Backspace"&&!ci&&Kt&&!Ar&&Mt.length){for(var ri=(0,et.Z)(Mt),Gi=null,ji=ri.length-1;ji>=0;ji-=1){var ro=ri[ji];if(!ro.disabled){ri.splice(ji,1),Gi=ro;break}}Gi&&ut(ri,{type:"remove",values:[Gi]})}for(var Ii=arguments.length,Li=new Array(Ii>1?Ii-1:0),Vi=1;Vi1?ci-1:0),Xr=1;Xr1?Gi-1:0),ro=1;ro=hn},[At,hn,Nn==null?void 0:Nn.size]),mr=function(_t){_t.preventDefault()},cr=function(_t){var qt;(qt=tr.current)===null||qt===void 0||qt.scrollTo(typeof _t=="number"?{index:_t}:_t)},vr=fe.useCallback(function(Gn){return Nt==="combobox"?!1:Nn.has(Gn)},[Nt,(0,et.Z)(Nn).toString(),Nn.size]),Cr=function(_t){for(var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xt=er.length,Ot=0;Ot1&&arguments[1]!==void 0?arguments[1]:!1;wr(_t);var Xt={source:qt?"keyboard":"mouse"},Ot=er[_t];if(!Ot){cn(null,-1,Xt);return}cn(Ot.value,_t,Xt)};(0,fe.useEffect)(function(){Rr(Zn!==!1?Cr(0):-1)},[er.length,Qt]);var jr=fe.useCallback(function(Gn){return Nt==="combobox"?String(Gn).toLowerCase()===Qt.toLowerCase():Nn.has(Gn)},[Nt,Qt,(0,et.Z)(Nn).toString(),Nn.size]);(0,fe.useEffect)(function(){var Gn=setTimeout(function(){if(!At&&Qe&&Nn.size===1){var qt=Array.from(Nn)[0],Xt=er.findIndex(function(Ot){var En=Ot.data;return Qt?String(En.value).startsWith(Qt):En.value===qt});Xt!==-1&&(Rr(Xt),cr(Xt))}});if(Qe){var _t;(_t=tr.current)===null||_t===void 0||_t.scrollTo(void 0)}return function(){return clearTimeout(Gn)}},[Qe,Qt]);var Er=function(_t){_t!==void 0&&Xn(_t,{selected:!Nn.has(_t)}),At||Mt(!1)};if(fe.useImperativeHandle(ve,function(){return{onKeyDown:function(_t){var qt=_t.which,Xt=_t.ctrlKey;switch(qt){case Fe.Z.N:case Fe.Z.P:case Fe.Z.UP:case Fe.Z.DOWN:{var Ot=0;if(qt===Fe.Z.UP?Ot=-1:qt===Fe.Z.DOWN?Ot=1:Ue()&&Xt&&(qt===Fe.Z.N?Ot=1:qt===Fe.Z.P&&(Ot=-1)),Ot!==0){var En=Cr(Fn+Ot,Ot);cr(En),Rr(En,!0)}break}case Fe.Z.TAB:case Fe.Z.ENTER:{var On,Ut=er[Fn];Ut&&!(Ut!=null&&(On=Ut.data)!==null&&On!==void 0&&On.disabled)&&!gr?Er(Ut.value):Er(void 0),Qe&&_t.preventDefault();break}case Fe.Z.ESC:Mt(!1),Qe&&_t.stopPropagation()}},onKeyUp:function(){},scrollTo:function(_t){cr(_t)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Pe,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},ut);var Br=Object.keys(Sn).map(function(Gn){return Sn[Gn]}),kr=function(_t){return _t.label};function Lr(Gn,_t){var qt=Gn.group;return{role:qt?"presentation":"option",id:"".concat(Pe,"_list_").concat(_t)}}var zr=function(_t){var qt=er[_t];if(!qt)return null;var Xt=qt.data||{},Ot=Xt.value,En=qt.group,On=(0,Ze.Z)(Xt,!0),Ut=kr(qt);return qt?fe.createElement("div",(0,re.Z)({"aria-label":typeof Ut=="string"&&!En?Ut:null},On,{key:_t},Lr(qt,_t),{"aria-selected":jr(Ot)}),Ot):null},fr={role:"listbox",id:"".concat(Pe,"_list")};return fe.createElement(fe.Fragment,null,Pn&&fe.createElement("div",(0,re.Z)({},fr,{style:{height:0,width:0,overflow:"hidden"}}),zr(Fn-1),zr(Fn),zr(Fn+1)),fe.createElement(ke.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:it,virtual:Pn,direction:Hn,innerProps:Pn?null:fr},function(Gn,_t){var qt=Gn.group,Xt=Gn.groupOption,Ot=Gn.data,En=Gn.label,On=Gn.value,Ut=Ot.key;if(qt){var Kt,xn=(Kt=Ot.title)!==null&&Kt!==void 0?Kt:Ht(En)?En.toString():void 0;return fe.createElement("div",{className:xe()(ir,"".concat(ir,"-group"),Ot.className),title:xn},En!==void 0?En:Ut)}var Cn=Ot.disabled,rr=Ot.title,Mr=Ot.children,br=Ot.style,Ir=Ot.className,Dr=(0,Ce.Z)(Ot,mt),Tr=(0,bn.Z)(Dr,Br),Hr=vr(On),Or=Cn||!Hr&&gr,_r="".concat(ir,"-option"),ti=xe()(ir,_r,Ir,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(_r,"-grouped"),Xt),"".concat(_r,"-active"),Fn===_t&&!Or),"".concat(_r,"-disabled"),Or),"".concat(_r,"-selected"),Hr)),Di=kr(Gn),Fi=!Jn||typeof Jn=="function"||Hr,xi=typeof Di=="number"?Di:Di||On,mi=Ht(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),fe.createElement("div",(0,re.Z)({},(0,Ze.Z)(Tr),Pn?{}:Lr(Gn,_t),{"aria-selected":jr(On),className:ti,title:mi,onMouseMove:function(){Fn===_t||Or||Rr(_t)},onClick:function(){Or||Er(On)},style:br}),fe.createElement("div",{className:"".concat(_r,"-content")},typeof lr=="function"?lr(Gn,{index:_t}):xi),fe.isValidElement(Jn)||Hr,Fi&&fe.createElement(Le,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:On,disabled:Or,isSelected:Hr}},Hr?"\u2713":null))}))},fn=fe.forwardRef(nn),$n=fn,An=function(Ee,Re){var ve=fe.useRef({values:new Map,options:new Map}),De=fe.useMemo(function(){var Pe=ve.current,Qe=Pe.values,At=Pe.options,Nt=Ee.map(function(ut){if(ut.label===void 0){var it;return(0,We.Z)((0,We.Z)({},ut),{},{label:(it=Qe.get(ut.value))===null||it===void 0?void 0:it.label})}return ut}),Qt=new Map,Mt=new Map;return Nt.forEach(function(ut){Qt.set(ut.value,ut),Mt.set(ut.value,Re.get(ut.value)||At.get(ut.value))}),ve.current.values=Qt,ve.current.options=Mt,Nt},[Ee,Re]),ge=fe.useCallback(function(Pe){return Re.get(Pe)||ve.current.options.get(Pe)},[Re]);return[De,ge]};function pn(Ee,Re){return Me(Ee).join("").toUpperCase().includes(Re)}var wn=function(Ee,Re,ve,De,ge){return fe.useMemo(function(){if(!ve||De===!1)return Ee;var Pe=Re.options,Qe=Re.label,At=Re.value,Nt=[],Qt=typeof De=="function",Mt=ve.toUpperCase(),ut=Qt?De:function(Zt,hn){return ge?pn(hn[ge],Mt):hn[Pe]?pn(hn[Qe!=="children"?Qe:"label"],Mt):pn(hn[At],Mt)},it=Qt?function(Zt){return dt(Zt)}:function(Zt){return Zt};return Ee.forEach(function(Zt){if(Zt[Pe]){var hn=ut(ve,it(Zt));if(hn)Nt.push(Zt);else{var ln=Zt[Pe].filter(function(cn){return ut(ve,it(cn))});ln.length&&Nt.push((0,We.Z)((0,We.Z)({},Zt),{},(0,me.Z)({},Pe,ln)))}return}ut(ve,it(Zt))&&Nt.push(Zt)}),Nt},[Ee,De,ge,ve,Re])},vn=le(6551),Kn=le(11592),gn=["children","value"],Dn=["children"];function tn(Ee){var Re=Ee,ve=Re.key,De=Re.props,ge=De.children,Pe=De.value,Qe=(0,Ce.Z)(De,gn);return(0,We.Z)({key:ve,value:Pe!==void 0?Pe:ve,children:ge},Qe)}function yn(Ee){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Kn.Z)(Ee).map(function(ve,De){if(!fe.isValidElement(ve)||!ve.type)return null;var ge=ve,Pe=ge.type.isSelectOptGroup,Qe=ge.key,At=ge.props,Nt=At.children,Qt=(0,Ce.Z)(At,Dn);return Re||!Pe?tn(ve):(0,We.Z)((0,We.Z)({key:"__RC_SELECT_GRP__".concat(Qe===null?De:Qe,"__"),label:Qe},Qt),{},{options:yn(Nt)})}).filter(function(ve){return ve})}var un=function(Re,ve,De,ge,Pe){return fe.useMemo(function(){var Qe=Re,At=!Re;At&&(Qe=yn(ve));var Nt=new Map,Qt=new Map,Mt=function(Zt,hn,ln){ln&&typeof ln=="string"&&Zt.set(hn[ln],hn)},ut=function it(Zt){for(var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln1&&arguments[1]!==void 0?arguments[1]:!1,Qe=0;Qe0?ar(pr.options):pr.options}):pr})},Fi=fe.useMemo(function(){return Xn?Di(ti):ti},[ti,Xn,fr]),xi=fe.useMemo(function(){return Je(Fi,{fieldNames:kr,childrenAsData:Er})},[Fi,kr,Er]),mi=function(yr){var hr=En(yr);if(xn(hr),dr&&(hr.length!==br.length||hr.some(function(Zr,$i){var gi;return((gi=br[$i])===null||gi===void 0?void 0:gi.value)!==(Zr==null?void 0:Zr.value)}))){var pr=or?hr:hr.map(function(Zr){return Zr.value}),Nr=hr.map(function(Zr){return dt(Ir(Zr.value))});dr(jr?pr:pr[0],jr?Nr:Nr[0])}},Yi=fe.useState(null),Ar=(0,be.Z)(Yi,2),to=Ar[0],ni=Ar[1],Ai=fe.useState(0),ao=(0,be.Z)(Ai,2),Xi=ao[0],vi=ao[1],Bi=ur!==void 0?ur:De!=="combobox",Gr=fe.useCallback(function(ar,yr){var hr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pr=hr.source,Nr=pr===void 0?"keyboard":pr;vi(yr),Qe&&De==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[Qe,De]),zi=function(yr,hr,pr){var Nr=function(){var no,_i=Ir(yr);return[or?{label:_i==null?void 0:_i[kr.label],value:yr,key:(no=_i==null?void 0:_i.key)!==null&&no!==void 0?no:yr}:yr,dt(_i)]};if(hr&&Zt){var Zr=Nr(),$i=(0,be.Z)(Zr,2),gi=$i[0],ui=$i[1];Zt(gi,ui)}else if(!hr&&hn&&pr!=="clear"){var Yr=Nr(),Hi=(0,be.Z)(Yr,2),Ji=Hi[0],Pi=Hi[1];hn(Ji,Pi)}},lo=Yn(function(ar,yr){var hr,pr=jr?yr.selected:!0;pr?hr=jr?[].concat((0,et.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),zi(ar,pr),De==="combobox"?ni(""):(!Jt||it)&&(Gn(""),ni(""))}),Zi=function(yr,hr){mi(yr);var pr=hr.type,Nr=hr.values;(pr==="remove"||pr==="clear")&&Nr.forEach(function(Zr){zi(Zr.value,!1,pr)})},Qr=function(yr,hr){if(Gn(yr),ni(null),hr.source==="submit"){var pr=(yr||"").trim();if(pr){var Nr=Array.from(new Set([].concat((0,et.Z)(Tr),[pr])));mi(Nr),zi(pr,!0),Gn("")}return}hr.source!=="blur"&&(De==="combobox"&&mi(yr),Mt==null||Mt(yr))},xo=function(yr){var hr=yr;De!=="tags"&&(hr=yr.map(function(Nr){var Zr=Xt.get(Nr);return Zr==null?void 0:Zr.value}).filter(function(Nr){return Nr!==void 0}));var pr=Array.from(new Set([].concat((0,et.Z)(Tr),(0,et.Z)(hr))));mi(pr),pr.forEach(function(Nr){zi(Nr,!0)})},so=fe.useMemo(function(){var ar=lr!==!1&&cn!==!1;return(0,We.Z)((0,We.Z)({},_t),{},{flattenOptions:xi,onActiveValue:Gr,defaultActiveFirstOption:Bi,onSelect:lo,menuItemSelectedIcon:qn,rawValues:Tr,fieldNames:kr,virtual:ar,direction:ir,listHeight:tr,listItemHeight:mr,childrenAsData:Er,maxCount:Fn,optionRender:Pn})},[Fn,_t,xi,Gr,Bi,lo,qn,Tr,kr,lr,cn,ir,tr,mr,Er,Pn]);return fe.createElement(Vt.Provider,{value:so},fe.createElement(pt,(0,re.Z)({},wr,{id:Rr,prefixCls:Pe,ref:Re,omitDomProps:Qn,mode:De,displayValues:Dr,onDisplayValuesChange:Zi,direction:ir,searchValue:fr,onSearch:Qr,autoClearSearchValue:it,onSearchSplit:xo,dropdownMatchSelectWidth:cn,OptionList:$n,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Xi)})))}),Wt=xt;Wt.Option=an,Wt.OptGroup=Ft;var In=Wt,Un=In},22711:function(Gt,It,le){"use strict";le.r(It),le.d(It,{ResizableTextArea:function(){return Be},default:function(){return Ct}});var re=le(60499),et=le(18642),me=le(85899),We=le(77654),be=le(72190),Ce=le(42244),Oe=le(92310),Ke=le.n(Oe),Se=le(36901),fe=le(66003),Ge=le(30292),xe=le(18929),ft=le(59301),$e=le(43749),Ae=le(29301),He=le(34280),Le=le(16089),rt=` 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; `,yt=["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"],St={},at;function Ye(Me){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt=Me.getAttribute("id")||Me.getAttribute("data-reactid")||Me.getAttribute("name");if(Et&&St[jt])return St[jt];var ye=window.getComputedStyle(Me),de=ye.getPropertyValue("box-sizing")||ye.getPropertyValue("-moz-box-sizing")||ye.getPropertyValue("-webkit-box-sizing"),st=parseFloat(ye.getPropertyValue("padding-bottom"))+parseFloat(ye.getPropertyValue("padding-top")),Bt=parseFloat(ye.getPropertyValue("border-bottom-width"))+parseFloat(ye.getPropertyValue("border-top-width")),bt=yt.map(function(tt){return"".concat(tt,":").concat(ye.getPropertyValue(tt))}).join(";"),Te={sizingStyle:bt,paddingSize:st,borderSize:Bt,boxSizing:de};return Et&&jt&&(St[jt]=Te),Te}function lt(Me){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ye=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;at||(at=document.createElement("textarea"),at.setAttribute("tab-index","-1"),at.setAttribute("aria-hidden","true"),at.setAttribute("name","hiddenTextarea"),document.body.appendChild(at)),Me.getAttribute("wrap")?at.setAttribute("wrap",Me.getAttribute("wrap")):at.removeAttribute("wrap");var de=Ye(Me,Et),st=de.paddingSize,Bt=de.borderSize,bt=de.boxSizing,Te=de.sizingStyle;at.setAttribute("style","".concat(Te,";").concat(rt)),at.value=Me.value||Me.placeholder||"";var tt=void 0,ct=void 0,rn,wt=at.scrollHeight;if(bt==="border-box"?wt+=Bt:bt==="content-box"&&(wt-=st),jt!==null||ye!==null){at.value=" ";var Rt=at.scrollHeight-st;jt!==null&&(tt=Rt*jt,bt==="border-box"&&(tt=tt+st+Bt),wt=Math.max(tt,wt)),ye!==null&&(ct=Rt*ye,bt==="border-box"&&(ct=ct+st+Bt),rn=wt>ct?"":"hidden",wt=Math.min(ct,wt))}var _e={height:wt,overflowY:rn,resize:"none"};return tt&&(_e.minHeight=tt),ct&&(_e.maxHeight=ct),_e}var Fe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ht=0,Ze=1,ze=2,gt=ft.forwardRef(function(Me,Et){var jt=Me,ye=jt.prefixCls,de=jt.defaultValue,st=jt.value,Bt=jt.autoSize,bt=jt.onResize,Te=jt.className,tt=jt.style,ct=jt.disabled,rn=jt.onChange,wt=jt.onInternalAutoSize,Rt=(0,Ce.Z)(jt,Fe),_e=(0,xe.Z)(de,{value:st,postState:function(an){return an!=null?an:""}}),Lt=(0,be.Z)(_e,2),nt=Lt[0],ae=Lt[1],ee=function(an){ae(an.target.value),rn==null||rn(an)},z=ft.useRef();ft.useImperativeHandle(Et,function(){return{textArea:z.current}});var ie=ft.useMemo(function(){return Bt&&(0,$e.Z)(Bt)==="object"?[Bt.minRows,Bt.maxRows]:[]},[Bt]),ue=(0,be.Z)(ie,2),ne=ue[0],we=ue[1],Ve=!!Bt,Pt=function(){try{if(document.activeElement===z.current){var an=z.current,Ln=an.selectionStart,bn=an.selectionEnd,ke=an.scrollTop;z.current.setSelectionRange(Ln,bn),z.current.scrollTop=ke}}catch(Ue){}},je=ft.useState(ze),Je=(0,be.Z)(je,2),dt=Je[0],Dt=Je[1],kt=ft.useState(),Vt=(0,be.Z)(kt,2),$t=Vt[0],Tt=Vt[1],sn=function(){Dt(ht)};(0,He.Z)(function(){Ve&&sn()},[st,ne,we,Ve]),(0,He.Z)(function(){if(dt===ht)Dt(Ze);else if(dt===Ze){var Yt=lt(z.current,!1,ne,we);Dt(ze),Tt(Yt)}else Pt()},[dt]);var Jt=ft.useRef(),on=function(){Le.Z.cancel(Jt.current)},pt=function(an){dt===ze&&(bt==null||bt(an),Bt&&(on(),Jt.current=(0,Le.Z)(function(){sn()})))};ft.useEffect(function(){return on},[]);var dn=Ve?$t:null,Ft=(0,me.Z)((0,me.Z)({},tt),dn);return(dt===ht||dt===Ze)&&(Ft.overflowY="hidden",Ft.overflowX="hidden"),ft.createElement(Ae.Z,{onResize:pt,disabled:!(Bt||bt)},ft.createElement("textarea",(0,re.Z)({},Rt,{ref:z,style:Ft,className:Ke()(ye,Te,(0,et.Z)({},"".concat(ye,"-disabled"),ct)),disabled:ct,value:nt,onChange:ee})))}),Be=gt,qe=["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"],Xe=ft.forwardRef(function(Me,Et){var jt,ye=Me.defaultValue,de=Me.value,st=Me.onFocus,Bt=Me.onBlur,bt=Me.onChange,Te=Me.allowClear,tt=Me.maxLength,ct=Me.onCompositionStart,rn=Me.onCompositionEnd,wt=Me.suffix,Rt=Me.prefixCls,_e=Rt===void 0?"rc-textarea":Rt,Lt=Me.showCount,nt=Me.count,ae=Me.className,ee=Me.style,z=Me.disabled,ie=Me.hidden,ue=Me.classNames,ne=Me.styles,we=Me.onResize,Ve=Me.onClear,Pt=Me.onPressEnter,je=Me.readOnly,Je=Me.autoSize,dt=Me.onKeyDown,Dt=(0,Ce.Z)(Me,qe),kt=(0,xe.Z)(ye,{value:de,defaultValue:ye}),Vt=(0,be.Z)(kt,2),$t=Vt[0],Tt=Vt[1],sn=$t==null?"":String($t),Jt=ft.useState(!1),on=(0,be.Z)(Jt,2),pt=on[0],dn=on[1],Ft=ft.useRef(!1),Yt=ft.useState(null),an=(0,be.Z)(Yt,2),Ln=an[0],bn=an[1],ke=(0,ft.useRef)(null),Ue=(0,ft.useRef)(null),mt=function(){var Wt;return(Wt=Ue.current)===null||Wt===void 0?void 0:Wt.textArea},Ht=function(){mt().focus()};(0,ft.useImperativeHandle)(Et,function(){var xt;return{resizableTextArea:Ue.current,focus:Ht,blur:function(){mt().blur()},nativeElement:((xt=ke.current)===null||xt===void 0?void 0:xt.nativeElement)||mt()}}),(0,ft.useEffect)(function(){dn(function(xt){return!z&&xt})},[z]);var nn=ft.useState(null),fn=(0,be.Z)(nn,2),$n=fn[0],An=fn[1];ft.useEffect(function(){if($n){var xt;(xt=mt()).setSelectionRange.apply(xt,(0,We.Z)($n))}},[$n]);var pn=(0,fe.Z)(nt,Lt),wn=(jt=pn.max)!==null&&jt!==void 0?jt:tt,vn=Number(wn)>0,Kn=pn.strategy(sn),gn=!!wn&&Kn>wn,Dn=function(Wt,In){var Un=In;!Ft.current&&pn.exceedFormatter&&pn.max&&pn.strategy(In)>pn.max&&(Un=pn.exceedFormatter(In,{max:pn.max}),In!==Un&&An([mt().selectionStart||0,mt().selectionEnd||0])),Tt(Un),(0,Ge.rJ)(Wt.currentTarget,Wt,bt,Un)},tn=function(Wt){Ft.current=!0,ct==null||ct(Wt)},yn=function(Wt){Ft.current=!1,Dn(Wt,Wt.currentTarget.value),rn==null||rn(Wt)},un=function(Wt){Dn(Wt,Wt.target.value)},Tn=function(Wt){Wt.key==="Enter"&&Pt&&Pt(Wt),dt==null||dt(Wt)},Yn=function(Wt){dn(!0),st==null||st(Wt)},zn=function(Wt){dn(!1),Bt==null||Bt(Wt)},Bn=function(Wt){Tt(""),Ht(),(0,Ge.rJ)(mt(),Wt,bt)},_n=wt,Vn;pn.show&&(pn.showFormatter?Vn=pn.showFormatter({value:sn,count:Kn,maxLength:wn}):Vn="".concat(Kn).concat(vn?" / ".concat(wn):""),_n=ft.createElement(ft.Fragment,null,_n,ft.createElement("span",{className:Ke()("".concat(_e,"-data-count"),ue==null?void 0:ue.count),style:ne==null?void 0:ne.count},Vn)));var Qn=function(Wt){var In;we==null||we(Wt),(In=mt())!==null&&In!==void 0&&In.style.height&&bn(!0)},jn=!Je&&!Lt&&!Te;return ft.createElement(Se.BaseInput,{ref:ke,value:sn,allowClear:Te,handleReset:Bn,suffix:_n,prefixCls:_e,classNames:(0,me.Z)((0,me.Z)({},ue),{},{affixWrapper:Ke()(ue==null?void 0:ue.affixWrapper,(0,et.Z)((0,et.Z)({},"".concat(_e,"-show-count"),Lt),"".concat(_e,"-textarea-allow-clear"),Te))}),disabled:z,focused:pt,className:Ke()(ae,gn&&"".concat(_e,"-out-of-range")),style:(0,me.Z)((0,me.Z)({},ee),Ln&&!jn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Vn=="string"?Vn:void 0}},hidden:ie,readOnly:je,onClear:Ve},ft.createElement(Be,(0,re.Z)({},Dt,{autoSize:Je,maxLength:tt,onKeyDown:Tn,onChange:un,onFocus:Yn,onBlur:zn,onCompositionStart:tn,onCompositionEnd:yn,className:Ke()(ue==null?void 0:ue.textarea),style:(0,me.Z)((0,me.Z)({},ne==null?void 0:ne.textarea),{},{resize:ee==null?void 0:ee.resize}),disabled:z,prefixCls:_e,onResize:Qn,ref:Ue,readOnly:je})))}),pe=Xe,Ct=pe},48911:function(Gt,It,le){"use strict";le.d(It,{Z:function(){return nt}});var re=le(60499),et=le(43749),me=le(85899),We=le(18642),be=le(72190),Ce=le(42244),Oe=le(92310),Ke=le.n(Oe),Se=le(29301),fe=le(70425),Ge=le(34280),xe=le(59301),ft=le(4676),$e=xe.forwardRef(function(ae,ee){var z=ae.height,ie=ae.offsetY,ue=ae.offsetX,ne=ae.children,we=ae.prefixCls,Ve=ae.onInnerResize,Pt=ae.innerProps,je=ae.rtl,Je=ae.extra,dt={},Dt={display:"flex",flexDirection:"column"};return ie!==void 0&&(dt={height:z,position:"relative",overflow:"hidden"},Dt=(0,me.Z)((0,me.Z)({},Dt),{},(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)({transform:"translateY(".concat(ie,"px)")},je?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),xe.createElement("div",{style:dt},xe.createElement(Se.Z,{onResize:function(Vt){var $t=Vt.offsetHeight;$t&&Ve&&Ve()}},xe.createElement("div",(0,re.Z)({style:Dt,className:Ke()((0,We.Z)({},"".concat(we,"-holder-inner"),we)),ref:ee},Pt),ne,Je)))});$e.displayName="Filler";var Ae=$e;function He(ae){var ee=ae.children,z=ae.setRef,ie=xe.useCallback(function(ue){z(ue)},[]);return xe.cloneElement(ee,{ref:ie})}function Le(ae,ee,z,ie,ue,ne,we,Ve){var Pt=Ve.getKey;return ae.slice(ee,z+1).map(function(je,Je){var dt=ee+Je,Dt=we(je,dt,{style:{width:ie},offsetX:ue}),kt=Pt(je);return xe.createElement(He,{key:kt,setRef:function($t){return ne(je,$t)}},Dt)})}function rt(ae,ee,z,ie){var ue=z-ae,ne=ee-z,we=Math.min(ue,ne)*2;if(ie<=we){var Ve=Math.floor(ie/2);return ie%2?z+Ve+1:z-Ve}return ue>ne?z-(ie-ne):z+(ie-ue)}function yt(ae,ee,z){var ie=ae.length,ue=ee.length,ne,we;if(ie===0&&ue===0)return null;ie2&&arguments[2]!==void 0?arguments[2]:!1,dt=Pt?je<0&&Ve.current.left||je>0&&Ve.current.right:je<0&&Ve.current.top||je>0&&Ve.current.bottom;return Je&&dt?(clearTimeout(ne.current),ue.current=!1):(!dt||ue.current)&&we(),!ue.current&&dt}};function ht(ae,ee,z,ie,ue,ne,we){var Ve=(0,xe.useRef)(0),Pt=(0,xe.useRef)(null),je=(0,xe.useRef)(null),Je=(0,xe.useRef)(!1),dt=Fe(ee,z,ie,ue);function Dt(Jt,on){if(at.Z.cancel(Pt.current),!dt(!1,on)){var pt=Jt;if(!pt._virtualHandled)pt._virtualHandled=!0;else return;Ve.current+=on,je.current=on,lt||pt.preventDefault(),Pt.current=(0,at.Z)(function(){var dn=Je.current?10:1;we(Ve.current*dn,!1),Ve.current=0})}}function kt(Jt,on){we(on,!0),lt||Jt.preventDefault()}var Vt=(0,xe.useRef)(null),$t=(0,xe.useRef)(null);function Tt(Jt){if(ae){at.Z.cancel($t.current),$t.current=(0,at.Z)(function(){Vt.current=null},2);var on=Jt.deltaX,pt=Jt.deltaY,dn=Jt.shiftKey,Ft=on,Yt=pt;(Vt.current==="sx"||!Vt.current&&dn&&pt&&!on)&&(Ft=pt,Yt=0,Vt.current="sx");var an=Math.abs(Ft),Ln=Math.abs(Yt);Vt.current===null&&(Vt.current=ne&&an>Ln?"x":"y"),Vt.current==="y"?Dt(Jt,Yt):kt(Jt,Ft)}}function sn(Jt){ae&&(Je.current=Jt.detail===je.current)}return[Tt,sn]}function Ze(ae,ee,z,ie){var ue=xe.useMemo(function(){return[new Map,[]]},[ae,z.id,ie]),ne=(0,be.Z)(ue,2),we=ne[0],Ve=ne[1],Pt=function(Je){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Je,Dt=we.get(Je),kt=we.get(dt);if(Dt===void 0||kt===void 0)for(var Vt=ae.length,$t=Ve.length;$t0&&arguments[0]!==void 0?arguments[0]:!1;Je();var Vt=function(){var sn=!1;Ve.current.forEach(function(Jt,on){if(Jt&&Jt.offsetParent){var pt=Jt.offsetHeight,dn=getComputedStyle(Jt),Ft=dn.marginTop,Yt=dn.marginBottom,an=Xe(Ft),Ln=Xe(Yt),bn=pt+an+Ln;Pt.current.get(on)!==bn&&(Pt.current.set(on,bn),sn=!0)}}),sn&&we(function(Jt){return Jt+1})};if(kt)Vt();else{je.current+=1;var $t=je.current;Promise.resolve().then(function(){$t===je.current&&Vt()})}}function Dt(kt,Vt){var $t=ae(kt),Tt=Ve.current.get($t);Vt?(Ve.current.set($t,Vt),dt()):Ve.current.delete($t),!Tt!=!Vt&&(Vt?ee==null||ee(kt):z==null||z(kt))}return(0,xe.useEffect)(function(){return Je},[]),[Dt,dt,Pt.current,ne]}var Ct=14/15;function Me(ae,ee,z){var ie=(0,xe.useRef)(!1),ue=(0,xe.useRef)(0),ne=(0,xe.useRef)(0),we=(0,xe.useRef)(null),Ve=(0,xe.useRef)(null),Pt,je=function(kt){if(ie.current){var Vt=Math.ceil(kt.touches[0].pageX),$t=Math.ceil(kt.touches[0].pageY),Tt=ue.current-Vt,sn=ne.current-$t,Jt=Math.abs(Tt)>Math.abs(sn);Jt?ue.current=Vt:ne.current=$t;var on=z(Jt,Jt?Tt:sn,!1,kt);on&&kt.preventDefault(),clearInterval(Ve.current),on&&(Ve.current=setInterval(function(){Jt?Tt*=Ct:sn*=Ct;var pt=Math.floor(Jt?Tt:sn);(!z(Jt,pt,!0)||Math.abs(pt)<=.1)&&clearInterval(Ve.current)},16))}},Je=function(){ie.current=!1,Pt()},dt=function(kt){Pt(),kt.touches.length===1&&!ie.current&&(ie.current=!0,ue.current=Math.ceil(kt.touches[0].pageX),ne.current=Math.ceil(kt.touches[0].pageY),we.current=kt.target,we.current.addEventListener("touchmove",je,{passive:!1}),we.current.addEventListener("touchend",Je,{passive:!0}))};Pt=function(){we.current&&(we.current.removeEventListener("touchmove",je),we.current.removeEventListener("touchend",Je))},(0,Ge.Z)(function(){return ae&&ee.current.addEventListener("touchstart",dt,{passive:!0}),function(){var Dt;(Dt=ee.current)===null||Dt===void 0||Dt.removeEventListener("touchstart",dt),Pt(),clearInterval(Ve.current)}},[ae])}function Et(ae){return Math.floor(Math.pow(ae,.5))}function jt(ae,ee){var z="touches"in ae?ae.touches[0]:ae;return z[ee?"pageX":"pageY"]-window[ee?"scrollX":"scrollY"]}function ye(ae,ee,z){xe.useEffect(function(){var ie=ee.current;if(ae&&ie){var ue=!1,ne,we,Ve=function(){at.Z.cancel(ne)},Pt=function Dt(){Ve(),ne=(0,at.Z)(function(){z(we),Dt()})},je=function(){ue=!1,Ve()},Je=function(kt){if(!(kt.target.draggable||kt.button!==0)){var Vt=kt;Vt._virtualHandled||(Vt._virtualHandled=!0,ue=!0)}},dt=function(kt){if(ue){var Vt=jt(kt,!1),$t=ie.getBoundingClientRect(),Tt=$t.top,sn=$t.bottom;if(Vt<=Tt){var Jt=Tt-Vt;we=-Et(Jt),Pt()}else if(Vt>=sn){var on=Vt-sn;we=Et(on),Pt()}else Ve()}};return ie.addEventListener("mousedown",Je),ie.ownerDocument.addEventListener("mouseup",je),ie.ownerDocument.addEventListener("mousemove",dt),ie.ownerDocument.addEventListener("dragend",je),function(){ie.removeEventListener("mousedown",Je),ie.ownerDocument.removeEventListener("mouseup",je),ie.ownerDocument.removeEventListener("mousemove",dt),ie.ownerDocument.removeEventListener("dragend",je),Ve()}}},[ae])}var de=10;function st(ae,ee,z,ie,ue,ne,we,Ve){var Pt=xe.useRef(),je=xe.useState(null),Je=(0,be.Z)(je,2),dt=Je[0],Dt=Je[1];return(0,Ge.Z)(function(){if(dt&&dt.times=0;Ht-=1){var nn=ue(ee[Ht]),fn=z.get(nn);if(fn===void 0){Jt=!0;break}if(mt-=fn,mt<=0)break}switch(dn){case"top":pt=Yt-Tt;break;case"bottom":pt=an-sn+Tt;break;default:{var $n=ae.current.scrollTop,An=$n+sn;Yt<$n?on="top":an>An&&(on="bottom")}}pt!==null&&we(pt),pt!==dt.lastTop&&(Jt=!0)}Jt&&Dt((0,me.Z)((0,me.Z)({},dt),{},{times:dt.times+1,targetAlign:on,lastTop:pt}))}},[dt,ae.current]),function(kt){if(kt==null){Ve();return}if(at.Z.cancel(Pt.current),typeof kt=="number")we(kt);else if(kt&&(0,et.Z)(kt)==="object"){var Vt,$t=kt.align;"index"in kt?Vt=kt.index:Vt=ee.findIndex(function(Jt){return ue(Jt)===kt.key});var Tt=kt.offset,sn=Tt===void 0?0:Tt;Dt({times:0,index:Vt,offset:sn,originAlign:$t})}}}var Bt=xe.forwardRef(function(ae,ee){var z=ae.prefixCls,ie=ae.rtl,ue=ae.scrollOffset,ne=ae.scrollRange,we=ae.onStartMove,Ve=ae.onStopMove,Pt=ae.onScroll,je=ae.horizontal,Je=ae.spinSize,dt=ae.containerSize,Dt=ae.style,kt=ae.thumbStyle,Vt=ae.showScrollBar,$t=xe.useState(!1),Tt=(0,be.Z)($t,2),sn=Tt[0],Jt=Tt[1],on=xe.useState(null),pt=(0,be.Z)(on,2),dn=pt[0],Ft=pt[1],Yt=xe.useState(null),an=(0,be.Z)(Yt,2),Ln=an[0],bn=an[1],ke=!ie,Ue=xe.useRef(),mt=xe.useRef(),Ht=xe.useState(Vt),nn=(0,be.Z)(Ht,2),fn=nn[0],$n=nn[1],An=xe.useRef(),pn=function(){Vt===!0||Vt===!1||(clearTimeout(An.current),$n(!0),An.current=setTimeout(function(){$n(!1)},3e3))},wn=ne-dt||0,vn=dt-Je||0,Kn=xe.useMemo(function(){if(ue===0||wn===0)return 0;var Bn=ue/wn;return Bn*vn},[ue,wn,vn]),gn=function(_n){_n.stopPropagation(),_n.preventDefault()},Dn=xe.useRef({top:Kn,dragging:sn,pageY:dn,startTop:Ln});Dn.current={top:Kn,dragging:sn,pageY:dn,startTop:Ln};var tn=function(_n){Jt(!0),Ft(jt(_n,je)),bn(Dn.current.top),we(),_n.stopPropagation(),_n.preventDefault()};xe.useEffect(function(){var Bn=function(jn){jn.preventDefault()},_n=Ue.current,Vn=mt.current;return _n.addEventListener("touchstart",Bn,{passive:!1}),Vn.addEventListener("touchstart",tn,{passive:!1}),function(){_n.removeEventListener("touchstart",Bn),Vn.removeEventListener("touchstart",tn)}},[]);var yn=xe.useRef();yn.current=wn;var un=xe.useRef();un.current=vn,xe.useEffect(function(){if(sn){var Bn,_n=function(jn){var xt=Dn.current,Wt=xt.dragging,In=xt.pageY,Un=xt.startTop;at.Z.cancel(Bn);var Ee=Ue.current.getBoundingClientRect(),Re=dt/(je?Ee.width:Ee.height);if(Wt){var ve=(jt(jn,je)-In)*Re,De=Un;!ke&&je?De-=ve:De+=ve;var ge=yn.current,Pe=un.current,Qe=Pe?De/Pe:0,At=Math.ceil(Qe*ge);At=Math.max(At,0),At=Math.min(At,ge),Bn=(0,at.Z)(function(){Pt(At,je)})}},Vn=function(){Jt(!1),Ve()};return window.addEventListener("mousemove",_n,{passive:!0}),window.addEventListener("touchmove",_n,{passive:!0}),window.addEventListener("mouseup",Vn,{passive:!0}),window.addEventListener("touchend",Vn,{passive:!0}),function(){window.removeEventListener("mousemove",_n),window.removeEventListener("touchmove",_n),window.removeEventListener("mouseup",Vn),window.removeEventListener("touchend",Vn),at.Z.cancel(Bn)}}},[sn]),xe.useEffect(function(){return pn(),function(){clearTimeout(An.current)}},[ue]),xe.useImperativeHandle(ee,function(){return{delayHidden:pn}});var Tn="".concat(z,"-scrollbar"),Yn={position:"absolute",visibility:fn?null:"hidden"},zn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return je?(Object.assign(Yn,{height:8,left:0,right:0,bottom:0}),Object.assign(zn,(0,We.Z)({height:"100%",width:Je},ke?"left":"right",Kn))):(Object.assign(Yn,(0,We.Z)({width:8,top:0,bottom:0},ke?"right":"left",0)),Object.assign(zn,{width:"100%",height:Je,top:Kn})),xe.createElement("div",{ref:Ue,className:Ke()(Tn,(0,We.Z)((0,We.Z)((0,We.Z)({},"".concat(Tn,"-horizontal"),je),"".concat(Tn,"-vertical"),!je),"".concat(Tn,"-visible"),fn)),style:(0,me.Z)((0,me.Z)({},Yn),Dt),onMouseDown:gn,onMouseMove:pn},xe.createElement("div",{ref:mt,className:Ke()("".concat(Tn,"-thumb"),(0,We.Z)({},"".concat(Tn,"-thumb-moving"),sn)),style:(0,me.Z)((0,me.Z)({},zn),kt),onMouseDown:tn}))}),bt=Bt,Te=20;function tt(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,z=ae/ee*ae;return isNaN(z)&&(z=0),z=Math.max(z,Te),Math.floor(z)}var ct=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],rn=[],wt={overflowY:"auto",overflowAnchor:"none"};function Rt(ae,ee){var z=ae.prefixCls,ie=z===void 0?"rc-virtual-list":z,ue=ae.className,ne=ae.height,we=ae.itemHeight,Ve=ae.fullHeight,Pt=Ve===void 0?!0:Ve,je=ae.style,Je=ae.data,dt=ae.children,Dt=ae.itemKey,kt=ae.virtual,Vt=ae.direction,$t=ae.scrollWidth,Tt=ae.component,sn=Tt===void 0?"div":Tt,Jt=ae.onScroll,on=ae.onVirtualScroll,pt=ae.onVisibleChange,dn=ae.innerProps,Ft=ae.extraRender,Yt=ae.styles,an=ae.showScrollBar,Ln=an===void 0?"optional":an,bn=(0,Ce.Z)(ae,ct),ke=xe.useCallback(function(_t){return typeof Dt=="function"?Dt(_t):_t==null?void 0:_t[Dt]},[Dt]),Ue=pe(ke,null,null),mt=(0,be.Z)(Ue,4),Ht=mt[0],nn=mt[1],fn=mt[2],$n=mt[3],An=!!(kt!==!1&&ne&&we),pn=xe.useMemo(function(){return Object.values(fn.maps).reduce(function(_t,qt){return _t+qt},0)},[fn.id,fn.maps]),wn=An&&Je&&(Math.max(we*Je.length,pn)>ne||!!$t),vn=Vt==="rtl",Kn=Ke()(ie,(0,We.Z)({},"".concat(ie,"-rtl"),vn),ue),gn=Je||rn,Dn=(0,xe.useRef)(),tn=(0,xe.useRef)(),yn=(0,xe.useRef)(),un=(0,xe.useState)(0),Tn=(0,be.Z)(un,2),Yn=Tn[0],zn=Tn[1],Bn=(0,xe.useState)(0),_n=(0,be.Z)(Bn,2),Vn=_n[0],Qn=_n[1],jn=(0,xe.useState)(!1),xt=(0,be.Z)(jn,2),Wt=xt[0],In=xt[1],Un=function(){In(!0)},Ee=function(){In(!1)},Re={getKey:ke};function ve(_t){zn(function(qt){var Xt;typeof _t=="function"?Xt=_t(qt):Xt=_t;var Ot=ur(Xt);return Dn.current.scrollTop=Ot,Ot})}var De=(0,xe.useRef)({start:0,end:gn.length}),ge=(0,xe.useRef)(),Pe=St(gn,ke),Qe=(0,be.Z)(Pe,1),At=Qe[0];ge.current=At;var Nt=xe.useMemo(function(){if(!An)return{scrollHeight:void 0,start:0,end:gn.length-1,offset:void 0};if(!wn){var _t;return{scrollHeight:((_t=tn.current)===null||_t===void 0?void 0:_t.offsetHeight)||0,start:0,end:gn.length-1,offset:void 0}}for(var qt=0,Xt,Ot,En,On=gn.length,Ut=0;Ut=Yn&&Xt===void 0&&(Xt=Ut,Ot=qt),rr>Yn+ne&&En===void 0&&(En=Ut),qt=rr}return Xt===void 0&&(Xt=0,Ot=0,En=Math.ceil(ne/we)),En===void 0&&(En=gn.length-1),En=Math.min(En+1,gn.length-1),{scrollHeight:qt,start:Xt,end:En,offset:Ot}},[wn,An,Yn,gn,$n,ne]),Qt=Nt.scrollHeight,Mt=Nt.start,ut=Nt.end,it=Nt.offset;De.current.start=Mt,De.current.end=ut,xe.useLayoutEffect(function(){var _t=fn.getRecord();if(_t.size===1){var qt=Array.from(_t.keys())[0],Xt=_t.get(qt),Ot=gn[Mt];if(Ot&&Xt===void 0){var En=ke(Ot);if(En===qt){var On=fn.get(qt),Ut=On-we;ve(function(Kt){return Kt+Ut})}}}fn.resetRecord()},[Qt]);var Zt=xe.useState({width:0,height:ne}),hn=(0,be.Z)(Zt,2),ln=hn[0],cn=hn[1],Zn=function(qt){cn({width:qt.offsetWidth,height:qt.offsetHeight})},Xn=(0,xe.useRef)(),Jn=(0,xe.useRef)(),Nn=xe.useMemo(function(){return tt(ln.width,$t)},[ln.width,$t]),Sn=xe.useMemo(function(){return tt(ln.height,Qt)},[ln.height,Qt]),Pn=Qt-ne,Hn=(0,xe.useRef)(Pn);Hn.current=Pn;function ur(_t){var qt=_t;return Number.isNaN(Hn.current)||(qt=Math.min(qt,Hn.current)),qt=Math.max(qt,0),qt}var qn=Yn<=0,lr=Yn>=Pn,ir=Vn<=0,er=Vn>=$t,tr=Fe(qn,lr,ir,er),gr=function(){return{x:vn?-Vn:Vn,y:Yn}},mr=(0,xe.useRef)(gr()),cr=(0,fe.zX)(function(_t){if(on){var qt=(0,me.Z)((0,me.Z)({},gr()),_t);(mr.current.x!==qt.x||mr.current.y!==qt.y)&&(on(qt),mr.current=qt)}});function vr(_t,qt){var Xt=_t;qt?((0,ft.flushSync)(function(){Qn(Xt)}),cr()):ve(Xt)}function Cr(_t){var qt=_t.currentTarget.scrollTop;qt!==Yn&&ve(qt),Jt==null||Jt(_t),cr()}var or=function(qt){var Xt=qt,Ot=$t?$t-ln.width:0;return Xt=Math.max(Xt,0),Xt=Math.min(Xt,Ot),Xt},dr=(0,fe.zX)(function(_t,qt){qt?((0,ft.flushSync)(function(){Qn(function(Xt){var Ot=Xt+(vn?-_t:_t);return or(Ot)})}),cr()):ve(function(Xt){var Ot=Xt+_t;return Ot})}),Fn=ht(An,qn,lr,ir,er,!!$t,dr),wr=(0,be.Z)(Fn,2),Rr=wr[0],jr=wr[1];Me(An,Dn,function(_t,qt,Xt,Ot){var En=Ot;return tr(_t,qt,Xt)?!1:!En||!En._virtualHandled?(En&&(En._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:_t?qt:0,deltaY:_t?0:qt}),!0):!1}),ye(wn,Dn,function(_t){ve(function(qt){return qt+_t})}),(0,Ge.Z)(function(){function _t(Xt){var Ot=qn&&Xt.detail<0,En=lr&&Xt.detail>0;An&&!Ot&&!En&&Xt.preventDefault()}var qt=Dn.current;return qt.addEventListener("wheel",Rr,{passive:!1}),qt.addEventListener("DOMMouseScroll",jr,{passive:!0}),qt.addEventListener("MozMousePixelScroll",_t,{passive:!1}),function(){qt.removeEventListener("wheel",Rr),qt.removeEventListener("DOMMouseScroll",jr),qt.removeEventListener("MozMousePixelScroll",_t)}},[An,qn,lr]),(0,Ge.Z)(function(){if($t){var _t=or(Vn);Qn(_t),cr({x:_t})}},[ln.width,$t]);var Er=function(){var qt,Xt;(qt=Xn.current)===null||qt===void 0||qt.delayHidden(),(Xt=Jn.current)===null||Xt===void 0||Xt.delayHidden()},Br=st(Dn,gn,fn,we,ke,function(){return nn(!0)},ve,Er);xe.useImperativeHandle(ee,function(){return{nativeElement:yn.current,getScrollInfo:gr,scrollTo:function(qt){function Xt(Ot){return Ot&&(0,et.Z)(Ot)==="object"&&("left"in Ot||"top"in Ot)}Xt(qt)?(qt.left!==void 0&&Qn(or(qt.left)),Br(qt.top)):Br(qt)}}}),(0,Ge.Z)(function(){if(pt){var _t=gn.slice(Mt,ut+1);pt(_t,gn)}},[Mt,ut,gn]);var kr=Ze(gn,ke,fn,we),Lr=Ft==null?void 0:Ft({start:Mt,end:ut,virtual:wn,offsetX:Vn,offsetY:it,rtl:vn,getSize:kr}),zr=Le(gn,Mt,ut,$t,Vn,Ht,dt,Re),fr=null;ne&&(fr=(0,me.Z)((0,We.Z)({},Pt?"height":"maxHeight",ne),wt),An&&(fr.overflowY="hidden",$t&&(fr.overflowX="hidden"),Wt&&(fr.pointerEvents="none")));var Gn={};return vn&&(Gn.dir="rtl"),xe.createElement("div",(0,re.Z)({ref:yn,style:(0,me.Z)((0,me.Z)({},je),{},{position:"relative"}),className:Kn},Gn,bn),xe.createElement(Se.Z,{onResize:Zn},xe.createElement(sn,{className:"".concat(ie,"-holder"),style:fr,ref:Dn,onScroll:Cr,onMouseEnter:Er},xe.createElement(Ae,{prefixCls:ie,height:Qt,offsetX:Vn,offsetY:it,scrollWidth:$t,onInnerResize:nn,ref:tn,innerProps:dn,rtl:vn,extra:Lr},zr))),wn&&Qt>ne&&xe.createElement(bt,{ref:Xn,prefixCls:ie,scrollOffset:Yn,scrollRange:Qt,rtl:vn,onScroll:vr,onStartMove:Un,onStopMove:Ee,spinSize:Sn,containerSize:ln.height,style:Yt==null?void 0:Yt.verticalScrollBar,thumbStyle:Yt==null?void 0:Yt.verticalScrollBarThumb,showScrollBar:Ln}),wn&&$t>ln.width&&xe.createElement(bt,{ref:Jn,prefixCls:ie,scrollOffset:Vn,scrollRange:$t,rtl:vn,onScroll:vr,onStartMove:Un,onStopMove:Ee,spinSize:Nn,containerSize:ln.width,horizontal:!0,style:Yt==null?void 0:Yt.horizontalScrollBar,thumbStyle:Yt==null?void 0:Yt.horizontalScrollBarThumb,showScrollBar:Ln}))}var _e=xe.forwardRef(Rt);_e.displayName="List";var Lt=_e,nt=Lt},4977:function(Gt){"use strict";Gt.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(Gt,It,le){"use strict";le.d(It,{Z:function(){return Ke}});const re=Se=>typeof Se=="object"&&Se!=null&&Se.nodeType===1,et=(Se,fe)=>(!fe||Se!=="hidden")&&Se!=="visible"&&Se!=="clip",me=(Se,fe)=>{if(Se.clientHeight{const ft=($e=>{if(!$e.ownerDocument||!$e.ownerDocument.defaultView)return null;try{return $e.ownerDocument.defaultView.frameElement}catch(Ae){return null}})(xe);return!!ft&&(ft.clientHeight$efe||$e>Se&&Ae=fe&&He>=Ge?$e-Se-xe:Ae>fe&&HeGe?Ae-fe+ft:0,be=Se=>{const fe=Se.parentElement;return fe==null?Se.getRootNode().host||null:fe},Ce=(Se,fe)=>{var Ge,xe,ft,$e;if(typeof document=="undefined")return[];const{scrollMode:Ae,block:He,inline:Le,boundary:rt,skipOverflowHiddenElements:yt}=fe,St=typeof rt=="function"?rt:bt=>bt!==rt;if(!re(Se))throw new TypeError("Invalid target");const at=document.scrollingElement||document.documentElement,Ye=[];let lt=Se;for(;re(lt)&&St(lt);){if(lt=be(lt),lt===at){Ye.push(lt);break}lt!=null&<===document.body&&me(lt)&&!me(document.documentElement)||lt!=null&&me(lt,yt)&&Ye.push(lt)}const Fe=(xe=(Ge=window.visualViewport)==null?void 0:Ge.width)!=null?xe:innerWidth,ht=($e=(ft=window.visualViewport)==null?void 0:ft.height)!=null?$e:innerHeight,{scrollX:Ze,scrollY:ze}=window,{height:gt,width:Be,top:qe,right:Xe,bottom:pe,left:Ct}=Se.getBoundingClientRect(),{top:Me,right:Et,bottom:jt,left:ye}=(bt=>{const Te=window.getComputedStyle(bt);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(Se);let de=He==="start"||He==="nearest"?qe-Me:He==="end"?pe+jt:qe+gt/2-Me+jt,st=Le==="center"?Ct+Be/2-ye+Et:Le==="end"?Xe+Et:Ct-ye;const Bt=[];for(let bt=0;bt=0&&Ct>=0&&pe<=ht&&Xe<=Fe&&(Te===at&&!me(Te)||qe>=rn&&pe<=Rt&&Ct>=_e&&Xe<=wt))return Bt;const Lt=getComputedStyle(Te),nt=parseInt(Lt.borderLeftWidth,10),ae=parseInt(Lt.borderTopWidth,10),ee=parseInt(Lt.borderRightWidth,10),z=parseInt(Lt.borderBottomWidth,10);let ie=0,ue=0;const ne="offsetWidth"in Te?Te.offsetWidth-Te.clientWidth-nt-ee:0,we="offsetHeight"in Te?Te.offsetHeight-Te.clientHeight-ae-z:0,Ve="offsetWidth"in Te?Te.offsetWidth===0?0:ct/Te.offsetWidth:0,Pt="offsetHeight"in Te?Te.offsetHeight===0?0:tt/Te.offsetHeight:0;if(at===Te)ie=He==="start"?de:He==="end"?de-ht:He==="nearest"?We(ze,ze+ht,ht,ae,z,ze+de,ze+de+gt,gt):de-ht/2,ue=Le==="start"?st:Le==="center"?st-Fe/2:Le==="end"?st-Fe:We(Ze,Ze+Fe,Fe,nt,ee,Ze+st,Ze+st+Be,Be),ie=Math.max(0,ie+ze),ue=Math.max(0,ue+Ze);else{ie=He==="start"?de-rn-ae:He==="end"?de-Rt+z+we:He==="nearest"?We(rn,Rt,tt,ae,z+we,de,de+gt,gt):de-(rn+tt/2)+we/2,ue=Le==="start"?st-_e-nt:Le==="center"?st-(_e+ct/2)+ne/2:Le==="end"?st-wt+ee+ne:We(_e,wt,ct,nt,ee+ne,st,st+Be,Be);const{scrollLeft:je,scrollTop:Je}=Te;ie=Pt===0?0:Math.max(0,Math.min(Je+ie/Pt,Te.scrollHeight-tt/Pt+we)),ue=Ve===0?0:Math.max(0,Math.min(je+ue/Ve,Te.scrollWidth-ct/Ve+ne)),de+=Je-ie,st+=je-ue}Bt.push({el:Te,top:ie,left:ue})}return Bt},Oe=Se=>Se===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Se)?Se:{block:"start",inline:"nearest"};function Ke(Se,fe){if(!Se.isConnected||!(ft=>{let $e=ft;for(;$e&&$e.parentNode;){if($e.parentNode===document)return!0;$e=$e.parentNode instanceof ShadowRoot?$e.parentNode.host:$e.parentNode}return!1})(Se))return;const Ge=(ft=>{const $e=window.getComputedStyle(ft);return{top:parseFloat($e.scrollMarginTop)||0,right:parseFloat($e.scrollMarginRight)||0,bottom:parseFloat($e.scrollMarginBottom)||0,left:parseFloat($e.scrollMarginLeft)||0}})(Se);if((ft=>typeof ft=="object"&&typeof ft.behavior=="function")(fe))return fe.behavior(Ce(Se,fe));const xe=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:ft,top:$e,left:Ae}of Ce(Se,Oe(fe))){const He=$e-Ge.top+Ge.bottom,Le=Ae-Ge.left+Ge.right;ft.scroll({top:He,left:Le,behavior:xe})}}}}]);